@sky.ui/core 0.0.40 → 0.0.41

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 (86) hide show
  1. package/dist/custom-elements.json +1708 -1708
  2. package/dist/helper/controllers/animation-controller.d.ts +4 -4
  3. package/dist/helper/controllers/animation-controller.js.map +1 -1
  4. package/dist/helper/controllers/popover-controller.d.ts +11 -11
  5. package/dist/helper/controllers/popover-controller.js.map +1 -1
  6. package/dist/helper/iconify-offline.js.map +1 -1
  7. package/dist/helper/internals/form-control-base.d.ts +4 -4
  8. package/dist/helper/internals/form-control-base.js.map +1 -1
  9. package/dist/helper/utils/color-resolver.js.map +1 -1
  10. package/dist/helper/utils/contrast-color.d.ts +4 -4
  11. package/dist/helper/utils/contrast-color.js.map +1 -1
  12. package/dist/helper/utils/size-resolver.js.map +1 -1
  13. package/dist/sky-alert/sky-alert.d.ts +5 -5
  14. package/dist/sky-alert/sky-alert.js +6 -16
  15. package/dist/sky-alert/sky-alert.js.map +1 -1
  16. package/dist/sky-appbar/sky-appbar.d.ts +2 -2
  17. package/dist/sky-appbar/sky-appbar.js +23 -15
  18. package/dist/sky-appbar/sky-appbar.js.map +1 -1
  19. package/dist/sky-avatar/sky-avatar.d.ts +3 -3
  20. package/dist/sky-avatar/sky-avatar.js +11 -8
  21. package/dist/sky-avatar/sky-avatar.js.map +1 -1
  22. package/dist/sky-badge/sky-badge.d.ts +5 -5
  23. package/dist/sky-badge/sky-badge.js +6 -10
  24. package/dist/sky-badge/sky-badge.js.map +1 -1
  25. package/dist/sky-button/sky-button.d.ts +5 -5
  26. package/dist/sky-button/sky-button.js +15 -24
  27. package/dist/sky-button/sky-button.js.map +1 -1
  28. package/dist/sky-card/sky-card.d.ts +5 -5
  29. package/dist/sky-card/sky-card.js +20 -20
  30. package/dist/sky-card/sky-card.js.map +1 -1
  31. package/dist/sky-checkbox/sky-checkbox.d.ts +2 -2
  32. package/dist/sky-checkbox/sky-checkbox.js +59 -67
  33. package/dist/sky-checkbox/sky-checkbox.js.map +1 -1
  34. package/dist/sky-chip/sky-chip.d.ts +3 -3
  35. package/dist/sky-chip/sky-chip.js +25 -34
  36. package/dist/sky-chip/sky-chip.js.map +1 -1
  37. package/dist/sky-col/sky-col.d.ts +4 -4
  38. package/dist/sky-col/sky-col.js +3 -8
  39. package/dist/sky-col/sky-col.js.map +1 -1
  40. package/dist/sky-combobox/sky-combobox.d.ts +8 -8
  41. package/dist/sky-combobox/sky-combobox.js +168 -201
  42. package/dist/sky-combobox/sky-combobox.js.map +1 -1
  43. package/dist/sky-dialog/sky-dialog.d.ts +4 -4
  44. package/dist/sky-dialog/sky-dialog.js +19 -17
  45. package/dist/sky-dialog/sky-dialog.js.map +1 -1
  46. package/dist/sky-divider/sky-divider.d.ts +3 -3
  47. package/dist/sky-divider/sky-divider.js.map +1 -1
  48. package/dist/sky-flexbox/sky-flexbox.d.ts +7 -7
  49. package/dist/sky-flexbox/sky-flexbox.js +2 -2
  50. package/dist/sky-flexbox/sky-flexbox.js.map +1 -1
  51. package/dist/sky-flexcol/sky-flexcol.d.ts +3 -3
  52. package/dist/sky-flexcol/sky-flexcol.js.map +1 -1
  53. package/dist/sky-form/sky-form.d.ts +12 -12
  54. package/dist/sky-form/sky-form.js +12 -12
  55. package/dist/sky-form/sky-form.js.map +1 -1
  56. package/dist/sky-grid/sky-grid.d.ts +2 -2
  57. package/dist/sky-grid/sky-grid.js.map +1 -1
  58. package/dist/sky-icon/sky-icon.d.ts +1 -1
  59. package/dist/sky-icon/sky-icon.js +1 -1
  60. package/dist/sky-icon/sky-icon.js.map +1 -1
  61. package/dist/sky-image/sky-image.d.ts +5 -5
  62. package/dist/sky-image/sky-image.js.map +1 -1
  63. package/dist/sky-image/srcset-utils.js.map +1 -1
  64. package/dist/sky-input/sky-input.d.ts +6 -6
  65. package/dist/sky-input/sky-input.js +88 -103
  66. package/dist/sky-input/sky-input.js.map +1 -1
  67. package/dist/sky-list/sky-list.d.ts +4 -4
  68. package/dist/sky-list/sky-list.js +3 -1
  69. package/dist/sky-list/sky-list.js.map +1 -1
  70. package/dist/sky-listitem/sky-listitem.d.ts +2 -2
  71. package/dist/sky-listitem/sky-listitem.js +7 -4
  72. package/dist/sky-listitem/sky-listitem.js.map +1 -1
  73. package/dist/sky-radio/sky-radio.d.ts +3 -3
  74. package/dist/sky-radio/sky-radio.js +3 -6
  75. package/dist/sky-radio/sky-radio.js.map +1 -1
  76. package/dist/sky-row/sky-row.d.ts +2 -2
  77. package/dist/sky-row/sky-row.js.map +1 -1
  78. package/dist/sky-sheet/sky-sheet.d.ts +6 -6
  79. package/dist/sky-sheet/sky-sheet.js +21 -21
  80. package/dist/sky-sheet/sky-sheet.js.map +1 -1
  81. package/dist/sky-simple-table/sky-simple-table.d.ts +4 -4
  82. package/dist/sky-simple-table/sky-simple-table.js +1 -4
  83. package/dist/sky-simple-table/sky-simple-table.js.map +1 -1
  84. package/dist/sky-theme-provider/sky-theme-provider.d.ts +27 -27
  85. package/dist/sky-theme-provider/sky-theme-provider.js.map +1 -1
  86. package/package.json +1 -1
@@ -194,13 +194,15 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{ifDefine
194
194
  ${o?this.renderInputAffix("prefix"):s}
195
195
  ${S()}
196
196
  ${o?this.renderInputAffix("suffix"):s}
197
- ${x()} ${w()} ${$()}
197
+ ${x()} ${w()}
198
+ ${$()}
198
199
  `,C=i`
199
200
  ${f()}
200
201
  ${o?this.renderInputAffix("prefix"):s}
201
202
  ${S()}
202
203
  ${o?this.renderInputAffix("suffix"):s}
203
- ${x()} ${w()} ${$()} ${m()}
204
+ ${x()} ${w()}
205
+ ${$()} ${m()}
204
206
  `,A=i`
205
207
  ${f()}
206
208
  <div class="input-inside-main">
@@ -216,28 +218,29 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{ifDefine
216
218
  >
217
219
  ${F||I?s:z}
218
220
  ${F?i`<fieldset
219
- class="input-wrapper"
220
- part="input-wrapper"
221
- ?compact=${this.compact}
222
- ?loading=${this.loading}
223
- >
224
- ${z}
225
- <div class="input-fieldset-body">
226
- ${f()}
227
- ${o?this.renderInputAffix("prefix"):s}
228
- ${S()}
229
- ${o?this.renderInputAffix("suffix"):s}
230
- ${x()} ${w()} ${$()}
231
- ${m()}
232
- </div>
233
- </fieldset>`:i`<div
234
- class="input-wrapper"
235
- part="input-wrapper"
236
- ?compact=${this.compact}
237
- ?loading=${this.loading}
238
- >
239
- ${I?A:C}
240
- </div>`}
221
+ class="input-wrapper"
222
+ part="input-wrapper"
223
+ ?compact=${this.compact}
224
+ ?loading=${this.loading}
225
+ >
226
+ ${z}
227
+ <div class="input-fieldset-body">
228
+ ${f()}
229
+ ${o?this.renderInputAffix("prefix"):s}
230
+ ${S()}
231
+ ${o?this.renderInputAffix("suffix"):s}
232
+ ${x()} ${w()}
233
+ ${$()} ${m()}
234
+ </div>
235
+ </fieldset>`:i`<div
236
+ class="input-wrapper"
237
+ part="input-wrapper"
238
+ ?compact=${this.compact}
239
+ ?loading=${this.loading}
240
+ >
241
+ ${I?A:C}
242
+ </div>`}
243
+
241
244
  ${(()=>t&&this.totalFileSize?i`
242
245
  <div class="file-info" part="file-info">
243
246
  <span>
@@ -307,23 +310,23 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{ifDefine
307
310
  pointer-events: none;
308
311
  }
309
312
 
310
- :host([variant='highlight']) {
311
- .label {
313
+ :host([variant="highlight"]){
314
+ .label{
312
315
  color: var(--sky-input-color);
313
316
  }
314
317
  }
315
318
 
316
319
  /* Fieldset / legend: native fieldset+legend; wrapper keeps solid fill */
317
- :host([variant='fieldset']) {
320
+ :host([variant="fieldset"]) {
318
321
  overflow: visible;
319
322
  padding-block-start: 0;
320
323
  }
321
324
 
322
- :host([variant='fieldset']) .input-container {
325
+ :host([variant="fieldset"]) .input-container {
323
326
  overflow: visible;
324
327
  }
325
328
 
326
- :host([variant='fieldset']) fieldset.input-wrapper {
329
+ :host([variant="fieldset"]) fieldset.input-wrapper {
327
330
  display: block;
328
331
  height: auto;
329
332
  margin: 0;
@@ -335,17 +338,19 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{ifDefine
335
338
  box-shadow: none;
336
339
  }
337
340
 
338
- :host([variant='fieldset']) fieldset.input-wrapper[compact] {
341
+ :host([variant="fieldset"]) fieldset.input-wrapper[compact] {
339
342
  height: auto;
340
343
  }
341
344
 
342
- :host([variant='fieldset']) .input-fieldset-body {
345
+ :host([variant="fieldset"]) .input-fieldset-body {
343
346
  display: flex;
344
347
  width: 100%;
345
348
  align-items: center;
346
349
  box-sizing: border-box;
347
350
  /* Match default control outer height once fieldset border is included */
348
- height: calc(var(--sky-input-height) - 2 * var(--sky-input-border-width));
351
+ height: calc(
352
+ var(--sky-input-height) - 2 * var(--sky-input-border-width)
353
+ );
349
354
  min-height: calc(
350
355
  var(--sky-input-height) - 2 * var(--sky-input-border-width)
351
356
  );
@@ -355,9 +360,7 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{ifDefine
355
360
  overflow: hidden;
356
361
  }
357
362
 
358
- :host([variant='fieldset'])
359
- fieldset.input-wrapper[compact]
360
- .input-fieldset-body {
363
+ :host([variant="fieldset"]) fieldset.input-wrapper[compact] .input-fieldset-body {
361
364
  height: calc(
362
365
  var(--sky-input-height-compact) - 2 * var(--sky-input-border-width)
363
366
  );
@@ -366,19 +369,17 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{ifDefine
366
369
  );
367
370
  }
368
371
 
369
- :host([variant='fieldset']) fieldset.input-wrapper:has(textarea) {
372
+ :host([variant="fieldset"]) fieldset.input-wrapper:has(textarea) {
370
373
  height: auto;
371
374
  }
372
375
 
373
- :host([variant='fieldset'])
374
- fieldset.input-wrapper:has(textarea)
375
- .input-fieldset-body {
376
+ :host([variant="fieldset"]) fieldset.input-wrapper:has(textarea) .input-fieldset-body {
376
377
  height: calc((var(--rows)) * 23px);
377
378
  min-height: calc((var(--rows)) * 23px);
378
379
  align-items: flex-start;
379
380
  }
380
381
 
381
- :host([variant='fieldset']) legend.label {
382
+ :host([variant="fieldset"]) legend.label {
382
383
  float: unset;
383
384
  width: auto;
384
385
  max-width: calc(100% - 2 * var(--sky-input-pad-x));
@@ -399,42 +400,40 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{ifDefine
399
400
  pointer-events: none;
400
401
  }
401
402
 
402
- :host([variant='fieldset']) .input-container:focus-within legend.label {
403
+ :host([variant="fieldset"]) .input-container:focus-within legend.label {
403
404
  color: var(--sky-input-color);
404
405
  font-size: var(--sky-font-size-xs);
405
406
  }
406
407
 
407
408
  /* Focus via real border — ::after would paint over the legend gap */
408
- :host([variant='fieldset']) .input-wrapper::after {
409
+ :host([variant="fieldset"]) .input-wrapper::after {
409
410
  content: none;
410
411
  display: none;
411
412
  }
412
413
 
413
- :host([variant='fieldset']) .input-wrapper:has(input:focus),
414
- :host([variant='fieldset']) .input-wrapper:has(input:focus-visible),
415
- :host([variant='fieldset']) .input-wrapper:has(textarea:focus),
416
- :host([variant='fieldset']) .input-wrapper:has(textarea:focus-visible) {
414
+ :host([variant="fieldset"]) .input-wrapper:has(input:focus),
415
+ :host([variant="fieldset"]) .input-wrapper:has(input:focus-visible),
416
+ :host([variant="fieldset"]) .input-wrapper:has(textarea:focus),
417
+ :host([variant="fieldset"]) .input-wrapper:has(textarea:focus-visible) {
417
418
  border-color: var(--sky-input-color);
418
419
  }
419
420
 
420
- :host([variant='fieldset'][validationActive]:invalid) .input-wrapper {
421
+ :host([variant="fieldset"][validationActive]:invalid) .input-wrapper {
421
422
  border-color: var(--sky-danger-primary);
422
423
  }
423
424
 
424
- :host([variant='fieldset'][validationActive]:invalid) legend.label {
425
+ :host([variant="fieldset"][validationActive]:invalid) legend.label {
425
426
  color: var(--sky-danger-primary);
426
427
  }
427
428
 
428
- :host([variant='fieldset'][compact]) legend.label,
429
- :host([variant='fieldset'][compact])
430
- .input-container:focus-within
431
- legend.label {
429
+ :host([variant="fieldset"][compact]) legend.label,
430
+ :host([variant="fieldset"][compact]) .input-container:focus-within legend.label {
432
431
  font-size: var(--sky-font-size-xs);
433
432
  line-height: 1.4;
434
433
  }
435
434
 
436
435
  /* Inside: label lives in the wrapper above the value row */
437
- :host([variant='inside']) {
436
+ :host([variant="inside"]) {
438
437
  --sky-input-height-inside: 44px;
439
438
  /* Two lines (label + value) need a bit more than single-line compact */
440
439
  --sky-input-height-inside-compact: 40px;
@@ -442,20 +441,20 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{ifDefine
442
441
  --sky-input-inside-value-min: 1.375rem;
443
442
  }
444
443
 
445
- :host([variant='inside']) .input-wrapper {
444
+ :host([variant="inside"]) .input-wrapper {
446
445
  height: auto;
447
446
  min-height: var(--sky-input-height-inside);
448
447
  align-items: center;
449
448
  padding-block: var(--sky-input-pad-y-sm, 0px);
450
449
  }
451
450
 
452
- :host([variant='inside']) .input-wrapper[compact] {
451
+ :host([variant="inside"]) .input-wrapper[compact] {
453
452
  height: auto;
454
453
  min-height: var(--sky-input-height-inside-compact);
455
454
  padding-block: var(--sky-input-pad-y-sm, 0px);
456
455
  }
457
456
 
458
- :host([variant='inside']) .input-inside-main {
457
+ :host([variant="inside"]) .input-inside-main {
459
458
  flex: 1 1 auto;
460
459
  min-width: 0;
461
460
  display: flex;
@@ -465,7 +464,7 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{ifDefine
465
464
  padding-block: var(--sky-input-inside-label-block);
466
465
  }
467
466
 
468
- :host([variant='inside']) .input-inside-main > .label {
467
+ :host([variant="inside"]) .input-inside-main > .label {
469
468
  margin: 0;
470
469
  padding-inline: var(--sky-input-pad-x);
471
470
  font-size: var(--sky-font-size-xs);
@@ -478,40 +477,32 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{ifDefine
478
477
  flex-shrink: 0;
479
478
  }
480
479
 
481
- :host([variant='inside'][compact]) .input-inside-main > .label {
480
+ :host([variant="inside"][compact]) .input-inside-main > .label {
482
481
  font-size: 0.6875rem; /* ~11px — denser than xs for two-line compact */
483
482
  line-height: 1.3;
484
483
  min-height: calc(0.6875rem * 1.3);
485
484
  }
486
485
 
487
- :host([variant='inside'][compact]) .input-inside-row input,
488
- :host([variant='inside'][compact]) .input-inside-row textarea {
486
+ :host([variant="inside"][compact]) .input-inside-row input,
487
+ :host([variant="inside"][compact]) .input-inside-row textarea {
489
488
  font-size: var(--sky-font-size-sm);
490
489
  line-height: 1.15;
491
490
  }
492
491
 
493
- :host([variant='inside'])
494
- .input-container:focus-within
495
- .input-inside-main
496
- > .label {
492
+ :host([variant="inside"]) .input-container:focus-within .input-inside-main > .label {
497
493
  color: var(--sky-input-color);
498
494
  font-size: var(--sky-font-size-xs);
499
495
  }
500
496
 
501
- :host([variant='inside'][compact])
502
- .input-container:focus-within
503
- .input-inside-main
504
- > .label {
497
+ :host([variant="inside"][compact]) .input-container:focus-within .input-inside-main > .label {
505
498
  font-size: 0.6875rem;
506
499
  }
507
500
 
508
- :host([variant='inside'][validationActive]:invalid)
509
- .input-inside-main
510
- > .label {
501
+ :host([variant="inside"][validationActive]:invalid) .input-inside-main > .label {
511
502
  color: var(--sky-danger-primary);
512
503
  }
513
504
 
514
- :host([variant='inside']) .input-inside-row {
505
+ :host([variant="inside"]) .input-inside-row {
515
506
  display: flex;
516
507
  align-items: center;
517
508
  min-width: 0;
@@ -519,33 +510,27 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{ifDefine
519
510
  min-height: var(--sky-input-inside-value-min);
520
511
  }
521
512
 
522
- :host([variant='inside'])
523
- .input-wrapper:has(.icon-slot[filled].left)
524
- .input-inside-main
525
- > .label,
526
- :host([variant='inside'])
527
- .input-wrapper:has(.input-affix.prefix)
528
- .input-inside-main
529
- > .label {
513
+ :host([variant="inside"]) .input-wrapper:has(.icon-slot[filled].left) .input-inside-main > .label,
514
+ :host([variant="inside"]) .input-wrapper:has(.input-affix.prefix) .input-inside-main > .label {
530
515
  padding-inline-start: 0;
531
516
  }
532
517
 
533
- :host([variant='inside']) .input-inside-row input,
534
- :host([variant='inside']) .input-inside-row textarea {
518
+ :host([variant="inside"]) .input-inside-row input,
519
+ :host([variant="inside"]) .input-inside-row textarea {
535
520
  padding-block: 0;
536
521
  height: auto;
537
522
  min-height: 0;
538
523
  line-height: 1.2;
539
524
  }
540
525
 
541
- :host([variant='inside']) .input-wrapper:has(textarea) {
526
+ :host([variant="inside"]) .input-wrapper:has(textarea) {
542
527
  height: auto;
543
528
  min-height: var(--sky-input-height-inside);
544
529
  align-items: flex-start;
545
530
  }
546
531
 
547
- :host([variant='inside']) .icon-slot,
548
- :host([variant='inside']) .icon-slot[filled] {
532
+ :host([variant="inside"]) .icon-slot,
533
+ :host([variant="inside"]) .icon-slot[filled] {
549
534
  align-self: center;
550
535
  height: auto;
551
536
  max-height: none;
@@ -609,7 +594,7 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{ifDefine
609
594
  }
610
595
 
611
596
  .input-wrapper::after {
612
- content: '';
597
+ content: "";
613
598
  position: absolute;
614
599
  top: -1px;
615
600
  left: -1px;
@@ -656,11 +641,11 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{ifDefine
656
641
  border-radius: var(--sky-radius-primary);
657
642
  }
658
643
 
659
- input[type='date'],
660
- input[type='time'],
661
- input[type='week'],
662
- input[type='month'],
663
- input[type='datetime-local'] {
644
+ input[type="date"],
645
+ input[type="time"],
646
+ input[type="week"],
647
+ input[type="month"],
648
+ input[type="datetime-local"] {
664
649
  -webkit-appearance: none;
665
650
  -moz-appearance: none;
666
651
  appearance: none;
@@ -669,11 +654,11 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{ifDefine
669
654
  font-family: inherit;
670
655
  }
671
656
 
672
- input[type='date']::-webkit-calendar-picker-indicator,
673
- input[type='time']::-webkit-calendar-picker-indicator,
674
- input[type='week']::-webkit-calendar-picker-indicator,
675
- input[type='month']::-webkit-calendar-picker-indicator,
676
- input[type='datetime-local']::-webkit-calendar-picker-indicator {
657
+ input[type="date"]::-webkit-calendar-picker-indicator,
658
+ input[type="time"]::-webkit-calendar-picker-indicator,
659
+ input[type="week"]::-webkit-calendar-picker-indicator,
660
+ input[type="month"]::-webkit-calendar-picker-indicator,
661
+ input[type="datetime-local"]::-webkit-calendar-picker-indicator {
677
662
  display: none;
678
663
  }
679
664
 
@@ -702,13 +687,13 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{ifDefine
702
687
  text-align: right;
703
688
  }
704
689
 
705
- input[type='number'] {
690
+ input[type="number"] {
706
691
  appearance: textfield;
707
692
  -moz-appearance: textfield;
708
693
  }
709
694
 
710
- input[type='number']::-webkit-inner-spin-button,
711
- input[type='number']::-webkit-outer-spin-button {
695
+ input[type="number"]::-webkit-inner-spin-button,
696
+ input[type="number"]::-webkit-outer-spin-button {
712
697
  -webkit-appearance: none;
713
698
  margin: 0;
714
699
  }
@@ -982,7 +967,7 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{ifDefine
982
967
  pointer-events: none;
983
968
  }
984
969
 
985
- input[type='file'] {
970
+ input[type="file"] {
986
971
  position: absolute;
987
972
  width: 100%;
988
973
  height: 100%;
@@ -1016,7 +1001,7 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{ifDefine
1016
1001
  }
1017
1002
 
1018
1003
  .custom-file-label:empty::after {
1019
- content: 'Choose file';
1004
+ content: "Choose file";
1020
1005
  color: var(--sky-input-color);
1021
1006
  }
1022
1007
 
@@ -1038,11 +1023,11 @@ import{css as t,LitElement as e,html as i,nothing as s}from"lit";import{ifDefine
1038
1023
  font-family: var(--sky-font);
1039
1024
  }
1040
1025
 
1041
- textarea[resizable='vertical'] {
1026
+ textarea[resizable="vertical"] {
1042
1027
  resize: vertical;
1043
1028
  }
1044
1029
 
1045
- textarea[resizable='both'] {
1030
+ textarea[resizable="both"] {
1046
1031
  resize: both;
1047
1032
  }
1048
1033