@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,172 +0,0 @@
|
|
|
1
|
-
import { html } from 'lit';
|
|
2
|
-
import './index.js';
|
|
3
|
-
const meta = {
|
|
4
|
-
title: 'Components/Step Indicator',
|
|
5
|
-
component: 'w-step-indicator',
|
|
6
|
-
argTypes: {
|
|
7
|
-
horizontal: {
|
|
8
|
-
control: { type: 'boolean' },
|
|
9
|
-
description: 'Display steps in horizontal layout',
|
|
10
|
-
defaultValue: false,
|
|
11
|
-
},
|
|
12
|
-
right: {
|
|
13
|
-
control: { type: 'boolean' },
|
|
14
|
-
description: 'Align steps to the right (vertical layout only)',
|
|
15
|
-
defaultValue: false,
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
export default meta;
|
|
20
|
-
export const Default = {
|
|
21
|
-
args: {
|
|
22
|
-
horizontal: false,
|
|
23
|
-
right: false,
|
|
24
|
-
},
|
|
25
|
-
render: (args) => html `
|
|
26
|
-
<w-step-indicator ?horizontal=${args.horizontal} ?right=${args.right}>
|
|
27
|
-
<w-step completed>
|
|
28
|
-
<h3>Step 1: Account Setup</h3>
|
|
29
|
-
<p>Create your account and verify your email address.</p>
|
|
30
|
-
</w-step>
|
|
31
|
-
<w-step active>
|
|
32
|
-
<h3>Step 2: Profile Information</h3>
|
|
33
|
-
<p>Fill in your personal details and preferences.</p>
|
|
34
|
-
</w-step>
|
|
35
|
-
<w-step>
|
|
36
|
-
<h3>Step 3: Payment Method</h3>
|
|
37
|
-
<p>Add a payment method to complete your registration.</p>
|
|
38
|
-
</w-step>
|
|
39
|
-
<w-step>
|
|
40
|
-
<h3>Step 4: Confirmation</h3>
|
|
41
|
-
<p>Review and confirm your information.</p>
|
|
42
|
-
</w-step>
|
|
43
|
-
</w-step-indicator>
|
|
44
|
-
`,
|
|
45
|
-
};
|
|
46
|
-
export const Horizontal = {
|
|
47
|
-
args: {
|
|
48
|
-
horizontal: true,
|
|
49
|
-
right: false,
|
|
50
|
-
},
|
|
51
|
-
render: (args) => html `
|
|
52
|
-
<w-step-indicator ?horizontal=${args.horizontal} ?right=${args.right}>
|
|
53
|
-
<w-step completed>
|
|
54
|
-
<h4>Setup</h4>
|
|
55
|
-
<p>Account created</p>
|
|
56
|
-
</w-step>
|
|
57
|
-
<w-step completed>
|
|
58
|
-
<h4>Profile</h4>
|
|
59
|
-
<p>Information added</p>
|
|
60
|
-
</w-step>
|
|
61
|
-
<w-step active>
|
|
62
|
-
<h4>Payment</h4>
|
|
63
|
-
<p>Add payment method</p>
|
|
64
|
-
</w-step>
|
|
65
|
-
<w-step>
|
|
66
|
-
<h4>Done</h4>
|
|
67
|
-
<p>Complete setup</p>
|
|
68
|
-
</w-step>
|
|
69
|
-
</w-step-indicator>
|
|
70
|
-
`,
|
|
71
|
-
};
|
|
72
|
-
export const RightAligned = {
|
|
73
|
-
args: {
|
|
74
|
-
horizontal: false,
|
|
75
|
-
right: true,
|
|
76
|
-
},
|
|
77
|
-
render: (args) => html `
|
|
78
|
-
<w-step-indicator ?horizontal=${args.horizontal} ?right=${args.right}>
|
|
79
|
-
<w-step completed>
|
|
80
|
-
<h3>Order Placed</h3>
|
|
81
|
-
<p>Your order has been received and is being processed.</p>
|
|
82
|
-
<small>2:34 PM</small>
|
|
83
|
-
</w-step>
|
|
84
|
-
<w-step completed>
|
|
85
|
-
<h3>Payment Confirmed</h3>
|
|
86
|
-
<p>Payment has been successfully processed.</p>
|
|
87
|
-
<small>2:35 PM</small>
|
|
88
|
-
</w-step>
|
|
89
|
-
<w-step active>
|
|
90
|
-
<h3>Preparing for Shipment</h3>
|
|
91
|
-
<p>Your items are being prepared for shipment.</p>
|
|
92
|
-
</w-step>
|
|
93
|
-
<w-step>
|
|
94
|
-
<h3>Shipped</h3>
|
|
95
|
-
<p>Your order is on its way!</p>
|
|
96
|
-
</w-step>
|
|
97
|
-
</w-step-indicator>
|
|
98
|
-
`,
|
|
99
|
-
};
|
|
100
|
-
export const SimpleSteps = {
|
|
101
|
-
render: () => html `
|
|
102
|
-
<w-step-indicator>
|
|
103
|
-
<w-step completed>
|
|
104
|
-
<strong>Step 1</strong>
|
|
105
|
-
</w-step>
|
|
106
|
-
<w-step completed>
|
|
107
|
-
<strong>Step 2</strong>
|
|
108
|
-
</w-step>
|
|
109
|
-
<w-step active>
|
|
110
|
-
<strong>Step 3</strong>
|
|
111
|
-
</w-step>
|
|
112
|
-
<w-step>
|
|
113
|
-
<strong>Step 4</strong>
|
|
114
|
-
</w-step>
|
|
115
|
-
<w-step>
|
|
116
|
-
<strong>Step 5</strong>
|
|
117
|
-
</w-step>
|
|
118
|
-
</w-step-indicator>
|
|
119
|
-
`,
|
|
120
|
-
};
|
|
121
|
-
export const SimpleHorizontal = {
|
|
122
|
-
render: () => html `
|
|
123
|
-
<w-step-indicator horizontal>
|
|
124
|
-
<w-step completed>
|
|
125
|
-
<strong>Start</strong>
|
|
126
|
-
</w-step>
|
|
127
|
-
<w-step completed>
|
|
128
|
-
<strong>Progress</strong>
|
|
129
|
-
</w-step>
|
|
130
|
-
<w-step active>
|
|
131
|
-
<strong>Current</strong>
|
|
132
|
-
</w-step>
|
|
133
|
-
<w-step>
|
|
134
|
-
<strong>Next</strong>
|
|
135
|
-
</w-step>
|
|
136
|
-
<w-step>
|
|
137
|
-
<strong>End</strong>
|
|
138
|
-
</w-step>
|
|
139
|
-
</w-step-indicator>
|
|
140
|
-
`,
|
|
141
|
-
};
|
|
142
|
-
export const AllCompleted = {
|
|
143
|
-
render: () => html `
|
|
144
|
-
<w-step-indicator>
|
|
145
|
-
<w-step completed>
|
|
146
|
-
<h3>Registration</h3>
|
|
147
|
-
<p>Account successfully created</p>
|
|
148
|
-
</w-step>
|
|
149
|
-
<w-step completed>
|
|
150
|
-
<h3>Verification</h3>
|
|
151
|
-
<p>Email address verified</p>
|
|
152
|
-
</w-step>
|
|
153
|
-
<w-step completed>
|
|
154
|
-
<h3>Setup</h3>
|
|
155
|
-
<p>Profile information completed</p>
|
|
156
|
-
</w-step>
|
|
157
|
-
<w-step completed>
|
|
158
|
-
<h3>Welcome</h3>
|
|
159
|
-
<p>You're all set to get started!</p>
|
|
160
|
-
</w-step>
|
|
161
|
-
</w-step-indicator>
|
|
162
|
-
`,
|
|
163
|
-
};
|
|
164
|
-
export const MinimalExample = {
|
|
165
|
-
render: () => html `
|
|
166
|
-
<w-step-indicator>
|
|
167
|
-
<w-step completed>First</w-step>
|
|
168
|
-
<w-step active>Second</w-step>
|
|
169
|
-
<w-step>Third</w-step>
|
|
170
|
-
</w-step-indicator>
|
|
171
|
-
`,
|
|
172
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const styles: import("lit").CSSResult;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
export const styles = css `*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.text-center{text-align:center}.text-right{text-align:right}.border-2{border-width:2px}.rounded-full{border-radius:9999px}.flex{display:flex}.grid{display:grid}.flex-1{flex:1}.gap-x-16{column-gap:1.6rem}.gap-y-16{row-gap:1.6rem}.row-span-2{grid-row:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.row-start-1{grid-row-start:1}.row-start-2{grid-row-start:2}.col-start-2{grid-column-start:2}.grid-flow-col{grid-auto-flow:column}.grid-rows-\\[20px_auto\\]{grid-template-rows:20px auto}.grid-rows-\\[auto_20px\\]{grid-template-rows:auto 20px}.grid-cols-\\[1fr_20px_1fr\\]{grid-template-columns:1fr 20px 1fr}.grid-cols-\\[1fr_20px\\]{grid-template-columns:1fr 20px}.grid-cols-\\[20px_1fr\\]{grid-template-columns:20px 1fr}.items-center{align-items:center}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.s-icon-inverted{color:var(--w-s-color-icon-inverted)}.s-border{border-color:var(--w-s-color-border)}.s-border-primary{border-color:var(--w-s-color-border-primary)}.h-2{height:.2rem}.h-20{height:2rem}.h-full{height:100%}.w-2{width:.2rem}.w-20{width:2rem}.w-full{width:100%}.last\\:mb-0:last-child{margin-bottom:0}.px-16{padding-left:1.6rem;padding-right:1.6rem}.pb-0{padding-bottom:0}.pb-32{padding-bottom:3.2rem}.invisible{visibility:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}`;
|
|
@@ -1,51 +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 { html, LitElement } from 'lit';
|
|
8
|
-
import { property } from 'lit/decorators.js';
|
|
9
|
-
import { reset } from '../styles.js';
|
|
10
|
-
import { styles } from './styles.js';
|
|
11
|
-
/**
|
|
12
|
-
* Tab panel component that holds content for individual tabs.
|
|
13
|
-
* Each tab panel should have a name that matches a corresponding tab.
|
|
14
|
-
*
|
|
15
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
16
|
-
*/
|
|
17
|
-
export class WarpTabPanel extends LitElement {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.hidden = true;
|
|
21
|
-
}
|
|
22
|
-
static { this.styles = [reset, styles]; }
|
|
23
|
-
connectedCallback() {
|
|
24
|
-
super.connectedCallback();
|
|
25
|
-
this.setAttribute('tabindex', '-1');
|
|
26
|
-
this.setAttribute('role', 'tabpanel');
|
|
27
|
-
// Set aria-labelledby to reference the corresponding tab
|
|
28
|
-
if (this.name) {
|
|
29
|
-
this.setAttribute('aria-labelledby', `warp-tab-${this.name}`);
|
|
30
|
-
this.setAttribute('id', `warp-tabpanel-${this.name}`);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
updated(changedProperties) {
|
|
34
|
-
if (changedProperties.has('name') && this.name) {
|
|
35
|
-
this.setAttribute('aria-labelledby', `warp-tab-${this.name}`);
|
|
36
|
-
this.setAttribute('id', `warp-tabpanel-${this.name}`);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
render() {
|
|
40
|
-
return html `<slot></slot>`;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
__decorate([
|
|
44
|
-
property({ reflect: true })
|
|
45
|
-
], WarpTabPanel.prototype, "name", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
property({ type: Boolean, reflect: true })
|
|
48
|
-
], WarpTabPanel.prototype, "hidden", void 0);
|
|
49
|
-
if (!customElements.get('w-tab-panel')) {
|
|
50
|
-
customElements.define('w-tab-panel', WarpTabPanel);
|
|
51
|
-
}
|
|
@@ -1,104 +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 { classNames } from '@chbphone55/classnames';
|
|
8
|
-
import { html, LitElement } from 'lit';
|
|
9
|
-
import { property } from 'lit/decorators.js';
|
|
10
|
-
import { reset } from '../styles.js';
|
|
11
|
-
import { styles } from './styles.js';
|
|
12
|
-
const ccTab = {
|
|
13
|
-
base: 'grid w-full items-center font-bold gap-8 antialias p-16 pb-8 border-b-4 bg-transparent border-transparent hover:s-text-link hover:s-border-primary',
|
|
14
|
-
inactive: 's-text-subtle',
|
|
15
|
-
active: 's-text-link s-border-selected',
|
|
16
|
-
icon: 'mx-auto',
|
|
17
|
-
content: 'flex items-center justify-center gap-8',
|
|
18
|
-
contentUnderlined: 'content-underlined', // content-underlined is a no-op that prevents a quirk in how Vue handles class bindings
|
|
19
|
-
};
|
|
20
|
-
const ccButtonReset = 'focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block';
|
|
21
|
-
/**
|
|
22
|
-
* Individual tab component used within w-tabs container.
|
|
23
|
-
*
|
|
24
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
25
|
-
*/
|
|
26
|
-
export class WarpTab extends LitElement {
|
|
27
|
-
constructor() {
|
|
28
|
-
super(...arguments);
|
|
29
|
-
this.label = '';
|
|
30
|
-
this.active = false;
|
|
31
|
-
this.over = false;
|
|
32
|
-
this.tabClass = '';
|
|
33
|
-
this._handleClick = (event) => {
|
|
34
|
-
// Dispatch a custom event that the parent tabs component can listen to
|
|
35
|
-
this.dispatchEvent(new CustomEvent('tab-click', {
|
|
36
|
-
detail: { name: this.name },
|
|
37
|
-
bubbles: true,
|
|
38
|
-
composed: true,
|
|
39
|
-
}));
|
|
40
|
-
// Also dispatch a generic click event for any click handlers
|
|
41
|
-
this.dispatchEvent(new CustomEvent('click', {
|
|
42
|
-
detail: { name: this.name, originalEvent: event },
|
|
43
|
-
bubbles: true,
|
|
44
|
-
composed: true,
|
|
45
|
-
}));
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
static { this.styles = [reset, styles]; }
|
|
49
|
-
get _classes() {
|
|
50
|
-
return classNames(this.tabClass, [ccButtonReset, ccTab.base, this.active ? ccTab.active : ccTab.inactive]);
|
|
51
|
-
}
|
|
52
|
-
get _hasChildren() {
|
|
53
|
-
return this.querySelector('[slot="icon"]') !== null || this.innerHTML.trim() !== this.label;
|
|
54
|
-
}
|
|
55
|
-
render() {
|
|
56
|
-
const hasChildren = this._hasChildren;
|
|
57
|
-
return html `
|
|
58
|
-
<button
|
|
59
|
-
type="button"
|
|
60
|
-
role="tab"
|
|
61
|
-
aria-selected="${this.active ? 'true' : 'false'}"
|
|
62
|
-
aria-controls="${this.active ? `warp-tabpanel-${this.name}` : ''}"
|
|
63
|
-
id="warp-tab-${this.name}"
|
|
64
|
-
class="${this._classes}"
|
|
65
|
-
@click="${this._handleClick}"
|
|
66
|
-
tabindex="${ /* This needs to be -1 to prevent the auto-focus on buttons, messing up tab order */-1}"
|
|
67
|
-
style="height: 100%">
|
|
68
|
-
${!hasChildren
|
|
69
|
-
? html `<span class="${ccTab.contentUnderlined}">${this.label}</span>`
|
|
70
|
-
: this.over
|
|
71
|
-
? html `
|
|
72
|
-
<span class="${ccTab.icon}">
|
|
73
|
-
<slot name="icon"></slot>
|
|
74
|
-
</span>
|
|
75
|
-
<span class="${ccTab.contentUnderlined}">${this.label}</span>
|
|
76
|
-
`
|
|
77
|
-
: html `
|
|
78
|
-
<div class="${ccTab.content}">
|
|
79
|
-
<slot name="icon"></slot>
|
|
80
|
-
${this.label}
|
|
81
|
-
</div>
|
|
82
|
-
`}
|
|
83
|
-
</button>
|
|
84
|
-
`;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
__decorate([
|
|
88
|
-
property({ reflect: true })
|
|
89
|
-
], WarpTab.prototype, "name", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
property({ reflect: true })
|
|
92
|
-
], WarpTab.prototype, "label", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
property({ type: Boolean, reflect: true })
|
|
95
|
-
], WarpTab.prototype, "active", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
property({ type: Boolean, reflect: true })
|
|
98
|
-
], WarpTab.prototype, "over", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
property({ attribute: 'tab-class', reflect: true })
|
|
101
|
-
], WarpTab.prototype, "tabClass", void 0);
|
|
102
|
-
if (!customElements.get('w-tab')) {
|
|
103
|
-
customElements.define('w-tab', WarpTab);
|
|
104
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './textarea.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './textarea.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const messages: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*eslint-disable*/ export const messages = JSON.parse("{\"textarea.label.optional\":[\"(valgfrit)\"]}");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const messages: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*eslint-disable*/ export const messages = JSON.parse("{\"textarea.label.optional\":[\"(optional)\"]}");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const messages: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*eslint-disable*/ export const messages = JSON.parse("{\"textarea.label.optional\":[\"(vapaaehtoinen)\"]}");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const messages: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*eslint-disable*/ export const messages = JSON.parse("{\"textarea.label.optional\":[\"(valgfritt)\"]}");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const messages: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*eslint-disable*/ export const messages = JSON.parse("{\"textarea.label.optional\":[\"(valfritt)\"]}");
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { WarpTextarea } from './index.js';
|
|
2
|
-
export declare const Textarea: import("@lit/react").ReactWebComponent<WarpTextarea, {
|
|
3
|
-
onBlur: string;
|
|
4
|
-
onblur: string;
|
|
5
|
-
onChange: string;
|
|
6
|
-
onchange: string;
|
|
7
|
-
onInput: string;
|
|
8
|
-
oninput: string;
|
|
9
|
-
onFocus: string;
|
|
10
|
-
onfocus: string;
|
|
11
|
-
}>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import { createComponent } from '@lit/react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
// decouple from CDN by providing a dummy class
|
|
5
|
-
class Component extends LitElement {
|
|
6
|
-
}
|
|
7
|
-
export const Textarea = createComponent({
|
|
8
|
-
tagName: 'w-textarea',
|
|
9
|
-
elementClass: Component,
|
|
10
|
-
react: React,
|
|
11
|
-
events: {
|
|
12
|
-
onBlur: 'blur',
|
|
13
|
-
onblur: 'blur',
|
|
14
|
-
onChange: 'change',
|
|
15
|
-
onchange: 'change',
|
|
16
|
-
onInput: 'input',
|
|
17
|
-
oninput: 'input',
|
|
18
|
-
onFocus: 'focus',
|
|
19
|
-
onfocus: 'focus',
|
|
20
|
-
},
|
|
21
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const styles: import("lit").CSSResult;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
export const styles = css `*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.focus\\:\\[--w-outline-offset\\:-2px\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.border-1{border-width:1px}.rounded-4{border-radius:4px}.caret-current{caret-color:currentColor}.block{display:block}.flex{display:flex}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.outline-\\[--w-s-color-border-negative\\]\\!{outline-color:var(--w-s-color-border-negative)!important}.fixed{position:fixed}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-text{color:var(--w-s-color-text)}.s-text-disabled{color:var(--w-s-color-text-disabled)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-text-subtle{color:var(--w-s-color-text-subtle)}.placeholder\\:s-text-placeholder::placeholder{color:var(--w-s-color-text-placeholder)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-negative{border-color:var(--w-s-color-border-negative)}.s-border-strong{border-color:var(--w-s-color-border-strong)}.hover\\:s-border-negative-hover:hover{border-color:var(--w-s-color-border-negative-hover)}.hover\\:s-border-strong-hover:hover{border-color:var(--w-s-color-border-strong-hover)}.active\\:s-border-selected:active{border-color:var(--w-s-color-border-selected)}.w-full{width:100%}.min-h-\\[42\\]{min-height:4.2rem}.mb-0{margin-bottom:0}.mt-4{margin-top:.4rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.pb-4{padding-bottom:.4rem}.pl-0{padding-left:0}.pl-8{padding-left:.8rem}.pr-40{padding-right:4rem}.pl-\\[var\\(--w-prefix-width\\,_40px\\)\\]{padding-left:var(--w-prefix-width,40px)}.cursor-pointer{cursor:pointer}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.font-normal{font-weight:400}.pointer-events-none{pointer-events:none}.resize{resize:both}.resize-none{resize:none}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-m{line-height:var(--w-line-height-m)}@media (min-width:480px){.sm\\:min-h-\\[45\\]{min-height:4.5rem}}`;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
declare const WarpTextarea_base: import("@open-wc/form-control").Constructor<import("@open-wc/form-control").FormControlInterface> & typeof LitElement;
|
|
3
|
-
/**
|
|
4
|
-
* A single line text input element.
|
|
5
|
-
*
|
|
6
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
7
|
-
*/
|
|
8
|
-
declare class WarpTextarea extends WarpTextarea_base {
|
|
9
|
-
#private;
|
|
10
|
-
static shadowRootOptions: {
|
|
11
|
-
delegatesFocus: boolean;
|
|
12
|
-
mode: ShadowRootMode;
|
|
13
|
-
serializable?: boolean;
|
|
14
|
-
slotAssignment?: SlotAssignmentMode;
|
|
15
|
-
};
|
|
16
|
-
disabled: boolean;
|
|
17
|
-
invalid: boolean;
|
|
18
|
-
label: string;
|
|
19
|
-
helpText: string;
|
|
20
|
-
maxRows: number;
|
|
21
|
-
minRows: number;
|
|
22
|
-
name: string;
|
|
23
|
-
placeholder: string;
|
|
24
|
-
/** @deprecated Use the native readonly attribute instead. Here for API consistency with `w-textfield`. */
|
|
25
|
-
readOnly: boolean;
|
|
26
|
-
readonly: boolean;
|
|
27
|
-
required: boolean;
|
|
28
|
-
value: string;
|
|
29
|
-
optional: boolean;
|
|
30
|
-
minHeight: number;
|
|
31
|
-
maxHeight: number;
|
|
32
|
-
updated(changedProperties: PropertyValues<this>): void;
|
|
33
|
-
resetFormControl(): void;
|
|
34
|
-
static styles: import("lit").CSSResult[];
|
|
35
|
-
/** @internal */
|
|
36
|
-
get _textareaStyles(): string;
|
|
37
|
-
/** @internal */
|
|
38
|
-
get _helptextstyles(): string;
|
|
39
|
-
/** @internal */
|
|
40
|
-
get _helpId(): string;
|
|
41
|
-
/** @internal */
|
|
42
|
-
get _id(): string;
|
|
43
|
-
/** @internal */
|
|
44
|
-
get _error(): string;
|
|
45
|
-
connectedCallback(): Promise<void>;
|
|
46
|
-
handler(e: InputEvent): void;
|
|
47
|
-
render(): import("lit").TemplateResult<1>;
|
|
48
|
-
}
|
|
49
|
-
export { WarpTextarea };
|