@atlaskit/radio 5.6.5 → 5.6.7

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,17 @@
1
1
  # @atlaskit/radio
2
2
 
3
+ ## 5.6.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`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.
8
+
9
+ ## 5.6.6
10
+
11
+ ### Patch Changes
12
+
13
+ - [`2e1fa43ac4b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e1fa43ac4b) - update border width to use border spacing token
14
+
3
15
  ## 5.6.5
4
16
 
5
17
  ### 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.5";
22
+ var packageVersion = "5.6.7";
23
23
  var fontFamily = (0, _constants.fontFamily)();
24
24
  var noop = _noop.default;
25
25
  var labelPaddingStyles = (0, _react2.css)({
@@ -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') ? '1px' : 'calc(2px * 12 / 7)', " solid var(--radio-border-color)"),
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)"),
67
67
  borderRadius: "var(--ds-border-radius-circle, 50%)",
68
68
  MozAppearance: 'none',
69
69
  outline: 'none',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/radio",
3
- "version": "5.6.5",
3
+ "version": "5.6.7",
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.5";
13
+ const packageVersion = "5.6.7";
14
14
  const fontFamily = getFontFamily();
15
15
  const noop = __noop;
16
16
  const labelPaddingStyles = css({
@@ -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') ? '1px' : 'calc(2px * 12 / 7)'} solid var(--radio-border-color)`,
57
+ border: `${getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? "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',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/radio",
3
- "version": "5.6.5",
3
+ "version": "5.6.7",
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.5";
15
+ var packageVersion = "5.6.7";
16
16
  var fontFamily = getFontFamily();
17
17
  var noop = __noop;
18
18
  var labelPaddingStyles = css({
@@ -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') ? '1px' : 'calc(2px * 12 / 7)', " solid var(--radio-border-color)"),
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)"),
60
60
  borderRadius: "var(--ds-border-radius-circle, 50%)",
61
61
  MozAppearance: 'none',
62
62
  outline: 'none',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/radio",
3
- "version": "5.6.5",
3
+ "version": "5.6.7",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/radio",
3
- "version": "5.6.5",
3
+ "version": "5.6.7",
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/"
@@ -52,18 +52,13 @@
52
52
  "react": "^16.8.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@atlaskit/button": "^16.8.0",
56
- "@atlaskit/checkbox": "^12.6.0",
57
- "@atlaskit/docs": "^9.1.0",
58
- "@atlaskit/form": "^8.11.0",
59
- "@atlaskit/section-message": "^6.4.0",
55
+ "@af/accessibility-testing": "*",
60
56
  "@atlaskit/ssr": "*",
61
57
  "@atlaskit/visual-regression": "*",
62
58
  "@atlaskit/webdriver-runner": "*",
63
59
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
64
60
  "@atlassian/feature-flags-test-utils": "*",
65
61
  "@testing-library/react": "^12.1.5",
66
- "jest-axe": "^4.0.0",
67
62
  "react-dom": "^16.8.0",
68
63
  "storybook-addon-performance": "^0.16.0",
69
64
  "typescript": "~4.9.5"
@@ -1,91 +0,0 @@
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
- ```