@atlaskit/radio 8.1.3 → 8.1.5
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 +14 -0
- package/dist/cjs/radio.js +1 -1
- package/dist/es2019/radio.js +1 -1
- package/dist/esm/radio.js +1 -1
- package/dist/types/types.d.ts +1 -60
- package/dist/types-ts4.5/types.d.ts +1 -60
- package/package.json +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/radio
|
|
2
2
|
|
|
3
|
+
## 8.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#186117](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/186117)
|
|
8
|
+
[`f13d15fae9df4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f13d15fae9df4) -
|
|
9
|
+
Remove unused type in radio.
|
|
10
|
+
|
|
11
|
+
## 8.1.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 8.1.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/radio.js
CHANGED
|
@@ -20,7 +20,7 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
20
20
|
var _excluded = ["ariaLabel", "isDisabled", "isRequired", "isInvalid", "isChecked", "label", "name", "onChange", "value", "testId", "analyticsContext"];
|
|
21
21
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
22
22
|
var packageName = "@atlaskit/radio";
|
|
23
|
-
var packageVersion = "8.1.
|
|
23
|
+
var packageVersion = "8.1.4";
|
|
24
24
|
var noop = _noop.default;
|
|
25
25
|
var labelPaddingStyles = null;
|
|
26
26
|
var labelStyles = null;
|
package/dist/es2019/radio.js
CHANGED
|
@@ -9,7 +9,7 @@ import __noop from '@atlaskit/ds-lib/noop';
|
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
10
|
import { B200, B300, B400, B50, N10, N100, N20, N30, N70, N80, N900, R300 } from '@atlaskit/theme/colors';
|
|
11
11
|
const packageName = "@atlaskit/radio";
|
|
12
|
-
const packageVersion = "8.1.
|
|
12
|
+
const packageVersion = "8.1.4";
|
|
13
13
|
const noop = __noop;
|
|
14
14
|
const labelPaddingStyles = null;
|
|
15
15
|
const labelStyles = null;
|
package/dist/esm/radio.js
CHANGED
|
@@ -11,7 +11,7 @@ import __noop from '@atlaskit/ds-lib/noop';
|
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
12
|
import { B200, B300, B400, B50, N10, N100, N20, N30, N70, N80, N900, R300 } from '@atlaskit/theme/colors';
|
|
13
13
|
var packageName = "@atlaskit/radio";
|
|
14
|
-
var packageVersion = "8.1.
|
|
14
|
+
var packageVersion = "8.1.4";
|
|
15
15
|
var noop = __noop;
|
|
16
16
|
var labelPaddingStyles = null;
|
|
17
17
|
var labelStyles = null;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
2
|
import { type UIAnalyticsEvent, type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
3
|
export type OptionPropType = {
|
|
4
4
|
isDisabled?: boolean;
|
|
@@ -56,63 +56,4 @@ type OwnProps = {
|
|
|
56
56
|
};
|
|
57
57
|
type Combine<First, Second> = Omit<First, keyof Second> & Second;
|
|
58
58
|
export type RadioProps = Combine<Omit<React.InputHTMLAttributes<HTMLInputElement>, 'aria-label' | 'disabled' | 'required' | 'checked' | 'value' | 'crossOrigin'>, OwnProps> & WithAnalyticsEventsProps;
|
|
59
|
-
export interface ExtractReactTypeProps extends WithAnalyticsEventsProps {
|
|
60
|
-
/**
|
|
61
|
-
* The aria-label attribute associated with the radio element.
|
|
62
|
-
*/
|
|
63
|
-
ariaLabel?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Marks this as a disabled field.
|
|
66
|
-
*/
|
|
67
|
-
isDisabled?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Marks this as a required field.
|
|
70
|
-
*/
|
|
71
|
-
isRequired?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Marks this as an invalid field.
|
|
74
|
-
*/
|
|
75
|
-
isInvalid?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Set the field as checked.
|
|
78
|
-
*/
|
|
79
|
-
isChecked?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* The label value for the input rendered to the DOM.
|
|
82
|
-
*/
|
|
83
|
-
label?: ReactNode;
|
|
84
|
-
/**
|
|
85
|
-
* Field name, must be unique to the radio group.
|
|
86
|
-
*/
|
|
87
|
-
name?: string;
|
|
88
|
-
/**
|
|
89
|
-
* `onChange` event handler, passed into the props of each `Radio` Component instantiated within RadioGroup.
|
|
90
|
-
*/
|
|
91
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
92
|
-
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
93
|
-
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
94
|
-
onMouseDown?: React.MouseEventHandler;
|
|
95
|
-
onMouseUp?: React.MouseEventHandler;
|
|
96
|
-
onMouseEnter?: React.MouseEventHandler;
|
|
97
|
-
onMouseLeave?: React.MouseEventHandler;
|
|
98
|
-
/**
|
|
99
|
-
* `onInvalid` event handler, passed into the props of each `Radio` component instantiated within `RadioGroup`.
|
|
100
|
-
*/
|
|
101
|
-
onInvalid?: (e: SyntheticEvent<any>) => void;
|
|
102
|
-
/**
|
|
103
|
-
* Field value.
|
|
104
|
-
*/
|
|
105
|
-
value?: RadioValue;
|
|
106
|
-
/**
|
|
107
|
-
* A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests
|
|
108
|
-
* we have two different `testId`s generated based on the one you pass to the Radio component:
|
|
109
|
-
* - `{testId}--radio-input` to check if it got changed to checked/unchecked.
|
|
110
|
-
* - `{testId}--radio-label` to click the input.
|
|
111
|
-
*/
|
|
112
|
-
testId?: string;
|
|
113
|
-
/**
|
|
114
|
-
* Additional information to be included in the `context` of analytics events that come from radio.
|
|
115
|
-
*/
|
|
116
|
-
analyticsContext?: Record<string, any>;
|
|
117
|
-
}
|
|
118
59
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
2
|
import { type UIAnalyticsEvent, type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
3
|
export type OptionPropType = {
|
|
4
4
|
isDisabled?: boolean;
|
|
@@ -56,63 +56,4 @@ type OwnProps = {
|
|
|
56
56
|
};
|
|
57
57
|
type Combine<First, Second> = Omit<First, keyof Second> & Second;
|
|
58
58
|
export type RadioProps = Combine<Omit<React.InputHTMLAttributes<HTMLInputElement>, 'aria-label' | 'disabled' | 'required' | 'checked' | 'value' | 'crossOrigin'>, OwnProps> & WithAnalyticsEventsProps;
|
|
59
|
-
export interface ExtractReactTypeProps extends WithAnalyticsEventsProps {
|
|
60
|
-
/**
|
|
61
|
-
* The aria-label attribute associated with the radio element.
|
|
62
|
-
*/
|
|
63
|
-
ariaLabel?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Marks this as a disabled field.
|
|
66
|
-
*/
|
|
67
|
-
isDisabled?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Marks this as a required field.
|
|
70
|
-
*/
|
|
71
|
-
isRequired?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Marks this as an invalid field.
|
|
74
|
-
*/
|
|
75
|
-
isInvalid?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Set the field as checked.
|
|
78
|
-
*/
|
|
79
|
-
isChecked?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* The label value for the input rendered to the DOM.
|
|
82
|
-
*/
|
|
83
|
-
label?: ReactNode;
|
|
84
|
-
/**
|
|
85
|
-
* Field name, must be unique to the radio group.
|
|
86
|
-
*/
|
|
87
|
-
name?: string;
|
|
88
|
-
/**
|
|
89
|
-
* `onChange` event handler, passed into the props of each `Radio` Component instantiated within RadioGroup.
|
|
90
|
-
*/
|
|
91
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
92
|
-
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
93
|
-
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
94
|
-
onMouseDown?: React.MouseEventHandler;
|
|
95
|
-
onMouseUp?: React.MouseEventHandler;
|
|
96
|
-
onMouseEnter?: React.MouseEventHandler;
|
|
97
|
-
onMouseLeave?: React.MouseEventHandler;
|
|
98
|
-
/**
|
|
99
|
-
* `onInvalid` event handler, passed into the props of each `Radio` component instantiated within `RadioGroup`.
|
|
100
|
-
*/
|
|
101
|
-
onInvalid?: (e: SyntheticEvent<any>) => void;
|
|
102
|
-
/**
|
|
103
|
-
* Field value.
|
|
104
|
-
*/
|
|
105
|
-
value?: RadioValue;
|
|
106
|
-
/**
|
|
107
|
-
* A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests
|
|
108
|
-
* we have two different `testId`s generated based on the one you pass to the Radio component:
|
|
109
|
-
* - `{testId}--radio-input` to check if it got changed to checked/unchecked.
|
|
110
|
-
* - `{testId}--radio-label` to click the input.
|
|
111
|
-
*/
|
|
112
|
-
testId?: string;
|
|
113
|
-
/**
|
|
114
|
-
* Additional information to be included in the `context` of analytics events that come from radio.
|
|
115
|
-
*/
|
|
116
|
-
analyticsContext?: Record<string, any>;
|
|
117
|
-
}
|
|
118
59
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/radio",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.5",
|
|
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/"
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"atlaskit:src": "src/index.tsx",
|
|
27
27
|
"atlassian": {
|
|
28
28
|
"team": "Design System Team",
|
|
29
|
-
"runReact18": true,
|
|
30
29
|
"website": {
|
|
31
30
|
"name": "Radio",
|
|
32
31
|
"category": "Forms and input"
|
|
@@ -43,8 +42,8 @@
|
|
|
43
42
|
"@atlaskit/css": "^0.12.0",
|
|
44
43
|
"@atlaskit/ds-lib": "^4.0.0",
|
|
45
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
46
|
-
"@atlaskit/theme": "^
|
|
47
|
-
"@atlaskit/tokens": "^5.
|
|
45
|
+
"@atlaskit/theme": "^19.0.0",
|
|
46
|
+
"@atlaskit/tokens": "^5.5.0",
|
|
48
47
|
"@babel/runtime": "^7.0.0",
|
|
49
48
|
"@compiled/react": "^0.18.3"
|
|
50
49
|
},
|