@atlaskit/ds-explorations 2.2.8 → 2.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/ds-explorations
2
2
 
3
+ ## 2.2.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`b11339bc8a3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b11339bc8a3) - Internal updates for ADS Typography ADG3 theme.
8
+ - Updated dependencies
9
+
10
+ ## 2.2.9
11
+
12
+ ### Patch Changes
13
+
14
+ - [`56b444b56a8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56b444b56a8) - Fix a bug where text descenders were cut off at high zoom levels on Windows
15
+
3
16
  ## 2.2.8
4
17
 
5
18
  ### Patch Changes
@@ -14,7 +14,7 @@ var baseStyles = (0, _react2.css)({
14
14
  inset: 0,
15
15
  borderRadius: 'inherit',
16
16
  cursor: 'pointer',
17
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
17
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
18
18
  '~ *': {
19
19
  position: 'relative',
20
20
  pointerEvents: 'none'
@@ -53,9 +53,15 @@ var baseStyles = (0, _react2.css)({
53
53
  padding: "var(--ds-space-0, 0px)"
54
54
  });
55
55
  var truncateStyles = (0, _react2.css)({
56
- overflow: 'hidden',
57
56
  textOverflow: 'ellipsis',
58
- whiteSpace: 'nowrap'
57
+ whiteSpace: 'nowrap',
58
+ // Use "clip" overflow to allow ellipses on x-axis without clipping descenders
59
+ '@supports not (overflow-x: clip)': {
60
+ overflow: 'hidden'
61
+ },
62
+ '@supports (overflow-x: clip)': {
63
+ overflowX: 'clip'
64
+ }
59
65
  });
60
66
 
61
67
  /**
@@ -129,11 +135,11 @@ var Text = function Text(_ref) {
129
135
  var _default = Text;
130
136
  /**
131
137
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
132
- * @codegen <<SignedSource::9f746e797b8b5262d58b40dfecb39e6d>>
138
+ * @codegen <<SignedSource::271f64d0bee32f98e5b7a72e76e774a0>>
133
139
  * @codegenId typography
134
140
  * @codegenCommand yarn codegen-styles
135
141
  * @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
136
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::e6bf70c53b8eecdb84ae4c79966537e3>>
142
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::8b6245d4bfc5527a3c9b33af544e04b1>>
137
143
  */
138
144
  exports.default = _default;
139
145
  var fontSizeMap = {
@@ -177,14 +183,26 @@ var fontWeightMap = {
177
183
  })
178
184
  };
179
185
  var fontFamilyMap = {
186
+ brand: (0, _react2.css)({
187
+ fontFamily: "var(--ds-font-family-brand, Charlie Sans)"
188
+ }),
189
+ code: (0, _react2.css)({
190
+ fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
191
+ }),
180
192
  monospace: (0, _react2.css)({
181
- fontFamily: "var(--ds-font-family-monospace, \"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace)"
193
+ fontFamily: "var(--ds-font-family-monospace, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
194
+ }),
195
+ product: (0, _react2.css)({
196
+ fontFamily: "var(--ds-font-family-product, ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif)"
182
197
  }),
183
198
  sans: (0, _react2.css)({
184
199
  fontFamily: "var(--ds-font-family-sans, -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif)"
185
200
  })
186
201
  };
187
202
  var lineHeightMap = {
203
+ 'lineHeight.1': (0, _react2.css)({
204
+ lineHeight: "var(--ds-font-lineHeight-1, 1)"
205
+ }),
188
206
  'lineHeight.100': (0, _react2.css)({
189
207
  lineHeight: "var(--ds-font-lineHeight-100, 16px)"
190
208
  }),
@@ -7,7 +7,7 @@ const baseStyles = css({
7
7
  inset: 0,
8
8
  borderRadius: 'inherit',
9
9
  cursor: 'pointer',
10
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
10
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
11
11
  '~ *': {
12
12
  position: 'relative',
13
13
  pointerEvents: 'none'
@@ -44,9 +44,15 @@ const baseStyles = css({
44
44
  padding: "var(--ds-space-0, 0px)"
45
45
  });
46
46
  const truncateStyles = css({
47
- overflow: 'hidden',
48
47
  textOverflow: 'ellipsis',
49
- whiteSpace: 'nowrap'
48
+ whiteSpace: 'nowrap',
49
+ // Use "clip" overflow to allow ellipses on x-axis without clipping descenders
50
+ '@supports not (overflow-x: clip)': {
51
+ overflow: 'hidden'
52
+ },
53
+ '@supports (overflow-x: clip)': {
54
+ overflowX: 'clip'
55
+ }
50
56
  });
51
57
 
52
58
  /**
@@ -120,11 +126,11 @@ export default Text;
120
126
 
121
127
  /**
122
128
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
123
- * @codegen <<SignedSource::9f746e797b8b5262d58b40dfecb39e6d>>
129
+ * @codegen <<SignedSource::271f64d0bee32f98e5b7a72e76e774a0>>
124
130
  * @codegenId typography
125
131
  * @codegenCommand yarn codegen-styles
126
132
  * @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
127
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::e6bf70c53b8eecdb84ae4c79966537e3>>
133
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::8b6245d4bfc5527a3c9b33af544e04b1>>
128
134
  */
129
135
  const fontSizeMap = {
130
136
  'size.050': css({
@@ -167,14 +173,26 @@ const fontWeightMap = {
167
173
  })
168
174
  };
169
175
  const fontFamilyMap = {
176
+ brand: css({
177
+ fontFamily: "var(--ds-font-family-brand, Charlie Sans)"
178
+ }),
179
+ code: css({
180
+ fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
181
+ }),
170
182
  monospace: css({
171
- fontFamily: "var(--ds-font-family-monospace, \"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace)"
183
+ fontFamily: "var(--ds-font-family-monospace, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
184
+ }),
185
+ product: css({
186
+ fontFamily: "var(--ds-font-family-product, ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif)"
172
187
  }),
173
188
  sans: css({
174
189
  fontFamily: "var(--ds-font-family-sans, -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif)"
175
190
  })
176
191
  };
177
192
  const lineHeightMap = {
193
+ 'lineHeight.1': css({
194
+ lineHeight: "var(--ds-font-lineHeight-1, 1)"
195
+ }),
178
196
  'lineHeight.100': css({
179
197
  lineHeight: "var(--ds-font-lineHeight-100, 16px)"
180
198
  }),
@@ -7,7 +7,7 @@ var baseStyles = css({
7
7
  inset: 0,
8
8
  borderRadius: 'inherit',
9
9
  cursor: 'pointer',
10
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
10
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
11
11
  '~ *': {
12
12
  position: 'relative',
13
13
  pointerEvents: 'none'
@@ -46,9 +46,15 @@ var baseStyles = css({
46
46
  padding: "var(--ds-space-0, 0px)"
47
47
  });
48
48
  var truncateStyles = css({
49
- overflow: 'hidden',
50
49
  textOverflow: 'ellipsis',
51
- whiteSpace: 'nowrap'
50
+ whiteSpace: 'nowrap',
51
+ // Use "clip" overflow to allow ellipses on x-axis without clipping descenders
52
+ '@supports not (overflow-x: clip)': {
53
+ overflow: 'hidden'
54
+ },
55
+ '@supports (overflow-x: clip)': {
56
+ overflowX: 'clip'
57
+ }
52
58
  });
53
59
 
54
60
  /**
@@ -123,11 +129,11 @@ export default Text;
123
129
 
124
130
  /**
125
131
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
126
- * @codegen <<SignedSource::9f746e797b8b5262d58b40dfecb39e6d>>
132
+ * @codegen <<SignedSource::271f64d0bee32f98e5b7a72e76e774a0>>
127
133
  * @codegenId typography
128
134
  * @codegenCommand yarn codegen-styles
129
135
  * @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
130
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::e6bf70c53b8eecdb84ae4c79966537e3>>
136
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::8b6245d4bfc5527a3c9b33af544e04b1>>
131
137
  */
132
138
  var fontSizeMap = {
133
139
  'size.050': css({
@@ -170,14 +176,26 @@ var fontWeightMap = {
170
176
  })
171
177
  };
172
178
  var fontFamilyMap = {
179
+ brand: css({
180
+ fontFamily: "var(--ds-font-family-brand, Charlie Sans)"
181
+ }),
182
+ code: css({
183
+ fontFamily: "var(--ds-font-family-code, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
184
+ }),
173
185
  monospace: css({
174
- fontFamily: "var(--ds-font-family-monospace, \"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace)"
186
+ fontFamily: "var(--ds-font-family-monospace, ui-monospace, Menlo, \"Segoe UI Mono\", \"Ubuntu Mono\", monospace)"
187
+ }),
188
+ product: css({
189
+ fontFamily: "var(--ds-font-family-product, ui-sans-serif, \"Segoe UI\", system-ui, Ubuntu, \"Helvetica Neue\", sans-serif)"
175
190
  }),
176
191
  sans: css({
177
192
  fontFamily: "var(--ds-font-family-sans, -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif)"
178
193
  })
179
194
  };
180
195
  var lineHeightMap = {
196
+ 'lineHeight.1': css({
197
+ lineHeight: "var(--ds-font-lineHeight-1, 1)"
198
+ }),
181
199
  'lineHeight.100': css({
182
200
  lineHeight: "var(--ds-font-lineHeight-100, 16px)"
183
201
  }),
@@ -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::9f746e797b8b5262d58b40dfecb39e6d>>
84
+ * @codegen <<SignedSource::271f64d0bee32f98e5b7a72e76e774a0>>
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::e6bf70c53b8eecdb84ae4c79966537e3>>
88
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::8b6245d4bfc5527a3c9b33af544e04b1>>
89
89
  */
90
90
  declare const fontSizeMap: {
91
91
  'size.050': import("@emotion/react").SerializedStyles;
@@ -106,11 +106,15 @@ declare const fontWeightMap: {
106
106
  };
107
107
  export type FontWeight = keyof typeof fontWeightMap;
108
108
  declare const fontFamilyMap: {
109
+ brand: import("@emotion/react").SerializedStyles;
110
+ code: import("@emotion/react").SerializedStyles;
109
111
  monospace: import("@emotion/react").SerializedStyles;
112
+ product: import("@emotion/react").SerializedStyles;
110
113
  sans: import("@emotion/react").SerializedStyles;
111
114
  };
112
115
  export type FontFamily = keyof typeof fontFamilyMap;
113
116
  declare const lineHeightMap: {
117
+ 'lineHeight.1': import("@emotion/react").SerializedStyles;
114
118
  'lineHeight.100': import("@emotion/react").SerializedStyles;
115
119
  'lineHeight.200': import("@emotion/react").SerializedStyles;
116
120
  'lineHeight.300': import("@emotion/react").SerializedStyles;
@@ -86,11 +86,11 @@ declare const Text: FC<TextProps>;
86
86
  export default Text;
87
87
  /**
88
88
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
89
- * @codegen <<SignedSource::9f746e797b8b5262d58b40dfecb39e6d>>
89
+ * @codegen <<SignedSource::271f64d0bee32f98e5b7a72e76e774a0>>
90
90
  * @codegenId typography
91
91
  * @codegenCommand yarn codegen-styles
92
92
  * @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
93
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::e6bf70c53b8eecdb84ae4c79966537e3>>
93
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::8b6245d4bfc5527a3c9b33af544e04b1>>
94
94
  */
95
95
  declare const fontSizeMap: {
96
96
  'size.050': import("@emotion/react").SerializedStyles;
@@ -111,11 +111,15 @@ declare const fontWeightMap: {
111
111
  };
112
112
  export type FontWeight = keyof typeof fontWeightMap;
113
113
  declare const fontFamilyMap: {
114
+ brand: import("@emotion/react").SerializedStyles;
115
+ code: import("@emotion/react").SerializedStyles;
114
116
  monospace: import("@emotion/react").SerializedStyles;
117
+ product: import("@emotion/react").SerializedStyles;
115
118
  sans: import("@emotion/react").SerializedStyles;
116
119
  };
117
120
  export type FontFamily = keyof typeof fontFamilyMap;
118
121
  declare const lineHeightMap: {
122
+ 'lineHeight.1': import("@emotion/react").SerializedStyles;
119
123
  'lineHeight.100': import("@emotion/react").SerializedStyles;
120
124
  'lineHeight.200': import("@emotion/react").SerializedStyles;
121
125
  'lineHeight.300': import("@emotion/react").SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/ds-explorations",
3
- "version": "2.2.8",
3
+ "version": "2.2.10",
4
4
  "description": "An experimental package for exploration and validation of spacing / typography foundations.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -25,7 +25,7 @@
25
25
  "prepare": "yarn ak-postbuild"
26
26
  },
27
27
  "dependencies": {
28
- "@atlaskit/tokens": "^1.13.0",
28
+ "@atlaskit/tokens": "^1.15.0",
29
29
  "@babel/runtime": "^7.0.0",
30
30
  "@emotion/react": "^11.7.1",
31
31
  "tiny-invariant": "^1.2.0"
package/report.api.md CHANGED
@@ -396,6 +396,7 @@ type LineHeight = keyof typeof lineHeightMap;
396
396
 
397
397
  // @public (undocumented)
398
398
  const lineHeightMap: {
399
+ 'lineHeight.1': SerializedStyles;
399
400
  'lineHeight.100': SerializedStyles;
400
401
  'lineHeight.200': SerializedStyles;
401
402
  'lineHeight.300': SerializedStyles;
@@ -33,6 +33,7 @@ const typographyProperties = {
33
33
  },
34
34
  } as const;
35
35
 
36
+ // @ts-expect-error
36
37
  const activeTokens: Token[] = tokens.map((t) => ({
37
38
  name: t.name,
38
39
  fallback: t.value,
@@ -13,7 +13,7 @@ const baseStyles = css({
13
13
  inset: 0,
14
14
  borderRadius: 'inherit',
15
15
  cursor: 'pointer',
16
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
16
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
17
17
  '~ *': {
18
18
  position: 'relative',
19
19
  pointerEvents: 'none',
@@ -89,9 +89,15 @@ const baseStyles = css({
89
89
  });
90
90
 
91
91
  const truncateStyles = css({
92
- overflow: 'hidden',
93
92
  textOverflow: 'ellipsis',
94
93
  whiteSpace: 'nowrap',
94
+ // Use "clip" overflow to allow ellipses on x-axis without clipping descenders
95
+ '@supports not (overflow-x: clip)': {
96
+ overflow: 'hidden',
97
+ },
98
+ '@supports (overflow-x: clip)': {
99
+ overflowX: 'clip',
100
+ },
95
101
  });
96
102
 
97
103
  /**
@@ -189,11 +195,11 @@ export default Text;
189
195
 
190
196
  /**
191
197
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
192
- * @codegen <<SignedSource::9f746e797b8b5262d58b40dfecb39e6d>>
198
+ * @codegen <<SignedSource::271f64d0bee32f98e5b7a72e76e774a0>>
193
199
  * @codegenId typography
194
200
  * @codegenCommand yarn codegen-styles
195
201
  * @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
196
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::e6bf70c53b8eecdb84ae4c79966537e3>>
202
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::8b6245d4bfc5527a3c9b33af544e04b1>>
197
203
  */
198
204
  const fontSizeMap = {
199
205
  'size.050': css({
@@ -242,10 +248,25 @@ const fontWeightMap = {
242
248
  export type FontWeight = keyof typeof fontWeightMap;
243
249
 
244
250
  const fontFamilyMap = {
251
+ brand: css({
252
+ fontFamily: token('font.family.brand', 'Charlie Sans'),
253
+ }),
254
+ code: css({
255
+ fontFamily: token(
256
+ 'font.family.code',
257
+ 'ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace',
258
+ ),
259
+ }),
245
260
  monospace: css({
246
261
  fontFamily: token(
247
262
  'font.family.monospace',
248
- '"SFMono-Medium", "SF Mono", "Segoe UI Mono", "Roboto Mono", "Ubuntu Mono", Menlo, Consolas, Courier, monospace',
263
+ 'ui-monospace, Menlo, "Segoe UI Mono", "Ubuntu Mono", monospace',
264
+ ),
265
+ }),
266
+ product: css({
267
+ fontFamily: token(
268
+ 'font.family.product',
269
+ 'ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif',
249
270
  ),
250
271
  }),
251
272
  sans: css({
@@ -259,6 +280,9 @@ const fontFamilyMap = {
259
280
  export type FontFamily = keyof typeof fontFamilyMap;
260
281
 
261
282
  const lineHeightMap = {
283
+ 'lineHeight.1': css({
284
+ lineHeight: token('font.lineHeight.1', '1'),
285
+ }),
262
286
  'lineHeight.100': css({
263
287
  lineHeight: token('font.lineHeight.100', '16px'),
264
288
  }),
@@ -0,0 +1,627 @@
1
+ ## API Report File for "@atlaskit/ds-explorations"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import { ComponentPropsWithoutRef } from 'react';
8
+ import { ComponentPropsWithRef } from 'react';
9
+ import type { CSSProperties } from 'react';
10
+ import { ElementType } from 'react';
11
+ import { FC } from 'react';
12
+ import { ForwardRefExoticComponent } from 'react';
13
+ import { jsx } from '@emotion/react';
14
+ import { MemoExoticComponent } from 'react';
15
+ import { ReactElement } from 'react';
16
+ import { ReactNode } from 'react';
17
+ import { RefAttributes } from 'react';
18
+ import { SerializedStyles } from '@emotion/react';
19
+
20
+ // @public (undocumented)
21
+ const asAllowlist: readonly ["span", "div", "p", "strong"];
22
+
23
+ // @public (undocumented)
24
+ type AsElement = (typeof asAllowlist)[number];
25
+
26
+ // @public (undocumented)
27
+ type BackgroundColor = keyof typeof backgroundColorMap;
28
+
29
+ // @public (undocumented)
30
+ const backgroundColorMap: {
31
+ readonly disabled: SerializedStyles;
32
+ readonly input: SerializedStyles;
33
+ readonly 'inverse.subtle': SerializedStyles;
34
+ readonly neutral: SerializedStyles;
35
+ readonly 'neutral.subtle': SerializedStyles;
36
+ readonly 'neutral.bold': SerializedStyles;
37
+ readonly selected: SerializedStyles;
38
+ readonly 'selected.bold': SerializedStyles;
39
+ readonly 'brand.subtlest': SerializedStyles;
40
+ readonly 'brand.bold': SerializedStyles;
41
+ readonly 'brand.boldest': SerializedStyles;
42
+ readonly danger: SerializedStyles;
43
+ readonly 'danger.bold': SerializedStyles;
44
+ readonly warning: SerializedStyles;
45
+ readonly 'warning.bold': SerializedStyles;
46
+ readonly success: SerializedStyles;
47
+ readonly 'success.bold': SerializedStyles;
48
+ readonly discovery: SerializedStyles;
49
+ readonly 'discovery.bold': SerializedStyles;
50
+ readonly information: SerializedStyles;
51
+ readonly 'information.bold': SerializedStyles;
52
+ readonly 'color.blanket': SerializedStyles;
53
+ readonly 'color.blanket.selected': SerializedStyles;
54
+ readonly 'color.blanket.danger': SerializedStyles;
55
+ readonly 'elevation.surface': SerializedStyles;
56
+ readonly 'elevation.surface.overlay': SerializedStyles;
57
+ readonly 'elevation.surface.raised': SerializedStyles;
58
+ readonly 'elevation.surface.sunken': SerializedStyles;
59
+ };
60
+
61
+ // @public (undocumented)
62
+ const backgroundHoverColorMap: {
63
+ input: SerializedStyles;
64
+ 'inverse.subtle': SerializedStyles;
65
+ neutral: SerializedStyles;
66
+ 'neutral.subtle': SerializedStyles;
67
+ 'neutral.bold': SerializedStyles;
68
+ selected: SerializedStyles;
69
+ 'selected.bold': SerializedStyles;
70
+ 'brand.subtlest': SerializedStyles;
71
+ 'brand.bold': SerializedStyles;
72
+ 'brand.boldest': SerializedStyles;
73
+ danger: SerializedStyles;
74
+ 'danger.bold': SerializedStyles;
75
+ warning: SerializedStyles;
76
+ 'warning.bold': SerializedStyles;
77
+ success: SerializedStyles;
78
+ 'success.bold': SerializedStyles;
79
+ discovery: SerializedStyles;
80
+ 'discovery.bold': SerializedStyles;
81
+ information: SerializedStyles;
82
+ 'information.bold': SerializedStyles;
83
+ 'elevation.surface': SerializedStyles;
84
+ 'elevation.surface.overlay': SerializedStyles;
85
+ 'elevation.surface.raised': SerializedStyles;
86
+ };
87
+
88
+ // @public (undocumented)
89
+ interface BasePrimitiveProps {
90
+ testId?: string;
91
+ UNSAFE_style?: CSSProperties;
92
+ }
93
+
94
+ // @public (undocumented)
95
+ type BorderColor = keyof typeof borderColorMap;
96
+
97
+ // @public
98
+ const borderColorMap: {
99
+ readonly 'color.border': SerializedStyles;
100
+ readonly disabled: SerializedStyles;
101
+ readonly focused: SerializedStyles;
102
+ readonly input: SerializedStyles;
103
+ readonly inverse: SerializedStyles;
104
+ readonly selected: SerializedStyles;
105
+ readonly brand: SerializedStyles;
106
+ readonly danger: SerializedStyles;
107
+ readonly warning: SerializedStyles;
108
+ readonly success: SerializedStyles;
109
+ readonly discovery: SerializedStyles;
110
+ readonly information: SerializedStyles;
111
+ readonly bold: SerializedStyles;
112
+ };
113
+
114
+ // @public (undocumented)
115
+ type BorderRadius = keyof typeof borderRadiusMap;
116
+
117
+ // @public (undocumented)
118
+ const borderRadiusMap: {
119
+ normal: SerializedStyles;
120
+ rounded: SerializedStyles;
121
+ badge: SerializedStyles;
122
+ };
123
+
124
+ // @public (undocumented)
125
+ type BorderStyle = keyof typeof borderStyleMap;
126
+
127
+ // @public (undocumented)
128
+ const borderStyleMap: {
129
+ none: SerializedStyles;
130
+ solid: SerializedStyles;
131
+ dashed: SerializedStyles;
132
+ dotted: SerializedStyles;
133
+ };
134
+
135
+ // @public (undocumented)
136
+ type BorderWidth = keyof typeof borderWidthMap;
137
+
138
+ // @public (undocumented)
139
+ const borderWidthMap: {
140
+ '0px': SerializedStyles;
141
+ '1px': SerializedStyles;
142
+ '2px': SerializedStyles;
143
+ '3px': SerializedStyles;
144
+ };
145
+
146
+ // @public (undocumented)
147
+ type BoxComponent<T extends ElementType = 'div'> = (<T extends ElementType = 'div'>(props: UNSAFE_BoxProps<T>) => ReactElement | null) & FC<UNSAFE_BoxProps<T>>;
148
+
149
+ // @public (undocumented)
150
+ type BoxPropsBase<T extends ElementType> = {
151
+ as?: T;
152
+ children?: ReactNode;
153
+ className?: string;
154
+ backgroundColor?: BackgroundColor;
155
+ shadow?: Shadow;
156
+ borderStyle?: BorderStyle;
157
+ borderWidth?: BorderWidth;
158
+ borderColor?: BorderColor;
159
+ borderRadius?: BorderRadius;
160
+ layer?: Layer;
161
+ flexDirection?: FlexDirection;
162
+ alignItems?: FlexAlignItems;
163
+ justifyContent?: FlexJustifyContent;
164
+ overflow?: Overflow;
165
+ padding?: Padding;
166
+ paddingBlock?: PaddingBlock;
167
+ paddingInline?: PaddingInline;
168
+ width?: Width;
169
+ height?: Height;
170
+ display?: Display;
171
+ position?: Position;
172
+ ref?: ComponentPropsWithRef<T>['ref'];
173
+ };
174
+
175
+ // @public (undocumented)
176
+ type ColumnGap = keyof typeof columnGapMap;
177
+
178
+ // @public
179
+ const columnGapMap: {
180
+ 'space.0': SerializedStyles;
181
+ 'space.025': SerializedStyles;
182
+ 'space.050': SerializedStyles;
183
+ 'space.075': SerializedStyles;
184
+ 'space.100': SerializedStyles;
185
+ 'space.1000': SerializedStyles;
186
+ 'space.150': SerializedStyles;
187
+ 'space.200': SerializedStyles;
188
+ 'space.250': SerializedStyles;
189
+ 'space.300': SerializedStyles;
190
+ 'space.400': SerializedStyles;
191
+ 'space.500': SerializedStyles;
192
+ 'space.600': SerializedStyles;
193
+ 'space.800': SerializedStyles;
194
+ };
195
+
196
+ // @public (undocumented)
197
+ type Display = keyof typeof displayMap;
198
+
199
+ // @public (undocumented)
200
+ const displayMap: {
201
+ block: SerializedStyles;
202
+ inline: SerializedStyles;
203
+ flex: SerializedStyles;
204
+ inlineFlex: SerializedStyles;
205
+ inlineBlock: SerializedStyles;
206
+ };
207
+
208
+ // @public
209
+ type FlexAlignItems = keyof typeof flexAlignItemsMap;
210
+
211
+ // @public (undocumented)
212
+ type FlexAlignItems_2 = keyof typeof flexAlignItemsMap_2;
213
+
214
+ // @public (undocumented)
215
+ type FlexAlignItems_3 = keyof typeof flexAlignItemsMap_3;
216
+
217
+ // @public (undocumented)
218
+ const flexAlignItemsMap: {
219
+ center: SerializedStyles;
220
+ baseline: SerializedStyles;
221
+ flexStart: SerializedStyles;
222
+ flexEnd: SerializedStyles;
223
+ start: SerializedStyles;
224
+ end: SerializedStyles;
225
+ };
226
+
227
+ // @public (undocumented)
228
+ const flexAlignItemsMap_2: {
229
+ center: SerializedStyles;
230
+ baseline: SerializedStyles;
231
+ flexStart: SerializedStyles;
232
+ flexEnd: SerializedStyles;
233
+ start: SerializedStyles;
234
+ end: SerializedStyles;
235
+ };
236
+
237
+ // @public (undocumented)
238
+ const flexAlignItemsMap_3: {
239
+ center: SerializedStyles;
240
+ baseline: SerializedStyles;
241
+ flexStart: SerializedStyles;
242
+ flexEnd: SerializedStyles;
243
+ start: SerializedStyles;
244
+ end: SerializedStyles;
245
+ };
246
+
247
+ // @public
248
+ type FlexDirection = keyof typeof flexDirectionMap;
249
+
250
+ // @public (undocumented)
251
+ const flexDirectionMap: {
252
+ column: SerializedStyles;
253
+ row: SerializedStyles;
254
+ };
255
+
256
+ // @public
257
+ type FlexJustifyContent = keyof typeof flexJustifyContentMap;
258
+
259
+ // @public (undocumented)
260
+ type FlexJustifyContent_2 = keyof typeof flexJustifyContentMap_2;
261
+
262
+ // @public (undocumented)
263
+ type FlexJustifyContent_3 = keyof typeof flexJustifyContentMap_3;
264
+
265
+ // @public (undocumented)
266
+ const flexJustifyContentMap: {
267
+ center: SerializedStyles;
268
+ flexStart: SerializedStyles;
269
+ flexEnd: SerializedStyles;
270
+ start: SerializedStyles;
271
+ end: SerializedStyles;
272
+ };
273
+
274
+ // @public (undocumented)
275
+ const flexJustifyContentMap_2: {
276
+ center: SerializedStyles;
277
+ flexStart: SerializedStyles;
278
+ 'space-between': SerializedStyles;
279
+ flexEnd: SerializedStyles;
280
+ start: SerializedStyles;
281
+ end: SerializedStyles;
282
+ spaceBetween: SerializedStyles;
283
+ };
284
+
285
+ // @public (undocumented)
286
+ const flexJustifyContentMap_3: {
287
+ center: SerializedStyles;
288
+ flexStart: SerializedStyles;
289
+ flexEnd: SerializedStyles;
290
+ start: SerializedStyles;
291
+ end: SerializedStyles;
292
+ };
293
+
294
+ // @public (undocumented)
295
+ type FlexWrap = keyof typeof flexWrapMap;
296
+
297
+ // @public (undocumented)
298
+ type FlexWrap_2 = keyof typeof flexWrapMap_2;
299
+
300
+ // @public (undocumented)
301
+ const flexWrapMap: {
302
+ wrap: SerializedStyles;
303
+ };
304
+
305
+ // @public (undocumented)
306
+ const flexWrapMap_2: {
307
+ wrap: SerializedStyles;
308
+ };
309
+
310
+ // @public (undocumented)
311
+ type FontSize = keyof typeof fontSizeMap;
312
+
313
+ // @public
314
+ const fontSizeMap: {
315
+ 'size.050': SerializedStyles;
316
+ 'size.075': SerializedStyles;
317
+ 'size.100': SerializedStyles;
318
+ 'size.200': SerializedStyles;
319
+ 'size.300': SerializedStyles;
320
+ 'size.400': SerializedStyles;
321
+ 'size.500': SerializedStyles;
322
+ 'size.600': SerializedStyles;
323
+ };
324
+
325
+ // @public (undocumented)
326
+ type FontWeight = keyof typeof fontWeightMap;
327
+
328
+ // @public (undocumented)
329
+ const fontWeightMap: {
330
+ bold: SerializedStyles;
331
+ medium: SerializedStyles;
332
+ regular: SerializedStyles;
333
+ semibold: SerializedStyles;
334
+ };
335
+
336
+ // @public (undocumented)
337
+ type Height = keyof typeof heightMap;
338
+
339
+ // @public (undocumented)
340
+ const heightMap: {
341
+ '100%': SerializedStyles;
342
+ 'size.100': SerializedStyles;
343
+ 'size.1000': SerializedStyles;
344
+ 'size.200': SerializedStyles;
345
+ 'size.300': SerializedStyles;
346
+ 'size.400': SerializedStyles;
347
+ 'size.500': SerializedStyles;
348
+ 'size.600': SerializedStyles;
349
+ };
350
+
351
+ // @public (undocumented)
352
+ type InteractionBackgroundColor = keyof typeof backgroundHoverColorMap;
353
+
354
+ // @public (undocumented)
355
+ interface InteractionSurfaceProps extends BasePrimitiveProps {
356
+ // (undocumented)
357
+ appearance?: InteractionBackgroundColor;
358
+ // (undocumented)
359
+ children: ReactNode;
360
+ }
361
+
362
+ // @public (undocumented)
363
+ type Layer = keyof typeof LAYERS;
364
+
365
+ // @public (undocumented)
366
+ const LAYERS: {
367
+ readonly card: 100;
368
+ readonly navigation: 200;
369
+ readonly dialog: 300;
370
+ readonly layer: 400;
371
+ readonly blanket: 500;
372
+ readonly modal: 510;
373
+ readonly flag: 600;
374
+ readonly spotlight: 700;
375
+ readonly tooltip: 800;
376
+ };
377
+
378
+ // @public (undocumented)
379
+ type LineHeight = keyof typeof lineHeightMap;
380
+
381
+ // @public (undocumented)
382
+ const lineHeightMap: {
383
+ 'lineHeight.1': SerializedStyles;
384
+ 'lineHeight.100': SerializedStyles;
385
+ 'lineHeight.200': SerializedStyles;
386
+ 'lineHeight.300': SerializedStyles;
387
+ 'lineHeight.400': SerializedStyles;
388
+ 'lineHeight.500': SerializedStyles;
389
+ 'lineHeight.600': SerializedStyles;
390
+ };
391
+
392
+ // @public (undocumented)
393
+ type Overflow = keyof typeof overflowMap;
394
+
395
+ // @public (undocumented)
396
+ const overflowMap: {
397
+ auto: SerializedStyles;
398
+ hidden: SerializedStyles;
399
+ };
400
+
401
+ // @public (undocumented)
402
+ type Padding = keyof typeof paddingMap;
403
+
404
+ // @public (undocumented)
405
+ type PaddingBlock = keyof typeof paddingBlockMap;
406
+
407
+ // @public (undocumented)
408
+ const paddingBlockMap: {
409
+ 'space.0': SerializedStyles;
410
+ 'space.025': SerializedStyles;
411
+ 'space.050': SerializedStyles;
412
+ 'space.075': SerializedStyles;
413
+ 'space.100': SerializedStyles;
414
+ 'space.1000': SerializedStyles;
415
+ 'space.150': SerializedStyles;
416
+ 'space.200': SerializedStyles;
417
+ 'space.250': SerializedStyles;
418
+ 'space.300': SerializedStyles;
419
+ 'space.400': SerializedStyles;
420
+ 'space.500': SerializedStyles;
421
+ 'space.600': SerializedStyles;
422
+ 'space.800': SerializedStyles;
423
+ };
424
+
425
+ // @public (undocumented)
426
+ type PaddingInline = keyof typeof paddingInlineMap;
427
+
428
+ // @public (undocumented)
429
+ const paddingInlineMap: {
430
+ 'space.0': SerializedStyles;
431
+ 'space.025': SerializedStyles;
432
+ 'space.050': SerializedStyles;
433
+ 'space.075': SerializedStyles;
434
+ 'space.100': SerializedStyles;
435
+ 'space.1000': SerializedStyles;
436
+ 'space.150': SerializedStyles;
437
+ 'space.200': SerializedStyles;
438
+ 'space.250': SerializedStyles;
439
+ 'space.300': SerializedStyles;
440
+ 'space.400': SerializedStyles;
441
+ 'space.500': SerializedStyles;
442
+ 'space.600': SerializedStyles;
443
+ 'space.800': SerializedStyles;
444
+ };
445
+
446
+ // @public
447
+ const paddingMap: {
448
+ 'space.0': SerializedStyles;
449
+ 'space.025': SerializedStyles;
450
+ 'space.050': SerializedStyles;
451
+ 'space.075': SerializedStyles;
452
+ 'space.100': SerializedStyles;
453
+ 'space.1000': SerializedStyles;
454
+ 'space.150': SerializedStyles;
455
+ 'space.200': SerializedStyles;
456
+ 'space.250': SerializedStyles;
457
+ 'space.300': SerializedStyles;
458
+ 'space.400': SerializedStyles;
459
+ 'space.500': SerializedStyles;
460
+ 'space.600': SerializedStyles;
461
+ 'space.800': SerializedStyles;
462
+ };
463
+
464
+ // @public (undocumented)
465
+ type Position = keyof typeof positionMap;
466
+
467
+ // @public (undocumented)
468
+ const positionMap: {
469
+ absolute: SerializedStyles;
470
+ fixed: SerializedStyles;
471
+ relative: SerializedStyles;
472
+ static: SerializedStyles;
473
+ };
474
+
475
+ // @public (undocumented)
476
+ type RowGap = keyof typeof rowGapMap;
477
+
478
+ // @public
479
+ const rowGapMap: {
480
+ 'space.0': SerializedStyles;
481
+ 'space.025': SerializedStyles;
482
+ 'space.050': SerializedStyles;
483
+ 'space.075': SerializedStyles;
484
+ 'space.100': SerializedStyles;
485
+ 'space.1000': SerializedStyles;
486
+ 'space.150': SerializedStyles;
487
+ 'space.200': SerializedStyles;
488
+ 'space.250': SerializedStyles;
489
+ 'space.300': SerializedStyles;
490
+ 'space.400': SerializedStyles;
491
+ 'space.500': SerializedStyles;
492
+ 'space.600': SerializedStyles;
493
+ 'space.800': SerializedStyles;
494
+ };
495
+
496
+ // @public (undocumented)
497
+ type Shadow = keyof typeof shadowMap;
498
+
499
+ // @public (undocumented)
500
+ const shadowMap: {
501
+ readonly overflow: SerializedStyles;
502
+ readonly 'overflow.perimeter': SerializedStyles;
503
+ readonly 'overflow.spread': SerializedStyles;
504
+ readonly overlay: SerializedStyles;
505
+ readonly raised: SerializedStyles;
506
+ };
507
+
508
+ // @public (undocumented)
509
+ type TextAlign = keyof typeof textAlignMap;
510
+
511
+ // @public (undocumented)
512
+ const textAlignMap: {
513
+ center: SerializedStyles;
514
+ end: SerializedStyles;
515
+ start: SerializedStyles;
516
+ };
517
+
518
+ // @public (undocumented)
519
+ type TextColor = keyof typeof textColorMap;
520
+
521
+ // @public
522
+ const textColorMap: {
523
+ readonly 'color.text': SerializedStyles;
524
+ readonly disabled: SerializedStyles;
525
+ readonly inverse: SerializedStyles;
526
+ readonly selected: SerializedStyles;
527
+ readonly brand: SerializedStyles;
528
+ readonly danger: SerializedStyles;
529
+ readonly warning: SerializedStyles;
530
+ readonly 'warning.inverse': SerializedStyles;
531
+ readonly success: SerializedStyles;
532
+ readonly discovery: SerializedStyles;
533
+ readonly information: SerializedStyles;
534
+ readonly subtlest: SerializedStyles;
535
+ readonly subtle: SerializedStyles;
536
+ };
537
+
538
+ // @public (undocumented)
539
+ type TextTransform = keyof typeof textTransformMap;
540
+
541
+ // @public (undocumented)
542
+ const textTransformMap: {
543
+ none: SerializedStyles;
544
+ lowercase: SerializedStyles;
545
+ uppercase: SerializedStyles;
546
+ };
547
+
548
+ // @public @deprecated
549
+ export const UNSAFE_Box: BoxComponent;
550
+
551
+ // @public @deprecated (undocumented)
552
+ export type UNSAFE_BoxProps<T extends ElementType = 'div'> = Omit<ComponentPropsWithoutRef<T>, 'as' | 'className' | 'style'> & BasePrimitiveProps & BoxPropsBase<T>;
553
+
554
+ // @public @deprecated
555
+ export const UNSAFE_Inline: MemoExoticComponent<ForwardRefExoticComponent<UNSAFE_InlineProps & RefAttributes<HTMLDivElement>>>;
556
+
557
+ // @public @deprecated (undocumented)
558
+ export interface UNSAFE_InlineProps extends BasePrimitiveProps {
559
+ alignItems?: FlexAlignItems_2;
560
+ children: ReactNode;
561
+ divider?: ReactNode;
562
+ flexWrap?: FlexWrap;
563
+ gap: ColumnGap;
564
+ justifyContent?: FlexJustifyContent_2;
565
+ }
566
+
567
+ // @public (undocumented)
568
+ export const UNSAFE_InteractionSurface: ({ appearance, children, testId, }: InteractionSurfaceProps) => jsx.JSX.Element;
569
+
570
+ // @public @deprecated
571
+ export const UNSAFE_Stack: MemoExoticComponent<ForwardRefExoticComponent<UNSAFE_StackProps & RefAttributes<HTMLDivElement>>>;
572
+
573
+ // @public @deprecated (undocumented)
574
+ export interface UNSAFE_StackProps extends BasePrimitiveProps {
575
+ alignItems?: FlexAlignItems_3;
576
+ children: ReactNode;
577
+ flexWrap?: FlexWrap_2;
578
+ gap: RowGap;
579
+ justifyContent?: FlexJustifyContent_3;
580
+ }
581
+
582
+ // @internal
583
+ export const UNSAFE_Text: FC<UNSAFE_TextProps>;
584
+
585
+ // @public (undocumented)
586
+ export interface UNSAFE_TextProps extends BasePrimitiveProps {
587
+ as?: AsElement;
588
+ children: ReactNode;
589
+ color?: TextColor;
590
+ fontSize?: FontSize;
591
+ fontWeight?: FontWeight;
592
+ id?: string;
593
+ lineHeight?: LineHeight;
594
+ shouldTruncate?: boolean;
595
+ textAlign?: TextAlign;
596
+ textTransform?: TextTransform;
597
+ verticalAlign?: VerticalAlign;
598
+ }
599
+
600
+ // @public (undocumented)
601
+ type VerticalAlign = keyof typeof verticalAlignMap;
602
+
603
+ // @public (undocumented)
604
+ const verticalAlignMap: {
605
+ top: SerializedStyles;
606
+ middle: SerializedStyles;
607
+ bottom: SerializedStyles;
608
+ };
609
+
610
+ // @public (undocumented)
611
+ type Width = keyof typeof widthMap;
612
+
613
+ // @public
614
+ const widthMap: {
615
+ '100%': SerializedStyles;
616
+ 'size.100': SerializedStyles;
617
+ 'size.1000': SerializedStyles;
618
+ 'size.200': SerializedStyles;
619
+ 'size.300': SerializedStyles;
620
+ 'size.400': SerializedStyles;
621
+ 'size.500': SerializedStyles;
622
+ 'size.600': SerializedStyles;
623
+ };
624
+
625
+ // (No @packageDocumentation comment for this package)
626
+
627
+ ```
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/ds-explorations",
3
- "version": "2.2.8",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/ds-explorations",
3
- "version": "2.2.8",
4
- "sideEffects": false
5
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@atlaskit/ds-explorations",
3
- "version": "2.2.8",
4
- "sideEffects": false
5
- }