@warp-ds/elements 2.4.0-next.7 → 2.4.0-next.9
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/api.js.map +2 -2
- package/dist/custom-elements.json +64 -118
- package/dist/index.d.ts +39 -65
- package/dist/packages/alert/react.js +1 -1
- package/dist/packages/attention/attention.js +14 -14
- package/dist/packages/attention/attention.js.map +3 -3
- package/dist/packages/attention/attention.react.stories.d.ts +1 -1
- package/dist/packages/attention/react.js +1 -1
- package/dist/packages/badge/badge.react.stories.d.ts +1 -1
- package/dist/packages/badge/react.js +1 -1
- package/dist/packages/box/box.react.stories.d.ts +1 -1
- package/dist/packages/box/react.js +1 -1
- package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +1 -1
- package/dist/packages/breadcrumbs/react.js +1 -1
- package/dist/packages/button/button.js +11 -11
- package/dist/packages/button/button.js.map +3 -3
- package/dist/packages/button/button.react.stories.d.ts +1 -1
- package/dist/packages/button/react.js +1 -1
- package/dist/packages/card/card.react.stories.d.ts +1 -1
- package/dist/packages/card/react.js +1 -1
- package/dist/packages/combobox/combobox.js.map +1 -1
- package/dist/packages/combobox/combobox.react.stories.d.ts +1 -1
- package/dist/packages/combobox/react.js +1 -1
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +1 -1
- package/dist/packages/datepicker/react.js +1 -1
- package/dist/packages/dead-toggle/dead-toggle.react.stories.d.ts +1 -1
- package/dist/packages/dead-toggle/react.js +1 -1
- package/dist/packages/expandable/expandable.react.stories.d.ts +1 -1
- package/dist/packages/expandable/react.js +1 -1
- package/dist/packages/link/link.js +2 -2
- package/dist/packages/link/link.js.map +2 -2
- package/dist/packages/link/link.react.stories.d.ts +1 -1
- package/dist/packages/link/react.js +1 -1
- package/dist/packages/link/styles.js +2 -2
- package/dist/packages/modal/modal.stories.d.ts +3 -2
- package/dist/packages/modal/react.d.ts +1 -1
- package/dist/packages/modal/react.js +2 -2
- package/dist/packages/modal-footer/modal-footer.js +4 -4
- package/dist/packages/modal-footer/modal-footer.js.map +4 -4
- package/dist/packages/modal-footer/react.js +1 -1
- package/dist/packages/modal-header/modal-header.js +4 -4
- package/dist/packages/modal-header/modal-header.js.map +4 -4
- package/dist/packages/modal-header/react.js +1 -1
- package/dist/packages/page-indicator/page-indicator.react.stories.d.ts +1 -1
- package/dist/packages/page-indicator/react.js +1 -1
- package/dist/packages/pagination/pagination.js +4 -4
- package/dist/packages/pagination/pagination.js.map +4 -4
- package/dist/packages/pagination/pagination.react.stories.d.ts +1 -1
- package/dist/packages/pagination/react.js +1 -1
- package/dist/packages/pill/pill.react.stories.d.ts +1 -1
- package/dist/packages/pill/react.js +1 -1
- package/dist/packages/radio/radio.js +120 -120
- package/dist/packages/radio/radio.js.map +4 -4
- package/dist/packages/radio/react.js +1 -1
- package/dist/packages/radio-group/radio-group.js +112 -112
- package/dist/packages/radio-group/radio-group.js.map +4 -4
- package/dist/packages/radio-group/react.js +1 -1
- package/dist/packages/select/react.js +1 -1
- package/dist/packages/select/select.js +2 -2
- package/dist/packages/select/select.js.map +4 -4
- package/dist/packages/select/select.react.stories.d.ts +1 -1
- package/dist/packages/select/select.react.stories.js +1 -1
- package/dist/packages/slider/index.d.ts +1 -1
- package/dist/packages/slider/index.js +1 -1
- package/dist/packages/slider/react.js +1 -1
- package/dist/packages/slider/slider.js +5 -5
- package/dist/packages/slider/slider.js.map +4 -4
- package/dist/packages/slider-thumb/react.js +1 -1
- package/dist/packages/slider-thumb/slider-thumb.js +14 -14
- package/dist/packages/slider-thumb/slider-thumb.js.map +4 -4
- package/dist/packages/step/react.js +1 -1
- package/dist/packages/step/step.js +4 -4
- package/dist/packages/step/step.js.map +4 -4
- package/dist/packages/step-indicator/index.d.ts +1 -1
- package/dist/packages/step-indicator/index.js +1 -1
- package/dist/packages/step-indicator/react.js +1 -1
- package/dist/packages/step-indicator/step-indicator.js.map +2 -2
- package/dist/packages/switch/react.js +1 -1
- package/dist/packages/switch/switch.test.js +1 -1
- package/dist/packages/tab/react.js +1 -1
- package/dist/packages/tab/tab.d.ts +1 -3
- package/dist/packages/tab/tab.js +11 -11
- package/dist/packages/tab/tab.js.map +3 -3
- package/dist/packages/tab-panel/react.js +1 -1
- package/dist/packages/tabs/react.js +1 -1
- package/dist/packages/tabs/tabs.d.ts +0 -1
- package/dist/packages/tabs/tabs.js +5 -5
- package/dist/packages/tabs/tabs.js.map +3 -3
- package/dist/packages/tabs/tabs.react.stories.d.ts +14 -1
- package/dist/packages/tabs/tabs.react.stories.js +45 -24
- package/dist/packages/tabs/tabs.stories.d.ts +4 -5
- package/dist/packages/tabs/tabs.stories.js +51 -29
- package/dist/packages/textarea/react.js +1 -1
- package/dist/packages/textarea/textarea.react.stories.d.ts +1 -1
- package/dist/packages/textfield/react.js +1 -1
- package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
- package/dist/packages/toast/index.d.ts +1 -1
- package/dist/packages/toast/index.js +1 -1
- package/dist/web-types.json +19 -34
- package/package.json +19 -18
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import '@warp-ds/components/icon';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
+
import { Tab, TabPanel, Tabs } from './react';
|
|
3
4
|
export default {
|
|
4
5
|
title: 'Components/Tabs',
|
|
5
6
|
component: Tabs,
|
|
6
7
|
};
|
|
7
8
|
export const Default = () => (React.createElement(Tabs, { active: "tab1" },
|
|
8
|
-
React.createElement(Tab, { for: "tab1",
|
|
9
|
-
React.createElement(Tab, { for: "tab2",
|
|
10
|
-
React.createElement(Tab, { for: "tab3",
|
|
9
|
+
React.createElement(Tab, { for: "tab1" }, "First Tab"),
|
|
10
|
+
React.createElement(Tab, { for: "tab2" }, "Second Tab"),
|
|
11
|
+
React.createElement(Tab, { for: "tab3" }, "Third Tab"),
|
|
11
12
|
React.createElement(TabPanel, { id: "tab1" },
|
|
12
13
|
React.createElement("p", null, "Content for the first tab. This panel is visible when the first tab is active.")),
|
|
13
14
|
React.createElement(TabPanel, { id: "tab2", hidden: true },
|
|
@@ -15,27 +16,47 @@ export const Default = () => (React.createElement(Tabs, { active: "tab1" },
|
|
|
15
16
|
React.createElement(TabPanel, { id: "tab3", hidden: true },
|
|
16
17
|
React.createElement("p", null, "Content for the third tab. This panel is visible when the third tab is active."))));
|
|
17
18
|
export const WithIcons = () => (React.createElement(React.Fragment, null,
|
|
18
|
-
React.createElement(Tabs, { active: "
|
|
19
|
-
React.createElement(Tab, { for: "
|
|
20
|
-
React.createElement("
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
React.createElement(Tabs, { active: "info" },
|
|
20
|
+
React.createElement(Tab, { for: "info" },
|
|
21
|
+
React.createElement("w-icon", { name: "info-16", slot: "icon" }),
|
|
22
|
+
"Info"),
|
|
23
|
+
React.createElement(Tab, { for: "done" },
|
|
24
|
+
React.createElement("w-icon", { name: "success-16", slot: "icon" }),
|
|
25
|
+
"Done"),
|
|
26
|
+
React.createElement(Tab, { for: "error" },
|
|
27
|
+
React.createElement("w-icon", { name: "error-16", slot: "icon" }),
|
|
28
|
+
"Failures")),
|
|
29
|
+
React.createElement(TabPanel, { id: "info" },
|
|
30
|
+
React.createElement("p", null, "Info content.")),
|
|
31
|
+
React.createElement(TabPanel, { id: "done", hidden: true },
|
|
32
|
+
React.createElement("p", null, "Done content.")),
|
|
33
|
+
React.createElement(TabPanel, { id: "error", hidden: true },
|
|
34
|
+
React.createElement("p", null, "Error content."))));
|
|
35
|
+
export const WithIconsOver = () => (React.createElement(React.Fragment, null,
|
|
36
|
+
React.createElement(Tabs, { active: "info" },
|
|
37
|
+
React.createElement(Tab, { for: "info", over: true },
|
|
38
|
+
React.createElement("w-icon", { name: "info-16", slot: "icon" }),
|
|
39
|
+
"Info"),
|
|
40
|
+
React.createElement(Tab, { for: "done", over: true },
|
|
41
|
+
React.createElement("w-icon", { name: "success-16", slot: "icon" }),
|
|
42
|
+
"Done"),
|
|
43
|
+
React.createElement(Tab, { for: "error", over: true },
|
|
44
|
+
React.createElement("w-icon", { name: "error-16", slot: "icon" }),
|
|
45
|
+
"Failures")),
|
|
46
|
+
React.createElement(TabPanel, { id: "info" },
|
|
47
|
+
React.createElement("p", null, "Info content.")),
|
|
48
|
+
React.createElement(TabPanel, { id: "done", hidden: true },
|
|
49
|
+
React.createElement("p", null, "Done content.")),
|
|
50
|
+
React.createElement(TabPanel, { id: "error", hidden: true },
|
|
51
|
+
React.createElement("p", null, "Error content."))));
|
|
31
52
|
export const ManyTabs = () => (React.createElement(React.Fragment, null,
|
|
32
|
-
React.createElement(Tabs, { active: "tab1", id:
|
|
33
|
-
React.createElement(Tab, { for: "tab1",
|
|
34
|
-
React.createElement(Tab, { for: "tab2",
|
|
35
|
-
React.createElement(Tab, { for: "tab3",
|
|
36
|
-
React.createElement(Tab, { for: "tab4",
|
|
37
|
-
React.createElement(Tab, { for: "tab5",
|
|
38
|
-
React.createElement(Tab, { for: "tab6",
|
|
53
|
+
React.createElement(Tabs, { active: "tab1", id: "tabs-many" },
|
|
54
|
+
React.createElement(Tab, { for: "tab1" }, "Tab 1"),
|
|
55
|
+
React.createElement(Tab, { for: "tab2" }, "Tab 2"),
|
|
56
|
+
React.createElement(Tab, { for: "tab3" }, "Tab 3"),
|
|
57
|
+
React.createElement(Tab, { for: "tab4" }, "Tab 4"),
|
|
58
|
+
React.createElement(Tab, { for: "tab5" }, "Tab 5"),
|
|
59
|
+
React.createElement(Tab, { for: "tab6" }, "Tab 6")),
|
|
39
60
|
React.createElement(TabPanel, { id: "tab1" },
|
|
40
61
|
React.createElement("p", null, "Content for tab 1")),
|
|
41
62
|
React.createElement(TabPanel, { id: "tab2", hidden: true },
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import '@warp-ds/
|
|
2
|
-
import '@warp-ds/icons/elements/success-16';
|
|
3
|
-
import '@warp-ds/icons/elements/error-16';
|
|
4
|
-
import './tabs.js';
|
|
5
|
-
import '../tab/tab.js';
|
|
1
|
+
import '@warp-ds/components/icon';
|
|
6
2
|
import '../tab-panel/tab-panel.js';
|
|
3
|
+
import '../tab/tab.js';
|
|
4
|
+
import './tabs.js';
|
|
7
5
|
declare const meta: {
|
|
8
6
|
title: string;
|
|
9
7
|
};
|
|
10
8
|
export default meta;
|
|
11
9
|
export declare const Default: () => import("lit").TemplateResult<1>;
|
|
12
10
|
export declare const WithIcons: () => import("lit").TemplateResult<1>;
|
|
11
|
+
export declare const WithIconsOver: () => import("lit").TemplateResult<1>;
|
|
13
12
|
export declare const ManyTabs: () => import("lit").TemplateResult<1>;
|
|
@@ -1,59 +1,81 @@
|
|
|
1
|
+
import '@warp-ds/components/icon';
|
|
1
2
|
import { html } from 'lit';
|
|
2
|
-
import '@warp-ds/icons/elements/info-16';
|
|
3
|
-
import '@warp-ds/icons/elements/success-16';
|
|
4
|
-
import '@warp-ds/icons/elements/error-16';
|
|
5
|
-
import './tabs.js';
|
|
6
|
-
import '../tab/tab.js';
|
|
7
3
|
import '../tab-panel/tab-panel.js';
|
|
4
|
+
import '../tab/tab.js';
|
|
5
|
+
import './tabs.js';
|
|
8
6
|
const meta = {
|
|
9
7
|
title: 'Components/Tabs',
|
|
10
8
|
};
|
|
11
9
|
export default meta;
|
|
12
10
|
export const Default = () => html `
|
|
13
11
|
<w-tabs active="tab1">
|
|
14
|
-
|
|
15
|
-
<w-tab for="tab1"
|
|
12
|
+
|
|
13
|
+
<w-tab for="tab1">First Tab</w-tab>
|
|
16
14
|
<w-tab-panel id="tab1">
|
|
17
15
|
<p>Content for the first tab. This panel is visible when the first tab is active.</p>
|
|
18
16
|
</w-tab-panel>
|
|
19
|
-
|
|
20
|
-
<w-tab for="tab2"
|
|
17
|
+
|
|
18
|
+
<w-tab for="tab2">Second Tab</w-tab>
|
|
21
19
|
<w-tab-panel id="tab2" hidden>
|
|
22
20
|
<p>Content for the second tab. This panel is visible when the second tab is active.</p>
|
|
23
21
|
</w-tab-panel>
|
|
24
22
|
|
|
25
|
-
<w-tab for="tab3"
|
|
23
|
+
<w-tab for="tab3">Third Tab</w-tab>
|
|
26
24
|
<w-tab-panel id="tab3" hidden>
|
|
27
25
|
<p>Content for the third tab. This panel is visible when the third tab is active.</p>
|
|
28
26
|
</w-tab-panel>
|
|
29
27
|
|
|
30
28
|
</w-tabs>
|
|
31
|
-
|
|
29
|
+
|
|
32
30
|
`;
|
|
33
31
|
export const WithIcons = () => html `
|
|
34
32
|
<w-tabs active="info">
|
|
35
|
-
<w-tab for="info"
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
<w-tab for="info">
|
|
34
|
+
<w-icon name="Info" slot="icon"></w-icon>
|
|
35
|
+
Info
|
|
36
|
+
</w-tab>
|
|
37
|
+
<w-tab-panel id="info">
|
|
38
|
+
<p>Info content.</p>
|
|
39
|
+
</w-tab-panel>
|
|
40
|
+
|
|
41
|
+
<w-tab for="done">
|
|
42
|
+
<w-icon name="Success" slot="icon"></w-icon>
|
|
43
|
+
Done
|
|
44
|
+
</w-tab>
|
|
45
|
+
<w-tab-panel id="done" hidden>
|
|
46
|
+
<p>Done content.</p>
|
|
47
|
+
</w-tab-panel>
|
|
48
|
+
|
|
49
|
+
<w-tab for="error">
|
|
50
|
+
<w-icon name="Error" slot="icon"></w-icon>
|
|
51
|
+
Failures
|
|
52
|
+
</w-tab>
|
|
53
|
+
<w-tab-panel id="error" hidden>
|
|
54
|
+
<p>Error content.</p>
|
|
55
|
+
</w-tab-panel>
|
|
56
|
+
</w-tabs>
|
|
57
|
+
`;
|
|
58
|
+
export const WithIconsOver = () => html `
|
|
59
|
+
<w-tabs active="info">
|
|
60
|
+
<w-tab for="info" over>
|
|
61
|
+
<w-icon name="Info" slot="icon"></w-icon>
|
|
62
|
+
Info
|
|
39
63
|
</w-tab>
|
|
40
64
|
<w-tab-panel id="info">
|
|
41
65
|
<p>Info content.</p>
|
|
42
66
|
</w-tab-panel>
|
|
43
67
|
|
|
44
|
-
<w-tab for="done"
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
</span>
|
|
68
|
+
<w-tab for="done" over>
|
|
69
|
+
<w-icon name="Success" slot="icon"></w-icon>
|
|
70
|
+
Done
|
|
48
71
|
</w-tab>
|
|
49
72
|
<w-tab-panel id="done" hidden>
|
|
50
73
|
<p>Done content.</p>
|
|
51
74
|
</w-tab-panel>
|
|
52
75
|
|
|
53
|
-
<w-tab for="error"
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
</span>
|
|
76
|
+
<w-tab for="error" over>
|
|
77
|
+
<w-icon name="Error" slot="icon"></w-icon>
|
|
78
|
+
Failures
|
|
57
79
|
</w-tab>
|
|
58
80
|
<w-tab-panel id="error" hidden>
|
|
59
81
|
<p>Error content.</p>
|
|
@@ -62,32 +84,32 @@ export const WithIcons = () => html `
|
|
|
62
84
|
`;
|
|
63
85
|
export const ManyTabs = () => html `
|
|
64
86
|
<w-tabs active="tab1">
|
|
65
|
-
<w-tab for="tab1"
|
|
87
|
+
<w-tab for="tab1">Tab 1</w-tab>
|
|
66
88
|
<w-tab-panel id="tab1">
|
|
67
89
|
<p>Content for tab 1</p>
|
|
68
90
|
</w-tab-panel>
|
|
69
91
|
|
|
70
|
-
<w-tab for="tab2"
|
|
92
|
+
<w-tab for="tab2">Tab 2</w-tab>
|
|
71
93
|
<w-tab-panel id="tab2" hidden>
|
|
72
94
|
<p>Content for tab 2</p>
|
|
73
95
|
</w-tab-panel>
|
|
74
96
|
|
|
75
|
-
<w-tab for="tab3"
|
|
97
|
+
<w-tab for="tab3">Tab 3</w-tab>
|
|
76
98
|
<w-tab-panel id="tab3" hidden>
|
|
77
99
|
<p>Content for tab 3</p>
|
|
78
100
|
</w-tab-panel>
|
|
79
101
|
|
|
80
|
-
<w-tab for="tab4"
|
|
102
|
+
<w-tab for="tab4">Tab 4</w-tab>
|
|
81
103
|
<w-tab-panel id="tab4" hidden>
|
|
82
104
|
<p>Content for tab 4</p>
|
|
83
105
|
</w-tab-panel>
|
|
84
106
|
|
|
85
|
-
<w-tab for="tab5"
|
|
107
|
+
<w-tab for="tab5">Tab 5</w-tab>
|
|
86
108
|
<w-tab-panel id="tab5" hidden>
|
|
87
109
|
<p>Content for tab 5</p>
|
|
88
110
|
</w-tab-panel>
|
|
89
111
|
|
|
90
|
-
<w-tab for="tab6"
|
|
112
|
+
<w-tab for="tab6">Tab 6</w-tab>
|
|
91
113
|
<w-tab-panel id="tab6" hidden>
|
|
92
114
|
<p>Content for tab 6</p>
|
|
93
115
|
</w-tab-panel>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './toast.js';
|
|
2
2
|
import '../toast-container/toast-container.js';
|
|
3
|
+
export { WarpToastContainer } from '../toast-container/toast-container.js';
|
|
3
4
|
export { removeToast, toast, updateToast } from './api.js';
|
|
4
5
|
export { WarpToast } from './toast.js';
|
|
5
|
-
export { WarpToastContainer } from '../toast-container/toast-container.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Side-effect imports to register custom elements
|
|
2
2
|
import './toast.js';
|
|
3
3
|
import '../toast-container/toast-container.js';
|
|
4
|
+
export { WarpToastContainer } from '../toast-container/toast-container.js';
|
|
4
5
|
// Re-exports for backward compatibility
|
|
5
6
|
export { removeToast, toast, updateToast } from './api.js';
|
|
6
7
|
export { WarpToast } from './toast.js';
|
|
7
|
-
export { WarpToastContainer } from '../toast-container/toast-container.js';
|
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.8",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -1683,29 +1683,12 @@
|
|
|
1683
1683
|
"events": []
|
|
1684
1684
|
}
|
|
1685
1685
|
},
|
|
1686
|
-
{
|
|
1687
|
-
"name": "w-tab-panel",
|
|
1688
|
-
"description": "Tab panel component that holds content for individual tabs.\nEach tab panel should have a name that matches a corresponding tab.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)\n---\n",
|
|
1689
|
-
"doc-url": "",
|
|
1690
|
-
"attributes": [
|
|
1691
|
-
{
|
|
1692
|
-
"name": "hidden",
|
|
1693
|
-
"value": { "type": "boolean", "default": "true" }
|
|
1694
|
-
}
|
|
1695
|
-
],
|
|
1696
|
-
"events": [],
|
|
1697
|
-
"js": {
|
|
1698
|
-
"properties": [{ "name": "hidden", "type": "boolean" }],
|
|
1699
|
-
"events": []
|
|
1700
|
-
}
|
|
1701
|
-
},
|
|
1702
1686
|
{
|
|
1703
1687
|
"name": "w-tab",
|
|
1704
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",
|
|
1705
1689
|
"doc-url": "",
|
|
1706
1690
|
"attributes": [
|
|
1707
1691
|
{ "name": "for", "value": { "type": "string", "default": "''" } },
|
|
1708
|
-
{ "name": "label", "value": { "type": "string", "default": "''" } },
|
|
1709
1692
|
{
|
|
1710
1693
|
"name": "active",
|
|
1711
1694
|
"value": { "type": "boolean", "default": "false" }
|
|
@@ -1713,43 +1696,45 @@
|
|
|
1713
1696
|
{
|
|
1714
1697
|
"name": "over",
|
|
1715
1698
|
"value": { "type": "boolean", "default": "false" }
|
|
1716
|
-
},
|
|
1717
|
-
{
|
|
1718
|
-
"name": "tab-class",
|
|
1719
|
-
"value": { "type": "string", "default": "''" }
|
|
1720
1699
|
}
|
|
1721
1700
|
],
|
|
1722
1701
|
"events": [],
|
|
1723
1702
|
"js": {
|
|
1724
1703
|
"properties": [
|
|
1725
1704
|
{ "name": "for", "type": "string" },
|
|
1726
|
-
{ "name": "label", "type": "string" },
|
|
1727
1705
|
{ "name": "active", "type": "boolean" },
|
|
1728
|
-
{ "name": "over", "type": "boolean" }
|
|
1729
|
-
{ "name": "tabClass", "type": "string" }
|
|
1706
|
+
{ "name": "over", "type": "boolean" }
|
|
1730
1707
|
],
|
|
1731
1708
|
"events": []
|
|
1732
1709
|
}
|
|
1733
1710
|
},
|
|
1734
1711
|
{
|
|
1735
|
-
"name": "w-
|
|
1736
|
-
"description": "
|
|
1712
|
+
"name": "w-tab-panel",
|
|
1713
|
+
"description": "Tab panel component that holds content for individual tabs.\nEach tab panel should have a name that matches a corresponding tab.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)\n---\n",
|
|
1737
1714
|
"doc-url": "",
|
|
1738
1715
|
"attributes": [
|
|
1739
1716
|
{
|
|
1740
|
-
"name": "
|
|
1741
|
-
"value": { "type": "
|
|
1742
|
-
},
|
|
1743
|
-
{
|
|
1744
|
-
"name": "tab-class",
|
|
1745
|
-
"value": { "type": "string", "default": "''" }
|
|
1717
|
+
"name": "hidden",
|
|
1718
|
+
"value": { "type": "boolean", "default": "true" }
|
|
1746
1719
|
}
|
|
1747
1720
|
],
|
|
1721
|
+
"events": [],
|
|
1722
|
+
"js": {
|
|
1723
|
+
"properties": [{ "name": "hidden", "type": "boolean" }],
|
|
1724
|
+
"events": []
|
|
1725
|
+
}
|
|
1726
|
+
},
|
|
1727
|
+
{
|
|
1728
|
+
"name": "w-tabs",
|
|
1729
|
+
"description": "Tabs are used to organize content by grouping similar information on the same page.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)\n---\n\n\n### **Events:**\n - **change**",
|
|
1730
|
+
"doc-url": "",
|
|
1731
|
+
"attributes": [
|
|
1732
|
+
{ "name": "active", "value": { "type": "string", "default": "''" } }
|
|
1733
|
+
],
|
|
1748
1734
|
"events": [{ "name": "change", "type": "CustomEvent" }],
|
|
1749
1735
|
"js": {
|
|
1750
1736
|
"properties": [
|
|
1751
1737
|
{ "name": "active", "type": "string" },
|
|
1752
|
-
{ "name": "tabClass", "type": "string" },
|
|
1753
1738
|
{ "name": "tabs" },
|
|
1754
1739
|
{ "name": "activeTab" }
|
|
1755
1740
|
],
|
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.9",
|
|
5
5
|
"packageManager": "pnpm@10.20.0",
|
|
6
6
|
"description": "Custom elements for Warp",
|
|
7
7
|
"exports": {
|
|
@@ -339,8 +339,15 @@
|
|
|
339
339
|
"@itsy/animate": "0.0.9",
|
|
340
340
|
"@lingui/cli": "5.2.0",
|
|
341
341
|
"@lingui/conf": "5.2.0",
|
|
342
|
+
"@lingui/core": "5.2.0",
|
|
343
|
+
"@lit-labs/rollup-plugin-minify-html-literals": "^0.1.0",
|
|
342
344
|
"@oddbird/css-anchor-positioning": "^0.7.0",
|
|
345
|
+
"@open-wc/form-control": "^1.0.0",
|
|
343
346
|
"@open-wc/lit-helpers": "^0.7.0",
|
|
347
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
|
348
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
349
|
+
"@rollup/plugin-replace": "^6.0.2",
|
|
350
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
344
351
|
"@semantic-release/changelog": "6.0.3",
|
|
345
352
|
"@semantic-release/git": "10.0.1",
|
|
346
353
|
"@storybook/addon-a11y": "^9.1.4",
|
|
@@ -359,6 +366,9 @@
|
|
|
359
366
|
"@vitejs/plugin-react": "^5.0.2",
|
|
360
367
|
"@vitest/browser": "^3.2.4",
|
|
361
368
|
"@vitest/utils": "^3.2.4",
|
|
369
|
+
"@warp-ds/core": "1.1.8",
|
|
370
|
+
"@warp-ds/css": "2.1.1",
|
|
371
|
+
"@warp-ds/icons": "2.5.0",
|
|
362
372
|
"@warp-ds/uno": "2.1.0",
|
|
363
373
|
"@wc-toolkit/cem-validator": "^1.0.3",
|
|
364
374
|
"@wc-toolkit/jsx-types": "^1.4.2",
|
|
@@ -366,6 +376,7 @@
|
|
|
366
376
|
"@wc-toolkit/type-parser": "^1.2.0",
|
|
367
377
|
"custom-element-jet-brains-integration": "^1.7.0",
|
|
368
378
|
"cz-conventional-changelog": "3.3.0",
|
|
379
|
+
"date-fns": "^4.1.0",
|
|
369
380
|
"element-collapse": "1.1.0",
|
|
370
381
|
"esbuild": "0.25.10",
|
|
371
382
|
"express": "4.19.2",
|
|
@@ -380,32 +391,22 @@
|
|
|
380
391
|
"react": "^19.1.1",
|
|
381
392
|
"react-dom": "^19.1.1",
|
|
382
393
|
"rimraf": "6.0.1",
|
|
394
|
+
"rollup": "^4.52.3",
|
|
395
|
+
"scroll-doctor": "2.0.2",
|
|
383
396
|
"semantic-release": "24.0.0",
|
|
384
397
|
"storybook": "^9.1.4",
|
|
398
|
+
"tslib": "^2.8.1",
|
|
385
399
|
"typescript": "5.5.3",
|
|
386
400
|
"unocss": "0.x",
|
|
387
401
|
"vite": "^6.0.0",
|
|
388
402
|
"vitest": "^3.2.4",
|
|
389
403
|
"vitest-browser-lit": "^0.1.0",
|
|
390
|
-
"vitest-browser-react": "^1.0.1"
|
|
391
|
-
"@rollup/plugin-commonjs": "^28.0.6",
|
|
392
|
-
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
393
|
-
"@rollup/plugin-replace": "^6.0.2",
|
|
394
|
-
"@rollup/plugin-terser": "^0.4.4",
|
|
395
|
-
"tslib": "^2.8.1",
|
|
396
|
-
"rollup": "^4.52.3",
|
|
397
|
-
"@lit-labs/rollup-plugin-minify-html-literals": "^0.1.0",
|
|
398
|
-
"@lingui/core": "5.2.0",
|
|
399
|
-
"@warp-ds/core": "1.1.8",
|
|
400
|
-
"@warp-ds/css": "2.1.1",
|
|
401
|
-
"@warp-ds/icons": "2.5.0",
|
|
402
|
-
"date-fns": "^4.1.0",
|
|
403
|
-
"scroll-doctor": "2.0.2",
|
|
404
|
-
"@open-wc/form-control": "^1.0.0"
|
|
404
|
+
"vitest-browser-react": "^1.0.1"
|
|
405
405
|
},
|
|
406
406
|
"dependencies": {
|
|
407
|
-
"lit": "
|
|
408
|
-
"@
|
|
407
|
+
"@lit/react": "^1.0.8",
|
|
408
|
+
"@warp-ds/components": "1.0.0-beta.2",
|
|
409
|
+
"lit": "3.x"
|
|
409
410
|
},
|
|
410
411
|
"publishConfig": {
|
|
411
412
|
"access": "public"
|