@atlaskit/ds-explorations 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/cjs/components/box.partial.js +62 -71
- package/dist/cjs/components/inline.partial.js +12 -16
- package/dist/cjs/components/interaction-surface.partial.js +35 -40
- package/dist/cjs/components/stack.partial.js +11 -13
- package/dist/cjs/components/surface-provider.js +1 -5
- package/dist/cjs/components/text.partial.js +34 -47
- package/dist/cjs/index.js +0 -6
- package/dist/cjs/internal/color-map.js +5 -6
- package/dist/cjs/internal/role-to-element.js +0 -1
- package/dist/cjs/internal/spacing-scale.js +0 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/box.partial.js +40 -39
- package/dist/es2019/components/inline.partial.js +5 -6
- package/dist/es2019/components/interaction-surface.partial.js +33 -34
- package/dist/es2019/components/stack.partial.js +5 -4
- package/dist/es2019/components/surface-provider.js +1 -2
- package/dist/es2019/components/text.partial.js +21 -25
- package/dist/es2019/internal/color-map.js +5 -5
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/box.partial.js +65 -65
- package/dist/esm/components/inline.partial.js +12 -13
- package/dist/esm/components/interaction-surface.partial.js +35 -36
- package/dist/esm/components/stack.partial.js +11 -10
- package/dist/esm/components/surface-provider.js +1 -2
- package/dist/esm/components/text.partial.js +35 -41
- package/dist/esm/internal/color-map.js +5 -5
- package/dist/esm/version.json +1 -1
- package/dist/types/components/box.partial.d.ts +14 -14
- package/dist/types/components/inline.partial.d.ts +2 -2
- package/dist/types/components/interaction-surface.partial.d.ts +3 -3
- package/dist/types/components/stack.partial.d.ts +2 -2
- package/dist/types/components/surface-provider.d.ts +2 -2
- package/dist/types/components/text.partial.d.ts +7 -7
- package/dist/types/internal/color-map.d.ts +5 -5
- package/package.json +2 -2
- package/report.api.md +16 -16
- package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +49 -49
- package/src/components/box.partial.tsx +33 -33
- package/src/components/inline.partial.tsx +2 -2
- package/src/components/interaction-surface.partial.tsx +22 -22
- package/src/components/stack.partial.tsx +2 -2
- package/src/components/text.partial.tsx +13 -13
- package/src/internal/color-map.tsx +5 -5
- package/tmp/api-report-tmp.d.ts +16 -16
|
@@ -1,24 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
-
|
|
12
9
|
var _react = require("react");
|
|
13
|
-
|
|
14
10
|
var _react2 = require("@emotion/react");
|
|
15
|
-
|
|
16
11
|
var _tinyInvariant = _interopRequireDefault(require("tiny-invariant"));
|
|
17
|
-
|
|
18
12
|
var _colorMap = _interopRequireDefault(require("../internal/color-map"));
|
|
19
|
-
|
|
20
13
|
var _surfaceProvider = require("./surface-provider");
|
|
21
|
-
|
|
22
14
|
var _excluded = ["children"];
|
|
23
15
|
var asAllowlist = ['span', 'div', 'p', 'strong'];
|
|
24
16
|
var textAlignMap = {
|
|
@@ -64,27 +56,26 @@ var truncateStyles = (0, _react2.css)({
|
|
|
64
56
|
textOverflow: 'ellipsis',
|
|
65
57
|
whiteSpace: 'nowrap'
|
|
66
58
|
});
|
|
59
|
+
|
|
67
60
|
/**
|
|
68
61
|
* Custom hook designed to abstract the parsing of the color props and make it clearer in the future how color is reconciled between themes and tokens.
|
|
69
62
|
*/
|
|
70
|
-
|
|
71
63
|
var useColor = function useColor(colorProp) {
|
|
72
64
|
var surface = (0, _surfaceProvider.useSurface)();
|
|
73
65
|
var inverseTextColor = _colorMap.default[surface];
|
|
66
|
+
|
|
74
67
|
/**
|
|
75
68
|
* Where the color of the surface is inverted we override the user choice
|
|
76
69
|
* as there is no valid choice that is not covered by the override.
|
|
77
70
|
*/
|
|
78
|
-
|
|
79
71
|
var color = inverseTextColor !== null && inverseTextColor !== void 0 ? inverseTextColor : colorProp;
|
|
80
72
|
return color;
|
|
81
73
|
};
|
|
82
|
-
|
|
83
74
|
var HasTextAncestorContext = /*#__PURE__*/(0, _react.createContext)(false);
|
|
84
|
-
|
|
85
75
|
var useHasTextAncestor = function useHasTextAncestor() {
|
|
86
76
|
return (0, _react.useContext)(HasTextAncestorContext);
|
|
87
77
|
};
|
|
78
|
+
|
|
88
79
|
/**
|
|
89
80
|
* __Text__
|
|
90
81
|
*
|
|
@@ -94,59 +85,55 @@ var useHasTextAncestor = function useHasTextAncestor() {
|
|
|
94
85
|
*
|
|
95
86
|
* @internal
|
|
96
87
|
*/
|
|
97
|
-
|
|
98
|
-
|
|
99
88
|
var Text = function Text(_ref) {
|
|
100
89
|
var children = _ref.children,
|
|
101
|
-
|
|
90
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
102
91
|
var _props$as = props.as,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
92
|
+
Component = _props$as === void 0 ? 'span' : _props$as,
|
|
93
|
+
colorProp = props.color,
|
|
94
|
+
fontSize = props.fontSize,
|
|
95
|
+
fontWeight = props.fontWeight,
|
|
96
|
+
lineHeight = props.lineHeight,
|
|
97
|
+
_props$shouldTruncate = props.shouldTruncate,
|
|
98
|
+
shouldTruncate = _props$shouldTruncate === void 0 ? false : _props$shouldTruncate,
|
|
99
|
+
textAlign = props.textAlign,
|
|
100
|
+
textTransform = props.textTransform,
|
|
101
|
+
verticalAlign = props.verticalAlign,
|
|
102
|
+
testId = props.testId,
|
|
103
|
+
UNSAFE_style = props.UNSAFE_style,
|
|
104
|
+
id = props.id;
|
|
116
105
|
(0, _tinyInvariant.default)(asAllowlist.includes(Component), "@atlaskit/ds-explorations: Text received an invalid \"as\" value of \"".concat(Component, "\""));
|
|
117
106
|
var color = useColor(colorProp);
|
|
118
107
|
var isWrapped = useHasTextAncestor();
|
|
108
|
+
|
|
119
109
|
/**
|
|
120
110
|
* If the text is already wrapped and applies no props we can just
|
|
121
111
|
* render the children directly as a fragment.
|
|
122
112
|
*/
|
|
123
|
-
|
|
124
113
|
if (isWrapped && Object.keys(props).length === 0) {
|
|
125
114
|
return (0, _react2.jsx)(_react.Fragment, null, children);
|
|
126
115
|
}
|
|
127
|
-
|
|
128
116
|
var component = (0, _react2.jsx)(Component, {
|
|
129
117
|
style: UNSAFE_style,
|
|
130
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]],
|
|
131
119
|
"data-testid": testId,
|
|
132
120
|
id: id
|
|
133
121
|
}, children);
|
|
134
|
-
return isWrapped ?
|
|
122
|
+
return isWrapped ?
|
|
123
|
+
// no need to re-apply context if the text is already wrapped
|
|
135
124
|
component : (0, _react2.jsx)(HasTextAncestorContext.Provider, {
|
|
136
125
|
value: true
|
|
137
126
|
}, component);
|
|
138
127
|
};
|
|
139
|
-
|
|
140
128
|
var _default = Text;
|
|
141
129
|
/**
|
|
142
130
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
143
|
-
* @codegen <<SignedSource::
|
|
131
|
+
* @codegen <<SignedSource::9f746e797b8b5262d58b40dfecb39e6d>>
|
|
144
132
|
* @codegenId typography
|
|
145
133
|
* @codegenCommand yarn codegen-styles
|
|
146
134
|
* @codegenParams ["fontSize", "fontWeight", "fontFamily", "lineHeight"]
|
|
147
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::
|
|
135
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-typography.tsx <<SignedSource::e6bf70c53b8eecdb84ae4c79966537e3>>
|
|
148
136
|
*/
|
|
149
|
-
|
|
150
137
|
exports.default = _default;
|
|
151
138
|
var fontSizeMap = {
|
|
152
139
|
'size.050': (0, _react2.css)({
|
|
@@ -216,41 +203,34 @@ var lineHeightMap = {
|
|
|
216
203
|
lineHeight: "var(--ds-font-lineHeight-600, 40px)"
|
|
217
204
|
})
|
|
218
205
|
};
|
|
219
|
-
|
|
220
206
|
/**
|
|
221
207
|
* @codegenEnd
|
|
222
208
|
*/
|
|
223
209
|
|
|
224
210
|
/**
|
|
225
211
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
226
|
-
* @codegen <<SignedSource::
|
|
212
|
+
* @codegen <<SignedSource::3780858df77f5fe0c6e0f39a4c989741>>
|
|
227
213
|
* @codegenId colors
|
|
228
214
|
* @codegenCommand yarn codegen-styles
|
|
229
215
|
* @codegenParams ["text"]
|
|
230
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
216
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::10aa7e87eca39e4d6594a764e78e0698>>
|
|
231
217
|
*/
|
|
232
218
|
var textColorMap = {
|
|
233
219
|
'color.text': (0, _react2.css)({
|
|
234
220
|
color: "var(--ds-text, #172B4D)"
|
|
235
221
|
}),
|
|
236
|
-
subtle: (0, _react2.css)({
|
|
237
|
-
color: "var(--ds-text-subtle, #42526E)"
|
|
238
|
-
}),
|
|
239
|
-
subtlest: (0, _react2.css)({
|
|
240
|
-
color: "var(--ds-text-subtlest, #7A869A)"
|
|
241
|
-
}),
|
|
242
222
|
disabled: (0, _react2.css)({
|
|
243
223
|
color: "var(--ds-text-disabled, #A5ADBA)"
|
|
244
224
|
}),
|
|
245
225
|
inverse: (0, _react2.css)({
|
|
246
226
|
color: "var(--ds-text-inverse, #FFFFFF)"
|
|
247
227
|
}),
|
|
248
|
-
brand: (0, _react2.css)({
|
|
249
|
-
color: "var(--ds-text-brand, #0065FF)"
|
|
250
|
-
}),
|
|
251
228
|
selected: (0, _react2.css)({
|
|
252
229
|
color: "var(--ds-text-selected, #0052CC)"
|
|
253
230
|
}),
|
|
231
|
+
brand: (0, _react2.css)({
|
|
232
|
+
color: "var(--ds-text-brand, #0065FF)"
|
|
233
|
+
}),
|
|
254
234
|
danger: (0, _react2.css)({
|
|
255
235
|
color: "var(--ds-text-danger, #DE350B)"
|
|
256
236
|
}),
|
|
@@ -268,8 +248,15 @@ var textColorMap = {
|
|
|
268
248
|
}),
|
|
269
249
|
information: (0, _react2.css)({
|
|
270
250
|
color: "var(--ds-text-information, #0052CC)"
|
|
251
|
+
}),
|
|
252
|
+
subtlest: (0, _react2.css)({
|
|
253
|
+
color: "var(--ds-text-subtlest, #7A869A)"
|
|
254
|
+
}),
|
|
255
|
+
subtle: (0, _react2.css)({
|
|
256
|
+
color: "var(--ds-text-subtle, #42526E)"
|
|
271
257
|
})
|
|
272
258
|
};
|
|
259
|
+
|
|
273
260
|
/**
|
|
274
261
|
* @codegenEnd
|
|
275
262
|
*/
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -35,13 +34,8 @@ Object.defineProperty(exports, "UNSAFE_Text", {
|
|
|
35
34
|
return _text.default;
|
|
36
35
|
}
|
|
37
36
|
});
|
|
38
|
-
|
|
39
37
|
var _box = _interopRequireDefault(require("./components/box.partial"));
|
|
40
|
-
|
|
41
38
|
var _text = _interopRequireDefault(require("./components/text.partial"));
|
|
42
|
-
|
|
43
39
|
var _inline = _interopRequireDefault(require("./components/inline.partial"));
|
|
44
|
-
|
|
45
40
|
var _stack = _interopRequireDefault(require("./components/stack.partial"));
|
|
46
|
-
|
|
47
41
|
var _interactionSurface = _interopRequireDefault(require("./components/interaction-surface.partial"));
|
|
@@ -4,26 +4,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
/**
|
|
9
8
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
10
9
|
*
|
|
11
10
|
* The color map is used to map a background color token to a matching text color that will meet contrast.
|
|
12
11
|
*
|
|
13
|
-
* @codegen <<SignedSource::
|
|
12
|
+
* @codegen <<SignedSource::d168519874a16bbb92cfbfd4747a39b4>>
|
|
14
13
|
* @codegenCommand yarn codegen-styles
|
|
15
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
14
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::10aa7e87eca39e4d6594a764e78e0698>>
|
|
16
15
|
*/
|
|
17
16
|
var _default = {
|
|
18
17
|
'neutral.bold': 'inverse',
|
|
19
18
|
'neutral.bold.hovered': 'inverse',
|
|
20
19
|
'neutral.bold.pressed': 'inverse',
|
|
21
|
-
'brand.bold': 'inverse',
|
|
22
|
-
'brand.bold.hovered': 'inverse',
|
|
23
|
-
'brand.bold.pressed': 'inverse',
|
|
24
20
|
'selected.bold': 'inverse',
|
|
25
21
|
'selected.bold.hovered': 'inverse',
|
|
26
22
|
'selected.bold.pressed': 'inverse',
|
|
23
|
+
'brand.bold': 'inverse',
|
|
24
|
+
'brand.bold.hovered': 'inverse',
|
|
25
|
+
'brand.bold.pressed': 'inverse',
|
|
27
26
|
'danger.bold': 'inverse',
|
|
28
27
|
'danger.bold.hovered': 'inverse',
|
|
29
28
|
'danger.bold.pressed': 'inverse',
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { forwardRef } from 'react';
|
|
5
4
|
import { css, jsx } from '@emotion/react';
|
|
6
5
|
import { LAYERS } from '../constants';
|
|
7
6
|
import { SurfaceContext } from './surface-provider';
|
|
8
|
-
|
|
9
7
|
/**
|
|
10
8
|
* __Box__
|
|
11
9
|
*
|
|
@@ -43,8 +41,8 @@ export const Box = /*#__PURE__*/forwardRef(({
|
|
|
43
41
|
const Component = as || 'div';
|
|
44
42
|
const node = jsx(Component, _extends({
|
|
45
43
|
style: UNSAFE_style,
|
|
46
|
-
ref: ref
|
|
47
|
-
|
|
44
|
+
ref: ref
|
|
45
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
48
46
|
}, htmlAttributes, {
|
|
49
47
|
className: className,
|
|
50
48
|
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]],
|
|
@@ -55,7 +53,9 @@ export const Box = /*#__PURE__*/forwardRef(({
|
|
|
55
53
|
}, node) : node;
|
|
56
54
|
});
|
|
57
55
|
Box.displayName = 'Box';
|
|
58
|
-
export default Box;
|
|
56
|
+
export default Box;
|
|
57
|
+
|
|
58
|
+
// <<< STYLES GO HERE >>>
|
|
59
59
|
|
|
60
60
|
const borderStyleMap = {
|
|
61
61
|
none: css({
|
|
@@ -96,6 +96,7 @@ const borderRadiusMap = {
|
|
|
96
96
|
borderRadius: '8px'
|
|
97
97
|
})
|
|
98
98
|
};
|
|
99
|
+
|
|
99
100
|
/**
|
|
100
101
|
* @experimental - this is likely to be removed
|
|
101
102
|
*/
|
|
@@ -108,6 +109,7 @@ const flexDirectionMap = {
|
|
|
108
109
|
flexDirection: 'row'
|
|
109
110
|
})
|
|
110
111
|
};
|
|
112
|
+
|
|
111
113
|
/**
|
|
112
114
|
* @experimental - this is likely to be removed
|
|
113
115
|
*/
|
|
@@ -132,6 +134,7 @@ const flexAlignItemsMap = {
|
|
|
132
134
|
alignItems: 'end'
|
|
133
135
|
})
|
|
134
136
|
};
|
|
137
|
+
|
|
135
138
|
/**
|
|
136
139
|
* @experimental - this is likely to be removed
|
|
137
140
|
*/
|
|
@@ -197,6 +200,7 @@ const baseStyles = css({
|
|
|
197
200
|
appearance: 'none',
|
|
198
201
|
border: 'none'
|
|
199
202
|
});
|
|
203
|
+
|
|
200
204
|
/**
|
|
201
205
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
202
206
|
* @codegen <<SignedSource::327e769aaa3da9422a919a0ca9490070>>
|
|
@@ -204,7 +208,6 @@ const baseStyles = css({
|
|
|
204
208
|
* @codegenCommand yarn codegen-styles
|
|
205
209
|
* @codegenParams ["width", "height"]
|
|
206
210
|
*/
|
|
207
|
-
|
|
208
211
|
const widthMap = {
|
|
209
212
|
'100%': css({
|
|
210
213
|
width: '100%'
|
|
@@ -257,18 +260,17 @@ const heightMap = {
|
|
|
257
260
|
height: '96px'
|
|
258
261
|
})
|
|
259
262
|
};
|
|
260
|
-
|
|
261
263
|
/**
|
|
262
264
|
* @codegenEnd
|
|
263
265
|
*/
|
|
264
266
|
|
|
265
267
|
/**
|
|
266
268
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
267
|
-
* @codegen <<SignedSource::
|
|
269
|
+
* @codegen <<SignedSource::dd066079dac7b8cd6f947965a2f1a744>>
|
|
268
270
|
* @codegenId spacing
|
|
269
271
|
* @codegenCommand yarn codegen-styles
|
|
270
272
|
* @codegenParams ["padding", "paddingBlock", "paddingInline"]
|
|
271
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::
|
|
273
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::b0b8f1a822ed84e0407ad83e6fda5a1c>>
|
|
272
274
|
*/
|
|
273
275
|
const paddingMap = {
|
|
274
276
|
'space.0': css({
|
|
@@ -402,28 +404,24 @@ const paddingInlineMap = {
|
|
|
402
404
|
paddingInline: "var(--ds-space-800, 64px)"
|
|
403
405
|
})
|
|
404
406
|
};
|
|
405
|
-
|
|
406
407
|
/**
|
|
407
408
|
* @codegenEnd
|
|
408
409
|
*/
|
|
409
410
|
|
|
410
411
|
/**
|
|
411
412
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
412
|
-
* @codegen <<SignedSource::
|
|
413
|
+
* @codegen <<SignedSource::514663609a5a48a284de40c5c4ad200b>>
|
|
413
414
|
* @codegenId colors
|
|
414
415
|
* @codegenCommand yarn codegen-styles
|
|
415
416
|
* @codegenParams ["border", "background", "shadow"]
|
|
416
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
417
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::10aa7e87eca39e4d6594a764e78e0698>>
|
|
417
418
|
*/
|
|
418
419
|
const borderColorMap = {
|
|
419
420
|
'color.border': css({
|
|
420
421
|
borderColor: "var(--ds-border, #091e4221)"
|
|
421
422
|
}),
|
|
422
|
-
|
|
423
|
-
borderColor: "var(--ds-border-
|
|
424
|
-
}),
|
|
425
|
-
inverse: css({
|
|
426
|
-
borderColor: "var(--ds-border-inverse, #FFFFFF)"
|
|
423
|
+
disabled: css({
|
|
424
|
+
borderColor: "var(--ds-border-disabled, #FAFBFC)"
|
|
427
425
|
}),
|
|
428
426
|
focused: css({
|
|
429
427
|
borderColor: "var(--ds-border-focused, #4C9AFF)"
|
|
@@ -431,15 +429,15 @@ const borderColorMap = {
|
|
|
431
429
|
input: css({
|
|
432
430
|
borderColor: "var(--ds-border-input, #FAFBFC)"
|
|
433
431
|
}),
|
|
434
|
-
|
|
435
|
-
borderColor: "var(--ds-border-
|
|
436
|
-
}),
|
|
437
|
-
brand: css({
|
|
438
|
-
borderColor: "var(--ds-border-brand, #0052CC)"
|
|
432
|
+
inverse: css({
|
|
433
|
+
borderColor: "var(--ds-border-inverse, #FFFFFF)"
|
|
439
434
|
}),
|
|
440
435
|
selected: css({
|
|
441
436
|
borderColor: "var(--ds-border-selected, #0052CC)"
|
|
442
437
|
}),
|
|
438
|
+
brand: css({
|
|
439
|
+
borderColor: "var(--ds-border-brand, #0052CC)"
|
|
440
|
+
}),
|
|
443
441
|
danger: css({
|
|
444
442
|
borderColor: "var(--ds-border-danger, #FF5630)"
|
|
445
443
|
}),
|
|
@@ -454,18 +452,21 @@ const borderColorMap = {
|
|
|
454
452
|
}),
|
|
455
453
|
information: css({
|
|
456
454
|
borderColor: "var(--ds-border-information, #0065FF)"
|
|
455
|
+
}),
|
|
456
|
+
bold: css({
|
|
457
|
+
borderColor: "var(--ds-border-bold, #344563)"
|
|
457
458
|
})
|
|
458
459
|
};
|
|
459
460
|
const backgroundColorMap = {
|
|
460
461
|
disabled: css({
|
|
461
462
|
backgroundColor: "var(--ds-background-disabled, #091e4289)"
|
|
462
463
|
}),
|
|
463
|
-
'inverse.subtle': css({
|
|
464
|
-
backgroundColor: "var(--ds-background-inverse-subtle, #00000029)"
|
|
465
|
-
}),
|
|
466
464
|
input: css({
|
|
467
465
|
backgroundColor: "var(--ds-background-input, #FAFBFC)"
|
|
468
466
|
}),
|
|
467
|
+
'inverse.subtle': css({
|
|
468
|
+
backgroundColor: "var(--ds-background-inverse-subtle, #00000029)"
|
|
469
|
+
}),
|
|
469
470
|
neutral: css({
|
|
470
471
|
backgroundColor: "var(--ds-background-neutral, #DFE1E6)"
|
|
471
472
|
}),
|
|
@@ -475,15 +476,15 @@ const backgroundColorMap = {
|
|
|
475
476
|
'neutral.bold': css({
|
|
476
477
|
backgroundColor: "var(--ds-background-neutral-bold, #42526E)"
|
|
477
478
|
}),
|
|
478
|
-
'brand.bold': css({
|
|
479
|
-
backgroundColor: "var(--ds-background-brand-bold, #0052CC)"
|
|
480
|
-
}),
|
|
481
479
|
selected: css({
|
|
482
480
|
backgroundColor: "var(--ds-background-selected, #DEEBFF)"
|
|
483
481
|
}),
|
|
484
482
|
'selected.bold': css({
|
|
485
483
|
backgroundColor: "var(--ds-background-selected-bold, #0052CC)"
|
|
486
484
|
}),
|
|
485
|
+
'brand.bold': css({
|
|
486
|
+
backgroundColor: "var(--ds-background-brand-bold, #0052CC)"
|
|
487
|
+
}),
|
|
487
488
|
danger: css({
|
|
488
489
|
backgroundColor: "var(--ds-background-danger, #FFEBE6)"
|
|
489
490
|
}),
|
|
@@ -526,34 +527,33 @@ const backgroundColorMap = {
|
|
|
526
527
|
'elevation.surface': css({
|
|
527
528
|
backgroundColor: "var(--ds-surface, #FFFFFF)"
|
|
528
529
|
}),
|
|
529
|
-
'elevation.surface.
|
|
530
|
-
backgroundColor: "var(--ds-surface-
|
|
530
|
+
'elevation.surface.overlay': css({
|
|
531
|
+
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)"
|
|
531
532
|
}),
|
|
532
533
|
'elevation.surface.raised': css({
|
|
533
534
|
backgroundColor: "var(--ds-surface-raised, #FFFFFF)"
|
|
534
535
|
}),
|
|
535
|
-
'elevation.surface.
|
|
536
|
-
backgroundColor: "var(--ds-surface-
|
|
536
|
+
'elevation.surface.sunken': css({
|
|
537
|
+
backgroundColor: "var(--ds-surface-sunken, #F4F5F7)"
|
|
537
538
|
})
|
|
538
539
|
};
|
|
539
540
|
const shadowMap = {
|
|
540
|
-
raised: css({
|
|
541
|
-
boxShadow: "var(--ds-shadow-raised, 0px 1px 1px #091e423f, 0px 0px 1px #091e4221)"
|
|
542
|
-
}),
|
|
543
541
|
overflow: css({
|
|
544
542
|
boxShadow: "var(--ds-shadow-overflow, 0px 0px 8px #091e423f, 0px 0px 1px #091e424f)"
|
|
545
543
|
}),
|
|
546
|
-
'overflow.spread': css({
|
|
547
|
-
boxShadow: "var(--ds-shadow-overflow-spread, #091e4229)"
|
|
548
|
-
}),
|
|
549
544
|
'overflow.perimeter': css({
|
|
550
545
|
boxShadow: "var(--ds-shadow-overflow-perimeter, #091e421f)"
|
|
551
546
|
}),
|
|
547
|
+
'overflow.spread': css({
|
|
548
|
+
boxShadow: "var(--ds-shadow-overflow-spread, #091e4229)"
|
|
549
|
+
}),
|
|
552
550
|
overlay: css({
|
|
553
551
|
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091e423f, 0px 0px 1px #091e424f)"
|
|
552
|
+
}),
|
|
553
|
+
raised: css({
|
|
554
|
+
boxShadow: "var(--ds-shadow-raised, 0px 1px 1px #091e423f, 0px 0px 1px #091e4221)"
|
|
554
555
|
})
|
|
555
556
|
};
|
|
556
|
-
|
|
557
557
|
/**
|
|
558
558
|
* @codegenEnd
|
|
559
559
|
*/
|
|
@@ -594,6 +594,7 @@ const layerMap = {
|
|
|
594
594
|
zIndex: LAYERS['tooltip']
|
|
595
595
|
})
|
|
596
596
|
};
|
|
597
|
+
|
|
597
598
|
/**
|
|
598
599
|
* @codegenEnd
|
|
599
600
|
*/
|
|
@@ -60,12 +60,12 @@ const dividerStyles = css({
|
|
|
60
60
|
pointerEvents: 'none',
|
|
61
61
|
userSelect: 'none'
|
|
62
62
|
});
|
|
63
|
-
|
|
64
63
|
const Divider = ({
|
|
65
64
|
children
|
|
66
65
|
}) => jsx("span", {
|
|
67
66
|
css: dividerStyles
|
|
68
67
|
}, children);
|
|
68
|
+
|
|
69
69
|
/**
|
|
70
70
|
* __Inline__
|
|
71
71
|
*
|
|
@@ -82,8 +82,6 @@ const Divider = ({
|
|
|
82
82
|
* )
|
|
83
83
|
* ```
|
|
84
84
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
87
85
|
const Inline = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
88
86
|
gap,
|
|
89
87
|
alignItems,
|
|
@@ -109,15 +107,15 @@ const Inline = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
109
107
|
}));
|
|
110
108
|
Inline.displayName = 'Inline';
|
|
111
109
|
export default Inline;
|
|
110
|
+
|
|
112
111
|
/**
|
|
113
112
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
114
|
-
* @codegen <<SignedSource::
|
|
113
|
+
* @codegen <<SignedSource::e4218f7c850d1484a192d5b8b5dce136>>
|
|
115
114
|
* @codegenId spacing
|
|
116
115
|
* @codegenCommand yarn codegen-styles
|
|
117
116
|
* @codegenParams ["columnGap"]
|
|
118
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::
|
|
117
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::b0b8f1a822ed84e0407ad83e6fda5a1c>>
|
|
119
118
|
*/
|
|
120
|
-
|
|
121
119
|
const columnGapMap = {
|
|
122
120
|
'space.0': css({
|
|
123
121
|
columnGap: "var(--ds-space-0, 0px)"
|
|
@@ -162,6 +160,7 @@ const columnGapMap = {
|
|
|
162
160
|
columnGap: "var(--ds-space-800, 64px)"
|
|
163
161
|
})
|
|
164
162
|
};
|
|
163
|
+
|
|
165
164
|
/**
|
|
166
165
|
* @codegenEnd
|
|
167
166
|
*/
|