@atlaskit/ds-explorations 3.5.2 → 4.0.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/index.js +0 -7
  3. package/dist/es2019/index.js +0 -1
  4. package/dist/esm/index.js +0 -1
  5. package/dist/types/index.d.ts +0 -2
  6. package/dist/types-ts4.5/index.d.ts +0 -2
  7. package/examples/99-interactions.tsx +3 -6
  8. package/package.json +6 -8
  9. package/scripts/codegen-styles.tsx +3 -65
  10. package/src/components/__tests__/unit/interaction-suface.test.tsx +1 -2
  11. package/src/index.tsx +0 -2
  12. package/tsconfig.dev.json +0 -12
  13. package/dist/cjs/components/text.partial.js +0 -280
  14. package/dist/cjs/internal/spacing-scale.js +0 -15
  15. package/dist/es2019/components/text.partial.js +0 -271
  16. package/dist/es2019/internal/spacing-scale.js +0 -9
  17. package/dist/esm/components/text.partial.js +0 -274
  18. package/dist/esm/internal/spacing-scale.js +0 -9
  19. package/dist/types/components/text.partial.d.ts +0 -157
  20. package/dist/types/internal/spacing-scale.d.ts +0 -9
  21. package/dist/types-ts4.5/components/text.partial.d.ts +0 -162
  22. package/dist/types-ts4.5/internal/spacing-scale.d.ts +0 -24
  23. package/examples/02-text-advanced.tsx +0 -30
  24. package/examples/02-text.tsx +0 -110
  25. package/examples/06-section-message.tsx +0 -82
  26. package/examples/07-comment.tsx +0 -51
  27. package/examples/08-lozenge.tsx +0 -34
  28. package/scripts/spacing-codegen-template.tsx +0 -66
  29. package/scripts/spacing-scale-template.tsx +0 -24
  30. package/scripts/typography-codegen-template.tsx +0 -72
  31. package/src/components/__tests__/unit/text.test.tsx +0 -64
  32. package/src/components/__tests__/vr-tests/__snapshots__/text-snapshot-test/text--default.png +0 -0
  33. package/src/components/__tests__/vr-tests/text-snapshot-test.vr.tsx +0 -6
  34. package/src/components/text.partial.tsx +0 -375
  35. package/src/internal/spacing-scale.tsx +0 -24
  36. package/text/package.json +0 -15
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/ds-explorations
2
2
 
3
+ ## 4.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#101788](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/101788)
8
+ [`1c8f141e2bb6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1c8f141e2bb6) -
9
+ Removed Text component. Use `@atlaskit/primitives` instead.
10
+
3
11
  ## 3.5.2
4
12
 
5
13
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -10,11 +10,4 @@ Object.defineProperty(exports, "UNSAFE_InteractionSurface", {
10
10
  return _interactionSurface.default;
11
11
  }
12
12
  });
13
- Object.defineProperty(exports, "UNSAFE_Text", {
14
- enumerable: true,
15
- get: function get() {
16
- return _text.default;
17
- }
18
- });
19
- var _text = _interopRequireDefault(require("./components/text.partial"));
20
13
  var _interactionSurface = _interopRequireDefault(require("./components/interaction-surface.partial"));
@@ -1,2 +1 @@
1
- export { default as UNSAFE_Text } from './components/text.partial';
2
1
  export { default as UNSAFE_InteractionSurface } from './components/interaction-surface.partial';
package/dist/esm/index.js CHANGED
@@ -1,2 +1 @@
1
- export { default as UNSAFE_Text } from './components/text.partial';
2
1
  export { default as UNSAFE_InteractionSurface } from './components/interaction-surface.partial';
@@ -1,3 +1 @@
1
- export { default as UNSAFE_Text } from './components/text.partial';
2
1
  export { default as UNSAFE_InteractionSurface } from './components/interaction-surface.partial';
3
- export type { TextProps as UNSAFE_TextProps } from './components/text.partial';
@@ -1,3 +1 @@
1
- export { default as UNSAFE_Text } from './components/text.partial';
2
1
  export { default as UNSAFE_InteractionSurface } from './components/interaction-surface.partial';
3
- export type { TextProps as UNSAFE_TextProps } from './components/text.partial';
@@ -8,13 +8,12 @@ import { Code } from '@atlaskit/code';
8
8
  import FocusRing from '@atlaskit/focus-ring';
9
9
  import Heading from '@atlaskit/heading';
10
10
  import WarningIcon from '@atlaskit/icon/glyph/warning';
11
- import { Box, Inline, Stack, xcss } from '@atlaskit/primitives';
11
+ import { Box, Inline, Stack, Text, xcss } from '@atlaskit/primitives';
12
12
  import Textfield from '@atlaskit/textfield';
13
13
  import { token } from '@atlaskit/tokens';
14
14
 
15
15
  import {
16
16
  UNSAFE_InteractionSurface as InteractionSurface,
17
- UNSAFE_Text as Text,
18
17
  } from '../src';
19
18
 
20
19
  const fieldsetStyles = xcss({
@@ -74,10 +73,8 @@ export default () => {
74
73
  >
75
74
  <InteractionSurface>
76
75
  <Text
77
- textAlign="center"
78
- fontSize="size.100"
79
- lineHeight="lineHeight.500"
80
- fontWeight="medium"
76
+ align="center"
77
+ weight="medium"
81
78
  >
82
79
  {app}
83
80
  </Text>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atlaskit/ds-explorations",
3
- "version": "3.5.2",
4
- "description": "An experimental package for exploration and validation of spacing / typography foundations.",
3
+ "version": "4.0.0",
4
+ "description": "DEPRECATED. Use @atlaskit/primitives. An experimental package for exploration and validation of spacing / typography foundations.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
7
7
  },
@@ -26,10 +26,9 @@
26
26
  "prepare": "yarn ak-postbuild"
27
27
  },
28
28
  "dependencies": {
29
- "@atlaskit/tokens": "^1.47.0",
29
+ "@atlaskit/tokens": "^1.49.0",
30
30
  "@babel/runtime": "^7.0.0",
31
- "@emotion/react": "^11.7.1",
32
- "tiny-invariant": "^1.2.0"
31
+ "@emotion/react": "^11.7.1"
33
32
  },
34
33
  "peerDependencies": {
35
34
  "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
@@ -37,7 +36,7 @@
37
36
  "devDependencies": {
38
37
  "@af/formatting": "*",
39
38
  "@atlaskit/ds-lib": "*",
40
- "@atlaskit/primitives": "^6.1.0",
39
+ "@atlaskit/primitives": "^6.3.0",
41
40
  "@atlaskit/textfield": "^6.3.0",
42
41
  "@atlaskit/visual-regression": "*",
43
42
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
@@ -75,8 +74,7 @@
75
74
  }
76
75
  },
77
76
  "af:exports": {
78
- ".": "./src/index.tsx",
79
- "./text": "./src/components/text.partial.tsx"
77
+ ".": "./src/index.tsx"
80
78
  },
81
79
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
82
80
  "homepage": "https://atlaskit.atlassian.com"
@@ -7,21 +7,14 @@ import {
7
7
  createSignedArtifact,
8
8
  } from '@atlassian/codegen';
9
9
 
10
- import { createColorStylesFromTemplate } from './color-codegen-template';
11
10
  import { createColorMapTemplate } from './color-map-template';
12
11
  import { createInteractionStylesFromTemplate } from './interaction-codegen';
13
- import { createSpacingScaleTemplate } from './spacing-scale-template';
14
- import { createTypographyStylesFromTemplate } from './typography-codegen-template';
15
12
 
16
13
  const colorMapOutputFolder = join(__dirname, '../', 'src', 'internal');
17
14
  const colorTokensDependencyPath = require.resolve(
18
15
  '../../tokens/src/artifacts/tokens-raw/atlassian-light',
19
16
  );
20
17
 
21
- const typographyTokensDependencyPath = require.resolve(
22
- '../../tokens/src/artifacts/tokens-raw/atlassian-typography-adg3',
23
- );
24
-
25
18
  writeFile(
26
19
  join(colorMapOutputFolder, 'color-map.tsx'),
27
20
  createSignedArtifact(createColorMapTemplate(), 'yarn codegen-styles', {
@@ -32,67 +25,11 @@ writeFile(
32
25
  }),
33
26
  ).then(() => console.log(join(colorMapOutputFolder, 'color-map.tsx')));
34
27
 
35
- writeFile(
36
- join(__dirname, '../', 'src', 'internal', 'spacing-scale.tsx'),
37
- createSignedArtifact(
38
- createSpacingScaleTemplate(),
39
- 'yarn codegen-styles',
40
- 'Internal codegen of the spacing scale values. Only used for internal examples.',
41
- ),
42
- ).then(() => console.log('spacing-scale.tsx written!'));
43
-
44
28
  // generate colors
45
29
  Promise.all(
46
- [{ target: 'text.partial.tsx' }].map(({ target }) => {
30
+ [{ target: 'interaction-surface.partial.tsx' }].map(({ target }) => {
47
31
  const targetPath = join(__dirname, '../', 'src', 'components', target);
48
32
 
49
- const source = createPartialSignedArtifact(
50
- (options) => options.map(createColorStylesFromTemplate).join('\n'),
51
- 'yarn codegen-styles',
52
- {
53
- id: 'colors',
54
- absoluteFilePath: targetPath,
55
- dependencies: [colorTokensDependencyPath],
56
- },
57
- );
58
-
59
- return writeFile(targetPath, source).then(() =>
60
- console.log(`${targetPath} written!`),
61
- );
62
- }),
63
- )
64
- .then(() => {
65
- // generate typography values
66
- return Promise.all(
67
- [{ target: 'text.partial.tsx' }].map(({ target }) => {
68
- const targetPath = join(__dirname, '../', 'src', 'components', target);
69
-
70
- const source = createPartialSignedArtifact(
71
- (options) =>
72
- options.map(createTypographyStylesFromTemplate).join('\n'),
73
- 'yarn codegen-styles',
74
- {
75
- id: 'typography',
76
- absoluteFilePath: targetPath,
77
- dependencies: [typographyTokensDependencyPath],
78
- },
79
- );
80
-
81
- return writeFile(targetPath, source).then(() =>
82
- console.log(`${targetPath} written!`),
83
- );
84
- }),
85
- );
86
- })
87
- .then(() => {
88
- const targetPath = join(
89
- __dirname,
90
- '../',
91
- 'src',
92
- 'components',
93
- 'interaction-surface.partial.tsx',
94
- );
95
-
96
33
  const source = createPartialSignedArtifact(
97
34
  (options) => options.map(createInteractionStylesFromTemplate).join('\n'),
98
35
  'yarn codegen-styles',
@@ -106,4 +43,5 @@ Promise.all(
106
43
  return writeFile(targetPath, source).then(() =>
107
44
  console.log(`${targetPath} written!`),
108
45
  );
109
- });
46
+ }),
47
+ );
@@ -2,12 +2,11 @@ import React from 'react';
2
2
 
3
3
  import { act, fireEvent, render } from '@testing-library/react';
4
4
 
5
- import { Box } from '@atlaskit/primitives';
5
+ import { Box, Text } from '@atlaskit/primitives';
6
6
  import { token } from '@atlaskit/tokens';
7
7
 
8
8
  import {
9
9
  UNSAFE_InteractionSurface as InteractionSurface,
10
- UNSAFE_Text as Text,
11
10
  } from '../../../index';
12
11
 
13
12
  describe('InteractionSurface component', () => {
package/src/index.tsx CHANGED
@@ -1,3 +1 @@
1
- export { default as UNSAFE_Text } from './components/text.partial';
2
1
  export { default as UNSAFE_InteractionSurface } from './components/interaction-surface.partial';
3
- export type { TextProps as UNSAFE_TextProps } from './components/text.partial';
package/tsconfig.dev.json CHANGED
@@ -39,9 +39,6 @@
39
39
  {
40
40
  "path": "../../../build/formatting/tsconfig.app.json"
41
41
  },
42
- {
43
- "path": "../../../build/test-tooling/gemini-visual-regression/tsconfig.app.json"
44
- },
45
42
  {
46
43
  "path": "../button/tsconfig.app.json"
47
44
  },
@@ -51,9 +48,6 @@
51
48
  {
52
49
  "path": "../../../build/website/docs/tsconfig.app.json"
53
50
  },
54
- {
55
- "path": "../ds-lib/tsconfig.app.json"
56
- },
57
51
  {
58
52
  "path": "../focus-ring/tsconfig.app.json"
59
53
  },
@@ -63,15 +57,9 @@
63
57
  {
64
58
  "path": "../icon/tsconfig.app.json"
65
59
  },
66
- {
67
- "path": "../lozenge/tsconfig.app.json"
68
- },
69
60
  {
70
61
  "path": "../primitives/tsconfig.app.json"
71
62
  },
72
- {
73
- "path": "../section-message/tsconfig.app.json"
74
- },
75
63
  {
76
64
  "path": "../textfield/tsconfig.app.json"
77
65
  },
@@ -1,280 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
9
- var _react = require("react");
10
- var _react2 = require("@emotion/react");
11
- var _tinyInvariant = _interopRequireDefault(require("tiny-invariant"));
12
- var _colorMap = _interopRequireDefault(require("../internal/color-map"));
13
- var _surfaceProvider = require("./surface-provider");
14
- var _excluded = ["children"];
15
- /** @jsx jsx */
16
- var asAllowlist = ['span', 'div', 'p', 'strong'];
17
- var textAlignMap = {
18
- center: (0, _react2.css)({
19
- textAlign: 'center'
20
- }),
21
- end: (0, _react2.css)({
22
- textAlign: 'end'
23
- }),
24
- start: (0, _react2.css)({
25
- textAlign: 'start'
26
- })
27
- };
28
- var textTransformMap = {
29
- none: (0, _react2.css)({
30
- textTransform: 'none'
31
- }),
32
- lowercase: (0, _react2.css)({
33
- textTransform: 'lowercase'
34
- }),
35
- uppercase: (0, _react2.css)({
36
- textTransform: 'uppercase'
37
- })
38
- };
39
- var verticalAlignMap = {
40
- top: (0, _react2.css)({
41
- verticalAlign: 'top'
42
- }),
43
- middle: (0, _react2.css)({
44
- verticalAlign: 'middle'
45
- }),
46
- bottom: (0, _react2.css)({
47
- verticalAlign: 'bottom'
48
- })
49
- };
50
- var baseStyles = (0, _react2.css)({
51
- boxSizing: 'border-box',
52
- margin: "var(--ds-space-0, 0px)",
53
- padding: "var(--ds-space-0, 0px)"
54
- });
55
- var truncateStyles = (0, _react2.css)({
56
- overflow: 'hidden',
57
- textOverflow: 'ellipsis',
58
- whiteSpace: 'nowrap'
59
- });
60
-
61
- /**
62
- * 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.
63
- */
64
- var useColor = function useColor(colorProp) {
65
- var surface = (0, _surfaceProvider.useSurface)();
66
- var inverseTextColor = _colorMap.default[surface];
67
-
68
- /**
69
- * Where the color of the surface is inverted we override the user choice
70
- * as there is no valid choice that is not covered by the override.
71
- */
72
- var color = inverseTextColor !== null && inverseTextColor !== void 0 ? inverseTextColor : colorProp;
73
- return color;
74
- };
75
- var HasTextAncestorContext = /*#__PURE__*/(0, _react.createContext)(false);
76
- var useHasTextAncestor = function useHasTextAncestor() {
77
- return (0, _react.useContext)(HasTextAncestorContext);
78
- };
79
-
80
- /**
81
- * __Text__
82
- *
83
- * Text is a primitive component that has the Atlassian Design System's design guidelines baked in.
84
- * This includes considerations for text attributes such as color, font size, font weight, and line height.
85
- * It renders a `span` by default.
86
- *
87
- * @internal
88
- */
89
- var Text = function Text(_ref) {
90
- var children = _ref.children,
91
- props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
92
- var _props$as = props.as,
93
- Component = _props$as === void 0 ? 'span' : _props$as,
94
- colorProp = props.color,
95
- fontSize = props.fontSize,
96
- fontWeight = props.fontWeight,
97
- lineHeight = props.lineHeight,
98
- _props$shouldTruncate = props.shouldTruncate,
99
- shouldTruncate = _props$shouldTruncate === void 0 ? false : _props$shouldTruncate,
100
- textAlign = props.textAlign,
101
- textTransform = props.textTransform,
102
- verticalAlign = props.verticalAlign,
103
- testId = props.testId,
104
- UNSAFE_style = props.UNSAFE_style,
105
- id = props.id;
106
- (0, _tinyInvariant.default)(asAllowlist.includes(Component), "@atlaskit/ds-explorations: Text received an invalid \"as\" value of \"".concat(Component, "\""));
107
- var color = useColor(colorProp);
108
- var isWrapped = useHasTextAncestor();
109
-
110
- /**
111
- * If the text is already wrapped and applies no props we can just
112
- * render the children directly as a fragment.
113
- */
114
- if (isWrapped && Object.keys(props).length === 0) {
115
- return (0, _react2.jsx)(_react.Fragment, null, children);
116
- }
117
- var component = (0, _react2.jsx)(Component, {
118
- style: UNSAFE_style,
119
- 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]],
120
- "data-testid": testId,
121
- id: id
122
- }, children);
123
- return isWrapped ?
124
- // no need to re-apply context if the text is already wrapped
125
- component : (0, _react2.jsx)(HasTextAncestorContext.Provider, {
126
- value: true
127
- }, component);
128
- };
129
- var _default = exports.default = Text;
130
- /**
131
- * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
132
- * @codegen <<SignedSource::c5a6cec604462dc4b48aaf1160b83e59>>
133
- * @codegenId typography
134
- * @codegenCommand yarn codegen-styles
135
- * @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
136
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography-adg3.tsx <<SignedSource::bf3349cf2247aa44fbac47c953fc03b5>>
137
- */
138
- var fontSizeMap = {
139
- 'size.050': (0, _react2.css)({
140
- fontSize: "var(--ds-font-size-050, 11px)"
141
- }),
142
- 'size.075': (0, _react2.css)({
143
- fontSize: "var(--ds-font-size-075, 12px)"
144
- }),
145
- 'size.100': (0, _react2.css)({
146
- fontSize: "var(--ds-font-size-100, 14px)"
147
- }),
148
- 'size.200': (0, _react2.css)({
149
- fontSize: "var(--ds-font-size-200, 16px)"
150
- }),
151
- 'size.300': (0, _react2.css)({
152
- fontSize: "var(--ds-font-size-300, 20px)"
153
- }),
154
- 'size.400': (0, _react2.css)({
155
- fontSize: "var(--ds-font-size-400, 24px)"
156
- }),
157
- 'size.500': (0, _react2.css)({
158
- fontSize: "var(--ds-font-size-500, 29px)"
159
- }),
160
- 'size.600': (0, _react2.css)({
161
- fontSize: "var(--ds-font-size-600, 35px)"
162
- })
163
- };
164
- var fontWeightMap = {
165
- bold: (0, _react2.css)({
166
- fontWeight: "var(--ds-font-weight-bold, 700)"
167
- }),
168
- medium: (0, _react2.css)({
169
- fontWeight: "var(--ds-font-weight-medium, 500)"
170
- }),
171
- regular: (0, _react2.css)({
172
- fontWeight: "var(--ds-font-weight-regular, 400)"
173
- }),
174
- semibold: (0, _react2.css)({
175
- fontWeight: "var(--ds-font-weight-semibold, 600)"
176
- })
177
- };
178
- var fontFamilyMap = {
179
- body: (0, _react2.css)({
180
- fontFamily: "var(--ds-font-family-body, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
181
- }),
182
- 'brand.body': (0, _react2.css)({
183
- fontFamily: "var(--ds-font-family-brand-body, \"Charlie Text\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
184
- }),
185
- 'brand.heading': (0, _react2.css)({
186
- fontFamily: "var(--ds-font-family-brand-heading, \"Charlie Display\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
187
- }),
188
- code: (0, _react2.css)({
189
- fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
190
- }),
191
- heading: (0, _react2.css)({
192
- fontFamily: "var(--ds-font-family-heading, ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
193
- }),
194
- monospace: (0, _react2.css)({
195
- fontFamily: "var(--ds-font-family-monospace, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
196
- }),
197
- sans: (0, _react2.css)({
198
- fontFamily: "var(--ds-font-family-sans, -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif)"
199
- })
200
- };
201
- var lineHeightMap = {
202
- 'lineHeight.1': (0, _react2.css)({
203
- lineHeight: "var(--ds-font-lineHeight-1, 1)"
204
- }),
205
- 'lineHeight.100': (0, _react2.css)({
206
- lineHeight: "var(--ds-font-lineHeight-100, 16px)"
207
- }),
208
- 'lineHeight.200': (0, _react2.css)({
209
- lineHeight: "var(--ds-font-lineHeight-200, 20px)"
210
- }),
211
- 'lineHeight.300': (0, _react2.css)({
212
- lineHeight: "var(--ds-font-lineHeight-300, 24px)"
213
- }),
214
- 'lineHeight.400': (0, _react2.css)({
215
- lineHeight: "var(--ds-font-lineHeight-400, 28px)"
216
- }),
217
- 'lineHeight.500': (0, _react2.css)({
218
- lineHeight: "var(--ds-font-lineHeight-500, 32px)"
219
- }),
220
- 'lineHeight.600': (0, _react2.css)({
221
- lineHeight: "var(--ds-font-lineHeight-600, 40px)"
222
- })
223
- };
224
- /**
225
- * @codegenEnd
226
- */
227
-
228
- /**
229
- * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
230
- * @codegen <<SignedSource::db9171c09481d187d83bb01192c16c41>>
231
- * @codegenId colors
232
- * @codegenCommand yarn codegen-styles
233
- * @codegenParams ["text"]
234
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f27d1519d51cc4a85383a00907847774>>
235
- */
236
- var textColorMap = {
237
- 'color.text': (0, _react2.css)({
238
- color: "var(--ds-text, #172B4D)"
239
- }),
240
- disabled: (0, _react2.css)({
241
- color: "var(--ds-text-disabled, #A5ADBA)"
242
- }),
243
- inverse: (0, _react2.css)({
244
- color: "var(--ds-text-inverse, #FFFFFF)"
245
- }),
246
- selected: (0, _react2.css)({
247
- color: "var(--ds-text-selected, #0052CC)"
248
- }),
249
- brand: (0, _react2.css)({
250
- color: "var(--ds-text-brand, #0065FF)"
251
- }),
252
- danger: (0, _react2.css)({
253
- color: "var(--ds-text-danger, #DE350B)"
254
- }),
255
- warning: (0, _react2.css)({
256
- color: "var(--ds-text-warning, #974F0C)"
257
- }),
258
- 'warning.inverse': (0, _react2.css)({
259
- color: "var(--ds-text-warning-inverse, #172B4D)"
260
- }),
261
- success: (0, _react2.css)({
262
- color: "var(--ds-text-success, #006644)"
263
- }),
264
- discovery: (0, _react2.css)({
265
- color: "var(--ds-text-discovery, #403294)"
266
- }),
267
- information: (0, _react2.css)({
268
- color: "var(--ds-text-information, #0052CC)"
269
- }),
270
- subtlest: (0, _react2.css)({
271
- color: "var(--ds-text-subtlest, #7A869A)"
272
- }),
273
- subtle: (0, _react2.css)({
274
- color: "var(--ds-text-subtle, #42526E)"
275
- })
276
- };
277
-
278
- /**
279
- * @codegenEnd
280
- */
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.spacingScale = void 0;
7
- /**
8
- * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
9
- *
10
- * Internal codegen of the spacing scale values. Only used for internal examples.
11
- *
12
- * @codegen <<SignedSource::33634cd9767c59b9aaaf64fc6f44f852>>
13
- * @codegenCommand yarn codegen-styles
14
- */
15
- var spacingScale = exports.spacingScale = ['space.0', 'space.025', 'space.050', 'space.075', 'space.100', 'space.150', 'space.200', 'space.250', 'space.300', 'space.400', 'space.500', 'space.600', 'space.800', 'space.1000'];