@warp-ds/elements 2.4.0 → 2.5.0-next.2
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 +878 -412
- package/dist/index.d.ts +2204 -777
- 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} +18 -18
- package/dist/packages/attention/attention.js.map +7 -0
- 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} +10 -10
- package/dist/packages/breadcrumbs/breadcrumbs.js.map +7 -0
- 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} +9 -9
- package/dist/packages/card/card.js.map +7 -0
- 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/combobox/{index.js → combobox.js} +14 -14
- package/dist/packages/combobox/{index.js.map → combobox.js.map} +4 -4
- package/dist/packages/combobox/combobox.react.stories.d.ts +4 -4
- package/dist/packages/combobox/combobox.stories.d.ts +3 -3
- package/dist/packages/combobox/combobox.stories.js +2 -2
- package/dist/packages/combobox/combobox.test.d.ts +2 -2
- package/dist/packages/combobox/combobox.test.js +2 -2
- package/dist/packages/combobox/react.d.ts +1 -1
- package/dist/packages/combobox/react.js +1 -1
- package/dist/packages/datepicker/DatePicker.test.d.ts +2 -2
- package/dist/packages/datepicker/DatePicker.test.js +2 -2
- package/dist/packages/datepicker/datepicker.js +15 -15
- package/dist/packages/datepicker/datepicker.js.map +3 -3
- 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/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/i18n.js +6 -2
- package/dist/packages/icon/icon.d.ts +22 -0
- package/dist/packages/icon/icon.js +27 -0
- package/dist/packages/icon/icon.js.map +7 -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/{deadtoggle → icon}/react.js +3 -3
- 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/{stepindicator → modal-footer}/react.js +3 -8
- package/dist/packages/{modal → modal-header}/modal-header.d.ts +1 -1
- package/dist/packages/{modal → modal-header}/modal-header.js +7 -7
- package/dist/packages/modal-header/modal-header.js.map +7 -0
- package/dist/packages/modal-header/react.d.ts +5 -0
- package/dist/packages/{pagination → modal-header}/react.js +5 -5
- package/dist/packages/page-indicator/locales/da/messages.mjs +1 -0
- package/dist/packages/page-indicator/locales/en/messages.mjs +1 -0
- package/dist/packages/page-indicator/locales/fi/messages.mjs +1 -0
- package/dist/packages/page-indicator/locales/nb/messages.mjs +1 -0
- package/dist/packages/page-indicator/locales/sv/messages.mjs +1 -0
- package/dist/packages/page-indicator/page-indicator.d.ts +26 -0
- package/dist/packages/page-indicator/page-indicator.js +41 -0
- package/dist/packages/page-indicator/page-indicator.js.map +7 -0
- package/dist/packages/{pageindicator/pageindicator.react.stories.d.ts → page-indicator/page-indicator.react.stories.d.ts} +3 -3
- package/dist/packages/{pageindicator/pageindicator.stories.d.ts → page-indicator/page-indicator.stories.d.ts} +1 -1
- package/dist/packages/page-indicator/page-indicator.stories.js +87 -0
- package/dist/packages/page-indicator/page-indicator.test.d.ts +1 -0
- package/dist/packages/page-indicator/page-indicator.test.js +118 -0
- package/dist/packages/{pageindicator → page-indicator}/react.d.ts +1 -1
- package/dist/packages/{pageindicator → page-indicator}/react.js +2 -2
- package/dist/packages/{pageindicator → page-indicator}/style.js +4 -4
- package/dist/packages/pill/{index.js → pill.js} +9 -9
- package/dist/packages/pill/pill.js.map +7 -0
- 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/select/react.d.ts +1 -1
- package/dist/packages/select/react.js +1 -1
- package/dist/packages/select/{index.js → select.js} +16 -16
- 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/switch/react.d.ts +1 -1
- package/dist/packages/switch/react.js +1 -1
- package/dist/packages/switch/{index.js → switch.js} +1 -1
- package/dist/packages/switch/{index.js.map → switch.js.map} +1 -1
- package/dist/packages/switch/switch.react.stories.d.ts +1 -1
- package/dist/packages/switch/switch.stories.d.ts +1 -1
- package/dist/packages/switch/switch.stories.js +1 -1
- package/dist/packages/switch/switch.test.d.ts +1 -1
- package/dist/packages/switch/switch.test.js +2 -2
- package/dist/packages/tab/react.d.ts +7 -0
- package/dist/packages/tab/react.js +17 -0
- package/dist/packages/{tabs → tab}/tab.d.ts +2 -5
- 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/{tabs → tab-panel}/tab-panel.d.ts +3 -3
- 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 +2 -3
- package/dist/packages/tabs/index.js +3 -2
- package/dist/packages/tabs/react.d.ts +3 -8
- package/dist/packages/tabs/react.js +4 -17
- package/dist/packages/tabs/tabs.d.ts +2 -5
- package/dist/packages/tabs/tabs.js +2447 -252
- package/dist/packages/tabs/tabs.js.map +7 -0
- package/dist/packages/tabs/tabs.react.stories.d.ts +14 -1
- package/dist/packages/tabs/tabs.react.stories.js +55 -35
- package/dist/packages/tabs/tabs.stories.d.ts +5 -4
- package/dist/packages/tabs/tabs.stories.js +89 -65
- package/dist/packages/textfield/react.d.ts +1 -1
- package/dist/packages/textfield/react.js +1 -1
- package/dist/packages/textfield/{index.js → textfield.js} +1 -1
- package/dist/packages/textfield/{index.js.map → textfield.js.map} +1 -1
- 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 +2 -2
- package/dist/packages/toast/index.d.ts +5 -3
- package/dist/packages/toast/index.js +7 -2483
- package/dist/packages/toast/toast.js +8 -8
- package/dist/packages/toast/toast.js.map +3 -3
- 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/web-types.json +175 -38
- package/package.json +91 -38
- package/dist/packages/attention/index.js.map +0 -7
- package/dist/packages/breadcrumbs/index.js.map +0 -7
- package/dist/packages/button/index.js.map +0 -7
- package/dist/packages/card/index.js.map +0 -7
- package/dist/packages/checkbox/checkbox-group.d.ts +0 -10
- package/dist/packages/checkbox/checkbox-group.js +0 -15
- package/dist/packages/checkbox/checkbox.d.ts +0 -66
- package/dist/packages/checkbox/checkbox.js +0 -220
- package/dist/packages/checkbox/checkbox.react.stories.d.ts +0 -12
- package/dist/packages/checkbox/checkbox.react.stories.js +0 -10
- package/dist/packages/checkbox/checkbox.stories.d.ts +0 -11
- package/dist/packages/checkbox/checkbox.stories.js +0 -25
- package/dist/packages/checkbox/index.d.ts +0 -2
- package/dist/packages/checkbox/index.js +0 -2
- package/dist/packages/checkbox/react.d.ts +0 -7
- package/dist/packages/checkbox/react.js +0 -20
- package/dist/packages/checkbox/styles.d.ts +0 -0
- package/dist/packages/checkbox/styles.js +0 -0
- 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/deadtoggle/dead-toggle.react.stories.d.ts +0 -15
- package/dist/packages/deadtoggle/dead-toggle.react.stories.js +0 -34
- package/dist/packages/deadtoggle/dead-toggle.stories.d.ts +0 -14
- package/dist/packages/deadtoggle/dead-toggle.stories.js +0 -45
- package/dist/packages/deadtoggle/dead-toggle.test.d.ts +0 -1
- package/dist/packages/deadtoggle/dead-toggle.test.js +0 -9
- package/dist/packages/deadtoggle/index.d.ts +0 -17
- package/dist/packages/deadtoggle/index.js +0 -51
- package/dist/packages/deadtoggle/react.d.ts +0 -2
- 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/pageindicator/index.d.ts +0 -10
- package/dist/packages/pageindicator/index.js +0 -48
- package/dist/packages/pageindicator/pageindicator.stories.js +0 -71
- package/dist/packages/pagination/index.d.ts +0 -32
- package/dist/packages/pagination/index.js +0 -199
- package/dist/packages/pagination/locales/da/messages.mjs +0 -1
- package/dist/packages/pagination/locales/en/messages.mjs +0 -1
- package/dist/packages/pagination/locales/fi/messages.mjs +0 -1
- package/dist/packages/pagination/locales/nb/messages.mjs +0 -1
- package/dist/packages/pagination/locales/sv/messages.mjs +0 -1
- package/dist/packages/pagination/pagination.react.stories.d.ts +0 -21
- package/dist/packages/pagination/pagination.react.stories.js +0 -45
- package/dist/packages/pagination/pagination.stories.d.ts +0 -14
- package/dist/packages/pagination/pagination.stories.js +0 -56
- package/dist/packages/pagination/pagination.test.d.ts +0 -1
- package/dist/packages/pagination/pagination.test.js +0 -76
- package/dist/packages/pagination/react.d.ts +0 -5
- package/dist/packages/pagination/styles.js +0 -2
- package/dist/packages/pill/index.js.map +0 -7
- package/dist/packages/radio/base-element.d.ts +0 -46
- package/dist/packages/radio/base-element.js +0 -100
- package/dist/packages/radio/custom-error-validator.d.ts +0 -6
- package/dist/packages/radio/custom-error-validator.js +0 -22
- package/dist/packages/radio/form-associated-element.d.ts +0 -103
- package/dist/packages/radio/form-associated-element.js +0 -282
- package/dist/packages/radio/host-styles.d.ts +0 -1
- package/dist/packages/radio/host-styles.js +0 -12
- package/dist/packages/radio/index.d.ts +0 -2
- package/dist/packages/radio/index.js +0 -2
- package/dist/packages/radio/invalid.d.ts +0 -8
- package/dist/packages/radio/invalid.js +0 -5
- package/dist/packages/radio/math.d.ts +0 -1
- package/dist/packages/radio/math.js +0 -4
- package/dist/packages/radio/radio-group-styles.d.ts +0 -1
- package/dist/packages/radio/radio-group-styles.js +0 -59
- package/dist/packages/radio/radio-group.d.ts +0 -72
- package/dist/packages/radio/radio-group.js +0 -342
- 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 +0 -38
- package/dist/packages/radio/radio.js +0 -115
- package/dist/packages/radio/radio.react.stories.d.ts +0 -9
- package/dist/packages/radio/radio.react.stories.js +0 -10
- package/dist/packages/radio/radio.stories.d.ts +0 -15
- package/dist/packages/radio/radio.stories.js +0 -61
- package/dist/packages/radio/react.d.ts +0 -9
- package/dist/packages/radio/react.js +0 -22
- package/dist/packages/radio/required-validator.d.ts +0 -11
- package/dist/packages/radio/required-validator.js +0 -34
- package/dist/packages/radio/slot.d.ts +0 -20
- package/dist/packages/radio/slot.js +0 -71
- package/dist/packages/radio/watch.d.ts +0 -26
- package/dist/packages/radio/watch.js +0 -39
- package/dist/packages/select/index.js.map +0 -7
- package/dist/packages/slider/Slider.d.ts +0 -2
- package/dist/packages/slider/Slider.js +0 -8
- package/dist/packages/slider/SliderThumb.d.ts +0 -2
- package/dist/packages/slider/SliderThumb.js +0 -8
- package/dist/packages/slider/index.d.ts +0 -2
- package/dist/packages/slider/index.js +0 -2
- package/dist/packages/slider/locales/da/messages.d.mts +0 -1
- package/dist/packages/slider/locales/da/messages.mjs +0 -1
- package/dist/packages/slider/locales/en/messages.d.mts +0 -1
- package/dist/packages/slider/locales/en/messages.mjs +0 -1
- package/dist/packages/slider/locales/fi/messages.d.mts +0 -1
- package/dist/packages/slider/locales/fi/messages.mjs +0 -1
- package/dist/packages/slider/locales/nb/messages.d.mts +0 -1
- package/dist/packages/slider/locales/nb/messages.mjs +0 -1
- package/dist/packages/slider/locales/sv/messages.d.mts +0 -1
- package/dist/packages/slider/locales/sv/messages.mjs +0 -1
- package/dist/packages/slider/oddbird-css-anchor-positioning.d.ts +0 -2
- package/dist/packages/slider/oddbird-css-anchor-positioning.js +0 -3
- package/dist/packages/slider/react.d.ts +0 -8
- package/dist/packages/slider/react.js +0 -20
- package/dist/packages/slider/slider-thumb.d.ts +0 -63
- package/dist/packages/slider/slider-thumb.js +0 -501
- package/dist/packages/slider/slider.d.ts +0 -55
- package/dist/packages/slider/slider.js +0 -301
- package/dist/packages/slider/slider.react.stories.d.ts +0 -19
- package/dist/packages/slider/slider.react.stories.js +0 -140
- package/dist/packages/slider/slider.stories.d.ts +0 -21
- package/dist/packages/slider/slider.stories.js +0 -404
- package/dist/packages/slider/slider.test.d.ts +0 -4
- package/dist/packages/slider/slider.test.js +0 -111
- package/dist/packages/slider/styles/w-slider-thumb.styles.d.ts +0 -1
- package/dist/packages/slider/styles/w-slider-thumb.styles.js +0 -175
- package/dist/packages/slider/styles/w-slider.styles.d.ts +0 -1
- package/dist/packages/slider/styles/w-slider.styles.js +0 -148
- package/dist/packages/slider/styles.d.ts +0 -1
- package/dist/packages/slider/styles.js +0 -2
- package/dist/packages/stepindicator/index.d.ts +0 -37
- package/dist/packages/stepindicator/index.js +0 -195
- package/dist/packages/stepindicator/locales/da/messages.d.mts +0 -1
- package/dist/packages/stepindicator/locales/da/messages.mjs +0 -1
- package/dist/packages/stepindicator/locales/en/messages.d.mts +0 -1
- package/dist/packages/stepindicator/locales/en/messages.mjs +0 -1
- package/dist/packages/stepindicator/locales/fi/messages.d.mts +0 -1
- package/dist/packages/stepindicator/locales/fi/messages.mjs +0 -1
- package/dist/packages/stepindicator/locales/nb/messages.d.mts +0 -1
- package/dist/packages/stepindicator/locales/nb/messages.mjs +0 -1
- package/dist/packages/stepindicator/locales/sv/messages.d.mts +0 -1
- package/dist/packages/stepindicator/locales/sv/messages.mjs +0 -1
- package/dist/packages/stepindicator/react.d.ts +0 -3
- package/dist/packages/stepindicator/stepindicator.react.stories.d.ts +0 -15
- package/dist/packages/stepindicator/stepindicator.react.stories.js +0 -112
- package/dist/packages/stepindicator/stepindicator.stories.d.ts +0 -12
- package/dist/packages/stepindicator/stepindicator.stories.js +0 -172
- package/dist/packages/stepindicator/styles.d.ts +0 -1
- package/dist/packages/stepindicator/styles.js +0 -2
- package/dist/packages/tabs/tab-panel.js +0 -51
- package/dist/packages/tabs/tab.js +0 -104
- package/dist/packages/textarea/index.d.ts +0 -1
- package/dist/packages/textarea/index.js +0 -1
- package/dist/packages/textarea/locales/da/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/da/messages.mjs +0 -1
- package/dist/packages/textarea/locales/en/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/en/messages.mjs +0 -1
- package/dist/packages/textarea/locales/fi/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/fi/messages.mjs +0 -1
- package/dist/packages/textarea/locales/nb/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/nb/messages.mjs +0 -1
- package/dist/packages/textarea/locales/sv/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/sv/messages.mjs +0 -1
- package/dist/packages/textarea/react.d.ts +0 -11
- package/dist/packages/textarea/react.js +0 -21
- package/dist/packages/textarea/styles.d.ts +0 -1
- package/dist/packages/textarea/styles.js +0 -2
- package/dist/packages/textarea/textarea.d.ts +0 -49
- package/dist/packages/textarea/textarea.js +0 -220
- package/dist/packages/textarea/textarea.react.stories.d.ts +0 -33
- package/dist/packages/textarea/textarea.react.stories.js +0 -41
- package/dist/packages/textarea/textarea.stories.d.ts +0 -19
- package/dist/packages/textarea/textarea.stories.js +0 -85
- package/dist/packages/textarea/textarea.test.d.ts +0 -1
- package/dist/packages/textarea/textarea.test.js +0 -68
- package/dist/packages/toast/index.js.map +0 -7
- package/dist/packages/toast/toast-container.js.map +0 -7
- package/dist/packages/toggle-styles.d.ts +0 -1
- package/dist/packages/toggle-styles.js +0 -108
- /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/combobox/{index.d.ts → combobox.d.ts} +0 -0
- /package/dist/packages/expandable/{index.d.ts → expandable.d.ts} +0 -0
- /package/dist/packages/{pageindicator → icon}/style.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/{pagination → page-indicator}/locales/da/messages.d.mts +0 -0
- /package/dist/packages/{pagination → page-indicator}/locales/en/messages.d.mts +0 -0
- /package/dist/packages/{pagination → page-indicator}/locales/fi/messages.d.mts +0 -0
- /package/dist/packages/{pagination → page-indicator}/locales/nb/messages.d.mts +0 -0
- /package/dist/packages/{pagination → page-indicator}/locales/sv/messages.d.mts +0 -0
- /package/dist/packages/{pageindicator/pageindicator.react.stories.js → page-indicator/page-indicator.react.stories.js} +0 -0
- /package/dist/packages/{pagination/styles.d.ts → page-indicator/style.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/switch/{index.d.ts → switch.d.ts} +0 -0
- /package/dist/packages/textfield/{index.d.ts → textfield.d.ts} +0 -0
- /package/dist/packages/{toast → toast-container}/toast-container.js +0 -0
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { isServer } from 'lit';
|
|
8
|
-
import { property } from 'lit/decorators.js';
|
|
9
|
-
import BaseElement from './base-element.js';
|
|
10
|
-
import { CustomErrorValidator } from './custom-error-validator.js';
|
|
11
|
-
import { WInvalidEvent } from './invalid';
|
|
12
|
-
// setFormValue omitted so that we can use `setValue`
|
|
13
|
-
export class BaseFormAssociatedElement extends BaseElement {
|
|
14
|
-
static { this.formAssociated = true; }
|
|
15
|
-
/**
|
|
16
|
-
* Validators are static because they have `observedAttributes`, essentially attributes to "watch"
|
|
17
|
-
* for changes. Whenever these attributes change, we want to be notified and update the validator.
|
|
18
|
-
*/
|
|
19
|
-
static get validators() {
|
|
20
|
-
return [CustomErrorValidator()];
|
|
21
|
-
}
|
|
22
|
-
// Append all Validator "observedAttributes" into the "observedAttributes" so they can run.
|
|
23
|
-
static get observedAttributes() {
|
|
24
|
-
const parentAttrs = new Set(super.observedAttributes || []);
|
|
25
|
-
for (const validator of this.validators) {
|
|
26
|
-
if (!validator.observedAttributes) {
|
|
27
|
-
continue;
|
|
28
|
-
}
|
|
29
|
-
for (const attr of validator.observedAttributes) {
|
|
30
|
-
parentAttrs.add(attr);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return [...parentAttrs];
|
|
34
|
-
}
|
|
35
|
-
constructor() {
|
|
36
|
-
super();
|
|
37
|
-
// Form attributes
|
|
38
|
-
/** The name of the input, submitted as a name/value pair with form data. */
|
|
39
|
-
this.name = null;
|
|
40
|
-
/** Disables the form control. */
|
|
41
|
-
this.disabled = false;
|
|
42
|
-
this.required = false;
|
|
43
|
-
this.assumeInteractionOn = ['input'];
|
|
44
|
-
this.validators = [];
|
|
45
|
-
// Should these be private?
|
|
46
|
-
this.valueHasChanged = false;
|
|
47
|
-
this.hasInteracted = false;
|
|
48
|
-
// This works around a limitation in Safari. It is a hacky way for us to preserve custom errors generated by the user.
|
|
49
|
-
this.customError = null;
|
|
50
|
-
this.emittedEvents = [];
|
|
51
|
-
this.emitInvalid = (e) => {
|
|
52
|
-
if (e.target !== this)
|
|
53
|
-
return;
|
|
54
|
-
// An "invalid" event counts as interacted, this is usually triggered by a button "submitting"
|
|
55
|
-
this.hasInteracted = true;
|
|
56
|
-
this.dispatchEvent(new WInvalidEvent());
|
|
57
|
-
};
|
|
58
|
-
this.handleInteraction = (event) => {
|
|
59
|
-
const emittedEvents = this.emittedEvents;
|
|
60
|
-
if (!emittedEvents.includes(event.type)) {
|
|
61
|
-
emittedEvents.push(event.type);
|
|
62
|
-
}
|
|
63
|
-
// Mark it as user-interacted as soon as all associated events have been emitted
|
|
64
|
-
if (emittedEvents.length === this.assumeInteractionOn?.length) {
|
|
65
|
-
this.hasInteracted = true;
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
if (!isServer) {
|
|
69
|
-
this.addEventListener('invalid', this.emitInvalid);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
connectedCallback() {
|
|
73
|
-
super.connectedCallback();
|
|
74
|
-
this.updateValidity();
|
|
75
|
-
// Lazily evaluate after the constructor to allow people to override the `assumeInteractionOn`
|
|
76
|
-
this.assumeInteractionOn.forEach((event) => {
|
|
77
|
-
this.addEventListener(event, this.handleInteraction);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
firstUpdated(...args) {
|
|
81
|
-
super.firstUpdated(...args);
|
|
82
|
-
this.updateValidity();
|
|
83
|
-
}
|
|
84
|
-
willUpdate(changedProperties) {
|
|
85
|
-
if (!isServer && changedProperties.has('customError')) {
|
|
86
|
-
// We use null because it we really don't want it to show up in the attributes because `custom-error` does reflect
|
|
87
|
-
if (!this.customError) {
|
|
88
|
-
this.customError = null;
|
|
89
|
-
}
|
|
90
|
-
this.setCustomValidity(this.customError || '');
|
|
91
|
-
}
|
|
92
|
-
if (changedProperties.has('value') || changedProperties.has('disabled')) {
|
|
93
|
-
// @ts-expect-error Some components will use an accessors, other use a property, so we don't want to limit them.
|
|
94
|
-
const value = this.value;
|
|
95
|
-
// Accounts for the snowflake case on `<wa-select>`
|
|
96
|
-
if (Array.isArray(value)) {
|
|
97
|
-
if (this.name) {
|
|
98
|
-
const formData = new FormData();
|
|
99
|
-
for (const val of value) {
|
|
100
|
-
formData.append(this.name, val);
|
|
101
|
-
}
|
|
102
|
-
this.setValue(formData, formData);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
this.setValue(value, value);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
if (changedProperties.has('disabled')) {
|
|
110
|
-
this.customStates.set('disabled', this.disabled);
|
|
111
|
-
if (this.hasAttribute('disabled') || (!isServer && !this.matches(':disabled'))) {
|
|
112
|
-
this.toggleAttribute('disabled', this.disabled);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
this.updateValidity();
|
|
116
|
-
super.willUpdate(changedProperties);
|
|
117
|
-
}
|
|
118
|
-
get labels() {
|
|
119
|
-
return this.internals.labels;
|
|
120
|
-
}
|
|
121
|
-
getForm() {
|
|
122
|
-
return this.internals.form;
|
|
123
|
-
}
|
|
124
|
-
get validity() {
|
|
125
|
-
return this.internals.validity;
|
|
126
|
-
}
|
|
127
|
-
// Not sure if this supports `novalidate`. Will need to test.
|
|
128
|
-
get willValidate() {
|
|
129
|
-
return this.internals.willValidate;
|
|
130
|
-
}
|
|
131
|
-
get validationMessage() {
|
|
132
|
-
return this.internals.validationMessage;
|
|
133
|
-
}
|
|
134
|
-
checkValidity() {
|
|
135
|
-
this.updateValidity();
|
|
136
|
-
return this.internals.checkValidity();
|
|
137
|
-
}
|
|
138
|
-
reportValidity() {
|
|
139
|
-
this.updateValidity();
|
|
140
|
-
// This seems reasonable. `reportValidity()` is kind of like "we expect you to have interacted"
|
|
141
|
-
this.hasInteracted = true;
|
|
142
|
-
return this.internals.reportValidity();
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Override this to change where constraint validation popups are anchored.
|
|
146
|
-
*/
|
|
147
|
-
get validationTarget() {
|
|
148
|
-
return (this.input || undefined);
|
|
149
|
-
}
|
|
150
|
-
setValidity(...args) {
|
|
151
|
-
const flags = args[0];
|
|
152
|
-
const message = args[1];
|
|
153
|
-
let anchor = args[2];
|
|
154
|
-
if (!anchor) {
|
|
155
|
-
anchor = this.validationTarget;
|
|
156
|
-
}
|
|
157
|
-
this.internals.setValidity(flags, message, anchor || undefined);
|
|
158
|
-
this.requestUpdate('validity');
|
|
159
|
-
this.setCustomStates();
|
|
160
|
-
}
|
|
161
|
-
setCustomStates() {
|
|
162
|
-
const required = Boolean(this.required);
|
|
163
|
-
const isValid = this.internals.validity.valid;
|
|
164
|
-
const hasInteracted = this.hasInteracted;
|
|
165
|
-
this.customStates.set('required', required);
|
|
166
|
-
this.customStates.set('optional', !required);
|
|
167
|
-
this.customStates.set('invalid', !isValid);
|
|
168
|
-
this.customStates.set('valid', isValid);
|
|
169
|
-
this.customStates.set('user-invalid', !isValid && hasInteracted);
|
|
170
|
-
this.customStates.set('user-valid', isValid && hasInteracted);
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Do not use this when creating a "Validator". This is intended for end users of components.
|
|
174
|
-
* We track manually defined custom errors so we don't clear them on accident in our validators.
|
|
175
|
-
*
|
|
176
|
-
*/
|
|
177
|
-
setCustomValidity(message) {
|
|
178
|
-
if (!message) {
|
|
179
|
-
// We use null because it we really don't want it to show up in the attributes because `custom-error` does reflect
|
|
180
|
-
this.customError = null;
|
|
181
|
-
this.setValidity({});
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
this.customError = message;
|
|
185
|
-
this.setValidity({ customError: true }, message, this.validationTarget);
|
|
186
|
-
}
|
|
187
|
-
formResetCallback() {
|
|
188
|
-
this.resetValidity();
|
|
189
|
-
this.hasInteracted = false;
|
|
190
|
-
this.valueHasChanged = false;
|
|
191
|
-
this.emittedEvents = [];
|
|
192
|
-
this.updateValidity();
|
|
193
|
-
}
|
|
194
|
-
formDisabledCallback(isDisabled) {
|
|
195
|
-
this.disabled = isDisabled;
|
|
196
|
-
this.updateValidity();
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Called when the browser is trying to restore element’s state to state in which case reason is "restore", or when
|
|
200
|
-
* the browser is trying to fulfill autofill on behalf of user in which case reason is "autocomplete". In the case of
|
|
201
|
-
* "restore", state is a string, File, or FormData object previously set as the second argument to setFormValue.
|
|
202
|
-
*/
|
|
203
|
-
formStateRestoreCallback(state, reason) {
|
|
204
|
-
// @ts-expect-error We purposely do not have a value property. It makes things hard to extend.
|
|
205
|
-
this.value = state;
|
|
206
|
-
if (reason === 'restore') {
|
|
207
|
-
this.resetValidity();
|
|
208
|
-
}
|
|
209
|
-
this.updateValidity();
|
|
210
|
-
}
|
|
211
|
-
setValue(...args) {
|
|
212
|
-
const [value, state] = args;
|
|
213
|
-
this.internals.setFormValue(value, state);
|
|
214
|
-
}
|
|
215
|
-
get allValidators() {
|
|
216
|
-
const staticValidators = this.constructor.validators || [];
|
|
217
|
-
const validators = this.validators || [];
|
|
218
|
-
return [...staticValidators, ...validators];
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* Reset validity is a way of removing manual custom errors and native validation.
|
|
222
|
-
*/
|
|
223
|
-
resetValidity() {
|
|
224
|
-
this.setCustomValidity('');
|
|
225
|
-
this.setValidity({});
|
|
226
|
-
}
|
|
227
|
-
updateValidity() {
|
|
228
|
-
if (this.disabled ||
|
|
229
|
-
this.hasAttribute('disabled') ||
|
|
230
|
-
!this.willValidate //
|
|
231
|
-
) {
|
|
232
|
-
this.resetValidity();
|
|
233
|
-
return;
|
|
234
|
-
}
|
|
235
|
-
const validators = this.allValidators;
|
|
236
|
-
if (!validators?.length) {
|
|
237
|
-
// If there's no validators, we do nothing. We also don't want to mess with custom errors, so we just stop here.
|
|
238
|
-
return;
|
|
239
|
-
}
|
|
240
|
-
const flags = {
|
|
241
|
-
// Don't trust custom errors from the Browser. Safari breaks the spec.
|
|
242
|
-
customError: Boolean(this.customError),
|
|
243
|
-
};
|
|
244
|
-
const formControl = this.validationTarget || this.input || undefined;
|
|
245
|
-
let finalMessage = '';
|
|
246
|
-
for (const validator of validators) {
|
|
247
|
-
const { isValid, message, invalidKeys } = validator.checkValidity(this);
|
|
248
|
-
if (isValid) {
|
|
249
|
-
continue;
|
|
250
|
-
}
|
|
251
|
-
if (!finalMessage) {
|
|
252
|
-
finalMessage = message;
|
|
253
|
-
}
|
|
254
|
-
if (invalidKeys?.length >= 0) {
|
|
255
|
-
invalidKeys.forEach((str) => (flags[str] = true));
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
// This is a workaround for preserving custom errors
|
|
259
|
-
if (!finalMessage) {
|
|
260
|
-
finalMessage = this.validationMessage;
|
|
261
|
-
}
|
|
262
|
-
this.setValidity(flags, finalMessage, formControl);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
__decorate([
|
|
266
|
-
property({ reflect: true })
|
|
267
|
-
], BaseFormAssociatedElement.prototype, "name", void 0);
|
|
268
|
-
__decorate([
|
|
269
|
-
property({ type: Boolean })
|
|
270
|
-
], BaseFormAssociatedElement.prototype, "disabled", void 0);
|
|
271
|
-
__decorate([
|
|
272
|
-
property({ state: true, attribute: false })
|
|
273
|
-
], BaseFormAssociatedElement.prototype, "valueHasChanged", void 0);
|
|
274
|
-
__decorate([
|
|
275
|
-
property({ state: true, attribute: false })
|
|
276
|
-
], BaseFormAssociatedElement.prototype, "hasInteracted", void 0);
|
|
277
|
-
__decorate([
|
|
278
|
-
property({ attribute: 'custom-error', reflect: true })
|
|
279
|
-
], BaseFormAssociatedElement.prototype, "customError", void 0);
|
|
280
|
-
__decorate([
|
|
281
|
-
property({ attribute: false, state: true, type: Object })
|
|
282
|
-
], BaseFormAssociatedElement.prototype, "validity", null);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const styles: import("lit").CSSResult;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function uniqueId(prefix?: string): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const styles: import("lit").CSSResult;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
export const styles = css `
|
|
3
|
-
:host {
|
|
4
|
-
display: block;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.form-control {
|
|
8
|
-
position: relative;
|
|
9
|
-
border: none;
|
|
10
|
-
padding: 0;
|
|
11
|
-
margin: 0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.label {
|
|
15
|
-
font-size: var(--w-font-size-s);
|
|
16
|
-
line-height: var(--w-line-height-s);
|
|
17
|
-
font-weight: 700;
|
|
18
|
-
-webkit-font-smoothing: antialiased;
|
|
19
|
-
-moz-osx-font-smoothing: grayscale;
|
|
20
|
-
font-smoothing: grayscale;
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
padding-bottom: 0.4rem;
|
|
23
|
-
color: var(--w-s-color-text);
|
|
24
|
-
display: block;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.radio-group-required .label::after {
|
|
28
|
-
content: var(--wa-form-control-required-content);
|
|
29
|
-
margin-inline-start: var(--wa-form-control-required-content-offset);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.button-group {
|
|
33
|
-
display: flex;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
[part~='form-control-input'] {
|
|
37
|
-
display: flex;
|
|
38
|
-
flex-direction: column;
|
|
39
|
-
flex-wrap: wrap;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/* Horizontal */
|
|
43
|
-
:host([orientation='horizontal']) [part~='form-control-input'] {
|
|
44
|
-
flex-direction: row;
|
|
45
|
-
gap: 1em;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/* Help text */
|
|
49
|
-
[part~='hint'] {
|
|
50
|
-
margin-block-start: 0.5em;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/* Radios have the "button" appearance */
|
|
54
|
-
:host fieldset.has-radio-buttons {
|
|
55
|
-
[part~='form-control-input'] {
|
|
56
|
-
gap: 0;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
`;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { PropertyValues } from 'lit';
|
|
2
|
-
import { BaseFormAssociatedElement } from './form-associated-element';
|
|
3
|
-
import './radio';
|
|
4
|
-
import type { WRadio } from './radio';
|
|
5
|
-
/**
|
|
6
|
-
* @slot label - Alternative to the `label` attribute should you need custom HTML.
|
|
7
|
-
*/
|
|
8
|
-
export declare class WRadioGroup extends BaseFormAssociatedElement {
|
|
9
|
-
static css: import("lit").CSSResult[];
|
|
10
|
-
static get validators(): import("./form-associated-element").Validator<BaseFormAssociatedElement>[];
|
|
11
|
-
private readonly hasSlotController;
|
|
12
|
-
hasRadioButtons: boolean;
|
|
13
|
-
defaultSlot: HTMLSlotElement;
|
|
14
|
-
/**
|
|
15
|
-
* The radio group's label. Required for proper accessibility. If you need to display HTML, use the `label` slot
|
|
16
|
-
* instead.
|
|
17
|
-
*/
|
|
18
|
-
label: string;
|
|
19
|
-
/** The radio groups's hint. If you need to display HTML, use the `hint` slot instead. */
|
|
20
|
-
hint: string;
|
|
21
|
-
/** The name of the radio group, submitted as a name/value pair with form data. */
|
|
22
|
-
name: string | null;
|
|
23
|
-
/** Disables the radio group and all child radios. */
|
|
24
|
-
disabled: boolean;
|
|
25
|
-
/** The orientation in which to show radio items. */
|
|
26
|
-
orientation: 'horizontal' | 'vertical';
|
|
27
|
-
private _value;
|
|
28
|
-
get value(): string | number | null;
|
|
29
|
-
/** The current value of the radio group, submitted as a name/value pair with form data. */
|
|
30
|
-
set value(val: string | number | null);
|
|
31
|
-
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
32
|
-
defaultValue: string | null;
|
|
33
|
-
/** The radio group's size. This size will be applied to all child radios and radio buttons, except when explicitly overridden. */
|
|
34
|
-
size: 'small' | 'medium' | 'large';
|
|
35
|
-
/** Ensures a child radio is checked before allowing the containing form to submit. */
|
|
36
|
-
required: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Used for SSR. if true, will show slotted label on initial render.
|
|
39
|
-
*/
|
|
40
|
-
withLabel: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Used for SSR. if true, will show slotted hint on initial render.
|
|
43
|
-
*/
|
|
44
|
-
withHint: boolean;
|
|
45
|
-
static shadowRootOptions: {
|
|
46
|
-
delegatesFocus: boolean;
|
|
47
|
-
mode: ShadowRootMode;
|
|
48
|
-
serializable?: boolean;
|
|
49
|
-
slotAssignment?: SlotAssignmentMode;
|
|
50
|
-
};
|
|
51
|
-
constructor();
|
|
52
|
-
/**
|
|
53
|
-
* We use the first available radio as the validationTarget similar to native HTML that shows the validation popup on
|
|
54
|
-
* the first radio element.
|
|
55
|
-
*/
|
|
56
|
-
get validationTarget(): WRadio;
|
|
57
|
-
updated(changedProperties: PropertyValues<this>): void;
|
|
58
|
-
formResetCallback(...args: Parameters<BaseFormAssociatedElement['formResetCallback']>): void;
|
|
59
|
-
private handleRadioClick;
|
|
60
|
-
private getAllRadios;
|
|
61
|
-
private handleLabelClick;
|
|
62
|
-
private syncRadioElements;
|
|
63
|
-
private handleKeyDown;
|
|
64
|
-
/** Sets focus on the radio group. */
|
|
65
|
-
focus(options?: FocusOptions): void;
|
|
66
|
-
render(): import("lit").TemplateResult<1>;
|
|
67
|
-
}
|
|
68
|
-
declare global {
|
|
69
|
-
interface HTMLElementTagNameMap {
|
|
70
|
-
'w-radio-group': WRadioGroup;
|
|
71
|
-
}
|
|
72
|
-
}
|