@atlaskit/primitives 4.0.0 → 4.0.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.
- package/CHANGELOG.md +7 -0
- package/dist/cjs/components/anchor.js +3 -3
- package/dist/cjs/components/pressable.js +3 -3
- package/dist/es2019/components/anchor.js +1 -1
- package/dist/es2019/components/box.js +1 -0
- package/dist/es2019/components/pressable.js +1 -1
- package/dist/es2019/xcss/style-maps.partial.js +6 -0
- package/dist/esm/components/anchor.js +1 -1
- package/dist/esm/components/box.js +1 -0
- package/dist/esm/components/pressable.js +1 -1
- package/dist/esm/xcss/style-maps.partial.js +6 -0
- package/package.json +2 -2
- package/scripts/border-codegen-template.tsx +1 -2
- package/scripts/color-codegen-template.tsx +4 -4
- package/scripts/elevation-codegen-template.tsx +4 -4
- package/scripts/inverse-color-map-template.tsx +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/primitives
|
|
2
2
|
|
|
3
|
+
## 4.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
3
10
|
## 4.0.0
|
|
4
11
|
|
|
5
12
|
### 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(
|
|
23
|
-
function _interopRequireWildcard(
|
|
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.
|
|
79
|
+
packageVersion: "4.0.1",
|
|
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(
|
|
20
|
-
function _interopRequireWildcard(
|
|
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.
|
|
83
|
+
packageVersion: "4.0.1",
|
|
84
84
|
analyticsData: analyticsContext,
|
|
85
85
|
actionSubject: 'button'
|
|
86
86
|
});
|
|
@@ -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.
|
|
69
|
+
packageVersion: "4.0.1",
|
|
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,6 +64,7 @@ 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
70
|
* @codegen <<SignedSource::fcf1cfc01cda3c278e69b0b564c7746d>>
|
|
@@ -138,6 +140,7 @@ 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
146
|
* @codegen <<SignedSource::0f7982208166d5dae0e25517d29aeaef>>
|
|
@@ -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.
|
|
69
|
+
packageVersion: "4.0.1",
|
|
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.
|
|
73
|
+
packageVersion: "4.0.1",
|
|
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,6 +64,7 @@ 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
70
|
* @codegen <<SignedSource::fcf1cfc01cda3c278e69b0b564c7746d>>
|
|
@@ -138,6 +140,7 @@ 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
146
|
* @codegen <<SignedSource::0f7982208166d5dae0e25517d29aeaef>>
|
|
@@ -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>>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/primitives",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
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.
|
|
130
|
+
"@atlaskit/tokens": "^1.40.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
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
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
|
|