nve-designsystem 3.15.0 → 4.0.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.
Files changed (94) hide show
  1. package/chunks/chunk.2PCBEMQZ.js +3 -4
  2. package/chunks/chunk.5P45LHIX.js +596 -4
  3. package/chunks/chunk.D5YQDJ7X.js +4 -5
  4. package/chunks/chunk.SI4ACBFK.js +137 -3
  5. package/chunks/chunk.TP2GB2HO.js +1 -2
  6. package/chunks/chunk.XA43ZQPC.js +4 -5
  7. package/chunks/decorate.js +1 -1
  8. package/chunks/nve-alert.component.js +1 -0
  9. package/chunks/nve-carousel-item.component.js +1 -0
  10. package/chunks/nve-carousel.component.js +3 -0
  11. package/chunks/nve-checkbox-group.component.js +1 -0
  12. package/chunks/nve-checkbox.component.js +4 -0
  13. package/chunks/nve-dialog.component.js +4 -0
  14. package/chunks/nve-divider.component.js +1 -0
  15. package/chunks/nve-drawer.component.js +4 -0
  16. package/chunks/nve-dropdown.component.js +3 -0
  17. package/chunks/nve-input.component.js +5 -0
  18. package/chunks/nve-label.component.js +2 -0
  19. package/chunks/nve-menu-item.component.js +5 -0
  20. package/chunks/nve-menu.component.js +1 -0
  21. package/chunks/nve-option.component.js +3 -0
  22. package/chunks/nve-popup.component.js +3 -0
  23. package/chunks/nve-radio-button.component.js +1 -0
  24. package/chunks/nve-radio-group.component.js +2 -0
  25. package/chunks/nve-radio.component.js +2 -0
  26. package/chunks/nve-select.component.js +6 -0
  27. package/chunks/nve-skeleton.component.js +1 -0
  28. package/chunks/nve-spinner.component.js +3 -0
  29. package/chunks/nve-tooltip.component.js +4 -0
  30. package/chunks/shoelace.js +673 -526
  31. package/components/nve-accordion-item/nve-accordion-item.component.js +0 -38
  32. package/components/nve-alert/nve-alert.component.js +0 -5
  33. package/components/nve-button/nve-button.component.d.ts +110 -10
  34. package/components/nve-button/nve-button.component.js +147 -15
  35. package/components/nve-button/nve-button.styles.js +204 -154
  36. package/components/nve-carousel/nve-carousel.component.js +0 -8
  37. package/components/nve-carousel/nve-carousel.styles.js +1 -1
  38. package/components/nve-carousel-item/nve-carousel-item.component.js +0 -4
  39. package/components/nve-checkbox/nve-checkbox.component.js +0 -12
  40. package/components/nve-checkbox-group/nve-checkbox-group.component.js +0 -11
  41. package/components/nve-combobox/nve-combobox.component.js +0 -15
  42. package/components/nve-combobox/nve-combobox.styles.js +1 -1
  43. package/components/nve-dialog/nve-dialog.component.js +0 -11
  44. package/components/nve-divider/nve-divider.component.js +0 -4
  45. package/components/nve-drawer/nve-drawer.component.js +0 -11
  46. package/components/nve-drawer/nve-drawer.styles.js +1 -1
  47. package/components/nve-dropdown/nve-dropdown.component.js +0 -8
  48. package/components/nve-input/nve-input.component.js +0 -13
  49. package/components/nve-label/nve-label.component.js +0 -10
  50. package/components/nve-link-card/nve-link-card.component.js +0 -1
  51. package/components/nve-link-card/nve-link-card.styles.js +1 -1
  52. package/components/nve-menu/nve-menu.component.js +0 -4
  53. package/components/nve-menu-item/nve-menu-item.component.js +0 -11
  54. package/components/nve-menu-item/nve-menu-item.styles.js +2 -2
  55. package/components/nve-message-card/nve-message-card.component.js +0 -2
  56. package/components/nve-navigation-card/nve-navigation-card.component.js +0 -2
  57. package/components/nve-navigation-card/nve-navigation-card.styles.js +1 -1
  58. package/components/nve-option/nve-option.component.js +0 -8
  59. package/components/nve-popup/nve-popup.component.js +0 -7
  60. package/components/nve-radio/nve-radio.component.js +0 -7
  61. package/components/nve-radio-button/nve-radio-button.component.js +0 -8
  62. package/components/nve-radio-group/nve-radio-group.component.js +0 -7
  63. package/components/nve-relative-time/nve-relative-time.component.js +0 -38
  64. package/components/nve-select/nve-select.component.js +0 -15
  65. package/components/nve-skeleton/nve-skeleton.component.js +0 -5
  66. package/components/nve-spinner/nve-spinner.component.js +0 -6
  67. package/components/nve-stepper/nve-stepper.component.js +3 -3
  68. package/components/nve-switch/nve-switch.component.js +0 -1
  69. package/components/nve-switch/nve-switch.styles.js +2 -2
  70. package/components/nve-tab/nve-tab.styles.js +2 -2
  71. package/components/nve-tab-group/nve-tab-group.component.js +5 -15
  72. package/components/nve-tag/nve-tag.component.d.ts +3 -3
  73. package/components/nve-tag/nve-tag.component.js +11 -9
  74. package/components/nve-tag/nve-tag.styles.js +1 -1
  75. package/components/nve-textarea/nve-textarea.component.js +0 -7
  76. package/components/nve-tooltip/nve-tooltip.component.js +0 -9
  77. package/components/nve-warning-level/nve-warning-level.component.js +0 -4
  78. package/css/global.css +1 -1
  79. package/css/nve.css +36 -39
  80. package/css/nve_dark.css +36 -39
  81. package/css/rme.css +36 -39
  82. package/css/rme_dark.css +36 -39
  83. package/css/shoelace-styles.css +6 -6
  84. package/css/varsom.css +36 -39
  85. package/css/varsom_dark.css +36 -39
  86. package/custom-elements.json +692 -1102
  87. package/nve-designsystem.js +1 -41
  88. package/package.json +2 -2
  89. package/vscode.css-custom-data.json +16 -14
  90. package/vscode.html-custom-data.json +142 -120
  91. package/chunks/chunk.3RPBFEDE.js +0 -138
  92. package/chunks/chunk.JCXLDPQF.js +0 -155
  93. package/chunks/chunk.MAQXLKQ7.js +0 -598
  94. package/chunks/nve-button.component.js +0 -26
@@ -1,8 +1,7 @@
1
1
  import { s as e, u as t } from "./lit.js";
2
2
  import { a as n, o as r, r as i } from "./decorate.js";
3
3
  import { n as a, r as o, t as s } from "./chunk.4TUIT776.js";
4
- import { i as c, n as l, r as u, t as d } from "./chunk.3RPBFEDE.js";
5
- import { t as f } from "./chunk.SI4ACBFK.js";
4
+ import { a as c, i as l, n as u, r as d, t as f } from "./chunk.SI4ACBFK.js";
6
5
  import { t as p } from "./chunk.NYIIDP5N.js";
7
6
  import { t as m } from "./chunk.GMYPQTFK.js";
8
7
  import { t as h } from "./class-map.js";
@@ -97,11 +96,11 @@ function y(e) {
97
96
  //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ZJNIZFRS.js
98
97
  var b = class extends s {
99
98
  constructor() {
100
- super(...arguments), this.formControlController = new d(this), this.hasSlotController = new p(this, "help-text", "label"), this.customValidityMessage = "", this.hasButtonGroup = !1, this.errorMessage = "", this.defaultValue = "", this.label = "", this.helpText = "", this.name = "option", this.value = "", this.size = "medium", this.form = "", this.required = !1;
99
+ super(...arguments), this.formControlController = new u(this), this.hasSlotController = new p(this, "help-text", "label"), this.customValidityMessage = "", this.hasButtonGroup = !1, this.errorMessage = "", this.defaultValue = "", this.label = "", this.helpText = "", this.name = "option", this.value = "", this.size = "medium", this.form = "", this.required = !1;
101
100
  }
102
101
  get validity() {
103
102
  let e = this.required && !this.value;
104
- return this.customValidityMessage === "" ? e ? c : u : l;
103
+ return this.customValidityMessage === "" ? e ? c : l : d;
105
104
  }
106
105
  get validationMessage() {
107
106
  let e = this.required && !this.value;
@@ -6,9 +6,601 @@ import { t as c } from "./chunk.GMYPQTFK.js";
6
6
  import { t as l } from "./class-map.js";
7
7
  import { t as u } from "./if-defined.js";
8
8
  import { n as d } from "./static-html.js";
9
- import { t as f } from "./chunk.MAQXLKQ7.js";
10
- //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2P5EQCYK.js
11
- var p = e`
9
+ //#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.MAQXLKQ7.js
10
+ var f = e`
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(--sl-input-border-width);
25
+ font-family: var(--sl-input-font-family);
26
+ font-weight: var(--sl-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(--sl-transition-x-fast) background-color,
35
+ var(--sl-transition-x-fast) color,
36
+ var(--sl-transition-x-fast) border,
37
+ var(--sl-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(--sl-focus-ring);
51
+ outline-offset: var(--sl-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(sl-icon) {
77
+ vertical-align: -2px;
78
+ }
79
+
80
+ /*
81
+ * Standard buttons
82
+ */
83
+
84
+ /* Default */
85
+ .button--standard.button--default {
86
+ background-color: var(--sl-color-neutral-0);
87
+ border-color: var(--sl-input-border-color);
88
+ color: var(--sl-color-neutral-700);
89
+ }
90
+
91
+ .button--standard.button--default:hover:not(.button--disabled) {
92
+ background-color: var(--sl-color-primary-50);
93
+ border-color: var(--sl-color-primary-300);
94
+ color: var(--sl-color-primary-700);
95
+ }
96
+
97
+ .button--standard.button--default:active:not(.button--disabled) {
98
+ background-color: var(--sl-color-primary-100);
99
+ border-color: var(--sl-color-primary-400);
100
+ color: var(--sl-color-primary-700);
101
+ }
102
+
103
+ /* Primary */
104
+ .button--standard.button--primary {
105
+ background-color: var(--sl-color-primary-600);
106
+ border-color: var(--sl-color-primary-600);
107
+ color: var(--sl-color-neutral-0);
108
+ }
109
+
110
+ .button--standard.button--primary:hover:not(.button--disabled) {
111
+ background-color: var(--sl-color-primary-500);
112
+ border-color: var(--sl-color-primary-500);
113
+ color: var(--sl-color-neutral-0);
114
+ }
115
+
116
+ .button--standard.button--primary:active:not(.button--disabled) {
117
+ background-color: var(--sl-color-primary-600);
118
+ border-color: var(--sl-color-primary-600);
119
+ color: var(--sl-color-neutral-0);
120
+ }
121
+
122
+ /* Success */
123
+ .button--standard.button--success {
124
+ background-color: var(--sl-color-success-600);
125
+ border-color: var(--sl-color-success-600);
126
+ color: var(--sl-color-neutral-0);
127
+ }
128
+
129
+ .button--standard.button--success:hover:not(.button--disabled) {
130
+ background-color: var(--sl-color-success-500);
131
+ border-color: var(--sl-color-success-500);
132
+ color: var(--sl-color-neutral-0);
133
+ }
134
+
135
+ .button--standard.button--success:active:not(.button--disabled) {
136
+ background-color: var(--sl-color-success-600);
137
+ border-color: var(--sl-color-success-600);
138
+ color: var(--sl-color-neutral-0);
139
+ }
140
+
141
+ /* Neutral */
142
+ .button--standard.button--neutral {
143
+ background-color: var(--sl-color-neutral-600);
144
+ border-color: var(--sl-color-neutral-600);
145
+ color: var(--sl-color-neutral-0);
146
+ }
147
+
148
+ .button--standard.button--neutral:hover:not(.button--disabled) {
149
+ background-color: var(--sl-color-neutral-500);
150
+ border-color: var(--sl-color-neutral-500);
151
+ color: var(--sl-color-neutral-0);
152
+ }
153
+
154
+ .button--standard.button--neutral:active:not(.button--disabled) {
155
+ background-color: var(--sl-color-neutral-600);
156
+ border-color: var(--sl-color-neutral-600);
157
+ color: var(--sl-color-neutral-0);
158
+ }
159
+
160
+ /* Warning */
161
+ .button--standard.button--warning {
162
+ background-color: var(--sl-color-warning-600);
163
+ border-color: var(--sl-color-warning-600);
164
+ color: var(--sl-color-neutral-0);
165
+ }
166
+ .button--standard.button--warning:hover:not(.button--disabled) {
167
+ background-color: var(--sl-color-warning-500);
168
+ border-color: var(--sl-color-warning-500);
169
+ color: var(--sl-color-neutral-0);
170
+ }
171
+
172
+ .button--standard.button--warning:active:not(.button--disabled) {
173
+ background-color: var(--sl-color-warning-600);
174
+ border-color: var(--sl-color-warning-600);
175
+ color: var(--sl-color-neutral-0);
176
+ }
177
+
178
+ /* Danger */
179
+ .button--standard.button--danger {
180
+ background-color: var(--sl-color-danger-600);
181
+ border-color: var(--sl-color-danger-600);
182
+ color: var(--sl-color-neutral-0);
183
+ }
184
+
185
+ .button--standard.button--danger:hover:not(.button--disabled) {
186
+ background-color: var(--sl-color-danger-500);
187
+ border-color: var(--sl-color-danger-500);
188
+ color: var(--sl-color-neutral-0);
189
+ }
190
+
191
+ .button--standard.button--danger:active:not(.button--disabled) {
192
+ background-color: var(--sl-color-danger-600);
193
+ border-color: var(--sl-color-danger-600);
194
+ color: var(--sl-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(--sl-input-border-color);
209
+ color: var(--sl-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(--sl-color-primary-600);
215
+ background-color: var(--sl-color-primary-600);
216
+ color: var(--sl-color-neutral-0);
217
+ }
218
+
219
+ .button--outline.button--default:active:not(.button--disabled) {
220
+ border-color: var(--sl-color-primary-700);
221
+ background-color: var(--sl-color-primary-700);
222
+ color: var(--sl-color-neutral-0);
223
+ }
224
+
225
+ /* Primary */
226
+ .button--outline.button--primary {
227
+ border-color: var(--sl-color-primary-600);
228
+ color: var(--sl-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(--sl-color-primary-600);
234
+ color: var(--sl-color-neutral-0);
235
+ }
236
+
237
+ .button--outline.button--primary:active:not(.button--disabled) {
238
+ border-color: var(--sl-color-primary-700);
239
+ background-color: var(--sl-color-primary-700);
240
+ color: var(--sl-color-neutral-0);
241
+ }
242
+
243
+ /* Success */
244
+ .button--outline.button--success {
245
+ border-color: var(--sl-color-success-600);
246
+ color: var(--sl-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(--sl-color-success-600);
252
+ color: var(--sl-color-neutral-0);
253
+ }
254
+
255
+ .button--outline.button--success:active:not(.button--disabled) {
256
+ border-color: var(--sl-color-success-700);
257
+ background-color: var(--sl-color-success-700);
258
+ color: var(--sl-color-neutral-0);
259
+ }
260
+
261
+ /* Neutral */
262
+ .button--outline.button--neutral {
263
+ border-color: var(--sl-color-neutral-600);
264
+ color: var(--sl-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(--sl-color-neutral-600);
270
+ color: var(--sl-color-neutral-0);
271
+ }
272
+
273
+ .button--outline.button--neutral:active:not(.button--disabled) {
274
+ border-color: var(--sl-color-neutral-700);
275
+ background-color: var(--sl-color-neutral-700);
276
+ color: var(--sl-color-neutral-0);
277
+ }
278
+
279
+ /* Warning */
280
+ .button--outline.button--warning {
281
+ border-color: var(--sl-color-warning-600);
282
+ color: var(--sl-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(--sl-color-warning-600);
288
+ color: var(--sl-color-neutral-0);
289
+ }
290
+
291
+ .button--outline.button--warning:active:not(.button--disabled) {
292
+ border-color: var(--sl-color-warning-700);
293
+ background-color: var(--sl-color-warning-700);
294
+ color: var(--sl-color-neutral-0);
295
+ }
296
+
297
+ /* Danger */
298
+ .button--outline.button--danger {
299
+ border-color: var(--sl-color-danger-600);
300
+ color: var(--sl-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(--sl-color-danger-600);
306
+ color: var(--sl-color-neutral-0);
307
+ }
308
+
309
+ .button--outline.button--danger:active:not(.button--disabled) {
310
+ border-color: var(--sl-color-danger-700);
311
+ background-color: var(--sl-color-danger-700);
312
+ color: var(--sl-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(--sl-color-primary-600);
329
+ }
330
+
331
+ .button--text:hover:not(.button--disabled) {
332
+ background-color: transparent;
333
+ border-color: transparent;
334
+ color: var(--sl-color-primary-500);
335
+ }
336
+
337
+ .button--text:focus-visible:not(.button--disabled) {
338
+ background-color: transparent;
339
+ border-color: transparent;
340
+ color: var(--sl-color-primary-500);
341
+ }
342
+
343
+ .button--text:active:not(.button--disabled) {
344
+ background-color: transparent;
345
+ border-color: transparent;
346
+ color: var(--sl-color-primary-700);
347
+ }
348
+
349
+ /*
350
+ * Size modifiers
351
+ */
352
+
353
+ .button--small {
354
+ height: auto;
355
+ min-height: var(--sl-input-height-small);
356
+ font-size: var(--sl-button-font-size-small);
357
+ line-height: calc(var(--sl-input-height-small) - var(--sl-input-border-width) * 2);
358
+ border-radius: var(--sl-input-border-radius-small);
359
+ }
360
+
361
+ .button--medium {
362
+ height: auto;
363
+ min-height: var(--sl-input-height-medium);
364
+ font-size: var(--sl-button-font-size-medium);
365
+ line-height: calc(var(--sl-input-height-medium) - var(--sl-input-border-width) * 2);
366
+ border-radius: var(--sl-input-border-radius-medium);
367
+ }
368
+
369
+ .button--large {
370
+ height: auto;
371
+ min-height: var(--sl-input-height-large);
372
+ font-size: var(--sl-button-font-size-large);
373
+ line-height: calc(var(--sl-input-height-large) - var(--sl-input-border-width) * 2);
374
+ border-radius: var(--sl-input-border-radius-large);
375
+ }
376
+
377
+ /*
378
+ * Pill modifier
379
+ */
380
+
381
+ .button--pill.button--small {
382
+ border-radius: var(--sl-input-height-small);
383
+ }
384
+
385
+ .button--pill.button--medium {
386
+ border-radius: var(--sl-input-height-medium);
387
+ }
388
+
389
+ .button--pill.button--large {
390
+ border-radius: var(--sl-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(--sl-input-height-small);
404
+ border-radius: 50%;
405
+ }
406
+
407
+ .button--circle.button--medium {
408
+ width: var(--sl-input-height-medium);
409
+ border-radius: 50%;
410
+ }
411
+
412
+ .button--circle.button--large {
413
+ width: var(--sl-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 sl-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(sl-badge) {
466
+ position: absolute;
467
+ top: 0;
468
+ right: 0;
469
+ translate: 50% -50%;
470
+ pointer-events: none;
471
+ }
472
+
473
+ .button--rtl ::slotted(sl-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(--sl-spacing-small);
485
+ }
486
+
487
+ .button--has-label.button--medium .button__label {
488
+ padding: 0 var(--sl-spacing-medium);
489
+ }
490
+
491
+ .button--has-label.button--large .button__label {
492
+ padding: 0 var(--sl-spacing-large);
493
+ }
494
+
495
+ .button--has-prefix.button--small {
496
+ padding-inline-start: var(--sl-spacing-x-small);
497
+ }
498
+
499
+ .button--has-prefix.button--small .button__label {
500
+ padding-inline-start: var(--sl-spacing-x-small);
501
+ }
502
+
503
+ .button--has-prefix.button--medium {
504
+ padding-inline-start: var(--sl-spacing-small);
505
+ }
506
+
507
+ .button--has-prefix.button--medium .button__label {
508
+ padding-inline-start: var(--sl-spacing-small);
509
+ }
510
+
511
+ .button--has-prefix.button--large {
512
+ padding-inline-start: var(--sl-spacing-small);
513
+ }
514
+
515
+ .button--has-prefix.button--large .button__label {
516
+ padding-inline-start: var(--sl-spacing-small);
517
+ }
518
+
519
+ .button--has-suffix.button--small,
520
+ .button--caret.button--small {
521
+ padding-inline-end: var(--sl-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(--sl-spacing-x-small);
527
+ }
528
+
529
+ .button--has-suffix.button--medium,
530
+ .button--caret.button--medium {
531
+ padding-inline-end: var(--sl-spacing-small);
532
+ }
533
+
534
+ .button--has-suffix.button--medium .button__label,
535
+ .button--caret.button--medium .button__label {
536
+ padding-inline-end: var(--sl-spacing-small);
537
+ }
538
+
539
+ .button--has-suffix.button--large,
540
+ .button--caret.button--large {
541
+ padding-inline-end: var(--sl-spacing-small);
542
+ }
543
+
544
+ .button--has-suffix.button--large .button__label,
545
+ .button--caret.button--large .button__label {
546
+ padding-inline-end: var(--sl-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([data-sl-button-group__button--first]:not([data-sl-button-group__button--last])) .button {
557
+ border-start-end-radius: 0;
558
+ border-end-end-radius: 0;
559
+ }
560
+
561
+ :host([data-sl-button-group__button--inner]) .button {
562
+ border-radius: 0;
563
+ }
564
+
565
+ :host([data-sl-button-group__button--last]:not([data-sl-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([data-sl-button-group__button]:not([data-sl-button-group__button--first])) {
572
+ margin-inline-start: calc(-1 * var(--sl-input-border-width));
573
+ }
574
+
575
+ /* Add a visual separator between solid buttons */
576
+ :host(
577
+ [data-sl-button-group__button]:not(
578
+ [data-sl-button-group__button--first],
579
+ [data-sl-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([data-sl-button-group__button--hover]) {
595
+ z-index: 1;
596
+ }
597
+
598
+ /* Focus and checked are always on top */
599
+ :host([data-sl-button-group__button--focus]),
600
+ :host([data-sl-button-group__button][checked]) {
601
+ z-index: 2;
602
+ }
603
+ `, p = e`
12
604
  ${f}
13
605
 
14
606
  .button__prefix,
@@ -113,4 +705,4 @@ m.styles = [i, p], a([r(".button")], m.prototype, "input", 2), a([r(".hidden-inp
113
705
  var h = m;
114
706
  m.define("sl-radio-button");
115
707
  //#endregion
116
- export { h as t };
708
+ export { f as n, h as t };
@@ -1,9 +1,8 @@
1
1
  import { s as e, u as t } from "./lit.js";
2
2
  import { a as n, o as r, r as i } from "./decorate.js";
3
3
  import { n as a, r as o, t as s } from "./chunk.4TUIT776.js";
4
- import { t as c } from "./chunk.3RPBFEDE.js";
5
- import { t as l } from "./chunk.GI7VDIWX.js";
6
- import { t as u } from "./chunk.SI4ACBFK.js";
4
+ import { n as c, t as l } from "./chunk.SI4ACBFK.js";
5
+ import { t as u } from "./chunk.GI7VDIWX.js";
7
6
  import { t as d } from "./chunk.NYIIDP5N.js";
8
7
  import { t as f } from "./chunk.YHLNUJ7P.js";
9
8
  import { t as p } from "./chunk.GMYPQTFK.js";
@@ -268,7 +267,7 @@ var _ = t`
268
267
  };
269
268
  v.styles = [
270
269
  a,
271
- u,
270
+ l,
272
271
  _
273
272
  ], v.dependencies = { "sl-icon": f }, o([i("input[type=\"checkbox\"]")], v.prototype, "input", 2), o([n()], v.prototype, "hasFocus", 2), o([r()], v.prototype, "title", 2), o([r()], v.prototype, "name", 2), o([r()], v.prototype, "value", 2), o([r({ reflect: !0 })], v.prototype, "size", 2), o([r({
274
273
  type: Boolean,
@@ -279,7 +278,7 @@ v.styles = [
279
278
  })], v.prototype, "checked", 2), o([r({
280
279
  type: Boolean,
281
280
  reflect: !0
282
- })], v.prototype, "indeterminate", 2), o([l("checked")], v.prototype, "defaultChecked", 2), o([r({ reflect: !0 })], v.prototype, "form", 2), o([r({
281
+ })], v.prototype, "indeterminate", 2), o([u("checked")], v.prototype, "defaultChecked", 2), o([r({ reflect: !0 })], v.prototype, "form", 2), o([r({
283
282
  type: Boolean,
284
283
  reflect: !0
285
284
  })], v.prototype, "required", 2), o([r({ attribute: "help-text" })], v.prototype, "helpText", 2), o([p("disabled", { waitUntilFirstUpdate: !0 })], v.prototype, "handleDisabledChange", 1), o([p(["checked", "indeterminate"], { waitUntilFirstUpdate: !0 })], v.prototype, "handleStateChange", 1);