@warp-ds/elements 2.3.0-next.1 → 2.3.0-next.3
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 +3295 -403
- package/dist/index.d.ts +484 -0
- package/dist/packages/combobox/combobox.react.stories.d.ts +28 -0
- package/dist/packages/combobox/combobox.react.stories.js +90 -0
- package/dist/packages/combobox/combobox.stories.d.ts +18 -0
- package/dist/packages/combobox/combobox.stories.js +117 -0
- package/dist/packages/combobox/index.d.ts +85 -0
- package/dist/packages/combobox/index.js +2492 -0
- package/dist/packages/combobox/index.js.map +7 -0
- package/dist/packages/combobox/locales/da/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/da/messages.mjs +1 -0
- package/dist/packages/combobox/locales/en/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/en/messages.mjs +1 -0
- package/dist/packages/combobox/locales/fi/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/fi/messages.mjs +1 -0
- package/dist/packages/combobox/locales/nb/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/nb/messages.mjs +1 -0
- package/dist/packages/combobox/locales/sv/messages.d.mts +1 -0
- package/dist/packages/combobox/locales/sv/messages.mjs +1 -0
- package/dist/packages/combobox/react.d.ts +7 -0
- package/dist/packages/combobox/react.js +17 -0
- package/dist/packages/combobox/styles.d.ts +1 -0
- package/dist/packages/combobox/styles.js +2 -0
- package/dist/packages/datepicker/DatePicker.test.d.ts +2 -0
- package/dist/packages/datepicker/DatePicker.test.js +69 -0
- package/dist/packages/datepicker/datepicker.d.ts +102 -0
- package/dist/packages/datepicker/datepicker.js +2785 -0
- package/dist/packages/datepicker/datepicker.js.map +7 -0
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +18 -0
- package/dist/packages/datepicker/datepicker.react.stories.js +26 -0
- package/dist/packages/datepicker/datepicker.stories.d.ts +12 -0
- package/dist/packages/datepicker/datepicker.stories.js +51 -0
- package/dist/packages/datepicker/datepicker.test.d.ts +2 -0
- package/dist/packages/datepicker/datepicker.test.js +62 -0
- package/dist/packages/datepicker/index.d.ts +1 -0
- package/dist/packages/datepicker/index.js +1 -0
- package/dist/packages/datepicker/locales/da/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/da/messages.mjs +1 -0
- package/dist/packages/datepicker/locales/en/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/en/messages.mjs +1 -0
- package/dist/packages/datepicker/locales/fi/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/fi/messages.mjs +1 -0
- package/dist/packages/datepicker/locales/nb/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/nb/messages.mjs +1 -0
- package/dist/packages/datepicker/locales/sv/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/sv/messages.mjs +1 -0
- package/dist/packages/datepicker/react.d.ts +5 -0
- package/dist/packages/datepicker/react.js +15 -0
- package/dist/packages/datepicker/styles/w-datepicker-calendar.styles.d.ts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker-calendar.styles.js +15 -0
- package/dist/packages/datepicker/styles/w-datepicker-day.styles.d.ts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker-day.styles.js +64 -0
- package/dist/packages/datepicker/styles/w-datepicker-month.styles.d.ts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker-month.styles.js +72 -0
- package/dist/packages/datepicker/styles/w-datepicker.styles.d.ts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker.styles.js +101 -0
- package/dist/packages/datepicker/utils.d.ts +13 -0
- package/dist/packages/datepicker/utils.js +28 -0
- package/dist/packages/dead-toggle/dead-toggle.react.stories.d.ts +15 -0
- package/dist/packages/dead-toggle/dead-toggle.react.stories.js +34 -0
- package/dist/packages/dead-toggle/dead-toggle.stories.d.ts +14 -0
- package/dist/packages/dead-toggle/dead-toggle.stories.js +45 -0
- package/dist/packages/dead-toggle/dead-toggle.test.d.ts +1 -0
- package/dist/packages/dead-toggle/dead-toggle.test.js +9 -0
- package/dist/packages/dead-toggle/index.d.ts +17 -0
- package/dist/packages/dead-toggle/index.js +2548 -0
- package/dist/packages/dead-toggle/index.js.map +7 -0
- package/dist/packages/dead-toggle/react.d.ts +2 -0
- package/dist/packages/dead-toggle/react.js +11 -0
- package/dist/packages/link/index.js +2640 -93
- package/dist/packages/link/index.js.map +7 -0
- package/dist/packages/link/link.react.stories.d.ts +21 -0
- package/dist/packages/link/link.react.stories.js +96 -0
- package/dist/packages/link/link.stories.d.ts +20 -0
- package/dist/packages/link/link.stories.js +110 -0
- package/dist/packages/link/link.test.d.ts +1 -0
- package/dist/packages/link/link.test.js +9 -0
- package/dist/packages/link/react.d.ts +2 -0
- package/dist/packages/link/react.js +11 -0
- package/dist/packages/pageindicator/index.d.ts +10 -0
- package/dist/packages/pageindicator/index.js +32 -0
- package/dist/packages/pageindicator/index.js.map +7 -0
- package/dist/packages/pageindicator/pageindicator.react.stories.d.ts +19 -0
- package/dist/packages/pageindicator/pageindicator.react.stories.js +20 -0
- package/dist/packages/pageindicator/pageindicator.stories.d.ts +32 -0
- package/dist/packages/pageindicator/pageindicator.stories.js +71 -0
- package/dist/packages/pageindicator/react.d.ts +2 -0
- package/dist/packages/pageindicator/react.js +11 -0
- package/dist/packages/pageindicator/style.d.ts +1 -0
- package/dist/packages/pageindicator/style.js +26 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.d.ts +66 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.js +2592 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.js.map +7 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.stories.d.ts +8 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.stories.js +11 -0
- package/dist/packages/rip-and-tear-checkbox/index.d.ts +1 -0
- package/dist/packages/rip-and-tear-checkbox/index.js +4 -0
- package/dist/packages/rip-and-tear-checkbox/react.d.ts +5 -0
- package/dist/packages/rip-and-tear-checkbox/react.js +15 -0
- package/dist/packages/rip-and-tear-checkbox/rip-and-tear-checkbox.react.stories.d.ts +12 -0
- package/dist/packages/rip-and-tear-checkbox/rip-and-tear-checkbox.react.stories.js +10 -0
- package/dist/packages/rip-and-tear-checkbox/styles.d.ts +0 -0
- package/dist/packages/rip-and-tear-checkbox/styles.js +0 -0
- package/dist/packages/rip-and-tear-radio/base-element.d.ts +46 -0
- package/dist/packages/rip-and-tear-radio/base-element.js +100 -0
- package/dist/packages/rip-and-tear-radio/custom-error-validator.d.ts +6 -0
- package/dist/packages/rip-and-tear-radio/custom-error-validator.js +22 -0
- package/dist/packages/rip-and-tear-radio/form-associated-element.d.ts +103 -0
- package/dist/packages/rip-and-tear-radio/form-associated-element.js +282 -0
- package/dist/packages/rip-and-tear-radio/host-styles.d.ts +1 -0
- package/dist/packages/rip-and-tear-radio/host-styles.js +12 -0
- package/dist/packages/rip-and-tear-radio/index.d.ts +1 -0
- package/dist/packages/rip-and-tear-radio/index.js +6 -0
- package/dist/packages/rip-and-tear-radio/invalid.d.ts +8 -0
- package/dist/packages/rip-and-tear-radio/invalid.js +5 -0
- package/dist/packages/rip-and-tear-radio/math.d.ts +1 -0
- package/dist/packages/rip-and-tear-radio/math.js +4 -0
- package/dist/packages/rip-and-tear-radio/radio-group-styles.d.ts +1 -0
- package/dist/packages/rip-and-tear-radio/radio-group-styles.js +59 -0
- package/dist/packages/rip-and-tear-radio/radio-group-styles.js.map +7 -0
- package/dist/packages/rip-and-tear-radio/radio-group.d.ts +72 -0
- package/dist/packages/rip-and-tear-radio/radio-group.js +2649 -0
- package/dist/packages/rip-and-tear-radio/radio-group.js.map +7 -0
- package/dist/packages/rip-and-tear-radio/radio-styles.d.ts +0 -0
- package/dist/packages/rip-and-tear-radio/radio-styles.js +1 -0
- package/dist/packages/rip-and-tear-radio/radio-styles.js.map +7 -0
- package/dist/packages/rip-and-tear-radio/radio.d.ts +38 -0
- package/dist/packages/rip-and-tear-radio/radio.js +2563 -0
- package/dist/packages/rip-and-tear-radio/radio.js.map +7 -0
- package/dist/packages/rip-and-tear-radio/radio.stories.d.ts +8 -0
- package/dist/packages/rip-and-tear-radio/radio.stories.js +2654 -0
- package/dist/packages/rip-and-tear-radio/radio.stories.js.map +7 -0
- package/dist/packages/rip-and-tear-radio/react.d.ts +9 -0
- package/dist/packages/rip-and-tear-radio/react.js +22 -0
- package/dist/packages/rip-and-tear-radio/required-validator.d.ts +11 -0
- package/dist/packages/rip-and-tear-radio/required-validator.js +34 -0
- package/dist/packages/rip-and-tear-radio/rip-and-tear-radio.react.stories.d.ts +9 -0
- package/dist/packages/rip-and-tear-radio/rip-and-tear-radio.react.stories.js +10 -0
- package/dist/packages/rip-and-tear-radio/slot.d.ts +20 -0
- package/dist/packages/rip-and-tear-radio/slot.js +71 -0
- package/dist/packages/rip-and-tear-radio/watch.d.ts +26 -0
- package/dist/packages/rip-and-tear-radio/watch.js +39 -0
- package/dist/packages/steps/index.d.ts +36 -0
- package/dist/packages/steps/index.js +2465 -0
- package/dist/packages/steps/index.js.map +7 -0
- package/dist/packages/steps/locales/da/messages.d.mts +1 -0
- package/dist/packages/steps/locales/da/messages.mjs +1 -0
- package/dist/packages/steps/locales/en/messages.d.mts +1 -0
- package/dist/packages/steps/locales/en/messages.mjs +1 -0
- package/dist/packages/steps/locales/fi/messages.d.mts +1 -0
- package/dist/packages/steps/locales/fi/messages.mjs +1 -0
- package/dist/packages/steps/locales/nb/messages.d.mts +1 -0
- package/dist/packages/steps/locales/nb/messages.mjs +1 -0
- package/dist/packages/steps/locales/sv/messages.d.mts +1 -0
- package/dist/packages/steps/locales/sv/messages.mjs +1 -0
- package/dist/packages/steps/react.d.ts +3 -0
- package/dist/packages/steps/react.js +16 -0
- package/dist/packages/steps/steps.react.stories.d.ts +15 -0
- package/dist/packages/steps/steps.react.stories.js +112 -0
- package/dist/packages/steps/steps.stories.d.ts +12 -0
- package/dist/packages/steps/steps.stories.js +172 -0
- package/dist/packages/steps/styles.d.ts +1 -0
- package/dist/packages/steps/styles.js +2 -0
- package/dist/packages/switch/index.d.ts +15 -0
- package/dist/packages/switch/index.js +2455 -0
- package/dist/packages/switch/index.js.map +7 -0
- package/dist/packages/switch/react.d.ts +5 -0
- package/dist/packages/switch/react.js +15 -0
- package/dist/packages/switch/styles.d.ts +1 -0
- package/dist/packages/switch/styles.js +2 -0
- package/dist/packages/switch/switch.react.stories.d.ts +15 -0
- package/dist/packages/switch/switch.react.stories.js +29 -0
- package/dist/packages/switch/switch.stories.d.ts +9 -0
- package/dist/packages/switch/switch.stories.js +34 -0
- package/dist/packages/tabs/index.d.ts +4 -0
- package/dist/packages/tabs/index.js +3 -0
- package/dist/packages/tabs/react.d.ts +12 -0
- package/dist/packages/tabs/react.js +31 -0
- package/dist/packages/tabs/styles.d.ts +1 -0
- package/dist/packages/tabs/styles.js +2 -0
- package/dist/packages/tabs/tab-panel.d.ts +20 -0
- package/dist/packages/tabs/tab-panel.js +51 -0
- package/dist/packages/tabs/tab.d.ts +18 -0
- package/dist/packages/tabs/tab.js +2463 -0
- package/dist/packages/tabs/tab.js.map +7 -0
- package/dist/packages/tabs/tabs.d.ts +40 -0
- package/dist/packages/tabs/tabs.js +2448 -0
- package/dist/packages/tabs/tabs.js.map +7 -0
- package/dist/packages/tabs/tabs.react.stories.d.ts +15 -0
- package/dist/packages/tabs/tabs.react.stories.js +51 -0
- package/dist/packages/tabs/tabs.stories.d.ts +8 -0
- package/dist/packages/tabs/tabs.stories.js +84 -0
- package/dist/packages/toggle-styles.d.ts +1 -0
- package/dist/packages/toggle-styles.js +109 -0
- package/dist/web-types.json +496 -1
- package/package.json +184 -3
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
|
+
"version": "2.3.0-next.2",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -77,6 +77,51 @@
|
|
|
77
77
|
"events": []
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
|
+
{
|
|
81
|
+
"name": "w-link",
|
|
82
|
+
"description": "Buttons are used to perform actions, with different visuals for different needs.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-link--docs)\n---\n",
|
|
83
|
+
"doc-url": "",
|
|
84
|
+
"attributes": [
|
|
85
|
+
{ "name": "autofocus", "value": { "type": "boolean" } },
|
|
86
|
+
{
|
|
87
|
+
"name": "variant",
|
|
88
|
+
"value": {
|
|
89
|
+
"type": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet'",
|
|
90
|
+
"default": "'secondary'"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{ "name": "quiet", "value": { "type": "boolean" } },
|
|
94
|
+
{ "name": "small", "value": { "type": "boolean" } },
|
|
95
|
+
{ "name": "href", "value": { "type": "string" } },
|
|
96
|
+
{ "name": "disabled", "value": { "type": "boolean" } },
|
|
97
|
+
{ "name": "target", "value": { "type": "string" } },
|
|
98
|
+
{ "name": "rel", "value": { "type": "string" } },
|
|
99
|
+
{ "name": "full-width", "value": { "type": "boolean" } },
|
|
100
|
+
{ "name": "button-class", "value": { "type": "string" } },
|
|
101
|
+
{ "name": "name", "value": { "type": "string" } }
|
|
102
|
+
],
|
|
103
|
+
"events": [],
|
|
104
|
+
"js": {
|
|
105
|
+
"properties": [
|
|
106
|
+
{ "name": "autofocus", "type": "boolean" },
|
|
107
|
+
{
|
|
108
|
+
"name": "variant",
|
|
109
|
+
"type": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet'"
|
|
110
|
+
},
|
|
111
|
+
{ "name": "quiet", "type": "boolean" },
|
|
112
|
+
{ "name": "small", "type": "boolean" },
|
|
113
|
+
{ "name": "href", "type": "string" },
|
|
114
|
+
{ "name": "disabled", "type": "boolean" },
|
|
115
|
+
{ "name": "target", "type": "string" },
|
|
116
|
+
{ "name": "rel", "type": "string" },
|
|
117
|
+
{ "name": "fullWidth", "type": "boolean" },
|
|
118
|
+
{ "name": "buttonClass", "type": "string" },
|
|
119
|
+
{ "name": "name", "type": "string" },
|
|
120
|
+
{ "name": "classes", "type": "string" }
|
|
121
|
+
],
|
|
122
|
+
"events": []
|
|
123
|
+
}
|
|
124
|
+
},
|
|
80
125
|
{
|
|
81
126
|
"name": "w-button",
|
|
82
127
|
"description": "Buttons are used to perform actions, widh different visuals for different needs.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-button--docs)\n---\n",
|
|
@@ -651,6 +696,330 @@
|
|
|
651
696
|
"events": [],
|
|
652
697
|
"js": { "properties": [], "events": [] }
|
|
653
698
|
},
|
|
699
|
+
{
|
|
700
|
+
"name": "w-combobox",
|
|
701
|
+
"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",
|
|
702
|
+
"doc-url": "",
|
|
703
|
+
"attributes": [
|
|
704
|
+
{
|
|
705
|
+
"name": "options",
|
|
706
|
+
"description": "The available options to select from",
|
|
707
|
+
"value": { "type": "ComboboxOption[]", "default": "[]" }
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"name": "label",
|
|
711
|
+
"description": "Label above input",
|
|
712
|
+
"value": { "type": "string | undefined" }
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"name": "placeholder",
|
|
716
|
+
"description": "Input placeholder",
|
|
717
|
+
"value": { "type": "string | undefined" }
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
"name": "value",
|
|
721
|
+
"description": "The input value",
|
|
722
|
+
"value": { "type": "string", "default": "''" }
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"name": "open-on-focus",
|
|
726
|
+
"description": "Whether the popover opens when focus is on the text field",
|
|
727
|
+
"value": { "type": "boolean", "default": "false" }
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"name": "select-on-blur",
|
|
731
|
+
"description": "Select active option on blur",
|
|
732
|
+
"value": { "type": "boolean", "default": "true" }
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"name": "match-text-segments",
|
|
736
|
+
"description": "Whether the matching text segments in the options should be highlighted",
|
|
737
|
+
"value": { "type": "boolean", "default": "false" }
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"name": "disable-static-filtering",
|
|
741
|
+
"description": "Disable client-side static filtering",
|
|
742
|
+
"value": { "type": "boolean", "default": "false" }
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
"name": "invalid",
|
|
746
|
+
"description": "Renders the input field in an invalid state",
|
|
747
|
+
"value": { "type": "boolean", "default": "false" }
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
"name": "help-text",
|
|
751
|
+
"description": "The content to display as the help text",
|
|
752
|
+
"value": { "type": "string | undefined" }
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"name": "disabled",
|
|
756
|
+
"description": "Whether the element is disabled",
|
|
757
|
+
"value": { "type": "boolean", "default": "false" }
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
"name": "required",
|
|
761
|
+
"description": "Whether the element is required",
|
|
762
|
+
"value": { "type": "boolean", "default": "false" }
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"name": "optional",
|
|
766
|
+
"description": "Whether to show optional text",
|
|
767
|
+
"value": { "type": "boolean", "default": "false" }
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"name": "class-name",
|
|
771
|
+
"description": "Additional container styling",
|
|
772
|
+
"value": { "type": "string | undefined" }
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"name": "list-class-name",
|
|
776
|
+
"description": "Additional list styling",
|
|
777
|
+
"value": { "type": "string | undefined" }
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
"name": "name",
|
|
781
|
+
"description": "Name attribute for form submission",
|
|
782
|
+
"value": { "type": "string | undefined" }
|
|
783
|
+
}
|
|
784
|
+
],
|
|
785
|
+
"events": [],
|
|
786
|
+
"js": {
|
|
787
|
+
"properties": [
|
|
788
|
+
{
|
|
789
|
+
"name": "options",
|
|
790
|
+
"description": "The available options to select from",
|
|
791
|
+
"type": "ComboboxOption[]"
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"name": "label",
|
|
795
|
+
"description": "Label above input",
|
|
796
|
+
"type": "string | undefined"
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
"name": "placeholder",
|
|
800
|
+
"description": "Input placeholder",
|
|
801
|
+
"type": "string | undefined"
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"name": "value",
|
|
805
|
+
"description": "The input value",
|
|
806
|
+
"type": "string"
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
"name": "openOnFocus",
|
|
810
|
+
"description": "Whether the popover opens when focus is on the text field",
|
|
811
|
+
"type": "boolean"
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"name": "selectOnBlur",
|
|
815
|
+
"description": "Select active option on blur",
|
|
816
|
+
"type": "boolean"
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"name": "matchTextSegments",
|
|
820
|
+
"description": "Whether the matching text segments in the options should be highlighted",
|
|
821
|
+
"type": "boolean"
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"name": "disableStaticFiltering",
|
|
825
|
+
"description": "Disable client-side static filtering",
|
|
826
|
+
"type": "boolean"
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"name": "invalid",
|
|
830
|
+
"description": "Renders the input field in an invalid state",
|
|
831
|
+
"type": "boolean"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"name": "helpText",
|
|
835
|
+
"description": "The content to display as the help text",
|
|
836
|
+
"type": "string | undefined"
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
"name": "disabled",
|
|
840
|
+
"description": "Whether the element is disabled",
|
|
841
|
+
"type": "boolean"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"name": "required",
|
|
845
|
+
"description": "Whether the element is required",
|
|
846
|
+
"type": "boolean"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"name": "optional",
|
|
850
|
+
"description": "Whether to show optional text",
|
|
851
|
+
"type": "boolean"
|
|
852
|
+
},
|
|
853
|
+
{
|
|
854
|
+
"name": "containerClassName",
|
|
855
|
+
"description": "Additional container styling",
|
|
856
|
+
"type": "string | undefined"
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"name": "listClassName",
|
|
860
|
+
"description": "Additional list styling",
|
|
861
|
+
"type": "string | undefined"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"name": "name",
|
|
865
|
+
"description": "Name attribute for form submission",
|
|
866
|
+
"type": "string | undefined"
|
|
867
|
+
}
|
|
868
|
+
],
|
|
869
|
+
"events": []
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"name": "w-datepicker",
|
|
874
|
+
"description": "An input for dates.\n\nUses the `lang` attribute on either the element or on `<html>` to determine the locale options.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-datepicker--docs)\n---\n",
|
|
875
|
+
"doc-url": "",
|
|
876
|
+
"attributes": [
|
|
877
|
+
{ "name": "label", "value": { "type": "string" } },
|
|
878
|
+
{
|
|
879
|
+
"name": "lang",
|
|
880
|
+
"description": "Takes precedence over the `<html>` lang attribute.",
|
|
881
|
+
"value": { "type": "string" }
|
|
882
|
+
},
|
|
883
|
+
{ "name": "name", "value": { "type": "string" } },
|
|
884
|
+
{ "name": "value", "value": { "type": "string" } },
|
|
885
|
+
{
|
|
886
|
+
"name": "header-format",
|
|
887
|
+
"description": "Decides the format of the date as shown in the calendar header.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
|
|
888
|
+
"value": { "type": "string", "default": "'MMMM yyyy'" }
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
"name": "weekday-format",
|
|
892
|
+
"description": "Decides the format of the weekday as shown above the grid of dates in the calendar.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
|
|
893
|
+
"value": { "type": "string", "default": "'EEEEEE'" }
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
"name": "day-format",
|
|
897
|
+
"description": "Decides the format of the day in the calendar as read to screen readers.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
|
|
898
|
+
"value": { "type": "string", "default": "'PPPP'" }
|
|
899
|
+
}
|
|
900
|
+
],
|
|
901
|
+
"events": [],
|
|
902
|
+
"js": {
|
|
903
|
+
"properties": [
|
|
904
|
+
{ "name": "label", "type": "string" },
|
|
905
|
+
{
|
|
906
|
+
"name": "lang",
|
|
907
|
+
"description": "Takes precedence over the `<html>` lang attribute.",
|
|
908
|
+
"type": "string"
|
|
909
|
+
},
|
|
910
|
+
{ "name": "name", "type": "string" },
|
|
911
|
+
{ "name": "value", "type": "string" },
|
|
912
|
+
{
|
|
913
|
+
"name": "headerFormat",
|
|
914
|
+
"description": "Decides the format of the date as shown in the calendar header.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
|
|
915
|
+
"type": "string"
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
"name": "weekdayFormat",
|
|
919
|
+
"description": "Decides the format of the weekday as shown above the grid of dates in the calendar.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
|
|
920
|
+
"type": "string"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"name": "isDayDisabled",
|
|
924
|
+
"description": "Lets you control if a date in the calendar should be disabled.\n\nThis needs to be set on the element instance in JavaScript, not as an HTML attribute.",
|
|
925
|
+
"type": "(day: Date) => boolean"
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"name": "dayFormat",
|
|
929
|
+
"description": "Decides the format of the day in the calendar as read to screen readers.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
|
|
930
|
+
"type": "string"
|
|
931
|
+
},
|
|
932
|
+
{ "name": "isCalendarOpen", "type": "boolean" },
|
|
933
|
+
{ "name": "navigationDate", "type": "Date" },
|
|
934
|
+
{ "name": "selectedDate", "type": "Date | null" },
|
|
935
|
+
{ "name": "month" },
|
|
936
|
+
{ "name": "weeks" },
|
|
937
|
+
{ "name": "calendar", "type": "HTMLDivElement" },
|
|
938
|
+
{ "name": "input", "type": "HTMLInputElement" },
|
|
939
|
+
{ "name": "toggleButton", "type": "HTMLButtonElement" },
|
|
940
|
+
{ "name": "wrapper", "type": "HTMLDivElement" },
|
|
941
|
+
{
|
|
942
|
+
"name": "previousMonthButton",
|
|
943
|
+
"description": "This is the first focusable element, needed for the modal focus trap.\n\nDon't cache this and other `@query` fields from inside the calendar modal.\nThey work the first time, but once the calendar is closed and reopened\nthe query will point to an element that doesn't exist anymore.",
|
|
944
|
+
"type": "HTMLButtonElement"
|
|
945
|
+
},
|
|
946
|
+
{ "name": "todayCell", "type": "HTMLTableCellElement" },
|
|
947
|
+
{ "name": "selectedCell", "type": "HTMLTableCellElement" }
|
|
948
|
+
],
|
|
949
|
+
"events": []
|
|
950
|
+
}
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"name": "w-dead-toggle",
|
|
954
|
+
"description": "Dead toggle can be used where the appearance of a checkbox or radio is needed - but for accessibility purposes an actual input element should not be present.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-dead-toggle--docs)\n---\n",
|
|
955
|
+
"doc-url": "",
|
|
956
|
+
"attributes": [
|
|
957
|
+
{
|
|
958
|
+
"name": "type",
|
|
959
|
+
"value": { "type": "'radio' | 'checkbox'", "default": "'radio'" }
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"name": "checked",
|
|
963
|
+
"value": { "type": "boolean", "default": "false" }
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"name": "indeterminate",
|
|
967
|
+
"value": { "type": "boolean", "default": "false" }
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
"name": "invalid",
|
|
971
|
+
"value": { "type": "boolean", "default": "false" }
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
"name": "disabled",
|
|
975
|
+
"value": { "type": "boolean", "default": "false" }
|
|
976
|
+
}
|
|
977
|
+
],
|
|
978
|
+
"events": [],
|
|
979
|
+
"js": {
|
|
980
|
+
"properties": [
|
|
981
|
+
{ "name": "type", "type": "'radio' | 'checkbox'" },
|
|
982
|
+
{ "name": "checked", "type": "boolean" },
|
|
983
|
+
{ "name": "indeterminate", "type": "boolean" },
|
|
984
|
+
{ "name": "invalid", "type": "boolean" },
|
|
985
|
+
{ "name": "disabled", "type": "boolean" }
|
|
986
|
+
],
|
|
987
|
+
"events": []
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"name": "w-pageindicator",
|
|
992
|
+
"description": "\n---\n",
|
|
993
|
+
"doc-url": "",
|
|
994
|
+
"attributes": [
|
|
995
|
+
{
|
|
996
|
+
"name": "selected-page",
|
|
997
|
+
"description": "Currently selected page (1-based index)",
|
|
998
|
+
"value": { "type": "number", "default": "1" }
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
"name": "page-count",
|
|
1002
|
+
"description": "Total number of pages",
|
|
1003
|
+
"value": { "type": "number", "default": "1" }
|
|
1004
|
+
}
|
|
1005
|
+
],
|
|
1006
|
+
"events": [],
|
|
1007
|
+
"js": {
|
|
1008
|
+
"properties": [
|
|
1009
|
+
{
|
|
1010
|
+
"name": "selectedPage",
|
|
1011
|
+
"description": "Currently selected page (1-based index)",
|
|
1012
|
+
"type": "number"
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"name": "pageCount",
|
|
1016
|
+
"description": "Total number of pages",
|
|
1017
|
+
"type": "number"
|
|
1018
|
+
}
|
|
1019
|
+
],
|
|
1020
|
+
"events": []
|
|
1021
|
+
}
|
|
1022
|
+
},
|
|
654
1023
|
{
|
|
655
1024
|
"name": "w-pagination",
|
|
656
1025
|
"description": "Pagination allows users to navigate through multiple pages of content by providing navigation controls with page numbers and directional arrows.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-pagination--docs)\n---\n\n\n### **Events:**\n - **page-click** - Triggered when a link button in the pagination is clicked. Contains the page number in `string` form.",
|
|
@@ -847,6 +1216,132 @@
|
|
|
847
1216
|
],
|
|
848
1217
|
"events": []
|
|
849
1218
|
}
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"name": "w-steps",
|
|
1222
|
+
"description": "Steps are used to show progress through a process or to guide users through a multi-step task.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/components-steps--docs)\n---\n",
|
|
1223
|
+
"doc-url": "",
|
|
1224
|
+
"attributes": [
|
|
1225
|
+
{
|
|
1226
|
+
"name": "horizontal",
|
|
1227
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"name": "right",
|
|
1231
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1232
|
+
}
|
|
1233
|
+
],
|
|
1234
|
+
"events": [],
|
|
1235
|
+
"js": {
|
|
1236
|
+
"properties": [
|
|
1237
|
+
{ "name": "horizontal", "type": "boolean" },
|
|
1238
|
+
{ "name": "right", "type": "boolean" }
|
|
1239
|
+
],
|
|
1240
|
+
"events": []
|
|
1241
|
+
}
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
"name": "w-step",
|
|
1245
|
+
"description": "Individual step component that shows a single step in a process\n---\n",
|
|
1246
|
+
"doc-url": "",
|
|
1247
|
+
"attributes": [
|
|
1248
|
+
{
|
|
1249
|
+
"name": "active",
|
|
1250
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
"name": "completed",
|
|
1254
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1255
|
+
}
|
|
1256
|
+
],
|
|
1257
|
+
"events": [],
|
|
1258
|
+
"js": {
|
|
1259
|
+
"properties": [
|
|
1260
|
+
{ "name": "active", "type": "boolean" },
|
|
1261
|
+
{ "name": "completed", "type": "boolean" }
|
|
1262
|
+
],
|
|
1263
|
+
"events": []
|
|
1264
|
+
}
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
"name": "w-switch",
|
|
1268
|
+
"description": "\n---\n\n\n### **Events:**\n - **change**",
|
|
1269
|
+
"doc-url": "",
|
|
1270
|
+
"attributes": [
|
|
1271
|
+
{
|
|
1272
|
+
"name": "value",
|
|
1273
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
"name": "disabled",
|
|
1277
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1278
|
+
}
|
|
1279
|
+
],
|
|
1280
|
+
"events": [{ "name": "change", "type": "CustomEvent" }],
|
|
1281
|
+
"js": {
|
|
1282
|
+
"properties": [
|
|
1283
|
+
{ "name": "value", "type": "boolean" },
|
|
1284
|
+
{ "name": "disabled", "type": "boolean" }
|
|
1285
|
+
],
|
|
1286
|
+
"events": [{ "name": "change", "type": "CustomEvent" }]
|
|
1287
|
+
}
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"name": "w-tab",
|
|
1291
|
+
"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",
|
|
1292
|
+
"doc-url": "",
|
|
1293
|
+
"attributes": [
|
|
1294
|
+
{ "name": "name", "value": { "type": "string" } },
|
|
1295
|
+
{ "name": "label", "value": { "type": "string", "default": "''" } },
|
|
1296
|
+
{
|
|
1297
|
+
"name": "active",
|
|
1298
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
"name": "over",
|
|
1302
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
"name": "tab-class",
|
|
1306
|
+
"value": { "type": "string", "default": "''" }
|
|
1307
|
+
}
|
|
1308
|
+
],
|
|
1309
|
+
"events": [],
|
|
1310
|
+
"js": {
|
|
1311
|
+
"properties": [
|
|
1312
|
+
{ "name": "name", "type": "string" },
|
|
1313
|
+
{ "name": "label", "type": "string" },
|
|
1314
|
+
{ "name": "active", "type": "boolean" },
|
|
1315
|
+
{ "name": "over", "type": "boolean" },
|
|
1316
|
+
{ "name": "tabClass", "type": "string" }
|
|
1317
|
+
],
|
|
1318
|
+
"events": []
|
|
1319
|
+
}
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
"name": "w-tabs",
|
|
1323
|
+
"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**",
|
|
1324
|
+
"doc-url": "",
|
|
1325
|
+
"attributes": [
|
|
1326
|
+
{
|
|
1327
|
+
"name": "active",
|
|
1328
|
+
"value": { "type": "string", "default": "''" }
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
"name": "tab-class",
|
|
1332
|
+
"value": { "type": "string", "default": "''" }
|
|
1333
|
+
}
|
|
1334
|
+
],
|
|
1335
|
+
"events": [{ "name": "change", "type": "CustomEvent" }],
|
|
1336
|
+
"js": {
|
|
1337
|
+
"properties": [
|
|
1338
|
+
{ "name": "active", "type": "string" },
|
|
1339
|
+
{ "name": "tabClass", "type": "string" },
|
|
1340
|
+
{ "name": "tabs" },
|
|
1341
|
+
{ "name": "activeTab" }
|
|
1342
|
+
],
|
|
1343
|
+
"events": [{ "name": "change", "type": "CustomEvent" }]
|
|
1344
|
+
}
|
|
850
1345
|
}
|
|
851
1346
|
]
|
|
852
1347
|
},
|