@warp-ds/elements 2.4.0-next.3 → 2.4.0-next.5
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.
- package/dist/custom-elements.json +160 -158
- package/dist/index.d.ts +45 -45
- package/dist/packages/tabs/index.d.ts +0 -1
- package/dist/packages/tabs/index.js +1 -0
- package/dist/packages/tabs/tab-panel.d.ts +3 -3
- package/dist/packages/tabs/tab-panel.js +9 -13
- package/dist/packages/tabs/tab.d.ts +1 -2
- package/dist/packages/tabs/tab.js +7 -7
- package/dist/packages/tabs/tab.js.map +3 -3
- package/dist/packages/tabs/tabs.d.ts +2 -4
- package/dist/packages/tabs/tabs.js +8 -6
- package/dist/packages/tabs/tabs.js.map +3 -3
- package/dist/packages/tabs/tabs.react.stories.js +26 -27
- package/dist/packages/tabs/tabs.stories.js +58 -58
- package/dist/web-types.json +30 -30
- package/package.json +1 -37
|
@@ -9,85 +9,85 @@ const meta = {
|
|
|
9
9
|
export default meta;
|
|
10
10
|
export const Default = () => html `
|
|
11
11
|
<w-tabs active="tab1">
|
|
12
|
-
|
|
13
|
-
<w-tab
|
|
14
|
-
<w-tab
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<
|
|
19
|
-
|
|
12
|
+
|
|
13
|
+
<w-tab for="tab1" label="First Tab"></w-tab>
|
|
14
|
+
<w-tab-panel id="tab1">
|
|
15
|
+
<p>Content for the first tab. This panel is visible when the first tab is active.</p>
|
|
16
|
+
</w-tab-panel>
|
|
17
|
+
|
|
18
|
+
<w-tab for="tab2" label="Second Tab"></w-tab>
|
|
19
|
+
<w-tab-panel id="tab2" hidden>
|
|
20
|
+
<p>Content for the second tab. This panel is visible when the second tab is active.</p>
|
|
21
|
+
</w-tab-panel>
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
<
|
|
23
|
-
|
|
23
|
+
<w-tab for="tab3" label="Third Tab"></w-tab>
|
|
24
|
+
<w-tab-panel id="tab3" hidden>
|
|
25
|
+
<p>Content for the third tab. This panel is visible when the third tab is active.</p>
|
|
26
|
+
</w-tab-panel>
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</w-tab-panel>
|
|
28
|
+
</w-tabs>
|
|
29
|
+
|
|
28
30
|
`;
|
|
29
31
|
export const WithIcons = () => html `
|
|
30
32
|
<w-tabs active="info">
|
|
31
|
-
<w-tab
|
|
33
|
+
<w-tab for="info" label="Info">
|
|
32
34
|
<span slot="icon">
|
|
33
|
-
|
|
35
|
+
<w-icon-info-16></w-icon-info-16>
|
|
34
36
|
</span>
|
|
35
37
|
</w-tab>
|
|
36
|
-
<w-tab
|
|
38
|
+
<w-tab-panel id="info">
|
|
39
|
+
<p>Info content.</p>
|
|
40
|
+
</w-tab-panel>
|
|
41
|
+
|
|
42
|
+
<w-tab for="done" label="Done">
|
|
37
43
|
<span slot="icon">
|
|
38
|
-
|
|
44
|
+
<w-icon-success-16></w-icon-success-16>
|
|
39
45
|
</span>
|
|
40
46
|
</w-tab>
|
|
41
|
-
<w-tab
|
|
47
|
+
<w-tab-panel id="done" hidden>
|
|
48
|
+
<p>Done content.</p>
|
|
49
|
+
</w-tab-panel>
|
|
50
|
+
|
|
51
|
+
<w-tab for="error" label="Failures">
|
|
42
52
|
<span slot="icon">
|
|
43
|
-
|
|
53
|
+
<w-icon-error-16></w-icon-error-16>
|
|
44
54
|
</span>
|
|
45
55
|
</w-tab>
|
|
56
|
+
<w-tab-panel id="error" hidden>
|
|
57
|
+
<p>Error content.</p>
|
|
58
|
+
</w-tab-panel>
|
|
46
59
|
</w-tabs>
|
|
47
|
-
|
|
48
|
-
<w-tab-panel name="home">
|
|
49
|
-
<p>Welcome to the home page!</p>
|
|
50
|
-
</w-tab-panel>
|
|
51
|
-
|
|
52
|
-
<w-tab-panel name="search" hidden>
|
|
53
|
-
<p>Search functionality goes here.</p>
|
|
54
|
-
</w-tab-panel>
|
|
55
|
-
|
|
56
|
-
<w-tab-panel name="profile" hidden>
|
|
57
|
-
<p>User profile information.</p>
|
|
58
|
-
</w-tab-panel>
|
|
59
60
|
`;
|
|
60
61
|
export const ManyTabs = () => html `
|
|
61
62
|
<w-tabs active="tab1">
|
|
62
|
-
<w-tab
|
|
63
|
-
<w-tab
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
<w-tab name="tab5" label="Tab 5"></w-tab>
|
|
67
|
-
<w-tab name="tab6" label="Tab 6"></w-tab>
|
|
68
|
-
</w-tabs>
|
|
63
|
+
<w-tab for="tab1" label="Tab 1"></w-tab>
|
|
64
|
+
<w-tab-panel id="tab1">
|
|
65
|
+
<p>Content for tab 1</p>
|
|
66
|
+
</w-tab-panel>
|
|
69
67
|
|
|
70
|
-
|
|
71
|
-
<
|
|
72
|
-
|
|
68
|
+
<w-tab for="tab2" label="Tab 2"></w-tab>
|
|
69
|
+
<w-tab-panel id="tab2" hidden>
|
|
70
|
+
<p>Content for tab 2</p>
|
|
71
|
+
</w-tab-panel>
|
|
73
72
|
|
|
74
|
-
|
|
75
|
-
<
|
|
76
|
-
|
|
73
|
+
<w-tab for="tab3" label="Tab 3"></w-tab>
|
|
74
|
+
<w-tab-panel id="tab3" hidden>
|
|
75
|
+
<p>Content for tab 3</p>
|
|
76
|
+
</w-tab-panel>
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
<
|
|
80
|
-
|
|
78
|
+
<w-tab for="tab4" label="Tab 4"></w-tab>
|
|
79
|
+
<w-tab-panel id="tab4" hidden>
|
|
80
|
+
<p>Content for tab 4</p>
|
|
81
|
+
</w-tab-panel>
|
|
81
82
|
|
|
82
|
-
|
|
83
|
-
<
|
|
84
|
-
|
|
83
|
+
<w-tab for="tab5" label="Tab 5"></w-tab>
|
|
84
|
+
<w-tab-panel id="tab5" hidden>
|
|
85
|
+
<p>Content for tab 5</p>
|
|
86
|
+
</w-tab-panel>
|
|
85
87
|
|
|
86
|
-
|
|
87
|
-
<
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
<p>Content for tab 6</p>
|
|
92
|
-
</w-tab-panel>
|
|
88
|
+
<w-tab for="tab6" label="Tab 6"></w-tab>
|
|
89
|
+
<w-tab-panel id="tab6" hidden>
|
|
90
|
+
<p>Content for tab 6</p>
|
|
91
|
+
</w-tab-panel>
|
|
92
|
+
</w-tabs>
|
|
93
93
|
`;
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@warp-ds/elements",
|
|
4
|
-
"version": "2.4.0-next.
|
|
4
|
+
"version": "2.4.0-next.4",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -808,6 +808,33 @@
|
|
|
808
808
|
"events": []
|
|
809
809
|
}
|
|
810
810
|
},
|
|
811
|
+
{
|
|
812
|
+
"name": "w-switch",
|
|
813
|
+
"description": "\n---\n\n\n### **Events:**\n - **change**",
|
|
814
|
+
"doc-url": "",
|
|
815
|
+
"attributes": [
|
|
816
|
+
{ "name": "name", "value": { "type": "string", "default": "''" } },
|
|
817
|
+
{ "name": "value", "value": { "type": "string", "default": "''" } },
|
|
818
|
+
{
|
|
819
|
+
"name": "checked",
|
|
820
|
+
"value": { "type": "boolean", "default": "false" }
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"name": "disabled",
|
|
824
|
+
"value": { "type": "boolean", "default": "false" }
|
|
825
|
+
}
|
|
826
|
+
],
|
|
827
|
+
"events": [{ "name": "change", "type": "CustomEvent" }],
|
|
828
|
+
"js": {
|
|
829
|
+
"properties": [
|
|
830
|
+
{ "name": "name", "type": "string" },
|
|
831
|
+
{ "name": "value", "type": "string" },
|
|
832
|
+
{ "name": "checked", "type": "boolean" },
|
|
833
|
+
{ "name": "disabled", "type": "boolean" }
|
|
834
|
+
],
|
|
835
|
+
"events": [{ "name": "change", "type": "CustomEvent" }]
|
|
836
|
+
}
|
|
837
|
+
},
|
|
811
838
|
{
|
|
812
839
|
"name": "w-combobox",
|
|
813
840
|
"description": "A combobox element for text input with selectable options.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-combobox--docs)\n---\n",
|
|
@@ -1656,39 +1683,12 @@
|
|
|
1656
1683
|
"events": []
|
|
1657
1684
|
}
|
|
1658
1685
|
},
|
|
1659
|
-
{
|
|
1660
|
-
"name": "w-switch",
|
|
1661
|
-
"description": "\n---\n\n\n### **Events:**\n - **change**",
|
|
1662
|
-
"doc-url": "",
|
|
1663
|
-
"attributes": [
|
|
1664
|
-
{ "name": "name", "value": { "type": "string", "default": "''" } },
|
|
1665
|
-
{ "name": "value", "value": { "type": "string", "default": "''" } },
|
|
1666
|
-
{
|
|
1667
|
-
"name": "checked",
|
|
1668
|
-
"value": { "type": "boolean", "default": "false" }
|
|
1669
|
-
},
|
|
1670
|
-
{
|
|
1671
|
-
"name": "disabled",
|
|
1672
|
-
"value": { "type": "boolean", "default": "false" }
|
|
1673
|
-
}
|
|
1674
|
-
],
|
|
1675
|
-
"events": [{ "name": "change", "type": "CustomEvent" }],
|
|
1676
|
-
"js": {
|
|
1677
|
-
"properties": [
|
|
1678
|
-
{ "name": "name", "type": "string" },
|
|
1679
|
-
{ "name": "value", "type": "string" },
|
|
1680
|
-
{ "name": "checked", "type": "boolean" },
|
|
1681
|
-
{ "name": "disabled", "type": "boolean" }
|
|
1682
|
-
],
|
|
1683
|
-
"events": [{ "name": "change", "type": "CustomEvent" }]
|
|
1684
|
-
}
|
|
1685
|
-
},
|
|
1686
1686
|
{
|
|
1687
1687
|
"name": "w-tab",
|
|
1688
1688
|
"description": "Individual tab component used within w-tabs container.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)\n---\n",
|
|
1689
1689
|
"doc-url": "",
|
|
1690
1690
|
"attributes": [
|
|
1691
|
-
{ "name": "
|
|
1691
|
+
{ "name": "for", "value": { "type": "string", "default": "''" } },
|
|
1692
1692
|
{ "name": "label", "value": { "type": "string", "default": "''" } },
|
|
1693
1693
|
{
|
|
1694
1694
|
"name": "active",
|
|
@@ -1706,7 +1706,7 @@
|
|
|
1706
1706
|
"events": [],
|
|
1707
1707
|
"js": {
|
|
1708
1708
|
"properties": [
|
|
1709
|
-
{ "name": "
|
|
1709
|
+
{ "name": "for", "type": "string" },
|
|
1710
1710
|
{ "name": "label", "type": "string" },
|
|
1711
1711
|
{ "name": "active", "type": "boolean" },
|
|
1712
1712
|
{ "name": "over", "type": "boolean" },
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warp-ds/elements",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.4.0-next.
|
|
4
|
+
"version": "2.4.0-next.5",
|
|
5
5
|
"packageManager": "pnpm@10.20.0",
|
|
6
6
|
"description": "Custom elements for Warp",
|
|
7
7
|
"exports": {
|
|
@@ -65,10 +65,6 @@
|
|
|
65
65
|
"types": "./dist/packages/datepicker/react.d.ts",
|
|
66
66
|
"import": "./dist/packages/datepicker/react.js"
|
|
67
67
|
},
|
|
68
|
-
"./react/deadtoggle": {
|
|
69
|
-
"types": "./dist/packages/dead-toggle/react.d.ts",
|
|
70
|
-
"import": "./dist/packages/deadtoggle/react.js"
|
|
71
|
-
},
|
|
72
68
|
"./react/expandable": {
|
|
73
69
|
"types": "./dist/packages/expandable/react.d.ts",
|
|
74
70
|
"import": "./dist/packages/expandable/react.js"
|
|
@@ -81,50 +77,18 @@
|
|
|
81
77
|
"types": "./dist/packages/modal/react.d.ts",
|
|
82
78
|
"import": "./dist/packages/modal/react.js"
|
|
83
79
|
},
|
|
84
|
-
"./react/pageindicator": {
|
|
85
|
-
"types": "./dist/packages/pageindicator/react.d.ts",
|
|
86
|
-
"import": "./dist/packages/pageindicator/react.js"
|
|
87
|
-
},
|
|
88
|
-
"./react/pagination": {
|
|
89
|
-
"types": "./dist/packages/pagination/react.d.ts",
|
|
90
|
-
"import": "./dist/packages/pagination/react.js"
|
|
91
|
-
},
|
|
92
80
|
"./react/pill": {
|
|
93
81
|
"types": "./dist/packages/pill/react.d.ts",
|
|
94
82
|
"import": "./dist/packages/pill/react.js"
|
|
95
83
|
},
|
|
96
|
-
"./react/checkbox": {
|
|
97
|
-
"types": "./dist/packages/checkbox/react.d.ts",
|
|
98
|
-
"import": "./dist/packages/checkbox/react.js"
|
|
99
|
-
},
|
|
100
|
-
"./react/radio": {
|
|
101
|
-
"types": "./dist/packages/radio/react.d.ts",
|
|
102
|
-
"import": "./dist/packages/radio/react.js"
|
|
103
|
-
},
|
|
104
84
|
"./react/select": {
|
|
105
85
|
"types": "./dist/packages/select/react.d.ts",
|
|
106
86
|
"import": "./dist/packages/select/react.js"
|
|
107
87
|
},
|
|
108
|
-
"./react/slider": {
|
|
109
|
-
"types": "./dist/packages/slider/react.d.ts",
|
|
110
|
-
"import": "./dist/packages/slider/react.js"
|
|
111
|
-
},
|
|
112
|
-
"./react/stepindicator": {
|
|
113
|
-
"types": "./dist/packages/stepindicator/react.d.ts",
|
|
114
|
-
"import": "./dist/packages/stepindicator/react.js"
|
|
115
|
-
},
|
|
116
88
|
"./react/switch": {
|
|
117
89
|
"types": "./dist/packages/switch/react.d.ts",
|
|
118
90
|
"import": "./dist/packages/switch/react.js"
|
|
119
91
|
},
|
|
120
|
-
"./react/tabs": {
|
|
121
|
-
"types": "./dist/packages/tabs/react.d.ts",
|
|
122
|
-
"import": "./dist/packages/tabs/react.js"
|
|
123
|
-
},
|
|
124
|
-
"./react/textarea": {
|
|
125
|
-
"types": "./dist/packages/textarea/react.d.ts",
|
|
126
|
-
"import": "./dist/packages/textarea/react.js"
|
|
127
|
-
},
|
|
128
92
|
"./react/textfield": {
|
|
129
93
|
"types": "./dist/packages/textfield/react.d.ts",
|
|
130
94
|
"import": "./dist/packages/textfield/react.js"
|