Radio
A radio input allows users to select only one option from a number of choices. Radio is generally displayed in a radio group.Neutral selected states
When the platform-dst-tokens-finesse feature flag is enabled, this component uses the new neutral treatment for selected states.
10.2.4
Patch Changes
- Updated dependencies
10.2.3
Patch Changes
- Updated dependencies
10.2.2
Patch Changes
- Updated dependencies
10.2.1
Patch Changes
- Updated dependencies
10.2.0
Minor Changes
bd2c5b0112185, (opens new window) - Remove stale API report artifacts from published Platform packages.
Patch Changes
- Updated dependencies
10.1.1
Patch Changes
38c7085c92a3a, (opens new window) - Experimental React 19 peer dependency support. This patch widens the peer range; CI coverage is partial.- Updated dependencies
10.1.0
Minor Changes
-
d82e6f76528ab, (opens new window) - Add direct subpath package exports as part of the linking-platform, search, media, and design-system barrel-removal (de-barrel) migration.These packages now expose their individual modules via explicit
package.jsonexportssubpaths so that consumers can import directly from the leaf module (e.g.@atlaskit/pkg/thing) instead of the package barrel/index. This adds new public entry points without changing or removing any existing exports, so it is a backwards-compatible additive change.No runtime behaviour changes; this is an API-surface (entry-point) addition to support tree-shaking and to unblock removal of the barrel index files.
Patch Changes
- Updated dependencies
10.0.1
Patch Changes
- Updated dependencies
10.0.0
Major Changes
-
f0bf5f838abd5, (opens new window) - Apply Volt entry-point and barrel-removal standards across these packages. Publicexportsnow resolve directly to./src/*implementations instead of intermediate./src/entry-points/*re-exports.Migration
Prefer published subpaths over the package root or internal entry-point paths:
import Calendar from '@atlaskit/calendar/calendar'; import Drawer from '@atlaskit/drawer/drawer'; import { WidthObserver } from '@atlaskit/width-detector/width-observer'; import { DocumentViewer } from '@atlaskit/media-document-viewer/document-viewer';If you imported through internal entry-point modules, switch to the public subpath:
-import Calendar from '@atlaskit/calendar/entry-points/calendar'; +import Calendar from '@atlaskit/calendar/calendar'; -import WidthObserver from '@atlaskit/width-detector/src/WidthObserver'; +import { WidthObserver } from '@atlaskit/width-detector/width-observer';
Patch Changes
- Updated dependencies
9.1.2
Patch Changes
- Updated dependencies
9.1.1
Patch Changes
- Updated dependencies
9.1.0
Minor Changes
-
cd097a2111788, (opens new window) - Republish packages depending on@atlaskit/react-compiler-gatingso their published dependency reference is updated to the renamed@atlaskit/react-compiler-gatingscope.The earlier rename of
@atlassian/react-compiler-gatingto@atlaskit/react-compiler-gatingonly bumped the renamed package itself, so dependent packages were never republished and their published versions still referenced the old@atlassian/react-compiler-gatingname, which is not available in the public npm registry. This minor bump republishes all affected packages with the corrected dependency.
Patch Changes
- Updated dependencies
9.0.1
Patch Changes
ee28cf33718b0, (opens new window) - Add @atlaskit/react-compiler-gating as a runtime dependency to enable React Compiler platform gating.- Updated dependencies
9.0.0
Major Changes
-
f2dc9097319f0, (opens new window) - ### Dropped support for legacy Typescript 4 types. Typescript 5 is now the new minimum.Removes the
typesVersionsproperty anddist/types-ts4.5directory from the dist.Types are now exclusively via the
"types": "dist/types/index.d.ts"property.- "typesVersions": { - ">=4.5 <4.9": { - "*": [ - "dist/types-ts4.5/*", - "dist/types-ts4.5/index.d.ts" - ] - } - },
Patch Changes
- Updated dependencies
8.6.2
Patch Changes
- Updated dependencies
8.6.1
Patch Changes
- Updated dependencies
8.6.0
Minor Changes
aef119573f01b, (opens new window) - Autofix: add explicit package exports (barrel removal)
8.5.4
Patch Changes
- Updated dependencies
8.5.3
Patch Changes
ddd049a745d38, (opens new window) - Internal change to how legacy colors are applied. No visual changes.- Updated dependencies
8.5.2
Patch Changes
- Updated dependencies
8.5.1
Patch Changes
- Updated dependencies
8.5.0
Minor Changes
e1feac98875c6, (opens new window) - Internal only CSS refactor to eliminate nested CSS selectors in favor of an atomic-friendly styling approach. This change was previously behind theplatform-radio-atomic-stylesfeature gate, which has now been removed.
Patch Changes
02483200273ec, (opens new window) - Enrol all Design System UI packages into the React Compiler with platform gating via isReactCompilerActivePlatform.- Updated dependencies
8.4.7
Patch Changes
e2085d35701ca, (opens new window) - Internal changes to remove unnecessary token fallbacks and imports from@atlaskit/theme- Updated dependencies
8.4.6
Patch Changes
7aef1e49e90ea, (opens new window) - Removes redundant fallback color values via @atlaskit/theme- Updated dependencies
8.4.5
Patch Changes
- Updated dependencies
8.4.4
Patch Changes
- Updated dependencies
8.4.3
Patch Changes
d2af0dc3a08f3, (opens new window) - Internal only CSS refactor to eliminate nested CSS selectors in favor of an atomic-friendly styling approach. This change is behind the platform-radio-atomic-styles feature gate.- Updated dependencies
8.4.2
Patch Changes
- Updated dependencies
8.4.1
Patch Changes
- Updated dependencies
8.4.0
Minor Changes
00e69e0b7c839, (opens new window) - Clean up and removal of theplatform-visual-refresh-iconsfeature flag.
8.3.16
Patch Changes
- Updated dependencies
8.3.15
Patch Changes
- Updated dependencies
8.3.14
Patch Changes
a60a82196851a, (opens new window) - Internal refactors to remove unused variables. No functional or public changes.- Updated dependencies
8.3.13
Patch Changes
- Updated dependencies
8.3.12
Patch Changes
- Updated dependencies
8.3.11
Patch Changes
- Updated dependencies
8.3.10
Patch Changes
- Updated dependencies
8.3.9
Patch Changes
- Updated dependencies
8.3.8
Patch Changes
437668dfbdec9, (opens new window) - Add explicit types to a number of DST components- Updated dependencies
8.3.7
Patch Changes
a2571df0ccae5, (opens new window) - add explicit types to radio component
8.3.6
Patch Changes
39e543109ec09, (opens new window) - add type info to forwardRef components- Updated dependencies
8.3.5
Patch Changes
f0662cd7a143e, (opens new window) - Internal changes to how borders are applied.- Updated dependencies
8.3.4
Patch Changes
20056074447a2, (opens new window) - Switch to more semantically accurate label prop in internal radio and radio group instances.
8.3.3
Patch Changes
- Updated dependencies
8.3.2
Patch Changes
- Updated dependencies
8.3.1
Patch Changes
255837cfba315, (opens new window) - Internal changes to how border radius is applied.- Updated dependencies
8.3.0
Minor Changes
cd29488c8bef2, (opens new window) - AddlabelIdto radio group.
8.2.1
Patch Changes
- Updated dependencies
8.2.0
Minor Changes
8f13376aa76a6, (opens new window) - AddlabelIdprop to allow referencing of external elements for the accessible name.
8.1.8
Patch Changes
- Updated dependencies
8.1.7
Patch Changes
- Updated dependencies
8.1.6
Patch Changes
- #188571, (opens new window)
aa2315ba7c52e, (opens new window) - [ux] Adds css rule to style radio as disabled when it is both disabled and checked
8.1.5
Patch Changes
- #186117, (opens new window)
f13d15fae9df4, (opens new window) - Remove unused type in radio.
8.1.4
Patch Changes
- Updated dependencies
8.1.3
Patch Changes
- Updated dependencies
8.1.2
Patch Changes
- Updated dependencies
8.1.1
Patch Changes
- Updated dependencies
8.1.0
Minor Changes
- #142856, (opens new window)
578fbeefd6128, (opens new window) - Remove feature flag to allow new controls
Patch Changes
- Updated dependencies
8.0.3
Patch Changes
- #129972, (opens new window)
b2d69a39e6687, (opens new window) - Update@compiled/reactdependency for improved type checking support. - Updated dependencies
8.0.2
Patch Changes
- Updated dependencies
8.0.1
Patch Changes
- #120284, (opens new window)
c686c50f99410, (opens new window) - Update dependencies.
8.0.0
Major Changes
-
#117363, (opens new window)
10a0f7f6c2027, (opens new window) - This package'speerDependencieshave been adjusted forreactand/orreact-domto 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, (opens new window)
Patch Changes
- Updated dependencies
7.3.0
Minor Changes
- #116138, (opens new window)
b50c5d5d65ae2, (opens new window) - Bump to the latest version of @compiled/react
Patch Changes
- Updated dependencies
7.2.3
Patch Changes
- Updated dependencies
7.2.2
Patch Changes
- Updated dependencies
7.2.1
Patch Changes
- Updated dependencies
7.2.0
Minor Changes
- #109060, (opens new window)
4660ec858a305, (opens new window) - UpdateReactfrom v16 to v18
Patch Changes
- Updated dependencies
7.1.0
Minor Changes
- #100775, (opens new window)
82ed9ca7cc608, (opens new window) - add aria-describedby for error handling to radio group
7.0.1
Patch Changes
- Updated dependencies
7.0.0
Major Changes
- #177175, (opens new window)
188698fbad962, (opens new window) - Migrated from@emotion/reactto@compiled/reactin 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/radio, you will need to ensure that your bundler is configured to handle.cssimports correctly. Most bundlers come with built-in support for.cssimports, 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.cssimports. For more information on the migration, please refer to RFC-73 Migrating our components to Compiled CSS-in-JS, (opens new window).
6.6.0
Minor Changes
- #168150, (opens new window)
8189b94404af2, (opens new window) - Update radio to match new icon styles behind feature flag.
6.5.5
Patch Changes
- #165531, (opens new window)
57f451bda8919, (opens new window) - Adds side-effect config to support Compiled css extraction in third-party apps
6.5.4
Patch Changes
- Updated dependencies
6.5.3
Patch Changes
- Updated dependencies
6.5.2
Patch Changes
- Updated dependencies
6.5.1
Patch Changes
- Updated dependencies
6.5.0
Minor Changes
-
#127511, (opens new window)
db30e29344013, (opens new window) - Widening range ofreactandreact-dompeer dependencies from^16.8.0 || ^17.0.0 || ~18.2.0to 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.3as well as to have a consistent peer dependency range forreactandreact-domfor/platformpackages.
Patch Changes
- Updated dependencies
6.4.1
Patch Changes
- Updated dependencies
6.4.0
Minor Changes
- #110836, (opens new window)
a8bd419fd70b9, (opens new window) - Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime is implicitly set to automatic.
6.3.0
Minor Changes
- #94675, (opens new window)
5d9e1dccacca, (opens new window) - [ux] Update input border color token to meet 3:1 color contrast ratioLight theme: color.border.input: #091E4224 → #8590A2Dark mode: color.border.input: #A6C5E229 → #738496
Patch Changes
- Updated dependencies
6.2.0
Minor Changes
- #93965, (opens new window)
9399fbaa016c, (opens new window) - Add support for React 18 in non-strict mode.
6.1.3
Patch Changes
- #90003, (opens new window)
31fa4f46303a, (opens new window) - Internal changes to typography, no visual change.
6.1.2
Patch Changes
- #83116, (opens new window)
8d4e99057fe0, (opens new window) - Upgrade Typescript from4.9.5to5.4.2
6.1.1
Patch Changes
- #81644, (opens new window)
8ab7a816dca7, (opens new window) - Revert input border change from the previous version
6.1.0
Minor Changes
- #80805, (opens new window)
427c2dd9e0d6, (opens new window) - [ux] update border with from 2px to 1px with darker color to meet 3:1 color contrast for accessibility improvement
Patch Changes
- Updated dependencies
6.0.3
Patch Changes
- #78598, (opens new window)
cabae83473c3, (opens new window) - [ux] Improved visibility of focus styles by adding a gap between the radio and focus ring. This makes the focus ring easier to distinguish to a selected radio, which is also blue.
6.0.2
Patch Changes
- #71177, (opens new window)
a82da4c52cfb, (opens new window) - Fix type bug where 'crossOrigin' appeared as a required prop for Radio
6.0.1
Patch Changes
- #61610, (opens new window)
6b5d817a38e9, (opens new window) - Expose atestIdonRadioGroup. This appliesdata-testidto the root level element, as well as propagates the value toRadiochildren.
6.0.0
Major Changes
- #41866, (opens new window)
ed8b6957789, (opens new window) - Removes any usage of deprecated legacy theming APIs. These have been superseeded by design tokens.
5.6.10
Patch Changes
- #39802, (opens new window)
d6eab5e857c, (opens new window) - Fix loose inequality check in determining if a radio button is checked or not.
5.6.9
Patch Changes
- #38731, (opens new window)
9af31f3c1ae, (opens new window) - Delete version.json
5.6.8
Patch Changes
- #37455, (opens new window)
931210a5b65, (opens new window) - use new feature flag for border contrast update
5.6.7
Patch Changes
- #36754, (opens new window)
4ae083a7e66, (opens new window) - Use@af/accessibility-testingfor default jest-axe config and jest-axe import in accessibility testing.
5.6.6
Patch Changes
- #36664, (opens new window)
2e1fa43ac4b, (opens new window) - update border width to use border spacing token
5.6.5
Patch Changes
- #35441, (opens new window)
599bfe90ee3, (opens new window) - Internal change to use shape tokens. There is no expected visual change.
5.6.4
Patch Changes
- #35111, (opens new window)
8f436f0c301, (opens new window) - extend border contrast feature flag to support confluence
5.6.3
Patch Changes
- #35194, (opens new window)
53ffecf71cb, (opens new window) - Updated selected radio to usecolor.background.selected.boldinstead ofcolor.background.brand.bold. There's no visual change as these tokens have same hex value in both light and dark mode.
5.6.2
Patch Changes
- #32935, (opens new window)
b1bdec7cce2, (opens new window) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
5.6.1
Patch Changes
- #34124, (opens new window)
77766ad157d, (opens new window) - Enrol packages to push-model consumption in Jira.
5.6.0
Minor Changes
- #33476, (opens new window)
b257978b66a, (opens new window) - [ux] reduce the border from 2px to 1px
5.5.2
Patch Changes
- #33793, (opens new window)
9d00501a414, (opens new window) - Ensure legacy types are published for TS 4.5-4.8
5.5.1
Patch Changes
- #33649, (opens new window)
41fae2c6f68, (opens new window) - Upgrade Typescript from4.5.5to4.9.5
5.5.0
Minor Changes
- #33258, (opens new window)
56507598609, (opens new window) - Skip minor dependency bump
Patch Changes
- Updated dependencies
5.4.9
Patch Changes
- Updated dependencies
5.4.8
Patch Changes
- Updated dependencies
5.4.7
Patch Changes
- #29390, (opens new window)
18aeca8c199, (opens new window) - Internal change to update token references. There is no expected behaviour or visual change.
5.4.6
Patch Changes
- #28090, (opens new window)
22d4be4674b, (opens new window) - Fixes issue where disabled radios were using the wrong background and border tokens 8e6acf8f038, (opens new window) - Updates tokens used for border and dot, improved tokens appearance when radio is both checked and disabled
5.4.5
Patch Changes
- Updated dependencies
5.4.4
Patch Changes
- Updated dependencies
5.4.3
Patch Changes
- Updated dependencies
5.4.2
Patch Changes
- #26303, (opens new window)
9827dcb82b8, (opens new window) - No-op change to introduce spacing tokens to design system components.
5.4.1
Patch Changes
- #24874, (opens new window)
8cc2f888c83, (opens new window) - Upgrade Typescript from4.3.5to4.5.5
5.4.0
Minor Changes
- #24004, (opens new window)
54a5b7576a6, (opens new window) - Updates@emotion/coreto@emotion/react; v10 to v11. There is no expected behavior change.
Patch Changes
- Updated dependencies
5.3.13
Patch Changes
- #24492, (opens new window)
8d4228767b0, (opens new window) - Upgrade Typescript from4.2.4to4.3.5.
5.3.12
Patch Changes
- #23381, (opens new window)
72cfbe1a536, (opens new window) - Internal code change turning on new linting rules. fe575d49d66, (opens new window) - Updated styles to use new input design tokens- Updated dependencies
5.3.11
Patch Changes
- Updated dependencies
5.3.10
Patch Changes
- #20650, (opens new window)
cb2392f6d33, (opens new window) - Upgrade to TypeScript 4.2.4
5.3.9
Patch Changes
- Updated dependencies
5.3.8
Patch Changes
- Updated dependencies
5.3.7
Patch Changes
- Updated dependencies
5.3.6
Patch Changes
- #16752, (opens new window)
19d72473dfb, (opens new window) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids. 19d72473dfb, (opens new window) - 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
5.3.5
Patch Changes
- Updated dependencies
5.3.4
Patch Changes
- #15998, (opens new window)
f460cc7c411, (opens new window) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size. - Updated dependencies
5.3.3
Patch Changes
- Updated dependencies
5.3.2
Patch Changes
- Updated dependencies
5.3.1
Patch Changes
- Updated dependencies
5.3.0
Minor Changes
-
#13302, (opens new window)
f276913fa2c, (opens new window) - Instrumented Radio 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
af4bca32ad4, (opens new window) - Internal changes to supress eslint rules.2d7cc544696, (opens new window) - Updates token usage to match the latest token set- Updated dependencies
5.2.1
Patch Changes
- #12880, (opens new window)
378d1cef00f, (opens new window) - Bump@atlaskit/themeto version^11.3.0.
5.2.0
Minor Changes
- #11649, (opens new window)
5c4717067dd, (opens new window) - [ux] Add aria-labelledby prop to RadioGroup
5.1.1
Patch Changes
- #12167, (opens new window)
d6f7ff383cf, (opens new window) - Updates to development dependencystorybook-addon-performance
5.1.0
Minor Changes
- #11113, (opens new window)
7af2427f3a8, (opens new window) - [ux] Update form field examples for validation and add a new prop to RadioGroup component
5.0.4
Patch Changes
- #8644, (opens new window)
79c23df6340, (opens new window) - Use injected package name and version for analytics instead of version.json.
5.0.3
Patch Changes
- #5857, (opens new window)
d3265f19be, (opens new window) - Transpile packages using babel rather than tsc
5.0.2
Patch Changes
- #5497, (opens new window)
5f58283e1f, (opens new window) - 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, (opens new window) Also addtypescripttodevDependenciesto denote version that the package was built with.
5.0.1
Patch Changes
- Updated dependencies
5.0.0
Major Changes
-
#4749, (opens new window)
44ef6437cd, (opens new window) - In this version, we made radio dramatically faster and lighter 😍Changes
In
5.0.0we improved the performance of radio by making it more similar to a native radio input.- Previously we rendered a hidden input and an svg for the radio icon. This way we could get all
the accessibility benefits of using a native radio input while being able to style the svg. We
now use
appearance: noneon the input, enabling us to style the input and theafterpseudo-element. This removes the need for an svg. - Previously all interaction styles were generated in JS using events, causing unnecessary and slow rerenders. Now all styles for the radio are applied using css selectors.
- Because the input is now visible, we have changed the test id from
${testId}--hidden-radioto${testId}--radio-inputto provide less usage friction. We looked into product usage of thetestIdand we have reached out to the owners of any code that would be effected (there was only one). - Dropped the
peerDependencyonstyled-components@3in favour of using@emotion/core. - Converted to function components.
- Added the ability to forward a
refto a radio input. - Remove the
RadioIconexport, you should just use theRadiowithout a label if you want this functionality. - Restricted types for
RadioandRadioGroup.RadioGrouppreviously allowed you to pass any props so this has been restricted to only those used. TheisCheckedprop in theoptionsprop forRadioGrouphas been removed. You can only set aRadioas checked if the value of theRadiois the selected value in theRadioGroup.Radioused to explicitly define input attributes as props and now it extendsInputHTMLAttributesallowing you to pass any input attribute as a prop. - There was a bug where all
onMouseevents were passed onto both the input element and theRadio, which means they would be called multiple times. Now they are only passed to the input element. - As
Radioacts as a native radio input, thenameprop on eachRadioGroupneeds to be unique or eachRadioGroupwith the same name needs to be inside a form element. This is because thenameattribute on radio inputs is used to link the inputs so if you have two separateRadioGroup's with the same name, the browser views them as one radio group.
- Previously we rendered a hidden input and an svg for the radio icon. This way we could get all
the accessibility benefits of using a native radio input while being able to style the svg. We
now use
Patch Changes
- Updated dependencies
4.0.6
Patch Changes
- #4707, (opens new window)
6360c46009, (opens new window) - Reenable integration tests for Edge browser
4.0.5
Patch Changes
-
#3885, (opens new window)
6c525a8229, (opens new window) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade to prevent duplicates of tslib being bundled.
4.0.4
Patch Changes
- #4393, (opens new window)
76165ad82f, (opens new window) - Bump required because of conflicts on wadmal release
4.0.3
Patch Changes
- #3823, (opens new window)
e99262c6f0, (opens new window) - All form elements now have a default font explicitly set
4.0.2
Patch Changes
- #3293, (opens new window)
954cc87b62, (opens new window) - The readme and package information has been updated to point to the new design system website.
4.0.1
Patch Changes
- #3428, (opens new window)
db053b24d8, (opens new window) - Update all the theme imports to be tree-shakable
4.0.0
Major Changes
- #3335, (opens new window)
87f4720f27, (opens new window) - 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, (opens new window)
Patch Changes
- Updated dependencies
3.2.3
Patch Changes
- #2866, (opens new window)
54a9514fcf, (opens new window) - Build and supporting files will no longer be published to npm
3.2.2
Patch Changes
- Updated dependencies
3.2.1
Patch Changes
- #1868, (opens new window)
966efe3f95, (opens new window) - Change imports to comply with Atlassian conventions- Updated dependencies
3.2.0
Minor Changes
-
[minor]f0af33ead6, (opens new window):
Add name prop to RadioGroup
Patch Changes
- Updated dependencies 294c05bcdf, (opens new window):
- Updated dependencies dae900bf82, (opens new window):
- Updated dependencies
8c9e4f1ec6, (opens new window):
- @atlaskit/form@7.2.0
- @atlaskit/build-utils@2.6.4
- @atlaskit/docs@8.5.0
3.1.11
Patch Changes
- Updated dependencies 66dcced7a0, (opens new window):
- Updated dependencies fd5292fd5a, (opens new window):
- Updated dependencies 64fb94fb1e, (opens new window):
- Updated dependencies fd5292fd5a, (opens new window):
- Updated dependencies eea5e9bd8c, (opens new window):
- Updated dependencies fd5292fd5a, (opens new window):
- Updated dependencies 109c1a2c0a, (opens new window):
- Updated dependencies
c57bb32f6d, (opens new window):
- @atlaskit/docs@8.4.0
- @atlaskit/icon@20.1.0
- @atlaskit/webdriver-runner@0.3.0
- @atlaskit/button@13.3.9
- @atlaskit/checkbox@10.1.10
- @atlaskit/form@7.1.5
3.1.10
Patch Changes
- Updated dependencies
e3f01787dd, (opens new window):
- @atlaskit/webdriver-runner@0.2.0
- @atlaskit/button@13.3.8
- @atlaskit/checkbox@10.1.9
- @atlaskit/form@7.1.4
3.1.9
Patch Changes
-
[patch]6548261c9a, (opens new window):
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies 6548261c9a, (opens new window):
- @atlaskit/docs@8.3.2
- @atlaskit/visual-regression@0.1.9
- @atlaskit/analytics-next@6.3.5
- @atlaskit/button@13.3.7
- @atlaskit/checkbox@10.1.7
- @atlaskit/form@7.1.2
- @atlaskit/icon@20.0.1
- @atlaskit/theme@9.5.1
3.1.8
Patch Changes
- Updated dependencies
c0102a3ea2, (opens new window):
- @atlaskit/icon@20.0.0
- @atlaskit/form@7.1.1
- @atlaskit/docs@8.3.1
- @atlaskit/button@13.3.6
- @atlaskit/checkbox@10.1.6
3.1.7
Patch Changes
-
[patch]e20d7996ca, (opens new window):
Fixes radio value from
string | numberto juststringto match the current implementation.- Updated dependencies ec76622d34, (opens new window): -
Updated dependencies d93de8e56e, (opens new window):
- @atlaskit/form@7.0.1
3.1.6
Patch Changes
-
[patch]4a223473c5, (opens new window):
Removes babel/runtime from dependencies. Users should see a smaller bundlesize as a result- Updated dependencies 28f8f0e089, (opens new window):
-
Updated dependencies 82747f2922, (opens new window):
-
Updated dependencies 4a223473c5, (opens new window):
-
Updated dependencies 6a8bc6f866, (opens new window):
- @atlaskit/icon@19.1.0
- @atlaskit/theme@9.5.0
- @atlaskit/button@13.3.5
- @atlaskit/checkbox@10.1.5
3.1.5
Patch Changes
-
[patch]24865cfaff, (opens new window):
Form has been converted to Typescript. TypeScript consumers will now get static type safety. Flow types are no longer provided. No API changes.- Updated dependencies 24865cfaff, (opens new window):
-
Updated dependencies 24865cfaff, (opens new window):
-
Updated dependencies 24865cfaff, (opens new window):
-
Updated dependencies 24865cfaff, (opens new window):
-
Updated dependencies 24865cfaff, (opens new window):
- @atlaskit/analytics-next@6.3.3
- @atlaskit/form@7.0.0
- @atlaskit/checkbox@10.1.4
3.1.4
Patch Changes
-
[patch]d222c2b987, (opens new window):
Theme has been converted to Typescript. Typescript consumers will now get static type safety. Flow types are no longer provided.
Breaking
** getTokens props changes ** When defining the value function passed into a ThemeProvider, the getTokens parameter cannot be called without props; if no props are provided an empty object
{}must be passed in:<CustomTheme.Provider value={t => ({ ...t(), backgroundColor: '#333'})} >becomes:
<CustomTheme.Provider value={t => ({ ...t({}), backgroundColor: '#333'})} >** Color palette changes ** Color palettes have been moved into their own file. Users will need to update imports from this:
import { colors } from '@atlaskit/theme'; colors.colorPalette('8');to this:
import { colorPalette } from '@atlaskit/theme'; colorPalette.colorPalette('8');or for multi entry-point users:
import * as colors from '@atlaskit/theme/colors'; colors.colorPalette('8');to this:
import * as colorPalettes from '@atlaskit/theme/color-palette'; colorPalettes.colorPalette('8');
3.1.3
Patch Changes
-
[patch]70e57645f2, (opens new window):
Updates controlled example to show better pattern for state duplication between RadioGroup and Form
3.1.2
Patch Changes
-
[patch]35d2229b2a, (opens new window):
Adding missing license to packages and update to Copyright 2019 Atlassian Pty Ltd.
3.1.1
Patch Changes
-
[patch]a2d0043716, (opens new window):
Updated version of analytics-next to fix potential incompatibilities with TS 3.6
3.1.0
Minor Changes
-
[minor]ff521a0e20, (opens new window):
Adding an optional prop
testIdthat will set the attribute valuedata-testid. It will help products to write better integration and end to end tests.
3.0.18
- Updated dependencies
97bab7fd28, (opens new window):
- @atlaskit/button@13.3.1
- @atlaskit/form@6.2.3
- @atlaskit/checkbox@10.0.0
- @atlaskit/docs@8.1.7
3.0.17
Patch Changes
-
[patch]7dc767eabb, (opens new window):
onChange is now marked as an optional prop
3.0.16
Patch Changes
-
[patch]097b696613, (opens new window):
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving non-relative imports as relative imports
3.0.15
Patch Changes
-
[patch]ecca4d1dbb, (opens new window):
Upgraded Typescript to 3.3.x
3.0.14
Patch Changes
-
[patch]708028db86, (opens new window):
Change all the imports to theme in Core to use multi entry points
3.0.13
Patch Changes
-
[patch]de35ce8c67, (opens new window):
Updates component maintainers
3.0.12
Patch Changes
-
[patch]926b43142b, (opens new window):
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
withAnalyticsForSumTypePropsalias has been removed, please usewithAnalyticsEventsAnalyticsContextWrappedCompalias has been removed, please usewithAnalyticsContext
Breaking changes to TypeScript annotations
withAnalyticsEventsnow infers proptypes automatically, consumers no longer need to provide props as a generic type.withAnalyticsContextnow infers proptypes automatically, consumers no longer need to provide props as a generic type.- Type
WithAnalyticsEventPropshas been renamed toWithAnalyticsEventsPropsto match source code - Type
CreateUIAnalyticsEventSignaturehas been renamed toCreateUIAnalyticsEventto match source code - Type
UIAnalyticsEventHandlerSignaturehas been renamed toUIAnalyticsEventHandlerto match source code - Type
AnalyticsEventsPayloadhas been renamed toAnalyticsEventPayload - Type
ObjectTypehas been removed, please useRecord<string, any>or[key: string]: any - Type
UIAnalyticsEventInterfacehas been removed, please useUIAnalyticsEvent - Type
AnalyticsEventInterfacehas been removed, please useAnalyticsEvent - Type
CreateAndFireEventFunctionremoved and should now be inferred by TypeScript - Type
AnalyticsEventUpdaterremoved and should now be inferred by TypeScript
3.0.11
Patch Changes
-
[patch]9f8ab1084b, (opens new window):
Consume analytics-next ts type definitions as an ambient declaration.
3.0.10
Patch Changes
-
[patch]bbff8a7d87, (opens new window):
Fixes bug, missing version.json file
3.0.9
Patch Changes
-
[patch]18dfac7332, (opens new window):
In this PR, we are:
- Re-introducing dist build folders
- Adding back cjs
- Replacing es5 by cjs and es2015 by esm
- Creating folders at the root for entry-points
- Removing the generation of the entry-points at the root Please see this ticket, (opens new window) or this page, (opens new window) for further details
3.0.8
Patch Changes
-
[patch]d0db01b410, (opens new window):
TypeScript users of withAnalyticsEvents and withAnalyticsContext are now required to provide props as a generic type. This is so that TypeScript can correctly calculate the props and defaultProps of the returned component.
Before:
withAnalyticsEvents()(Button) as ComponentClass<Props>;After:
withAnalyticsEvents<Props>()(Button);
3.0.7
- Updated dependencies
87a2638655, (opens new window):
- @atlaskit/button@13.0.10
- @atlaskit/form@6.1.2
- @atlaskit/checkbox@9.0.0
3.0.6
- Updated dependencies
06326ef3f7, (opens new window):
- @atlaskit/docs@8.1.3
- @atlaskit/button@13.0.9
- @atlaskit/checkbox@8.0.5
- @atlaskit/form@6.1.1
- @atlaskit/icon@19.0.0
3.0.5
Patch Changes
-
[patch]4615439434, (opens new window):
index.ts will now be ignored when publishing to npm
3.0.4
Patch Changes
-
[patch]93bcf314c6, (opens new window):
Added missing tslib dep
3.0.3
- Updated dependencies
cfc3c8adb3, (opens new window):
- @atlaskit/docs@8.1.2
- @atlaskit/button@13.0.8
- @atlaskit/checkbox@8.0.2
- @atlaskit/form@6.0.5
- @atlaskit/icon@18.0.0
3.0.2
- Updated dependencies
70862830d6, (opens new window):
- @atlaskit/button@13.0.6
- @atlaskit/form@6.0.4
- @atlaskit/checkbox@8.0.0
- @atlaskit/icon@17.2.0
- @atlaskit/theme@9.1.0
3.0.1
- [patch]b0ef06c685, (opens new window):
- This is just a safety release in case anything strange happened in in the previous one. See Pull Request #5942 for details
3.0.0
- [major]1da5351f72, (opens new window):
- @atlaskit/radio has been converted to Typescript. Typescript consumers will now get static type safety. Flow types are no longer provided. No API or behavioural changes.
2.0.0
- [major]7c17b35107, (opens new window):
- 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.
1.0.0
- [major]6c4e41ff36, (opens new window):
- This major release indicates that this package is no longer under dev preview but is ready for use
0.5.3
- Updated dependencies
9c0b4744be, (opens new window):
- @atlaskit/docs@7.0.3
- @atlaskit/button@12.0.3
- @atlaskit/checkbox@6.0.4
- @atlaskit/form@5.2.7
- @atlaskit/icon@16.0.9
- @atlaskit/section-message@2.0.3
- @atlaskit/theme@8.1.7
0.5.2
- Updated dependencies
1e826b2966, (opens new window):
- @atlaskit/docs@7.0.2
- @atlaskit/analytics-next@4.0.3
- @atlaskit/checkbox@6.0.3
- @atlaskit/form@5.2.5
- @atlaskit/icon@16.0.8
- @atlaskit/section-message@2.0.2
- @atlaskit/theme@8.1.6
- @atlaskit/button@12.0.0
0.5.1
- Updated dependencies
9d5cc39394, (opens new window):
- @atlaskit/docs@7.0.1
- @atlaskit/analytics-next@4.0.1
- @atlaskit/checkbox@6.0.1
- @atlaskit/form@5.2.1
- @atlaskit/icon@16.0.5
- @atlaskit/section-message@2.0.1
- @atlaskit/theme@8.0.1
- @atlaskit/button@11.0.0
0.5.0
-
[minor]76299208e6, (opens new window):
- 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
importandexportdeclarations.The major reason for doing this is to allow us to support multiple entry points in packages, e.g:
import colors from `@atlaskit/theme/colors`;Previously this was sort of possible for consumers by doing something like:
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, (opens new window) (for external) if you have any questions or queries about this.
0.4.7
- [patch]942e0aec04, (opens new window):
- Added test to make sure props are passed hidden input
0.4.6
- Updated dependencies
d7ef59d432, (opens new window):
- @atlaskit/docs@6.0.1
- @atlaskit/button@10.1.2
- @atlaskit/checkbox@5.0.11
- @atlaskit/form@5.1.2
- @atlaskit/section-message@1.0.16
- @atlaskit/icon@16.0.0
0.4.5
-
[patch]a048a85, (opens new window):
- Updated to be compatible with new Forms API
-
Updated dependencies 647a46f, (opens new window):
- @atlaskit/form@5.0.0
0.4.4
- Updated dependencies 58b84fa, (opens new window):
- @atlaskit/analytics-next@3.1.2
- @atlaskit/button@10.1.1
- @atlaskit/checkbox@5.0.9
- @atlaskit/form@4.0.21
- @atlaskit/icon@15.0.2
- @atlaskit/section-message@1.0.14
- @atlaskit/theme@7.0.1
- @atlaskit/docs@6.0.0
0.4.3
- Updated dependencies d13242d, (opens new window):
- @atlaskit/docs@5.2.3
- @atlaskit/button@10.0.4
- @atlaskit/field-base@11.0.12
- @atlaskit/form@4.0.20
- @atlaskit/icon@15.0.1
- @atlaskit/section-message@1.0.13
- @atlaskit/theme@7.0.0
0.4.2
- Updated dependencies ab9b69c, (opens new window):
- @atlaskit/docs@5.2.2
- @atlaskit/button@10.0.1
- @atlaskit/field-base@11.0.11
- @atlaskit/form@4.0.19
- @atlaskit/section-message@1.0.12
- @atlaskit/icon@15.0.0
0.4.1
- Updated dependencies 6998f11, (opens new window):
- @atlaskit/docs@5.2.1
- @atlaskit/analytics-next@3.1.1
- @atlaskit/form@4.0.18
- @atlaskit/icon@14.6.1
- @atlaskit/section-message@1.0.11
- @atlaskit/theme@6.2.1
- @atlaskit/button@10.0.0
0.4.0
- [minor]b42680b, (opens new window):
- Add isDisabled prop to RadioGroup, once set will set the isDisabled value for all Radio elements within the group
0.3.0
- [minor]8199088, (opens new window):
- BREAKING: defaultCheckedValue and checkedValue props in the RadioGroup component now changed to defaultValue and value respectively
0.2.4
- [patch] Adds missing implicit @babel/runtime dependency b71751b, (opens new window)
0.2.3
- [patch] Updated dependencies
65c6514, (opens new window)
- @atlaskit/docs@5.0.8
- @atlaskit/button@9.0.13
- @atlaskit/field-base@11.0.8
- @atlaskit/form@4.0.10
- @atlaskit/section-message@1.0.8
- @atlaskit/icon@14.0.0
0.2.2
- [patch] Fixing analytics events for checkbox/radio/select 3e428e3, (opens new window)
0.2.1
- [patch] Fixed radio indent styling 88520b2, (opens new window)
0.2.0
- [minor] Removed radioInput component, replaced Radio children prop with optional label prop to enable the use case facilitated by RadioInput. Added aria-label prop to Radio for accessibility. Wrapped Radio component in Analytics. 866a29b, (opens new window)
0.1.0
- [minor] Dev release of @atlaskit/radio 2b37611, (opens new window)
0.0.3
- [patch] Adds sideEffects: false to allow proper tree shaking b5d6d04, (opens new window)
0.0.1
- [patch] Bump radio to include the new version of theme. ea62d3d, (opens new window)