@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,148 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
export const wSliderStyles = css `
|
|
3
|
-
.w-slider {
|
|
4
|
-
position: relative;
|
|
5
|
-
border: none;
|
|
6
|
-
padding: 0;
|
|
7
|
-
margin: 0;
|
|
8
|
-
display: grid;
|
|
9
|
-
width: 100%;
|
|
10
|
-
grid-template-areas:
|
|
11
|
-
"label"
|
|
12
|
-
"description"
|
|
13
|
-
"slider"
|
|
14
|
-
"error";
|
|
15
|
-
grid-template-columns: 1fr;
|
|
16
|
-
|
|
17
|
-
--w-slider-track-background: var(--w-s-color-background-disabled-subtle);
|
|
18
|
-
--w-slider-track-active-background: var(--w-s-color-background-primary);
|
|
19
|
-
--w-slider-track-height: 4px;
|
|
20
|
-
--w-slider-track-active-height: 6px;
|
|
21
|
-
--w-slider-thumb-background: var(--w-s-color-background-primary);
|
|
22
|
-
--w-slider-thumb-background-hover: var(
|
|
23
|
-
--w-s-color-background-primary-hover
|
|
24
|
-
);
|
|
25
|
-
--w-slider-thumb-size: 28px;
|
|
26
|
-
--w-slider-thumb-offset: calc(var(--w-slider-thumb-size) / 2);
|
|
27
|
-
--w-slider-marker-color: var(--w-s-color-border);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
/* Vertical position of range and markers */
|
|
31
|
-
--_range-top: calc(
|
|
32
|
-
var(--w-slider-thumb-size) / 2 +
|
|
33
|
-
calc(
|
|
34
|
-
var(--w-slider-track-active-height) - calc(
|
|
35
|
-
var(--w-slider-track-height) / 2
|
|
36
|
-
) + 1px
|
|
37
|
-
)
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.w-slider__label {
|
|
42
|
-
grid-area: label;
|
|
43
|
-
font-size: var(--w-font-size-s);
|
|
44
|
-
line-height: var(--w-line-height-s);
|
|
45
|
-
font-weight: bold;
|
|
46
|
-
padding-bottom: 8px;
|
|
47
|
-
color: var(--w-s-color-text);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.w-slider__description {
|
|
51
|
-
grid-area: description;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.w-slider__range {
|
|
55
|
-
align-self: center;
|
|
56
|
-
background: var(--w-slider-track-background);
|
|
57
|
-
border-radius: 4px;
|
|
58
|
-
height: var(--w-slider-track-active-height);
|
|
59
|
-
position: absolute;
|
|
60
|
-
/* For range sliders to avoid overlapping the slider thumbs we transform them to
|
|
61
|
-
be visually to the left and right of their respective input[type="range"]. This
|
|
62
|
-
padding is here so the active-range element is the same width as the input fields. */
|
|
63
|
-
padding-inline-start: var(--active-range-inline-start-padding, 0);
|
|
64
|
-
padding-inline-end: var(--active-range-inline-end-padding, 0);
|
|
65
|
-
top: var(--_range-top);
|
|
66
|
-
left: 0;
|
|
67
|
-
right: 0;
|
|
68
|
-
grid-area: slider;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.w-slider__active-range {
|
|
72
|
-
box-sizing: content-box;
|
|
73
|
-
background: var(--w-slider-track-active-background);
|
|
74
|
-
height: var(--w-slider-track-active-height);
|
|
75
|
-
|
|
76
|
-
border-start-start-radius: var(--active-range-border-radius, 0);
|
|
77
|
-
border-end-start-radius: var(--active-range-border-radius, 0);
|
|
78
|
-
|
|
79
|
-
/* takes over-under into the calculation if set, as this makes the ranges longer in reality */
|
|
80
|
-
--max-with-offset: calc(var(--max) + var(--over-under-offset, 0));
|
|
81
|
-
|
|
82
|
-
/* calculate the offset for the "from" thumb in percentage to move the range visualisation from the left edge, using max() to avoid going off screen */
|
|
83
|
-
--offset-percentage: calc(calc(var(--from) - var(--min)) / calc(var(--max-with-offset) - var(--min)) * 100);
|
|
84
|
-
margin-left: calc(max(var(--offset-percentage) * 1%, 0px) - 1px);
|
|
85
|
-
|
|
86
|
-
/* calculate the width of the selected range in percentage, clamped between min/max */
|
|
87
|
-
--value-range: calc(var(--max-with-offset) - var(--min));
|
|
88
|
-
--range-span-percentage: calc(calc(min(var(--to), var(--max-with-offset)) - max(var(--min), var(--from))) / var(--value-range) * 100 );
|
|
89
|
-
width: calc(var(--range-span-percentage) * 1% + 1px);
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
z-index: 1;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.w-slider__markers {
|
|
96
|
-
--_marker-height: 7px;
|
|
97
|
-
--_marker-width: 1px;
|
|
98
|
-
|
|
99
|
-
align-self: center;
|
|
100
|
-
|
|
101
|
-
/* Creates a linear gradient with --_marker-width wide markers
|
|
102
|
-
followed by enough transparent that we can repeat the gradient
|
|
103
|
-
along the X axis and have markers visible where we want them. */
|
|
104
|
-
background: linear-gradient(
|
|
105
|
-
to right,
|
|
106
|
-
var(--w-slider-marker-color) var(--_marker-width),
|
|
107
|
-
rgba(0, 0, 0, 0) 1px calc(100% - 1px),
|
|
108
|
-
var(--w-slider-marker-color) 100%
|
|
109
|
-
)
|
|
110
|
-
repeat-x;
|
|
111
|
-
--_step-width-as-percent: calc(var(--markers) / var(--_value-range) * 100);
|
|
112
|
-
background-size: calc(var(--_step-width-as-percent) * 1%)
|
|
113
|
-
var(--_marker-height);
|
|
114
|
-
|
|
115
|
-
background-position: bottom 0 left 8px right 8px;
|
|
116
|
-
position: absolute;
|
|
117
|
-
top: calc(var(--_range-top) + 2px);
|
|
118
|
-
left: 1px;
|
|
119
|
-
right: 1px;
|
|
120
|
-
grid-area: slider;
|
|
121
|
-
height: var(--_marker-height);
|
|
122
|
-
margin-inline: var(--w-slider-thumb-offset);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.w-slider__error {
|
|
126
|
-
grid-area: error;
|
|
127
|
-
padding-top: 8px;
|
|
128
|
-
font-size: var(--w-font-size-xs);
|
|
129
|
-
line-height: var(--w-line-height-xs);
|
|
130
|
-
color: var(--w-s-color-text-negative);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.w-slider__help-text {
|
|
134
|
-
grid-area: error;
|
|
135
|
-
padding-top: 8px;
|
|
136
|
-
font-size: var(--w-font-size-xs);
|
|
137
|
-
line-height: var(--w-line-height-xs);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
slot::slotted(w-slider-thumb) {
|
|
141
|
-
position: static;
|
|
142
|
-
top: 0;
|
|
143
|
-
left: 0;
|
|
144
|
-
right: 0;
|
|
145
|
-
bottom: 0;
|
|
146
|
-
grid-area: slider;
|
|
147
|
-
}
|
|
148
|
-
`;
|
|
@@ -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}.hidden{display:none}.absolute{position:absolute}.relative{position:relative}.static{position:static}.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}`;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import '@warp-ds/icons/elements/check-16';
|
|
3
|
-
/**
|
|
4
|
-
* Steps are used to show progress through a process or to guide users through a multi-step task.
|
|
5
|
-
*
|
|
6
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/components-steps--docs)
|
|
7
|
-
*/
|
|
8
|
-
declare class WarpStepIndicator extends LitElement {
|
|
9
|
-
horizontal: boolean;
|
|
10
|
-
right: boolean;
|
|
11
|
-
static styles: import("lit").CSSResult[];
|
|
12
|
-
constructor();
|
|
13
|
-
updated(): void;
|
|
14
|
-
updateStepsContext(): void;
|
|
15
|
-
render(): import("lit").TemplateResult<1>;
|
|
16
|
-
}
|
|
17
|
-
interface StepsContext {
|
|
18
|
-
horizontal?: boolean;
|
|
19
|
-
right?: boolean;
|
|
20
|
-
isLast?: boolean;
|
|
21
|
-
isFirst?: boolean;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Individual step component that shows a single step in a process
|
|
25
|
-
*/
|
|
26
|
-
declare class WarpStep extends LitElement {
|
|
27
|
-
active: boolean;
|
|
28
|
-
completed: boolean;
|
|
29
|
-
private _context;
|
|
30
|
-
static styles: import("lit").CSSResult[];
|
|
31
|
-
constructor();
|
|
32
|
-
connectedCallback(): void;
|
|
33
|
-
setContext(context: StepsContext): void;
|
|
34
|
-
getAriaLabel(): string;
|
|
35
|
-
render(): import("lit").TemplateResult<1>;
|
|
36
|
-
}
|
|
37
|
-
export { WarpStepIndicator, WarpStep };
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
// @warp-css;
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
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;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
import { classNames } from '@chbphone55/classnames';
|
|
9
|
-
import { i18n } from '@lingui/core';
|
|
10
|
-
import { html, LitElement } from 'lit';
|
|
11
|
-
import { property, state } from 'lit/decorators.js';
|
|
12
|
-
import '@warp-ds/icons/elements/check-16';
|
|
13
|
-
import { activateI18n } from '../i18n.js';
|
|
14
|
-
import { reset } from '../styles.js';
|
|
15
|
-
import { messages as daMessages } from './locales/da/messages.mjs';
|
|
16
|
-
import { messages as enMessages } from './locales/en/messages.mjs';
|
|
17
|
-
import { messages as fiMessages } from './locales/fi/messages.mjs';
|
|
18
|
-
import { messages as nbMessages } from './locales/nb/messages.mjs';
|
|
19
|
-
import { messages as svMessages } from './locales/sv/messages.mjs';
|
|
20
|
-
import { styles } from './styles.js';
|
|
21
|
-
const ccSteps = {
|
|
22
|
-
wrapper: 'w-full',
|
|
23
|
-
horizontal: 'flex',
|
|
24
|
-
};
|
|
25
|
-
const ccStep = {
|
|
26
|
-
base: 'group/step',
|
|
27
|
-
vertical: 'group/stepv grid-rows-[20px_auto] grid grid-flow-col gap-x-16',
|
|
28
|
-
horizontal: 'group/steph grid-rows-[auto_20px] grid-cols-[1fr_20px_1fr] flex-1 grid items-center',
|
|
29
|
-
alignLeft: 'grid-cols-[20px_1fr]',
|
|
30
|
-
alignRight: 'grid-cols-[1fr_20px] text-right',
|
|
31
|
-
dot: 'rounded-full border-2 h-20 w-20 transition-colors duration-300 s-icon-inverted',
|
|
32
|
-
dotAlignRight: 'col-start-2',
|
|
33
|
-
dotHorizontal: 'row-start-2 justify-self-end',
|
|
34
|
-
dotActive: 's-border-primary s-bg-primary',
|
|
35
|
-
dotIncomplete: 's-border s-bg',
|
|
36
|
-
line: 'transition-colors duration-300',
|
|
37
|
-
lineVertical: 'w-2 h-full justify-self-center',
|
|
38
|
-
lineAlignRight: 'col-start-2',
|
|
39
|
-
lineHorizontal: 'h-2 w-full row-start-2',
|
|
40
|
-
lineIncomplete: 's-bg-disabled',
|
|
41
|
-
lineComplete: 's-bg-primary',
|
|
42
|
-
content: 'last:mb-0',
|
|
43
|
-
contentVertical: 'row-span-2 pb-32',
|
|
44
|
-
contentHorizontal: 'col-span-3 px-16 row-start-1 text-center',
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Steps are used to show progress through a process or to guide users through a multi-step task.
|
|
48
|
-
*
|
|
49
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/components-steps--docs)
|
|
50
|
-
*/
|
|
51
|
-
class WarpStepIndicator extends LitElement {
|
|
52
|
-
static { this.styles = [reset, styles]; }
|
|
53
|
-
constructor() {
|
|
54
|
-
super();
|
|
55
|
-
this.horizontal = false;
|
|
56
|
-
this.right = false;
|
|
57
|
-
activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);
|
|
58
|
-
}
|
|
59
|
-
updated() {
|
|
60
|
-
this.updateStepsContext();
|
|
61
|
-
}
|
|
62
|
-
updateStepsContext() {
|
|
63
|
-
// Provide context to child step elements
|
|
64
|
-
const steps = this.querySelectorAll('w-step');
|
|
65
|
-
steps.forEach((step, index) => {
|
|
66
|
-
step.setContext({
|
|
67
|
-
horizontal: this.horizontal,
|
|
68
|
-
right: this.right,
|
|
69
|
-
isLast: index === steps.length - 1,
|
|
70
|
-
isFirst: index === 0,
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
render() {
|
|
75
|
-
const classes = classNames([ccSteps.wrapper, this.horizontal && ccSteps.horizontal]);
|
|
76
|
-
return html `
|
|
77
|
-
<div role="list" class=${classes} ${this.horizontal && `style='display: grid; grid-auto-rows: 1fr;grid-template-columns: 1fr;'`}>
|
|
78
|
-
<slot></slot>
|
|
79
|
-
</div>
|
|
80
|
-
`;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
__decorate([
|
|
84
|
-
property({ type: Boolean, reflect: true })
|
|
85
|
-
], WarpStepIndicator.prototype, "horizontal", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
property({ type: Boolean, reflect: true })
|
|
88
|
-
], WarpStepIndicator.prototype, "right", void 0);
|
|
89
|
-
const availableAriaLabels = {
|
|
90
|
-
completed: i18n._({
|
|
91
|
-
id: 'steps.aria.completed',
|
|
92
|
-
message: 'Step indicator completed circle',
|
|
93
|
-
comment: 'Completed circle',
|
|
94
|
-
}),
|
|
95
|
-
active: i18n._({
|
|
96
|
-
id: 'steps.aria.active',
|
|
97
|
-
message: 'Step indicator active circle',
|
|
98
|
-
comment: 'Active circle',
|
|
99
|
-
}),
|
|
100
|
-
default: i18n._({
|
|
101
|
-
id: 'steps.aria.emptyCircle',
|
|
102
|
-
message: 'Empty circle',
|
|
103
|
-
comment: 'Empty circle',
|
|
104
|
-
}),
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* Individual step component that shows a single step in a process
|
|
108
|
-
*/
|
|
109
|
-
class WarpStep extends LitElement {
|
|
110
|
-
static { this.styles = [reset, styles]; }
|
|
111
|
-
constructor() {
|
|
112
|
-
super();
|
|
113
|
-
this.active = false;
|
|
114
|
-
this.completed = false;
|
|
115
|
-
this._context = { horizontal: false, right: false, isLast: false, isFirst: false };
|
|
116
|
-
activateI18n(enMessages, nbMessages, fiMessages, daMessages, svMessages);
|
|
117
|
-
}
|
|
118
|
-
connectedCallback() {
|
|
119
|
-
super.connectedCallback();
|
|
120
|
-
this.setAttribute('role', 'listitem');
|
|
121
|
-
}
|
|
122
|
-
setContext(context) {
|
|
123
|
-
this._context = context;
|
|
124
|
-
this.requestUpdate();
|
|
125
|
-
}
|
|
126
|
-
getAriaLabel() {
|
|
127
|
-
if (this.completed)
|
|
128
|
-
return availableAriaLabels.completed;
|
|
129
|
-
if (this.active)
|
|
130
|
-
return availableAriaLabels.active;
|
|
131
|
-
return availableAriaLabels.default;
|
|
132
|
-
}
|
|
133
|
-
render() {
|
|
134
|
-
const vertical = !this._context.horizontal;
|
|
135
|
-
const left = !this._context.right;
|
|
136
|
-
const isFirst = this._context.isFirst;
|
|
137
|
-
const isLast = this._context.isLast;
|
|
138
|
-
const stepClasses = classNames([
|
|
139
|
-
ccStep.base,
|
|
140
|
-
vertical ? ccStep.vertical : ccStep.horizontal,
|
|
141
|
-
vertical ? (left ? ccStep.alignLeft : ccStep.alignRight) : '',
|
|
142
|
-
]);
|
|
143
|
-
const lineHorizontalClasses = classNames([
|
|
144
|
-
ccStep.line,
|
|
145
|
-
ccStep.lineHorizontal,
|
|
146
|
-
this.active || this.completed ? ccStep.lineComplete : ccStep.lineIncomplete,
|
|
147
|
-
isFirst ? 'invisible' : '',
|
|
148
|
-
]);
|
|
149
|
-
const dotClasses = classNames([
|
|
150
|
-
ccStep.dot,
|
|
151
|
-
vertical ? (!left ? ccStep.dotAlignRight : '') : ccStep.dotHorizontal,
|
|
152
|
-
this.active || this.completed ? ccStep.dotActive : ccStep.dotIncomplete,
|
|
153
|
-
]);
|
|
154
|
-
const lineClasses = classNames([
|
|
155
|
-
ccStep.line,
|
|
156
|
-
vertical ? ccStep.lineVertical : ccStep.lineHorizontal,
|
|
157
|
-
vertical && !left ? ccStep.lineAlignRight : '',
|
|
158
|
-
this.completed ? ccStep.lineComplete : ccStep.lineIncomplete,
|
|
159
|
-
isLast ? 'invisible' : '',
|
|
160
|
-
]);
|
|
161
|
-
const contentClasses = classNames([
|
|
162
|
-
ccStep.content,
|
|
163
|
-
vertical ? ccStep.contentVertical : ccStep.contentHorizontal,
|
|
164
|
-
isLast ? 'pb-0' : '',
|
|
165
|
-
]);
|
|
166
|
-
return html `
|
|
167
|
-
<div class="${stepClasses}" style=${this._context.horizontal && 'height: 100%;'}>
|
|
168
|
-
${!vertical ? html `<div class=${lineHorizontalClasses}></div>` : ''}
|
|
169
|
-
<div class=${dotClasses} role="img" aria-label=${this.getAriaLabel()} ${this.active ? 'aria-current="step"' : ''}>
|
|
170
|
-
${this.completed ? html `<w-icon-check-16 data-testid="completed-icon"></w-icon-check-16>` : ''}
|
|
171
|
-
</div>
|
|
172
|
-
<div class=${lineClasses}></div>
|
|
173
|
-
<div class=${contentClasses} ${this._context.horizontal && `style='height:100%;'`}>
|
|
174
|
-
<slot></slot>
|
|
175
|
-
</div>
|
|
176
|
-
</div>
|
|
177
|
-
`;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
__decorate([
|
|
181
|
-
property({ type: Boolean, reflect: true })
|
|
182
|
-
], WarpStep.prototype, "active", void 0);
|
|
183
|
-
__decorate([
|
|
184
|
-
property({ type: Boolean, reflect: true })
|
|
185
|
-
], WarpStep.prototype, "completed", void 0);
|
|
186
|
-
__decorate([
|
|
187
|
-
state()
|
|
188
|
-
], WarpStep.prototype, "_context", void 0);
|
|
189
|
-
if (!customElements.get('w-step-indicator')) {
|
|
190
|
-
customElements.define('w-step-indicator', WarpStepIndicator);
|
|
191
|
-
}
|
|
192
|
-
if (!customElements.get('w-step')) {
|
|
193
|
-
customElements.define('w-step', WarpStep);
|
|
194
|
-
}
|
|
195
|
-
export { WarpStepIndicator, WarpStep };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const messages: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*eslint-disable*/ export const messages = JSON.parse("{\"steps.aria.emptyCircle\":[\"Tom cirkel\"],\"steps.aria.active\":[\"Trinindikator aktiv cirkel\"],\"steps.aria.completed\":[\"Trinindikator fuldført cirkel\"]}");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const messages: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*eslint-disable*/ export const messages = JSON.parse("{\"steps.aria.emptyCircle\":[\"Empty circle\"],\"steps.aria.active\":[\"Step indicator active circle\"],\"steps.aria.completed\":[\"Step indicator completed circle\"]}");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const messages: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*eslint-disable*/ export const messages = JSON.parse("{\"steps.aria.emptyCircle\":[\"Tyhjä ympyrä\"],\"steps.aria.active\":[\"Vaiheilmaisin aktiivinen ympyrä\"],\"steps.aria.completed\":[\"Vaiheilmaisin valmis ympyrä\"]}");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const messages: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*eslint-disable*/ export const messages = JSON.parse("{\"steps.aria.emptyCircle\":[\"Tom sirkel\"],\"steps.aria.active\":[\"Stegindikator aktiv sirkel\"],\"steps.aria.completed\":[\"Stegindikator hel sirkel\"]}");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const messages: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*eslint-disable*/ export const messages = JSON.parse("{\"steps.aria.emptyCircle\":[\"Tom cirkel\"],\"steps.aria.active\":[\"Stegindikator aktiv cirkel\"],\"steps.aria.completed\":[\"Stegindikator fulländad cirkel\"]}");
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
2
|
-
import { StepIndicator } from './react';
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: import("@lit/react").ReactWebComponent<import(".").WarpStepIndicator, {}>;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
export type Story = StoryObj<typeof StepIndicator>;
|
|
9
|
-
export declare const Default: Story;
|
|
10
|
-
export declare const Horizontal: Story;
|
|
11
|
-
export declare const RightAligned: Story;
|
|
12
|
-
export declare const SimpleStepIndicator: Story;
|
|
13
|
-
export declare const SimpleHorizontal: Story;
|
|
14
|
-
export declare const AllCompleted: Story;
|
|
15
|
-
export declare const MinimalExample: Story;
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Step, StepIndicator } from './react';
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Components/Step Indicator',
|
|
5
|
-
component: StepIndicator,
|
|
6
|
-
};
|
|
7
|
-
export const Default = {
|
|
8
|
-
args: {
|
|
9
|
-
horizontal: false,
|
|
10
|
-
right: false,
|
|
11
|
-
},
|
|
12
|
-
render: (args) => (React.createElement(StepIndicator, { horizontal: args.horizontal, right: args.right },
|
|
13
|
-
React.createElement(Step, { completed: true },
|
|
14
|
-
React.createElement("h3", null, "Step 1: Account Setup"),
|
|
15
|
-
React.createElement("p", null, "Create your account and verify your email address.")),
|
|
16
|
-
React.createElement(Step, { active: true },
|
|
17
|
-
React.createElement("h3", null, "Step 2: Profile Information"),
|
|
18
|
-
React.createElement("p", null, "Fill in your personal details and preferences.")),
|
|
19
|
-
React.createElement(Step, null,
|
|
20
|
-
React.createElement("h3", null, "Step 3: Payment Method"),
|
|
21
|
-
React.createElement("p", null, "Add a payment method to complete your registration.")),
|
|
22
|
-
React.createElement(Step, null,
|
|
23
|
-
React.createElement("h3", null, "Step 4: Confirmation"),
|
|
24
|
-
React.createElement("p", null, "Review and confirm your information.")))),
|
|
25
|
-
};
|
|
26
|
-
export const Horizontal = {
|
|
27
|
-
args: {
|
|
28
|
-
horizontal: true,
|
|
29
|
-
right: false,
|
|
30
|
-
},
|
|
31
|
-
render: (args) => (React.createElement(StepIndicator, { horizontal: args.horizontal, right: args.right },
|
|
32
|
-
React.createElement(Step, { completed: true },
|
|
33
|
-
React.createElement("h4", null, "Setup"),
|
|
34
|
-
React.createElement("p", null, "Account created")),
|
|
35
|
-
React.createElement(Step, { completed: true },
|
|
36
|
-
React.createElement("h4", null, "Profile"),
|
|
37
|
-
React.createElement("p", null, "Information added")),
|
|
38
|
-
React.createElement(Step, { active: true },
|
|
39
|
-
React.createElement("h4", null, "Payment"),
|
|
40
|
-
React.createElement("p", null, "Add payment method")),
|
|
41
|
-
React.createElement(Step, null,
|
|
42
|
-
React.createElement("h4", null, "Done"),
|
|
43
|
-
React.createElement("p", null, "Complete setup")))),
|
|
44
|
-
};
|
|
45
|
-
export const RightAligned = {
|
|
46
|
-
args: {
|
|
47
|
-
horizontal: false,
|
|
48
|
-
right: true,
|
|
49
|
-
},
|
|
50
|
-
render: (args) => (React.createElement(StepIndicator, { horizontal: args.horizontal, right: args.right },
|
|
51
|
-
React.createElement(Step, { completed: true },
|
|
52
|
-
React.createElement("h3", null, "Order Placed"),
|
|
53
|
-
React.createElement("p", null, "Your order has been received and is being processed."),
|
|
54
|
-
React.createElement("small", null, "2:34 PM")),
|
|
55
|
-
React.createElement(Step, { completed: true },
|
|
56
|
-
React.createElement("h3", null, "Payment Confirmed"),
|
|
57
|
-
React.createElement("p", null, "Payment has been successfully processed."),
|
|
58
|
-
React.createElement("small", null, "2:35 PM")),
|
|
59
|
-
React.createElement(Step, { active: true },
|
|
60
|
-
React.createElement("h3", null, "Preparing for Shipment"),
|
|
61
|
-
React.createElement("p", null, "Your items are being prepared for shipment.")),
|
|
62
|
-
React.createElement(Step, null,
|
|
63
|
-
React.createElement("h3", null, "Shipped"),
|
|
64
|
-
React.createElement("p", null, "Your order is on its way!")))),
|
|
65
|
-
};
|
|
66
|
-
export const SimpleStepIndicator = {
|
|
67
|
-
render: () => (React.createElement(StepIndicator, null,
|
|
68
|
-
React.createElement(Step, { completed: true },
|
|
69
|
-
React.createElement("strong", null, "Step 1")),
|
|
70
|
-
React.createElement(Step, { completed: true },
|
|
71
|
-
React.createElement("strong", null, "Step 2")),
|
|
72
|
-
React.createElement(Step, { active: true },
|
|
73
|
-
React.createElement("strong", null, "Step 3")),
|
|
74
|
-
React.createElement(Step, null,
|
|
75
|
-
React.createElement("strong", null, "Step 4")),
|
|
76
|
-
React.createElement(Step, null,
|
|
77
|
-
React.createElement("strong", null, "Step 5")))),
|
|
78
|
-
};
|
|
79
|
-
export const SimpleHorizontal = {
|
|
80
|
-
render: () => (React.createElement(StepIndicator, { horizontal: true },
|
|
81
|
-
React.createElement(Step, { completed: true },
|
|
82
|
-
React.createElement("strong", null, "Start")),
|
|
83
|
-
React.createElement(Step, { completed: true },
|
|
84
|
-
React.createElement("strong", null, "Progress")),
|
|
85
|
-
React.createElement(Step, { active: true },
|
|
86
|
-
React.createElement("strong", null, "Current")),
|
|
87
|
-
React.createElement(Step, null,
|
|
88
|
-
React.createElement("strong", null, "Next")),
|
|
89
|
-
React.createElement(Step, null,
|
|
90
|
-
React.createElement("strong", null, "End")))),
|
|
91
|
-
};
|
|
92
|
-
export const AllCompleted = {
|
|
93
|
-
render: () => (React.createElement(StepIndicator, null,
|
|
94
|
-
React.createElement(Step, { completed: true },
|
|
95
|
-
React.createElement("h3", null, "Registration"),
|
|
96
|
-
React.createElement("p", null, "Account successfully created")),
|
|
97
|
-
React.createElement(Step, { completed: true },
|
|
98
|
-
React.createElement("h3", null, "Verification"),
|
|
99
|
-
React.createElement("p", null, "Email address verified")),
|
|
100
|
-
React.createElement(Step, { completed: true },
|
|
101
|
-
React.createElement("h3", null, "Setup"),
|
|
102
|
-
React.createElement("p", null, "Profile information completed")),
|
|
103
|
-
React.createElement(Step, { completed: true },
|
|
104
|
-
React.createElement("h3", null, "Welcome"),
|
|
105
|
-
React.createElement("p", null, "You're all set to get started!")))),
|
|
106
|
-
};
|
|
107
|
-
export const MinimalExample = {
|
|
108
|
-
render: () => (React.createElement(StepIndicator, null,
|
|
109
|
-
React.createElement(Step, { completed: true }, "First"),
|
|
110
|
-
React.createElement(Step, { active: true }, "Second"),
|
|
111
|
-
React.createElement(Step, null, "Third"))),
|
|
112
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/web-components';
|
|
2
|
-
import './index.js';
|
|
3
|
-
declare const meta: Meta;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj;
|
|
6
|
-
export declare const Default: Story;
|
|
7
|
-
export declare const Horizontal: Story;
|
|
8
|
-
export declare const RightAligned: Story;
|
|
9
|
-
export declare const SimpleSteps: Story;
|
|
10
|
-
export declare const SimpleHorizontal: Story;
|
|
11
|
-
export declare const AllCompleted: Story;
|
|
12
|
-
export declare const MinimalExample: Story;
|