@warp-ds/elements 2.4.0-next.1 → 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 +628 -848
- package/dist/index.d.ts +3318 -1397
- 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.stories.d.ts +2 -1
- package/dist/packages/checkbox/checkbox.stories.js +2 -1
- package/dist/packages/checkbox/react.d.ts +0 -2
- package/dist/packages/checkbox/react.js +0 -5
- package/dist/packages/{checkbox → checkbox-group}/checkbox-group.js.map +1 -1
- package/dist/packages/checkbox-group/react.d.ts +2 -0
- package/dist/packages/checkbox-group/react.js +11 -0
- package/dist/packages/combobox/{index.d.ts → combobox.d.ts} +2 -4
- package/dist/packages/combobox/{index.js → combobox.js} +10 -9
- package/dist/packages/combobox/combobox.js.map +7 -0
- 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 -0
- package/dist/packages/combobox/combobox.test.js +21 -0
- 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.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/{deadtoggle/index.js → dead-toggle/dead-toggle.js} +1 -1
- package/dist/packages/{deadtoggle/index.js.map → dead-toggle/dead-toggle.js.map} +1 -1
- package/dist/packages/dead-toggle/dead-toggle.react.stories.d.ts +15 -0
- package/dist/packages/{deadtoggle → dead-toggle}/dead-toggle.stories.d.ts +2 -2
- package/dist/packages/{deadtoggle → dead-toggle}/dead-toggle.stories.js +1 -1
- package/dist/packages/dead-toggle/dead-toggle.test.d.ts +1 -0
- package/dist/packages/{deadtoggle → dead-toggle}/dead-toggle.test.js +1 -1
- package/dist/packages/{deadtoggle → dead-toggle}/react.d.ts +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/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.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/{tabs/tab.js.map → modal-header/modal-header.js.map} +4 -4
- package/dist/packages/modal-header/react.d.ts +5 -0
- package/dist/packages/modal-header/react.js +15 -0
- package/dist/packages/{pageindicator/index.js → page-indicator/page-indicator.js} +9 -9
- package/dist/packages/{pageindicator/index.js.map → page-indicator/page-indicator.js.map} +3 -3
- 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/{pageindicator/pageindicator.stories.js → page-indicator/page-indicator.stories.js} +7 -7
- 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/pagination/{index.js → pagination.js} +5 -5
- package/dist/packages/pagination/pagination.js.map +7 -0
- package/dist/packages/pagination/pagination.react.stories.d.ts +4 -4
- package/dist/packages/pagination/pagination.stories.d.ts +2 -2
- package/dist/packages/pagination/pagination.stories.js +1 -1
- package/dist/packages/pagination/pagination.test.d.ts +1 -1
- package/dist/packages/pagination/pagination.test.js +1 -1
- package/dist/packages/pagination/react.d.ts +1 -1
- package/dist/packages/pagination/react.js +1 -1
- 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/radio-styles.js +0 -1
- package/dist/packages/radio/radio.js +120 -120
- package/dist/packages/radio/radio.js.map +4 -4
- package/dist/packages/radio/radio.stories.d.ts +3 -3
- package/dist/packages/radio/radio.stories.js +47 -3688
- package/dist/packages/radio/react.d.ts +0 -7
- package/dist/packages/radio/react.js +1 -12
- package/dist/packages/{radio → radio-group}/radio-group-styles.js +3 -3
- package/dist/packages/{radio → radio-group}/radio-group.d.ts +4 -4
- package/dist/packages/{radio → radio-group}/radio-group.js +112 -112
- 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/index.d.ts +1 -1
- package/dist/packages/slider/index.js +1 -1
- package/dist/packages/slider/react.d.ts +1 -6
- package/dist/packages/slider/react.js +3 -10
- package/dist/packages/slider/slider.js +20 -53
- package/dist/packages/slider/slider.js.map +4 -4
- package/dist/packages/slider/slider.stories.d.ts +5 -4
- package/dist/packages/slider/slider.stories.js +13 -12
- package/dist/packages/slider/slider.test.d.ts +5 -4
- package/dist/packages/slider/slider.test.js +5 -4
- package/dist/packages/slider/styles/w-slider.styles.js +13 -46
- package/dist/packages/slider-thumb/react.d.ts +6 -0
- package/dist/packages/slider-thumb/react.js +15 -0
- package/dist/packages/{slider → slider-thumb}/slider-thumb.d.ts +1 -1
- package/dist/packages/{slider → slider-thumb}/slider-thumb.js +14 -14
- package/dist/packages/slider-thumb/slider-thumb.js.map +7 -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/{stepindicator/index.js → step/step.js} +9 -13
- 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/react.d.ts +3 -0
- package/dist/packages/{stepindicator → step-indicator}/react.js +3 -6
- 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/{stepindicator → step-indicator}/stepindicator.react.stories.d.ts +1 -1
- package/dist/packages/{stepindicator → step-indicator}/stepindicator.stories.d.ts +2 -1
- package/dist/packages/{stepindicator → step-indicator}/stepindicator.stories.js +2 -1
- package/dist/packages/step-indicator/styles.d.ts +1 -0
- 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/{tabs → tab}/tab.js +14 -14
- 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 +8 -6
- package/dist/packages/tabs/tabs.js.map +3 -3
- 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/textarea/react.d.ts +1 -1
- package/dist/packages/textarea/react.js +1 -1
- package/dist/packages/textarea/textarea.react.stories.d.ts +2 -2
- package/dist/packages/textarea/textarea.stories.d.ts +2 -2
- package/dist/packages/textarea/textarea.stories.js +1 -1
- package/dist/packages/textarea/textarea.test.d.ts +1 -1
- package/dist/packages/textarea/textarea.test.js +1 -1
- 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/web-types.json +109 -113
- package/package.json +135 -70
- package/dist/packages/button/index.js.map +0 -7
- package/dist/packages/checkbox/index.d.ts +0 -2
- package/dist/packages/checkbox/index.js +0 -2
- package/dist/packages/combobox/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/deadtoggle/dead-toggle.react.stories.d.ts +0 -15
- package/dist/packages/deadtoggle/dead-toggle.test.d.ts +0 -1
- 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/pagination/index.js.map +0 -7
- package/dist/packages/radio/index.d.ts +0 -2
- package/dist/packages/radio/index.js +0 -2
- package/dist/packages/radio/radio-group-styles.js.map +0 -7
- package/dist/packages/radio/radio-group.js.map +0 -7
- package/dist/packages/radio/radio-styles.js.map +0 -7
- package/dist/packages/radio/radio.stories.js.map +0 -7
- package/dist/packages/select/index.js.map +0 -7
- package/dist/packages/slider/slider-thumb.js.map +0 -7
- package/dist/packages/stepindicator/index.d.ts +0 -37
- package/dist/packages/stepindicator/index.js.map +0 -7
- package/dist/packages/stepindicator/react.d.ts +0 -3
- package/dist/packages/tabs/tab-panel.js +0 -51
- package/dist/packages/textarea/index.d.ts +0 -1
- package/dist/packages/textarea/index.js +0 -1
- 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/{checkbox → checkbox-group}/checkbox-group.d.ts +0 -0
- package/dist/packages/{checkbox → checkbox-group}/checkbox-group.js +0 -0
- package/dist/packages/{deadtoggle/index.d.ts → dead-toggle/dead-toggle.d.ts} +0 -0
- package/dist/packages/{deadtoggle → dead-toggle}/dead-toggle.react.stories.js +0 -0
- package/dist/packages/{deadtoggle → dead-toggle}/react.js +1 -1
- /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/{pageindicator/index.d.ts → page-indicator/page-indicator.d.ts} +0 -0
- /package/dist/packages/{pageindicator/pageindicator.react.stories.js → page-indicator/page-indicator.react.stories.js} +0 -0
- /package/dist/packages/{radio/radio-group-styles.d.ts → page-indicator/style.d.ts} +0 -0
- /package/dist/packages/pagination/{index.d.ts → pagination.d.ts} +0 -0
- /package/dist/packages/pill/{index.d.ts → pill.d.ts} +0 -0
- /package/dist/packages/{stepindicator/styles.d.ts → radio-group/radio-group-styles.d.ts} +0 -0
- /package/dist/packages/select/{index.d.ts → select.d.ts} +0 -0
- /package/dist/packages/{slider → slider-thumb}/SliderThumb.d.ts +0 -0
- /package/dist/packages/{slider → slider-thumb}/SliderThumb.js +0 -0
- /package/dist/packages/{slider → slider-thumb}/oddbird-css-anchor-positioning.d.ts +0 -0
- /package/dist/packages/{slider → slider-thumb}/oddbird-css-anchor-positioning.js +0 -0
- /package/dist/packages/{slider → slider-thumb}/styles/w-slider-thumb.styles.d.ts +0 -0
- /package/dist/packages/{slider → slider-thumb}/styles/w-slider-thumb.styles.js +0 -0
- /package/dist/packages/{stepindicator → step-indicator}/locales/da/messages.d.mts +0 -0
- /package/dist/packages/{stepindicator → step-indicator}/locales/da/messages.mjs +0 -0
- /package/dist/packages/{stepindicator → step-indicator}/locales/en/messages.d.mts +0 -0
- /package/dist/packages/{stepindicator → step-indicator}/locales/en/messages.mjs +0 -0
- /package/dist/packages/{stepindicator → step-indicator}/locales/fi/messages.d.mts +0 -0
- /package/dist/packages/{stepindicator → step-indicator}/locales/fi/messages.mjs +0 -0
- /package/dist/packages/{stepindicator → step-indicator}/locales/nb/messages.d.mts +0 -0
- /package/dist/packages/{stepindicator → step-indicator}/locales/nb/messages.mjs +0 -0
- /package/dist/packages/{stepindicator → step-indicator}/locales/sv/messages.d.mts +0 -0
- /package/dist/packages/{stepindicator → step-indicator}/locales/sv/messages.mjs +0 -0
- /package/dist/packages/{stepindicator → step-indicator}/stepindicator.react.stories.js +0 -0
- /package/dist/packages/{stepindicator → step-indicator}/styles.js +0 -0
- /package/dist/packages/switch/{index.d.ts → switch.d.ts} +0 -0
- /package/dist/packages/{toast → toast-container}/toast-container.js +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import '@warp-ds/
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
4
|
-
import './
|
|
1
|
+
import '@warp-ds/components/icon';
|
|
2
|
+
import '../tab-panel/tab-panel.js';
|
|
3
|
+
import '../tab/tab.js';
|
|
4
|
+
import './tabs.js';
|
|
5
5
|
declare const meta: {
|
|
6
6
|
title: string;
|
|
7
7
|
};
|
|
8
8
|
export default meta;
|
|
9
9
|
export declare const Default: () => import("lit").TemplateResult<1>;
|
|
10
10
|
export declare const WithIcons: () => import("lit").TemplateResult<1>;
|
|
11
|
+
export declare const WithIconsOver: () => import("lit").TemplateResult<1>;
|
|
11
12
|
export declare const ManyTabs: () => import("lit").TemplateResult<1>;
|
|
@@ -1,93 +1,117 @@
|
|
|
1
|
+
import '@warp-ds/components/icon';
|
|
1
2
|
import { html } from 'lit';
|
|
2
|
-
import '
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
5
|
-
import './index.js';
|
|
3
|
+
import '../tab-panel/tab-panel.js';
|
|
4
|
+
import '../tab/tab.js';
|
|
5
|
+
import './tabs.js';
|
|
6
6
|
const meta = {
|
|
7
7
|
title: 'Components/Tabs',
|
|
8
8
|
};
|
|
9
9
|
export default meta;
|
|
10
10
|
export const Default = () => html `
|
|
11
11
|
<w-tabs active="tab1">
|
|
12
|
-
<w-tab name="tab1" label="First Tab"></w-tab>
|
|
13
|
-
<w-tab name="tab2" label="Second Tab"></w-tab>
|
|
14
|
-
<w-tab name="tab3" label="Third Tab"></w-tab>
|
|
15
|
-
</w-tabs>
|
|
16
12
|
|
|
17
|
-
|
|
18
|
-
<
|
|
19
|
-
|
|
13
|
+
<w-tab for="tab1">First Tab</w-tab>
|
|
14
|
+
<w-tab-panel id="tab1">
|
|
15
|
+
<p>Content for the first tab. This panel is visible when the first tab is active.</p>
|
|
16
|
+
</w-tab-panel>
|
|
17
|
+
|
|
18
|
+
<w-tab for="tab2">Second Tab</w-tab>
|
|
19
|
+
<w-tab-panel id="tab2" hidden>
|
|
20
|
+
<p>Content for the second tab. This panel is visible when the second tab is active.</p>
|
|
21
|
+
</w-tab-panel>
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
<
|
|
23
|
-
|
|
23
|
+
<w-tab for="tab3">Third Tab</w-tab>
|
|
24
|
+
<w-tab-panel id="tab3" hidden>
|
|
25
|
+
<p>Content for the third tab. This panel is visible when the third tab is active.</p>
|
|
26
|
+
</w-tab-panel>
|
|
27
|
+
|
|
28
|
+
</w-tabs>
|
|
24
29
|
|
|
25
|
-
<w-tab-panel name="tab3" hidden>
|
|
26
|
-
<p>Content for the third tab. This panel is visible when the third tab is active.</p>
|
|
27
|
-
</w-tab-panel>
|
|
28
30
|
`;
|
|
29
31
|
export const WithIcons = () => html `
|
|
30
32
|
<w-tabs active="info">
|
|
31
|
-
<w-tab
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
</span>
|
|
33
|
+
<w-tab for="info">
|
|
34
|
+
<w-icon name="Info" slot="icon"></w-icon>
|
|
35
|
+
Info
|
|
35
36
|
</w-tab>
|
|
36
|
-
<w-tab
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
<w-tab-panel id="info">
|
|
38
|
+
<p>Info content.</p>
|
|
39
|
+
</w-tab-panel>
|
|
40
|
+
|
|
41
|
+
<w-tab for="done">
|
|
42
|
+
<w-icon name="Success" slot="icon"></w-icon>
|
|
43
|
+
Done
|
|
40
44
|
</w-tab>
|
|
41
|
-
<w-tab
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
<w-tab-panel id="done" hidden>
|
|
46
|
+
<p>Done content.</p>
|
|
47
|
+
</w-tab-panel>
|
|
48
|
+
|
|
49
|
+
<w-tab for="error">
|
|
50
|
+
<w-icon name="Error" slot="icon"></w-icon>
|
|
51
|
+
Failures
|
|
45
52
|
</w-tab>
|
|
53
|
+
<w-tab-panel id="error" hidden>
|
|
54
|
+
<p>Error content.</p>
|
|
55
|
+
</w-tab-panel>
|
|
46
56
|
</w-tabs>
|
|
57
|
+
`;
|
|
58
|
+
export const WithIconsOver = () => html `
|
|
59
|
+
<w-tabs active="info">
|
|
60
|
+
<w-tab for="info" over>
|
|
61
|
+
<w-icon name="Info" slot="icon"></w-icon>
|
|
62
|
+
Info
|
|
63
|
+
</w-tab>
|
|
64
|
+
<w-tab-panel id="info">
|
|
65
|
+
<p>Info content.</p>
|
|
66
|
+
</w-tab-panel>
|
|
47
67
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
68
|
+
<w-tab for="done" over>
|
|
69
|
+
<w-icon name="Success" slot="icon"></w-icon>
|
|
70
|
+
Done
|
|
71
|
+
</w-tab>
|
|
72
|
+
<w-tab-panel id="done" hidden>
|
|
73
|
+
<p>Done content.</p>
|
|
74
|
+
</w-tab-panel>
|
|
55
75
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
76
|
+
<w-tab for="error" over>
|
|
77
|
+
<w-icon name="Error" slot="icon"></w-icon>
|
|
78
|
+
Failures
|
|
79
|
+
</w-tab>
|
|
80
|
+
<w-tab-panel id="error" hidden>
|
|
81
|
+
<p>Error content.</p>
|
|
82
|
+
</w-tab-panel>
|
|
83
|
+
</w-tabs>
|
|
59
84
|
`;
|
|
60
85
|
export const ManyTabs = () => html `
|
|
61
86
|
<w-tabs active="tab1">
|
|
62
|
-
<w-tab
|
|
63
|
-
<w-tab
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
<w-tab name="tab5" label="Tab 5"></w-tab>
|
|
67
|
-
<w-tab name="tab6" label="Tab 6"></w-tab>
|
|
68
|
-
</w-tabs>
|
|
87
|
+
<w-tab for="tab1">Tab 1</w-tab>
|
|
88
|
+
<w-tab-panel id="tab1">
|
|
89
|
+
<p>Content for tab 1</p>
|
|
90
|
+
</w-tab-panel>
|
|
69
91
|
|
|
70
|
-
|
|
71
|
-
<
|
|
72
|
-
|
|
92
|
+
<w-tab for="tab2">Tab 2</w-tab>
|
|
93
|
+
<w-tab-panel id="tab2" hidden>
|
|
94
|
+
<p>Content for tab 2</p>
|
|
95
|
+
</w-tab-panel>
|
|
73
96
|
|
|
74
|
-
|
|
75
|
-
<
|
|
76
|
-
|
|
97
|
+
<w-tab for="tab3">Tab 3</w-tab>
|
|
98
|
+
<w-tab-panel id="tab3" hidden>
|
|
99
|
+
<p>Content for tab 3</p>
|
|
100
|
+
</w-tab-panel>
|
|
77
101
|
|
|
78
|
-
|
|
79
|
-
<
|
|
80
|
-
|
|
102
|
+
<w-tab for="tab4">Tab 4</w-tab>
|
|
103
|
+
<w-tab-panel id="tab4" hidden>
|
|
104
|
+
<p>Content for tab 4</p>
|
|
105
|
+
</w-tab-panel>
|
|
81
106
|
|
|
82
|
-
|
|
83
|
-
<
|
|
84
|
-
|
|
107
|
+
<w-tab for="tab5">Tab 5</w-tab>
|
|
108
|
+
<w-tab-panel id="tab5" hidden>
|
|
109
|
+
<p>Content for tab 5</p>
|
|
110
|
+
</w-tab-panel>
|
|
85
111
|
|
|
86
|
-
|
|
87
|
-
<
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
<p>Content for tab 6</p>
|
|
92
|
-
</w-tab-panel>
|
|
112
|
+
<w-tab for="tab6">Tab 6</w-tab>
|
|
113
|
+
<w-tab-panel id="tab6" hidden>
|
|
114
|
+
<p>Content for tab 6</p>
|
|
115
|
+
</w-tab-panel>
|
|
116
|
+
</w-tabs>
|
|
93
117
|
`;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { Textarea } from './react';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
title: string;
|
|
6
|
-
render(args: Omit<React.HTMLAttributes<import("./textarea").WarpTextarea>, "label" | "onblur" | "onchange" | "onfocus" | "oninput" | "onFocus" | "onBlur" | "onChange" | "onInput" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "form" | "disabled" | "name" | "value" | "updated" | "resetFormControl" | "validationTarget" | "internals" | "showError" | "validationMessage" | "validity" | "validationComplete" | "checkValidity" | "formResetCallback" | "valueChangedCallback" | "validityCallback" | "validationMessageCallback" | "setValue" | "shouldFormValueUpdate" | "invalid" | "
|
|
6
|
+
render(args: Omit<React.HTMLAttributes<import("./textarea").WarpTextarea>, "label" | "onblur" | "onchange" | "onfocus" | "oninput" | "onFocus" | "onBlur" | "onChange" | "onInput" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "form" | "disabled" | "name" | "value" | "updated" | "resetFormControl" | "validationTarget" | "internals" | "showError" | "validationMessage" | "validity" | "validationComplete" | "checkValidity" | "formResetCallback" | "valueChangedCallback" | "validityCallback" | "validationMessageCallback" | "setValue" | "shouldFormValueUpdate" | "invalid" | "placeholder" | "helpText" | "required" | "optional" | "readOnly" | "readonly" | "_helptextstyles" | "_helpId" | "_id" | "_error" | "handler" | "maxRows" | "minRows" | "minHeight" | "maxHeight" | "_textareaStyles"> & {
|
|
7
7
|
onBlur?: (e: Event) => void;
|
|
8
8
|
onblur?: (e: Event) => void;
|
|
9
9
|
onChange?: (e: Event) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
-
import type { WarpTextarea } from './
|
|
3
|
-
import './
|
|
2
|
+
import type { WarpTextarea } from './textarea.js';
|
|
3
|
+
import './textarea.js';
|
|
4
4
|
declare const args: Partial<WarpTextarea> & {
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
};
|
|
@@ -2,7 +2,7 @@ import { spread } from '@open-wc/lit-helpers';
|
|
|
2
2
|
import { getStorybookHelpers } from '@wc-toolkit/storybook-helpers';
|
|
3
3
|
import { html } from 'lit';
|
|
4
4
|
import { prespread } from '../../.storybook/utilities.js';
|
|
5
|
-
import './
|
|
5
|
+
import './textarea.js';
|
|
6
6
|
const { events, args, argTypes } = getStorybookHelpers('w-textarea');
|
|
7
7
|
const meta = {
|
|
8
8
|
title: 'Forms/Textarea',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './textarea.js';
|
|
@@ -2,7 +2,7 @@ import { userEvent } from '@vitest/browser/context';
|
|
|
2
2
|
import { html } from 'lit';
|
|
3
3
|
import { expect, test, vi } from 'vitest';
|
|
4
4
|
import { render } from 'vitest-browser-lit';
|
|
5
|
-
import './
|
|
5
|
+
import './textarea.js';
|
|
6
6
|
test('renders the textarea', async () => {
|
|
7
7
|
const component = html `<w-textarea label="Test label"></w-textarea>`;
|
|
8
8
|
const page = render(component);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var te=Object.defineProperty;var ae=Object.getOwnPropertyDescriptor;var R=a=>{throw TypeError(a)};var d=(a,e,r,o)=>{for(var l=o>1?void 0:o?ae(e,r):e,
|
|
1
|
+
var te=Object.defineProperty;var ae=Object.getOwnPropertyDescriptor;var R=a=>{throw TypeError(a)};var d=(a,e,r,o)=>{for(var l=o>1?void 0:o?ae(e,r):e,u=a.length-1,w;u>=0;u--)(w=a[u])&&(l=(o?w(e,r,l):w(l))||l);return o&&l&&te(e,r,l),l};var U=(a,e,r)=>e.has(a)||R("Cannot "+r);var H=(a,e,r)=>(U(a,e,"read from private field"),r?r.call(a):e.get(a)),D=(a,e,r)=>e.has(a)?R("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,r),G=(a,e,r,o)=>(U(a,e,"write to private field"),o?o.call(a,r):e.set(a,r),r);var j=function(){for(var a=[],e=arguments.length;e--;)a[e]=arguments[e];return a.reduce(function(r,o){return r.concat(typeof o=="string"?o:Array.isArray(o)?j.apply(void 0,o):typeof o=="object"&&o?Object.keys(o).map(function(l){return o[l]?l:""}):"")},[]).join(" ")};var n=function(a,e,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?a!==e||!o:!e.has(a))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(a):o?o.value:e.get(a)},h=function(a,e,r,o,l){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!l)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?a!==e||!l:!e.has(a))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?l.call(a,r):l?l.value=r:e.set(a,r),r};function J(a){var e,r,o,l,u,w,k,re,_,A,F,L,E,z,Y,f,X,O,Z;class oe extends a{constructor(...t){var i,b,p;super(...t),e.add(this),this.internals=this.attachInternals(),r.set(this,!1),o.set(this,!1),l.set(this,!1),u.set(this,void 0),w.set(this,void 0),k.set(this,!0),_.set(this,""),A.set(this,()=>{h(this,l,!0,"f"),h(this,r,!0,"f"),n(this,e,"m",f).call(this)}),F.set(this,()=>{h(this,r,!1,"f"),n(this,e,"m",X).call(this,this.shouldFormValueUpdate()?n(this,_,"f"):""),!this.validity.valid&&n(this,l,"f")&&h(this,o,!0,"f");let m=n(this,e,"m",f).call(this);this.validationMessageCallback&&this.validationMessageCallback(m?this.internals.validationMessage:"")}),L.set(this,()=>{var m;n(this,k,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),h(this,k,!1,"f")),h(this,l,!0,"f"),h(this,o,!0,"f"),n(this,e,"m",f).call(this),(m=this===null||this===void 0?void 0:this.validationMessageCallback)===null||m===void 0||m.call(this,this.showError?this.internals.validationMessage:"")}),E.set(this,void 0),z.set(this,!1),Y.set(this,Promise.resolve()),(i=this.addEventListener)===null||i===void 0||i.call(this,"focus",n(this,A,"f")),(b=this.addEventListener)===null||b===void 0||b.call(this,"blur",n(this,F,"f")),(p=this.addEventListener)===null||p===void 0||p.call(this,"invalid",n(this,L,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let t=this.validators.map(p=>p.attribute).flat(),i=super.observedAttributes||[];return[...new Set([...i,...t])]}static getValidator(t){return this.validators.find(i=>i.attribute===t)||null}static getValidators(t){return this.validators.filter(i=>{var b;if(i.attribute===t||!((b=i.attribute)===null||b===void 0)&&b.includes(t))return!0})}get form(){return this.internals.form}get showError(){return n(this,e,"m",f).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(t,i,b){var p;(p=super.attributeChangedCallback)===null||p===void 0||p.call(this,t,i,b);let $=this.constructor.getValidators(t);$!=null&&$.length&&this.validationTarget&&this.setValue(n(this,_,"f"))}setValue(t){var i;h(this,o,!1,"f"),(i=this.validationMessageCallback)===null||i===void 0||i.call(this,""),h(this,_,t,"f");let p=this.shouldFormValueUpdate()?t:null;this.internals.setFormValue(p),n(this,e,"m",X).call(this,p),this.valueChangedCallback&&this.valueChangedCallback(p),n(this,e,"m",f).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(t=>t(n(this,Y,"f")))}formResetCallback(){var t,i;h(this,l,!1,"f"),h(this,o,!1,"f"),n(this,e,"m",f).call(this),(t=this.resetFormControl)===null||t===void 0||t.call(this),(i=this.validationMessageCallback)===null||i===void 0||i.call(this,n(this,e,"m",f).call(this)?this.validationMessage:"")}}return r=new WeakMap,o=new WeakMap,l=new WeakMap,u=new WeakMap,w=new WeakMap,k=new WeakMap,_=new WeakMap,A=new WeakMap,F=new WeakMap,L=new WeakMap,E=new WeakMap,z=new WeakMap,Y=new WeakMap,e=new WeakSet,re=function(){let t=this.getRootNode(),i=`${this.localName}[name="${this.getAttribute("name")}"]`;return t.querySelectorAll(i)},f=function(){if(this.hasAttribute("disabled"))return!1;let t=n(this,o,"f")||n(this,l,"f")&&!this.validity.valid&&!n(this,r,"f");return t&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),t},X=function(t){let i=this.constructor,b={},p=i.validators,m=[],$=p.some(v=>v.isValid instanceof Promise);n(this,z,"f")||(h(this,Y,new Promise(v=>{h(this,E,v,"f")}),"f"),h(this,z,!0,"f")),n(this,u,"f")&&(n(this,u,"f").abort(),h(this,w,n(this,u,"f"),"f"));let M=new AbortController;h(this,u,M,"f");let S,B=!1;p.length&&(p.forEach(v=>{let N=v.key||"customError",y=v.isValid(this,t,M.signal);y instanceof Promise?(m.push(y),y.then(I=>{I!=null&&(b[N]=!I,S=n(this,e,"m",Z).call(this,v,t),n(this,e,"m",O).call(this,b,S))})):(b[N]=!y,this.validity[N]!==!y&&(B=!0),!y&&!S&&(S=n(this,e,"m",Z).call(this,v,t)))}),Promise.allSettled(m).then(()=>{var v;M!=null&&M.signal.aborted||(h(this,z,!1,"f"),(v=n(this,E,"f"))===null||v===void 0||v.call(this))}),(B||!$)&&n(this,e,"m",O).call(this,b,S))},O=function(t,i){if(this.validationTarget)this.internals.setValidity(t,i,this.validationTarget),h(this,k,!1,"f");else{if(this.internals.setValidity(t,i),this.internals.validity.valid)return;h(this,k,!0,"f")}},Z=function(t,i){if(this.validityCallback){let b=this.validityCallback(t.key||"customError");if(b)return b}return t.message instanceof Function?t.message(this,i):t.message},oe}import{html as P,LitElement as ee,nothing as se}from"lit";import{property as c,query as le}from"lit/decorators.js";import{classMap as de}from"lit/directives/class-map.js";import{ifDefined as g}from"lit/directives/if-defined.js";import{css as K}from"lit";var Q=K`
|
|
2
2
|
*,
|
|
3
3
|
:before,
|
|
4
4
|
:after {
|
|
@@ -271,7 +271,7 @@ var te=Object.defineProperty;var ae=Object.getOwnPropertyDescriptor;var R=a=>{th
|
|
|
271
271
|
svg {
|
|
272
272
|
pointer-events: none;
|
|
273
273
|
}
|
|
274
|
-
`,ve=
|
|
274
|
+
`,ve=K`*, :before, :after {
|
|
275
275
|
--w-rotate: 0;
|
|
276
276
|
--w-rotate-x: 0;
|
|
277
277
|
--w-rotate-y: 0;
|
|
@@ -2437,7 +2437,7 @@ var te=Object.defineProperty;var ae=Object.getOwnPropertyDescriptor;var R=a=>{th
|
|
|
2437
2437
|
display: none
|
|
2438
2438
|
}
|
|
2439
2439
|
}
|
|
2440
|
-
`;import{css as ie}from"lit";var
|
|
2440
|
+
`;import{css as ie}from"lit";var T=ie`
|
|
2441
2441
|
.w-textfield {
|
|
2442
2442
|
--_input-padding-top: 12px;
|
|
2443
2443
|
--_input-padding-left: 8px;
|
|
@@ -2489,7 +2489,7 @@ var te=Object.defineProperty;var ae=Object.getOwnPropertyDescriptor;var R=a=>{th
|
|
|
2489
2489
|
text-overflow: ellipsis;
|
|
2490
2490
|
z-index: 1;
|
|
2491
2491
|
}
|
|
2492
|
-
`;import{css as ne}from"lit";var W=ne`*,: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}.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}.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}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.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}}`;var x={base:"block text-m leading-m mb-0 px-8 py-12 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] caret-current",default:"border-1 s-text s-bg s-border-strong hover:s-border-strong-hover active:s-border-selected",disabled:"border-1 s-text-disabled s-bg-disabled-subtle s-border-disabled pointer-events-none",invalid:"border-1 s-text-negative s-bg s-border-negative hover:s-border-negative-hover outline-[--w-s-color-border-negative]!",readOnly:"pl-0 bg-transparent pointer-events-none",placeholder:"placeholder:s-text-placeholder",suffix:"pr-40",prefix:"pl-[var(--w-prefix-width,_40px)]",textArea:"min-h-[42] sm:min-h-[45]"},ce={base:"antialiased block relative text-s font-bold pb-4 cursor-pointer s-text",optional:"pl-8 font-normal text-s s-text-subtle"},q={base:"text-xs mt-4 block",color:"s-text-subtle",colorInvalid:"s-text-negative"},V,s=class extends
|
|
2492
|
+
`;import{css as ne}from"lit";var W=ne`*,: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}.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}.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}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.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}}`;var x={base:"block text-m leading-m mb-0 px-8 py-12 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] caret-current",default:"border-1 s-text s-bg s-border-strong hover:s-border-strong-hover active:s-border-selected",disabled:"border-1 s-text-disabled s-bg-disabled-subtle s-border-disabled pointer-events-none",invalid:"border-1 s-text-negative s-bg s-border-negative hover:s-border-negative-hover outline-[--w-s-color-border-negative]!",readOnly:"pl-0 bg-transparent pointer-events-none",placeholder:"placeholder:s-text-placeholder",suffix:"pr-40",prefix:"pl-[var(--w-prefix-width,_40px)]",textArea:"min-h-[42] sm:min-h-[45]"},ce={base:"antialiased block relative text-s font-bold pb-4 cursor-pointer s-text",optional:"pl-8 font-normal text-s s-text-subtle"},q={base:"text-xs mt-4 block",color:"s-text-subtle",colorInvalid:"s-text-negative"},V,s=class extends J(ee){constructor(){super(...arguments);this.type="text";this._hasPrefix=!1;this._hasSuffix=!1;D(this,V,null)}updated(r){r.has("value")&&(this.setValue(this.value),this.formatter&&(this.mask.innerText=this.formatter(this.value)))}firstUpdated(r){G(this,V,this.value)}resetFormControl(){this.value=H(this,V)}get _inputstyles(){return j([x.base,this._hasSuffix&&x.suffix,this._hasPrefix&&x.prefix,!this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&x.default,this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&x.invalid,!this.invalid&&this.disabled&&!(this.readonly||this.readOnly)&&x.disabled,!this.invalid&&!this.disabled&&(this.readonly||this.readOnly)&&x.readOnly])}get _helptextstyles(){return j([q.base,this.invalid?q.colorInvalid:q.color])}get _label(){if(this.label)return P`<label for="${this._id}" class=${ce.base}>${this.label}</label>`}get _helpId(){if(this.helpText)return`${this._id}__hint`}get _id(){return"textfield"}get _error(){if(this.invalid&&this._helpId)return this._helpId}handler(r){let{name:o,value:l}=r.currentTarget;this.value=l;let u=new CustomEvent(r.type,{detail:{name:o,value:l,target:r.target}});this.dispatchEvent(u)}prefixSlotChange(){this.renderRoot.querySelector("slot[name=prefix]").assignedElements().length&&(this._hasPrefix=!0)}suffixSlotChange(){this.renderRoot.querySelector("slot[name=suffix]").assignedElements().length&&(this._hasSuffix=!0)}render(){return P`
|
|
2493
2493
|
${this._label}
|
|
2494
2494
|
<div
|
|
2495
2495
|
class="${de({"w-textfield":!0,"w-textfield--has-prefix":this._hasPrefix,"w-textfield--has-suffix":this._hasSuffix})}">
|
|
@@ -2499,23 +2499,24 @@ var te=Object.defineProperty;var ae=Object.getOwnPropertyDescriptor;var R=a=>{th
|
|
|
2499
2499
|
<input
|
|
2500
2500
|
class="${this._inputstyles}"
|
|
2501
2501
|
type="${this.type}"
|
|
2502
|
-
min="${
|
|
2503
|
-
max="${
|
|
2504
|
-
size="${
|
|
2505
|
-
minlength="${
|
|
2506
|
-
maxlength="${
|
|
2507
|
-
name="${
|
|
2508
|
-
pattern="${
|
|
2509
|
-
placeholder="${
|
|
2502
|
+
min="${g(this.min)}"
|
|
2503
|
+
max="${g(this.max)}"
|
|
2504
|
+
size="${g(this.size)}"
|
|
2505
|
+
minlength="${g(this.minLength)}"
|
|
2506
|
+
maxlength="${g(this.maxLength)}"
|
|
2507
|
+
name="${g(this.name)}"
|
|
2508
|
+
pattern="${g(this.pattern)}"
|
|
2509
|
+
placeholder="${g(this.placeholder)}"
|
|
2510
2510
|
.value="${this.value||""}"
|
|
2511
|
-
aria-describedby="${
|
|
2512
|
-
aria-errormessage="${
|
|
2513
|
-
aria-invalid="${
|
|
2511
|
+
aria-describedby="${g(this._helpId||(this.ariaDescription?"aria-description":void 0))}"
|
|
2512
|
+
aria-errormessage="${g(this._error)}"
|
|
2513
|
+
aria-invalid="${g(this.invalid)}"
|
|
2514
2514
|
id="${this._id}"
|
|
2515
2515
|
?disabled="${this.disabled}"
|
|
2516
2516
|
?readonly="${this.readonly||this.readOnly}"
|
|
2517
2517
|
?required="${this.required}"
|
|
2518
|
-
|
|
2518
|
+
autocomplete="${g(this.autocomplete)}"
|
|
2519
|
+
step="${g(this.step)}"
|
|
2519
2520
|
@blur="${this.handler}"
|
|
2520
2521
|
@change="${this.handler}"
|
|
2521
2522
|
@input="${this.handler}"
|
|
@@ -2525,5 +2526,5 @@ var te=Object.defineProperty;var ae=Object.getOwnPropertyDescriptor;var R=a=>{th
|
|
|
2525
2526
|
</div>
|
|
2526
2527
|
<span class="sr-only" id="aria-description">${this.ariaDescription}</span>
|
|
2527
2528
|
${this.helpText&&P`<div class="${this._helptextstyles}" id="${this._helpId}">${this.helpText}</div>`}
|
|
2528
|
-
`}};V=new WeakMap,s.shadowRootOptions={...ee.shadowRootOptions,delegatesFocus:!0},s.styles=[
|
|
2529
|
-
//# sourceMappingURL=
|
|
2529
|
+
`}};V=new WeakMap,s.shadowRootOptions={...ee.shadowRootOptions,delegatesFocus:!0},s.styles=[Q,W,T],d([c({type:Boolean,reflect:!0})],s.prototype,"disabled",2),d([c({type:Boolean,reflect:!0})],s.prototype,"invalid",2),d([c({type:String,reflect:!0})],s.prototype,"id",2),d([c({type:String,reflect:!0})],s.prototype,"label",2),d([c({type:String,reflect:!0,attribute:"help-text"})],s.prototype,"helpText",2),d([c({type:String,reflect:!0})],s.prototype,"size",2),d([c({type:Number,reflect:!0})],s.prototype,"max",2),d([c({type:Number,reflect:!0})],s.prototype,"min",2),d([c({type:Number,reflect:!0,attribute:"min-length"})],s.prototype,"minLength",2),d([c({type:Number,reflect:!0,attribute:"max-length"})],s.prototype,"maxLength",2),d([c({type:String,reflect:!0})],s.prototype,"pattern",2),d([c({type:String,reflect:!0})],s.prototype,"placeholder",2),d([c({type:Boolean,reflect:!0,attribute:"read-only"})],s.prototype,"readOnly",2),d([c({type:Boolean,reflect:!0})],s.prototype,"readonly",2),d([c({type:Boolean,reflect:!0})],s.prototype,"required",2),d([c({type:String,reflect:!0})],s.prototype,"type",2),d([c({type:String,reflect:!0})],s.prototype,"value",2),d([c({type:String,reflect:!0})],s.prototype,"name",2),d([c({type:Number,reflect:!0})],s.prototype,"step",2),d([c({type:String,reflect:!0})],s.prototype,"autocomplete",2),d([c({attribute:!1})],s.prototype,"formatter",2),d([le(".w-textfield__mask")],s.prototype,"mask",2),d([c({type:Boolean})],s.prototype,"_hasPrefix",2),d([c({type:Boolean})],s.prototype,"_hasSuffix",2);customElements.get("w-textfield")||customElements.define("w-textfield",s);export{s as WarpTextField};
|
|
2530
|
+
//# sourceMappingURL=textfield.js.map
|