@atlaskit/checkbox 12.6.0 → 12.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 +12 -0
- package/dist/cjs/checkbox.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/checkbox.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/checkbox.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/types.d.ts +4 -4
- package/dist/{types-ts4.0 → types-ts4.5}/types.d.ts +4 -4
- package/package.json +11 -3
- /package/dist/{types-ts4.0 → types-ts4.5}/checkbox.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/index.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/internal/checkbox-icon.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/internal/constants.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/internal/index.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/internal/label-text.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/internal/label.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/internal/required-indicator.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/internal/theme.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/checkbox
|
|
2
2
|
|
|
3
|
+
## 12.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
8
|
+
|
|
9
|
+
## 12.6.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
14
|
+
|
|
3
15
|
## 12.6.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
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: "12.6.
|
|
164
|
+
packageVersion: "12.6.2"
|
|
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
|
@@ -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.2"
|
|
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
|
@@ -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.2"
|
|
158
158
|
});
|
|
159
159
|
var internalRef = useRef(null);
|
|
160
160
|
var mergedRefs = mergeRefs([internalRef, ref]);
|
package/dist/esm/version.json
CHANGED
package/dist/types/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
|
|
3
|
-
export
|
|
3
|
+
export type Size = 'small' | 'medium' | 'large' | 'xlarge';
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
6
6
|
*
|
|
@@ -8,7 +8,7 @@ export declare type Size = 'small' | 'medium' | 'large' | 'xlarge';
|
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export type OwnProps = {
|
|
12
12
|
/**
|
|
13
13
|
* Sets whether the checkbox begins checked.
|
|
14
14
|
*/
|
|
@@ -71,8 +71,8 @@ export declare type OwnProps = {
|
|
|
71
71
|
*/
|
|
72
72
|
analyticsContext?: Record<string, any>;
|
|
73
73
|
};
|
|
74
|
-
|
|
75
|
-
export
|
|
74
|
+
type Combine<First, Second> = Omit<First, keyof Second> & Second;
|
|
75
|
+
export type CheckboxProps = Combine<Omit<React.InputHTMLAttributes<HTMLInputElement>,
|
|
76
76
|
/**
|
|
77
77
|
* 'disabled', 'required', and 'checked' are omitted so that
|
|
78
78
|
* consumers must handle state using our props.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
|
|
3
|
-
export
|
|
3
|
+
export type Size = 'small' | 'medium' | 'large' | 'xlarge';
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
6
6
|
*
|
|
@@ -8,7 +8,7 @@ export declare type Size = 'small' | 'medium' | 'large' | 'xlarge';
|
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export type OwnProps = {
|
|
12
12
|
/**
|
|
13
13
|
* Sets whether the checkbox begins checked.
|
|
14
14
|
*/
|
|
@@ -71,8 +71,8 @@ export declare type OwnProps = {
|
|
|
71
71
|
*/
|
|
72
72
|
analyticsContext?: Record<string, any>;
|
|
73
73
|
};
|
|
74
|
-
|
|
75
|
-
export
|
|
74
|
+
type Combine<First, Second> = Omit<First, keyof Second> & Second;
|
|
75
|
+
export type CheckboxProps = Combine<Omit<React.InputHTMLAttributes<HTMLInputElement>,
|
|
76
76
|
/**
|
|
77
77
|
* 'disabled', 'required', and 'checked' are omitted so that
|
|
78
78
|
* consumers must handle state using our props.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/checkbox",
|
|
3
|
-
"version": "12.6.
|
|
3
|
+
"version": "12.6.2",
|
|
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/"
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
"module": "dist/esm/index.js",
|
|
13
13
|
"module:es2019": "dist/es2019/index.js",
|
|
14
14
|
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
15
23
|
"sideEffects": false,
|
|
16
24
|
"atlaskit:src": "src/index.tsx",
|
|
17
25
|
"atlassian": {
|
|
@@ -31,7 +39,7 @@
|
|
|
31
39
|
"@atlaskit/icon": "^21.12.0",
|
|
32
40
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
33
41
|
"@atlaskit/theme": "^12.5.0",
|
|
34
|
-
"@atlaskit/tokens": "^1.
|
|
42
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
35
43
|
"@babel/runtime": "^7.0.0",
|
|
36
44
|
"@emotion/react": "^11.7.1"
|
|
37
45
|
},
|
|
@@ -53,7 +61,7 @@
|
|
|
53
61
|
"jscodeshift": "^0.13.0",
|
|
54
62
|
"react-dom": "^16.8.0",
|
|
55
63
|
"storybook-addon-performance": "^0.16.0",
|
|
56
|
-
"typescript": "4.
|
|
64
|
+
"typescript": "~4.9.5",
|
|
57
65
|
"wait-for-expect": "^1.2.0"
|
|
58
66
|
},
|
|
59
67
|
"keywords": [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|