@warp-ds/elements 2.4.0 → 2.5.0-next.1
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 +3333 -412
- package/dist/index.d.ts +3504 -849
- 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/checkbox/checkbox.js +2572 -201
- package/dist/packages/checkbox/checkbox.js.map +7 -0
- 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-group/checkbox-group.js +7 -0
- package/dist/packages/checkbox-group/checkbox-group.js.map +7 -0
- package/dist/packages/checkbox-group/react.d.ts +2 -0
- package/dist/packages/checkbox-group/react.js +11 -0
- package/dist/packages/combobox/{index.js → combobox.js} +14 -14
- 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 -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/dead-toggle/dead-toggle.js +2547 -0
- package/dist/packages/dead-toggle/dead-toggle.js.map +7 -0
- package/dist/packages/dead-toggle/dead-toggle.react.stories.d.ts +15 -0
- package/dist/packages/{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/i18n.js +6 -2
- 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 +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/modal-header/react.js +15 -0
- 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/pagination/pagination.js +2500 -0
- 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} +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/radio/radio.js +2556 -109
- package/dist/packages/radio/radio.js.map +7 -0
- package/dist/packages/radio/radio.stories.d.ts +3 -3
- package/dist/packages/radio/radio.stories.js +2 -2
- 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.d.ts +4 -4
- package/dist/packages/radio-group/radio-group.js +2648 -0
- package/dist/packages/radio-group/radio-group.js.map +7 -0
- package/dist/packages/radio-group/react.d.ts +7 -0
- package/dist/packages/radio-group/react.js +17 -0
- package/dist/packages/select/react.d.ts +1 -1
- package/dist/packages/select/react.js +1 -1
- package/dist/packages/select/{index.js → select.js} +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/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 +2603 -272
- package/dist/packages/{toast/toast-container.js.map → slider/slider.js.map} +4 -4
- package/dist/packages/slider/slider.stories.d.ts +5 -4
- package/dist/packages/slider/slider.stories.js +5 -4
- package/dist/packages/slider/slider.test.d.ts +5 -4
- package/dist/packages/slider/slider.test.js +5 -4
- 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-thumb/slider-thumb.js +2748 -0
- package/dist/packages/slider-thumb/slider-thumb.js.map +7 -0
- package/dist/packages/step/locales/da/messages.d.mts +1 -0
- package/dist/packages/step/locales/en/messages.d.mts +1 -0
- package/dist/packages/step/locales/fi/messages.d.mts +1 -0
- package/dist/packages/step/locales/nb/messages.d.mts +1 -0
- package/dist/packages/step/locales/sv/messages.d.mts +1 -0
- package/dist/packages/step/react.d.ts +2 -0
- package/dist/packages/step/react.js +11 -0
- package/dist/packages/step/step.d.ts +22 -0
- package/dist/packages/step/step.js +2461 -0
- package/dist/packages/{modal/index.js.map → step/step.js.map} +4 -4
- 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 +14 -0
- package/dist/packages/step-indicator/step-indicator.js +2445 -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/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/textarea/react.d.ts +1 -1
- package/dist/packages/textarea/react.js +1 -1
- package/dist/packages/textarea/textarea.js +2465 -210
- package/dist/packages/{combobox/index.js.map → textarea/textarea.js.map} +4 -4
- 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.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 +822 -38
- package/package.json +139 -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.js +0 -15
- package/dist/packages/checkbox/index.d.ts +0 -2
- package/dist/packages/checkbox/index.js +0 -2
- 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/deadtoggle/index.js +0 -51
- package/dist/packages/link/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.js +0 -199
- package/dist/packages/pill/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.js +0 -342
- package/dist/packages/select/index.js.map +0 -7
- package/dist/packages/slider/slider-thumb.js +0 -501
- package/dist/packages/stepindicator/index.d.ts +0 -37
- package/dist/packages/stepindicator/index.js +0 -195
- package/dist/packages/stepindicator/react.d.ts +0 -3
- 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/toast/index.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/combobox/{index.d.ts → combobox.d.ts} +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/{stepindicator → page-indicator}/locales/da/messages.d.mts +0 -0
- /package/dist/packages/{stepindicator → page-indicator}/locales/en/messages.d.mts +0 -0
- /package/dist/packages/{stepindicator → page-indicator}/locales/fi/messages.d.mts +0 -0
- /package/dist/packages/{stepindicator → page-indicator}/locales/nb/messages.d.mts +0 -0
- /package/dist/packages/{stepindicator → 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/{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/{radio → radio-group}/radio-group-styles.js +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}/locales/da/messages.mjs +0 -0
- /package/dist/packages/{stepindicator → step}/locales/en/messages.mjs +0 -0
- /package/dist/packages/{stepindicator → step}/locales/fi/messages.mjs +0 -0
- /package/dist/packages/{stepindicator → step}/locales/nb/messages.mjs +0 -0
- /package/dist/packages/{stepindicator → step}/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/textfield/{index.d.ts → textfield.d.ts} +0 -0
- /package/dist/packages/{toast → toast-container}/toast-container.js +0 -0
|
@@ -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,51 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { html, LitElement } from 'lit';
|
|
8
|
-
import { property } from 'lit/decorators.js';
|
|
9
|
-
import { reset } from '../styles.js';
|
|
10
|
-
import { styles } from './styles.js';
|
|
11
|
-
/**
|
|
12
|
-
* Tab panel component that holds content for individual tabs.
|
|
13
|
-
* Each tab panel should have a name that matches a corresponding tab.
|
|
14
|
-
*
|
|
15
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
16
|
-
*/
|
|
17
|
-
export class WarpTabPanel extends LitElement {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.hidden = true;
|
|
21
|
-
}
|
|
22
|
-
static { this.styles = [reset, styles]; }
|
|
23
|
-
connectedCallback() {
|
|
24
|
-
super.connectedCallback();
|
|
25
|
-
this.setAttribute('tabindex', '-1');
|
|
26
|
-
this.setAttribute('role', 'tabpanel');
|
|
27
|
-
// Set aria-labelledby to reference the corresponding tab
|
|
28
|
-
if (this.name) {
|
|
29
|
-
this.setAttribute('aria-labelledby', `warp-tab-${this.name}`);
|
|
30
|
-
this.setAttribute('id', `warp-tabpanel-${this.name}`);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
updated(changedProperties) {
|
|
34
|
-
if (changedProperties.has('name') && this.name) {
|
|
35
|
-
this.setAttribute('aria-labelledby', `warp-tab-${this.name}`);
|
|
36
|
-
this.setAttribute('id', `warp-tabpanel-${this.name}`);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
render() {
|
|
40
|
-
return html `<slot></slot>`;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
__decorate([
|
|
44
|
-
property({ reflect: true })
|
|
45
|
-
], WarpTabPanel.prototype, "name", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
property({ type: Boolean, reflect: true })
|
|
48
|
-
], WarpTabPanel.prototype, "hidden", void 0);
|
|
49
|
-
if (!customElements.get('w-tab-panel')) {
|
|
50
|
-
customElements.define('w-tab-panel', WarpTabPanel);
|
|
51
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { classNames } from '@chbphone55/classnames';
|
|
8
|
-
import { html, LitElement } from 'lit';
|
|
9
|
-
import { property } from 'lit/decorators.js';
|
|
10
|
-
import { reset } from '../styles.js';
|
|
11
|
-
import { styles } from './styles.js';
|
|
12
|
-
const ccTab = {
|
|
13
|
-
base: 'grid w-full items-center font-bold gap-8 antialias p-16 pb-8 border-b-4 bg-transparent border-transparent hover:s-text-link hover:s-border-primary',
|
|
14
|
-
inactive: 's-text-subtle',
|
|
15
|
-
active: 's-text-link s-border-selected',
|
|
16
|
-
icon: 'mx-auto',
|
|
17
|
-
content: 'flex items-center justify-center gap-8',
|
|
18
|
-
contentUnderlined: 'content-underlined', // content-underlined is a no-op that prevents a quirk in how Vue handles class bindings
|
|
19
|
-
};
|
|
20
|
-
const ccButtonReset = 'focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block';
|
|
21
|
-
/**
|
|
22
|
-
* Individual tab component used within w-tabs container.
|
|
23
|
-
*
|
|
24
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
25
|
-
*/
|
|
26
|
-
export class WarpTab extends LitElement {
|
|
27
|
-
constructor() {
|
|
28
|
-
super(...arguments);
|
|
29
|
-
this.label = '';
|
|
30
|
-
this.active = false;
|
|
31
|
-
this.over = false;
|
|
32
|
-
this.tabClass = '';
|
|
33
|
-
this._handleClick = (event) => {
|
|
34
|
-
// Dispatch a custom event that the parent tabs component can listen to
|
|
35
|
-
this.dispatchEvent(new CustomEvent('tab-click', {
|
|
36
|
-
detail: { name: this.name },
|
|
37
|
-
bubbles: true,
|
|
38
|
-
composed: true,
|
|
39
|
-
}));
|
|
40
|
-
// Also dispatch a generic click event for any click handlers
|
|
41
|
-
this.dispatchEvent(new CustomEvent('click', {
|
|
42
|
-
detail: { name: this.name, originalEvent: event },
|
|
43
|
-
bubbles: true,
|
|
44
|
-
composed: true,
|
|
45
|
-
}));
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
static { this.styles = [reset, styles]; }
|
|
49
|
-
get _classes() {
|
|
50
|
-
return classNames(this.tabClass, [ccButtonReset, ccTab.base, this.active ? ccTab.active : ccTab.inactive]);
|
|
51
|
-
}
|
|
52
|
-
get _hasChildren() {
|
|
53
|
-
return this.querySelector('[slot="icon"]') !== null || this.innerHTML.trim() !== this.label;
|
|
54
|
-
}
|
|
55
|
-
render() {
|
|
56
|
-
const hasChildren = this._hasChildren;
|
|
57
|
-
return html `
|
|
58
|
-
<button
|
|
59
|
-
type="button"
|
|
60
|
-
role="tab"
|
|
61
|
-
aria-selected="${this.active ? 'true' : 'false'}"
|
|
62
|
-
aria-controls="${this.active ? `warp-tabpanel-${this.name}` : ''}"
|
|
63
|
-
id="warp-tab-${this.name}"
|
|
64
|
-
class="${this._classes}"
|
|
65
|
-
@click="${this._handleClick}"
|
|
66
|
-
tabindex="${ /* This needs to be -1 to prevent the auto-focus on buttons, messing up tab order */-1}"
|
|
67
|
-
style="height: 100%">
|
|
68
|
-
${!hasChildren
|
|
69
|
-
? html `<span class="${ccTab.contentUnderlined}">${this.label}</span>`
|
|
70
|
-
: this.over
|
|
71
|
-
? html `
|
|
72
|
-
<span class="${ccTab.icon}">
|
|
73
|
-
<slot name="icon"></slot>
|
|
74
|
-
</span>
|
|
75
|
-
<span class="${ccTab.contentUnderlined}">${this.label}</span>
|
|
76
|
-
`
|
|
77
|
-
: html `
|
|
78
|
-
<div class="${ccTab.content}">
|
|
79
|
-
<slot name="icon"></slot>
|
|
80
|
-
${this.label}
|
|
81
|
-
</div>
|
|
82
|
-
`}
|
|
83
|
-
</button>
|
|
84
|
-
`;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
__decorate([
|
|
88
|
-
property({ reflect: true })
|
|
89
|
-
], WarpTab.prototype, "name", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
property({ reflect: true })
|
|
92
|
-
], WarpTab.prototype, "label", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
property({ type: Boolean, reflect: true })
|
|
95
|
-
], WarpTab.prototype, "active", void 0);
|
|
96
|
-
__decorate([
|
|
97
|
-
property({ type: Boolean, reflect: true })
|
|
98
|
-
], WarpTab.prototype, "over", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
property({ attribute: 'tab-class', reflect: true })
|
|
101
|
-
], WarpTab.prototype, "tabClass", void 0);
|
|
102
|
-
if (!customElements.get('w-tab')) {
|
|
103
|
-
customElements.define('w-tab', WarpTab);
|
|
104
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './textarea.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './textarea.js';
|