@atlaskit/button 16.1.2 → 16.1.6
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 +28 -0
- package/dist/cjs/button.js +10 -15
- 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 -162
- 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/button.js +5 -13
- package/dist/es2019/shared/button-base.js +18 -2
- package/dist/es2019/shared/colors.js +160 -161
- package/dist/es2019/version.json +1 -1
- package/dist/esm/button.js +8 -14
- 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 -161
- 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,8 +9,6 @@ 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; }
|
|
@@ -23,106 +21,106 @@ var values = {
|
|
|
23
21
|
background: {
|
|
24
22
|
default: {
|
|
25
23
|
default: {
|
|
26
|
-
light: (
|
|
27
|
-
dark: (
|
|
24
|
+
light: "var(--ds-background-neutral, ".concat(colors.N20A, ")"),
|
|
25
|
+
dark: "var(--ds-background-neutral, ".concat(colors.DN70, ")")
|
|
28
26
|
},
|
|
29
27
|
hover: {
|
|
30
|
-
light: (
|
|
31
|
-
dark: (
|
|
28
|
+
light: "var(--ds-background-neutral-hovered, ".concat(colors.N30A, ")"),
|
|
29
|
+
dark: "var(--ds-background-neutral-hovered, ".concat(colors.DN60, ")")
|
|
32
30
|
},
|
|
33
31
|
active: {
|
|
34
|
-
light: (
|
|
35
|
-
dark: (
|
|
32
|
+
light: "var(--ds-background-neutral-pressed, ".concat(fadedB75, ")"),
|
|
33
|
+
dark: "var(--ds-background-neutral-pressed, ".concat(colors.B75, ")")
|
|
36
34
|
},
|
|
37
35
|
disabled: {
|
|
38
|
-
light: (
|
|
39
|
-
dark: (
|
|
36
|
+
light: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
|
|
37
|
+
dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
|
|
40
38
|
},
|
|
41
39
|
selected: {
|
|
42
|
-
light: (
|
|
43
|
-
dark: (
|
|
40
|
+
light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
|
|
41
|
+
dark: "var(--ds-background-brand, ".concat(colors.DN0, ")")
|
|
44
42
|
},
|
|
45
43
|
focusSelected: {
|
|
46
|
-
light: (
|
|
47
|
-
dark: (
|
|
44
|
+
light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
|
|
45
|
+
dark: "var(--ds-background-brand, ".concat(colors.DN0, ")")
|
|
48
46
|
}
|
|
49
47
|
},
|
|
50
48
|
primary: {
|
|
51
49
|
default: {
|
|
52
|
-
light: (
|
|
53
|
-
dark: (
|
|
50
|
+
light: "var(--ds-background-brand-bold, ".concat(colors.B400, ")"),
|
|
51
|
+
dark: "var(--ds-background-brand-bold, ".concat(colors.B100, ")")
|
|
54
52
|
},
|
|
55
53
|
hover: {
|
|
56
|
-
light: (
|
|
57
|
-
dark: (
|
|
54
|
+
light: "var(--ds-background-brand-bold-hovered, ".concat(colors.B300, ")"),
|
|
55
|
+
dark: "var(--ds-background-brand-bold-hovered, ".concat(colors.B75, ")")
|
|
58
56
|
},
|
|
59
57
|
active: {
|
|
60
|
-
light: (
|
|
61
|
-
dark: (
|
|
58
|
+
light: "var(--ds-background-brand-bold-pressed, ".concat(colors.B500, ")"),
|
|
59
|
+
dark: "var(--ds-background-brand-bold-pressed, ".concat(colors.B200, ")")
|
|
62
60
|
},
|
|
63
61
|
disabled: {
|
|
64
|
-
light: (
|
|
65
|
-
dark: (
|
|
62
|
+
light: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
|
|
63
|
+
dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
|
|
66
64
|
},
|
|
67
65
|
selected: {
|
|
68
|
-
light: (
|
|
69
|
-
dark: (
|
|
66
|
+
light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
|
|
67
|
+
dark: "var(--ds-background-brand, ".concat(colors.DN0, ")")
|
|
70
68
|
},
|
|
71
69
|
focusSelected: {
|
|
72
|
-
light: (
|
|
73
|
-
dark: (
|
|
70
|
+
light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
|
|
71
|
+
dark: "var(--ds-background-brand, ".concat(colors.DN0, ")")
|
|
74
72
|
}
|
|
75
73
|
},
|
|
76
74
|
warning: {
|
|
77
75
|
default: {
|
|
78
|
-
light: (
|
|
79
|
-
dark: (
|
|
76
|
+
light: "var(--ds-background-warning-bold, ".concat(colors.Y300, ")"),
|
|
77
|
+
dark: "var(--ds-background-warning-bold, ".concat(colors.Y300, ")")
|
|
80
78
|
},
|
|
81
79
|
hover: {
|
|
82
|
-
light: (
|
|
83
|
-
dark: (
|
|
80
|
+
light: "var(--ds-background-warning-bold-hovered, ".concat(colors.Y200, ")"),
|
|
81
|
+
dark: "var(--ds-background-warning-bold-hovered, ".concat(colors.Y200, ")")
|
|
84
82
|
},
|
|
85
83
|
active: {
|
|
86
|
-
light: (
|
|
87
|
-
dark: (
|
|
84
|
+
light: "var(--ds-background-warning-bold-pressed, ".concat(colors.Y400, ")"),
|
|
85
|
+
dark: "var(--ds-background-warning-bold-pressed, ".concat(colors.Y400, ")")
|
|
88
86
|
},
|
|
89
87
|
disabled: {
|
|
90
|
-
light: (
|
|
91
|
-
dark: (
|
|
88
|
+
light: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
|
|
89
|
+
dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
|
|
92
90
|
},
|
|
93
91
|
selected: {
|
|
94
|
-
light: (
|
|
95
|
-
dark: (
|
|
92
|
+
light: "var(--ds-background-brand, ".concat(colors.Y400, ")"),
|
|
93
|
+
dark: "var(--ds-background-brand, ".concat(colors.Y400, ")")
|
|
96
94
|
},
|
|
97
95
|
focusSelected: {
|
|
98
|
-
light: (
|
|
99
|
-
dark: (
|
|
96
|
+
light: "var(--ds-background-brand, ".concat(colors.Y400, ")"),
|
|
97
|
+
dark: "var(--ds-background-brand, ".concat(colors.Y400, ")")
|
|
100
98
|
}
|
|
101
99
|
},
|
|
102
100
|
danger: {
|
|
103
101
|
default: {
|
|
104
|
-
light: (
|
|
105
|
-
dark: (
|
|
102
|
+
light: "var(--ds-background-danger-bold, ".concat(colors.R400, ")"),
|
|
103
|
+
dark: "var(--ds-background-danger-bold, ".concat(colors.R400, ")")
|
|
106
104
|
},
|
|
107
105
|
hover: {
|
|
108
|
-
light: (
|
|
109
|
-
dark: (
|
|
106
|
+
light: "var(--ds-background-danger-bold-hovered, ".concat(colors.R300, ")"),
|
|
107
|
+
dark: "var(--ds-background-danger-bold-hovered, ".concat(colors.R300, ")")
|
|
110
108
|
},
|
|
111
109
|
active: {
|
|
112
|
-
light: (
|
|
113
|
-
dark: (
|
|
110
|
+
light: "var(--ds-background-danger-bold-pressed, ".concat(colors.R500, ")"),
|
|
111
|
+
dark: "var(--ds-background-danger-bold-pressed, ".concat(colors.R500, ")")
|
|
114
112
|
},
|
|
115
113
|
disabled: {
|
|
116
|
-
light: (
|
|
117
|
-
dark: (
|
|
114
|
+
light: "var(--ds-background-disabled, ".concat(colors.N20A, ")"),
|
|
115
|
+
dark: "var(--ds-background-disabled, ".concat(colors.DN70, ")")
|
|
118
116
|
},
|
|
119
117
|
selected: {
|
|
120
|
-
light: (
|
|
121
|
-
dark: (
|
|
118
|
+
light: "var(--ds-background-brand, ".concat(colors.R500, ")"),
|
|
119
|
+
dark: "var(--ds-background-brand, ".concat(colors.R500, ")")
|
|
122
120
|
},
|
|
123
121
|
focusSelected: {
|
|
124
|
-
light: (
|
|
125
|
-
dark: (
|
|
122
|
+
light: "var(--ds-background-brand, ".concat(colors.R500, ")"),
|
|
123
|
+
dark: "var(--ds-background-brand, ".concat(colors.R500, ")")
|
|
126
124
|
}
|
|
127
125
|
},
|
|
128
126
|
link: {
|
|
@@ -131,12 +129,12 @@ var values = {
|
|
|
131
129
|
dark: 'none'
|
|
132
130
|
},
|
|
133
131
|
selected: {
|
|
134
|
-
light: (
|
|
135
|
-
dark: (
|
|
132
|
+
light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
|
|
133
|
+
dark: "var(--ds-background-brand, ".concat(colors.N20, ")")
|
|
136
134
|
},
|
|
137
135
|
focusSelected: {
|
|
138
|
-
light: (
|
|
139
|
-
dark: (
|
|
136
|
+
light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
|
|
137
|
+
dark: "var(--ds-background-brand, ".concat(colors.N20, ")")
|
|
140
138
|
}
|
|
141
139
|
},
|
|
142
140
|
subtle: {
|
|
@@ -145,24 +143,24 @@ var values = {
|
|
|
145
143
|
dark: 'none'
|
|
146
144
|
},
|
|
147
145
|
hover: {
|
|
148
|
-
light: (
|
|
149
|
-
dark: (
|
|
146
|
+
light: "var(--ds-background-neutral-subtle-hovered, ".concat(colors.N30A, ")"),
|
|
147
|
+
dark: "var(--ds-background-neutral-subtle-hovered, ".concat(colors.DN60, ")")
|
|
150
148
|
},
|
|
151
149
|
active: {
|
|
152
|
-
light: (
|
|
153
|
-
dark: (
|
|
150
|
+
light: "var(--ds-background-neutral-subtle-pressed, ".concat(fadedB75, ")"),
|
|
151
|
+
dark: "var(--ds-background-neutral-subtle-pressed, ".concat(colors.B75, ")")
|
|
154
152
|
},
|
|
155
153
|
disabled: {
|
|
156
154
|
light: 'none',
|
|
157
155
|
dark: 'none'
|
|
158
156
|
},
|
|
159
157
|
selected: {
|
|
160
|
-
light: (
|
|
161
|
-
dark: (
|
|
158
|
+
light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
|
|
159
|
+
dark: "var(--ds-background-brand, ".concat(colors.DN0, ")")
|
|
162
160
|
},
|
|
163
161
|
focusSelected: {
|
|
164
|
-
light: (
|
|
165
|
-
dark: (
|
|
162
|
+
light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
|
|
163
|
+
dark: "var(--ds-background-brand, ".concat(colors.DN0, ")")
|
|
166
164
|
}
|
|
167
165
|
},
|
|
168
166
|
'subtle-link': {
|
|
@@ -171,236 +169,236 @@ var values = {
|
|
|
171
169
|
dark: 'none'
|
|
172
170
|
},
|
|
173
171
|
selected: {
|
|
174
|
-
light: (
|
|
175
|
-
dark: (
|
|
172
|
+
light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
|
|
173
|
+
dark: "var(--ds-background-brand, ".concat(colors.N20, ")")
|
|
176
174
|
},
|
|
177
175
|
focusSelected: {
|
|
178
|
-
light: (
|
|
179
|
-
dark: (
|
|
176
|
+
light: "var(--ds-background-brand, ".concat(colors.N700, ")"),
|
|
177
|
+
dark: "var(--ds-background-brand, ".concat(colors.N20, ")")
|
|
180
178
|
}
|
|
181
179
|
}
|
|
182
180
|
},
|
|
183
181
|
boxShadowColor: {
|
|
184
182
|
default: {
|
|
185
183
|
focus: {
|
|
186
|
-
light: (
|
|
187
|
-
dark: (
|
|
184
|
+
light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
|
|
185
|
+
dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
|
|
188
186
|
},
|
|
189
187
|
focusSelected: {
|
|
190
|
-
light: (
|
|
191
|
-
dark: (
|
|
188
|
+
light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
|
|
189
|
+
dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
|
|
192
190
|
}
|
|
193
191
|
},
|
|
194
192
|
primary: {
|
|
195
193
|
focus: {
|
|
196
|
-
light: (
|
|
197
|
-
dark: (
|
|
194
|
+
light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
|
|
195
|
+
dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
|
|
198
196
|
},
|
|
199
197
|
focusSelected: {
|
|
200
|
-
light: (
|
|
201
|
-
dark: (
|
|
198
|
+
light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
|
|
199
|
+
dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
|
|
202
200
|
}
|
|
203
201
|
},
|
|
204
202
|
warning: {
|
|
205
203
|
focus: {
|
|
206
|
-
light: (
|
|
207
|
-
dark: (
|
|
204
|
+
light: "var(--ds-border-focused, ".concat(colors.Y500, ")"),
|
|
205
|
+
dark: "var(--ds-border-focused, ".concat(colors.Y500, ")")
|
|
208
206
|
},
|
|
209
207
|
focusSelected: {
|
|
210
|
-
light: (
|
|
211
|
-
dark: (
|
|
208
|
+
light: "var(--ds-border-focused, ".concat(colors.Y500, ")"),
|
|
209
|
+
dark: "var(--ds-border-focused, ".concat(colors.Y500, ")")
|
|
212
210
|
}
|
|
213
211
|
},
|
|
214
212
|
danger: {
|
|
215
213
|
focus: {
|
|
216
|
-
light: (
|
|
217
|
-
dark: (
|
|
214
|
+
light: "var(--ds-border-focused, ".concat(colors.R100, ")"),
|
|
215
|
+
dark: "var(--ds-border-focused, ".concat(colors.R100, ")")
|
|
218
216
|
},
|
|
219
217
|
focusSelected: {
|
|
220
|
-
light: (
|
|
221
|
-
dark: (
|
|
218
|
+
light: "var(--ds-border-focused, ".concat(colors.R100, ")"),
|
|
219
|
+
dark: "var(--ds-border-focused, ".concat(colors.R100, ")")
|
|
222
220
|
}
|
|
223
221
|
},
|
|
224
222
|
link: {
|
|
225
223
|
focus: {
|
|
226
|
-
light: (
|
|
227
|
-
dark: (
|
|
224
|
+
light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
|
|
225
|
+
dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
|
|
228
226
|
},
|
|
229
227
|
focusSelected: {
|
|
230
|
-
light: (
|
|
231
|
-
dark: (
|
|
228
|
+
light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
|
|
229
|
+
dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
|
|
232
230
|
}
|
|
233
231
|
},
|
|
234
232
|
subtle: {
|
|
235
233
|
focus: {
|
|
236
|
-
light: (
|
|
237
|
-
dark: (
|
|
234
|
+
light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
|
|
235
|
+
dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
|
|
238
236
|
},
|
|
239
237
|
focusSelected: {
|
|
240
|
-
light: (
|
|
241
|
-
dark: (
|
|
238
|
+
light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
|
|
239
|
+
dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
|
|
242
240
|
}
|
|
243
241
|
},
|
|
244
242
|
'subtle-link': {
|
|
245
243
|
focus: {
|
|
246
|
-
light: (
|
|
247
|
-
dark: (
|
|
244
|
+
light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
|
|
245
|
+
dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
|
|
248
246
|
},
|
|
249
247
|
focusSelected: {
|
|
250
|
-
light: (
|
|
251
|
-
dark: (
|
|
248
|
+
light: "var(--ds-border-focused, ".concat(colors.B100, ")"),
|
|
249
|
+
dark: "var(--ds-border-focused, ".concat(colors.B75, ")")
|
|
252
250
|
}
|
|
253
251
|
}
|
|
254
252
|
},
|
|
255
253
|
color: {
|
|
256
254
|
default: {
|
|
257
255
|
default: {
|
|
258
|
-
light: (
|
|
259
|
-
dark: (
|
|
256
|
+
light: "var(--ds-text, ".concat(colors.N500, ")"),
|
|
257
|
+
dark: "var(--ds-text, ".concat(colors.DN400, ")")
|
|
260
258
|
},
|
|
261
259
|
active: {
|
|
262
|
-
light: (
|
|
263
|
-
dark: (
|
|
260
|
+
light: "var(--ds-text, ".concat(colors.B400, ")"),
|
|
261
|
+
dark: "var(--ds-text, ".concat(colors.B400, ")")
|
|
264
262
|
},
|
|
265
263
|
disabled: {
|
|
266
|
-
light: (
|
|
267
|
-
dark: (
|
|
264
|
+
light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
|
|
265
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
|
|
268
266
|
},
|
|
269
267
|
selected: {
|
|
270
|
-
light: (
|
|
271
|
-
dark: (
|
|
268
|
+
light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
|
|
269
|
+
dark: "var(--ds-text-brand, ".concat(colors.DN400, ")")
|
|
272
270
|
},
|
|
273
271
|
focusSelected: {
|
|
274
|
-
light: (
|
|
275
|
-
dark: (
|
|
272
|
+
light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
|
|
273
|
+
dark: "var(--ds-text-brand, ".concat(colors.DN400, ")")
|
|
276
274
|
}
|
|
277
275
|
},
|
|
278
276
|
primary: {
|
|
279
277
|
default: {
|
|
280
|
-
light: (
|
|
281
|
-
dark: (
|
|
278
|
+
light: "var(--ds-text-inverse, ".concat(colors.N0, ")"),
|
|
279
|
+
dark: "var(--ds-text-inverse, ".concat(colors.DN30, ")")
|
|
282
280
|
},
|
|
283
281
|
disabled: {
|
|
284
|
-
light: (
|
|
285
|
-
dark: (
|
|
282
|
+
light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
|
|
283
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
|
|
286
284
|
},
|
|
287
285
|
selected: {
|
|
288
|
-
light: (
|
|
289
|
-
dark: (
|
|
286
|
+
light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
|
|
287
|
+
dark: "var(--ds-text-brand, ".concat(colors.DN400, ")")
|
|
290
288
|
},
|
|
291
289
|
focusSelected: {
|
|
292
|
-
light: (
|
|
293
|
-
dark: (
|
|
290
|
+
light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
|
|
291
|
+
dark: "var(--ds-text-brand, ".concat(colors.DN400, ")")
|
|
294
292
|
}
|
|
295
293
|
},
|
|
296
294
|
warning: {
|
|
297
295
|
default: {
|
|
298
|
-
light: (
|
|
299
|
-
dark: (
|
|
296
|
+
light: "var(--ds-text-warning-inverse, ".concat(colors.N800, ")"),
|
|
297
|
+
dark: "var(--ds-text-warning-inverse, ".concat(colors.N800, ")")
|
|
300
298
|
},
|
|
301
299
|
disabled: {
|
|
302
|
-
light: (
|
|
303
|
-
dark: (
|
|
300
|
+
light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
|
|
301
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
|
|
304
302
|
},
|
|
305
303
|
selected: {
|
|
306
|
-
light: (
|
|
307
|
-
dark: (
|
|
304
|
+
light: "var(--ds-text-brand, ".concat(colors.N800, ")"),
|
|
305
|
+
dark: "var(--ds-text-brand, ".concat(colors.N800, ")")
|
|
308
306
|
},
|
|
309
307
|
focusSelected: {
|
|
310
|
-
light: (
|
|
311
|
-
dark: (
|
|
308
|
+
light: "var(--ds-text-brand, ".concat(colors.N800, ")"),
|
|
309
|
+
dark: "var(--ds-text-brand, ".concat(colors.N800, ")")
|
|
312
310
|
}
|
|
313
311
|
},
|
|
314
312
|
danger: {
|
|
315
313
|
default: {
|
|
316
|
-
light: (
|
|
317
|
-
dark: (
|
|
314
|
+
light: "var(--ds-text-inverse, ".concat(colors.N0, ")"),
|
|
315
|
+
dark: "var(--ds-text-inverse, ".concat(colors.N0, ")")
|
|
318
316
|
},
|
|
319
317
|
disabled: {
|
|
320
|
-
light: (
|
|
321
|
-
dark: (
|
|
318
|
+
light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
|
|
319
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN30, ")")
|
|
322
320
|
},
|
|
323
321
|
selected: {
|
|
324
|
-
light: (
|
|
325
|
-
dark: (
|
|
322
|
+
light: "var(--ds-text-brand, ".concat(colors.N0, ")"),
|
|
323
|
+
dark: "var(--ds-text-brand, ".concat(colors.N0, ")")
|
|
326
324
|
},
|
|
327
325
|
focusSelected: {
|
|
328
|
-
light: (
|
|
329
|
-
dark: (
|
|
326
|
+
light: "var(--ds-text-brand, ".concat(colors.N0, ")"),
|
|
327
|
+
dark: "var(--ds-text-brand, ".concat(colors.N0, ")")
|
|
330
328
|
}
|
|
331
329
|
},
|
|
332
330
|
link: {
|
|
333
331
|
default: {
|
|
334
|
-
light: (
|
|
335
|
-
dark: (
|
|
332
|
+
light: "var(--ds-link, ".concat(colors.B400, ")"),
|
|
333
|
+
dark: "var(--ds-link, ".concat(colors.B100, ")")
|
|
336
334
|
},
|
|
337
335
|
hover: {
|
|
338
|
-
light: (
|
|
339
|
-
dark: (
|
|
336
|
+
light: "var(--ds-link, ".concat(colors.B300, ")"),
|
|
337
|
+
dark: "var(--ds-link, ".concat(colors.B75, ")")
|
|
340
338
|
},
|
|
341
339
|
active: {
|
|
342
|
-
light: (
|
|
343
|
-
dark: (
|
|
340
|
+
light: "var(--ds-link-pressed, ".concat(colors.B500, ")"),
|
|
341
|
+
dark: "var(--ds-link-pressed, ".concat(colors.B200, ")")
|
|
344
342
|
},
|
|
345
343
|
disabled: {
|
|
346
|
-
light: (
|
|
347
|
-
dark: (
|
|
344
|
+
light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
|
|
345
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN100, ")")
|
|
348
346
|
},
|
|
349
347
|
selected: {
|
|
350
|
-
light: (
|
|
351
|
-
dark: (
|
|
348
|
+
light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
|
|
349
|
+
dark: "var(--ds-text-brand, ".concat(colors.N700, ")")
|
|
352
350
|
},
|
|
353
351
|
focusSelected: {
|
|
354
|
-
light: (
|
|
355
|
-
dark: (
|
|
352
|
+
light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
|
|
353
|
+
dark: "var(--ds-text-brand, ".concat(colors.N700, ")")
|
|
356
354
|
}
|
|
357
355
|
},
|
|
358
356
|
subtle: {
|
|
359
357
|
default: {
|
|
360
|
-
light: (
|
|
361
|
-
dark: (
|
|
358
|
+
light: "var(--ds-text, ".concat(colors.N500, ")"),
|
|
359
|
+
dark: "var(--ds-text, ".concat(colors.DN400, ")")
|
|
362
360
|
},
|
|
363
361
|
active: {
|
|
364
|
-
light: (
|
|
365
|
-
dark: (
|
|
362
|
+
light: "var(--ds-text, ".concat(colors.B400, ")"),
|
|
363
|
+
dark: "var(--ds-text, ".concat(colors.B400, ")")
|
|
366
364
|
},
|
|
367
365
|
disabled: {
|
|
368
|
-
light: (
|
|
369
|
-
dark: (
|
|
366
|
+
light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
|
|
367
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN100, ")")
|
|
370
368
|
},
|
|
371
369
|
selected: {
|
|
372
|
-
light: (
|
|
373
|
-
dark: (
|
|
370
|
+
light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
|
|
371
|
+
dark: "var(--ds-text-brand, ".concat(colors.DN400, ")")
|
|
374
372
|
},
|
|
375
373
|
focusSelected: {
|
|
376
|
-
light: (
|
|
377
|
-
dark: (
|
|
374
|
+
light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
|
|
375
|
+
dark: "var(--ds-text-brand, ".concat(colors.DN400, ")")
|
|
378
376
|
}
|
|
379
377
|
},
|
|
380
378
|
'subtle-link': {
|
|
381
379
|
default: {
|
|
382
|
-
light: (
|
|
383
|
-
dark: (
|
|
380
|
+
light: "var(--ds-text-subtle, ".concat(colors.N200, ")"),
|
|
381
|
+
dark: "var(--ds-text-subtle, ".concat(colors.DN400, ")")
|
|
384
382
|
},
|
|
385
383
|
hover: {
|
|
386
|
-
light: (
|
|
387
|
-
dark: (
|
|
384
|
+
light: "var(--ds-text-subtle, ".concat(colors.N90, ")"),
|
|
385
|
+
dark: "var(--ds-text-subtle, ".concat(colors.B50, ")")
|
|
388
386
|
},
|
|
389
387
|
active: {
|
|
390
|
-
light: (
|
|
391
|
-
dark: (
|
|
388
|
+
light: "var(--ds-text, ".concat(colors.N400, ")"),
|
|
389
|
+
dark: "var(--ds-text, ".concat(colors.DN300, ")")
|
|
392
390
|
},
|
|
393
391
|
disabled: {
|
|
394
|
-
light: (
|
|
395
|
-
dark: (
|
|
392
|
+
light: "var(--ds-text-disabled, ".concat(colors.N70, ")"),
|
|
393
|
+
dark: "var(--ds-text-disabled, ".concat(colors.DN100, ")")
|
|
396
394
|
},
|
|
397
395
|
selected: {
|
|
398
|
-
light: (
|
|
399
|
-
dark: (
|
|
396
|
+
light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
|
|
397
|
+
dark: "var(--ds-text-brand, ".concat(colors.DN400, ")")
|
|
400
398
|
},
|
|
401
399
|
focusSelected: {
|
|
402
|
-
light: (
|
|
403
|
-
dark: (
|
|
400
|
+
light: "var(--ds-text-brand, ".concat(colors.N20, ")"),
|
|
401
|
+
dark: "var(--ds-text-brand, ".concat(colors.DN400, ")")
|
|
404
402
|
}
|
|
405
403
|
}
|
|
406
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)();
|