@synergy-design-system/components 0.1.0 → 1.0.0-main.1

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.
Files changed (80) hide show
  1. package/package.json +29 -10
  2. package/dist/chunks/chunk.2A3352EO.js +0 -10
  3. package/dist/chunks/chunk.2CFEYJLE.js +0 -29
  4. package/dist/chunks/chunk.2DA7CIOQ.js +0 -44
  5. package/dist/chunks/chunk.4NMNW5OM.js +0 -22
  6. package/dist/chunks/chunk.7XI5LKCC.js +0 -14
  7. package/dist/chunks/chunk.HQUF2ZAX.js +0 -62
  8. package/dist/chunks/chunk.HSF5YXAS.js +0 -294
  9. package/dist/chunks/chunk.KHU4AFPL.js +0 -11
  10. package/dist/chunks/chunk.MAS2SHYD.js +0 -41
  11. package/dist/chunks/chunk.NBKDLFEY.js +0 -201
  12. package/dist/chunks/chunk.O3LUPMYG.js +0 -372
  13. package/dist/chunks/chunk.PM7NIY3M.js +0 -35
  14. package/dist/chunks/chunk.Q5SD5LHE.js +0 -607
  15. package/dist/chunks/chunk.QPNUJNT5.js +0 -70
  16. package/dist/chunks/chunk.SVIWEI6P.js +0 -27
  17. package/dist/chunks/chunk.VRTJZYIC.js +0 -127
  18. package/dist/chunks/chunk.XVEDHRRP.js +0 -500
  19. package/dist/chunks/chunk.Y5USHY74.js +0 -31
  20. package/dist/chunks/chunk.Z6AW3P62.js +0 -317
  21. package/dist/components/button/button.component.d.ts +0 -132
  22. package/dist/components/button/button.component.js +0 -21
  23. package/dist/components/button/button.d.ts +0 -8
  24. package/dist/components/button/button.js +0 -25
  25. package/dist/components/button/button.styles.d.ts +0 -2
  26. package/dist/components/button/button.styles.js +0 -8
  27. package/dist/components/icon/icon.component.d.ts +0 -42
  28. package/dist/components/icon/icon.component.js +0 -14
  29. package/dist/components/icon/icon.d.ts +0 -8
  30. package/dist/components/icon/icon.js +0 -18
  31. package/dist/components/icon/icon.styles.d.ts +0 -2
  32. package/dist/components/icon/icon.styles.js +0 -8
  33. package/dist/components/icon/library.d.ts +0 -19
  34. package/dist/components/icon/library.default.d.ts +0 -3
  35. package/dist/components/icon/library.default.js +0 -8
  36. package/dist/components/icon/library.js +0 -18
  37. package/dist/components/icon/library.system.d.ts +0 -3
  38. package/dist/components/icon/library.system.js +0 -7
  39. package/dist/components/input/input.component.d.ts +0 -179
  40. package/dist/components/input/input.component.js +0 -19
  41. package/dist/components/input/input.d.ts +0 -8
  42. package/dist/components/input/input.js +0 -20
  43. package/dist/components/input/input.styles.d.ts +0 -2
  44. package/dist/components/input/input.styles.js +0 -8
  45. package/dist/components/spinner/spinner.component.d.ts +0 -20
  46. package/dist/components/spinner/spinner.component.js +0 -12
  47. package/dist/components/spinner/spinner.styles.d.ts +0 -2
  48. package/dist/components/spinner/spinner.styles.js +0 -8
  49. package/dist/custom-elements.json +0 -1967
  50. package/dist/events/events.d.ts +0 -8
  51. package/dist/events/syn-blur.d.ts +0 -6
  52. package/dist/events/syn-change.d.ts +0 -6
  53. package/dist/events/syn-clear.d.ts +0 -6
  54. package/dist/events/syn-error.d.ts +0 -8
  55. package/dist/events/syn-focus.d.ts +0 -6
  56. package/dist/events/syn-input.d.ts +0 -6
  57. package/dist/events/syn-invalid.d.ts +0 -6
  58. package/dist/events/syn-load.d.ts +0 -6
  59. package/dist/internal/default-value.d.ts +0 -2
  60. package/dist/internal/form.d.ts +0 -73
  61. package/dist/internal/slot.d.ts +0 -23
  62. package/dist/internal/synergy-element.d.ts +0 -47
  63. package/dist/internal/test/form-control-base-tests.d.ts +0 -7
  64. package/dist/internal/watch.d.ts +0 -26
  65. package/dist/styles/component.styles.d.ts +0 -2
  66. package/dist/styles/form-control.styles.d.ts +0 -2
  67. package/dist/synergy-autoloader.d.ts +0 -4
  68. package/dist/synergy-autoloader.js +0 -40
  69. package/dist/synergy.d.ts +0 -2
  70. package/dist/synergy.js +0 -20
  71. package/dist/translations/de.d.ts +0 -3
  72. package/dist/translations/de.js +0 -45
  73. package/dist/translations/en.d.ts +0 -3
  74. package/dist/translations/en.js +0 -7
  75. package/dist/utilities/base-path.d.ts +0 -18
  76. package/dist/utilities/base-path.js +0 -9
  77. package/dist/utilities/localize.d.ts +0 -33
  78. package/dist/utilities/localize.js +0 -10
  79. package/dist/vscode.html-custom-data.json +0 -400
  80. package/dist/web-types.json +0 -790
@@ -1,607 +0,0 @@
1
- import {
2
- component_styles_default
3
- } from "./chunk.4NMNW5OM.js";
4
-
5
- // src/components/button/button.styles.ts
6
- import { css } from "lit";
7
- var button_styles_default = css`
8
- /* stylelint-disable */
9
- ${component_styles_default}
10
-
11
- :host {
12
- display: inline-block;
13
- position: relative;
14
- width: auto;
15
- cursor: pointer;
16
- }
17
-
18
- .button {
19
- display: inline-flex;
20
- align-items: stretch;
21
- justify-content: center;
22
- width: 100%;
23
- border-style: solid;
24
- border-width: var(--syn-input-border-width);
25
- font-family: var(--syn-input-font-family);
26
- font-weight: var(--syn-font-weight-semibold);
27
- text-decoration: none;
28
- user-select: none;
29
- -webkit-user-select: none;
30
- white-space: nowrap;
31
- vertical-align: middle;
32
- padding: 0;
33
- transition:
34
- var(--syn-transition-x-fast) background-color,
35
- var(--syn-transition-x-fast) color,
36
- var(--syn-transition-x-fast) border,
37
- var(--syn-transition-x-fast) box-shadow;
38
- cursor: inherit;
39
- }
40
-
41
- .button::-moz-focus-inner {
42
- border: 0;
43
- }
44
-
45
- .button:focus {
46
- outline: none;
47
- }
48
-
49
- .button:focus-visible {
50
- outline: var(--syn-focus-ring);
51
- outline-offset: var(--syn-focus-ring-offset);
52
- }
53
-
54
- .button--disabled {
55
- opacity: 0.5;
56
- cursor: not-allowed;
57
- }
58
-
59
- /* When disabled, prevent mouse events from bubbling up from children */
60
- .button--disabled * {
61
- pointer-events: none;
62
- }
63
-
64
- .button__prefix,
65
- .button__suffix {
66
- flex: 0 0 auto;
67
- display: flex;
68
- align-items: center;
69
- pointer-events: none;
70
- }
71
-
72
- .button__label {
73
- display: inline-block;
74
- }
75
-
76
- .button__label::slotted(syn-icon) {
77
- vertical-align: -2px;
78
- }
79
-
80
- /*
81
- * Standard buttons
82
- */
83
-
84
- /* Default */
85
- .button--standard.button--default {
86
- background-color: var(--syn-color-neutral-0);
87
- border-color: var(--syn-color-neutral-300);
88
- color: var(--syn-color-neutral-700);
89
- }
90
-
91
- .button--standard.button--default:hover:not(.button--disabled) {
92
- background-color: var(--syn-color-primary-50);
93
- border-color: var(--syn-color-primary-300);
94
- color: var(--syn-color-primary-700);
95
- }
96
-
97
- .button--standard.button--default:active:not(.button--disabled) {
98
- background-color: var(--syn-color-primary-100);
99
- border-color: var(--syn-color-primary-400);
100
- color: var(--syn-color-primary-700);
101
- }
102
-
103
- /* Primary */
104
- .button--standard.button--primary {
105
- background-color: var(--syn-color-primary-600);
106
- border-color: var(--syn-color-primary-600);
107
- color: var(--syn-color-neutral-0);
108
- }
109
-
110
- .button--standard.button--primary:hover:not(.button--disabled) {
111
- background-color: var(--syn-color-primary-500);
112
- border-color: var(--syn-color-primary-500);
113
- color: var(--syn-color-neutral-0);
114
- }
115
-
116
- .button--standard.button--primary:active:not(.button--disabled) {
117
- background-color: var(--syn-color-primary-600);
118
- border-color: var(--syn-color-primary-600);
119
- color: var(--syn-color-neutral-0);
120
- }
121
-
122
- /* Success */
123
- .button--standard.button--success {
124
- background-color: var(--syn-color-success-600);
125
- border-color: var(--syn-color-success-600);
126
- color: var(--syn-color-neutral-0);
127
- }
128
-
129
- .button--standard.button--success:hover:not(.button--disabled) {
130
- background-color: var(--syn-color-success-500);
131
- border-color: var(--syn-color-success-500);
132
- color: var(--syn-color-neutral-0);
133
- }
134
-
135
- .button--standard.button--success:active:not(.button--disabled) {
136
- background-color: var(--syn-color-success-600);
137
- border-color: var(--syn-color-success-600);
138
- color: var(--syn-color-neutral-0);
139
- }
140
-
141
- /* Neutral */
142
- .button--standard.button--neutral {
143
- background-color: var(--syn-color-neutral-600);
144
- border-color: var(--syn-color-neutral-600);
145
- color: var(--syn-color-neutral-0);
146
- }
147
-
148
- .button--standard.button--neutral:hover:not(.button--disabled) {
149
- background-color: var(--syn-color-neutral-500);
150
- border-color: var(--syn-color-neutral-500);
151
- color: var(--syn-color-neutral-0);
152
- }
153
-
154
- .button--standard.button--neutral:active:not(.button--disabled) {
155
- background-color: var(--syn-color-neutral-600);
156
- border-color: var(--syn-color-neutral-600);
157
- color: var(--syn-color-neutral-0);
158
- }
159
-
160
- /* Warning */
161
- .button--standard.button--warning {
162
- background-color: var(--syn-color-warning-600);
163
- border-color: var(--syn-color-warning-600);
164
- color: var(--syn-color-neutral-0);
165
- }
166
- .button--standard.button--warning:hover:not(.button--disabled) {
167
- background-color: var(--syn-color-warning-500);
168
- border-color: var(--syn-color-warning-500);
169
- color: var(--syn-color-neutral-0);
170
- }
171
-
172
- .button--standard.button--warning:active:not(.button--disabled) {
173
- background-color: var(--syn-color-warning-600);
174
- border-color: var(--syn-color-warning-600);
175
- color: var(--syn-color-neutral-0);
176
- }
177
-
178
- /* Danger */
179
- .button--standard.button--danger {
180
- background-color: var(--syn-color-danger-600);
181
- border-color: var(--syn-color-danger-600);
182
- color: var(--syn-color-neutral-0);
183
- }
184
-
185
- .button--standard.button--danger:hover:not(.button--disabled) {
186
- background-color: var(--syn-color-danger-500);
187
- border-color: var(--syn-color-danger-500);
188
- color: var(--syn-color-neutral-0);
189
- }
190
-
191
- .button--standard.button--danger:active:not(.button--disabled) {
192
- background-color: var(--syn-color-danger-600);
193
- border-color: var(--syn-color-danger-600);
194
- color: var(--syn-color-neutral-0);
195
- }
196
-
197
- /*
198
- * Outline buttons
199
- */
200
-
201
- .button--outline {
202
- background: none;
203
- border: solid 1px;
204
- }
205
-
206
- /* Default */
207
- .button--outline.button--default {
208
- border-color: var(--syn-color-neutral-300);
209
- color: var(--syn-color-neutral-700);
210
- }
211
-
212
- .button--outline.button--default:hover:not(.button--disabled),
213
- .button--outline.button--default.button--checked:not(.button--disabled) {
214
- border-color: var(--syn-color-primary-600);
215
- background-color: var(--syn-color-primary-600);
216
- color: var(--syn-color-neutral-0);
217
- }
218
-
219
- .button--outline.button--default:active:not(.button--disabled) {
220
- border-color: var(--syn-color-primary-700);
221
- background-color: var(--syn-color-primary-700);
222
- color: var(--syn-color-neutral-0);
223
- }
224
-
225
- /* Primary */
226
- .button--outline.button--primary {
227
- border-color: var(--syn-color-primary-600);
228
- color: var(--syn-color-primary-600);
229
- }
230
-
231
- .button--outline.button--primary:hover:not(.button--disabled),
232
- .button--outline.button--primary.button--checked:not(.button--disabled) {
233
- background-color: var(--syn-color-primary-600);
234
- color: var(--syn-color-neutral-0);
235
- }
236
-
237
- .button--outline.button--primary:active:not(.button--disabled) {
238
- border-color: var(--syn-color-primary-700);
239
- background-color: var(--syn-color-primary-700);
240
- color: var(--syn-color-neutral-0);
241
- }
242
-
243
- /* Success */
244
- .button--outline.button--success {
245
- border-color: var(--syn-color-success-600);
246
- color: var(--syn-color-success-600);
247
- }
248
-
249
- .button--outline.button--success:hover:not(.button--disabled),
250
- .button--outline.button--success.button--checked:not(.button--disabled) {
251
- background-color: var(--syn-color-success-600);
252
- color: var(--syn-color-neutral-0);
253
- }
254
-
255
- .button--outline.button--success:active:not(.button--disabled) {
256
- border-color: var(--syn-color-success-700);
257
- background-color: var(--syn-color-success-700);
258
- color: var(--syn-color-neutral-0);
259
- }
260
-
261
- /* Neutral */
262
- .button--outline.button--neutral {
263
- border-color: var(--syn-color-neutral-600);
264
- color: var(--syn-color-neutral-600);
265
- }
266
-
267
- .button--outline.button--neutral:hover:not(.button--disabled),
268
- .button--outline.button--neutral.button--checked:not(.button--disabled) {
269
- background-color: var(--syn-color-neutral-600);
270
- color: var(--syn-color-neutral-0);
271
- }
272
-
273
- .button--outline.button--neutral:active:not(.button--disabled) {
274
- border-color: var(--syn-color-neutral-700);
275
- background-color: var(--syn-color-neutral-700);
276
- color: var(--syn-color-neutral-0);
277
- }
278
-
279
- /* Warning */
280
- .button--outline.button--warning {
281
- border-color: var(--syn-color-warning-600);
282
- color: var(--syn-color-warning-600);
283
- }
284
-
285
- .button--outline.button--warning:hover:not(.button--disabled),
286
- .button--outline.button--warning.button--checked:not(.button--disabled) {
287
- background-color: var(--syn-color-warning-600);
288
- color: var(--syn-color-neutral-0);
289
- }
290
-
291
- .button--outline.button--warning:active:not(.button--disabled) {
292
- border-color: var(--syn-color-warning-700);
293
- background-color: var(--syn-color-warning-700);
294
- color: var(--syn-color-neutral-0);
295
- }
296
-
297
- /* Danger */
298
- .button--outline.button--danger {
299
- border-color: var(--syn-color-danger-600);
300
- color: var(--syn-color-danger-600);
301
- }
302
-
303
- .button--outline.button--danger:hover:not(.button--disabled),
304
- .button--outline.button--danger.button--checked:not(.button--disabled) {
305
- background-color: var(--syn-color-danger-600);
306
- color: var(--syn-color-neutral-0);
307
- }
308
-
309
- .button--outline.button--danger:active:not(.button--disabled) {
310
- border-color: var(--syn-color-danger-700);
311
- background-color: var(--syn-color-danger-700);
312
- color: var(--syn-color-neutral-0);
313
- }
314
-
315
- @media (forced-colors: active) {
316
- .button.button--outline.button--checked:not(.button--disabled) {
317
- outline: solid 2px transparent;
318
- }
319
- }
320
-
321
- /*
322
- * Text buttons
323
- */
324
-
325
- .button--text {
326
- background-color: transparent;
327
- border-color: transparent;
328
- color: var(--syn-color-primary-600);
329
- }
330
-
331
- .button--text:hover:not(.button--disabled) {
332
- background-color: transparent;
333
- border-color: transparent;
334
- color: var(--syn-color-primary-500);
335
- }
336
-
337
- .button--text:focus-visible:not(.button--disabled) {
338
- background-color: transparent;
339
- border-color: transparent;
340
- color: var(--syn-color-primary-500);
341
- }
342
-
343
- .button--text:active:not(.button--disabled) {
344
- background-color: transparent;
345
- border-color: transparent;
346
- color: var(--syn-color-primary-700);
347
- }
348
-
349
- /*
350
- * Size modifiers
351
- */
352
-
353
- .button--small {
354
- height: auto;
355
- min-height: var(--syn-input-height-small);
356
- font-size: var(--syn-button-font-size-small);
357
- line-height: calc(var(--syn-input-height-small) - var(--syn-input-border-width) * 2);
358
- border-radius: var(--syn-input-border-radius-small);
359
- }
360
-
361
- .button--medium {
362
- height: auto;
363
- min-height: var(--syn-input-height-medium);
364
- font-size: var(--syn-button-font-size-medium);
365
- line-height: calc(var(--syn-input-height-medium) - var(--syn-input-border-width) * 2);
366
- border-radius: var(--syn-input-border-radius-medium);
367
- }
368
-
369
- .button--large {
370
- height: auto;
371
- min-height: var(--syn-input-height-large);
372
- font-size: var(--syn-button-font-size-large);
373
- line-height: calc(var(--syn-input-height-large) - var(--syn-input-border-width) * 2);
374
- border-radius: var(--syn-input-border-radius-large);
375
- }
376
-
377
- /*
378
- * Pill modifier
379
- */
380
-
381
- .button--pill.button--small {
382
- border-radius: var(--syn-input-height-small);
383
- }
384
-
385
- .button--pill.button--medium {
386
- border-radius: var(--syn-input-height-medium);
387
- }
388
-
389
- .button--pill.button--large {
390
- border-radius: var(--syn-input-height-large);
391
- }
392
-
393
- /*
394
- * Circle modifier
395
- */
396
-
397
- .button--circle {
398
- padding-left: 0;
399
- padding-right: 0;
400
- }
401
-
402
- .button--circle.button--small {
403
- width: var(--syn-input-height-small);
404
- border-radius: 50%;
405
- }
406
-
407
- .button--circle.button--medium {
408
- width: var(--syn-input-height-medium);
409
- border-radius: 50%;
410
- }
411
-
412
- .button--circle.button--large {
413
- width: var(--syn-input-height-large);
414
- border-radius: 50%;
415
- }
416
-
417
- .button--circle .button__prefix,
418
- .button--circle .button__suffix,
419
- .button--circle .button__caret {
420
- display: none;
421
- }
422
-
423
- /*
424
- * Caret modifier
425
- */
426
-
427
- .button--caret .button__suffix {
428
- display: none;
429
- }
430
-
431
- .button--caret .button__caret {
432
- height: auto;
433
- }
434
-
435
- /*
436
- * Loading modifier
437
- */
438
-
439
- .button--loading {
440
- position: relative;
441
- cursor: wait;
442
- }
443
-
444
- .button--loading .button__prefix,
445
- .button--loading .button__label,
446
- .button--loading .button__suffix,
447
- .button--loading .button__caret {
448
- visibility: hidden;
449
- }
450
-
451
- .button--loading syn-spinner {
452
- --indicator-color: currentColor;
453
- position: absolute;
454
- font-size: 1em;
455
- height: 1em;
456
- width: 1em;
457
- top: calc(50% - 0.5em);
458
- left: calc(50% - 0.5em);
459
- }
460
-
461
- /*
462
- * Badges
463
- */
464
-
465
- .button ::slotted(syn-badge) {
466
- position: absolute;
467
- top: 0;
468
- right: 0;
469
- translate: 50% -50%;
470
- pointer-events: none;
471
- }
472
-
473
- .button--rtl ::slotted(syn-badge) {
474
- right: auto;
475
- left: 0;
476
- translate: -50% -50%;
477
- }
478
-
479
- /*
480
- * Button spacing
481
- */
482
-
483
- .button--has-label.button--small .button__label {
484
- padding: 0 var(--syn-spacing-small);
485
- }
486
-
487
- .button--has-label.button--medium .button__label {
488
- padding: 0 var(--syn-spacing-medium);
489
- }
490
-
491
- .button--has-label.button--large .button__label {
492
- padding: 0 var(--syn-spacing-large);
493
- }
494
-
495
- .button--has-prefix.button--small {
496
- padding-inline-start: var(--syn-spacing-x-small);
497
- }
498
-
499
- .button--has-prefix.button--small .button__label {
500
- padding-inline-start: var(--syn-spacing-x-small);
501
- }
502
-
503
- .button--has-prefix.button--medium {
504
- padding-inline-start: var(--syn-spacing-small);
505
- }
506
-
507
- .button--has-prefix.button--medium .button__label {
508
- padding-inline-start: var(--syn-spacing-small);
509
- }
510
-
511
- .button--has-prefix.button--large {
512
- padding-inline-start: var(--syn-spacing-small);
513
- }
514
-
515
- .button--has-prefix.button--large .button__label {
516
- padding-inline-start: var(--syn-spacing-small);
517
- }
518
-
519
- .button--has-suffix.button--small,
520
- .button--caret.button--small {
521
- padding-inline-end: var(--syn-spacing-x-small);
522
- }
523
-
524
- .button--has-suffix.button--small .button__label,
525
- .button--caret.button--small .button__label {
526
- padding-inline-end: var(--syn-spacing-x-small);
527
- }
528
-
529
- .button--has-suffix.button--medium,
530
- .button--caret.button--medium {
531
- padding-inline-end: var(--syn-spacing-small);
532
- }
533
-
534
- .button--has-suffix.button--medium .button__label,
535
- .button--caret.button--medium .button__label {
536
- padding-inline-end: var(--syn-spacing-small);
537
- }
538
-
539
- .button--has-suffix.button--large,
540
- .button--caret.button--large {
541
- padding-inline-end: var(--syn-spacing-small);
542
- }
543
-
544
- .button--has-suffix.button--large .button__label,
545
- .button--caret.button--large .button__label {
546
- padding-inline-end: var(--syn-spacing-small);
547
- }
548
-
549
- /*
550
- * Button groups support a variety of button types (e.g. buttons with tooltips, buttons as dropdown triggers, etc.).
551
- * This means buttons aren't always direct descendants of the button group, thus we can't target them with the
552
- * ::slotted selector. To work around this, the button group component does some magic to add these special classes to
553
- * buttons and we style them here instead.
554
- */
555
-
556
- :host(.syn-button-group__button--first:not(.syn-button-group__button--last)) .button {
557
- border-start-end-radius: 0;
558
- border-end-end-radius: 0;
559
- }
560
-
561
- :host(.syn-button-group__button--inner) .button {
562
- border-radius: 0;
563
- }
564
-
565
- :host(.syn-button-group__button--last:not(.syn-button-group__button--first)) .button {
566
- border-start-start-radius: 0;
567
- border-end-start-radius: 0;
568
- }
569
-
570
- /* All except the first */
571
- :host(.syn-button-group__button:not(.syn-button-group__button--first)) {
572
- margin-inline-start: calc(-1 * var(--syn-input-border-width));
573
- }
574
-
575
- /* Add a visual separator between solid buttons */
576
- :host(
577
- .syn-button-group__button:not(
578
- .syn-button-group__button--first,
579
- .syn-button-group__button--radio,
580
- [variant='default']
581
- ):not(:hover)
582
- )
583
- .button:after {
584
- content: '';
585
- position: absolute;
586
- top: 0;
587
- inset-inline-start: 0;
588
- bottom: 0;
589
- border-left: solid 1px rgb(128 128 128 / 33%);
590
- mix-blend-mode: multiply;
591
- }
592
-
593
- /* Bump hovered, focused, and checked buttons up so their focus ring isn't clipped */
594
- :host(.syn-button-group__button--hover) {
595
- z-index: 1;
596
- }
597
-
598
- /* Focus and checked are always on top */
599
- :host(.syn-button-group__button--focus),
600
- :host(.syn-button-group__button[checked]) {
601
- z-index: 2;
602
- }
603
- `;
604
-
605
- export {
606
- button_styles_default
607
- };
@@ -1,70 +0,0 @@
1
- import {
2
- component_styles_default
3
- } from "./chunk.4NMNW5OM.js";
4
-
5
- // src/components/spinner/spinner.styles.ts
6
- import { css } from "lit";
7
- var spinner_styles_default = css`
8
- /* stylelint-disable */
9
- ${component_styles_default}
10
-
11
- :host {
12
- --track-width: 2px;
13
- --track-color: rgb(128 128 128 / 25%);
14
- --indicator-color: var(--syn-color-primary-600);
15
- --speed: 2s;
16
-
17
- display: inline-flex;
18
- width: 1em;
19
- height: 1em;
20
- }
21
-
22
- .spinner {
23
- flex: 1 1 auto;
24
- height: 100%;
25
- width: 100%;
26
- }
27
-
28
- .spinner__track,
29
- .spinner__indicator {
30
- fill: none;
31
- stroke-width: var(--track-width);
32
- r: calc(0.5em - var(--track-width) / 2);
33
- cx: 0.5em;
34
- cy: 0.5em;
35
- transform-origin: 50% 50%;
36
- }
37
-
38
- .spinner__track {
39
- stroke: var(--track-color);
40
- transform-origin: 0% 0%;
41
- }
42
-
43
- .spinner__indicator {
44
- stroke: var(--indicator-color);
45
- stroke-linecap: round;
46
- stroke-dasharray: 150% 75%;
47
- animation: spin var(--speed) linear infinite;
48
- }
49
-
50
- @keyframes spin {
51
- 0% {
52
- transform: rotate(0deg);
53
- stroke-dasharray: 0.01em, 2.75em;
54
- }
55
-
56
- 50% {
57
- transform: rotate(450deg);
58
- stroke-dasharray: 1.375em, 1.375em;
59
- }
60
-
61
- 100% {
62
- transform: rotate(1080deg);
63
- stroke-dasharray: 0.01em, 2.75em;
64
- }
65
- }
66
- `;
67
-
68
- export {
69
- spinner_styles_default
70
- };
@@ -1,27 +0,0 @@
1
- import {
2
- component_styles_default
3
- } from "./chunk.4NMNW5OM.js";
4
-
5
- // src/components/icon/icon.styles.ts
6
- import { css } from "lit";
7
- var icon_styles_default = css`
8
- /* stylelint-disable */
9
- ${component_styles_default}
10
-
11
- :host {
12
- display: inline-block;
13
- width: 1em;
14
- height: 1em;
15
- box-sizing: content-box !important;
16
- }
17
-
18
- svg {
19
- display: block;
20
- height: 100%;
21
- width: 100%;
22
- }
23
- `;
24
-
25
- export {
26
- icon_styles_default
27
- };