@atlaskit/primitives 7.0.0 → 7.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.
Files changed (76) hide show
  1. package/.eslintrc.js +1 -1
  2. package/CHANGELOG.md +19 -1
  3. package/LICENSE.md +6 -8
  4. package/constellation/anchor/code.mdx +3 -3
  5. package/constellation/anchor/examples.mdx +33 -39
  6. package/constellation/anchor/usage.mdx +60 -30
  7. package/constellation/bleed/code.mdx +3 -3
  8. package/constellation/bleed/examples.mdx +17 -13
  9. package/constellation/box/code.mdx +3 -3
  10. package/constellation/box/examples.mdx +25 -19
  11. package/constellation/box/usage.mdx +15 -5
  12. package/constellation/flex/code.mdx +3 -3
  13. package/constellation/flex/examples.mdx +12 -11
  14. package/constellation/grid/code.mdx +3 -3
  15. package/constellation/grid/examples.mdx +15 -10
  16. package/constellation/inline/code.mdx +3 -3
  17. package/constellation/inline/examples.mdx +32 -38
  18. package/constellation/inline/usage.mdx +15 -6
  19. package/constellation/overview/index.mdx +29 -27
  20. package/constellation/pressable/code.mdx +5 -4
  21. package/constellation/pressable/examples.mdx +41 -55
  22. package/constellation/pressable/usage.mdx +59 -36
  23. package/constellation/responsive/01-show/code.mdx +3 -3
  24. package/constellation/responsive/01-show/examples.mdx +9 -13
  25. package/constellation/responsive/02-hide/code.mdx +3 -3
  26. package/constellation/responsive/02-hide/examples.mdx +9 -13
  27. package/constellation/responsive/03-breakpoints/examples.mdx +3 -3
  28. package/constellation/responsive/examples.mdx +10 -10
  29. package/constellation/responsive/usage.mdx +23 -15
  30. package/constellation/stack/code.mdx +3 -3
  31. package/constellation/stack/examples.mdx +26 -20
  32. package/constellation/stack/usage.mdx +13 -5
  33. package/constellation/text/code.mdx +3 -3
  34. package/constellation/text/examples.mdx +29 -15
  35. package/constellation/text/usage.mdx +6 -3
  36. package/constellation/xcss/examples.mdx +7 -5
  37. package/constellation/xcss/migration.mdx +32 -25
  38. package/constellation/xcss/usage.mdx +72 -60
  39. package/dist/cjs/components/anchor.js +4 -4
  40. package/dist/cjs/components/pressable.js +1 -1
  41. package/dist/cjs/xcss/style-maps.partial.js +13 -13
  42. package/dist/es2019/components/anchor.js +4 -4
  43. package/dist/es2019/components/pressable.js +1 -1
  44. package/dist/es2019/xcss/style-maps.partial.js +13 -13
  45. package/dist/esm/components/anchor.js +4 -4
  46. package/dist/esm/components/pressable.js +1 -1
  47. package/dist/esm/xcss/style-maps.partial.js +13 -13
  48. package/dist/types/components/anchor.d.ts +4 -4
  49. package/dist/types/responsive/index.d.ts +2 -2
  50. package/dist/types/xcss/style-maps.partial.d.ts +13 -13
  51. package/dist/types-ts4.5/components/anchor.d.ts +4 -4
  52. package/dist/types-ts4.5/responsive/index.d.ts +2 -2
  53. package/dist/types-ts4.5/xcss/style-maps.partial.d.ts +13 -13
  54. package/extract-react-types/anchor-props.tsx +108 -116
  55. package/extract-react-types/bleed-props.tsx +17 -22
  56. package/extract-react-types/box-props.tsx +67 -70
  57. package/extract-react-types/flex-props.tsx +61 -61
  58. package/extract-react-types/grid-props.tsx +92 -92
  59. package/extract-react-types/hide-props.tsx +35 -35
  60. package/extract-react-types/inline-props.tsx +68 -68
  61. package/extract-react-types/pressable-props.tsx +101 -107
  62. package/extract-react-types/show-props.tsx +35 -35
  63. package/extract-react-types/stack-props.tsx +55 -55
  64. package/package.json +2 -2
  65. package/report.api.md +940 -965
  66. package/scripts/border-codegen-template.tsx +40 -47
  67. package/scripts/codegen-file-templates/dimensions.tsx +8 -8
  68. package/scripts/codegen-file-templates/layer.tsx +9 -9
  69. package/scripts/codegen-styles.tsx +97 -103
  70. package/scripts/color-codegen-template.tsx +61 -73
  71. package/scripts/elevation-codegen-template.tsx +50 -62
  72. package/scripts/inverse-color-map-template.tsx +26 -31
  73. package/scripts/misc-codegen-template.tsx +4 -9
  74. package/scripts/spacing-codegen-template.tsx +25 -31
  75. package/scripts/typography-codegen-template.tsx +59 -65
  76. package/scripts/utils.tsx +36 -43
@@ -1,89 +1,89 @@
1
1
  import { type ElementType, type ReactNode } from 'react';
2
2
 
3
3
  import type {
4
- AlignBlock,
5
- AlignInline,
6
- BasePrimitiveProps,
7
- Grow,
8
- Spread,
4
+ AlignBlock,
5
+ AlignInline,
6
+ BasePrimitiveProps,
7
+ Grow,
8
+ Spread,
9
9
  } from '../src/components/types';
10
10
 
11
11
  type Space =
12
- | 'space.0'
13
- | 'space.025'
14
- | 'space.050'
15
- | 'space.075'
16
- | 'space.100'
17
- | 'space.150'
18
- | 'space.200'
19
- | 'space.250'
20
- | 'space.300'
21
- | 'space.400'
22
- | 'space.500'
23
- | 'space.600'
24
- | 'space.800'
25
- | 'space.1000';
12
+ | 'space.0'
13
+ | 'space.025'
14
+ | 'space.050'
15
+ | 'space.075'
16
+ | 'space.100'
17
+ | 'space.150'
18
+ | 'space.200'
19
+ | 'space.250'
20
+ | 'space.300'
21
+ | 'space.400'
22
+ | 'space.500'
23
+ | 'space.600'
24
+ | 'space.800'
25
+ | 'space.1000';
26
26
 
27
27
  type InlineProps<T extends ElementType = 'div'> = {
28
- /**
29
- * The DOM element to render as the Inline. Defaults to `div`.
30
- */
31
- as?: 'div' | 'span' | 'ul' | 'ol';
32
- /**
33
- * Used to align children along the main axis.
34
- */
35
- alignBlock?: AlignBlock;
28
+ /**
29
+ * The DOM element to render as the Inline. Defaults to `div`.
30
+ */
31
+ as?: 'div' | 'span' | 'ul' | 'ol';
32
+ /**
33
+ * Used to align children along the main axis.
34
+ */
35
+ alignBlock?: AlignBlock;
36
36
 
37
- /**
38
- * Used to align children along the cross axis.
39
- */
40
- alignInline?: AlignInline;
37
+ /**
38
+ * Used to align children along the cross axis.
39
+ */
40
+ alignInline?: AlignInline;
41
41
 
42
- /**
43
- * Used to set whether children are forced onto one line or will wrap onto multiple lines.
44
- */
45
- shouldWrap?: boolean;
42
+ /**
43
+ * Used to set whether children are forced onto one line or will wrap onto multiple lines.
44
+ */
45
+ shouldWrap?: boolean;
46
46
 
47
- /**
48
- * Used to distribute the children along the main axis.
49
- */
50
- spread?: Spread;
47
+ /**
48
+ * Used to distribute the children along the main axis.
49
+ */
50
+ spread?: Spread;
51
51
 
52
- /**
53
- * Used to set whether the container should grow to fill the available space.
54
- */
55
- grow?: Grow;
52
+ /**
53
+ * Used to set whether the container should grow to fill the available space.
54
+ */
55
+ grow?: Grow;
56
56
 
57
- /**
58
- * Represents the space between each child.
59
- */
60
- space?: Space;
57
+ /**
58
+ * Represents the space between each child.
59
+ */
60
+ space?: Space;
61
61
 
62
- /**
63
- * Represents the space between rows when content wraps.
64
- * Used to override the `space` value in between rows.
65
- */
66
- rowSpace?: Space;
62
+ /**
63
+ * Represents the space between rows when content wraps.
64
+ * Used to override the `space` value in between rows.
65
+ */
66
+ rowSpace?: Space;
67
67
 
68
- /**
69
- * Renders a separator string between each child.
70
- */
71
- separator?: string;
68
+ /**
69
+ * Renders a separator string between each child.
70
+ */
71
+ separator?: string;
72
72
 
73
- /**
74
- * A unique string that appears as data attribute data-testid in the rendered code, serving as a hook for automated tests.
75
- */
76
- testId?: string;
73
+ /**
74
+ * A unique string that appears as data attribute data-testid in the rendered code, serving as a hook for automated tests.
75
+ */
76
+ testId?: string;
77
77
 
78
- /**
79
- * Elements to be rendered inside the Inline.
80
- */
81
- children: ReactNode;
78
+ /**
79
+ * Elements to be rendered inside the Inline.
80
+ */
81
+ children: ReactNode;
82
82
 
83
- /**
84
- * Forwarded ref element
85
- */
86
- ref?: React.ComponentPropsWithRef<T>['ref'];
83
+ /**
84
+ * Forwarded ref element
85
+ */
86
+ ref?: React.ComponentPropsWithRef<T>['ref'];
87
87
  } & BasePrimitiveProps;
88
88
 
89
89
  export default function Inline(_: InlineProps) {}
@@ -3,119 +3,113 @@ import type React from 'react';
3
3
 
4
4
  import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
5
5
 
6
- import {
7
- type BasePrimitiveProps,
8
- type StyleProp,
9
- } from '../src/components/types';
6
+ import { type BasePrimitiveProps, type StyleProp } from '../src/components/types';
10
7
 
11
8
  // eslint-disable-next-line @typescript-eslint/no-namespace
12
9
  namespace Token {
13
- // BoxProps['backgroundColor'] uses keyof, which ERT does not understand
14
- export type BackgroundColor = 'BackgroundColor';
10
+ // BoxProps['backgroundColor'] uses keyof, which ERT does not understand
11
+ export type BackgroundColor = 'BackgroundColor';
15
12
  }
16
13
 
17
14
  type Space =
18
- | 'space.0'
19
- | 'space.025'
20
- | 'space.050'
21
- | 'space.075'
22
- | 'space.100'
23
- | 'space.150'
24
- | 'space.200'
25
- | 'space.250'
26
- | 'space.300'
27
- | 'space.400'
28
- | 'space.500'
29
- | 'space.600'
30
- | 'space.800'
31
- | 'space.1000';
15
+ | 'space.0'
16
+ | 'space.025'
17
+ | 'space.050'
18
+ | 'space.075'
19
+ | 'space.100'
20
+ | 'space.150'
21
+ | 'space.200'
22
+ | 'space.250'
23
+ | 'space.300'
24
+ | 'space.400'
25
+ | 'space.500'
26
+ | 'space.600'
27
+ | 'space.800'
28
+ | 'space.1000';
32
29
 
33
30
  export default function Pressable(
34
- _: {
35
- /**
36
- * Controls whether the button is disabled.
37
- */
38
- isDisabled?: boolean;
39
-
40
- /**
41
- * The `type` attribute of the Button HTML element. Defaults to `button`.
42
- */
43
- type?: React.ButtonHTMLAttributes<HTMLButtonElement>['type'];
44
-
45
- /**
46
- * Tokens representing CSS shorthand for `paddingBlock` and `paddingInline` together.
47
- */
48
- padding?: Space;
49
-
50
- /**
51
- * Tokens representing CSS shorthand `paddingBlock`.
52
- */
53
- paddingBlock?: Space;
54
-
55
- /**
56
- * Tokens representing CSS `paddingBlockStart`.
57
- */
58
- paddingBlockStart?: Space;
59
-
60
- /**
61
- * Tokens representing CSS `paddingBlockEnd`.
62
- */
63
- paddingBlockEnd?: Space;
64
-
65
- /**
66
- * Tokens representing CSS shorthand `paddingInline`.
67
- */
68
- paddingInline?: Space;
69
-
70
- /**
71
- * Tokens representing CSS `paddingInlineStart`.
72
- */
73
- paddingInlineStart?: Space;
74
-
75
- /**
76
- * Tokens representing CSS `paddingInlineEnd`.
77
- */
78
- paddingInlineEnd?: Space;
79
-
80
- /**
81
- * A token alias for background color. See [https://atlassian.design/components/tokens/all-tokens#color-background](background tokens) for a list of options.
82
- * When the background color is set to a [surface token](/components/tokens/all-tokens#elevation-surface),
83
- * the [current surface](/components/tokens/code#current-surface-color) CSS variable will also be set to this value in the Pressable styles.
84
- */
85
- backgroundColor?: Token.BackgroundColor;
86
-
87
- /**
88
- * Handler called on click. You can use the second argument to fire Atlaskit analytics events on custom channels. They could then be routed to GASv3 analytics. See the code examples for information on [firing Atlaskit analytics events](https://atlassian.design/components/primitives/pressable/examples#atlaskit-analytics) or [routing these to GASv3 analytics](https://atlassian.design/components/primitives/pressable/examples#gasv3-analytics).
89
- */
90
- onClick?: (
91
- e: React.MouseEvent<HTMLButtonElement>,
92
- analyticsEvent: UIAnalyticsEvent,
93
- ) => void;
94
-
95
- /**
96
- * An optional component name used to identify this component to Atlaskit analytics press listeners. This can be altered if a parent component's name is preferred rather than the default 'Pressable'. See [the code example](https://atlassian.design/components/primitives/pressable/examples#atlaskit-analytics) for more information.
97
- */
98
- componentName?: string;
99
-
100
- /**
101
- * Additional information to be included in the `context` of Atlaskit analytics events that come from pressable. See [the code example](https://atlassian.design/components/primitives/pressable/examples#atlaskit-analytics) for more information.
102
- */
103
- analyticsContext?: Record<string, any>;
104
-
105
- /**
106
- * An optional name used to identify the pressable to interaction content listeners. By default, pressable fires React UFO (Unified Frontend Observability) press interactions for available listeners. This helps Atlassian measure performance and reliability. See [the code example](https://atlassian.design/components/primitives/pressable/examples#react-ufo-press-interactions) for more information.
107
- */
108
- interactionName?: string;
109
-
110
- /**
111
- * Elements to be rendered inside the primitive.
112
- */
113
- children: React.ReactNode;
114
-
115
- /**
116
- * Forwarded ref element.
117
- */
118
- ref?: React.ComponentPropsWithRef<'button'>['ref'];
119
- } & BasePrimitiveProps &
120
- StyleProp,
31
+ _: {
32
+ /**
33
+ * Controls whether the button is disabled.
34
+ */
35
+ isDisabled?: boolean;
36
+
37
+ /**
38
+ * The `type` attribute of the Button HTML element. Defaults to `button`.
39
+ */
40
+ type?: React.ButtonHTMLAttributes<HTMLButtonElement>['type'];
41
+
42
+ /**
43
+ * Tokens representing CSS shorthand for `paddingBlock` and `paddingInline` together.
44
+ */
45
+ padding?: Space;
46
+
47
+ /**
48
+ * Tokens representing CSS shorthand `paddingBlock`.
49
+ */
50
+ paddingBlock?: Space;
51
+
52
+ /**
53
+ * Tokens representing CSS `paddingBlockStart`.
54
+ */
55
+ paddingBlockStart?: Space;
56
+
57
+ /**
58
+ * Tokens representing CSS `paddingBlockEnd`.
59
+ */
60
+ paddingBlockEnd?: Space;
61
+
62
+ /**
63
+ * Tokens representing CSS shorthand `paddingInline`.
64
+ */
65
+ paddingInline?: Space;
66
+
67
+ /**
68
+ * Tokens representing CSS `paddingInlineStart`.
69
+ */
70
+ paddingInlineStart?: Space;
71
+
72
+ /**
73
+ * Tokens representing CSS `paddingInlineEnd`.
74
+ */
75
+ paddingInlineEnd?: Space;
76
+
77
+ /**
78
+ * A token alias for background color. See [https://atlassian.design/components/tokens/all-tokens#color-background](background tokens) for a list of options.
79
+ * When the background color is set to a [surface token](/components/tokens/all-tokens#elevation-surface),
80
+ * the [current surface](/components/tokens/code#current-surface-color) CSS variable will also be set to this value in the Pressable styles.
81
+ */
82
+ backgroundColor?: Token.BackgroundColor;
83
+
84
+ /**
85
+ * Handler called on click. You can use the second argument to fire Atlaskit analytics events on custom channels. They could then be routed to GASv3 analytics. See the code examples for information on [firing Atlaskit analytics events](https://atlassian.design/components/primitives/pressable/examples#atlaskit-analytics) or [routing these to GASv3 analytics](https://atlassian.design/components/primitives/pressable/examples#gasv3-analytics).
86
+ */
87
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>, analyticsEvent: UIAnalyticsEvent) => void;
88
+
89
+ /**
90
+ * An optional component name used to identify this component to Atlaskit analytics press listeners. This can be altered if a parent component's name is preferred rather than the default 'Pressable'. See [the code example](https://atlassian.design/components/primitives/pressable/examples#atlaskit-analytics) for more information.
91
+ */
92
+ componentName?: string;
93
+
94
+ /**
95
+ * Additional information to be included in the `context` of Atlaskit analytics events that come from pressable. See [the code example](https://atlassian.design/components/primitives/pressable/examples#atlaskit-analytics) for more information.
96
+ */
97
+ analyticsContext?: Record<string, any>;
98
+
99
+ /**
100
+ * An optional name used to identify the pressable to interaction content listeners. By default, pressable fires React UFO (Unified Frontend Observability) press interactions for available listeners. This helps Atlassian measure performance and reliability. See [the code example](https://atlassian.design/components/primitives/pressable/examples#react-ufo-press-interactions) for more information.
101
+ */
102
+ interactionName?: string;
103
+
104
+ /**
105
+ * Elements to be rendered inside the primitive.
106
+ */
107
+ children: React.ReactNode;
108
+
109
+ /**
110
+ * Forwarded ref element.
111
+ */
112
+ ref?: React.ComponentPropsWithRef<'button'>['ref'];
113
+ } & BasePrimitiveProps &
114
+ StyleProp,
121
115
  ) {}
@@ -3,46 +3,46 @@ import { type ReactNode } from 'react';
3
3
  import { type Breakpoint } from '../src/responsive/types';
4
4
 
5
5
  type As =
6
- | 'article'
7
- | 'aside'
8
- | 'dialog'
9
- | 'div'
10
- | 'footer'
11
- | 'header'
12
- | 'li'
13
- | 'main'
14
- | 'nav'
15
- | 'ol'
16
- | 'section'
17
- | 'span'
18
- | 'ul';
6
+ | 'article'
7
+ | 'aside'
8
+ | 'dialog'
9
+ | 'div'
10
+ | 'footer'
11
+ | 'header'
12
+ | 'li'
13
+ | 'main'
14
+ | 'nav'
15
+ | 'ol'
16
+ | 'section'
17
+ | 'span'
18
+ | 'ul';
19
19
 
20
20
  type ResponsiveShowProps = {
21
- /**
22
- * The DOM element to render as the Box. Defaults to `div`.
23
- */
24
- as?: As;
21
+ /**
22
+ * The DOM element to render as the Box. Defaults to `div`.
23
+ */
24
+ as?: As;
25
25
 
26
- /**
27
- * Elements to be rendered inside the primitive.
28
- */
29
- children: ReactNode;
26
+ /**
27
+ * Elements to be rendered inside the primitive.
28
+ */
29
+ children: ReactNode;
30
30
 
31
- /**
32
- * Apply CSS to show this specifically **above** this breakpoint.
33
- * The smallest breakpoint is not included as it would always be shown and this would not be performant.
34
- *
35
- * @important do not mix `above` and `below` (TypeScript should prevent this)
36
- */
37
- above?: Exclude<Breakpoint, 'xxs'>;
31
+ /**
32
+ * Apply CSS to show this specifically **above** this breakpoint.
33
+ * The smallest breakpoint is not included as it would always be shown and this would not be performant.
34
+ *
35
+ * @important do not mix `above` and `below` (TypeScript should prevent this)
36
+ */
37
+ above?: Exclude<Breakpoint, 'xxs'>;
38
38
 
39
- /**
40
- * Apply CSS to show this specifically **below** this breakpoint.
41
- * The smallest breakpoint is not included as it would never be shown and this would not be performant.
42
- *
43
- * @important do not mix `above` and `below` (TypeScript should prevent this)
44
- */
45
- below?: Exclude<Breakpoint, 'xxs'>;
39
+ /**
40
+ * Apply CSS to show this specifically **below** this breakpoint.
41
+ * The smallest breakpoint is not included as it would never be shown and this would not be performant.
42
+ *
43
+ * @important do not mix `above` and `below` (TypeScript should prevent this)
44
+ */
45
+ below?: Exclude<Breakpoint, 'xxs'>;
46
46
  };
47
47
 
48
48
  export default function Show(_: ResponsiveShowProps) {}
@@ -1,73 +1,73 @@
1
1
  import { type ElementType, type ReactNode } from 'react';
2
2
 
3
3
  import type {
4
- AlignBlock,
5
- AlignInline,
6
- BasePrimitiveProps,
7
- Grow,
8
- Spread,
4
+ AlignBlock,
5
+ AlignInline,
6
+ BasePrimitiveProps,
7
+ Grow,
8
+ Spread,
9
9
  } from '../src/components/types';
10
10
 
11
11
  type Space =
12
- | 'space.0'
13
- | 'space.025'
14
- | 'space.050'
15
- | 'space.075'
16
- | 'space.100'
17
- | 'space.150'
18
- | 'space.200'
19
- | 'space.250'
20
- | 'space.300'
21
- | 'space.400'
22
- | 'space.500'
23
- | 'space.600'
24
- | 'space.800'
25
- | 'space.1000';
12
+ | 'space.0'
13
+ | 'space.025'
14
+ | 'space.050'
15
+ | 'space.075'
16
+ | 'space.100'
17
+ | 'space.150'
18
+ | 'space.200'
19
+ | 'space.250'
20
+ | 'space.300'
21
+ | 'space.400'
22
+ | 'space.500'
23
+ | 'space.600'
24
+ | 'space.800'
25
+ | 'space.1000';
26
26
 
27
27
  type StackProps<T extends ElementType = 'div'> = {
28
- /**
29
- * The DOM element to render as the Stack. Defaults to `div`.
30
- */
31
- as?: 'div' | 'span' | 'ul' | 'ol';
32
- /**
33
- * Used to align children along the main axis.
34
- */
35
- alignBlock?: Exclude<AlignBlock, 'baseline'>;
28
+ /**
29
+ * The DOM element to render as the Stack. Defaults to `div`.
30
+ */
31
+ as?: 'div' | 'span' | 'ul' | 'ol';
32
+ /**
33
+ * Used to align children along the main axis.
34
+ */
35
+ alignBlock?: Exclude<AlignBlock, 'baseline'>;
36
36
 
37
- /**
38
- * Used to align children along the cross axis.
39
- */
40
- alignInline?: AlignInline;
37
+ /**
38
+ * Used to align children along the cross axis.
39
+ */
40
+ alignInline?: AlignInline;
41
41
 
42
- /**
43
- * Used to distribute the children along the main axis.
44
- */
45
- spread?: Spread;
42
+ /**
43
+ * Used to distribute the children along the main axis.
44
+ */
45
+ spread?: Spread;
46
46
 
47
- /**
48
- * Used to set whether the container should grow to fill the available space.
49
- */
50
- grow?: Grow;
47
+ /**
48
+ * Used to set whether the container should grow to fill the available space.
49
+ */
50
+ grow?: Grow;
51
51
 
52
- /**
53
- * Represents the space between each child.
54
- */
55
- space?: Space;
52
+ /**
53
+ * Represents the space between each child.
54
+ */
55
+ space?: Space;
56
56
 
57
- /**
58
- * A unique string that appears as data attribute data-testid in the rendered code, serving as a hook for automated tests.
59
- */
60
- testId?: string;
57
+ /**
58
+ * A unique string that appears as data attribute data-testid in the rendered code, serving as a hook for automated tests.
59
+ */
60
+ testId?: string;
61
61
 
62
- /**
63
- * Elements to be rendered inside the Stack.
64
- */
65
- children: ReactNode;
62
+ /**
63
+ * Elements to be rendered inside the Stack.
64
+ */
65
+ children: ReactNode;
66
66
 
67
- /**
68
- * Forwarded ref element
69
- */
70
- ref?: React.ComponentPropsWithRef<T>['ref'];
67
+ /**
68
+ * Forwarded ref element
69
+ */
70
+ ref?: React.ComponentPropsWithRef<T>['ref'];
71
71
  } & BasePrimitiveProps;
72
72
 
73
73
  export default function Stack(_: StackProps) {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "7.0.0",
3
+ "version": "7.0.2",
4
4
  "description": "Primitives are token-backed low-level building blocks.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -128,7 +128,7 @@
128
128
  "@atlaskit/css": "^0.1.0",
129
129
  "@atlaskit/ds-lib": "^2.3.0",
130
130
  "@atlaskit/interaction-context": "^2.1.0",
131
- "@atlaskit/tokens": "^1.49.0",
131
+ "@atlaskit/tokens": "^1.50.0",
132
132
  "@atlaskit/visually-hidden": "^1.3.0",
133
133
  "@babel/runtime": "^7.0.0",
134
134
  "@emotion/react": "^11.7.1",