@atlaskit/primitives 5.3.0 → 5.5.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/primitives
2
2
 
3
+ ## 5.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#86439](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86439) [`43cd9551f332`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/43cd9551f332) - Removed deprecated `textAlign` prop from Text primitive component
8
+
9
+ ## 5.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#85745](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/85745) [`0e9c8c15ef86`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0e9c8c15ef86) - Extends XCSS selector types to allow up to two CSS psuedos to be used in combination. For example: `:visited:hover {}`.
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 5.3.0
4
20
 
5
21
  ### Minor Changes
@@ -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: "5.3.0",
79
+ packageVersion: "5.5.0",
80
80
  analyticsData: analyticsContext,
81
81
  actionSubject: 'link'
82
82
  });
@@ -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: "5.3.0",
83
+ packageVersion: "5.5.0",
84
84
  analyticsData: analyticsContext,
85
85
  actionSubject: 'button'
86
86
  });
@@ -86,9 +86,7 @@ var Text = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
86
86
  var _ref$as = _ref.as,
87
87
  Component = _ref$as === void 0 ? 'span' : _ref$as,
88
88
  colorProp = _ref.color,
89
- textAlign = _ref.textAlign,
90
- _ref$align = _ref.align,
91
- align = _ref$align === void 0 ? textAlign : _ref$align,
89
+ align = _ref.align,
92
90
  testId = _ref.testId,
93
91
  id = _ref.id,
94
92
  _ref$size = _ref.size,
@@ -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::7e2103695ffbc3573276b7ef3408c91b>>
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::eface03157c2df5c1b3b305911d3ed4d>>
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::b219b05d38339a7cd427cbf5de4ad327>>
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::eface03157c2df5c1b3b305911d3ed4d>>
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::75cecbb153ddd5bdd2cb0c5e9a07107d>>
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::eface03157c2df5c1b3b305911d3ed4d>>
157
157
  */
158
158
  var borderColorMap = exports.borderColorMap = {
159
159
  'color.border': "var(--ds-border, #091e4221)",
@@ -413,7 +413,8 @@ var textColorMap = exports.textColorMap = {
413
413
  'color.text.subtle': "var(--ds-text-subtle, #42526E)",
414
414
  'color.link': "var(--ds-link, #0052CC)",
415
415
  'color.link.pressed': "var(--ds-link-pressed, #0747A6)",
416
- 'color.link.visited': "var(--ds-link-visited, #403294)"
416
+ 'color.link.visited': "var(--ds-link-visited, #403294)",
417
+ 'color.link.visited.pressed': "var(--ds-link-visited-pressed, #403294)"
417
418
  };
418
419
  var fillMap = exports.fillMap = {
419
420
  'color.icon': "var(--ds-icon, #505F79)",
@@ -212,6 +212,8 @@ var parseXcss = exports.parseXcss = function parseXcss(args) {
212
212
 
213
213
  // Media queries should not contain nested media queries
214
214
 
215
+ // Allow chained pseudos, e.g. `:visited:hover`
216
+
215
217
  // Pseudos should not contain nested pseudos, or media queries
216
218
 
217
219
  /**
@@ -62,7 +62,7 @@ const Anchor = ({
62
62
  action: 'clicked',
63
63
  componentName: componentName || 'Anchor',
64
64
  packageName: "@atlaskit/primitives",
65
- packageVersion: "5.3.0",
65
+ packageVersion: "5.5.0",
66
66
  analyticsData: analyticsContext,
67
67
  actionSubject: 'link'
68
68
  });
@@ -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: "5.3.0",
69
+ packageVersion: "5.5.0",
70
70
  analyticsData: analyticsContext,
71
71
  actionSubject: 'button'
72
72
  });
@@ -75,8 +75,7 @@ const useColor = (colorProp, hasTextAncestor) => {
75
75
  const Text = /*#__PURE__*/forwardRef(({
76
76
  as: Component = 'span',
77
77
  color: colorProp,
78
- textAlign,
79
- align = textAlign,
78
+ align,
80
79
  testId,
81
80
  id,
82
81
  size = 'medium',
@@ -67,10 +67,10 @@ export const allSpaceMap = {
67
67
 
68
68
  /**
69
69
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
70
- * @codegen <<SignedSource::fcf1cfc01cda3c278e69b0b564c7746d>>
70
+ * @codegen <<SignedSource::7e2103695ffbc3573276b7ef3408c91b>>
71
71
  * @codegenId inverse-colors
72
72
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
73
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
73
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::eface03157c2df5c1b3b305911d3ed4d>>
74
74
  */
75
75
  export const inverseColorMap = {
76
76
  'color.background.neutral.bold': 'color.text.inverse',
@@ -108,11 +108,11 @@ export const inverseColorMap = {
108
108
 
109
109
  /**
110
110
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
111
- * @codegen <<SignedSource::8c10abde8168de6260b5aa120dd948bc>>
111
+ * @codegen <<SignedSource::b219b05d38339a7cd427cbf5de4ad327>>
112
112
  * @codegenId elevation
113
113
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
114
114
  * @codegenParams ["opacity", "shadow", "surface"]
115
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
115
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::eface03157c2df5c1b3b305911d3ed4d>>
116
116
  */
117
117
  export const opacityMap = {
118
118
  'opacity.disabled': "var(--ds-opacity-disabled, 0.4)",
@@ -143,11 +143,11 @@ export const surfaceColorMap = {
143
143
 
144
144
  /**
145
145
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
146
- * @codegen <<SignedSource::0f7982208166d5dae0e25517d29aeaef>>
146
+ * @codegen <<SignedSource::75cecbb153ddd5bdd2cb0c5e9a07107d>>
147
147
  * @codegenId colors
148
148
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
149
149
  * @codegenParams ["border", "background", "text", "fill"]
150
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
150
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::eface03157c2df5c1b3b305911d3ed4d>>
151
151
  */
152
152
  export const borderColorMap = {
153
153
  'color.border': "var(--ds-border, #091e4221)",
@@ -407,7 +407,8 @@ export const textColorMap = {
407
407
  'color.text.subtle': "var(--ds-text-subtle, #42526E)",
408
408
  'color.link': "var(--ds-link, #0052CC)",
409
409
  'color.link.pressed': "var(--ds-link-pressed, #0747A6)",
410
- 'color.link.visited': "var(--ds-link-visited, #403294)"
410
+ 'color.link.visited': "var(--ds-link-visited, #403294)",
411
+ 'color.link.visited.pressed': "var(--ds-link-visited-pressed, #403294)"
411
412
  };
412
413
  export const fillMap = {
413
414
  'color.icon': "var(--ds-icon, #505F79)",
@@ -190,6 +190,8 @@ export const parseXcss = args => {
190
190
 
191
191
  // Media queries should not contain nested media queries
192
192
 
193
+ // Allow chained pseudos, e.g. `:visited:hover`
194
+
193
195
  // Pseudos should not contain nested pseudos, or media queries
194
196
 
195
197
  /**
@@ -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: "5.3.0",
69
+ packageVersion: "5.5.0",
70
70
  analyticsData: analyticsContext,
71
71
  actionSubject: 'link'
72
72
  });
@@ -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: "5.3.0",
73
+ packageVersion: "5.5.0",
74
74
  analyticsData: analyticsContext,
75
75
  actionSubject: 'button'
76
76
  });
@@ -78,9 +78,7 @@ var Text = /*#__PURE__*/forwardRef(function (_ref, ref) {
78
78
  var _ref$as = _ref.as,
79
79
  Component = _ref$as === void 0 ? 'span' : _ref$as,
80
80
  colorProp = _ref.color,
81
- textAlign = _ref.textAlign,
82
- _ref$align = _ref.align,
83
- align = _ref$align === void 0 ? textAlign : _ref$align,
81
+ align = _ref.align,
84
82
  testId = _ref.testId,
85
83
  id = _ref.id,
86
84
  _ref$size = _ref.size,
@@ -67,10 +67,10 @@ export var allSpaceMap = _objectSpread(_objectSpread({}, positiveSpaceMap), nega
67
67
 
68
68
  /**
69
69
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
70
- * @codegen <<SignedSource::fcf1cfc01cda3c278e69b0b564c7746d>>
70
+ * @codegen <<SignedSource::7e2103695ffbc3573276b7ef3408c91b>>
71
71
  * @codegenId inverse-colors
72
72
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
73
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
73
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::eface03157c2df5c1b3b305911d3ed4d>>
74
74
  */
75
75
  export var inverseColorMap = {
76
76
  'color.background.neutral.bold': 'color.text.inverse',
@@ -108,11 +108,11 @@ export var inverseColorMap = {
108
108
 
109
109
  /**
110
110
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
111
- * @codegen <<SignedSource::8c10abde8168de6260b5aa120dd948bc>>
111
+ * @codegen <<SignedSource::b219b05d38339a7cd427cbf5de4ad327>>
112
112
  * @codegenId elevation
113
113
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
114
114
  * @codegenParams ["opacity", "shadow", "surface"]
115
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
115
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::eface03157c2df5c1b3b305911d3ed4d>>
116
116
  */
117
117
  export var opacityMap = {
118
118
  'opacity.disabled': "var(--ds-opacity-disabled, 0.4)",
@@ -143,11 +143,11 @@ export var surfaceColorMap = {
143
143
 
144
144
  /**
145
145
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
146
- * @codegen <<SignedSource::0f7982208166d5dae0e25517d29aeaef>>
146
+ * @codegen <<SignedSource::75cecbb153ddd5bdd2cb0c5e9a07107d>>
147
147
  * @codegenId colors
148
148
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
149
149
  * @codegenParams ["border", "background", "text", "fill"]
150
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f1021f8d47ab63374e371ce18db72a1c>>
150
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::eface03157c2df5c1b3b305911d3ed4d>>
151
151
  */
152
152
  export var borderColorMap = {
153
153
  'color.border': "var(--ds-border, #091e4221)",
@@ -407,7 +407,8 @@ export var textColorMap = {
407
407
  'color.text.subtle': "var(--ds-text-subtle, #42526E)",
408
408
  'color.link': "var(--ds-link, #0052CC)",
409
409
  'color.link.pressed': "var(--ds-link-pressed, #0747A6)",
410
- 'color.link.visited': "var(--ds-link-visited, #403294)"
410
+ 'color.link.visited': "var(--ds-link-visited, #403294)",
411
+ 'color.link.visited.pressed': "var(--ds-link-visited-pressed, #403294)"
411
412
  };
412
413
  export var fillMap = {
413
414
  'color.icon': "var(--ds-icon, #505F79)",
@@ -208,6 +208,8 @@ export var parseXcss = function parseXcss(args) {
208
208
 
209
209
  // Media queries should not contain nested media queries
210
210
 
211
+ // Allow chained pseudos, e.g. `:visited:hover`
212
+
211
213
  // Pseudos should not contain nested pseudos, or media queries
212
214
 
213
215
  /**
@@ -29,10 +29,6 @@ type TextPropsBase<T extends ElementType = 'span'> = {
29
29
  * When `maxLines={1}`, `wordBreak` defaults to `break-all` to match the behaviour of `text-overflow: ellipsis`.
30
30
  */
31
31
  maxLines?: number;
32
- /**
33
- * @deprecated The [HTML `text-align` attribute](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align).
34
- */
35
- textAlign?: TextAlign;
36
32
  /**
37
33
  * Text alignment.
38
34
  */
@@ -66,5 +62,5 @@ declare const textAlignMap: {
66
62
  *
67
63
  * @internal
68
64
  */
69
- declare const Text: import("react").ForwardRefExoticComponent<Pick<TextPropsBase<ElementType> & Omit<BasePrimitiveProps, "xcss">, "color" | "maxLines" | "textAlign" | "size" | "weight" | "children" | "as" | "id" | "role" | "align" | "testId" | "data-testid"> & import("react").RefAttributes<any>>;
65
+ declare const Text: import("react").ForwardRefExoticComponent<Pick<TextPropsBase<ElementType> & Omit<BasePrimitiveProps, "xcss">, "color" | "maxLines" | "size" | "weight" | "children" | "as" | "id" | "role" | "align" | "testId" | "data-testid"> & import("react").RefAttributes<any>>;
70
66
  export default Text;
@@ -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::7e2103695ffbc3573276b7ef3408c91b>>
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::eface03157c2df5c1b3b305911d3ed4d>>
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::b219b05d38339a7cd427cbf5de4ad327>>
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::eface03157c2df5c1b3b305911d3ed4d>>
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::75cecbb153ddd5bdd2cb0c5e9a07107d>>
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::eface03157c2df5c1b3b305911d3ed4d>>
172
172
  */
173
173
  export declare const borderColorMap: {
174
174
  readonly 'color.border': "var(--ds-border)";
@@ -431,6 +431,7 @@ export declare const textColorMap: {
431
431
  readonly 'color.link': "var(--ds-link)";
432
432
  readonly 'color.link.pressed': "var(--ds-link-pressed)";
433
433
  readonly 'color.link.visited': "var(--ds-link-visited)";
434
+ readonly 'color.link.visited.pressed': "var(--ds-link-visited-pressed)";
434
435
  };
435
436
  export type TextColor = keyof typeof textColorMap;
436
437
  export declare const fillMap: {
@@ -702,6 +702,7 @@ export declare const tokensMap: {
702
702
  readonly 'color.link': "var(--ds-link)";
703
703
  readonly 'color.link.pressed': "var(--ds-link-pressed)";
704
704
  readonly 'color.link.visited': "var(--ds-link-visited)";
705
+ readonly 'color.link.visited.pressed': "var(--ds-link-visited-pressed)";
705
706
  };
706
707
  readonly columnGap: {
707
708
  'space.0': "var(--ds-space-0)";
@@ -1642,8 +1643,9 @@ type AllMedia = MediaQuery | '@media screen and (forced-colors: active), screen
1642
1643
  type CSSMediaQueries = {
1643
1644
  [MQ in AllMedia]?: Omit<SafeCSSObject, AllMedia>;
1644
1645
  };
1646
+ type ChainedCSSPseudos = `${CSS.Pseudos}${CSS.Pseudos}`;
1645
1647
  type CSSPseudos = {
1646
- [Pseudo in CSS.Pseudos]?: Omit<SafeCSSObject, CSS.Pseudos | AllMedia>;
1648
+ [Pseudo in CSS.Pseudos | ChainedCSSPseudos]?: Omit<SafeCSSObject, CSS.Pseudos | AllMedia>;
1647
1649
  };
1648
1650
  type AtRulesWithoutMedia = Exclude<CSS.AtRules, '@media'>;
1649
1651
  type CSSAtRules = {
@@ -34,10 +34,6 @@ type TextPropsBase<T extends ElementType = 'span'> = {
34
34
  * When `maxLines={1}`, `wordBreak` defaults to `break-all` to match the behaviour of `text-overflow: ellipsis`.
35
35
  */
36
36
  maxLines?: number;
37
- /**
38
- * @deprecated The [HTML `text-align` attribute](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align).
39
- */
40
- textAlign?: TextAlign;
41
37
  /**
42
38
  * Text alignment.
43
39
  */
@@ -71,5 +67,5 @@ declare const textAlignMap: {
71
67
  *
72
68
  * @internal
73
69
  */
74
- declare const Text: import("react").ForwardRefExoticComponent<Pick<TextPropsBase<ElementType> & Omit<BasePrimitiveProps, "xcss">, "color" | "maxLines" | "textAlign" | "size" | "weight" | "children" | "as" | "id" | "role" | "align" | "testId" | "data-testid"> & import("react").RefAttributes<any>>;
70
+ declare const Text: import("react").ForwardRefExoticComponent<Pick<TextPropsBase<ElementType> & Omit<BasePrimitiveProps, "xcss">, "color" | "maxLines" | "size" | "weight" | "children" | "as" | "id" | "role" | "align" | "testId" | "data-testid"> & import("react").RefAttributes<any>>;
75
71
  export default Text;
@@ -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::7e2103695ffbc3573276b7ef3408c91b>>
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::eface03157c2df5c1b3b305911d3ed4d>>
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::b219b05d38339a7cd427cbf5de4ad327>>
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::eface03157c2df5c1b3b305911d3ed4d>>
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::75cecbb153ddd5bdd2cb0c5e9a07107d>>
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::eface03157c2df5c1b3b305911d3ed4d>>
172
172
  */
173
173
  export declare const borderColorMap: {
174
174
  readonly 'color.border': "var(--ds-border)";
@@ -431,6 +431,7 @@ export declare const textColorMap: {
431
431
  readonly 'color.link': "var(--ds-link)";
432
432
  readonly 'color.link.pressed': "var(--ds-link-pressed)";
433
433
  readonly 'color.link.visited': "var(--ds-link-visited)";
434
+ readonly 'color.link.visited.pressed': "var(--ds-link-visited-pressed)";
434
435
  };
435
436
  export type TextColor = keyof typeof textColorMap;
436
437
  export declare const fillMap: {
@@ -702,6 +702,7 @@ export declare const tokensMap: {
702
702
  readonly 'color.link': "var(--ds-link)";
703
703
  readonly 'color.link.pressed': "var(--ds-link-pressed)";
704
704
  readonly 'color.link.visited': "var(--ds-link-visited)";
705
+ readonly 'color.link.visited.pressed': "var(--ds-link-visited-pressed)";
705
706
  };
706
707
  readonly columnGap: {
707
708
  'space.0': "var(--ds-space-0)";
@@ -1642,8 +1643,9 @@ type AllMedia = MediaQuery | '@media screen and (forced-colors: active), screen
1642
1643
  type CSSMediaQueries = {
1643
1644
  [MQ in AllMedia]?: Omit<SafeCSSObject, AllMedia>;
1644
1645
  };
1646
+ type ChainedCSSPseudos = `${CSS.Pseudos}${CSS.Pseudos}`;
1645
1647
  type CSSPseudos = {
1646
- [Pseudo in CSS.Pseudos]?: Omit<SafeCSSObject, CSS.Pseudos | AllMedia>;
1648
+ [Pseudo in CSS.Pseudos | ChainedCSSPseudos]?: Omit<SafeCSSObject, CSS.Pseudos | AllMedia>;
1647
1649
  };
1648
1650
  type AtRulesWithoutMedia = Exclude<CSS.AtRules, '@media'>;
1649
1651
  type CSSAtRules = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "5.3.0",
3
+ "version": "5.5.0",
4
4
  "description": "Primitives are token-backed low-level building blocks.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -123,11 +123,11 @@
123
123
  },
124
124
  "dependencies": {
125
125
  "@atlaskit/analytics-next": "^9.2.0",
126
- "@atlaskit/app-provider": "^1.0.0",
126
+ "@atlaskit/app-provider": "^1.1.0",
127
127
  "@atlaskit/css": "^0.0.5",
128
128
  "@atlaskit/ds-lib": "^2.2.0",
129
129
  "@atlaskit/interaction-context": "^2.1.0",
130
- "@atlaskit/tokens": "^1.42.0",
130
+ "@atlaskit/tokens": "^1.43.0",
131
131
  "@atlaskit/visually-hidden": "^1.2.4",
132
132
  "@babel/runtime": "^7.0.0",
133
133
  "@emotion/react": "^11.7.1",
@@ -945,6 +945,7 @@ exports[`@atlaskit/primitives text styles are generated correctly 1`] = `
945
945
  'color.link': token('color.link', '#0052CC'),
946
946
  'color.link.pressed': token('color.link.pressed', '#0747A6'),
947
947
  'color.link.visited': token('color.link.visited', '#403294'),
948
+ 'color.link.visited.pressed': token('color.link.visited.pressed', '#403294'),
948
949
  } as const;
949
950
 
950
951
  export type TextColor = keyof typeof textColorMap;