@atlaskit/checkbox 13.4.0 → 13.5.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 +874 -861
- package/README.md +2 -1
- package/__perf__/checkbox.tsx +54 -72
- package/__perf__/default.tsx +7 -7
- package/codemods/12.0.0-lite-mode.tsx +12 -16
- package/codemods/__tests__/12.0.0-lite-mode.tsx +105 -105
- package/codemods/migrations/remove-imports.tsx +3 -3
- package/codemods/migrations/remove-props.tsx +9 -13
- package/codemods/migrations/rename-import.tsx +10 -10
- package/codemods/migrations/rename-input-ref-to-ref.tsx +4 -4
- package/codemods/utils.tsx +360 -400
- package/dist/cjs/checkbox.js +20 -1
- package/dist/cjs/internal/checkbox-icon.js +2 -0
- package/dist/cjs/internal/label-text.js +4 -0
- package/dist/cjs/internal/label.js +5 -0
- package/dist/cjs/internal/required-indicator.js +6 -2
- package/dist/es2019/checkbox.js +21 -1
- package/dist/es2019/internal/checkbox-icon.js +2 -0
- package/dist/es2019/internal/label-text.js +4 -0
- package/dist/es2019/internal/label.js +5 -0
- package/dist/es2019/internal/required-indicator.js +6 -2
- package/dist/esm/checkbox.js +21 -1
- package/dist/esm/internal/checkbox-icon.js +2 -0
- package/dist/esm/internal/label-text.js +4 -0
- package/dist/esm/internal/label.js +5 -0
- package/dist/esm/internal/required-indicator.js +6 -2
- package/dist/types/internal/label-text.d.ts +3 -0
- package/dist/types/internal/label.d.ts +4 -1
- package/dist/types/internal/required-indicator.d.ts +3 -0
- package/dist/types-ts4.5/internal/label-text.d.ts +3 -0
- package/dist/types-ts4.5/internal/label.d.ts +4 -1
- package/dist/types-ts4.5/internal/required-indicator.d.ts +3 -0
- package/extract-react-types/checkbox-props.tsx +1 -1
- package/package.json +93 -95
- package/report.api.md +41 -46
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { createRemoveFuncFor } from '../utils';
|
|
2
2
|
|
|
3
|
-
export const removeFullWidth = createRemoveFuncFor(
|
|
4
|
-
'@atlaskit/checkbox',
|
|
5
|
-
'Checkbox',
|
|
6
|
-
'isFullWidth',
|
|
7
|
-
);
|
|
3
|
+
export const removeFullWidth = createRemoveFuncFor('@atlaskit/checkbox', 'Checkbox', 'isFullWidth');
|
|
8
4
|
|
|
9
5
|
export const removeOverrides = createRemoveFuncFor(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
'@atlaskit/checkbox',
|
|
7
|
+
'Checkbox',
|
|
8
|
+
'overrides',
|
|
9
|
+
`This file uses the @atlaskit/checkbox \`overrides\` prop
|
|
14
10
|
which has now been removed due to its poor performance characteristics. We have not
|
|
15
11
|
replaced overrides with an equivalent API and the overrides pattern exposes internal
|
|
16
12
|
implementation detail as public API and makes it harder for you to upgrade. The appearance
|
|
@@ -18,10 +14,10 @@ export const removeOverrides = createRemoveFuncFor(
|
|
|
18
14
|
);
|
|
19
15
|
|
|
20
16
|
export const removeTheme = createRemoveFuncFor(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
'@atlaskit/checkbox',
|
|
18
|
+
'Checkbox',
|
|
19
|
+
'theme',
|
|
20
|
+
`This file uses the @atlaskit/checkbox \`theme\` prop which
|
|
25
21
|
has now been removed due to its poor performance characteristics. We have not replaced
|
|
26
22
|
theme with an equivalent API due to minimal usage of the \`theme\` prop. However if you
|
|
27
23
|
were using theme to customise the size of the checkbox there is now a \`size\` prop.
|
|
@@ -5,20 +5,20 @@ import { createRenameImportFor } from '../utils';
|
|
|
5
5
|
// these are the only things that need to be fixed
|
|
6
6
|
|
|
7
7
|
export const renameTypeImport = createRenameImportFor({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
componentName: 'CheckboxProps',
|
|
9
|
+
oldPackagePath: '@atlaskit/checkbox/types',
|
|
10
|
+
newPackagePath: '@atlaskit/checkbox',
|
|
11
11
|
});
|
|
12
12
|
|
|
13
13
|
export const renameDeepTypeImport = createRenameImportFor({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
componentName: 'CheckboxProps',
|
|
15
|
+
oldPackagePath: '@atlaskit/checkbox/dist/cjs/types',
|
|
16
|
+
newPackagePath: '@atlaskit/checkbox',
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
export const renameCheckboxWithoutAnalyticsImport = createRenameImportFor({
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
componentName: 'CheckboxWithoutAnalytics',
|
|
21
|
+
newComponentName: 'Checkbox',
|
|
22
|
+
oldPackagePath: '@atlaskit/checkbox/Checkbox',
|
|
23
|
+
newPackagePath: '@atlaskit/checkbox',
|
|
24
24
|
});
|