@atlaskit/primitives 14.9.0 → 14.10.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 +22 -0
- package/constellation/focusable/code.mdx +24 -0
- package/constellation/focusable/examples.mdx +30 -0
- package/constellation/focusable/images/focus-ring-asset.png +0 -0
- package/constellation/focusable/usage.mdx +19 -0
- package/constellation/metric-text/code.mdx +21 -0
- package/constellation/metric-text/examples.mdx +37 -0
- package/constellation/metric-text/usage.mdx +13 -0
- package/constellation/text/usage.mdx +2 -2
- package/dist/cjs/compiled/components/anchor.js +1 -1
- package/dist/cjs/compiled/components/flex.js +1 -0
- package/dist/cjs/compiled/components/pressable.js +1 -1
- package/dist/cjs/components/anchor.js +1 -1
- package/dist/cjs/components/flex.js +1 -0
- package/dist/cjs/components/grid.js +1 -0
- package/dist/cjs/components/pressable.js +1 -1
- package/dist/es2019/compiled/components/anchor.js +1 -1
- package/dist/es2019/compiled/components/flex.js +1 -0
- package/dist/es2019/compiled/components/pressable.js +1 -1
- package/dist/es2019/components/anchor.js +1 -1
- package/dist/es2019/components/flex.js +1 -0
- package/dist/es2019/components/grid.js +1 -0
- package/dist/es2019/components/pressable.js +1 -1
- package/dist/esm/compiled/components/anchor.js +1 -1
- package/dist/esm/compiled/components/flex.js +1 -0
- package/dist/esm/compiled/components/pressable.js +1 -1
- package/dist/esm/components/anchor.js +1 -1
- package/dist/esm/components/flex.js +1 -0
- package/dist/esm/components/grid.js +1 -0
- package/dist/esm/components/pressable.js +1 -1
- package/dist/types/compiled/components/flex.d.ts +1 -0
- package/dist/types/components/flex.d.ts +1 -0
- package/dist/types/components/grid.d.ts +1 -0
- package/dist/types-ts4.5/compiled/components/flex.d.ts +1 -0
- package/dist/types-ts4.5/components/flex.d.ts +1 -0
- package/dist/types-ts4.5/components/grid.d.ts +1 -0
- package/metric-text/package.json +17 -0
- package/package.json +19 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/primitives
|
|
2
2
|
|
|
3
|
+
## 14.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#188952](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/188952)
|
|
8
|
+
[`1a88e6e2601ae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1a88e6e2601ae) -
|
|
9
|
+
Migrated usage of renamed/deprecated icons
|
|
10
|
+
|
|
11
|
+
## 14.10.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#177956](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/177956)
|
|
16
|
+
[`124aac4a851f1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/124aac4a851f1) -
|
|
17
|
+
Added MetricText component which provides a convenient way to consume new metric typography tokens
|
|
18
|
+
for charts and other numerical components. Made metric tokens available in xcss via the font
|
|
19
|
+
shorthand property.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 14.9.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Focusable
|
|
3
|
+
description: A focus ring clearly indicates which item has keyboard focus.
|
|
4
|
+
order: 1
|
|
5
|
+
props:
|
|
6
|
+
packageName: '@atlaskit/primitives/compiled'
|
|
7
|
+
exports:
|
|
8
|
+
- Focusable
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
import { CodeDocsHeader } from '@af/design-system-docs-ui';
|
|
12
|
+
|
|
13
|
+
<CodeDocsHeader
|
|
14
|
+
name="@atlaskit/primitives"
|
|
15
|
+
repository="https://bitbucket.org/atlassian/atlassian-frontend-mirror"
|
|
16
|
+
directoryName="primitives"
|
|
17
|
+
/>
|
|
18
|
+
|
|
19
|
+
Focusable also supports all valid props as specified by the HTML element type in the `as` prop. The
|
|
20
|
+
default is a `button`, so it would support all valid `HTMLButtonElement` props.
|
|
21
|
+
|
|
22
|
+
## Props
|
|
23
|
+
|
|
24
|
+
<TSMorphProps exportName="Focusable" packageName="@atlaskit/primitives/compiled" />
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Focusable
|
|
3
|
+
description: A focus ring clearly indicates which item has keyboard focus.
|
|
4
|
+
order: 0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
import FocusableDefault from '../../examples/constellation/focusable/default';
|
|
8
|
+
import FocusableInset from '../../examples/constellation/focusable/inset';
|
|
9
|
+
|
|
10
|
+
import { CodeDocsHeader } from '@af/design-system-docs-ui';
|
|
11
|
+
|
|
12
|
+
<CodeDocsHeader
|
|
13
|
+
name="@atlaskit/primitives"
|
|
14
|
+
repository="https://bitbucket.org/atlassian/atlassian-frontend-mirror"
|
|
15
|
+
directoryName="primitives"
|
|
16
|
+
/>
|
|
17
|
+
|
|
18
|
+
## Default
|
|
19
|
+
|
|
20
|
+
A focus ring indicates the currently focused item. The default focus ring shows a line around the
|
|
21
|
+
outside of the focused item.
|
|
22
|
+
|
|
23
|
+
<Example Component={FocusableDefault} packageName="@atlaskit/primitives/compiled/focusable" />
|
|
24
|
+
|
|
25
|
+
## Inset line
|
|
26
|
+
|
|
27
|
+
You can toggle the focus ring to show inside the focused item. This is for cases when an inset line
|
|
28
|
+
is more visible than the default line or to avoid overlapping other UI.
|
|
29
|
+
|
|
30
|
+
<Example Component={FocusableInset} packageName="@atlaskit/primitives/compiled/focusable" />
|
|
Binary file
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Focusable
|
|
3
|
+
description: A focus ring clearly indicates which item has keyboard focus.
|
|
4
|
+
order: 2
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
It's important that every keyboard-operable part of an interface shows a clear focus indicator when
|
|
10
|
+
focused. This makes it clear which item has focus when navigating with a keyboard.
|
|
11
|
+
|
|
12
|
+

|
|
13
|
+
|
|
14
|
+
## Accessibility
|
|
15
|
+
|
|
16
|
+
### Include focus indicators on any keyboard operable UI
|
|
17
|
+
|
|
18
|
+
Most design system components have the focus ring or other focus indication built-in. If you are
|
|
19
|
+
composing a new component, make sure it includes a focus ring or other focus indicator.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: MetricText
|
|
3
|
+
description: MetricText is a token-backed typography component to display metrics.
|
|
4
|
+
order: 1
|
|
5
|
+
props:
|
|
6
|
+
packageName: '@atlaskit/primitives'
|
|
7
|
+
exports:
|
|
8
|
+
- MetricText
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
import { CodeDocsHeader } from '@af/design-system-docs-ui';
|
|
12
|
+
|
|
13
|
+
<CodeDocsHeader
|
|
14
|
+
name="@atlaskit/primitives"
|
|
15
|
+
repository="https://bitbucket.org/atlassian/atlassian-frontend-mirror"
|
|
16
|
+
directoryName="primitives"
|
|
17
|
+
/>
|
|
18
|
+
|
|
19
|
+
## Props
|
|
20
|
+
|
|
21
|
+
<TSMorphProps exportName="MetricText" packageName="@atlaskit/primitives" />
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: MetricText
|
|
3
|
+
description: MetricText is a token-backed typography component to display metrics.
|
|
4
|
+
order: 0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
import MetricTextLarge from '../../examples/constellation/metric-text/metric-text-large';
|
|
8
|
+
import MetricTextMedium from '../../examples/constellation/metric-text/metric-text-medium';
|
|
9
|
+
import MetricTextSmall from '../../examples/constellation/metric-text/metric-text-small';
|
|
10
|
+
import MetricTextAlign from '../../examples/constellation/metric-text/metric-text-align';
|
|
11
|
+
|
|
12
|
+
## Basic
|
|
13
|
+
|
|
14
|
+
Use a MetricText component to display numerical information. There are three sizes available via the
|
|
15
|
+
`size` prop:
|
|
16
|
+
|
|
17
|
+
- `'large'` for numbers in the middle of large donut charts.
|
|
18
|
+
- `'medium'` for numbers in the middle of medium donut charts.
|
|
19
|
+
- `'small'` for numbers in the middle of small donut charts and single-value tiles.
|
|
20
|
+
|
|
21
|
+
### Large
|
|
22
|
+
|
|
23
|
+
<Example Component={MetricTextLarge} packageName="@atlaskit/primitives" />
|
|
24
|
+
|
|
25
|
+
### Medium
|
|
26
|
+
|
|
27
|
+
<Example Component={MetricTextMedium} packageName="@atlaskit/primitives" />
|
|
28
|
+
|
|
29
|
+
### Small
|
|
30
|
+
|
|
31
|
+
<Example Component={MetricTextSmall} packageName="@atlaskit/primitives" />
|
|
32
|
+
|
|
33
|
+
## Alignment
|
|
34
|
+
|
|
35
|
+
MetricText can be aligned using the `align` prop.
|
|
36
|
+
|
|
37
|
+
<Example Component={MetricTextAlign} packageName="@atlaskit/primitives" />
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: MetricText
|
|
3
|
+
description: MetricText is a token-backed typography component to display metrics.
|
|
4
|
+
order: 2
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
Use the MetricText component to display metrics such as key numbers, statistics, and data points
|
|
10
|
+
within Atlassian apps.
|
|
11
|
+
|
|
12
|
+
Read more usage guidance for metric text in our
|
|
13
|
+
[Typography foundations](/foundations/typography#metric).
|
|
@@ -6,14 +6,14 @@ order: 2
|
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
9
|
-
Use the
|
|
9
|
+
Use the Text component for all non-heading text, including main content, detailed descriptions, and
|
|
10
10
|
text in components.
|
|
11
11
|
|
|
12
12
|
For each size, a specific line height is automatically set ensuring text is compliant with
|
|
13
13
|
accessibility standards.
|
|
14
14
|
|
|
15
15
|
Read more usage guidance for body text in our
|
|
16
|
-
[Typography foundations](/foundations/typography
|
|
16
|
+
[Typography foundations](/foundations/typography#body).
|
|
17
17
|
|
|
18
18
|
## Accessibility
|
|
19
19
|
|
|
@@ -69,7 +69,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
69
69
|
action: 'clicked',
|
|
70
70
|
componentName: componentName || 'Anchor',
|
|
71
71
|
packageName: "@atlaskit/primitives",
|
|
72
|
-
packageVersion: "14.
|
|
72
|
+
packageVersion: "14.10.0",
|
|
73
73
|
analyticsData: analyticsContext,
|
|
74
74
|
actionSubject: 'link'
|
|
75
75
|
});
|
|
@@ -81,6 +81,7 @@ var styles = {
|
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
83
|
* ```tsx
|
|
84
|
+
* // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
84
85
|
* import { Flex, Box } from '@atlaskit/primitives'
|
|
85
86
|
*
|
|
86
87
|
* const Component = () => (
|
|
@@ -61,7 +61,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
61
61
|
action: 'clicked',
|
|
62
62
|
componentName: componentName || 'Pressable',
|
|
63
63
|
packageName: "@atlaskit/primitives",
|
|
64
|
-
packageVersion: "14.
|
|
64
|
+
packageVersion: "14.10.0",
|
|
65
65
|
analyticsData: analyticsContext,
|
|
66
66
|
actionSubject: 'button'
|
|
67
67
|
});
|
|
@@ -100,7 +100,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
100
100
|
action: 'clicked',
|
|
101
101
|
componentName: componentName || 'Anchor',
|
|
102
102
|
packageName: "@atlaskit/primitives",
|
|
103
|
-
packageVersion: "14.
|
|
103
|
+
packageVersion: "14.10.0",
|
|
104
104
|
analyticsData: analyticsContext,
|
|
105
105
|
actionSubject: 'link'
|
|
106
106
|
});
|
|
@@ -86,6 +86,7 @@ var baseStyles = (0, _react2.css)({
|
|
|
86
86
|
*
|
|
87
87
|
* @example
|
|
88
88
|
* ```tsx
|
|
89
|
+
* // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
89
90
|
* import { Flex, Box } from '@atlaskit/primitives'
|
|
90
91
|
*
|
|
91
92
|
* const Component = () => (
|
|
@@ -129,6 +129,7 @@ var gridAutoFlowMap = {
|
|
|
129
129
|
*
|
|
130
130
|
* @example
|
|
131
131
|
* ```tsx
|
|
132
|
+
* // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
132
133
|
* import { Grid, Box } from '@atlaskit/primitives'
|
|
133
134
|
*
|
|
134
135
|
* const Component = () => (
|
|
@@ -95,7 +95,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
95
95
|
action: 'clicked',
|
|
96
96
|
componentName: componentName || 'Pressable',
|
|
97
97
|
packageName: "@atlaskit/primitives",
|
|
98
|
-
packageVersion: "14.
|
|
98
|
+
packageVersion: "14.10.0",
|
|
99
99
|
analyticsData: analyticsContext,
|
|
100
100
|
actionSubject: 'button'
|
|
101
101
|
});
|
|
@@ -73,6 +73,7 @@ const styles = {
|
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
75
|
* ```tsx
|
|
76
|
+
* // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
76
77
|
* import { Flex, Box } from '@atlaskit/primitives'
|
|
77
78
|
*
|
|
78
79
|
* const Component = () => (
|
|
@@ -48,7 +48,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
|
|
|
48
48
|
action: 'clicked',
|
|
49
49
|
componentName: componentName || 'Pressable',
|
|
50
50
|
packageName: "@atlaskit/primitives",
|
|
51
|
-
packageVersion: "14.
|
|
51
|
+
packageVersion: "14.10.0",
|
|
52
52
|
analyticsData: analyticsContext,
|
|
53
53
|
actionSubject: 'button'
|
|
54
54
|
});
|
|
@@ -79,6 +79,7 @@ const baseStyles = css({
|
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
81
|
* ```tsx
|
|
82
|
+
* // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
82
83
|
* import { Flex, Box } from '@atlaskit/primitives'
|
|
83
84
|
*
|
|
84
85
|
* const Component = () => (
|
|
@@ -120,6 +120,7 @@ const gridAutoFlowMap = {
|
|
|
120
120
|
*
|
|
121
121
|
* @example
|
|
122
122
|
* ```tsx
|
|
123
|
+
* // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
123
124
|
* import { Grid, Box } from '@atlaskit/primitives'
|
|
124
125
|
*
|
|
125
126
|
* const Component = () => (
|
|
@@ -85,7 +85,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
|
|
|
85
85
|
action: 'clicked',
|
|
86
86
|
componentName: componentName || 'Pressable',
|
|
87
87
|
packageName: "@atlaskit/primitives",
|
|
88
|
-
packageVersion: "14.
|
|
88
|
+
packageVersion: "14.10.0",
|
|
89
89
|
analyticsData: analyticsContext,
|
|
90
90
|
actionSubject: 'button'
|
|
91
91
|
});
|
|
@@ -60,7 +60,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
60
60
|
action: 'clicked',
|
|
61
61
|
componentName: componentName || 'Anchor',
|
|
62
62
|
packageName: "@atlaskit/primitives",
|
|
63
|
-
packageVersion: "14.
|
|
63
|
+
packageVersion: "14.10.0",
|
|
64
64
|
analyticsData: analyticsContext,
|
|
65
65
|
actionSubject: 'link'
|
|
66
66
|
});
|
|
@@ -73,6 +73,7 @@ var styles = {
|
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
75
|
* ```tsx
|
|
76
|
+
* // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
76
77
|
* import { Flex, Box } from '@atlaskit/primitives'
|
|
77
78
|
*
|
|
78
79
|
* const Component = () => (
|
|
@@ -52,7 +52,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
52
52
|
action: 'clicked',
|
|
53
53
|
componentName: componentName || 'Pressable',
|
|
54
54
|
packageName: "@atlaskit/primitives",
|
|
55
|
-
packageVersion: "14.
|
|
55
|
+
packageVersion: "14.10.0",
|
|
56
56
|
analyticsData: analyticsContext,
|
|
57
57
|
actionSubject: 'button'
|
|
58
58
|
});
|
|
@@ -94,7 +94,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
94
94
|
action: 'clicked',
|
|
95
95
|
componentName: componentName || 'Anchor',
|
|
96
96
|
packageName: "@atlaskit/primitives",
|
|
97
|
-
packageVersion: "14.
|
|
97
|
+
packageVersion: "14.10.0",
|
|
98
98
|
analyticsData: analyticsContext,
|
|
99
99
|
actionSubject: 'link'
|
|
100
100
|
});
|
|
@@ -79,6 +79,7 @@ var baseStyles = css({
|
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
81
|
* ```tsx
|
|
82
|
+
* // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
82
83
|
* import { Flex, Box } from '@atlaskit/primitives'
|
|
83
84
|
*
|
|
84
85
|
* const Component = () => (
|
|
@@ -121,6 +121,7 @@ var gridAutoFlowMap = {
|
|
|
121
121
|
*
|
|
122
122
|
* @example
|
|
123
123
|
* ```tsx
|
|
124
|
+
* // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
124
125
|
* import { Grid, Box } from '@atlaskit/primitives'
|
|
125
126
|
*
|
|
126
127
|
* const Component = () => (
|
|
@@ -89,7 +89,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
89
89
|
action: 'clicked',
|
|
90
90
|
componentName: componentName || 'Pressable',
|
|
91
91
|
packageName: "@atlaskit/primitives",
|
|
92
|
-
packageVersion: "14.
|
|
92
|
+
packageVersion: "14.10.0",
|
|
93
93
|
analyticsData: analyticsContext,
|
|
94
94
|
actionSubject: 'button'
|
|
95
95
|
});
|
|
@@ -56,6 +56,7 @@ export type FlexProps<T extends ElementType = 'div'> = {
|
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
58
|
* ```tsx
|
|
59
|
+
* // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
59
60
|
* import { Flex, Box } from '@atlaskit/primitives'
|
|
60
61
|
*
|
|
61
62
|
* const Component = () => (
|
|
@@ -85,6 +85,7 @@ declare const alignItemsMap: {
|
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
87
87
|
* ```tsx
|
|
88
|
+
* // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
88
89
|
* import { Flex, Box } from '@atlaskit/primitives'
|
|
89
90
|
*
|
|
90
91
|
* const Component = () => (
|
|
@@ -121,6 +121,7 @@ declare const gridAutoFlowMap: {
|
|
|
121
121
|
*
|
|
122
122
|
* @example
|
|
123
123
|
* ```tsx
|
|
124
|
+
* // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
124
125
|
* import { Grid, Box } from '@atlaskit/primitives'
|
|
125
126
|
*
|
|
126
127
|
* const Component = () => (
|
|
@@ -56,6 +56,7 @@ export type FlexProps<T extends ElementType = 'div'> = {
|
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
58
|
* ```tsx
|
|
59
|
+
* // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
59
60
|
* import { Flex, Box } from '@atlaskit/primitives'
|
|
60
61
|
*
|
|
61
62
|
* const Component = () => (
|
|
@@ -85,6 +85,7 @@ declare const alignItemsMap: {
|
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
87
87
|
* ```tsx
|
|
88
|
+
* // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
88
89
|
* import { Flex, Box } from '@atlaskit/primitives'
|
|
89
90
|
*
|
|
90
91
|
* const Component = () => (
|
|
@@ -121,6 +121,7 @@ declare const gridAutoFlowMap: {
|
|
|
121
121
|
*
|
|
122
122
|
* @example
|
|
123
123
|
* ```tsx
|
|
124
|
+
* // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
124
125
|
* import { Grid, Box } from '@atlaskit/primitives'
|
|
125
126
|
*
|
|
126
127
|
* const Component = () => (
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/primitives/metric-text",
|
|
3
|
+
"main": "../dist/cjs/components/metric-text.js",
|
|
4
|
+
"module": "../dist/esm/components/metric-text.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/components/metric-text.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/components/metric-text.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.4": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/components/metric-text.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/primitives",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.10.1",
|
|
4
4
|
"description": "Primitives are token-backed low-level building blocks.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -104,6 +104,15 @@
|
|
|
104
104
|
"type": "beta"
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
|
+
{
|
|
108
|
+
"title": "MetricText",
|
|
109
|
+
"folder": "metric-text",
|
|
110
|
+
"slug": "primitives/metric-text",
|
|
111
|
+
"id": "@atlaskit/primitives/metric-text",
|
|
112
|
+
"status": {
|
|
113
|
+
"type": "beta"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
107
116
|
{
|
|
108
117
|
"title": "Pressable",
|
|
109
118
|
"folder": "pressable",
|
|
@@ -117,8 +126,7 @@
|
|
|
117
126
|
"id": "@atlaskit/primitives/anchor"
|
|
118
127
|
}
|
|
119
128
|
]
|
|
120
|
-
}
|
|
121
|
-
"runReact18": true
|
|
129
|
+
}
|
|
122
130
|
},
|
|
123
131
|
"scripts": {
|
|
124
132
|
"codegen-styles": "ts-node -r tsconfig-paths/register ./scripts/codegen-styles.tsx"
|
|
@@ -126,11 +134,11 @@
|
|
|
126
134
|
"dependencies": {
|
|
127
135
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
128
136
|
"@atlaskit/app-provider": "^2.2.0",
|
|
129
|
-
"@atlaskit/css": "^0.
|
|
130
|
-
"@atlaskit/ds-lib": "^4.
|
|
137
|
+
"@atlaskit/css": "^0.12.0",
|
|
138
|
+
"@atlaskit/ds-lib": "^4.1.0",
|
|
131
139
|
"@atlaskit/interaction-context": "^3.0.0",
|
|
132
140
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
133
|
-
"@atlaskit/tokens": "^5.
|
|
141
|
+
"@atlaskit/tokens": "^5.6.0",
|
|
134
142
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
135
143
|
"@babel/runtime": "^7.0.0",
|
|
136
144
|
"@compiled/react": "^0.18.3",
|
|
@@ -152,15 +160,15 @@
|
|
|
152
160
|
"@atlaskit/checkbox": "^17.1.0",
|
|
153
161
|
"@atlaskit/code": "^17.2.0",
|
|
154
162
|
"@atlaskit/docs": "^11.0.0",
|
|
155
|
-
"@atlaskit/dropdown-menu": "^16.
|
|
156
|
-
"@atlaskit/flag": "^17.
|
|
163
|
+
"@atlaskit/dropdown-menu": "^16.2.0",
|
|
164
|
+
"@atlaskit/flag": "^17.2.0",
|
|
157
165
|
"@atlaskit/form": "^12.0.0",
|
|
158
166
|
"@atlaskit/heading": "^5.2.0",
|
|
159
|
-
"@atlaskit/icon": "^27.
|
|
167
|
+
"@atlaskit/icon": "^27.5.0",
|
|
160
168
|
"@atlaskit/icon-object": "^7.1.0",
|
|
161
169
|
"@atlaskit/image": "^3.0.0",
|
|
162
170
|
"@atlaskit/link": "^3.2.0",
|
|
163
|
-
"@atlaskit/logo": "^19.
|
|
171
|
+
"@atlaskit/logo": "^19.5.0",
|
|
164
172
|
"@atlaskit/lozenge": "^13.0.0",
|
|
165
173
|
"@atlaskit/motion": "^5.1.0",
|
|
166
174
|
"@atlaskit/range": "^9.1.0",
|
|
@@ -222,6 +230,7 @@
|
|
|
222
230
|
"./stack": "./src/components/stack.tsx",
|
|
223
231
|
"./inline": "./src/components/inline.tsx",
|
|
224
232
|
"./text": "./src/components/text.tsx",
|
|
233
|
+
"./metric-text": "./src/components/metric-text.tsx",
|
|
225
234
|
"./pressable": "./src/components/pressable.tsx",
|
|
226
235
|
"./anchor": "./src/components/anchor.tsx",
|
|
227
236
|
"./responsive": "./src/responsive/index.tsx",
|