@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
package/dist/api.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../packages/utils/window-exists.js", "../packages/toast/api.ts"],
|
|
4
|
-
"sourcesContent": ["export const windowExists = typeof window !== 'undefined';\n", "import {
|
|
5
|
-
"mappings": "AAAO,IAAMA,EAAe,OAAO,QAAW,
|
|
4
|
+
"sourcesContent": ["export const windowExists = typeof window !== 'undefined';\n", "import { WarpToastContainer } from '../toast-container/toast-container.js';\nimport { windowExists } from '../utils/window-exists';\nimport type { ToastInternal, ToastOptions } from './types';\n\nfunction getToastContainer() {\n const container = customElements.get('w-toast-container');\n return container as typeof WarpToastContainer;\n}\n\n/**\n * Creates a new toast\n */\nexport function toast(message: string, options?: ToastOptions) {\n if (!windowExists) return;\n\n const toast = getToastContainer().init() as WarpToastContainer;\n\n const data: ToastOptions = {\n id: Date.now().toString(36) + Math.random().toString(36).slice(2, 5),\n text: message,\n duration: 5000,\n type: 'success',\n ...options,\n };\n\n toast.set(data);\n return data;\n}\n\n/**\n * Remove an existing toast\n */\nexport function removeToast(id: string | number): Promise<boolean> | undefined {\n if (!windowExists) return;\n\n const toast = getToastContainer().init() as WarpToastContainer;\n return toast.del(id);\n}\n\n/**\n * Update an existing toast\n */\nexport function updateToast(id: string | number, options?: ToastOptions): ToastInternal | undefined {\n if (!windowExists) return;\n\n const toast = getToastContainer().init() as WarpToastContainer;\n toast.set({ ...toast.get(id), ...options });\n return toast.get(id);\n}\n"],
|
|
5
|
+
"mappings": "AAAO,IAAMA,EAAe,OAAO,QAAW,YCI9C,SAASC,GAAoB,CAE3B,OADkB,eAAe,IAAI,mBAAmB,CAE1D,CAKO,SAASC,EAAMC,EAAiBC,EAAwB,CAC7D,GAAI,CAACC,EAAc,OAEnB,IAAMH,EAAQD,EAAkB,EAAE,KAAK,EAEjCK,EAAqB,CACzB,GAAI,KAAK,IAAI,EAAE,SAAS,EAAE,EAAI,KAAK,OAAO,EAAE,SAAS,EAAE,EAAE,MAAM,EAAG,CAAC,EACnE,KAAMH,EACN,SAAU,IACV,KAAM,UACN,GAAGC,CACL,EAEA,OAAAF,EAAM,IAAII,CAAI,EACPA,CACT,CAKO,SAASC,EAAYC,EAAmD,CAC7E,OAAKH,EAESJ,EAAkB,EAAE,KAAK,EAC1B,IAAIO,CAAE,EAHA,MAIrB,CAKO,SAASC,EAAYD,EAAqBJ,EAAmD,CAClG,GAAI,CAACC,EAAc,OAEnB,IAAMH,EAAQD,EAAkB,EAAE,KAAK,EACvC,OAAAC,EAAM,IAAI,CAAE,GAAGA,EAAM,IAAIM,CAAE,EAAG,GAAGJ,CAAQ,CAAC,EACnCF,EAAM,IAAIM,CAAE,CACrB",
|
|
6
6
|
"names": ["windowExists", "getToastContainer", "toast", "message", "options", "windowExists", "data", "removeToast", "id", "updateToast"]
|
|
7
7
|
}
|
|
@@ -6629,70 +6629,6 @@
|
|
|
6629
6629
|
}
|
|
6630
6630
|
]
|
|
6631
6631
|
},
|
|
6632
|
-
{
|
|
6633
|
-
"kind": "javascript-module",
|
|
6634
|
-
"path": "packages/tab-panel/tab-panel.ts",
|
|
6635
|
-
"declarations": [
|
|
6636
|
-
{
|
|
6637
|
-
"kind": "class",
|
|
6638
|
-
"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)",
|
|
6639
|
-
"name": "WarpTabPanel",
|
|
6640
|
-
"members": [
|
|
6641
|
-
{
|
|
6642
|
-
"kind": "field",
|
|
6643
|
-
"name": "hidden",
|
|
6644
|
-
"type": {
|
|
6645
|
-
"text": "boolean"
|
|
6646
|
-
},
|
|
6647
|
-
"default": "true",
|
|
6648
|
-
"attribute": "hidden",
|
|
6649
|
-
"reflects": true
|
|
6650
|
-
},
|
|
6651
|
-
{
|
|
6652
|
-
"kind": "method",
|
|
6653
|
-
"name": "_syncA11yAttributes",
|
|
6654
|
-
"privacy": "private"
|
|
6655
|
-
}
|
|
6656
|
-
],
|
|
6657
|
-
"attributes": [
|
|
6658
|
-
{
|
|
6659
|
-
"name": "hidden",
|
|
6660
|
-
"type": {
|
|
6661
|
-
"text": "boolean"
|
|
6662
|
-
},
|
|
6663
|
-
"default": "true",
|
|
6664
|
-
"fieldName": "hidden"
|
|
6665
|
-
}
|
|
6666
|
-
],
|
|
6667
|
-
"superclass": {
|
|
6668
|
-
"name": "LitElement",
|
|
6669
|
-
"package": "lit"
|
|
6670
|
-
},
|
|
6671
|
-
"tagName": "w-tab-panel",
|
|
6672
|
-
"customElement": true,
|
|
6673
|
-
"modulePath": "packages/tab-panel/tab-panel.ts",
|
|
6674
|
-
"definitionPath": "packages/tab-panel/tab-panel.ts"
|
|
6675
|
-
}
|
|
6676
|
-
],
|
|
6677
|
-
"exports": [
|
|
6678
|
-
{
|
|
6679
|
-
"kind": "js",
|
|
6680
|
-
"name": "WarpTabPanel",
|
|
6681
|
-
"declaration": {
|
|
6682
|
-
"name": "WarpTabPanel",
|
|
6683
|
-
"module": "packages/tab-panel/tab-panel.ts"
|
|
6684
|
-
}
|
|
6685
|
-
},
|
|
6686
|
-
{
|
|
6687
|
-
"kind": "custom-element-definition",
|
|
6688
|
-
"name": "w-tab-panel",
|
|
6689
|
-
"declaration": {
|
|
6690
|
-
"name": "WarpTabPanel",
|
|
6691
|
-
"module": "packages/tab-panel/tab-panel.ts"
|
|
6692
|
-
}
|
|
6693
|
-
}
|
|
6694
|
-
]
|
|
6695
|
-
},
|
|
6696
6632
|
{
|
|
6697
6633
|
"kind": "javascript-module",
|
|
6698
6634
|
"path": "packages/tab/tab.ts",
|
|
@@ -6712,16 +6648,6 @@
|
|
|
6712
6648
|
"attribute": "for",
|
|
6713
6649
|
"reflects": true
|
|
6714
6650
|
},
|
|
6715
|
-
{
|
|
6716
|
-
"kind": "field",
|
|
6717
|
-
"name": "label",
|
|
6718
|
-
"type": {
|
|
6719
|
-
"text": "string"
|
|
6720
|
-
},
|
|
6721
|
-
"default": "''",
|
|
6722
|
-
"attribute": "label",
|
|
6723
|
-
"reflects": true
|
|
6724
|
-
},
|
|
6725
6651
|
{
|
|
6726
6652
|
"kind": "field",
|
|
6727
6653
|
"name": "active",
|
|
@@ -6742,16 +6668,6 @@
|
|
|
6742
6668
|
"attribute": "over",
|
|
6743
6669
|
"reflects": true
|
|
6744
6670
|
},
|
|
6745
|
-
{
|
|
6746
|
-
"kind": "field",
|
|
6747
|
-
"name": "tabClass",
|
|
6748
|
-
"type": {
|
|
6749
|
-
"text": "string"
|
|
6750
|
-
},
|
|
6751
|
-
"default": "''",
|
|
6752
|
-
"attribute": "tab-class",
|
|
6753
|
-
"reflects": true
|
|
6754
|
-
},
|
|
6755
6671
|
{
|
|
6756
6672
|
"kind": "field",
|
|
6757
6673
|
"name": "_classes",
|
|
@@ -6760,7 +6676,7 @@
|
|
|
6760
6676
|
},
|
|
6761
6677
|
{
|
|
6762
6678
|
"kind": "field",
|
|
6763
|
-
"name": "
|
|
6679
|
+
"name": "_hasIcon",
|
|
6764
6680
|
"privacy": "private",
|
|
6765
6681
|
"readonly": true
|
|
6766
6682
|
}
|
|
@@ -6774,14 +6690,6 @@
|
|
|
6774
6690
|
"default": "''",
|
|
6775
6691
|
"fieldName": "for"
|
|
6776
6692
|
},
|
|
6777
|
-
{
|
|
6778
|
-
"name": "label",
|
|
6779
|
-
"type": {
|
|
6780
|
-
"text": "string"
|
|
6781
|
-
},
|
|
6782
|
-
"default": "''",
|
|
6783
|
-
"fieldName": "label"
|
|
6784
|
-
},
|
|
6785
6693
|
{
|
|
6786
6694
|
"name": "active",
|
|
6787
6695
|
"type": {
|
|
@@ -6797,14 +6705,6 @@
|
|
|
6797
6705
|
},
|
|
6798
6706
|
"default": "false",
|
|
6799
6707
|
"fieldName": "over"
|
|
6800
|
-
},
|
|
6801
|
-
{
|
|
6802
|
-
"name": "tab-class",
|
|
6803
|
-
"type": {
|
|
6804
|
-
"text": "string"
|
|
6805
|
-
},
|
|
6806
|
-
"default": "''",
|
|
6807
|
-
"fieldName": "tabClass"
|
|
6808
6708
|
}
|
|
6809
6709
|
],
|
|
6810
6710
|
"superclass": {
|
|
@@ -6838,31 +6738,85 @@
|
|
|
6838
6738
|
},
|
|
6839
6739
|
{
|
|
6840
6740
|
"kind": "javascript-module",
|
|
6841
|
-
"path": "packages/
|
|
6741
|
+
"path": "packages/tab-panel/tab-panel.ts",
|
|
6842
6742
|
"declarations": [
|
|
6843
6743
|
{
|
|
6844
6744
|
"kind": "class",
|
|
6845
|
-
"description": "
|
|
6846
|
-
"name": "
|
|
6745
|
+
"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)",
|
|
6746
|
+
"name": "WarpTabPanel",
|
|
6847
6747
|
"members": [
|
|
6848
6748
|
{
|
|
6849
6749
|
"kind": "field",
|
|
6850
|
-
"name": "
|
|
6750
|
+
"name": "hidden",
|
|
6851
6751
|
"type": {
|
|
6852
|
-
"text": "
|
|
6752
|
+
"text": "boolean"
|
|
6853
6753
|
},
|
|
6854
|
-
"default": "
|
|
6855
|
-
"attribute": "
|
|
6754
|
+
"default": "true",
|
|
6755
|
+
"attribute": "hidden",
|
|
6856
6756
|
"reflects": true
|
|
6857
6757
|
},
|
|
6758
|
+
{
|
|
6759
|
+
"kind": "method",
|
|
6760
|
+
"name": "_syncA11yAttributes",
|
|
6761
|
+
"privacy": "private"
|
|
6762
|
+
}
|
|
6763
|
+
],
|
|
6764
|
+
"attributes": [
|
|
6765
|
+
{
|
|
6766
|
+
"name": "hidden",
|
|
6767
|
+
"type": {
|
|
6768
|
+
"text": "boolean"
|
|
6769
|
+
},
|
|
6770
|
+
"default": "true",
|
|
6771
|
+
"fieldName": "hidden"
|
|
6772
|
+
}
|
|
6773
|
+
],
|
|
6774
|
+
"superclass": {
|
|
6775
|
+
"name": "LitElement",
|
|
6776
|
+
"package": "lit"
|
|
6777
|
+
},
|
|
6778
|
+
"tagName": "w-tab-panel",
|
|
6779
|
+
"customElement": true,
|
|
6780
|
+
"modulePath": "packages/tab-panel/tab-panel.ts",
|
|
6781
|
+
"definitionPath": "packages/tab-panel/tab-panel.ts"
|
|
6782
|
+
}
|
|
6783
|
+
],
|
|
6784
|
+
"exports": [
|
|
6785
|
+
{
|
|
6786
|
+
"kind": "js",
|
|
6787
|
+
"name": "WarpTabPanel",
|
|
6788
|
+
"declaration": {
|
|
6789
|
+
"name": "WarpTabPanel",
|
|
6790
|
+
"module": "packages/tab-panel/tab-panel.ts"
|
|
6791
|
+
}
|
|
6792
|
+
},
|
|
6793
|
+
{
|
|
6794
|
+
"kind": "custom-element-definition",
|
|
6795
|
+
"name": "w-tab-panel",
|
|
6796
|
+
"declaration": {
|
|
6797
|
+
"name": "WarpTabPanel",
|
|
6798
|
+
"module": "packages/tab-panel/tab-panel.ts"
|
|
6799
|
+
}
|
|
6800
|
+
}
|
|
6801
|
+
]
|
|
6802
|
+
},
|
|
6803
|
+
{
|
|
6804
|
+
"kind": "javascript-module",
|
|
6805
|
+
"path": "packages/tabs/tabs.ts",
|
|
6806
|
+
"declarations": [
|
|
6807
|
+
{
|
|
6808
|
+
"kind": "class",
|
|
6809
|
+
"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)",
|
|
6810
|
+
"name": "WarpTabs",
|
|
6811
|
+
"members": [
|
|
6858
6812
|
{
|
|
6859
6813
|
"kind": "field",
|
|
6860
|
-
"name": "
|
|
6814
|
+
"name": "active",
|
|
6861
6815
|
"type": {
|
|
6862
6816
|
"text": "string"
|
|
6863
6817
|
},
|
|
6864
6818
|
"default": "''",
|
|
6865
|
-
"attribute": "
|
|
6819
|
+
"attribute": "active",
|
|
6866
6820
|
"reflects": true
|
|
6867
6821
|
},
|
|
6868
6822
|
{
|
|
@@ -6977,14 +6931,6 @@
|
|
|
6977
6931
|
},
|
|
6978
6932
|
"default": "''",
|
|
6979
6933
|
"fieldName": "active"
|
|
6980
|
-
},
|
|
6981
|
-
{
|
|
6982
|
-
"name": "tab-class",
|
|
6983
|
-
"type": {
|
|
6984
|
-
"text": "string"
|
|
6985
|
-
},
|
|
6986
|
-
"default": "''",
|
|
6987
|
-
"fieldName": "tabClass"
|
|
6988
6934
|
}
|
|
6989
6935
|
],
|
|
6990
6936
|
"superclass": {
|
package/dist/index.d.ts
CHANGED
|
@@ -29,8 +29,8 @@ import type { WarpSliderThumb } from "./packages/slider-thumb/slider-thumb.ts";
|
|
|
29
29
|
import type { WarpSlider } from "./packages/slider/slider.ts";
|
|
30
30
|
import type { WarpStep } from "./packages/step/step.ts";
|
|
31
31
|
import type { WarpStepIndicator } from "./packages/step-indicator/step-indicator.ts";
|
|
32
|
-
import type { WarpTabPanel } from "./packages/tab-panel/tab-panel.ts";
|
|
33
32
|
import type { WarpTab } from "./packages/tab/tab.ts";
|
|
33
|
+
import type { WarpTabPanel } from "./packages/tab-panel/tab-panel.ts";
|
|
34
34
|
import type { WarpTabs } from "./packages/tabs/tabs.ts";
|
|
35
35
|
import type { WarpTextarea } from "./packages/textarea/textarea.ts";
|
|
36
36
|
|
|
@@ -1683,49 +1683,37 @@ export type WarpStepIndicatorSolidJsProps = {
|
|
|
1683
1683
|
textContent?: string | number;
|
|
1684
1684
|
};
|
|
1685
1685
|
|
|
1686
|
-
export type WarpTabPanelProps = {
|
|
1687
|
-
/** */
|
|
1688
|
-
hidden?: WarpTabPanel["hidden"];
|
|
1689
|
-
};
|
|
1690
|
-
|
|
1691
|
-
export type WarpTabPanelSolidJsProps = {
|
|
1692
|
-
/** */
|
|
1693
|
-
"prop:hidden"?: WarpTabPanel["hidden"];
|
|
1694
|
-
|
|
1695
|
-
/** Set the innerHTML of the element */
|
|
1696
|
-
innerHTML?: string;
|
|
1697
|
-
/** Set the textContent of the element */
|
|
1698
|
-
textContent?: string | number;
|
|
1699
|
-
};
|
|
1700
|
-
|
|
1701
1686
|
export type WarpTabProps = {
|
|
1702
1687
|
/** */
|
|
1703
1688
|
for?: WarpTab["for"];
|
|
1704
1689
|
/** */
|
|
1705
|
-
label?: WarpTab["label"];
|
|
1706
|
-
/** */
|
|
1707
1690
|
active?: WarpTab["active"];
|
|
1708
1691
|
/** */
|
|
1709
1692
|
over?: WarpTab["over"];
|
|
1710
|
-
/** */
|
|
1711
|
-
"tab-class"?: WarpTab["tabClass"];
|
|
1712
|
-
/** */
|
|
1713
|
-
tabClass?: WarpTab["tabClass"];
|
|
1714
1693
|
};
|
|
1715
1694
|
|
|
1716
1695
|
export type WarpTabSolidJsProps = {
|
|
1717
1696
|
/** */
|
|
1718
1697
|
"prop:for"?: WarpTab["for"];
|
|
1719
1698
|
/** */
|
|
1720
|
-
"prop:label"?: WarpTab["label"];
|
|
1721
|
-
/** */
|
|
1722
1699
|
"prop:active"?: WarpTab["active"];
|
|
1723
1700
|
/** */
|
|
1724
1701
|
"prop:over"?: WarpTab["over"];
|
|
1702
|
+
|
|
1703
|
+
/** Set the innerHTML of the element */
|
|
1704
|
+
innerHTML?: string;
|
|
1705
|
+
/** Set the textContent of the element */
|
|
1706
|
+
textContent?: string | number;
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1709
|
+
export type WarpTabPanelProps = {
|
|
1725
1710
|
/** */
|
|
1726
|
-
|
|
1711
|
+
hidden?: WarpTabPanel["hidden"];
|
|
1712
|
+
};
|
|
1713
|
+
|
|
1714
|
+
export type WarpTabPanelSolidJsProps = {
|
|
1727
1715
|
/** */
|
|
1728
|
-
"prop:
|
|
1716
|
+
"prop:hidden"?: WarpTabPanel["hidden"];
|
|
1729
1717
|
|
|
1730
1718
|
/** Set the innerHTML of the element */
|
|
1731
1719
|
innerHTML?: string;
|
|
@@ -1736,10 +1724,6 @@ export type WarpTabSolidJsProps = {
|
|
|
1736
1724
|
export type WarpTabsProps = {
|
|
1737
1725
|
/** */
|
|
1738
1726
|
active?: WarpTabs["active"];
|
|
1739
|
-
/** */
|
|
1740
|
-
"tab-class"?: WarpTabs["tabClass"];
|
|
1741
|
-
/** */
|
|
1742
|
-
tabClass?: WarpTabs["tabClass"];
|
|
1743
1727
|
|
|
1744
1728
|
/** */
|
|
1745
1729
|
onchange?: (e: CustomEvent) => void;
|
|
@@ -1749,10 +1733,6 @@ export type WarpTabsSolidJsProps = {
|
|
|
1749
1733
|
/** */
|
|
1750
1734
|
"prop:active"?: WarpTabs["active"];
|
|
1751
1735
|
/** */
|
|
1752
|
-
"attr:tab-class"?: WarpTabs["tabClass"];
|
|
1753
|
-
/** */
|
|
1754
|
-
"prop:tabClass"?: WarpTabs["tabClass"];
|
|
1755
|
-
/** */
|
|
1756
1736
|
"on:change"?: (e: CustomEvent) => void;
|
|
1757
1737
|
|
|
1758
1738
|
/** Set the innerHTML of the element */
|
|
@@ -2722,8 +2702,7 @@ export type CustomElements = {
|
|
|
2722
2702
|
>;
|
|
2723
2703
|
|
|
2724
2704
|
/**
|
|
2725
|
-
*
|
|
2726
|
-
* Each tab panel should have a name that matches a corresponding tab.
|
|
2705
|
+
* Individual tab component used within w-tabs container.
|
|
2727
2706
|
*
|
|
2728
2707
|
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
2729
2708
|
*
|
|
@@ -2731,14 +2710,15 @@ export type CustomElements = {
|
|
|
2731
2710
|
*
|
|
2732
2711
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2733
2712
|
*
|
|
2734
|
-
* - `
|
|
2713
|
+
* - `for`: undefined
|
|
2714
|
+
* - `active`: undefined
|
|
2715
|
+
* - `over`: undefined
|
|
2735
2716
|
*/
|
|
2736
|
-
"w-tab
|
|
2737
|
-
WarpTabPanelProps & BaseProps<WarpTabPanel> & BaseEvents
|
|
2738
|
-
>;
|
|
2717
|
+
"w-tab": Partial<WarpTabProps & BaseProps<WarpTab> & BaseEvents>;
|
|
2739
2718
|
|
|
2740
2719
|
/**
|
|
2741
|
-
*
|
|
2720
|
+
* Tab panel component that holds content for individual tabs.
|
|
2721
|
+
* Each tab panel should have a name that matches a corresponding tab.
|
|
2742
2722
|
*
|
|
2743
2723
|
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
2744
2724
|
*
|
|
@@ -2746,13 +2726,11 @@ export type CustomElements = {
|
|
|
2746
2726
|
*
|
|
2747
2727
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2748
2728
|
*
|
|
2749
|
-
* - `
|
|
2750
|
-
* - `label`: undefined
|
|
2751
|
-
* - `active`: undefined
|
|
2752
|
-
* - `over`: undefined
|
|
2753
|
-
* - `tab-class`/`tabClass`: undefined
|
|
2729
|
+
* - `hidden`: undefined
|
|
2754
2730
|
*/
|
|
2755
|
-
"w-tab": Partial<
|
|
2731
|
+
"w-tab-panel": Partial<
|
|
2732
|
+
WarpTabPanelProps & BaseProps<WarpTabPanel> & BaseEvents
|
|
2733
|
+
>;
|
|
2756
2734
|
|
|
2757
2735
|
/**
|
|
2758
2736
|
* Tabs are used to organize content by grouping similar information on the same page.
|
|
@@ -2764,7 +2742,6 @@ export type CustomElements = {
|
|
|
2764
2742
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2765
2743
|
*
|
|
2766
2744
|
* - `active`: undefined
|
|
2767
|
-
* - `tab-class`/`tabClass`: undefined
|
|
2768
2745
|
* - `tabs`: undefined (property only) (readonly)
|
|
2769
2746
|
* - `activeTab`: undefined (property only) (readonly)
|
|
2770
2747
|
*
|
|
@@ -3777,8 +3754,7 @@ export type CustomElementsSolidJs = {
|
|
|
3777
3754
|
>;
|
|
3778
3755
|
|
|
3779
3756
|
/**
|
|
3780
|
-
*
|
|
3781
|
-
* Each tab panel should have a name that matches a corresponding tab.
|
|
3757
|
+
* Individual tab component used within w-tabs container.
|
|
3782
3758
|
*
|
|
3783
3759
|
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
3784
3760
|
*
|
|
@@ -3786,17 +3762,17 @@ export type CustomElementsSolidJs = {
|
|
|
3786
3762
|
*
|
|
3787
3763
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3788
3764
|
*
|
|
3789
|
-
* - `
|
|
3765
|
+
* - `for`: undefined
|
|
3766
|
+
* - `active`: undefined
|
|
3767
|
+
* - `over`: undefined
|
|
3790
3768
|
*/
|
|
3791
|
-
"w-tab
|
|
3792
|
-
|
|
3793
|
-
WarpTabPanelSolidJsProps &
|
|
3794
|
-
BaseProps<WarpTabPanel> &
|
|
3795
|
-
BaseEvents
|
|
3769
|
+
"w-tab": Partial<
|
|
3770
|
+
WarpTabProps & WarpTabSolidJsProps & BaseProps<WarpTab> & BaseEvents
|
|
3796
3771
|
>;
|
|
3797
3772
|
|
|
3798
3773
|
/**
|
|
3799
|
-
*
|
|
3774
|
+
* Tab panel component that holds content for individual tabs.
|
|
3775
|
+
* Each tab panel should have a name that matches a corresponding tab.
|
|
3800
3776
|
*
|
|
3801
3777
|
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
3802
3778
|
*
|
|
@@ -3804,14 +3780,13 @@ export type CustomElementsSolidJs = {
|
|
|
3804
3780
|
*
|
|
3805
3781
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3806
3782
|
*
|
|
3807
|
-
* - `
|
|
3808
|
-
* - `label`: undefined
|
|
3809
|
-
* - `active`: undefined
|
|
3810
|
-
* - `over`: undefined
|
|
3811
|
-
* - `tab-class`/`tabClass`: undefined
|
|
3783
|
+
* - `hidden`: undefined
|
|
3812
3784
|
*/
|
|
3813
|
-
"w-tab": Partial<
|
|
3814
|
-
|
|
3785
|
+
"w-tab-panel": Partial<
|
|
3786
|
+
WarpTabPanelProps &
|
|
3787
|
+
WarpTabPanelSolidJsProps &
|
|
3788
|
+
BaseProps<WarpTabPanel> &
|
|
3789
|
+
BaseEvents
|
|
3815
3790
|
>;
|
|
3816
3791
|
|
|
3817
3792
|
/**
|
|
@@ -3824,7 +3799,6 @@ export type CustomElementsSolidJs = {
|
|
|
3824
3799
|
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3825
3800
|
*
|
|
3826
3801
|
* - `active`: undefined
|
|
3827
|
-
* - `tab-class`/`tabClass`: undefined
|
|
3828
3802
|
* - `tabs`: undefined (property only) (readonly)
|
|
3829
3803
|
* - `activeTab`: undefined (property only) (readonly)
|
|
3830
3804
|
*
|