@atlaskit/checkbox 12.3.5 → 12.3.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/checkbox
2
2
 
3
+ ## 12.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 12.3.5
4
10
 
5
11
  ### Patch Changes
@@ -27,8 +27,7 @@ var _components = _interopRequireDefault(require("@atlaskit/theme/components"));
27
27
 
28
28
  var _internal = require("./internal");
29
29
 
30
- /** @jsx jsx */
31
- // eslint-disable-next-line @atlassian/tangerine/import/entry-points
30
+ var _excluded = ["isChecked", "isDisabled", "isInvalid", "defaultChecked", "isIndeterminate", "size", "onChange", "analyticsContext", "label", "mode", "name", "value", "isRequired", "testId"];
32
31
  // firefox doesn't handle cmd+click/ctrl+click properly
33
32
  var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
34
33
 
@@ -95,7 +94,7 @@ var CheckboxWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Checkbox(pro
95
94
  value = props.value,
96
95
  isRequired = props.isRequired,
97
96
  testId = props.testId,
98
- rest = (0, _objectWithoutProperties2.default)(props, ["isChecked", "isDisabled", "isInvalid", "defaultChecked", "isIndeterminate", "size", "onChange", "analyticsContext", "label", "mode", "name", "value", "isRequired", "testId"]);
97
+ rest = (0, _objectWithoutProperties2.default)(props, _excluded);
99
98
 
100
99
  var _useState = (0, _react.useState)(isCheckedProp !== undefined ? isCheckedProp : defaultChecked),
101
100
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -115,7 +114,7 @@ var CheckboxWithMode = /*#__PURE__*/(0, _react.forwardRef)(function Checkbox(pro
115
114
  analyticsData: analyticsContext,
116
115
  componentName: 'checkbox',
117
116
  packageName: "@atlaskit/checkbox",
118
- packageVersion: "12.3.5"
117
+ packageVersion: "12.3.6"
119
118
  });
120
119
  var internalRef = (0, _react.useRef)(null);
121
120
  var mergedRefs = (0, _mergeRefs.default)([internalRef, ref]); // firefox doesn't properly dispatch events from label to its child input elements
package/dist/cjs/index.js CHANGED
@@ -5,16 +5,16 @@ var _typeof = require("@babel/runtime/helpers/typeof");
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- Object.defineProperty(exports, "default", {
8
+ Object.defineProperty(exports, "Checkbox", {
9
9
  enumerable: true,
10
10
  get: function get() {
11
- return _checkbox.default;
11
+ return _checkbox.Checkbox;
12
12
  }
13
13
  });
14
- Object.defineProperty(exports, "Checkbox", {
14
+ Object.defineProperty(exports, "default", {
15
15
  enumerable: true,
16
16
  get: function get() {
17
- return _checkbox.Checkbox;
17
+ return _checkbox.default;
18
18
  }
19
19
  });
20
20
 
@@ -5,12 +5,6 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- Object.defineProperty(exports, "getCheckboxStyles", {
9
- enumerable: true,
10
- get: function get() {
11
- return _styles.default;
12
- }
13
- });
14
8
  Object.defineProperty(exports, "Label", {
15
9
  enumerable: true,
16
10
  get: function get() {
@@ -29,6 +23,12 @@ Object.defineProperty(exports, "RequiredIndicator", {
29
23
  return _requiredIndicator.default;
30
24
  }
31
25
  });
26
+ Object.defineProperty(exports, "getCheckboxStyles", {
27
+ enumerable: true,
28
+ get: function get() {
29
+ return _styles.default;
30
+ }
31
+ });
32
32
 
33
33
  var _styles = _interopRequireDefault(require("./styles"));
34
34
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/checkbox",
3
- "version": "12.3.5",
3
+ "version": "12.3.6",
4
4
  "sideEffects": false
5
5
  }
@@ -86,7 +86,7 @@ const CheckboxWithMode = /*#__PURE__*/forwardRef(function Checkbox(props, ref) {
86
86
  analyticsData: analyticsContext,
87
87
  componentName: 'checkbox',
88
88
  packageName: "@atlaskit/checkbox",
89
- packageVersion: "12.3.5"
89
+ packageVersion: "12.3.6"
90
90
  });
91
91
  const internalRef = useRef(null);
92
92
  const mergedRefs = mergeRefs([internalRef, ref]); // firefox doesn't properly dispatch events from label to its child input elements
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/checkbox",
3
- "version": "12.3.5",
3
+ "version": "12.3.6",
4
4
  "sideEffects": false
5
5
  }
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
+ var _excluded = ["isChecked", "isDisabled", "isInvalid", "defaultChecked", "isIndeterminate", "size", "onChange", "analyticsContext", "label", "mode", "name", "value", "isRequired", "testId"];
4
5
 
5
6
  /** @jsx jsx */
6
7
  import { forwardRef, memo, useCallback, useMemo, useRef, useState } from 'react';
@@ -77,7 +78,7 @@ var CheckboxWithMode = /*#__PURE__*/forwardRef(function Checkbox(props, ref) {
77
78
  value = props.value,
78
79
  isRequired = props.isRequired,
79
80
  testId = props.testId,
80
- rest = _objectWithoutProperties(props, ["isChecked", "isDisabled", "isInvalid", "defaultChecked", "isIndeterminate", "size", "onChange", "analyticsContext", "label", "mode", "name", "value", "isRequired", "testId"]);
81
+ rest = _objectWithoutProperties(props, _excluded);
81
82
 
82
83
  var _useState = useState(isCheckedProp !== undefined ? isCheckedProp : defaultChecked),
83
84
  _useState2 = _slicedToArray(_useState, 2),
@@ -97,7 +98,7 @@ var CheckboxWithMode = /*#__PURE__*/forwardRef(function Checkbox(props, ref) {
97
98
  analyticsData: analyticsContext,
98
99
  componentName: 'checkbox',
99
100
  packageName: "@atlaskit/checkbox",
100
- packageVersion: "12.3.5"
101
+ packageVersion: "12.3.6"
101
102
  });
102
103
  var internalRef = useRef(null);
103
104
  var mergedRefs = mergeRefs([internalRef, ref]); // firefox doesn't properly dispatch events from label to its child input elements
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/checkbox",
3
- "version": "12.3.5",
3
+ "version": "12.3.6",
4
4
  "sideEffects": false
5
5
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { LabelTextProps } from '../types';
2
3
  export declare const labelTextCSS: {
3
4
  paddingRight: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CSSObject } from '@emotion/core';
2
3
  import { LabelProps } from '../types';
3
4
  export declare const labelCSS: () => CSSObject;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { RequiredIndicatorProps } from '../types';
2
3
  export default function RequiredIndicator(props: RequiredIndicatorProps): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/checkbox",
3
- "version": "12.3.5",
3
+ "version": "12.3.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/"
@@ -16,7 +16,6 @@
16
16
  "atlaskit:src": "src/index.ts",
17
17
  "atlassian": {
18
18
  "team": "Design System Team",
19
- "inPublicMirror": true,
20
19
  "releaseModel": "scheduled",
21
20
  "website": {
22
21
  "name": "Checkbox"
@@ -28,9 +27,9 @@
28
27
  "dependencies": {
29
28
  "@atlaskit/analytics-next": "^8.2.0",
30
29
  "@atlaskit/ds-lib": "^1.3.0",
31
- "@atlaskit/icon": "^21.9.0",
32
- "@atlaskit/theme": "^12.0.0",
33
- "@atlaskit/tokens": "^0.4.0",
30
+ "@atlaskit/icon": "^21.10.0",
31
+ "@atlaskit/theme": "^12.1.0",
32
+ "@atlaskit/tokens": "^0.5.0",
34
33
  "@babel/runtime": "^7.0.0",
35
34
  "@emotion/core": "^10.0.9"
36
35
  },
@@ -38,13 +37,12 @@
38
37
  "react": "^16.8.0"
39
38
  },
40
39
  "devDependencies": {
41
- "@atlaskit/build-utils": "*",
42
40
  "@atlaskit/button": "^16.1.0",
43
41
  "@atlaskit/docs": "*",
44
42
  "@atlaskit/form": "^8.4.0",
45
43
  "@atlaskit/section-message": "^6.1.0",
46
44
  "@atlaskit/ssr": "*",
47
- "@atlaskit/toggle": "^12.3.0",
45
+ "@atlaskit/toggle": "^12.4.0",
48
46
  "@atlaskit/visual-regression": "*",
49
47
  "@atlaskit/webdriver-runner": "*",
50
48
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
@@ -76,4 +74,4 @@
76
74
  },
77
75
  "homepage": "https://atlassian.design/components/checkbox/",
78
76
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
79
- }
77
+ }