@solid-design-system/components 1.0.1 → 1.1.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 (63) 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/button.js +12 -12
  4. package/dist/components/es/if-defined.js +2 -7
  5. package/dist/components/es/link.js +1 -1
  6. package/dist/components/es/query.js +6 -0
  7. package/dist/components/es/solid-components2.js +1 -1
  8. package/dist/components/es/solid-element.js +1 -1
  9. package/dist/components/es/spinner.js +1 -1
  10. package/dist/components/umd/solid-components.js +46 -46
  11. package/dist/custom-elements.json +1 -1
  12. package/dist/package/components/accordion/accordion.d.ts +23 -0
  13. package/dist/package/components/accordion/accordion.js +152 -0
  14. package/dist/package/components/accordion-group/accordion-group.d.ts +16 -0
  15. package/dist/package/components/accordion-group/accordion-group.js +63 -0
  16. package/dist/package/components/spinner/spinner.js +1 -1
  17. package/dist/package/internal/animate.d.ts +10 -0
  18. package/dist/package/internal/animate.js +41 -0
  19. package/dist/package/internal/event.d.ts +1 -0
  20. package/dist/package/internal/event.js +14 -0
  21. package/dist/package/solid-components.d.ts +2 -0
  22. package/dist/package/solid-components.js +14 -10
  23. package/dist/package/styles/tailwind.css.js +1 -1
  24. package/dist/package/utilities/animation-registry.d.ts +14 -0
  25. package/dist/package/utilities/animation-registry.js +35 -0
  26. package/dist/versioned-components/es/accordion-group.js +1 -0
  27. package/dist/versioned-components/es/accordion.js +1 -0
  28. package/dist/versioned-components/es/button.js +28 -28
  29. package/dist/versioned-components/es/icon.js +1 -1
  30. package/dist/versioned-components/es/if-defined.js +2 -7
  31. package/dist/versioned-components/es/include.js +1 -1
  32. package/dist/versioned-components/es/link.js +1 -1
  33. package/dist/versioned-components/es/query.js +6 -0
  34. package/dist/versioned-components/es/solid-components2.js +1 -1
  35. package/dist/versioned-components/es/solid-element.js +1 -1
  36. package/dist/versioned-components/es/spinner.js +1 -1
  37. package/dist/versioned-package/components/accordion/accordion.d.ts +23 -0
  38. package/dist/versioned-package/components/accordion/accordion.js +152 -0
  39. package/dist/versioned-package/components/accordion-group/accordion-group.d.ts +16 -0
  40. package/dist/versioned-package/components/accordion-group/accordion-group.js +63 -0
  41. package/dist/versioned-package/components/button/button.d.ts +1 -1
  42. package/dist/versioned-package/components/button/button.js +18 -18
  43. package/dist/versioned-package/components/icon/icon.d.ts +1 -1
  44. package/dist/versioned-package/components/icon/icon.js +1 -1
  45. package/dist/versioned-package/components/include/include.d.ts +1 -1
  46. package/dist/versioned-package/components/include/include.js +1 -1
  47. package/dist/versioned-package/components/link/link.d.ts +1 -1
  48. package/dist/versioned-package/components/link/link.js +2 -2
  49. package/dist/versioned-package/components/spinner/spinner.d.ts +1 -1
  50. package/dist/versioned-package/components/spinner/spinner.js +2 -2
  51. package/dist/versioned-package/internal/animate.d.ts +10 -0
  52. package/dist/versioned-package/internal/animate.js +41 -0
  53. package/dist/versioned-package/internal/event.d.ts +1 -0
  54. package/dist/versioned-package/internal/event.js +14 -0
  55. package/dist/versioned-package/internal/form.js +1 -1
  56. package/dist/versioned-package/solid-components.d.ts +2 -0
  57. package/dist/versioned-package/solid-components.js +14 -10
  58. package/dist/versioned-package/styles/tailwind.css.js +1 -1
  59. package/dist/versioned-package/utilities/animation-registry.d.ts +14 -0
  60. package/dist/versioned-package/utilities/animation-registry.js +35 -0
  61. package/dist/vscode.html-custom-data.json +63 -5
  62. package/dist/web-types.json +232 -6
  63. package/package.json +7 -22
@@ -0,0 +1,14 @@
1
+ export interface ElementAnimation {
2
+ keyframes: Keyframe[];
3
+ rtlKeyframes?: Keyframe[];
4
+ options?: KeyframeAnimationOptions;
5
+ }
6
+ export interface ElementAnimationMap {
7
+ [animationName: string]: ElementAnimation;
8
+ }
9
+ export interface GetAnimationOptions {
10
+ dir: string;
11
+ }
12
+ export declare function setDefaultAnimation(animationName: string, animation: ElementAnimation | null): void;
13
+ export declare function setAnimation(el: Element, animationName: string, animation: ElementAnimation | null): void;
14
+ export declare function getAnimation(el: Element, animationName: string, options: GetAnimationOptions): ElementAnimation;
@@ -0,0 +1,35 @@
1
+ const defaultAnimationRegistry = /* @__PURE__ */ new Map();
2
+ const customAnimationRegistry = /* @__PURE__ */ new WeakMap();
3
+ function ensureAnimation(animation) {
4
+ return animation ?? { keyframes: [], options: { duration: 0 } };
5
+ }
6
+ function getLogicalAnimation(animation, dir) {
7
+ if (dir.toLowerCase() === "rtl") {
8
+ return {
9
+ keyframes: animation.rtlKeyframes || animation.keyframes,
10
+ options: animation.options
11
+ };
12
+ }
13
+ return animation;
14
+ }
15
+ function setDefaultAnimation(animationName, animation) {
16
+ defaultAnimationRegistry.set(animationName, ensureAnimation(animation));
17
+ }
18
+ function getAnimation(el, animationName, options) {
19
+ const customAnimation = customAnimationRegistry.get(el);
20
+ if (customAnimation == null ? void 0 : customAnimation[animationName]) {
21
+ return getLogicalAnimation(customAnimation[animationName], options.dir);
22
+ }
23
+ const defaultAnimation = defaultAnimationRegistry.get(animationName);
24
+ if (defaultAnimation) {
25
+ return getLogicalAnimation(defaultAnimation, options.dir);
26
+ }
27
+ return {
28
+ keyframes: [],
29
+ options: { duration: 0 }
30
+ };
31
+ }
32
+ export {
33
+ getAnimation,
34
+ setDefaultAnimation
35
+ };
@@ -1,6 +1,35 @@
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
+ },
4
33
  {
5
34
  "name": "sd-button",
6
35
  "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.",
@@ -330,7 +359,36 @@
330
359
  "references": []
331
360
  },
332
361
  {
333
- "name": "sd-1-0-1-button",
362
+ "name": "sd-1-1-0-accordion-group",
363
+ "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.",
364
+ "attributes": [
365
+ {
366
+ "name": "close-others",
367
+ "description": "Closes other accordions.",
368
+ "values": []
369
+ }
370
+ ],
371
+ "references": []
372
+ },
373
+ {
374
+ "name": "sd-1-1-0-accordion",
375
+ "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.",
376
+ "attributes": [
377
+ {
378
+ "name": "open",
379
+ "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.",
380
+ "values": []
381
+ },
382
+ {
383
+ "name": "summary",
384
+ "description": "The summary to show in the header. If you need to display HTML, use the `summary` slot instead.",
385
+ "values": []
386
+ }
387
+ ],
388
+ "references": []
389
+ },
390
+ {
391
+ "name": "sd-1-1-0-button",
334
392
  "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
393
  "attributes": [
336
394
  {
@@ -502,7 +560,7 @@
502
560
  "references": []
503
561
  },
504
562
  {
505
- "name": "sd-1-0-1-icon",
563
+ "name": "sd-1-1-0-icon",
506
564
  "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
565
  "attributes": [
508
566
  {
@@ -544,7 +602,7 @@
544
602
  "references": []
545
603
  },
546
604
  {
547
- "name": "sd-1-0-1-include",
605
+ "name": "sd-1-1-0-include",
548
606
  "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
607
  "attributes": [
550
608
  {
@@ -576,7 +634,7 @@
576
634
  "references": []
577
635
  },
578
636
  {
579
- "name": "sd-1-0-1-link",
637
+ "name": "sd-1-1-0-link",
580
638
  "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
639
  "attributes": [
582
640
  {
@@ -636,7 +694,7 @@
636
694
  "references": []
637
695
  },
638
696
  {
639
- "name": "sd-1-0-1-spinner",
697
+ "name": "sd-1-1-0-spinner",
640
698
  "description": "Spinners are used to show the progress of an indeterminate operation.\n\n\n---\n\n\n",
641
699
  "attributes": [
642
700
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/web-types",
3
3
  "name": "@solid-design-system/components",
4
- "version": "1.0.1",
4
+ "version": "1.1.0",
5
5
  "description-markup": "markdown",
6
6
  "framework-config": {
7
7
  "enable-when": {
@@ -13,6 +13,119 @@
13
13
  "contributions": {
14
14
  "html": {
15
15
  "elements": [
16
+ {
17
+ "name": "sd-accordion-group",
18
+ "description": "",
19
+ "doc-url": "https://solid.union-investment.com/[storybook-link]/accordion-group",
20
+ "js": {
21
+ "properties": [
22
+ {
23
+ "name": "closeOthers",
24
+ "description": "Closes other accordions.",
25
+ "value": {
26
+ "type": "boolean"
27
+ }
28
+ },
29
+ {
30
+ "name": "handleAccordionShow",
31
+ "value": {}
32
+ }
33
+ ],
34
+ "events": []
35
+ },
36
+ "attributes": [
37
+ {
38
+ "name": "close-others",
39
+ "description": "Closes other accordions.",
40
+ "value": {
41
+ "type": "boolean"
42
+ }
43
+ }
44
+ ]
45
+ },
46
+ {
47
+ "name": "sd-accordion",
48
+ "description": "",
49
+ "doc-url": "https://solid.union-investment.com/[storybook-link]/accordion",
50
+ "js": {
51
+ "properties": [
52
+ {
53
+ "name": "localize",
54
+ "value": {}
55
+ },
56
+ {
57
+ "name": "open",
58
+ "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.",
59
+ "value": {
60
+ "type": "boolean"
61
+ }
62
+ },
63
+ {
64
+ "name": "summary",
65
+ "description": "The summary to show in the header. If you need to display HTML, use the `summary` slot instead.",
66
+ "value": {
67
+ "type": "string"
68
+ }
69
+ },
70
+ {
71
+ "name": "handleSummaryClick",
72
+ "value": {}
73
+ },
74
+ {
75
+ "name": "handleSummaryKeyDown",
76
+ "value": {}
77
+ },
78
+ {
79
+ "name": "handleOpenChange",
80
+ "value": {}
81
+ },
82
+ {
83
+ "name": "show",
84
+ "description": "Shows the accordion.",
85
+ "value": {}
86
+ },
87
+ {
88
+ "name": "hide",
89
+ "description": "Hides the accordion",
90
+ "value": {}
91
+ }
92
+ ],
93
+ "events": [
94
+ {
95
+ "name": "sd-show",
96
+ "description": "Emitted when the accordion opens."
97
+ },
98
+ {
99
+ "name": "sd-after-show",
100
+ "description": "Emitted after the accordion opens and all animations are complete."
101
+ },
102
+ {
103
+ "name": "sd-hide",
104
+ "description": "Emitted when the accordion closes."
105
+ },
106
+ {
107
+ "name": "sd-after-hide",
108
+ "description": "Emitted after the accordion closes and all animations are complete."
109
+ }
110
+ ]
111
+ },
112
+ "attributes": [
113
+ {
114
+ "name": "open",
115
+ "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.",
116
+ "value": {
117
+ "type": "boolean"
118
+ }
119
+ },
120
+ {
121
+ "name": "summary",
122
+ "description": "The summary to show in the header. If you need to display HTML, use the `summary` slot instead.",
123
+ "value": {
124
+ "type": "string"
125
+ }
126
+ }
127
+ ]
128
+ },
16
129
  {
17
130
  "name": "sd-button",
18
131
  "description": "",
@@ -768,7 +881,120 @@
768
881
  ]
769
882
  },
770
883
  {
771
- "name": "sd-1-0-1-button",
884
+ "name": "sd-1-1-0-accordion-group",
885
+ "description": "",
886
+ "doc-url": "https://solid.union-investment.com/[storybook-link]/accordion-group",
887
+ "js": {
888
+ "properties": [
889
+ {
890
+ "name": "closeOthers",
891
+ "description": "Closes other accordions.",
892
+ "value": {
893
+ "type": "boolean"
894
+ }
895
+ },
896
+ {
897
+ "name": "handleAccordionShow",
898
+ "value": {}
899
+ }
900
+ ],
901
+ "events": []
902
+ },
903
+ "attributes": [
904
+ {
905
+ "name": "close-others",
906
+ "description": "Closes other accordions.",
907
+ "value": {
908
+ "type": "boolean"
909
+ }
910
+ }
911
+ ]
912
+ },
913
+ {
914
+ "name": "sd-1-1-0-accordion",
915
+ "description": "",
916
+ "doc-url": "https://solid.union-investment.com/[storybook-link]/accordion",
917
+ "js": {
918
+ "properties": [
919
+ {
920
+ "name": "localize",
921
+ "value": {}
922
+ },
923
+ {
924
+ "name": "open",
925
+ "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.",
926
+ "value": {
927
+ "type": "boolean"
928
+ }
929
+ },
930
+ {
931
+ "name": "summary",
932
+ "description": "The summary to show in the header. If you need to display HTML, use the `summary` slot instead.",
933
+ "value": {
934
+ "type": "string"
935
+ }
936
+ },
937
+ {
938
+ "name": "handleSummaryClick",
939
+ "value": {}
940
+ },
941
+ {
942
+ "name": "handleSummaryKeyDown",
943
+ "value": {}
944
+ },
945
+ {
946
+ "name": "handleOpenChange",
947
+ "value": {}
948
+ },
949
+ {
950
+ "name": "show",
951
+ "description": "Shows the accordion.",
952
+ "value": {}
953
+ },
954
+ {
955
+ "name": "hide",
956
+ "description": "Hides the accordion",
957
+ "value": {}
958
+ }
959
+ ],
960
+ "events": [
961
+ {
962
+ "name": "sd-show",
963
+ "description": "Emitted when the accordion opens."
964
+ },
965
+ {
966
+ "name": "sd-after-show",
967
+ "description": "Emitted after the accordion opens and all animations are complete."
968
+ },
969
+ {
970
+ "name": "sd-hide",
971
+ "description": "Emitted when the accordion closes."
972
+ },
973
+ {
974
+ "name": "sd-after-hide",
975
+ "description": "Emitted after the accordion closes and all animations are complete."
976
+ }
977
+ ]
978
+ },
979
+ "attributes": [
980
+ {
981
+ "name": "open",
982
+ "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.",
983
+ "value": {
984
+ "type": "boolean"
985
+ }
986
+ },
987
+ {
988
+ "name": "summary",
989
+ "description": "The summary to show in the header. If you need to display HTML, use the `summary` slot instead.",
990
+ "value": {
991
+ "type": "string"
992
+ }
993
+ }
994
+ ]
995
+ },
996
+ {
997
+ "name": "sd-1-1-0-button",
772
998
  "description": "",
773
999
  "doc-url": "https://solid.union-investment.com/[storybook-link]/button",
774
1000
  "js": {
@@ -1107,7 +1333,7 @@
1107
1333
  ]
1108
1334
  },
1109
1335
  {
1110
- "name": "sd-1-0-1-icon",
1336
+ "name": "sd-1-1-0-icon",
1111
1337
  "description": "",
1112
1338
  "doc-url": "https://solid.union-investment.com/[storybook-link]/icon",
1113
1339
  "js": {
@@ -1216,7 +1442,7 @@
1216
1442
  ]
1217
1443
  },
1218
1444
  {
1219
- "name": "sd-1-0-1-include",
1445
+ "name": "sd-1-1-0-include",
1220
1446
  "description": "",
1221
1447
  "doc-url": "https://solid.union-investment.com/[storybook-link]/include",
1222
1448
  "js": {
@@ -1287,7 +1513,7 @@
1287
1513
  ]
1288
1514
  },
1289
1515
  {
1290
- "name": "sd-1-0-1-link",
1516
+ "name": "sd-1-1-0-link",
1291
1517
  "description": "",
1292
1518
  "doc-url": "https://solid.union-investment.com/[storybook-link]/link",
1293
1519
  "js": {
@@ -1414,7 +1640,7 @@
1414
1640
  ]
1415
1641
  },
1416
1642
  {
1417
- "name": "sd-1-0-1-spinner",
1643
+ "name": "sd-1-1-0-spinner",
1418
1644
  "description": "",
1419
1645
  "doc-url": "https://solid.union-investment.com/[storybook-link]/spinner",
1420
1646
  "js": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@solid-design-system/components",
3
3
  "description": "Solid Design System: Components",
4
- "version": "1.0.1",
4
+ "version": "1.1.0",
5
5
  "homepage": "https://solid-design-system.fe.union-investment.de/x.x.x/storybook/",
6
6
  "author": {
7
7
  "name": "Union Investment"
@@ -48,16 +48,13 @@
48
48
  "build.cdn": "pnpm build.components && pnpm build.storybook && node ./scripts/node-version-components.cjs",
49
49
  "build.npm": "pnpm build.components && pnpm build.package && node ./scripts/node-version-components.cjs",
50
50
  "build.components": "vite build --config vite.config.js",
51
- "build.package": "vite build --config vite.config.package.js",
51
+ "build.package": "pnpm build.package/create-index && vite build --config vite.config.package.js && pnpm build.package/remove-index",
52
+ "build.package/create-index": "node scripts/node-generate-package-index.cjs && echo '✅ Index created'",
53
+ "build.package/remove-index": "node -e \"require('fs').unlinkSync('src/solid-components.package.ts')\" && echo '✅ Index removed'",
52
54
  "build.storybook": "storybook build --output-dir dist/storybook && cp dist/custom-elements.json dist/storybook/custom-elements.json",
53
55
  "build.chromatic": "pnpm build.storybook && pnpm ci.optimize-chromatic",
54
56
  "preview": "vite preview",
55
- "fix": "pnpm lint.fix && pnpm format.fix",
56
- "verify": "pnpm format.verify > /dev/null && pnpm lint.verify && pnpm ts.verify && pnpm build && echo '✅ Build verified' && pnpm ci.optimize-chromatic && echo '✅ Chromatic optimization verified' && pnpm test && echo '✅ Test verified'",
57
- "format.fix": "prettier --write --loglevel warn .",
58
- "format.verify": "prettier --check --loglevel warn . && echo '✅ Formatting verified'",
59
- "lint.fix": "eslint src --max-warnings 0 --fix",
60
- "lint.verify": "eslint src --max-warnings 0 && echo '✅ Linting verified'",
57
+ "verify": "pnpm ts.verify && pnpm build && echo '✅ Build verified' && pnpm ci.optimize-chromatic && echo '✅ Chromatic optimization verified' && pnpm test && echo '✅ Test verified'",
61
58
  "ts.verify": "tsc --noEmit --project ./tsconfig.json && echo '✅ TypeScript verified'",
62
59
  "plop": "plop --plopfile scripts/plop/plopfile.js",
63
60
  "ci.optimize-chromatic": "node ./scripts/storybook/optimize-chromatic.cjs",
@@ -96,8 +93,6 @@
96
93
  "@storybook/web-components-vite": "^7.0.20",
97
94
  "@types/mocha": "^10.0.1",
98
95
  "@types/sinon": "^10.0.15",
99
- "@typescript-eslint/eslint-plugin": "^5.59.9",
100
- "@typescript-eslint/parser": "^5.59.9",
101
96
  "@web/test-runner": "^0.16.1",
102
97
  "@web/test-runner-commands": "^0.7.0",
103
98
  "@web/test-runner-playwright": "^0.10.1",
@@ -106,16 +101,6 @@
106
101
  "chromatic": "^6.18.2",
107
102
  "comment-parser": "^1.3.1",
108
103
  "cssnano": "^6.0.1",
109
- "eslint": "^8.42.0",
110
- "eslint-config-prettier": "^8.8.0",
111
- "eslint-plugin-chai-expect": "^3.0.0",
112
- "eslint-plugin-chai-friendly": "^0.7.2",
113
- "eslint-plugin-import": "^2.27.5",
114
- "eslint-plugin-lit": "^1.8.3",
115
- "eslint-plugin-lit-a11y": "^2.4.1",
116
- "eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
117
- "eslint-plugin-storybook": "^0.6.12",
118
- "eslint-plugin-wc": "^1.5.0",
119
104
  "globby": "^13.1.4",
120
105
  "gzip-size": "^7.0.0",
121
106
  "html-format": "^1.1.2",
@@ -184,8 +169,8 @@
184
169
  "readme": "README.md",
185
170
  "meta": {
186
171
  "bundleSizeInKb": {
187
- "uncompressed": 61,
188
- "gzip": 18
172
+ "uncompressed": 69,
173
+ "gzip": 20
189
174
  }
190
175
  }
191
176
  }