@atlaskit/primitives 19.0.0 → 19.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 (105) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/codemods/compiled-fork-stage1/transform.tsx +178 -17
  3. package/components/flex/package.json +17 -0
  4. package/constellation/pressable/usage.mdx +2 -0
  5. package/dist/cjs/compiled/components/anchor.js +1 -1
  6. package/dist/cjs/compiled/components/box.compiled.css +1 -1
  7. package/dist/cjs/compiled/components/box.js +3 -3
  8. package/dist/cjs/compiled/components/pressable.js +1 -1
  9. package/dist/cjs/compiled/components/text.js +2 -0
  10. package/dist/cjs/components/anchor.js +1 -1
  11. package/dist/cjs/components/box.js +4 -2
  12. package/dist/cjs/components/pressable.js +1 -1
  13. package/dist/cjs/responsive/build-media-query-css.js +14 -71
  14. package/dist/cjs/responsive/constants.js +2 -0
  15. package/dist/cjs/responsive/hide.js +4 -3
  16. package/dist/cjs/responsive/media-helper.js +8 -37
  17. package/dist/cjs/responsive/media.js +31 -0
  18. package/dist/cjs/responsive/show.js +4 -3
  19. package/dist/cjs/responsive/unsafe-build-above-media-query-css.js +43 -0
  20. package/dist/cjs/responsive/unsafe-build-below-media-query-css.js +45 -0
  21. package/dist/cjs/utils/has-text-ancestor-context.js +1 -0
  22. package/dist/cjs/utils/surface-context.js +13 -0
  23. package/dist/cjs/utils/surface-provider.js +10 -10
  24. package/dist/cjs/xcss/style-maps.partial.js +27 -7
  25. package/dist/cjs/xcss/xcss.js +2 -0
  26. package/dist/es2019/compiled/components/anchor.js +1 -1
  27. package/dist/es2019/compiled/components/box.compiled.css +1 -1
  28. package/dist/es2019/compiled/components/box.js +2 -2
  29. package/dist/es2019/compiled/components/pressable.js +1 -1
  30. package/dist/es2019/compiled/components/text.js +2 -0
  31. package/dist/es2019/components/anchor.js +1 -1
  32. package/dist/es2019/components/box.js +3 -1
  33. package/dist/es2019/components/pressable.js +1 -1
  34. package/dist/es2019/responsive/build-media-query-css.js +2 -75
  35. package/dist/es2019/responsive/constants.js +2 -0
  36. package/dist/es2019/responsive/hide.js +2 -1
  37. package/dist/es2019/responsive/media-helper.js +3 -37
  38. package/dist/es2019/responsive/media.js +25 -0
  39. package/dist/es2019/responsive/show.js +2 -1
  40. package/dist/es2019/responsive/unsafe-build-above-media-query-css.js +38 -0
  41. package/dist/es2019/responsive/unsafe-build-below-media-query-css.js +42 -0
  42. package/dist/es2019/utils/has-text-ancestor-context.js +1 -0
  43. package/dist/es2019/utils/surface-context.js +7 -0
  44. package/dist/es2019/utils/surface-provider.js +4 -9
  45. package/dist/es2019/xcss/style-maps.partial.js +27 -7
  46. package/dist/es2019/xcss/xcss.js +2 -0
  47. package/dist/esm/compiled/components/anchor.js +1 -1
  48. package/dist/esm/compiled/components/box.compiled.css +1 -1
  49. package/dist/esm/compiled/components/box.js +2 -2
  50. package/dist/esm/compiled/components/pressable.js +1 -1
  51. package/dist/esm/compiled/components/text.js +2 -0
  52. package/dist/esm/components/anchor.js +1 -1
  53. package/dist/esm/components/box.js +3 -1
  54. package/dist/esm/components/pressable.js +1 -1
  55. package/dist/esm/responsive/build-media-query-css.js +2 -68
  56. package/dist/esm/responsive/constants.js +2 -0
  57. package/dist/esm/responsive/hide.js +2 -1
  58. package/dist/esm/responsive/media-helper.js +3 -37
  59. package/dist/esm/responsive/media.js +25 -0
  60. package/dist/esm/responsive/show.js +2 -1
  61. package/dist/esm/responsive/unsafe-build-above-media-query-css.js +37 -0
  62. package/dist/esm/responsive/unsafe-build-below-media-query-css.js +39 -0
  63. package/dist/esm/utils/has-text-ancestor-context.js +1 -0
  64. package/dist/esm/utils/surface-context.js +7 -0
  65. package/dist/esm/utils/surface-provider.js +4 -9
  66. package/dist/esm/xcss/style-maps.partial.js +27 -7
  67. package/dist/esm/xcss/xcss.js +2 -0
  68. package/dist/types/responsive/build-media-query-css.d.ts +2 -63
  69. package/dist/types/responsive/media-helper.d.ts +1 -35
  70. package/dist/types/responsive/media.d.ts +25 -0
  71. package/dist/types/responsive/types.d.ts +1 -1
  72. package/dist/types/responsive/unsafe-build-above-media-query-css.d.ts +33 -0
  73. package/dist/types/responsive/unsafe-build-below-media-query-css.d.ts +32 -0
  74. package/dist/types/utils/surface-context.d.ts +8 -0
  75. package/dist/types/utils/surface-provider.d.ts +1 -7
  76. package/dist/types/utils/types.d.ts +1 -1
  77. package/dist/types/xcss/style-maps.partial.d.ts +26 -6
  78. package/dist/types-ts4.5/responsive/build-media-query-css.d.ts +2 -63
  79. package/dist/types-ts4.5/responsive/media-helper.d.ts +1 -35
  80. package/dist/types-ts4.5/responsive/media.d.ts +25 -0
  81. package/dist/types-ts4.5/responsive/types.d.ts +1 -1
  82. package/dist/types-ts4.5/responsive/unsafe-build-above-media-query-css.d.ts +33 -0
  83. package/dist/types-ts4.5/responsive/unsafe-build-below-media-query-css.d.ts +32 -0
  84. package/dist/types-ts4.5/utils/surface-context.d.ts +8 -0
  85. package/dist/types-ts4.5/utils/surface-provider.d.ts +1 -7
  86. package/dist/types-ts4.5/utils/types.d.ts +1 -1
  87. package/dist/types-ts4.5/xcss/style-maps.partial.d.ts +26 -6
  88. package/package.json +21 -45
  89. package/primitives.docs.tsx +359 -356
  90. package/scripts/capitalize.tsx +2 -0
  91. package/scripts/color-codegen-template.tsx +3 -6
  92. package/scripts/compose.tsx +4 -0
  93. package/scripts/elevation-codegen-template.tsx +3 -6
  94. package/scripts/generate-type-defs.tsx +12 -0
  95. package/scripts/inverse-color-map-template.tsx +4 -1
  96. package/scripts/is-accent.tsx +1 -0
  97. package/scripts/is-hovered.tsx +1 -0
  98. package/scripts/is-pressed.tsx +1 -0
  99. package/scripts/pick.tsx +4 -0
  100. package/scripts/shape-codegen-template.tsx +3 -1
  101. package/scripts/spacing-codegen-template.tsx +2 -1
  102. package/scripts/text-codegen-template.tsx +3 -1
  103. package/scripts/typography-codegen-template.tsx +3 -1
  104. package/scripts/utils.tsx +7 -25
  105. package/offerings.json +0 -298
@@ -0,0 +1,7 @@
1
+ import { createContext } from 'react';
2
+ /**
3
+ * __Surface context__
4
+ *
5
+ * A surface context provides context information on the current background (if set).
6
+ */
7
+ export var SurfaceContext = /*#__PURE__*/createContext('elevation.surface');
@@ -1,11 +1,5 @@
1
- import { createContext, useContext } from 'react';
2
- /**
3
- * __Surface context__
4
- *
5
- * A surface context provides context information on the current background (if set).
6
- */
7
- export var SurfaceContext = /*#__PURE__*/createContext('elevation.surface');
8
-
1
+ import { useContext } from 'react';
2
+ import { SurfaceContext } from './surface-context';
9
3
  /**
10
4
  * __useSurface__
11
5
  *
@@ -16,4 +10,5 @@ export var SurfaceContext = /*#__PURE__*/createContext('elevation.surface');
16
10
  export var useSurface = function useSurface() {
17
11
  return useContext(SurfaceContext);
18
12
  };
19
- SurfaceContext.displayName = 'SurfaceProvider';
13
+ SurfaceContext.displayName = 'SurfaceProvider';
14
+ export { SurfaceContext } from './surface-context';
@@ -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::cefa2c59e15e6a3749ef38fa86c6adea>>
70
+ * @codegen <<SignedSource::5181bd08725ac44b53e0ae9f914067c1>>
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::38a7d4716f6999a6bdda9e4fe2bca6a1>>
73
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::3c254494d015dde7566fc7c46750adf2>>
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::c673d53a0a31524e65f1c7051579eae5>>
111
+ * @codegen <<SignedSource::54e9dee77c5da7d77db6b6cb20970356>>
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::38a7d4716f6999a6bdda9e4fe2bca6a1>>
115
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::3c254494d015dde7566fc7c46750adf2>>
116
116
  */
117
117
  export var opacityMap = {
118
118
  'opacity.disabled': "var(--ds-opacity-disabled, 0.4)",
@@ -143,24 +143,34 @@ 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::fa88ed1ec5a817750b0348ca36dbb5f1>>
146
+ * @codegen <<SignedSource::5fd7f92fbc474ab0beacc4e06dad8fca>>
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::38a7d4716f6999a6bdda9e4fe2bca6a1>>
150
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::3c254494d015dde7566fc7c46750adf2>>
151
151
  */
152
152
  export var borderColorMap = {
153
153
  'color.border': "var(--ds-border, #0B120E24)",
154
154
  'color.border.accent.lime': "var(--ds-border-accent-lime, #6A9A23)",
155
+ 'color.border.accent.lime.subtle': "var(--ds-border-accent-lime-subtle, #B3DF72)",
155
156
  'color.border.accent.red': "var(--ds-border-accent-red, #E2483D)",
157
+ 'color.border.accent.red.subtle': "var(--ds-border-accent-red-subtle, #FD9891)",
156
158
  'color.border.accent.orange': "var(--ds-border-accent-orange, #E06C00)",
159
+ 'color.border.accent.orange.subtle': "var(--ds-border-accent-orange-subtle, #FBC828)",
157
160
  'color.border.accent.yellow': "var(--ds-border-accent-yellow, #B38600)",
161
+ 'color.border.accent.yellow.subtle': "var(--ds-border-accent-yellow-subtle, #EED12B)",
158
162
  'color.border.accent.green': "var(--ds-border-accent-green, #22A06B)",
163
+ 'color.border.accent.green.subtle': "var(--ds-border-accent-green-subtle, #7EE2B8)",
159
164
  'color.border.accent.teal': "var(--ds-border-accent-teal, #2898BD)",
165
+ 'color.border.accent.teal.subtle': "var(--ds-border-accent-teal-subtle, #9DD9EE)",
160
166
  'color.border.accent.blue': "var(--ds-border-accent-blue, #357DE8)",
167
+ 'color.border.accent.blue.subtle': "var(--ds-border-accent-blue-subtle, #8FB8F6)",
161
168
  'color.border.accent.purple': "var(--ds-border-accent-purple, #AF59E1)",
169
+ 'color.border.accent.purple.subtle': "var(--ds-border-accent-purple-subtle, #D8A0F7)",
162
170
  'color.border.accent.magenta': "var(--ds-border-accent-magenta, #CD519D)",
171
+ 'color.border.accent.magenta.subtle': "var(--ds-border-accent-magenta-subtle, #F797D2)",
163
172
  'color.border.accent.gray': "var(--ds-border-accent-gray, #7D818A)",
173
+ 'color.border.accent.gray.subtle': "var(--ds-border-accent-gray-subtle, #DDDEE1)",
164
174
  'color.border.disabled': "var(--ds-border-disabled, #0515240F)",
165
175
  'color.border.focused': "var(--ds-border-focused, #4688EC)",
166
176
  'color.border.input': "var(--ds-border-input, #8C8F97)",
@@ -168,10 +178,15 @@ export var borderColorMap = {
168
178
  'color.border.selected': "var(--ds-border-selected, #1868DB)",
169
179
  'color.border.brand': "var(--ds-border-brand, #1868DB)",
170
180
  'color.border.danger': "var(--ds-border-danger, #E2483D)",
181
+ 'color.border.danger.subtle': "var(--ds-border-danger-subtle, #FD9891)",
171
182
  'color.border.warning': "var(--ds-border-warning, #E06C00)",
183
+ 'color.border.warning.subtle': "var(--ds-border-warning-subtle, #FBC828)",
172
184
  'color.border.success': "var(--ds-border-success, #6A9A23)",
185
+ 'color.border.success.subtle': "var(--ds-border-success-subtle, #B3DF72)",
173
186
  'color.border.discovery': "var(--ds-border-discovery, #AF59E1)",
187
+ 'color.border.discovery.subtle': "var(--ds-border-discovery-subtle, #D8A0F7)",
174
188
  'color.border.information': "var(--ds-border-information, #357DE8)",
189
+ 'color.border.information.subtle': "var(--ds-border-information-subtle, #8FB8F6)",
175
190
  'color.border.bold': "var(--ds-border-bold, #7D818A)"
176
191
  };
177
192
  export var backgroundColorMap = {
@@ -295,7 +310,7 @@ export var backgroundColorMap = {
295
310
  'color.background.accent.gray.bolder': "var(--ds-background-accent-gray-bolder, #6B6E76)",
296
311
  'color.background.accent.gray.bolder.hovered': "var(--ds-background-accent-gray-bolder-hovered, #505258)",
297
312
  'color.background.accent.gray.bolder.pressed': "var(--ds-background-accent-gray-bolder-pressed, #3B3D42)",
298
- 'color.background.disabled': "var(--ds-background-disabled, #17171708)",
313
+ 'color.background.disabled': "var(--ds-background-disabled, #0515240F)",
299
314
  'color.background.input': "var(--ds-background-input, #FFFFFF)",
300
315
  'color.background.input.hovered': "var(--ds-background-input-hovered, #F8F8F8)",
301
316
  'color.background.input.pressed': "var(--ds-background-input-pressed, #FFFFFF)",
@@ -332,6 +347,7 @@ export var backgroundColorMap = {
332
347
  'color.background.danger.subtler': "var(--ds-background-danger-subtler, #FFD5D2)",
333
348
  'color.background.danger.subtler.hovered': "var(--ds-background-danger-subtler-hovered, #FFB8B2)",
334
349
  'color.background.danger.subtler.pressed': "var(--ds-background-danger-subtler-pressed, #FD9891)",
350
+ 'color.background.danger.subtle': "var(--ds-background-danger-subtle, #FD9891)",
335
351
  'color.background.danger.bold': "var(--ds-background-danger-bold, #C9372C)",
336
352
  'color.background.danger.bold.hovered': "var(--ds-background-danger-bold-hovered, #AE2E24)",
337
353
  'color.background.danger.bold.pressed': "var(--ds-background-danger-bold-pressed, #872821)",
@@ -341,6 +357,7 @@ export var backgroundColorMap = {
341
357
  'color.background.warning.subtler': "var(--ds-background-warning-subtler, #FCE4A6)",
342
358
  'color.background.warning.subtler.hovered': "var(--ds-background-warning-subtler-hovered, #FBD779)",
343
359
  'color.background.warning.subtler.pressed': "var(--ds-background-warning-subtler-pressed, #FBC828)",
360
+ 'color.background.warning.subtle': "var(--ds-background-warning-subtle, #FBD779)",
344
361
  'color.background.warning.bold': "var(--ds-background-warning-bold, #FBC828)",
345
362
  'color.background.warning.bold.hovered': "var(--ds-background-warning-bold-hovered, #FCA700)",
346
363
  'color.background.warning.bold.pressed': "var(--ds-background-warning-bold-pressed, #F68909)",
@@ -350,6 +367,7 @@ export var backgroundColorMap = {
350
367
  'color.background.success.subtler': "var(--ds-background-success-subtler, #D3F1A7)",
351
368
  'color.background.success.subtler.hovered': "var(--ds-background-success-subtler-hovered, #BDE97C)",
352
369
  'color.background.success.subtler.pressed': "var(--ds-background-success-subtler-pressed, #B3DF72)",
370
+ 'color.background.success.subtle': "var(--ds-background-success-subtle, #B3DF72)",
353
371
  'color.background.success.bold': "var(--ds-background-success-bold, #5B7F24)",
354
372
  'color.background.success.bold.hovered': "var(--ds-background-success-bold-hovered, #4C6B1F)",
355
373
  'color.background.success.bold.pressed': "var(--ds-background-success-bold-pressed, #3F5224)",
@@ -359,6 +377,7 @@ export var backgroundColorMap = {
359
377
  'color.background.discovery.subtler': "var(--ds-background-discovery-subtler, #EED7FC)",
360
378
  'color.background.discovery.subtler.hovered': "var(--ds-background-discovery-subtler-hovered, #E3BDFA)",
361
379
  'color.background.discovery.subtler.pressed': "var(--ds-background-discovery-subtler-pressed, #D8A0F7)",
380
+ 'color.background.discovery.subtle': "var(--ds-background-discovery-subtle, #D8A0F7)",
362
381
  'color.background.discovery.bold': "var(--ds-background-discovery-bold, #964AC0)",
363
382
  'color.background.discovery.bold.hovered': "var(--ds-background-discovery-bold-hovered, #803FA5)",
364
383
  'color.background.discovery.bold.pressed': "var(--ds-background-discovery-bold-pressed, #673286)",
@@ -368,6 +387,7 @@ export var backgroundColorMap = {
368
387
  'color.background.information.subtler': "var(--ds-background-information-subtler, #CFE1FD)",
369
388
  'color.background.information.subtler.hovered': "var(--ds-background-information-subtler-hovered, #ADCBFB)",
370
389
  'color.background.information.subtler.pressed': "var(--ds-background-information-subtler-pressed, #8FB8F6)",
390
+ 'color.background.information.subtle': "var(--ds-background-information-subtle, #8FB8F6)",
371
391
  'color.background.information.bold': "var(--ds-background-information-bold, #1868DB)",
372
392
  'color.background.information.bold.hovered': "var(--ds-background-information-bold-hovered, #1558BC)",
373
393
  'color.background.information.bold.pressed': "var(--ds-background-information-bold-pressed, #144794)",
@@ -158,6 +158,7 @@ var baseXcss = function baseXcss(style) {
158
158
  * @private
159
159
  * @deprecated
160
160
  */
161
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
161
162
  var _parseXcss = function parseXcss(args) {
162
163
  if (Array.isArray(args)) {
163
164
  var emotion = [];
@@ -223,6 +224,7 @@ export { _parseXcss as parseXcss }; // Media queries should not contain nested m
223
224
  * @deprecated Use `@atlaskit/css` with `@atlaskit/primitives/compiled` instead.
224
225
  * {@link https://hello.atlassian.net/wiki/spaces/DST/pages/4992259434/Guidance+Migrating+to+atlaskit+css+from+xcss Internal documentation for migration; no external access}
225
226
  */
227
+ // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
226
228
  export function xcss(style) {
227
229
  return baseXcss(style);
228
230
  }
@@ -1,63 +1,2 @@
1
- import { type CSSObject, type SerializedStyles } from '@emotion/react';
2
- import type { Breakpoint } from './types';
3
- /**
4
- * Build a map of breakpoints to css with media queries and nested styles.
5
- *
6
- * @internal Not intended to be used outside of DST at this stage.
7
- * @experimental Not intended to be used outside of DST at this stage.
8
- *
9
- * @example
10
- * A map to build optional `display:none` for consumption on a div.
11
- * ```ts
12
- * const hideMediaQueries = buildAboveMediaQueryCSS({ display: 'none' });
13
- *
14
- * const Component = ({ hideAtBreakpoints: ('xs' | 'sm')[], children: ReactNode }) => {
15
- * return <div css={hideAtBreakpoints.map(b => hideMediaQueries[b])}>{children}</div>;
16
- * }
17
- * ```
18
- *
19
- * This roughly builds a map that will look roughly like this (if done manually):
20
- * ```ts
21
- * {
22
- * xxs: css({ '@media all': { display: 'none' } }),
23
- * xs: css({ '@media (min-width: 30rem)': { display: 'none' } }),
24
- * sm: css({ '@media (min-width: 48rem)': { display: 'none' } }),
25
- * }
26
- * ```
27
- */
28
- export declare const UNSAFE_buildAboveMediaQueryCSS: (
29
- /**
30
- * The desired CSS to place inside of the media query.
31
- * This can either be a css object directly or functional with `breakpoint` as the arg to return a css object.
32
- */
33
- input: CSSObject | ((breakpoint: Breakpoint) => CSSObject)) => Required<Partial<Record<Breakpoint, SerializedStyles>>>;
34
- /**
35
- * Build a map of breakpoints to css with media queries and nested styles.
36
- *
37
- * @internal Not intended to be used outside of DST at this stage.
38
- * @experimental Not intended to be used outside of DST at this stage.
39
- *
40
- * @example
41
- * A map to build optional `display:none` for consumption on a div.
42
- * ```ts
43
- * const hideMediaQueries = buildBelowMediaQueryCSS({ display: 'none' });
44
- *
45
- * const Component = ({ hideAtBreakpoints: ('xs' | 'sm')[], children: ReactNode }) => {
46
- * return <div css={hideAtBreakpoints.map(b => hideMediaQueries[b])}>{children}</div>;
47
- * }
48
- * ```
49
- *
50
- * This roughly builds a map that will look roughly like this (if done manually):
51
- * ```ts
52
- * {
53
- * xs: css({ '@media not all and (min-width: 30rem)': { display: 'none' } }),
54
- * sm: css({ '@media not all and (min-width: 48rem)': { display: 'none' } }),
55
- * }
56
- * ```
57
- */
58
- export declare const UNSAFE_buildBelowMediaQueryCSS: (
59
- /**
60
- * The desired CSS to place inside of the media query.
61
- * This can either be a css object directly or functional with `breakpoint` as the arg to return a css object.
62
- */
63
- input: CSSObject | ((breakpoint: Breakpoint) => CSSObject)) => Required<Partial<Record<Breakpoint, SerializedStyles>>>;
1
+ export { UNSAFE_buildAboveMediaQueryCSS } from './unsafe-build-above-media-query-css';
2
+ export { UNSAFE_buildBelowMediaQueryCSS } from './unsafe-build-below-media-query-css';
@@ -1,38 +1,3 @@
1
- /**
2
- * This is an object of usable media query helpers using our internal breakpoints configuration.
3
- *
4
- * When using Compiled CSS-in-JS, please ensure that only a single declaration can take effect at a time.
5
- * This means that you should avoid multiple breakpoints taking effect at the same time,
6
- * eg. ```{ [media.above.xs]: { color: 'red' }, [media.above.sm]: { color: 'green' }}```.
7
- * Instead, make sure that only one breakpoint can take effect at a time,
8
- * e.g, ```{ [media.only.xs]: { color: 'red' }, [media.above.sm]: { color: 'green' }}```.
9
- * For more details, please see <https://compiledcssinjs.com/docs/atomic-css#selector-specificity>.
10
- */
11
- export declare const media: {
12
- above: {
13
- readonly xxs: "@media all";
14
- readonly xs: "@media (min-width: 30rem)";
15
- readonly sm: "@media (min-width: 48rem)";
16
- readonly md: "@media (min-width: 64rem)";
17
- readonly lg: "@media (min-width: 90rem)";
18
- readonly xl: "@media (min-width: 110.5rem)";
19
- };
20
- only: {
21
- readonly xxs: "@media (min-width: 0rem) and (max-width: 29.99rem)";
22
- readonly xs: "@media (min-width: 30rem) and (max-width: 47.99rem)";
23
- readonly sm: "@media (min-width: 48rem) and (max-width: 63.99rem)";
24
- readonly md: "@media (min-width: 64rem) and (max-width: 89.99rem)";
25
- readonly lg: "@media (min-width: 90rem) and (max-width: 110.49rem)";
26
- readonly xl: "@media (min-width: 110.5rem)";
27
- };
28
- below: {
29
- readonly xs: "@media not all and (min-width: 30rem)";
30
- readonly sm: "@media not all and (min-width: 48rem)";
31
- readonly md: "@media not all and (min-width: 64rem)";
32
- readonly lg: "@media not all and (min-width: 90rem)";
33
- readonly xl: "@media not all and (min-width: 110.5rem)";
34
- };
35
- };
36
1
  /**
37
2
  * Keep `UNSAFE_media` for backwards compatibility.
38
3
  */
@@ -61,3 +26,4 @@ export declare const UNSAFE_media: {
61
26
  readonly xl: '@media not all and (min-width: 110.5rem)';
62
27
  };
63
28
  };
29
+ export { media } from './media';
@@ -0,0 +1,25 @@
1
+ export declare const media: {
2
+ above: {
3
+ readonly xxs: "@media all";
4
+ readonly xs: "@media (min-width: 30rem)";
5
+ readonly sm: "@media (min-width: 48rem)";
6
+ readonly md: "@media (min-width: 64rem)";
7
+ readonly lg: "@media (min-width: 90rem)";
8
+ readonly xl: "@media (min-width: 110.5rem)";
9
+ };
10
+ only: {
11
+ readonly xxs: "@media (min-width: 0rem) and (max-width: 29.99rem)";
12
+ readonly xs: "@media (min-width: 30rem) and (max-width: 47.99rem)";
13
+ readonly sm: "@media (min-width: 48rem) and (max-width: 63.99rem)";
14
+ readonly md: "@media (min-width: 64rem) and (max-width: 89.99rem)";
15
+ readonly lg: "@media (min-width: 90rem) and (max-width: 110.49rem)";
16
+ readonly xl: "@media (min-width: 110.5rem)";
17
+ };
18
+ below: {
19
+ readonly xs: "@media not all and (min-width: 30rem)";
20
+ readonly sm: "@media not all and (min-width: 48rem)";
21
+ readonly md: "@media not all and (min-width: 64rem)";
22
+ readonly lg: "@media not all and (min-width: 90rem)";
23
+ readonly xl: "@media not all and (min-width: 110.5rem)";
24
+ };
25
+ };
@@ -1,5 +1,5 @@
1
1
  import { type SerializedStyles } from '@emotion/react';
2
- import { type media } from './media-helper';
2
+ import type { media } from './media';
3
3
  /**
4
4
  * The breakpoints we have for responsiveness.
5
5
  */
@@ -0,0 +1,33 @@
1
+ import { type CSSObject, type SerializedStyles } from '@emotion/react';
2
+ import type { Breakpoint } from './types';
3
+ /**
4
+ * Build a map of breakpoints to css with media queries and nested styles.
5
+ *
6
+ * @internal Not intended to be used outside of DST at this stage.
7
+ * @experimental Not intended to be used outside of DST at this stage.
8
+ *
9
+ * @example
10
+ * A map to build optional `display:none` for consumption on a div.
11
+ * ```ts
12
+ * const hideMediaQueries = buildAboveMediaQueryCSS({ display: 'none' });
13
+ *
14
+ * const Component = ({ hideAtBreakpoints: ('xs' | 'sm')[], children: ReactNode }) => {
15
+ * return <div css={hideAtBreakpoints.map(b => hideMediaQueries[b])}>{children}</div>;
16
+ * }
17
+ * ```
18
+ *
19
+ * This roughly builds a map that will look roughly like this (if done manually):
20
+ * ```ts
21
+ * {
22
+ * xxs: css({ '@media all': { display: 'none' } }),
23
+ * xs: css({ '@media (min-width: 30rem)': { display: 'none' } }),
24
+ * sm: css({ '@media (min-width: 48rem)': { display: 'none' } }),
25
+ * }
26
+ * ```
27
+ */
28
+ export declare const UNSAFE_buildAboveMediaQueryCSS: (
29
+ /**
30
+ * The desired CSS to place inside of the media query.
31
+ * This can either be a css object directly or functional with `breakpoint` as the arg to return a css object.
32
+ */
33
+ input: CSSObject | ((breakpoint: Breakpoint) => CSSObject)) => Required<Partial<Record<Breakpoint, SerializedStyles>>>;
@@ -0,0 +1,32 @@
1
+ import { type CSSObject, type SerializedStyles } from '@emotion/react';
2
+ import type { Breakpoint } from './types';
3
+ /**
4
+ * Build a map of breakpoints to css with media queries and nested styles.
5
+ *
6
+ * @internal Not intended to be used outside of DST at this stage.
7
+ * @experimental Not intended to be used outside of DST at this stage.
8
+ *
9
+ * @example
10
+ * A map to build optional `display:none` for consumption on a div.
11
+ * ```ts
12
+ * const hideMediaQueries = buildBelowMediaQueryCSS({ display: 'none' });
13
+ *
14
+ * const Component = ({ hideAtBreakpoints: ('xs' | 'sm')[], children: ReactNode }) => {
15
+ * return <div css={hideAtBreakpoints.map(b => hideMediaQueries[b])}>{children}</div>;
16
+ * }
17
+ * ```
18
+ *
19
+ * This roughly builds a map that will look roughly like this (if done manually):
20
+ * ```ts
21
+ * {
22
+ * xs: css({ '@media not all and (min-width: 30rem)': { display: 'none' } }),
23
+ * sm: css({ '@media not all and (min-width: 48rem)': { display: 'none' } }),
24
+ * }
25
+ * ```
26
+ */
27
+ export declare const UNSAFE_buildBelowMediaQueryCSS: (
28
+ /**
29
+ * The desired CSS to place inside of the media query.
30
+ * This can either be a css object directly or functional with `breakpoint` as the arg to return a css object.
31
+ */
32
+ input: CSSObject | ((breakpoint: Breakpoint) => CSSObject)) => Required<Partial<Record<Breakpoint, SerializedStyles>>>;
@@ -0,0 +1,8 @@
1
+ import { type Context } from 'react';
2
+ import type { BackgroundColorToken } from './types';
3
+ /**
4
+ * __Surface context__
5
+ *
6
+ * A surface context provides context information on the current background (if set).
7
+ */
8
+ export declare const SurfaceContext: Context<BackgroundColorToken>;
@@ -1,11 +1,4 @@
1
- import { type Context } from 'react';
2
1
  import type { BackgroundColorToken } from './types';
3
- /**
4
- * __Surface context__
5
- *
6
- * A surface context provides context information on the current background (if set).
7
- */
8
- export declare const SurfaceContext: Context<BackgroundColorToken>;
9
2
  /**
10
3
  * __useSurface__
11
4
  *
@@ -14,3 +7,4 @@ export declare const SurfaceContext: Context<BackgroundColorToken>;
14
7
  * @see SurfaceContext
15
8
  */
16
9
  export declare const useSurface: () => BackgroundColorToken;
10
+ export { SurfaceContext } from './surface-context';
@@ -3,4 +3,4 @@
3
3
  * as we typically want to remove these from allowed elements.
4
4
  */
5
5
  export type SVGElements = 'svg' | 'animate' | 'animateMotion' | 'animateTransform' | 'circle' | 'clipPath' | 'defs' | 'desc' | 'ellipse' | 'feBlend' | 'feColorMatrix' | 'feComponentTransfer' | 'feComposite' | 'feConvolveMatrix' | 'feDiffuseLighting' | 'feDisplacementMap' | 'feDistantLight' | 'feDropShadow' | 'feFlood' | 'feFuncA' | 'feFuncB' | 'feFuncG' | 'feFuncR' | 'feGaussianBlur' | 'feImage' | 'feMerge' | 'feMergeNode' | 'feMorphology' | 'feOffset' | 'fePointLight' | 'feSpecularLighting' | 'feSpotLight' | 'feTile' | 'feTurbulence' | 'filter' | 'foreignObject' | 'g' | 'image' | 'line' | 'linearGradient' | 'marker' | 'mask' | 'metadata' | 'mpath' | 'path' | 'pattern' | 'polygon' | 'polyline' | 'radialGradient' | 'rect' | 'stop' | 'switch' | 'symbol' | 'text' | 'textPath' | 'tspan' | 'use' | 'view';
6
- export type BackgroundColorToken = 'color.background.accent.lime.subtlest' | 'color.background.accent.lime.subtlest.hovered' | 'color.background.accent.lime.subtlest.pressed' | 'color.background.accent.lime.subtler' | 'color.background.accent.lime.subtler.hovered' | 'color.background.accent.lime.subtler.pressed' | 'color.background.accent.lime.subtle' | 'color.background.accent.lime.subtle.hovered' | 'color.background.accent.lime.subtle.pressed' | 'color.background.accent.lime.bolder' | 'color.background.accent.lime.bolder.hovered' | 'color.background.accent.lime.bolder.pressed' | 'color.background.accent.red.subtlest' | 'color.background.accent.red.subtlest.hovered' | 'color.background.accent.red.subtlest.pressed' | 'color.background.accent.red.subtler' | 'color.background.accent.red.subtler.hovered' | 'color.background.accent.red.subtler.pressed' | 'color.background.accent.red.subtle' | 'color.background.accent.red.subtle.hovered' | 'color.background.accent.red.subtle.pressed' | 'color.background.accent.red.bolder' | 'color.background.accent.red.bolder.hovered' | 'color.background.accent.red.bolder.pressed' | 'color.background.accent.orange.subtlest' | 'color.background.accent.orange.subtlest.hovered' | 'color.background.accent.orange.subtlest.pressed' | 'color.background.accent.orange.subtler' | 'color.background.accent.orange.subtler.hovered' | 'color.background.accent.orange.subtler.pressed' | 'color.background.accent.orange.subtle' | 'color.background.accent.orange.subtle.hovered' | 'color.background.accent.orange.subtle.pressed' | 'color.background.accent.orange.bolder' | 'color.background.accent.orange.bolder.hovered' | 'color.background.accent.orange.bolder.pressed' | 'color.background.accent.yellow.subtlest' | 'color.background.accent.yellow.subtlest.hovered' | 'color.background.accent.yellow.subtlest.pressed' | 'color.background.accent.yellow.subtler' | 'color.background.accent.yellow.subtler.hovered' | 'color.background.accent.yellow.subtler.pressed' | 'color.background.accent.yellow.subtle' | 'color.background.accent.yellow.subtle.hovered' | 'color.background.accent.yellow.subtle.pressed' | 'color.background.accent.yellow.bolder' | 'color.background.accent.yellow.bolder.hovered' | 'color.background.accent.yellow.bolder.pressed' | 'color.background.accent.green.subtlest' | 'color.background.accent.green.subtlest.hovered' | 'color.background.accent.green.subtlest.pressed' | 'color.background.accent.green.subtler' | 'color.background.accent.green.subtler.hovered' | 'color.background.accent.green.subtler.pressed' | 'color.background.accent.green.subtle' | 'color.background.accent.green.subtle.hovered' | 'color.background.accent.green.subtle.pressed' | 'color.background.accent.green.bolder' | 'color.background.accent.green.bolder.hovered' | 'color.background.accent.green.bolder.pressed' | 'color.background.accent.teal.subtlest' | 'color.background.accent.teal.subtlest.hovered' | 'color.background.accent.teal.subtlest.pressed' | 'color.background.accent.teal.subtler' | 'color.background.accent.teal.subtler.hovered' | 'color.background.accent.teal.subtler.pressed' | 'color.background.accent.teal.subtle' | 'color.background.accent.teal.subtle.hovered' | 'color.background.accent.teal.subtle.pressed' | 'color.background.accent.teal.bolder' | 'color.background.accent.teal.bolder.hovered' | 'color.background.accent.teal.bolder.pressed' | 'color.background.accent.blue.subtlest' | 'color.background.accent.blue.subtlest.hovered' | 'color.background.accent.blue.subtlest.pressed' | 'color.background.accent.blue.subtler' | 'color.background.accent.blue.subtler.hovered' | 'color.background.accent.blue.subtler.pressed' | 'color.background.accent.blue.subtle' | 'color.background.accent.blue.subtle.hovered' | 'color.background.accent.blue.subtle.pressed' | 'color.background.accent.blue.bolder' | 'color.background.accent.blue.bolder.hovered' | 'color.background.accent.blue.bolder.pressed' | 'color.background.accent.purple.subtlest' | 'color.background.accent.purple.subtlest.hovered' | 'color.background.accent.purple.subtlest.pressed' | 'color.background.accent.purple.subtler' | 'color.background.accent.purple.subtler.hovered' | 'color.background.accent.purple.subtler.pressed' | 'color.background.accent.purple.subtle' | 'color.background.accent.purple.subtle.hovered' | 'color.background.accent.purple.subtle.pressed' | 'color.background.accent.purple.bolder' | 'color.background.accent.purple.bolder.hovered' | 'color.background.accent.purple.bolder.pressed' | 'color.background.accent.magenta.subtlest' | 'color.background.accent.magenta.subtlest.hovered' | 'color.background.accent.magenta.subtlest.pressed' | 'color.background.accent.magenta.subtler' | 'color.background.accent.magenta.subtler.hovered' | 'color.background.accent.magenta.subtler.pressed' | 'color.background.accent.magenta.subtle' | 'color.background.accent.magenta.subtle.hovered' | 'color.background.accent.magenta.subtle.pressed' | 'color.background.accent.magenta.bolder' | 'color.background.accent.magenta.bolder.hovered' | 'color.background.accent.magenta.bolder.pressed' | 'color.background.accent.gray.subtlest' | 'color.background.accent.gray.subtlest.hovered' | 'color.background.accent.gray.subtlest.pressed' | 'color.background.accent.gray.subtler' | 'color.background.accent.gray.subtler.hovered' | 'color.background.accent.gray.subtler.pressed' | 'color.background.accent.gray.subtle' | 'color.background.accent.gray.subtle.hovered' | 'color.background.accent.gray.subtle.pressed' | 'color.background.accent.gray.bolder' | 'color.background.accent.gray.bolder.hovered' | 'color.background.accent.gray.bolder.pressed' | 'color.background.disabled' | 'color.background.input' | 'color.background.input.hovered' | 'color.background.input.pressed' | 'color.background.inverse.subtle' | 'color.background.inverse.subtle.hovered' | 'color.background.inverse.subtle.pressed' | 'color.background.neutral' | 'color.background.neutral.hovered' | 'color.background.neutral.pressed' | 'color.background.neutral.subtle' | 'color.background.neutral.subtle.hovered' | 'color.background.neutral.subtle.pressed' | 'color.background.neutral.bold' | 'color.background.neutral.bold.hovered' | 'color.background.neutral.bold.pressed' | 'color.background.selected' | 'color.background.selected.hovered' | 'color.background.selected.pressed' | 'color.background.selected.bold' | 'color.background.selected.bold.hovered' | 'color.background.selected.bold.pressed' | 'color.background.brand.subtlest' | 'color.background.brand.subtlest.hovered' | 'color.background.brand.subtlest.pressed' | 'color.background.brand.bold' | 'color.background.brand.bold.hovered' | 'color.background.brand.bold.pressed' | 'color.background.brand.boldest' | 'color.background.brand.boldest.hovered' | 'color.background.brand.boldest.pressed' | 'color.background.danger' | 'color.background.danger.hovered' | 'color.background.danger.pressed' | 'color.background.danger.subtler' | 'color.background.danger.subtler.hovered' | 'color.background.danger.subtler.pressed' | 'color.background.danger.bold' | 'color.background.danger.bold.hovered' | 'color.background.danger.bold.pressed' | 'color.background.warning' | 'color.background.warning.hovered' | 'color.background.warning.pressed' | 'color.background.warning.subtler' | 'color.background.warning.subtler.hovered' | 'color.background.warning.subtler.pressed' | 'color.background.warning.bold' | 'color.background.warning.bold.hovered' | 'color.background.warning.bold.pressed' | 'color.background.success' | 'color.background.success.hovered' | 'color.background.success.pressed' | 'color.background.success.subtler' | 'color.background.success.subtler.hovered' | 'color.background.success.subtler.pressed' | 'color.background.success.bold' | 'color.background.success.bold.hovered' | 'color.background.success.bold.pressed' | 'color.background.discovery' | 'color.background.discovery.hovered' | 'color.background.discovery.pressed' | 'color.background.discovery.subtler' | 'color.background.discovery.subtler.hovered' | 'color.background.discovery.subtler.pressed' | 'color.background.discovery.bold' | 'color.background.discovery.bold.hovered' | 'color.background.discovery.bold.pressed' | 'color.background.information' | 'color.background.information.hovered' | 'color.background.information.pressed' | 'color.background.information.subtler' | 'color.background.information.subtler.hovered' | 'color.background.information.subtler.pressed' | 'color.background.information.bold' | 'color.background.information.bold.hovered' | 'color.background.information.bold.pressed' | 'color.blanket' | 'color.blanket.selected' | 'color.blanket.danger' | 'color.skeleton' | 'color.skeleton.subtle' | 'elevation.surface' | 'elevation.surface.hovered' | 'elevation.surface.pressed' | 'elevation.surface.overlay' | 'elevation.surface.overlay.hovered' | 'elevation.surface.overlay.pressed' | 'elevation.surface.raised' | 'elevation.surface.raised.hovered' | 'elevation.surface.raised.pressed' | 'elevation.surface.sunken' | 'utility.elevation.surface.current';
6
+ export type BackgroundColorToken = 'color.background.accent.lime.subtlest' | 'color.background.accent.lime.subtlest.hovered' | 'color.background.accent.lime.subtlest.pressed' | 'color.background.accent.lime.subtler' | 'color.background.accent.lime.subtler.hovered' | 'color.background.accent.lime.subtler.pressed' | 'color.background.accent.lime.subtle' | 'color.background.accent.lime.subtle.hovered' | 'color.background.accent.lime.subtle.pressed' | 'color.background.accent.lime.bolder' | 'color.background.accent.lime.bolder.hovered' | 'color.background.accent.lime.bolder.pressed' | 'color.background.accent.red.subtlest' | 'color.background.accent.red.subtlest.hovered' | 'color.background.accent.red.subtlest.pressed' | 'color.background.accent.red.subtler' | 'color.background.accent.red.subtler.hovered' | 'color.background.accent.red.subtler.pressed' | 'color.background.accent.red.subtle' | 'color.background.accent.red.subtle.hovered' | 'color.background.accent.red.subtle.pressed' | 'color.background.accent.red.bolder' | 'color.background.accent.red.bolder.hovered' | 'color.background.accent.red.bolder.pressed' | 'color.background.accent.orange.subtlest' | 'color.background.accent.orange.subtlest.hovered' | 'color.background.accent.orange.subtlest.pressed' | 'color.background.accent.orange.subtler' | 'color.background.accent.orange.subtler.hovered' | 'color.background.accent.orange.subtler.pressed' | 'color.background.accent.orange.subtle' | 'color.background.accent.orange.subtle.hovered' | 'color.background.accent.orange.subtle.pressed' | 'color.background.accent.orange.bolder' | 'color.background.accent.orange.bolder.hovered' | 'color.background.accent.orange.bolder.pressed' | 'color.background.accent.yellow.subtlest' | 'color.background.accent.yellow.subtlest.hovered' | 'color.background.accent.yellow.subtlest.pressed' | 'color.background.accent.yellow.subtler' | 'color.background.accent.yellow.subtler.hovered' | 'color.background.accent.yellow.subtler.pressed' | 'color.background.accent.yellow.subtle' | 'color.background.accent.yellow.subtle.hovered' | 'color.background.accent.yellow.subtle.pressed' | 'color.background.accent.yellow.bolder' | 'color.background.accent.yellow.bolder.hovered' | 'color.background.accent.yellow.bolder.pressed' | 'color.background.accent.green.subtlest' | 'color.background.accent.green.subtlest.hovered' | 'color.background.accent.green.subtlest.pressed' | 'color.background.accent.green.subtler' | 'color.background.accent.green.subtler.hovered' | 'color.background.accent.green.subtler.pressed' | 'color.background.accent.green.subtle' | 'color.background.accent.green.subtle.hovered' | 'color.background.accent.green.subtle.pressed' | 'color.background.accent.green.bolder' | 'color.background.accent.green.bolder.hovered' | 'color.background.accent.green.bolder.pressed' | 'color.background.accent.teal.subtlest' | 'color.background.accent.teal.subtlest.hovered' | 'color.background.accent.teal.subtlest.pressed' | 'color.background.accent.teal.subtler' | 'color.background.accent.teal.subtler.hovered' | 'color.background.accent.teal.subtler.pressed' | 'color.background.accent.teal.subtle' | 'color.background.accent.teal.subtle.hovered' | 'color.background.accent.teal.subtle.pressed' | 'color.background.accent.teal.bolder' | 'color.background.accent.teal.bolder.hovered' | 'color.background.accent.teal.bolder.pressed' | 'color.background.accent.blue.subtlest' | 'color.background.accent.blue.subtlest.hovered' | 'color.background.accent.blue.subtlest.pressed' | 'color.background.accent.blue.subtler' | 'color.background.accent.blue.subtler.hovered' | 'color.background.accent.blue.subtler.pressed' | 'color.background.accent.blue.subtle' | 'color.background.accent.blue.subtle.hovered' | 'color.background.accent.blue.subtle.pressed' | 'color.background.accent.blue.bolder' | 'color.background.accent.blue.bolder.hovered' | 'color.background.accent.blue.bolder.pressed' | 'color.background.accent.purple.subtlest' | 'color.background.accent.purple.subtlest.hovered' | 'color.background.accent.purple.subtlest.pressed' | 'color.background.accent.purple.subtler' | 'color.background.accent.purple.subtler.hovered' | 'color.background.accent.purple.subtler.pressed' | 'color.background.accent.purple.subtle' | 'color.background.accent.purple.subtle.hovered' | 'color.background.accent.purple.subtle.pressed' | 'color.background.accent.purple.bolder' | 'color.background.accent.purple.bolder.hovered' | 'color.background.accent.purple.bolder.pressed' | 'color.background.accent.magenta.subtlest' | 'color.background.accent.magenta.subtlest.hovered' | 'color.background.accent.magenta.subtlest.pressed' | 'color.background.accent.magenta.subtler' | 'color.background.accent.magenta.subtler.hovered' | 'color.background.accent.magenta.subtler.pressed' | 'color.background.accent.magenta.subtle' | 'color.background.accent.magenta.subtle.hovered' | 'color.background.accent.magenta.subtle.pressed' | 'color.background.accent.magenta.bolder' | 'color.background.accent.magenta.bolder.hovered' | 'color.background.accent.magenta.bolder.pressed' | 'color.background.accent.gray.subtlest' | 'color.background.accent.gray.subtlest.hovered' | 'color.background.accent.gray.subtlest.pressed' | 'color.background.accent.gray.subtler' | 'color.background.accent.gray.subtler.hovered' | 'color.background.accent.gray.subtler.pressed' | 'color.background.accent.gray.subtle' | 'color.background.accent.gray.subtle.hovered' | 'color.background.accent.gray.subtle.pressed' | 'color.background.accent.gray.bolder' | 'color.background.accent.gray.bolder.hovered' | 'color.background.accent.gray.bolder.pressed' | 'color.background.disabled' | 'color.background.input' | 'color.background.input.hovered' | 'color.background.input.pressed' | 'color.background.inverse.subtle' | 'color.background.inverse.subtle.hovered' | 'color.background.inverse.subtle.pressed' | 'color.background.neutral' | 'color.background.neutral.hovered' | 'color.background.neutral.pressed' | 'color.background.neutral.subtle' | 'color.background.neutral.subtle.hovered' | 'color.background.neutral.subtle.pressed' | 'color.background.neutral.bold' | 'color.background.neutral.bold.hovered' | 'color.background.neutral.bold.pressed' | 'color.background.selected' | 'color.background.selected.hovered' | 'color.background.selected.pressed' | 'color.background.selected.bold' | 'color.background.selected.bold.hovered' | 'color.background.selected.bold.pressed' | 'color.background.brand.subtlest' | 'color.background.brand.subtlest.hovered' | 'color.background.brand.subtlest.pressed' | 'color.background.brand.bold' | 'color.background.brand.bold.hovered' | 'color.background.brand.bold.pressed' | 'color.background.brand.boldest' | 'color.background.brand.boldest.hovered' | 'color.background.brand.boldest.pressed' | 'color.background.danger' | 'color.background.danger.hovered' | 'color.background.danger.pressed' | 'color.background.danger.subtler' | 'color.background.danger.subtler.hovered' | 'color.background.danger.subtler.pressed' | 'color.background.danger.subtle' | 'color.background.danger.bold' | 'color.background.danger.bold.hovered' | 'color.background.danger.bold.pressed' | 'color.background.warning' | 'color.background.warning.hovered' | 'color.background.warning.pressed' | 'color.background.warning.subtler' | 'color.background.warning.subtler.hovered' | 'color.background.warning.subtler.pressed' | 'color.background.warning.subtle' | 'color.background.warning.bold' | 'color.background.warning.bold.hovered' | 'color.background.warning.bold.pressed' | 'color.background.success' | 'color.background.success.hovered' | 'color.background.success.pressed' | 'color.background.success.subtler' | 'color.background.success.subtler.hovered' | 'color.background.success.subtler.pressed' | 'color.background.success.subtle' | 'color.background.success.bold' | 'color.background.success.bold.hovered' | 'color.background.success.bold.pressed' | 'color.background.discovery' | 'color.background.discovery.hovered' | 'color.background.discovery.pressed' | 'color.background.discovery.subtler' | 'color.background.discovery.subtler.hovered' | 'color.background.discovery.subtler.pressed' | 'color.background.discovery.subtle' | 'color.background.discovery.bold' | 'color.background.discovery.bold.hovered' | 'color.background.discovery.bold.pressed' | 'color.background.information' | 'color.background.information.hovered' | 'color.background.information.pressed' | 'color.background.information.subtler' | 'color.background.information.subtler.hovered' | 'color.background.information.subtler.pressed' | 'color.background.information.subtle' | 'color.background.information.bold' | 'color.background.information.bold.hovered' | 'color.background.information.bold.pressed' | 'color.blanket' | 'color.blanket.selected' | 'color.blanket.danger' | 'color.skeleton' | 'color.skeleton.subtle' | 'elevation.surface' | 'elevation.surface.hovered' | 'elevation.surface.pressed' | 'elevation.surface.overlay' | 'elevation.surface.overlay.hovered' | 'elevation.surface.overlay.pressed' | 'elevation.surface.raised' | 'elevation.surface.raised.hovered' | 'elevation.surface.raised.pressed' | 'elevation.surface.sunken' | 'utility.elevation.surface.current';
@@ -90,10 +90,10 @@ export type AllSpace = keyof typeof allSpaceMap;
90
90
  */
91
91
  /**
92
92
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
93
- * @codegen <<SignedSource::cefa2c59e15e6a3749ef38fa86c6adea>>
93
+ * @codegen <<SignedSource::5181bd08725ac44b53e0ae9f914067c1>>
94
94
  * @codegenId inverse-colors
95
95
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
96
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::38a7d4716f6999a6bdda9e4fe2bca6a1>>
96
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::3c254494d015dde7566fc7c46750adf2>>
97
97
  */
98
98
  export declare const inverseColorMap: {
99
99
  'color.background.neutral.bold': 'color.text.inverse';
@@ -129,11 +129,11 @@ export declare const inverseColorMap: {
129
129
  */
130
130
  /**
131
131
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
132
- * @codegen <<SignedSource::c673d53a0a31524e65f1c7051579eae5>>
132
+ * @codegen <<SignedSource::54e9dee77c5da7d77db6b6cb20970356>>
133
133
  * @codegenId elevation
134
134
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
135
135
  * @codegenParams ["opacity", "shadow", "surface"]
136
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::38a7d4716f6999a6bdda9e4fe2bca6a1>>
136
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::3c254494d015dde7566fc7c46750adf2>>
137
137
  */
138
138
  export declare const opacityMap: {
139
139
  'opacity.disabled': 'var(--ds-opacity-disabled)';
@@ -166,24 +166,34 @@ export type SurfaceColor = keyof typeof surfaceColorMap;
166
166
  */
167
167
  /**
168
168
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
169
- * @codegen <<SignedSource::fa88ed1ec5a817750b0348ca36dbb5f1>>
169
+ * @codegen <<SignedSource::5fd7f92fbc474ab0beacc4e06dad8fca>>
170
170
  * @codegenId colors
171
171
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
172
172
  * @codegenParams ["border", "background", "text", "fill"]
173
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::38a7d4716f6999a6bdda9e4fe2bca6a1>>
173
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::3c254494d015dde7566fc7c46750adf2>>
174
174
  */
175
175
  export declare const borderColorMap: {
176
176
  'color.border': 'var(--ds-border)';
177
177
  'color.border.accent.lime': 'var(--ds-border-accent-lime)';
178
+ 'color.border.accent.lime.subtle': 'var(--ds-border-accent-lime-subtle)';
178
179
  'color.border.accent.red': 'var(--ds-border-accent-red)';
180
+ 'color.border.accent.red.subtle': 'var(--ds-border-accent-red-subtle)';
179
181
  'color.border.accent.orange': 'var(--ds-border-accent-orange)';
182
+ 'color.border.accent.orange.subtle': 'var(--ds-border-accent-orange-subtle)';
180
183
  'color.border.accent.yellow': 'var(--ds-border-accent-yellow)';
184
+ 'color.border.accent.yellow.subtle': 'var(--ds-border-accent-yellow-subtle)';
181
185
  'color.border.accent.green': 'var(--ds-border-accent-green)';
186
+ 'color.border.accent.green.subtle': 'var(--ds-border-accent-green-subtle)';
182
187
  'color.border.accent.teal': 'var(--ds-border-accent-teal)';
188
+ 'color.border.accent.teal.subtle': 'var(--ds-border-accent-teal-subtle)';
183
189
  'color.border.accent.blue': 'var(--ds-border-accent-blue)';
190
+ 'color.border.accent.blue.subtle': 'var(--ds-border-accent-blue-subtle)';
184
191
  'color.border.accent.purple': 'var(--ds-border-accent-purple)';
192
+ 'color.border.accent.purple.subtle': 'var(--ds-border-accent-purple-subtle)';
185
193
  'color.border.accent.magenta': 'var(--ds-border-accent-magenta)';
194
+ 'color.border.accent.magenta.subtle': 'var(--ds-border-accent-magenta-subtle)';
186
195
  'color.border.accent.gray': 'var(--ds-border-accent-gray)';
196
+ 'color.border.accent.gray.subtle': 'var(--ds-border-accent-gray-subtle)';
187
197
  'color.border.disabled': 'var(--ds-border-disabled)';
188
198
  'color.border.focused': 'var(--ds-border-focused)';
189
199
  'color.border.input': 'var(--ds-border-input)';
@@ -191,10 +201,15 @@ export declare const borderColorMap: {
191
201
  'color.border.selected': 'var(--ds-border-selected)';
192
202
  'color.border.brand': 'var(--ds-border-brand)';
193
203
  'color.border.danger': 'var(--ds-border-danger)';
204
+ 'color.border.danger.subtle': 'var(--ds-border-danger-subtle)';
194
205
  'color.border.warning': 'var(--ds-border-warning)';
206
+ 'color.border.warning.subtle': 'var(--ds-border-warning-subtle)';
195
207
  'color.border.success': 'var(--ds-border-success)';
208
+ 'color.border.success.subtle': 'var(--ds-border-success-subtle)';
196
209
  'color.border.discovery': 'var(--ds-border-discovery)';
210
+ 'color.border.discovery.subtle': 'var(--ds-border-discovery-subtle)';
197
211
  'color.border.information': 'var(--ds-border-information)';
212
+ 'color.border.information.subtle': 'var(--ds-border-information-subtle)';
198
213
  'color.border.bold': 'var(--ds-border-bold)';
199
214
  };
200
215
  export type BorderColor = keyof typeof borderColorMap;
@@ -356,6 +371,7 @@ export declare const backgroundColorMap: {
356
371
  'color.background.danger.subtler': 'var(--ds-background-danger-subtler)';
357
372
  'color.background.danger.subtler.hovered': 'var(--ds-background-danger-subtler-hovered)';
358
373
  'color.background.danger.subtler.pressed': 'var(--ds-background-danger-subtler-pressed)';
374
+ 'color.background.danger.subtle': 'var(--ds-background-danger-subtle)';
359
375
  'color.background.danger.bold': 'var(--ds-background-danger-bold)';
360
376
  'color.background.danger.bold.hovered': 'var(--ds-background-danger-bold-hovered)';
361
377
  'color.background.danger.bold.pressed': 'var(--ds-background-danger-bold-pressed)';
@@ -365,6 +381,7 @@ export declare const backgroundColorMap: {
365
381
  'color.background.warning.subtler': 'var(--ds-background-warning-subtler)';
366
382
  'color.background.warning.subtler.hovered': 'var(--ds-background-warning-subtler-hovered)';
367
383
  'color.background.warning.subtler.pressed': 'var(--ds-background-warning-subtler-pressed)';
384
+ 'color.background.warning.subtle': 'var(--ds-background-warning-subtle)';
368
385
  'color.background.warning.bold': 'var(--ds-background-warning-bold)';
369
386
  'color.background.warning.bold.hovered': 'var(--ds-background-warning-bold-hovered)';
370
387
  'color.background.warning.bold.pressed': 'var(--ds-background-warning-bold-pressed)';
@@ -374,6 +391,7 @@ export declare const backgroundColorMap: {
374
391
  'color.background.success.subtler': 'var(--ds-background-success-subtler)';
375
392
  'color.background.success.subtler.hovered': 'var(--ds-background-success-subtler-hovered)';
376
393
  'color.background.success.subtler.pressed': 'var(--ds-background-success-subtler-pressed)';
394
+ 'color.background.success.subtle': 'var(--ds-background-success-subtle)';
377
395
  'color.background.success.bold': 'var(--ds-background-success-bold)';
378
396
  'color.background.success.bold.hovered': 'var(--ds-background-success-bold-hovered)';
379
397
  'color.background.success.bold.pressed': 'var(--ds-background-success-bold-pressed)';
@@ -383,6 +401,7 @@ export declare const backgroundColorMap: {
383
401
  'color.background.discovery.subtler': 'var(--ds-background-discovery-subtler)';
384
402
  'color.background.discovery.subtler.hovered': 'var(--ds-background-discovery-subtler-hovered)';
385
403
  'color.background.discovery.subtler.pressed': 'var(--ds-background-discovery-subtler-pressed)';
404
+ 'color.background.discovery.subtle': 'var(--ds-background-discovery-subtle)';
386
405
  'color.background.discovery.bold': 'var(--ds-background-discovery-bold)';
387
406
  'color.background.discovery.bold.hovered': 'var(--ds-background-discovery-bold-hovered)';
388
407
  'color.background.discovery.bold.pressed': 'var(--ds-background-discovery-bold-pressed)';
@@ -392,6 +411,7 @@ export declare const backgroundColorMap: {
392
411
  'color.background.information.subtler': 'var(--ds-background-information-subtler)';
393
412
  'color.background.information.subtler.hovered': 'var(--ds-background-information-subtler-hovered)';
394
413
  'color.background.information.subtler.pressed': 'var(--ds-background-information-subtler-pressed)';
414
+ 'color.background.information.subtle': 'var(--ds-background-information-subtle)';
395
415
  'color.background.information.bold': 'var(--ds-background-information-bold)';
396
416
  'color.background.information.bold.hovered': 'var(--ds-background-information-bold-hovered)';
397
417
  'color.background.information.bold.pressed': 'var(--ds-background-information-bold-pressed)';