@atlaskit/checkbox 13.0.0 → 13.0.1
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 +6 -0
- package/dist/cjs/checkbox.js +1 -1
- package/dist/es2019/checkbox.js +1 -1
- package/dist/esm/checkbox.js +1 -1
- package/dist/types/types.d.ts +8 -8
- package/dist/types-ts4.5/types.d.ts +8 -8
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/cjs/checkbox.js
CHANGED
|
@@ -161,7 +161,7 @@ var Checkbox = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef
|
|
|
161
161
|
analyticsData: analyticsContext,
|
|
162
162
|
componentName: 'checkbox',
|
|
163
163
|
packageName: "@atlaskit/checkbox",
|
|
164
|
-
packageVersion: "13.0.
|
|
164
|
+
packageVersion: "13.0.1"
|
|
165
165
|
});
|
|
166
166
|
var internalRef = (0, _react.useRef)(null);
|
|
167
167
|
var mergedRefs = (0, _mergeRefs.default)([internalRef, ref]);
|
package/dist/es2019/checkbox.js
CHANGED
|
@@ -145,7 +145,7 @@ const Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Checkbox(pr
|
|
|
145
145
|
analyticsData: analyticsContext,
|
|
146
146
|
componentName: 'checkbox',
|
|
147
147
|
packageName: "@atlaskit/checkbox",
|
|
148
|
-
packageVersion: "13.0.
|
|
148
|
+
packageVersion: "13.0.1"
|
|
149
149
|
});
|
|
150
150
|
const internalRef = useRef(null);
|
|
151
151
|
const mergedRefs = mergeRefs([internalRef, ref]);
|
package/dist/esm/checkbox.js
CHANGED
|
@@ -154,7 +154,7 @@ var Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Checkbox(prop
|
|
|
154
154
|
analyticsData: analyticsContext,
|
|
155
155
|
componentName: 'checkbox',
|
|
156
156
|
packageName: "@atlaskit/checkbox",
|
|
157
|
-
packageVersion: "13.0.
|
|
157
|
+
packageVersion: "13.0.1"
|
|
158
158
|
});
|
|
159
159
|
var internalRef = useRef(null);
|
|
160
160
|
var mergedRefs = mergeRefs([internalRef, ref]);
|
package/dist/types/types.d.ts
CHANGED
|
@@ -10,11 +10,11 @@ export type Size = 'small' | 'medium' | 'large' | 'xlarge';
|
|
|
10
10
|
*/
|
|
11
11
|
export type OwnProps = {
|
|
12
12
|
/**
|
|
13
|
-
* Sets whether the checkbox begins checked.
|
|
13
|
+
* Sets whether the checkbox begins as checked or unchecked.
|
|
14
14
|
*/
|
|
15
15
|
defaultChecked?: boolean;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* The ID assigned to the input.
|
|
18
18
|
*/
|
|
19
19
|
id?: string;
|
|
20
20
|
/**
|
|
@@ -22,7 +22,7 @@ export type OwnProps = {
|
|
|
22
22
|
*/
|
|
23
23
|
isChecked?: boolean;
|
|
24
24
|
/**
|
|
25
|
-
* Sets whether the checkbox is disabled.
|
|
25
|
+
* Sets whether the checkbox is disabled. Don’t use a disabled checkbox if it needs to remain in the tab order for assistive technologies.
|
|
26
26
|
*/
|
|
27
27
|
isDisabled?: boolean;
|
|
28
28
|
/**
|
|
@@ -49,7 +49,7 @@ export type OwnProps = {
|
|
|
49
49
|
name?: string;
|
|
50
50
|
/**
|
|
51
51
|
* Function that is called whenever the state of the checkbox changes. It will
|
|
52
|
-
* be called with an object containing the react synthetic event. Use currentTarget to get value, name and checked
|
|
52
|
+
* be called with an object containing the react synthetic event. Use `currentTarget` to get value, name and checked.
|
|
53
53
|
*/
|
|
54
54
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
55
55
|
/**
|
|
@@ -57,7 +57,7 @@ export type OwnProps = {
|
|
|
57
57
|
*/
|
|
58
58
|
value?: number | string;
|
|
59
59
|
/**
|
|
60
|
-
* The size of the
|
|
60
|
+
* The size of the checkbox.
|
|
61
61
|
*/
|
|
62
62
|
size?: Size;
|
|
63
63
|
/**
|
|
@@ -67,7 +67,7 @@ export type OwnProps = {
|
|
|
67
67
|
*/
|
|
68
68
|
testId?: string;
|
|
69
69
|
/**
|
|
70
|
-
* Additional information to be included in the `context` of analytics events that come from radio
|
|
70
|
+
* Additional information to be included in the `context` of analytics events that come from radio.
|
|
71
71
|
*/
|
|
72
72
|
analyticsContext?: Record<string, any>;
|
|
73
73
|
};
|
|
@@ -91,12 +91,12 @@ export interface LabelTextProps extends React.HTMLProps<HTMLSpanElement> {
|
|
|
91
91
|
export interface LabelProps extends React.HTMLProps<HTMLInputElement> {
|
|
92
92
|
isDisabled?: boolean;
|
|
93
93
|
/**
|
|
94
|
-
* 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
|
|
94
|
+
* 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.
|
|
95
95
|
*/
|
|
96
96
|
testId?: string;
|
|
97
97
|
/**
|
|
98
98
|
* Click handler that is conditionally applied for Firefox
|
|
99
|
-
* as Firefox does not dispatch modified click events (e.g. Ctrl+Click) down to the underlying input element
|
|
99
|
+
* as Firefox does not dispatch modified click events (e.g. Ctrl+Click) down to the underlying input element.
|
|
100
100
|
*/
|
|
101
101
|
onClick?: React.MouseEventHandler;
|
|
102
102
|
}
|
|
@@ -10,11 +10,11 @@ export type Size = 'small' | 'medium' | 'large' | 'xlarge';
|
|
|
10
10
|
*/
|
|
11
11
|
export type OwnProps = {
|
|
12
12
|
/**
|
|
13
|
-
* Sets whether the checkbox begins checked.
|
|
13
|
+
* Sets whether the checkbox begins as checked or unchecked.
|
|
14
14
|
*/
|
|
15
15
|
defaultChecked?: boolean;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* The ID assigned to the input.
|
|
18
18
|
*/
|
|
19
19
|
id?: string;
|
|
20
20
|
/**
|
|
@@ -22,7 +22,7 @@ export type OwnProps = {
|
|
|
22
22
|
*/
|
|
23
23
|
isChecked?: boolean;
|
|
24
24
|
/**
|
|
25
|
-
* Sets whether the checkbox is disabled.
|
|
25
|
+
* Sets whether the checkbox is disabled. Don’t use a disabled checkbox if it needs to remain in the tab order for assistive technologies.
|
|
26
26
|
*/
|
|
27
27
|
isDisabled?: boolean;
|
|
28
28
|
/**
|
|
@@ -49,7 +49,7 @@ export type OwnProps = {
|
|
|
49
49
|
name?: string;
|
|
50
50
|
/**
|
|
51
51
|
* Function that is called whenever the state of the checkbox changes. It will
|
|
52
|
-
* be called with an object containing the react synthetic event. Use currentTarget to get value, name and checked
|
|
52
|
+
* be called with an object containing the react synthetic event. Use `currentTarget` to get value, name and checked.
|
|
53
53
|
*/
|
|
54
54
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
55
55
|
/**
|
|
@@ -57,7 +57,7 @@ export type OwnProps = {
|
|
|
57
57
|
*/
|
|
58
58
|
value?: number | string;
|
|
59
59
|
/**
|
|
60
|
-
* The size of the
|
|
60
|
+
* The size of the checkbox.
|
|
61
61
|
*/
|
|
62
62
|
size?: Size;
|
|
63
63
|
/**
|
|
@@ -67,7 +67,7 @@ export type OwnProps = {
|
|
|
67
67
|
*/
|
|
68
68
|
testId?: string;
|
|
69
69
|
/**
|
|
70
|
-
* Additional information to be included in the `context` of analytics events that come from radio
|
|
70
|
+
* Additional information to be included in the `context` of analytics events that come from radio.
|
|
71
71
|
*/
|
|
72
72
|
analyticsContext?: Record<string, any>;
|
|
73
73
|
};
|
|
@@ -91,12 +91,12 @@ export interface LabelTextProps extends React.HTMLProps<HTMLSpanElement> {
|
|
|
91
91
|
export interface LabelProps extends React.HTMLProps<HTMLInputElement> {
|
|
92
92
|
isDisabled?: boolean;
|
|
93
93
|
/**
|
|
94
|
-
* 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
|
|
94
|
+
* 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.
|
|
95
95
|
*/
|
|
96
96
|
testId?: string;
|
|
97
97
|
/**
|
|
98
98
|
* Click handler that is conditionally applied for Firefox
|
|
99
|
-
* as Firefox does not dispatch modified click events (e.g. Ctrl+Click) down to the underlying input element
|
|
99
|
+
* as Firefox does not dispatch modified click events (e.g. Ctrl+Click) down to the underlying input element.
|
|
100
100
|
*/
|
|
101
101
|
onClick?: React.MouseEventHandler;
|
|
102
102
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/checkbox",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.1",
|
|
4
4
|
"description": "A checkbox is an input control that allows a user to select one or more options from a number of choices.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
41
41
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
42
|
-
"@atlaskit/icon": "^
|
|
42
|
+
"@atlaskit/icon": "^22.0.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
44
44
|
"@atlaskit/theme": "^12.6.0",
|
|
45
45
|
"@atlaskit/tokens": "^1.28.0",
|