@warp-ds/elements 2.2.0-next.2 → 2.2.0-next.21
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 +228 -28
- package/dist/.storybook/utilities.d.ts +28 -0
- package/dist/.storybook/utilities.js +52 -0
- package/dist/api.js +1 -49
- package/dist/api.js.map +4 -4
- package/dist/custom-elements.json +7146 -0
- package/dist/index.d.ts +1847 -18
- 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.d.ts +10 -0
- package/dist/packages/affix/affix.stories.js +25 -0
- package/dist/packages/affix/affix.test.d.ts +1 -0
- package/dist/packages/affix/affix.test.js +9 -0
- package/dist/packages/affix/index.d.ts +47 -24
- package/dist/packages/affix/index.js +2448 -2240
- package/dist/packages/affix/index.js.map +4 -4
- package/dist/packages/affix/react.d.ts +2 -0
- package/dist/packages/affix/react.js +15 -0
- package/dist/packages/affix/styles.d.ts +1 -0
- 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.d.ts +15 -0
- package/dist/packages/alert/alert.stories.js +68 -0
- package/dist/packages/alert/alert.test.d.ts +1 -0
- package/dist/packages/alert/alert.test.js +18 -0
- package/dist/packages/alert/index.d.ts +21 -16
- package/dist/packages/alert/index.js +2452 -2446
- package/dist/packages/alert/index.js.map +4 -4
- package/dist/packages/alert/react.d.ts +2 -0
- package/dist/packages/alert/react.js +11 -0
- package/dist/packages/alert/styles.d.ts +1 -0
- 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 +15 -0
- package/dist/packages/attention/attention.stories.js +173 -0
- package/dist/packages/attention/attention.test.d.ts +1 -0
- package/dist/packages/attention/attention.test.js +11 -0
- package/dist/packages/attention/index.d.ts +62 -89
- package/dist/packages/attention/index.js +3521 -3924
- package/dist/packages/attention/index.js.map +4 -4
- package/dist/packages/attention/layout-styles.d.ts +1 -0
- 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 -0
- package/dist/packages/attention/react.js +17 -0
- package/dist/packages/attention/styles.d.ts +1 -0
- 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.d.ts +17 -0
- package/dist/packages/badge/badge.stories.js +68 -0
- package/dist/packages/badge/badge.test.d.ts +1 -0
- package/dist/packages/badge/badge.test.js +9 -0
- package/dist/packages/badge/index.d.ts +12 -11
- package/dist/packages/badge/index.js +2441 -300
- package/dist/packages/badge/index.js.map +4 -4
- package/dist/packages/badge/react.d.ts +2 -0
- package/dist/packages/badge/react.js +11 -0
- package/dist/packages/badge/styles.d.ts +1 -0
- 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.d.ts +14 -0
- package/dist/packages/box/box.stories.js +59 -0
- package/dist/packages/box/box.test.d.ts +1 -0
- package/dist/packages/box/box.test.js +9 -0
- package/dist/packages/box/index.d.ts +17 -20
- package/dist/packages/box/index.js +2443 -299
- package/dist/packages/box/index.js.map +4 -4
- package/dist/packages/box/react.d.ts +2 -0
- package/dist/packages/box/react.js +11 -0
- package/dist/packages/box/slot.test.d.ts +1 -0
- package/dist/packages/box/slot.test.js +9 -0
- package/dist/packages/box/styles.d.ts +1 -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.d.ts +12 -0
- package/dist/packages/breadcrumbs/breadcrumbs.stories.js +60 -0
- package/dist/packages/breadcrumbs/breadcrumbs.test.d.ts +1 -0
- package/dist/packages/breadcrumbs/breadcrumbs.test.js +16 -0
- package/dist/packages/breadcrumbs/index.d.ts +19 -16
- package/dist/packages/breadcrumbs/index.js +2402 -2051
- 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 +2 -0
- package/dist/packages/breadcrumbs/react.js +11 -0
- package/dist/packages/breadcrumbs/styles.d.ts +1 -0
- 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 +21 -0
- package/dist/packages/button/button.stories.js +119 -0
- package/dist/packages/button/button.test.d.ts +1 -0
- package/dist/packages/button/button.test.js +25 -0
- package/dist/packages/button/index.d.ts +106 -56
- package/dist/packages/button/index.js +2618 -2130
- 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 +2 -0
- package/dist/packages/button/react.js +11 -0
- package/dist/packages/button/styles.d.ts +1 -0
- 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.d.ts +15 -0
- package/dist/packages/card/card.stories.js +82 -0
- package/dist/packages/card/card.test.d.ts +1 -0
- package/dist/packages/card/card.test.js +9 -0
- package/dist/packages/card/index.d.ts +27 -15
- package/dist/packages/card/index.js +2403 -2067
- 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 +2 -0
- package/dist/packages/card/react.js +11 -0
- package/dist/packages/card/styles.d.ts +1 -0
- package/dist/packages/card/styles.js +2 -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 +95 -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 +2785 -0
- package/dist/packages/datepicker/index.js.map +7 -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 +16 -0
- package/dist/packages/dead-toggle/index.js +2487 -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/expandable/expandable.react.stories.d.ts +18 -0
- package/dist/packages/expandable/expandable.react.stories.js +103 -0
- package/dist/packages/expandable/expandable.stories.d.ts +19 -0
- package/dist/packages/expandable/expandable.stories.js +133 -0
- package/dist/packages/expandable/expandable.test.d.ts +1 -0
- package/dist/packages/expandable/expandable.test.js +24 -0
- package/dist/packages/expandable/index.d.ts +52 -50
- package/dist/packages/expandable/index.js +2424 -2286
- package/dist/packages/expandable/index.js.map +4 -4
- package/dist/packages/expandable/react.d.ts +2 -0
- package/dist/packages/expandable/react.js +11 -0
- package/dist/packages/expandable/styles.d.ts +1 -0
- package/dist/packages/expandable/styles.js +2 -0
- package/dist/packages/i18n.js +45 -0
- package/dist/packages/link/index.d.ts +34 -0
- package/dist/packages/link/index.js +2646 -0
- 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/link/styles.d.ts +1 -0
- package/dist/packages/link/styles.js +200 -0
- package/dist/packages/modal/index.d.ts +4 -5
- package/dist/packages/modal/index.js +2649 -2575
- 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 +13 -11
- package/dist/packages/modal/modal-footer.js +2460 -0
- package/dist/packages/modal/modal-footer.js.map +7 -0
- package/dist/packages/modal/modal-header.d.ts +25 -31
- package/dist/packages/modal/modal-header.js +2584 -0
- package/dist/packages/modal/modal-header.js.map +7 -0
- package/dist/packages/modal/modal-main.d.ts +27 -31
- package/dist/packages/modal/modal-main.js +2572 -0
- package/dist/packages/modal/modal-main.js.map +7 -0
- 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 +19 -0
- package/dist/packages/modal/modal.stories.js +160 -0
- package/dist/packages/modal/react.d.ts +12 -0
- package/dist/packages/modal/react.js +31 -0
- package/dist/packages/modal/util.d.ts +7 -17
- package/dist/packages/modal/util.js +21 -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/pagination/index.d.ts +32 -0
- package/dist/packages/pagination/index.js +2500 -0
- package/dist/packages/pagination/index.js.map +7 -0
- package/dist/packages/pagination/locales/da/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/da/messages.mjs +1 -0
- package/dist/packages/pagination/locales/en/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/en/messages.mjs +1 -0
- package/dist/packages/pagination/locales/fi/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/fi/messages.mjs +1 -0
- package/dist/packages/pagination/locales/nb/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/nb/messages.mjs +1 -0
- package/dist/packages/pagination/locales/sv/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/sv/messages.mjs +1 -0
- package/dist/packages/pagination/pagination.react.stories.d.ts +21 -0
- package/dist/packages/pagination/pagination.react.stories.js +45 -0
- package/dist/packages/pagination/pagination.stories.d.ts +14 -0
- package/dist/packages/pagination/pagination.stories.js +56 -0
- package/dist/packages/pagination/pagination.test.d.ts +1 -0
- package/dist/packages/pagination/pagination.test.js +76 -0
- package/dist/packages/pagination/react.d.ts +5 -0
- package/dist/packages/pagination/react.js +15 -0
- package/dist/packages/pagination/styles.d.ts +1 -0
- package/dist/packages/pagination/styles.js +2 -0
- package/dist/packages/pill/index.d.ts +39 -23
- package/dist/packages/pill/index.js +2408 -2175
- package/dist/packages/pill/index.js.map +4 -4
- 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.d.ts +12 -0
- package/dist/packages/pill/pill.stories.js +33 -0
- package/dist/packages/pill/pill.test.d.ts +1 -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.d.ts +1 -0
- package/dist/packages/pill/styles.js +2 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.d.ts +64 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.js +160 -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 +160 -0
- package/dist/packages/rip-and-tear-checkbox/index.js.map +7 -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 +1 -0
- package/dist/packages/rip-and-tear-checkbox/styles.js +116 -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 +270 -0
- package/dist/packages/rip-and-tear-radio/index.js.map +7 -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 +60 -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 +270 -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 +1 -0
- package/dist/packages/rip-and-tear-radio/radio-styles.js +170 -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 +183 -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 +275 -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/select/index.d.ts +56 -50
- package/dist/packages/select/index.js +2421 -2236
- package/dist/packages/select/index.js.map +4 -4
- 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 -0
- package/dist/packages/select/react.js +20 -0
- 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 +10 -0
- package/dist/packages/select/select.stories.js +31 -0
- package/dist/packages/select/select.test.d.ts +1 -0
- package/dist/packages/select/select.test.js +31 -0
- package/dist/packages/select/styles.d.ts +1 -0
- package/dist/packages/select/styles.js +2 -0
- package/dist/packages/slider/Slider.d.ts +2 -0
- package/dist/packages/slider/Slider.js +8 -0
- package/dist/packages/slider/SliderThumb.d.ts +2 -0
- package/dist/packages/slider/SliderThumb.js +8 -0
- package/dist/packages/slider/index.d.ts +2 -0
- package/dist/packages/slider/index.js +2791 -0
- package/dist/packages/slider/index.js.map +7 -0
- package/dist/packages/slider/oddbird-css-anchor-positioning.d.ts +2 -0
- package/dist/packages/slider/oddbird-css-anchor-positioning.js +3 -0
- package/dist/packages/slider/react.d.ts +8 -0
- package/dist/packages/slider/react.js +20 -0
- package/dist/packages/slider/slider-thumb.d.ts +57 -0
- package/dist/packages/slider/slider-thumb.js +2663 -0
- package/dist/packages/slider/slider-thumb.js.map +7 -0
- package/dist/packages/slider/slider.d.ts +46 -0
- package/dist/packages/slider/slider.js +2569 -0
- package/dist/packages/slider/slider.js.map +7 -0
- package/dist/packages/slider/slider.react.stories.d.ts +18 -0
- package/dist/packages/slider/slider.react.stories.js +119 -0
- package/dist/packages/slider/slider.stories.d.ts +17 -0
- package/dist/packages/slider/slider.stories.js +203 -0
- package/dist/packages/slider/slider.test.d.ts +4 -0
- package/dist/packages/slider/slider.test.js +83 -0
- package/dist/packages/slider/styles/w-slider-thumb.styles.d.ts +1 -0
- package/dist/packages/slider/styles/w-slider-thumb.styles.js +132 -0
- package/dist/packages/slider/styles/w-slider.styles.d.ts +1 -0
- package/dist/packages/slider/styles/w-slider.styles.js +118 -0
- package/dist/packages/slider/styles.d.ts +1 -0
- package/dist/packages/slider/styles.js +2 -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/styles.d.ts +2 -0
- package/dist/packages/styles.js +2442 -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 +2470 -0
- package/dist/packages/tabs/index.js.map +7 -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 +2441 -0
- package/dist/packages/tabs/tab-panel.js.map +7 -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 +2545 -0
- package/dist/packages/tabs/tabs.stories.js.map +7 -0
- package/dist/packages/textfield/index.d.ts +78 -74
- package/dist/packages/textfield/index.js +2514 -422
- package/dist/packages/textfield/index.js.map +4 -4
- package/dist/packages/textfield/react.d.ts +11 -0
- package/dist/packages/textfield/react.js +21 -0
- package/dist/packages/textfield/styles/w-textfield.styles.d.ts +1 -0
- package/dist/packages/textfield/styles/w-textfield.styles.js +46 -0
- package/dist/packages/textfield/styles.d.ts +1 -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 +18 -0
- package/dist/packages/textfield/textfield.stories.js +105 -0
- package/dist/packages/textfield/textfield.test.d.ts +2 -0
- package/dist/packages/textfield/textfield.test.js +68 -0
- package/dist/packages/toast/api.d.ts +4 -45
- package/dist/packages/toast/api.js +41 -0
- package/dist/packages/toast/index.d.ts +3 -0
- package/dist/packages/toast/index.js +2466 -2787
- 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.d.ts +1 -0
- package/dist/packages/toast/styles.js +2 -0
- package/dist/packages/toast/toast-container.d.ts +12 -63
- package/dist/packages/toast/toast-container.js +2458 -0
- package/dist/packages/toast/toast-container.js.map +7 -0
- package/dist/packages/toast/toast.d.ts +34 -29
- package/dist/packages/toast/toast.js +2466 -0
- package/dist/packages/toast/toast.js.map +7 -0
- package/dist/packages/toast/toast.stories.d.ts +12 -0
- package/dist/packages/toast/toast.stories.js +50 -0
- package/dist/packages/toast/types.d.ts +15 -0
- package/dist/packages/toast/types.js +1 -0
- package/dist/packages/utils/expand-transition.d.ts +3 -2
- package/dist/packages/utils/expand-transition.js +59 -0
- package/dist/packages/utils/index.d.ts +1 -1
- package/dist/packages/utils/index.js +2 -0
- package/dist/packages/utils/index.js.map +7 -0
- package/dist/packages/utils/unstyled-heading.d.ts +3 -3
- package/dist/packages/utils/unstyled-heading.js +22 -0
- package/dist/packages/utils/window-exists.js +1 -0
- package/dist/setup-tests.d.ts +1 -0
- package/dist/setup-tests.js +1 -0
- package/dist/vscode.css-custom-data.json +6 -0
- package/dist/vscode.html-custom-data.json +738 -0
- package/dist/web-types.json +1693 -0
- package/package.json +93 -37
- package/dist/index.js +0 -6838
- package/dist/index.js.map +0 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,1847 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
|
|
2
|
+
import type { WarpAlert } from "./packages/alert/index.ts";
|
|
3
|
+
import type { ccSuffix, ccPrefix, WarpAffix } from "./packages/affix/index.ts";
|
|
4
|
+
import type { WarpLink } from "./packages/link/index.ts";
|
|
5
|
+
import type { ccButton, WarpButton } from "./packages/button/index.ts";
|
|
6
|
+
import type { ccAttention, WarpAttention } from "./packages/attention/index.ts";
|
|
7
|
+
import type { WarpBadge } from "./packages/badge/index.ts";
|
|
8
|
+
import type { WarpBox } from "./packages/box/index.ts";
|
|
9
|
+
import type { ccBreadcrumbs, WarpBreadcrumbs } from "./packages/breadcrumbs/index.ts";
|
|
10
|
+
import type { ccCard, WarpCard } from "./packages/card/index.ts";
|
|
11
|
+
import type { ccCombobox, WarpCombobox } from "./packages/combobox/index.ts";
|
|
12
|
+
import type { WarpDatepicker } from "./packages/datepicker/datepicker.ts";
|
|
13
|
+
import type { WarpDeadToggle } from "./packages/dead-toggle/index.ts";
|
|
14
|
+
import type { ccBox, ccExpandable, WarpExpandable } from "./packages/expandable/index.ts";
|
|
15
|
+
import type { ModalFooter } from "./packages/modal/modal-footer.ts";
|
|
16
|
+
import type { ModalHeader } from "./packages/modal/modal-header.ts";
|
|
17
|
+
import type { ModalMain } from "./packages/modal/modal-main.ts";
|
|
18
|
+
import type { WarpPageIndicator } from "./packages/pageindicator/index.ts";
|
|
19
|
+
import type { WarpPagination } from "./packages/pagination/index.ts";
|
|
20
|
+
import type { pillStyles, WarpPill } from "./packages/pill/index.ts";
|
|
21
|
+
import type { WCheckbox } from "./packages/rip-and-tear-checkbox/checkbox.ts";
|
|
22
|
+
import type { WRadio } from "./packages/rip-and-tear-radio/radio.ts";
|
|
23
|
+
import type { WRadioGroup } from "./packages/rip-and-tear-radio/radio-group.ts";
|
|
24
|
+
import type { ccSelect, ccLabel, ccHelpText, WarpSelect } from "./packages/select/index.ts";
|
|
25
|
+
import type { ccinput, WarpTextField } from "./packages/textfield/index.ts";
|
|
26
|
+
import type { WarpSliderThumb } from "./packages/slider/slider-thumb.ts";
|
|
27
|
+
import type { WarpSlider } from "./packages/slider/slider.ts";
|
|
28
|
+
import type { WarpSteps, WarpStep } from "./packages/steps/index.ts";
|
|
29
|
+
import type { WarpSwitch } from "./packages/switch/index.ts";
|
|
30
|
+
import type { WarpTab } from "./packages/tabs/tab.ts";
|
|
31
|
+
import type { WarpTabPanel } from "./packages/tabs/tab-panel.ts";
|
|
32
|
+
import type { WarpTabs } from "./packages/tabs/tabs.ts";
|
|
33
|
+
import type { WarpToastContainer } from "./packages/toast/toast-container.ts";
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* This type can be used to create scoped tags for your components.
|
|
37
|
+
*
|
|
38
|
+
* Usage:
|
|
39
|
+
*
|
|
40
|
+
* ```ts
|
|
41
|
+
* import type { ScopedElements } from "path/to/library/jsx-integration";
|
|
42
|
+
*
|
|
43
|
+
* declare module "my-library" {
|
|
44
|
+
* namespace JSX {
|
|
45
|
+
* interface IntrinsicElements
|
|
46
|
+
* extends ScopedElements<'test-', ''> {}
|
|
47
|
+
* }
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @deprecated Runtime scoped elements result in duplicate types and can confusing for developers. It is recommended to use the `prefix` and `suffix` options to generate new types instead.
|
|
52
|
+
*/
|
|
53
|
+
export type ScopedElements<
|
|
54
|
+
Prefix extends string = "",
|
|
55
|
+
Suffix extends string = ""
|
|
56
|
+
> = {
|
|
57
|
+
[Key in keyof CustomElements as `${Prefix}${Key}${Suffix}`]: CustomElements[Key];
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
type BaseProps<T extends HTMLElement> = {
|
|
61
|
+
|
|
62
|
+
/** Content added between the opening and closing tags of the element */
|
|
63
|
+
children?: any;
|
|
64
|
+
/** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
|
|
65
|
+
class?: string;
|
|
66
|
+
/** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
|
|
67
|
+
className?: string;
|
|
68
|
+
/** Takes an object where the key is the class name(s) and the value is a boolean expression. When true, the class is applied, and when false, it is removed. */
|
|
69
|
+
classList?: Record<string, boolean | undefined>;
|
|
70
|
+
/** Specifies the text direction of the element. */
|
|
71
|
+
dir?: "ltr" | "rtl";
|
|
72
|
+
/** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
|
|
73
|
+
exportparts?: string;
|
|
74
|
+
/** For <label> and <output>, lets you associate the label with some control. */
|
|
75
|
+
htmlFor?: string;
|
|
76
|
+
/** Specifies whether the element should be hidden. */
|
|
77
|
+
hidden?: boolean | string;
|
|
78
|
+
/** A unique identifier for the element. */
|
|
79
|
+
id?: string;
|
|
80
|
+
/** Keys tell React which array item each component corresponds to */
|
|
81
|
+
key?: string | number;
|
|
82
|
+
/** Specifies the language of the element. */
|
|
83
|
+
lang?: string;
|
|
84
|
+
/** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
|
|
85
|
+
part?: string;
|
|
86
|
+
/** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
|
|
87
|
+
ref?: T | ((e: T) => void);
|
|
88
|
+
/** Adds a reference for a custom element slot */
|
|
89
|
+
slot?: string;
|
|
90
|
+
/** Prop for setting inline styles */
|
|
91
|
+
style?: Record<string, string | number>;
|
|
92
|
+
/** Overrides the default Tab button behavior. Avoid using values other than -1 and 0. */
|
|
93
|
+
tabIndex?: number;
|
|
94
|
+
/** Specifies the tooltip text for the element. */
|
|
95
|
+
title?: string;
|
|
96
|
+
/** Passing 'no' excludes the element content from being translated. */
|
|
97
|
+
translate?: "yes" | "no";
|
|
98
|
+
/** The popover global attribute is used to designate an element as a popover element. */
|
|
99
|
+
popover?: "auto" | "hint" | "manual";
|
|
100
|
+
/** Turns an element element into a popover control button; takes the ID of the popover element to control as its value. */
|
|
101
|
+
popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
|
|
102
|
+
/** Specifies the action to be performed on a popover element being controlled by a control element. */
|
|
103
|
+
popovertargetaction?: "show" | "hide" | "toggle";
|
|
104
|
+
|
|
105
|
+
} ;
|
|
106
|
+
|
|
107
|
+
type BaseEvents = {
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
export type WarpAlertProps = {
|
|
115
|
+
/** */
|
|
116
|
+
"variant"?: WarpAlert['variant'];
|
|
117
|
+
/** */
|
|
118
|
+
"show"?: WarpAlert['show'];
|
|
119
|
+
/** */
|
|
120
|
+
"role"?: WarpAlert['role'];
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
export type WarpAffixProps = {
|
|
127
|
+
/** */
|
|
128
|
+
"aria-label"?: WarpAffix['ariaLabel'];
|
|
129
|
+
/** */
|
|
130
|
+
"ariaLabel"?: WarpAffix['ariaLabel'];
|
|
131
|
+
/** Add this property to render a clickable Warp close icon.
|
|
132
|
+
|
|
133
|
+
Set an `aria-label` that explains the action when using this. */
|
|
134
|
+
"clear"?: WarpAffix['clear'];
|
|
135
|
+
/** Add this property to render a clickable Warp search icon.
|
|
136
|
+
|
|
137
|
+
Set an `aria-label` that explains the action when using this. */
|
|
138
|
+
"search"?: WarpAffix['search'];
|
|
139
|
+
/** */
|
|
140
|
+
"label"?: WarpAffix['label'];
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
export type WarpLinkProps = {
|
|
147
|
+
/** */
|
|
148
|
+
"autofocus"?: WarpLink['autofocus'];
|
|
149
|
+
/** */
|
|
150
|
+
"variant"?: WarpLink['variant'];
|
|
151
|
+
/** */
|
|
152
|
+
"quiet"?: WarpLink['quiet'];
|
|
153
|
+
/** */
|
|
154
|
+
"small"?: WarpLink['small'];
|
|
155
|
+
/** */
|
|
156
|
+
"href"?: WarpLink['href'];
|
|
157
|
+
/** */
|
|
158
|
+
"disabled"?: WarpLink['disabled'];
|
|
159
|
+
/** */
|
|
160
|
+
"target"?: WarpLink['target'];
|
|
161
|
+
/** */
|
|
162
|
+
"rel"?: WarpLink['rel'];
|
|
163
|
+
/** */
|
|
164
|
+
"full-width"?: WarpLink['fullWidth'];
|
|
165
|
+
/** */
|
|
166
|
+
"fullWidth"?: WarpLink['fullWidth'];
|
|
167
|
+
/** */
|
|
168
|
+
"button-class"?: WarpLink['buttonClass'];
|
|
169
|
+
/** */
|
|
170
|
+
"buttonClass"?: WarpLink['buttonClass'];
|
|
171
|
+
/** */
|
|
172
|
+
"name"?: WarpLink['name'];
|
|
173
|
+
/** */
|
|
174
|
+
"classes"?: WarpLink['classes'];
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
export type WarpButtonProps = {
|
|
181
|
+
/** */
|
|
182
|
+
"type"?: WarpButton['type'];
|
|
183
|
+
/** */
|
|
184
|
+
"autofocus"?: WarpButton['autofocus'];
|
|
185
|
+
/** */
|
|
186
|
+
"variant"?: WarpButton['variant'];
|
|
187
|
+
/** */
|
|
188
|
+
"quiet"?: WarpButton['quiet'];
|
|
189
|
+
/** */
|
|
190
|
+
"small"?: WarpButton['small'];
|
|
191
|
+
/** */
|
|
192
|
+
"loading"?: WarpButton['loading'];
|
|
193
|
+
/** */
|
|
194
|
+
"href"?: WarpButton['href'];
|
|
195
|
+
/** */
|
|
196
|
+
"target"?: WarpButton['target'];
|
|
197
|
+
/** */
|
|
198
|
+
"rel"?: WarpButton['rel'];
|
|
199
|
+
/** */
|
|
200
|
+
"full-width"?: WarpButton['fullWidth'];
|
|
201
|
+
/** */
|
|
202
|
+
"fullWidth"?: WarpButton['fullWidth'];
|
|
203
|
+
/** */
|
|
204
|
+
"button-class"?: WarpButton['buttonClass'];
|
|
205
|
+
/** */
|
|
206
|
+
"buttonClass"?: WarpButton['buttonClass'];
|
|
207
|
+
/** */
|
|
208
|
+
"name"?: WarpButton['name'];
|
|
209
|
+
/** */
|
|
210
|
+
"value"?: WarpButton['value'];
|
|
211
|
+
/** */
|
|
212
|
+
"ariaValueTextLoading"?: WarpButton['ariaValueTextLoading'];
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
export type WarpAttentionProps = {
|
|
219
|
+
/** */
|
|
220
|
+
"show"?: WarpAttention['show'];
|
|
221
|
+
/** */
|
|
222
|
+
"placement"?: WarpAttention['placement'];
|
|
223
|
+
/** */
|
|
224
|
+
"tooltip"?: WarpAttention['tooltip'];
|
|
225
|
+
/** */
|
|
226
|
+
"callout"?: WarpAttention['callout'];
|
|
227
|
+
/** */
|
|
228
|
+
"popover"?: WarpAttention['popover'];
|
|
229
|
+
/** */
|
|
230
|
+
"highlight"?: WarpAttention['highlight'];
|
|
231
|
+
/** */
|
|
232
|
+
"can-close"?: WarpAttention['canClose'];
|
|
233
|
+
/** */
|
|
234
|
+
"canClose"?: WarpAttention['canClose'];
|
|
235
|
+
/** */
|
|
236
|
+
"no-arrow"?: WarpAttention['noArrow'];
|
|
237
|
+
/** */
|
|
238
|
+
"noArrow"?: WarpAttention['noArrow'];
|
|
239
|
+
/** */
|
|
240
|
+
"distance"?: WarpAttention['distance'];
|
|
241
|
+
/** */
|
|
242
|
+
"skidding"?: WarpAttention['skidding'];
|
|
243
|
+
/** */
|
|
244
|
+
"flip"?: WarpAttention['flip'];
|
|
245
|
+
/** */
|
|
246
|
+
"cross-axis"?: WarpAttention['crossAxis'];
|
|
247
|
+
/** */
|
|
248
|
+
"crossAxis"?: WarpAttention['crossAxis'];
|
|
249
|
+
/** */
|
|
250
|
+
"fallback-placements"?: WarpAttention['fallbackPlacements'];
|
|
251
|
+
/** */
|
|
252
|
+
"fallbackPlacements"?: WarpAttention['fallbackPlacements'];
|
|
253
|
+
/** */
|
|
254
|
+
"_initialPlacement"?: WarpAttention['_initialPlacement'];
|
|
255
|
+
/** */
|
|
256
|
+
"_actualDirection"?: WarpAttention['_actualDirection'];
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
export type WarpBadgeProps = {
|
|
263
|
+
/** */
|
|
264
|
+
"variant"?: WarpBadge['variant'];
|
|
265
|
+
/** */
|
|
266
|
+
"position"?: WarpBadge['position'];
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
export type WarpBoxProps = {
|
|
273
|
+
/** */
|
|
274
|
+
"bleed"?: WarpBox['bleed'];
|
|
275
|
+
/** */
|
|
276
|
+
"bordered"?: WarpBox['bordered'];
|
|
277
|
+
/** */
|
|
278
|
+
"info"?: WarpBox['info'];
|
|
279
|
+
/** */
|
|
280
|
+
"neutral"?: WarpBox['neutral'];
|
|
281
|
+
/** */
|
|
282
|
+
"role"?: WarpBox['role'];
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
export type WarpBreadcrumbsProps = {
|
|
289
|
+
/** */
|
|
290
|
+
"aria-label"?: WarpBreadcrumbs['ariaLabel'];
|
|
291
|
+
/** */
|
|
292
|
+
"ariaLabel"?: WarpBreadcrumbs['ariaLabel'];
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
export type WarpCardProps = {
|
|
299
|
+
/** */
|
|
300
|
+
"selected"?: WarpCard['selected'];
|
|
301
|
+
/** */
|
|
302
|
+
"flat"?: WarpCard['flat'];
|
|
303
|
+
/** */
|
|
304
|
+
"clickable"?: WarpCard['clickable'];
|
|
305
|
+
/** */
|
|
306
|
+
"buttonText"?: WarpCard['buttonText'];
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
export type WarpComboboxProps = {
|
|
313
|
+
/** The available options to select from */
|
|
314
|
+
"options"?: WarpCombobox['options'];
|
|
315
|
+
/** Label above input */
|
|
316
|
+
"label"?: WarpCombobox['label'];
|
|
317
|
+
/** Input placeholder */
|
|
318
|
+
"placeholder"?: WarpCombobox['placeholder'];
|
|
319
|
+
/** The input value */
|
|
320
|
+
"value"?: WarpCombobox['value'];
|
|
321
|
+
/** Whether the popover opens when focus is on the text field */
|
|
322
|
+
"open-on-focus"?: WarpCombobox['openOnFocus'];
|
|
323
|
+
/** Whether the popover opens when focus is on the text field */
|
|
324
|
+
"openOnFocus"?: WarpCombobox['openOnFocus'];
|
|
325
|
+
/** Select active option on blur */
|
|
326
|
+
"select-on-blur"?: WarpCombobox['selectOnBlur'];
|
|
327
|
+
/** Select active option on blur */
|
|
328
|
+
"selectOnBlur"?: WarpCombobox['selectOnBlur'];
|
|
329
|
+
/** Whether the matching text segments in the options should be highlighted */
|
|
330
|
+
"match-text-segments"?: WarpCombobox['matchTextSegments'];
|
|
331
|
+
/** Whether the matching text segments in the options should be highlighted */
|
|
332
|
+
"matchTextSegments"?: WarpCombobox['matchTextSegments'];
|
|
333
|
+
/** Disable client-side static filtering */
|
|
334
|
+
"disable-static-filtering"?: WarpCombobox['disableStaticFiltering'];
|
|
335
|
+
/** Disable client-side static filtering */
|
|
336
|
+
"disableStaticFiltering"?: WarpCombobox['disableStaticFiltering'];
|
|
337
|
+
/** Renders the input field in an invalid state */
|
|
338
|
+
"invalid"?: WarpCombobox['invalid'];
|
|
339
|
+
/** The content to display as the help text */
|
|
340
|
+
"help-text"?: WarpCombobox['helpText'];
|
|
341
|
+
/** The content to display as the help text */
|
|
342
|
+
"helpText"?: WarpCombobox['helpText'];
|
|
343
|
+
/** Whether the element is disabled */
|
|
344
|
+
"disabled"?: WarpCombobox['disabled'];
|
|
345
|
+
/** Whether the element is required */
|
|
346
|
+
"required"?: WarpCombobox['required'];
|
|
347
|
+
/** Whether to show optional text */
|
|
348
|
+
"optional"?: WarpCombobox['optional'];
|
|
349
|
+
/** Additional container styling */
|
|
350
|
+
"class-name"?: WarpCombobox['containerClassName'];
|
|
351
|
+
/** Additional container styling */
|
|
352
|
+
"containerClassName"?: WarpCombobox['containerClassName'];
|
|
353
|
+
/** Additional list styling */
|
|
354
|
+
"list-class-name"?: WarpCombobox['listClassName'];
|
|
355
|
+
/** Additional list styling */
|
|
356
|
+
"listClassName"?: WarpCombobox['listClassName'];
|
|
357
|
+
/** Name attribute for form submission */
|
|
358
|
+
"name"?: WarpCombobox['name'];
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
export type WarpDatepickerProps = {
|
|
365
|
+
/** */
|
|
366
|
+
"label"?: WarpDatepicker['label'];
|
|
367
|
+
/** Takes precedence over the `<html>` lang attribute. */
|
|
368
|
+
"lang"?: WarpDatepicker['lang'];
|
|
369
|
+
/** */
|
|
370
|
+
"name"?: WarpDatepicker['name'];
|
|
371
|
+
/** */
|
|
372
|
+
"value"?: WarpDatepicker['value'];
|
|
373
|
+
/** Decides the format of the date as shown in the calendar header.
|
|
374
|
+
|
|
375
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
376
|
+
"header-format"?: WarpDatepicker['headerFormat'];
|
|
377
|
+
/** Decides the format of the date as shown in the calendar header.
|
|
378
|
+
|
|
379
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
380
|
+
"headerFormat"?: WarpDatepicker['headerFormat'];
|
|
381
|
+
/** Decides the format of the weekday as shown above the grid of dates in the calendar.
|
|
382
|
+
|
|
383
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
384
|
+
"weekday-format"?: WarpDatepicker['weekdayFormat'];
|
|
385
|
+
/** Decides the format of the weekday as shown above the grid of dates in the calendar.
|
|
386
|
+
|
|
387
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
388
|
+
"weekdayFormat"?: WarpDatepicker['weekdayFormat'];
|
|
389
|
+
/** Decides the format of the day in the calendar as read to screen readers.
|
|
390
|
+
|
|
391
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
392
|
+
"day-format"?: WarpDatepicker['dayFormat'];
|
|
393
|
+
/** Decides the format of the day in the calendar as read to screen readers.
|
|
394
|
+
|
|
395
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
396
|
+
"dayFormat"?: WarpDatepicker['dayFormat'];
|
|
397
|
+
/** Lets you control if a date in the calendar should be disabled.
|
|
398
|
+
|
|
399
|
+
This needs to be set on the element instance in JavaScript, not as an HTML attribute. */
|
|
400
|
+
"isDayDisabled"?: WarpDatepicker['isDayDisabled'];
|
|
401
|
+
/** */
|
|
402
|
+
"isCalendarOpen"?: WarpDatepicker['isCalendarOpen'];
|
|
403
|
+
/** */
|
|
404
|
+
"navigationDate"?: WarpDatepicker['navigationDate'];
|
|
405
|
+
/** */
|
|
406
|
+
"calendar"?: WarpDatepicker['calendar'];
|
|
407
|
+
/** */
|
|
408
|
+
"input"?: WarpDatepicker['input'];
|
|
409
|
+
/** */
|
|
410
|
+
"toggleButton"?: WarpDatepicker['toggleButton'];
|
|
411
|
+
/** */
|
|
412
|
+
"wrapper"?: WarpDatepicker['wrapper'];
|
|
413
|
+
/** This is the first focusable element, needed for the modal focus trap.
|
|
414
|
+
|
|
415
|
+
Don't cache this and other `@query` fields from inside the calendar modal.
|
|
416
|
+
They work the first time, but once the calendar is closed and reopened
|
|
417
|
+
the query will point to an element that doesn't exist anymore. */
|
|
418
|
+
"previousMonthButton"?: WarpDatepicker['previousMonthButton'];
|
|
419
|
+
/** */
|
|
420
|
+
"todayCell"?: WarpDatepicker['todayCell'];
|
|
421
|
+
/** */
|
|
422
|
+
"selectedCell"?: WarpDatepicker['selectedCell'];
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
export type WarpDeadToggleProps = {
|
|
429
|
+
/** */
|
|
430
|
+
"type"?: WarpDeadToggle['type'];
|
|
431
|
+
/** */
|
|
432
|
+
"checked"?: WarpDeadToggle['checked'];
|
|
433
|
+
/** */
|
|
434
|
+
"indeterminate"?: WarpDeadToggle['indeterminate'];
|
|
435
|
+
/** */
|
|
436
|
+
"invalid"?: WarpDeadToggle['invalid'];
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
export type WarpExpandableProps = {
|
|
443
|
+
/** */
|
|
444
|
+
"expanded"?: WarpExpandable['expanded'];
|
|
445
|
+
/** */
|
|
446
|
+
"title"?: WarpExpandable['title'];
|
|
447
|
+
/** */
|
|
448
|
+
"box"?: WarpExpandable['box'];
|
|
449
|
+
/** */
|
|
450
|
+
"bleed"?: WarpExpandable['bleed'];
|
|
451
|
+
/** */
|
|
452
|
+
"button-class"?: WarpExpandable['buttonClass'];
|
|
453
|
+
/** */
|
|
454
|
+
"buttonClass"?: WarpExpandable['buttonClass'];
|
|
455
|
+
/** */
|
|
456
|
+
"content-class"?: WarpExpandable['contentClass'];
|
|
457
|
+
/** */
|
|
458
|
+
"contentClass"?: WarpExpandable['contentClass'];
|
|
459
|
+
/** */
|
|
460
|
+
"no-chevron"?: WarpExpandable['noChevron'];
|
|
461
|
+
/** */
|
|
462
|
+
"noChevron"?: WarpExpandable['noChevron'];
|
|
463
|
+
/** */
|
|
464
|
+
"animated"?: WarpExpandable['animated'];
|
|
465
|
+
/** */
|
|
466
|
+
"heading-level"?: WarpExpandable['headingLevel'];
|
|
467
|
+
/** */
|
|
468
|
+
"headingLevel"?: WarpExpandable['headingLevel'];
|
|
469
|
+
/** */
|
|
470
|
+
"_hasTitle"?: WarpExpandable['_hasTitle'];
|
|
471
|
+
/** */
|
|
472
|
+
"_showChevronUp"?: WarpExpandable['_showChevronUp'];
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
export type ModalFooterProps = {
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
export type ModalHeaderProps = {
|
|
485
|
+
/** */
|
|
486
|
+
"title"?: ModalHeader['title'];
|
|
487
|
+
/** */
|
|
488
|
+
"back"?: ModalHeader['back'];
|
|
489
|
+
/** */
|
|
490
|
+
"no-close"?: ModalHeader['noClose'];
|
|
491
|
+
/** */
|
|
492
|
+
"noClose"?: ModalHeader['noClose'];
|
|
493
|
+
/** */
|
|
494
|
+
"titleEl"?: ModalHeader['titleEl'];
|
|
495
|
+
|
|
496
|
+
/** */
|
|
497
|
+
"onbackClicked"?: (e: CustomEvent<CustomEvent>) => void;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
export type ModalMainProps = {
|
|
502
|
+
/** */
|
|
503
|
+
"show"?: ModalMain['show'];
|
|
504
|
+
/** */
|
|
505
|
+
"content-id"?: ModalMain['contentId'];
|
|
506
|
+
/** */
|
|
507
|
+
"contentId"?: ModalMain['contentId'];
|
|
508
|
+
/** */
|
|
509
|
+
"ignore-backdrop-clicks"?: ModalMain['ignoreBackdropClicks'];
|
|
510
|
+
/** */
|
|
511
|
+
"ignoreBackdropClicks"?: ModalMain['ignoreBackdropClicks'];
|
|
512
|
+
/** */
|
|
513
|
+
"dialogEl"?: ModalMain['dialogEl'];
|
|
514
|
+
/** */
|
|
515
|
+
"dialogInnerEl"?: ModalMain['dialogInnerEl'];
|
|
516
|
+
/** */
|
|
517
|
+
"contentEl"?: ModalMain['contentEl'];
|
|
518
|
+
|
|
519
|
+
/** */
|
|
520
|
+
"onshown"?: (e: CustomEvent<CustomEvent>) => void;
|
|
521
|
+
/** */
|
|
522
|
+
"onhidden"?: (e: CustomEvent<CustomEvent>) => void;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
export type WarpPageIndicatorProps = {
|
|
527
|
+
/** Currently selected page (1-based index) */
|
|
528
|
+
"selected-page"?: WarpPageIndicator['selectedPage'];
|
|
529
|
+
/** Currently selected page (1-based index) */
|
|
530
|
+
"selectedPage"?: WarpPageIndicator['selectedPage'];
|
|
531
|
+
/** Total number of pages */
|
|
532
|
+
"page-count"?: WarpPageIndicator['pageCount'];
|
|
533
|
+
/** Total number of pages */
|
|
534
|
+
"pageCount"?: WarpPageIndicator['pageCount'];
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
export type WarpPaginationProps = {
|
|
541
|
+
/** */
|
|
542
|
+
"base-url"?: WarpPagination['baseUrl'];
|
|
543
|
+
/** */
|
|
544
|
+
"baseUrl"?: WarpPagination['baseUrl'];
|
|
545
|
+
/** */
|
|
546
|
+
"pages"?: WarpPagination['pages'];
|
|
547
|
+
/** */
|
|
548
|
+
"current-page"?: WarpPagination['currentPageNumber'];
|
|
549
|
+
/** */
|
|
550
|
+
"currentPageNumber"?: WarpPagination['currentPageNumber'];
|
|
551
|
+
/** */
|
|
552
|
+
"visible-pages"?: WarpPagination['visiblePages'];
|
|
553
|
+
/** */
|
|
554
|
+
"visiblePages"?: WarpPagination['visiblePages'];
|
|
555
|
+
|
|
556
|
+
/** Triggered when a link button in the pagination is clicked. Contains the page number in `string` form. */
|
|
557
|
+
"onpage-click"?: (e: CustomEvent<CustomEvent>) => void;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
export type WarpPillProps = {
|
|
562
|
+
/** */
|
|
563
|
+
"can-close"?: WarpPill['canClose'];
|
|
564
|
+
/** */
|
|
565
|
+
"canClose"?: WarpPill['canClose'];
|
|
566
|
+
/** */
|
|
567
|
+
"suggestion"?: WarpPill['suggestion'];
|
|
568
|
+
/** @deprecated Used "open-arial-label" instead. */
|
|
569
|
+
"open-sr-label"?: WarpPill['openSrLabel'];
|
|
570
|
+
/** @deprecated Used "open-arial-label" instead. */
|
|
571
|
+
"openSrLabel"?: WarpPill['openSrLabel'];
|
|
572
|
+
/** */
|
|
573
|
+
"open-aria-label"?: WarpPill['openAriaLabel'];
|
|
574
|
+
/** */
|
|
575
|
+
"openAriaLabel"?: WarpPill['openAriaLabel'];
|
|
576
|
+
/** @deprecated Used "close-arial-label" instead. */
|
|
577
|
+
"close-sr-label"?: WarpPill['closeSrLabel'];
|
|
578
|
+
/** @deprecated Used "close-arial-label" instead. */
|
|
579
|
+
"closeSrLabel"?: WarpPill['closeSrLabel'];
|
|
580
|
+
/** */
|
|
581
|
+
"close-aria-label"?: WarpPill['closeAriaLabel'];
|
|
582
|
+
/** */
|
|
583
|
+
"closeAriaLabel"?: WarpPill['closeAriaLabel'];
|
|
584
|
+
/** */
|
|
585
|
+
"openFilterSrText"?: WarpPill['openFilterSrText'];
|
|
586
|
+
/** */
|
|
587
|
+
"removeFilterSrText"?: WarpPill['removeFilterSrText'];
|
|
588
|
+
|
|
589
|
+
/** */
|
|
590
|
+
"onw-pill-click"?: (e: CustomEvent<CustomEvent>) => void;
|
|
591
|
+
/** */
|
|
592
|
+
"onw-pill-close"?: (e: CustomEvent<CustomEvent>) => void;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
export type WCheckboxProps = {
|
|
597
|
+
/** */
|
|
598
|
+
"title"?: WCheckbox['title'];
|
|
599
|
+
/** The name of the checkbox, submitted as a name/value pair with form data. */
|
|
600
|
+
"name"?: WCheckbox['name'];
|
|
601
|
+
/** The value of the checkbox, submitted as a name/value pair with form data. */
|
|
602
|
+
"value"?: WCheckbox['value'];
|
|
603
|
+
/** The checkbox's size. */
|
|
604
|
+
"size"?: WCheckbox['size'];
|
|
605
|
+
/** Disables the checkbox. */
|
|
606
|
+
"disabled"?: WCheckbox['disabled'];
|
|
607
|
+
/** Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a "select
|
|
608
|
+
all/none" behavior when associated checkboxes have a mix of checked and unchecked states. */
|
|
609
|
+
"indeterminate"?: WCheckbox['indeterminate'];
|
|
610
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
611
|
+
"checked"?: WCheckbox['defaultChecked'];
|
|
612
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
613
|
+
"defaultChecked"?: WCheckbox['defaultChecked'];
|
|
614
|
+
/** By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
615
|
+
to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
616
|
+
the same document or shadow root for this to work. */
|
|
617
|
+
"form"?: WCheckbox['form'];
|
|
618
|
+
/** Makes the checkbox a required field. */
|
|
619
|
+
"required"?: WCheckbox['required'];
|
|
620
|
+
/** The checkbox's hint. If you need to display HTML, use the `hint` slot instead. */
|
|
621
|
+
"hint"?: WCheckbox['hint'];
|
|
622
|
+
/** */
|
|
623
|
+
"input"?: WCheckbox['input'];
|
|
624
|
+
|
|
625
|
+
/** */
|
|
626
|
+
"onchange"?: (e: CustomEvent<Event>) => void;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
export type WRadioProps = {
|
|
631
|
+
/** The string pointing to a form's id. */
|
|
632
|
+
"form"?: WRadio['form'];
|
|
633
|
+
/** The radio's value. When selected, the radio group will receive this value. */
|
|
634
|
+
"value"?: WRadio['value'];
|
|
635
|
+
/** The radio's value. When selected, the radio group will receive this value. */
|
|
636
|
+
"appearance"?: WRadio['appearance'];
|
|
637
|
+
/** The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this
|
|
638
|
+
attribute can typically be omitted. */
|
|
639
|
+
"size"?: WRadio['size'];
|
|
640
|
+
/** Disables the radio. */
|
|
641
|
+
"disabled"?: WRadio['disabled'];
|
|
642
|
+
/** */
|
|
643
|
+
"checked"?: WRadio['checked'];
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
export type WRadioGroupProps = {
|
|
650
|
+
/** The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot
|
|
651
|
+
instead. */
|
|
652
|
+
"label"?: WRadioGroup['label'];
|
|
653
|
+
/** The radio groups's hint. If you need to display HTML, use the `hint` slot instead. */
|
|
654
|
+
"hint"?: WRadioGroup['hint'];
|
|
655
|
+
/** The name of the radio group, submitted as a name/value pair with form data. */
|
|
656
|
+
"name"?: WRadioGroup['name'];
|
|
657
|
+
/** Disables the radio group and all child radios. */
|
|
658
|
+
"disabled"?: WRadioGroup['disabled'];
|
|
659
|
+
/** The orientation in which to show radio items. */
|
|
660
|
+
"orientation"?: WRadioGroup['orientation'];
|
|
661
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
662
|
+
"value"?: WRadioGroup['defaultValue'];
|
|
663
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
664
|
+
"defaultValue"?: WRadioGroup['defaultValue'];
|
|
665
|
+
/** The radio group's size. This size will be applied to all child radios and radio buttons, except when explicitly overridden. */
|
|
666
|
+
"size"?: WRadioGroup['size'];
|
|
667
|
+
/** Ensures a child radio is checked before allowing the containing form to submit. */
|
|
668
|
+
"required"?: WRadioGroup['required'];
|
|
669
|
+
/** Used for SSR. if true, will show slotted label on initial render. */
|
|
670
|
+
"with-label"?: WRadioGroup['withLabel'];
|
|
671
|
+
/** Used for SSR. if true, will show slotted label on initial render. */
|
|
672
|
+
"withLabel"?: WRadioGroup['withLabel'];
|
|
673
|
+
/** Used for SSR. if true, will show slotted hint on initial render. */
|
|
674
|
+
"with-hint"?: WRadioGroup['withHint'];
|
|
675
|
+
/** Used for SSR. if true, will show slotted hint on initial render. */
|
|
676
|
+
"withHint"?: WRadioGroup['withHint'];
|
|
677
|
+
/** */
|
|
678
|
+
"hasRadioButtons"?: WRadioGroup['hasRadioButtons'];
|
|
679
|
+
/** */
|
|
680
|
+
"defaultSlot"?: WRadioGroup['defaultSlot'];
|
|
681
|
+
|
|
682
|
+
/** */
|
|
683
|
+
"oninput"?: (e: CustomEvent<InputEvent>) => void;
|
|
684
|
+
/** */
|
|
685
|
+
"onchange"?: (e: CustomEvent<Event>) => void;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
export type WarpSelectProps = {
|
|
690
|
+
/** Whether the element should receive focus on render */
|
|
691
|
+
"auto-focus"?: WarpSelect['autoFocus'];
|
|
692
|
+
/** Whether the element should receive focus on render */
|
|
693
|
+
"autoFocus"?: WarpSelect['autoFocus'];
|
|
694
|
+
/** Renders the field in an invalid state. Often paired with `hint` to provide feedback about the error */
|
|
695
|
+
"invalid"?: WarpSelect['invalid'];
|
|
696
|
+
/** Whether to always show a hint */
|
|
697
|
+
"always"?: WarpSelect['always'];
|
|
698
|
+
/** The content displayed as the help text */
|
|
699
|
+
"hint"?: WarpSelect['hint'];
|
|
700
|
+
/** The content to disply as the label */
|
|
701
|
+
"label"?: WarpSelect['label'];
|
|
702
|
+
/** Whether to show optional text */
|
|
703
|
+
"optional"?: WarpSelect['optional'];
|
|
704
|
+
/** Renders the field in a disabled state. */
|
|
705
|
+
"disabled"?: WarpSelect['disabled'];
|
|
706
|
+
/** Renders the field in a readonly state. */
|
|
707
|
+
"read-only"?: WarpSelect['readOnly'];
|
|
708
|
+
/** Renders the field in a readonly state. */
|
|
709
|
+
"readOnly"?: WarpSelect['readOnly'];
|
|
710
|
+
/** */
|
|
711
|
+
"name"?: WarpSelect['name'];
|
|
712
|
+
/** */
|
|
713
|
+
"value"?: WarpSelect['value'];
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
export type WarpTextFieldProps = {
|
|
720
|
+
/** */
|
|
721
|
+
"disabled"?: WarpTextField['disabled'];
|
|
722
|
+
/** */
|
|
723
|
+
"invalid"?: WarpTextField['invalid'];
|
|
724
|
+
/** */
|
|
725
|
+
"id"?: WarpTextField['id'];
|
|
726
|
+
/** */
|
|
727
|
+
"label"?: WarpTextField['label'];
|
|
728
|
+
/** */
|
|
729
|
+
"help-text"?: WarpTextField['helpText'];
|
|
730
|
+
/** */
|
|
731
|
+
"helpText"?: WarpTextField['helpText'];
|
|
732
|
+
/** */
|
|
733
|
+
"size"?: WarpTextField['size'];
|
|
734
|
+
/** */
|
|
735
|
+
"max"?: WarpTextField['max'];
|
|
736
|
+
/** */
|
|
737
|
+
"min"?: WarpTextField['min'];
|
|
738
|
+
/** */
|
|
739
|
+
"min-length"?: WarpTextField['minLength'];
|
|
740
|
+
/** */
|
|
741
|
+
"minLength"?: WarpTextField['minLength'];
|
|
742
|
+
/** */
|
|
743
|
+
"max-length"?: WarpTextField['maxLength'];
|
|
744
|
+
/** */
|
|
745
|
+
"maxLength"?: WarpTextField['maxLength'];
|
|
746
|
+
/** */
|
|
747
|
+
"pattern"?: WarpTextField['pattern'];
|
|
748
|
+
/** */
|
|
749
|
+
"placeholder"?: WarpTextField['placeholder'];
|
|
750
|
+
/** */
|
|
751
|
+
"read-only"?: WarpTextField['readOnly'];
|
|
752
|
+
/** */
|
|
753
|
+
"readOnly"?: WarpTextField['readOnly'];
|
|
754
|
+
/** */
|
|
755
|
+
"required"?: WarpTextField['required'];
|
|
756
|
+
/** */
|
|
757
|
+
"type"?: WarpTextField['type'];
|
|
758
|
+
/** */
|
|
759
|
+
"value"?: WarpTextField['value'];
|
|
760
|
+
/** */
|
|
761
|
+
"name"?: WarpTextField['name'];
|
|
762
|
+
/** Function to format value when the input field.
|
|
763
|
+
|
|
764
|
+
Only active when the input field does not have focus,
|
|
765
|
+
similar to the accessible input masking example from Filament Group
|
|
766
|
+
|
|
767
|
+
https://css-tricks.com/input-masking/
|
|
768
|
+
https://filamentgroup.github.io/politespace/demo/demo.html */
|
|
769
|
+
"formatter"?: WarpTextField['formatter'];
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
export type WarpSliderThumbProps = {
|
|
776
|
+
/** */
|
|
777
|
+
"aria-label"?: WarpSliderThumb['ariaLabel'];
|
|
778
|
+
/** */
|
|
779
|
+
"ariaLabel"?: WarpSliderThumb['ariaLabel'];
|
|
780
|
+
/** */
|
|
781
|
+
"aria-description"?: WarpSliderThumb['ariaDescription'];
|
|
782
|
+
/** */
|
|
783
|
+
"ariaDescription"?: WarpSliderThumb['ariaDescription'];
|
|
784
|
+
/** */
|
|
785
|
+
"label"?: WarpSliderThumb['label'];
|
|
786
|
+
/** */
|
|
787
|
+
"name"?: WarpSliderThumb['name'];
|
|
788
|
+
/** */
|
|
789
|
+
"value"?: WarpSliderThumb['value'];
|
|
790
|
+
/** */
|
|
791
|
+
"disabled"?: WarpSliderThumb['disabled'];
|
|
792
|
+
/** Set by `<w-slider>` */
|
|
793
|
+
"markers"?: WarpSliderThumb['markers'];
|
|
794
|
+
/** Set by `<w-slider>` */
|
|
795
|
+
"required"?: WarpSliderThumb['required'];
|
|
796
|
+
/** Set by `<w-slider>` */
|
|
797
|
+
"step"?: WarpSliderThumb['step'];
|
|
798
|
+
/** Set by `<w-slider>` */
|
|
799
|
+
"min"?: WarpSliderThumb['min'];
|
|
800
|
+
/** Set by `<w-slider>` */
|
|
801
|
+
"max"?: WarpSliderThumb['max'];
|
|
802
|
+
/** Set by `<w-slider>` */
|
|
803
|
+
"suffix"?: WarpSliderThumb['suffix'];
|
|
804
|
+
/** JS hook to help you format the numeric value how you want. */
|
|
805
|
+
"formatter"?: WarpSliderThumb['formatter'];
|
|
806
|
+
/** */
|
|
807
|
+
"range"?: WarpSliderThumb['range'];
|
|
808
|
+
/** */
|
|
809
|
+
"textfield"?: WarpSliderThumb['textfield'];
|
|
810
|
+
|
|
811
|
+
/** */
|
|
812
|
+
"onslidervalidity"?: (e: CustomEvent<CustomEvent>) => void;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
export type WarpSliderProps = {
|
|
817
|
+
/** The slider fieldset label. Required for proper accessibility.
|
|
818
|
+
|
|
819
|
+
If you need to display HTML, use the `label` slot instead. */
|
|
820
|
+
"label"?: WarpSlider['label'];
|
|
821
|
+
/** */
|
|
822
|
+
"disabled"?: WarpSlider['disabled'];
|
|
823
|
+
/** */
|
|
824
|
+
"invalid"?: WarpSlider['invalid'];
|
|
825
|
+
/** Ensures a child slider thumb has a value before allowing the containing form to submit. */
|
|
826
|
+
"required"?: WarpSlider['required'];
|
|
827
|
+
/** */
|
|
828
|
+
"min"?: WarpSlider['min'];
|
|
829
|
+
/** */
|
|
830
|
+
"max"?: WarpSlider['max'];
|
|
831
|
+
/** Pass a value similar to step to create visual markers at that interval */
|
|
832
|
+
"markers"?: WarpSlider['markers'];
|
|
833
|
+
/** */
|
|
834
|
+
"step"?: WarpSlider['step'];
|
|
835
|
+
/** Suffix used in text input fields and for the min and max values of the slider. */
|
|
836
|
+
"suffix"?: WarpSlider['suffix'];
|
|
837
|
+
/** Function to format the to- and from labels and value in the slider thumb tooltip. */
|
|
838
|
+
"formatter"?: WarpSlider['formatter'];
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
export type WarpStepsProps = {
|
|
845
|
+
/** */
|
|
846
|
+
"horizontal"?: WarpSteps['horizontal'];
|
|
847
|
+
/** */
|
|
848
|
+
"right"?: WarpSteps['right'];
|
|
849
|
+
|
|
850
|
+
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
export type WarpStepProps = {
|
|
855
|
+
/** */
|
|
856
|
+
"active"?: WarpStep['active'];
|
|
857
|
+
/** */
|
|
858
|
+
"completed"?: WarpStep['completed'];
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
export type WarpSwitchProps = {
|
|
865
|
+
/** */
|
|
866
|
+
"value"?: WarpSwitch['value'];
|
|
867
|
+
/** */
|
|
868
|
+
"disabled"?: WarpSwitch['disabled'];
|
|
869
|
+
|
|
870
|
+
/** */
|
|
871
|
+
"onchange"?: (e: CustomEvent<CustomEvent>) => void;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
export type WarpTabProps = {
|
|
876
|
+
/** */
|
|
877
|
+
"name"?: WarpTab['name'];
|
|
878
|
+
/** */
|
|
879
|
+
"label"?: WarpTab['label'];
|
|
880
|
+
/** */
|
|
881
|
+
"active"?: WarpTab['active'];
|
|
882
|
+
/** */
|
|
883
|
+
"over"?: WarpTab['over'];
|
|
884
|
+
/** */
|
|
885
|
+
"tab-class"?: WarpTab['tabClass'];
|
|
886
|
+
/** */
|
|
887
|
+
"tabClass"?: WarpTab['tabClass'];
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
export type WarpTabPanelProps = {
|
|
894
|
+
/** */
|
|
895
|
+
"name"?: WarpTabPanel['name'];
|
|
896
|
+
/** */
|
|
897
|
+
"hidden"?: WarpTabPanel['hidden'];
|
|
898
|
+
|
|
899
|
+
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
|
|
903
|
+
export type WarpTabsProps = {
|
|
904
|
+
/** */
|
|
905
|
+
"active"?: WarpTabs['active'];
|
|
906
|
+
/** */
|
|
907
|
+
"tab-class"?: WarpTabs['tabClass'];
|
|
908
|
+
/** */
|
|
909
|
+
"tabClass"?: WarpTabs['tabClass'];
|
|
910
|
+
|
|
911
|
+
/** */
|
|
912
|
+
"onchange"?: (e: CustomEvent<CustomEvent>) => void;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
export type WarpToastContainerProps = {
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
export type CustomElements = {
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* Alert is an inline component used for displaying different types of messages.
|
|
926
|
+
*
|
|
927
|
+
* For accessibility reasons, alert should appear close to the element that triggered it.
|
|
928
|
+
*
|
|
929
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)
|
|
930
|
+
*
|
|
931
|
+
* ## Attributes & Properties
|
|
932
|
+
*
|
|
933
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
934
|
+
*
|
|
935
|
+
* - `variant`: undefined
|
|
936
|
+
* - `show`: undefined
|
|
937
|
+
* - `role`: undefined
|
|
938
|
+
*/
|
|
939
|
+
"w-alert": Partial<WarpAlertProps & BaseProps<WarpAlert> & BaseEvents>;
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.
|
|
944
|
+
*
|
|
945
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-affix--docs)
|
|
946
|
+
*
|
|
947
|
+
* ## Attributes & Properties
|
|
948
|
+
*
|
|
949
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
950
|
+
*
|
|
951
|
+
* - `aria-label`/`ariaLabel`: undefined
|
|
952
|
+
* - `clear`: Add this property to render a clickable Warp close icon.
|
|
953
|
+
*
|
|
954
|
+
* Set an `aria-label` that explains the action when using this.
|
|
955
|
+
* - `search`: Add this property to render a clickable Warp search icon.
|
|
956
|
+
*
|
|
957
|
+
* Set an `aria-label` that explains the action when using this.
|
|
958
|
+
* - `label`: undefined
|
|
959
|
+
*/
|
|
960
|
+
"w-affix": Partial<WarpAffixProps & BaseProps<WarpAffix> & BaseEvents>;
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
* Buttons are used to perform actions, with different visuals for different needs.
|
|
965
|
+
*
|
|
966
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-link--docs)
|
|
967
|
+
*
|
|
968
|
+
* ## Attributes & Properties
|
|
969
|
+
*
|
|
970
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
971
|
+
*
|
|
972
|
+
* - `autofocus`: undefined
|
|
973
|
+
* - `variant`: undefined
|
|
974
|
+
* - `quiet`: undefined
|
|
975
|
+
* - `small`: undefined
|
|
976
|
+
* - `href`: undefined
|
|
977
|
+
* - `disabled`: undefined
|
|
978
|
+
* - `target`: undefined
|
|
979
|
+
* - `rel`: undefined
|
|
980
|
+
* - `full-width`/`fullWidth`: undefined
|
|
981
|
+
* - `button-class`/`buttonClass`: undefined
|
|
982
|
+
* - `name`: undefined
|
|
983
|
+
* - `classes`: undefined (property only)
|
|
984
|
+
*/
|
|
985
|
+
"w-link": Partial<WarpLinkProps & BaseProps<WarpLink> & BaseEvents>;
|
|
986
|
+
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Buttons are used to perform actions, widh different visuals for different needs.
|
|
990
|
+
*
|
|
991
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-button--docs)
|
|
992
|
+
*
|
|
993
|
+
* ## Attributes & Properties
|
|
994
|
+
*
|
|
995
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
996
|
+
*
|
|
997
|
+
* - `type`: undefined
|
|
998
|
+
* - `autofocus`: undefined
|
|
999
|
+
* - `variant`: undefined
|
|
1000
|
+
* - `quiet`: undefined
|
|
1001
|
+
* - `small`: undefined
|
|
1002
|
+
* - `loading`: undefined
|
|
1003
|
+
* - `href`: undefined
|
|
1004
|
+
* - `target`: undefined
|
|
1005
|
+
* - `rel`: undefined
|
|
1006
|
+
* - `full-width`/`fullWidth`: undefined
|
|
1007
|
+
* - `button-class`/`buttonClass`: undefined
|
|
1008
|
+
* - `name`: undefined
|
|
1009
|
+
* - `value`: undefined
|
|
1010
|
+
* - `ariaValueTextLoading`: undefined (property only)
|
|
1011
|
+
*/
|
|
1012
|
+
"w-button": Partial<WarpButtonProps & BaseProps<WarpButton> & BaseEvents>;
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
*
|
|
1017
|
+
*
|
|
1018
|
+
* ## Attributes & Properties
|
|
1019
|
+
*
|
|
1020
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1021
|
+
*
|
|
1022
|
+
* - `show`: undefined
|
|
1023
|
+
* - `placement`: undefined
|
|
1024
|
+
* - `tooltip`: undefined
|
|
1025
|
+
* - `callout`: undefined
|
|
1026
|
+
* - `popover`: undefined
|
|
1027
|
+
* - `highlight`: undefined
|
|
1028
|
+
* - `can-close`/`canClose`: undefined
|
|
1029
|
+
* - `no-arrow`/`noArrow`: undefined
|
|
1030
|
+
* - `distance`: undefined
|
|
1031
|
+
* - `skidding`: undefined
|
|
1032
|
+
* - `flip`: undefined
|
|
1033
|
+
* - `cross-axis`/`crossAxis`: undefined
|
|
1034
|
+
* - `fallback-placements`/`fallbackPlacements`: undefined
|
|
1035
|
+
* - `_initialPlacement`: undefined (property only)
|
|
1036
|
+
* - `_actualDirection`: undefined (property only)
|
|
1037
|
+
*
|
|
1038
|
+
* ## Methods
|
|
1039
|
+
*
|
|
1040
|
+
* Methods that can be called to access component functionality.
|
|
1041
|
+
*
|
|
1042
|
+
* - `handleDone() => void`: undefined
|
|
1043
|
+
* - `pointingAtDirection() => void`: undefined
|
|
1044
|
+
* - `activeAttentionType() => void`: undefined
|
|
1045
|
+
* - `defaultAriaLabel() => void`: undefined
|
|
1046
|
+
* - `setAriaLabels() => void`: undefined
|
|
1047
|
+
* - `close() => void`: undefined
|
|
1048
|
+
* - `keypressed(e: KeyboardEvent) => void`: undefined
|
|
1049
|
+
*/
|
|
1050
|
+
"w-attention": Partial<WarpAttentionProps & BaseProps<WarpAttention> & BaseEvents>;
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* `w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.
|
|
1055
|
+
*
|
|
1056
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-badge--docs)
|
|
1057
|
+
*
|
|
1058
|
+
* ## Attributes & Properties
|
|
1059
|
+
*
|
|
1060
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1061
|
+
*
|
|
1062
|
+
* - `variant`: undefined
|
|
1063
|
+
* - `position`: undefined
|
|
1064
|
+
*/
|
|
1065
|
+
"w-badge": Partial<WarpBadgeProps & BaseProps<WarpBadge> & BaseEvents>;
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* Box is a layout component used for separating content areas on a page.
|
|
1070
|
+
*
|
|
1071
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-box--docs)
|
|
1072
|
+
*
|
|
1073
|
+
* ## Attributes & Properties
|
|
1074
|
+
*
|
|
1075
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1076
|
+
*
|
|
1077
|
+
* - `bleed`: undefined
|
|
1078
|
+
* - `bordered`: undefined
|
|
1079
|
+
* - `info`: undefined
|
|
1080
|
+
* - `neutral`: undefined
|
|
1081
|
+
* - `role`: undefined
|
|
1082
|
+
*/
|
|
1083
|
+
"w-box": Partial<WarpBoxProps & BaseProps<WarpBox> & BaseEvents>;
|
|
1084
|
+
|
|
1085
|
+
|
|
1086
|
+
/**
|
|
1087
|
+
* Breadcrumbs show the navigation structure for the current location.
|
|
1088
|
+
*
|
|
1089
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-breadcrumbs--docs)
|
|
1090
|
+
*
|
|
1091
|
+
* ## Attributes & Properties
|
|
1092
|
+
*
|
|
1093
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1094
|
+
*
|
|
1095
|
+
* - `aria-label`/`ariaLabel`: undefined
|
|
1096
|
+
*/
|
|
1097
|
+
"w-breadcrumbs": Partial<WarpBreadcrumbsProps & BaseProps<WarpBreadcrumbs> & BaseEvents>;
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* Card is a layout component used for separating content areas on a page.
|
|
1102
|
+
*
|
|
1103
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-card--docs)
|
|
1104
|
+
*
|
|
1105
|
+
* ## Attributes & Properties
|
|
1106
|
+
*
|
|
1107
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1108
|
+
*
|
|
1109
|
+
* - `selected`: undefined
|
|
1110
|
+
* - `flat`: undefined
|
|
1111
|
+
* - `clickable`: undefined
|
|
1112
|
+
* - `buttonText`: undefined (property only)
|
|
1113
|
+
*
|
|
1114
|
+
* ## Methods
|
|
1115
|
+
*
|
|
1116
|
+
* Methods that can be called to access component functionality.
|
|
1117
|
+
*
|
|
1118
|
+
* - `keypressed(e: KeyboardEvent) => void`: undefined
|
|
1119
|
+
*/
|
|
1120
|
+
"w-card": Partial<WarpCardProps & BaseProps<WarpCard> & BaseEvents>;
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* A combobox element for text input with selectable options.
|
|
1125
|
+
*
|
|
1126
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-combobox--docs)
|
|
1127
|
+
*
|
|
1128
|
+
* ## Attributes & Properties
|
|
1129
|
+
*
|
|
1130
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1131
|
+
*
|
|
1132
|
+
* - `options`: The available options to select from
|
|
1133
|
+
* - `label`: Label above input
|
|
1134
|
+
* - `placeholder`: Input placeholder
|
|
1135
|
+
* - `value`: The input value
|
|
1136
|
+
* - `open-on-focus`/`openOnFocus`: Whether the popover opens when focus is on the text field
|
|
1137
|
+
* - `select-on-blur`/`selectOnBlur`: Select active option on blur
|
|
1138
|
+
* - `match-text-segments`/`matchTextSegments`: Whether the matching text segments in the options should be highlighted
|
|
1139
|
+
* - `disable-static-filtering`/`disableStaticFiltering`: Disable client-side static filtering
|
|
1140
|
+
* - `invalid`: Renders the input field in an invalid state
|
|
1141
|
+
* - `help-text`/`helpText`: The content to display as the help text
|
|
1142
|
+
* - `disabled`: Whether the element is disabled
|
|
1143
|
+
* - `required`: Whether the element is required
|
|
1144
|
+
* - `optional`: Whether to show optional text
|
|
1145
|
+
* - `class-name`/`containerClassName`: Additional container styling
|
|
1146
|
+
* - `list-class-name`/`listClassName`: Additional list styling
|
|
1147
|
+
* - `name`: Name attribute for form submission
|
|
1148
|
+
*/
|
|
1149
|
+
"w-combobox": Partial<WarpComboboxProps & BaseProps<WarpCombobox> & BaseEvents>;
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* An input for dates.
|
|
1154
|
+
*
|
|
1155
|
+
* Uses the `lang` attribute on either the element or on `<html>` to determine the locale options.
|
|
1156
|
+
*
|
|
1157
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-datepicker--docs)
|
|
1158
|
+
*
|
|
1159
|
+
* ## Attributes & Properties
|
|
1160
|
+
*
|
|
1161
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1162
|
+
*
|
|
1163
|
+
* - `label`: undefined
|
|
1164
|
+
* - `lang`: Takes precedence over the `<html>` lang attribute.
|
|
1165
|
+
* - `name`: undefined
|
|
1166
|
+
* - `value`: undefined
|
|
1167
|
+
* - `header-format`/`headerFormat`: Decides the format of the date as shown in the calendar header.
|
|
1168
|
+
*
|
|
1169
|
+
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
1170
|
+
* - `weekday-format`/`weekdayFormat`: Decides the format of the weekday as shown above the grid of dates in the calendar.
|
|
1171
|
+
*
|
|
1172
|
+
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
1173
|
+
* - `day-format`/`dayFormat`: Decides the format of the day in the calendar as read to screen readers.
|
|
1174
|
+
*
|
|
1175
|
+
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
1176
|
+
* - `isDayDisabled`: Lets you control if a date in the calendar should be disabled.
|
|
1177
|
+
*
|
|
1178
|
+
* This needs to be set on the element instance in JavaScript, not as an HTML attribute. (property only)
|
|
1179
|
+
* - `isCalendarOpen`: undefined (property only)
|
|
1180
|
+
* - `navigationDate`: undefined (property only)
|
|
1181
|
+
* - `selectedDate`: undefined (property only) (readonly)
|
|
1182
|
+
* - `month`: undefined (property only) (readonly)
|
|
1183
|
+
* - `weeks`: undefined (property only) (readonly)
|
|
1184
|
+
* - `calendar`: undefined (property only)
|
|
1185
|
+
* - `input`: undefined (property only)
|
|
1186
|
+
* - `toggleButton`: undefined (property only)
|
|
1187
|
+
* - `wrapper`: undefined (property only)
|
|
1188
|
+
* - `previousMonthButton`: This is the first focusable element, needed for the modal focus trap.
|
|
1189
|
+
*
|
|
1190
|
+
* Don't cache this and other `@query` fields from inside the calendar modal.
|
|
1191
|
+
* They work the first time, but once the calendar is closed and reopened
|
|
1192
|
+
* the query will point to an element that doesn't exist anymore. (property only)
|
|
1193
|
+
* - `todayCell`: undefined (property only)
|
|
1194
|
+
* - `selectedCell`: undefined (property only)
|
|
1195
|
+
*/
|
|
1196
|
+
"w-datepicker": Partial<WarpDatepickerProps & BaseProps<WarpDatepicker> & BaseEvents>;
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
|
+
/**
|
|
1200
|
+
* 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.
|
|
1201
|
+
*
|
|
1202
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-dead-toggle--docs)
|
|
1203
|
+
*
|
|
1204
|
+
* ## Attributes & Properties
|
|
1205
|
+
*
|
|
1206
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1207
|
+
*
|
|
1208
|
+
* - `type`: undefined
|
|
1209
|
+
* - `checked`: undefined
|
|
1210
|
+
* - `indeterminate`: undefined
|
|
1211
|
+
* - `invalid`: undefined
|
|
1212
|
+
*/
|
|
1213
|
+
"w-dead-toggle": Partial<WarpDeadToggleProps & BaseProps<WarpDeadToggle> & BaseEvents>;
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* Expandable is a layout component used for creating expandable content areas on a page.
|
|
1218
|
+
*
|
|
1219
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-expandable--docs)
|
|
1220
|
+
*
|
|
1221
|
+
* ## Attributes & Properties
|
|
1222
|
+
*
|
|
1223
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1224
|
+
*
|
|
1225
|
+
* - `expanded`: undefined
|
|
1226
|
+
* - `title`: undefined
|
|
1227
|
+
* - `box`: undefined
|
|
1228
|
+
* - `bleed`: undefined
|
|
1229
|
+
* - `button-class`/`buttonClass`: undefined
|
|
1230
|
+
* - `content-class`/`contentClass`: undefined
|
|
1231
|
+
* - `no-chevron`/`noChevron`: undefined
|
|
1232
|
+
* - `animated`: undefined
|
|
1233
|
+
* - `heading-level`/`headingLevel`: undefined
|
|
1234
|
+
* - `_hasTitle`: undefined
|
|
1235
|
+
* - `_showChevronUp`: undefined
|
|
1236
|
+
*
|
|
1237
|
+
* ## Slots
|
|
1238
|
+
*
|
|
1239
|
+
* Areas where markup can be added to the component.
|
|
1240
|
+
*
|
|
1241
|
+
* - `title`: Alternative to the `title` attribute should you need to provide some additional markup.
|
|
1242
|
+
*/
|
|
1243
|
+
"w-expandable": Partial<WarpExpandableProps & BaseProps<WarpExpandable> & BaseEvents>;
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
/**
|
|
1247
|
+
* The footer section of a modal, typically where you place actions.
|
|
1248
|
+
*
|
|
1249
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
1250
|
+
*/
|
|
1251
|
+
"w-modal-footer": Partial<ModalFooterProps & BaseProps<ModalFooter> & BaseEvents>;
|
|
1252
|
+
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* The header section of a modal, typically where you place the title and a close button.
|
|
1256
|
+
*
|
|
1257
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
1258
|
+
*
|
|
1259
|
+
* ## Attributes & Properties
|
|
1260
|
+
*
|
|
1261
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1262
|
+
*
|
|
1263
|
+
* - `title`: undefined
|
|
1264
|
+
* - `back`: undefined
|
|
1265
|
+
* - `no-close`/`noClose`: undefined
|
|
1266
|
+
* - `titleEl`: undefined (property only)
|
|
1267
|
+
* - `titleClasses`: undefined (property only) (readonly)
|
|
1268
|
+
* - `backButton`: undefined (property only) (readonly)
|
|
1269
|
+
* - `closeButton`: undefined (property only) (readonly)
|
|
1270
|
+
*
|
|
1271
|
+
* ## Events
|
|
1272
|
+
*
|
|
1273
|
+
* Events that will be emitted by the component.
|
|
1274
|
+
*
|
|
1275
|
+
* - `backClicked`: undefined
|
|
1276
|
+
*
|
|
1277
|
+
* ## Slots
|
|
1278
|
+
*
|
|
1279
|
+
* Areas where markup can be added to the component.
|
|
1280
|
+
*
|
|
1281
|
+
* - `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.
|
|
1282
|
+
*
|
|
1283
|
+
* ## Methods
|
|
1284
|
+
*
|
|
1285
|
+
* Methods that can be called to access component functionality.
|
|
1286
|
+
*
|
|
1287
|
+
* - `emitBack() => void`: undefined
|
|
1288
|
+
* - `handleTopSlotChange(slotEvent) => void`: undefined
|
|
1289
|
+
*/
|
|
1290
|
+
"w-modal-header": Partial<ModalHeaderProps & BaseProps<ModalHeader> & BaseEvents>;
|
|
1291
|
+
|
|
1292
|
+
|
|
1293
|
+
/**
|
|
1294
|
+
* Modals (or dialogs) display important information that users need to acknowledge.
|
|
1295
|
+
*
|
|
1296
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
1297
|
+
*
|
|
1298
|
+
* ## Attributes & Properties
|
|
1299
|
+
*
|
|
1300
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1301
|
+
*
|
|
1302
|
+
* - `show`: undefined
|
|
1303
|
+
* - `content-id`/`contentId`: undefined
|
|
1304
|
+
* - `ignore-backdrop-clicks`/`ignoreBackdropClicks`: undefined
|
|
1305
|
+
* - `dialogEl`: undefined (property only)
|
|
1306
|
+
* - `dialogInnerEl`: undefined (property only)
|
|
1307
|
+
* - `contentEl`: undefined (property only)
|
|
1308
|
+
*
|
|
1309
|
+
* ## Events
|
|
1310
|
+
*
|
|
1311
|
+
* Events that will be emitted by the component.
|
|
1312
|
+
*
|
|
1313
|
+
* - `shown`: undefined
|
|
1314
|
+
* - `hidden`: undefined
|
|
1315
|
+
*
|
|
1316
|
+
* ## Slots
|
|
1317
|
+
*
|
|
1318
|
+
* Areas where markup can be added to the component.
|
|
1319
|
+
*
|
|
1320
|
+
* - `header`: Typically where you would use the `w-modal-header` component.
|
|
1321
|
+
* - `content`: The main content of the modal.
|
|
1322
|
+
* - `footer`: Typically where you would use the `w-modal-footer` component, for things like actions.
|
|
1323
|
+
*
|
|
1324
|
+
* ## Methods
|
|
1325
|
+
*
|
|
1326
|
+
* Methods that can be called to access component functionality.
|
|
1327
|
+
*
|
|
1328
|
+
* - `open() => void`: undefined
|
|
1329
|
+
* - `close() => void`: undefined
|
|
1330
|
+
* - `handleListeners(verb = 'addEventListener') => void`: undefined
|
|
1331
|
+
* - `eventPreventer(evt: Event) => void`: undefined
|
|
1332
|
+
* - `closeOnBackdropClick(evt: MouseEvent) => void`: undefined
|
|
1333
|
+
* - `interceptEscape(evt: KeyboardEvent) => void`: undefined
|
|
1334
|
+
* - `modifyBorderRadius() => void`: undefined
|
|
1335
|
+
*/
|
|
1336
|
+
"w-modal": Partial<ModalMainProps & BaseProps<ModalMain> & BaseEvents>;
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
/**
|
|
1340
|
+
*
|
|
1341
|
+
*
|
|
1342
|
+
* ## Attributes & Properties
|
|
1343
|
+
*
|
|
1344
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1345
|
+
*
|
|
1346
|
+
* - `selected-page`/`selectedPage`: Currently selected page (1-based index)
|
|
1347
|
+
* - `page-count`/`pageCount`: Total number of pages
|
|
1348
|
+
*/
|
|
1349
|
+
"w-pageindicator": Partial<WarpPageIndicatorProps & BaseProps<WarpPageIndicator> & BaseEvents>;
|
|
1350
|
+
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* Pagination allows users to navigate through multiple pages of content by providing navigation controls with page numbers and directional arrows.
|
|
1354
|
+
*
|
|
1355
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-pagination--docs)
|
|
1356
|
+
*
|
|
1357
|
+
* ## Attributes & Properties
|
|
1358
|
+
*
|
|
1359
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1360
|
+
*
|
|
1361
|
+
* - `base-url`/`baseUrl`: undefined
|
|
1362
|
+
* - `pages`: undefined
|
|
1363
|
+
* - `current-page`/`currentPageNumber`: undefined
|
|
1364
|
+
* - `visible-pages`/`visiblePages`: undefined
|
|
1365
|
+
*
|
|
1366
|
+
* ## Events
|
|
1367
|
+
*
|
|
1368
|
+
* Events that will be emitted by the component.
|
|
1369
|
+
*
|
|
1370
|
+
* - `page-click`: Triggered when a link button in the pagination is clicked. Contains the page number in `string` form.
|
|
1371
|
+
*/
|
|
1372
|
+
"w-pagination": Partial<WarpPaginationProps & BaseProps<WarpPagination> & BaseEvents>;
|
|
1373
|
+
|
|
1374
|
+
|
|
1375
|
+
/**
|
|
1376
|
+
* 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.
|
|
1377
|
+
*
|
|
1378
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-pill--docs)
|
|
1379
|
+
*
|
|
1380
|
+
* ## Attributes & Properties
|
|
1381
|
+
*
|
|
1382
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1383
|
+
*
|
|
1384
|
+
* - `can-close`/`canClose`: undefined
|
|
1385
|
+
* - `suggestion`: undefined
|
|
1386
|
+
* - `open-sr-label`/`openSrLabel`: undefined
|
|
1387
|
+
* - `open-aria-label`/`openAriaLabel`: undefined
|
|
1388
|
+
* - `close-sr-label`/`closeSrLabel`: undefined
|
|
1389
|
+
* - `close-aria-label`/`closeAriaLabel`: undefined
|
|
1390
|
+
* - `openFilterSrText`: undefined (property only)
|
|
1391
|
+
* - `removeFilterSrText`: undefined (property only)
|
|
1392
|
+
*
|
|
1393
|
+
* ## Events
|
|
1394
|
+
*
|
|
1395
|
+
* Events that will be emitted by the component.
|
|
1396
|
+
*
|
|
1397
|
+
* - `w-pill-click`: undefined
|
|
1398
|
+
* - `w-pill-close`: undefined
|
|
1399
|
+
*/
|
|
1400
|
+
"w-pill": Partial<WarpPillProps & BaseProps<WarpPill> & BaseEvents>;
|
|
1401
|
+
|
|
1402
|
+
|
|
1403
|
+
/**
|
|
1404
|
+
*
|
|
1405
|
+
*
|
|
1406
|
+
* ## Attributes & Properties
|
|
1407
|
+
*
|
|
1408
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1409
|
+
*
|
|
1410
|
+
* - `title`: undefined
|
|
1411
|
+
* - `name`: The name of the checkbox, submitted as a name/value pair with form data.
|
|
1412
|
+
* - `value`: The value of the checkbox, submitted as a name/value pair with form data.
|
|
1413
|
+
* - `size`: The checkbox's size.
|
|
1414
|
+
* - `disabled`: Disables the checkbox.
|
|
1415
|
+
* - `indeterminate`: Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a "select
|
|
1416
|
+
* all/none" behavior when associated checkboxes have a mix of checked and unchecked states.
|
|
1417
|
+
* - `checked`/`defaultChecked`: The default value of the form control. Primarily used for resetting the form control.
|
|
1418
|
+
* - `form`: By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
1419
|
+
* to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
1420
|
+
* the same document or shadow root for this to work.
|
|
1421
|
+
* - `required`: Makes the checkbox a required field.
|
|
1422
|
+
* - `hint`: The checkbox's hint. If you need to display HTML, use the `hint` slot instead.
|
|
1423
|
+
* - `input`: undefined (property only)
|
|
1424
|
+
* - `checked`: Draws the checkbox in a checked state. (property only)
|
|
1425
|
+
*
|
|
1426
|
+
* ## Events
|
|
1427
|
+
*
|
|
1428
|
+
* Events that will be emitted by the component.
|
|
1429
|
+
*
|
|
1430
|
+
* - `change`: undefined
|
|
1431
|
+
*
|
|
1432
|
+
* ## Methods
|
|
1433
|
+
*
|
|
1434
|
+
* Methods that can be called to access component functionality.
|
|
1435
|
+
*
|
|
1436
|
+
* - `handleDefaultCheckedChange() => void`: undefined
|
|
1437
|
+
* - `handleValueOrCheckedChange() => void`: undefined
|
|
1438
|
+
* - `handleStateChange() => void`: undefined
|
|
1439
|
+
* - `handleDisabledChange() => void`: undefined
|
|
1440
|
+
* - `formResetCallback() => void`: undefined
|
|
1441
|
+
* - `click() => void`: Simulates a click on the checkbox.
|
|
1442
|
+
* - `focus(options?: FocusOptions) => void`: Sets focus on the checkbox.
|
|
1443
|
+
* - `blur() => void`: Removes focus from the checkbox.
|
|
1444
|
+
*/
|
|
1445
|
+
"w-checkbox": Partial<WCheckboxProps & BaseProps<WCheckbox> & BaseEvents>;
|
|
1446
|
+
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
*
|
|
1450
|
+
*
|
|
1451
|
+
* ## Attributes & Properties
|
|
1452
|
+
*
|
|
1453
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1454
|
+
*
|
|
1455
|
+
* - `form`: The string pointing to a form's id.
|
|
1456
|
+
* - `value`: The radio's value. When selected, the radio group will receive this value.
|
|
1457
|
+
* - `appearance`: The radio's value. When selected, the radio group will receive this value.
|
|
1458
|
+
* - `size`: The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this
|
|
1459
|
+
* attribute can typically be omitted.
|
|
1460
|
+
* - `disabled`: Disables the radio.
|
|
1461
|
+
* - `checked`: undefined (property only)
|
|
1462
|
+
*
|
|
1463
|
+
* ## Methods
|
|
1464
|
+
*
|
|
1465
|
+
* Methods that can be called to access component functionality.
|
|
1466
|
+
*
|
|
1467
|
+
* - `setValue() => void`: undefined
|
|
1468
|
+
*/
|
|
1469
|
+
"w-radio": Partial<WRadioProps & BaseProps<WRadio> & BaseEvents>;
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
*
|
|
1474
|
+
*
|
|
1475
|
+
* ## Attributes & Properties
|
|
1476
|
+
*
|
|
1477
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1478
|
+
*
|
|
1479
|
+
* - `label`: The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot
|
|
1480
|
+
* instead.
|
|
1481
|
+
* - `hint`: The radio groups's hint. If you need to display HTML, use the `hint` slot instead.
|
|
1482
|
+
* - `name`: The name of the radio group, submitted as a name/value pair with form data.
|
|
1483
|
+
* - `disabled`: Disables the radio group and all child radios.
|
|
1484
|
+
* - `orientation`: The orientation in which to show radio items.
|
|
1485
|
+
* - `value`/`defaultValue`: The default value of the form control. Primarily used for resetting the form control.
|
|
1486
|
+
* - `size`: The radio group's size. This size will be applied to all child radios and radio buttons, except when explicitly overridden.
|
|
1487
|
+
* - `required`: Ensures a child radio is checked before allowing the containing form to submit.
|
|
1488
|
+
* - `with-label`/`withLabel`: Used for SSR. if true, will show slotted label on initial render.
|
|
1489
|
+
* - `with-hint`/`withHint`: Used for SSR. if true, will show slotted hint on initial render.
|
|
1490
|
+
* - `hasRadioButtons`: undefined (property only)
|
|
1491
|
+
* - `defaultSlot`: undefined (property only)
|
|
1492
|
+
* - `value`: The current value of the radio group, submitted as a name/value pair with form data. (property only)
|
|
1493
|
+
* - `validationTarget`: We use the first available radio as the validationTarget similar to native HTML that shows the validation popup on
|
|
1494
|
+
* the first radio element. (property only) (readonly)
|
|
1495
|
+
*
|
|
1496
|
+
* ## Events
|
|
1497
|
+
*
|
|
1498
|
+
* Events that will be emitted by the component.
|
|
1499
|
+
*
|
|
1500
|
+
* - `input`: undefined
|
|
1501
|
+
* - `change`: undefined
|
|
1502
|
+
*
|
|
1503
|
+
* ## Slots
|
|
1504
|
+
*
|
|
1505
|
+
* Areas where markup can be added to the component.
|
|
1506
|
+
*
|
|
1507
|
+
* - `label`: Alternative to the `label` attribute should you need custom HTML.
|
|
1508
|
+
*
|
|
1509
|
+
* ## Methods
|
|
1510
|
+
*
|
|
1511
|
+
* Methods that can be called to access component functionality.
|
|
1512
|
+
*
|
|
1513
|
+
* - `formResetCallback(args: Parameters<BaseFormAssociatedElement['formResetCallback']>) => void`: undefined
|
|
1514
|
+
* - `focus(options?: FocusOptions) => void`: Sets focus on the radio group.
|
|
1515
|
+
*/
|
|
1516
|
+
"w-radio-group": Partial<WRadioGroupProps & BaseProps<WRadioGroup> & BaseEvents>;
|
|
1517
|
+
|
|
1518
|
+
|
|
1519
|
+
/**
|
|
1520
|
+
* A dropdown component for selecting a single value.
|
|
1521
|
+
*
|
|
1522
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-select--docs)
|
|
1523
|
+
*
|
|
1524
|
+
* ## Attributes & Properties
|
|
1525
|
+
*
|
|
1526
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1527
|
+
*
|
|
1528
|
+
* - `auto-focus`/`autoFocus`: Whether the element should receive focus on render
|
|
1529
|
+
* - `invalid`: Renders the field in an invalid state. Often paired with `hint` to provide feedback about the error
|
|
1530
|
+
* - `always`: Whether to always show a hint
|
|
1531
|
+
* - `hint`: The content displayed as the help text
|
|
1532
|
+
* - `label`: The content to disply as the label
|
|
1533
|
+
* - `optional`: Whether to show optional text
|
|
1534
|
+
* - `disabled`: Renders the field in a disabled state.
|
|
1535
|
+
* - `read-only`/`readOnly`: Renders the field in a readonly state.
|
|
1536
|
+
* - `name`: undefined
|
|
1537
|
+
* - `value`: undefined
|
|
1538
|
+
*
|
|
1539
|
+
* ## Methods
|
|
1540
|
+
*
|
|
1541
|
+
* Methods that can be called to access component functionality.
|
|
1542
|
+
*
|
|
1543
|
+
* - `handleKeyDown(event: KeyboardEvent) => void`: undefined
|
|
1544
|
+
* - `onChange({ target }) => void`: undefined
|
|
1545
|
+
*/
|
|
1546
|
+
"w-select": Partial<WarpSelectProps & BaseProps<WarpSelect> & BaseEvents>;
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
/**
|
|
1550
|
+
* A single line text input element.
|
|
1551
|
+
*
|
|
1552
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
1553
|
+
*
|
|
1554
|
+
* ## Attributes & Properties
|
|
1555
|
+
*
|
|
1556
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1557
|
+
*
|
|
1558
|
+
* - `disabled`: undefined
|
|
1559
|
+
* - `invalid`: undefined
|
|
1560
|
+
* - `id`: undefined
|
|
1561
|
+
* - `label`: undefined
|
|
1562
|
+
* - `help-text`/`helpText`: undefined
|
|
1563
|
+
* - `size`: undefined
|
|
1564
|
+
* - `max`: undefined
|
|
1565
|
+
* - `min`: undefined
|
|
1566
|
+
* - `min-length`/`minLength`: undefined
|
|
1567
|
+
* - `max-length`/`maxLength`: undefined
|
|
1568
|
+
* - `pattern`: undefined
|
|
1569
|
+
* - `placeholder`: undefined
|
|
1570
|
+
* - `read-only`/`readOnly`: undefined
|
|
1571
|
+
* - `required`: undefined
|
|
1572
|
+
* - `type`: undefined
|
|
1573
|
+
* - `value`: undefined
|
|
1574
|
+
* - `name`: undefined
|
|
1575
|
+
* - `formatter`: Function to format value when the input field.
|
|
1576
|
+
*
|
|
1577
|
+
* Only active when the input field does not have focus,
|
|
1578
|
+
* similar to the accessible input masking example from Filament Group
|
|
1579
|
+
*
|
|
1580
|
+
* https://css-tricks.com/input-masking/
|
|
1581
|
+
* https://filamentgroup.github.io/politespace/demo/demo.html (property only)
|
|
1582
|
+
*
|
|
1583
|
+
* ## Methods
|
|
1584
|
+
*
|
|
1585
|
+
* Methods that can be called to access component functionality.
|
|
1586
|
+
*
|
|
1587
|
+
* - `handler(e: Event) => void`: undefined
|
|
1588
|
+
* - `prefixSlotChange() => void`: undefined
|
|
1589
|
+
* - `suffixSlotChange() => void`: undefined
|
|
1590
|
+
*/
|
|
1591
|
+
"w-textfield": Partial<WarpTextFieldProps & BaseProps<WarpTextField> & BaseEvents>;
|
|
1592
|
+
|
|
1593
|
+
|
|
1594
|
+
/**
|
|
1595
|
+
* Component to place inside a `<w-slider>`.
|
|
1596
|
+
*
|
|
1597
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
|
|
1598
|
+
*
|
|
1599
|
+
* ## Attributes & Properties
|
|
1600
|
+
*
|
|
1601
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1602
|
+
*
|
|
1603
|
+
* - `aria-label`/`ariaLabel`: undefined
|
|
1604
|
+
* - `aria-description`/`ariaDescription`: undefined
|
|
1605
|
+
* - `label`: undefined
|
|
1606
|
+
* - `name`: undefined
|
|
1607
|
+
* - `value`: undefined
|
|
1608
|
+
* - `disabled`: undefined
|
|
1609
|
+
* - `markers`: Set by `<w-slider>` (property only)
|
|
1610
|
+
* - `required`: Set by `<w-slider>` (property only)
|
|
1611
|
+
* - `step`: Set by `<w-slider>` (property only)
|
|
1612
|
+
* - `min`: Set by `<w-slider>` (property only)
|
|
1613
|
+
* - `max`: Set by `<w-slider>` (property only)
|
|
1614
|
+
* - `suffix`: Set by `<w-slider>` (property only)
|
|
1615
|
+
* - `formatter`: JS hook to help you format the numeric value how you want. (property only)
|
|
1616
|
+
* - `range`: undefined (property only)
|
|
1617
|
+
* - `textfield`: undefined (property only)
|
|
1618
|
+
*
|
|
1619
|
+
* ## Events
|
|
1620
|
+
*
|
|
1621
|
+
* Events that will be emitted by the component.
|
|
1622
|
+
*
|
|
1623
|
+
* - `slidervalidity`: undefined
|
|
1624
|
+
*/
|
|
1625
|
+
"w-slider-thumb": Partial<WarpSliderThumbProps & BaseProps<WarpSliderThumb> & BaseEvents>;
|
|
1626
|
+
|
|
1627
|
+
|
|
1628
|
+
/**
|
|
1629
|
+
* Parent component for sliders (both single and range sliders). Used in combination with a `<w-slider-thumb>`.
|
|
1630
|
+
*
|
|
1631
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
|
|
1632
|
+
*
|
|
1633
|
+
* ## Attributes & Properties
|
|
1634
|
+
*
|
|
1635
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1636
|
+
*
|
|
1637
|
+
* - `label`: The slider fieldset label. Required for proper accessibility.
|
|
1638
|
+
*
|
|
1639
|
+
* If you need to display HTML, use the `label` slot instead.
|
|
1640
|
+
* - `disabled`: undefined
|
|
1641
|
+
* - `invalid`: undefined
|
|
1642
|
+
* - `required`: Ensures a child slider thumb has a value before allowing the containing form to submit.
|
|
1643
|
+
* - `min`: undefined
|
|
1644
|
+
* - `max`: undefined
|
|
1645
|
+
* - `markers`: Pass a value similar to step to create visual markers at that interval
|
|
1646
|
+
* - `step`: undefined
|
|
1647
|
+
* - `suffix`: Suffix used in text input fields and for the min and max values of the slider.
|
|
1648
|
+
* - `formatter`: Function to format the to- and from labels and value in the slider thumb tooltip. (property only)
|
|
1649
|
+
*
|
|
1650
|
+
* ## Slots
|
|
1651
|
+
*
|
|
1652
|
+
* Areas where markup can be added to the component.
|
|
1653
|
+
*
|
|
1654
|
+
* - `(default)`: For single sliders place a `<w-slider-thumb>` in the default slot.
|
|
1655
|
+
* - `label`: Label for the slider or range slider as a whole.
|
|
1656
|
+
* - `description`: Optional description between the label and slider.
|
|
1657
|
+
* - `from`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
|
|
1658
|
+
* - `to`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
|
|
1659
|
+
*/
|
|
1660
|
+
"w-slider": Partial<WarpSliderProps & BaseProps<WarpSlider> & BaseEvents>;
|
|
1661
|
+
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* Steps are used to show progress through a process or to guide users through a multi-step task.
|
|
1665
|
+
*
|
|
1666
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/components-steps--docs)
|
|
1667
|
+
*
|
|
1668
|
+
* ## Attributes & Properties
|
|
1669
|
+
*
|
|
1670
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1671
|
+
*
|
|
1672
|
+
* - `horizontal`: undefined
|
|
1673
|
+
* - `right`: undefined
|
|
1674
|
+
*
|
|
1675
|
+
* ## Methods
|
|
1676
|
+
*
|
|
1677
|
+
* Methods that can be called to access component functionality.
|
|
1678
|
+
*
|
|
1679
|
+
* - `updateStepsContext() => void`: undefined
|
|
1680
|
+
*/
|
|
1681
|
+
"w-steps": Partial<WarpStepsProps & BaseProps<WarpSteps> & BaseEvents>;
|
|
1682
|
+
|
|
1683
|
+
|
|
1684
|
+
/**
|
|
1685
|
+
* Individual step component that shows a single step in a process
|
|
1686
|
+
*
|
|
1687
|
+
* ## Attributes & Properties
|
|
1688
|
+
*
|
|
1689
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1690
|
+
*
|
|
1691
|
+
* - `active`: undefined
|
|
1692
|
+
* - `completed`: undefined
|
|
1693
|
+
*
|
|
1694
|
+
* ## Methods
|
|
1695
|
+
*
|
|
1696
|
+
* Methods that can be called to access component functionality.
|
|
1697
|
+
*
|
|
1698
|
+
* - `setContext(context: StepsContext) => void`: undefined
|
|
1699
|
+
* - `getAriaLabel() => void`: undefined
|
|
1700
|
+
*/
|
|
1701
|
+
"w-step": Partial<WarpStepProps & BaseProps<WarpStep> & BaseEvents>;
|
|
1702
|
+
|
|
1703
|
+
|
|
1704
|
+
/**
|
|
1705
|
+
*
|
|
1706
|
+
*
|
|
1707
|
+
* ## Attributes & Properties
|
|
1708
|
+
*
|
|
1709
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1710
|
+
*
|
|
1711
|
+
* - `value`: undefined
|
|
1712
|
+
* - `disabled`: undefined
|
|
1713
|
+
*
|
|
1714
|
+
* ## Events
|
|
1715
|
+
*
|
|
1716
|
+
* Events that will be emitted by the component.
|
|
1717
|
+
*
|
|
1718
|
+
* - `change`: undefined
|
|
1719
|
+
*/
|
|
1720
|
+
"w-switch": Partial<WarpSwitchProps & BaseProps<WarpSwitch> & BaseEvents>;
|
|
1721
|
+
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* Individual tab component used within w-tabs container.
|
|
1725
|
+
*
|
|
1726
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
1727
|
+
*
|
|
1728
|
+
* ## Attributes & Properties
|
|
1729
|
+
*
|
|
1730
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1731
|
+
*
|
|
1732
|
+
* - `name`: undefined
|
|
1733
|
+
* - `label`: undefined
|
|
1734
|
+
* - `active`: undefined
|
|
1735
|
+
* - `over`: undefined
|
|
1736
|
+
* - `tab-class`/`tabClass`: undefined
|
|
1737
|
+
*/
|
|
1738
|
+
"w-tab": Partial<WarpTabProps & BaseProps<WarpTab> & BaseEvents>;
|
|
1739
|
+
|
|
1740
|
+
|
|
1741
|
+
/**
|
|
1742
|
+
* Tab panel component that holds content for individual tabs.
|
|
1743
|
+
* Each tab panel should have a name that matches a corresponding tab.
|
|
1744
|
+
*
|
|
1745
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
1746
|
+
*
|
|
1747
|
+
* ## Attributes & Properties
|
|
1748
|
+
*
|
|
1749
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1750
|
+
*
|
|
1751
|
+
* - `name`: undefined
|
|
1752
|
+
* - `hidden`: undefined
|
|
1753
|
+
*/
|
|
1754
|
+
"w-tab-panel": Partial<WarpTabPanelProps & BaseProps<WarpTabPanel> & BaseEvents>;
|
|
1755
|
+
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
* Tabs are used to organize content by grouping similar information on the same page.
|
|
1759
|
+
*
|
|
1760
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
1761
|
+
*
|
|
1762
|
+
* ## Attributes & Properties
|
|
1763
|
+
*
|
|
1764
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1765
|
+
*
|
|
1766
|
+
* - `active`: undefined
|
|
1767
|
+
* - `tab-class`/`tabClass`: undefined
|
|
1768
|
+
* - `tabs`: undefined (property only) (readonly)
|
|
1769
|
+
* - `activeTab`: undefined (property only) (readonly)
|
|
1770
|
+
*
|
|
1771
|
+
* ## Events
|
|
1772
|
+
*
|
|
1773
|
+
* Events that will be emitted by the component.
|
|
1774
|
+
*
|
|
1775
|
+
* - `change`: undefined
|
|
1776
|
+
*/
|
|
1777
|
+
"w-tabs": Partial<WarpTabsProps & BaseProps<WarpTabs> & BaseEvents>;
|
|
1778
|
+
|
|
1779
|
+
|
|
1780
|
+
/**
|
|
1781
|
+
*
|
|
1782
|
+
*
|
|
1783
|
+
* ## Methods
|
|
1784
|
+
*
|
|
1785
|
+
* Methods that can be called to access component functionality.
|
|
1786
|
+
*
|
|
1787
|
+
* - `init() => void`: undefined
|
|
1788
|
+
* - `get(id: string | number) => ToastInternal | undefined`: undefined
|
|
1789
|
+
* - `set(toast: ToastOptions) => Map<string | number, ToastInternal>`: undefined
|
|
1790
|
+
* - `del(id: string | number) => Promise<boolean>`: undefined
|
|
1791
|
+
*/
|
|
1792
|
+
"w-toast-container": Partial<WarpToastContainerProps & BaseProps<WarpToastContainer> & BaseEvents>;
|
|
1793
|
+
}
|
|
1794
|
+
|
|
1795
|
+
export type CustomCssProperties = {
|
|
1796
|
+
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
|
|
1800
|
+
declare module 'react' {
|
|
1801
|
+
namespace JSX {
|
|
1802
|
+
interface IntrinsicElements extends CustomElements {}
|
|
1803
|
+
}
|
|
1804
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
declare module 'preact' {
|
|
1808
|
+
namespace JSX {
|
|
1809
|
+
interface IntrinsicElements extends CustomElements {}
|
|
1810
|
+
}
|
|
1811
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
declare module '@builder.io/qwik' {
|
|
1815
|
+
namespace JSX {
|
|
1816
|
+
interface IntrinsicElements extends CustomElements {}
|
|
1817
|
+
}
|
|
1818
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
declare module '@stencil/core' {
|
|
1822
|
+
namespace JSX {
|
|
1823
|
+
interface IntrinsicElements extends CustomElements {}
|
|
1824
|
+
}
|
|
1825
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
declare module 'hono' {
|
|
1829
|
+
namespace JSX {
|
|
1830
|
+
interface IntrinsicElements extends CustomElements {}
|
|
1831
|
+
}
|
|
1832
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
declare module 'react-native' {
|
|
1836
|
+
namespace JSX {
|
|
1837
|
+
interface IntrinsicElements extends CustomElements {}
|
|
1838
|
+
}
|
|
1839
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
declare global {
|
|
1843
|
+
namespace JSX {
|
|
1844
|
+
interface IntrinsicElements extends CustomElements {}
|
|
1845
|
+
}
|
|
1846
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
1847
|
+
}
|