@atlaskit/checkbox 13.1.4 → 13.2.0

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.
@@ -164,7 +164,7 @@ var Checkbox = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef
164
164
  analyticsData: analyticsContext,
165
165
  componentName: 'checkbox',
166
166
  packageName: "@atlaskit/checkbox",
167
- packageVersion: "13.1.4"
167
+ packageVersion: "13.2.0"
168
168
  });
169
169
  var internalRef = (0, _react.useRef)(null);
170
170
  var mergedRefs = (0, _mergeRefs.default)([internalRef, ref]);
@@ -7,7 +7,6 @@ exports.default = Label;
7
7
  var _react = require("@emotion/react");
8
8
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
9
9
  var _colors = require("@atlaskit/theme/colors");
10
- var _constants = require("./constants");
11
10
  /** @jsx jsx */
12
11
 
13
12
  var baseStyles = (0, _react.css)({
@@ -16,7 +15,7 @@ var baseStyles = (0, _react.css)({
16
15
  gridAutoRows: 'min-content',
17
16
  color: "var(--ds-text, ".concat(_colors.N900, ")"),
18
17
  cursor: 'default',
19
- fontFamily: "var(--ds-font-family-sans, ".concat(_constants.fontFamily, ")")
18
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
20
19
  });
21
20
  var textLabelLayoutStyles = (0, _react.css)({
22
21
  gap: "var(--ds-space-0, 0px)".concat(" ", "var(--ds-space-050, 4px)"),
@@ -148,7 +148,7 @@ const Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Checkbox(pr
148
148
  analyticsData: analyticsContext,
149
149
  componentName: 'checkbox',
150
150
  packageName: "@atlaskit/checkbox",
151
- packageVersion: "13.1.4"
151
+ packageVersion: "13.2.0"
152
152
  });
153
153
  const internalRef = useRef(null);
154
154
  const mergedRefs = mergeRefs([internalRef, ref]);
@@ -2,14 +2,13 @@
2
2
  import { css, jsx } from '@emotion/react';
3
3
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
4
  import { B200, B300, B400, B50, N10, N100, N20, N30, N40, N70, N80, N900, R300 } from '@atlaskit/theme/colors';
5
- import { fontFamily } from './constants';
6
5
  const baseStyles = css({
7
6
  display: 'grid',
8
7
  gridAutoColumns: '1fr',
9
8
  gridAutoRows: 'min-content',
10
9
  color: `var(--ds-text, ${N900})`,
11
10
  cursor: 'default',
12
- fontFamily: `var(--ds-font-family-sans, ${fontFamily})`
11
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
13
12
  });
14
13
  const textLabelLayoutStyles = css({
15
14
  gap: `${"var(--ds-space-0, 0px)"} ${"var(--ds-space-050, 4px)"}`,
@@ -157,7 +157,7 @@ var Checkbox = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function Checkbox(prop
157
157
  analyticsData: analyticsContext,
158
158
  componentName: 'checkbox',
159
159
  packageName: "@atlaskit/checkbox",
160
- packageVersion: "13.1.4"
160
+ packageVersion: "13.2.0"
161
161
  });
162
162
  var internalRef = useRef(null);
163
163
  var mergedRefs = mergeRefs([internalRef, ref]);
@@ -2,14 +2,13 @@
2
2
  import { css, jsx } from '@emotion/react';
3
3
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
4
  import { B200, B300, B400, B50, N10, N100, N20, N30, N40, N70, N80, N900, R300 } from '@atlaskit/theme/colors';
5
- import { fontFamily } from './constants';
6
5
  var baseStyles = css({
7
6
  display: 'grid',
8
7
  gridAutoColumns: '1fr',
9
8
  gridAutoRows: 'min-content',
10
9
  color: "var(--ds-text, ".concat(N900, ")"),
11
10
  cursor: 'default',
12
- fontFamily: "var(--ds-font-family-sans, ".concat(fontFamily, ")")
11
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
13
12
  });
14
13
  var textLabelLayoutStyles = css({
15
14
  gap: "var(--ds-space-0, 0px)".concat(" ", "var(--ds-space-050, 4px)"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/checkbox",
3
- "version": "13.1.4",
3
+ "version": "13.2.0",
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/"
@@ -31,23 +31,24 @@
31
31
  "website": {
32
32
  "name": "Checkbox",
33
33
  "category": "Components"
34
- }
34
+ },
35
+ "runReact18": true
35
36
  },
36
37
  "af:exports": {
37
38
  ".": "./src/index.tsx"
38
39
  },
39
40
  "dependencies": {
40
- "@atlaskit/analytics-next": "^9.2.0",
41
- "@atlaskit/ds-lib": "^2.2.0",
41
+ "@atlaskit/analytics-next": "^9.3.0",
42
+ "@atlaskit/ds-lib": "^2.3.0",
42
43
  "@atlaskit/icon": "^22.1.0",
43
44
  "@atlaskit/platform-feature-flags": "^0.2.0",
44
45
  "@atlaskit/theme": "^12.7.0",
45
- "@atlaskit/tokens": "^1.42.0",
46
+ "@atlaskit/tokens": "^1.44.0",
46
47
  "@babel/runtime": "^7.0.0",
47
48
  "@emotion/react": "^11.7.1"
48
49
  },
49
50
  "peerDependencies": {
50
- "react": "^16.8.0"
51
+ "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
51
52
  },
52
53
  "devDependencies": {
53
54
  "@af/accessibility-testing": "*",
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.fontFamily = void 0;
7
- var _constants = require("@atlaskit/theme/constants");
8
- var fontFamily = exports.fontFamily = (0, _constants.fontFamily)();
@@ -1,2 +0,0 @@
1
- import { fontFamily as getFontFamily } from '@atlaskit/theme/constants';
2
- export const fontFamily = getFontFamily();
@@ -1,2 +0,0 @@
1
- import { fontFamily as getFontFamily } from '@atlaskit/theme/constants';
2
- export var fontFamily = getFontFamily();
@@ -1 +0,0 @@
1
- export declare const fontFamily: string;
@@ -1 +0,0 @@
1
- export declare const fontFamily: string;