@atlaskit/button 16.1.1 → 16.1.5
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 +26 -0
- package/dist/cjs/button.js +3 -1
- package/dist/cjs/custom-theme-button/custom-theme-button.js +5 -3
- package/dist/cjs/custom-theme-button/index.js +4 -4
- package/dist/cjs/custom-theme-button/theme.js +4 -4
- package/dist/cjs/entry-points/custom-theme-button.js +4 -4
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/loading-button.js +3 -1
- package/dist/cjs/shared/button-base.js +22 -4
- package/dist/cjs/shared/colors.js +160 -163
- package/dist/cjs/shared/css.js +4 -4
- package/dist/cjs/shared/loading-spinner.js +3 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/shared/button-base.js +18 -2
- package/dist/es2019/shared/colors.js +160 -162
- package/dist/es2019/version.json +1 -1
- package/dist/esm/button.js +2 -1
- package/dist/esm/custom-theme-button/custom-theme-button.js +4 -3
- package/dist/esm/custom-theme-button/theme.js +2 -2
- package/dist/esm/loading-button.js +2 -1
- package/dist/esm/shared/button-base.js +20 -3
- package/dist/esm/shared/colors.js +160 -162
- package/dist/esm/shared/css.js +2 -2
- package/dist/esm/shared/loading-spinner.js +2 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/shared/loading-spinner.d.ts +1 -0
- package/package.json +8 -7
|
@@ -9,121 +9,118 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
|
|
11
11
|
|
|
12
|
-
var _tokens = require("@atlaskit/tokens");
|
|
13
|
-
|
|
14
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
13
|
|
|
16
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
15
|
|
|
18
16
|
// Hard coding the active rgba color value rather than using a helper to convert it
|
|
19
17
|
// With helper it would be: hex2rgba(colors.B75, 0.6)
|
|
20
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
21
18
|
var fadedB75 = 'rgba(179, 212, 255, 0.6)';
|
|
22
19
|
var values = {
|
|
23
20
|
// Default appearance
|
|
24
21
|
background: {
|
|
25
22
|
default: {
|
|
26
23
|
default: {
|
|
27
|
-
light: (
|
|
28
|
-
dark: (
|
|
24
|
+
light: "var(--ds-background-subtleNeutral-resting, ".concat(colors.N20A, ")"),
|
|
25
|
+
dark: "var(--ds-background-subtleNeutral-resting, ".concat(colors.DN70, ")")
|
|
29
26
|
},
|
|
30
27
|
hover: {
|
|
31
|
-
light: (
|
|
32
|
-
dark: (
|
|
28
|
+
light: "var(--ds-background-subtleNeutral-hover, ".concat(colors.N30A, ")"),
|
|
29
|
+
dark: "var(--ds-background-subtleNeutral-hover, ".concat(colors.DN60, ")")
|
|
33
30
|
},
|
|
34
31
|
active: {
|
|
35
|
-
light: (
|
|
36
|
-
dark: (
|
|
32
|
+
light: "var(--ds-background-subtleNeutral-pressed, ".concat(fadedB75, ")"),
|
|
33
|
+
dark: "var(--ds-background-subtleNeutral-pressed, ".concat(colors.B75, ")")
|
|
37
34
|
},
|
|
38
35
|
disabled: {
|
|
39
|
-
light: (
|
|
40
|
-
dark: (
|
|
36
|
+
light: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
|
|
37
|
+
dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
|
|
41
38
|
},
|
|
42
39
|
selected: {
|
|
43
|
-
light: (
|
|
44
|
-
dark: (
|
|
40
|
+
light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
|
|
41
|
+
dark: "var(--ds-background-selected-resting, ".concat(colors.DN0, ")")
|
|
45
42
|
},
|
|
46
43
|
focusSelected: {
|
|
47
|
-
light: (
|
|
48
|
-
dark: (
|
|
44
|
+
light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
|
|
45
|
+
dark: "var(--ds-background-selected-resting, ".concat(colors.DN0, ")")
|
|
49
46
|
}
|
|
50
47
|
},
|
|
51
48
|
primary: {
|
|
52
49
|
default: {
|
|
53
|
-
light: (
|
|
54
|
-
dark: (
|
|
50
|
+
light: "var(--ds-background-boldBrand-resting, ".concat(colors.B400, ")"),
|
|
51
|
+
dark: "var(--ds-background-boldBrand-resting, ".concat(colors.B100, ")")
|
|
55
52
|
},
|
|
56
53
|
hover: {
|
|
57
|
-
light: (
|
|
58
|
-
dark: (
|
|
54
|
+
light: "var(--ds-background-boldBrand-hover, ".concat(colors.B300, ")"),
|
|
55
|
+
dark: "var(--ds-background-boldBrand-hover, ".concat(colors.B75, ")")
|
|
59
56
|
},
|
|
60
57
|
active: {
|
|
61
|
-
light: (
|
|
62
|
-
dark: (
|
|
58
|
+
light: "var(--ds-background-boldBrand-pressed, ".concat(colors.B500, ")"),
|
|
59
|
+
dark: "var(--ds-background-boldBrand-pressed, ".concat(colors.B200, ")")
|
|
63
60
|
},
|
|
64
61
|
disabled: {
|
|
65
|
-
light: (
|
|
66
|
-
dark: (
|
|
62
|
+
light: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
|
|
63
|
+
dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
|
|
67
64
|
},
|
|
68
65
|
selected: {
|
|
69
|
-
light: (
|
|
70
|
-
dark: (
|
|
66
|
+
light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
|
|
67
|
+
dark: "var(--ds-background-selected-resting, ".concat(colors.DN0, ")")
|
|
71
68
|
},
|
|
72
69
|
focusSelected: {
|
|
73
|
-
light: (
|
|
74
|
-
dark: (
|
|
70
|
+
light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
|
|
71
|
+
dark: "var(--ds-background-selected-resting, ".concat(colors.DN0, ")")
|
|
75
72
|
}
|
|
76
73
|
},
|
|
77
74
|
warning: {
|
|
78
75
|
default: {
|
|
79
|
-
light: (
|
|
80
|
-
dark: (
|
|
76
|
+
light: "var(--ds-background-boldWarning-resting, ".concat(colors.Y300, ")"),
|
|
77
|
+
dark: "var(--ds-background-boldWarning-resting, ".concat(colors.Y300, ")")
|
|
81
78
|
},
|
|
82
79
|
hover: {
|
|
83
|
-
light: (
|
|
84
|
-
dark: (
|
|
80
|
+
light: "var(--ds-background-boldWarning-hover, ".concat(colors.Y200, ")"),
|
|
81
|
+
dark: "var(--ds-background-boldWarning-hover, ".concat(colors.Y200, ")")
|
|
85
82
|
},
|
|
86
83
|
active: {
|
|
87
|
-
light: (
|
|
88
|
-
dark: (
|
|
84
|
+
light: "var(--ds-background-boldWarning-pressed, ".concat(colors.Y400, ")"),
|
|
85
|
+
dark: "var(--ds-background-boldWarning-pressed, ".concat(colors.Y400, ")")
|
|
89
86
|
},
|
|
90
87
|
disabled: {
|
|
91
|
-
light: (
|
|
92
|
-
dark: (
|
|
88
|
+
light: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
|
|
89
|
+
dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
|
|
93
90
|
},
|
|
94
91
|
selected: {
|
|
95
|
-
light: (
|
|
96
|
-
dark: (
|
|
92
|
+
light: "var(--ds-background-selected-resting, ".concat(colors.Y400, ")"),
|
|
93
|
+
dark: "var(--ds-background-selected-resting, ".concat(colors.Y400, ")")
|
|
97
94
|
},
|
|
98
95
|
focusSelected: {
|
|
99
|
-
light: (
|
|
100
|
-
dark: (
|
|
96
|
+
light: "var(--ds-background-selected-resting, ".concat(colors.Y400, ")"),
|
|
97
|
+
dark: "var(--ds-background-selected-resting, ".concat(colors.Y400, ")")
|
|
101
98
|
}
|
|
102
99
|
},
|
|
103
100
|
danger: {
|
|
104
101
|
default: {
|
|
105
|
-
light: (
|
|
106
|
-
dark: (
|
|
102
|
+
light: "var(--ds-background-boldDanger-resting, ".concat(colors.R400, ")"),
|
|
103
|
+
dark: "var(--ds-background-boldDanger-resting, ".concat(colors.R400, ")")
|
|
107
104
|
},
|
|
108
105
|
hover: {
|
|
109
|
-
light: (
|
|
110
|
-
dark: (
|
|
106
|
+
light: "var(--ds-background-boldDanger-hover, ".concat(colors.R300, ")"),
|
|
107
|
+
dark: "var(--ds-background-boldDanger-hover, ".concat(colors.R300, ")")
|
|
111
108
|
},
|
|
112
109
|
active: {
|
|
113
|
-
light: (
|
|
114
|
-
dark: (
|
|
110
|
+
light: "var(--ds-background-boldDanger-pressed, ".concat(colors.R500, ")"),
|
|
111
|
+
dark: "var(--ds-background-boldDanger-pressed, ".concat(colors.R500, ")")
|
|
115
112
|
},
|
|
116
113
|
disabled: {
|
|
117
|
-
light: (
|
|
118
|
-
dark: (
|
|
114
|
+
light: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
|
|
115
|
+
dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
|
|
119
116
|
},
|
|
120
117
|
selected: {
|
|
121
|
-
light: (
|
|
122
|
-
dark: (
|
|
118
|
+
light: "var(--ds-background-selected-resting, ".concat(colors.R500, ")"),
|
|
119
|
+
dark: "var(--ds-background-selected-resting, ".concat(colors.R500, ")")
|
|
123
120
|
},
|
|
124
121
|
focusSelected: {
|
|
125
|
-
light: (
|
|
126
|
-
dark: (
|
|
122
|
+
light: "var(--ds-background-selected-resting, ".concat(colors.R500, ")"),
|
|
123
|
+
dark: "var(--ds-background-selected-resting, ".concat(colors.R500, ")")
|
|
127
124
|
}
|
|
128
125
|
},
|
|
129
126
|
link: {
|
|
@@ -132,12 +129,12 @@ var values = {
|
|
|
132
129
|
dark: 'none'
|
|
133
130
|
},
|
|
134
131
|
selected: {
|
|
135
|
-
light: (
|
|
136
|
-
dark: (
|
|
132
|
+
light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
|
|
133
|
+
dark: "var(--ds-background-selected-resting, ".concat(colors.N20, ")")
|
|
137
134
|
},
|
|
138
135
|
focusSelected: {
|
|
139
|
-
light: (
|
|
140
|
-
dark: (
|
|
136
|
+
light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
|
|
137
|
+
dark: "var(--ds-background-selected-resting, ".concat(colors.N20, ")")
|
|
141
138
|
}
|
|
142
139
|
},
|
|
143
140
|
subtle: {
|
|
@@ -146,24 +143,24 @@ var values = {
|
|
|
146
143
|
dark: 'none'
|
|
147
144
|
},
|
|
148
145
|
hover: {
|
|
149
|
-
light: (
|
|
150
|
-
dark: (
|
|
146
|
+
light: "var(--ds-background-transparentNeutral-hover, ".concat(colors.N30A, ")"),
|
|
147
|
+
dark: "var(--ds-background-transparentNeutral-hover, ".concat(colors.DN60, ")")
|
|
151
148
|
},
|
|
152
149
|
active: {
|
|
153
|
-
light: (
|
|
154
|
-
dark: (
|
|
150
|
+
light: "var(--ds-background-transparentNeutral-pressed, ".concat(fadedB75, ")"),
|
|
151
|
+
dark: "var(--ds-background-transparentNeutral-pressed, ".concat(colors.B75, ")")
|
|
155
152
|
},
|
|
156
153
|
disabled: {
|
|
157
154
|
light: 'none',
|
|
158
155
|
dark: 'none'
|
|
159
156
|
},
|
|
160
157
|
selected: {
|
|
161
|
-
light: (
|
|
162
|
-
dark: (
|
|
158
|
+
light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
|
|
159
|
+
dark: "var(--ds-background-selected-resting, ".concat(colors.DN0, ")")
|
|
163
160
|
},
|
|
164
161
|
focusSelected: {
|
|
165
|
-
light: (
|
|
166
|
-
dark: (
|
|
162
|
+
light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
|
|
163
|
+
dark: "var(--ds-background-selected-resting, ".concat(colors.DN0, ")")
|
|
167
164
|
}
|
|
168
165
|
},
|
|
169
166
|
'subtle-link': {
|
|
@@ -172,236 +169,236 @@ var values = {
|
|
|
172
169
|
dark: 'none'
|
|
173
170
|
},
|
|
174
171
|
selected: {
|
|
175
|
-
light: (
|
|
176
|
-
dark: (
|
|
172
|
+
light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
|
|
173
|
+
dark: "var(--ds-background-selected-resting, ".concat(colors.N20, ")")
|
|
177
174
|
},
|
|
178
175
|
focusSelected: {
|
|
179
|
-
light: (
|
|
180
|
-
dark: (
|
|
176
|
+
light: "var(--ds-background-selected-resting, ".concat(colors.N700, ")"),
|
|
177
|
+
dark: "var(--ds-background-selected-resting, ".concat(colors.N20, ")")
|
|
181
178
|
}
|
|
182
179
|
}
|
|
183
180
|
},
|
|
184
181
|
boxShadowColor: {
|
|
185
182
|
default: {
|
|
186
183
|
focus: {
|
|
187
|
-
light: (
|
|
188
|
-
dark: (
|
|
184
|
+
light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
|
|
185
|
+
dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
|
|
189
186
|
},
|
|
190
187
|
focusSelected: {
|
|
191
|
-
light: (
|
|
192
|
-
dark: (
|
|
188
|
+
light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
|
|
189
|
+
dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
|
|
193
190
|
}
|
|
194
191
|
},
|
|
195
192
|
primary: {
|
|
196
193
|
focus: {
|
|
197
|
-
light: (
|
|
198
|
-
dark: (
|
|
194
|
+
light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
|
|
195
|
+
dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
|
|
199
196
|
},
|
|
200
197
|
focusSelected: {
|
|
201
|
-
light: (
|
|
202
|
-
dark: (
|
|
198
|
+
light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
|
|
199
|
+
dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
|
|
203
200
|
}
|
|
204
201
|
},
|
|
205
202
|
warning: {
|
|
206
203
|
focus: {
|
|
207
|
-
light: (
|
|
208
|
-
dark: (
|
|
204
|
+
light: "var(--ds-border-focus, ".concat(colors.Y500, ")"),
|
|
205
|
+
dark: "var(--ds-border-focus, ".concat(colors.Y500, ")")
|
|
209
206
|
},
|
|
210
207
|
focusSelected: {
|
|
211
|
-
light: (
|
|
212
|
-
dark: (
|
|
208
|
+
light: "var(--ds-border-focus, ".concat(colors.Y500, ")"),
|
|
209
|
+
dark: "var(--ds-border-focus, ".concat(colors.Y500, ")")
|
|
213
210
|
}
|
|
214
211
|
},
|
|
215
212
|
danger: {
|
|
216
213
|
focus: {
|
|
217
|
-
light: (
|
|
218
|
-
dark: (
|
|
214
|
+
light: "var(--ds-border-focus, ".concat(colors.R100, ")"),
|
|
215
|
+
dark: "var(--ds-border-focus, ".concat(colors.R100, ")")
|
|
219
216
|
},
|
|
220
217
|
focusSelected: {
|
|
221
|
-
light: (
|
|
222
|
-
dark: (
|
|
218
|
+
light: "var(--ds-border-focus, ".concat(colors.R100, ")"),
|
|
219
|
+
dark: "var(--ds-border-focus, ".concat(colors.R100, ")")
|
|
223
220
|
}
|
|
224
221
|
},
|
|
225
222
|
link: {
|
|
226
223
|
focus: {
|
|
227
|
-
light: (
|
|
228
|
-
dark: (
|
|
224
|
+
light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
|
|
225
|
+
dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
|
|
229
226
|
},
|
|
230
227
|
focusSelected: {
|
|
231
|
-
light: (
|
|
232
|
-
dark: (
|
|
228
|
+
light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
|
|
229
|
+
dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
|
|
233
230
|
}
|
|
234
231
|
},
|
|
235
232
|
subtle: {
|
|
236
233
|
focus: {
|
|
237
|
-
light: (
|
|
238
|
-
dark: (
|
|
234
|
+
light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
|
|
235
|
+
dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
|
|
239
236
|
},
|
|
240
237
|
focusSelected: {
|
|
241
|
-
light: (
|
|
242
|
-
dark: (
|
|
238
|
+
light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
|
|
239
|
+
dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
|
|
243
240
|
}
|
|
244
241
|
},
|
|
245
242
|
'subtle-link': {
|
|
246
243
|
focus: {
|
|
247
|
-
light: (
|
|
248
|
-
dark: (
|
|
244
|
+
light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
|
|
245
|
+
dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
|
|
249
246
|
},
|
|
250
247
|
focusSelected: {
|
|
251
|
-
light: (
|
|
252
|
-
dark: (
|
|
248
|
+
light: "var(--ds-border-focus, ".concat(colors.B100, ")"),
|
|
249
|
+
dark: "var(--ds-border-focus, ".concat(colors.B75, ")")
|
|
253
250
|
}
|
|
254
251
|
}
|
|
255
252
|
},
|
|
256
253
|
color: {
|
|
257
254
|
default: {
|
|
258
255
|
default: {
|
|
259
|
-
light: (
|
|
260
|
-
dark: (
|
|
256
|
+
light: "var(--ds-text-highEmphasis, ".concat(colors.N500, ")"),
|
|
257
|
+
dark: "var(--ds-text-highEmphasis, ".concat(colors.DN400, ")")
|
|
261
258
|
},
|
|
262
259
|
active: {
|
|
263
|
-
light: (
|
|
264
|
-
dark: (
|
|
260
|
+
light: "var(--ds-text-highEmphasis, ".concat(colors.B400, ")"),
|
|
261
|
+
dark: "var(--ds-text-highEmphasis, ".concat(colors.B400, ")")
|
|
265
262
|
},
|
|
266
263
|
disabled: {
|
|
267
|
-
light: (
|
|
268
|
-
dark: (
|
|
264
|
+
light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
|
|
265
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
|
|
269
266
|
},
|
|
270
267
|
selected: {
|
|
271
|
-
light: (
|
|
272
|
-
dark: (
|
|
268
|
+
light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
|
|
269
|
+
dark: "var(--ds-text-selected, ".concat(colors.DN400, ")")
|
|
273
270
|
},
|
|
274
271
|
focusSelected: {
|
|
275
|
-
light: (
|
|
276
|
-
dark: (
|
|
272
|
+
light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
|
|
273
|
+
dark: "var(--ds-text-selected, ".concat(colors.DN400, ")")
|
|
277
274
|
}
|
|
278
275
|
},
|
|
279
276
|
primary: {
|
|
280
277
|
default: {
|
|
281
|
-
light: (
|
|
282
|
-
dark: (
|
|
278
|
+
light: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
279
|
+
dark: "var(--ds-text-onBold, ".concat(colors.DN30, ")")
|
|
283
280
|
},
|
|
284
281
|
disabled: {
|
|
285
|
-
light: (
|
|
286
|
-
dark: (
|
|
282
|
+
light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
|
|
283
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
|
|
287
284
|
},
|
|
288
285
|
selected: {
|
|
289
|
-
light: (
|
|
290
|
-
dark: (
|
|
286
|
+
light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
|
|
287
|
+
dark: "var(--ds-text-selected, ".concat(colors.DN400, ")")
|
|
291
288
|
},
|
|
292
289
|
focusSelected: {
|
|
293
|
-
light: (
|
|
294
|
-
dark: (
|
|
290
|
+
light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
|
|
291
|
+
dark: "var(--ds-text-selected, ".concat(colors.DN400, ")")
|
|
295
292
|
}
|
|
296
293
|
},
|
|
297
294
|
warning: {
|
|
298
295
|
default: {
|
|
299
|
-
light: (
|
|
300
|
-
dark: (
|
|
296
|
+
light: "var(--ds-text-onBoldWarning, ".concat(colors.N800, ")"),
|
|
297
|
+
dark: "var(--ds-text-onBoldWarning, ".concat(colors.N800, ")")
|
|
301
298
|
},
|
|
302
299
|
disabled: {
|
|
303
|
-
light: (
|
|
304
|
-
dark: (
|
|
300
|
+
light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
|
|
301
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
|
|
305
302
|
},
|
|
306
303
|
selected: {
|
|
307
|
-
light: (
|
|
308
|
-
dark: (
|
|
304
|
+
light: "var(--ds-text-selected, ".concat(colors.N800, ")"),
|
|
305
|
+
dark: "var(--ds-text-selected, ".concat(colors.N800, ")")
|
|
309
306
|
},
|
|
310
307
|
focusSelected: {
|
|
311
|
-
light: (
|
|
312
|
-
dark: (
|
|
308
|
+
light: "var(--ds-text-selected, ".concat(colors.N800, ")"),
|
|
309
|
+
dark: "var(--ds-text-selected, ".concat(colors.N800, ")")
|
|
313
310
|
}
|
|
314
311
|
},
|
|
315
312
|
danger: {
|
|
316
313
|
default: {
|
|
317
|
-
light: (
|
|
318
|
-
dark: (
|
|
314
|
+
light: "var(--ds-text-onBold, ".concat(colors.N0, ")"),
|
|
315
|
+
dark: "var(--ds-text-onBold, ".concat(colors.N0, ")")
|
|
319
316
|
},
|
|
320
317
|
disabled: {
|
|
321
|
-
light: (
|
|
322
|
-
dark: (
|
|
318
|
+
light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
|
|
319
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
|
|
323
320
|
},
|
|
324
321
|
selected: {
|
|
325
|
-
light: (
|
|
326
|
-
dark: (
|
|
322
|
+
light: "var(--ds-text-selected, ".concat(colors.N0, ")"),
|
|
323
|
+
dark: "var(--ds-text-selected, ".concat(colors.N0, ")")
|
|
327
324
|
},
|
|
328
325
|
focusSelected: {
|
|
329
|
-
light: (
|
|
330
|
-
dark: (
|
|
326
|
+
light: "var(--ds-text-selected, ".concat(colors.N0, ")"),
|
|
327
|
+
dark: "var(--ds-text-selected, ".concat(colors.N0, ")")
|
|
331
328
|
}
|
|
332
329
|
},
|
|
333
330
|
link: {
|
|
334
331
|
default: {
|
|
335
|
-
light: (
|
|
336
|
-
dark: (
|
|
332
|
+
light: "var(--ds-text-link-resting, ".concat(colors.B400, ")"),
|
|
333
|
+
dark: "var(--ds-text-link-resting, ".concat(colors.B100, ")")
|
|
337
334
|
},
|
|
338
335
|
hover: {
|
|
339
|
-
light: (
|
|
340
|
-
dark: (
|
|
336
|
+
light: "var(--ds-text-link-resting, ".concat(colors.B300, ")"),
|
|
337
|
+
dark: "var(--ds-text-link-resting, ".concat(colors.B75, ")")
|
|
341
338
|
},
|
|
342
339
|
active: {
|
|
343
|
-
light: (
|
|
344
|
-
dark: (
|
|
340
|
+
light: "var(--ds-text-link-pressed, ".concat(colors.B500, ")"),
|
|
341
|
+
dark: "var(--ds-text-link-pressed, ".concat(colors.B200, ")")
|
|
345
342
|
},
|
|
346
343
|
disabled: {
|
|
347
|
-
light: (
|
|
348
|
-
dark: (
|
|
344
|
+
light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
|
|
345
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN100, ")")
|
|
349
346
|
},
|
|
350
347
|
selected: {
|
|
351
|
-
light: (
|
|
352
|
-
dark: (
|
|
348
|
+
light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
|
|
349
|
+
dark: "var(--ds-text-selected, ".concat(colors.N700, ")")
|
|
353
350
|
},
|
|
354
351
|
focusSelected: {
|
|
355
|
-
light: (
|
|
356
|
-
dark: (
|
|
352
|
+
light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
|
|
353
|
+
dark: "var(--ds-text-selected, ".concat(colors.N700, ")")
|
|
357
354
|
}
|
|
358
355
|
},
|
|
359
356
|
subtle: {
|
|
360
357
|
default: {
|
|
361
|
-
light: (
|
|
362
|
-
dark: (
|
|
358
|
+
light: "var(--ds-text-highEmphasis, ".concat(colors.N500, ")"),
|
|
359
|
+
dark: "var(--ds-text-highEmphasis, ".concat(colors.DN400, ")")
|
|
363
360
|
},
|
|
364
361
|
active: {
|
|
365
|
-
light: (
|
|
366
|
-
dark: (
|
|
362
|
+
light: "var(--ds-text-highEmphasis, ".concat(colors.B400, ")"),
|
|
363
|
+
dark: "var(--ds-text-highEmphasis, ".concat(colors.B400, ")")
|
|
367
364
|
},
|
|
368
365
|
disabled: {
|
|
369
|
-
light: (
|
|
370
|
-
dark: (
|
|
366
|
+
light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
|
|
367
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN100, ")")
|
|
371
368
|
},
|
|
372
369
|
selected: {
|
|
373
|
-
light: (
|
|
374
|
-
dark: (
|
|
370
|
+
light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
|
|
371
|
+
dark: "var(--ds-text-selected, ".concat(colors.DN400, ")")
|
|
375
372
|
},
|
|
376
373
|
focusSelected: {
|
|
377
|
-
light: (
|
|
378
|
-
dark: (
|
|
374
|
+
light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
|
|
375
|
+
dark: "var(--ds-text-selected, ".concat(colors.DN400, ")")
|
|
379
376
|
}
|
|
380
377
|
},
|
|
381
378
|
'subtle-link': {
|
|
382
379
|
default: {
|
|
383
|
-
light: (
|
|
384
|
-
dark: (
|
|
380
|
+
light: "var(--ds-text-mediumEmphasis, ".concat(colors.N200, ")"),
|
|
381
|
+
dark: "var(--ds-text-mediumEmphasis, ".concat(colors.DN400, ")")
|
|
385
382
|
},
|
|
386
383
|
hover: {
|
|
387
|
-
light: (
|
|
388
|
-
dark: (
|
|
384
|
+
light: "var(--ds-text-mediumEmphasis, ".concat(colors.N90, ")"),
|
|
385
|
+
dark: "var(--ds-text-mediumEmphasis, ".concat(colors.B50, ")")
|
|
389
386
|
},
|
|
390
387
|
active: {
|
|
391
|
-
light: (
|
|
392
|
-
dark: (
|
|
388
|
+
light: "var(--ds-text-highEmphasis, ".concat(colors.N400, ")"),
|
|
389
|
+
dark: "var(--ds-text-highEmphasis, ".concat(colors.DN300, ")")
|
|
393
390
|
},
|
|
394
391
|
disabled: {
|
|
395
|
-
light: (
|
|
396
|
-
dark: (
|
|
392
|
+
light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
|
|
393
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN100, ")")
|
|
397
394
|
},
|
|
398
395
|
selected: {
|
|
399
|
-
light: (
|
|
400
|
-
dark: (
|
|
396
|
+
light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
|
|
397
|
+
dark: "var(--ds-text-selected, ".concat(colors.DN400, ")")
|
|
401
398
|
},
|
|
402
399
|
focusSelected: {
|
|
403
|
-
light: (
|
|
404
|
-
dark: (
|
|
400
|
+
light: "var(--ds-text-selected, ".concat(colors.N20, ")"),
|
|
401
|
+
dark: "var(--ds-text-selected, ".concat(colors.DN400, ")")
|
|
405
402
|
}
|
|
406
403
|
}
|
|
407
404
|
}
|
package/dist/cjs/shared/css.js
CHANGED
|
@@ -5,10 +5,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.getCss = getCss;
|
|
9
|
-
exports.getIconStyle = getIconStyle;
|
|
10
8
|
exports.getContentStyle = getContentStyle;
|
|
9
|
+
exports.getCss = getCss;
|
|
11
10
|
exports.getFadingCss = getFadingCss;
|
|
11
|
+
exports.getIconStyle = getIconStyle;
|
|
12
12
|
exports.overlayCss = void 0;
|
|
13
13
|
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
@@ -17,9 +17,9 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
17
17
|
|
|
18
18
|
var _colors = _interopRequireDefault(require("./colors"));
|
|
19
19
|
|
|
20
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
20
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
21
21
|
|
|
22
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
22
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
23
23
|
|
|
24
24
|
var borderRadius = (0, _constants.borderRadius)();
|
|
25
25
|
var gridSize = (0, _constants.gridSize)();
|