@atlaskit/radio 5.6.7 → 5.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/radio
2
2
 
3
+ ## 5.6.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`931210a5b65`](https://bitbucket.org/atlassian/atlassian-frontend/commits/931210a5b65) - use new feature flag for border contrast update
8
+
3
9
  ## 5.6.7
4
10
 
5
11
  ### Patch Changes
package/dist/cjs/radio.js CHANGED
@@ -19,7 +19,7 @@ var _styles = _interopRequireDefault(require("./styles"));
19
19
  var _excluded = ["ariaLabel", "isDisabled", "isRequired", "isInvalid", "isChecked", "label", "mode", "name", "onChange", "value", "testId", "analyticsContext"];
20
20
  /** @jsx jsx */
21
21
  var packageName = "@atlaskit/radio";
22
- var packageVersion = "5.6.7";
22
+ var packageVersion = "5.6.8";
23
23
  var fontFamily = (0, _constants.fontFamily)();
24
24
  var noop = _noop.default;
25
25
  var labelPaddingStyles = (0, _react2.css)({
@@ -31,7 +31,7 @@ var labelStyles = (0, _react2.css)({
31
31
  position: 'relative',
32
32
  alignItems: 'flex-start',
33
33
  fontFamily: fontFamily,
34
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
34
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
35
35
  '&[data-disabled]': {
36
36
  color: "var(--ds-text-disabled, ".concat(_colors.N80, ")"),
37
37
  cursor: 'not-allowed'
@@ -63,7 +63,7 @@ var radioStyles = (0, _react2.css)({
63
63
  backgroundColor: 'var(--radio-background-color)',
64
64
  /* Border should multiply by 24/14 to offset scale, a scale of 12 / 7 is to fix a Chrome bug that makes the circle become an oval and the
65
65
  inner circle not be centred at various zoom levels */
66
- border: "".concat((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-checkbox_nyoiu') ? "var(--ds-border-width, 1px)" : 'calc(2px * 12 / 7)', " solid var(--radio-border-color)"),
66
+ border: "".concat((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-width, 1px)" : 'calc(2px * 12 / 7)', " solid var(--radio-border-color)"),
67
67
  borderRadius: "var(--ds-border-radius-circle, 50%)",
68
68
  MozAppearance: 'none',
69
69
  outline: 'none',
@@ -120,7 +120,7 @@ var radioStyles = (0, _react2.css)({
120
120
  '&:checked:focus': {
121
121
  '--radio-border-color': 'var(--local-border-focus)'
122
122
  },
123
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
123
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
124
124
  '&[data-invalid], &:checked[data-invalid]': {
125
125
  '--radio-border-color': 'var(--local-invalid)'
126
126
  },
@@ -160,36 +160,32 @@ var RadioWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Radio(props, re
160
160
  var radioCustomProperties = (0, _react.useMemo)(function () {
161
161
  return (0, _react2.css)((0, _styles.default)(mode));
162
162
  }, [mode]);
163
- return (
164
- // https://product-fabric.atlassian.net/browse/DST-1971
165
- // eslint-disable-next-line jsx-a11y/label-has-associated-control,jsx-a11y/label-has-for
166
- (0, _react2.jsx)("label", {
167
- "data-testid": testId && "".concat(testId, "--radio-label"),
168
- "data-disabled": isDisabled ? 'true' : undefined,
169
- css: [labelStyles, mode === 'light' ? lightLabelStyles : darkLabelStyles]
170
- }, (0, _react2.jsx)("input", (0, _extends2.default)({}, rest, {
171
- "aria-label": ariaLabel,
172
- checked: isChecked,
173
- disabled: isDisabled,
174
- name: name,
175
- onChange: onChangeAnalytics,
176
- required: isRequired,
177
- type: "radio",
178
- value: value,
179
- "data-testid": testId && "".concat(testId, "--radio-input")
180
- // isInvalid is used in a nonstandard way so cannot
181
- // use :invalid selector
182
- ,
183
- "data-invalid": isInvalid ? 'true' : undefined
184
- // TODO radioCustomProperties can be defined at top of file when legacy theming removed
185
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
186
- ,
187
- css: [radioStyles, radioCustomProperties],
188
- ref: ref
189
- })), label ? (0, _react2.jsx)("span", {
190
- css: labelPaddingStyles
191
- }, label) : null)
192
- );
163
+ return (0, _react2.jsx)("label", {
164
+ "data-testid": testId && "".concat(testId, "--radio-label"),
165
+ "data-disabled": isDisabled ? 'true' : undefined,
166
+ css: [labelStyles, mode === 'light' ? lightLabelStyles : darkLabelStyles]
167
+ }, (0, _react2.jsx)("input", (0, _extends2.default)({}, rest, {
168
+ "aria-label": ariaLabel,
169
+ checked: isChecked,
170
+ disabled: isDisabled,
171
+ name: name,
172
+ onChange: onChangeAnalytics,
173
+ required: isRequired,
174
+ type: "radio",
175
+ value: value,
176
+ "data-testid": testId && "".concat(testId, "--radio-input")
177
+ // isInvalid is used in a nonstandard way so cannot
178
+ // use :invalid selector
179
+ ,
180
+ "data-invalid": isInvalid ? 'true' : undefined
181
+ // TODO radioCustomProperties can be defined at top of file when legacy theming removed
182
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
183
+ ,
184
+ css: [radioStyles, radioCustomProperties],
185
+ ref: ref
186
+ })), label ? (0, _react2.jsx)("span", {
187
+ css: labelPaddingStyles
188
+ }, label) : null);
193
189
  });
194
190
 
195
191
  /**
@@ -18,8 +18,8 @@ var radioThemeColors = {
18
18
  dotChecked: "var(--ds-icon-inverse, ".concat(_colors.N10, ")"),
19
19
  dotDisabled: "var(--ds-icon-disabled, ".concat(_colors.N70, ")"),
20
20
  dotActive: "var(--ds-icon-inverse, ".concat(_colors.B400, ")"),
21
- border: "var(--ds-border-input, ".concat((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-checkbox_nyoiu') ? _colors.N100 : _colors.N40, ")"),
22
- borderHover: "var(--ds-border-input, ".concat((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-checkbox_nyoiu') ? _colors.N100 : _colors.N40, ")"),
21
+ border: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-bold, ".concat(_colors.N100, ")") : "var(--ds-border-input, ".concat(_colors.N40, ")"),
22
+ borderHover: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-bold, ".concat(_colors.N100, ")") : "var(--ds-border-input, ".concat(_colors.N40, ")"),
23
23
  borderDisabled: "var(--ds-border-disabled, ".concat(_colors.N20, ")"),
24
24
  borderFocus: "var(--ds-border-focused, ".concat(_colors.B100, ")")
25
25
  },
@@ -34,7 +34,7 @@ var radioThemeColors = {
34
34
  dotChecked: "var(--ds-icon-inverse, ".concat(_colors.DN10, ")"),
35
35
  dotDisabled: "var(--ds-icon-disabled, ".concat(_colors.DN90, ")"),
36
36
  dotActive: "var(--ds-icon-inverse, ".concat(_colors.DN10, ")"),
37
- border: "var(--ds-border-input, ".concat((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-checkbox_nyoiu') ? _colors.DN200 : _colors.DN80, ")"),
37
+ border: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-bold, ".concat(_colors.DN200, ")") : "var(--ds-border-input, ".concat(_colors.DN80, ")"),
38
38
  borderHover: "var(--ds-border-input, ".concat(_colors.DN200, ")"),
39
39
  borderDisabled: "var(--ds-border-disabled, ".concat(_colors.DN10, ")"),
40
40
  borderFocus: "var(--ds-border-focused, ".concat(_colors.B75, ")")
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/radio",
3
- "version": "5.6.7",
3
+ "version": "5.6.8",
4
4
  "sideEffects": false
5
5
  }
@@ -10,7 +10,7 @@ import GlobalTheme from '@atlaskit/theme/components';
10
10
  import { fontFamily as getFontFamily } from '@atlaskit/theme/constants';
11
11
  import getRadioCustomProperties from './styles';
12
12
  const packageName = "@atlaskit/radio";
13
- const packageVersion = "5.6.7";
13
+ const packageVersion = "5.6.8";
14
14
  const fontFamily = getFontFamily();
15
15
  const noop = __noop;
16
16
  const labelPaddingStyles = css({
@@ -22,7 +22,7 @@ const labelStyles = css({
22
22
  position: 'relative',
23
23
  alignItems: 'flex-start',
24
24
  fontFamily: fontFamily,
25
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
25
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
26
26
  '&[data-disabled]': {
27
27
  color: `var(--ds-text-disabled, ${N80})`,
28
28
  cursor: 'not-allowed'
@@ -54,7 +54,7 @@ const radioStyles = css({
54
54
  backgroundColor: 'var(--radio-background-color)',
55
55
  /* Border should multiply by 24/14 to offset scale, a scale of 12 / 7 is to fix a Chrome bug that makes the circle become an oval and the
56
56
  inner circle not be centred at various zoom levels */
57
- border: `${getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? "var(--ds-border-width, 1px)" : 'calc(2px * 12 / 7)'} solid var(--radio-border-color)`,
57
+ border: `${getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-width, 1px)" : 'calc(2px * 12 / 7)'} solid var(--radio-border-color)`,
58
58
  borderRadius: "var(--ds-border-radius-circle, 50%)",
59
59
  MozAppearance: 'none',
60
60
  outline: 'none',
@@ -111,7 +111,7 @@ const radioStyles = css({
111
111
  '&:checked:focus': {
112
112
  '--radio-border-color': 'var(--local-border-focus)'
113
113
  },
114
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
114
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
115
115
  '&[data-invalid], &:checked[data-invalid]': {
116
116
  '--radio-border-color': 'var(--local-invalid)'
117
117
  },
@@ -148,36 +148,32 @@ const RadioWithMode = /*#__PURE__*/forwardRef(function Radio(props, ref) {
148
148
  packageVersion
149
149
  });
150
150
  const radioCustomProperties = useMemo(() => css(getRadioCustomProperties(mode)), [mode]);
151
- return (
152
- // https://product-fabric.atlassian.net/browse/DST-1971
153
- // eslint-disable-next-line jsx-a11y/label-has-associated-control,jsx-a11y/label-has-for
154
- jsx("label", {
155
- "data-testid": testId && `${testId}--radio-label`,
156
- "data-disabled": isDisabled ? 'true' : undefined,
157
- css: [labelStyles, mode === 'light' ? lightLabelStyles : darkLabelStyles]
158
- }, jsx("input", _extends({}, rest, {
159
- "aria-label": ariaLabel,
160
- checked: isChecked,
161
- disabled: isDisabled,
162
- name: name,
163
- onChange: onChangeAnalytics,
164
- required: isRequired,
165
- type: "radio",
166
- value: value,
167
- "data-testid": testId && `${testId}--radio-input`
168
- // isInvalid is used in a nonstandard way so cannot
169
- // use :invalid selector
170
- ,
171
- "data-invalid": isInvalid ? 'true' : undefined
172
- // TODO radioCustomProperties can be defined at top of file when legacy theming removed
173
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
174
- ,
175
- css: [radioStyles, radioCustomProperties],
176
- ref: ref
177
- })), label ? jsx("span", {
178
- css: labelPaddingStyles
179
- }, label) : null)
180
- );
151
+ return jsx("label", {
152
+ "data-testid": testId && `${testId}--radio-label`,
153
+ "data-disabled": isDisabled ? 'true' : undefined,
154
+ css: [labelStyles, mode === 'light' ? lightLabelStyles : darkLabelStyles]
155
+ }, jsx("input", _extends({}, rest, {
156
+ "aria-label": ariaLabel,
157
+ checked: isChecked,
158
+ disabled: isDisabled,
159
+ name: name,
160
+ onChange: onChangeAnalytics,
161
+ required: isRequired,
162
+ type: "radio",
163
+ value: value,
164
+ "data-testid": testId && `${testId}--radio-input`
165
+ // isInvalid is used in a nonstandard way so cannot
166
+ // use :invalid selector
167
+ ,
168
+ "data-invalid": isInvalid ? 'true' : undefined
169
+ // TODO radioCustomProperties can be defined at top of file when legacy theming removed
170
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
171
+ ,
172
+ css: [radioStyles, radioCustomProperties],
173
+ ref: ref
174
+ })), label ? jsx("span", {
175
+ css: labelPaddingStyles
176
+ }, label) : null);
181
177
  });
182
178
 
183
179
  /**
@@ -12,8 +12,8 @@ const radioThemeColors = {
12
12
  dotChecked: `var(--ds-icon-inverse, ${N10})`,
13
13
  dotDisabled: `var(--ds-icon-disabled, ${N70})`,
14
14
  dotActive: `var(--ds-icon-inverse, ${B400})`,
15
- border: `var(--ds-border-input, ${getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? N100 : N40})`,
16
- borderHover: `var(--ds-border-input, ${getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? N100 : N40})`,
15
+ border: getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? `var(--ds-border-bold, ${N100})` : `var(--ds-border-input, ${N40})`,
16
+ borderHover: getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? `var(--ds-border-bold, ${N100})` : `var(--ds-border-input, ${N40})`,
17
17
  borderDisabled: `var(--ds-border-disabled, ${N20})`,
18
18
  borderFocus: `var(--ds-border-focused, ${B100})`
19
19
  },
@@ -28,7 +28,7 @@ const radioThemeColors = {
28
28
  dotChecked: `var(--ds-icon-inverse, ${DN10})`,
29
29
  dotDisabled: `var(--ds-icon-disabled, ${DN90})`,
30
30
  dotActive: `var(--ds-icon-inverse, ${DN10})`,
31
- border: `var(--ds-border-input, ${getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? DN200 : DN80})`,
31
+ border: getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? `var(--ds-border-bold, ${DN200})` : `var(--ds-border-input, ${DN80})`,
32
32
  borderHover: `var(--ds-border-input, ${DN200})`,
33
33
  borderDisabled: `var(--ds-border-disabled, ${DN10})`,
34
34
  borderFocus: `var(--ds-border-focused, ${B75})`
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/radio",
3
- "version": "5.6.7",
3
+ "version": "5.6.8",
4
4
  "sideEffects": false
5
5
  }
package/dist/esm/radio.js CHANGED
@@ -12,7 +12,7 @@ import GlobalTheme from '@atlaskit/theme/components';
12
12
  import { fontFamily as getFontFamily } from '@atlaskit/theme/constants';
13
13
  import getRadioCustomProperties from './styles';
14
14
  var packageName = "@atlaskit/radio";
15
- var packageVersion = "5.6.7";
15
+ var packageVersion = "5.6.8";
16
16
  var fontFamily = getFontFamily();
17
17
  var noop = __noop;
18
18
  var labelPaddingStyles = css({
@@ -24,7 +24,7 @@ var labelStyles = css({
24
24
  position: 'relative',
25
25
  alignItems: 'flex-start',
26
26
  fontFamily: fontFamily,
27
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
27
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
28
28
  '&[data-disabled]': {
29
29
  color: "var(--ds-text-disabled, ".concat(N80, ")"),
30
30
  cursor: 'not-allowed'
@@ -56,7 +56,7 @@ var radioStyles = css({
56
56
  backgroundColor: 'var(--radio-background-color)',
57
57
  /* Border should multiply by 24/14 to offset scale, a scale of 12 / 7 is to fix a Chrome bug that makes the circle become an oval and the
58
58
  inner circle not be centred at various zoom levels */
59
- border: "".concat(getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? "var(--ds-border-width, 1px)" : 'calc(2px * 12 / 7)', " solid var(--radio-border-color)"),
59
+ border: "".concat(getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-width, 1px)" : 'calc(2px * 12 / 7)', " solid var(--radio-border-color)"),
60
60
  borderRadius: "var(--ds-border-radius-circle, 50%)",
61
61
  MozAppearance: 'none',
62
62
  outline: 'none',
@@ -113,7 +113,7 @@ var radioStyles = css({
113
113
  '&:checked:focus': {
114
114
  '--radio-border-color': 'var(--local-border-focus)'
115
115
  },
116
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
116
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
117
117
  '&[data-invalid], &:checked[data-invalid]': {
118
118
  '--radio-border-color': 'var(--local-invalid)'
119
119
  },
@@ -153,36 +153,32 @@ var RadioWithMode = /*#__PURE__*/forwardRef(function Radio(props, ref) {
153
153
  var radioCustomProperties = useMemo(function () {
154
154
  return css(getRadioCustomProperties(mode));
155
155
  }, [mode]);
156
- return (
157
- // https://product-fabric.atlassian.net/browse/DST-1971
158
- // eslint-disable-next-line jsx-a11y/label-has-associated-control,jsx-a11y/label-has-for
159
- jsx("label", {
160
- "data-testid": testId && "".concat(testId, "--radio-label"),
161
- "data-disabled": isDisabled ? 'true' : undefined,
162
- css: [labelStyles, mode === 'light' ? lightLabelStyles : darkLabelStyles]
163
- }, jsx("input", _extends({}, rest, {
164
- "aria-label": ariaLabel,
165
- checked: isChecked,
166
- disabled: isDisabled,
167
- name: name,
168
- onChange: onChangeAnalytics,
169
- required: isRequired,
170
- type: "radio",
171
- value: value,
172
- "data-testid": testId && "".concat(testId, "--radio-input")
173
- // isInvalid is used in a nonstandard way so cannot
174
- // use :invalid selector
175
- ,
176
- "data-invalid": isInvalid ? 'true' : undefined
177
- // TODO radioCustomProperties can be defined at top of file when legacy theming removed
178
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
179
- ,
180
- css: [radioStyles, radioCustomProperties],
181
- ref: ref
182
- })), label ? jsx("span", {
183
- css: labelPaddingStyles
184
- }, label) : null)
185
- );
156
+ return jsx("label", {
157
+ "data-testid": testId && "".concat(testId, "--radio-label"),
158
+ "data-disabled": isDisabled ? 'true' : undefined,
159
+ css: [labelStyles, mode === 'light' ? lightLabelStyles : darkLabelStyles]
160
+ }, jsx("input", _extends({}, rest, {
161
+ "aria-label": ariaLabel,
162
+ checked: isChecked,
163
+ disabled: isDisabled,
164
+ name: name,
165
+ onChange: onChangeAnalytics,
166
+ required: isRequired,
167
+ type: "radio",
168
+ value: value,
169
+ "data-testid": testId && "".concat(testId, "--radio-input")
170
+ // isInvalid is used in a nonstandard way so cannot
171
+ // use :invalid selector
172
+ ,
173
+ "data-invalid": isInvalid ? 'true' : undefined
174
+ // TODO radioCustomProperties can be defined at top of file when legacy theming removed
175
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
176
+ ,
177
+ css: [radioStyles, radioCustomProperties],
178
+ ref: ref
179
+ })), label ? jsx("span", {
180
+ css: labelPaddingStyles
181
+ }, label) : null);
186
182
  });
187
183
 
188
184
  /**
@@ -12,8 +12,8 @@ var radioThemeColors = {
12
12
  dotChecked: "var(--ds-icon-inverse, ".concat(N10, ")"),
13
13
  dotDisabled: "var(--ds-icon-disabled, ".concat(N70, ")"),
14
14
  dotActive: "var(--ds-icon-inverse, ".concat(B400, ")"),
15
- border: "var(--ds-border-input, ".concat(getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? N100 : N40, ")"),
16
- borderHover: "var(--ds-border-input, ".concat(getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? N100 : N40, ")"),
15
+ border: getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-bold, ".concat(N100, ")") : "var(--ds-border-input, ".concat(N40, ")"),
16
+ borderHover: getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-bold, ".concat(N100, ")") : "var(--ds-border-input, ".concat(N40, ")"),
17
17
  borderDisabled: "var(--ds-border-disabled, ".concat(N20, ")"),
18
18
  borderFocus: "var(--ds-border-focused, ".concat(B100, ")")
19
19
  },
@@ -28,7 +28,7 @@ var radioThemeColors = {
28
28
  dotChecked: "var(--ds-icon-inverse, ".concat(DN10, ")"),
29
29
  dotDisabled: "var(--ds-icon-disabled, ".concat(DN90, ")"),
30
30
  dotActive: "var(--ds-icon-inverse, ".concat(DN10, ")"),
31
- border: "var(--ds-border-input, ".concat(getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? DN200 : DN80, ")"),
31
+ border: getBooleanFF('platform.design-system-team.update-border-radio-checkbox_7askv') ? "var(--ds-border-bold, ".concat(DN200, ")") : "var(--ds-border-input, ".concat(DN80, ")"),
32
32
  borderHover: "var(--ds-border-input, ".concat(DN200, ")"),
33
33
  borderDisabled: "var(--ds-border-disabled, ".concat(DN10, ")"),
34
34
  borderFocus: "var(--ds-border-focused, ".concat(B75, ")")
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/radio",
3
- "version": "5.6.7",
3
+ "version": "5.6.8",
4
4
  "sideEffects": false
5
5
  }
@@ -7,9 +7,9 @@ export default function getRadioCustomProperties(mode: ThemeModes): {
7
7
  '--local-background-checked-hover': "var(--ds-background-selected-bold-hovered)";
8
8
  '--local-background-disabled': "var(--ds-background-disabled)";
9
9
  '--local-background-hover': "var(--ds-background-input-hovered)";
10
- '--local-border': "var(--ds-border-input)";
10
+ '--local-border': "var(--ds-border-bold)" | "var(--ds-border-input)";
11
11
  '--local-border-disabled': "var(--ds-border-disabled)";
12
- '--local-border-hover': "var(--ds-border-input)";
12
+ '--local-border-hover': "var(--ds-border-bold)" | "var(--ds-border-input)";
13
13
  '--local-border-focus': "var(--ds-border-focused)";
14
14
  '--local-dot-active': "var(--ds-icon-inverse)";
15
15
  '--local-dot-checked': "var(--ds-icon-inverse)";
@@ -7,9 +7,9 @@ export default function getRadioCustomProperties(mode: ThemeModes): {
7
7
  '--local-background-checked-hover': "var(--ds-background-selected-bold-hovered)";
8
8
  '--local-background-disabled': "var(--ds-background-disabled)";
9
9
  '--local-background-hover': "var(--ds-background-input-hovered)";
10
- '--local-border': "var(--ds-border-input)";
10
+ '--local-border': "var(--ds-border-bold)" | "var(--ds-border-input)";
11
11
  '--local-border-disabled': "var(--ds-border-disabled)";
12
- '--local-border-hover': "var(--ds-border-input)";
12
+ '--local-border-hover': "var(--ds-border-bold)" | "var(--ds-border-input)";
13
13
  '--local-border-focus': "var(--ds-border-focused)";
14
14
  '--local-dot-active': "var(--ds-icon-inverse)";
15
15
  '--local-dot-checked': "var(--ds-icon-inverse)";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/radio",
3
- "version": "5.6.7",
3
+ "version": "5.6.8",
4
4
  "description": "A radio input allows users to select only one option from a number of choices. Radio is generally displayed in a radio group.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -23,7 +23,7 @@
23
23
  "sideEffects": false,
24
24
  "atlaskit:src": "src/index.tsx",
25
25
  "atlassian": {
26
- "team": "Design System Team",
26
+ "team": "Design System Maker Experience",
27
27
  "releaseModel": "continuous",
28
28
  "productPushConsumption": [
29
29
  "jira"
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/ds-lib": "^2.2.0",
45
45
  "@atlaskit/platform-feature-flags": "^0.2.0",
46
46
  "@atlaskit/theme": "^12.5.0",
47
- "@atlaskit/tokens": "^1.11.0",
47
+ "@atlaskit/tokens": "^1.13.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@emotion/react": "^11.7.1"
50
50
  },
@@ -89,7 +89,7 @@
89
89
  }
90
90
  },
91
91
  "platform-feature-flags": {
92
- "platform.design-system-team.border-checkbox_nyoiu": {
92
+ "platform.design-system-team.update-border-radio-checkbox_7askv": {
93
93
  "type": "boolean"
94
94
  }
95
95
  },
@@ -0,0 +1,91 @@
1
+ ## API Report File for "@atlaskit/radio"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ /// <reference types="react" />
8
+
9
+ import { ChangeEvent } from 'react';
10
+ import { ForwardRefExoticComponent } from 'react';
11
+ import { InputHTMLAttributes } from 'react';
12
+ import { MemoExoticComponent } from 'react';
13
+ import { default as React_2 } from 'react';
14
+ import { ReactNode } from 'react';
15
+ import { RefAttributes } from 'react';
16
+ import { SyntheticEvent } from 'react';
17
+ import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
18
+ import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
19
+
20
+ // @public (undocumented)
21
+ type OptionPropType = {
22
+ isDisabled?: boolean;
23
+ label?: ReactNode;
24
+ name?: string;
25
+ value?: RadioValue;
26
+ testId?: string;
27
+ };
28
+
29
+ // @public (undocumented)
30
+ type OptionsPropType = Array<OptionPropType>;
31
+
32
+ // @public
33
+ export const Radio: MemoExoticComponent<ForwardRefExoticComponent<Pick<Omit<Omit<InputHTMLAttributes<HTMLInputElement>, "aria-label" | "checked" | "disabled" | "required" | "value">, keyof {
34
+ ariaLabel?: string | undefined;
35
+ isDisabled?: boolean | undefined;
36
+ isRequired?: boolean | undefined;
37
+ isInvalid?: boolean | undefined;
38
+ isChecked?: boolean | undefined;
39
+ label?: ReactNode;
40
+ onChange?: ((e: ChangeEvent<HTMLInputElement>, analyticsEvent: UIAnalyticsEvent) => void) | undefined;
41
+ value?: string | undefined;
42
+ testId?: string | undefined;
43
+ analyticsContext?: Record<string, any> | undefined;
44
+ }> & {
45
+ ariaLabel?: string | undefined;
46
+ isDisabled?: boolean | undefined;
47
+ isRequired?: boolean | undefined;
48
+ isInvalid?: boolean | undefined;
49
+ isChecked?: boolean | undefined;
50
+ label?: ReactNode;
51
+ onChange?: ((e: ChangeEvent<HTMLInputElement>, analyticsEvent: UIAnalyticsEvent) => void) | undefined;
52
+ value?: string | undefined;
53
+ testId?: string | undefined;
54
+ analyticsContext?: Record<string, any> | undefined;
55
+ } & WithAnalyticsEventsProps, "about" | "accept" | "accessKey" | "alt" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "autoCapitalize" | "autoComplete" | "autoCorrect" | "autoFocus" | "autoSave" | "capture" | "children" | "className" | "color" | "contentEditable" | "contextMenu" | "createAnalyticsEvent" | "crossOrigin" | "dangerouslySetInnerHTML" | "datatype" | "defaultChecked" | "defaultValue" | "dir" | "draggable" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "hidden" | "id" | "inlist" | "inputMode" | "is" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "lang" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "onAbort" | "onAbortCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAuxClick" | "onAuxClickCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onBlur" | "onBlurCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onChangeCapture" | "onClick" | "onClickCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onContextMenu" | "onContextMenuCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onError" | "onErrorCapture" | "onFocus" | "onFocusCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onLoad" | "onLoadCapture" | "onLoadStart" | "onLoadStartCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onPaste" | "onPasteCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerOut" | "onPointerOutCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerUp" | "onPointerUpCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onReset" | "onResetCapture" | "onScroll" | "onScrollCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onSelect" | "onSelectCapture" | "onStalled" | "onStalledCapture" | "onSubmit" | "onSubmitCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onWheel" | "onWheelCapture" | "pattern" | "placeholder" | "prefix" | "property" | "radioGroup" | "readOnly" | "resource" | "results" | "role" | "security" | "size" | "slot" | "spellCheck" | "src" | "step" | "style" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "tabIndex" | "title" | "type" | "typeof" | "unselectable" | "vocab" | "width" | keyof {
56
+ ariaLabel?: string | undefined;
57
+ isDisabled?: boolean | undefined;
58
+ isRequired?: boolean | undefined;
59
+ isInvalid?: boolean | undefined;
60
+ isChecked?: boolean | undefined;
61
+ label?: ReactNode;
62
+ onChange?: ((e: ChangeEvent<HTMLInputElement>, analyticsEvent: UIAnalyticsEvent) => void) | undefined;
63
+ value?: string | undefined;
64
+ testId?: string | undefined;
65
+ analyticsContext?: Record<string, any> | undefined;
66
+ }> & RefAttributes<HTMLInputElement>>>;
67
+
68
+ // @public (undocumented)
69
+ export function RadioGroup(props: RadioGroupProps): JSX.Element;
70
+
71
+ // @public (undocumented)
72
+ interface RadioGroupProps {
73
+ 'aria-labelledby'?: string;
74
+ analyticsContext?: Record<string, any>;
75
+ defaultValue?: RadioValue | null;
76
+ isDisabled?: boolean;
77
+ isInvalid?: boolean;
78
+ isRequired?: boolean;
79
+ name?: string;
80
+ onChange?: (e: React_2.ChangeEvent<HTMLInputElement>, analyticsEvent: UIAnalyticsEvent) => void;
81
+ onInvalid?: (event: SyntheticEvent<any>) => void;
82
+ options: OptionsPropType;
83
+ value?: RadioValue | null;
84
+ }
85
+
86
+ // @public (undocumented)
87
+ type RadioValue = string;
88
+
89
+ // (No @packageDocumentation comment for this package)
90
+
91
+ ```