UNPKG

@atlaskit/toggle

Version:

A toggle is used to view or switch between enabled or disabled states.

1,712 lines (1,089 loc) 51.6 kB
# @atlaskit/toggle ## 15.2.10 ### Patch Changes - Updated dependencies ## 15.2.9 ### Patch Changes - Updated dependencies ## 15.2.8 ### Patch Changes - Updated dependencies ## 15.2.7 ### Patch Changes - [`a48fdadce2137`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a48fdadce2137) - Minor internal typography changes. - Updated dependencies ## 15.2.6 ### Patch Changes - Updated dependencies ## 15.2.5 ### Patch Changes - [`fc55da96999c2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fc55da96999c2) - Clean up dead FG ## 15.2.4 ### Patch Changes - [`162f2dbd88f1b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/162f2dbd88f1b) - Fix icon shifting bug ## 15.2.3 ### Patch Changes - Updated dependencies ## 15.2.2 ### Patch Changes - [`d14ea5f60b689`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d14ea5f60b689) - chore: migrate platform UI & component libraries icon imports from migration paths to core ## 15.2.1 ### Patch Changes - Updated dependencies ## 15.2.0 ### Minor Changes - [`b867e641d818d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b867e641d818d) - Updated border radius values behind a feature gate `platform-dst-shape-theme-default`. ## 15.1.16 ### Patch Changes - [`a60a82196851a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a60a82196851a) - Internal refactors to remove unused variables. No functional or public changes. - Updated dependencies ## 15.1.15 ### Patch Changes - Updated dependencies ## 15.1.14 ### Patch Changes - Updated dependencies ## 15.1.13 ### Patch Changes - Updated dependencies ## 15.1.12 ### Patch Changes - Updated dependencies ## 15.1.11 ### Patch Changes - Updated dependencies ## 15.1.10 ### Patch Changes - Updated dependencies ## 15.1.9 ### Patch Changes - Updated dependencies ## 15.1.8 ### Patch Changes - [`248faa32d4835`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/248faa32d4835) - Internal changes to how borders are applied. - Updated dependencies ## 15.1.7 ### Patch Changes - [`f0662cd7a143e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f0662cd7a143e) - Internal changes to how borders are applied. - Updated dependencies ## 15.1.6 ### Patch Changes - Updated dependencies ## 15.1.5 ### Patch Changes - Updated dependencies ## 15.1.4 ### Patch Changes - [`255837cfba315`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/255837cfba315) - Internal changes to how border radius is applied. - Updated dependencies ## 15.1.3 ### Patch Changes - Updated dependencies ## 15.1.2 ### Patch Changes - Updated dependencies ## 15.1.1 ### Patch Changes - Updated dependencies ## 15.1.0 ### Minor Changes - [#188921](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/188921) [`6be3eef87d2ed`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6be3eef87d2ed) - Added `isLoading` prop to handle async actions where the toggle's state is being fetched or updated asynchronously ### Patch Changes - Updated dependencies ## 15.0.13 ### Patch Changes - Updated dependencies ## 15.0.12 ### Patch Changes - [#188952](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/188952) [`1a88e6e2601ae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1a88e6e2601ae) - Migrated usage of renamed/deprecated icons - Updated dependencies ## 15.0.11 ### Patch Changes - [#187142](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/187142) [`ffd74c7e8e61d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ffd74c7e8e61d) - Refactors the focus-ring behaviour of toggle to be entirely css based rather than js. Allowing us to remove complex interaction logic. - Updated dependencies ## 15.0.10 ### Patch Changes - Updated dependencies ## 15.0.9 ### Patch Changes - Updated dependencies ## 15.0.8 ### Patch Changes - Updated dependencies ## 15.0.7 ### Patch Changes - Updated dependencies ## 15.0.6 ### Patch Changes - Updated dependencies ## 15.0.5 ### Patch Changes - Updated dependencies ## 15.0.4 ### Patch Changes - [#129972](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/129972) [`b2d69a39e6687`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b2d69a39e6687) - Update `@compiled/react` dependency for improved type checking support. - Updated dependencies ## 15.0.3 ### Patch Changes - [#127063](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/127063) [`c6eec021e060e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c6eec021e060e) - Update dependencies and remove old codemods. - Updated dependencies ## 15.0.2 ### Patch Changes - Updated dependencies ## 15.0.1 ### Patch Changes - Updated dependencies ## 15.0.0 ### Major Changes - [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363) [`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) - This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the status of only supporting React 18 going forward. No explicit breaking change to React support has been made in this release, but this is to signify going forward, breaking changes for React 16 or React 17 may come via non-major semver releases. Please refer this community post for more details: https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026 ### Patch Changes - Updated dependencies ## 14.2.0 ### Minor Changes - [#116138](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116138) [`b50c5d5d65ae2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b50c5d5d65ae2) - Bump to the latest version of @compiled/react ### Patch Changes - Updated dependencies ## 14.1.3 ### Patch Changes - Updated dependencies ## 14.1.2 ### Patch Changes - Updated dependencies ## 14.1.1 ### Patch Changes - Updated dependencies ## 14.1.0 ### Minor Changes - [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060) [`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) - Update `React` from v16 to v18 ### Patch Changes - Updated dependencies ## 14.0.3 ### Patch Changes - [#103999](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103999) [`9f62ecec4d422`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9f62ecec4d422) - Update dependencies. ## 14.0.2 ### Patch Changes - Updated dependencies ## 14.0.1 ### Patch Changes - [#180314](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/180314) [`88b53688f1c39`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/88b53688f1c39) - Fix bug where linked labels with single quotes in the ID would fail to be detected, leading to an invalid internal selector" ## 14.0.0 ### Major Changes - [#174218](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/174218) [`37630216e4b54`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/37630216e4b54) - Migrated from `@emotion/react` to `@compiled/react` in order to improve performance, align with the rest of the Atlaskit techstack, and support React 18 Streaming SSR. Please note, in order to use this version of `@atlaskit/toggle`, you will need to ensure that your bundler is configured to handle `.css` imports correctly. Most bundlers come with built-in support for `.css` imports, so you may not need to do anything. If you are using a different bundler, please refer to the documentation for that bundler to understand how to handle `.css` imports. For more information on the migration, please refer to [RFC-73 Migrating our components to Compiled CSS-in-JS](https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953). ## 13.4.10 ### Patch Changes - [#174437](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/174437) [`e59c6f1913cf9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e59c6f1913cf9) - fix focus ring appearance logic on toggle component ## 13.4.9 ### Patch Changes - Updated dependencies ## 13.4.8 ### Patch Changes - [#166026](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166026) [`962b5e77810fb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/962b5e77810fb) - Adds side-effect config to support Compiled css extraction in third-party apps ## 13.4.7 ### Patch Changes - Updated dependencies ## 13.4.6 ### Patch Changes - Updated dependencies ## 13.4.5 ### Patch Changes - Updated dependencies ## 13.4.4 ### Patch Changes - [#148281](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/148281) [`3c4de48168ffe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3c4de48168ffe) - Update the import path of `useId*` from `@atlaskit/ds-lib` - Updated dependencies ## 13.4.3 ### Patch Changes - [#147531](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/147531) [`8ae1e110621b7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8ae1e110621b7) - Internal changes to feature flag used to toggle new icons ## 13.4.2 ### Patch Changes - Updated dependencies ## 13.4.1 ### Patch Changes - [#138350](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/138350) [`fc4679dc7666c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fc4679dc7666c) - Remove `react-uid` and use an ID generator that is compatible with React16 and React 18; Strict React 18 behind a flag. ## 13.4.0 ### Minor Changes - [#137781](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/137781) [`21bfb50836bad`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/21bfb50836bad) - Migrated to use new iconography behind a feature flag. ### Patch Changes - Updated dependencies ## 13.3.1 ### Patch Changes - Updated dependencies ## 13.3.0 ### Minor Changes - [#127511](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/127511) [`db30e29344013`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/db30e29344013) - Widening range of `react` and `react-dom` peer dependencies from `^16.8.0 || ^17.0.0 || ~18.2.0` to the wider range of ``^16.8.0 || ^17.0.0 || ^18.0.0` (where applicable). This change has been done to enable usage of `react@18.3` as well as to have a consistent peer dependency range for `react` and `react-dom` for `/platform` packages. ### Patch Changes - Updated dependencies ## 13.2.1 ### Patch Changes - Updated dependencies ## 13.2.0 ### Minor Changes - [#111016](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111016) [`d131599730792`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d131599730792) - Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime is implicitly set to automatic. ### Patch Changes - Updated dependencies ## 13.1.0 ### Minor Changes - [#97269](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/97269) [`700d72e1ed10`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/700d72e1ed10) - Add support for React 18 in non-strict mode. ## 13.0.5 ### Patch Changes - [#95215](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/95215) [`983787443cd4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/983787443cd4) - Internal changes to typography, no visual change. ## 13.0.4 ### Patch Changes - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2` ## 13.0.3 ### Patch Changes - [#76716](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/76716) [`dc3f5a5cbfb3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dc3f5a5cbfb3) - Improve labeling support for toggle's `label` prop. ## 13.0.2 ### Patch Changes - [#66257](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/66257) [`5d82e9131bc5`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5d82e9131bc5) - Support aria-describedby on toggle ## 13.0.1 ### Patch Changes - Updated dependencies ## 13.0.0 ### Major Changes - [#41881](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41881) [`1de74609c13`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1de74609c13) - Removed all remaining legacy theming logic from the Tag, Toggle and Tooltip components. ## 12.6.11 ### Patch Changes - [#38731](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38731) [`9af31f3c1ae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9af31f3c1ae) - Delete version.json ## 12.6.10 ### Patch Changes - [#38203](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38203) [`aff17bcbf09`](https://bitbucket.org/atlassian/atlassian-frontend/commits/aff17bcbf09) - This package is now onboarded onto the product push model. ## 12.6.9 ### Patch Changes - [#37302](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37302) [`ad86a5a28ac`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad86a5a28ac) - [ux] correct fallback color of focused border in light and dark mode ## 12.6.8 ### Patch Changes - [#36936](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36936) [`617f98ed199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/617f98ed199) - Use correct typing for emotion styles ## 12.6.7 ### Patch Changes - [#36754](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36754) [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing. ## 12.6.6 ### Patch Changes - [#35441](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/35441) [`599bfe90ee3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/599bfe90ee3) - Internal change to use shape tokens. There is no expected visual change. ## 12.6.5 ### Patch Changes - [#34881](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34881) [`774ed69ecef`](https://bitbucket.org/atlassian/atlassian-frontend/commits/774ed69ecef) - Internal changes to use space tokens for spacing values. There is no visual change. ## 12.6.4 ### Patch Changes - [#32935](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32935) [`b1bdec7cce2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b1bdec7cce2) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change. ## 12.6.3 ### Patch Changes - [#33795](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33795) [`10cd6daef6d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/10cd6daef6d) - [ux] update fallback of hover color to meet contrast requirement ## 12.6.2 ### Patch Changes - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8 ## 12.6.1 ### Patch Changes - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5` ## 12.6.0 ### Minor Changes - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump ### Patch Changes - Updated dependencies ## 12.5.8 ### Patch Changes - Updated dependencies ## 12.5.7 ### Patch Changes - Updated dependencies ## 12.5.6 ### Patch Changes - Updated dependencies ## 12.5.5 ### Patch Changes - Updated dependencies ## 12.5.4 ### Patch Changes - [#27393](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27393) [`73237f2e62e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73237f2e62e) - [ux] Fix token usages on toggle icon and handle background. ## 12.5.3 ### Patch Changes - Updated dependencies ## 12.5.2 ### Patch Changes - [#26303](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26303) [`9827dcb82b8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9827dcb82b8) - No-op change to introduce spacing tokens to design system components. ## 12.5.1 ### Patch Changes - [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5` ## 12.5.0 ### Minor Changes - [#24004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24004) [`0349cb94ca3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0349cb94ca3) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change. ### Patch Changes - Updated dependencies ## 12.4.10 ### Patch Changes - [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`. ## 12.4.9 ### Patch Changes - [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381) [`8202e37941b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8202e37941b) - Internal code change turning on new linting rules. - Updated dependencies ## 12.4.8 ### Patch Changes - Updated dependencies ## 12.4.7 ### Patch Changes - [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4 ## 12.4.6 ### Patch Changes - Updated dependencies ## 12.4.5 ### Patch Changes - Updated dependencies ## 12.4.4 ### Patch Changes - Updated dependencies ## 12.4.3 ### Patch Changes - [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`cbf4b3928b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cbf4b3928b4) - Internal changes to `@atlaskit/toggle` to support adoption of '@compiled/react'. ## 12.4.2 ### Patch Changes - [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids. - Updated dependencies ## 12.4.1 ### Patch Changes - Updated dependencies ## 12.4.0 ### Minor Changes - [#17576](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/17576) [`5f184bb7147`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f184bb7147) - **Note**: It is a re-release of the wrongly `patched` version `11.4.1` that should have been a `minor` release. [ux] Instrumented toggle with the new theming package, `@atlaskit/tokens`. New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha). These changes are intended to be interoperable with the legacy theme implementation.Legacy dark mode users should expect no visual or breaking changes. ### Patch Changes - Updated dependencies ## 12.3.1 ### Minor Changes _WRONG RELEASE TYPE - DON'T USE_ - [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`fa8d020232e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fa8d020232e) - [ux] Instrumented toggle with the new theming package, `@atlaskit/tokens`. New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha). These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes. ### Patch Changes - Updated dependencies ## 12.3.0 ### Minor Changes - [#14319](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14319) [`cf853e39278`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cf853e39278) - [ux] Fix toggle focus ring in windows high contrast mode ### Patch Changes - Updated dependencies ## 12.2.2 ### Patch Changes - [#12880](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12880) [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`. ## 12.2.1 ### Patch Changes - [#12167](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12167) [`d6f7ff383cf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6f7ff383cf) - Updates to development dependency `storybook-addon-performance` ## 12.2.0 ### Minor Changes - [#10569](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10569) [`242d84dc481`](https://bitbucket.org/atlassian/atlassian-frontend/commits/242d84dc481) - [ux] Fix toggle shape in windows high contrast mode ## 12.1.0 ### Minor Changes - [#10230](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10230) [`ab26e3b8958`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ab26e3b8958) - Added label, checkIconLabel and crossIconLabel props. Label - text that is used as aria-label, checkIconLabel and crossIconLabel texts that are used as labels of icons ### Patch Changes - Updated dependencies ## 12.0.5 ### Patch Changes - [#9083](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9083) [`7116601e1b2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7116601e1b2) - Internal typing refactored to be readable by extract-react-types. - Updated dependencies ## 12.0.4 ### Patch Changes - [#8644](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8644) [`79c23df6340`](https://bitbucket.org/atlassian/atlassian-frontend/commits/79c23df6340) - Use injected package name and version for analytics instead of version.json. - Updated dependencies ## 12.0.3 ### Patch Changes - [#7468](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7468) [`1afc5c6e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1afc5c6e66) - The layout of toggle icons is not showing correctly, fixed it by explicitly set box-sizing to content-box ## 12.0.2 ### Patch Changes - [#6794](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/6794) [`8818ff41f2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8818ff41f2) - Fixed analytics event missing issue ## 12.0.1 ### Patch Changes - [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc ## 12.0.0 ### Major Changes - [#5860](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5860) [`da6f3ca7ff`](https://bitbucket.org/atlassian/atlassian-frontend/commits/da6f3ca7ff) - ### Brief The ultimate goal of this major for toggle is to improve the component's performance, by both reducing static structure or avoiding unnecessary function calls. Some big changes are made as following: - merged stateful and stateless component - replace `styled-components` to `emotion` as styling library - restructure DOM element to reduce size - using latest analytics-next #### Stateful vs Stateless We've merged `Toggle` and `ToggleStateless` in this major, internally we distinguish those two different behaviours by props a user passed in. In React documents, it's recommended to use `controlled components` to implement forms [here](https://reactjs.org/docs/uncontrolled-components.html), while there are cases you might need a different approach instead, there is a [detailed discussion](https://goshakkk.name/controlled-vs-uncontrolled-inputs-react/) here that can help you to decide which way to go. When `defaultChecked` is passed in, that means you want it to be `stateful` and the component will have a `state` reflecting `checked` or `unchecked` all by itself. In contrast, if `defaultChecked` is absent, it turns to a stateless component and you have to control it on you own, by using `isChecked` prop. When both are provided, it will always be a stateful component. #### Upgrading with codemod ``` # You first need to have the latest toggle installed before you can run the codemod yarn upgrade @atlaskit/toggle@^12.0.0 # Run the codemod cli # Pass in a parser for your codebase npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel] ``` ## 11.0.3 ### Patch Changes - [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option. This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started Also add `typescript` to `devDependencies` to denote version that the package was built with. ## 11.0.2 ### Patch Changes - Updated dependencies ## 11.0.1 ### Patch Changes - [#5164](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5164) [`2ac834240e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2ac834240e) - Undo analytics-next file restructure to allow external ts definitions to continue working ## 11.0.0 ### Major Changes - [#4749](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4749) [`6a46a07705`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6a46a07705) - isDefaultChecked prop renamed to defaultChecked in @atlaskit/toggle. ### Patch Changes - Updated dependencies ## 10.0.4 ### Patch Changes - [#4707](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4707) [`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable integration tests for Edge browser ## 10.0.3 ### Patch Changes - [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0 Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade to prevent duplicates of tslib being bundled. ## 10.0.2 ### Patch Changes - [#3293](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3293) [`954cc87b62`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954cc87b62) - The readme and package information has been updated to point to the new design system website. ## 10.0.1 ### Patch Changes - [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428) [`db053b24d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db053b24d8) - Update all the theme imports to be tree-shakable ## 10.0.0 ### Major Changes - [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11. For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534 ### Patch Changes - Updated dependencies ## 9.0.0 ### Major Changes - [#2763](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2763) [`74b9e80533`](https://bitbucket.org/atlassian/atlassian-frontend/commits/74b9e80533) - **BREAKING** - The `label` prop has been removed. If wanting to pair your toggle with a `label` element make sure to use the freshly introduced `id` prop! Before: ```js <Toggle label="Allow pull requests" /> ``` After (we use Emotion here - but you can use any equivalent library): ```js /** * @jsxRuntime classic * @jsx jsx */ import { jsx } from '@emotion/core'; import { visuallyHidden } from '@atlaskit/theme/constants'; <label css={visuallyHidden()} htmlFor="my-toggle">Allow pull requests</label> <Toggle id="my-toggle" /> ``` This now also allows you to visually show a label (just omit the visually hidden mixin) - which for the most part you'll want to do. Read [the design docs](https://atlassian.design/guidelines/product/components/toggles) for more inspiration. Happy toggling! ### Minor Changes - [`5ab389c082`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5ab389c082) - Adds an `id` prop for you to use with a pairing label element, for use like so: ```js import Toggle from '@atlaskit/toggle'; <label htmlFor="my-toggle">Do the thing</label> <Toggle id="my-toggle" /> ``` ## 8.1.9 ### Patch Changes - [#2866](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2866) [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm ## 8.1.8 ### Patch Changes - Updated dependencies ## 8.1.7 ### Patch Changes - [patch][9e4b195732](https://bitbucket.org/atlassian/atlassian-frontend/commits/9e4b195732): Change imports to comply with Atlassian conventions- Updated dependencies [6b8e60827e](https://bitbucket.org/atlassian/atlassian-frontend/commits/6b8e60827e): - Updated dependencies [57c0487a02](https://bitbucket.org/atlassian/atlassian-frontend/commits/57c0487a02): - Updated dependencies [fd41d77c29](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd41d77c29): - @atlaskit/button@13.3.11 - @atlaskit/webdriver-runner@0.3.4 ## 8.1.6 ### Patch Changes - Updated dependencies [66dcced7a0](https://bitbucket.org/atlassian/atlassian-frontend/commits/66dcced7a0): - Updated dependencies [64fb94fb1e](https://bitbucket.org/atlassian/atlassian-frontend/commits/64fb94fb1e): - Updated dependencies [eea5e9bd8c](https://bitbucket.org/atlassian/atlassian-frontend/commits/eea5e9bd8c): - Updated dependencies [109c1a2c0a](https://bitbucket.org/atlassian/atlassian-frontend/commits/109c1a2c0a): - Updated dependencies [c57bb32f6d](https://bitbucket.org/atlassian/atlassian-frontend/commits/c57bb32f6d): - @atlaskit/docs@8.4.0 - @atlaskit/webdriver-runner@0.3.0 - @atlaskit/button@13.3.9 ## 8.1.5 ### Patch Changes - Updated dependencies [e3f01787dd](https://bitbucket.org/atlassian/atlassian-frontend/commits/e3f01787dd): - @atlaskit/webdriver-runner@0.2.0 - @atlaskit/button@13.3.8 ## 8.1.4 ### Patch Changes - [patch][6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a): Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a): - @atlaskit/docs@8.3.2 - @atlaskit/visual-regression@0.1.9 - @atlaskit/analytics-next@6.3.5 - @atlaskit/button@13.3.7 - @atlaskit/theme@9.5.1 ## 8.1.3 ### Patch Changes - [patch][6dccb16bfc](https://bitbucket.org/atlassian/atlassian-frontend/commits/6dccb16bfc): Updated cross and check icon, removed Icon dependency - Updated dependencies [82747f2922](https://bitbucket.org/atlassian/atlassian-frontend/commits/82747f2922): - Updated dependencies [4a223473c5](https://bitbucket.org/atlassian/atlassian-frontend/commits/4a223473c5): - @atlaskit/theme@9.5.0 - @atlaskit/button@13.3.5 ## 8.1.2 ### Patch Changes - [patch][35d2229b2a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/35d2229b2a): Adding missing license to packages and update to Copyright 2019 Atlassian Pty Ltd. ## 8.1.1 ### Patch Changes - [patch][a2d0043716](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a2d0043716): Updated version of analytics-next to fix potential incompatibilities with TS 3.6 ## 8.1.0 ### Minor Changes - [minor][decb366d7a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/decb366d7a): 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.0.5 ### Patch Changes - [patch][097b696613](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/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.4 ### Patch Changes - [patch][ecca4d1dbb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ecca4d1dbb): Upgraded Typescript to 3.3.x ## 8.0.3 ### Patch Changes - [patch][708028db86](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/708028db86): Change all the imports to theme in Core to use multi entry points ## 8.0.2 ### Patch Changes - [patch][de35ce8c67](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/de35ce8c67): Updates component maintainers ## 8.0.1 ### Patch Changes - [patch][926b43142b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/926b43142b): Analytics-next has been converted to Typescript. Typescript consumers will now get static type safety. Flow types are no longer provided. No behavioural changes. **Breaking changes** - `withAnalyticsForSumTypeProps` alias has been removed, please use `withAnalyticsEvents` - `AnalyticsContextWrappedComp` alias has been removed, please use `withAnalyticsContext` **Breaking changes to TypeScript annotations** - `withAnalyticsEvents` now infers proptypes automatically, consumers no longer need to provide props as a generic type. - `withAnalyticsContext` now infers proptypes automatically, consumers no longer need to provide props as a generic type. - Type `WithAnalyticsEventProps` has been renamed to `WithAnalyticsEventsProps` to match source code - Type `CreateUIAnalyticsEventSignature` has been renamed to `CreateUIAnalyticsEvent` to match source code - Type `UIAnalyticsEventHandlerSignature` has been renamed to `UIAnalyticsEventHandler` to match source code - Type `AnalyticsEventsPayload` has been renamed to `AnalyticsEventPayload` - Type `ObjectType` has been removed, please use `Record<string, any>` or `[key: string]: any` - Type `UIAnalyticsEventInterface` has been removed, please use `UIAnalyticsEvent` - Type `AnalyticsEventInterface` has been removed, please use `AnalyticsEvent` - Type `CreateAndFireEventFunction` removed and should now be inferred by TypeScript - Type `AnalyticsEventUpdater` removed and should now be inferred by TypeScript ## 8.0.0 ### Major Changes - [major][7e9d653278](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7e9d653278): Toggle has been converted to Typescript. Typescript consumers will now get static type safety. Flow types are no longer provided. No API or behavioural changes. ## 7.0.4 ### Patch Changes - [patch][9f8ab1084b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9f8ab1084b): Consume analytics-next ts type definitions as an ambient declaration. ## 7.0.3 - Updated dependencies [06326ef3f7](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/06326ef3f7): - @atlaskit/docs@8.1.3 - @atlaskit/button@13.0.9 - @atlaskit/icon@19.0.0 ## 7.0.2 ### Patch Changes - [patch][4615439434](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4615439434): index.ts will now be ignored when publishing to npm ## 7.0.1 - Updated dependencies [cfc3c8adb3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cfc3c8adb3): - @atlaskit/docs@8.1.2 - @atlaskit/button@13.0.8 - @atlaskit/icon@18.0.0 ## 7.0.0 - [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/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. ## 6.0.4 - Updated dependencies [9c0b4744be](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9c0b4744be): - @atlaskit/docs@7.0.3 - @atlaskit/button@12.0.3 - @atlaskit/icon@16.0.9 - @atlaskit/theme@8.1.7 ## 6.0.3 - Updated dependencies [1e826b2966](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e826b2966): - @atlaskit/docs@7.0.2 - @atlaskit/analytics-next@4.0.3 - @atlaskit/icon@16.0.8 - @atlaskit/theme@8.1.6 - @atlaskit/button@12.0.0 ## 6.0.2 - [patch][3ff7cfeeb7](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3ff7cfeeb7): - Internal changes only. Toggle is now SSR-friendly. ## 6.0.1 - Updated dependencies [9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394): - @atlaskit/docs@7.0.1 - @atlaskit/analytics-next@4.0.1 - @atlaskit/icon@16.0.5 - @atlaskit/theme@8.0.1 - @atlaskit/button@11.0.0 ## 6.0.0 - [major][76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/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: ```js import colors from `@atlaskit/theme/colors`; ``` Previously this was sort of possible for consumers by doing something like: ```js import colors from `@atlaskit/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](https://ecosystem.atlassian.net/secure/CreateIssue.jspa?pid=24670) (for external) if you have any questions or queries about this. ## 5.0.15 - Updated dependencies [d7ef59d432](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d7ef59d432): - @atlaskit/docs@6.0.1 - @atlaskit/button@10.1.2 - @atlaskit/icon@16.0.0 ## 5.0.14 - Updated dependencies [58b84fa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/58b84fa): - @atlaskit/analytics-next@3.1.2 - @atlaskit/button@10.1.1 - @atlaskit/icon@15.0.2 - @atlaskit/theme@7.0.1 - @atlaskit/docs@6.0.0 ## 5.0.13 - Updated dependencies [d13242d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d13242d): - @atlaskit/docs@5.2.3 - @atlaskit/button@10.0.4 - @atlaskit/icon@15.0.1 - @atlaskit/theme@7.0.0 ## 5.0.12 - Updated dependencies [ab9b69c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ab9b69c): - @atlaskit/docs@5.2.2 - @atlaskit/button@10.0.1 - @atlaskit/icon@15.0.0 ## 5.0.11 - Updated dependencies [6998f11](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6998f11): - @atlaskit/docs@5.2.1 - @atlaskit/analytics-next@3.1.1 - @atlaskit/icon@14.6.1 - @atlaskit/theme@6.2.1 - @atlaskit/button@10.0.0 ## 5.0.10 - [patch] Adds missing implicit @babel/runtime dependency [b71751b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b71751b) ## 5.0.9 - [patch] Updated dependencies [65c6514](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/65c6514) - @atlaskit/docs@5.0.8 - @atlaskit/button@9.0.13 - @atlaskit/icon@14.0.0 ## 5.0.8 - [patch] Adds sideEffects: false to allow proper tree shaking [b5d6d04](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b5d6d04) ## 5.0.6 - [patch] Updated dependencies [df22ad8](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/df22ad8) - @atlaskit/theme@6.0.0 - @atlaskit/icon@13.2.5 - @atlaskit/button@9.0.6 - @atlaskit/docs@5.0.6 ## 5.0.5 - [patch] update the dependency of react-dom to 16.4.2 due to vulnerability in previous versions read https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html for details [a4bd557](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a4bd557) - [none] Updated dependencies [a4bd557](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a4bd557) - @atlaskit/analytics-next@3.0.4 - @atlaskit/button@9.0.5 - @atlaskit/theme@5.1.3 - @atlaskit/icon@13.2.4 ## 5.0.4 - [patch] Updated dependencies [acd86a1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/acd86a1) - @atlaskit/icon@13.2.2 - @atlaskit/button@9.0.4 - @atlaskit/theme@5.1.2 - @atlaskit/analytics-next@3.0.3 - @atlaskit/docs@5.0.2 ## 5.0.3 - [patch] Add a SSR test for every package, add react-dom and build-utils in devDependencies [7e331b5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7e331b5) - [none] Updated dependencies [7e331b5](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7e331b5) - @atlaskit/analytics-next@3.0.2 - @atlaskit/button@9.0.3 - @atlaskit/theme@5.1.1 - @atlaskit/icon@13.2.1 ## 5.0.2 - [patch] Fixed large toggle icon size and improved dark mode style [7c1166b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c1166b) - [none] Updated dependencies [7c1166b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c1166b) ## 5.0.1 - [patch] Move analytics tests and replace elements to core [49d4ab4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/49d4ab4) - [none] Updated dependencies [49d4ab4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/49d4ab4) - @atlaskit/analytics-next@3.0.1 - @atlaskit/button@9.0.2 - @atlaskit/docs@5.0.1 ## 5.0.0 - [major] Provides analytics for common component interations. See the [Instrumented Components](https://atlaskit.atlassian.com/packages/core/analytics-next) section for more details. If you are using enzyme for testing you will have to use [our forked version of the library](https://atlaskit.atlassian.com/docs/guides/testing#we-use-a-forked-version-of-enzyme). [563a7eb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/563a7eb) - [major] Updates to React ^16.4.0 [7edb866](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7edb866) - [major] Updated dependencies [563a7eb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/563a7eb) - @atlaskit/analytics-next@3.0.0 - @atlaskit/button@9.0.0 - @atlaskit/theme@5.0.0 - @atlaskit/docs@5.0.0 - @atlaskit/icon@13.0.0 - [major] Updated dependencies [7edb866](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7edb866) - @atlaskit/analytics-next@3.0.0 - @atlaskit/button@9.0.0 - @atlaskit/theme@5.0.0 - @atlaskit/docs@5.0.0 - @atlaskit/icon@13.0.0 ## 4.0.3 - [patch] Clean Changelogs - remove duplicates and empty entries [e7756cd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e7756cd) - [none] Updated dependencies [e7756cd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e7756cd) - @atlaskit/button@8.1.2 - @atlaskit/theme@4.0.4 - @atlaskit/icon@12.1.2 ## 4.0.2 - [none] Updated dependencies [9d20f54](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d20f54) - @atlaskit/icon@12.1.0 - @atlaskit/docs@4.1.0 - @atlaskit/theme@4.0.2 - @atlaskit/button@8.1.0 ## 4.0.1 - [patch] Update readme's [223cd67](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/223cd67) - [patch] Updated dependencies [223cd67](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/223cd67) - @atlaskit/icon@12.0.1 - @atlaskit/button@8.0.1 - @atlaskit/theme@4.0.1 - @atlaskit/docs@4.0.1 ## 4.0.0 - [major] makes styled-components a peer dependency and upgrades version range from 1.4.6 - 3 to ^3.2.6 [1e80619](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e80619) - [patch] Updated dependencies [1e80619](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e80619) - @atlaskit/icon@12.0.0 - @atlaskit/button@8.0.0 - @atlaskit/theme@4.0.0 - @atlaskit/docs@4.0.0 ## 3.0.2 - [patch] Updated dependencies [d662caa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d662caa) - @atlaskit/icon@11.3.0 - @atlaskit/button@7.2.5 - @atlaskit/theme@3.2.2 - @atlaskit/docs@3.0.4 ## 3.0.0 - [major] Bump to React 16.3. [4251858](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4251858) ## 2.9.1 - [patch] Re-releasing due to potentially broken babel release [9ed0bba](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9ed0bba) ## 2.9.0 - [minor] Update styled-components dependency to support versions 1.4.6 - 3 [ceccf30](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ceccf30) ## 2.8.4 - [patch] updated the repository url to https://bitbucket.org/atlassian/atlaskit-mk-2 [1e57e5a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e57e5a) ## 2.8.3 - [patch] Packages Flow types for elements components [3111e74](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3111e74) ## 2.8.2 - [patch] Change incorrect type info [ce915ea](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ce915ea) ## 2.8.1 - [patch] Flatten examples for easier consumer use [145b632](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/145b632) ## 2.8.0 - [minor] Add React 16 support. [12ea6e4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/12ea6e4) ## 2.7.1 - [patch] Fix toggle icon alignment [bafb82b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/bafb82b) ## 2.7.0 - [minor] Adding flow types and moving to new repo [c9f3246](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c9f3246) ## 2.6.4 (2017-11-17) - bug fix; bumping internal dependencies to latest version ([a19b26d](https://bitbucket.org/atlassian/atlaskit/commits/a19b26d)) ## 2.6.3 (2017-10-26) - bug fix; fix to rebuild stories ([793b2a7](https://bitbucket.org/atlassian/atlaskit/commits/793b2a7)) ## 2.6.2 (2017-10-22) - bug fix; update styled components dep and react peerDep ([5539ada](https://bitbucket.org/atlassian/atlaskit/commits/5539ada)) ## 2.6.1 (2017-09-28) - bug fix; active state is now properly applied ([c1ee840](https://bitbucket.org/atlassian/atlaskit/commits/c1ee840)) - bug fix; use withTheme to get theme for icon color ([1b554a1](https://bitbucket.org/atlassian/atlaskit/commits/1b554a1)) - bug fix; update toggle darkmode colors ([e2e4727](https://bitbucket.org/atlassian/atlaskit/commits/e2e4727)) ## 2.6.0 (2017-09-18) - feature; add dark mode to toggle ([ec57939](https://bitbucket.org/atlassian/atlaskit/commits/ec57939)) ## 2.5.0 (2017-09-13) - feature; update dependencies for toggle ([ae1a0ca](https://bitbucket.org/atlassian/atlaskit/commits/ae1a0ca)) ## 2.4.3 (2017-08-11) - bug fix; fix the theme-dependency ([db90333](https://bitbucket.org/atlassian/atlaskit/commits/db90333)) ## 2.4.2 (2017-07-27) - fix; rename jsnext:main to jsnext:experimental:main temporarily ([c7508e0](https://bitbucket.org/atlassian/atlaskit/commits/c7508e0)) ## 2.4.1 (2017-07-25) - fix; use class transform in loose mode in babel to improve load performance in apps ([fde719a](https://bitbucket.org/atlassian/atlaskit/commits/fde719a)) ## 2.1.0 (2017-07-17) - fix; rerelease, failed prepublish scripts ([5fd82f8](https://bitbucket.org/atlassian/atlaskit/commits/5fd82f8)) - feature; added ES module builds to dist and add jsnext:main to most ADG packages ([ea76507](https://bitbucket.org/atlassian/atlaskit/commits/ea76507)) ## 2.0.5 (2017-07-13) - fix; add prop-types as a dependency to avoid React 15.x warnings ([92598eb](https://bitbucket.org/atlassian/atlaskit/commits/92598eb)) ## 2.0.4 (2017-05-18) - fix; remove state from ToggleSt