@solid-design-system/components 1.3.13 → 1.5.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 (99) hide show
  1. package/dist/components/es/accordion-group.js +1 -0
  2. package/dist/components/es/accordion.js +1 -0
  3. package/dist/components/es/brandshape.js +1 -0
  4. package/dist/components/es/button.js +2 -121
  5. package/dist/components/es/divider.js +1 -0
  6. package/dist/components/es/icon.js +3 -3
  7. package/dist/components/es/if-defined.js +2 -7
  8. package/dist/components/es/link.js +1 -1
  9. package/dist/components/es/query.js +6 -0
  10. package/dist/components/es/slot.js +1 -0
  11. package/dist/components/es/solid-components.js +1 -1
  12. package/dist/components/es/solid-components2.js +1 -0
  13. package/dist/components/es/solid-element.js +1 -1
  14. package/dist/components/es/spinner.js +1 -1
  15. package/dist/components/es/teaser.js +1 -0
  16. package/dist/components/umd/solid-components.js +21 -140
  17. package/dist/custom-elements.json +1 -1
  18. package/dist/package/components/accordion/accordion.d.ts +23 -0
  19. package/dist/package/components/accordion/accordion.js +152 -0
  20. package/dist/package/components/accordion-group/accordion-group.d.ts +16 -0
  21. package/dist/package/components/accordion-group/accordion-group.js +63 -0
  22. package/dist/package/components/brandshape/brandshape.d.ts +26 -0
  23. package/dist/package/components/brandshape/brandshape.js +115 -0
  24. package/dist/package/components/button/button.d.ts +1 -1
  25. package/dist/package/components/button/button.js +8 -127
  26. package/dist/package/components/divider/divider.d.ts +13 -0
  27. package/dist/package/components/divider/divider.js +50 -0
  28. package/dist/package/components/icon/icon.d.ts +1 -1
  29. package/dist/package/components/icon/icon.js +1 -1
  30. package/dist/package/components/icon/library.js +18 -0
  31. package/dist/package/components/include/include.d.ts +1 -1
  32. package/dist/package/components/link/link.d.ts +1 -1
  33. package/dist/package/components/spinner/spinner.d.ts +1 -1
  34. package/dist/package/components/spinner/spinner.js +1 -1
  35. package/dist/package/components/teaser/teaser.d.ts +17 -0
  36. package/dist/package/components/teaser/teaser.js +104 -0
  37. package/dist/package/internal/animate.d.ts +10 -0
  38. package/dist/package/internal/animate.js +41 -0
  39. package/dist/package/internal/event.d.ts +1 -0
  40. package/dist/package/internal/event.js +14 -0
  41. package/dist/package/solid-components.d.ts +6 -0
  42. package/dist/package/solid-components.js +23 -10
  43. package/dist/package/styles/tailwind.css.js +1 -1
  44. package/dist/package/utilities/animation-registry.d.ts +14 -0
  45. package/dist/package/utilities/animation-registry.js +35 -0
  46. package/dist/versioned-components/es/accordion-group.js +1 -0
  47. package/dist/versioned-components/es/accordion.js +1 -0
  48. package/dist/versioned-components/es/brandshape.js +1 -0
  49. package/dist/versioned-components/es/button.js +2 -121
  50. package/dist/versioned-components/es/divider.js +1 -0
  51. package/dist/versioned-components/es/icon.js +3 -3
  52. package/dist/versioned-components/es/if-defined.js +2 -7
  53. package/dist/versioned-components/es/include.js +1 -1
  54. package/dist/versioned-components/es/link.js +1 -1
  55. package/dist/versioned-components/es/query.js +6 -0
  56. package/dist/versioned-components/es/slot.js +1 -0
  57. package/dist/versioned-components/es/solid-components.js +1 -1
  58. package/dist/versioned-components/es/solid-components2.js +1 -0
  59. package/dist/versioned-components/es/solid-element.js +1 -1
  60. package/dist/versioned-components/es/spinner.js +1 -1
  61. package/dist/versioned-components/es/teaser.js +1 -0
  62. package/dist/versioned-package/components/accordion/accordion.d.ts +23 -0
  63. package/dist/versioned-package/components/accordion/accordion.js +152 -0
  64. package/dist/versioned-package/components/accordion-group/accordion-group.d.ts +16 -0
  65. package/dist/versioned-package/components/accordion-group/accordion-group.js +63 -0
  66. package/dist/versioned-package/components/brandshape/brandshape.d.ts +26 -0
  67. package/dist/versioned-package/components/brandshape/brandshape.js +115 -0
  68. package/dist/versioned-package/components/button/button.d.ts +2 -2
  69. package/dist/versioned-package/components/button/button.js +10 -129
  70. package/dist/versioned-package/components/divider/divider.d.ts +13 -0
  71. package/dist/versioned-package/components/divider/divider.js +50 -0
  72. package/dist/versioned-package/components/icon/icon.d.ts +2 -2
  73. package/dist/versioned-package/components/icon/icon.js +2 -2
  74. package/dist/versioned-package/components/icon/library.js +18 -0
  75. package/dist/versioned-package/components/include/include.d.ts +2 -2
  76. package/dist/versioned-package/components/include/include.js +1 -1
  77. package/dist/versioned-package/components/link/link.d.ts +2 -2
  78. package/dist/versioned-package/components/link/link.js +2 -2
  79. package/dist/versioned-package/components/spinner/spinner.d.ts +2 -2
  80. package/dist/versioned-package/components/spinner/spinner.js +2 -2
  81. package/dist/versioned-package/components/teaser/teaser.d.ts +17 -0
  82. package/dist/versioned-package/components/teaser/teaser.js +104 -0
  83. package/dist/versioned-package/internal/animate.d.ts +10 -0
  84. package/dist/versioned-package/internal/animate.js +41 -0
  85. package/dist/versioned-package/internal/event.d.ts +1 -0
  86. package/dist/versioned-package/internal/event.js +14 -0
  87. package/dist/versioned-package/internal/form.js +1 -1
  88. package/dist/versioned-package/solid-components.d.ts +6 -0
  89. package/dist/versioned-package/solid-components.js +23 -10
  90. package/dist/versioned-package/styles/tailwind.css.js +1 -1
  91. package/dist/versioned-package/utilities/animation-registry.d.ts +14 -0
  92. package/dist/versioned-package/utilities/animation-registry.js +35 -0
  93. package/dist/vscode.html-custom-data.json +259 -5
  94. package/dist/web-types.json +624 -6
  95. package/package.json +22 -27
  96. package/dist/components/es/library.js +0 -1
  97. package/dist/components/es/library.system.js +0 -1
  98. package/dist/versioned-components/es/library.js +0 -1
  99. package/dist/versioned-components/es/library.system.js +0 -1
@@ -1,6 +1,72 @@
1
1
  {
2
2
  "version": 1.1,
3
3
  "tags": [
4
+ {
5
+ "name": "sd-accordion-group",
6
+ "description": "Short summary of the component's intended use.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The default slot where `<sd-accordion>` elements are placed.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
7
+ "attributes": [
8
+ {
9
+ "name": "close-others",
10
+ "description": "Closes other accordions.",
11
+ "values": []
12
+ }
13
+ ],
14
+ "references": []
15
+ },
16
+ {
17
+ "name": "sd-accordion",
18
+ "description": "Accordion shows a brief summary and expands to show additional content.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-show** - Emitted when the accordion opens.\n- **sd-after-show** - Emitted after the accordion opens and all animations are complete.\n- **sd-hide** - Emitted when the accordion closes.\n- **sd-after-hide** - Emitted after the accordion closes and all animations are complete.\n\n### **Methods:**\n - **show()** - Shows the accordion.\n- **hide()** - Hides the accordion\n\n### **Slots:**\n - _default_ - The accordion main content.\n- **summary** - The accordion summary. Alternatively, you can use the `summary` attribute.\n- **expand-icon** - Optional expand icon to use instead of the default. Works best with `<sd-icon>`.\n- **collapse-icon** - Optional collapse icon to use instead of the default. Works best with `<sd-icon>`.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **header** - The header that wraps both the summary and the expand/collapse icon.\n- **summary** - The container that wraps the summary.\n- **summary-icon** - The container that wraps the expand/collapse icons.\n- **content** - The accordion content.",
19
+ "attributes": [
20
+ {
21
+ "name": "open",
22
+ "description": "Indicates whether or not the accordion is open. You can toggle this attribute to show and hide the accordion, or you\ncan use the `show()` and `hide()` methods and this attribute will reflect the accordion' open state.",
23
+ "values": []
24
+ },
25
+ {
26
+ "name": "summary",
27
+ "description": "The summary to show in the header. If you need to display HTML, use the `summary` slot instead.",
28
+ "values": []
29
+ }
30
+ ],
31
+ "references": []
32
+ },
33
+ {
34
+ "name": "sd-brandshape",
35
+ "description": "The Brandshape highlights a piece of content.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The content inside the brandshape.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **content** - Middle content wrapper.\n- **shape-top** - Top shape.\n- **shape-middle** - Middle shape.\n- **shape-bottom** - Bottom shape.",
36
+ "attributes": [
37
+ {
38
+ "name": "variant",
39
+ "description": "The brandshape's theme variant.",
40
+ "values": [
41
+ {
42
+ "name": "neutral-100"
43
+ },
44
+ {
45
+ "name": "primary"
46
+ },
47
+ {
48
+ "name": "white"
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "name": "shapes",
54
+ "description": "Defines which shapes of the brandshape should be displayed.",
55
+ "values": [
56
+ {
57
+ "name": "('top'"
58
+ },
59
+ {
60
+ "name": "middle"
61
+ },
62
+ {
63
+ "name": "'bottom')[]"
64
+ }
65
+ ]
66
+ }
67
+ ],
68
+ "references": []
69
+ },
4
70
  {
5
71
  "name": "sd-button",
6
72
  "description": "Buttons represent actions that are available to the user.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-blur** - Emitted when the button loses focus.\n- **sd-focus** - Emitted when the button gains focus.\n\n### **Methods:**\n - **click()** - Simulates a click on the button.\n- **focus(options: _FocusOptions_)** - Sets focus on the button.\n- **blur()** - Removes focus from the button.\n- **checkValidity()** - Checks for validity but does not show the browser's validation message.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The button's label.\n- **icon-left** - A prefix icon or similar element.\n- **icon-right** - A suffix icon or similar element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon-left** - The container that wraps the left icon area.\n- **label** - The button's label.\n- **icon-right** - The container that wraps the right icon area.",
@@ -173,6 +239,30 @@
173
239
  ],
174
240
  "references": []
175
241
  },
242
+ {
243
+ "name": "sd-divider",
244
+ "description": "Dividers are used to visually separate or group elements.\n\n\n---\n\n\n",
245
+ "attributes": [
246
+ {
247
+ "name": "orientation",
248
+ "description": "Determines the orientation of the divider.",
249
+ "values": [
250
+ {
251
+ "name": "horizontal"
252
+ },
253
+ {
254
+ "name": "vertical"
255
+ }
256
+ ]
257
+ },
258
+ {
259
+ "name": "inverted",
260
+ "description": "This inverts the divider.",
261
+ "values": []
262
+ }
263
+ ],
264
+ "references": []
265
+ },
176
266
  {
177
267
  "name": "sd-icon",
178
268
  "description": "Icons are symbols that can be used to represent various options within an application.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-load** - Emitted when the icon has loaded.\n- **sd-error** - Emitted when the icon fails to load due to an error.",
@@ -330,7 +420,110 @@
330
420
  "references": []
331
421
  },
332
422
  {
333
- "name": "sd-1-3-13-button",
423
+ "name": "sd-teaser",
424
+ "description": "Teasers group information into flexible containers so users can browse a collection of related items and actions.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - An optional main content slot.\n- **media** - An optional media slot.\n- **meta** - An optional meta slot.\n- **headline** - headline slot.\n\n### **CSS Properties:**\n - **--distribution-media** - The distribution ratio of the media. _(default: undefined)_\n- **--distribution-content** - The distribution ratio of the content. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **media** - The container that wraps the media.\n- **content** - The container that wraps the content.\n- **meta** - The container that wraps the meta.\n- **headline** - The container that wraps the headline.\n- **main** - The container that wraps the main content.",
425
+ "attributes": [
426
+ {
427
+ "name": "variant",
428
+ "values": [
429
+ {
430
+ "name": "white"
431
+ },
432
+ {
433
+ "name": "white border-neutral-300"
434
+ },
435
+ {
436
+ "name": "neutral-100"
437
+ },
438
+ {
439
+ "name": "primary"
440
+ },
441
+ {
442
+ "name": "primary-100"
443
+ }
444
+ ]
445
+ },
446
+ {
447
+ "name": "breakpoint",
448
+ "description": "Breakpoint where the teaser switches from `vertical` to `horizontal`. `0` is always `horizontal`, `9999` is always `vertical`.",
449
+ "values": []
450
+ },
451
+ {
452
+ "name": "inset",
453
+ "description": "The teaser's inner padding. This is always set in `white border-neutral-300`.",
454
+ "values": []
455
+ }
456
+ ],
457
+ "references": []
458
+ },
459
+ {
460
+ "name": "sd-1-5-0-accordion-group",
461
+ "description": "Short summary of the component's intended use.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The default slot where `<sd-accordion>` elements are placed.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
462
+ "attributes": [
463
+ {
464
+ "name": "close-others",
465
+ "description": "Closes other accordions.",
466
+ "values": []
467
+ }
468
+ ],
469
+ "references": []
470
+ },
471
+ {
472
+ "name": "sd-1-5-0-accordion",
473
+ "description": "Accordion shows a brief summary and expands to show additional content.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-show** - Emitted when the accordion opens.\n- **sd-after-show** - Emitted after the accordion opens and all animations are complete.\n- **sd-hide** - Emitted when the accordion closes.\n- **sd-after-hide** - Emitted after the accordion closes and all animations are complete.\n\n### **Methods:**\n - **show()** - Shows the accordion.\n- **hide()** - Hides the accordion\n\n### **Slots:**\n - _default_ - The accordion main content.\n- **summary** - The accordion summary. Alternatively, you can use the `summary` attribute.\n- **expand-icon** - Optional expand icon to use instead of the default. Works best with `<sd-icon>`.\n- **collapse-icon** - Optional collapse icon to use instead of the default. Works best with `<sd-icon>`.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **header** - The header that wraps both the summary and the expand/collapse icon.\n- **summary** - The container that wraps the summary.\n- **summary-icon** - The container that wraps the expand/collapse icons.\n- **content** - The accordion content.",
474
+ "attributes": [
475
+ {
476
+ "name": "open",
477
+ "description": "Indicates whether or not the accordion is open. You can toggle this attribute to show and hide the accordion, or you\ncan use the `show()` and `hide()` methods and this attribute will reflect the accordion' open state.",
478
+ "values": []
479
+ },
480
+ {
481
+ "name": "summary",
482
+ "description": "The summary to show in the header. If you need to display HTML, use the `summary` slot instead.",
483
+ "values": []
484
+ }
485
+ ],
486
+ "references": []
487
+ },
488
+ {
489
+ "name": "sd-1-5-0-brandshape",
490
+ "description": "The Brandshape highlights a piece of content.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The content inside the brandshape.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **content** - Middle content wrapper.\n- **shape-top** - Top shape.\n- **shape-middle** - Middle shape.\n- **shape-bottom** - Bottom shape.",
491
+ "attributes": [
492
+ {
493
+ "name": "variant",
494
+ "description": "The brandshape's theme variant.",
495
+ "values": [
496
+ {
497
+ "name": "neutral-100"
498
+ },
499
+ {
500
+ "name": "primary"
501
+ },
502
+ {
503
+ "name": "white"
504
+ }
505
+ ]
506
+ },
507
+ {
508
+ "name": "shapes",
509
+ "description": "Defines which shapes of the brandshape should be displayed.",
510
+ "values": [
511
+ {
512
+ "name": "('top'"
513
+ },
514
+ {
515
+ "name": "middle"
516
+ },
517
+ {
518
+ "name": "'bottom')[]"
519
+ }
520
+ ]
521
+ }
522
+ ],
523
+ "references": []
524
+ },
525
+ {
526
+ "name": "sd-1-5-0-button",
334
527
  "description": "Buttons represent actions that are available to the user.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-blur** - Emitted when the button loses focus.\n- **sd-focus** - Emitted when the button gains focus.\n\n### **Methods:**\n - **click()** - Simulates a click on the button.\n- **focus(options: _FocusOptions_)** - Sets focus on the button.\n- **blur()** - Removes focus from the button.\n- **checkValidity()** - Checks for validity but does not show the browser's validation message.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The button's label.\n- **icon-left** - A prefix icon or similar element.\n- **icon-right** - A suffix icon or similar element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon-left** - The container that wraps the left icon area.\n- **label** - The button's label.\n- **icon-right** - The container that wraps the right icon area.",
335
528
  "attributes": [
336
529
  {
@@ -502,7 +695,31 @@
502
695
  "references": []
503
696
  },
504
697
  {
505
- "name": "sd-1-3-13-icon",
698
+ "name": "sd-1-5-0-divider",
699
+ "description": "Dividers are used to visually separate or group elements.\n\n\n---\n\n\n",
700
+ "attributes": [
701
+ {
702
+ "name": "orientation",
703
+ "description": "Determines the orientation of the divider.",
704
+ "values": [
705
+ {
706
+ "name": "horizontal"
707
+ },
708
+ {
709
+ "name": "vertical"
710
+ }
711
+ ]
712
+ },
713
+ {
714
+ "name": "inverted",
715
+ "description": "This inverts the divider.",
716
+ "values": []
717
+ }
718
+ ],
719
+ "references": []
720
+ },
721
+ {
722
+ "name": "sd-1-5-0-icon",
506
723
  "description": "Icons are symbols that can be used to represent various options within an application.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-load** - Emitted when the icon has loaded.\n- **sd-error** - Emitted when the icon fails to load due to an error.",
507
724
  "attributes": [
508
725
  {
@@ -544,7 +761,7 @@
544
761
  "references": []
545
762
  },
546
763
  {
547
- "name": "sd-1-3-13-include",
764
+ "name": "sd-1-5-0-include",
548
765
  "description": "Includes give you the power to embed external HTML files into the page.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-load** - Emitted when the included file is loaded.\n- **sd-error** - Emitted when the included file fails to load due to an error.",
549
766
  "attributes": [
550
767
  {
@@ -576,7 +793,7 @@
576
793
  "references": []
577
794
  },
578
795
  {
579
- "name": "sd-1-3-13-link",
796
+ "name": "sd-1-5-0-link",
580
797
  "description": "A link component.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-blur** - Emitted when the link loses focus.\n- **sd-focus** - Emitted when the link gains focus.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the button.\n- **blur()** - Removes focus from the button.\n\n### **Slots:**\n - _default_ - The default slot.\n- **icon-left** - The icon to display on the left side of the link.\n- **icon-right** - The icon to display on the right side of the link.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon-left** - The container that wraps the left icon area.\n- **label** - The link's label.\n- **icon-right** - The container that wraps the right icon area.",
581
798
  "attributes": [
582
799
  {
@@ -636,7 +853,7 @@
636
853
  "references": []
637
854
  },
638
855
  {
639
- "name": "sd-1-3-13-spinner",
856
+ "name": "sd-1-5-0-spinner",
640
857
  "description": "Spinners are used to show the progress of an indeterminate operation.\n\n\n---\n\n\n",
641
858
  "attributes": [
642
859
  {
@@ -656,6 +873,43 @@
656
873
  }
657
874
  ],
658
875
  "references": []
876
+ },
877
+ {
878
+ "name": "sd-1-5-0-teaser",
879
+ "description": "Teasers group information into flexible containers so users can browse a collection of related items and actions.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - An optional main content slot.\n- **media** - An optional media slot.\n- **meta** - An optional meta slot.\n- **headline** - headline slot.\n\n### **CSS Properties:**\n - **--distribution-media** - The distribution ratio of the media. _(default: undefined)_\n- **--distribution-content** - The distribution ratio of the content. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **media** - The container that wraps the media.\n- **content** - The container that wraps the content.\n- **meta** - The container that wraps the meta.\n- **headline** - The container that wraps the headline.\n- **main** - The container that wraps the main content.",
880
+ "attributes": [
881
+ {
882
+ "name": "variant",
883
+ "values": [
884
+ {
885
+ "name": "white"
886
+ },
887
+ {
888
+ "name": "white border-neutral-300"
889
+ },
890
+ {
891
+ "name": "neutral-100"
892
+ },
893
+ {
894
+ "name": "primary"
895
+ },
896
+ {
897
+ "name": "primary-100"
898
+ }
899
+ ]
900
+ },
901
+ {
902
+ "name": "breakpoint",
903
+ "description": "Breakpoint where the teaser switches from `vertical` to `horizontal`. `0` is always `horizontal`, `9999` is always `vertical`.",
904
+ "values": []
905
+ },
906
+ {
907
+ "name": "inset",
908
+ "description": "The teaser's inner padding. This is always set in `white border-neutral-300`.",
909
+ "values": []
910
+ }
911
+ ],
912
+ "references": []
659
913
  }
660
914
  ]
661
915
  }