@warp-ds/elements 2.3.2 → 2.4.0-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.js.map +2 -2
- package/dist/custom-elements.json +4016 -385
- package/dist/index.d.ts +3526 -746
- package/dist/packages/affix/{index.js → affix.js} +1 -1
- package/dist/packages/affix/{index.js.map → affix.js.map} +1 -1
- package/dist/packages/affix/affix.react.stories.d.ts +1 -1
- package/dist/packages/affix/affix.stories.d.ts +2 -2
- package/dist/packages/affix/affix.stories.js +1 -1
- package/dist/packages/affix/affix.test.d.ts +1 -1
- package/dist/packages/affix/affix.test.js +1 -1
- package/dist/packages/affix/react.d.ts +1 -1
- package/dist/packages/alert/{index.js → alert.js} +1 -1
- package/dist/packages/alert/{index.js.map → alert.js.map} +1 -1
- package/dist/packages/alert/alert.react.stories.d.ts +1 -1
- package/dist/packages/alert/alert.stories.d.ts +2 -2
- package/dist/packages/alert/alert.stories.js +1 -1
- package/dist/packages/alert/alert.test.d.ts +1 -1
- package/dist/packages/alert/alert.test.js +1 -1
- package/dist/packages/alert/react.d.ts +1 -1
- package/dist/packages/alert/react.js +1 -1
- package/dist/packages/attention/{index.d.ts → attention.d.ts} +1 -1
- package/dist/packages/attention/{index.js → attention.js} +15 -15
- package/dist/packages/attention/{index.js.map → attention.js.map} +4 -4
- package/dist/packages/attention/attention.react.stories.d.ts +1 -1
- package/dist/packages/attention/attention.stories.d.ts +3 -3
- package/dist/packages/attention/attention.stories.js +2 -2
- package/dist/packages/attention/attention.test.d.ts +1 -1
- package/dist/packages/attention/attention.test.js +1 -1
- package/dist/packages/attention/react.d.ts +1 -1
- package/dist/packages/attention/react.js +1 -1
- package/dist/packages/badge/{index.js → badge.js} +1 -1
- package/dist/packages/badge/{index.js.map → badge.js.map} +1 -1
- package/dist/packages/badge/badge.react.stories.d.ts +3 -3
- package/dist/packages/badge/badge.stories.d.ts +2 -2
- package/dist/packages/badge/badge.stories.js +1 -1
- package/dist/packages/badge/badge.test.d.ts +1 -1
- package/dist/packages/badge/badge.test.js +1 -1
- package/dist/packages/badge/react.d.ts +1 -1
- package/dist/packages/badge/react.js +1 -1
- package/dist/packages/box/{index.js → box.js} +1 -1
- package/dist/packages/box/{index.js.map → box.js.map} +1 -1
- package/dist/packages/box/box.react.stories.d.ts +3 -3
- package/dist/packages/box/box.stories.d.ts +2 -2
- package/dist/packages/box/box.stories.js +1 -1
- package/dist/packages/box/box.test.d.ts +1 -1
- package/dist/packages/box/box.test.js +1 -1
- package/dist/packages/box/react.d.ts +1 -1
- package/dist/packages/box/react.js +1 -1
- package/dist/packages/box/slot.test.d.ts +1 -1
- package/dist/packages/box/slot.test.js +1 -1
- package/dist/packages/breadcrumbs/{index.js → breadcrumbs.js} +1 -1
- package/dist/packages/breadcrumbs/{index.js.map → breadcrumbs.js.map} +1 -1
- package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +3 -3
- package/dist/packages/breadcrumbs/breadcrumbs.stories.d.ts +2 -2
- package/dist/packages/breadcrumbs/breadcrumbs.stories.js +1 -1
- package/dist/packages/breadcrumbs/breadcrumbs.test.d.ts +1 -1
- package/dist/packages/breadcrumbs/breadcrumbs.test.js +1 -1
- package/dist/packages/breadcrumbs/react.d.ts +1 -1
- package/dist/packages/breadcrumbs/react.js +1 -1
- package/dist/packages/button/{index.d.ts → button.d.ts} +1 -1
- package/dist/packages/button/{index.js → button.js} +12 -12
- package/dist/packages/button/button.js.map +7 -0
- package/dist/packages/button/button.react.stories.d.ts +3 -3
- package/dist/packages/button/button.stories.d.ts +2 -2
- package/dist/packages/button/button.stories.js +1 -1
- package/dist/packages/button/button.test.d.ts +1 -1
- package/dist/packages/button/button.test.js +1 -1
- package/dist/packages/button/react.d.ts +1 -1
- package/dist/packages/button/react.js +1 -1
- package/dist/packages/card/{index.js → card.js} +1 -1
- package/dist/packages/card/{index.js.map → card.js.map} +1 -1
- package/dist/packages/card/card.react.stories.d.ts +3 -3
- package/dist/packages/card/card.stories.d.ts +2 -2
- package/dist/packages/card/card.stories.js +1 -1
- package/dist/packages/card/card.test.d.ts +1 -1
- package/dist/packages/card/card.test.js +1 -1
- package/dist/packages/card/react.d.ts +1 -1
- package/dist/packages/card/react.js +1 -1
- package/dist/packages/checkbox/checkbox.d.ts +66 -0
- package/dist/packages/checkbox/checkbox.js +2591 -0
- package/dist/packages/checkbox/checkbox.js.map +7 -0
- package/dist/packages/checkbox/checkbox.react.stories.d.ts +12 -0
- package/dist/packages/checkbox/checkbox.react.stories.js +10 -0
- package/dist/packages/checkbox/checkbox.stories.d.ts +12 -0
- package/dist/packages/checkbox/checkbox.stories.js +26 -0
- package/dist/packages/checkbox/react.d.ts +5 -0
- package/dist/packages/checkbox/react.js +15 -0
- package/dist/packages/checkbox/styles.d.ts +0 -0
- package/dist/packages/checkbox/styles.js +0 -0
- package/dist/packages/checkbox-group/checkbox-group.d.ts +10 -0
- package/dist/packages/checkbox-group/checkbox-group.js +7 -0
- package/dist/packages/checkbox-group/checkbox-group.js.map +7 -0
- package/dist/packages/checkbox-group/react.d.ts +2 -0
- package/dist/packages/checkbox-group/react.js +11 -0
- package/dist/packages/combobox/combobox.d.ts +89 -0
- package/dist/packages/combobox/combobox.js +2494 -0
- package/dist/packages/combobox/combobox.js.map +7 -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 +19 -0
- package/dist/packages/combobox/combobox.stories.js +143 -0
- package/dist/packages/combobox/combobox.test.d.ts +2 -0
- package/dist/packages/combobox/combobox.test.js +21 -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 +3 -0
- package/dist/packages/datepicker/DatePicker.test.d.ts +2 -2
- package/dist/packages/datepicker/DatePicker.test.js +2 -2
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +2 -2
- package/dist/packages/datepicker/datepicker.stories.d.ts +3 -3
- package/dist/packages/datepicker/datepicker.stories.js +2 -2
- package/dist/packages/datepicker/datepicker.test.d.ts +2 -2
- package/dist/packages/datepicker/datepicker.test.js +2 -2
- package/dist/packages/datepicker/react.js +1 -1
- package/dist/packages/dead-toggle/dead-toggle.d.ts +17 -0
- package/dist/packages/dead-toggle/dead-toggle.js +2547 -0
- package/dist/packages/dead-toggle/dead-toggle.js.map +7 -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/react.d.ts +2 -0
- package/dist/packages/dead-toggle/react.js +11 -0
- package/dist/packages/expandable/{index.js → expandable.js} +1 -1
- package/dist/packages/expandable/{index.js.map → expandable.js.map} +1 -1
- package/dist/packages/expandable/expandable.react.stories.d.ts +3 -3
- package/dist/packages/expandable/expandable.stories.d.ts +2 -2
- package/dist/packages/expandable/expandable.stories.js +1 -1
- package/dist/packages/expandable/expandable.test.d.ts +1 -1
- package/dist/packages/expandable/expandable.test.js +1 -1
- package/dist/packages/expandable/react.d.ts +1 -1
- package/dist/packages/expandable/react.js +1 -1
- package/dist/packages/icon/icon.d.ts +27 -0
- package/dist/packages/icon/icon.js +101 -0
- package/dist/packages/icon/icon.react.stories.d.ts +28 -0
- package/dist/packages/icon/icon.react.stories.js +37 -0
- package/dist/packages/icon/icon.stories.d.ts +39 -0
- package/dist/packages/icon/icon.stories.js +43 -0
- package/dist/packages/icon/react.d.ts +2 -0
- package/dist/packages/icon/react.js +11 -0
- package/dist/packages/icon/style.d.ts +1 -0
- package/dist/packages/icon/style.js +27 -0
- package/dist/packages/link/{index.js → link.js} +3 -3
- package/dist/packages/link/link.js.map +7 -0
- package/dist/packages/link/link.react.stories.d.ts +3 -3
- package/dist/packages/link/link.stories.d.ts +2 -2
- package/dist/packages/link/link.stories.js +1 -1
- package/dist/packages/link/link.test.d.ts +1 -1
- package/dist/packages/link/link.test.js +1 -1
- package/dist/packages/link/react.d.ts +1 -1
- package/dist/packages/link/react.js +1 -1
- package/dist/packages/link/styles.js +2 -2
- package/dist/packages/modal/index.d.ts +6 -3
- package/dist/packages/modal/index.js +10 -2717
- package/dist/packages/modal/{modal-main.js → modal.js} +1 -1
- package/dist/packages/modal/{modal-main.js.map → modal.js.map} +1 -1
- package/dist/packages/modal/modal.react.stories.d.ts +1 -1
- package/dist/packages/modal/modal.stories.d.ts +6 -3
- package/dist/packages/modal/modal.stories.js +3 -1
- package/dist/packages/modal/react.d.ts +3 -6
- package/dist/packages/modal/react.js +4 -15
- package/dist/packages/{modal → modal-footer}/modal-footer.d.ts +2 -2
- package/dist/packages/{modal → modal-footer}/modal-footer.js +4 -4
- package/dist/packages/modal-footer/modal-footer.js.map +7 -0
- package/dist/packages/modal-footer/react.d.ts +2 -0
- package/dist/packages/modal-footer/react.js +11 -0
- package/dist/packages/{modal → modal-header}/modal-header.d.ts +1 -1
- package/dist/packages/{modal → modal-header}/modal-header.js +4 -4
- package/dist/packages/modal-header/modal-header.js.map +7 -0
- package/dist/packages/modal-header/react.d.ts +5 -0
- package/dist/packages/modal-header/react.js +15 -0
- package/dist/packages/page-indicator/page-indicator.d.ts +10 -0
- package/dist/packages/page-indicator/page-indicator.js +32 -0
- package/dist/packages/page-indicator/page-indicator.js.map +7 -0
- package/dist/packages/page-indicator/page-indicator.react.stories.d.ts +19 -0
- package/dist/packages/page-indicator/page-indicator.react.stories.js +20 -0
- package/dist/packages/page-indicator/page-indicator.stories.d.ts +32 -0
- package/dist/packages/page-indicator/page-indicator.stories.js +71 -0
- package/dist/packages/page-indicator/react.d.ts +2 -0
- package/dist/packages/page-indicator/react.js +11 -0
- package/dist/packages/page-indicator/style.d.ts +1 -0
- package/dist/packages/page-indicator/style.js +26 -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.d.ts +32 -0
- package/dist/packages/pagination/pagination.js +2500 -0
- package/dist/packages/pagination/pagination.js.map +7 -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.js → pill.js} +1 -1
- package/dist/packages/pill/{index.js.map → pill.js.map} +1 -1
- package/dist/packages/pill/pill.react.stories.d.ts +4 -4
- package/dist/packages/pill/pill.stories.d.ts +2 -2
- package/dist/packages/pill/pill.stories.js +1 -1
- package/dist/packages/pill/pill.test.d.ts +1 -1
- package/dist/packages/pill/pill.test.js +1 -1
- package/dist/packages/pill/react.d.ts +1 -1
- package/dist/packages/pill/react.js +1 -1
- package/dist/packages/radio/base-element.d.ts +46 -0
- package/dist/packages/radio/base-element.js +100 -0
- package/dist/packages/radio/custom-error-validator.d.ts +6 -0
- package/dist/packages/radio/custom-error-validator.js +22 -0
- package/dist/packages/radio/form-associated-element.d.ts +103 -0
- package/dist/packages/radio/form-associated-element.js +282 -0
- package/dist/packages/radio/host-styles.d.ts +1 -0
- package/dist/packages/radio/host-styles.js +12 -0
- package/dist/packages/radio/invalid.d.ts +8 -0
- package/dist/packages/radio/invalid.js +5 -0
- package/dist/packages/radio/math.d.ts +1 -0
- package/dist/packages/radio/math.js +4 -0
- package/dist/packages/radio/radio-styles.d.ts +0 -0
- package/dist/packages/radio/radio-styles.js +0 -0
- package/dist/packages/radio/radio.d.ts +38 -0
- package/dist/packages/radio/radio.js +2562 -0
- package/dist/packages/radio/radio.js.map +7 -0
- package/dist/packages/radio/radio.react.stories.d.ts +9 -0
- package/dist/packages/radio/radio.react.stories.js +10 -0
- package/dist/packages/radio/radio.stories.d.ts +15 -0
- package/dist/packages/radio/radio.stories.js +61 -0
- package/dist/packages/radio/react.d.ts +2 -0
- package/dist/packages/radio/react.js +11 -0
- package/dist/packages/radio/required-validator.d.ts +11 -0
- package/dist/packages/radio/required-validator.js +34 -0
- package/dist/packages/radio/slot.d.ts +20 -0
- package/dist/packages/radio/slot.js +71 -0
- package/dist/packages/radio/watch.d.ts +26 -0
- package/dist/packages/radio/watch.js +39 -0
- package/dist/packages/radio-group/radio-group-styles.d.ts +1 -0
- package/dist/packages/radio-group/radio-group-styles.js +59 -0
- package/dist/packages/radio-group/radio-group.d.ts +72 -0
- package/dist/packages/radio-group/radio-group.js +2648 -0
- package/dist/packages/radio-group/radio-group.js.map +7 -0
- package/dist/packages/radio-group/react.d.ts +7 -0
- package/dist/packages/radio-group/react.js +17 -0
- package/dist/packages/select/react.d.ts +1 -1
- package/dist/packages/select/react.js +1 -1
- package/dist/packages/select/{index.js → select.js} +3 -3
- package/dist/packages/select/select.js.map +7 -0
- package/dist/packages/select/select.react.stories.d.ts +4 -4
- package/dist/packages/select/select.react.stories.js +1 -1
- package/dist/packages/select/select.stories.d.ts +2 -2
- package/dist/packages/select/select.stories.js +1 -1
- package/dist/packages/select/select.test.d.ts +1 -1
- package/dist/packages/select/select.test.js +1 -1
- package/dist/packages/slider/Slider.d.ts +2 -0
- package/dist/packages/slider/Slider.js +8 -0
- package/dist/packages/slider/index.d.ts +2 -0
- package/dist/packages/slider/index.js +2 -0
- package/dist/packages/slider/locales/da/messages.d.mts +1 -0
- package/dist/packages/slider/locales/da/messages.mjs +1 -0
- package/dist/packages/slider/locales/en/messages.d.mts +1 -0
- package/dist/packages/slider/locales/en/messages.mjs +1 -0
- package/dist/packages/slider/locales/fi/messages.d.mts +1 -0
- package/dist/packages/slider/locales/fi/messages.mjs +1 -0
- package/dist/packages/slider/locales/nb/messages.d.mts +1 -0
- package/dist/packages/slider/locales/nb/messages.mjs +1 -0
- package/dist/packages/slider/locales/sv/messages.d.mts +1 -0
- package/dist/packages/slider/locales/sv/messages.mjs +1 -0
- package/dist/packages/slider/react.d.ts +3 -0
- package/dist/packages/slider/react.js +13 -0
- package/dist/packages/slider/slider.d.ts +55 -0
- package/dist/packages/slider/slider.js +2632 -0
- package/dist/packages/slider/slider.js.map +7 -0
- package/dist/packages/slider/slider.react.stories.d.ts +19 -0
- package/dist/packages/slider/slider.react.stories.js +140 -0
- package/dist/packages/slider/slider.stories.d.ts +22 -0
- package/dist/packages/slider/slider.stories.js +405 -0
- package/dist/packages/slider/slider.test.d.ts +5 -0
- package/dist/packages/slider/slider.test.js +112 -0
- package/dist/packages/slider/styles/w-slider.styles.d.ts +1 -0
- package/dist/packages/slider/styles/w-slider.styles.js +148 -0
- package/dist/packages/slider/styles.d.ts +1 -0
- package/dist/packages/slider/styles.js +2 -0
- package/dist/packages/slider-thumb/SliderThumb.d.ts +2 -0
- package/dist/packages/slider-thumb/SliderThumb.js +8 -0
- package/dist/packages/slider-thumb/oddbird-css-anchor-positioning.d.ts +2 -0
- package/dist/packages/slider-thumb/oddbird-css-anchor-positioning.js +3 -0
- package/dist/packages/slider-thumb/react.d.ts +6 -0
- package/dist/packages/slider-thumb/react.js +15 -0
- package/dist/packages/slider-thumb/slider-thumb.d.ts +63 -0
- package/dist/packages/slider-thumb/slider-thumb.js +2748 -0
- package/dist/packages/slider-thumb/slider-thumb.js.map +7 -0
- package/dist/packages/slider-thumb/styles/w-slider-thumb.styles.d.ts +1 -0
- package/dist/packages/slider-thumb/styles/w-slider-thumb.styles.js +175 -0
- package/dist/packages/step/react.d.ts +2 -0
- package/dist/packages/step/react.js +11 -0
- package/dist/packages/step/step.d.ts +22 -0
- package/dist/packages/step/step.js +2461 -0
- package/dist/packages/step/step.js.map +7 -0
- package/dist/packages/step-indicator/index.d.ts +2 -0
- package/dist/packages/step-indicator/index.js +2 -0
- package/dist/packages/step-indicator/locales/da/messages.d.mts +1 -0
- package/dist/packages/step-indicator/locales/da/messages.mjs +1 -0
- package/dist/packages/step-indicator/locales/en/messages.d.mts +1 -0
- package/dist/packages/step-indicator/locales/en/messages.mjs +1 -0
- package/dist/packages/step-indicator/locales/fi/messages.d.mts +1 -0
- package/dist/packages/step-indicator/locales/fi/messages.mjs +1 -0
- package/dist/packages/step-indicator/locales/nb/messages.d.mts +1 -0
- package/dist/packages/step-indicator/locales/nb/messages.mjs +1 -0
- package/dist/packages/step-indicator/locales/sv/messages.d.mts +1 -0
- package/dist/packages/step-indicator/locales/sv/messages.mjs +1 -0
- package/dist/packages/step-indicator/react.d.ts +3 -0
- package/dist/packages/step-indicator/react.js +13 -0
- package/dist/packages/step-indicator/step-indicator.d.ts +15 -0
- package/dist/packages/step-indicator/step-indicator.js +2454 -0
- package/dist/packages/step-indicator/step-indicator.js.map +7 -0
- package/dist/packages/step-indicator/stepindicator.react.stories.d.ts +15 -0
- package/dist/packages/step-indicator/stepindicator.react.stories.js +112 -0
- package/dist/packages/step-indicator/stepindicator.stories.d.ts +13 -0
- package/dist/packages/step-indicator/stepindicator.stories.js +173 -0
- package/dist/packages/step-indicator/styles.d.ts +1 -0
- package/dist/packages/step-indicator/styles.js +2 -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.d.ts +23 -0
- package/dist/packages/switch/switch.js +2456 -0
- package/dist/packages/switch/switch.js.map +7 -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 +35 -0
- package/dist/packages/switch/switch.test.d.ts +1 -0
- package/dist/packages/switch/switch.test.js +40 -0
- package/dist/packages/tab/react.d.ts +7 -0
- package/dist/packages/tab/react.js +17 -0
- package/dist/packages/tab/tab.d.ts +15 -0
- package/dist/packages/tab/tab.js +2464 -0
- package/dist/packages/tab/tab.js.map +7 -0
- package/dist/packages/tab-panel/react.d.ts +2 -0
- package/dist/packages/tab-panel/react.js +11 -0
- package/dist/packages/tab-panel/tab-panel.d.ts +20 -0
- package/dist/packages/tab-panel/tab-panel.js +2441 -0
- package/dist/packages/tab-panel/tab-panel.js.map +7 -0
- package/dist/packages/tabs/index.d.ts +3 -0
- package/dist/packages/tabs/index.js +4 -0
- package/dist/packages/tabs/react.d.ts +7 -0
- package/dist/packages/tabs/react.js +18 -0
- package/dist/packages/tabs/styles.d.ts +1 -0
- package/dist/packages/tabs/styles.js +2 -0
- package/dist/packages/tabs/tabs.d.ts +37 -0
- package/dist/packages/tabs/tabs.js +2450 -0
- package/dist/packages/tabs/tabs.js.map +7 -0
- package/dist/packages/tabs/tabs.react.stories.d.ts +28 -0
- package/dist/packages/tabs/tabs.react.stories.js +71 -0
- package/dist/packages/tabs/tabs.stories.d.ts +12 -0
- package/dist/packages/tabs/tabs.stories.js +117 -0
- package/dist/packages/textarea/locales/da/messages.d.mts +1 -0
- package/dist/packages/textarea/locales/da/messages.mjs +1 -0
- package/dist/packages/textarea/locales/en/messages.d.mts +1 -0
- package/dist/packages/textarea/locales/en/messages.mjs +1 -0
- package/dist/packages/textarea/locales/fi/messages.d.mts +1 -0
- package/dist/packages/textarea/locales/fi/messages.mjs +1 -0
- package/dist/packages/textarea/locales/nb/messages.d.mts +1 -0
- package/dist/packages/textarea/locales/nb/messages.mjs +1 -0
- package/dist/packages/textarea/locales/sv/messages.d.mts +1 -0
- package/dist/packages/textarea/locales/sv/messages.mjs +1 -0
- package/dist/packages/textarea/react.d.ts +11 -0
- package/dist/packages/textarea/react.js +21 -0
- package/dist/packages/textarea/styles.d.ts +1 -0
- package/dist/packages/textarea/styles.js +2 -0
- package/dist/packages/textarea/textarea.d.ts +49 -0
- package/dist/packages/textarea/textarea.js +2475 -0
- package/dist/packages/textarea/textarea.js.map +7 -0
- package/dist/packages/textarea/textarea.react.stories.d.ts +33 -0
- package/dist/packages/textarea/textarea.react.stories.js +41 -0
- package/dist/packages/textarea/textarea.stories.d.ts +19 -0
- package/dist/packages/textarea/textarea.stories.js +85 -0
- package/dist/packages/textarea/textarea.test.d.ts +1 -0
- package/dist/packages/textarea/textarea.test.js +68 -0
- package/dist/packages/textfield/react.d.ts +1 -1
- package/dist/packages/textfield/react.js +1 -1
- package/dist/packages/textfield/{index.d.ts → textfield.d.ts} +1 -0
- package/dist/packages/textfield/{index.js → textfield.js} +19 -18
- package/dist/packages/textfield/textfield.js.map +7 -0
- package/dist/packages/textfield/textfield.react.stories.d.ts +4 -4
- package/dist/packages/textfield/textfield.stories.d.ts +2 -2
- package/dist/packages/textfield/textfield.stories.js +1 -1
- package/dist/packages/textfield/textfield.test.d.ts +2 -2
- package/dist/packages/textfield/textfield.test.js +11 -2
- package/dist/packages/toast/index.d.ts +5 -3
- package/dist/packages/toast/index.js +7 -2483
- package/dist/packages/toast/toast.stories.d.ts +4 -3
- package/dist/packages/toast/toast.stories.js +3 -2
- package/dist/packages/{toast → toast-container}/toast-container.d.ts +1 -1
- package/dist/packages/toast-container/toast-container.js.map +7 -0
- package/dist/packages/toggle-styles.d.ts +1 -0
- package/dist/packages/toggle-styles.js +108 -0
- package/dist/setup-tests.d.ts +1 -0
- package/dist/setup-tests.js +1 -0
- package/dist/web-types.json +1018 -39
- package/package.json +174 -32
- package/dist/packages/button/index.js.map +0 -7
- package/dist/packages/datepicker/index.d.ts +0 -1
- package/dist/packages/datepicker/index.js +0 -2785
- package/dist/packages/datepicker/index.js.map +0 -7
- package/dist/packages/link/index.js.map +0 -7
- package/dist/packages/modal/index.js.map +0 -7
- package/dist/packages/modal/modal-footer.js.map +0 -7
- package/dist/packages/modal/modal-header.js.map +0 -7
- package/dist/packages/select/index.js.map +0 -7
- package/dist/packages/textfield/index.js.map +0 -7
- package/dist/packages/toast/index.js.map +0 -7
- package/dist/packages/toast/toast-container.js.map +0 -7
- /package/dist/packages/affix/{index.d.ts → affix.d.ts} +0 -0
- /package/dist/packages/alert/{index.d.ts → alert.d.ts} +0 -0
- /package/dist/packages/badge/{index.d.ts → badge.d.ts} +0 -0
- /package/dist/packages/box/{index.d.ts → box.d.ts} +0 -0
- /package/dist/packages/breadcrumbs/{index.d.ts → breadcrumbs.d.ts} +0 -0
- /package/dist/packages/card/{index.d.ts → card.d.ts} +0 -0
- /package/dist/packages/expandable/{index.d.ts → expandable.d.ts} +0 -0
- /package/dist/packages/link/{index.d.ts → link.d.ts} +0 -0
- /package/dist/packages/modal/{modal-main.d.ts → modal.d.ts} +0 -0
- /package/dist/packages/pill/{index.d.ts → pill.d.ts} +0 -0
- /package/dist/packages/select/{index.d.ts → select.d.ts} +0 -0
- /package/dist/packages/{toast → toast-container}/toast-container.js +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,22 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
14
|
-
import type {
|
|
15
|
-
import type {
|
|
16
|
-
import type {
|
|
17
|
-
import type {
|
|
18
|
-
import type { WarpToastContainer } from "./packages/toast/toast-container.ts";
|
|
1
|
+
import type { WarpAffix } from "./packages/affix/affix.ts";
|
|
2
|
+
import type { WarpAlert } from "./packages/alert/alert.ts";
|
|
3
|
+
import type { WarpLink } from "./packages/link/link.ts";
|
|
4
|
+
import type { WarpButton } from "./packages/button/button.ts";
|
|
5
|
+
import type { WarpAttention } from "./packages/attention/attention.ts";
|
|
6
|
+
import type { WarpBadge } from "./packages/badge/badge.ts";
|
|
7
|
+
import type { WarpBox } from "./packages/box/box.ts";
|
|
8
|
+
import type { WarpBreadcrumbs } from "./packages/breadcrumbs/breadcrumbs.ts";
|
|
9
|
+
import type { WarpCard } from "./packages/card/card.ts";
|
|
10
|
+
import type { WarpExpandable } from "./packages/expandable/expandable.ts";
|
|
11
|
+
import type { WarpPill } from "./packages/pill/pill.ts";
|
|
12
|
+
import type { WarpSelect } from "./packages/select/select.ts";
|
|
13
|
+
import type { WarpTextField } from "./packages/textfield/textfield.ts";
|
|
14
|
+
import type { ModalMain } from "./packages/modal/modal.ts";
|
|
15
|
+
import type { ModalHeader } from "./packages/modal-header/modal-header.ts";
|
|
16
|
+
import type { ModalFooter } from "./packages/modal-footer/modal-footer.ts";
|
|
17
|
+
import type { WarpToastContainer } from "./packages/toast-container/toast-container.ts";
|
|
19
18
|
import type { WarpDatepicker } from "./packages/datepicker/datepicker.ts";
|
|
19
|
+
import type { WarpSwitch } from "./packages/switch/switch.ts";
|
|
20
|
+
import type { WarpCombobox } from "./packages/combobox/combobox.ts";
|
|
21
|
+
import type { WarpDeadToggle } from "./packages/dead-toggle/dead-toggle.ts";
|
|
22
|
+
import type { WarpPageIndicator } from "./packages/page-indicator/page-indicator.ts";
|
|
23
|
+
import type { WarpPagination } from "./packages/pagination/pagination.ts";
|
|
24
|
+
import type { WRadio } from "./packages/radio/radio.ts";
|
|
25
|
+
import type { WRadioGroup } from "./packages/radio-group/radio-group.ts";
|
|
26
|
+
import type { WCheckbox } from "./packages/checkbox/checkbox.ts";
|
|
27
|
+
import type { WCheckboxGroup } from "./packages/checkbox-group/checkbox-group.ts";
|
|
28
|
+
import type { WarpSliderThumb } from "./packages/slider-thumb/slider-thumb.ts";
|
|
29
|
+
import type { WarpSlider } from "./packages/slider/slider.ts";
|
|
30
|
+
import type { WarpStep } from "./packages/step/step.ts";
|
|
31
|
+
import type { WarpStepIndicator } from "./packages/step-indicator/step-indicator.ts";
|
|
32
|
+
import type { WarpTab } from "./packages/tab/tab.ts";
|
|
33
|
+
import type { WarpTabPanel } from "./packages/tab-panel/tab-panel.ts";
|
|
34
|
+
import type { WarpTabs } from "./packages/tabs/tabs.ts";
|
|
35
|
+
import type { WarpTextarea } from "./packages/textarea/textarea.ts";
|
|
20
36
|
|
|
21
37
|
/**
|
|
22
38
|
* This type can be used to create scoped tags for your components.
|
|
@@ -38,13 +54,12 @@ import type { WarpDatepicker } from "./packages/datepicker/datepicker.ts";
|
|
|
38
54
|
*/
|
|
39
55
|
export type ScopedElements<
|
|
40
56
|
Prefix extends string = "",
|
|
41
|
-
Suffix extends string = ""
|
|
57
|
+
Suffix extends string = "",
|
|
42
58
|
> = {
|
|
43
59
|
[Key in keyof CustomElements as `${Prefix}${Key}${Suffix}`]: CustomElements[Key];
|
|
44
60
|
};
|
|
45
61
|
|
|
46
62
|
type BaseProps<T extends HTMLElement> = {
|
|
47
|
-
|
|
48
63
|
/** Content added between the opening and closing tags of the element */
|
|
49
64
|
children?: any;
|
|
50
65
|
/** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
|
|
@@ -87,360 +102,644 @@ type BaseProps<T extends HTMLElement> = {
|
|
|
87
102
|
popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
|
|
88
103
|
/** Specifies the action to be performed on a popover element being controlled by a control element. */
|
|
89
104
|
popovertargetaction?: "show" | "hide" | "toggle";
|
|
90
|
-
|
|
91
|
-
} ;
|
|
92
|
-
|
|
93
|
-
type BaseEvents = {
|
|
94
|
-
|
|
95
|
-
|
|
96
105
|
};
|
|
97
106
|
|
|
98
|
-
|
|
107
|
+
type BaseEvents = {};
|
|
99
108
|
|
|
100
109
|
export type WarpAffixProps = {
|
|
101
110
|
/** */
|
|
102
|
-
"aria-label"?: WarpAffix[
|
|
111
|
+
"aria-label"?: WarpAffix["ariaLabel"];
|
|
103
112
|
/** */
|
|
104
|
-
|
|
113
|
+
ariaLabel?: WarpAffix["ariaLabel"];
|
|
105
114
|
/** Add this property to render a clickable Warp close icon.
|
|
106
115
|
|
|
107
116
|
Set an `aria-label` that explains the action when using this. */
|
|
108
|
-
|
|
117
|
+
clear?: WarpAffix["clear"];
|
|
109
118
|
/** Add this property to render a clickable Warp search icon.
|
|
110
119
|
|
|
111
120
|
Set an `aria-label` that explains the action when using this. */
|
|
112
|
-
|
|
121
|
+
search?: WarpAffix["search"];
|
|
122
|
+
/** */
|
|
123
|
+
label?: WarpAffix["label"];
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export type WarpAffixSolidJsProps = {
|
|
113
127
|
/** */
|
|
114
|
-
"label"?: WarpAffix[
|
|
128
|
+
"attr:aria-label"?: WarpAffix["ariaLabel"];
|
|
129
|
+
/** */
|
|
130
|
+
"prop:ariaLabel"?: WarpAffix["ariaLabel"];
|
|
131
|
+
/** Add this property to render a clickable Warp close icon.
|
|
115
132
|
|
|
133
|
+
Set an `aria-label` that explains the action when using this. */
|
|
134
|
+
"prop:clear"?: WarpAffix["clear"];
|
|
135
|
+
/** Add this property to render a clickable Warp search icon.
|
|
116
136
|
|
|
117
|
-
|
|
137
|
+
Set an `aria-label` that explains the action when using this. */
|
|
138
|
+
"prop:search"?: WarpAffix["search"];
|
|
139
|
+
/** */
|
|
140
|
+
"prop:label"?: WarpAffix["label"];
|
|
118
141
|
|
|
142
|
+
/** Set the innerHTML of the element */
|
|
143
|
+
innerHTML?: string;
|
|
144
|
+
/** Set the textContent of the element */
|
|
145
|
+
textContent?: string | number;
|
|
146
|
+
};
|
|
119
147
|
|
|
120
148
|
export type WarpAlertProps = {
|
|
121
149
|
/** */
|
|
122
|
-
|
|
150
|
+
variant?: WarpAlert["variant"];
|
|
123
151
|
/** */
|
|
124
|
-
|
|
152
|
+
show?: WarpAlert["show"];
|
|
125
153
|
/** */
|
|
126
|
-
|
|
127
|
-
|
|
154
|
+
role?: WarpAlert["role"];
|
|
155
|
+
};
|
|
128
156
|
|
|
129
|
-
|
|
157
|
+
export type WarpAlertSolidJsProps = {
|
|
158
|
+
/** */
|
|
159
|
+
"prop:variant"?: WarpAlert["variant"];
|
|
160
|
+
/** */
|
|
161
|
+
"prop:show"?: WarpAlert["show"];
|
|
162
|
+
/** */
|
|
163
|
+
"prop:role"?: WarpAlert["role"];
|
|
130
164
|
|
|
165
|
+
/** Set the innerHTML of the element */
|
|
166
|
+
innerHTML?: string;
|
|
167
|
+
/** Set the textContent of the element */
|
|
168
|
+
textContent?: string | number;
|
|
169
|
+
};
|
|
131
170
|
|
|
132
171
|
export type WarpLinkProps = {
|
|
133
172
|
/** */
|
|
134
|
-
|
|
173
|
+
autofocus?: WarpLink["autofocus"];
|
|
135
174
|
/** */
|
|
136
|
-
|
|
175
|
+
variant?: WarpLink["variant"];
|
|
137
176
|
/** */
|
|
138
|
-
|
|
177
|
+
small?: WarpLink["small"];
|
|
139
178
|
/** */
|
|
140
|
-
|
|
179
|
+
href?: WarpLink["href"];
|
|
141
180
|
/** */
|
|
142
|
-
|
|
181
|
+
disabled?: WarpLink["disabled"];
|
|
143
182
|
/** */
|
|
144
|
-
|
|
183
|
+
target?: WarpLink["target"];
|
|
145
184
|
/** */
|
|
146
|
-
|
|
185
|
+
rel?: WarpLink["rel"];
|
|
147
186
|
/** */
|
|
148
|
-
"full-width"?: WarpLink[
|
|
187
|
+
"full-width"?: WarpLink["fullWidth"];
|
|
149
188
|
/** */
|
|
150
|
-
|
|
151
|
-
|
|
189
|
+
fullWidth?: WarpLink["fullWidth"];
|
|
190
|
+
};
|
|
152
191
|
|
|
153
|
-
|
|
192
|
+
export type WarpLinkSolidJsProps = {
|
|
193
|
+
/** */
|
|
194
|
+
"prop:autofocus"?: WarpLink["autofocus"];
|
|
195
|
+
/** */
|
|
196
|
+
"prop:variant"?: WarpLink["variant"];
|
|
197
|
+
/** */
|
|
198
|
+
"prop:small"?: WarpLink["small"];
|
|
199
|
+
/** */
|
|
200
|
+
"prop:href"?: WarpLink["href"];
|
|
201
|
+
/** */
|
|
202
|
+
"prop:disabled"?: WarpLink["disabled"];
|
|
203
|
+
/** */
|
|
204
|
+
"prop:target"?: WarpLink["target"];
|
|
205
|
+
/** */
|
|
206
|
+
"prop:rel"?: WarpLink["rel"];
|
|
207
|
+
/** */
|
|
208
|
+
"bool:full-width"?: WarpLink["fullWidth"];
|
|
209
|
+
/** */
|
|
210
|
+
"prop:fullWidth"?: WarpLink["fullWidth"];
|
|
154
211
|
|
|
212
|
+
/** Set the innerHTML of the element */
|
|
213
|
+
innerHTML?: string;
|
|
214
|
+
/** Set the textContent of the element */
|
|
215
|
+
textContent?: string | number;
|
|
216
|
+
};
|
|
155
217
|
|
|
156
218
|
export type WarpButtonProps = {
|
|
157
219
|
/** */
|
|
158
|
-
|
|
220
|
+
type?: WarpButton["type"];
|
|
159
221
|
/** */
|
|
160
|
-
|
|
222
|
+
autofocus?: WarpButton["autofocus"];
|
|
161
223
|
/** */
|
|
162
|
-
|
|
224
|
+
variant?: WarpButton["variant"];
|
|
163
225
|
/** */
|
|
164
|
-
|
|
226
|
+
quiet?: WarpButton["quiet"];
|
|
165
227
|
/** */
|
|
166
|
-
|
|
228
|
+
small?: WarpButton["small"];
|
|
167
229
|
/** */
|
|
168
|
-
|
|
230
|
+
loading?: WarpButton["loading"];
|
|
169
231
|
/** */
|
|
170
|
-
|
|
232
|
+
href?: WarpButton["href"];
|
|
171
233
|
/** */
|
|
172
|
-
|
|
234
|
+
target?: WarpButton["target"];
|
|
173
235
|
/** */
|
|
174
|
-
|
|
236
|
+
rel?: WarpButton["rel"];
|
|
175
237
|
/** */
|
|
176
|
-
"full-width"?: WarpButton[
|
|
238
|
+
"full-width"?: WarpButton["fullWidth"];
|
|
177
239
|
/** */
|
|
178
|
-
|
|
240
|
+
fullWidth?: WarpButton["fullWidth"];
|
|
179
241
|
/** */
|
|
180
|
-
"button-class"?: WarpButton[
|
|
242
|
+
"button-class"?: WarpButton["buttonClass"];
|
|
181
243
|
/** */
|
|
182
|
-
|
|
244
|
+
buttonClass?: WarpButton["buttonClass"];
|
|
183
245
|
/** */
|
|
184
|
-
|
|
246
|
+
name?: WarpButton["name"];
|
|
185
247
|
/** */
|
|
186
|
-
|
|
248
|
+
value?: WarpButton["value"];
|
|
187
249
|
/** */
|
|
188
|
-
|
|
189
|
-
|
|
250
|
+
ariaValueTextLoading?: WarpButton["ariaValueTextLoading"];
|
|
251
|
+
};
|
|
190
252
|
|
|
191
|
-
|
|
253
|
+
export type WarpButtonSolidJsProps = {
|
|
254
|
+
/** */
|
|
255
|
+
"prop:type"?: WarpButton["type"];
|
|
256
|
+
/** */
|
|
257
|
+
"prop:autofocus"?: WarpButton["autofocus"];
|
|
258
|
+
/** */
|
|
259
|
+
"prop:variant"?: WarpButton["variant"];
|
|
260
|
+
/** */
|
|
261
|
+
"prop:quiet"?: WarpButton["quiet"];
|
|
262
|
+
/** */
|
|
263
|
+
"prop:small"?: WarpButton["small"];
|
|
264
|
+
/** */
|
|
265
|
+
"prop:loading"?: WarpButton["loading"];
|
|
266
|
+
/** */
|
|
267
|
+
"prop:href"?: WarpButton["href"];
|
|
268
|
+
/** */
|
|
269
|
+
"prop:target"?: WarpButton["target"];
|
|
270
|
+
/** */
|
|
271
|
+
"prop:rel"?: WarpButton["rel"];
|
|
272
|
+
/** */
|
|
273
|
+
"bool:full-width"?: WarpButton["fullWidth"];
|
|
274
|
+
/** */
|
|
275
|
+
"prop:fullWidth"?: WarpButton["fullWidth"];
|
|
276
|
+
/** */
|
|
277
|
+
"attr:button-class"?: WarpButton["buttonClass"];
|
|
278
|
+
/** */
|
|
279
|
+
"prop:buttonClass"?: WarpButton["buttonClass"];
|
|
280
|
+
/** */
|
|
281
|
+
"prop:name"?: WarpButton["name"];
|
|
282
|
+
/** */
|
|
283
|
+
"prop:value"?: WarpButton["value"];
|
|
284
|
+
/** */
|
|
285
|
+
"prop:ariaValueTextLoading"?: WarpButton["ariaValueTextLoading"];
|
|
192
286
|
|
|
287
|
+
/** Set the innerHTML of the element */
|
|
288
|
+
innerHTML?: string;
|
|
289
|
+
/** Set the textContent of the element */
|
|
290
|
+
textContent?: string | number;
|
|
291
|
+
};
|
|
193
292
|
|
|
194
293
|
export type WarpAttentionProps = {
|
|
195
294
|
/** */
|
|
196
|
-
|
|
295
|
+
show?: WarpAttention["show"];
|
|
197
296
|
/** */
|
|
198
|
-
|
|
297
|
+
placement?: WarpAttention["placement"];
|
|
199
298
|
/** */
|
|
200
|
-
|
|
299
|
+
tooltip?: WarpAttention["tooltip"];
|
|
201
300
|
/** */
|
|
202
|
-
|
|
301
|
+
callout?: WarpAttention["callout"];
|
|
203
302
|
/** */
|
|
204
|
-
|
|
303
|
+
popover?: WarpAttention["popover"];
|
|
205
304
|
/** */
|
|
206
|
-
|
|
305
|
+
highlight?: WarpAttention["highlight"];
|
|
207
306
|
/** */
|
|
208
|
-
"can-close"?: WarpAttention[
|
|
307
|
+
"can-close"?: WarpAttention["canClose"];
|
|
209
308
|
/** */
|
|
210
|
-
|
|
309
|
+
canClose?: WarpAttention["canClose"];
|
|
211
310
|
/** */
|
|
212
|
-
"no-arrow"?: WarpAttention[
|
|
311
|
+
"no-arrow"?: WarpAttention["noArrow"];
|
|
213
312
|
/** */
|
|
214
|
-
|
|
313
|
+
noArrow?: WarpAttention["noArrow"];
|
|
215
314
|
/** */
|
|
216
|
-
|
|
315
|
+
distance?: WarpAttention["distance"];
|
|
217
316
|
/** */
|
|
218
|
-
|
|
317
|
+
skidding?: WarpAttention["skidding"];
|
|
219
318
|
/** */
|
|
220
|
-
|
|
319
|
+
flip?: WarpAttention["flip"];
|
|
221
320
|
/** */
|
|
222
|
-
"cross-axis"?: WarpAttention[
|
|
321
|
+
"cross-axis"?: WarpAttention["crossAxis"];
|
|
223
322
|
/** */
|
|
224
|
-
|
|
323
|
+
crossAxis?: WarpAttention["crossAxis"];
|
|
225
324
|
/** */
|
|
226
|
-
"fallback-placements"?: WarpAttention[
|
|
325
|
+
"fallback-placements"?: WarpAttention["fallbackPlacements"];
|
|
227
326
|
/** */
|
|
228
|
-
|
|
327
|
+
fallbackPlacements?: WarpAttention["fallbackPlacements"];
|
|
229
328
|
/** */
|
|
230
|
-
|
|
329
|
+
_initialPlacement?: WarpAttention["_initialPlacement"];
|
|
231
330
|
/** */
|
|
232
|
-
|
|
233
|
-
|
|
331
|
+
_actualDirection?: WarpAttention["_actualDirection"];
|
|
332
|
+
};
|
|
234
333
|
|
|
235
|
-
|
|
334
|
+
export type WarpAttentionSolidJsProps = {
|
|
335
|
+
/** */
|
|
336
|
+
"prop:show"?: WarpAttention["show"];
|
|
337
|
+
/** */
|
|
338
|
+
"prop:placement"?: WarpAttention["placement"];
|
|
339
|
+
/** */
|
|
340
|
+
"prop:tooltip"?: WarpAttention["tooltip"];
|
|
341
|
+
/** */
|
|
342
|
+
"prop:callout"?: WarpAttention["callout"];
|
|
343
|
+
/** */
|
|
344
|
+
"prop:popover"?: WarpAttention["popover"];
|
|
345
|
+
/** */
|
|
346
|
+
"prop:highlight"?: WarpAttention["highlight"];
|
|
347
|
+
/** */
|
|
348
|
+
"bool:can-close"?: WarpAttention["canClose"];
|
|
349
|
+
/** */
|
|
350
|
+
"prop:canClose"?: WarpAttention["canClose"];
|
|
351
|
+
/** */
|
|
352
|
+
"bool:no-arrow"?: WarpAttention["noArrow"];
|
|
353
|
+
/** */
|
|
354
|
+
"prop:noArrow"?: WarpAttention["noArrow"];
|
|
355
|
+
/** */
|
|
356
|
+
"prop:distance"?: WarpAttention["distance"];
|
|
357
|
+
/** */
|
|
358
|
+
"prop:skidding"?: WarpAttention["skidding"];
|
|
359
|
+
/** */
|
|
360
|
+
"prop:flip"?: WarpAttention["flip"];
|
|
361
|
+
/** */
|
|
362
|
+
"bool:cross-axis"?: WarpAttention["crossAxis"];
|
|
363
|
+
/** */
|
|
364
|
+
"prop:crossAxis"?: WarpAttention["crossAxis"];
|
|
365
|
+
/** */
|
|
366
|
+
"attr:fallback-placements"?: WarpAttention["fallbackPlacements"];
|
|
367
|
+
/** */
|
|
368
|
+
"prop:fallbackPlacements"?: WarpAttention["fallbackPlacements"];
|
|
369
|
+
/** */
|
|
370
|
+
"prop:_initialPlacement"?: WarpAttention["_initialPlacement"];
|
|
371
|
+
/** */
|
|
372
|
+
"prop:_actualDirection"?: WarpAttention["_actualDirection"];
|
|
236
373
|
|
|
374
|
+
/** Set the innerHTML of the element */
|
|
375
|
+
innerHTML?: string;
|
|
376
|
+
/** Set the textContent of the element */
|
|
377
|
+
textContent?: string | number;
|
|
378
|
+
};
|
|
237
379
|
|
|
238
380
|
export type WarpBadgeProps = {
|
|
239
381
|
/** */
|
|
240
|
-
|
|
382
|
+
variant?: WarpBadge["variant"];
|
|
241
383
|
/** */
|
|
242
|
-
|
|
243
|
-
|
|
384
|
+
position?: WarpBadge["position"];
|
|
385
|
+
};
|
|
244
386
|
|
|
245
|
-
|
|
387
|
+
export type WarpBadgeSolidJsProps = {
|
|
388
|
+
/** */
|
|
389
|
+
"prop:variant"?: WarpBadge["variant"];
|
|
390
|
+
/** */
|
|
391
|
+
"prop:position"?: WarpBadge["position"];
|
|
246
392
|
|
|
393
|
+
/** Set the innerHTML of the element */
|
|
394
|
+
innerHTML?: string;
|
|
395
|
+
/** Set the textContent of the element */
|
|
396
|
+
textContent?: string | number;
|
|
397
|
+
};
|
|
247
398
|
|
|
248
399
|
export type WarpBoxProps = {
|
|
249
400
|
/** */
|
|
250
|
-
|
|
401
|
+
bleed?: WarpBox["bleed"];
|
|
251
402
|
/** */
|
|
252
|
-
|
|
403
|
+
bordered?: WarpBox["bordered"];
|
|
253
404
|
/** */
|
|
254
|
-
|
|
405
|
+
info?: WarpBox["info"];
|
|
255
406
|
/** */
|
|
256
|
-
|
|
407
|
+
neutral?: WarpBox["neutral"];
|
|
257
408
|
/** */
|
|
258
|
-
|
|
259
|
-
|
|
409
|
+
role?: WarpBox["role"];
|
|
410
|
+
};
|
|
260
411
|
|
|
261
|
-
|
|
412
|
+
export type WarpBoxSolidJsProps = {
|
|
413
|
+
/** */
|
|
414
|
+
"prop:bleed"?: WarpBox["bleed"];
|
|
415
|
+
/** */
|
|
416
|
+
"prop:bordered"?: WarpBox["bordered"];
|
|
417
|
+
/** */
|
|
418
|
+
"prop:info"?: WarpBox["info"];
|
|
419
|
+
/** */
|
|
420
|
+
"prop:neutral"?: WarpBox["neutral"];
|
|
421
|
+
/** */
|
|
422
|
+
"prop:role"?: WarpBox["role"];
|
|
262
423
|
|
|
424
|
+
/** Set the innerHTML of the element */
|
|
425
|
+
innerHTML?: string;
|
|
426
|
+
/** Set the textContent of the element */
|
|
427
|
+
textContent?: string | number;
|
|
428
|
+
};
|
|
263
429
|
|
|
264
430
|
export type WarpBreadcrumbsProps = {
|
|
265
431
|
/** */
|
|
266
|
-
"aria-label"?: WarpBreadcrumbs[
|
|
432
|
+
"aria-label"?: WarpBreadcrumbs["ariaLabel"];
|
|
267
433
|
/** */
|
|
268
|
-
|
|
269
|
-
|
|
434
|
+
ariaLabel?: WarpBreadcrumbs["ariaLabel"];
|
|
435
|
+
};
|
|
270
436
|
|
|
271
|
-
|
|
437
|
+
export type WarpBreadcrumbsSolidJsProps = {
|
|
438
|
+
/** */
|
|
439
|
+
"attr:aria-label"?: WarpBreadcrumbs["ariaLabel"];
|
|
440
|
+
/** */
|
|
441
|
+
"prop:ariaLabel"?: WarpBreadcrumbs["ariaLabel"];
|
|
272
442
|
|
|
443
|
+
/** Set the innerHTML of the element */
|
|
444
|
+
innerHTML?: string;
|
|
445
|
+
/** Set the textContent of the element */
|
|
446
|
+
textContent?: string | number;
|
|
447
|
+
};
|
|
273
448
|
|
|
274
449
|
export type WarpCardProps = {
|
|
275
450
|
/** */
|
|
276
|
-
|
|
451
|
+
selected?: WarpCard["selected"];
|
|
277
452
|
/** */
|
|
278
|
-
|
|
453
|
+
flat?: WarpCard["flat"];
|
|
279
454
|
/** */
|
|
280
|
-
|
|
455
|
+
clickable?: WarpCard["clickable"];
|
|
281
456
|
/** */
|
|
282
|
-
|
|
283
|
-
|
|
457
|
+
buttonText?: WarpCard["buttonText"];
|
|
458
|
+
};
|
|
284
459
|
|
|
285
|
-
|
|
460
|
+
export type WarpCardSolidJsProps = {
|
|
461
|
+
/** */
|
|
462
|
+
"prop:selected"?: WarpCard["selected"];
|
|
463
|
+
/** */
|
|
464
|
+
"prop:flat"?: WarpCard["flat"];
|
|
465
|
+
/** */
|
|
466
|
+
"prop:clickable"?: WarpCard["clickable"];
|
|
467
|
+
/** */
|
|
468
|
+
"prop:buttonText"?: WarpCard["buttonText"];
|
|
286
469
|
|
|
470
|
+
/** Set the innerHTML of the element */
|
|
471
|
+
innerHTML?: string;
|
|
472
|
+
/** Set the textContent of the element */
|
|
473
|
+
textContent?: string | number;
|
|
474
|
+
};
|
|
287
475
|
|
|
288
476
|
export type WarpExpandableProps = {
|
|
289
477
|
/** */
|
|
290
|
-
|
|
478
|
+
expanded?: WarpExpandable["expanded"];
|
|
291
479
|
/** */
|
|
292
|
-
|
|
480
|
+
title?: WarpExpandable["title"];
|
|
293
481
|
/** */
|
|
294
|
-
|
|
482
|
+
box?: WarpExpandable["box"];
|
|
295
483
|
/** */
|
|
296
|
-
|
|
484
|
+
bleed?: WarpExpandable["bleed"];
|
|
297
485
|
/** */
|
|
298
|
-
"button-class"?: WarpExpandable[
|
|
486
|
+
"button-class"?: WarpExpandable["buttonClass"];
|
|
299
487
|
/** */
|
|
300
|
-
|
|
488
|
+
buttonClass?: WarpExpandable["buttonClass"];
|
|
301
489
|
/** */
|
|
302
|
-
"content-class"?: WarpExpandable[
|
|
490
|
+
"content-class"?: WarpExpandable["contentClass"];
|
|
303
491
|
/** */
|
|
304
|
-
|
|
492
|
+
contentClass?: WarpExpandable["contentClass"];
|
|
305
493
|
/** */
|
|
306
|
-
"no-chevron"?: WarpExpandable[
|
|
494
|
+
"no-chevron"?: WarpExpandable["noChevron"];
|
|
307
495
|
/** */
|
|
308
|
-
|
|
496
|
+
noChevron?: WarpExpandable["noChevron"];
|
|
309
497
|
/** */
|
|
310
|
-
|
|
498
|
+
animated?: WarpExpandable["animated"];
|
|
311
499
|
/** */
|
|
312
|
-
"heading-level"?: WarpExpandable[
|
|
500
|
+
"heading-level"?: WarpExpandable["headingLevel"];
|
|
313
501
|
/** */
|
|
314
|
-
|
|
502
|
+
headingLevel?: WarpExpandable["headingLevel"];
|
|
315
503
|
/** */
|
|
316
|
-
|
|
504
|
+
_hasTitle?: WarpExpandable["_hasTitle"];
|
|
317
505
|
/** */
|
|
318
|
-
|
|
319
|
-
|
|
506
|
+
_showChevronUp?: WarpExpandable["_showChevronUp"];
|
|
507
|
+
};
|
|
320
508
|
|
|
321
|
-
|
|
509
|
+
export type WarpExpandableSolidJsProps = {
|
|
510
|
+
/** */
|
|
511
|
+
"prop:expanded"?: WarpExpandable["expanded"];
|
|
512
|
+
/** */
|
|
513
|
+
"prop:title"?: WarpExpandable["title"];
|
|
514
|
+
/** */
|
|
515
|
+
"prop:box"?: WarpExpandable["box"];
|
|
516
|
+
/** */
|
|
517
|
+
"prop:bleed"?: WarpExpandable["bleed"];
|
|
518
|
+
/** */
|
|
519
|
+
"attr:button-class"?: WarpExpandable["buttonClass"];
|
|
520
|
+
/** */
|
|
521
|
+
"prop:buttonClass"?: WarpExpandable["buttonClass"];
|
|
522
|
+
/** */
|
|
523
|
+
"attr:content-class"?: WarpExpandable["contentClass"];
|
|
524
|
+
/** */
|
|
525
|
+
"prop:contentClass"?: WarpExpandable["contentClass"];
|
|
526
|
+
/** */
|
|
527
|
+
"bool:no-chevron"?: WarpExpandable["noChevron"];
|
|
528
|
+
/** */
|
|
529
|
+
"prop:noChevron"?: WarpExpandable["noChevron"];
|
|
530
|
+
/** */
|
|
531
|
+
"prop:animated"?: WarpExpandable["animated"];
|
|
532
|
+
/** */
|
|
533
|
+
"attr:heading-level"?: WarpExpandable["headingLevel"];
|
|
534
|
+
/** */
|
|
535
|
+
"prop:headingLevel"?: WarpExpandable["headingLevel"];
|
|
536
|
+
/** */
|
|
537
|
+
"prop:_hasTitle"?: WarpExpandable["_hasTitle"];
|
|
538
|
+
/** */
|
|
539
|
+
"prop:_showChevronUp"?: WarpExpandable["_showChevronUp"];
|
|
322
540
|
|
|
541
|
+
/** Set the innerHTML of the element */
|
|
542
|
+
innerHTML?: string;
|
|
543
|
+
/** Set the textContent of the element */
|
|
544
|
+
textContent?: string | number;
|
|
545
|
+
};
|
|
323
546
|
|
|
324
547
|
export type WarpPillProps = {
|
|
325
548
|
/** */
|
|
326
|
-
"can-close"?: WarpPill[
|
|
549
|
+
"can-close"?: WarpPill["canClose"];
|
|
327
550
|
/** */
|
|
328
|
-
|
|
551
|
+
canClose?: WarpPill["canClose"];
|
|
329
552
|
/** */
|
|
330
|
-
|
|
553
|
+
suggestion?: WarpPill["suggestion"];
|
|
331
554
|
/** @deprecated Used "open-arial-label" instead. */
|
|
332
|
-
"open-sr-label"?: WarpPill[
|
|
555
|
+
"open-sr-label"?: WarpPill["openSrLabel"];
|
|
333
556
|
/** @deprecated Used "open-arial-label" instead. */
|
|
334
|
-
|
|
557
|
+
openSrLabel?: WarpPill["openSrLabel"];
|
|
335
558
|
/** */
|
|
336
|
-
"open-aria-label"?: WarpPill[
|
|
559
|
+
"open-aria-label"?: WarpPill["openAriaLabel"];
|
|
337
560
|
/** */
|
|
338
|
-
|
|
561
|
+
openAriaLabel?: WarpPill["openAriaLabel"];
|
|
339
562
|
/** @deprecated Used "close-arial-label" instead. */
|
|
340
|
-
"close-sr-label"?: WarpPill[
|
|
563
|
+
"close-sr-label"?: WarpPill["closeSrLabel"];
|
|
341
564
|
/** @deprecated Used "close-arial-label" instead. */
|
|
342
|
-
|
|
565
|
+
closeSrLabel?: WarpPill["closeSrLabel"];
|
|
343
566
|
/** */
|
|
344
|
-
"close-aria-label"?: WarpPill[
|
|
567
|
+
"close-aria-label"?: WarpPill["closeAriaLabel"];
|
|
345
568
|
/** */
|
|
346
|
-
|
|
569
|
+
closeAriaLabel?: WarpPill["closeAriaLabel"];
|
|
347
570
|
/** */
|
|
348
|
-
|
|
571
|
+
openFilterSrText?: WarpPill["openFilterSrText"];
|
|
349
572
|
/** */
|
|
350
|
-
|
|
573
|
+
removeFilterSrText?: WarpPill["removeFilterSrText"];
|
|
351
574
|
|
|
352
575
|
/** */
|
|
353
|
-
"onw-pill-click"?: (e: CustomEvent
|
|
576
|
+
"onw-pill-click"?: (e: CustomEvent) => void;
|
|
354
577
|
/** */
|
|
355
|
-
"onw-pill-close"?: (e: CustomEvent
|
|
356
|
-
}
|
|
578
|
+
"onw-pill-close"?: (e: CustomEvent) => void;
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
export type WarpPillSolidJsProps = {
|
|
582
|
+
/** */
|
|
583
|
+
"bool:can-close"?: WarpPill["canClose"];
|
|
584
|
+
/** */
|
|
585
|
+
"prop:canClose"?: WarpPill["canClose"];
|
|
586
|
+
/** */
|
|
587
|
+
"prop:suggestion"?: WarpPill["suggestion"];
|
|
588
|
+
/** @deprecated Used "open-arial-label" instead. */
|
|
589
|
+
"attr:open-sr-label"?: WarpPill["openSrLabel"];
|
|
590
|
+
/** @deprecated Used "open-arial-label" instead. */
|
|
591
|
+
"prop:openSrLabel"?: WarpPill["openSrLabel"];
|
|
592
|
+
/** */
|
|
593
|
+
"attr:open-aria-label"?: WarpPill["openAriaLabel"];
|
|
594
|
+
/** */
|
|
595
|
+
"prop:openAriaLabel"?: WarpPill["openAriaLabel"];
|
|
596
|
+
/** @deprecated Used "close-arial-label" instead. */
|
|
597
|
+
"attr:close-sr-label"?: WarpPill["closeSrLabel"];
|
|
598
|
+
/** @deprecated Used "close-arial-label" instead. */
|
|
599
|
+
"prop:closeSrLabel"?: WarpPill["closeSrLabel"];
|
|
600
|
+
/** */
|
|
601
|
+
"attr:close-aria-label"?: WarpPill["closeAriaLabel"];
|
|
602
|
+
/** */
|
|
603
|
+
"prop:closeAriaLabel"?: WarpPill["closeAriaLabel"];
|
|
604
|
+
/** */
|
|
605
|
+
"prop:openFilterSrText"?: WarpPill["openFilterSrText"];
|
|
606
|
+
/** */
|
|
607
|
+
"prop:removeFilterSrText"?: WarpPill["removeFilterSrText"];
|
|
608
|
+
/** */
|
|
609
|
+
"on:w-pill-click"?: (e: CustomEvent) => void;
|
|
610
|
+
/** */
|
|
611
|
+
"on:w-pill-close"?: (e: CustomEvent) => void;
|
|
357
612
|
|
|
613
|
+
/** Set the innerHTML of the element */
|
|
614
|
+
innerHTML?: string;
|
|
615
|
+
/** Set the textContent of the element */
|
|
616
|
+
textContent?: string | number;
|
|
617
|
+
};
|
|
358
618
|
|
|
359
619
|
export type WarpSelectProps = {
|
|
360
620
|
/** @deprecated Use the native `autofocus` attribute instead. - Whether the element should receive focus on render. */
|
|
361
|
-
"auto-focus"?: WarpSelect[
|
|
621
|
+
"auto-focus"?: WarpSelect["autoFocus"];
|
|
362
622
|
/** @deprecated Use the native `autofocus` attribute instead. - Whether the element should receive focus on render. */
|
|
363
|
-
|
|
623
|
+
autoFocus?: WarpSelect["autoFocus"];
|
|
364
624
|
/** Whether the element should receive focus on render */
|
|
365
|
-
|
|
625
|
+
autofocus?: WarpSelect["autofocus"];
|
|
366
626
|
/** The content displayed as the help text. Paired with `invalid` to show the text as a validation error. */
|
|
367
|
-
"help-text"?: WarpSelect[
|
|
627
|
+
"help-text"?: WarpSelect["helpText"];
|
|
368
628
|
/** The content displayed as the help text. Paired with `invalid` to show the text as a validation error. */
|
|
369
|
-
|
|
629
|
+
helpText?: WarpSelect["helpText"];
|
|
370
630
|
/** Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error. */
|
|
371
|
-
|
|
631
|
+
invalid?: WarpSelect["invalid"];
|
|
372
632
|
/** @deprecated Use `help-text` instead and only set it if you want to display the help text. - Whether to always show a hint. */
|
|
373
|
-
|
|
633
|
+
always?: WarpSelect["always"];
|
|
374
634
|
/** @deprecated Use `help-text` instead. - The content displayed as the help text. */
|
|
375
|
-
|
|
635
|
+
hint?: WarpSelect["hint"];
|
|
376
636
|
/** The content to disply as the label */
|
|
377
|
-
|
|
637
|
+
label?: WarpSelect["label"];
|
|
378
638
|
/** Whether to show optional text */
|
|
379
|
-
|
|
639
|
+
optional?: WarpSelect["optional"];
|
|
380
640
|
/** Renders the field in a disabled state. */
|
|
381
|
-
|
|
641
|
+
disabled?: WarpSelect["disabled"];
|
|
382
642
|
/** @deprecated Use the native readonly attribute instead. - Renders the field in a readonly state. */
|
|
383
|
-
"read-only"?: WarpSelect[
|
|
643
|
+
"read-only"?: WarpSelect["readOnly"];
|
|
384
644
|
/** @deprecated Use the native readonly attribute instead. - Renders the field in a readonly state. */
|
|
385
|
-
|
|
645
|
+
readOnly?: WarpSelect["readOnly"];
|
|
386
646
|
/** Renders the field in a readonly state. */
|
|
387
|
-
|
|
647
|
+
readonly?: WarpSelect["readonly"];
|
|
388
648
|
/** */
|
|
389
|
-
|
|
649
|
+
name?: WarpSelect["name"];
|
|
390
650
|
/** */
|
|
391
|
-
|
|
392
|
-
|
|
651
|
+
value?: WarpSelect["value"];
|
|
652
|
+
};
|
|
393
653
|
|
|
394
|
-
|
|
654
|
+
export type WarpSelectSolidJsProps = {
|
|
655
|
+
/** @deprecated Use the native `autofocus` attribute instead. - Whether the element should receive focus on render. */
|
|
656
|
+
"bool:auto-focus"?: WarpSelect["autoFocus"];
|
|
657
|
+
/** @deprecated Use the native `autofocus` attribute instead. - Whether the element should receive focus on render. */
|
|
658
|
+
"prop:autoFocus"?: WarpSelect["autoFocus"];
|
|
659
|
+
/** Whether the element should receive focus on render */
|
|
660
|
+
"prop:autofocus"?: WarpSelect["autofocus"];
|
|
661
|
+
/** The content displayed as the help text. Paired with `invalid` to show the text as a validation error. */
|
|
662
|
+
"attr:help-text"?: WarpSelect["helpText"];
|
|
663
|
+
/** The content displayed as the help text. Paired with `invalid` to show the text as a validation error. */
|
|
664
|
+
"prop:helpText"?: WarpSelect["helpText"];
|
|
665
|
+
/** Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error. */
|
|
666
|
+
"prop:invalid"?: WarpSelect["invalid"];
|
|
667
|
+
/** @deprecated Use `help-text` instead and only set it if you want to display the help text. - Whether to always show a hint. */
|
|
668
|
+
"prop:always"?: WarpSelect["always"];
|
|
669
|
+
/** @deprecated Use `help-text` instead. - The content displayed as the help text. */
|
|
670
|
+
"prop:hint"?: WarpSelect["hint"];
|
|
671
|
+
/** The content to disply as the label */
|
|
672
|
+
"prop:label"?: WarpSelect["label"];
|
|
673
|
+
/** Whether to show optional text */
|
|
674
|
+
"prop:optional"?: WarpSelect["optional"];
|
|
675
|
+
/** Renders the field in a disabled state. */
|
|
676
|
+
"prop:disabled"?: WarpSelect["disabled"];
|
|
677
|
+
/** @deprecated Use the native readonly attribute instead. - Renders the field in a readonly state. */
|
|
678
|
+
"bool:read-only"?: WarpSelect["readOnly"];
|
|
679
|
+
/** @deprecated Use the native readonly attribute instead. - Renders the field in a readonly state. */
|
|
680
|
+
"prop:readOnly"?: WarpSelect["readOnly"];
|
|
681
|
+
/** Renders the field in a readonly state. */
|
|
682
|
+
"prop:readonly"?: WarpSelect["readonly"];
|
|
683
|
+
/** */
|
|
684
|
+
"prop:name"?: WarpSelect["name"];
|
|
685
|
+
/** */
|
|
686
|
+
"prop:value"?: WarpSelect["value"];
|
|
395
687
|
|
|
688
|
+
/** Set the innerHTML of the element */
|
|
689
|
+
innerHTML?: string;
|
|
690
|
+
/** Set the textContent of the element */
|
|
691
|
+
textContent?: string | number;
|
|
692
|
+
};
|
|
396
693
|
|
|
397
694
|
export type WarpTextFieldProps = {
|
|
398
695
|
/** */
|
|
399
|
-
|
|
696
|
+
disabled?: WarpTextField["disabled"];
|
|
400
697
|
/** */
|
|
401
|
-
|
|
698
|
+
invalid?: WarpTextField["invalid"];
|
|
402
699
|
/** */
|
|
403
|
-
|
|
700
|
+
id?: WarpTextField["id"];
|
|
404
701
|
/** */
|
|
405
|
-
|
|
702
|
+
label?: WarpTextField["label"];
|
|
406
703
|
/** */
|
|
407
|
-
"help-text"?: WarpTextField[
|
|
704
|
+
"help-text"?: WarpTextField["helpText"];
|
|
408
705
|
/** */
|
|
409
|
-
|
|
706
|
+
helpText?: WarpTextField["helpText"];
|
|
410
707
|
/** */
|
|
411
|
-
|
|
708
|
+
size?: WarpTextField["size"];
|
|
412
709
|
/** */
|
|
413
|
-
|
|
710
|
+
max?: WarpTextField["max"];
|
|
414
711
|
/** */
|
|
415
|
-
|
|
712
|
+
min?: WarpTextField["min"];
|
|
416
713
|
/** */
|
|
417
|
-
"min-length"?: WarpTextField[
|
|
714
|
+
"min-length"?: WarpTextField["minLength"];
|
|
418
715
|
/** */
|
|
419
|
-
|
|
716
|
+
minLength?: WarpTextField["minLength"];
|
|
420
717
|
/** */
|
|
421
|
-
"max-length"?: WarpTextField[
|
|
718
|
+
"max-length"?: WarpTextField["maxLength"];
|
|
422
719
|
/** */
|
|
423
|
-
|
|
720
|
+
maxLength?: WarpTextField["maxLength"];
|
|
424
721
|
/** */
|
|
425
|
-
|
|
722
|
+
pattern?: WarpTextField["pattern"];
|
|
426
723
|
/** */
|
|
427
|
-
|
|
724
|
+
placeholder?: WarpTextField["placeholder"];
|
|
428
725
|
/** @deprecated Use the native readonly attribute instead. */
|
|
429
|
-
"read-only"?: WarpTextField[
|
|
726
|
+
"read-only"?: WarpTextField["readOnly"];
|
|
430
727
|
/** @deprecated Use the native readonly attribute instead. */
|
|
431
|
-
|
|
728
|
+
readOnly?: WarpTextField["readOnly"];
|
|
432
729
|
/** */
|
|
433
|
-
|
|
730
|
+
readonly?: WarpTextField["readonly"];
|
|
434
731
|
/** */
|
|
435
|
-
|
|
732
|
+
required?: WarpTextField["required"];
|
|
436
733
|
/** */
|
|
437
|
-
|
|
734
|
+
type?: WarpTextField["type"];
|
|
438
735
|
/** */
|
|
439
|
-
|
|
736
|
+
value?: WarpTextField["value"];
|
|
440
737
|
/** */
|
|
441
|
-
|
|
738
|
+
name?: WarpTextField["name"];
|
|
442
739
|
/** */
|
|
443
|
-
|
|
740
|
+
step?: WarpTextField["step"];
|
|
741
|
+
/** */
|
|
742
|
+
autocomplete?: WarpTextField["autocomplete"];
|
|
444
743
|
/** Function to format value when the input field.
|
|
445
744
|
|
|
446
745
|
Only active when the input field does not have focus,
|
|
@@ -448,681 +747,3162 @@ similar to the accessible input masking example from Filament Group
|
|
|
448
747
|
|
|
449
748
|
https://css-tricks.com/input-masking/
|
|
450
749
|
https://filamentgroup.github.io/politespace/demo/demo.html */
|
|
451
|
-
|
|
452
|
-
|
|
750
|
+
formatter?: WarpTextField["formatter"];
|
|
751
|
+
};
|
|
453
752
|
|
|
454
|
-
|
|
753
|
+
export type WarpTextFieldSolidJsProps = {
|
|
754
|
+
/** */
|
|
755
|
+
"prop:disabled"?: WarpTextField["disabled"];
|
|
756
|
+
/** */
|
|
757
|
+
"prop:invalid"?: WarpTextField["invalid"];
|
|
758
|
+
/** */
|
|
759
|
+
"prop:id"?: WarpTextField["id"];
|
|
760
|
+
/** */
|
|
761
|
+
"prop:label"?: WarpTextField["label"];
|
|
762
|
+
/** */
|
|
763
|
+
"attr:help-text"?: WarpTextField["helpText"];
|
|
764
|
+
/** */
|
|
765
|
+
"prop:helpText"?: WarpTextField["helpText"];
|
|
766
|
+
/** */
|
|
767
|
+
"prop:size"?: WarpTextField["size"];
|
|
768
|
+
/** */
|
|
769
|
+
"prop:max"?: WarpTextField["max"];
|
|
770
|
+
/** */
|
|
771
|
+
"prop:min"?: WarpTextField["min"];
|
|
772
|
+
/** */
|
|
773
|
+
"attr:min-length"?: WarpTextField["minLength"];
|
|
774
|
+
/** */
|
|
775
|
+
"prop:minLength"?: WarpTextField["minLength"];
|
|
776
|
+
/** */
|
|
777
|
+
"attr:max-length"?: WarpTextField["maxLength"];
|
|
778
|
+
/** */
|
|
779
|
+
"prop:maxLength"?: WarpTextField["maxLength"];
|
|
780
|
+
/** */
|
|
781
|
+
"prop:pattern"?: WarpTextField["pattern"];
|
|
782
|
+
/** */
|
|
783
|
+
"prop:placeholder"?: WarpTextField["placeholder"];
|
|
784
|
+
/** @deprecated Use the native readonly attribute instead. */
|
|
785
|
+
"bool:read-only"?: WarpTextField["readOnly"];
|
|
786
|
+
/** @deprecated Use the native readonly attribute instead. */
|
|
787
|
+
"prop:readOnly"?: WarpTextField["readOnly"];
|
|
788
|
+
/** */
|
|
789
|
+
"prop:readonly"?: WarpTextField["readonly"];
|
|
790
|
+
/** */
|
|
791
|
+
"prop:required"?: WarpTextField["required"];
|
|
792
|
+
/** */
|
|
793
|
+
"prop:type"?: WarpTextField["type"];
|
|
794
|
+
/** */
|
|
795
|
+
"prop:value"?: WarpTextField["value"];
|
|
796
|
+
/** */
|
|
797
|
+
"prop:name"?: WarpTextField["name"];
|
|
798
|
+
/** */
|
|
799
|
+
"prop:step"?: WarpTextField["step"];
|
|
800
|
+
/** */
|
|
801
|
+
"prop:autocomplete"?: WarpTextField["autocomplete"];
|
|
802
|
+
/** Function to format value when the input field.
|
|
455
803
|
|
|
804
|
+
Only active when the input field does not have focus,
|
|
805
|
+
similar to the accessible input masking example from Filament Group
|
|
456
806
|
|
|
457
|
-
|
|
807
|
+
https://css-tricks.com/input-masking/
|
|
808
|
+
https://filamentgroup.github.io/politespace/demo/demo.html */
|
|
809
|
+
"prop:formatter"?: WarpTextField["formatter"];
|
|
458
810
|
|
|
811
|
+
/** Set the innerHTML of the element */
|
|
812
|
+
innerHTML?: string;
|
|
813
|
+
/** Set the textContent of the element */
|
|
814
|
+
textContent?: string | number;
|
|
815
|
+
};
|
|
459
816
|
|
|
460
|
-
|
|
817
|
+
export type ModalMainProps = {
|
|
818
|
+
/** */
|
|
819
|
+
show?: ModalMain["show"];
|
|
820
|
+
/** */
|
|
821
|
+
"content-id"?: ModalMain["contentId"];
|
|
822
|
+
/** */
|
|
823
|
+
contentId?: ModalMain["contentId"];
|
|
824
|
+
/** */
|
|
825
|
+
"ignore-backdrop-clicks"?: ModalMain["ignoreBackdropClicks"];
|
|
826
|
+
/** */
|
|
827
|
+
ignoreBackdropClicks?: ModalMain["ignoreBackdropClicks"];
|
|
828
|
+
/** */
|
|
829
|
+
dialogEl?: ModalMain["dialogEl"];
|
|
830
|
+
/** */
|
|
831
|
+
dialogInnerEl?: ModalMain["dialogInnerEl"];
|
|
832
|
+
/** */
|
|
833
|
+
contentEl?: ModalMain["contentEl"];
|
|
461
834
|
|
|
835
|
+
/** */
|
|
836
|
+
onshown?: (e: CustomEvent) => void;
|
|
837
|
+
/** */
|
|
838
|
+
onhidden?: (e: CustomEvent) => void;
|
|
839
|
+
};
|
|
462
840
|
|
|
463
|
-
export type
|
|
841
|
+
export type ModalMainSolidJsProps = {
|
|
464
842
|
/** */
|
|
465
|
-
"
|
|
843
|
+
"prop:show"?: ModalMain["show"];
|
|
466
844
|
/** */
|
|
467
|
-
"
|
|
845
|
+
"attr:content-id"?: ModalMain["contentId"];
|
|
468
846
|
/** */
|
|
469
|
-
"
|
|
847
|
+
"prop:contentId"?: ModalMain["contentId"];
|
|
470
848
|
/** */
|
|
471
|
-
"
|
|
849
|
+
"bool:ignore-backdrop-clicks"?: ModalMain["ignoreBackdropClicks"];
|
|
472
850
|
/** */
|
|
473
|
-
"
|
|
474
|
-
|
|
851
|
+
"prop:ignoreBackdropClicks"?: ModalMain["ignoreBackdropClicks"];
|
|
475
852
|
/** */
|
|
476
|
-
"
|
|
477
|
-
|
|
853
|
+
"prop:dialogEl"?: ModalMain["dialogEl"];
|
|
854
|
+
/** */
|
|
855
|
+
"prop:dialogInnerEl"?: ModalMain["dialogInnerEl"];
|
|
856
|
+
/** */
|
|
857
|
+
"prop:contentEl"?: ModalMain["contentEl"];
|
|
858
|
+
/** */
|
|
859
|
+
"on:shown"?: (e: CustomEvent) => void;
|
|
860
|
+
/** */
|
|
861
|
+
"on:hidden"?: (e: CustomEvent) => void;
|
|
478
862
|
|
|
863
|
+
/** Set the innerHTML of the element */
|
|
864
|
+
innerHTML?: string;
|
|
865
|
+
/** Set the textContent of the element */
|
|
866
|
+
textContent?: string | number;
|
|
867
|
+
};
|
|
479
868
|
|
|
480
|
-
export type
|
|
869
|
+
export type ModalHeaderProps = {
|
|
870
|
+
/** */
|
|
871
|
+
title?: ModalHeader["title"];
|
|
481
872
|
/** */
|
|
482
|
-
|
|
873
|
+
back?: ModalHeader["back"];
|
|
483
874
|
/** */
|
|
484
|
-
"
|
|
875
|
+
"no-close"?: ModalHeader["noClose"];
|
|
485
876
|
/** */
|
|
486
|
-
|
|
877
|
+
noClose?: ModalHeader["noClose"];
|
|
878
|
+
/** */
|
|
879
|
+
titleEl?: ModalHeader["titleEl"];
|
|
880
|
+
|
|
487
881
|
/** */
|
|
488
|
-
|
|
882
|
+
onbackClicked?: (e: CustomEvent) => void;
|
|
883
|
+
};
|
|
884
|
+
|
|
885
|
+
export type ModalHeaderSolidJsProps = {
|
|
489
886
|
/** */
|
|
490
|
-
"
|
|
887
|
+
"prop:title"?: ModalHeader["title"];
|
|
491
888
|
/** */
|
|
492
|
-
"
|
|
889
|
+
"prop:back"?: ModalHeader["back"];
|
|
493
890
|
/** */
|
|
494
|
-
"
|
|
891
|
+
"bool:no-close"?: ModalHeader["noClose"];
|
|
495
892
|
/** */
|
|
496
|
-
"
|
|
497
|
-
|
|
893
|
+
"prop:noClose"?: ModalHeader["noClose"];
|
|
498
894
|
/** */
|
|
499
|
-
"
|
|
895
|
+
"prop:titleEl"?: ModalHeader["titleEl"];
|
|
500
896
|
/** */
|
|
501
|
-
"
|
|
502
|
-
}
|
|
897
|
+
"on:backClicked"?: (e: CustomEvent) => void;
|
|
503
898
|
|
|
899
|
+
/** Set the innerHTML of the element */
|
|
900
|
+
innerHTML?: string;
|
|
901
|
+
/** Set the textContent of the element */
|
|
902
|
+
textContent?: string | number;
|
|
903
|
+
};
|
|
504
904
|
|
|
505
|
-
export type
|
|
905
|
+
export type ModalFooterProps = {};
|
|
506
906
|
|
|
907
|
+
export type ModalFooterSolidJsProps = {
|
|
908
|
+
/** Set the innerHTML of the element */
|
|
909
|
+
innerHTML?: string;
|
|
910
|
+
/** Set the textContent of the element */
|
|
911
|
+
textContent?: string | number;
|
|
912
|
+
};
|
|
507
913
|
|
|
508
|
-
}
|
|
914
|
+
export type WarpToastContainerProps = {};
|
|
509
915
|
|
|
916
|
+
export type WarpToastContainerSolidJsProps = {
|
|
917
|
+
/** Set the innerHTML of the element */
|
|
918
|
+
innerHTML?: string;
|
|
919
|
+
/** Set the textContent of the element */
|
|
920
|
+
textContent?: string | number;
|
|
921
|
+
};
|
|
510
922
|
|
|
511
923
|
export type WarpDatepickerProps = {
|
|
512
924
|
/** */
|
|
513
|
-
|
|
925
|
+
label?: WarpDatepicker["label"];
|
|
514
926
|
/** Takes precedence over the `<html>` lang attribute. */
|
|
515
|
-
|
|
927
|
+
lang?: WarpDatepicker["lang"];
|
|
516
928
|
/** */
|
|
517
|
-
|
|
929
|
+
name?: WarpDatepicker["name"];
|
|
518
930
|
/** */
|
|
519
|
-
|
|
931
|
+
value?: WarpDatepicker["value"];
|
|
520
932
|
/** Decides the format of the date as shown in the calendar header.
|
|
521
933
|
|
|
522
934
|
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
523
|
-
"header-format"?: WarpDatepicker[
|
|
935
|
+
"header-format"?: WarpDatepicker["headerFormat"];
|
|
524
936
|
/** Decides the format of the date as shown in the calendar header.
|
|
525
937
|
|
|
526
938
|
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
527
|
-
|
|
939
|
+
headerFormat?: WarpDatepicker["headerFormat"];
|
|
528
940
|
/** Decides the format of the weekday as shown above the grid of dates in the calendar.
|
|
529
941
|
|
|
530
942
|
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
531
|
-
"weekday-format"?: WarpDatepicker[
|
|
943
|
+
"weekday-format"?: WarpDatepicker["weekdayFormat"];
|
|
532
944
|
/** Decides the format of the weekday as shown above the grid of dates in the calendar.
|
|
533
945
|
|
|
534
946
|
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
535
|
-
|
|
947
|
+
weekdayFormat?: WarpDatepicker["weekdayFormat"];
|
|
536
948
|
/** Decides the format of the day in the calendar as read to screen readers.
|
|
537
949
|
|
|
538
950
|
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
539
|
-
"day-format"?: WarpDatepicker[
|
|
951
|
+
"day-format"?: WarpDatepicker["dayFormat"];
|
|
540
952
|
/** Decides the format of the day in the calendar as read to screen readers.
|
|
541
953
|
|
|
542
954
|
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
543
|
-
|
|
955
|
+
dayFormat?: WarpDatepicker["dayFormat"];
|
|
544
956
|
/** Lets you control if a date in the calendar should be disabled.
|
|
545
957
|
|
|
546
958
|
This needs to be set on the element instance in JavaScript, not as an HTML attribute. */
|
|
547
|
-
|
|
959
|
+
isDayDisabled?: WarpDatepicker["isDayDisabled"];
|
|
548
960
|
/** */
|
|
549
|
-
|
|
961
|
+
isCalendarOpen?: WarpDatepicker["isCalendarOpen"];
|
|
550
962
|
/** */
|
|
551
|
-
|
|
963
|
+
navigationDate?: WarpDatepicker["navigationDate"];
|
|
552
964
|
/** */
|
|
553
|
-
|
|
965
|
+
calendar?: WarpDatepicker["calendar"];
|
|
554
966
|
/** */
|
|
555
|
-
|
|
967
|
+
input?: WarpDatepicker["input"];
|
|
556
968
|
/** */
|
|
557
|
-
|
|
969
|
+
toggleButton?: WarpDatepicker["toggleButton"];
|
|
558
970
|
/** */
|
|
559
|
-
|
|
971
|
+
wrapper?: WarpDatepicker["wrapper"];
|
|
560
972
|
/** This is the first focusable element, needed for the modal focus trap.
|
|
561
973
|
|
|
562
974
|
Don't cache this and other `@query` fields from inside the calendar modal.
|
|
563
975
|
They work the first time, but once the calendar is closed and reopened
|
|
564
976
|
the query will point to an element that doesn't exist anymore. */
|
|
565
|
-
|
|
977
|
+
previousMonthButton?: WarpDatepicker["previousMonthButton"];
|
|
566
978
|
/** */
|
|
567
|
-
|
|
979
|
+
todayCell?: WarpDatepicker["todayCell"];
|
|
568
980
|
/** */
|
|
569
|
-
|
|
981
|
+
selectedCell?: WarpDatepicker["selectedCell"];
|
|
982
|
+
};
|
|
570
983
|
|
|
984
|
+
export type WarpDatepickerSolidJsProps = {
|
|
985
|
+
/** */
|
|
986
|
+
"prop:label"?: WarpDatepicker["label"];
|
|
987
|
+
/** Takes precedence over the `<html>` lang attribute. */
|
|
988
|
+
"prop:lang"?: WarpDatepicker["lang"];
|
|
989
|
+
/** */
|
|
990
|
+
"prop:name"?: WarpDatepicker["name"];
|
|
991
|
+
/** */
|
|
992
|
+
"prop:value"?: WarpDatepicker["value"];
|
|
993
|
+
/** Decides the format of the date as shown in the calendar header.
|
|
571
994
|
|
|
572
|
-
|
|
995
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
996
|
+
"attr:header-format"?: WarpDatepicker["headerFormat"];
|
|
997
|
+
/** Decides the format of the date as shown in the calendar header.
|
|
573
998
|
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.
|
|
579
|
-
*
|
|
580
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-affix--docs)
|
|
581
|
-
*
|
|
582
|
-
* ## Attributes & Properties
|
|
583
|
-
*
|
|
584
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
585
|
-
*
|
|
586
|
-
* - `aria-label`/`ariaLabel`: undefined
|
|
587
|
-
* - `clear`: Add this property to render a clickable Warp close icon.
|
|
588
|
-
*
|
|
589
|
-
* Set an `aria-label` that explains the action when using this.
|
|
590
|
-
* - `search`: Add this property to render a clickable Warp search icon.
|
|
591
|
-
*
|
|
592
|
-
* Set an `aria-label` that explains the action when using this.
|
|
593
|
-
* - `label`: undefined
|
|
594
|
-
*/
|
|
595
|
-
"w-affix": Partial<WarpAffixProps & BaseProps<WarpAffix> & BaseEvents>;
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
/**
|
|
599
|
-
* Alert is an inline component used for displaying different types of messages.
|
|
600
|
-
*
|
|
601
|
-
* For accessibility reasons, alert should appear close to the element that triggered it.
|
|
602
|
-
*
|
|
603
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)
|
|
604
|
-
*
|
|
605
|
-
* ## Attributes & Properties
|
|
606
|
-
*
|
|
607
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
608
|
-
*
|
|
609
|
-
* - `variant`: undefined
|
|
610
|
-
* - `show`: undefined
|
|
611
|
-
* - `role`: undefined
|
|
612
|
-
*/
|
|
613
|
-
"w-alert": Partial<WarpAlertProps & BaseProps<WarpAlert> & BaseEvents>;
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
/**
|
|
617
|
-
* Buttons are used to perform actions, with different visuals for different needs.
|
|
618
|
-
*
|
|
619
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-link--docs)
|
|
620
|
-
*
|
|
621
|
-
* ## Attributes & Properties
|
|
622
|
-
*
|
|
623
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
624
|
-
*
|
|
625
|
-
* - `autofocus`: undefined
|
|
626
|
-
* - `variant`: undefined
|
|
627
|
-
* - `small`: undefined
|
|
628
|
-
* - `href`: undefined
|
|
629
|
-
* - `disabled`: undefined
|
|
630
|
-
* - `target`: undefined
|
|
631
|
-
* - `rel`: undefined
|
|
632
|
-
* - `full-width`/`fullWidth`: undefined
|
|
633
|
-
*/
|
|
634
|
-
"w-link": Partial<WarpLinkProps & BaseProps<WarpLink> & BaseEvents>;
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
/**
|
|
638
|
-
* Buttons are used to perform actions, widh different visuals for different needs.
|
|
639
|
-
*
|
|
640
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-button--docs)
|
|
641
|
-
*
|
|
642
|
-
* ## Attributes & Properties
|
|
643
|
-
*
|
|
644
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
645
|
-
*
|
|
646
|
-
* - `type`: undefined
|
|
647
|
-
* - `autofocus`: undefined
|
|
648
|
-
* - `variant`: undefined
|
|
649
|
-
* - `quiet`: undefined
|
|
650
|
-
* - `small`: undefined
|
|
651
|
-
* - `loading`: undefined
|
|
652
|
-
* - `href`: undefined
|
|
653
|
-
* - `target`: undefined
|
|
654
|
-
* - `rel`: undefined
|
|
655
|
-
* - `full-width`/`fullWidth`: undefined
|
|
656
|
-
* - `button-class`/`buttonClass`: undefined
|
|
657
|
-
* - `name`: undefined
|
|
658
|
-
* - `value`: undefined
|
|
659
|
-
* - `ariaValueTextLoading`: undefined (property only)
|
|
660
|
-
*
|
|
661
|
-
* ## Methods
|
|
662
|
-
*
|
|
663
|
-
* Methods that can be called to access component functionality.
|
|
664
|
-
*
|
|
665
|
-
* - `resetFormControl() => void`: undefined
|
|
666
|
-
*/
|
|
667
|
-
"w-button": Partial<WarpButtonProps & BaseProps<WarpButton> & BaseEvents>;
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
/**
|
|
671
|
-
*
|
|
672
|
-
*
|
|
673
|
-
* ## Attributes & Properties
|
|
674
|
-
*
|
|
675
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
676
|
-
*
|
|
677
|
-
* - `show`: undefined
|
|
678
|
-
* - `placement`: undefined
|
|
679
|
-
* - `tooltip`: undefined
|
|
680
|
-
* - `callout`: undefined
|
|
681
|
-
* - `popover`: undefined
|
|
682
|
-
* - `highlight`: undefined
|
|
683
|
-
* - `can-close`/`canClose`: undefined
|
|
684
|
-
* - `no-arrow`/`noArrow`: undefined
|
|
685
|
-
* - `distance`: undefined
|
|
686
|
-
* - `skidding`: undefined
|
|
687
|
-
* - `flip`: undefined
|
|
688
|
-
* - `cross-axis`/`crossAxis`: undefined
|
|
689
|
-
* - `fallback-placements`/`fallbackPlacements`: undefined
|
|
690
|
-
* - `_initialPlacement`: undefined (property only)
|
|
691
|
-
* - `_actualDirection`: undefined (property only)
|
|
692
|
-
*
|
|
693
|
-
* ## Methods
|
|
694
|
-
*
|
|
695
|
-
* Methods that can be called to access component functionality.
|
|
696
|
-
*
|
|
697
|
-
* - `handleDone() => void`: undefined
|
|
698
|
-
* - `pointingAtDirection() => void`: undefined
|
|
699
|
-
* - `activeAttentionType() => void`: undefined
|
|
700
|
-
* - `defaultAriaLabel() => void`: undefined
|
|
701
|
-
* - `setAriaLabels() => void`: undefined
|
|
702
|
-
* - `close() => void`: undefined
|
|
703
|
-
* - `keypressed(e: KeyboardEvent) => void`: undefined
|
|
704
|
-
*/
|
|
705
|
-
"w-attention": Partial<WarpAttentionProps & BaseProps<WarpAttention> & BaseEvents>;
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
/**
|
|
709
|
-
* `w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.
|
|
710
|
-
*
|
|
711
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-badge--docs)
|
|
712
|
-
*
|
|
713
|
-
* ## Attributes & Properties
|
|
714
|
-
*
|
|
715
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
716
|
-
*
|
|
717
|
-
* - `variant`: undefined
|
|
718
|
-
* - `position`: undefined
|
|
719
|
-
*/
|
|
720
|
-
"w-badge": Partial<WarpBadgeProps & BaseProps<WarpBadge> & BaseEvents>;
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
/**
|
|
724
|
-
* Box is a layout component used for separating content areas on a page.
|
|
725
|
-
*
|
|
726
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-box--docs)
|
|
727
|
-
*
|
|
728
|
-
* ## Attributes & Properties
|
|
729
|
-
*
|
|
730
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
731
|
-
*
|
|
732
|
-
* - `bleed`: undefined
|
|
733
|
-
* - `bordered`: undefined
|
|
734
|
-
* - `info`: undefined
|
|
735
|
-
* - `neutral`: undefined
|
|
736
|
-
* - `role`: undefined
|
|
737
|
-
*/
|
|
738
|
-
"w-box": Partial<WarpBoxProps & BaseProps<WarpBox> & BaseEvents>;
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
/**
|
|
742
|
-
* Breadcrumbs show the navigation structure for the current location.
|
|
743
|
-
*
|
|
744
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-breadcrumbs--docs)
|
|
745
|
-
*
|
|
746
|
-
* ## Attributes & Properties
|
|
747
|
-
*
|
|
748
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
749
|
-
*
|
|
750
|
-
* - `aria-label`/`ariaLabel`: undefined
|
|
751
|
-
*/
|
|
752
|
-
"w-breadcrumbs": Partial<WarpBreadcrumbsProps & BaseProps<WarpBreadcrumbs> & BaseEvents>;
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
/**
|
|
756
|
-
* Card is a layout component used for separating content areas on a page.
|
|
757
|
-
*
|
|
758
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-card--docs)
|
|
759
|
-
*
|
|
760
|
-
* ## Attributes & Properties
|
|
761
|
-
*
|
|
762
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
763
|
-
*
|
|
764
|
-
* - `selected`: undefined
|
|
765
|
-
* - `flat`: undefined
|
|
766
|
-
* - `clickable`: undefined
|
|
767
|
-
* - `buttonText`: undefined (property only)
|
|
768
|
-
*
|
|
769
|
-
* ## Methods
|
|
770
|
-
*
|
|
771
|
-
* Methods that can be called to access component functionality.
|
|
772
|
-
*
|
|
773
|
-
* - `keypressed(e: KeyboardEvent) => void`: undefined
|
|
774
|
-
*/
|
|
775
|
-
"w-card": Partial<WarpCardProps & BaseProps<WarpCard> & BaseEvents>;
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
/**
|
|
779
|
-
* Expandable is a layout component used for creating expandable content areas on a page.
|
|
780
|
-
*
|
|
781
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-expandable--docs)
|
|
782
|
-
*
|
|
783
|
-
* ## Attributes & Properties
|
|
784
|
-
*
|
|
785
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
786
|
-
*
|
|
787
|
-
* - `expanded`: undefined
|
|
788
|
-
* - `title`: undefined
|
|
789
|
-
* - `box`: undefined
|
|
790
|
-
* - `bleed`: undefined
|
|
791
|
-
* - `button-class`/`buttonClass`: undefined
|
|
792
|
-
* - `content-class`/`contentClass`: undefined
|
|
793
|
-
* - `no-chevron`/`noChevron`: undefined
|
|
794
|
-
* - `animated`: undefined
|
|
795
|
-
* - `heading-level`/`headingLevel`: undefined
|
|
796
|
-
* - `_hasTitle`: undefined
|
|
797
|
-
* - `_showChevronUp`: undefined
|
|
798
|
-
*
|
|
799
|
-
* ## Slots
|
|
800
|
-
*
|
|
801
|
-
* Areas where markup can be added to the component.
|
|
802
|
-
*
|
|
803
|
-
* - `title`: Alternative to the `title` attribute should you need to provide some additional markup.
|
|
804
|
-
*/
|
|
805
|
-
"w-expandable": Partial<WarpExpandableProps & BaseProps<WarpExpandable> & BaseEvents>;
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
/**
|
|
809
|
-
* 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.
|
|
810
|
-
*
|
|
811
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-pill--docs)
|
|
812
|
-
*
|
|
813
|
-
* ## Attributes & Properties
|
|
814
|
-
*
|
|
815
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
816
|
-
*
|
|
817
|
-
* - `can-close`/`canClose`: undefined
|
|
818
|
-
* - `suggestion`: undefined
|
|
819
|
-
* - `open-sr-label`/`openSrLabel`: undefined
|
|
820
|
-
* - `open-aria-label`/`openAriaLabel`: undefined
|
|
821
|
-
* - `close-sr-label`/`closeSrLabel`: undefined
|
|
822
|
-
* - `close-aria-label`/`closeAriaLabel`: undefined
|
|
823
|
-
* - `openFilterSrText`: undefined (property only)
|
|
824
|
-
* - `removeFilterSrText`: undefined (property only)
|
|
825
|
-
*
|
|
826
|
-
* ## Events
|
|
827
|
-
*
|
|
828
|
-
* Events that will be emitted by the component.
|
|
829
|
-
*
|
|
830
|
-
* - `w-pill-click`: undefined
|
|
831
|
-
* - `w-pill-close`: undefined
|
|
832
|
-
*/
|
|
833
|
-
"w-pill": Partial<WarpPillProps & BaseProps<WarpPill> & BaseEvents>;
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
/**
|
|
837
|
-
* A dropdown component for selecting a single value.
|
|
838
|
-
*
|
|
839
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-select--docs)
|
|
840
|
-
*
|
|
841
|
-
* ## Attributes & Properties
|
|
842
|
-
*
|
|
843
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
844
|
-
*
|
|
845
|
-
* - `auto-focus`/`autoFocus`: Whether the element should receive focus on render.
|
|
846
|
-
* - `autofocus`: Whether the element should receive focus on render
|
|
847
|
-
* - `help-text`/`helpText`: The content displayed as the help text. Paired with `invalid` to show the text as a validation error.
|
|
848
|
-
* - `invalid`: Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error.
|
|
849
|
-
* - `always`: Whether to always show a hint.
|
|
850
|
-
* - `hint`: The content displayed as the help text.
|
|
851
|
-
* - `label`: The content to disply as the label
|
|
852
|
-
* - `optional`: Whether to show optional text
|
|
853
|
-
* - `disabled`: Renders the field in a disabled state.
|
|
854
|
-
* - `read-only`/`readOnly`: Renders the field in a readonly state.
|
|
855
|
-
* - `readonly`: Renders the field in a readonly state.
|
|
856
|
-
* - `name`: undefined
|
|
857
|
-
* - `value`: undefined
|
|
858
|
-
*
|
|
859
|
-
* ## Methods
|
|
860
|
-
*
|
|
861
|
-
* Methods that can be called to access component functionality.
|
|
862
|
-
*
|
|
863
|
-
* - `resetFormControl() => void`: undefined
|
|
864
|
-
* - `handleKeyDown(event: KeyboardEvent) => void`: undefined
|
|
865
|
-
* - `onChange({ target }) => void`: undefined
|
|
866
|
-
*/
|
|
867
|
-
"w-select": Partial<WarpSelectProps & BaseProps<WarpSelect> & BaseEvents>;
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
/**
|
|
871
|
-
* A single line text input element.
|
|
872
|
-
*
|
|
873
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
874
|
-
*
|
|
875
|
-
* ## Attributes & Properties
|
|
876
|
-
*
|
|
877
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
878
|
-
*
|
|
879
|
-
* - `disabled`: undefined
|
|
880
|
-
* - `invalid`: undefined
|
|
881
|
-
* - `id`: undefined
|
|
882
|
-
* - `label`: undefined
|
|
883
|
-
* - `help-text`/`helpText`: undefined
|
|
884
|
-
* - `size`: undefined
|
|
885
|
-
* - `max`: undefined
|
|
886
|
-
* - `min`: undefined
|
|
887
|
-
* - `min-length`/`minLength`: undefined
|
|
888
|
-
* - `max-length`/`maxLength`: undefined
|
|
889
|
-
* - `pattern`: undefined
|
|
890
|
-
* - `placeholder`: undefined
|
|
891
|
-
* - `read-only`/`readOnly`: undefined
|
|
892
|
-
* - `readonly`: undefined
|
|
893
|
-
* - `required`: undefined
|
|
894
|
-
* - `type`: undefined
|
|
895
|
-
* - `value`: undefined
|
|
896
|
-
* - `name`: undefined
|
|
897
|
-
* - `step`: undefined
|
|
898
|
-
* - `formatter`: Function to format value when the input field.
|
|
899
|
-
*
|
|
900
|
-
* Only active when the input field does not have focus,
|
|
901
|
-
* similar to the accessible input masking example from Filament Group
|
|
902
|
-
*
|
|
903
|
-
* https://css-tricks.com/input-masking/
|
|
904
|
-
* https://filamentgroup.github.io/politespace/demo/demo.html (property only)
|
|
905
|
-
*
|
|
906
|
-
* ## Methods
|
|
907
|
-
*
|
|
908
|
-
* Methods that can be called to access component functionality.
|
|
909
|
-
*
|
|
910
|
-
* - `resetFormControl() => void`: undefined
|
|
911
|
-
* - `handler(e: Event) => void`: undefined
|
|
912
|
-
* - `prefixSlotChange() => void`: undefined
|
|
913
|
-
* - `suffixSlotChange() => void`: undefined
|
|
914
|
-
*/
|
|
915
|
-
"w-textfield": Partial<WarpTextFieldProps & BaseProps<WarpTextField> & BaseEvents>;
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
/**
|
|
919
|
-
* The footer section of a modal, typically where you place actions.
|
|
920
|
-
*
|
|
921
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
922
|
-
*/
|
|
923
|
-
"w-modal-footer": Partial<ModalFooterProps & BaseProps<ModalFooter> & BaseEvents>;
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
/**
|
|
927
|
-
* The header section of a modal, typically where you place the title and a close button.
|
|
928
|
-
*
|
|
929
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
930
|
-
*
|
|
931
|
-
* ## Attributes & Properties
|
|
932
|
-
*
|
|
933
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
934
|
-
*
|
|
935
|
-
* - `title`: undefined
|
|
936
|
-
* - `back`: undefined
|
|
937
|
-
* - `no-close`/`noClose`: undefined
|
|
938
|
-
* - `titleEl`: undefined (property only)
|
|
939
|
-
* - `titleClasses`: undefined (property only) (readonly)
|
|
940
|
-
* - `backButton`: undefined (property only) (readonly)
|
|
941
|
-
* - `closeButton`: undefined (property only) (readonly)
|
|
942
|
-
*
|
|
943
|
-
* ## Events
|
|
944
|
-
*
|
|
945
|
-
* Events that will be emitted by the component.
|
|
946
|
-
*
|
|
947
|
-
* - `backClicked`: undefined
|
|
948
|
-
*
|
|
949
|
-
* ## Slots
|
|
950
|
-
*
|
|
951
|
-
* Areas where markup can be added to the component.
|
|
952
|
-
*
|
|
953
|
-
* - `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.
|
|
954
|
-
*
|
|
955
|
-
* ## Methods
|
|
956
|
-
*
|
|
957
|
-
* Methods that can be called to access component functionality.
|
|
958
|
-
*
|
|
959
|
-
* - `emitBack() => void`: undefined
|
|
960
|
-
* - `handleTopSlotChange(slotEvent) => void`: undefined
|
|
961
|
-
*/
|
|
962
|
-
"w-modal-header": Partial<ModalHeaderProps & BaseProps<ModalHeader> & BaseEvents>;
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
/**
|
|
966
|
-
* Modals (or dialogs) display important information that users need to acknowledge.
|
|
967
|
-
*
|
|
968
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
969
|
-
*
|
|
970
|
-
* ## Attributes & Properties
|
|
971
|
-
*
|
|
972
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
973
|
-
*
|
|
974
|
-
* - `show`: undefined
|
|
975
|
-
* - `content-id`/`contentId`: undefined
|
|
976
|
-
* - `ignore-backdrop-clicks`/`ignoreBackdropClicks`: undefined
|
|
977
|
-
* - `dialogEl`: undefined (property only)
|
|
978
|
-
* - `dialogInnerEl`: undefined (property only)
|
|
979
|
-
* - `contentEl`: undefined (property only)
|
|
980
|
-
*
|
|
981
|
-
* ## Events
|
|
982
|
-
*
|
|
983
|
-
* Events that will be emitted by the component.
|
|
984
|
-
*
|
|
985
|
-
* - `shown`: undefined
|
|
986
|
-
* - `hidden`: undefined
|
|
987
|
-
*
|
|
988
|
-
* ## Slots
|
|
989
|
-
*
|
|
990
|
-
* Areas where markup can be added to the component.
|
|
991
|
-
*
|
|
992
|
-
* - `header`: Typically where you would use the `w-modal-header` component.
|
|
993
|
-
* - `content`: The main content of the modal.
|
|
994
|
-
* - `footer`: Typically where you would use the `w-modal-footer` component, for things like actions.
|
|
995
|
-
*
|
|
996
|
-
* ## Methods
|
|
997
|
-
*
|
|
998
|
-
* Methods that can be called to access component functionality.
|
|
999
|
-
*
|
|
1000
|
-
* - `open() => void`: undefined
|
|
1001
|
-
* - `close() => void`: undefined
|
|
1002
|
-
* - `handleListeners(verb = 'addEventListener') => void`: undefined
|
|
1003
|
-
* - `eventPreventer(evt: Event) => void`: undefined
|
|
1004
|
-
* - `closeOnBackdropClick(evt: MouseEvent) => void`: undefined
|
|
1005
|
-
* - `interceptEscape(evt: KeyboardEvent) => void`: undefined
|
|
1006
|
-
* - `modifyBorderRadius() => void`: undefined
|
|
1007
|
-
*/
|
|
1008
|
-
"w-modal": Partial<ModalMainProps & BaseProps<ModalMain> & BaseEvents>;
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
/**
|
|
1012
|
-
*
|
|
1013
|
-
*
|
|
1014
|
-
* ## Methods
|
|
1015
|
-
*
|
|
1016
|
-
* Methods that can be called to access component functionality.
|
|
1017
|
-
*
|
|
1018
|
-
* - `init() => void`: undefined
|
|
1019
|
-
* - `get(id: string | number) => ToastInternal | undefined`: undefined
|
|
1020
|
-
* - `set(toast: ToastOptions) => Map<string | number, ToastInternal>`: undefined
|
|
1021
|
-
* - `del(id: string | number) => Promise<boolean>`: undefined
|
|
1022
|
-
*/
|
|
1023
|
-
"w-toast-container": Partial<WarpToastContainerProps & BaseProps<WarpToastContainer> & BaseEvents>;
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
/**
|
|
1027
|
-
* An input for dates.
|
|
1028
|
-
*
|
|
1029
|
-
* Uses the `lang` attribute on either the element or on `<html>` to determine the locale options.
|
|
1030
|
-
*
|
|
1031
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-datepicker--docs)
|
|
1032
|
-
*
|
|
1033
|
-
* ## Attributes & Properties
|
|
1034
|
-
*
|
|
1035
|
-
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1036
|
-
*
|
|
1037
|
-
* - `label`: undefined
|
|
1038
|
-
* - `lang`: Takes precedence over the `<html>` lang attribute.
|
|
1039
|
-
* - `name`: undefined
|
|
1040
|
-
* - `value`: undefined
|
|
1041
|
-
* - `header-format`/`headerFormat`: Decides the format of the date as shown in the calendar header.
|
|
1042
|
-
*
|
|
1043
|
-
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
1044
|
-
* - `weekday-format`/`weekdayFormat`: Decides the format of the weekday as shown above the grid of dates in the calendar.
|
|
1045
|
-
*
|
|
1046
|
-
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
1047
|
-
* - `day-format`/`dayFormat`: Decides the format of the day in the calendar as read to screen readers.
|
|
1048
|
-
*
|
|
1049
|
-
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
1050
|
-
* - `isDayDisabled`: Lets you control if a date in the calendar should be disabled.
|
|
1051
|
-
*
|
|
1052
|
-
* This needs to be set on the element instance in JavaScript, not as an HTML attribute. (property only)
|
|
1053
|
-
* - `isCalendarOpen`: undefined (property only)
|
|
1054
|
-
* - `navigationDate`: undefined (property only)
|
|
1055
|
-
* - `selectedDate`: undefined (property only) (readonly)
|
|
1056
|
-
* - `month`: undefined (property only) (readonly)
|
|
1057
|
-
* - `weeks`: undefined (property only) (readonly)
|
|
1058
|
-
* - `calendar`: undefined (property only)
|
|
1059
|
-
* - `input`: undefined (property only)
|
|
1060
|
-
* - `toggleButton`: undefined (property only)
|
|
1061
|
-
* - `wrapper`: undefined (property only)
|
|
1062
|
-
* - `previousMonthButton`: This is the first focusable element, needed for the modal focus trap.
|
|
1063
|
-
*
|
|
1064
|
-
* Don't cache this and other `@query` fields from inside the calendar modal.
|
|
1065
|
-
* They work the first time, but once the calendar is closed and reopened
|
|
1066
|
-
* the query will point to an element that doesn't exist anymore. (property only)
|
|
1067
|
-
* - `todayCell`: undefined (property only)
|
|
1068
|
-
* - `selectedCell`: undefined (property only)
|
|
1069
|
-
*
|
|
1070
|
-
* ## Methods
|
|
1071
|
-
*
|
|
1072
|
-
* Methods that can be called to access component functionality.
|
|
1073
|
-
*
|
|
1074
|
-
* - `resetFormControl() => void`: undefined
|
|
1075
|
-
*/
|
|
1076
|
-
"w-datepicker": Partial<WarpDatepickerProps & BaseProps<WarpDatepicker> & BaseEvents>;
|
|
1077
|
-
}
|
|
999
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
1000
|
+
"prop:headerFormat"?: WarpDatepicker["headerFormat"];
|
|
1001
|
+
/** Decides the format of the weekday as shown above the grid of dates in the calendar.
|
|
1078
1002
|
|
|
1079
|
-
|
|
1003
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
1004
|
+
"attr:weekday-format"?: WarpDatepicker["weekdayFormat"];
|
|
1005
|
+
/** Decides the format of the weekday as shown above the grid of dates in the calendar.
|
|
1080
1006
|
|
|
1081
|
-
|
|
1007
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
1008
|
+
"prop:weekdayFormat"?: WarpDatepicker["weekdayFormat"];
|
|
1009
|
+
/** Decides the format of the day in the calendar as read to screen readers.
|
|
1082
1010
|
|
|
1011
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
1012
|
+
"attr:day-format"?: WarpDatepicker["dayFormat"];
|
|
1013
|
+
/** Decides the format of the day in the calendar as read to screen readers.
|
|
1083
1014
|
|
|
1084
|
-
|
|
1085
|
-
|
|
1015
|
+
The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format). */
|
|
1016
|
+
"prop:dayFormat"?: WarpDatepicker["dayFormat"];
|
|
1017
|
+
/** Lets you control if a date in the calendar should be disabled.
|
|
1018
|
+
|
|
1019
|
+
This needs to be set on the element instance in JavaScript, not as an HTML attribute. */
|
|
1020
|
+
"prop:isDayDisabled"?: WarpDatepicker["isDayDisabled"];
|
|
1021
|
+
/** */
|
|
1022
|
+
"prop:isCalendarOpen"?: WarpDatepicker["isCalendarOpen"];
|
|
1023
|
+
/** */
|
|
1024
|
+
"prop:navigationDate"?: WarpDatepicker["navigationDate"];
|
|
1025
|
+
/** */
|
|
1026
|
+
"prop:calendar"?: WarpDatepicker["calendar"];
|
|
1027
|
+
/** */
|
|
1028
|
+
"prop:input"?: WarpDatepicker["input"];
|
|
1029
|
+
/** */
|
|
1030
|
+
"prop:toggleButton"?: WarpDatepicker["toggleButton"];
|
|
1031
|
+
/** */
|
|
1032
|
+
"prop:wrapper"?: WarpDatepicker["wrapper"];
|
|
1033
|
+
/** This is the first focusable element, needed for the modal focus trap.
|
|
1034
|
+
|
|
1035
|
+
Don't cache this and other `@query` fields from inside the calendar modal.
|
|
1036
|
+
They work the first time, but once the calendar is closed and reopened
|
|
1037
|
+
the query will point to an element that doesn't exist anymore. */
|
|
1038
|
+
"prop:previousMonthButton"?: WarpDatepicker["previousMonthButton"];
|
|
1039
|
+
/** */
|
|
1040
|
+
"prop:todayCell"?: WarpDatepicker["todayCell"];
|
|
1041
|
+
/** */
|
|
1042
|
+
"prop:selectedCell"?: WarpDatepicker["selectedCell"];
|
|
1043
|
+
|
|
1044
|
+
/** Set the innerHTML of the element */
|
|
1045
|
+
innerHTML?: string;
|
|
1046
|
+
/** Set the textContent of the element */
|
|
1047
|
+
textContent?: string | number;
|
|
1048
|
+
};
|
|
1049
|
+
|
|
1050
|
+
export type WarpSwitchProps = {
|
|
1051
|
+
/** */
|
|
1052
|
+
name?: WarpSwitch["name"];
|
|
1053
|
+
/** */
|
|
1054
|
+
value?: WarpSwitch["value"];
|
|
1055
|
+
/** */
|
|
1056
|
+
checked?: WarpSwitch["checked"];
|
|
1057
|
+
/** */
|
|
1058
|
+
disabled?: WarpSwitch["disabled"];
|
|
1059
|
+
|
|
1060
|
+
/** */
|
|
1061
|
+
onchange?: (e: CustomEvent) => void;
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
export type WarpSwitchSolidJsProps = {
|
|
1065
|
+
/** */
|
|
1066
|
+
"prop:name"?: WarpSwitch["name"];
|
|
1067
|
+
/** */
|
|
1068
|
+
"prop:value"?: WarpSwitch["value"];
|
|
1069
|
+
/** */
|
|
1070
|
+
"prop:checked"?: WarpSwitch["checked"];
|
|
1071
|
+
/** */
|
|
1072
|
+
"prop:disabled"?: WarpSwitch["disabled"];
|
|
1073
|
+
/** */
|
|
1074
|
+
"on:change"?: (e: CustomEvent) => void;
|
|
1075
|
+
|
|
1076
|
+
/** Set the innerHTML of the element */
|
|
1077
|
+
innerHTML?: string;
|
|
1078
|
+
/** Set the textContent of the element */
|
|
1079
|
+
textContent?: string | number;
|
|
1080
|
+
};
|
|
1081
|
+
|
|
1082
|
+
export type WarpComboboxProps = {
|
|
1083
|
+
/** The available options to select from */
|
|
1084
|
+
options?: WarpCombobox["options"];
|
|
1085
|
+
/** Label above input */
|
|
1086
|
+
label?: WarpCombobox["label"];
|
|
1087
|
+
/** Input placeholder */
|
|
1088
|
+
placeholder?: WarpCombobox["placeholder"];
|
|
1089
|
+
/** The input value */
|
|
1090
|
+
value?: WarpCombobox["value"];
|
|
1091
|
+
/** Whether the popover opens when focus is on the text field */
|
|
1092
|
+
"open-on-focus"?: WarpCombobox["openOnFocus"];
|
|
1093
|
+
/** Whether the popover opens when focus is on the text field */
|
|
1094
|
+
openOnFocus?: WarpCombobox["openOnFocus"];
|
|
1095
|
+
/** Select active option on blur */
|
|
1096
|
+
"select-on-blur"?: WarpCombobox["selectOnBlur"];
|
|
1097
|
+
/** Select active option on blur */
|
|
1098
|
+
selectOnBlur?: WarpCombobox["selectOnBlur"];
|
|
1099
|
+
/** Whether the matching text segments in the options should be highlighted */
|
|
1100
|
+
"match-text-segments"?: WarpCombobox["matchTextSegments"];
|
|
1101
|
+
/** Whether the matching text segments in the options should be highlighted */
|
|
1102
|
+
matchTextSegments?: WarpCombobox["matchTextSegments"];
|
|
1103
|
+
/** Disable client-side static filtering */
|
|
1104
|
+
"disable-static-filtering"?: WarpCombobox["disableStaticFiltering"];
|
|
1105
|
+
/** Disable client-side static filtering */
|
|
1106
|
+
disableStaticFiltering?: WarpCombobox["disableStaticFiltering"];
|
|
1107
|
+
/** Renders the input field in an invalid state */
|
|
1108
|
+
invalid?: WarpCombobox["invalid"];
|
|
1109
|
+
/** The content to display as the help text */
|
|
1110
|
+
"help-text"?: WarpCombobox["helpText"];
|
|
1111
|
+
/** The content to display as the help text */
|
|
1112
|
+
helpText?: WarpCombobox["helpText"];
|
|
1113
|
+
/** Whether the element is disabled */
|
|
1114
|
+
disabled?: WarpCombobox["disabled"];
|
|
1115
|
+
/** Whether the element is required */
|
|
1116
|
+
required?: WarpCombobox["required"];
|
|
1117
|
+
/** Whether to show optional text */
|
|
1118
|
+
optional?: WarpCombobox["optional"];
|
|
1119
|
+
/** Name attribute for form submission */
|
|
1120
|
+
name?: WarpCombobox["name"];
|
|
1121
|
+
/** Autocomplete attribute for the input field */
|
|
1122
|
+
autocomplete?: WarpCombobox["autocomplete"];
|
|
1123
|
+
};
|
|
1124
|
+
|
|
1125
|
+
export type WarpComboboxSolidJsProps = {
|
|
1126
|
+
/** The available options to select from */
|
|
1127
|
+
"prop:options"?: WarpCombobox["options"];
|
|
1128
|
+
/** Label above input */
|
|
1129
|
+
"prop:label"?: WarpCombobox["label"];
|
|
1130
|
+
/** Input placeholder */
|
|
1131
|
+
"prop:placeholder"?: WarpCombobox["placeholder"];
|
|
1132
|
+
/** The input value */
|
|
1133
|
+
"prop:value"?: WarpCombobox["value"];
|
|
1134
|
+
/** Whether the popover opens when focus is on the text field */
|
|
1135
|
+
"bool:open-on-focus"?: WarpCombobox["openOnFocus"];
|
|
1136
|
+
/** Whether the popover opens when focus is on the text field */
|
|
1137
|
+
"prop:openOnFocus"?: WarpCombobox["openOnFocus"];
|
|
1138
|
+
/** Select active option on blur */
|
|
1139
|
+
"bool:select-on-blur"?: WarpCombobox["selectOnBlur"];
|
|
1140
|
+
/** Select active option on blur */
|
|
1141
|
+
"prop:selectOnBlur"?: WarpCombobox["selectOnBlur"];
|
|
1142
|
+
/** Whether the matching text segments in the options should be highlighted */
|
|
1143
|
+
"bool:match-text-segments"?: WarpCombobox["matchTextSegments"];
|
|
1144
|
+
/** Whether the matching text segments in the options should be highlighted */
|
|
1145
|
+
"prop:matchTextSegments"?: WarpCombobox["matchTextSegments"];
|
|
1146
|
+
/** Disable client-side static filtering */
|
|
1147
|
+
"bool:disable-static-filtering"?: WarpCombobox["disableStaticFiltering"];
|
|
1148
|
+
/** Disable client-side static filtering */
|
|
1149
|
+
"prop:disableStaticFiltering"?: WarpCombobox["disableStaticFiltering"];
|
|
1150
|
+
/** Renders the input field in an invalid state */
|
|
1151
|
+
"prop:invalid"?: WarpCombobox["invalid"];
|
|
1152
|
+
/** The content to display as the help text */
|
|
1153
|
+
"attr:help-text"?: WarpCombobox["helpText"];
|
|
1154
|
+
/** The content to display as the help text */
|
|
1155
|
+
"prop:helpText"?: WarpCombobox["helpText"];
|
|
1156
|
+
/** Whether the element is disabled */
|
|
1157
|
+
"prop:disabled"?: WarpCombobox["disabled"];
|
|
1158
|
+
/** Whether the element is required */
|
|
1159
|
+
"prop:required"?: WarpCombobox["required"];
|
|
1160
|
+
/** Whether to show optional text */
|
|
1161
|
+
"prop:optional"?: WarpCombobox["optional"];
|
|
1162
|
+
/** Name attribute for form submission */
|
|
1163
|
+
"prop:name"?: WarpCombobox["name"];
|
|
1164
|
+
/** Autocomplete attribute for the input field */
|
|
1165
|
+
"prop:autocomplete"?: WarpCombobox["autocomplete"];
|
|
1166
|
+
|
|
1167
|
+
/** Set the innerHTML of the element */
|
|
1168
|
+
innerHTML?: string;
|
|
1169
|
+
/** Set the textContent of the element */
|
|
1170
|
+
textContent?: string | number;
|
|
1171
|
+
};
|
|
1172
|
+
|
|
1173
|
+
export type WarpDeadToggleProps = {
|
|
1174
|
+
/** */
|
|
1175
|
+
type?: WarpDeadToggle["type"];
|
|
1176
|
+
/** */
|
|
1177
|
+
checked?: WarpDeadToggle["checked"];
|
|
1178
|
+
/** */
|
|
1179
|
+
indeterminate?: WarpDeadToggle["indeterminate"];
|
|
1180
|
+
/** */
|
|
1181
|
+
invalid?: WarpDeadToggle["invalid"];
|
|
1182
|
+
/** */
|
|
1183
|
+
disabled?: WarpDeadToggle["disabled"];
|
|
1184
|
+
};
|
|
1185
|
+
|
|
1186
|
+
export type WarpDeadToggleSolidJsProps = {
|
|
1187
|
+
/** */
|
|
1188
|
+
"prop:type"?: WarpDeadToggle["type"];
|
|
1189
|
+
/** */
|
|
1190
|
+
"prop:checked"?: WarpDeadToggle["checked"];
|
|
1191
|
+
/** */
|
|
1192
|
+
"prop:indeterminate"?: WarpDeadToggle["indeterminate"];
|
|
1193
|
+
/** */
|
|
1194
|
+
"prop:invalid"?: WarpDeadToggle["invalid"];
|
|
1195
|
+
/** */
|
|
1196
|
+
"prop:disabled"?: WarpDeadToggle["disabled"];
|
|
1197
|
+
|
|
1198
|
+
/** Set the innerHTML of the element */
|
|
1199
|
+
innerHTML?: string;
|
|
1200
|
+
/** Set the textContent of the element */
|
|
1201
|
+
textContent?: string | number;
|
|
1202
|
+
};
|
|
1203
|
+
|
|
1204
|
+
export type WarpPageIndicatorProps = {
|
|
1205
|
+
/** Currently selected page (1-based index) */
|
|
1206
|
+
"selected-page"?: WarpPageIndicator["selectedPage"];
|
|
1207
|
+
/** Currently selected page (1-based index) */
|
|
1208
|
+
selectedPage?: WarpPageIndicator["selectedPage"];
|
|
1209
|
+
/** Total number of pages */
|
|
1210
|
+
"page-count"?: WarpPageIndicator["pageCount"];
|
|
1211
|
+
/** Total number of pages */
|
|
1212
|
+
pageCount?: WarpPageIndicator["pageCount"];
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
export type WarpPageIndicatorSolidJsProps = {
|
|
1216
|
+
/** Currently selected page (1-based index) */
|
|
1217
|
+
"attr:selected-page"?: WarpPageIndicator["selectedPage"];
|
|
1218
|
+
/** Currently selected page (1-based index) */
|
|
1219
|
+
"prop:selectedPage"?: WarpPageIndicator["selectedPage"];
|
|
1220
|
+
/** Total number of pages */
|
|
1221
|
+
"attr:page-count"?: WarpPageIndicator["pageCount"];
|
|
1222
|
+
/** Total number of pages */
|
|
1223
|
+
"prop:pageCount"?: WarpPageIndicator["pageCount"];
|
|
1224
|
+
|
|
1225
|
+
/** Set the innerHTML of the element */
|
|
1226
|
+
innerHTML?: string;
|
|
1227
|
+
/** Set the textContent of the element */
|
|
1228
|
+
textContent?: string | number;
|
|
1229
|
+
};
|
|
1230
|
+
|
|
1231
|
+
export type WarpPaginationProps = {
|
|
1232
|
+
/** */
|
|
1233
|
+
"base-url"?: WarpPagination["baseUrl"];
|
|
1234
|
+
/** */
|
|
1235
|
+
baseUrl?: WarpPagination["baseUrl"];
|
|
1236
|
+
/** */
|
|
1237
|
+
pages?: WarpPagination["pages"];
|
|
1238
|
+
/** */
|
|
1239
|
+
"current-page"?: WarpPagination["currentPageNumber"];
|
|
1240
|
+
/** */
|
|
1241
|
+
currentPageNumber?: WarpPagination["currentPageNumber"];
|
|
1242
|
+
/** */
|
|
1243
|
+
"visible-pages"?: WarpPagination["visiblePages"];
|
|
1244
|
+
/** */
|
|
1245
|
+
visiblePages?: WarpPagination["visiblePages"];
|
|
1246
|
+
|
|
1247
|
+
/** Triggered when a link button in the pagination is clicked. Contains the page number in `string` form. */
|
|
1248
|
+
"onpage-click"?: (e: CustomEvent) => void;
|
|
1249
|
+
};
|
|
1250
|
+
|
|
1251
|
+
export type WarpPaginationSolidJsProps = {
|
|
1252
|
+
/** */
|
|
1253
|
+
"attr:base-url"?: WarpPagination["baseUrl"];
|
|
1254
|
+
/** */
|
|
1255
|
+
"prop:baseUrl"?: WarpPagination["baseUrl"];
|
|
1256
|
+
/** */
|
|
1257
|
+
"prop:pages"?: WarpPagination["pages"];
|
|
1258
|
+
/** */
|
|
1259
|
+
"attr:current-page"?: WarpPagination["currentPageNumber"];
|
|
1260
|
+
/** */
|
|
1261
|
+
"prop:currentPageNumber"?: WarpPagination["currentPageNumber"];
|
|
1262
|
+
/** */
|
|
1263
|
+
"attr:visible-pages"?: WarpPagination["visiblePages"];
|
|
1264
|
+
/** */
|
|
1265
|
+
"prop:visiblePages"?: WarpPagination["visiblePages"];
|
|
1266
|
+
/** Triggered when a link button in the pagination is clicked. Contains the page number in `string` form. */
|
|
1267
|
+
"on:page-click"?: (e: CustomEvent) => void;
|
|
1268
|
+
|
|
1269
|
+
/** Set the innerHTML of the element */
|
|
1270
|
+
innerHTML?: string;
|
|
1271
|
+
/** Set the textContent of the element */
|
|
1272
|
+
textContent?: string | number;
|
|
1273
|
+
};
|
|
1274
|
+
|
|
1275
|
+
export type WRadioProps = {
|
|
1276
|
+
/** The string pointing to a form's id. */
|
|
1277
|
+
form?: WRadio["form"];
|
|
1278
|
+
/** The radio's value. When selected, the radio group will receive this value. */
|
|
1279
|
+
value?: WRadio["value"];
|
|
1280
|
+
/** The radio's value. When selected, the radio group will receive this value. */
|
|
1281
|
+
appearance?: WRadio["appearance"];
|
|
1282
|
+
/** The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this
|
|
1283
|
+
attribute can typically be omitted. */
|
|
1284
|
+
size?: WRadio["size"];
|
|
1285
|
+
/** Disables the radio. */
|
|
1286
|
+
disabled?: WRadio["disabled"];
|
|
1287
|
+
/** */
|
|
1288
|
+
checked?: WRadio["checked"];
|
|
1289
|
+
};
|
|
1290
|
+
|
|
1291
|
+
export type WRadioSolidJsProps = {
|
|
1292
|
+
/** The string pointing to a form's id. */
|
|
1293
|
+
"prop:form"?: WRadio["form"];
|
|
1294
|
+
/** The radio's value. When selected, the radio group will receive this value. */
|
|
1295
|
+
"prop:value"?: WRadio["value"];
|
|
1296
|
+
/** The radio's value. When selected, the radio group will receive this value. */
|
|
1297
|
+
"prop:appearance"?: WRadio["appearance"];
|
|
1298
|
+
/** The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this
|
|
1299
|
+
attribute can typically be omitted. */
|
|
1300
|
+
"prop:size"?: WRadio["size"];
|
|
1301
|
+
/** Disables the radio. */
|
|
1302
|
+
"prop:disabled"?: WRadio["disabled"];
|
|
1303
|
+
/** */
|
|
1304
|
+
"prop:checked"?: WRadio["checked"];
|
|
1305
|
+
|
|
1306
|
+
/** Set the innerHTML of the element */
|
|
1307
|
+
innerHTML?: string;
|
|
1308
|
+
/** Set the textContent of the element */
|
|
1309
|
+
textContent?: string | number;
|
|
1310
|
+
};
|
|
1311
|
+
|
|
1312
|
+
export type WRadioGroupProps = {
|
|
1313
|
+
/** The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot
|
|
1314
|
+
instead. */
|
|
1315
|
+
label?: WRadioGroup["label"];
|
|
1316
|
+
/** The radio groups's hint. If you need to display HTML, use the `hint` slot instead. */
|
|
1317
|
+
hint?: WRadioGroup["hint"];
|
|
1318
|
+
/** The name of the radio group, submitted as a name/value pair with form data. */
|
|
1319
|
+
name?: WRadioGroup["name"];
|
|
1320
|
+
/** Disables the radio group and all child radios. */
|
|
1321
|
+
disabled?: WRadioGroup["disabled"];
|
|
1322
|
+
/** The orientation in which to show radio items. */
|
|
1323
|
+
orientation?: WRadioGroup["orientation"];
|
|
1324
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
1325
|
+
value?: WRadioGroup["defaultValue"];
|
|
1326
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
1327
|
+
defaultValue?: WRadioGroup["defaultValue"];
|
|
1328
|
+
/** The radio group's size. This size will be applied to all child radios and radio buttons, except when explicitly overridden. */
|
|
1329
|
+
size?: WRadioGroup["size"];
|
|
1330
|
+
/** Ensures a child radio is checked before allowing the containing form to submit. */
|
|
1331
|
+
required?: WRadioGroup["required"];
|
|
1332
|
+
/** Used for SSR. if true, will show slotted label on initial render. */
|
|
1333
|
+
"with-label"?: WRadioGroup["withLabel"];
|
|
1334
|
+
/** Used for SSR. if true, will show slotted label on initial render. */
|
|
1335
|
+
withLabel?: WRadioGroup["withLabel"];
|
|
1336
|
+
/** Used for SSR. if true, will show slotted hint on initial render. */
|
|
1337
|
+
"with-hint"?: WRadioGroup["withHint"];
|
|
1338
|
+
/** Used for SSR. if true, will show slotted hint on initial render. */
|
|
1339
|
+
withHint?: WRadioGroup["withHint"];
|
|
1340
|
+
/** */
|
|
1341
|
+
hasRadioButtons?: WRadioGroup["hasRadioButtons"];
|
|
1342
|
+
/** */
|
|
1343
|
+
defaultSlot?: WRadioGroup["defaultSlot"];
|
|
1344
|
+
|
|
1345
|
+
/** */
|
|
1346
|
+
oninput?: (e: InputEvent) => void;
|
|
1347
|
+
/** */
|
|
1348
|
+
onchange?: (e: Event) => void;
|
|
1349
|
+
};
|
|
1350
|
+
|
|
1351
|
+
export type WRadioGroupSolidJsProps = {
|
|
1352
|
+
/** The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot
|
|
1353
|
+
instead. */
|
|
1354
|
+
"prop:label"?: WRadioGroup["label"];
|
|
1355
|
+
/** The radio groups's hint. If you need to display HTML, use the `hint` slot instead. */
|
|
1356
|
+
"prop:hint"?: WRadioGroup["hint"];
|
|
1357
|
+
/** The name of the radio group, submitted as a name/value pair with form data. */
|
|
1358
|
+
"prop:name"?: WRadioGroup["name"];
|
|
1359
|
+
/** Disables the radio group and all child radios. */
|
|
1360
|
+
"prop:disabled"?: WRadioGroup["disabled"];
|
|
1361
|
+
/** The orientation in which to show radio items. */
|
|
1362
|
+
"prop:orientation"?: WRadioGroup["orientation"];
|
|
1363
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
1364
|
+
"attr:value"?: WRadioGroup["defaultValue"];
|
|
1365
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
1366
|
+
"prop:defaultValue"?: WRadioGroup["defaultValue"];
|
|
1367
|
+
/** The radio group's size. This size will be applied to all child radios and radio buttons, except when explicitly overridden. */
|
|
1368
|
+
"prop:size"?: WRadioGroup["size"];
|
|
1369
|
+
/** Ensures a child radio is checked before allowing the containing form to submit. */
|
|
1370
|
+
"prop:required"?: WRadioGroup["required"];
|
|
1371
|
+
/** Used for SSR. if true, will show slotted label on initial render. */
|
|
1372
|
+
"bool:with-label"?: WRadioGroup["withLabel"];
|
|
1373
|
+
/** Used for SSR. if true, will show slotted label on initial render. */
|
|
1374
|
+
"prop:withLabel"?: WRadioGroup["withLabel"];
|
|
1375
|
+
/** Used for SSR. if true, will show slotted hint on initial render. */
|
|
1376
|
+
"bool:with-hint"?: WRadioGroup["withHint"];
|
|
1377
|
+
/** Used for SSR. if true, will show slotted hint on initial render. */
|
|
1378
|
+
"prop:withHint"?: WRadioGroup["withHint"];
|
|
1379
|
+
/** */
|
|
1380
|
+
"prop:hasRadioButtons"?: WRadioGroup["hasRadioButtons"];
|
|
1381
|
+
/** */
|
|
1382
|
+
"prop:defaultSlot"?: WRadioGroup["defaultSlot"];
|
|
1383
|
+
/** */
|
|
1384
|
+
"on:input"?: (e: InputEvent) => void;
|
|
1385
|
+
/** */
|
|
1386
|
+
"on:change"?: (e: Event) => void;
|
|
1387
|
+
|
|
1388
|
+
/** Set the innerHTML of the element */
|
|
1389
|
+
innerHTML?: string;
|
|
1390
|
+
/** Set the textContent of the element */
|
|
1391
|
+
textContent?: string | number;
|
|
1392
|
+
};
|
|
1393
|
+
|
|
1394
|
+
export type WCheckboxProps = {
|
|
1395
|
+
/** */
|
|
1396
|
+
title?: WCheckbox["title"];
|
|
1397
|
+
/** The name of the checkbox, submitted as a name/value pair with form data. */
|
|
1398
|
+
name?: WCheckbox["name"];
|
|
1399
|
+
/** The value of the checkbox, submitted as a name/value pair with form data. */
|
|
1400
|
+
value?: WCheckbox["value"];
|
|
1401
|
+
/** The checkbox's size. */
|
|
1402
|
+
size?: WCheckbox["size"];
|
|
1403
|
+
/** Disables the checkbox. */
|
|
1404
|
+
disabled?: WCheckbox["disabled"];
|
|
1405
|
+
/** Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a "select
|
|
1406
|
+
all/none" behavior when associated checkboxes have a mix of checked and unchecked states. */
|
|
1407
|
+
indeterminate?: WCheckbox["indeterminate"];
|
|
1408
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
1409
|
+
checked?: WCheckbox["defaultChecked"];
|
|
1410
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
1411
|
+
defaultChecked?: WCheckbox["defaultChecked"];
|
|
1412
|
+
/** By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
1413
|
+
to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
1414
|
+
the same document or shadow root for this to work. */
|
|
1415
|
+
form?: WCheckbox["form"];
|
|
1416
|
+
/** Makes the checkbox a required field. */
|
|
1417
|
+
required?: WCheckbox["required"];
|
|
1418
|
+
/** The checkbox's hint. If you need to display HTML, use the `hint` slot instead. */
|
|
1419
|
+
hint?: WCheckbox["hint"];
|
|
1420
|
+
/** */
|
|
1421
|
+
input?: WCheckbox["input"];
|
|
1422
|
+
|
|
1423
|
+
/** */
|
|
1424
|
+
onchange?: (e: Event) => void;
|
|
1425
|
+
};
|
|
1426
|
+
|
|
1427
|
+
export type WCheckboxSolidJsProps = {
|
|
1428
|
+
/** */
|
|
1429
|
+
"prop:title"?: WCheckbox["title"];
|
|
1430
|
+
/** The name of the checkbox, submitted as a name/value pair with form data. */
|
|
1431
|
+
"prop:name"?: WCheckbox["name"];
|
|
1432
|
+
/** The value of the checkbox, submitted as a name/value pair with form data. */
|
|
1433
|
+
"prop:value"?: WCheckbox["value"];
|
|
1434
|
+
/** The checkbox's size. */
|
|
1435
|
+
"prop:size"?: WCheckbox["size"];
|
|
1436
|
+
/** Disables the checkbox. */
|
|
1437
|
+
"prop:disabled"?: WCheckbox["disabled"];
|
|
1438
|
+
/** Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a "select
|
|
1439
|
+
all/none" behavior when associated checkboxes have a mix of checked and unchecked states. */
|
|
1440
|
+
"prop:indeterminate"?: WCheckbox["indeterminate"];
|
|
1441
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
1442
|
+
"bool:checked"?: WCheckbox["defaultChecked"];
|
|
1443
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
1444
|
+
"prop:defaultChecked"?: WCheckbox["defaultChecked"];
|
|
1445
|
+
/** By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
1446
|
+
to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
1447
|
+
the same document or shadow root for this to work. */
|
|
1448
|
+
"prop:form"?: WCheckbox["form"];
|
|
1449
|
+
/** Makes the checkbox a required field. */
|
|
1450
|
+
"prop:required"?: WCheckbox["required"];
|
|
1451
|
+
/** The checkbox's hint. If you need to display HTML, use the `hint` slot instead. */
|
|
1452
|
+
"prop:hint"?: WCheckbox["hint"];
|
|
1453
|
+
/** */
|
|
1454
|
+
"prop:input"?: WCheckbox["input"];
|
|
1455
|
+
/** */
|
|
1456
|
+
"on:change"?: (e: Event) => void;
|
|
1457
|
+
|
|
1458
|
+
/** Set the innerHTML of the element */
|
|
1459
|
+
innerHTML?: string;
|
|
1460
|
+
/** Set the textContent of the element */
|
|
1461
|
+
textContent?: string | number;
|
|
1462
|
+
};
|
|
1463
|
+
|
|
1464
|
+
export type WCheckboxGroupProps = {};
|
|
1465
|
+
|
|
1466
|
+
export type WCheckboxGroupSolidJsProps = {
|
|
1467
|
+
/** Set the innerHTML of the element */
|
|
1468
|
+
innerHTML?: string;
|
|
1469
|
+
/** Set the textContent of the element */
|
|
1470
|
+
textContent?: string | number;
|
|
1471
|
+
};
|
|
1472
|
+
|
|
1473
|
+
export type WarpSliderThumbProps = {
|
|
1474
|
+
/** */
|
|
1475
|
+
"aria-label"?: WarpSliderThumb["ariaLabel"];
|
|
1476
|
+
/** */
|
|
1477
|
+
ariaLabel?: WarpSliderThumb["ariaLabel"];
|
|
1478
|
+
/** */
|
|
1479
|
+
"aria-description"?: WarpSliderThumb["ariaDescription"];
|
|
1480
|
+
/** */
|
|
1481
|
+
ariaDescription?: WarpSliderThumb["ariaDescription"];
|
|
1482
|
+
/** */
|
|
1483
|
+
label?: WarpSliderThumb["label"];
|
|
1484
|
+
/** */
|
|
1485
|
+
name?: WarpSliderThumb["name"];
|
|
1486
|
+
/** */
|
|
1487
|
+
value?: WarpSliderThumb["value"];
|
|
1488
|
+
/** */
|
|
1489
|
+
disabled?: WarpSliderThumb["disabled"];
|
|
1490
|
+
/** */
|
|
1491
|
+
invalid?: WarpSliderThumb["invalid"];
|
|
1492
|
+
/** Set by `<w-slider>` */
|
|
1493
|
+
allowValuesOutsideRange?: WarpSliderThumb["allowValuesOutsideRange"];
|
|
1494
|
+
/** Set by `<w-slider>` */
|
|
1495
|
+
markers?: WarpSliderThumb["markers"];
|
|
1496
|
+
/** Set by `<w-slider>` */
|
|
1497
|
+
required?: WarpSliderThumb["required"];
|
|
1498
|
+
/** Set by `<w-slider>` */
|
|
1499
|
+
step?: WarpSliderThumb["step"];
|
|
1500
|
+
/** Set by `<w-slider>` */
|
|
1501
|
+
min?: WarpSliderThumb["min"];
|
|
1502
|
+
/** Set by `<w-slider>` */
|
|
1503
|
+
max?: WarpSliderThumb["max"];
|
|
1504
|
+
/** Set by `<w-slider>` */
|
|
1505
|
+
suffix?: WarpSliderThumb["suffix"];
|
|
1506
|
+
/** JS hook to help you format the numeric value how you want. */
|
|
1507
|
+
formatter?: WarpSliderThumb["formatter"];
|
|
1508
|
+
/** */
|
|
1509
|
+
range?: WarpSliderThumb["range"];
|
|
1510
|
+
/** */
|
|
1511
|
+
textfield?: WarpSliderThumb["textfield"];
|
|
1512
|
+
|
|
1513
|
+
/** */
|
|
1514
|
+
onslidervalidity?: (e: CustomEvent) => void;
|
|
1515
|
+
};
|
|
1516
|
+
|
|
1517
|
+
export type WarpSliderThumbSolidJsProps = {
|
|
1518
|
+
/** */
|
|
1519
|
+
"attr:aria-label"?: WarpSliderThumb["ariaLabel"];
|
|
1520
|
+
/** */
|
|
1521
|
+
"prop:ariaLabel"?: WarpSliderThumb["ariaLabel"];
|
|
1522
|
+
/** */
|
|
1523
|
+
"attr:aria-description"?: WarpSliderThumb["ariaDescription"];
|
|
1524
|
+
/** */
|
|
1525
|
+
"prop:ariaDescription"?: WarpSliderThumb["ariaDescription"];
|
|
1526
|
+
/** */
|
|
1527
|
+
"prop:label"?: WarpSliderThumb["label"];
|
|
1528
|
+
/** */
|
|
1529
|
+
"prop:name"?: WarpSliderThumb["name"];
|
|
1530
|
+
/** */
|
|
1531
|
+
"prop:value"?: WarpSliderThumb["value"];
|
|
1532
|
+
/** */
|
|
1533
|
+
"prop:disabled"?: WarpSliderThumb["disabled"];
|
|
1534
|
+
/** */
|
|
1535
|
+
"prop:invalid"?: WarpSliderThumb["invalid"];
|
|
1536
|
+
/** Set by `<w-slider>` */
|
|
1537
|
+
"prop:allowValuesOutsideRange"?: WarpSliderThumb["allowValuesOutsideRange"];
|
|
1538
|
+
/** Set by `<w-slider>` */
|
|
1539
|
+
"prop:markers"?: WarpSliderThumb["markers"];
|
|
1540
|
+
/** Set by `<w-slider>` */
|
|
1541
|
+
"prop:required"?: WarpSliderThumb["required"];
|
|
1542
|
+
/** Set by `<w-slider>` */
|
|
1543
|
+
"prop:step"?: WarpSliderThumb["step"];
|
|
1544
|
+
/** Set by `<w-slider>` */
|
|
1545
|
+
"prop:min"?: WarpSliderThumb["min"];
|
|
1546
|
+
/** Set by `<w-slider>` */
|
|
1547
|
+
"prop:max"?: WarpSliderThumb["max"];
|
|
1548
|
+
/** Set by `<w-slider>` */
|
|
1549
|
+
"prop:suffix"?: WarpSliderThumb["suffix"];
|
|
1550
|
+
/** JS hook to help you format the numeric value how you want. */
|
|
1551
|
+
"prop:formatter"?: WarpSliderThumb["formatter"];
|
|
1552
|
+
/** */
|
|
1553
|
+
"prop:range"?: WarpSliderThumb["range"];
|
|
1554
|
+
/** */
|
|
1555
|
+
"prop:textfield"?: WarpSliderThumb["textfield"];
|
|
1556
|
+
/** */
|
|
1557
|
+
"on:slidervalidity"?: (e: CustomEvent) => void;
|
|
1558
|
+
|
|
1559
|
+
/** Set the innerHTML of the element */
|
|
1560
|
+
innerHTML?: string;
|
|
1561
|
+
/** Set the textContent of the element */
|
|
1562
|
+
textContent?: string | number;
|
|
1563
|
+
};
|
|
1564
|
+
|
|
1565
|
+
export type WarpSliderProps = {
|
|
1566
|
+
/** The slider fieldset label. Required for proper accessibility.
|
|
1567
|
+
|
|
1568
|
+
If you need to display HTML, use the `label` slot instead. */
|
|
1569
|
+
label?: WarpSlider["label"];
|
|
1570
|
+
/** */
|
|
1571
|
+
disabled?: WarpSlider["disabled"];
|
|
1572
|
+
/** */
|
|
1573
|
+
"allow-values-outside-range"?: WarpSlider["allowValuesOutsideRange"];
|
|
1574
|
+
/** */
|
|
1575
|
+
allowValuesOutsideRange?: WarpSlider["allowValuesOutsideRange"];
|
|
1576
|
+
/** */
|
|
1577
|
+
error?: WarpSlider["error"];
|
|
1578
|
+
/** */
|
|
1579
|
+
"help-text"?: WarpSlider["helpText"];
|
|
1580
|
+
/** */
|
|
1581
|
+
helpText?: WarpSlider["helpText"];
|
|
1582
|
+
/** */
|
|
1583
|
+
invalid?: WarpSlider["invalid"];
|
|
1584
|
+
/** Ensures a child slider thumb has a value before allowing the containing form to submit. */
|
|
1585
|
+
required?: WarpSlider["required"];
|
|
1586
|
+
/** */
|
|
1587
|
+
min?: WarpSlider["min"];
|
|
1588
|
+
/** */
|
|
1589
|
+
max?: WarpSlider["max"];
|
|
1590
|
+
/** Pass a value similar to step to create visual markers at that interval */
|
|
1591
|
+
markers?: WarpSlider["markers"];
|
|
1592
|
+
/** */
|
|
1593
|
+
step?: WarpSlider["step"];
|
|
1594
|
+
/** Suffix used in text input fields and for the min and max values of the slider. */
|
|
1595
|
+
suffix?: WarpSlider["suffix"];
|
|
1596
|
+
/** Function to format the to- and from labels and value in the slider thumb tooltip. */
|
|
1597
|
+
formatter?: WarpSlider["formatter"];
|
|
1598
|
+
/** */
|
|
1599
|
+
_invalidMessage?: WarpSlider["_invalidMessage"];
|
|
1600
|
+
/** */
|
|
1601
|
+
_hasInternalError?: WarpSlider["_hasInternalError"];
|
|
1602
|
+
};
|
|
1603
|
+
|
|
1604
|
+
export type WarpSliderSolidJsProps = {
|
|
1605
|
+
/** The slider fieldset label. Required for proper accessibility.
|
|
1606
|
+
|
|
1607
|
+
If you need to display HTML, use the `label` slot instead. */
|
|
1608
|
+
"prop:label"?: WarpSlider["label"];
|
|
1609
|
+
/** */
|
|
1610
|
+
"prop:disabled"?: WarpSlider["disabled"];
|
|
1611
|
+
/** */
|
|
1612
|
+
"bool:allow-values-outside-range"?: WarpSlider["allowValuesOutsideRange"];
|
|
1613
|
+
/** */
|
|
1614
|
+
"prop:allowValuesOutsideRange"?: WarpSlider["allowValuesOutsideRange"];
|
|
1615
|
+
/** */
|
|
1616
|
+
"prop:error"?: WarpSlider["error"];
|
|
1617
|
+
/** */
|
|
1618
|
+
"attr:help-text"?: WarpSlider["helpText"];
|
|
1619
|
+
/** */
|
|
1620
|
+
"prop:helpText"?: WarpSlider["helpText"];
|
|
1621
|
+
/** */
|
|
1622
|
+
"prop:invalid"?: WarpSlider["invalid"];
|
|
1623
|
+
/** Ensures a child slider thumb has a value before allowing the containing form to submit. */
|
|
1624
|
+
"prop:required"?: WarpSlider["required"];
|
|
1625
|
+
/** */
|
|
1626
|
+
"prop:min"?: WarpSlider["min"];
|
|
1627
|
+
/** */
|
|
1628
|
+
"prop:max"?: WarpSlider["max"];
|
|
1629
|
+
/** Pass a value similar to step to create visual markers at that interval */
|
|
1630
|
+
"prop:markers"?: WarpSlider["markers"];
|
|
1631
|
+
/** */
|
|
1632
|
+
"prop:step"?: WarpSlider["step"];
|
|
1633
|
+
/** Suffix used in text input fields and for the min and max values of the slider. */
|
|
1634
|
+
"prop:suffix"?: WarpSlider["suffix"];
|
|
1635
|
+
/** Function to format the to- and from labels and value in the slider thumb tooltip. */
|
|
1636
|
+
"prop:formatter"?: WarpSlider["formatter"];
|
|
1637
|
+
/** */
|
|
1638
|
+
"prop:_invalidMessage"?: WarpSlider["_invalidMessage"];
|
|
1639
|
+
/** */
|
|
1640
|
+
"prop:_hasInternalError"?: WarpSlider["_hasInternalError"];
|
|
1641
|
+
|
|
1642
|
+
/** Set the innerHTML of the element */
|
|
1643
|
+
innerHTML?: string;
|
|
1644
|
+
/** Set the textContent of the element */
|
|
1645
|
+
textContent?: string | number;
|
|
1646
|
+
};
|
|
1647
|
+
|
|
1648
|
+
export type WarpStepProps = {
|
|
1649
|
+
/** */
|
|
1650
|
+
active?: WarpStep["active"];
|
|
1651
|
+
/** */
|
|
1652
|
+
completed?: WarpStep["completed"];
|
|
1653
|
+
};
|
|
1654
|
+
|
|
1655
|
+
export type WarpStepSolidJsProps = {
|
|
1656
|
+
/** */
|
|
1657
|
+
"prop:active"?: WarpStep["active"];
|
|
1658
|
+
/** */
|
|
1659
|
+
"prop:completed"?: WarpStep["completed"];
|
|
1660
|
+
|
|
1661
|
+
/** Set the innerHTML of the element */
|
|
1662
|
+
innerHTML?: string;
|
|
1663
|
+
/** Set the textContent of the element */
|
|
1664
|
+
textContent?: string | number;
|
|
1665
|
+
};
|
|
1666
|
+
|
|
1667
|
+
export type WarpStepIndicatorProps = {
|
|
1668
|
+
/** */
|
|
1669
|
+
horizontal?: WarpStepIndicator["horizontal"];
|
|
1670
|
+
/** */
|
|
1671
|
+
right?: WarpStepIndicator["right"];
|
|
1672
|
+
};
|
|
1673
|
+
|
|
1674
|
+
export type WarpStepIndicatorSolidJsProps = {
|
|
1675
|
+
/** */
|
|
1676
|
+
"prop:horizontal"?: WarpStepIndicator["horizontal"];
|
|
1677
|
+
/** */
|
|
1678
|
+
"prop:right"?: WarpStepIndicator["right"];
|
|
1679
|
+
|
|
1680
|
+
/** Set the innerHTML of the element */
|
|
1681
|
+
innerHTML?: string;
|
|
1682
|
+
/** Set the textContent of the element */
|
|
1683
|
+
textContent?: string | number;
|
|
1684
|
+
};
|
|
1685
|
+
|
|
1686
|
+
export type WarpTabProps = {
|
|
1687
|
+
/** */
|
|
1688
|
+
for?: WarpTab["for"];
|
|
1689
|
+
/** */
|
|
1690
|
+
active?: WarpTab["active"];
|
|
1691
|
+
/** */
|
|
1692
|
+
over?: WarpTab["over"];
|
|
1693
|
+
};
|
|
1694
|
+
|
|
1695
|
+
export type WarpTabSolidJsProps = {
|
|
1696
|
+
/** */
|
|
1697
|
+
"prop:for"?: WarpTab["for"];
|
|
1698
|
+
/** */
|
|
1699
|
+
"prop:active"?: WarpTab["active"];
|
|
1700
|
+
/** */
|
|
1701
|
+
"prop:over"?: WarpTab["over"];
|
|
1702
|
+
|
|
1703
|
+
/** Set the innerHTML of the element */
|
|
1704
|
+
innerHTML?: string;
|
|
1705
|
+
/** Set the textContent of the element */
|
|
1706
|
+
textContent?: string | number;
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1709
|
+
export type WarpTabPanelProps = {
|
|
1710
|
+
/** */
|
|
1711
|
+
hidden?: WarpTabPanel["hidden"];
|
|
1712
|
+
};
|
|
1713
|
+
|
|
1714
|
+
export type WarpTabPanelSolidJsProps = {
|
|
1715
|
+
/** */
|
|
1716
|
+
"prop:hidden"?: WarpTabPanel["hidden"];
|
|
1717
|
+
|
|
1718
|
+
/** Set the innerHTML of the element */
|
|
1719
|
+
innerHTML?: string;
|
|
1720
|
+
/** Set the textContent of the element */
|
|
1721
|
+
textContent?: string | number;
|
|
1722
|
+
};
|
|
1723
|
+
|
|
1724
|
+
export type WarpTabsProps = {
|
|
1725
|
+
/** */
|
|
1726
|
+
active?: WarpTabs["active"];
|
|
1727
|
+
|
|
1728
|
+
/** */
|
|
1729
|
+
onchange?: (e: CustomEvent) => void;
|
|
1730
|
+
};
|
|
1731
|
+
|
|
1732
|
+
export type WarpTabsSolidJsProps = {
|
|
1733
|
+
/** */
|
|
1734
|
+
"prop:active"?: WarpTabs["active"];
|
|
1735
|
+
/** */
|
|
1736
|
+
"on:change"?: (e: CustomEvent) => void;
|
|
1737
|
+
|
|
1738
|
+
/** Set the innerHTML of the element */
|
|
1739
|
+
innerHTML?: string;
|
|
1740
|
+
/** Set the textContent of the element */
|
|
1741
|
+
textContent?: string | number;
|
|
1742
|
+
};
|
|
1743
|
+
|
|
1744
|
+
export type WarpTextareaProps = {
|
|
1745
|
+
/** */
|
|
1746
|
+
disabled?: WarpTextarea["disabled"];
|
|
1747
|
+
/** */
|
|
1748
|
+
invalid?: WarpTextarea["invalid"];
|
|
1749
|
+
/** */
|
|
1750
|
+
label?: WarpTextarea["label"];
|
|
1751
|
+
/** */
|
|
1752
|
+
"help-text"?: WarpTextarea["helpText"];
|
|
1753
|
+
/** */
|
|
1754
|
+
helpText?: WarpTextarea["helpText"];
|
|
1755
|
+
/** */
|
|
1756
|
+
"maximum-rows"?: WarpTextarea["maxRows"];
|
|
1757
|
+
/** */
|
|
1758
|
+
maxRows?: WarpTextarea["maxRows"];
|
|
1759
|
+
/** */
|
|
1760
|
+
"minimum-rows"?: WarpTextarea["minRows"];
|
|
1761
|
+
/** */
|
|
1762
|
+
minRows?: WarpTextarea["minRows"];
|
|
1763
|
+
/** */
|
|
1764
|
+
name?: WarpTextarea["name"];
|
|
1765
|
+
/** */
|
|
1766
|
+
placeholder?: WarpTextarea["placeholder"];
|
|
1767
|
+
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
1768
|
+
"read-only"?: WarpTextarea["readOnly"];
|
|
1769
|
+
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
1770
|
+
readOnly?: WarpTextarea["readOnly"];
|
|
1771
|
+
/** */
|
|
1772
|
+
readonly?: WarpTextarea["readonly"];
|
|
1773
|
+
/** */
|
|
1774
|
+
required?: WarpTextarea["required"];
|
|
1775
|
+
/** */
|
|
1776
|
+
value?: WarpTextarea["value"];
|
|
1777
|
+
/** */
|
|
1778
|
+
optional?: WarpTextarea["optional"];
|
|
1779
|
+
/** */
|
|
1780
|
+
minHeight?: WarpTextarea["minHeight"];
|
|
1781
|
+
/** */
|
|
1782
|
+
maxHeight?: WarpTextarea["maxHeight"];
|
|
1783
|
+
};
|
|
1784
|
+
|
|
1785
|
+
export type WarpTextareaSolidJsProps = {
|
|
1786
|
+
/** */
|
|
1787
|
+
"prop:disabled"?: WarpTextarea["disabled"];
|
|
1788
|
+
/** */
|
|
1789
|
+
"prop:invalid"?: WarpTextarea["invalid"];
|
|
1790
|
+
/** */
|
|
1791
|
+
"prop:label"?: WarpTextarea["label"];
|
|
1792
|
+
/** */
|
|
1793
|
+
"attr:help-text"?: WarpTextarea["helpText"];
|
|
1794
|
+
/** */
|
|
1795
|
+
"prop:helpText"?: WarpTextarea["helpText"];
|
|
1796
|
+
/** */
|
|
1797
|
+
"attr:maximum-rows"?: WarpTextarea["maxRows"];
|
|
1798
|
+
/** */
|
|
1799
|
+
"prop:maxRows"?: WarpTextarea["maxRows"];
|
|
1800
|
+
/** */
|
|
1801
|
+
"attr:minimum-rows"?: WarpTextarea["minRows"];
|
|
1802
|
+
/** */
|
|
1803
|
+
"prop:minRows"?: WarpTextarea["minRows"];
|
|
1804
|
+
/** */
|
|
1805
|
+
"prop:name"?: WarpTextarea["name"];
|
|
1806
|
+
/** */
|
|
1807
|
+
"prop:placeholder"?: WarpTextarea["placeholder"];
|
|
1808
|
+
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
1809
|
+
"bool:read-only"?: WarpTextarea["readOnly"];
|
|
1810
|
+
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
1811
|
+
"prop:readOnly"?: WarpTextarea["readOnly"];
|
|
1812
|
+
/** */
|
|
1813
|
+
"prop:readonly"?: WarpTextarea["readonly"];
|
|
1814
|
+
/** */
|
|
1815
|
+
"prop:required"?: WarpTextarea["required"];
|
|
1816
|
+
/** */
|
|
1817
|
+
"prop:value"?: WarpTextarea["value"];
|
|
1818
|
+
/** */
|
|
1819
|
+
"prop:optional"?: WarpTextarea["optional"];
|
|
1820
|
+
/** */
|
|
1821
|
+
"prop:minHeight"?: WarpTextarea["minHeight"];
|
|
1822
|
+
/** */
|
|
1823
|
+
"prop:maxHeight"?: WarpTextarea["maxHeight"];
|
|
1824
|
+
|
|
1825
|
+
/** Set the innerHTML of the element */
|
|
1826
|
+
innerHTML?: string;
|
|
1827
|
+
/** Set the textContent of the element */
|
|
1828
|
+
textContent?: string | number;
|
|
1829
|
+
};
|
|
1830
|
+
|
|
1831
|
+
export type CustomElements = {
|
|
1832
|
+
/**
|
|
1833
|
+
* This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.
|
|
1834
|
+
*
|
|
1835
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-affix--docs)
|
|
1836
|
+
*
|
|
1837
|
+
* ## Attributes & Properties
|
|
1838
|
+
*
|
|
1839
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1840
|
+
*
|
|
1841
|
+
* - `aria-label`/`ariaLabel`: undefined
|
|
1842
|
+
* - `clear`: Add this property to render a clickable Warp close icon.
|
|
1843
|
+
*
|
|
1844
|
+
* Set an `aria-label` that explains the action when using this.
|
|
1845
|
+
* - `search`: Add this property to render a clickable Warp search icon.
|
|
1846
|
+
*
|
|
1847
|
+
* Set an `aria-label` that explains the action when using this.
|
|
1848
|
+
* - `label`: undefined
|
|
1849
|
+
*/
|
|
1850
|
+
"w-affix": Partial<WarpAffixProps & BaseProps<WarpAffix> & BaseEvents>;
|
|
1851
|
+
|
|
1852
|
+
/**
|
|
1853
|
+
* Alert is an inline component used for displaying different types of messages.
|
|
1854
|
+
*
|
|
1855
|
+
* For accessibility reasons, alert should appear close to the element that triggered it.
|
|
1856
|
+
*
|
|
1857
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)
|
|
1858
|
+
*
|
|
1859
|
+
* ## Attributes & Properties
|
|
1860
|
+
*
|
|
1861
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1862
|
+
*
|
|
1863
|
+
* - `variant`: undefined
|
|
1864
|
+
* - `show`: undefined
|
|
1865
|
+
* - `role`: undefined
|
|
1866
|
+
*/
|
|
1867
|
+
"w-alert": Partial<WarpAlertProps & BaseProps<WarpAlert> & BaseEvents>;
|
|
1868
|
+
|
|
1869
|
+
/**
|
|
1870
|
+
* Buttons are used to perform actions, with different visuals for different needs.
|
|
1871
|
+
*
|
|
1872
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-link--docs)
|
|
1873
|
+
*
|
|
1874
|
+
* ## Attributes & Properties
|
|
1875
|
+
*
|
|
1876
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1877
|
+
*
|
|
1878
|
+
* - `autofocus`: undefined
|
|
1879
|
+
* - `variant`: undefined
|
|
1880
|
+
* - `small`: undefined
|
|
1881
|
+
* - `href`: undefined
|
|
1882
|
+
* - `disabled`: undefined
|
|
1883
|
+
* - `target`: undefined
|
|
1884
|
+
* - `rel`: undefined
|
|
1885
|
+
* - `full-width`/`fullWidth`: undefined
|
|
1886
|
+
*/
|
|
1887
|
+
"w-link": Partial<WarpLinkProps & BaseProps<WarpLink> & BaseEvents>;
|
|
1888
|
+
|
|
1889
|
+
/**
|
|
1890
|
+
* Buttons are used to perform actions, widh different visuals for different needs.
|
|
1891
|
+
*
|
|
1892
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-button--docs)
|
|
1893
|
+
*
|
|
1894
|
+
* ## Attributes & Properties
|
|
1895
|
+
*
|
|
1896
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1897
|
+
*
|
|
1898
|
+
* - `type`: undefined
|
|
1899
|
+
* - `autofocus`: undefined
|
|
1900
|
+
* - `variant`: undefined
|
|
1901
|
+
* - `quiet`: undefined
|
|
1902
|
+
* - `small`: undefined
|
|
1903
|
+
* - `loading`: undefined
|
|
1904
|
+
* - `href`: undefined
|
|
1905
|
+
* - `target`: undefined
|
|
1906
|
+
* - `rel`: undefined
|
|
1907
|
+
* - `full-width`/`fullWidth`: undefined
|
|
1908
|
+
* - `button-class`/`buttonClass`: undefined
|
|
1909
|
+
* - `name`: undefined
|
|
1910
|
+
* - `value`: undefined
|
|
1911
|
+
* - `ariaValueTextLoading`: undefined (property only)
|
|
1912
|
+
*
|
|
1913
|
+
* ## Methods
|
|
1914
|
+
*
|
|
1915
|
+
* Methods that can be called to access component functionality.
|
|
1916
|
+
*
|
|
1917
|
+
* - `resetFormControl() => void`: undefined
|
|
1918
|
+
*/
|
|
1919
|
+
"w-button": Partial<WarpButtonProps & BaseProps<WarpButton> & BaseEvents>;
|
|
1920
|
+
|
|
1921
|
+
/**
|
|
1922
|
+
*
|
|
1923
|
+
*
|
|
1924
|
+
* ## Attributes & Properties
|
|
1925
|
+
*
|
|
1926
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1927
|
+
*
|
|
1928
|
+
* - `show`: undefined
|
|
1929
|
+
* - `placement`: undefined
|
|
1930
|
+
* - `tooltip`: undefined
|
|
1931
|
+
* - `callout`: undefined
|
|
1932
|
+
* - `popover`: undefined
|
|
1933
|
+
* - `highlight`: undefined
|
|
1934
|
+
* - `can-close`/`canClose`: undefined
|
|
1935
|
+
* - `no-arrow`/`noArrow`: undefined
|
|
1936
|
+
* - `distance`: undefined
|
|
1937
|
+
* - `skidding`: undefined
|
|
1938
|
+
* - `flip`: undefined
|
|
1939
|
+
* - `cross-axis`/`crossAxis`: undefined
|
|
1940
|
+
* - `fallback-placements`/`fallbackPlacements`: undefined
|
|
1941
|
+
* - `_initialPlacement`: undefined (property only)
|
|
1942
|
+
* - `_actualDirection`: undefined (property only)
|
|
1943
|
+
*
|
|
1944
|
+
* ## Methods
|
|
1945
|
+
*
|
|
1946
|
+
* Methods that can be called to access component functionality.
|
|
1947
|
+
*
|
|
1948
|
+
* - `handleDone() => void`: undefined
|
|
1949
|
+
* - `pointingAtDirection() => void`: undefined
|
|
1950
|
+
* - `activeAttentionType() => void`: undefined
|
|
1951
|
+
* - `defaultAriaLabel() => void`: undefined
|
|
1952
|
+
* - `setAriaLabels() => void`: undefined
|
|
1953
|
+
* - `close() => void`: undefined
|
|
1954
|
+
* - `keypressed(e: KeyboardEvent) => void`: undefined
|
|
1955
|
+
*/
|
|
1956
|
+
"w-attention": Partial<
|
|
1957
|
+
WarpAttentionProps & BaseProps<WarpAttention> & BaseEvents
|
|
1958
|
+
>;
|
|
1959
|
+
|
|
1960
|
+
/**
|
|
1961
|
+
* `w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.
|
|
1962
|
+
*
|
|
1963
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-badge--docs)
|
|
1964
|
+
*
|
|
1965
|
+
* ## Attributes & Properties
|
|
1966
|
+
*
|
|
1967
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1968
|
+
*
|
|
1969
|
+
* - `variant`: undefined
|
|
1970
|
+
* - `position`: undefined
|
|
1971
|
+
*/
|
|
1972
|
+
"w-badge": Partial<WarpBadgeProps & BaseProps<WarpBadge> & BaseEvents>;
|
|
1973
|
+
|
|
1974
|
+
/**
|
|
1975
|
+
* Box is a layout component used for separating content areas on a page.
|
|
1976
|
+
*
|
|
1977
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-box--docs)
|
|
1978
|
+
*
|
|
1979
|
+
* ## Attributes & Properties
|
|
1980
|
+
*
|
|
1981
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1982
|
+
*
|
|
1983
|
+
* - `bleed`: undefined
|
|
1984
|
+
* - `bordered`: undefined
|
|
1985
|
+
* - `info`: undefined
|
|
1986
|
+
* - `neutral`: undefined
|
|
1987
|
+
* - `role`: undefined
|
|
1988
|
+
*/
|
|
1989
|
+
"w-box": Partial<WarpBoxProps & BaseProps<WarpBox> & BaseEvents>;
|
|
1990
|
+
|
|
1991
|
+
/**
|
|
1992
|
+
* Breadcrumbs show the navigation structure for the current location.
|
|
1993
|
+
*
|
|
1994
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-breadcrumbs--docs)
|
|
1995
|
+
*
|
|
1996
|
+
* ## Attributes & Properties
|
|
1997
|
+
*
|
|
1998
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
1999
|
+
*
|
|
2000
|
+
* - `aria-label`/`ariaLabel`: undefined
|
|
2001
|
+
*/
|
|
2002
|
+
"w-breadcrumbs": Partial<
|
|
2003
|
+
WarpBreadcrumbsProps & BaseProps<WarpBreadcrumbs> & BaseEvents
|
|
2004
|
+
>;
|
|
2005
|
+
|
|
2006
|
+
/**
|
|
2007
|
+
* Card is a layout component used for separating content areas on a page.
|
|
2008
|
+
*
|
|
2009
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-card--docs)
|
|
2010
|
+
*
|
|
2011
|
+
* ## Attributes & Properties
|
|
2012
|
+
*
|
|
2013
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2014
|
+
*
|
|
2015
|
+
* - `selected`: undefined
|
|
2016
|
+
* - `flat`: undefined
|
|
2017
|
+
* - `clickable`: undefined
|
|
2018
|
+
* - `buttonText`: undefined (property only)
|
|
2019
|
+
*
|
|
2020
|
+
* ## Methods
|
|
2021
|
+
*
|
|
2022
|
+
* Methods that can be called to access component functionality.
|
|
2023
|
+
*
|
|
2024
|
+
* - `keypressed(e: KeyboardEvent) => void`: undefined
|
|
2025
|
+
*/
|
|
2026
|
+
"w-card": Partial<WarpCardProps & BaseProps<WarpCard> & BaseEvents>;
|
|
2027
|
+
|
|
2028
|
+
/**
|
|
2029
|
+
* Expandable is a layout component used for creating expandable content areas on a page.
|
|
2030
|
+
*
|
|
2031
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-expandable--docs)
|
|
2032
|
+
*
|
|
2033
|
+
* ## Attributes & Properties
|
|
2034
|
+
*
|
|
2035
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2036
|
+
*
|
|
2037
|
+
* - `expanded`: undefined
|
|
2038
|
+
* - `title`: undefined
|
|
2039
|
+
* - `box`: undefined
|
|
2040
|
+
* - `bleed`: undefined
|
|
2041
|
+
* - `button-class`/`buttonClass`: undefined
|
|
2042
|
+
* - `content-class`/`contentClass`: undefined
|
|
2043
|
+
* - `no-chevron`/`noChevron`: undefined
|
|
2044
|
+
* - `animated`: undefined
|
|
2045
|
+
* - `heading-level`/`headingLevel`: undefined
|
|
2046
|
+
* - `_hasTitle`: undefined
|
|
2047
|
+
* - `_showChevronUp`: undefined
|
|
2048
|
+
*
|
|
2049
|
+
* ## Slots
|
|
2050
|
+
*
|
|
2051
|
+
* Areas where markup can be added to the component.
|
|
2052
|
+
*
|
|
2053
|
+
* - `title`: Alternative to the `title` attribute should you need to provide some additional markup.
|
|
2054
|
+
*/
|
|
2055
|
+
"w-expandable": Partial<
|
|
2056
|
+
WarpExpandableProps & BaseProps<WarpExpandable> & BaseEvents
|
|
2057
|
+
>;
|
|
2058
|
+
|
|
2059
|
+
/**
|
|
2060
|
+
* 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.
|
|
2061
|
+
*
|
|
2062
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-pill--docs)
|
|
2063
|
+
*
|
|
2064
|
+
* ## Attributes & Properties
|
|
2065
|
+
*
|
|
2066
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2067
|
+
*
|
|
2068
|
+
* - `can-close`/`canClose`: undefined
|
|
2069
|
+
* - `suggestion`: undefined
|
|
2070
|
+
* - `open-sr-label`/`openSrLabel`: undefined
|
|
2071
|
+
* - `open-aria-label`/`openAriaLabel`: undefined
|
|
2072
|
+
* - `close-sr-label`/`closeSrLabel`: undefined
|
|
2073
|
+
* - `close-aria-label`/`closeAriaLabel`: undefined
|
|
2074
|
+
* - `openFilterSrText`: undefined (property only)
|
|
2075
|
+
* - `removeFilterSrText`: undefined (property only)
|
|
2076
|
+
*
|
|
2077
|
+
* ## Events
|
|
2078
|
+
*
|
|
2079
|
+
* Events that will be emitted by the component.
|
|
2080
|
+
*
|
|
2081
|
+
* - `w-pill-click`: undefined
|
|
2082
|
+
* - `w-pill-close`: undefined
|
|
2083
|
+
*/
|
|
2084
|
+
"w-pill": Partial<WarpPillProps & BaseProps<WarpPill> & BaseEvents>;
|
|
2085
|
+
|
|
2086
|
+
/**
|
|
2087
|
+
* A dropdown component for selecting a single value.
|
|
2088
|
+
*
|
|
2089
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-select--docs)
|
|
2090
|
+
*
|
|
2091
|
+
* ## Attributes & Properties
|
|
2092
|
+
*
|
|
2093
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2094
|
+
*
|
|
2095
|
+
* - `auto-focus`/`autoFocus`: Whether the element should receive focus on render.
|
|
2096
|
+
* - `autofocus`: Whether the element should receive focus on render
|
|
2097
|
+
* - `help-text`/`helpText`: The content displayed as the help text. Paired with `invalid` to show the text as a validation error.
|
|
2098
|
+
* - `invalid`: Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error.
|
|
2099
|
+
* - `always`: Whether to always show a hint.
|
|
2100
|
+
* - `hint`: The content displayed as the help text.
|
|
2101
|
+
* - `label`: The content to disply as the label
|
|
2102
|
+
* - `optional`: Whether to show optional text
|
|
2103
|
+
* - `disabled`: Renders the field in a disabled state.
|
|
2104
|
+
* - `read-only`/`readOnly`: Renders the field in a readonly state.
|
|
2105
|
+
* - `readonly`: Renders the field in a readonly state.
|
|
2106
|
+
* - `name`: undefined
|
|
2107
|
+
* - `value`: undefined
|
|
2108
|
+
*
|
|
2109
|
+
* ## Methods
|
|
2110
|
+
*
|
|
2111
|
+
* Methods that can be called to access component functionality.
|
|
2112
|
+
*
|
|
2113
|
+
* - `resetFormControl() => void`: undefined
|
|
2114
|
+
* - `handleKeyDown(event: KeyboardEvent) => void`: undefined
|
|
2115
|
+
* - `onChange({ target }) => void`: undefined
|
|
2116
|
+
*/
|
|
2117
|
+
"w-select": Partial<WarpSelectProps & BaseProps<WarpSelect> & BaseEvents>;
|
|
2118
|
+
|
|
2119
|
+
/**
|
|
2120
|
+
* A single line text input element.
|
|
2121
|
+
*
|
|
2122
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
2123
|
+
*
|
|
2124
|
+
* ## Attributes & Properties
|
|
2125
|
+
*
|
|
2126
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2127
|
+
*
|
|
2128
|
+
* - `disabled`: undefined
|
|
2129
|
+
* - `invalid`: undefined
|
|
2130
|
+
* - `id`: undefined
|
|
2131
|
+
* - `label`: undefined
|
|
2132
|
+
* - `help-text`/`helpText`: undefined
|
|
2133
|
+
* - `size`: undefined
|
|
2134
|
+
* - `max`: undefined
|
|
2135
|
+
* - `min`: undefined
|
|
2136
|
+
* - `min-length`/`minLength`: undefined
|
|
2137
|
+
* - `max-length`/`maxLength`: undefined
|
|
2138
|
+
* - `pattern`: undefined
|
|
2139
|
+
* - `placeholder`: undefined
|
|
2140
|
+
* - `read-only`/`readOnly`: undefined
|
|
2141
|
+
* - `readonly`: undefined
|
|
2142
|
+
* - `required`: undefined
|
|
2143
|
+
* - `type`: undefined
|
|
2144
|
+
* - `value`: undefined
|
|
2145
|
+
* - `name`: undefined
|
|
2146
|
+
* - `step`: undefined
|
|
2147
|
+
* - `autocomplete`: undefined
|
|
2148
|
+
* - `formatter`: Function to format value when the input field.
|
|
2149
|
+
*
|
|
2150
|
+
* Only active when the input field does not have focus,
|
|
2151
|
+
* similar to the accessible input masking example from Filament Group
|
|
2152
|
+
*
|
|
2153
|
+
* https://css-tricks.com/input-masking/
|
|
2154
|
+
* https://filamentgroup.github.io/politespace/demo/demo.html (property only)
|
|
2155
|
+
*
|
|
2156
|
+
* ## Methods
|
|
2157
|
+
*
|
|
2158
|
+
* Methods that can be called to access component functionality.
|
|
2159
|
+
*
|
|
2160
|
+
* - `resetFormControl() => void`: undefined
|
|
2161
|
+
* - `handler(e: Event) => void`: undefined
|
|
2162
|
+
* - `prefixSlotChange() => void`: undefined
|
|
2163
|
+
* - `suffixSlotChange() => void`: undefined
|
|
2164
|
+
*/
|
|
2165
|
+
"w-textfield": Partial<
|
|
2166
|
+
WarpTextFieldProps & BaseProps<WarpTextField> & BaseEvents
|
|
2167
|
+
>;
|
|
2168
|
+
|
|
2169
|
+
/**
|
|
2170
|
+
* Modals (or dialogs) display important information that users need to acknowledge.
|
|
2171
|
+
*
|
|
2172
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
2173
|
+
*
|
|
2174
|
+
* ## Attributes & Properties
|
|
2175
|
+
*
|
|
2176
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2177
|
+
*
|
|
2178
|
+
* - `show`: undefined
|
|
2179
|
+
* - `content-id`/`contentId`: undefined
|
|
2180
|
+
* - `ignore-backdrop-clicks`/`ignoreBackdropClicks`: undefined
|
|
2181
|
+
* - `dialogEl`: undefined (property only)
|
|
2182
|
+
* - `dialogInnerEl`: undefined (property only)
|
|
2183
|
+
* - `contentEl`: undefined (property only)
|
|
2184
|
+
*
|
|
2185
|
+
* ## Events
|
|
2186
|
+
*
|
|
2187
|
+
* Events that will be emitted by the component.
|
|
2188
|
+
*
|
|
2189
|
+
* - `shown`: undefined
|
|
2190
|
+
* - `hidden`: undefined
|
|
2191
|
+
*
|
|
2192
|
+
* ## Slots
|
|
2193
|
+
*
|
|
2194
|
+
* Areas where markup can be added to the component.
|
|
2195
|
+
*
|
|
2196
|
+
* - `header`: Typically where you would use the `w-modal-header` component.
|
|
2197
|
+
* - `content`: The main content of the modal.
|
|
2198
|
+
* - `footer`: Typically where you would use the `w-modal-footer` component, for things like actions.
|
|
2199
|
+
*
|
|
2200
|
+
* ## Methods
|
|
2201
|
+
*
|
|
2202
|
+
* Methods that can be called to access component functionality.
|
|
2203
|
+
*
|
|
2204
|
+
* - `open() => void`: undefined
|
|
2205
|
+
* - `close() => void`: undefined
|
|
2206
|
+
* - `handleListeners(verb = 'addEventListener') => void`: undefined
|
|
2207
|
+
* - `eventPreventer(evt: Event) => void`: undefined
|
|
2208
|
+
* - `closeOnBackdropClick(evt: MouseEvent) => void`: undefined
|
|
2209
|
+
* - `interceptEscape(evt: KeyboardEvent) => void`: undefined
|
|
2210
|
+
* - `modifyBorderRadius() => void`: undefined
|
|
2211
|
+
*/
|
|
2212
|
+
"w-modal": Partial<ModalMainProps & BaseProps<ModalMain> & BaseEvents>;
|
|
2213
|
+
|
|
2214
|
+
/**
|
|
2215
|
+
* The header section of a modal, typically where you place the title and a close button.
|
|
2216
|
+
*
|
|
2217
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
2218
|
+
*
|
|
2219
|
+
* ## Attributes & Properties
|
|
2220
|
+
*
|
|
2221
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2222
|
+
*
|
|
2223
|
+
* - `title`: undefined
|
|
2224
|
+
* - `back`: undefined
|
|
2225
|
+
* - `no-close`/`noClose`: undefined
|
|
2226
|
+
* - `titleEl`: undefined (property only)
|
|
2227
|
+
* - `titleClasses`: undefined (property only) (readonly)
|
|
2228
|
+
* - `backButton`: undefined (property only) (readonly)
|
|
2229
|
+
* - `closeButton`: undefined (property only) (readonly)
|
|
2230
|
+
*
|
|
2231
|
+
* ## Events
|
|
2232
|
+
*
|
|
2233
|
+
* Events that will be emitted by the component.
|
|
2234
|
+
*
|
|
2235
|
+
* - `backClicked`: undefined
|
|
2236
|
+
*
|
|
2237
|
+
* ## Slots
|
|
2238
|
+
*
|
|
2239
|
+
* Areas where markup can be added to the component.
|
|
2240
|
+
*
|
|
2241
|
+
* - `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.
|
|
2242
|
+
*
|
|
2243
|
+
* ## Methods
|
|
2244
|
+
*
|
|
2245
|
+
* Methods that can be called to access component functionality.
|
|
2246
|
+
*
|
|
2247
|
+
* - `emitBack() => void`: undefined
|
|
2248
|
+
* - `handleTopSlotChange(slotEvent) => void`: undefined
|
|
2249
|
+
*/
|
|
2250
|
+
"w-modal-header": Partial<
|
|
2251
|
+
ModalHeaderProps & BaseProps<ModalHeader> & BaseEvents
|
|
2252
|
+
>;
|
|
2253
|
+
|
|
2254
|
+
/**
|
|
2255
|
+
* The footer section of a modal, typically where you place actions.
|
|
2256
|
+
*
|
|
2257
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
2258
|
+
*/
|
|
2259
|
+
"w-modal-footer": Partial<
|
|
2260
|
+
ModalFooterProps & BaseProps<ModalFooter> & BaseEvents
|
|
2261
|
+
>;
|
|
2262
|
+
|
|
2263
|
+
/**
|
|
2264
|
+
*
|
|
2265
|
+
*
|
|
2266
|
+
* ## Methods
|
|
2267
|
+
*
|
|
2268
|
+
* Methods that can be called to access component functionality.
|
|
2269
|
+
*
|
|
2270
|
+
* - `init() => void`: undefined
|
|
2271
|
+
* - `get(id: string | number) => ToastInternal | undefined`: undefined
|
|
2272
|
+
* - `set(toast: ToastOptions) => Map<string | number, ToastInternal>`: undefined
|
|
2273
|
+
* - `del(id: string | number) => Promise<boolean>`: undefined
|
|
2274
|
+
*/
|
|
2275
|
+
"w-toast-container": Partial<
|
|
2276
|
+
WarpToastContainerProps & BaseProps<WarpToastContainer> & BaseEvents
|
|
2277
|
+
>;
|
|
2278
|
+
|
|
2279
|
+
/**
|
|
2280
|
+
* An input for dates.
|
|
2281
|
+
*
|
|
2282
|
+
* Uses the `lang` attribute on either the element or on `<html>` to determine the locale options.
|
|
2283
|
+
*
|
|
2284
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-datepicker--docs)
|
|
2285
|
+
*
|
|
2286
|
+
* ## Attributes & Properties
|
|
2287
|
+
*
|
|
2288
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2289
|
+
*
|
|
2290
|
+
* - `label`: undefined
|
|
2291
|
+
* - `lang`: Takes precedence over the `<html>` lang attribute.
|
|
2292
|
+
* - `name`: undefined
|
|
2293
|
+
* - `value`: undefined
|
|
2294
|
+
* - `header-format`/`headerFormat`: Decides the format of the date as shown in the calendar header.
|
|
2295
|
+
*
|
|
2296
|
+
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
2297
|
+
* - `weekday-format`/`weekdayFormat`: Decides the format of the weekday as shown above the grid of dates in the calendar.
|
|
2298
|
+
*
|
|
2299
|
+
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
2300
|
+
* - `day-format`/`dayFormat`: Decides the format of the day in the calendar as read to screen readers.
|
|
2301
|
+
*
|
|
2302
|
+
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
2303
|
+
* - `isDayDisabled`: Lets you control if a date in the calendar should be disabled.
|
|
2304
|
+
*
|
|
2305
|
+
* This needs to be set on the element instance in JavaScript, not as an HTML attribute. (property only)
|
|
2306
|
+
* - `isCalendarOpen`: undefined (property only)
|
|
2307
|
+
* - `navigationDate`: undefined (property only)
|
|
2308
|
+
* - `selectedDate`: undefined (property only) (readonly)
|
|
2309
|
+
* - `month`: undefined (property only) (readonly)
|
|
2310
|
+
* - `weeks`: undefined (property only) (readonly)
|
|
2311
|
+
* - `calendar`: undefined (property only)
|
|
2312
|
+
* - `input`: undefined (property only)
|
|
2313
|
+
* - `toggleButton`: undefined (property only)
|
|
2314
|
+
* - `wrapper`: undefined (property only)
|
|
2315
|
+
* - `previousMonthButton`: This is the first focusable element, needed for the modal focus trap.
|
|
2316
|
+
*
|
|
2317
|
+
* Don't cache this and other `@query` fields from inside the calendar modal.
|
|
2318
|
+
* They work the first time, but once the calendar is closed and reopened
|
|
2319
|
+
* the query will point to an element that doesn't exist anymore. (property only)
|
|
2320
|
+
* - `todayCell`: undefined (property only)
|
|
2321
|
+
* - `selectedCell`: undefined (property only)
|
|
2322
|
+
*
|
|
2323
|
+
* ## Methods
|
|
2324
|
+
*
|
|
2325
|
+
* Methods that can be called to access component functionality.
|
|
2326
|
+
*
|
|
2327
|
+
* - `resetFormControl() => void`: undefined
|
|
2328
|
+
*/
|
|
2329
|
+
"w-datepicker": Partial<
|
|
2330
|
+
WarpDatepickerProps & BaseProps<WarpDatepicker> & BaseEvents
|
|
2331
|
+
>;
|
|
2332
|
+
|
|
2333
|
+
/**
|
|
2334
|
+
*
|
|
2335
|
+
*
|
|
2336
|
+
* ## Attributes & Properties
|
|
2337
|
+
*
|
|
2338
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2339
|
+
*
|
|
2340
|
+
* - `name`: undefined
|
|
2341
|
+
* - `value`: undefined
|
|
2342
|
+
* - `checked`: undefined
|
|
2343
|
+
* - `disabled`: undefined
|
|
2344
|
+
*
|
|
2345
|
+
* ## Events
|
|
2346
|
+
*
|
|
2347
|
+
* Events that will be emitted by the component.
|
|
2348
|
+
*
|
|
2349
|
+
* - `change`: undefined
|
|
2350
|
+
*
|
|
2351
|
+
* ## Methods
|
|
2352
|
+
*
|
|
2353
|
+
* Methods that can be called to access component functionality.
|
|
2354
|
+
*
|
|
2355
|
+
* - `resetFormControl() => void`: undefined
|
|
2356
|
+
*/
|
|
2357
|
+
"w-switch": Partial<WarpSwitchProps & BaseProps<WarpSwitch> & BaseEvents>;
|
|
2358
|
+
|
|
2359
|
+
/**
|
|
2360
|
+
* A combobox element for text input with selectable options.
|
|
2361
|
+
*
|
|
2362
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-combobox--docs)
|
|
2363
|
+
*
|
|
2364
|
+
* ## Attributes & Properties
|
|
2365
|
+
*
|
|
2366
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2367
|
+
*
|
|
2368
|
+
* - `options`: The available options to select from
|
|
2369
|
+
* - `label`: Label above input
|
|
2370
|
+
* - `placeholder`: Input placeholder
|
|
2371
|
+
* - `value`: The input value
|
|
2372
|
+
* - `open-on-focus`/`openOnFocus`: Whether the popover opens when focus is on the text field
|
|
2373
|
+
* - `select-on-blur`/`selectOnBlur`: Select active option on blur
|
|
2374
|
+
* - `match-text-segments`/`matchTextSegments`: Whether the matching text segments in the options should be highlighted
|
|
2375
|
+
* - `disable-static-filtering`/`disableStaticFiltering`: Disable client-side static filtering
|
|
2376
|
+
* - `invalid`: Renders the input field in an invalid state
|
|
2377
|
+
* - `help-text`/`helpText`: The content to display as the help text
|
|
2378
|
+
* - `disabled`: Whether the element is disabled
|
|
2379
|
+
* - `required`: Whether the element is required
|
|
2380
|
+
* - `optional`: Whether to show optional text
|
|
2381
|
+
* - `name`: Name attribute for form submission
|
|
2382
|
+
* - `autocomplete`: Autocomplete attribute for the input field
|
|
2383
|
+
*
|
|
2384
|
+
* ## Methods
|
|
2385
|
+
*
|
|
2386
|
+
* Methods that can be called to access component functionality.
|
|
2387
|
+
*
|
|
2388
|
+
* - `resetFormControl() => void`: undefined
|
|
2389
|
+
*/
|
|
2390
|
+
"w-combobox": Partial<
|
|
2391
|
+
WarpComboboxProps & BaseProps<WarpCombobox> & BaseEvents
|
|
2392
|
+
>;
|
|
2393
|
+
|
|
2394
|
+
/**
|
|
2395
|
+
* 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.
|
|
2396
|
+
*
|
|
2397
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-dead-toggle--docs)
|
|
2398
|
+
*
|
|
2399
|
+
* ## Attributes & Properties
|
|
2400
|
+
*
|
|
2401
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2402
|
+
*
|
|
2403
|
+
* - `type`: undefined
|
|
2404
|
+
* - `checked`: undefined
|
|
2405
|
+
* - `indeterminate`: undefined
|
|
2406
|
+
* - `invalid`: undefined
|
|
2407
|
+
* - `disabled`: undefined
|
|
2408
|
+
*/
|
|
2409
|
+
"w-dead-toggle": Partial<
|
|
2410
|
+
WarpDeadToggleProps & BaseProps<WarpDeadToggle> & BaseEvents
|
|
2411
|
+
>;
|
|
2412
|
+
|
|
2413
|
+
/**
|
|
2414
|
+
*
|
|
2415
|
+
*
|
|
2416
|
+
* ## Attributes & Properties
|
|
2417
|
+
*
|
|
2418
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2419
|
+
*
|
|
2420
|
+
* - `selected-page`/`selectedPage`: Currently selected page (1-based index)
|
|
2421
|
+
* - `page-count`/`pageCount`: Total number of pages
|
|
2422
|
+
*/
|
|
2423
|
+
"w-page-indicator": Partial<
|
|
2424
|
+
WarpPageIndicatorProps & BaseProps<WarpPageIndicator> & BaseEvents
|
|
2425
|
+
>;
|
|
2426
|
+
|
|
2427
|
+
/**
|
|
2428
|
+
* Pagination allows users to navigate through multiple pages of content by providing navigation controls with page numbers and directional arrows.
|
|
2429
|
+
*
|
|
2430
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-pagination--docs)
|
|
2431
|
+
*
|
|
2432
|
+
* ## Attributes & Properties
|
|
2433
|
+
*
|
|
2434
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2435
|
+
*
|
|
2436
|
+
* - `base-url`/`baseUrl`: undefined
|
|
2437
|
+
* - `pages`: undefined
|
|
2438
|
+
* - `current-page`/`currentPageNumber`: undefined
|
|
2439
|
+
* - `visible-pages`/`visiblePages`: undefined
|
|
2440
|
+
*
|
|
2441
|
+
* ## Events
|
|
2442
|
+
*
|
|
2443
|
+
* Events that will be emitted by the component.
|
|
2444
|
+
*
|
|
2445
|
+
* - `page-click`: Triggered when a link button in the pagination is clicked. Contains the page number in `string` form.
|
|
2446
|
+
*/
|
|
2447
|
+
"w-pagination": Partial<
|
|
2448
|
+
WarpPaginationProps & BaseProps<WarpPagination> & BaseEvents
|
|
2449
|
+
>;
|
|
2450
|
+
|
|
2451
|
+
/**
|
|
2452
|
+
*
|
|
2453
|
+
*
|
|
2454
|
+
* ## Attributes & Properties
|
|
2455
|
+
*
|
|
2456
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2457
|
+
*
|
|
2458
|
+
* - `form`: The string pointing to a form's id.
|
|
2459
|
+
* - `value`: The radio's value. When selected, the radio group will receive this value.
|
|
2460
|
+
* - `appearance`: The radio's value. When selected, the radio group will receive this value.
|
|
2461
|
+
* - `size`: The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this
|
|
2462
|
+
* attribute can typically be omitted.
|
|
2463
|
+
* - `disabled`: Disables the radio.
|
|
2464
|
+
* - `checked`: undefined (property only)
|
|
2465
|
+
*
|
|
2466
|
+
* ## Methods
|
|
2467
|
+
*
|
|
2468
|
+
* Methods that can be called to access component functionality.
|
|
2469
|
+
*
|
|
2470
|
+
* - `setValue() => void`: undefined
|
|
2471
|
+
*/
|
|
2472
|
+
"w-radio": Partial<WRadioProps & BaseProps<WRadio> & BaseEvents>;
|
|
2473
|
+
|
|
2474
|
+
/**
|
|
2475
|
+
*
|
|
2476
|
+
*
|
|
2477
|
+
* ## Attributes & Properties
|
|
2478
|
+
*
|
|
2479
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2480
|
+
*
|
|
2481
|
+
* - `label`: The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot
|
|
2482
|
+
* instead.
|
|
2483
|
+
* - `hint`: The radio groups's hint. If you need to display HTML, use the `hint` slot instead.
|
|
2484
|
+
* - `name`: The name of the radio group, submitted as a name/value pair with form data.
|
|
2485
|
+
* - `disabled`: Disables the radio group and all child radios.
|
|
2486
|
+
* - `orientation`: The orientation in which to show radio items.
|
|
2487
|
+
* - `value`/`defaultValue`: The default value of the form control. Primarily used for resetting the form control.
|
|
2488
|
+
* - `size`: The radio group's size. This size will be applied to all child radios and radio buttons, except when explicitly overridden.
|
|
2489
|
+
* - `required`: Ensures a child radio is checked before allowing the containing form to submit.
|
|
2490
|
+
* - `with-label`/`withLabel`: Used for SSR. if true, will show slotted label on initial render.
|
|
2491
|
+
* - `with-hint`/`withHint`: Used for SSR. if true, will show slotted hint on initial render.
|
|
2492
|
+
* - `hasRadioButtons`: undefined (property only)
|
|
2493
|
+
* - `defaultSlot`: undefined (property only)
|
|
2494
|
+
* - `value`: The current value of the radio group, submitted as a name/value pair with form data. (property only)
|
|
2495
|
+
* - `validationTarget`: We use the first available radio as the validationTarget similar to native HTML that shows the validation popup on
|
|
2496
|
+
* the first radio element. (property only) (readonly)
|
|
2497
|
+
*
|
|
2498
|
+
* ## Events
|
|
2499
|
+
*
|
|
2500
|
+
* Events that will be emitted by the component.
|
|
2501
|
+
*
|
|
2502
|
+
* - `input`: undefined
|
|
2503
|
+
* - `change`: undefined
|
|
2504
|
+
*
|
|
2505
|
+
* ## Slots
|
|
2506
|
+
*
|
|
2507
|
+
* Areas where markup can be added to the component.
|
|
2508
|
+
*
|
|
2509
|
+
* - `label`: Alternative to the `label` attribute should you need custom HTML.
|
|
2510
|
+
*
|
|
2511
|
+
* ## Methods
|
|
2512
|
+
*
|
|
2513
|
+
* Methods that can be called to access component functionality.
|
|
2514
|
+
*
|
|
2515
|
+
* - `formResetCallback(args: Parameters<BaseFormAssociatedElement['formResetCallback']>) => void`: undefined
|
|
2516
|
+
* - `focus(options?: FocusOptions) => void`: Sets focus on the radio group.
|
|
2517
|
+
*/
|
|
2518
|
+
"w-radio-group": Partial<
|
|
2519
|
+
WRadioGroupProps & BaseProps<WRadioGroup> & BaseEvents
|
|
2520
|
+
>;
|
|
2521
|
+
|
|
2522
|
+
/**
|
|
2523
|
+
*
|
|
2524
|
+
*
|
|
2525
|
+
* ## Attributes & Properties
|
|
2526
|
+
*
|
|
2527
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2528
|
+
*
|
|
2529
|
+
* - `title`: undefined
|
|
2530
|
+
* - `name`: The name of the checkbox, submitted as a name/value pair with form data.
|
|
2531
|
+
* - `value`: The value of the checkbox, submitted as a name/value pair with form data.
|
|
2532
|
+
* - `size`: The checkbox's size.
|
|
2533
|
+
* - `disabled`: Disables the checkbox.
|
|
2534
|
+
* - `indeterminate`: Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a "select
|
|
2535
|
+
* all/none" behavior when associated checkboxes have a mix of checked and unchecked states.
|
|
2536
|
+
* - `checked`/`defaultChecked`: The default value of the form control. Primarily used for resetting the form control.
|
|
2537
|
+
* - `form`: By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
2538
|
+
* to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
2539
|
+
* the same document or shadow root for this to work.
|
|
2540
|
+
* - `required`: Makes the checkbox a required field.
|
|
2541
|
+
* - `hint`: The checkbox's hint. If you need to display HTML, use the `hint` slot instead.
|
|
2542
|
+
* - `input`: undefined (property only)
|
|
2543
|
+
* - `checked`: Draws the checkbox in a checked state. (property only)
|
|
2544
|
+
*
|
|
2545
|
+
* ## Events
|
|
2546
|
+
*
|
|
2547
|
+
* Events that will be emitted by the component.
|
|
2548
|
+
*
|
|
2549
|
+
* - `change`: undefined
|
|
2550
|
+
*
|
|
2551
|
+
* ## Methods
|
|
2552
|
+
*
|
|
2553
|
+
* Methods that can be called to access component functionality.
|
|
2554
|
+
*
|
|
2555
|
+
* - `handleDefaultCheckedChange() => void`: undefined
|
|
2556
|
+
* - `handleValueOrCheckedChange() => void`: undefined
|
|
2557
|
+
* - `handleStateChange() => void`: undefined
|
|
2558
|
+
* - `handleDisabledChange() => void`: undefined
|
|
2559
|
+
* - `formResetCallback() => void`: undefined
|
|
2560
|
+
* - `click() => void`: Simulates a click on the checkbox.
|
|
2561
|
+
* - `focus(options?: FocusOptions) => void`: Sets focus on the checkbox.
|
|
2562
|
+
* - `blur() => void`: Removes focus from the checkbox.
|
|
2563
|
+
*/
|
|
2564
|
+
"w-checkbox": Partial<WCheckboxProps & BaseProps<WCheckbox> & BaseEvents>;
|
|
2565
|
+
|
|
2566
|
+
/**
|
|
2567
|
+
*
|
|
2568
|
+
*/
|
|
2569
|
+
"w-checkbox-group": Partial<
|
|
2570
|
+
WCheckboxGroupProps & BaseProps<WCheckboxGroup> & BaseEvents
|
|
2571
|
+
>;
|
|
2572
|
+
|
|
2573
|
+
/**
|
|
2574
|
+
* Component to place inside a `<w-slider>`.
|
|
2575
|
+
*
|
|
2576
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
|
|
2577
|
+
*
|
|
2578
|
+
* ## Attributes & Properties
|
|
2579
|
+
*
|
|
2580
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2581
|
+
*
|
|
2582
|
+
* - `aria-label`/`ariaLabel`: undefined
|
|
2583
|
+
* - `aria-description`/`ariaDescription`: undefined
|
|
2584
|
+
* - `label`: undefined
|
|
2585
|
+
* - `name`: undefined
|
|
2586
|
+
* - `value`: undefined
|
|
2587
|
+
* - `disabled`: undefined
|
|
2588
|
+
* - `invalid`: undefined
|
|
2589
|
+
* - `allowValuesOutsideRange`: Set by `<w-slider>` (property only)
|
|
2590
|
+
* - `markers`: Set by `<w-slider>` (property only)
|
|
2591
|
+
* - `required`: Set by `<w-slider>` (property only)
|
|
2592
|
+
* - `step`: Set by `<w-slider>` (property only)
|
|
2593
|
+
* - `min`: Set by `<w-slider>` (property only)
|
|
2594
|
+
* - `max`: Set by `<w-slider>` (property only)
|
|
2595
|
+
* - `suffix`: Set by `<w-slider>` (property only)
|
|
2596
|
+
* - `formatter`: JS hook to help you format the numeric value how you want. (property only)
|
|
2597
|
+
* - `range`: undefined (property only)
|
|
2598
|
+
* - `textfield`: undefined (property only)
|
|
2599
|
+
* - `boundaryValue`: undefined (property only) (readonly)
|
|
2600
|
+
* - `textFieldDisplayValue`: Value to display in the textfield (shows boundary when focused on empty value) (property only) (readonly)
|
|
2601
|
+
* - `tooltipDisplayValue`: Value to display in the tooltip (property only) (readonly)
|
|
2602
|
+
*
|
|
2603
|
+
* ## Events
|
|
2604
|
+
*
|
|
2605
|
+
* Events that will be emitted by the component.
|
|
2606
|
+
*
|
|
2607
|
+
* - `slidervalidity`: undefined
|
|
2608
|
+
*
|
|
2609
|
+
* ## Methods
|
|
2610
|
+
*
|
|
2611
|
+
* Methods that can be called to access component functionality.
|
|
2612
|
+
*
|
|
2613
|
+
* - `resetFormControl() => void`: undefined
|
|
2614
|
+
* - `updateFieldAfterValidation() => void`: undefined
|
|
2615
|
+
*/
|
|
2616
|
+
"w-slider-thumb": Partial<
|
|
2617
|
+
WarpSliderThumbProps & BaseProps<WarpSliderThumb> & BaseEvents
|
|
2618
|
+
>;
|
|
2619
|
+
|
|
2620
|
+
/**
|
|
2621
|
+
* Parent component for sliders (both single and range sliders). Used in combination with a `<w-slider-thumb>`.
|
|
2622
|
+
*
|
|
2623
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
|
|
2624
|
+
*
|
|
2625
|
+
* ## Attributes & Properties
|
|
2626
|
+
*
|
|
2627
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2628
|
+
*
|
|
2629
|
+
* - `label`: The slider fieldset label. Required for proper accessibility.
|
|
2630
|
+
*
|
|
2631
|
+
* If you need to display HTML, use the `label` slot instead.
|
|
2632
|
+
* - `disabled`: undefined
|
|
2633
|
+
* - `allow-values-outside-range`/`allowValuesOutsideRange`: undefined
|
|
2634
|
+
* - `error`: undefined
|
|
2635
|
+
* - `help-text`/`helpText`: undefined
|
|
2636
|
+
* - `invalid`: undefined
|
|
2637
|
+
* - `required`: Ensures a child slider thumb has a value before allowing the containing form to submit.
|
|
2638
|
+
* - `min`: undefined
|
|
2639
|
+
* - `max`: undefined
|
|
2640
|
+
* - `markers`: Pass a value similar to step to create visual markers at that interval
|
|
2641
|
+
* - `step`: undefined
|
|
2642
|
+
* - `suffix`: Suffix used in text input fields and for the min and max values of the slider.
|
|
2643
|
+
* - `formatter`: Function to format the to- and from labels and value in the slider thumb tooltip. (property only)
|
|
2644
|
+
* - `_invalidMessage`: undefined (property only)
|
|
2645
|
+
* - `_hasInternalError`: undefined (property only)
|
|
2646
|
+
* - `edgeMin`: undefined (property only) (readonly)
|
|
2647
|
+
* - `edgeMax`: undefined (property only) (readonly)
|
|
2648
|
+
* - `componentHasError`: undefined (property only) (readonly)
|
|
2649
|
+
* - `errorText`: undefined (property only) (readonly)
|
|
2650
|
+
*
|
|
2651
|
+
* ## Slots
|
|
2652
|
+
*
|
|
2653
|
+
* Areas where markup can be added to the component.
|
|
2654
|
+
*
|
|
2655
|
+
* - `(default)`: For single sliders place a `<w-slider-thumb>` in the default slot.
|
|
2656
|
+
* - `label`: Label for the slider or range slider as a whole.
|
|
2657
|
+
* - `description`: Optional description between the label and slider.
|
|
2658
|
+
* - `from`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
|
|
2659
|
+
* - `to`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
|
|
2660
|
+
*/
|
|
2661
|
+
"w-slider": Partial<WarpSliderProps & BaseProps<WarpSlider> & BaseEvents>;
|
|
2662
|
+
|
|
2663
|
+
/**
|
|
2664
|
+
* Individual step component that shows a single step in a process
|
|
2665
|
+
*
|
|
2666
|
+
* ## Attributes & Properties
|
|
2667
|
+
*
|
|
2668
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2669
|
+
*
|
|
2670
|
+
* - `active`: undefined
|
|
2671
|
+
* - `completed`: undefined
|
|
2672
|
+
*
|
|
2673
|
+
* ## Methods
|
|
2674
|
+
*
|
|
2675
|
+
* Methods that can be called to access component functionality.
|
|
2676
|
+
*
|
|
2677
|
+
* - `setContext(context: StepsContext) => void`: undefined
|
|
2678
|
+
* - `getAriaLabel() => void`: undefined
|
|
2679
|
+
*/
|
|
2680
|
+
"w-step": Partial<WarpStepProps & BaseProps<WarpStep> & BaseEvents>;
|
|
2681
|
+
|
|
2682
|
+
/**
|
|
2683
|
+
* Steps are used to show progress through a process or to guide users through a multi-step task.
|
|
2684
|
+
*
|
|
2685
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/components-steps--docs)
|
|
2686
|
+
*
|
|
2687
|
+
* ## Attributes & Properties
|
|
2688
|
+
*
|
|
2689
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2690
|
+
*
|
|
2691
|
+
* - `horizontal`: undefined
|
|
2692
|
+
* - `right`: undefined
|
|
2693
|
+
*
|
|
2694
|
+
* ## Methods
|
|
2695
|
+
*
|
|
2696
|
+
* Methods that can be called to access component functionality.
|
|
2697
|
+
*
|
|
2698
|
+
* - `updateStepsContext() => void`: undefined
|
|
2699
|
+
*/
|
|
2700
|
+
"w-step-indicator": Partial<
|
|
2701
|
+
WarpStepIndicatorProps & BaseProps<WarpStepIndicator> & BaseEvents
|
|
2702
|
+
>;
|
|
2703
|
+
|
|
2704
|
+
/**
|
|
2705
|
+
* Individual tab component used within w-tabs container.
|
|
2706
|
+
*
|
|
2707
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
2708
|
+
*
|
|
2709
|
+
* ## Attributes & Properties
|
|
2710
|
+
*
|
|
2711
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2712
|
+
*
|
|
2713
|
+
* - `for`: undefined
|
|
2714
|
+
* - `active`: undefined
|
|
2715
|
+
* - `over`: undefined
|
|
2716
|
+
*/
|
|
2717
|
+
"w-tab": Partial<WarpTabProps & BaseProps<WarpTab> & BaseEvents>;
|
|
2718
|
+
|
|
2719
|
+
/**
|
|
2720
|
+
* Tab panel component that holds content for individual tabs.
|
|
2721
|
+
* Each tab panel should have a name that matches a corresponding tab.
|
|
2722
|
+
*
|
|
2723
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
2724
|
+
*
|
|
2725
|
+
* ## Attributes & Properties
|
|
2726
|
+
*
|
|
2727
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2728
|
+
*
|
|
2729
|
+
* - `hidden`: undefined
|
|
2730
|
+
*/
|
|
2731
|
+
"w-tab-panel": Partial<
|
|
2732
|
+
WarpTabPanelProps & BaseProps<WarpTabPanel> & BaseEvents
|
|
2733
|
+
>;
|
|
2734
|
+
|
|
2735
|
+
/**
|
|
2736
|
+
* Tabs are used to organize content by grouping similar information on the same page.
|
|
2737
|
+
*
|
|
2738
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
2739
|
+
*
|
|
2740
|
+
* ## Attributes & Properties
|
|
2741
|
+
*
|
|
2742
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2743
|
+
*
|
|
2744
|
+
* - `active`: undefined
|
|
2745
|
+
* - `tabs`: undefined (property only) (readonly)
|
|
2746
|
+
* - `activeTab`: undefined (property only) (readonly)
|
|
2747
|
+
*
|
|
2748
|
+
* ## Events
|
|
2749
|
+
*
|
|
2750
|
+
* Events that will be emitted by the component.
|
|
2751
|
+
*
|
|
2752
|
+
* - `change`: undefined
|
|
2753
|
+
*/
|
|
2754
|
+
"w-tabs": Partial<WarpTabsProps & BaseProps<WarpTabs> & BaseEvents>;
|
|
2755
|
+
|
|
2756
|
+
/**
|
|
2757
|
+
* A single line text input element.
|
|
2758
|
+
*
|
|
2759
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
2760
|
+
*
|
|
2761
|
+
* ## Attributes & Properties
|
|
2762
|
+
*
|
|
2763
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2764
|
+
*
|
|
2765
|
+
* - `disabled`: undefined
|
|
2766
|
+
* - `invalid`: undefined
|
|
2767
|
+
* - `label`: undefined
|
|
2768
|
+
* - `help-text`/`helpText`: undefined
|
|
2769
|
+
* - `maximum-rows`/`maxRows`: undefined
|
|
2770
|
+
* - `minimum-rows`/`minRows`: undefined
|
|
2771
|
+
* - `name`: undefined
|
|
2772
|
+
* - `placeholder`: undefined
|
|
2773
|
+
* - `read-only`/`readOnly`: undefined
|
|
2774
|
+
* - `readonly`: undefined
|
|
2775
|
+
* - `required`: undefined
|
|
2776
|
+
* - `value`: undefined
|
|
2777
|
+
* - `optional`: undefined
|
|
2778
|
+
* - `minHeight`: undefined (property only)
|
|
2779
|
+
* - `maxHeight`: undefined (property only)
|
|
2780
|
+
*
|
|
2781
|
+
* ## Methods
|
|
2782
|
+
*
|
|
2783
|
+
* Methods that can be called to access component functionality.
|
|
2784
|
+
*
|
|
2785
|
+
* - `resetFormControl() => void`: undefined
|
|
2786
|
+
* - `handler(e: InputEvent) => void`: undefined
|
|
2787
|
+
*/
|
|
2788
|
+
"w-textarea": Partial<
|
|
2789
|
+
WarpTextareaProps & BaseProps<WarpTextarea> & BaseEvents
|
|
2790
|
+
>;
|
|
2791
|
+
};
|
|
2792
|
+
|
|
2793
|
+
export type CustomElementsSolidJs = {
|
|
2794
|
+
/**
|
|
2795
|
+
* This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.
|
|
2796
|
+
*
|
|
2797
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-affix--docs)
|
|
2798
|
+
*
|
|
2799
|
+
* ## Attributes & Properties
|
|
2800
|
+
*
|
|
2801
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2802
|
+
*
|
|
2803
|
+
* - `aria-label`/`ariaLabel`: undefined
|
|
2804
|
+
* - `clear`: Add this property to render a clickable Warp close icon.
|
|
2805
|
+
*
|
|
2806
|
+
* Set an `aria-label` that explains the action when using this.
|
|
2807
|
+
* - `search`: Add this property to render a clickable Warp search icon.
|
|
2808
|
+
*
|
|
2809
|
+
* Set an `aria-label` that explains the action when using this.
|
|
2810
|
+
* - `label`: undefined
|
|
2811
|
+
*/
|
|
2812
|
+
"w-affix": Partial<
|
|
2813
|
+
WarpAffixProps & WarpAffixSolidJsProps & BaseProps<WarpAffix> & BaseEvents
|
|
2814
|
+
>;
|
|
2815
|
+
|
|
2816
|
+
/**
|
|
2817
|
+
* Alert is an inline component used for displaying different types of messages.
|
|
2818
|
+
*
|
|
2819
|
+
* For accessibility reasons, alert should appear close to the element that triggered it.
|
|
2820
|
+
*
|
|
2821
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/feedback-alert--docs)
|
|
2822
|
+
*
|
|
2823
|
+
* ## Attributes & Properties
|
|
2824
|
+
*
|
|
2825
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2826
|
+
*
|
|
2827
|
+
* - `variant`: undefined
|
|
2828
|
+
* - `show`: undefined
|
|
2829
|
+
* - `role`: undefined
|
|
2830
|
+
*/
|
|
2831
|
+
"w-alert": Partial<
|
|
2832
|
+
WarpAlertProps & WarpAlertSolidJsProps & BaseProps<WarpAlert> & BaseEvents
|
|
2833
|
+
>;
|
|
2834
|
+
|
|
2835
|
+
/**
|
|
2836
|
+
* Buttons are used to perform actions, with different visuals for different needs.
|
|
2837
|
+
*
|
|
2838
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-link--docs)
|
|
2839
|
+
*
|
|
2840
|
+
* ## Attributes & Properties
|
|
2841
|
+
*
|
|
2842
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2843
|
+
*
|
|
2844
|
+
* - `autofocus`: undefined
|
|
2845
|
+
* - `variant`: undefined
|
|
2846
|
+
* - `small`: undefined
|
|
2847
|
+
* - `href`: undefined
|
|
2848
|
+
* - `disabled`: undefined
|
|
2849
|
+
* - `target`: undefined
|
|
2850
|
+
* - `rel`: undefined
|
|
2851
|
+
* - `full-width`/`fullWidth`: undefined
|
|
2852
|
+
*/
|
|
2853
|
+
"w-link": Partial<
|
|
2854
|
+
WarpLinkProps & WarpLinkSolidJsProps & BaseProps<WarpLink> & BaseEvents
|
|
2855
|
+
>;
|
|
2856
|
+
|
|
2857
|
+
/**
|
|
2858
|
+
* Buttons are used to perform actions, widh different visuals for different needs.
|
|
2859
|
+
*
|
|
2860
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-button--docs)
|
|
2861
|
+
*
|
|
2862
|
+
* ## Attributes & Properties
|
|
2863
|
+
*
|
|
2864
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2865
|
+
*
|
|
2866
|
+
* - `type`: undefined
|
|
2867
|
+
* - `autofocus`: undefined
|
|
2868
|
+
* - `variant`: undefined
|
|
2869
|
+
* - `quiet`: undefined
|
|
2870
|
+
* - `small`: undefined
|
|
2871
|
+
* - `loading`: undefined
|
|
2872
|
+
* - `href`: undefined
|
|
2873
|
+
* - `target`: undefined
|
|
2874
|
+
* - `rel`: undefined
|
|
2875
|
+
* - `full-width`/`fullWidth`: undefined
|
|
2876
|
+
* - `button-class`/`buttonClass`: undefined
|
|
2877
|
+
* - `name`: undefined
|
|
2878
|
+
* - `value`: undefined
|
|
2879
|
+
* - `ariaValueTextLoading`: undefined (property only)
|
|
2880
|
+
*
|
|
2881
|
+
* ## Methods
|
|
2882
|
+
*
|
|
2883
|
+
* Methods that can be called to access component functionality.
|
|
2884
|
+
*
|
|
2885
|
+
* - `resetFormControl() => void`: undefined
|
|
2886
|
+
*/
|
|
2887
|
+
"w-button": Partial<
|
|
2888
|
+
WarpButtonProps &
|
|
2889
|
+
WarpButtonSolidJsProps &
|
|
2890
|
+
BaseProps<WarpButton> &
|
|
2891
|
+
BaseEvents
|
|
2892
|
+
>;
|
|
2893
|
+
|
|
2894
|
+
/**
|
|
2895
|
+
*
|
|
2896
|
+
*
|
|
2897
|
+
* ## Attributes & Properties
|
|
2898
|
+
*
|
|
2899
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2900
|
+
*
|
|
2901
|
+
* - `show`: undefined
|
|
2902
|
+
* - `placement`: undefined
|
|
2903
|
+
* - `tooltip`: undefined
|
|
2904
|
+
* - `callout`: undefined
|
|
2905
|
+
* - `popover`: undefined
|
|
2906
|
+
* - `highlight`: undefined
|
|
2907
|
+
* - `can-close`/`canClose`: undefined
|
|
2908
|
+
* - `no-arrow`/`noArrow`: undefined
|
|
2909
|
+
* - `distance`: undefined
|
|
2910
|
+
* - `skidding`: undefined
|
|
2911
|
+
* - `flip`: undefined
|
|
2912
|
+
* - `cross-axis`/`crossAxis`: undefined
|
|
2913
|
+
* - `fallback-placements`/`fallbackPlacements`: undefined
|
|
2914
|
+
* - `_initialPlacement`: undefined (property only)
|
|
2915
|
+
* - `_actualDirection`: undefined (property only)
|
|
2916
|
+
*
|
|
2917
|
+
* ## Methods
|
|
2918
|
+
*
|
|
2919
|
+
* Methods that can be called to access component functionality.
|
|
2920
|
+
*
|
|
2921
|
+
* - `handleDone() => void`: undefined
|
|
2922
|
+
* - `pointingAtDirection() => void`: undefined
|
|
2923
|
+
* - `activeAttentionType() => void`: undefined
|
|
2924
|
+
* - `defaultAriaLabel() => void`: undefined
|
|
2925
|
+
* - `setAriaLabels() => void`: undefined
|
|
2926
|
+
* - `close() => void`: undefined
|
|
2927
|
+
* - `keypressed(e: KeyboardEvent) => void`: undefined
|
|
2928
|
+
*/
|
|
2929
|
+
"w-attention": Partial<
|
|
2930
|
+
WarpAttentionProps &
|
|
2931
|
+
WarpAttentionSolidJsProps &
|
|
2932
|
+
BaseProps<WarpAttention> &
|
|
2933
|
+
BaseEvents
|
|
2934
|
+
>;
|
|
2935
|
+
|
|
2936
|
+
/**
|
|
2937
|
+
* `w-badge` is used for showing a small amount of non-interactive color-categorized metadata, like a status or count.
|
|
2938
|
+
*
|
|
2939
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-badge--docs)
|
|
2940
|
+
*
|
|
2941
|
+
* ## Attributes & Properties
|
|
2942
|
+
*
|
|
2943
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2944
|
+
*
|
|
2945
|
+
* - `variant`: undefined
|
|
2946
|
+
* - `position`: undefined
|
|
2947
|
+
*/
|
|
2948
|
+
"w-badge": Partial<
|
|
2949
|
+
WarpBadgeProps & WarpBadgeSolidJsProps & BaseProps<WarpBadge> & BaseEvents
|
|
2950
|
+
>;
|
|
2951
|
+
|
|
2952
|
+
/**
|
|
2953
|
+
* Box is a layout component used for separating content areas on a page.
|
|
2954
|
+
*
|
|
2955
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-box--docs)
|
|
2956
|
+
*
|
|
2957
|
+
* ## Attributes & Properties
|
|
2958
|
+
*
|
|
2959
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2960
|
+
*
|
|
2961
|
+
* - `bleed`: undefined
|
|
2962
|
+
* - `bordered`: undefined
|
|
2963
|
+
* - `info`: undefined
|
|
2964
|
+
* - `neutral`: undefined
|
|
2965
|
+
* - `role`: undefined
|
|
2966
|
+
*/
|
|
2967
|
+
"w-box": Partial<
|
|
2968
|
+
WarpBoxProps & WarpBoxSolidJsProps & BaseProps<WarpBox> & BaseEvents
|
|
2969
|
+
>;
|
|
2970
|
+
|
|
2971
|
+
/**
|
|
2972
|
+
* Breadcrumbs show the navigation structure for the current location.
|
|
2973
|
+
*
|
|
2974
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-breadcrumbs--docs)
|
|
2975
|
+
*
|
|
2976
|
+
* ## Attributes & Properties
|
|
2977
|
+
*
|
|
2978
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2979
|
+
*
|
|
2980
|
+
* - `aria-label`/`ariaLabel`: undefined
|
|
2981
|
+
*/
|
|
2982
|
+
"w-breadcrumbs": Partial<
|
|
2983
|
+
WarpBreadcrumbsProps &
|
|
2984
|
+
WarpBreadcrumbsSolidJsProps &
|
|
2985
|
+
BaseProps<WarpBreadcrumbs> &
|
|
2986
|
+
BaseEvents
|
|
2987
|
+
>;
|
|
2988
|
+
|
|
2989
|
+
/**
|
|
2990
|
+
* Card is a layout component used for separating content areas on a page.
|
|
2991
|
+
*
|
|
2992
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-card--docs)
|
|
2993
|
+
*
|
|
2994
|
+
* ## Attributes & Properties
|
|
2995
|
+
*
|
|
2996
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
2997
|
+
*
|
|
2998
|
+
* - `selected`: undefined
|
|
2999
|
+
* - `flat`: undefined
|
|
3000
|
+
* - `clickable`: undefined
|
|
3001
|
+
* - `buttonText`: undefined (property only)
|
|
3002
|
+
*
|
|
3003
|
+
* ## Methods
|
|
3004
|
+
*
|
|
3005
|
+
* Methods that can be called to access component functionality.
|
|
3006
|
+
*
|
|
3007
|
+
* - `keypressed(e: KeyboardEvent) => void`: undefined
|
|
3008
|
+
*/
|
|
3009
|
+
"w-card": Partial<
|
|
3010
|
+
WarpCardProps & WarpCardSolidJsProps & BaseProps<WarpCard> & BaseEvents
|
|
3011
|
+
>;
|
|
3012
|
+
|
|
3013
|
+
/**
|
|
3014
|
+
* Expandable is a layout component used for creating expandable content areas on a page.
|
|
3015
|
+
*
|
|
3016
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/layout-expandable--docs)
|
|
3017
|
+
*
|
|
3018
|
+
* ## Attributes & Properties
|
|
3019
|
+
*
|
|
3020
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3021
|
+
*
|
|
3022
|
+
* - `expanded`: undefined
|
|
3023
|
+
* - `title`: undefined
|
|
3024
|
+
* - `box`: undefined
|
|
3025
|
+
* - `bleed`: undefined
|
|
3026
|
+
* - `button-class`/`buttonClass`: undefined
|
|
3027
|
+
* - `content-class`/`contentClass`: undefined
|
|
3028
|
+
* - `no-chevron`/`noChevron`: undefined
|
|
3029
|
+
* - `animated`: undefined
|
|
3030
|
+
* - `heading-level`/`headingLevel`: undefined
|
|
3031
|
+
* - `_hasTitle`: undefined
|
|
3032
|
+
* - `_showChevronUp`: undefined
|
|
3033
|
+
*
|
|
3034
|
+
* ## Slots
|
|
3035
|
+
*
|
|
3036
|
+
* Areas where markup can be added to the component.
|
|
3037
|
+
*
|
|
3038
|
+
* - `title`: Alternative to the `title` attribute should you need to provide some additional markup.
|
|
3039
|
+
*/
|
|
3040
|
+
"w-expandable": Partial<
|
|
3041
|
+
WarpExpandableProps &
|
|
3042
|
+
WarpExpandableSolidJsProps &
|
|
3043
|
+
BaseProps<WarpExpandable> &
|
|
3044
|
+
BaseEvents
|
|
3045
|
+
>;
|
|
3046
|
+
|
|
3047
|
+
/**
|
|
3048
|
+
* 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.
|
|
3049
|
+
*
|
|
3050
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-pill--docs)
|
|
3051
|
+
*
|
|
3052
|
+
* ## Attributes & Properties
|
|
3053
|
+
*
|
|
3054
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3055
|
+
*
|
|
3056
|
+
* - `can-close`/`canClose`: undefined
|
|
3057
|
+
* - `suggestion`: undefined
|
|
3058
|
+
* - `open-sr-label`/`openSrLabel`: undefined
|
|
3059
|
+
* - `open-aria-label`/`openAriaLabel`: undefined
|
|
3060
|
+
* - `close-sr-label`/`closeSrLabel`: undefined
|
|
3061
|
+
* - `close-aria-label`/`closeAriaLabel`: undefined
|
|
3062
|
+
* - `openFilterSrText`: undefined (property only)
|
|
3063
|
+
* - `removeFilterSrText`: undefined (property only)
|
|
3064
|
+
*
|
|
3065
|
+
* ## Events
|
|
3066
|
+
*
|
|
3067
|
+
* Events that will be emitted by the component.
|
|
3068
|
+
*
|
|
3069
|
+
* - `w-pill-click`: undefined
|
|
3070
|
+
* - `w-pill-close`: undefined
|
|
3071
|
+
*/
|
|
3072
|
+
"w-pill": Partial<
|
|
3073
|
+
WarpPillProps & WarpPillSolidJsProps & BaseProps<WarpPill> & BaseEvents
|
|
3074
|
+
>;
|
|
3075
|
+
|
|
3076
|
+
/**
|
|
3077
|
+
* A dropdown component for selecting a single value.
|
|
3078
|
+
*
|
|
3079
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-select--docs)
|
|
3080
|
+
*
|
|
3081
|
+
* ## Attributes & Properties
|
|
3082
|
+
*
|
|
3083
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3084
|
+
*
|
|
3085
|
+
* - `auto-focus`/`autoFocus`: Whether the element should receive focus on render.
|
|
3086
|
+
* - `autofocus`: Whether the element should receive focus on render
|
|
3087
|
+
* - `help-text`/`helpText`: The content displayed as the help text. Paired with `invalid` to show the text as a validation error.
|
|
3088
|
+
* - `invalid`: Renders the field in an invalid state. Paired with `help-text` to provide feedback about the error.
|
|
3089
|
+
* - `always`: Whether to always show a hint.
|
|
3090
|
+
* - `hint`: The content displayed as the help text.
|
|
3091
|
+
* - `label`: The content to disply as the label
|
|
3092
|
+
* - `optional`: Whether to show optional text
|
|
3093
|
+
* - `disabled`: Renders the field in a disabled state.
|
|
3094
|
+
* - `read-only`/`readOnly`: Renders the field in a readonly state.
|
|
3095
|
+
* - `readonly`: Renders the field in a readonly state.
|
|
3096
|
+
* - `name`: undefined
|
|
3097
|
+
* - `value`: undefined
|
|
3098
|
+
*
|
|
3099
|
+
* ## Methods
|
|
3100
|
+
*
|
|
3101
|
+
* Methods that can be called to access component functionality.
|
|
3102
|
+
*
|
|
3103
|
+
* - `resetFormControl() => void`: undefined
|
|
3104
|
+
* - `handleKeyDown(event: KeyboardEvent) => void`: undefined
|
|
3105
|
+
* - `onChange({ target }) => void`: undefined
|
|
3106
|
+
*/
|
|
3107
|
+
"w-select": Partial<
|
|
3108
|
+
WarpSelectProps &
|
|
3109
|
+
WarpSelectSolidJsProps &
|
|
3110
|
+
BaseProps<WarpSelect> &
|
|
3111
|
+
BaseEvents
|
|
3112
|
+
>;
|
|
3113
|
+
|
|
3114
|
+
/**
|
|
3115
|
+
* A single line text input element.
|
|
3116
|
+
*
|
|
3117
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
3118
|
+
*
|
|
3119
|
+
* ## Attributes & Properties
|
|
3120
|
+
*
|
|
3121
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3122
|
+
*
|
|
3123
|
+
* - `disabled`: undefined
|
|
3124
|
+
* - `invalid`: undefined
|
|
3125
|
+
* - `id`: undefined
|
|
3126
|
+
* - `label`: undefined
|
|
3127
|
+
* - `help-text`/`helpText`: undefined
|
|
3128
|
+
* - `size`: undefined
|
|
3129
|
+
* - `max`: undefined
|
|
3130
|
+
* - `min`: undefined
|
|
3131
|
+
* - `min-length`/`minLength`: undefined
|
|
3132
|
+
* - `max-length`/`maxLength`: undefined
|
|
3133
|
+
* - `pattern`: undefined
|
|
3134
|
+
* - `placeholder`: undefined
|
|
3135
|
+
* - `read-only`/`readOnly`: undefined
|
|
3136
|
+
* - `readonly`: undefined
|
|
3137
|
+
* - `required`: undefined
|
|
3138
|
+
* - `type`: undefined
|
|
3139
|
+
* - `value`: undefined
|
|
3140
|
+
* - `name`: undefined
|
|
3141
|
+
* - `step`: undefined
|
|
3142
|
+
* - `autocomplete`: undefined
|
|
3143
|
+
* - `formatter`: Function to format value when the input field.
|
|
3144
|
+
*
|
|
3145
|
+
* Only active when the input field does not have focus,
|
|
3146
|
+
* similar to the accessible input masking example from Filament Group
|
|
3147
|
+
*
|
|
3148
|
+
* https://css-tricks.com/input-masking/
|
|
3149
|
+
* https://filamentgroup.github.io/politespace/demo/demo.html (property only)
|
|
3150
|
+
*
|
|
3151
|
+
* ## Methods
|
|
3152
|
+
*
|
|
3153
|
+
* Methods that can be called to access component functionality.
|
|
3154
|
+
*
|
|
3155
|
+
* - `resetFormControl() => void`: undefined
|
|
3156
|
+
* - `handler(e: Event) => void`: undefined
|
|
3157
|
+
* - `prefixSlotChange() => void`: undefined
|
|
3158
|
+
* - `suffixSlotChange() => void`: undefined
|
|
3159
|
+
*/
|
|
3160
|
+
"w-textfield": Partial<
|
|
3161
|
+
WarpTextFieldProps &
|
|
3162
|
+
WarpTextFieldSolidJsProps &
|
|
3163
|
+
BaseProps<WarpTextField> &
|
|
3164
|
+
BaseEvents
|
|
3165
|
+
>;
|
|
3166
|
+
|
|
3167
|
+
/**
|
|
3168
|
+
* Modals (or dialogs) display important information that users need to acknowledge.
|
|
3169
|
+
*
|
|
3170
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
3171
|
+
*
|
|
3172
|
+
* ## Attributes & Properties
|
|
3173
|
+
*
|
|
3174
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3175
|
+
*
|
|
3176
|
+
* - `show`: undefined
|
|
3177
|
+
* - `content-id`/`contentId`: undefined
|
|
3178
|
+
* - `ignore-backdrop-clicks`/`ignoreBackdropClicks`: undefined
|
|
3179
|
+
* - `dialogEl`: undefined (property only)
|
|
3180
|
+
* - `dialogInnerEl`: undefined (property only)
|
|
3181
|
+
* - `contentEl`: undefined (property only)
|
|
3182
|
+
*
|
|
3183
|
+
* ## Events
|
|
3184
|
+
*
|
|
3185
|
+
* Events that will be emitted by the component.
|
|
3186
|
+
*
|
|
3187
|
+
* - `shown`: undefined
|
|
3188
|
+
* - `hidden`: undefined
|
|
3189
|
+
*
|
|
3190
|
+
* ## Slots
|
|
3191
|
+
*
|
|
3192
|
+
* Areas where markup can be added to the component.
|
|
3193
|
+
*
|
|
3194
|
+
* - `header`: Typically where you would use the `w-modal-header` component.
|
|
3195
|
+
* - `content`: The main content of the modal.
|
|
3196
|
+
* - `footer`: Typically where you would use the `w-modal-footer` component, for things like actions.
|
|
3197
|
+
*
|
|
3198
|
+
* ## Methods
|
|
3199
|
+
*
|
|
3200
|
+
* Methods that can be called to access component functionality.
|
|
3201
|
+
*
|
|
3202
|
+
* - `open() => void`: undefined
|
|
3203
|
+
* - `close() => void`: undefined
|
|
3204
|
+
* - `handleListeners(verb = 'addEventListener') => void`: undefined
|
|
3205
|
+
* - `eventPreventer(evt: Event) => void`: undefined
|
|
3206
|
+
* - `closeOnBackdropClick(evt: MouseEvent) => void`: undefined
|
|
3207
|
+
* - `interceptEscape(evt: KeyboardEvent) => void`: undefined
|
|
3208
|
+
* - `modifyBorderRadius() => void`: undefined
|
|
3209
|
+
*/
|
|
3210
|
+
"w-modal": Partial<
|
|
3211
|
+
ModalMainProps & ModalMainSolidJsProps & BaseProps<ModalMain> & BaseEvents
|
|
3212
|
+
>;
|
|
3213
|
+
|
|
3214
|
+
/**
|
|
3215
|
+
* The header section of a modal, typically where you place the title and a close button.
|
|
3216
|
+
*
|
|
3217
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
3218
|
+
*
|
|
3219
|
+
* ## Attributes & Properties
|
|
3220
|
+
*
|
|
3221
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3222
|
+
*
|
|
3223
|
+
* - `title`: undefined
|
|
3224
|
+
* - `back`: undefined
|
|
3225
|
+
* - `no-close`/`noClose`: undefined
|
|
3226
|
+
* - `titleEl`: undefined (property only)
|
|
3227
|
+
* - `titleClasses`: undefined (property only) (readonly)
|
|
3228
|
+
* - `backButton`: undefined (property only) (readonly)
|
|
3229
|
+
* - `closeButton`: undefined (property only) (readonly)
|
|
3230
|
+
*
|
|
3231
|
+
* ## Events
|
|
3232
|
+
*
|
|
3233
|
+
* Events that will be emitted by the component.
|
|
3234
|
+
*
|
|
3235
|
+
* - `backClicked`: undefined
|
|
3236
|
+
*
|
|
3237
|
+
* ## Slots
|
|
3238
|
+
*
|
|
3239
|
+
* Areas where markup can be added to the component.
|
|
3240
|
+
*
|
|
3241
|
+
* - `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.
|
|
3242
|
+
*
|
|
3243
|
+
* ## Methods
|
|
3244
|
+
*
|
|
3245
|
+
* Methods that can be called to access component functionality.
|
|
3246
|
+
*
|
|
3247
|
+
* - `emitBack() => void`: undefined
|
|
3248
|
+
* - `handleTopSlotChange(slotEvent) => void`: undefined
|
|
3249
|
+
*/
|
|
3250
|
+
"w-modal-header": Partial<
|
|
3251
|
+
ModalHeaderProps &
|
|
3252
|
+
ModalHeaderSolidJsProps &
|
|
3253
|
+
BaseProps<ModalHeader> &
|
|
3254
|
+
BaseEvents
|
|
3255
|
+
>;
|
|
3256
|
+
|
|
3257
|
+
/**
|
|
3258
|
+
* The footer section of a modal, typically where you place actions.
|
|
3259
|
+
*
|
|
3260
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/overlays-modal--docs)
|
|
3261
|
+
*/
|
|
3262
|
+
"w-modal-footer": Partial<
|
|
3263
|
+
ModalFooterProps &
|
|
3264
|
+
ModalFooterSolidJsProps &
|
|
3265
|
+
BaseProps<ModalFooter> &
|
|
3266
|
+
BaseEvents
|
|
3267
|
+
>;
|
|
3268
|
+
|
|
3269
|
+
/**
|
|
3270
|
+
*
|
|
3271
|
+
*
|
|
3272
|
+
* ## Methods
|
|
3273
|
+
*
|
|
3274
|
+
* Methods that can be called to access component functionality.
|
|
3275
|
+
*
|
|
3276
|
+
* - `init() => void`: undefined
|
|
3277
|
+
* - `get(id: string | number) => ToastInternal | undefined`: undefined
|
|
3278
|
+
* - `set(toast: ToastOptions) => Map<string | number, ToastInternal>`: undefined
|
|
3279
|
+
* - `del(id: string | number) => Promise<boolean>`: undefined
|
|
3280
|
+
*/
|
|
3281
|
+
"w-toast-container": Partial<
|
|
3282
|
+
WarpToastContainerProps &
|
|
3283
|
+
WarpToastContainerSolidJsProps &
|
|
3284
|
+
BaseProps<WarpToastContainer> &
|
|
3285
|
+
BaseEvents
|
|
3286
|
+
>;
|
|
3287
|
+
|
|
3288
|
+
/**
|
|
3289
|
+
* An input for dates.
|
|
3290
|
+
*
|
|
3291
|
+
* Uses the `lang` attribute on either the element or on `<html>` to determine the locale options.
|
|
3292
|
+
*
|
|
3293
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-datepicker--docs)
|
|
3294
|
+
*
|
|
3295
|
+
* ## Attributes & Properties
|
|
3296
|
+
*
|
|
3297
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3298
|
+
*
|
|
3299
|
+
* - `label`: undefined
|
|
3300
|
+
* - `lang`: Takes precedence over the `<html>` lang attribute.
|
|
3301
|
+
* - `name`: undefined
|
|
3302
|
+
* - `value`: undefined
|
|
3303
|
+
* - `header-format`/`headerFormat`: Decides the format of the date as shown in the calendar header.
|
|
3304
|
+
*
|
|
3305
|
+
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
3306
|
+
* - `weekday-format`/`weekdayFormat`: Decides the format of the weekday as shown above the grid of dates in the calendar.
|
|
3307
|
+
*
|
|
3308
|
+
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
3309
|
+
* - `day-format`/`dayFormat`: Decides the format of the day in the calendar as read to screen readers.
|
|
3310
|
+
*
|
|
3311
|
+
* The syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).
|
|
3312
|
+
* - `isDayDisabled`: Lets you control if a date in the calendar should be disabled.
|
|
3313
|
+
*
|
|
3314
|
+
* This needs to be set on the element instance in JavaScript, not as an HTML attribute. (property only)
|
|
3315
|
+
* - `isCalendarOpen`: undefined (property only)
|
|
3316
|
+
* - `navigationDate`: undefined (property only)
|
|
3317
|
+
* - `selectedDate`: undefined (property only) (readonly)
|
|
3318
|
+
* - `month`: undefined (property only) (readonly)
|
|
3319
|
+
* - `weeks`: undefined (property only) (readonly)
|
|
3320
|
+
* - `calendar`: undefined (property only)
|
|
3321
|
+
* - `input`: undefined (property only)
|
|
3322
|
+
* - `toggleButton`: undefined (property only)
|
|
3323
|
+
* - `wrapper`: undefined (property only)
|
|
3324
|
+
* - `previousMonthButton`: This is the first focusable element, needed for the modal focus trap.
|
|
3325
|
+
*
|
|
3326
|
+
* Don't cache this and other `@query` fields from inside the calendar modal.
|
|
3327
|
+
* They work the first time, but once the calendar is closed and reopened
|
|
3328
|
+
* the query will point to an element that doesn't exist anymore. (property only)
|
|
3329
|
+
* - `todayCell`: undefined (property only)
|
|
3330
|
+
* - `selectedCell`: undefined (property only)
|
|
3331
|
+
*
|
|
3332
|
+
* ## Methods
|
|
3333
|
+
*
|
|
3334
|
+
* Methods that can be called to access component functionality.
|
|
3335
|
+
*
|
|
3336
|
+
* - `resetFormControl() => void`: undefined
|
|
3337
|
+
*/
|
|
3338
|
+
"w-datepicker": Partial<
|
|
3339
|
+
WarpDatepickerProps &
|
|
3340
|
+
WarpDatepickerSolidJsProps &
|
|
3341
|
+
BaseProps<WarpDatepicker> &
|
|
3342
|
+
BaseEvents
|
|
3343
|
+
>;
|
|
3344
|
+
|
|
3345
|
+
/**
|
|
3346
|
+
*
|
|
3347
|
+
*
|
|
3348
|
+
* ## Attributes & Properties
|
|
3349
|
+
*
|
|
3350
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3351
|
+
*
|
|
3352
|
+
* - `name`: undefined
|
|
3353
|
+
* - `value`: undefined
|
|
3354
|
+
* - `checked`: undefined
|
|
3355
|
+
* - `disabled`: undefined
|
|
3356
|
+
*
|
|
3357
|
+
* ## Events
|
|
3358
|
+
*
|
|
3359
|
+
* Events that will be emitted by the component.
|
|
3360
|
+
*
|
|
3361
|
+
* - `change`: undefined
|
|
3362
|
+
*
|
|
3363
|
+
* ## Methods
|
|
3364
|
+
*
|
|
3365
|
+
* Methods that can be called to access component functionality.
|
|
3366
|
+
*
|
|
3367
|
+
* - `resetFormControl() => void`: undefined
|
|
3368
|
+
*/
|
|
3369
|
+
"w-switch": Partial<
|
|
3370
|
+
WarpSwitchProps &
|
|
3371
|
+
WarpSwitchSolidJsProps &
|
|
3372
|
+
BaseProps<WarpSwitch> &
|
|
3373
|
+
BaseEvents
|
|
3374
|
+
>;
|
|
3375
|
+
|
|
3376
|
+
/**
|
|
3377
|
+
* A combobox element for text input with selectable options.
|
|
3378
|
+
*
|
|
3379
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-combobox--docs)
|
|
3380
|
+
*
|
|
3381
|
+
* ## Attributes & Properties
|
|
3382
|
+
*
|
|
3383
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3384
|
+
*
|
|
3385
|
+
* - `options`: The available options to select from
|
|
3386
|
+
* - `label`: Label above input
|
|
3387
|
+
* - `placeholder`: Input placeholder
|
|
3388
|
+
* - `value`: The input value
|
|
3389
|
+
* - `open-on-focus`/`openOnFocus`: Whether the popover opens when focus is on the text field
|
|
3390
|
+
* - `select-on-blur`/`selectOnBlur`: Select active option on blur
|
|
3391
|
+
* - `match-text-segments`/`matchTextSegments`: Whether the matching text segments in the options should be highlighted
|
|
3392
|
+
* - `disable-static-filtering`/`disableStaticFiltering`: Disable client-side static filtering
|
|
3393
|
+
* - `invalid`: Renders the input field in an invalid state
|
|
3394
|
+
* - `help-text`/`helpText`: The content to display as the help text
|
|
3395
|
+
* - `disabled`: Whether the element is disabled
|
|
3396
|
+
* - `required`: Whether the element is required
|
|
3397
|
+
* - `optional`: Whether to show optional text
|
|
3398
|
+
* - `name`: Name attribute for form submission
|
|
3399
|
+
* - `autocomplete`: Autocomplete attribute for the input field
|
|
3400
|
+
*
|
|
3401
|
+
* ## Methods
|
|
3402
|
+
*
|
|
3403
|
+
* Methods that can be called to access component functionality.
|
|
3404
|
+
*
|
|
3405
|
+
* - `resetFormControl() => void`: undefined
|
|
3406
|
+
*/
|
|
3407
|
+
"w-combobox": Partial<
|
|
3408
|
+
WarpComboboxProps &
|
|
3409
|
+
WarpComboboxSolidJsProps &
|
|
3410
|
+
BaseProps<WarpCombobox> &
|
|
3411
|
+
BaseEvents
|
|
3412
|
+
>;
|
|
3413
|
+
|
|
3414
|
+
/**
|
|
3415
|
+
* 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.
|
|
3416
|
+
*
|
|
3417
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-dead-toggle--docs)
|
|
3418
|
+
*
|
|
3419
|
+
* ## Attributes & Properties
|
|
3420
|
+
*
|
|
3421
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3422
|
+
*
|
|
3423
|
+
* - `type`: undefined
|
|
3424
|
+
* - `checked`: undefined
|
|
3425
|
+
* - `indeterminate`: undefined
|
|
3426
|
+
* - `invalid`: undefined
|
|
3427
|
+
* - `disabled`: undefined
|
|
3428
|
+
*/
|
|
3429
|
+
"w-dead-toggle": Partial<
|
|
3430
|
+
WarpDeadToggleProps &
|
|
3431
|
+
WarpDeadToggleSolidJsProps &
|
|
3432
|
+
BaseProps<WarpDeadToggle> &
|
|
3433
|
+
BaseEvents
|
|
3434
|
+
>;
|
|
3435
|
+
|
|
3436
|
+
/**
|
|
3437
|
+
*
|
|
3438
|
+
*
|
|
3439
|
+
* ## Attributes & Properties
|
|
3440
|
+
*
|
|
3441
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3442
|
+
*
|
|
3443
|
+
* - `selected-page`/`selectedPage`: Currently selected page (1-based index)
|
|
3444
|
+
* - `page-count`/`pageCount`: Total number of pages
|
|
3445
|
+
*/
|
|
3446
|
+
"w-page-indicator": Partial<
|
|
3447
|
+
WarpPageIndicatorProps &
|
|
3448
|
+
WarpPageIndicatorSolidJsProps &
|
|
3449
|
+
BaseProps<WarpPageIndicator> &
|
|
3450
|
+
BaseEvents
|
|
3451
|
+
>;
|
|
3452
|
+
|
|
3453
|
+
/**
|
|
3454
|
+
* Pagination allows users to navigate through multiple pages of content by providing navigation controls with page numbers and directional arrows.
|
|
3455
|
+
*
|
|
3456
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-pagination--docs)
|
|
3457
|
+
*
|
|
3458
|
+
* ## Attributes & Properties
|
|
3459
|
+
*
|
|
3460
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3461
|
+
*
|
|
3462
|
+
* - `base-url`/`baseUrl`: undefined
|
|
3463
|
+
* - `pages`: undefined
|
|
3464
|
+
* - `current-page`/`currentPageNumber`: undefined
|
|
3465
|
+
* - `visible-pages`/`visiblePages`: undefined
|
|
3466
|
+
*
|
|
3467
|
+
* ## Events
|
|
3468
|
+
*
|
|
3469
|
+
* Events that will be emitted by the component.
|
|
3470
|
+
*
|
|
3471
|
+
* - `page-click`: Triggered when a link button in the pagination is clicked. Contains the page number in `string` form.
|
|
3472
|
+
*/
|
|
3473
|
+
"w-pagination": Partial<
|
|
3474
|
+
WarpPaginationProps &
|
|
3475
|
+
WarpPaginationSolidJsProps &
|
|
3476
|
+
BaseProps<WarpPagination> &
|
|
3477
|
+
BaseEvents
|
|
3478
|
+
>;
|
|
3479
|
+
|
|
3480
|
+
/**
|
|
3481
|
+
*
|
|
3482
|
+
*
|
|
3483
|
+
* ## Attributes & Properties
|
|
3484
|
+
*
|
|
3485
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3486
|
+
*
|
|
3487
|
+
* - `form`: The string pointing to a form's id.
|
|
3488
|
+
* - `value`: The radio's value. When selected, the radio group will receive this value.
|
|
3489
|
+
* - `appearance`: The radio's value. When selected, the radio group will receive this value.
|
|
3490
|
+
* - `size`: The radio's size. When used inside a radio group, the size will be determined by the radio group's size so this
|
|
3491
|
+
* attribute can typically be omitted.
|
|
3492
|
+
* - `disabled`: Disables the radio.
|
|
3493
|
+
* - `checked`: undefined (property only)
|
|
3494
|
+
*
|
|
3495
|
+
* ## Methods
|
|
3496
|
+
*
|
|
3497
|
+
* Methods that can be called to access component functionality.
|
|
3498
|
+
*
|
|
3499
|
+
* - `setValue() => void`: undefined
|
|
3500
|
+
*/
|
|
3501
|
+
"w-radio": Partial<
|
|
3502
|
+
WRadioProps & WRadioSolidJsProps & BaseProps<WRadio> & BaseEvents
|
|
3503
|
+
>;
|
|
3504
|
+
|
|
3505
|
+
/**
|
|
3506
|
+
*
|
|
3507
|
+
*
|
|
3508
|
+
* ## Attributes & Properties
|
|
3509
|
+
*
|
|
3510
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3511
|
+
*
|
|
3512
|
+
* - `label`: The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot
|
|
3513
|
+
* instead.
|
|
3514
|
+
* - `hint`: The radio groups's hint. If you need to display HTML, use the `hint` slot instead.
|
|
3515
|
+
* - `name`: The name of the radio group, submitted as a name/value pair with form data.
|
|
3516
|
+
* - `disabled`: Disables the radio group and all child radios.
|
|
3517
|
+
* - `orientation`: The orientation in which to show radio items.
|
|
3518
|
+
* - `value`/`defaultValue`: The default value of the form control. Primarily used for resetting the form control.
|
|
3519
|
+
* - `size`: The radio group's size. This size will be applied to all child radios and radio buttons, except when explicitly overridden.
|
|
3520
|
+
* - `required`: Ensures a child radio is checked before allowing the containing form to submit.
|
|
3521
|
+
* - `with-label`/`withLabel`: Used for SSR. if true, will show slotted label on initial render.
|
|
3522
|
+
* - `with-hint`/`withHint`: Used for SSR. if true, will show slotted hint on initial render.
|
|
3523
|
+
* - `hasRadioButtons`: undefined (property only)
|
|
3524
|
+
* - `defaultSlot`: undefined (property only)
|
|
3525
|
+
* - `value`: The current value of the radio group, submitted as a name/value pair with form data. (property only)
|
|
3526
|
+
* - `validationTarget`: We use the first available radio as the validationTarget similar to native HTML that shows the validation popup on
|
|
3527
|
+
* the first radio element. (property only) (readonly)
|
|
3528
|
+
*
|
|
3529
|
+
* ## Events
|
|
3530
|
+
*
|
|
3531
|
+
* Events that will be emitted by the component.
|
|
3532
|
+
*
|
|
3533
|
+
* - `input`: undefined
|
|
3534
|
+
* - `change`: undefined
|
|
3535
|
+
*
|
|
3536
|
+
* ## Slots
|
|
3537
|
+
*
|
|
3538
|
+
* Areas where markup can be added to the component.
|
|
3539
|
+
*
|
|
3540
|
+
* - `label`: Alternative to the `label` attribute should you need custom HTML.
|
|
3541
|
+
*
|
|
3542
|
+
* ## Methods
|
|
3543
|
+
*
|
|
3544
|
+
* Methods that can be called to access component functionality.
|
|
3545
|
+
*
|
|
3546
|
+
* - `formResetCallback(args: Parameters<BaseFormAssociatedElement['formResetCallback']>) => void`: undefined
|
|
3547
|
+
* - `focus(options?: FocusOptions) => void`: Sets focus on the radio group.
|
|
3548
|
+
*/
|
|
3549
|
+
"w-radio-group": Partial<
|
|
3550
|
+
WRadioGroupProps &
|
|
3551
|
+
WRadioGroupSolidJsProps &
|
|
3552
|
+
BaseProps<WRadioGroup> &
|
|
3553
|
+
BaseEvents
|
|
3554
|
+
>;
|
|
3555
|
+
|
|
3556
|
+
/**
|
|
3557
|
+
*
|
|
3558
|
+
*
|
|
3559
|
+
* ## Attributes & Properties
|
|
3560
|
+
*
|
|
3561
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3562
|
+
*
|
|
3563
|
+
* - `title`: undefined
|
|
3564
|
+
* - `name`: The name of the checkbox, submitted as a name/value pair with form data.
|
|
3565
|
+
* - `value`: The value of the checkbox, submitted as a name/value pair with form data.
|
|
3566
|
+
* - `size`: The checkbox's size.
|
|
3567
|
+
* - `disabled`: Disables the checkbox.
|
|
3568
|
+
* - `indeterminate`: Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a "select
|
|
3569
|
+
* all/none" behavior when associated checkboxes have a mix of checked and unchecked states.
|
|
3570
|
+
* - `checked`/`defaultChecked`: The default value of the form control. Primarily used for resetting the form control.
|
|
3571
|
+
* - `form`: By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
3572
|
+
* to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
3573
|
+
* the same document or shadow root for this to work.
|
|
3574
|
+
* - `required`: Makes the checkbox a required field.
|
|
3575
|
+
* - `hint`: The checkbox's hint. If you need to display HTML, use the `hint` slot instead.
|
|
3576
|
+
* - `input`: undefined (property only)
|
|
3577
|
+
* - `checked`: Draws the checkbox in a checked state. (property only)
|
|
3578
|
+
*
|
|
3579
|
+
* ## Events
|
|
3580
|
+
*
|
|
3581
|
+
* Events that will be emitted by the component.
|
|
3582
|
+
*
|
|
3583
|
+
* - `change`: undefined
|
|
3584
|
+
*
|
|
3585
|
+
* ## Methods
|
|
3586
|
+
*
|
|
3587
|
+
* Methods that can be called to access component functionality.
|
|
3588
|
+
*
|
|
3589
|
+
* - `handleDefaultCheckedChange() => void`: undefined
|
|
3590
|
+
* - `handleValueOrCheckedChange() => void`: undefined
|
|
3591
|
+
* - `handleStateChange() => void`: undefined
|
|
3592
|
+
* - `handleDisabledChange() => void`: undefined
|
|
3593
|
+
* - `formResetCallback() => void`: undefined
|
|
3594
|
+
* - `click() => void`: Simulates a click on the checkbox.
|
|
3595
|
+
* - `focus(options?: FocusOptions) => void`: Sets focus on the checkbox.
|
|
3596
|
+
* - `blur() => void`: Removes focus from the checkbox.
|
|
3597
|
+
*/
|
|
3598
|
+
"w-checkbox": Partial<
|
|
3599
|
+
WCheckboxProps & WCheckboxSolidJsProps & BaseProps<WCheckbox> & BaseEvents
|
|
3600
|
+
>;
|
|
3601
|
+
|
|
3602
|
+
/**
|
|
3603
|
+
*
|
|
3604
|
+
*/
|
|
3605
|
+
"w-checkbox-group": Partial<
|
|
3606
|
+
WCheckboxGroupProps &
|
|
3607
|
+
WCheckboxGroupSolidJsProps &
|
|
3608
|
+
BaseProps<WCheckboxGroup> &
|
|
3609
|
+
BaseEvents
|
|
3610
|
+
>;
|
|
3611
|
+
|
|
3612
|
+
/**
|
|
3613
|
+
* Component to place inside a `<w-slider>`.
|
|
3614
|
+
*
|
|
3615
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
|
|
3616
|
+
*
|
|
3617
|
+
* ## Attributes & Properties
|
|
3618
|
+
*
|
|
3619
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3620
|
+
*
|
|
3621
|
+
* - `aria-label`/`ariaLabel`: undefined
|
|
3622
|
+
* - `aria-description`/`ariaDescription`: undefined
|
|
3623
|
+
* - `label`: undefined
|
|
3624
|
+
* - `name`: undefined
|
|
3625
|
+
* - `value`: undefined
|
|
3626
|
+
* - `disabled`: undefined
|
|
3627
|
+
* - `invalid`: undefined
|
|
3628
|
+
* - `allowValuesOutsideRange`: Set by `<w-slider>` (property only)
|
|
3629
|
+
* - `markers`: Set by `<w-slider>` (property only)
|
|
3630
|
+
* - `required`: Set by `<w-slider>` (property only)
|
|
3631
|
+
* - `step`: Set by `<w-slider>` (property only)
|
|
3632
|
+
* - `min`: Set by `<w-slider>` (property only)
|
|
3633
|
+
* - `max`: Set by `<w-slider>` (property only)
|
|
3634
|
+
* - `suffix`: Set by `<w-slider>` (property only)
|
|
3635
|
+
* - `formatter`: JS hook to help you format the numeric value how you want. (property only)
|
|
3636
|
+
* - `range`: undefined (property only)
|
|
3637
|
+
* - `textfield`: undefined (property only)
|
|
3638
|
+
* - `boundaryValue`: undefined (property only) (readonly)
|
|
3639
|
+
* - `textFieldDisplayValue`: Value to display in the textfield (shows boundary when focused on empty value) (property only) (readonly)
|
|
3640
|
+
* - `tooltipDisplayValue`: Value to display in the tooltip (property only) (readonly)
|
|
3641
|
+
*
|
|
3642
|
+
* ## Events
|
|
3643
|
+
*
|
|
3644
|
+
* Events that will be emitted by the component.
|
|
3645
|
+
*
|
|
3646
|
+
* - `slidervalidity`: undefined
|
|
3647
|
+
*
|
|
3648
|
+
* ## Methods
|
|
3649
|
+
*
|
|
3650
|
+
* Methods that can be called to access component functionality.
|
|
3651
|
+
*
|
|
3652
|
+
* - `resetFormControl() => void`: undefined
|
|
3653
|
+
* - `updateFieldAfterValidation() => void`: undefined
|
|
3654
|
+
*/
|
|
3655
|
+
"w-slider-thumb": Partial<
|
|
3656
|
+
WarpSliderThumbProps &
|
|
3657
|
+
WarpSliderThumbSolidJsProps &
|
|
3658
|
+
BaseProps<WarpSliderThumb> &
|
|
3659
|
+
BaseEvents
|
|
3660
|
+
>;
|
|
3661
|
+
|
|
3662
|
+
/**
|
|
3663
|
+
* Parent component for sliders (both single and range sliders). Used in combination with a `<w-slider-thumb>`.
|
|
3664
|
+
*
|
|
3665
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
|
|
3666
|
+
*
|
|
3667
|
+
* ## Attributes & Properties
|
|
3668
|
+
*
|
|
3669
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3670
|
+
*
|
|
3671
|
+
* - `label`: The slider fieldset label. Required for proper accessibility.
|
|
3672
|
+
*
|
|
3673
|
+
* If you need to display HTML, use the `label` slot instead.
|
|
3674
|
+
* - `disabled`: undefined
|
|
3675
|
+
* - `allow-values-outside-range`/`allowValuesOutsideRange`: undefined
|
|
3676
|
+
* - `error`: undefined
|
|
3677
|
+
* - `help-text`/`helpText`: undefined
|
|
3678
|
+
* - `invalid`: undefined
|
|
3679
|
+
* - `required`: Ensures a child slider thumb has a value before allowing the containing form to submit.
|
|
3680
|
+
* - `min`: undefined
|
|
3681
|
+
* - `max`: undefined
|
|
3682
|
+
* - `markers`: Pass a value similar to step to create visual markers at that interval
|
|
3683
|
+
* - `step`: undefined
|
|
3684
|
+
* - `suffix`: Suffix used in text input fields and for the min and max values of the slider.
|
|
3685
|
+
* - `formatter`: Function to format the to- and from labels and value in the slider thumb tooltip. (property only)
|
|
3686
|
+
* - `_invalidMessage`: undefined (property only)
|
|
3687
|
+
* - `_hasInternalError`: undefined (property only)
|
|
3688
|
+
* - `edgeMin`: undefined (property only) (readonly)
|
|
3689
|
+
* - `edgeMax`: undefined (property only) (readonly)
|
|
3690
|
+
* - `componentHasError`: undefined (property only) (readonly)
|
|
3691
|
+
* - `errorText`: undefined (property only) (readonly)
|
|
3692
|
+
*
|
|
3693
|
+
* ## Slots
|
|
3694
|
+
*
|
|
3695
|
+
* Areas where markup can be added to the component.
|
|
3696
|
+
*
|
|
3697
|
+
* - `(default)`: For single sliders place a `<w-slider-thumb>` in the default slot.
|
|
3698
|
+
* - `label`: Label for the slider or range slider as a whole.
|
|
3699
|
+
* - `description`: Optional description between the label and slider.
|
|
3700
|
+
* - `from`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
|
|
3701
|
+
* - `to`: Range sliders need to place a `<w-slider-thumb>` in the from and to slots.
|
|
3702
|
+
*/
|
|
3703
|
+
"w-slider": Partial<
|
|
3704
|
+
WarpSliderProps &
|
|
3705
|
+
WarpSliderSolidJsProps &
|
|
3706
|
+
BaseProps<WarpSlider> &
|
|
3707
|
+
BaseEvents
|
|
3708
|
+
>;
|
|
3709
|
+
|
|
3710
|
+
/**
|
|
3711
|
+
* Individual step component that shows a single step in a process
|
|
3712
|
+
*
|
|
3713
|
+
* ## Attributes & Properties
|
|
3714
|
+
*
|
|
3715
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3716
|
+
*
|
|
3717
|
+
* - `active`: undefined
|
|
3718
|
+
* - `completed`: undefined
|
|
3719
|
+
*
|
|
3720
|
+
* ## Methods
|
|
3721
|
+
*
|
|
3722
|
+
* Methods that can be called to access component functionality.
|
|
3723
|
+
*
|
|
3724
|
+
* - `setContext(context: StepsContext) => void`: undefined
|
|
3725
|
+
* - `getAriaLabel() => void`: undefined
|
|
3726
|
+
*/
|
|
3727
|
+
"w-step": Partial<
|
|
3728
|
+
WarpStepProps & WarpStepSolidJsProps & BaseProps<WarpStep> & BaseEvents
|
|
3729
|
+
>;
|
|
3730
|
+
|
|
3731
|
+
/**
|
|
3732
|
+
* Steps are used to show progress through a process or to guide users through a multi-step task.
|
|
3733
|
+
*
|
|
3734
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/components-steps--docs)
|
|
3735
|
+
*
|
|
3736
|
+
* ## Attributes & Properties
|
|
3737
|
+
*
|
|
3738
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3739
|
+
*
|
|
3740
|
+
* - `horizontal`: undefined
|
|
3741
|
+
* - `right`: undefined
|
|
3742
|
+
*
|
|
3743
|
+
* ## Methods
|
|
3744
|
+
*
|
|
3745
|
+
* Methods that can be called to access component functionality.
|
|
3746
|
+
*
|
|
3747
|
+
* - `updateStepsContext() => void`: undefined
|
|
3748
|
+
*/
|
|
3749
|
+
"w-step-indicator": Partial<
|
|
3750
|
+
WarpStepIndicatorProps &
|
|
3751
|
+
WarpStepIndicatorSolidJsProps &
|
|
3752
|
+
BaseProps<WarpStepIndicator> &
|
|
3753
|
+
BaseEvents
|
|
3754
|
+
>;
|
|
3755
|
+
|
|
3756
|
+
/**
|
|
3757
|
+
* Individual tab component used within w-tabs container.
|
|
3758
|
+
*
|
|
3759
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
3760
|
+
*
|
|
3761
|
+
* ## Attributes & Properties
|
|
3762
|
+
*
|
|
3763
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3764
|
+
*
|
|
3765
|
+
* - `for`: undefined
|
|
3766
|
+
* - `active`: undefined
|
|
3767
|
+
* - `over`: undefined
|
|
3768
|
+
*/
|
|
3769
|
+
"w-tab": Partial<
|
|
3770
|
+
WarpTabProps & WarpTabSolidJsProps & BaseProps<WarpTab> & BaseEvents
|
|
3771
|
+
>;
|
|
3772
|
+
|
|
3773
|
+
/**
|
|
3774
|
+
* Tab panel component that holds content for individual tabs.
|
|
3775
|
+
* Each tab panel should have a name that matches a corresponding tab.
|
|
3776
|
+
*
|
|
3777
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
3778
|
+
*
|
|
3779
|
+
* ## Attributes & Properties
|
|
3780
|
+
*
|
|
3781
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3782
|
+
*
|
|
3783
|
+
* - `hidden`: undefined
|
|
3784
|
+
*/
|
|
3785
|
+
"w-tab-panel": Partial<
|
|
3786
|
+
WarpTabPanelProps &
|
|
3787
|
+
WarpTabPanelSolidJsProps &
|
|
3788
|
+
BaseProps<WarpTabPanel> &
|
|
3789
|
+
BaseEvents
|
|
3790
|
+
>;
|
|
3791
|
+
|
|
3792
|
+
/**
|
|
3793
|
+
* Tabs are used to organize content by grouping similar information on the same page.
|
|
3794
|
+
*
|
|
3795
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
3796
|
+
*
|
|
3797
|
+
* ## Attributes & Properties
|
|
3798
|
+
*
|
|
3799
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3800
|
+
*
|
|
3801
|
+
* - `active`: undefined
|
|
3802
|
+
* - `tabs`: undefined (property only) (readonly)
|
|
3803
|
+
* - `activeTab`: undefined (property only) (readonly)
|
|
3804
|
+
*
|
|
3805
|
+
* ## Events
|
|
3806
|
+
*
|
|
3807
|
+
* Events that will be emitted by the component.
|
|
3808
|
+
*
|
|
3809
|
+
* - `change`: undefined
|
|
3810
|
+
*/
|
|
3811
|
+
"w-tabs": Partial<
|
|
3812
|
+
WarpTabsProps & WarpTabsSolidJsProps & BaseProps<WarpTabs> & BaseEvents
|
|
3813
|
+
>;
|
|
3814
|
+
|
|
3815
|
+
/**
|
|
3816
|
+
* A single line text input element.
|
|
3817
|
+
*
|
|
3818
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
3819
|
+
*
|
|
3820
|
+
* ## Attributes & Properties
|
|
3821
|
+
*
|
|
3822
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
3823
|
+
*
|
|
3824
|
+
* - `disabled`: undefined
|
|
3825
|
+
* - `invalid`: undefined
|
|
3826
|
+
* - `label`: undefined
|
|
3827
|
+
* - `help-text`/`helpText`: undefined
|
|
3828
|
+
* - `maximum-rows`/`maxRows`: undefined
|
|
3829
|
+
* - `minimum-rows`/`minRows`: undefined
|
|
3830
|
+
* - `name`: undefined
|
|
3831
|
+
* - `placeholder`: undefined
|
|
3832
|
+
* - `read-only`/`readOnly`: undefined
|
|
3833
|
+
* - `readonly`: undefined
|
|
3834
|
+
* - `required`: undefined
|
|
3835
|
+
* - `value`: undefined
|
|
3836
|
+
* - `optional`: undefined
|
|
3837
|
+
* - `minHeight`: undefined (property only)
|
|
3838
|
+
* - `maxHeight`: undefined (property only)
|
|
3839
|
+
*
|
|
3840
|
+
* ## Methods
|
|
3841
|
+
*
|
|
3842
|
+
* Methods that can be called to access component functionality.
|
|
3843
|
+
*
|
|
3844
|
+
* - `resetFormControl() => void`: undefined
|
|
3845
|
+
* - `handler(e: InputEvent) => void`: undefined
|
|
3846
|
+
*/
|
|
3847
|
+
"w-textarea": Partial<
|
|
3848
|
+
WarpTextareaProps &
|
|
3849
|
+
WarpTextareaSolidJsProps &
|
|
3850
|
+
BaseProps<WarpTextarea> &
|
|
3851
|
+
BaseEvents
|
|
3852
|
+
>;
|
|
3853
|
+
};
|
|
3854
|
+
|
|
3855
|
+
export type CustomCssProperties = {};
|
|
3856
|
+
|
|
3857
|
+
declare module "react" {
|
|
3858
|
+
namespace JSX {
|
|
1086
3859
|
interface IntrinsicElements extends CustomElements {}
|
|
1087
3860
|
}
|
|
1088
3861
|
export interface CSSProperties extends CustomCssProperties {}
|
|
1089
3862
|
}
|
|
1090
3863
|
|
|
1091
|
-
declare module
|
|
3864
|
+
declare module "preact" {
|
|
1092
3865
|
namespace JSX {
|
|
1093
3866
|
interface IntrinsicElements extends CustomElements {}
|
|
1094
3867
|
}
|
|
1095
3868
|
export interface CSSProperties extends CustomCssProperties {}
|
|
1096
3869
|
}
|
|
1097
3870
|
|
|
1098
|
-
declare module
|
|
3871
|
+
declare module "@builder.io/qwik" {
|
|
1099
3872
|
namespace JSX {
|
|
1100
3873
|
interface IntrinsicElements extends CustomElements {}
|
|
1101
3874
|
}
|
|
1102
3875
|
export interface CSSProperties extends CustomCssProperties {}
|
|
1103
3876
|
}
|
|
1104
3877
|
|
|
1105
|
-
declare module
|
|
3878
|
+
declare module "@stencil/core" {
|
|
1106
3879
|
namespace JSX {
|
|
1107
3880
|
interface IntrinsicElements extends CustomElements {}
|
|
1108
3881
|
}
|
|
1109
3882
|
export interface CSSProperties extends CustomCssProperties {}
|
|
1110
3883
|
}
|
|
1111
3884
|
|
|
1112
|
-
declare module
|
|
3885
|
+
declare module "hono/jsx" {
|
|
1113
3886
|
namespace JSX {
|
|
1114
3887
|
interface IntrinsicElements extends CustomElements {}
|
|
1115
3888
|
}
|
|
1116
3889
|
export interface CSSProperties extends CustomCssProperties {}
|
|
1117
3890
|
}
|
|
1118
3891
|
|
|
1119
|
-
declare module
|
|
3892
|
+
declare module "react-native" {
|
|
1120
3893
|
namespace JSX {
|
|
1121
3894
|
interface IntrinsicElements extends CustomElements {}
|
|
1122
3895
|
}
|
|
1123
3896
|
export interface CSSProperties extends CustomCssProperties {}
|
|
1124
3897
|
}
|
|
1125
3898
|
|
|
3899
|
+
declare module "solid-js" {
|
|
3900
|
+
namespace JSX {
|
|
3901
|
+
interface IntrinsicElements extends CustomElementsSolidJs {}
|
|
3902
|
+
}
|
|
3903
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
3904
|
+
}
|
|
3905
|
+
|
|
1126
3906
|
declare global {
|
|
1127
3907
|
namespace JSX {
|
|
1128
3908
|
interface IntrinsicElements extends CustomElements {}
|