@atlaskit/ds-explorations 1.7.0 → 2.0.1
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 +24 -0
- package/dist/cjs/components/box.partial.js +72 -72
- package/dist/cjs/components/inline.partial.js +16 -16
- package/dist/cjs/components/interaction-surface.partial.js +28 -28
- package/dist/cjs/components/stack.partial.js +16 -16
- package/dist/cjs/components/text.partial.js +97 -67
- package/dist/cjs/internal/color-map.js +5 -5
- package/dist/cjs/internal/spacing-scale.js +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/box.partial.js +72 -72
- package/dist/es2019/components/inline.partial.js +16 -16
- package/dist/es2019/components/interaction-surface.partial.js +28 -28
- package/dist/es2019/components/stack.partial.js +16 -16
- package/dist/es2019/components/text.partial.js +96 -66
- package/dist/es2019/internal/color-map.js +5 -5
- package/dist/es2019/internal/spacing-scale.js +2 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/box.partial.js +72 -72
- package/dist/esm/components/inline.partial.js +16 -16
- package/dist/esm/components/interaction-surface.partial.js +28 -28
- package/dist/esm/components/stack.partial.js +16 -16
- package/dist/esm/components/text.partial.js +96 -66
- package/dist/esm/internal/color-map.js +5 -5
- package/dist/esm/internal/spacing-scale.js +2 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/components/box.partial.d.ts +56 -56
- package/dist/types/components/inline.partial.d.ts +16 -16
- package/dist/types/components/interaction-surface.partial.d.ts +3 -3
- package/dist/types/components/stack.partial.d.ts +16 -16
- package/dist/types/components/surface-provider.d.ts +2 -2
- package/dist/types/components/text.partial.d.ts +48 -28
- package/dist/types/internal/color-map.d.ts +5 -5
- package/dist/types/internal/spacing-scale.d.ts +2 -2
- package/examples/00-basic.tsx +3 -3
- package/examples/01-box.tsx +18 -18
- package/examples/02-text-advanced.tsx +9 -9
- package/examples/02-text.tsx +36 -16
- package/examples/03-stack.tsx +26 -26
- package/examples/04-inline.tsx +26 -26
- package/examples/05-badge.tsx +2 -2
- package/examples/06-section-message.tsx +6 -6
- package/examples/07-comment.tsx +5 -5
- package/examples/08-lozenge.tsx +4 -4
- package/examples/99-interactions.tsx +16 -16
- package/package.json +1 -1
- package/report.api.md +105 -101
- package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +49 -49
- package/scripts/codegen-styles.tsx +27 -0
- package/scripts/spacing-codegen-template.tsx +3 -4
- package/scripts/spacing-scale-template.tsx +3 -5
- package/scripts/typography-codegen-template.tsx +80 -0
- package/src/components/__tests__/unit/inline.test.tsx +3 -3
- package/src/components/__tests__/unit/stack.test.tsx +2 -2
- package/src/components/__tests__/unit/text.test.tsx +3 -3
- package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-block-should-match-snapshot-1-snap.png +2 -2
- package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-inline-should-match-snapshot-1-snap.png +2 -2
- package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-should-match-snapshot-1-snap.png +2 -2
- package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-spacing-example-should-match-snapshot-1-snap.png +2 -2
- package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-spacing-example-should-match-snapshot-1-snap.png +2 -2
- package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-font-sizes-should-match-snapshot-1-snap.png +2 -2
- package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-font-weights-should-match-snapshot-1-snap.png +2 -2
- package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-line-heights-should-match-snapshot-1-snap.png +2 -2
- package/src/components/box.partial.tsx +75 -75
- package/src/components/inline.partial.tsx +16 -16
- package/src/components/interaction-surface.partial.tsx +22 -22
- package/src/components/stack.partial.tsx +16 -16
- package/src/components/text.partial.tsx +112 -43
- package/src/internal/color-map.tsx +5 -5
- package/src/internal/spacing-scale.tsx +15 -15
- package/tmp/api-report-tmp.d.ts +105 -101
|
@@ -8,56 +8,6 @@ import invariant from 'tiny-invariant';
|
|
|
8
8
|
import surfaceColorMap from '../internal/color-map';
|
|
9
9
|
import { useSurface } from './surface-provider';
|
|
10
10
|
var asAllowlist = ['span', 'div', 'p', 'strong'];
|
|
11
|
-
var fontFamily = "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif";
|
|
12
|
-
var fontSizeMap = {
|
|
13
|
-
'11px': css({
|
|
14
|
-
fontSize: '11px'
|
|
15
|
-
}),
|
|
16
|
-
'12px': css({
|
|
17
|
-
fontSize: '12px'
|
|
18
|
-
}),
|
|
19
|
-
'14px': css({
|
|
20
|
-
fontSize: '14px'
|
|
21
|
-
})
|
|
22
|
-
};
|
|
23
|
-
// NOTE: can't use numbers as keys or Constellation won't build. Weird one.
|
|
24
|
-
var fontWeightMap = {
|
|
25
|
-
'400': css({
|
|
26
|
-
fontWeight: 400
|
|
27
|
-
}),
|
|
28
|
-
'500': css({
|
|
29
|
-
fontWeight: 500
|
|
30
|
-
}),
|
|
31
|
-
'600': css({
|
|
32
|
-
fontWeight: 600
|
|
33
|
-
}),
|
|
34
|
-
'700': css({
|
|
35
|
-
fontWeight: 700
|
|
36
|
-
})
|
|
37
|
-
};
|
|
38
|
-
var lineHeightMap = {
|
|
39
|
-
'12px': css({
|
|
40
|
-
lineHeight: '12px'
|
|
41
|
-
}),
|
|
42
|
-
'16px': css({
|
|
43
|
-
lineHeight: '16px'
|
|
44
|
-
}),
|
|
45
|
-
'20px': css({
|
|
46
|
-
lineHeight: '20px'
|
|
47
|
-
}),
|
|
48
|
-
'24px': css({
|
|
49
|
-
lineHeight: '24px'
|
|
50
|
-
}),
|
|
51
|
-
'28px': css({
|
|
52
|
-
lineHeight: '28px'
|
|
53
|
-
}),
|
|
54
|
-
'32px': css({
|
|
55
|
-
lineHeight: '32px'
|
|
56
|
-
}),
|
|
57
|
-
'40px': css({
|
|
58
|
-
lineHeight: '40px'
|
|
59
|
-
})
|
|
60
|
-
};
|
|
61
11
|
var textAlignMap = {
|
|
62
12
|
center: css({
|
|
63
13
|
textAlign: 'center'
|
|
@@ -93,9 +43,8 @@ var verticalAlignMap = {
|
|
|
93
43
|
};
|
|
94
44
|
var baseStyles = css({
|
|
95
45
|
boxSizing: 'border-box',
|
|
96
|
-
margin:
|
|
97
|
-
padding:
|
|
98
|
-
fontFamily: fontFamily
|
|
46
|
+
margin: "var(--ds-space-0, 0px)",
|
|
47
|
+
padding: "var(--ds-space-0, 0px)"
|
|
99
48
|
});
|
|
100
49
|
var truncateStyles = css({
|
|
101
50
|
overflow: 'hidden',
|
|
@@ -166,7 +115,7 @@ var Text = function Text(_ref) {
|
|
|
166
115
|
|
|
167
116
|
var component = jsx(Component, {
|
|
168
117
|
style: UNSAFE_style,
|
|
169
|
-
css: [baseStyles, color && textColorMap[color], fontSize && fontSizeMap[fontSize], fontWeight && fontWeightMap[fontWeight], lineHeight && lineHeightMap[lineHeight], shouldTruncate && truncateStyles, textAlign && textAlignMap[textAlign], textTransform && textTransformMap[textTransform], verticalAlign && verticalAlignMap[verticalAlign]],
|
|
118
|
+
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]],
|
|
170
119
|
"data-testid": testId,
|
|
171
120
|
id: id
|
|
172
121
|
}, children);
|
|
@@ -179,35 +128,110 @@ var Text = function Text(_ref) {
|
|
|
179
128
|
export default Text;
|
|
180
129
|
/**
|
|
181
130
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
182
|
-
* @codegen <<SignedSource::
|
|
131
|
+
* @codegen <<SignedSource::9f746e797b8b5262d58b40dfecb39e6d>>
|
|
132
|
+
* @codegenId typography
|
|
133
|
+
* @codegenCommand yarn codegen-styles
|
|
134
|
+
* @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
|
|
135
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::e6bf70c53b8eecdb84ae4c79966537e3>>
|
|
136
|
+
*/
|
|
137
|
+
|
|
138
|
+
var fontSizeMap = {
|
|
139
|
+
'size.050': css({
|
|
140
|
+
fontSize: "var(--ds-font-size-050, 11px)"
|
|
141
|
+
}),
|
|
142
|
+
'size.075': css({
|
|
143
|
+
fontSize: "var(--ds-font-size-075, 12px)"
|
|
144
|
+
}),
|
|
145
|
+
'size.100': css({
|
|
146
|
+
fontSize: "var(--ds-font-size-100, 14px)"
|
|
147
|
+
}),
|
|
148
|
+
'size.200': css({
|
|
149
|
+
fontSize: "var(--ds-font-size-200, 16px)"
|
|
150
|
+
}),
|
|
151
|
+
'size.300': css({
|
|
152
|
+
fontSize: "var(--ds-font-size-300, 20px)"
|
|
153
|
+
}),
|
|
154
|
+
'size.400': css({
|
|
155
|
+
fontSize: "var(--ds-font-size-400, 24px)"
|
|
156
|
+
}),
|
|
157
|
+
'size.500': css({
|
|
158
|
+
fontSize: "var(--ds-font-size-500, 29px)"
|
|
159
|
+
}),
|
|
160
|
+
'size.600': css({
|
|
161
|
+
fontSize: "var(--ds-font-size-600, 35px)"
|
|
162
|
+
})
|
|
163
|
+
};
|
|
164
|
+
var fontWeightMap = {
|
|
165
|
+
bold: css({
|
|
166
|
+
fontWeight: "var(--ds-font-weight-bold, 700)"
|
|
167
|
+
}),
|
|
168
|
+
medium: css({
|
|
169
|
+
fontWeight: "var(--ds-font-weight-medium, 500)"
|
|
170
|
+
}),
|
|
171
|
+
regular: css({
|
|
172
|
+
fontWeight: "var(--ds-font-weight-regular, 400)"
|
|
173
|
+
}),
|
|
174
|
+
semibold: css({
|
|
175
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)"
|
|
176
|
+
})
|
|
177
|
+
};
|
|
178
|
+
var fontFamilyMap = {
|
|
179
|
+
monospace: css({
|
|
180
|
+
fontFamily: "var(--ds-font-family-monospace, \"SFMono-Medium\", \"SF Mono\", \"Segoe UI Mono\", \"Roboto Mono\", \"Ubuntu Mono\", Menlo, Consolas, Courier, monospace)"
|
|
181
|
+
}),
|
|
182
|
+
sans: css({
|
|
183
|
+
fontFamily: "var(--ds-font-family-sans, -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif)"
|
|
184
|
+
})
|
|
185
|
+
};
|
|
186
|
+
var lineHeightMap = {
|
|
187
|
+
'lineHeight.100': css({
|
|
188
|
+
lineHeight: "var(--ds-font-lineHeight-100, 16px)"
|
|
189
|
+
}),
|
|
190
|
+
'lineHeight.200': css({
|
|
191
|
+
lineHeight: "var(--ds-font-lineHeight-200, 20px)"
|
|
192
|
+
}),
|
|
193
|
+
'lineHeight.300': css({
|
|
194
|
+
lineHeight: "var(--ds-font-lineHeight-300, 24px)"
|
|
195
|
+
}),
|
|
196
|
+
'lineHeight.400': css({
|
|
197
|
+
lineHeight: "var(--ds-font-lineHeight-400, 28px)"
|
|
198
|
+
}),
|
|
199
|
+
'lineHeight.500': css({
|
|
200
|
+
lineHeight: "var(--ds-font-lineHeight-500, 32px)"
|
|
201
|
+
}),
|
|
202
|
+
'lineHeight.600': css({
|
|
203
|
+
lineHeight: "var(--ds-font-lineHeight-600, 40px)"
|
|
204
|
+
})
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @codegenEnd
|
|
209
|
+
*/
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
213
|
+
* @codegen <<SignedSource::ca24871d7a06dd779f21c85960ded8ba>>
|
|
183
214
|
* @codegenId colors
|
|
184
215
|
* @codegenCommand yarn codegen-styles
|
|
185
216
|
* @codegenParams ["text"]
|
|
186
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
217
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::e348c7cd343cf53ff944fdb7023c577a>>
|
|
187
218
|
*/
|
|
188
|
-
|
|
189
219
|
var textColorMap = {
|
|
190
220
|
'color.text': css({
|
|
191
221
|
color: "var(--ds-text, #172B4D)"
|
|
192
222
|
}),
|
|
193
|
-
subtle: css({
|
|
194
|
-
color: "var(--ds-text-subtle, #42526E)"
|
|
195
|
-
}),
|
|
196
|
-
subtlest: css({
|
|
197
|
-
color: "var(--ds-text-subtlest, #7A869A)"
|
|
198
|
-
}),
|
|
199
223
|
disabled: css({
|
|
200
224
|
color: "var(--ds-text-disabled, #A5ADBA)"
|
|
201
225
|
}),
|
|
202
226
|
inverse: css({
|
|
203
227
|
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
204
228
|
}),
|
|
205
|
-
brand: css({
|
|
206
|
-
color: "var(--ds-text-brand, #0065FF)"
|
|
207
|
-
}),
|
|
208
229
|
selected: css({
|
|
209
230
|
color: "var(--ds-text-selected, #0052CC)"
|
|
210
231
|
}),
|
|
232
|
+
brand: css({
|
|
233
|
+
color: "var(--ds-text-brand, #0065FF)"
|
|
234
|
+
}),
|
|
211
235
|
danger: css({
|
|
212
236
|
color: "var(--ds-text-danger, #DE350B)"
|
|
213
237
|
}),
|
|
@@ -225,6 +249,12 @@ var textColorMap = {
|
|
|
225
249
|
}),
|
|
226
250
|
information: css({
|
|
227
251
|
color: "var(--ds-text-information, #0052CC)"
|
|
252
|
+
}),
|
|
253
|
+
subtlest: css({
|
|
254
|
+
color: "var(--ds-text-subtlest, #7A869A)"
|
|
255
|
+
}),
|
|
256
|
+
subtle: css({
|
|
257
|
+
color: "var(--ds-text-subtle, #42526E)"
|
|
228
258
|
})
|
|
229
259
|
};
|
|
230
260
|
/**
|
|
@@ -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::
|
|
6
|
+
* @codegen <<SignedSource::2ca647ee8f34f9282287118d86be4585>>
|
|
7
7
|
* @codegenCommand yarn codegen-styles
|
|
8
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::e348c7cd343cf53ff944fdb7023c577a>>
|
|
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',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Internal codegen of the spacing scale values. Only used for internal examples.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::885d6c601dfa9fccaf33a7bd461ef59d>>
|
|
7
7
|
* @codegenCommand yarn codegen-styles
|
|
8
8
|
*/
|
|
9
|
-
export var spacingScale = ['
|
|
9
|
+
export var 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'];
|
package/dist/esm/version.json
CHANGED
|
@@ -222,61 +222,61 @@ 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::
|
|
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::
|
|
229
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::b0b8f1a822ed84e0407ad83e6fda5a1c>>
|
|
230
230
|
*/
|
|
231
231
|
declare const paddingMap: {
|
|
232
|
-
'
|
|
233
|
-
'
|
|
234
|
-
'
|
|
235
|
-
'
|
|
236
|
-
'
|
|
237
|
-
'
|
|
238
|
-
'
|
|
239
|
-
'
|
|
240
|
-
'
|
|
241
|
-
'
|
|
242
|
-
'
|
|
243
|
-
'
|
|
244
|
-
'
|
|
245
|
-
'
|
|
232
|
+
'space.0': import("@emotion/react").SerializedStyles;
|
|
233
|
+
'space.025': import("@emotion/react").SerializedStyles;
|
|
234
|
+
'space.050': import("@emotion/react").SerializedStyles;
|
|
235
|
+
'space.075': import("@emotion/react").SerializedStyles;
|
|
236
|
+
'space.100': import("@emotion/react").SerializedStyles;
|
|
237
|
+
'space.1000': import("@emotion/react").SerializedStyles;
|
|
238
|
+
'space.150': import("@emotion/react").SerializedStyles;
|
|
239
|
+
'space.200': import("@emotion/react").SerializedStyles;
|
|
240
|
+
'space.250': import("@emotion/react").SerializedStyles;
|
|
241
|
+
'space.300': import("@emotion/react").SerializedStyles;
|
|
242
|
+
'space.400': import("@emotion/react").SerializedStyles;
|
|
243
|
+
'space.500': import("@emotion/react").SerializedStyles;
|
|
244
|
+
'space.600': import("@emotion/react").SerializedStyles;
|
|
245
|
+
'space.800': import("@emotion/react").SerializedStyles;
|
|
246
246
|
};
|
|
247
247
|
export declare type Padding = keyof typeof paddingMap;
|
|
248
248
|
declare const paddingBlockMap: {
|
|
249
|
-
'
|
|
250
|
-
'
|
|
251
|
-
'
|
|
252
|
-
'
|
|
253
|
-
'
|
|
254
|
-
'
|
|
255
|
-
'
|
|
256
|
-
'
|
|
257
|
-
'
|
|
258
|
-
'
|
|
259
|
-
'
|
|
260
|
-
'
|
|
261
|
-
'
|
|
262
|
-
'
|
|
249
|
+
'space.0': import("@emotion/react").SerializedStyles;
|
|
250
|
+
'space.025': import("@emotion/react").SerializedStyles;
|
|
251
|
+
'space.050': import("@emotion/react").SerializedStyles;
|
|
252
|
+
'space.075': import("@emotion/react").SerializedStyles;
|
|
253
|
+
'space.100': import("@emotion/react").SerializedStyles;
|
|
254
|
+
'space.1000': import("@emotion/react").SerializedStyles;
|
|
255
|
+
'space.150': import("@emotion/react").SerializedStyles;
|
|
256
|
+
'space.200': import("@emotion/react").SerializedStyles;
|
|
257
|
+
'space.250': import("@emotion/react").SerializedStyles;
|
|
258
|
+
'space.300': import("@emotion/react").SerializedStyles;
|
|
259
|
+
'space.400': import("@emotion/react").SerializedStyles;
|
|
260
|
+
'space.500': import("@emotion/react").SerializedStyles;
|
|
261
|
+
'space.600': import("@emotion/react").SerializedStyles;
|
|
262
|
+
'space.800': import("@emotion/react").SerializedStyles;
|
|
263
263
|
};
|
|
264
264
|
export declare type PaddingBlock = keyof typeof paddingBlockMap;
|
|
265
265
|
declare const paddingInlineMap: {
|
|
266
|
-
'
|
|
267
|
-
'
|
|
268
|
-
'
|
|
269
|
-
'
|
|
270
|
-
'
|
|
271
|
-
'
|
|
272
|
-
'
|
|
273
|
-
'
|
|
274
|
-
'
|
|
275
|
-
'
|
|
276
|
-
'
|
|
277
|
-
'
|
|
278
|
-
'
|
|
279
|
-
'
|
|
266
|
+
'space.0': import("@emotion/react").SerializedStyles;
|
|
267
|
+
'space.025': import("@emotion/react").SerializedStyles;
|
|
268
|
+
'space.050': import("@emotion/react").SerializedStyles;
|
|
269
|
+
'space.075': import("@emotion/react").SerializedStyles;
|
|
270
|
+
'space.100': import("@emotion/react").SerializedStyles;
|
|
271
|
+
'space.1000': import("@emotion/react").SerializedStyles;
|
|
272
|
+
'space.150': import("@emotion/react").SerializedStyles;
|
|
273
|
+
'space.200': import("@emotion/react").SerializedStyles;
|
|
274
|
+
'space.250': import("@emotion/react").SerializedStyles;
|
|
275
|
+
'space.300': import("@emotion/react").SerializedStyles;
|
|
276
|
+
'space.400': import("@emotion/react").SerializedStyles;
|
|
277
|
+
'space.500': import("@emotion/react").SerializedStyles;
|
|
278
|
+
'space.600': import("@emotion/react").SerializedStyles;
|
|
279
|
+
'space.800': import("@emotion/react").SerializedStyles;
|
|
280
280
|
};
|
|
281
281
|
export declare type PaddingInline = keyof typeof paddingInlineMap;
|
|
282
282
|
/**
|
|
@@ -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::
|
|
287
|
+
* @codegen <<SignedSource::04c05379e7c6ad157383d5f77e66911a>>
|
|
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::
|
|
291
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::e348c7cd343cf53ff944fdb7023c577a>>
|
|
292
292
|
*/
|
|
293
293
|
declare const borderColorMap: {
|
|
294
294
|
readonly 'color.border': import("@emotion/react").SerializedStyles;
|
|
295
|
-
readonly
|
|
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
|
|
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,27 +71,27 @@ 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::
|
|
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::
|
|
78
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::b0b8f1a822ed84e0407ad83e6fda5a1c>>
|
|
79
79
|
*/
|
|
80
80
|
declare const columnGapMap: {
|
|
81
|
-
'
|
|
82
|
-
'
|
|
83
|
-
'
|
|
84
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'
|
|
81
|
+
'space.0': import("@emotion/react").SerializedStyles;
|
|
82
|
+
'space.025': import("@emotion/react").SerializedStyles;
|
|
83
|
+
'space.050': import("@emotion/react").SerializedStyles;
|
|
84
|
+
'space.075': import("@emotion/react").SerializedStyles;
|
|
85
|
+
'space.100': import("@emotion/react").SerializedStyles;
|
|
86
|
+
'space.1000': import("@emotion/react").SerializedStyles;
|
|
87
|
+
'space.150': import("@emotion/react").SerializedStyles;
|
|
88
|
+
'space.200': import("@emotion/react").SerializedStyles;
|
|
89
|
+
'space.250': import("@emotion/react").SerializedStyles;
|
|
90
|
+
'space.300': import("@emotion/react").SerializedStyles;
|
|
91
|
+
'space.400': import("@emotion/react").SerializedStyles;
|
|
92
|
+
'space.500': import("@emotion/react").SerializedStyles;
|
|
93
|
+
'space.600': import("@emotion/react").SerializedStyles;
|
|
94
|
+
'space.800': import("@emotion/react").SerializedStyles;
|
|
95
95
|
};
|
|
96
96
|
export declare type ColumnGap = keyof typeof columnGapMap;
|
|
97
97
|
/**
|
|
@@ -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,27 +55,27 @@ 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::
|
|
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::
|
|
62
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::b0b8f1a822ed84e0407ad83e6fda5a1c>>
|
|
63
63
|
*/
|
|
64
64
|
declare const rowGapMap: {
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
'
|
|
74
|
-
'
|
|
75
|
-
'
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'
|
|
65
|
+
'space.0': import("@emotion/react").SerializedStyles;
|
|
66
|
+
'space.025': import("@emotion/react").SerializedStyles;
|
|
67
|
+
'space.050': import("@emotion/react").SerializedStyles;
|
|
68
|
+
'space.075': import("@emotion/react").SerializedStyles;
|
|
69
|
+
'space.100': import("@emotion/react").SerializedStyles;
|
|
70
|
+
'space.1000': import("@emotion/react").SerializedStyles;
|
|
71
|
+
'space.150': import("@emotion/react").SerializedStyles;
|
|
72
|
+
'space.200': import("@emotion/react").SerializedStyles;
|
|
73
|
+
'space.250': import("@emotion/react").SerializedStyles;
|
|
74
|
+
'space.300': import("@emotion/react").SerializedStyles;
|
|
75
|
+
'space.400': import("@emotion/react").SerializedStyles;
|
|
76
|
+
'space.500': import("@emotion/react").SerializedStyles;
|
|
77
|
+
'space.600': import("@emotion/react").SerializedStyles;
|
|
78
|
+
'space.800': import("@emotion/react").SerializedStyles;
|
|
79
79
|
};
|
|
80
80
|
export declare type RowGap = keyof typeof rowGapMap;
|
|
81
81
|
/**
|
|
@@ -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.
|
|
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.
|
|
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";
|