@atlaskit/checkbox 12.6.4 → 12.6.6
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 +12 -0
- package/dist/cjs/checkbox.js +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/checkbox.js +2 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/checkbox.js +2 -2
- package/dist/esm/version.json +1 -1
- package/package.json +3 -7
- package/tmp/api-report-tmp.d.ts +0 -62
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/checkbox
|
|
2
2
|
|
|
3
|
+
## 12.6.6
|
|
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
|
+
## 12.6.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`3958636a718`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3958636a718) - update border width with border spacing token
|
|
14
|
+
|
|
3
15
|
## 12.6.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/checkbox.js
CHANGED
|
@@ -43,7 +43,7 @@ var checkboxStyles = (0, _react2.css)({
|
|
|
43
43
|
transition: 'color 0.2s ease-in-out, fill 0.2s ease-in-out',
|
|
44
44
|
'rect:first-of-type': {
|
|
45
45
|
stroke: 'var(--checkbox-border-color)',
|
|
46
|
-
strokeWidth: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-checkbox_nyoiu') ?
|
|
46
|
+
strokeWidth: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-checkbox_nyoiu') ? "var(--ds-border-width, 1px)" : 2,
|
|
47
47
|
transition: 'stroke 0.2s ease-in-out'
|
|
48
48
|
}
|
|
49
49
|
},
|
|
@@ -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: "12.6.
|
|
164
|
+
packageVersion: "12.6.6"
|
|
165
165
|
});
|
|
166
166
|
var internalRef = (0, _react.useRef)(null);
|
|
167
167
|
var mergedRefs = (0, _mergeRefs.default)([internalRef, ref]);
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/checkbox.js
CHANGED
|
@@ -33,7 +33,7 @@ const checkboxStyles = css({
|
|
|
33
33
|
transition: 'color 0.2s ease-in-out, fill 0.2s ease-in-out',
|
|
34
34
|
'rect:first-of-type': {
|
|
35
35
|
stroke: 'var(--checkbox-border-color)',
|
|
36
|
-
strokeWidth: getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ?
|
|
36
|
+
strokeWidth: getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? "var(--ds-border-width, 1px)" : 2,
|
|
37
37
|
transition: 'stroke 0.2s ease-in-out'
|
|
38
38
|
}
|
|
39
39
|
},
|
|
@@ -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: "12.6.
|
|
148
|
+
packageVersion: "12.6.6"
|
|
149
149
|
});
|
|
150
150
|
const internalRef = useRef(null);
|
|
151
151
|
const mergedRefs = mergeRefs([internalRef, ref]);
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/checkbox.js
CHANGED
|
@@ -36,7 +36,7 @@ var checkboxStyles = css({
|
|
|
36
36
|
transition: 'color 0.2s ease-in-out, fill 0.2s ease-in-out',
|
|
37
37
|
'rect:first-of-type': {
|
|
38
38
|
stroke: 'var(--checkbox-border-color)',
|
|
39
|
-
strokeWidth: getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ?
|
|
39
|
+
strokeWidth: getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? "var(--ds-border-width, 1px)" : 2,
|
|
40
40
|
transition: 'stroke 0.2s ease-in-out'
|
|
41
41
|
}
|
|
42
42
|
},
|
|
@@ -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: "12.6.
|
|
157
|
+
packageVersion: "12.6.6"
|
|
158
158
|
});
|
|
159
159
|
var internalRef = useRef(null);
|
|
160
160
|
var mergedRefs = mergeRefs([internalRef, ref]);
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/checkbox",
|
|
3
|
-
"version": "12.6.
|
|
3
|
+
"version": "12.6.6",
|
|
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
|
"@atlaskit/icon": "^21.12.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
41
41
|
"@atlaskit/theme": "^12.5.0",
|
|
42
|
-
"@atlaskit/tokens": "^1.
|
|
42
|
+
"@atlaskit/tokens": "^1.11.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0",
|
|
44
44
|
"@emotion/react": "^11.7.1"
|
|
45
45
|
},
|
|
@@ -47,17 +47,13 @@
|
|
|
47
47
|
"react": "^16.8.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@
|
|
51
|
-
"@atlaskit/docs": "*",
|
|
52
|
-
"@atlaskit/form": "^8.11.0",
|
|
53
|
-
"@atlaskit/section-message": "^6.4.0",
|
|
50
|
+
"@af/accessibility-testing": "*",
|
|
54
51
|
"@atlaskit/ssr": "*",
|
|
55
52
|
"@atlaskit/visual-regression": "*",
|
|
56
53
|
"@atlaskit/webdriver-runner": "*",
|
|
57
54
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
58
55
|
"@atlassian/feature-flags-test-utils": "*",
|
|
59
56
|
"@testing-library/react": "^12.1.5",
|
|
60
|
-
"jest-axe": "^4.0.0",
|
|
61
57
|
"jscodeshift": "^0.13.0",
|
|
62
58
|
"react-dom": "^16.8.0",
|
|
63
59
|
"storybook-addon-performance": "^0.16.0",
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/checkbox"
|
|
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 { ForwardRefExoticComponent } from 'react';
|
|
10
|
-
import { InputHTMLAttributes } from 'react';
|
|
11
|
-
import { MemoExoticComponent } from 'react';
|
|
12
|
-
import { default as React_2 } from 'react';
|
|
13
|
-
import { RefAttributes } from 'react';
|
|
14
|
-
import type UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
|
|
15
|
-
|
|
16
|
-
// @public
|
|
17
|
-
const Checkbox: MemoExoticComponent<ForwardRefExoticComponent<Omit<Omit<InputHTMLAttributes<HTMLInputElement>, "checked" | "css" | "disabled" | "required">, keyof OwnProps> & OwnProps & RefAttributes<HTMLInputElement>>>;
|
|
18
|
-
export { Checkbox }
|
|
19
|
-
export default Checkbox;
|
|
20
|
-
|
|
21
|
-
// @public (undocumented)
|
|
22
|
-
export type CheckboxProps = Combine<Omit<React_2.InputHTMLAttributes<HTMLInputElement>,
|
|
23
|
-
/**
|
|
24
|
-
* 'disabled', 'required', and 'checked' are omitted so that
|
|
25
|
-
* consumers must handle state using our props.
|
|
26
|
-
*
|
|
27
|
-
* 'css' is added globally to element attributes by emotion.
|
|
28
|
-
* This was causing a bug, making the css prop required in
|
|
29
|
-
* some cases. We explicitly omit it to avoid that.
|
|
30
|
-
*
|
|
31
|
-
* Because 'className' (which the css prop uses internally)
|
|
32
|
-
* is still available, this should not break existing usage.
|
|
33
|
-
*/
|
|
34
|
-
'checked' | 'css' | 'disabled' | 'required'>, OwnProps>;
|
|
35
|
-
|
|
36
|
-
// @public (undocumented)
|
|
37
|
-
type Combine<First, Second> = Omit<First, keyof Second> & Second;
|
|
38
|
-
|
|
39
|
-
// @public
|
|
40
|
-
type OwnProps = {
|
|
41
|
-
defaultChecked?: boolean;
|
|
42
|
-
id?: string;
|
|
43
|
-
isChecked?: boolean;
|
|
44
|
-
isDisabled?: boolean;
|
|
45
|
-
isIndeterminate?: boolean;
|
|
46
|
-
isInvalid?: boolean;
|
|
47
|
-
isRequired?: boolean;
|
|
48
|
-
label?: React_2.ReactChild;
|
|
49
|
-
name?: string;
|
|
50
|
-
onChange?: (e: React_2.ChangeEvent<HTMLInputElement>, analyticsEvent: UIAnalyticsEvent) => void;
|
|
51
|
-
value?: number | string;
|
|
52
|
-
size?: Size;
|
|
53
|
-
testId?: string;
|
|
54
|
-
analyticsContext?: Record<string, any>;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
// @public (undocumented)
|
|
58
|
-
type Size = 'large' | 'medium' | 'small' | 'xlarge';
|
|
59
|
-
|
|
60
|
-
// (No @packageDocumentation comment for this package)
|
|
61
|
-
|
|
62
|
-
```
|