@atlaskit/ds-explorations 2.3.2 → 2.4.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.
- package/CHANGELOG.md +6 -0
- package/box/package.json +15 -0
- package/dist/cjs/components/box.partial.js +620 -0
- package/dist/cjs/components/inline.partial.js +182 -0
- package/dist/cjs/components/stack.partial.js +148 -0
- package/dist/cjs/index.js +21 -0
- package/dist/es2019/components/box.partial.js +614 -0
- package/dist/es2019/components/inline.partial.js +177 -0
- package/dist/es2019/components/stack.partial.js +144 -0
- package/dist/es2019/index.js +3 -0
- package/dist/esm/components/box.partial.js +617 -0
- package/dist/esm/components/inline.partial.js +177 -0
- package/dist/esm/components/stack.partial.js +143 -0
- package/dist/esm/index.js +3 -0
- package/dist/types/components/box.partial.d.ts +357 -0
- package/dist/types/components/inline.partial.d.ts +108 -0
- package/dist/types/components/stack.partial.d.ts +92 -0
- package/dist/types/components/surface-provider.d.ts +2 -2
- package/dist/types/index.d.ts +6 -0
- package/dist/types-ts4.5/components/box.partial.d.ts +357 -0
- package/dist/types-ts4.5/components/inline.partial.d.ts +108 -0
- package/dist/types-ts4.5/components/stack.partial.d.ts +92 -0
- package/dist/types-ts4.5/components/surface-provider.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +6 -0
- package/examples/00-basic.tsx +22 -0
- package/examples/01-box.tsx +171 -0
- package/examples/02-text-advanced.tsx +20 -11
- package/examples/02-text.tsx +10 -15
- package/examples/03-stack.tsx +99 -0
- package/examples/04-inline.tsx +99 -0
- package/examples/05-badge.tsx +5 -9
- package/examples/06-section-message.tsx +4 -2
- package/examples/07-comment.tsx +3 -1
- package/examples/08-lozenge.tsx +4 -8
- package/examples/99-interactions.tsx +33 -49
- package/inline/package.json +15 -0
- package/package.json +5 -3
- package/report.api.md +465 -0
- package/scripts/codegen-styles.tsx +89 -16
- package/src/components/__tests__/unit/box.test.tsx +55 -0
- package/src/components/__tests__/unit/inline.test.tsx +43 -0
- package/src/components/__tests__/unit/interaction-suface.test.tsx +2 -2
- package/src/components/__tests__/unit/stack.test.tsx +31 -0
- package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-alignment-example-should-match-snapshot-1-snap.png +3 -0
- package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-spacing-example-should-match-snapshot-1-snap.png +3 -0
- package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-alignment-example-should-match-snapshot-1-snap.png +3 -0
- package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-spacing-example-should-match-snapshot-1-snap.png +3 -0
- package/src/components/__tests__/visual-regression/inline-snapshot-test.tsx +28 -0
- package/src/components/__tests__/visual-regression/stack-snapshot-test.tsx +28 -0
- package/src/components/__tests__/vr-tests/__snapshots__/box--default.png +0 -0
- package/src/components/__tests__/vr-tests/box-snapshot-test.vr.tsx +6 -0
- package/src/components/box.partial.tsx +706 -0
- package/src/components/inline.partial.tsx +218 -0
- package/src/components/stack.partial.tsx +174 -0
- package/src/components/surface-provider.tsx +1 -1
- package/src/index.tsx +6 -0
- package/stack/package.json +15 -0
- package/tmp/api-report-tmp.d.ts +451 -0
- package/tsconfig.app.json +0 -3
- package/tsconfig.dev.json +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/ds-explorations
|
|
2
2
|
|
|
3
|
+
## 2.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#41275](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41275) [`1fd49b30e7e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1fd49b30e7e) - Revert removal of Box, Inline, Stack entry-points.
|
|
8
|
+
|
|
3
9
|
## 2.3.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/box/package.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/ds-explorations/box",
|
|
3
|
+
"main": "../dist/cjs/components/box.partial.js",
|
|
4
|
+
"module": "../dist/esm/components/box.partial.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/components/box.partial.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/components/box.partial.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/components/box.partial.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,620 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = exports.Box = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = require("react");
|
|
11
|
+
var _react2 = require("@emotion/react");
|
|
12
|
+
var _constants = require("../constants");
|
|
13
|
+
var _surfaceProvider = require("./surface-provider");
|
|
14
|
+
var _excluded = ["children", "as", "className", "display", "flexDirection", "alignItems", "justifyContent", "backgroundColor", "borderColor", "borderStyle", "borderWidth", "borderRadius", "shadow", "layer", "padding", "paddingBlock", "paddingInline", "position", "height", "overflow", "width", "UNSAFE_style", "testId"];
|
|
15
|
+
/** @jsx jsx */
|
|
16
|
+
/**
|
|
17
|
+
* @private
|
|
18
|
+
* @deprecated DSP-8009: This type is scheduled for deletion.
|
|
19
|
+
* Please use `Box` from `@atlaskit/primitives` instead.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
// Without this type annotation on Box we don't get autocomplete for props due to forwardRef types
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* __Box__
|
|
26
|
+
*
|
|
27
|
+
* Box is a primitive component that has the design decisions of the Atlassian Design System baked in.
|
|
28
|
+
* Renders a `div` by default.
|
|
29
|
+
*
|
|
30
|
+
* @private
|
|
31
|
+
* @deprecated DSP-8009: This primitive is scheduled for deletion.
|
|
32
|
+
* Please use `Box` from `@atlaskit/primitives` instead.
|
|
33
|
+
*/
|
|
34
|
+
var Box = exports.Box = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
35
|
+
var children = _ref.children,
|
|
36
|
+
as = _ref.as,
|
|
37
|
+
className = _ref.className,
|
|
38
|
+
_ref$display = _ref.display,
|
|
39
|
+
display = _ref$display === void 0 ? 'flex' : _ref$display,
|
|
40
|
+
flexDirection = _ref.flexDirection,
|
|
41
|
+
alignItems = _ref.alignItems,
|
|
42
|
+
justifyContent = _ref.justifyContent,
|
|
43
|
+
backgroundColor = _ref.backgroundColor,
|
|
44
|
+
borderColor = _ref.borderColor,
|
|
45
|
+
borderStyle = _ref.borderStyle,
|
|
46
|
+
borderWidth = _ref.borderWidth,
|
|
47
|
+
borderRadius = _ref.borderRadius,
|
|
48
|
+
shadow = _ref.shadow,
|
|
49
|
+
layer = _ref.layer,
|
|
50
|
+
padding = _ref.padding,
|
|
51
|
+
paddingBlock = _ref.paddingBlock,
|
|
52
|
+
paddingInline = _ref.paddingInline,
|
|
53
|
+
_ref$position = _ref.position,
|
|
54
|
+
position = _ref$position === void 0 ? 'relative' : _ref$position,
|
|
55
|
+
height = _ref.height,
|
|
56
|
+
overflow = _ref.overflow,
|
|
57
|
+
width = _ref.width,
|
|
58
|
+
UNSAFE_style = _ref.UNSAFE_style,
|
|
59
|
+
testId = _ref.testId,
|
|
60
|
+
htmlAttributes = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
61
|
+
var Component = as || 'div';
|
|
62
|
+
var node = (0, _react2.jsx)(Component, (0, _extends2.default)({
|
|
63
|
+
style: UNSAFE_style,
|
|
64
|
+
ref: ref
|
|
65
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
66
|
+
}, htmlAttributes, {
|
|
67
|
+
className: className,
|
|
68
|
+
css: [baseStyles, display && displayMap[display], padding && paddingMap[padding], position && positionMap[position], paddingBlock && paddingBlockMap[paddingBlock], paddingInline && paddingInlineMap[paddingInline], alignItems && flexAlignItemsMap[alignItems], justifyContent && flexJustifyContentMap[justifyContent], backgroundColor && backgroundColorMap[backgroundColor], borderColor && borderColorMap[borderColor], borderStyle && borderStyleMap[borderStyle], borderWidth && borderWidthMap[borderWidth], borderRadius && borderRadiusMap[borderRadius], shadow && shadowMap[shadow], layer && layerMap[layer], flexDirection && flexDirectionMap[flexDirection], overflow && overflowMap[overflow], width && widthMap[width], height && heightMap[height]],
|
|
69
|
+
"data-testid": testId
|
|
70
|
+
}), children);
|
|
71
|
+
return backgroundColor ? (0, _react2.jsx)(_surfaceProvider.SurfaceContext.Provider, {
|
|
72
|
+
value: backgroundColor
|
|
73
|
+
}, node) : node;
|
|
74
|
+
});
|
|
75
|
+
Box.displayName = 'Box';
|
|
76
|
+
var _default = exports.default = Box; // <<< STYLES GO HERE >>>
|
|
77
|
+
var borderStyleMap = {
|
|
78
|
+
none: (0, _react2.css)({
|
|
79
|
+
borderStyle: 'none'
|
|
80
|
+
}),
|
|
81
|
+
solid: (0, _react2.css)({
|
|
82
|
+
borderStyle: 'solid'
|
|
83
|
+
}),
|
|
84
|
+
dashed: (0, _react2.css)({
|
|
85
|
+
borderStyle: 'dashed'
|
|
86
|
+
}),
|
|
87
|
+
dotted: (0, _react2.css)({
|
|
88
|
+
borderStyle: 'dotted'
|
|
89
|
+
})
|
|
90
|
+
};
|
|
91
|
+
var borderWidthMap = {
|
|
92
|
+
'0px': (0, _react2.css)({
|
|
93
|
+
borderWidth: '0px'
|
|
94
|
+
}),
|
|
95
|
+
'1px': (0, _react2.css)({
|
|
96
|
+
borderWidth: '1px'
|
|
97
|
+
}),
|
|
98
|
+
'2px': (0, _react2.css)({
|
|
99
|
+
borderWidth: '2px'
|
|
100
|
+
}),
|
|
101
|
+
'3px': (0, _react2.css)({
|
|
102
|
+
borderWidth: '3px'
|
|
103
|
+
})
|
|
104
|
+
};
|
|
105
|
+
var borderRadiusMap = {
|
|
106
|
+
normal: (0, _react2.css)({
|
|
107
|
+
borderRadius: '3px'
|
|
108
|
+
}),
|
|
109
|
+
rounded: (0, _react2.css)({
|
|
110
|
+
borderRadius: '50%'
|
|
111
|
+
}),
|
|
112
|
+
badge: (0, _react2.css)({
|
|
113
|
+
borderRadius: '8px'
|
|
114
|
+
})
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @experimental - this is likely to be removed
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
var flexDirectionMap = {
|
|
122
|
+
column: (0, _react2.css)({
|
|
123
|
+
flexDirection: 'column'
|
|
124
|
+
}),
|
|
125
|
+
row: (0, _react2.css)({
|
|
126
|
+
flexDirection: 'row'
|
|
127
|
+
})
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @experimental - this is likely to be removed
|
|
132
|
+
*/
|
|
133
|
+
|
|
134
|
+
var flexAlignItemsMap = {
|
|
135
|
+
center: (0, _react2.css)({
|
|
136
|
+
alignItems: 'center'
|
|
137
|
+
}),
|
|
138
|
+
baseline: (0, _react2.css)({
|
|
139
|
+
alignItems: 'baseline'
|
|
140
|
+
}),
|
|
141
|
+
flexStart: (0, _react2.css)({
|
|
142
|
+
alignItems: 'flex-start'
|
|
143
|
+
}),
|
|
144
|
+
flexEnd: (0, _react2.css)({
|
|
145
|
+
alignItems: 'flex-end'
|
|
146
|
+
}),
|
|
147
|
+
start: (0, _react2.css)({
|
|
148
|
+
alignItems: 'start'
|
|
149
|
+
}),
|
|
150
|
+
end: (0, _react2.css)({
|
|
151
|
+
alignItems: 'end'
|
|
152
|
+
})
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @experimental - this is likely to be removed
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
var flexJustifyContentMap = {
|
|
160
|
+
center: (0, _react2.css)({
|
|
161
|
+
justifyContent: 'center'
|
|
162
|
+
}),
|
|
163
|
+
flexStart: (0, _react2.css)({
|
|
164
|
+
justifyContent: 'flex-start'
|
|
165
|
+
}),
|
|
166
|
+
flexEnd: (0, _react2.css)({
|
|
167
|
+
justifyContent: 'flex-end'
|
|
168
|
+
}),
|
|
169
|
+
start: (0, _react2.css)({
|
|
170
|
+
justifyContent: 'start'
|
|
171
|
+
}),
|
|
172
|
+
end: (0, _react2.css)({
|
|
173
|
+
justifyContent: 'end'
|
|
174
|
+
})
|
|
175
|
+
};
|
|
176
|
+
var displayMap = {
|
|
177
|
+
block: (0, _react2.css)({
|
|
178
|
+
display: 'block'
|
|
179
|
+
}),
|
|
180
|
+
inline: (0, _react2.css)({
|
|
181
|
+
display: 'inline'
|
|
182
|
+
}),
|
|
183
|
+
flex: (0, _react2.css)({
|
|
184
|
+
display: 'flex'
|
|
185
|
+
}),
|
|
186
|
+
inlineFlex: (0, _react2.css)({
|
|
187
|
+
display: 'inline-flex'
|
|
188
|
+
}),
|
|
189
|
+
inlineBlock: (0, _react2.css)({
|
|
190
|
+
display: 'inline-block'
|
|
191
|
+
})
|
|
192
|
+
};
|
|
193
|
+
var positionMap = {
|
|
194
|
+
absolute: (0, _react2.css)({
|
|
195
|
+
position: 'absolute'
|
|
196
|
+
}),
|
|
197
|
+
fixed: (0, _react2.css)({
|
|
198
|
+
position: 'fixed'
|
|
199
|
+
}),
|
|
200
|
+
relative: (0, _react2.css)({
|
|
201
|
+
position: 'relative'
|
|
202
|
+
}),
|
|
203
|
+
static: (0, _react2.css)({
|
|
204
|
+
position: 'static'
|
|
205
|
+
})
|
|
206
|
+
};
|
|
207
|
+
var overflowMap = {
|
|
208
|
+
auto: (0, _react2.css)({
|
|
209
|
+
overflow: 'auto'
|
|
210
|
+
}),
|
|
211
|
+
hidden: (0, _react2.css)({
|
|
212
|
+
overflow: 'hidden'
|
|
213
|
+
})
|
|
214
|
+
};
|
|
215
|
+
var baseStyles = (0, _react2.css)({
|
|
216
|
+
boxSizing: 'border-box',
|
|
217
|
+
appearance: 'none',
|
|
218
|
+
border: 'none'
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
223
|
+
* @codegen <<SignedSource::327e769aaa3da9422a919a0ca9490070>>
|
|
224
|
+
* @codegenId dimensions
|
|
225
|
+
* @codegenCommand yarn codegen-styles
|
|
226
|
+
* @codegenParams ["width", "height"]
|
|
227
|
+
*/
|
|
228
|
+
var widthMap = {
|
|
229
|
+
'100%': (0, _react2.css)({
|
|
230
|
+
width: '100%'
|
|
231
|
+
}),
|
|
232
|
+
'size.100': (0, _react2.css)({
|
|
233
|
+
width: '16px'
|
|
234
|
+
}),
|
|
235
|
+
'size.1000': (0, _react2.css)({
|
|
236
|
+
width: '192px'
|
|
237
|
+
}),
|
|
238
|
+
'size.200': (0, _react2.css)({
|
|
239
|
+
width: '24px'
|
|
240
|
+
}),
|
|
241
|
+
'size.300': (0, _react2.css)({
|
|
242
|
+
width: '32px'
|
|
243
|
+
}),
|
|
244
|
+
'size.400': (0, _react2.css)({
|
|
245
|
+
width: '40px'
|
|
246
|
+
}),
|
|
247
|
+
'size.500': (0, _react2.css)({
|
|
248
|
+
width: '48px'
|
|
249
|
+
}),
|
|
250
|
+
'size.600': (0, _react2.css)({
|
|
251
|
+
width: '96px'
|
|
252
|
+
})
|
|
253
|
+
};
|
|
254
|
+
var heightMap = {
|
|
255
|
+
'100%': (0, _react2.css)({
|
|
256
|
+
height: '100%'
|
|
257
|
+
}),
|
|
258
|
+
'size.100': (0, _react2.css)({
|
|
259
|
+
height: '16px'
|
|
260
|
+
}),
|
|
261
|
+
'size.1000': (0, _react2.css)({
|
|
262
|
+
height: '192px'
|
|
263
|
+
}),
|
|
264
|
+
'size.200': (0, _react2.css)({
|
|
265
|
+
height: '24px'
|
|
266
|
+
}),
|
|
267
|
+
'size.300': (0, _react2.css)({
|
|
268
|
+
height: '32px'
|
|
269
|
+
}),
|
|
270
|
+
'size.400': (0, _react2.css)({
|
|
271
|
+
height: '40px'
|
|
272
|
+
}),
|
|
273
|
+
'size.500': (0, _react2.css)({
|
|
274
|
+
height: '48px'
|
|
275
|
+
}),
|
|
276
|
+
'size.600': (0, _react2.css)({
|
|
277
|
+
height: '96px'
|
|
278
|
+
})
|
|
279
|
+
};
|
|
280
|
+
/**
|
|
281
|
+
* @codegenEnd
|
|
282
|
+
*/
|
|
283
|
+
/**
|
|
284
|
+
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
285
|
+
* @codegen <<SignedSource::8aa9e47916dc6f6d72f32999f48fbd27>>
|
|
286
|
+
* @codegenId spacing
|
|
287
|
+
* @codegenCommand yarn codegen-styles
|
|
288
|
+
* @codegenParams ["padding", "paddingBlock", "paddingInline"]
|
|
289
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::298080e8024fb3eb37589721413e0156>>
|
|
290
|
+
*/
|
|
291
|
+
var paddingMap = {
|
|
292
|
+
'space.0': (0, _react2.css)({
|
|
293
|
+
padding: "var(--ds-space-0, 0px)"
|
|
294
|
+
}),
|
|
295
|
+
'space.025': (0, _react2.css)({
|
|
296
|
+
padding: "var(--ds-space-025, 2px)"
|
|
297
|
+
}),
|
|
298
|
+
'space.050': (0, _react2.css)({
|
|
299
|
+
padding: "var(--ds-space-050, 4px)"
|
|
300
|
+
}),
|
|
301
|
+
'space.075': (0, _react2.css)({
|
|
302
|
+
padding: "var(--ds-space-075, 6px)"
|
|
303
|
+
}),
|
|
304
|
+
'space.100': (0, _react2.css)({
|
|
305
|
+
padding: "var(--ds-space-100, 8px)"
|
|
306
|
+
}),
|
|
307
|
+
'space.1000': (0, _react2.css)({
|
|
308
|
+
padding: "var(--ds-space-1000, 80px)"
|
|
309
|
+
}),
|
|
310
|
+
'space.150': (0, _react2.css)({
|
|
311
|
+
padding: "var(--ds-space-150, 12px)"
|
|
312
|
+
}),
|
|
313
|
+
'space.200': (0, _react2.css)({
|
|
314
|
+
padding: "var(--ds-space-200, 16px)"
|
|
315
|
+
}),
|
|
316
|
+
'space.250': (0, _react2.css)({
|
|
317
|
+
padding: "var(--ds-space-250, 20px)"
|
|
318
|
+
}),
|
|
319
|
+
'space.300': (0, _react2.css)({
|
|
320
|
+
padding: "var(--ds-space-300, 24px)"
|
|
321
|
+
}),
|
|
322
|
+
'space.400': (0, _react2.css)({
|
|
323
|
+
padding: "var(--ds-space-400, 32px)"
|
|
324
|
+
}),
|
|
325
|
+
'space.500': (0, _react2.css)({
|
|
326
|
+
padding: "var(--ds-space-500, 40px)"
|
|
327
|
+
}),
|
|
328
|
+
'space.600': (0, _react2.css)({
|
|
329
|
+
padding: "var(--ds-space-600, 48px)"
|
|
330
|
+
}),
|
|
331
|
+
'space.800': (0, _react2.css)({
|
|
332
|
+
padding: "var(--ds-space-800, 64px)"
|
|
333
|
+
})
|
|
334
|
+
};
|
|
335
|
+
var paddingBlockMap = {
|
|
336
|
+
'space.0': (0, _react2.css)({
|
|
337
|
+
paddingBlock: "var(--ds-space-0, 0px)"
|
|
338
|
+
}),
|
|
339
|
+
'space.025': (0, _react2.css)({
|
|
340
|
+
paddingBlock: "var(--ds-space-025, 2px)"
|
|
341
|
+
}),
|
|
342
|
+
'space.050': (0, _react2.css)({
|
|
343
|
+
paddingBlock: "var(--ds-space-050, 4px)"
|
|
344
|
+
}),
|
|
345
|
+
'space.075': (0, _react2.css)({
|
|
346
|
+
paddingBlock: "var(--ds-space-075, 6px)"
|
|
347
|
+
}),
|
|
348
|
+
'space.100': (0, _react2.css)({
|
|
349
|
+
paddingBlock: "var(--ds-space-100, 8px)"
|
|
350
|
+
}),
|
|
351
|
+
'space.1000': (0, _react2.css)({
|
|
352
|
+
paddingBlock: "var(--ds-space-1000, 80px)"
|
|
353
|
+
}),
|
|
354
|
+
'space.150': (0, _react2.css)({
|
|
355
|
+
paddingBlock: "var(--ds-space-150, 12px)"
|
|
356
|
+
}),
|
|
357
|
+
'space.200': (0, _react2.css)({
|
|
358
|
+
paddingBlock: "var(--ds-space-200, 16px)"
|
|
359
|
+
}),
|
|
360
|
+
'space.250': (0, _react2.css)({
|
|
361
|
+
paddingBlock: "var(--ds-space-250, 20px)"
|
|
362
|
+
}),
|
|
363
|
+
'space.300': (0, _react2.css)({
|
|
364
|
+
paddingBlock: "var(--ds-space-300, 24px)"
|
|
365
|
+
}),
|
|
366
|
+
'space.400': (0, _react2.css)({
|
|
367
|
+
paddingBlock: "var(--ds-space-400, 32px)"
|
|
368
|
+
}),
|
|
369
|
+
'space.500': (0, _react2.css)({
|
|
370
|
+
paddingBlock: "var(--ds-space-500, 40px)"
|
|
371
|
+
}),
|
|
372
|
+
'space.600': (0, _react2.css)({
|
|
373
|
+
paddingBlock: "var(--ds-space-600, 48px)"
|
|
374
|
+
}),
|
|
375
|
+
'space.800': (0, _react2.css)({
|
|
376
|
+
paddingBlock: "var(--ds-space-800, 64px)"
|
|
377
|
+
})
|
|
378
|
+
};
|
|
379
|
+
var paddingInlineMap = {
|
|
380
|
+
'space.0': (0, _react2.css)({
|
|
381
|
+
paddingInline: "var(--ds-space-0, 0px)"
|
|
382
|
+
}),
|
|
383
|
+
'space.025': (0, _react2.css)({
|
|
384
|
+
paddingInline: "var(--ds-space-025, 2px)"
|
|
385
|
+
}),
|
|
386
|
+
'space.050': (0, _react2.css)({
|
|
387
|
+
paddingInline: "var(--ds-space-050, 4px)"
|
|
388
|
+
}),
|
|
389
|
+
'space.075': (0, _react2.css)({
|
|
390
|
+
paddingInline: "var(--ds-space-075, 6px)"
|
|
391
|
+
}),
|
|
392
|
+
'space.100': (0, _react2.css)({
|
|
393
|
+
paddingInline: "var(--ds-space-100, 8px)"
|
|
394
|
+
}),
|
|
395
|
+
'space.1000': (0, _react2.css)({
|
|
396
|
+
paddingInline: "var(--ds-space-1000, 80px)"
|
|
397
|
+
}),
|
|
398
|
+
'space.150': (0, _react2.css)({
|
|
399
|
+
paddingInline: "var(--ds-space-150, 12px)"
|
|
400
|
+
}),
|
|
401
|
+
'space.200': (0, _react2.css)({
|
|
402
|
+
paddingInline: "var(--ds-space-200, 16px)"
|
|
403
|
+
}),
|
|
404
|
+
'space.250': (0, _react2.css)({
|
|
405
|
+
paddingInline: "var(--ds-space-250, 20px)"
|
|
406
|
+
}),
|
|
407
|
+
'space.300': (0, _react2.css)({
|
|
408
|
+
paddingInline: "var(--ds-space-300, 24px)"
|
|
409
|
+
}),
|
|
410
|
+
'space.400': (0, _react2.css)({
|
|
411
|
+
paddingInline: "var(--ds-space-400, 32px)"
|
|
412
|
+
}),
|
|
413
|
+
'space.500': (0, _react2.css)({
|
|
414
|
+
paddingInline: "var(--ds-space-500, 40px)"
|
|
415
|
+
}),
|
|
416
|
+
'space.600': (0, _react2.css)({
|
|
417
|
+
paddingInline: "var(--ds-space-600, 48px)"
|
|
418
|
+
}),
|
|
419
|
+
'space.800': (0, _react2.css)({
|
|
420
|
+
paddingInline: "var(--ds-space-800, 64px)"
|
|
421
|
+
})
|
|
422
|
+
};
|
|
423
|
+
/**
|
|
424
|
+
* @codegenEnd
|
|
425
|
+
*/
|
|
426
|
+
/**
|
|
427
|
+
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
428
|
+
* @codegen <<SignedSource::1c951d1c65e5ffddea3f0a92075d4614>>
|
|
429
|
+
* @codegenId colors
|
|
430
|
+
* @codegenCommand yarn codegen-styles
|
|
431
|
+
* @codegenParams ["border", "background", "shadow"]
|
|
432
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::f6a616f7ea03ec40c148fc83050d073b>>
|
|
433
|
+
*/
|
|
434
|
+
var borderColorMap = {
|
|
435
|
+
'color.border': (0, _react2.css)({
|
|
436
|
+
borderColor: "var(--ds-border, #091e4221)"
|
|
437
|
+
}),
|
|
438
|
+
disabled: (0, _react2.css)({
|
|
439
|
+
borderColor: "var(--ds-border-disabled, #FAFBFC)"
|
|
440
|
+
}),
|
|
441
|
+
focused: (0, _react2.css)({
|
|
442
|
+
borderColor: "var(--ds-border-focused, #2684FF)"
|
|
443
|
+
}),
|
|
444
|
+
input: (0, _react2.css)({
|
|
445
|
+
borderColor: "var(--ds-border-input, #FAFBFC)"
|
|
446
|
+
}),
|
|
447
|
+
inverse: (0, _react2.css)({
|
|
448
|
+
borderColor: "var(--ds-border-inverse, #FFFFFF)"
|
|
449
|
+
}),
|
|
450
|
+
selected: (0, _react2.css)({
|
|
451
|
+
borderColor: "var(--ds-border-selected, #0052CC)"
|
|
452
|
+
}),
|
|
453
|
+
brand: (0, _react2.css)({
|
|
454
|
+
borderColor: "var(--ds-border-brand, #0052CC)"
|
|
455
|
+
}),
|
|
456
|
+
danger: (0, _react2.css)({
|
|
457
|
+
borderColor: "var(--ds-border-danger, #FF5630)"
|
|
458
|
+
}),
|
|
459
|
+
warning: (0, _react2.css)({
|
|
460
|
+
borderColor: "var(--ds-border-warning, #FFC400)"
|
|
461
|
+
}),
|
|
462
|
+
success: (0, _react2.css)({
|
|
463
|
+
borderColor: "var(--ds-border-success, #00875A)"
|
|
464
|
+
}),
|
|
465
|
+
discovery: (0, _react2.css)({
|
|
466
|
+
borderColor: "var(--ds-border-discovery, #998DD9)"
|
|
467
|
+
}),
|
|
468
|
+
information: (0, _react2.css)({
|
|
469
|
+
borderColor: "var(--ds-border-information, #0065FF)"
|
|
470
|
+
}),
|
|
471
|
+
bold: (0, _react2.css)({
|
|
472
|
+
borderColor: "var(--ds-border-bold, #344563)"
|
|
473
|
+
})
|
|
474
|
+
};
|
|
475
|
+
var backgroundColorMap = {
|
|
476
|
+
disabled: (0, _react2.css)({
|
|
477
|
+
backgroundColor: "var(--ds-background-disabled, #091e4289)"
|
|
478
|
+
}),
|
|
479
|
+
input: (0, _react2.css)({
|
|
480
|
+
backgroundColor: "var(--ds-background-input, #FAFBFC)"
|
|
481
|
+
}),
|
|
482
|
+
'inverse.subtle': (0, _react2.css)({
|
|
483
|
+
backgroundColor: "var(--ds-background-inverse-subtle, #00000029)"
|
|
484
|
+
}),
|
|
485
|
+
neutral: (0, _react2.css)({
|
|
486
|
+
backgroundColor: "var(--ds-background-neutral, #DFE1E6)"
|
|
487
|
+
}),
|
|
488
|
+
'neutral.subtle': (0, _react2.css)({
|
|
489
|
+
backgroundColor: "var(--ds-background-neutral-subtle, transparent)"
|
|
490
|
+
}),
|
|
491
|
+
'neutral.bold': (0, _react2.css)({
|
|
492
|
+
backgroundColor: "var(--ds-background-neutral-bold, #42526E)"
|
|
493
|
+
}),
|
|
494
|
+
selected: (0, _react2.css)({
|
|
495
|
+
backgroundColor: "var(--ds-background-selected, #DEEBFF)"
|
|
496
|
+
}),
|
|
497
|
+
'selected.bold': (0, _react2.css)({
|
|
498
|
+
backgroundColor: "var(--ds-background-selected-bold, #0052CC)"
|
|
499
|
+
}),
|
|
500
|
+
'brand.subtlest': (0, _react2.css)({
|
|
501
|
+
backgroundColor: "var(--ds-background-brand-subtlest, #B3D4FF)"
|
|
502
|
+
}),
|
|
503
|
+
'brand.bold': (0, _react2.css)({
|
|
504
|
+
backgroundColor: "var(--ds-background-brand-bold, #0052CC)"
|
|
505
|
+
}),
|
|
506
|
+
'brand.boldest': (0, _react2.css)({
|
|
507
|
+
backgroundColor: "var(--ds-background-brand-boldest, #0747A6)"
|
|
508
|
+
}),
|
|
509
|
+
danger: (0, _react2.css)({
|
|
510
|
+
backgroundColor: "var(--ds-background-danger, #FFEBE6)"
|
|
511
|
+
}),
|
|
512
|
+
'danger.bold': (0, _react2.css)({
|
|
513
|
+
backgroundColor: "var(--ds-background-danger-bold, #DE350B)"
|
|
514
|
+
}),
|
|
515
|
+
warning: (0, _react2.css)({
|
|
516
|
+
backgroundColor: "var(--ds-background-warning, #FFFAE6)"
|
|
517
|
+
}),
|
|
518
|
+
'warning.bold': (0, _react2.css)({
|
|
519
|
+
backgroundColor: "var(--ds-background-warning-bold, #FFAB00)"
|
|
520
|
+
}),
|
|
521
|
+
success: (0, _react2.css)({
|
|
522
|
+
backgroundColor: "var(--ds-background-success, #E3FCEF)"
|
|
523
|
+
}),
|
|
524
|
+
'success.bold': (0, _react2.css)({
|
|
525
|
+
backgroundColor: "var(--ds-background-success-bold, #00875A)"
|
|
526
|
+
}),
|
|
527
|
+
discovery: (0, _react2.css)({
|
|
528
|
+
backgroundColor: "var(--ds-background-discovery, #EAE6FF)"
|
|
529
|
+
}),
|
|
530
|
+
'discovery.bold': (0, _react2.css)({
|
|
531
|
+
backgroundColor: "var(--ds-background-discovery-bold, #5243AA)"
|
|
532
|
+
}),
|
|
533
|
+
information: (0, _react2.css)({
|
|
534
|
+
backgroundColor: "var(--ds-background-information, #DEEBFF)"
|
|
535
|
+
}),
|
|
536
|
+
'information.bold': (0, _react2.css)({
|
|
537
|
+
backgroundColor: "var(--ds-background-information-bold, #0052CC)"
|
|
538
|
+
}),
|
|
539
|
+
'color.blanket': (0, _react2.css)({
|
|
540
|
+
backgroundColor: "var(--ds-blanket, #091e4289)"
|
|
541
|
+
}),
|
|
542
|
+
'color.blanket.selected': (0, _react2.css)({
|
|
543
|
+
backgroundColor: "var(--ds-blanket-selected, #388BFF14)"
|
|
544
|
+
}),
|
|
545
|
+
'color.blanket.danger': (0, _react2.css)({
|
|
546
|
+
backgroundColor: "var(--ds-blanket-danger, #EF5C4814)"
|
|
547
|
+
}),
|
|
548
|
+
'elevation.surface': (0, _react2.css)({
|
|
549
|
+
backgroundColor: "var(--ds-surface, #FFFFFF)"
|
|
550
|
+
}),
|
|
551
|
+
'elevation.surface.overlay': (0, _react2.css)({
|
|
552
|
+
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)"
|
|
553
|
+
}),
|
|
554
|
+
'elevation.surface.raised': (0, _react2.css)({
|
|
555
|
+
backgroundColor: "var(--ds-surface-raised, #FFFFFF)"
|
|
556
|
+
}),
|
|
557
|
+
'elevation.surface.sunken': (0, _react2.css)({
|
|
558
|
+
backgroundColor: "var(--ds-surface-sunken, #F4F5F7)"
|
|
559
|
+
})
|
|
560
|
+
};
|
|
561
|
+
var shadowMap = {
|
|
562
|
+
overflow: (0, _react2.css)({
|
|
563
|
+
boxShadow: "var(--ds-shadow-overflow, 0px 0px 8px #091e423f, 0px 0px 1px #091e424f)"
|
|
564
|
+
}),
|
|
565
|
+
'overflow.perimeter': (0, _react2.css)({
|
|
566
|
+
boxShadow: "var(--ds-shadow-overflow-perimeter, #091e421f)"
|
|
567
|
+
}),
|
|
568
|
+
'overflow.spread': (0, _react2.css)({
|
|
569
|
+
boxShadow: "var(--ds-shadow-overflow-spread, #091e4229)"
|
|
570
|
+
}),
|
|
571
|
+
overlay: (0, _react2.css)({
|
|
572
|
+
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091e423f, 0px 0px 1px #091e424f)"
|
|
573
|
+
}),
|
|
574
|
+
raised: (0, _react2.css)({
|
|
575
|
+
boxShadow: "var(--ds-shadow-raised, 0px 1px 1px #091e423f, 0px 0px 1px #091e4221)"
|
|
576
|
+
})
|
|
577
|
+
};
|
|
578
|
+
/**
|
|
579
|
+
* @codegenEnd
|
|
580
|
+
*/
|
|
581
|
+
/**
|
|
582
|
+
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
583
|
+
* @codegen <<SignedSource::bacbea271b30ec7d2f61306c9a8a9e63>>
|
|
584
|
+
* @codegenId misc
|
|
585
|
+
* @codegenCommand yarn codegen-styles
|
|
586
|
+
* @codegenParams ["layer"]
|
|
587
|
+
*/
|
|
588
|
+
var layerMap = {
|
|
589
|
+
card: (0, _react2.css)({
|
|
590
|
+
zIndex: _constants.LAYERS['card']
|
|
591
|
+
}),
|
|
592
|
+
navigation: (0, _react2.css)({
|
|
593
|
+
zIndex: _constants.LAYERS['navigation']
|
|
594
|
+
}),
|
|
595
|
+
dialog: (0, _react2.css)({
|
|
596
|
+
zIndex: _constants.LAYERS['dialog']
|
|
597
|
+
}),
|
|
598
|
+
layer: (0, _react2.css)({
|
|
599
|
+
zIndex: _constants.LAYERS['layer']
|
|
600
|
+
}),
|
|
601
|
+
blanket: (0, _react2.css)({
|
|
602
|
+
zIndex: _constants.LAYERS['blanket']
|
|
603
|
+
}),
|
|
604
|
+
modal: (0, _react2.css)({
|
|
605
|
+
zIndex: _constants.LAYERS['modal']
|
|
606
|
+
}),
|
|
607
|
+
flag: (0, _react2.css)({
|
|
608
|
+
zIndex: _constants.LAYERS['flag']
|
|
609
|
+
}),
|
|
610
|
+
spotlight: (0, _react2.css)({
|
|
611
|
+
zIndex: _constants.LAYERS['spotlight']
|
|
612
|
+
}),
|
|
613
|
+
tooltip: (0, _react2.css)({
|
|
614
|
+
zIndex: _constants.LAYERS['tooltip']
|
|
615
|
+
})
|
|
616
|
+
};
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* @codegenEnd
|
|
620
|
+
*/
|