@semcore/button 5.43.1-prerelease.5 → 5.43.2-prerelease.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/lib/cjs/component/Button/Button.js +31 -29
- package/lib/cjs/component/Button/Button.js.map +1 -1
- package/lib/cjs/component/ButtonLink/ButtonLink.js +23 -21
- package/lib/cjs/component/ButtonLink/ButtonLink.js.map +1 -1
- package/lib/es6/component/Button/Button.js +31 -29
- package/lib/es6/component/Button/Button.js.map +1 -1
- package/lib/es6/component/ButtonLink/ButtonLink.js +23 -21
- package/lib/es6/component/ButtonLink/ButtonLink.js.map +1 -1
- package/lib/esm/component/AbstractButton/AbstractButton.mjs +113 -83
- package/lib/esm/component/AbstractButton/SpinButton.mjs +14 -13
- package/lib/esm/component/Button/Button.mjs +80 -75
- package/lib/esm/component/Button/button.shadow.css +406 -0
- package/lib/esm/component/ButtonLink/ButtonLink.mjs +78 -69
- package/lib/esm/component/ButtonLink/buttonLink.shadow.css +168 -0
- package/lib/esm/index.mjs +6 -6
- package/package.json +7 -7
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
SButton {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
padding: 0;
|
|
7
|
+
margin: 0;
|
|
8
|
+
white-space: nowrap;
|
|
9
|
+
font-family: inherit;
|
|
10
|
+
line-height: normal;
|
|
11
|
+
text-decoration: none;
|
|
12
|
+
text-align: center;
|
|
13
|
+
vertical-align: middle;
|
|
14
|
+
border: 1px solid transparent;
|
|
15
|
+
outline: 0;
|
|
16
|
+
box-shadow: none;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
overflow: visible;
|
|
20
|
+
user-select: none;
|
|
21
|
+
touch-action: manipulation;
|
|
22
|
+
-webkit-tap-highlight-color: transparent;
|
|
23
|
+
font-weight: var(--intergalactic-medium, 500);
|
|
24
|
+
color: var(--intergalactic-text-secondary, #6c6e79);
|
|
25
|
+
min-width: fit-content;
|
|
26
|
+
|
|
27
|
+
&::-moz-focus-inner {
|
|
28
|
+
padding: 0;
|
|
29
|
+
border: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:active,
|
|
33
|
+
&:hover,
|
|
34
|
+
&:focus {
|
|
35
|
+
outline: 0;
|
|
36
|
+
text-decoration: none;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
SButton[keyboardFocused] {
|
|
41
|
+
box-shadow: var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));
|
|
42
|
+
z-index: 1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
SButton[disabled] {
|
|
46
|
+
opacity: var(--intergalactic-disabled-opacity, 0.3);
|
|
47
|
+
cursor: default;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
box-shadow: none;
|
|
50
|
+
z-index: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
SButton[size='s'] {
|
|
54
|
+
width: var(--intergalactic-form-control-s, 20px);
|
|
55
|
+
height: var(--intergalactic-form-control-s, 20px);
|
|
56
|
+
border-radius: var(--intergalactic-addon-rounded, 4px);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
SButton[size='m'] {
|
|
60
|
+
height: var(--intergalactic-form-control-m, 28px);
|
|
61
|
+
border-radius: var(--intergalactic-control-rounded, 6px);
|
|
62
|
+
font-size: var(--intergalactic-fs-200, 14px);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
SButton[size='l'] {
|
|
66
|
+
height: var(--intergalactic-form-control-l, 40px);
|
|
67
|
+
border-radius: var(--intergalactic-control-rounded, 6px);
|
|
68
|
+
font-size: var(--intergalactic-fs-300, 16px);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
SButton[theme='primary-info'] {
|
|
72
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
73
|
+
background-color: var(--intergalactic-control-primary-info, #008ff8);
|
|
74
|
+
|
|
75
|
+
&:hover {
|
|
76
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
77
|
+
background-color: var(--intergalactic-control-primary-info-hover, #006dca);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:active,
|
|
81
|
+
&[active] {
|
|
82
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
83
|
+
background-color: var(--intergalactic-control-primary-info-active, #044792);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
SButton[theme='primary-success'] {
|
|
88
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
89
|
+
background-color: var(--intergalactic-control-primary-success, #009f81);
|
|
90
|
+
|
|
91
|
+
&:hover {
|
|
92
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
93
|
+
background-color: var(--intergalactic-control-primary-success-hover, #007c65);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:active,
|
|
97
|
+
&[active] {
|
|
98
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
99
|
+
background-color: var(--intergalactic-control-primary-success-active, #055345);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
SButton[theme='primary-brand'] {
|
|
104
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
105
|
+
background-color: var(--intergalactic-control-primary-brand, #ff642d);
|
|
106
|
+
|
|
107
|
+
&:hover {
|
|
108
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
109
|
+
background-color: var(--intergalactic-control-primary-brand-hover, #c33909);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&:active,
|
|
113
|
+
&[active] {
|
|
114
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
115
|
+
background-color: var(--intergalactic-control-primary-brand-active, #8b1500);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
SButton[theme='primary-warning'] {
|
|
120
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
121
|
+
background-color: var(--intergalactic-control-primary-brand, #ff642d);
|
|
122
|
+
|
|
123
|
+
&:hover {
|
|
124
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
125
|
+
background-color: var(--intergalactic-control-primary-brand-hover, #c33909);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&:active,
|
|
129
|
+
&[active] {
|
|
130
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
131
|
+
background-color: var(--intergalactic-control-primary-brand-active, #8b1500);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
SButton[theme='primary-danger'] {
|
|
136
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
137
|
+
background-color: var(--intergalactic-control-primary-critical, #ff4953);
|
|
138
|
+
|
|
139
|
+
&:hover {
|
|
140
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
141
|
+
background-color: var(--intergalactic-control-primary-critical-hover, #d1002f);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&:active,
|
|
145
|
+
&[active] {
|
|
146
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
147
|
+
background-color: var(--intergalactic-control-primary-critical-active, #8e0016);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
SButton[theme='primary-invert'] {
|
|
152
|
+
color: var(--intergalactic-text-primary, #191b23);
|
|
153
|
+
background-color: var(--intergalactic-control-primary-invert, #ffffff);
|
|
154
|
+
|
|
155
|
+
&:hover {
|
|
156
|
+
color: var(--intergalactic-text-primary, #191b23);
|
|
157
|
+
background-color: var(--intergalactic-control-primary-invert-hover, #f4f5f9);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&:active,
|
|
161
|
+
&[active] {
|
|
162
|
+
color: var(--intergalactic-text-primary, #191b23);
|
|
163
|
+
background-color: var(--intergalactic-control-primary-invert-active, #e0e1e9);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
SButton[theme='secondary-muted'] {
|
|
168
|
+
color: var(--intergalactic-text-secondary, #6c6e79);
|
|
169
|
+
border-color: var(--intergalactic-border-primary, #c4c7cf);
|
|
170
|
+
background-color: var(--intergalactic-control-secondary-neutral, rgba(138, 142, 155, 0.1));
|
|
171
|
+
|
|
172
|
+
&:hover {
|
|
173
|
+
background-color: var(--intergalactic-control-secondary-neutral-hover,
|
|
174
|
+
rgba(138, 142, 155, 0.2));
|
|
175
|
+
color: var(--intergalactic-text-primary, #191b23);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&:active,
|
|
179
|
+
&[active] {
|
|
180
|
+
background-color: var(--intergalactic-control-secondary-neutral-active,
|
|
181
|
+
rgba(138, 142, 155, 0.3));
|
|
182
|
+
color: var(--intergalactic-text-primary, #191b23);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
SButton[theme='secondary-info'] {
|
|
187
|
+
background-color: var(--intergalactic-control-secondary-info, rgba(0, 143, 248, 0.1));
|
|
188
|
+
color: var(--intergalactic-text-link, #006dca);
|
|
189
|
+
border-color: var(--intergalactic-control-primary-info, #008ff8);
|
|
190
|
+
|
|
191
|
+
&:hover {
|
|
192
|
+
color: var(--intergalactic-text-link, #006dca);
|
|
193
|
+
background-color: var(--intergalactic-control-secondary-info-hover, rgba(0, 143, 248, 0.2));
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&:active,
|
|
197
|
+
&[active] {
|
|
198
|
+
color: var(--intergalactic-text-link, #006dca);
|
|
199
|
+
background-color: var(--intergalactic-control-secondary-info-active, rgba(0, 143, 248, 0.3));
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
SButton[theme='secondary-invert'] {
|
|
204
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
205
|
+
border-color: var(--intergalactic-border-primary-invert, #ffffff);
|
|
206
|
+
background-color: var(--intergalactic-control-secondary-invert, rgba(255, 255, 255, 0.05));
|
|
207
|
+
|
|
208
|
+
&:hover {
|
|
209
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
210
|
+
background-color: var(--intergalactic-control-secondary-invert-hover, rgba(255, 255, 255, 0.1));
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
&:active,
|
|
214
|
+
&[active] {
|
|
215
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
216
|
+
background-color: var(--intergalactic-control-secondary-invert-active,
|
|
217
|
+
rgba(255, 255, 255, 0.3));
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
SButton[theme='tertiary-info'] {
|
|
222
|
+
color: var(--intergalactic-text-link, #006dca);
|
|
223
|
+
background-color: var(--intergalactic-control-tertiary-info, rgba(0, 143, 248, 0));
|
|
224
|
+
|
|
225
|
+
&:hover {
|
|
226
|
+
color: var(--intergalactic-text-link, #006dca);
|
|
227
|
+
background-color: var(--intergalactic-control-tertiary-info-hover, rgba(0, 143, 248, 0.2));
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&:active,
|
|
231
|
+
&[active] {
|
|
232
|
+
color: var(--intergalactic-text-link, #006dca);
|
|
233
|
+
background-color: var(--intergalactic-control-tertiary-info-active, rgba(0, 143, 248, 0.3));
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
SButton[theme='tertiary-muted'] {
|
|
238
|
+
color: var(--intergalactic-text-secondary, #6c6e79);
|
|
239
|
+
background-color: var(--intergalactic-control-tertiary-neutral, rgba(138, 142, 155, 0));
|
|
240
|
+
|
|
241
|
+
&:hover {
|
|
242
|
+
background-color: var(--intergalactic-control-tertiary-neutral-hover, rgba(138, 142, 155, 0.2));
|
|
243
|
+
color: var(--intergalactic-text-primary, #191b23);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&:active,
|
|
247
|
+
&[active] {
|
|
248
|
+
background-color: var(--intergalactic-control-tertiary-neutral-active,
|
|
249
|
+
rgba(138, 142, 155, 0.3));
|
|
250
|
+
color: var(--intergalactic-text-primary, #191b23);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
SButton[theme='tertiary-invert'] {
|
|
255
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
256
|
+
background-color: var(--intergalactic-control-tertiary-invert, rgba(255, 255, 255, 0));
|
|
257
|
+
|
|
258
|
+
&:hover {
|
|
259
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
260
|
+
background-color: var(--intergalactic-control-tertiary-invert-hover, rgba(255, 255, 255, 0.1));
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
&:active,
|
|
264
|
+
&[active] {
|
|
265
|
+
color: var(--intergalactic-text-primary-invert, #ffffff);
|
|
266
|
+
background-color: var(--intergalactic-control-tertiary-invert-active, rgba(255, 255, 255, 0.3));
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
SButton[neighborLocation='right'] {
|
|
271
|
+
border-top-right-radius: 0;
|
|
272
|
+
border-bottom-right-radius: 0;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
SButton[neighborLocation='both'] {
|
|
276
|
+
border-radius: 0;
|
|
277
|
+
/* disable-tokens-validator */
|
|
278
|
+
margin-left: -1px;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
SButton[neighborLocation='left'] {
|
|
282
|
+
border-top-left-radius: 0;
|
|
283
|
+
border-bottom-left-radius: 0;
|
|
284
|
+
/* disable-tokens-validator */
|
|
285
|
+
margin-left: -1px;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
SButton[neighborLocation='both'],
|
|
289
|
+
SButton[neighborLocation='left'] {
|
|
290
|
+
position: relative;
|
|
291
|
+
|
|
292
|
+
&:after {
|
|
293
|
+
background-color: var(--intergalactic-border-primary-invert, #ffffff);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
&[theme='secondary-muted'] {
|
|
297
|
+
&:after {
|
|
298
|
+
background-color: var(--intergalactic-border-primary, #c4c7cf);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
SButton+SButton[neighborLocation='both']:after,
|
|
304
|
+
SButton+SButton[neighborLocation='left']:after {
|
|
305
|
+
content: '';
|
|
306
|
+
position: absolute;
|
|
307
|
+
top: -1px;
|
|
308
|
+
left: -1px;
|
|
309
|
+
width: 1px;
|
|
310
|
+
height: calc(100% + 2px);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
SSpin {
|
|
314
|
+
position: absolute;
|
|
315
|
+
top: 0;
|
|
316
|
+
left: 0;
|
|
317
|
+
width: 100%;
|
|
318
|
+
height: 100%;
|
|
319
|
+
display: flex;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
SInner {
|
|
323
|
+
display: inline-flex;
|
|
324
|
+
align-items: center;
|
|
325
|
+
justify-content: center;
|
|
326
|
+
height: 100%;
|
|
327
|
+
width: 100%;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
SInner[loading] {
|
|
331
|
+
visibility: hidden;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
SText {
|
|
335
|
+
display: inline-flex;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
SText[size='m'] {
|
|
339
|
+
margin-left: var(--intergalactic-spacing-2x, 8px);
|
|
340
|
+
margin-right: var(--intergalactic-spacing-2x, 8px);
|
|
341
|
+
line-height: var(--intergalactic-lh-200, 142%);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
SText[size='l'] {
|
|
345
|
+
margin-left: var(--intergalactic-spacing-2x, 8px);
|
|
346
|
+
margin-right: var(--intergalactic-spacing-2x, 8px);
|
|
347
|
+
line-height: var(--intergalactic-lh-300, 150%);
|
|
348
|
+
|
|
349
|
+
&:only-child {
|
|
350
|
+
margin-left: var(--intergalactic-spacing-3x, 12px);
|
|
351
|
+
margin-right: var(--intergalactic-spacing-3x, 12px);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
&:first-child {
|
|
355
|
+
margin-left: var(--intergalactic-spacing-3x, 12px);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
&:last-child {
|
|
359
|
+
margin-right: var(--intergalactic-spacing-3x, 12px);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
SAddon {
|
|
364
|
+
display: inline-flex;
|
|
365
|
+
align-items: center;
|
|
366
|
+
justify-content: center;
|
|
367
|
+
pointer-events: none;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
SAddon[size='m'] {
|
|
371
|
+
&:not(:only-child):first-child {
|
|
372
|
+
margin-left: calc(var(--intergalactic-spacing-2x, 8px) - 1px);
|
|
373
|
+
/* -1px - for border width */
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
&:not(:only-child):last-child {
|
|
377
|
+
margin-right: calc(var(--intergalactic-spacing-2x, 8px) - 1px);
|
|
378
|
+
/* -1px - for border width */
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
&:only-child {
|
|
382
|
+
margin-left: calc(1.5 * var(--intergalactic-spacing-1x, 4px) - 1px);
|
|
383
|
+
/* -1px - for border width */
|
|
384
|
+
margin-right: calc(1.5 * var(--intergalactic-spacing-1x, 4px) - 1px);
|
|
385
|
+
/* -1px - for border width */
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
SAddon[size='l'] {
|
|
390
|
+
&:not(:only-child):first-child {
|
|
391
|
+
margin-left: calc(var(--intergalactic-spacing-3x, 12px) - 1px);
|
|
392
|
+
/* -1px - for border width */
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
&:not(:only-child):last-child {
|
|
396
|
+
margin-right: calc(var(--intergalactic-spacing-3x, 12px) - 1px);
|
|
397
|
+
/* -1px - for border width */
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
&:only-child {
|
|
401
|
+
margin-left: calc(3 * var(--intergalactic-spacing-1x, 4px) - 1px);
|
|
402
|
+
/* -1px - for border width */
|
|
403
|
+
margin-right: calc(3 * var(--intergalactic-spacing-1x, 4px) - 1px);
|
|
404
|
+
/* -1px - for border width */
|
|
405
|
+
}
|
|
406
|
+
}
|
|
@@ -1,82 +1,91 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { sstyled
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { Box
|
|
12
|
-
import { AbstractButton
|
|
13
|
-
import
|
|
14
|
-
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
5
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
6
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
+
import { sstyled } from "@semcore/utils/lib/core/index";
|
|
8
|
+
import createComponent, { sstyled as sstyled$1, assignProps } from "@semcore/core";
|
|
9
|
+
import React from "react";
|
|
10
|
+
import keyboardFocusEnhance from "@semcore/utils/lib/enhances/keyboardFocusEnhance";
|
|
11
|
+
import { Box } from "@semcore/flex-box";
|
|
12
|
+
import { AbstractButton } from "../AbstractButton/AbstractButton.mjs";
|
|
13
|
+
import resolveColorEnhance from "@semcore/utils/lib/enhances/resolveColorEnhance";
|
|
14
|
+
/*!__reshadow-styles__:"./buttonLink.shadow.css"*/
|
|
15
|
+
var style = (
|
|
15
16
|
/*__reshadow_css_start__*/
|
|
16
|
-
(
|
|
17
|
+
(sstyled.insert(
|
|
17
18
|
/*__inner_css_start__*/
|
|
18
|
-
".
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
"
|
|
19
|
+
".___SButton_w7yoq_gg_{display:inline-flex;font-family:inherit;font-size:var(--intergalactic-fs-200, 14px);color:var(--intergalactic-text-link, #006dca);line-height:normal;position:relative;cursor:pointer;-webkit-text-decoration:none;text-decoration:none;border:0;padding:0;margin:0;box-shadow:none;-webkit-tap-highlight-color:transparent;outline:0;background:0 0;transition:color .15s ease-in-out}.___SButton_w7yoq_gg_:active,.___SButton_w7yoq_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SButton_w7yoq_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SButton_w7yoq_gg_::-moz-focus-inner{border:0;padding:0}.___SButton_w7yoq_gg_.__active_w7yoq_gg_,.___SButton_w7yoq_gg_:active{color:var(--intergalactic-text-link-hover-active, #044792)}@media (hover:hover){.___SButton_w7yoq_gg_:hover{color:var(--intergalactic-text-link-hover-active, #044792)}}.___SButton_w7yoq_gg_.__active_w7yoq_gg_ .___SText_w7yoq_gg_,.___SButton_w7yoq_gg_:active .___SText_w7yoq_gg_{border-color:currentColor}@media (hover:hover){.___SButton_w7yoq_gg_:hover .___SText_w7yoq_gg_{border-color:currentColor}}.___SButton_w7yoq_gg_.__enableVisited_w7yoq_gg_:visited{color:var(--intergalactic-text-link-visited, #8649e1)}@media (hover:hover){.___SButton_w7yoq_gg_.__enableVisited_w7yoq_gg_:visited:hover{color:var(--intergalactic-text-link-visited, #8649e1)}}.___SButton_w7yoq_gg_ .___SText_w7yoq_gg_{border-bottom-width:1px;border-bottom-style:solid;border-color:transparent;transition:border-bottom-color .15s ease-in-out}.___SButton_w7yoq_gg_.__keyboardFocused_w7yoq_gg_{outline-color:var(--intergalactic-keyboard-focus-outline, rgba(0, 143, 248, 0.5));outline-style:solid;outline-width:3px}.___SButton_w7yoq_gg_.__disabled_w7yoq_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SButton_w7yoq_gg_._use_secondary_w7yoq_gg_{color:var(--intergalactic-text-hint, #6c6e79)}.___SButton_w7yoq_gg_._use_secondary_w7yoq_gg_.__active_w7yoq_gg_,.___SButton_w7yoq_gg_._use_secondary_w7yoq_gg_:active{color:var(--intergalactic-text-hint-hover-active, #484a54)}@media (hover:hover){.___SButton_w7yoq_gg_._use_secondary_w7yoq_gg_:hover{color:var(--intergalactic-text-hint-hover-active, #484a54)}}.___SButton_w7yoq_gg_._use_secondary_w7yoq_gg_ .___SText_w7yoq_gg_{border-bottom-width:1px;border-bottom-style:dashed;border-color:currentColor}.___SAddon_w7yoq_gg_,.___SInner_w7yoq_gg_{display:inline-flex;justify-content:center;align-items:center}.___SInner_w7yoq_gg_{height:100%;width:100%}.___SAddon_w7yoq_gg_{vertical-align:middle;pointer-events:none}.___SButton_w7yoq_gg_ .___SAddon_w7yoq_gg_:not(:only-child):first-child{margin-right:var(--intergalactic-spacing-1x, 4px)}.___SButton_w7yoq_gg_ .___SAddon_w7yoq_gg_:not(:only-child):last-child{margin-left:var(--intergalactic-spacing-1x, 4px)}.___SButton_w7yoq_gg_.__text-color_w7yoq_gg_{color:var(--text-color_w7yoq)}.___SButton_w7yoq_gg_.__text-color_w7yoq_gg_.__active_w7yoq_gg_,.___SButton_w7yoq_gg_.__text-color_w7yoq_gg_:active{color:var(--text-color_w7yoq);filter:brightness(.8)}@media (hover:hover){.___SButton_w7yoq_gg_.__text-color_w7yoq_gg_:hover{color:var(--text-color_w7yoq);filter:brightness(.8)}}.___SButton_w7yoq_gg_._size_100_w7yoq_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___SButton_w7yoq_gg_._size_200_w7yoq_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SButton_w7yoq_gg_._size_300_w7yoq_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SButton_w7yoq_gg_._size_400_w7yoq_gg_{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%)}.___SButton_w7yoq_gg_._size_500_w7yoq_gg_{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%)}.___SButton_w7yoq_gg_._size_600_w7yoq_gg_{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%)}.___SButton_w7yoq_gg_._size_700_w7yoq_gg_{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%)}.___SButton_w7yoq_gg_._size_800_w7yoq_gg_{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%)}@media (prefers-reduced-motion){.___SButton_w7yoq_gg_,.___SText_w7yoq_gg_{transition:none}}",
|
|
20
|
+
/*__inner_css_end__*/
|
|
21
|
+
"w7yoq_gg_"
|
|
22
|
+
), /*__reshadow_css_end__*/
|
|
23
|
+
{
|
|
24
|
+
"__SButton": "___SButton_w7yoq_gg_",
|
|
25
|
+
"_keyboardFocused": "__keyboardFocused_w7yoq_gg_",
|
|
26
|
+
"_disabled": "__disabled_w7yoq_gg_",
|
|
27
|
+
"__SInner": "___SInner_w7yoq_gg_",
|
|
28
|
+
"__SAddon": "___SAddon_w7yoq_gg_",
|
|
29
|
+
"_size_100": "_size_100_w7yoq_gg_",
|
|
30
|
+
"_size_200": "_size_200_w7yoq_gg_",
|
|
31
|
+
"_size_300": "_size_300_w7yoq_gg_",
|
|
32
|
+
"_size_400": "_size_400_w7yoq_gg_",
|
|
33
|
+
"_size_500": "_size_500_w7yoq_gg_",
|
|
34
|
+
"_size_600": "_size_600_w7yoq_gg_",
|
|
35
|
+
"_size_700": "_size_700_w7yoq_gg_",
|
|
36
|
+
"_size_800": "_size_800_w7yoq_gg_",
|
|
37
|
+
"__SText": "___SText_w7yoq_gg_",
|
|
38
|
+
"_active": "__active_w7yoq_gg_",
|
|
39
|
+
"_enableVisited": "__enableVisited_w7yoq_gg_",
|
|
40
|
+
"_use_secondary": "_use_secondary_w7yoq_gg_",
|
|
41
|
+
"_text-color": "__text-color_w7yoq_gg_",
|
|
42
|
+
"--text-color": "--text-color_w7yoq"
|
|
40
43
|
})
|
|
41
|
-
)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
);
|
|
45
|
+
var enhance = {
|
|
46
|
+
keyboardFocused: keyboardFocusEnhance(),
|
|
47
|
+
resolveColor: resolveColorEnhance()
|
|
48
|
+
};
|
|
49
|
+
var RootButtonLink = /* @__PURE__ */ function(_AbstractButton) {
|
|
50
|
+
_inherits(RootButtonLink2, _AbstractButton);
|
|
51
|
+
var _super = _createSuper(RootButtonLink2);
|
|
52
|
+
function RootButtonLink2() {
|
|
53
|
+
_classCallCheck(this, RootButtonLink2);
|
|
54
|
+
return _super.apply(this, arguments);
|
|
49
55
|
}
|
|
50
|
-
|
|
56
|
+
_createClass(RootButtonLink2, [{
|
|
51
57
|
key: "getTextColor",
|
|
52
|
-
value: function() {
|
|
53
|
-
var
|
|
54
|
-
return
|
|
58
|
+
value: function getTextColor() {
|
|
59
|
+
var _ref5 = this.asProps, color = _ref5.color, resolveColor = _ref5.resolveColor;
|
|
60
|
+
return resolveColor(color);
|
|
55
61
|
}
|
|
56
|
-
}])
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
+
}]);
|
|
63
|
+
return RootButtonLink2;
|
|
64
|
+
}(AbstractButton);
|
|
65
|
+
_defineProperty(RootButtonLink, "displayName", "ButtonLink");
|
|
66
|
+
_defineProperty(RootButtonLink, "enhance", Object.values(enhance));
|
|
67
|
+
_defineProperty(RootButtonLink, "style", style);
|
|
68
|
+
_defineProperty(RootButtonLink, "defaultProps", {
|
|
62
69
|
use: "primary"
|
|
63
70
|
});
|
|
64
|
-
function
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
71
|
+
function Text(props) {
|
|
72
|
+
var _ref = arguments[0], _ref3;
|
|
73
|
+
var SText = Box;
|
|
74
|
+
return _ref3 = sstyled$1(props.styles), /* @__PURE__ */ React.createElement(SText, _ref3.cn("SText", _objectSpread({}, assignProps({
|
|
75
|
+
"tag": "span"
|
|
76
|
+
}, _ref))));
|
|
69
77
|
}
|
|
70
|
-
function
|
|
71
|
-
var
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
78
|
+
function Addon(props) {
|
|
79
|
+
var _ref2 = arguments[0], _ref4;
|
|
80
|
+
var SAddon = Box;
|
|
81
|
+
return _ref4 = sstyled$1(props.styles), /* @__PURE__ */ React.createElement(SAddon, _ref4.cn("SAddon", _objectSpread({}, assignProps({
|
|
82
|
+
"tag": "span"
|
|
83
|
+
}, _ref2))));
|
|
75
84
|
}
|
|
76
|
-
var
|
|
77
|
-
Text
|
|
78
|
-
Addon
|
|
85
|
+
var ButtonLink = createComponent(RootButtonLink, {
|
|
86
|
+
Text,
|
|
87
|
+
Addon
|
|
79
88
|
});
|
|
80
89
|
export {
|
|
81
|
-
|
|
90
|
+
ButtonLink
|
|
82
91
|
};
|