@warp-ds/elements 2.4.0-next.8 → 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/custom-elements.json +1 -55
- package/dist/index.d.ts +0 -26
- package/dist/packages/combobox/combobox.js +2 -1
- package/dist/packages/combobox/combobox.js.map +2 -2
- package/dist/packages/combobox/styles.js +2 -1
- package/dist/packages/step/step.js +5 -5
- package/dist/packages/step/step.js.map +2 -2
- package/dist/packages/step-indicator/step-indicator.js +1 -1
- package/dist/packages/step-indicator/step-indicator.js.map +2 -2
- package/dist/packages/step-indicator/styles.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/tab-panel.js +1 -1
- package/dist/packages/tab-panel/tab-panel.js.map +2 -2
- package/dist/packages/tabs/styles.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 +13 -0
- package/dist/packages/tabs/tabs.react.stories.js +43 -22
- package/dist/packages/tabs/tabs.stories.d.ts +4 -5
- package/dist/packages/tabs/tabs.stories.js +51 -29
- package/dist/web-types.json +3 -18
- package/package.json +19 -18
- package/dist/packages/slider-thumb/styles.d.ts +0 -1
- package/dist/packages/slider-thumb/styles.js +0 -2
- package/dist/packages/toast-container/styles.d.ts +0 -1
- package/dist/packages/toast-container/styles.js +0 -2
|
@@ -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>
|
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": {
|
|
@@ -1689,7 +1689,6 @@
|
|
|
1689
1689
|
"doc-url": "",
|
|
1690
1690
|
"attributes": [
|
|
1691
1691
|
{ "name": "for", "value": { "type": "string", "default": "''" } },
|
|
1692
|
-
{ "name": "label", "value": { "type": "string", "default": "''" } },
|
|
1693
1692
|
{
|
|
1694
1693
|
"name": "active",
|
|
1695
1694
|
"value": { "type": "boolean", "default": "false" }
|
|
@@ -1697,20 +1696,14 @@
|
|
|
1697
1696
|
{
|
|
1698
1697
|
"name": "over",
|
|
1699
1698
|
"value": { "type": "boolean", "default": "false" }
|
|
1700
|
-
},
|
|
1701
|
-
{
|
|
1702
|
-
"name": "tab-class",
|
|
1703
|
-
"value": { "type": "string", "default": "''" }
|
|
1704
1699
|
}
|
|
1705
1700
|
],
|
|
1706
1701
|
"events": [],
|
|
1707
1702
|
"js": {
|
|
1708
1703
|
"properties": [
|
|
1709
1704
|
{ "name": "for", "type": "string" },
|
|
1710
|
-
{ "name": "label", "type": "string" },
|
|
1711
1705
|
{ "name": "active", "type": "boolean" },
|
|
1712
|
-
{ "name": "over", "type": "boolean" }
|
|
1713
|
-
{ "name": "tabClass", "type": "string" }
|
|
1706
|
+
{ "name": "over", "type": "boolean" }
|
|
1714
1707
|
],
|
|
1715
1708
|
"events": []
|
|
1716
1709
|
}
|
|
@@ -1736,20 +1729,12 @@
|
|
|
1736
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**",
|
|
1737
1730
|
"doc-url": "",
|
|
1738
1731
|
"attributes": [
|
|
1739
|
-
{
|
|
1740
|
-
"name": "active",
|
|
1741
|
-
"value": { "type": "string", "default": "''" }
|
|
1742
|
-
},
|
|
1743
|
-
{
|
|
1744
|
-
"name": "tab-class",
|
|
1745
|
-
"value": { "type": "string", "default": "''" }
|
|
1746
|
-
}
|
|
1732
|
+
{ "name": "active", "value": { "type": "string", "default": "''" } }
|
|
1747
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"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const styles: import("lit").CSSResult;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
export const styles = css `*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.hidden{display:none}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}`;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const styles: import("lit").CSSResult;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
export const styles = css `*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.block{display:block}.grid{display:grid}.auto-rows-auto{grid-auto-rows:auto}.bottom-16{bottom:1.6rem}.left-0{left:0}.right-0{right:0}.justify-center{justify-content:center}.justify-items-center{justify-items:center}.fixed{position:fixed}.static{position:static}.z-50{z-index:50}.w-full{width:100%}.mx-8{margin-left:.8rem;margin-right:.8rem}.mx-auto{margin-left:auto;margin-right:auto}.pointer-events-none{pointer-events:none}.translate-z-0{--w-translate-z:0rem;transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}.transform{transform:translateX(var(--w-translate-x))translateY(var(--w-translate-y))translateZ(var(--w-translate-z))rotate(var(--w-rotate))rotateX(var(--w-rotate-x))rotateY(var(--w-rotate-y))rotateZ(var(--w-rotate-z))skewX(var(--w-skew-x))skewY(var(--w-skew-y))scaleX(var(--w-scale-x))scaleY(var(--w-scale-y))scaleZ(var(--w-scale-z))}@media (min-width:480px){.sm\\:mx-16{margin-left:1.6rem;margin-right:1.6rem}}`;
|