@atlaskit/radio 5.6.0 → 5.6.2

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.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`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.
8
+
9
+ ## 5.6.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`77766ad157d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/77766ad157d) - Enrol packages to push-model consumption in Jira.
14
+
3
15
  ## 5.6.0
4
16
 
5
17
  ### Minor 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.0";
22
+ var packageVersion = "5.6.2";
23
23
  var fontFamily = (0, _constants.fontFamily)();
24
24
  var noop = _noop.default;
25
25
  var labelPaddingStyles = (0, _react2.css)({
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/radio",
3
- "version": "5.6.0",
3
+ "version": "5.6.2",
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.0";
13
+ const packageVersion = "5.6.2";
14
14
  const fontFamily = getFontFamily();
15
15
  const noop = __noop;
16
16
  const labelPaddingStyles = css({
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/radio",
3
- "version": "5.6.0",
3
+ "version": "5.6.2",
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.0";
15
+ var packageVersion = "5.6.2";
16
16
  var fontFamily = getFontFamily();
17
17
  var noop = __noop;
18
18
  var labelPaddingStyles = css({
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/radio",
3
- "version": "5.6.0",
3
+ "version": "5.6.2",
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.0",
3
+ "version": "5.6.2",
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/"
@@ -24,7 +24,10 @@
24
24
  "atlaskit:src": "src/index.tsx",
25
25
  "atlassian": {
26
26
  "team": "Design System Team",
27
- "releaseModel": "scheduled",
27
+ "releaseModel": "continuous",
28
+ "productPushConsumption": [
29
+ "jira"
30
+ ],
28
31
  "website": {
29
32
  "name": "Radio",
30
33
  "category": "Components"
@@ -60,6 +63,7 @@
60
63
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
61
64
  "@atlassian/feature-flags-test-utils": "*",
62
65
  "@testing-library/react": "^12.1.5",
66
+ "jest-axe": "^4.0.0",
63
67
  "react-dom": "^16.8.0",
64
68
  "storybook-addon-performance": "^0.16.0",
65
69
  "typescript": "~4.9.5"
@@ -83,7 +87,8 @@
83
87
  "emotion"
84
88
  ],
85
89
  "design-tokens": [
86
- "color"
90
+ "color",
91
+ "spacing"
87
92
  ],
88
93
  "deprecation": "no-deprecated-imports"
89
94
  }
@@ -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
+ ```