@atlaskit/checkbox 17.1.16 → 17.1.18

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/checkbox
2
2
 
3
+ ## 17.1.18
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 17.1.17
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 17.1.16
4
16
 
5
17
  ### Patch Changes
@@ -1247,7 +1259,6 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
1247
1259
 
1248
1260
  Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
1249
1261
  [6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
1250
-
1251
1262
  - @atlaskit/docs@8.3.2
1252
1263
  - @atlaskit/visual-regression@0.1.9
1253
1264
  - @atlaskit/analytics-next@6.3.5
@@ -1407,7 +1418,6 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
1407
1418
  - [major][97bab7fd28](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/97bab7fd28):
1408
1419
 
1409
1420
  `@atlaskit/checkbox` **10.x** includes the following changes:
1410
-
1411
1421
  - Replaced previous theme implementation with new `@atlaskit/theme` v2 implementation
1412
1422
  - Please read more about this implementation in the
1413
1423
  [theming guide](https://atlaskit.atlassian.com/packages/core/theme/docs/theming-guide)
@@ -1491,12 +1501,10 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
1491
1501
  safety. Flow types are no longer provided. No behavioural changes.
1492
1502
 
1493
1503
  **Breaking changes**
1494
-
1495
1504
  - `withAnalyticsForSumTypeProps` alias has been removed, please use `withAnalyticsEvents`
1496
1505
  - `AnalyticsContextWrappedComp` alias has been removed, please use `withAnalyticsContext`
1497
1506
 
1498
1507
  **Breaking changes to TypeScript annotations**
1499
-
1500
1508
  - `withAnalyticsEvents` now infers proptypes automatically, consumers no longer need to provide
1501
1509
  props as a generic type.
1502
1510
  - `withAnalyticsContext` now infers proptypes automatically, consumers no longer need to provide
@@ -1537,7 +1545,6 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
1537
1545
  - [patch][18dfac7332](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18dfac7332):
1538
1546
 
1539
1547
  In this PR, we are:
1540
-
1541
1548
  - Re-introducing dist build folders
1542
1549
  - Adding back cjs
1543
1550
  - Replacing es5 by cjs and es2015 by esm
@@ -1628,7 +1635,6 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
1628
1635
  ## 8.0.0
1629
1636
 
1630
1637
  - [major][70862830d6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/70862830d6):
1631
-
1632
1638
  - Checkbox has been converted to Typescript. Typescript consumers will now get static type safety.
1633
1639
  Flow types are no longer provided. No API or behavioural changes.
1634
1640
 
@@ -1644,7 +1650,6 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
1644
1650
  ## 7.0.0
1645
1651
 
1646
1652
  - [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
1647
-
1648
1653
  - Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use
1649
1654
  this package, please ensure you use at least this version of react and react-dom.
1650
1655
 
@@ -1674,7 +1679,6 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
1674
1679
  ## 6.0.2
1675
1680
 
1676
1681
  - [patch][98e11001ff](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/98e11001ff):
1677
-
1678
1682
  - Removes duplicate babel-runtime dependency
1679
1683
 
1680
1684
  ## 6.0.1
@@ -1692,7 +1696,6 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
1692
1696
  ## 6.0.0
1693
1697
 
1694
1698
  - [major][76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
1695
-
1696
1699
  - Drop ES5 from all the flow modules
1697
1700
 
1698
1701
  ### Dropping CJS support in all @atlaskit packages
@@ -1737,19 +1740,16 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
1737
1740
  ## 5.0.14
1738
1741
 
1739
1742
  - [patch][c0ad531a70](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c0ad531a70):
1740
-
1741
1743
  - Added test to make use props are passed down to hidden input
1742
1744
 
1743
1745
  ## 5.0.13
1744
1746
 
1745
1747
  - [patch][3ae465b6f0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3ae465b6f0):
1746
-
1747
1748
  - fix for checkbox logging error on mount
1748
1749
 
1749
1750
  ## 5.0.12
1750
1751
 
1751
1752
  - [patch][b0153ee6c9](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0153ee6c9):
1752
-
1753
1753
  - Enabled the isRequired validation on checkbox and added the asterisk after the checkbox label to
1754
1754
  signify the required field
1755
1755
 
@@ -1765,7 +1765,6 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
1765
1765
  ## 5.0.10
1766
1766
 
1767
1767
  - [patch][fad28be](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/fad28be):
1768
-
1769
1768
  - Fixing invalid type for checkbox id prop
1770
1769
 
1771
1770
  ## 5.0.9
@@ -1876,13 +1875,11 @@ npx @atlaskit/codemod-cli /path/to/target/directory --parser [tsx | flow | babel
1876
1875
 
1877
1876
  `@atlaskit/checkbox` no longer exports a CheckboxGroup component. It has been removed for the
1878
1877
  following reasons:
1879
-
1880
1878
  - It was really a thin wrapper enforcing very basic styling opinions over its children (display:
1881
1879
  flex, flex: column).
1882
1880
  - The existing styling blocks the horizontal display of checkbox group children.
1883
1881
 
1884
1882
  **Prop Changes**
1885
-
1886
1883
  - `<Checkbox/>` - `initiallyChecked` renamed to `defaultChecked`
1887
1884
  - `<Checkbox/>` - `label` prop now accepts type Node instead of type string.
1888
1885
  - `<Checkbox/>` - `isChecked` is now an optional boolean prop on the Checkbox component.
@@ -77,7 +77,7 @@ var Checkbox = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef
77
77
  analyticsData: analyticsContext,
78
78
  componentName: 'checkbox',
79
79
  packageName: "@atlaskit/checkbox",
80
- packageVersion: "0.0.0-development"
80
+ packageVersion: "17.1.17"
81
81
  });
82
82
  var internalRef = (0, _react.useRef)(null);
83
83
  var mergedRefs = (0, _mergeRefs.default)([internalRef, ref]);
@@ -15,7 +15,6 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
15
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
16
16
  function getIcon(isIndeterminate, isChecked) {
17
17
  if (isIndeterminate) {
18
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
19
18
  if ((0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')) {
20
19
  return /*#__PURE__*/React.createElement("path", {
21
20
  fillRule: "evenodd",
@@ -35,7 +34,6 @@ function getIcon(isIndeterminate, isChecked) {
35
34
  }
36
35
  }
37
36
  if (isChecked) {
38
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
39
37
  if ((0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')) {
40
38
  return /*#__PURE__*/React.createElement("path", {
41
39
  fillRule: "evenodd",
@@ -78,9 +76,7 @@ var CheckboxIcon = /*#__PURE__*/(0, _react.memo)(function (_ref) {
78
76
  secondaryColor: "var(--checkbox-tick-color)"
79
77
  }, /*#__PURE__*/React.createElement("g", {
80
78
  fillRule: "evenodd"
81
- },
82
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
83
- (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? /*#__PURE__*/React.createElement("rect", {
79
+ }, (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? /*#__PURE__*/React.createElement("rect", {
84
80
  fill: "currentColor",
85
81
  x: "5.5",
86
82
  y: "5.5",
@@ -59,7 +59,7 @@ const Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Checkbox({
59
59
  analyticsData: analyticsContext,
60
60
  componentName: 'checkbox',
61
61
  packageName: "@atlaskit/checkbox",
62
- packageVersion: "0.0.0-development"
62
+ packageVersion: "17.1.17"
63
63
  });
64
64
  const internalRef = useRef(null);
65
65
  const mergedRefs = mergeRefs([internalRef, ref]);
@@ -6,7 +6,6 @@ import PrimitiveSVGIcon from '@atlaskit/icon/svg';
6
6
  import { fg } from '@atlaskit/platform-feature-flags';
7
7
  function getIcon(isIndeterminate, isChecked) {
8
8
  if (isIndeterminate) {
9
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
10
9
  if (fg('platform-visual-refresh-icons')) {
11
10
  return /*#__PURE__*/React.createElement("path", {
12
11
  fillRule: "evenodd",
@@ -26,7 +25,6 @@ function getIcon(isIndeterminate, isChecked) {
26
25
  }
27
26
  }
28
27
  if (isChecked) {
29
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
30
28
  if (fg('platform-visual-refresh-icons')) {
31
29
  return /*#__PURE__*/React.createElement("path", {
32
30
  fillRule: "evenodd",
@@ -68,9 +66,7 @@ const CheckboxIcon = /*#__PURE__*/memo(({
68
66
  secondaryColor: "var(--checkbox-tick-color)"
69
67
  }, /*#__PURE__*/React.createElement("g", {
70
68
  fillRule: "evenodd"
71
- },
72
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
73
- fg('platform-visual-refresh-icons') ? /*#__PURE__*/React.createElement("rect", {
69
+ }, fg('platform-visual-refresh-icons') ? /*#__PURE__*/React.createElement("rect", {
74
70
  fill: "currentColor",
75
71
  x: "5.5",
76
72
  y: "5.5",
@@ -68,7 +68,7 @@ var Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Checkbox(_ref
68
68
  analyticsData: analyticsContext,
69
69
  componentName: 'checkbox',
70
70
  packageName: "@atlaskit/checkbox",
71
- packageVersion: "0.0.0-development"
71
+ packageVersion: "17.1.17"
72
72
  });
73
73
  var internalRef = useRef(null);
74
74
  var mergedRefs = mergeRefs([internalRef, ref]);
@@ -6,7 +6,6 @@ import PrimitiveSVGIcon from '@atlaskit/icon/svg';
6
6
  import { fg } from '@atlaskit/platform-feature-flags';
7
7
  function getIcon(isIndeterminate, isChecked) {
8
8
  if (isIndeterminate) {
9
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
10
9
  if (fg('platform-visual-refresh-icons')) {
11
10
  return /*#__PURE__*/React.createElement("path", {
12
11
  fillRule: "evenodd",
@@ -26,7 +25,6 @@ function getIcon(isIndeterminate, isChecked) {
26
25
  }
27
26
  }
28
27
  if (isChecked) {
29
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
30
28
  if (fg('platform-visual-refresh-icons')) {
31
29
  return /*#__PURE__*/React.createElement("path", {
32
30
  fillRule: "evenodd",
@@ -69,9 +67,7 @@ var CheckboxIcon = /*#__PURE__*/memo(function (_ref) {
69
67
  secondaryColor: "var(--checkbox-tick-color)"
70
68
  }, /*#__PURE__*/React.createElement("g", {
71
69
  fillRule: "evenodd"
72
- },
73
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
74
- fg('platform-visual-refresh-icons') ? /*#__PURE__*/React.createElement("rect", {
70
+ }, fg('platform-visual-refresh-icons') ? /*#__PURE__*/React.createElement("rect", {
75
71
  fill: "currentColor",
76
72
  x: "5.5",
77
73
  y: "5.5",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/checkbox",
3
- "version": "17.1.16",
3
+ "version": "17.1.18",
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/"
@@ -33,14 +33,14 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@atlaskit/analytics-next": "^11.1.0",
36
- "@atlaskit/css": "^0.14.0",
36
+ "@atlaskit/css": "^0.15.0",
37
37
  "@atlaskit/ds-lib": "^5.1.0",
38
- "@atlaskit/icon": "^28.3.0",
38
+ "@atlaskit/icon": "^28.5.0",
39
39
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
40
  "@atlaskit/theme": "^21.0.0",
41
- "@atlaskit/tokens": "^6.4.0",
41
+ "@atlaskit/tokens": "^7.0.0",
42
42
  "@babel/runtime": "^7.0.0",
43
- "@compiled/react": "^0.18.3"
43
+ "@compiled/react": "^0.18.6"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": "^18.2.0"
@@ -49,11 +49,11 @@
49
49
  "@af/accessibility-testing": "workspace:^",
50
50
  "@af/integration-testing": "workspace:^",
51
51
  "@af/visual-regression": "workspace:^",
52
- "@atlaskit/button": "^23.4.0",
53
- "@atlaskit/docs": "^11.1.0",
52
+ "@atlaskit/button": "^23.5.0",
53
+ "@atlaskit/docs": "^11.2.0",
54
54
  "@atlaskit/form": "^14.2.0",
55
55
  "@atlaskit/link": "^3.2.0",
56
- "@atlaskit/primitives": "^14.15.0",
56
+ "@atlaskit/primitives": "^15.0.0",
57
57
  "@atlaskit/section-message": "^8.7.0",
58
58
  "@atlaskit/ssr": "workspace:^",
59
59
  "@atlassian/feature-flags-test-utils": "^0.3.0",