@atlaskit/ds-explorations 2.0.0 → 2.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 (45) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/components/box.partial.js +62 -71
  3. package/dist/cjs/components/inline.partial.js +12 -16
  4. package/dist/cjs/components/interaction-surface.partial.js +35 -40
  5. package/dist/cjs/components/stack.partial.js +11 -13
  6. package/dist/cjs/components/surface-provider.js +1 -5
  7. package/dist/cjs/components/text.partial.js +34 -47
  8. package/dist/cjs/index.js +0 -6
  9. package/dist/cjs/internal/color-map.js +5 -6
  10. package/dist/cjs/internal/role-to-element.js +0 -1
  11. package/dist/cjs/internal/spacing-scale.js +0 -1
  12. package/dist/cjs/version.json +1 -1
  13. package/dist/es2019/components/box.partial.js +40 -39
  14. package/dist/es2019/components/inline.partial.js +5 -6
  15. package/dist/es2019/components/interaction-surface.partial.js +33 -34
  16. package/dist/es2019/components/stack.partial.js +5 -4
  17. package/dist/es2019/components/surface-provider.js +1 -2
  18. package/dist/es2019/components/text.partial.js +21 -25
  19. package/dist/es2019/internal/color-map.js +5 -5
  20. package/dist/es2019/version.json +1 -1
  21. package/dist/esm/components/box.partial.js +65 -65
  22. package/dist/esm/components/inline.partial.js +12 -13
  23. package/dist/esm/components/interaction-surface.partial.js +35 -36
  24. package/dist/esm/components/stack.partial.js +11 -10
  25. package/dist/esm/components/surface-provider.js +1 -2
  26. package/dist/esm/components/text.partial.js +35 -41
  27. package/dist/esm/internal/color-map.js +5 -5
  28. package/dist/esm/version.json +1 -1
  29. package/dist/types/components/box.partial.d.ts +14 -14
  30. package/dist/types/components/inline.partial.d.ts +2 -2
  31. package/dist/types/components/interaction-surface.partial.d.ts +3 -3
  32. package/dist/types/components/stack.partial.d.ts +2 -2
  33. package/dist/types/components/surface-provider.d.ts +2 -2
  34. package/dist/types/components/text.partial.d.ts +7 -7
  35. package/dist/types/internal/color-map.d.ts +5 -5
  36. package/package.json +2 -2
  37. package/report.api.md +16 -16
  38. package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +49 -49
  39. package/src/components/box.partial.tsx +33 -33
  40. package/src/components/inline.partial.tsx +2 -2
  41. package/src/components/interaction-surface.partial.tsx +22 -22
  42. package/src/components/stack.partial.tsx +2 -2
  43. package/src/components/text.partial.tsx +13 -13
  44. package/src/internal/color-map.tsx +5 -5
  45. package/tmp/api-report-tmp.d.ts +16 -16
@@ -1,6 +1,5 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
2
  var _excluded = ["children"];
3
-
4
3
  /** @jsx jsx */
5
4
  import { createContext, Fragment, useContext } from 'react';
6
5
  import { css, jsx } from '@emotion/react';
@@ -51,27 +50,26 @@ var truncateStyles = css({
51
50
  textOverflow: 'ellipsis',
52
51
  whiteSpace: 'nowrap'
53
52
  });
53
+
54
54
  /**
55
55
  * Custom hook designed to abstract the parsing of the color props and make it clearer in the future how color is reconciled between themes and tokens.
56
56
  */
57
-
58
57
  var useColor = function useColor(colorProp) {
59
58
  var surface = useSurface();
60
59
  var inverseTextColor = surfaceColorMap[surface];
60
+
61
61
  /**
62
62
  * Where the color of the surface is inverted we override the user choice
63
63
  * as there is no valid choice that is not covered by the override.
64
64
  */
65
-
66
65
  var color = inverseTextColor !== null && inverseTextColor !== void 0 ? inverseTextColor : colorProp;
67
66
  return color;
68
67
  };
69
-
70
68
  var HasTextAncestorContext = /*#__PURE__*/createContext(false);
71
-
72
69
  var useHasTextAncestor = function useHasTextAncestor() {
73
70
  return useContext(HasTextAncestorContext);
74
71
  };
72
+
75
73
  /**
76
74
  * __Text__
77
75
  *
@@ -81,60 +79,56 @@ var useHasTextAncestor = function useHasTextAncestor() {
81
79
  *
82
80
  * @internal
83
81
  */
84
-
85
-
86
82
  var Text = function Text(_ref) {
87
83
  var children = _ref.children,
88
- props = _objectWithoutProperties(_ref, _excluded);
89
-
84
+ props = _objectWithoutProperties(_ref, _excluded);
90
85
  var _props$as = props.as,
91
- Component = _props$as === void 0 ? 'span' : _props$as,
92
- colorProp = props.color,
93
- fontSize = props.fontSize,
94
- fontWeight = props.fontWeight,
95
- lineHeight = props.lineHeight,
96
- _props$shouldTruncate = props.shouldTruncate,
97
- shouldTruncate = _props$shouldTruncate === void 0 ? false : _props$shouldTruncate,
98
- textAlign = props.textAlign,
99
- textTransform = props.textTransform,
100
- verticalAlign = props.verticalAlign,
101
- testId = props.testId,
102
- UNSAFE_style = props.UNSAFE_style,
103
- id = props.id;
86
+ Component = _props$as === void 0 ? 'span' : _props$as,
87
+ colorProp = props.color,
88
+ fontSize = props.fontSize,
89
+ fontWeight = props.fontWeight,
90
+ lineHeight = props.lineHeight,
91
+ _props$shouldTruncate = props.shouldTruncate,
92
+ shouldTruncate = _props$shouldTruncate === void 0 ? false : _props$shouldTruncate,
93
+ textAlign = props.textAlign,
94
+ textTransform = props.textTransform,
95
+ verticalAlign = props.verticalAlign,
96
+ testId = props.testId,
97
+ UNSAFE_style = props.UNSAFE_style,
98
+ id = props.id;
104
99
  invariant(asAllowlist.includes(Component), "@atlaskit/ds-explorations: Text received an invalid \"as\" value of \"".concat(Component, "\""));
105
100
  var color = useColor(colorProp);
106
101
  var isWrapped = useHasTextAncestor();
102
+
107
103
  /**
108
104
  * If the text is already wrapped and applies no props we can just
109
105
  * render the children directly as a fragment.
110
106
  */
111
-
112
107
  if (isWrapped && Object.keys(props).length === 0) {
113
108
  return jsx(Fragment, null, children);
114
109
  }
115
-
116
110
  var component = jsx(Component, {
117
111
  style: UNSAFE_style,
118
112
  css: [baseStyles, fontFamilyMap.sans, color && textColorMap[color], fontSize && fontSizeMap[fontSize], fontWeight && fontWeightMap[fontWeight], lineHeight && lineHeightMap[lineHeight], shouldTruncate && truncateStyles, textAlign && textAlignMap[textAlign], textTransform && textTransformMap[textTransform], verticalAlign && verticalAlignMap[verticalAlign]],
119
113
  "data-testid": testId,
120
114
  id: id
121
115
  }, children);
122
- return isWrapped ? // no need to re-apply context if the text is already wrapped
116
+ return isWrapped ?
117
+ // no need to re-apply context if the text is already wrapped
123
118
  component : jsx(HasTextAncestorContext.Provider, {
124
119
  value: true
125
120
  }, component);
126
121
  };
127
-
128
122
  export default Text;
123
+
129
124
  /**
130
125
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
131
- * @codegen <<SignedSource::bd36caff8bedb3bdc89b6f2311c6160a>>
126
+ * @codegen <<SignedSource::9f746e797b8b5262d58b40dfecb39e6d>>
132
127
  * @codegenId typography
133
128
  * @codegenCommand yarn codegen-styles
134
129
  * @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
135
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::39bc8db0f376f5635a25be0137792642>>
130
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::e6bf70c53b8eecdb84ae4c79966537e3>>
136
131
  */
137
-
138
132
  var fontSizeMap = {
139
133
  'size.050': css({
140
134
  fontSize: "var(--ds-font-size-050, 11px)"
@@ -203,41 +197,34 @@ var lineHeightMap = {
203
197
  lineHeight: "var(--ds-font-lineHeight-600, 40px)"
204
198
  })
205
199
  };
206
-
207
200
  /**
208
201
  * @codegenEnd
209
202
  */
210
203
 
211
204
  /**
212
205
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
213
- * @codegen <<SignedSource::d88a2527302fee634bec7ae405e9217b>>
206
+ * @codegen <<SignedSource::3780858df77f5fe0c6e0f39a4c989741>>
214
207
  * @codegenId colors
215
208
  * @codegenCommand yarn codegen-styles
216
209
  * @codegenParams ["text"]
217
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::db7a1282630a6e5b9424b807614086af>>
210
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::10aa7e87eca39e4d6594a764e78e0698>>
218
211
  */
219
212
  var textColorMap = {
220
213
  'color.text': css({
221
214
  color: "var(--ds-text, #172B4D)"
222
215
  }),
223
- subtle: css({
224
- color: "var(--ds-text-subtle, #42526E)"
225
- }),
226
- subtlest: css({
227
- color: "var(--ds-text-subtlest, #7A869A)"
228
- }),
229
216
  disabled: css({
230
217
  color: "var(--ds-text-disabled, #A5ADBA)"
231
218
  }),
232
219
  inverse: css({
233
220
  color: "var(--ds-text-inverse, #FFFFFF)"
234
221
  }),
235
- brand: css({
236
- color: "var(--ds-text-brand, #0065FF)"
237
- }),
238
222
  selected: css({
239
223
  color: "var(--ds-text-selected, #0052CC)"
240
224
  }),
225
+ brand: css({
226
+ color: "var(--ds-text-brand, #0065FF)"
227
+ }),
241
228
  danger: css({
242
229
  color: "var(--ds-text-danger, #DE350B)"
243
230
  }),
@@ -255,8 +242,15 @@ var textColorMap = {
255
242
  }),
256
243
  information: css({
257
244
  color: "var(--ds-text-information, #0052CC)"
245
+ }),
246
+ subtlest: css({
247
+ color: "var(--ds-text-subtlest, #7A869A)"
248
+ }),
249
+ subtle: css({
250
+ color: "var(--ds-text-subtle, #42526E)"
258
251
  })
259
252
  };
253
+
260
254
  /**
261
255
  * @codegenEnd
262
256
  */
@@ -3,20 +3,20 @@
3
3
  *
4
4
  * The color map is used to map a background color token to a matching text color that will meet contrast.
5
5
  *
6
- * @codegen <<SignedSource::55412dc750db330e0a2a51918237e29f>>
6
+ * @codegen <<SignedSource::d168519874a16bbb92cfbfd4747a39b4>>
7
7
  * @codegenCommand yarn codegen-styles
8
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::db7a1282630a6e5b9424b807614086af>>
8
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::10aa7e87eca39e4d6594a764e78e0698>>
9
9
  */
10
10
  export default {
11
11
  'neutral.bold': 'inverse',
12
12
  'neutral.bold.hovered': 'inverse',
13
13
  'neutral.bold.pressed': 'inverse',
14
- 'brand.bold': 'inverse',
15
- 'brand.bold.hovered': 'inverse',
16
- 'brand.bold.pressed': 'inverse',
17
14
  'selected.bold': 'inverse',
18
15
  'selected.bold.hovered': 'inverse',
19
16
  'selected.bold.pressed': 'inverse',
17
+ 'brand.bold': 'inverse',
18
+ 'brand.bold.hovered': 'inverse',
19
+ 'brand.bold.pressed': 'inverse',
20
20
  'danger.bold': 'inverse',
21
21
  'danger.bold.hovered': 'inverse',
22
22
  'danger.bold.pressed': 'inverse',
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/ds-explorations",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "sideEffects": false
5
5
  }
@@ -222,11 +222,11 @@ export declare type Height = keyof typeof heightMap;
222
222
  */
223
223
  /**
224
224
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
225
- * @codegen <<SignedSource::99c5403dd8b57b15bf1240cc456b6b16>>
225
+ * @codegen <<SignedSource::dd066079dac7b8cd6f947965a2f1a744>>
226
226
  * @codegenId spacing
227
227
  * @codegenCommand yarn codegen-styles
228
228
  * @codegenParams ["padding", "paddingBlock", "paddingInline"]
229
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::a2b43f8447798dfdd9c6223bd22b78c7>>
229
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::b0b8f1a822ed84e0407ad83e6fda5a1c>>
230
230
  */
231
231
  declare const paddingMap: {
232
232
  'space.0': import("@emotion/react").SerializedStyles;
@@ -284,38 +284,38 @@ export declare type PaddingInline = keyof typeof paddingInlineMap;
284
284
  */
285
285
  /**
286
286
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
287
- * @codegen <<SignedSource::201c8a6c6ff88ac47cdb02365c643ff2>>
287
+ * @codegen <<SignedSource::514663609a5a48a284de40c5c4ad200b>>
288
288
  * @codegenId colors
289
289
  * @codegenCommand yarn codegen-styles
290
290
  * @codegenParams ["border", "background", "shadow"]
291
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::db7a1282630a6e5b9424b807614086af>>
291
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::10aa7e87eca39e4d6594a764e78e0698>>
292
292
  */
293
293
  declare const borderColorMap: {
294
294
  readonly 'color.border': import("@emotion/react").SerializedStyles;
295
- readonly bold: import("@emotion/react").SerializedStyles;
296
- readonly inverse: import("@emotion/react").SerializedStyles;
295
+ readonly disabled: import("@emotion/react").SerializedStyles;
297
296
  readonly focused: import("@emotion/react").SerializedStyles;
298
297
  readonly input: import("@emotion/react").SerializedStyles;
299
- readonly disabled: import("@emotion/react").SerializedStyles;
300
- readonly brand: import("@emotion/react").SerializedStyles;
298
+ readonly inverse: import("@emotion/react").SerializedStyles;
301
299
  readonly selected: import("@emotion/react").SerializedStyles;
300
+ readonly brand: import("@emotion/react").SerializedStyles;
302
301
  readonly danger: import("@emotion/react").SerializedStyles;
303
302
  readonly warning: import("@emotion/react").SerializedStyles;
304
303
  readonly success: import("@emotion/react").SerializedStyles;
305
304
  readonly discovery: import("@emotion/react").SerializedStyles;
306
305
  readonly information: import("@emotion/react").SerializedStyles;
306
+ readonly bold: import("@emotion/react").SerializedStyles;
307
307
  };
308
308
  export declare type BorderColor = keyof typeof borderColorMap;
309
309
  declare const backgroundColorMap: {
310
310
  readonly disabled: import("@emotion/react").SerializedStyles;
311
- readonly 'inverse.subtle': import("@emotion/react").SerializedStyles;
312
311
  readonly input: import("@emotion/react").SerializedStyles;
312
+ readonly 'inverse.subtle': import("@emotion/react").SerializedStyles;
313
313
  readonly neutral: import("@emotion/react").SerializedStyles;
314
314
  readonly 'neutral.subtle': import("@emotion/react").SerializedStyles;
315
315
  readonly 'neutral.bold': import("@emotion/react").SerializedStyles;
316
- readonly 'brand.bold': import("@emotion/react").SerializedStyles;
317
316
  readonly selected: import("@emotion/react").SerializedStyles;
318
317
  readonly 'selected.bold': import("@emotion/react").SerializedStyles;
318
+ readonly 'brand.bold': import("@emotion/react").SerializedStyles;
319
319
  readonly danger: import("@emotion/react").SerializedStyles;
320
320
  readonly 'danger.bold': import("@emotion/react").SerializedStyles;
321
321
  readonly warning: import("@emotion/react").SerializedStyles;
@@ -330,17 +330,17 @@ declare const backgroundColorMap: {
330
330
  readonly 'color.blanket.selected': import("@emotion/react").SerializedStyles;
331
331
  readonly 'color.blanket.danger': import("@emotion/react").SerializedStyles;
332
332
  readonly 'elevation.surface': import("@emotion/react").SerializedStyles;
333
- readonly 'elevation.surface.sunken': import("@emotion/react").SerializedStyles;
334
- readonly 'elevation.surface.raised': import("@emotion/react").SerializedStyles;
335
333
  readonly 'elevation.surface.overlay': import("@emotion/react").SerializedStyles;
334
+ readonly 'elevation.surface.raised': import("@emotion/react").SerializedStyles;
335
+ readonly 'elevation.surface.sunken': import("@emotion/react").SerializedStyles;
336
336
  };
337
337
  export declare type BackgroundColor = keyof typeof backgroundColorMap;
338
338
  declare const shadowMap: {
339
- readonly raised: import("@emotion/react").SerializedStyles;
340
339
  readonly overflow: import("@emotion/react").SerializedStyles;
341
- readonly 'overflow.spread': import("@emotion/react").SerializedStyles;
342
340
  readonly 'overflow.perimeter': import("@emotion/react").SerializedStyles;
341
+ readonly 'overflow.spread': import("@emotion/react").SerializedStyles;
343
342
  readonly overlay: import("@emotion/react").SerializedStyles;
343
+ readonly raised: import("@emotion/react").SerializedStyles;
344
344
  };
345
345
  export declare type Shadow = keyof typeof shadowMap;
346
346
  /**
@@ -71,11 +71,11 @@ declare const Inline: import("react").MemoExoticComponent<import("react").Forwar
71
71
  export default Inline;
72
72
  /**
73
73
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
74
- * @codegen <<SignedSource::0a2a4380b534d14cdad759ff2d33a6c8>>
74
+ * @codegen <<SignedSource::e4218f7c850d1484a192d5b8b5dce136>>
75
75
  * @codegenId spacing
76
76
  * @codegenCommand yarn codegen-styles
77
77
  * @codegenParams ["columnGap"]
78
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::a2b43f8447798dfdd9c6223bd22b78c7>>
78
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::b0b8f1a822ed84e0407ad83e6fda5a1c>>
79
79
  */
80
80
  declare const columnGapMap: {
81
81
  'space.0': import("@emotion/react").SerializedStyles;
@@ -21,14 +21,14 @@ interface InteractionSurfaceProps extends BasePrimitiveProps {
21
21
  declare const InteractionSurface: ({ appearance, children, testId, }: InteractionSurfaceProps) => jsx.JSX.Element;
22
22
  export default InteractionSurface;
23
23
  declare const backgroundHoverColorMap: {
24
- 'inverse.subtle': import("@emotion/react").SerializedStyles;
25
24
  input: import("@emotion/react").SerializedStyles;
25
+ 'inverse.subtle': import("@emotion/react").SerializedStyles;
26
26
  neutral: import("@emotion/react").SerializedStyles;
27
27
  'neutral.subtle': import("@emotion/react").SerializedStyles;
28
28
  'neutral.bold': import("@emotion/react").SerializedStyles;
29
- 'brand.bold': import("@emotion/react").SerializedStyles;
30
29
  selected: import("@emotion/react").SerializedStyles;
31
30
  'selected.bold': import("@emotion/react").SerializedStyles;
31
+ 'brand.bold': import("@emotion/react").SerializedStyles;
32
32
  danger: import("@emotion/react").SerializedStyles;
33
33
  'danger.bold': import("@emotion/react").SerializedStyles;
34
34
  warning: import("@emotion/react").SerializedStyles;
@@ -40,8 +40,8 @@ declare const backgroundHoverColorMap: {
40
40
  information: import("@emotion/react").SerializedStyles;
41
41
  'information.bold': import("@emotion/react").SerializedStyles;
42
42
  'elevation.surface': import("@emotion/react").SerializedStyles;
43
- 'elevation.surface.raised': import("@emotion/react").SerializedStyles;
44
43
  'elevation.surface.overlay': import("@emotion/react").SerializedStyles;
44
+ 'elevation.surface.raised': import("@emotion/react").SerializedStyles;
45
45
  };
46
46
  declare type InteractionBackgroundColor = keyof typeof backgroundHoverColorMap;
47
47
  /**
@@ -55,11 +55,11 @@ declare const Stack: import("react").MemoExoticComponent<import("react").Forward
55
55
  export default Stack;
56
56
  /**
57
57
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
58
- * @codegen <<SignedSource::ac9028ae231558f3eedd10f0db04a8fe>>
58
+ * @codegen <<SignedSource::91d26b1ace8b38363779ae85a7ddc51b>>
59
59
  * @codegenId spacing
60
60
  * @codegenCommand yarn codegen-styles
61
61
  * @codegenParams ["rowGap"]
62
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::a2b43f8447798dfdd9c6223bd22b78c7>>
62
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::b0b8f1a822ed84e0407ad83e6fda5a1c>>
63
63
  */
64
64
  declare const rowGapMap: {
65
65
  'space.0': import("@emotion/react").SerializedStyles;
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * A surface context provides context information on the current background (if set).
6
6
  */
7
- export declare const SurfaceContext: import("react").Context<"color.blanket" | "color.blanket.selected" | "color.blanket.danger" | "elevation.surface" | "elevation.surface.sunken" | "elevation.surface.raised" | "elevation.surface.overlay" | "disabled" | "inverse.subtle" | "input" | "neutral" | "neutral.subtle" | "neutral.bold" | "brand.bold" | "selected" | "selected.bold" | "danger" | "danger.bold" | "warning" | "warning.bold" | "success" | "success.bold" | "discovery" | "discovery.bold" | "information" | "information.bold">;
7
+ export declare const SurfaceContext: import("react").Context<"color.blanket" | "color.blanket.selected" | "color.blanket.danger" | "elevation.surface" | "elevation.surface.overlay" | "elevation.surface.raised" | "elevation.surface.sunken" | "disabled" | "input" | "inverse.subtle" | "neutral" | "neutral.subtle" | "neutral.bold" | "selected" | "selected.bold" | "brand.bold" | "danger" | "danger.bold" | "warning" | "warning.bold" | "success" | "success.bold" | "discovery" | "discovery.bold" | "information" | "information.bold">;
8
8
  /**
9
9
  * __useSurface__
10
10
  *
@@ -12,4 +12,4 @@ export declare const SurfaceContext: import("react").Context<"color.blanket" | "
12
12
  *
13
13
  * @see SurfaceContext
14
14
  */
15
- export declare const useSurface: () => "color.blanket" | "color.blanket.selected" | "color.blanket.danger" | "elevation.surface" | "elevation.surface.sunken" | "elevation.surface.raised" | "elevation.surface.overlay" | "disabled" | "inverse.subtle" | "input" | "neutral" | "neutral.subtle" | "neutral.bold" | "brand.bold" | "selected" | "selected.bold" | "danger" | "danger.bold" | "warning" | "warning.bold" | "success" | "success.bold" | "discovery" | "discovery.bold" | "information" | "information.bold";
15
+ export declare const useSurface: () => "color.blanket" | "color.blanket.selected" | "color.blanket.danger" | "elevation.surface" | "elevation.surface.overlay" | "elevation.surface.raised" | "elevation.surface.sunken" | "disabled" | "input" | "inverse.subtle" | "neutral" | "neutral.subtle" | "neutral.bold" | "selected" | "selected.bold" | "brand.bold" | "danger" | "danger.bold" | "warning" | "warning.bold" | "success" | "success.bold" | "discovery" | "discovery.bold" | "information" | "information.bold";
@@ -81,11 +81,11 @@ declare const Text: FC<TextProps>;
81
81
  export default Text;
82
82
  /**
83
83
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
84
- * @codegen <<SignedSource::bd36caff8bedb3bdc89b6f2311c6160a>>
84
+ * @codegen <<SignedSource::9f746e797b8b5262d58b40dfecb39e6d>>
85
85
  * @codegenId typography
86
86
  * @codegenCommand yarn codegen-styles
87
87
  * @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
88
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::39bc8db0f376f5635a25be0137792642>>
88
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::e6bf70c53b8eecdb84ae4c79966537e3>>
89
89
  */
90
90
  declare const fontSizeMap: {
91
91
  'size.050': import("@emotion/react").SerializedStyles;
@@ -124,26 +124,26 @@ export declare type LineHeight = keyof typeof lineHeightMap;
124
124
  */
125
125
  /**
126
126
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
127
- * @codegen <<SignedSource::d88a2527302fee634bec7ae405e9217b>>
127
+ * @codegen <<SignedSource::3780858df77f5fe0c6e0f39a4c989741>>
128
128
  * @codegenId colors
129
129
  * @codegenCommand yarn codegen-styles
130
130
  * @codegenParams ["text"]
131
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::db7a1282630a6e5b9424b807614086af>>
131
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::10aa7e87eca39e4d6594a764e78e0698>>
132
132
  */
133
133
  declare const textColorMap: {
134
134
  readonly 'color.text': import("@emotion/react").SerializedStyles;
135
- readonly subtle: import("@emotion/react").SerializedStyles;
136
- readonly subtlest: import("@emotion/react").SerializedStyles;
137
135
  readonly disabled: import("@emotion/react").SerializedStyles;
138
136
  readonly inverse: import("@emotion/react").SerializedStyles;
139
- readonly brand: import("@emotion/react").SerializedStyles;
140
137
  readonly selected: import("@emotion/react").SerializedStyles;
138
+ readonly brand: import("@emotion/react").SerializedStyles;
141
139
  readonly danger: import("@emotion/react").SerializedStyles;
142
140
  readonly warning: import("@emotion/react").SerializedStyles;
143
141
  readonly 'warning.inverse': import("@emotion/react").SerializedStyles;
144
142
  readonly success: import("@emotion/react").SerializedStyles;
145
143
  readonly discovery: import("@emotion/react").SerializedStyles;
146
144
  readonly information: import("@emotion/react").SerializedStyles;
145
+ readonly subtlest: import("@emotion/react").SerializedStyles;
146
+ readonly subtle: import("@emotion/react").SerializedStyles;
147
147
  };
148
148
  export declare type TextColor = keyof typeof textColorMap;
149
149
  /**
@@ -2,12 +2,12 @@ declare const _default: {
2
2
  readonly 'neutral.bold': "inverse";
3
3
  readonly 'neutral.bold.hovered': "inverse";
4
4
  readonly 'neutral.bold.pressed': "inverse";
5
- readonly 'brand.bold': "inverse";
6
- readonly 'brand.bold.hovered': "inverse";
7
- readonly 'brand.bold.pressed': "inverse";
8
5
  readonly 'selected.bold': "inverse";
9
6
  readonly 'selected.bold.hovered': "inverse";
10
7
  readonly 'selected.bold.pressed': "inverse";
8
+ readonly 'brand.bold': "inverse";
9
+ readonly 'brand.bold.hovered': "inverse";
10
+ readonly 'brand.bold.pressed': "inverse";
11
11
  readonly 'danger.bold': "inverse";
12
12
  readonly 'danger.bold.hovered': "inverse";
13
13
  readonly 'danger.bold.pressed': "inverse";
@@ -29,8 +29,8 @@ declare const _default: {
29
29
  *
30
30
  * The color map is used to map a background color token to a matching text color that will meet contrast.
31
31
  *
32
- * @codegen <<SignedSource::55412dc750db330e0a2a51918237e29f>>
32
+ * @codegen <<SignedSource::d168519874a16bbb92cfbfd4747a39b4>>
33
33
  * @codegenCommand yarn codegen-styles
34
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::db7a1282630a6e5b9424b807614086af>>
34
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::10aa7e87eca39e4d6594a764e78e0698>>
35
35
  */
36
36
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/ds-explorations",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "An experimental package for exploration and validation of spacing / typography foundations.",
5
5
  "license": "Apache-2.0",
6
6
  "atlassian": {
@@ -39,7 +39,7 @@
39
39
  "./inline": "./src/components/inline.partial.tsx"
40
40
  },
41
41
  "dependencies": {
42
- "@atlaskit/tokens": "^0.13.0",
42
+ "@atlaskit/tokens": "^1.0.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@emotion/react": "^11.7.1",
45
45
  "tiny-invariant": "^1.2.0"
package/report.api.md CHANGED
@@ -40,14 +40,14 @@ type BackgroundColor = keyof typeof backgroundColorMap;
40
40
  // @public (undocumented)
41
41
  const backgroundColorMap: {
42
42
  readonly disabled: SerializedStyles;
43
- readonly 'inverse.subtle': SerializedStyles;
44
43
  readonly input: SerializedStyles;
44
+ readonly 'inverse.subtle': SerializedStyles;
45
45
  readonly neutral: SerializedStyles;
46
46
  readonly 'neutral.subtle': SerializedStyles;
47
47
  readonly 'neutral.bold': SerializedStyles;
48
- readonly 'brand.bold': SerializedStyles;
49
48
  readonly selected: SerializedStyles;
50
49
  readonly 'selected.bold': SerializedStyles;
50
+ readonly 'brand.bold': SerializedStyles;
51
51
  readonly danger: SerializedStyles;
52
52
  readonly 'danger.bold': SerializedStyles;
53
53
  readonly warning: SerializedStyles;
@@ -62,21 +62,21 @@ const backgroundColorMap: {
62
62
  readonly 'color.blanket.selected': SerializedStyles;
63
63
  readonly 'color.blanket.danger': SerializedStyles;
64
64
  readonly 'elevation.surface': SerializedStyles;
65
- readonly 'elevation.surface.sunken': SerializedStyles;
66
- readonly 'elevation.surface.raised': SerializedStyles;
67
65
  readonly 'elevation.surface.overlay': SerializedStyles;
66
+ readonly 'elevation.surface.raised': SerializedStyles;
67
+ readonly 'elevation.surface.sunken': SerializedStyles;
68
68
  };
69
69
 
70
70
  // @public (undocumented)
71
71
  const backgroundHoverColorMap: {
72
- 'inverse.subtle': SerializedStyles;
73
72
  input: SerializedStyles;
73
+ 'inverse.subtle': SerializedStyles;
74
74
  neutral: SerializedStyles;
75
75
  'neutral.subtle': SerializedStyles;
76
76
  'neutral.bold': SerializedStyles;
77
- 'brand.bold': SerializedStyles;
78
77
  selected: SerializedStyles;
79
78
  'selected.bold': SerializedStyles;
79
+ 'brand.bold': SerializedStyles;
80
80
  danger: SerializedStyles;
81
81
  'danger.bold': SerializedStyles;
82
82
  warning: SerializedStyles;
@@ -88,8 +88,8 @@ const backgroundHoverColorMap: {
88
88
  information: SerializedStyles;
89
89
  'information.bold': SerializedStyles;
90
90
  'elevation.surface': SerializedStyles;
91
- 'elevation.surface.raised': SerializedStyles;
92
91
  'elevation.surface.overlay': SerializedStyles;
92
+ 'elevation.surface.raised': SerializedStyles;
93
93
  };
94
94
 
95
95
  // @public (undocumented)
@@ -104,18 +104,18 @@ type BorderColor = keyof typeof borderColorMap;
104
104
  // @public
105
105
  const borderColorMap: {
106
106
  readonly 'color.border': SerializedStyles;
107
- readonly bold: SerializedStyles;
108
- readonly inverse: SerializedStyles;
107
+ readonly disabled: SerializedStyles;
109
108
  readonly focused: SerializedStyles;
110
109
  readonly input: SerializedStyles;
111
- readonly disabled: SerializedStyles;
112
- readonly brand: SerializedStyles;
110
+ readonly inverse: SerializedStyles;
113
111
  readonly selected: SerializedStyles;
112
+ readonly brand: SerializedStyles;
114
113
  readonly danger: SerializedStyles;
115
114
  readonly warning: SerializedStyles;
116
115
  readonly success: SerializedStyles;
117
116
  readonly discovery: SerializedStyles;
118
117
  readonly information: SerializedStyles;
118
+ readonly bold: SerializedStyles;
119
119
  };
120
120
 
121
121
  // @public (undocumented)
@@ -509,11 +509,11 @@ type Shadow = keyof typeof shadowMap;
509
509
 
510
510
  // @public (undocumented)
511
511
  const shadowMap: {
512
- readonly raised: SerializedStyles;
513
512
  readonly overflow: SerializedStyles;
514
- readonly 'overflow.spread': SerializedStyles;
515
513
  readonly 'overflow.perimeter': SerializedStyles;
514
+ readonly 'overflow.spread': SerializedStyles;
516
515
  readonly overlay: SerializedStyles;
516
+ readonly raised: SerializedStyles;
517
517
  };
518
518
 
519
519
  // @public (undocumented)
@@ -532,18 +532,18 @@ type TextColor = keyof typeof textColorMap;
532
532
  // @public
533
533
  const textColorMap: {
534
534
  readonly 'color.text': SerializedStyles;
535
- readonly subtle: SerializedStyles;
536
- readonly subtlest: SerializedStyles;
537
535
  readonly disabled: SerializedStyles;
538
536
  readonly inverse: SerializedStyles;
539
- readonly brand: SerializedStyles;
540
537
  readonly selected: SerializedStyles;
538
+ readonly brand: SerializedStyles;
541
539
  readonly danger: SerializedStyles;
542
540
  readonly warning: SerializedStyles;
543
541
  readonly 'warning.inverse': SerializedStyles;
544
542
  readonly success: SerializedStyles;
545
543
  readonly discovery: SerializedStyles;
546
544
  readonly information: SerializedStyles;
545
+ readonly subtlest: SerializedStyles;
546
+ readonly subtle: SerializedStyles;
547
547
  };
548
548
 
549
549
  // @public (undocumented)