@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.
Files changed (35) hide show
  1. package/CHANGELOG.md +874 -861
  2. package/README.md +2 -1
  3. package/__perf__/checkbox.tsx +54 -72
  4. package/__perf__/default.tsx +7 -7
  5. package/codemods/12.0.0-lite-mode.tsx +12 -16
  6. package/codemods/__tests__/12.0.0-lite-mode.tsx +105 -105
  7. package/codemods/migrations/remove-imports.tsx +3 -3
  8. package/codemods/migrations/remove-props.tsx +9 -13
  9. package/codemods/migrations/rename-import.tsx +10 -10
  10. package/codemods/migrations/rename-input-ref-to-ref.tsx +4 -4
  11. package/codemods/utils.tsx +360 -400
  12. package/dist/cjs/checkbox.js +20 -1
  13. package/dist/cjs/internal/checkbox-icon.js +2 -0
  14. package/dist/cjs/internal/label-text.js +4 -0
  15. package/dist/cjs/internal/label.js +5 -0
  16. package/dist/cjs/internal/required-indicator.js +6 -2
  17. package/dist/es2019/checkbox.js +21 -1
  18. package/dist/es2019/internal/checkbox-icon.js +2 -0
  19. package/dist/es2019/internal/label-text.js +4 -0
  20. package/dist/es2019/internal/label.js +5 -0
  21. package/dist/es2019/internal/required-indicator.js +6 -2
  22. package/dist/esm/checkbox.js +21 -1
  23. package/dist/esm/internal/checkbox-icon.js +2 -0
  24. package/dist/esm/internal/label-text.js +4 -0
  25. package/dist/esm/internal/label.js +5 -0
  26. package/dist/esm/internal/required-indicator.js +6 -2
  27. package/dist/types/internal/label-text.d.ts +3 -0
  28. package/dist/types/internal/label.d.ts +4 -1
  29. package/dist/types/internal/required-indicator.d.ts +3 -0
  30. package/dist/types-ts4.5/internal/label-text.d.ts +3 -0
  31. package/dist/types-ts4.5/internal/label.d.ts +4 -1
  32. package/dist/types-ts4.5/internal/required-indicator.d.ts +3 -0
  33. package/extract-react-types/checkbox-props.tsx +1 -1
  34. package/package.json +93 -95
  35. 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
- '@atlaskit/checkbox',
11
- 'Checkbox',
12
- 'overrides',
13
- `This file uses the @atlaskit/checkbox \`overrides\` prop
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
- '@atlaskit/checkbox',
22
- 'Checkbox',
23
- 'theme',
24
- `This file uses the @atlaskit/checkbox \`theme\` prop which
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
- componentName: 'CheckboxProps',
9
- oldPackagePath: '@atlaskit/checkbox/types',
10
- newPackagePath: '@atlaskit/checkbox',
8
+ componentName: 'CheckboxProps',
9
+ oldPackagePath: '@atlaskit/checkbox/types',
10
+ newPackagePath: '@atlaskit/checkbox',
11
11
  });
12
12
 
13
13
  export const renameDeepTypeImport = createRenameImportFor({
14
- componentName: 'CheckboxProps',
15
- oldPackagePath: '@atlaskit/checkbox/dist/cjs/types',
16
- newPackagePath: '@atlaskit/checkbox',
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
- componentName: 'CheckboxWithoutAnalytics',
21
- newComponentName: 'Checkbox',
22
- oldPackagePath: '@atlaskit/checkbox/Checkbox',
23
- newPackagePath: '@atlaskit/checkbox',
20
+ componentName: 'CheckboxWithoutAnalytics',
21
+ newComponentName: 'Checkbox',
22
+ oldPackagePath: '@atlaskit/checkbox/Checkbox',
23
+ newPackagePath: '@atlaskit/checkbox',
24
24
  });
@@ -1,8 +1,8 @@
1
1
  import { createRenameFuncFor } from '../utils';
2
2
 
3
3
  export const renameInputRef = createRenameFuncFor(
4
- '@atlaskit/checkbox',
5
- 'Checkbox',
6
- 'inputRef',
7
- 'ref',
4
+ '@atlaskit/checkbox',
5
+ 'Checkbox',
6
+ 'inputRef',
7
+ 'ref',
8
8
  );