@warp-ds/elements 2.2.0-next.9 → 2.2.0
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/README.md +188 -26
- package/dist/.storybook/utilities.js +52 -0
- package/dist/api.js.map +1 -1
- package/dist/custom-elements.json +1381 -2711
- package/dist/index.d.ts +942 -25
- package/dist/packages/affix/affix.react.stories.d.ts +9 -0
- package/dist/packages/affix/affix.react.stories.js +10 -0
- package/dist/packages/affix/affix.stories.js +25 -0
- package/dist/packages/affix/affix.test.js +9 -0
- package/dist/packages/affix/index.d.ts +0 -17
- package/dist/packages/affix/index.js +5 -5
- package/dist/packages/affix/index.js.map +4 -4
- package/dist/packages/affix/react.d.ts +1 -1
- package/dist/packages/affix/react.js +15 -2482
- package/dist/packages/affix/styles.js +2 -0
- package/dist/packages/alert/alert.react.stories.d.ts +13 -0
- package/dist/packages/alert/alert.react.stories.js +44 -0
- package/dist/packages/alert/alert.stories.js +68 -0
- package/dist/packages/alert/alert.test.js +18 -0
- package/dist/packages/alert/index.d.ts +1 -6
- package/dist/packages/alert/index.js +4 -4
- package/dist/packages/alert/index.js.map +4 -4
- package/dist/packages/alert/react.d.ts +1 -1
- package/dist/packages/alert/react.js +11 -2492
- package/dist/packages/alert/styles.js +2 -0
- package/dist/packages/attention/attention.react.stories.d.ts +15 -0
- package/dist/packages/attention/attention.react.stories.js +92 -0
- package/dist/packages/attention/attention.stories.d.ts +1 -0
- package/dist/packages/attention/attention.stories.js +180 -0
- package/dist/packages/attention/attention.test.js +11 -0
- package/dist/packages/attention/index.d.ts +3 -29
- package/dist/packages/attention/index.js +249 -19
- package/dist/packages/attention/index.js.map +4 -4
- package/dist/packages/attention/layout-styles.js +905 -0
- package/dist/packages/attention/locales/da/messages.mjs +1 -0
- package/dist/packages/attention/locales/en/messages.mjs +1 -0
- package/dist/packages/attention/locales/fi/messages.mjs +1 -0
- package/dist/packages/attention/locales/nb/messages.mjs +1 -0
- package/dist/packages/attention/locales/sv/messages.mjs +1 -0
- package/dist/packages/attention/react.d.ts +15 -1
- package/dist/packages/attention/react.js +17 -3405
- package/dist/packages/attention/styles.js +2 -0
- package/dist/packages/badge/badge.react.stories.d.ts +18 -0
- package/dist/packages/badge/badge.react.stories.js +60 -0
- package/dist/packages/badge/badge.stories.js +68 -0
- package/dist/packages/badge/badge.test.js +9 -0
- package/dist/packages/badge/index.d.ts +0 -5
- package/dist/packages/badge/index.js +1 -1
- package/dist/packages/badge/index.js.map +4 -4
- package/dist/packages/badge/react.d.ts +1 -1
- package/dist/packages/badge/react.js +11 -2465
- package/dist/packages/badge/styles.js +2 -0
- package/dist/packages/box/box.react.stories.d.ts +15 -0
- package/dist/packages/box/box.react.stories.js +45 -0
- package/dist/packages/box/box.stories.js +59 -0
- package/dist/packages/box/box.test.js +9 -0
- package/dist/packages/box/index.d.ts +0 -5
- package/dist/packages/box/index.js +11 -4
- package/dist/packages/box/index.js.map +4 -4
- package/dist/packages/box/react.d.ts +1 -1
- package/dist/packages/box/react.js +11 -2465
- package/dist/packages/box/slot.test.js +9 -0
- package/dist/packages/box/styles.js +2 -0
- package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +13 -0
- package/dist/packages/breadcrumbs/breadcrumbs.react.stories.js +40 -0
- package/dist/packages/breadcrumbs/breadcrumbs.stories.js +60 -0
- package/dist/packages/breadcrumbs/breadcrumbs.test.js +16 -0
- package/dist/packages/breadcrumbs/index.d.ts +0 -12
- package/dist/packages/breadcrumbs/index.js +6 -6
- package/dist/packages/breadcrumbs/index.js.map +4 -4
- package/dist/packages/breadcrumbs/locales/da/messages.mjs +1 -0
- package/dist/packages/breadcrumbs/locales/en/messages.mjs +1 -0
- package/dist/packages/breadcrumbs/locales/fi/messages.mjs +1 -0
- package/dist/packages/breadcrumbs/locales/nb/messages.mjs +1 -0
- package/dist/packages/breadcrumbs/locales/sv/messages.mjs +1 -0
- package/dist/packages/breadcrumbs/react.d.ts +1 -1
- package/dist/packages/breadcrumbs/react.js +11 -2475
- package/dist/packages/breadcrumbs/styles.js +2 -0
- package/dist/packages/button/button.react.stories.d.ts +22 -0
- package/dist/packages/button/button.react.stories.js +102 -0
- package/dist/packages/button/button.stories.d.ts +4 -0
- package/dist/packages/button/button.stories.js +151 -0
- package/dist/packages/button/button.test.js +25 -0
- package/dist/packages/button/index.d.ts +0 -66
- package/dist/packages/button/index.js +17 -11
- package/dist/packages/button/index.js.map +4 -4
- package/dist/packages/button/locales/da/messages.mjs +1 -0
- package/dist/packages/button/locales/en/messages.mjs +1 -0
- package/dist/packages/button/locales/fi/messages.mjs +1 -0
- package/dist/packages/button/locales/nb/messages.mjs +1 -0
- package/dist/packages/button/locales/sv/messages.mjs +1 -0
- package/dist/packages/button/react.d.ts +1 -1
- package/dist/packages/button/react.js +10 -2684
- package/dist/packages/button/styles.js +2 -0
- package/dist/packages/card/card.react.stories.d.ts +16 -0
- package/dist/packages/card/card.react.stories.js +63 -0
- package/dist/packages/card/card.stories.js +82 -0
- package/dist/packages/card/card.test.js +9 -0
- package/dist/packages/card/index.d.ts +1 -18
- package/dist/packages/card/index.js +4 -4
- package/dist/packages/card/index.js.map +4 -4
- package/dist/packages/card/locales/da/messages.mjs +1 -0
- package/dist/packages/card/locales/en/messages.mjs +1 -0
- package/dist/packages/card/locales/fi/messages.mjs +1 -0
- package/dist/packages/card/locales/nb/messages.mjs +1 -0
- package/dist/packages/card/locales/sv/messages.mjs +1 -0
- package/dist/packages/card/react.d.ts +1 -1
- package/dist/packages/card/react.js +11 -2487
- package/dist/packages/card/styles.js +2 -0
- package/dist/packages/expandable/expandable.react.stories.d.ts +18 -0
- package/dist/packages/expandable/expandable.react.stories.js +103 -0
- package/dist/packages/expandable/expandable.stories.js +132 -0
- package/dist/packages/expandable/expandable.test.js +24 -0
- package/dist/packages/expandable/index.d.ts +2 -33
- package/dist/packages/expandable/index.js +20 -11
- package/dist/packages/expandable/index.js.map +4 -4
- package/dist/packages/expandable/react.d.ts +1 -1
- package/dist/packages/expandable/react.js +11 -2495
- package/dist/packages/expandable/styles.js +2 -0
- package/dist/packages/i18n.js +45 -0
- package/dist/packages/link/index.d.ts +0 -5
- package/dist/packages/link/index.js +93 -2640
- package/dist/packages/link/styles.js +200 -0
- package/dist/packages/modal/index.js +24 -41
- package/dist/packages/modal/index.js.map +4 -4
- package/dist/packages/modal/locales/da/messages.mjs +1 -0
- package/dist/packages/modal/locales/en/messages.mjs +1 -0
- package/dist/packages/modal/locales/fi/messages.mjs +1 -0
- package/dist/packages/modal/locales/nb/messages.mjs +1 -0
- package/dist/packages/modal/locales/sv/messages.mjs +1 -0
- package/dist/packages/modal/modal-footer.d.ts +0 -5
- package/dist/packages/{dead-toggle/index.js → modal/modal-footer.js} +20 -47
- package/dist/packages/modal/modal-footer.js.map +7 -0
- package/dist/packages/modal/modal-header.d.ts +0 -5
- package/dist/packages/{steps/index.js → modal/modal-header.js} +122 -20
- package/dist/packages/modal/modal-header.js.map +7 -0
- package/dist/packages/modal/modal-main.d.ts +0 -5
- package/dist/packages/{dead-toggle/react.js → modal/modal-main.js} +124 -59
- package/dist/packages/{box/react.js.map → modal/modal-main.js.map} +4 -4
- package/dist/packages/modal/modal.react.stories.d.ts +14 -0
- package/dist/packages/modal/modal.react.stories.js +27 -0
- package/dist/packages/modal/modal.stories.d.ts +3 -3
- package/dist/packages/modal/modal.stories.js +254 -0
- package/dist/packages/modal/react.d.ts +11 -3
- package/dist/packages/modal/react.js +31 -2754
- package/dist/packages/modal/util.js +21 -0
- package/dist/packages/pill/index.d.ts +0 -17
- package/dist/packages/pill/index.js +5 -5
- package/dist/packages/pill/index.js.map +2 -2
- package/dist/packages/pill/locales/da/messages.mjs +1 -0
- package/dist/packages/pill/locales/en/messages.mjs +1 -0
- package/dist/packages/pill/locales/fi/messages.mjs +1 -0
- package/dist/packages/pill/locales/nb/messages.mjs +1 -0
- package/dist/packages/pill/locales/sv/messages.mjs +1 -0
- package/dist/packages/pill/pill.react.stories.d.ts +23 -0
- package/dist/packages/pill/pill.react.stories.js +22 -0
- package/dist/packages/pill/pill.stories.js +33 -0
- package/dist/packages/pill/pill.test.js +25 -0
- package/dist/packages/pill/react.d.ts +7 -0
- package/dist/packages/pill/react.js +17 -0
- package/dist/packages/pill/styles.js +2 -0
- package/dist/packages/select/index.d.ts +4 -29
- package/dist/packages/select/index.js +25 -18
- package/dist/packages/select/index.js.map +3 -3
- package/dist/packages/select/locales/da/messages.mjs +1 -0
- package/dist/packages/select/locales/en/messages.mjs +1 -0
- package/dist/packages/select/locales/fi/messages.mjs +1 -0
- package/dist/packages/select/locales/nb/messages.mjs +1 -0
- package/dist/packages/select/locales/sv/messages.mjs +1 -0
- package/dist/packages/select/react.d.ts +6 -2
- package/dist/packages/select/react.js +20 -2494
- package/dist/packages/select/select.react.stories.d.ts +18 -0
- package/dist/packages/select/select.react.stories.js +28 -0
- package/dist/packages/select/select.stories.d.ts +7 -0
- package/dist/packages/select/select.stories.js +100 -0
- package/dist/packages/select/select.test.js +31 -0
- package/dist/packages/select/styles.js +2 -0
- package/dist/packages/{switch/index.js → styles.js} +5 -18
- package/dist/packages/textfield/index.d.ts +12 -26
- package/dist/packages/textfield/index.js +86 -28
- package/dist/packages/textfield/index.js.map +4 -4
- package/dist/packages/textfield/react.d.ts +11 -2
- package/dist/packages/textfield/react.js +21 -2490
- package/dist/packages/textfield/styles/w-textfield.styles.d.ts +1 -0
- package/dist/packages/textfield/styles/w-textfield.styles.js +55 -0
- package/dist/packages/textfield/styles.js +2 -0
- package/dist/packages/textfield/textfield.react.stories.d.ts +37 -0
- package/dist/packages/textfield/textfield.react.stories.js +88 -0
- package/dist/packages/textfield/textfield.stories.d.ts +1 -0
- package/dist/packages/textfield/textfield.stories.js +105 -0
- package/dist/packages/textfield/textfield.test.d.ts +1 -0
- package/dist/packages/textfield/textfield.test.js +68 -0
- package/dist/packages/toast/api.d.ts +1 -1
- package/dist/packages/toast/api.js +41 -0
- package/dist/packages/toast/index.d.ts +1 -1
- package/dist/packages/toast/index.js +17 -17
- package/dist/packages/toast/index.js.map +4 -4
- package/dist/packages/toast/locales/da/messages.mjs +1 -0
- package/dist/packages/toast/locales/en/messages.mjs +1 -0
- package/dist/packages/toast/locales/fi/messages.mjs +1 -0
- package/dist/packages/toast/locales/nb/messages.mjs +1 -0
- package/dist/packages/toast/locales/sv/messages.mjs +1 -0
- package/dist/packages/toast/styles.js +2 -0
- package/dist/packages/toast/toast-container.d.ts +1 -1
- package/dist/packages/{switch/react.js → toast/toast-container.js} +21 -38
- package/dist/packages/toast/toast-container.js.map +7 -0
- package/dist/packages/{pagination/index.js → toast/toast.js} +21 -49
- package/dist/packages/toast/toast.js.map +7 -0
- package/dist/packages/toast/toast.stories.js +50 -0
- package/dist/packages/toast/types.js +1 -0
- package/dist/packages/utils/expand-transition.d.ts +3 -3
- package/dist/packages/utils/expand-transition.js +59 -0
- package/dist/packages/utils/index.js +37 -0
- package/dist/packages/utils/unstyled-heading.d.ts +2 -3
- package/dist/packages/utils/unstyled-heading.js +22 -0
- package/dist/packages/utils/window-exists.js +1 -0
- package/dist/setup-tests.js +1 -0
- package/dist/web-types.json +150 -438
- package/package.json +39 -32
- package/dist/index.css +0 -2
- package/dist/index.css.map +0 -7
- package/dist/index.js +0 -4285
- package/dist/index.js.map +0 -7
- package/dist/packages/affix/react.js.map +0 -7
- package/dist/packages/alert/react.js.map +0 -7
- package/dist/packages/attention/react.js.map +0 -7
- package/dist/packages/badge/react.js.map +0 -7
- package/dist/packages/breadcrumbs/react.js.map +0 -7
- package/dist/packages/button/react.js.map +0 -7
- package/dist/packages/card/react.js.map +0 -7
- package/dist/packages/datepicker/DatePicker.test.d.ts +0 -1
- package/dist/packages/datepicker/datepicker.d.ts +0 -107
- package/dist/packages/datepicker/datepicker.stories.d.ts +0 -11
- package/dist/packages/datepicker/datepicker.test.d.ts +0 -2
- package/dist/packages/datepicker/index.d.ts +0 -1
- package/dist/packages/datepicker/index.js +0 -2785
- package/dist/packages/datepicker/index.js.map +0 -7
- package/dist/packages/datepicker/locales/da/messages.d.mts +0 -1
- package/dist/packages/datepicker/locales/en/messages.d.mts +0 -1
- package/dist/packages/datepicker/locales/fi/messages.d.mts +0 -1
- package/dist/packages/datepicker/locales/nb/messages.d.mts +0 -1
- package/dist/packages/datepicker/locales/sv/messages.d.mts +0 -1
- package/dist/packages/datepicker/react.d.ts +0 -2
- package/dist/packages/datepicker/react.js +0 -2805
- package/dist/packages/datepicker/react.js.map +0 -7
- package/dist/packages/datepicker/styles/w-datepicker-calendar.styles.d.ts +0 -1
- package/dist/packages/datepicker/styles/w-datepicker-day.styles.d.ts +0 -1
- package/dist/packages/datepicker/styles/w-datepicker-month.styles.d.ts +0 -1
- package/dist/packages/datepicker/styles/w-datepicker.styles.d.ts +0 -1
- package/dist/packages/datepicker/utils.d.ts +0 -13
- package/dist/packages/dead-toggle/dead-toggle.stories.d.ts +0 -10
- package/dist/packages/dead-toggle/dead-toggle.test.d.ts +0 -1
- package/dist/packages/dead-toggle/index.d.ts +0 -21
- package/dist/packages/dead-toggle/index.js.map +0 -7
- package/dist/packages/dead-toggle/react.d.ts +0 -2
- package/dist/packages/dead-toggle/react.js.map +0 -7
- package/dist/packages/expandable/react.js.map +0 -7
- package/dist/packages/link/index.js.map +0 -7
- package/dist/packages/link/link.stories.d.ts +0 -20
- package/dist/packages/link/link.test.d.ts +0 -1
- package/dist/packages/link/react.d.ts +0 -2
- package/dist/packages/link/react.js +0 -2666
- package/dist/packages/link/react.js.map +0 -7
- package/dist/packages/modal/react.js.map +0 -7
- package/dist/packages/pageindicator/index.d.ts +0 -14
- package/dist/packages/pageindicator/index.js +0 -32
- package/dist/packages/pageindicator/index.js.map +0 -7
- package/dist/packages/pageindicator/pageindicator.stories.d.ts +0 -32
- package/dist/packages/pageindicator/react.d.ts +0 -2
- package/dist/packages/pageindicator/react.js +0 -52
- package/dist/packages/pageindicator/react.js.map +0 -7
- package/dist/packages/pageindicator/style.d.ts +0 -1
- package/dist/packages/pagination/index.d.ts +0 -37
- package/dist/packages/pagination/index.js.map +0 -7
- package/dist/packages/pagination/locales/da/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/en/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/fi/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/nb/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/sv/messages.d.mts +0 -1
- package/dist/packages/pagination/pagination.stories.d.ts +0 -14
- package/dist/packages/pagination/pagination.test.d.ts +0 -1
- package/dist/packages/pagination/react.d.ts +0 -2
- package/dist/packages/pagination/react.js +0 -2514
- package/dist/packages/pagination/react.js.map +0 -7
- package/dist/packages/pagination/styles.d.ts +0 -1
- package/dist/packages/rip-and-tear-checkbox/checkbox.d.ts +0 -64
- package/dist/packages/rip-and-tear-checkbox/index.css +0 -2
- package/dist/packages/rip-and-tear-checkbox/index.css.map +0 -7
- package/dist/packages/rip-and-tear-checkbox/index.d.ts +0 -6
- package/dist/packages/rip-and-tear-checkbox/index.js +0 -36
- package/dist/packages/rip-and-tear-checkbox/index.js.map +0 -7
- package/dist/packages/rip-and-tear-radio/base-element.d.ts +0 -46
- package/dist/packages/rip-and-tear-radio/custom-error-validator.d.ts +0 -6
- package/dist/packages/rip-and-tear-radio/form-associated-element.d.ts +0 -103
- package/dist/packages/rip-and-tear-radio/index.css +0 -2
- package/dist/packages/rip-and-tear-radio/index.css.map +0 -7
- package/dist/packages/rip-and-tear-radio/index.d.ts +0 -8
- package/dist/packages/rip-and-tear-radio/index.js +0 -34
- package/dist/packages/rip-and-tear-radio/index.js.map +0 -7
- package/dist/packages/rip-and-tear-radio/invalid.d.ts +0 -8
- package/dist/packages/rip-and-tear-radio/math.d.ts +0 -1
- package/dist/packages/rip-and-tear-radio/radio-group.d.ts +0 -72
- package/dist/packages/rip-and-tear-radio/radio.d.ts +0 -38
- package/dist/packages/rip-and-tear-radio/required-validator.d.ts +0 -11
- package/dist/packages/rip-and-tear-radio/slot.d.ts +0 -20
- package/dist/packages/rip-and-tear-radio/watch.d.ts +0 -26
- package/dist/packages/select/react.js.map +0 -7
- package/dist/packages/steps/index.d.ts +0 -43
- package/dist/packages/steps/index.js.map +0 -7
- package/dist/packages/steps/locales/da/messages.d.mts +0 -1
- package/dist/packages/steps/locales/en/messages.d.mts +0 -1
- package/dist/packages/steps/locales/fi/messages.d.mts +0 -1
- package/dist/packages/steps/locales/nb/messages.d.mts +0 -1
- package/dist/packages/steps/locales/sv/messages.d.mts +0 -1
- package/dist/packages/steps/react.d.ts +0 -3
- package/dist/packages/steps/react.js +0 -2485
- package/dist/packages/steps/react.js.map +0 -7
- package/dist/packages/steps/steps.stories.d.ts +0 -12
- package/dist/packages/steps/styles.d.ts +0 -1
- package/dist/packages/switch/index.d.ts +0 -20
- package/dist/packages/switch/index.js.map +0 -7
- package/dist/packages/switch/react.d.ts +0 -2
- package/dist/packages/switch/react.js.map +0 -7
- package/dist/packages/switch/styles.d.ts +0 -1
- package/dist/packages/switch/switch.stories.d.ts +0 -9
- package/dist/packages/textfield/react.js.map +0 -7
- package/dist/vscode.css-custom-data.json +0 -6
- package/dist/vscode.html-custom-data.json +0 -421
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.2.0-next.
|
|
4
|
+
"version": "2.2.0-next.32",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -77,6 +77,61 @@
|
|
|
77
77
|
"events": []
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
|
+
{
|
|
81
|
+
"name": "w-button",
|
|
82
|
+
"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",
|
|
83
|
+
"doc-url": "",
|
|
84
|
+
"attributes": [
|
|
85
|
+
{
|
|
86
|
+
"name": "type",
|
|
87
|
+
"value": {
|
|
88
|
+
"type": "'button' | 'submit' | 'reset'",
|
|
89
|
+
"default": "'button'"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{ "name": "autofocus", "value": { "type": "boolean" } },
|
|
93
|
+
{
|
|
94
|
+
"name": "variant",
|
|
95
|
+
"value": {
|
|
96
|
+
"type": "'negative' | 'primary' | 'secondary' | 'utility' | 'pill' | 'link'",
|
|
97
|
+
"default": "'secondary'"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{ "name": "quiet", "value": { "type": "boolean" } },
|
|
101
|
+
{ "name": "small", "value": { "type": "boolean" } },
|
|
102
|
+
{ "name": "loading", "value": { "type": "boolean" } },
|
|
103
|
+
{ "name": "href", "value": { "type": "string" } },
|
|
104
|
+
{ "name": "target", "value": { "type": "string" } },
|
|
105
|
+
{ "name": "rel", "value": { "type": "string" } },
|
|
106
|
+
{ "name": "full-width", "value": { "type": "boolean" } },
|
|
107
|
+
{ "name": "button-class", "value": { "type": "string" } },
|
|
108
|
+
{ "name": "name", "value": { "type": "string" } },
|
|
109
|
+
{ "name": "value", "value": { "type": "string" } }
|
|
110
|
+
],
|
|
111
|
+
"events": [],
|
|
112
|
+
"js": {
|
|
113
|
+
"properties": [
|
|
114
|
+
{ "name": "type", "type": "'button' | 'submit' | 'reset'" },
|
|
115
|
+
{ "name": "autofocus", "type": "boolean" },
|
|
116
|
+
{
|
|
117
|
+
"name": "variant",
|
|
118
|
+
"type": "'negative' | 'primary' | 'secondary' | 'utility' | 'pill' | 'link'"
|
|
119
|
+
},
|
|
120
|
+
{ "name": "quiet", "type": "boolean" },
|
|
121
|
+
{ "name": "small", "type": "boolean" },
|
|
122
|
+
{ "name": "loading", "type": "boolean" },
|
|
123
|
+
{ "name": "href", "type": "string" },
|
|
124
|
+
{ "name": "target", "type": "string" },
|
|
125
|
+
{ "name": "rel", "type": "string" },
|
|
126
|
+
{ "name": "fullWidth", "type": "boolean" },
|
|
127
|
+
{ "name": "buttonClass", "type": "string" },
|
|
128
|
+
{ "name": "name", "type": "string" },
|
|
129
|
+
{ "name": "value", "type": "string" },
|
|
130
|
+
{ "name": "ariaValueTextLoading" }
|
|
131
|
+
],
|
|
132
|
+
"events": []
|
|
133
|
+
}
|
|
134
|
+
},
|
|
80
135
|
{
|
|
81
136
|
"name": "w-attention",
|
|
82
137
|
"description": "\n---\n",
|
|
@@ -227,106 +282,6 @@
|
|
|
227
282
|
"events": []
|
|
228
283
|
}
|
|
229
284
|
},
|
|
230
|
-
{
|
|
231
|
-
"name": "w-link",
|
|
232
|
-
"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",
|
|
233
|
-
"doc-url": "",
|
|
234
|
-
"attributes": [
|
|
235
|
-
{ "name": "autofocus", "value": { "type": "boolean" } },
|
|
236
|
-
{
|
|
237
|
-
"name": "variant",
|
|
238
|
-
"value": {
|
|
239
|
-
"type": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet'",
|
|
240
|
-
"default": "'secondary'"
|
|
241
|
-
}
|
|
242
|
-
},
|
|
243
|
-
{ "name": "quiet", "value": { "type": "boolean" } },
|
|
244
|
-
{ "name": "small", "value": { "type": "boolean" } },
|
|
245
|
-
{ "name": "href", "value": { "type": "string" } },
|
|
246
|
-
{ "name": "disabled", "value": { "type": "boolean" } },
|
|
247
|
-
{ "name": "target", "value": { "type": "string" } },
|
|
248
|
-
{ "name": "rel", "value": { "type": "string" } },
|
|
249
|
-
{ "name": "full-width", "value": { "type": "boolean" } },
|
|
250
|
-
{ "name": "button-class", "value": { "type": "string" } },
|
|
251
|
-
{ "name": "name", "value": { "type": "string" } }
|
|
252
|
-
],
|
|
253
|
-
"events": [],
|
|
254
|
-
"js": {
|
|
255
|
-
"properties": [
|
|
256
|
-
{ "name": "autofocus", "type": "boolean" },
|
|
257
|
-
{
|
|
258
|
-
"name": "variant",
|
|
259
|
-
"type": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'pill' | 'link' | 'quiet' | 'utilityQuiet'"
|
|
260
|
-
},
|
|
261
|
-
{ "name": "quiet", "type": "boolean" },
|
|
262
|
-
{ "name": "small", "type": "boolean" },
|
|
263
|
-
{ "name": "href", "type": "string" },
|
|
264
|
-
{ "name": "disabled", "type": "boolean" },
|
|
265
|
-
{ "name": "target", "type": "string" },
|
|
266
|
-
{ "name": "rel", "type": "string" },
|
|
267
|
-
{ "name": "fullWidth", "type": "boolean" },
|
|
268
|
-
{ "name": "buttonClass", "type": "string" },
|
|
269
|
-
{ "name": "name", "type": "string" },
|
|
270
|
-
{ "name": "classes", "type": "string" }
|
|
271
|
-
],
|
|
272
|
-
"events": []
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
"name": "w-button",
|
|
277
|
-
"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",
|
|
278
|
-
"doc-url": "",
|
|
279
|
-
"attributes": [
|
|
280
|
-
{
|
|
281
|
-
"name": "type",
|
|
282
|
-
"value": {
|
|
283
|
-
"type": "'button' | 'submit' | 'reset'",
|
|
284
|
-
"default": "'button'"
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
{ "name": "autofocus", "value": { "type": "boolean" } },
|
|
288
|
-
{
|
|
289
|
-
"name": "variant",
|
|
290
|
-
"value": {
|
|
291
|
-
"type": "'negative' | 'primary' | 'secondary' | 'utility' | 'pill' | 'link'",
|
|
292
|
-
"default": "'secondary'"
|
|
293
|
-
}
|
|
294
|
-
},
|
|
295
|
-
{ "name": "quiet", "value": { "type": "boolean" } },
|
|
296
|
-
{ "name": "small", "value": { "type": "boolean" } },
|
|
297
|
-
{ "name": "loading", "value": { "type": "boolean" } },
|
|
298
|
-
{ "name": "href", "value": { "type": "string" } },
|
|
299
|
-
{ "name": "target", "value": { "type": "string" } },
|
|
300
|
-
{ "name": "rel", "value": { "type": "string" } },
|
|
301
|
-
{ "name": "full-width", "value": { "type": "boolean" } },
|
|
302
|
-
{ "name": "button-class", "value": { "type": "string" } },
|
|
303
|
-
{ "name": "name", "value": { "type": "string" } },
|
|
304
|
-
{ "name": "value", "value": { "type": "string" } }
|
|
305
|
-
],
|
|
306
|
-
"events": [],
|
|
307
|
-
"js": {
|
|
308
|
-
"properties": [
|
|
309
|
-
{ "name": "type", "type": "'button' | 'submit' | 'reset'" },
|
|
310
|
-
{ "name": "autofocus", "type": "boolean" },
|
|
311
|
-
{
|
|
312
|
-
"name": "variant",
|
|
313
|
-
"type": "'negative' | 'primary' | 'secondary' | 'utility' | 'pill' | 'link'"
|
|
314
|
-
},
|
|
315
|
-
{ "name": "quiet", "type": "boolean" },
|
|
316
|
-
{ "name": "small", "type": "boolean" },
|
|
317
|
-
{ "name": "loading", "type": "boolean" },
|
|
318
|
-
{ "name": "href", "type": "string" },
|
|
319
|
-
{ "name": "target", "type": "string" },
|
|
320
|
-
{ "name": "rel", "type": "string" },
|
|
321
|
-
{ "name": "fullWidth", "type": "boolean" },
|
|
322
|
-
{ "name": "buttonClass", "type": "string" },
|
|
323
|
-
{ "name": "name", "type": "string" },
|
|
324
|
-
{ "name": "value", "type": "string" },
|
|
325
|
-
{ "name": "ariaValueTextLoading" }
|
|
326
|
-
],
|
|
327
|
-
"events": []
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
285
|
{
|
|
331
286
|
"name": "w-card",
|
|
332
287
|
"description": "Card is a layout component used for separating content areas on a page.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-card--docs)\n---\n",
|
|
@@ -356,119 +311,6 @@
|
|
|
356
311
|
"events": []
|
|
357
312
|
}
|
|
358
313
|
},
|
|
359
|
-
{
|
|
360
|
-
"name": "w-datepicker",
|
|
361
|
-
"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",
|
|
362
|
-
"doc-url": "",
|
|
363
|
-
"attributes": [
|
|
364
|
-
{ "name": "label", "value": { "type": "string" } },
|
|
365
|
-
{
|
|
366
|
-
"name": "lang",
|
|
367
|
-
"description": "Takes precedence over the `<html>` lang attribute.",
|
|
368
|
-
"value": { "type": "string" }
|
|
369
|
-
},
|
|
370
|
-
{ "name": "name", "value": { "type": "string" } },
|
|
371
|
-
{ "name": "value", "value": { "type": "string" } },
|
|
372
|
-
{
|
|
373
|
-
"name": "header-format",
|
|
374
|
-
"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).",
|
|
375
|
-
"value": { "type": "string", "default": "'MMMM yyyy'" }
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
"name": "weekday-format",
|
|
379
|
-
"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).",
|
|
380
|
-
"value": { "type": "string", "default": "'EEEEEE'" }
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
"name": "day-format",
|
|
384
|
-
"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).",
|
|
385
|
-
"value": { "type": "string", "default": "'PPPP'" }
|
|
386
|
-
}
|
|
387
|
-
],
|
|
388
|
-
"events": [],
|
|
389
|
-
"js": {
|
|
390
|
-
"properties": [
|
|
391
|
-
{ "name": "label", "type": "string" },
|
|
392
|
-
{
|
|
393
|
-
"name": "lang",
|
|
394
|
-
"description": "Takes precedence over the `<html>` lang attribute.",
|
|
395
|
-
"type": "string"
|
|
396
|
-
},
|
|
397
|
-
{ "name": "name", "type": "string" },
|
|
398
|
-
{ "name": "value", "type": "string" },
|
|
399
|
-
{
|
|
400
|
-
"name": "headerFormat",
|
|
401
|
-
"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).",
|
|
402
|
-
"type": "string"
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
"name": "weekdayFormat",
|
|
406
|
-
"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).",
|
|
407
|
-
"type": "string"
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
"name": "isDayDisabled",
|
|
411
|
-
"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.",
|
|
412
|
-
"type": "(day: Date) => boolean"
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
"name": "dayFormat",
|
|
416
|
-
"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).",
|
|
417
|
-
"type": "string"
|
|
418
|
-
},
|
|
419
|
-
{ "name": "isCalendarOpen", "type": "boolean" },
|
|
420
|
-
{ "name": "navigationDate", "type": "Date" },
|
|
421
|
-
{ "name": "selectedDate", "type": "Date | null" },
|
|
422
|
-
{ "name": "month" },
|
|
423
|
-
{ "name": "weeks" },
|
|
424
|
-
{ "name": "calendar", "type": "HTMLDivElement" },
|
|
425
|
-
{ "name": "input", "type": "HTMLInputElement" },
|
|
426
|
-
{ "name": "toggleButton", "type": "HTMLButtonElement" },
|
|
427
|
-
{ "name": "wrapper", "type": "HTMLDivElement" },
|
|
428
|
-
{
|
|
429
|
-
"name": "previousMonthButton",
|
|
430
|
-
"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.",
|
|
431
|
-
"type": "HTMLButtonElement"
|
|
432
|
-
},
|
|
433
|
-
{ "name": "todayCell", "type": "HTMLTableCellElement" },
|
|
434
|
-
{ "name": "selectedCell", "type": "HTMLTableCellElement" }
|
|
435
|
-
],
|
|
436
|
-
"events": []
|
|
437
|
-
}
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"name": "w-dead-toggle",
|
|
441
|
-
"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",
|
|
442
|
-
"doc-url": "",
|
|
443
|
-
"attributes": [
|
|
444
|
-
{
|
|
445
|
-
"name": "type",
|
|
446
|
-
"value": { "type": "'radio' | 'checkbox'", "default": "'radio'" }
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
"name": "checked",
|
|
450
|
-
"value": { "type": "boolean", "default": "false" }
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
"name": "indeterminate",
|
|
454
|
-
"value": { "type": "boolean", "default": "false" }
|
|
455
|
-
},
|
|
456
|
-
{
|
|
457
|
-
"name": "invalid",
|
|
458
|
-
"value": { "type": "boolean", "default": "false" }
|
|
459
|
-
}
|
|
460
|
-
],
|
|
461
|
-
"events": [],
|
|
462
|
-
"js": {
|
|
463
|
-
"properties": [
|
|
464
|
-
{ "name": "type", "type": "'radio' | 'checkbox'" },
|
|
465
|
-
{ "name": "checked", "type": "boolean" },
|
|
466
|
-
{ "name": "indeterminate", "type": "boolean" },
|
|
467
|
-
{ "name": "invalid", "type": "boolean" }
|
|
468
|
-
],
|
|
469
|
-
"events": []
|
|
470
|
-
}
|
|
471
|
-
},
|
|
472
314
|
{
|
|
473
315
|
"name": "w-expandable",
|
|
474
316
|
"description": "Expandable is a layout component used for creating expandable content areas on a page.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-expandable--docs)\n---\n\n\n### **Slots:**\n - **title** - Alternative to the `title` attribute should you need to provide some additional markup.",
|
|
@@ -531,157 +373,6 @@
|
|
|
531
373
|
"events": []
|
|
532
374
|
}
|
|
533
375
|
},
|
|
534
|
-
{
|
|
535
|
-
"name": "w-modal-footer",
|
|
536
|
-
"description": "The footer section of a modal, typically where you place actions.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n---\n",
|
|
537
|
-
"doc-url": "",
|
|
538
|
-
"attributes": [],
|
|
539
|
-
"events": [],
|
|
540
|
-
"js": { "properties": [], "events": [] }
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
"name": "w-modal-header",
|
|
544
|
-
"description": "The header section of a modal, typically where you place the title and a close button.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n---\n\n\n### **Events:**\n - **backClicked**\n\n### **Slots:**\n - **top** - Customize the title bar, for example to have a header image that reaches the modal's edges. See the With Image story for an example.",
|
|
545
|
-
"doc-url": "",
|
|
546
|
-
"attributes": [
|
|
547
|
-
{ "name": "title", "value": { "type": "string" } },
|
|
548
|
-
{ "name": "back", "value": { "type": "boolean" } },
|
|
549
|
-
{ "name": "no-close", "value": { "type": "boolean" } }
|
|
550
|
-
],
|
|
551
|
-
"slots": [
|
|
552
|
-
{
|
|
553
|
-
"name": "top",
|
|
554
|
-
"description": "Customize the title bar, for example to have a header image that reaches the modal's edges. See the With Image story for an example."
|
|
555
|
-
}
|
|
556
|
-
],
|
|
557
|
-
"events": [{ "name": "backClicked", "type": "CustomEvent" }],
|
|
558
|
-
"js": {
|
|
559
|
-
"properties": [
|
|
560
|
-
{ "name": "title", "type": "string" },
|
|
561
|
-
{ "name": "back", "type": "boolean" },
|
|
562
|
-
{ "name": "noClose", "type": "boolean" },
|
|
563
|
-
{ "name": "titleEl", "type": "HTMLElement" },
|
|
564
|
-
{ "name": "titleClasses" },
|
|
565
|
-
{ "name": "backButton" },
|
|
566
|
-
{ "name": "closeButton" }
|
|
567
|
-
],
|
|
568
|
-
"events": [{ "name": "backClicked", "type": "CustomEvent" }]
|
|
569
|
-
}
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
"name": "w-modal",
|
|
573
|
-
"description": "Modals (or dialogs) display important information that users need to acknowledge.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n---\n\n\n### **Events:**\n - **shown**\n- **hidden**\n\n### **Slots:**\n - **header** - Typically where you would use the `w-modal-header` component.\n- **content** - The main content of the modal.\n- **footer** - Typically where you would use the `w-modal-footer` component, for things like actions.",
|
|
574
|
-
"doc-url": "",
|
|
575
|
-
"attributes": [
|
|
576
|
-
{ "name": "show", "value": { "type": "boolean" } },
|
|
577
|
-
{ "name": "content-id", "value": { "type": "string" } },
|
|
578
|
-
{ "name": "ignore-backdrop-clicks", "value": { "type": "boolean" } }
|
|
579
|
-
],
|
|
580
|
-
"slots": [
|
|
581
|
-
{
|
|
582
|
-
"name": "header",
|
|
583
|
-
"description": "Typically where you would use the `w-modal-header` component."
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
"name": "content",
|
|
587
|
-
"description": "The main content of the modal."
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
"name": "footer",
|
|
591
|
-
"description": "Typically where you would use the `w-modal-footer` component, for things like actions."
|
|
592
|
-
}
|
|
593
|
-
],
|
|
594
|
-
"events": [
|
|
595
|
-
{ "name": "shown", "type": "CustomEvent" },
|
|
596
|
-
{ "name": "hidden", "type": "CustomEvent" }
|
|
597
|
-
],
|
|
598
|
-
"js": {
|
|
599
|
-
"properties": [
|
|
600
|
-
{ "name": "show", "type": "boolean" },
|
|
601
|
-
{ "name": "contentId", "type": "string" },
|
|
602
|
-
{ "name": "ignoreBackdropClicks", "type": "boolean" },
|
|
603
|
-
{ "name": "dialogEl", "type": "HTMLDialogElement" },
|
|
604
|
-
{ "name": "dialogInnerEl", "type": "HTMLElement" },
|
|
605
|
-
{ "name": "contentEl", "type": "HTMLElement" }
|
|
606
|
-
],
|
|
607
|
-
"events": [
|
|
608
|
-
{ "name": "shown", "type": "CustomEvent" },
|
|
609
|
-
{ "name": "hidden", "type": "CustomEvent" }
|
|
610
|
-
]
|
|
611
|
-
}
|
|
612
|
-
},
|
|
613
|
-
{
|
|
614
|
-
"name": "w-pageindicator",
|
|
615
|
-
"description": "\n---\n",
|
|
616
|
-
"doc-url": "",
|
|
617
|
-
"attributes": [
|
|
618
|
-
{
|
|
619
|
-
"name": "selected-page",
|
|
620
|
-
"description": "Currently selected page (1-based index)",
|
|
621
|
-
"value": { "type": "number", "default": "1" }
|
|
622
|
-
},
|
|
623
|
-
{
|
|
624
|
-
"name": "page-count",
|
|
625
|
-
"description": "Total number of pages",
|
|
626
|
-
"value": { "type": "number", "default": "1" }
|
|
627
|
-
}
|
|
628
|
-
],
|
|
629
|
-
"events": [],
|
|
630
|
-
"js": {
|
|
631
|
-
"properties": [
|
|
632
|
-
{
|
|
633
|
-
"name": "selectedPage",
|
|
634
|
-
"description": "Currently selected page (1-based index)",
|
|
635
|
-
"type": "number"
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
"name": "pageCount",
|
|
639
|
-
"description": "Total number of pages",
|
|
640
|
-
"type": "number"
|
|
641
|
-
}
|
|
642
|
-
],
|
|
643
|
-
"events": []
|
|
644
|
-
}
|
|
645
|
-
},
|
|
646
|
-
{
|
|
647
|
-
"name": "w-pagination",
|
|
648
|
-
"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.",
|
|
649
|
-
"doc-url": "",
|
|
650
|
-
"attributes": [
|
|
651
|
-
{ "name": "base-url", "value": { "type": "string" } },
|
|
652
|
-
{ "name": "pages", "value": { "type": "number" } },
|
|
653
|
-
{
|
|
654
|
-
"name": "current-page",
|
|
655
|
-
"value": { "type": "number", "default": "1" }
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
"name": "visible-pages",
|
|
659
|
-
"value": { "type": "number", "default": "7" }
|
|
660
|
-
}
|
|
661
|
-
],
|
|
662
|
-
"events": [
|
|
663
|
-
{
|
|
664
|
-
"name": "page-click",
|
|
665
|
-
"type": "CustomEvent",
|
|
666
|
-
"description": "Triggered when a link button in the pagination is clicked. Contains the page number in `string` form."
|
|
667
|
-
}
|
|
668
|
-
],
|
|
669
|
-
"js": {
|
|
670
|
-
"properties": [
|
|
671
|
-
{ "name": "baseUrl", "type": "string" },
|
|
672
|
-
{ "name": "pages", "type": "number" },
|
|
673
|
-
{ "name": "currentPageNumber", "type": "number" },
|
|
674
|
-
{ "name": "visiblePages", "type": "number" }
|
|
675
|
-
],
|
|
676
|
-
"events": [
|
|
677
|
-
{
|
|
678
|
-
"name": "page-click",
|
|
679
|
-
"type": "CustomEvent",
|
|
680
|
-
"description": "Triggered when a link button in the pagination is clicked. Contains the page number in `string` form."
|
|
681
|
-
}
|
|
682
|
-
]
|
|
683
|
-
}
|
|
684
|
-
},
|
|
685
376
|
{
|
|
686
377
|
"name": "w-pill",
|
|
687
378
|
"description": "Pill is a type of button that is often used as a filter, but can also be used as a rounded button for overlays, etc.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-pill--docs)\n---\n\n\n### **Events:**\n - **w-pill-click**\n- **w-pill-close**",
|
|
@@ -766,7 +457,6 @@
|
|
|
766
457
|
"description": "Renders the field in a readonly state.",
|
|
767
458
|
"value": { "type": "boolean" }
|
|
768
459
|
},
|
|
769
|
-
{ "name": "_options", "value": { "type": "string" } },
|
|
770
460
|
{ "name": "name", "value": { "type": "string" } },
|
|
771
461
|
{ "name": "value", "value": { "type": "string" } }
|
|
772
462
|
],
|
|
@@ -814,81 +504,11 @@
|
|
|
814
504
|
"type": "boolean"
|
|
815
505
|
},
|
|
816
506
|
{ "name": "name", "type": "string" },
|
|
817
|
-
{ "name": "value", "type": "string" }
|
|
818
|
-
{ "name": "_options" }
|
|
819
|
-
],
|
|
820
|
-
"events": []
|
|
821
|
-
}
|
|
822
|
-
},
|
|
823
|
-
{
|
|
824
|
-
"name": "w-steps",
|
|
825
|
-
"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",
|
|
826
|
-
"doc-url": "",
|
|
827
|
-
"attributes": [
|
|
828
|
-
{
|
|
829
|
-
"name": "horizontal",
|
|
830
|
-
"value": { "type": "boolean", "default": "false" }
|
|
831
|
-
},
|
|
832
|
-
{
|
|
833
|
-
"name": "right",
|
|
834
|
-
"value": { "type": "boolean", "default": "false" }
|
|
835
|
-
}
|
|
836
|
-
],
|
|
837
|
-
"events": [],
|
|
838
|
-
"js": {
|
|
839
|
-
"properties": [
|
|
840
|
-
{ "name": "horizontal", "type": "boolean" },
|
|
841
|
-
{ "name": "right", "type": "boolean" }
|
|
842
|
-
],
|
|
843
|
-
"events": []
|
|
844
|
-
}
|
|
845
|
-
},
|
|
846
|
-
{
|
|
847
|
-
"name": "w-step",
|
|
848
|
-
"description": "Individual step component that shows a single step in a process\n---\n",
|
|
849
|
-
"doc-url": "",
|
|
850
|
-
"attributes": [
|
|
851
|
-
{
|
|
852
|
-
"name": "active",
|
|
853
|
-
"value": { "type": "boolean", "default": "false" }
|
|
854
|
-
},
|
|
855
|
-
{
|
|
856
|
-
"name": "completed",
|
|
857
|
-
"value": { "type": "boolean", "default": "false" }
|
|
858
|
-
}
|
|
859
|
-
],
|
|
860
|
-
"events": [],
|
|
861
|
-
"js": {
|
|
862
|
-
"properties": [
|
|
863
|
-
{ "name": "active", "type": "boolean" },
|
|
864
|
-
{ "name": "completed", "type": "boolean" }
|
|
507
|
+
{ "name": "value", "type": "string" }
|
|
865
508
|
],
|
|
866
509
|
"events": []
|
|
867
510
|
}
|
|
868
511
|
},
|
|
869
|
-
{
|
|
870
|
-
"name": "w-switch",
|
|
871
|
-
"description": "\n---\n\n\n### **Events:**\n - **change**",
|
|
872
|
-
"doc-url": "",
|
|
873
|
-
"attributes": [
|
|
874
|
-
{
|
|
875
|
-
"name": "value",
|
|
876
|
-
"value": { "type": "boolean", "default": "false" }
|
|
877
|
-
},
|
|
878
|
-
{
|
|
879
|
-
"name": "disabled",
|
|
880
|
-
"value": { "type": "boolean", "default": "false" }
|
|
881
|
-
}
|
|
882
|
-
],
|
|
883
|
-
"events": [{ "name": "change", "type": "CustomEvent" }],
|
|
884
|
-
"js": {
|
|
885
|
-
"properties": [
|
|
886
|
-
{ "name": "value", "type": "boolean" },
|
|
887
|
-
{ "name": "disabled", "type": "boolean" }
|
|
888
|
-
],
|
|
889
|
-
"events": [{ "name": "change", "type": "CustomEvent" }]
|
|
890
|
-
}
|
|
891
|
-
},
|
|
892
512
|
{
|
|
893
513
|
"name": "w-textfield",
|
|
894
514
|
"description": "A single line text input element.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)\n---\n",
|
|
@@ -934,10 +554,102 @@
|
|
|
934
554
|
{ "name": "required", "type": "boolean" },
|
|
935
555
|
{ "name": "type", "type": "string" },
|
|
936
556
|
{ "name": "value", "type": "string" },
|
|
937
|
-
{ "name": "name", "type": "string" }
|
|
557
|
+
{ "name": "name", "type": "string" },
|
|
558
|
+
{
|
|
559
|
+
"name": "formatter",
|
|
560
|
+
"description": "Function to format value when the input field.\n\nOnly active when the input field does not have focus,\nsimilar to the accessible input masking example from Filament Group\n\nhttps://css-tricks.com/input-masking/\nhttps://filamentgroup.github.io/politespace/demo/demo.html",
|
|
561
|
+
"type": "(value: string) => string"
|
|
562
|
+
}
|
|
938
563
|
],
|
|
939
564
|
"events": []
|
|
940
565
|
}
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"name": "w-modal-footer",
|
|
569
|
+
"description": "The footer section of a modal, typically where you place actions.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n---\n",
|
|
570
|
+
"doc-url": "",
|
|
571
|
+
"attributes": [],
|
|
572
|
+
"events": [],
|
|
573
|
+
"js": { "properties": [], "events": [] }
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"name": "w-modal-header",
|
|
577
|
+
"description": "The header section of a modal, typically where you place the title and a close button.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n---\n\n\n### **Events:**\n - **backClicked**\n\n### **Slots:**\n - **top** - Customize the title bar, for example to have a header image that reaches the modal's edges. See the With Image story for an example.",
|
|
578
|
+
"doc-url": "",
|
|
579
|
+
"attributes": [
|
|
580
|
+
{ "name": "title", "value": { "type": "string" } },
|
|
581
|
+
{ "name": "back", "value": { "type": "boolean" } },
|
|
582
|
+
{ "name": "no-close", "value": { "type": "boolean" } }
|
|
583
|
+
],
|
|
584
|
+
"slots": [
|
|
585
|
+
{
|
|
586
|
+
"name": "top",
|
|
587
|
+
"description": "Customize the title bar, for example to have a header image that reaches the modal's edges. See the With Image story for an example."
|
|
588
|
+
}
|
|
589
|
+
],
|
|
590
|
+
"events": [{ "name": "backClicked", "type": "CustomEvent" }],
|
|
591
|
+
"js": {
|
|
592
|
+
"properties": [
|
|
593
|
+
{ "name": "title", "type": "string" },
|
|
594
|
+
{ "name": "back", "type": "boolean" },
|
|
595
|
+
{ "name": "noClose", "type": "boolean" },
|
|
596
|
+
{ "name": "titleEl", "type": "HTMLElement" },
|
|
597
|
+
{ "name": "titleClasses" },
|
|
598
|
+
{ "name": "backButton" },
|
|
599
|
+
{ "name": "closeButton" }
|
|
600
|
+
],
|
|
601
|
+
"events": [{ "name": "backClicked", "type": "CustomEvent" }]
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"name": "w-modal",
|
|
606
|
+
"description": "Modals (or dialogs) display important information that users need to acknowledge.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)\n---\n\n\n### **Events:**\n - **shown**\n- **hidden**\n\n### **Slots:**\n - **header** - Typically where you would use the `w-modal-header` component.\n- **content** - The main content of the modal.\n- **footer** - Typically where you would use the `w-modal-footer` component, for things like actions.",
|
|
607
|
+
"doc-url": "",
|
|
608
|
+
"attributes": [
|
|
609
|
+
{ "name": "show", "value": { "type": "boolean" } },
|
|
610
|
+
{ "name": "content-id", "value": { "type": "string" } },
|
|
611
|
+
{ "name": "ignore-backdrop-clicks", "value": { "type": "boolean" } }
|
|
612
|
+
],
|
|
613
|
+
"slots": [
|
|
614
|
+
{
|
|
615
|
+
"name": "header",
|
|
616
|
+
"description": "Typically where you would use the `w-modal-header` component."
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"name": "content",
|
|
620
|
+
"description": "The main content of the modal."
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"name": "footer",
|
|
624
|
+
"description": "Typically where you would use the `w-modal-footer` component, for things like actions."
|
|
625
|
+
}
|
|
626
|
+
],
|
|
627
|
+
"events": [
|
|
628
|
+
{ "name": "shown", "type": "CustomEvent" },
|
|
629
|
+
{ "name": "hidden", "type": "CustomEvent" }
|
|
630
|
+
],
|
|
631
|
+
"js": {
|
|
632
|
+
"properties": [
|
|
633
|
+
{ "name": "show", "type": "boolean" },
|
|
634
|
+
{ "name": "contentId", "type": "string" },
|
|
635
|
+
{ "name": "ignoreBackdropClicks", "type": "boolean" },
|
|
636
|
+
{ "name": "dialogEl", "type": "HTMLDialogElement" },
|
|
637
|
+
{ "name": "dialogInnerEl", "type": "HTMLElement" },
|
|
638
|
+
{ "name": "contentEl", "type": "HTMLElement" }
|
|
639
|
+
],
|
|
640
|
+
"events": [
|
|
641
|
+
{ "name": "shown", "type": "CustomEvent" },
|
|
642
|
+
{ "name": "hidden", "type": "CustomEvent" }
|
|
643
|
+
]
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"name": "w-toast-container",
|
|
648
|
+
"description": "\n---\n",
|
|
649
|
+
"doc-url": "",
|
|
650
|
+
"attributes": [],
|
|
651
|
+
"events": [],
|
|
652
|
+
"js": { "properties": [], "events": [] }
|
|
941
653
|
}
|
|
942
654
|
]
|
|
943
655
|
},
|