Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@kalamazoo/dropdown-menu

stevenselcuk20Apache-2.01.0.2

Creates a dropdown menu, with optional groups, headings, icons, checkbox items, radio group items and disabled items.

atlaskit, react, ui

readme

Dropdown-menu

Creates a dropdown menu, with optional groups, headings, icons, checkbox items, radio group items and disabled items.

Installation

yarn add @kalamazoo/dropdown-menu

Usage

Detailed docs and example usage can be found here.

changelog

@kalamazoo/dropdown-menu

8.2.1

Patch Changes

8.2.0

Minor Changes

  • [minor]0e2241e904:

    Adding an optional prop testId that will set the attribute value data-testid. It will help products to write better integration and end to end tests.

8.1.4

Patch Changes

  • [patch]35d2229b2a:

    Adding missing license to packages and update to Copyright 2019 Atlassian Pty Ltd.

8.1.3

8.1.2

Patch Changes

  • [patch]a2d0043716:

    Updated version of analytics-next to fix potential incompatibilities with TS 3.6

8.1.1

8.1.0

Minor Changes

8.0.17

Patch Changes

  • [patch]097b696613:

    Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving non-relative imports as relative imports

8.0.16

Patch Changes

8.0.15

Patch Changes

  • [patch]708028db86:

    Change all the imports to theme in Core to use multi entry points

8.0.14

Patch Changes

  • [patch]de35ce8c67:

    Updates component maintainers

8.0.13

8.0.12

Patch Changes

  • [patch]d905cbc0ac:

    Adding a condition to check if the component are referenced in tests running in CI. It reduces the noise and help reading the CI log.

8.0.11

Patch Changes

  • [patch]9f8ab1084b:

    Consume analytics-next ts type definitions as an ambient declaration.

8.0.10

Patch Changes

  • [patch]bbff8a7d87:

    Fixes bug, missing version.json file

8.0.9

8.0.8

8.0.7

Patch Changes

  • [patch]6fe990954c:

    Adjusted the offset prop for Popper to not use the deprecated format

8.0.6

Patch Changes

  • [patch]4615439434:

    index.ts will now be ignored when publishing to npm

8.0.5

8.0.4

8.0.3

8.0.2

8.0.1

  • [patch]ee788e6434:

    • Fix analytics for the toggle dropdownMenu event

8.0.0

  • [major]7c17b35107:

    • Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use this package, please ensure you use at least this version of react and react-dom.

7.0.7

7.0.6

7.0.5

  • [patch]6fd20256f3:

    • Add positionFixed property to Popper

7.0.4

7.0.3

7.0.2

  • [patch]dc114c4ce6:

    • Internal changes only. DropdownMenu is now compatible with SSR.

7.0.1

7.0.0

  • [major]76299208e6:

    • Drop ES5 from all the flow modules

    Dropping CJS support in all @atlaskit packages

    As a breaking change, all @atlaskit packages will be dropping cjs distributions and will only distribute esm. This means all distributed code will be transpiled, but will still contain import and export declarations.

    The major reason for doing this is to allow us to support multiple entry points in packages, e.g:

    import colors from `@kalamazoo/theme/colors`;

    Previously this was sort of possible for consumers by doing something like:

    import colors from `@kalamazoo/theme/dist/esm/colors`;

    This has a couple of issues. 1, it treats the file system as API making internal refactors harder, we have to worry about how consumers might be using things that aren't actually supposed to be used. 2. We are unable to do this internally in @atlaskit packages. This leads to lots of packages bundling all of theme, just to use a single color, especially in situations where tree shaking fails.

    To support being able to use multiple entrypoints internally, we unfortunately cannot have multiple distributions as they would need to have very different imports from of their own internal dependencies.

    ES Modules are widely supported by all modern bundlers and can be worked around in node environments.

    We may choose to revisit this solution in the future if we find any unintended condequences, but we see this as a pretty sane path forward which should lead to some major bundle size decreases, saner API's and simpler package architecture.

    Please reach out to #fabric-build (if in Atlassian) or create an issue in Design System Support (for external) if you have any questions or queries about this.

6.1.26

6.1.25

6.1.24

6.1.23

6.1.22

6.1.21

  • [patch]1fb2c2a:

    • Fixed issue where tooltips and modals would initially render in the wrong location

6.1.20

6.1.19

  • [patch] Adds missing implicit @babel/runtime dependency b71751b

6.1.18

  • [patch] Fix the dropdown menu height exceeding viewport height when appearance prop is set to ‘tall’ 0deec63

6.1.17

6.1.16

  • [patch] Fixing dropdown-menu analytics c4098d0

6.1.15

6.1.14

6.1.13

6.1.12

  • [patch] Adds sideEffects: false to allow proper tree shaking b5d6d04

6.1.11

  • [patch] Fix initial position glitch when opening dropdown menu d79e361

6.1.9

  • [patch] Fix dropdown menu calls onOpenChange unnecessarily 2868a72
  • [patch] Updated dependencies 2868a72

6.1.8

6.1.7

6.1.6

  • [patch] Fix scroll to top of container issue when menu is opened via keydown 0a09918
  • [patch] Updated dependencies 0a09918

6.1.5

6.1.4

6.1.3

6.1.2

6.1.1

6.1.0

6.0.0

5.2.3

5.2.2

5.2.1

5.2.0

  • [minor] Add optional onPositioned prop to inform when the menu has been positioned by the underlying Layer component. 95a4592
  • [minor] Updated dependencies 95a4592

5.1.0

5.0.4

5.0.3

5.0.2

5.0.0

4.1.1

4.1.0

  • [minor] Add isMenuFixed prop to force menu to render with position fixed to allow it to break out of non-visible overflow containers at the cost of detachment from the trigger on scroll. e710cfa
  • [none] Updated dependencies e710cfa

4.0.5

4.0.4

4.0.3

4.0.1

  • [patch] Fix clipping of dropdown item content due to line height issues a0392ec

4.0.0

  • [major] Bump to React 16.3. 4251858

3.12.3

  • [patch] Update flow typing bef13c9

3.12.2

  • [patch] Makes packages Flow types compatible with version 0.67 25daac0

3.12.1

  • [patch] Re-releasing due to potentially broken babel release 9ed0bba

3.12.0

  • [minor] Update styled-components dependency to support versions 1.4.6 - 3 ceccf30

3.11.10

3.11.8

  • [patch] Packages Flow types for elements components 3111e74

3.11.7

  • [patch] added logic to close dropdown menu when tabbing out of the component 8279a46

3.11.6

  • [patch] updated item dependency version 23771b9

3.11.5

  • [patch] migrate from ak to mk-2 34a9cbb

3.11.4 (2017-11-30)

  • bug fix; fix dropdown menu opening on disabled button click (issues closed: ak-3644) (4d8c35d)

3.11.3 (2017-11-23)

  • bug fix; update checkbox/radio dropdown items to work with default item spacing bug fix (7ac0582)

3.11.2 (2017-11-16)

  • bug fix; bumping internal dependencies to latest major version (7b22368)

3.11.1 (2017-11-02)

  • bug fix; added missing dependencies (issues closed: ak-3782) (4dbc3ef)

3.11.0 (2017-10-27)

  • feature; use shared HOC from item (f966d9c)

3.10.5 (2017-10-26)

  • bug fix; fix to rebuild stories (793b2a7)

3.10.4 (2017-10-22)

  • bug fix; update dependencies for react-16 (077d1ad)

3.10.3 (2017-10-06)

  • bug fix; replace React.PropTypes imports with prop-types (8c17947)

3.10.2 (2017-09-21)

  • bug fix; update item dependency (issues closed: ak-3418) (4f64804)

3.10.1 (2017-09-06)

  • bug fix; Dropdown menu now closes when a non-link item is clicked (issues closed: ak-3288) (3bdf62d)

3.10.0 (2017-09-01)

  • feature; exposing isOpen and defaultOpen from dropdown (f89ac1c)

3.9.0 (2017-08-31)

  • bug fix; dropdown-menu depenencies bumped to latest (issues closed: ak-3392) (faea6d3)
  • feature; adding the ability to pass a boundariesElement to the Layer component (issues closed: ak-3416) (f6a215e)

3.8.0 (2017-08-25)

  • feature; added defaultSelected and isSelected props for DropdownItemRadio and DropdownItemCheckbox (issues closed: ak-3357) (00080f1)

3.7.3 (2017-08-24)

  • bug fix; dropdownItemRadio and DropdownItemCheckbox now work when custom onClick handler is s (issues closed: ak-3358) (16bee1b)

3.7.2 (2017-08-22)

  • bug fix; dropdownItem and DropdownItemGroup now get correct a11y role (issues closed: ak-3325) (2dbfe85)
  • bug fix; dropdown now only focuses on first item when opened via keyboard (issues closed: ak-3311) (4381e96)

3.7.1 (2017-08-21)

  • bug fix; fix PropTypes warning (040d579)

3.7.0 (2017-08-11)

  • bug fix; fix the theme-dependency (db90333)
  • feature; implement darkmode for droplist (35f9281)

3.6.0 (2017-08-11)

  • feature; implement darkmode for droplist (35f9281)

3.5.1 (2017-08-10)

  • bug fix; handle missing context in dropdown items gracefully (issues closed: ak-2590) (5a36eea)

3.4.2 (2017-07-27)

  • fix; rename jsnext:main to jsnext:experimental:main temporarily (c7508e0)
  • feature; convert dropdown-menu and droplist to declarative API (f6e0292)

3.4.1 (2017-07-25)

  • fix; use class transform in loose mode in babel to improve load performance in apps (fde719a)

3.1.0 (2017-07-17)

  • fix; rerelease, failed prepublish scripts (5fd82f8)
  • feature; added ES module builds to dist and add jsnext:main to most ADG packages (ea76507)

3.0.2 (2017-07-17)

  • fix; replace "*" with last version of tooltip "1.2.0" (89ba989)

3.0.1 (2017-06-14)

  • fix; update internal components to latest dropdown-menu (ad63284)

2.0.0 (2017-05-30)

  • refactored to meet new component conventions (64510d9)
  • removed TypeScript (d78988e)
  • breaking; Public API change: named export "StatelessDropdownMenu" is now "DropdownMenuStateless"
  • breaking; removed TypeScript ISSUES CLOSED: AK-2384

1.10.1 (2017-05-26)

  • fix; add missing prop types to dropdown-menu (79d9570)

1.10.0 (2017-05-26)

  • fix; add prop-types as a dependency to avoid React 15.x warnings (92598eb)
  • feature; add isLoading to DropdownMenu and StatelessMenu (88326a1)

1.9.0 (2017-05-24)

  • feature; dropdown-menu onItemActivated callback to accept event arg and update unit tests (2ebec38)

1.8.0 (2017-05-23)

  • feature; support setting elemAfter on DropdownMenu's groups (7471f2d)

1.7.0 (2017-05-10)

  • feature; add support for tooltips. (545cd7e)

1.6.0 (2017-05-10)

  • feature; bumping icons in dropdown-menu (b29bcdd)

1.5.0 (2017-05-02)

  • feature; bump droplist version + shouldAllowMultilineItems property (6990b4e)

1.4.0 (2017-04-20)

  • fix; upgrade droplist dependency version (0dd084d)
  • feature; removed explicit style! imports, set style-loader in webpack config (891fc3c)
  • temporarily revert changes (8d22c2d)

1.2.0 (2017-04-18)

  • feature; updated avatar dependency versions for comment, dropdown-menu, droplist, and page (e4d2ae7)

1.1.13 (2017-04-13)

  • fix; dropdown remove max-width limit in fit container mode (308a5a3)
  • fix; update dropdown menu readme story with new readme component (2e29f3b)
  • feature; add shouldFitContainer option to dropdown-menu (26dd7ec)

1.1.11 (2017-03-23)

  • fix; Empty commit to release the component (49c08ee)

1.1.9 (2017-03-21)

  • fix; fixed the dropdown's width restriction. Added a story for the dropdown with very lon (954c04c)
  • fix; maintainers for all the packages were added (261d00a)

1.1.8 (2017-03-21)

  • fix; get rid of the unnecessary dependencies (b14e5e9)

1.1.7 (2017-03-20)

  • fix; add missing dropdown menu typings (5d90718)
  • fix; add missing dropdown menu typings (26def3f)

1.1.6 (2017-03-08)

  • fix; dummy commit to force release (d45a0c9)

1.1.5 (2017-03-08)

  • fix; update menu to the latest version of droplist component and fix relevant issues afte (0e0a17a)

1.1.3 (2017-02-14)

  • fix; update ak-icon to @atlaskit/icon and fix dependencies (5589fbd)
  • fix; refactor stories to use // rather than http:// (a0826cf)
  • update item dependency (7609c1e)

1.1.2 (2017-02-09)

  • fix; avoiding binding render to this (40c9951)

1.1.1 (2017-02-07)

  • fix; updates package to use ak scoped packages (0bf5e14)