@atlaskit/primitives 4.0.0 → 4.0.2

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,19 @@
1
1
  # @atlaskit/primitives
2
2
 
3
+ ## 4.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#80805](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80805) [`427c2dd9e0d6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/427c2dd9e0d6) - Update input border color token and width to meet 3:1 color contrast
8
+ - Updated dependencies
9
+
10
+ ## 4.0.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [#79770](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/79770) [`542e29efe0ad`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/542e29efe0ad) - Update imports from @atlaskit/tokens
15
+ - Updated dependencies
16
+
3
17
  ## 4.0.0
4
18
 
5
19
  ### Major Changes
@@ -19,8 +19,8 @@ var _interactionContext = _interopRequireDefault(require("@atlaskit/interaction-
19
19
  var _xcss = require("../xcss/xcss");
20
20
  var _box = _interopRequireDefault(require("./box"));
21
21
  var _excluded = ["href", "children", "backgroundColor", "padding", "paddingBlock", "paddingBlockStart", "paddingBlockEnd", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "testId", "xcss", "target", "rel", "onClick", "interactionName", "componentName", "analyticsContext"];
22
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
22
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
23
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
24
24
  // TODO: Duplicated FocusRing styles due to lack of `xcss` support
25
25
  // and to prevent additional dependency
26
26
  var baseFocusRingStyles = {
@@ -76,7 +76,7 @@ var Anchor = function Anchor(_ref, ref) {
76
76
  action: 'clicked',
77
77
  componentName: componentName || 'Anchor',
78
78
  packageName: "@atlaskit/primitives",
79
- packageVersion: "4.0.0",
79
+ packageVersion: "4.0.2",
80
80
  analyticsData: analyticsContext,
81
81
  actionSubject: 'link'
82
82
  });
@@ -16,8 +16,8 @@ var _interactionContext = _interopRequireDefault(require("@atlaskit/interaction-
16
16
  var _xcss = require("../xcss/xcss");
17
17
  var _box = _interopRequireDefault(require("./box"));
18
18
  var _excluded = ["children", "backgroundColor", "padding", "paddingBlock", "paddingBlockStart", "paddingBlockEnd", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "isDisabled", "type", "testId", "xcss", "onClick", "interactionName", "componentName", "analyticsContext"];
19
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
20
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
20
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
21
21
  // TODO: Duplicated FocusRing styles due to lack of `xcss` support
22
22
  // and to prevent additional dependency
23
23
  var baseFocusRingStyles = {
@@ -80,7 +80,7 @@ var UNSAFE_PRESSABLE = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
80
80
  action: 'clicked',
81
81
  componentName: componentName || 'Pressable',
82
82
  packageName: "@atlaskit/primitives",
83
- packageVersion: "4.0.0",
83
+ packageVersion: "4.0.2",
84
84
  analyticsData: analyticsContext,
85
85
  actionSubject: 'button'
86
86
  });
@@ -73,10 +73,10 @@ var allSpaceMap = exports.allSpaceMap = _objectSpread(_objectSpread({}, positive
73
73
 
74
74
  /**
75
75
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
76
- * @codegen <<SignedSource::fcf1cfc01cda3c278e69b0b564c7746d>>
76
+ * @codegen <<SignedSource::3c4b71fa7d31f43144f09508cc0bbfd7>>
77
77
  * @codegenId inverse-colors
78
78
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
79
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
79
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::c9f456a6060fb74421e49528d00f56ab>>
80
80
  */
81
81
  var inverseColorMap = exports.inverseColorMap = {
82
82
  'color.background.neutral.bold': 'color.text.inverse',
@@ -114,11 +114,11 @@ var inverseColorMap = exports.inverseColorMap = {
114
114
 
115
115
  /**
116
116
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
117
- * @codegen <<SignedSource::8c10abde8168de6260b5aa120dd948bc>>
117
+ * @codegen <<SignedSource::c30600da6551bf7851adc37192d36ad6>>
118
118
  * @codegenId elevation
119
119
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
120
120
  * @codegenParams ["opacity", "shadow", "surface"]
121
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
121
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::c9f456a6060fb74421e49528d00f56ab>>
122
122
  */
123
123
  var opacityMap = exports.opacityMap = {
124
124
  'opacity.disabled': "var(--ds-opacity-disabled, 0.4)",
@@ -149,11 +149,11 @@ var surfaceColorMap = exports.surfaceColorMap = {
149
149
 
150
150
  /**
151
151
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
152
- * @codegen <<SignedSource::0f7982208166d5dae0e25517d29aeaef>>
152
+ * @codegen <<SignedSource::cebd93cc2826bc8cdbcdca032e06b574>>
153
153
  * @codegenId colors
154
154
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
155
155
  * @codegenParams ["border", "background", "text", "fill"]
156
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
156
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::c9f456a6060fb74421e49528d00f56ab>>
157
157
  */
158
158
  var borderColorMap = exports.borderColorMap = {
159
159
  'color.border': "var(--ds-border, #091e4221)",
@@ -62,7 +62,7 @@ const Anchor = ({
62
62
  action: 'clicked',
63
63
  componentName: componentName || 'Anchor',
64
64
  packageName: "@atlaskit/primitives",
65
- packageVersion: "4.0.0",
65
+ packageVersion: "4.0.2",
66
66
  analyticsData: analyticsContext,
67
67
  actionSubject: 'link'
68
68
  });
@@ -10,6 +10,7 @@ import { SurfaceContext } from './internal/surface-provider';
10
10
 
11
11
  // Basically just ElementType but without ComponentType, it makes sense to keep the "Type" suffix
12
12
  // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
13
+
13
14
  /**
14
15
  * __Box__
15
16
  *
@@ -66,7 +66,7 @@ const UNSAFE_PRESSABLE = /*#__PURE__*/forwardRef(({
66
66
  action: 'clicked',
67
67
  componentName: componentName || 'Pressable',
68
68
  packageName: "@atlaskit/primitives",
69
- packageVersion: "4.0.0",
69
+ packageVersion: "4.0.2",
70
70
  analyticsData: analyticsContext,
71
71
  actionSubject: 'button'
72
72
  });
@@ -22,6 +22,7 @@ export const dimensionMap = {
22
22
  /**
23
23
  * @codegenEnd
24
24
  */
25
+
25
26
  /**
26
27
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
27
28
  * @codegen <<SignedSource::f8111b846d3e3be67331853f10d1b568>>
@@ -63,12 +64,13 @@ export const allSpaceMap = {
63
64
  /**
64
65
  * @codegenEnd
65
66
  */
67
+
66
68
  /**
67
69
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
68
- * @codegen <<SignedSource::fcf1cfc01cda3c278e69b0b564c7746d>>
70
+ * @codegen <<SignedSource::3c4b71fa7d31f43144f09508cc0bbfd7>>
69
71
  * @codegenId inverse-colors
70
72
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
71
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
73
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::c9f456a6060fb74421e49528d00f56ab>>
72
74
  */
73
75
  export const inverseColorMap = {
74
76
  'color.background.neutral.bold': 'color.text.inverse',
@@ -106,11 +108,11 @@ export const inverseColorMap = {
106
108
 
107
109
  /**
108
110
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
109
- * @codegen <<SignedSource::8c10abde8168de6260b5aa120dd948bc>>
111
+ * @codegen <<SignedSource::c30600da6551bf7851adc37192d36ad6>>
110
112
  * @codegenId elevation
111
113
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
112
114
  * @codegenParams ["opacity", "shadow", "surface"]
113
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
115
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::c9f456a6060fb74421e49528d00f56ab>>
114
116
  */
115
117
  export const opacityMap = {
116
118
  'opacity.disabled': "var(--ds-opacity-disabled, 0.4)",
@@ -138,13 +140,14 @@ export const surfaceColorMap = {
138
140
  /**
139
141
  * @codegenEnd
140
142
  */
143
+
141
144
  /**
142
145
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
143
- * @codegen <<SignedSource::0f7982208166d5dae0e25517d29aeaef>>
146
+ * @codegen <<SignedSource::cebd93cc2826bc8cdbcdca032e06b574>>
144
147
  * @codegenId colors
145
148
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
146
149
  * @codegenParams ["border", "background", "text", "fill"]
147
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
150
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::c9f456a6060fb74421e49528d00f56ab>>
148
151
  */
149
152
  export const borderColorMap = {
150
153
  'color.border': "var(--ds-border, #091e4221)",
@@ -433,6 +436,7 @@ export const fillMap = {
433
436
  /**
434
437
  * @codegenEnd
435
438
  */
439
+
436
440
  /**
437
441
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
438
442
  * @codegen <<SignedSource::01a4b055c311d198921d4e000a2d7a54>>
@@ -456,6 +460,7 @@ export const layerMap = {
456
460
  /**
457
461
  * @codegenEnd
458
462
  */
463
+
459
464
  /**
460
465
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
461
466
  * @codegen <<SignedSource::d44c306cfe2334f9664fc122aa7d9fe6>>
@@ -482,6 +487,7 @@ export const borderRadiusMap = {
482
487
  /**
483
488
  * @codegenEnd
484
489
  */
490
+
485
491
  /**
486
492
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
487
493
  * @codegen <<SignedSource::76c411b57ce0b5e8faa09cb692065229>>
@@ -66,7 +66,7 @@ var Anchor = function Anchor(_ref, ref) {
66
66
  action: 'clicked',
67
67
  componentName: componentName || 'Anchor',
68
68
  packageName: "@atlaskit/primitives",
69
- packageVersion: "4.0.0",
69
+ packageVersion: "4.0.2",
70
70
  analyticsData: analyticsContext,
71
71
  actionSubject: 'link'
72
72
  });
@@ -13,6 +13,7 @@ import { SurfaceContext } from './internal/surface-provider';
13
13
 
14
14
  // Basically just ElementType but without ComponentType, it makes sense to keep the "Type" suffix
15
15
  // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
16
+
16
17
  /**
17
18
  * __Box__
18
19
  *
@@ -70,7 +70,7 @@ var UNSAFE_PRESSABLE = /*#__PURE__*/forwardRef(function (_ref, ref) {
70
70
  action: 'clicked',
71
71
  componentName: componentName || 'Pressable',
72
72
  packageName: "@atlaskit/primitives",
73
- packageVersion: "4.0.0",
73
+ packageVersion: "4.0.2",
74
74
  analyticsData: analyticsContext,
75
75
  actionSubject: 'button'
76
76
  });
@@ -25,6 +25,7 @@ export var dimensionMap = {
25
25
  /**
26
26
  * @codegenEnd
27
27
  */
28
+
28
29
  /**
29
30
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
30
31
  * @codegen <<SignedSource::f8111b846d3e3be67331853f10d1b568>>
@@ -63,12 +64,13 @@ export var allSpaceMap = _objectSpread(_objectSpread({}, positiveSpaceMap), nega
63
64
  /**
64
65
  * @codegenEnd
65
66
  */
67
+
66
68
  /**
67
69
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
68
- * @codegen <<SignedSource::fcf1cfc01cda3c278e69b0b564c7746d>>
70
+ * @codegen <<SignedSource::3c4b71fa7d31f43144f09508cc0bbfd7>>
69
71
  * @codegenId inverse-colors
70
72
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
71
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
73
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::c9f456a6060fb74421e49528d00f56ab>>
72
74
  */
73
75
  export var inverseColorMap = {
74
76
  'color.background.neutral.bold': 'color.text.inverse',
@@ -106,11 +108,11 @@ export var inverseColorMap = {
106
108
 
107
109
  /**
108
110
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
109
- * @codegen <<SignedSource::8c10abde8168de6260b5aa120dd948bc>>
111
+ * @codegen <<SignedSource::c30600da6551bf7851adc37192d36ad6>>
110
112
  * @codegenId elevation
111
113
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
112
114
  * @codegenParams ["opacity", "shadow", "surface"]
113
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
115
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::c9f456a6060fb74421e49528d00f56ab>>
114
116
  */
115
117
  export var opacityMap = {
116
118
  'opacity.disabled': "var(--ds-opacity-disabled, 0.4)",
@@ -138,13 +140,14 @@ export var surfaceColorMap = {
138
140
  /**
139
141
  * @codegenEnd
140
142
  */
143
+
141
144
  /**
142
145
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
143
- * @codegen <<SignedSource::0f7982208166d5dae0e25517d29aeaef>>
146
+ * @codegen <<SignedSource::cebd93cc2826bc8cdbcdca032e06b574>>
144
147
  * @codegenId colors
145
148
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
146
149
  * @codegenParams ["border", "background", "text", "fill"]
147
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
150
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::c9f456a6060fb74421e49528d00f56ab>>
148
151
  */
149
152
  export var borderColorMap = {
150
153
  'color.border': "var(--ds-border, #091e4221)",
@@ -433,6 +436,7 @@ export var fillMap = {
433
436
  /**
434
437
  * @codegenEnd
435
438
  */
439
+
436
440
  /**
437
441
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
438
442
  * @codegen <<SignedSource::01a4b055c311d198921d4e000a2d7a54>>
@@ -456,6 +460,7 @@ export var layerMap = {
456
460
  /**
457
461
  * @codegenEnd
458
462
  */
463
+
459
464
  /**
460
465
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
461
466
  * @codegen <<SignedSource::d44c306cfe2334f9664fc122aa7d9fe6>>
@@ -482,6 +487,7 @@ export var borderRadiusMap = {
482
487
  /**
483
488
  * @codegenEnd
484
489
  */
490
+
485
491
  /**
486
492
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
487
493
  * @codegen <<SignedSource::76c411b57ce0b5e8faa09cb692065229>>
@@ -88,10 +88,10 @@ export type AllSpace = keyof typeof allSpaceMap;
88
88
  */
89
89
  /**
90
90
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
91
- * @codegen <<SignedSource::fcf1cfc01cda3c278e69b0b564c7746d>>
91
+ * @codegen <<SignedSource::3c4b71fa7d31f43144f09508cc0bbfd7>>
92
92
  * @codegenId inverse-colors
93
93
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
94
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
94
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::c9f456a6060fb74421e49528d00f56ab>>
95
95
  */
96
96
  export declare const inverseColorMap: {
97
97
  readonly 'color.background.neutral.bold': "color.text.inverse";
@@ -127,11 +127,11 @@ export declare const inverseColorMap: {
127
127
  */
128
128
  /**
129
129
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
130
- * @codegen <<SignedSource::8c10abde8168de6260b5aa120dd948bc>>
130
+ * @codegen <<SignedSource::c30600da6551bf7851adc37192d36ad6>>
131
131
  * @codegenId elevation
132
132
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
133
133
  * @codegenParams ["opacity", "shadow", "surface"]
134
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
134
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::c9f456a6060fb74421e49528d00f56ab>>
135
135
  */
136
136
  export declare const opacityMap: {
137
137
  readonly 'opacity.disabled': "var(--ds-opacity-disabled)";
@@ -164,11 +164,11 @@ export type SurfaceColor = keyof typeof surfaceColorMap;
164
164
  */
165
165
  /**
166
166
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
167
- * @codegen <<SignedSource::0f7982208166d5dae0e25517d29aeaef>>
167
+ * @codegen <<SignedSource::cebd93cc2826bc8cdbcdca032e06b574>>
168
168
  * @codegenId colors
169
169
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
170
170
  * @codegenParams ["border", "background", "text", "fill"]
171
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
171
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::c9f456a6060fb74421e49528d00f56ab>>
172
172
  */
173
173
  export declare const borderColorMap: {
174
174
  readonly 'color.border': "var(--ds-border)";
@@ -88,10 +88,10 @@ export type AllSpace = keyof typeof allSpaceMap;
88
88
  */
89
89
  /**
90
90
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
91
- * @codegen <<SignedSource::fcf1cfc01cda3c278e69b0b564c7746d>>
91
+ * @codegen <<SignedSource::3c4b71fa7d31f43144f09508cc0bbfd7>>
92
92
  * @codegenId inverse-colors
93
93
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
94
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
94
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::c9f456a6060fb74421e49528d00f56ab>>
95
95
  */
96
96
  export declare const inverseColorMap: {
97
97
  readonly 'color.background.neutral.bold': "color.text.inverse";
@@ -127,11 +127,11 @@ export declare const inverseColorMap: {
127
127
  */
128
128
  /**
129
129
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
130
- * @codegen <<SignedSource::8c10abde8168de6260b5aa120dd948bc>>
130
+ * @codegen <<SignedSource::c30600da6551bf7851adc37192d36ad6>>
131
131
  * @codegenId elevation
132
132
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
133
133
  * @codegenParams ["opacity", "shadow", "surface"]
134
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
134
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::c9f456a6060fb74421e49528d00f56ab>>
135
135
  */
136
136
  export declare const opacityMap: {
137
137
  readonly 'opacity.disabled': "var(--ds-opacity-disabled)";
@@ -164,11 +164,11 @@ export type SurfaceColor = keyof typeof surfaceColorMap;
164
164
  */
165
165
  /**
166
166
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
167
- * @codegen <<SignedSource::0f7982208166d5dae0e25517d29aeaef>>
167
+ * @codegen <<SignedSource::cebd93cc2826bc8cdbcdca032e06b574>>
168
168
  * @codegenId colors
169
169
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
170
170
  * @codegenParams ["border", "background", "text", "fill"]
171
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
171
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::c9f456a6060fb74421e49528d00f56ab>>
172
172
  */
173
173
  export declare const borderColorMap: {
174
174
  readonly 'color.border': "var(--ds-border)";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Primitives are token-backed low-level building blocks.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -127,7 +127,7 @@
127
127
  "@atlaskit/css": "^0.0.3",
128
128
  "@atlaskit/ds-lib": "^2.2.0",
129
129
  "@atlaskit/interaction-context": "^2.1.0",
130
- "@atlaskit/tokens": "^1.39.0",
130
+ "@atlaskit/tokens": "^1.41.0",
131
131
  "@babel/runtime": "^7.0.0",
132
132
  "@emotion/react": "^11.7.1",
133
133
  "@emotion/serialize": "^1.1.0",
@@ -1,8 +1,7 @@
1
1
  import prettier from 'prettier';
2
2
  import parserTypeScript from 'prettier/parser-typescript';
3
3
 
4
- // eslint-disable-next-line @atlassian/tangerine/import/entry-points
5
- import tokens from '@atlaskit/tokens/src/artifacts/tokens-raw/atlassian-shape';
4
+ import { shape as tokens } from '@atlaskit/tokens/tokens-raw';
6
5
 
7
6
  import { capitalize, constructTokenFunctionCall } from './utils';
8
7
 
@@ -1,10 +1,10 @@
1
1
  import prettier from 'prettier';
2
2
  import parserTypeScript from 'prettier/parser-typescript';
3
3
 
4
- // eslint-disable-next-line @atlassian/tangerine/import/entry-points
5
- import legacyTokens from '@atlaskit/tokens/src/artifacts/tokens-raw/atlassian-legacy-light';
6
- // eslint-disable-next-line @atlassian/tangerine/import/entry-points
7
- import tokens from '@atlaskit/tokens/src/artifacts/tokens-raw/atlassian-light';
4
+ import {
5
+ legacyLightTokens as legacyTokens,
6
+ light as tokens,
7
+ } from '@atlaskit/tokens/tokens-raw';
8
8
 
9
9
  import {
10
10
  capitalize,
@@ -2,10 +2,10 @@ import prettier from 'prettier';
2
2
  import parserTypeScript from 'prettier/parser-typescript';
3
3
 
4
4
  import { CURRENT_SURFACE_CSS_VAR } from '@atlaskit/tokens';
5
- // eslint-disable-next-line @atlassian/tangerine/import/entry-points
6
- import legacyTokens from '@atlaskit/tokens/src/artifacts/tokens-raw/atlassian-legacy-light';
7
- // eslint-disable-next-line @atlassian/tangerine/import/entry-points
8
- import tokens from '@atlaskit/tokens/src/artifacts/tokens-raw/atlassian-light';
5
+ import {
6
+ legacyLightTokens as legacyTokens,
7
+ light as tokens,
8
+ } from '@atlaskit/tokens/tokens-raw';
9
9
 
10
10
  import {
11
11
  capitalize,
@@ -1,8 +1,7 @@
1
1
  import prettier from 'prettier';
2
2
  import parserTypeScript from 'prettier/parser-typescript';
3
3
 
4
- // eslint-disable-next-line @atlassian/tangerine/import/entry-points
5
- import tokens from '@atlaskit/tokens/src/artifacts/tokens-raw/atlassian-light';
4
+ import { light as tokens } from '@atlaskit/tokens/tokens-raw';
6
5
 
7
6
  import { compose, isAccent, not, pick } from './utils';
8
7