@warp-ds/elements 2.2.0-next.1 → 2.2.0-next.11
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/README.md +27 -17
- package/dist/.storybook/utilities.d.ts +28 -0
- package/dist/.storybook/utilities.js +52 -0
- package/dist/api.js +1 -49
- package/dist/api.js.map +4 -4
- package/dist/custom-elements.json +4282 -0
- package/dist/packages/affix/affix.stories.d.ts +10 -0
- package/dist/packages/affix/affix.stories.js +25 -0
- package/dist/packages/affix/affix.test.d.ts +1 -0
- package/dist/packages/affix/affix.test.js +9 -0
- package/dist/packages/affix/index.d.ts +52 -24
- package/dist/packages/affix/index.js +2448 -2240
- package/dist/packages/affix/index.js.map +4 -4
- package/dist/packages/affix/react.d.ts +2 -0
- package/dist/packages/affix/react.js +8 -0
- package/dist/packages/affix/styles.d.ts +1 -0
- package/dist/packages/affix/styles.js +2 -0
- package/dist/packages/alert/alert.stories.d.ts +15 -0
- package/dist/packages/alert/alert.stories.js +68 -0
- package/dist/packages/alert/alert.test.d.ts +1 -0
- package/dist/packages/alert/alert.test.js +16 -0
- package/dist/packages/alert/index.d.ts +27 -17
- package/dist/packages/alert/index.js +2452 -2446
- package/dist/packages/alert/index.js.map +4 -4
- package/dist/packages/alert/react.d.ts +2 -0
- package/dist/packages/alert/react.js +8 -0
- package/dist/packages/alert/styles.d.ts +1 -0
- package/dist/packages/alert/styles.js +2 -0
- package/dist/packages/attention/attention.stories.d.ts +15 -0
- package/dist/packages/attention/attention.stories.js +188 -0
- package/dist/packages/attention/attention.test.d.ts +1 -0
- package/dist/packages/attention/attention.test.js +11 -0
- package/dist/packages/attention/index.d.ts +62 -90
- package/dist/packages/attention/index.js +3360 -3984
- package/dist/packages/attention/index.js.map +4 -4
- package/dist/packages/attention/layout-styles.d.ts +1 -0
- package/dist/packages/attention/layout-styles.js +905 -0
- package/dist/packages/attention/locales/da/messages.mjs +1 -0
- package/dist/packages/attention/locales/en/messages.mjs +1 -0
- package/dist/packages/attention/locales/fi/messages.mjs +1 -0
- package/dist/packages/attention/locales/nb/messages.mjs +1 -0
- package/dist/packages/attention/locales/sv/messages.mjs +1 -0
- package/dist/packages/attention/react.d.ts +1 -0
- package/dist/packages/attention/react.js +9 -0
- package/dist/packages/attention/styles.d.ts +1 -0
- package/dist/packages/attention/styles.js +2 -0
- package/dist/packages/badge/badge.stories.d.ts +17 -0
- package/dist/packages/badge/badge.stories.js +68 -0
- package/dist/packages/badge/badge.test.d.ts +1 -0
- package/dist/packages/badge/badge.test.js +9 -0
- package/dist/packages/badge/index.d.ts +17 -11
- package/dist/packages/badge/index.js +2441 -300
- package/dist/packages/badge/index.js.map +4 -4
- package/dist/packages/badge/react.d.ts +2 -0
- package/dist/packages/badge/react.js +8 -0
- package/dist/packages/badge/styles.d.ts +1 -0
- package/dist/packages/badge/styles.js +2 -0
- package/dist/packages/box/box.stories.d.ts +14 -0
- package/dist/packages/box/box.stories.js +59 -0
- package/dist/packages/box/box.test.d.ts +1 -0
- package/dist/packages/box/box.test.js +9 -0
- package/dist/packages/box/index.d.ts +22 -20
- package/dist/packages/box/index.js +2441 -304
- package/dist/packages/box/index.js.map +4 -4
- package/dist/packages/box/react.d.ts +2 -0
- package/dist/packages/box/react.js +8 -0
- package/dist/packages/box/slot.test.d.ts +1 -0
- package/dist/packages/box/slot.test.js +9 -0
- package/dist/packages/box/styles.d.ts +1 -0
- package/dist/packages/box/styles.js +2 -0
- package/dist/packages/breadcrumbs/breadcrumbs.stories.d.ts +12 -0
- package/dist/packages/breadcrumbs/breadcrumbs.stories.js +60 -0
- package/dist/packages/breadcrumbs/breadcrumbs.test.d.ts +1 -0
- package/dist/packages/breadcrumbs/breadcrumbs.test.js +16 -0
- package/dist/packages/breadcrumbs/index.d.ts +24 -16
- package/dist/packages/breadcrumbs/index.js +2402 -2051
- package/dist/packages/breadcrumbs/index.js.map +4 -4
- package/dist/packages/breadcrumbs/locales/da/messages.mjs +1 -0
- package/dist/packages/breadcrumbs/locales/en/messages.mjs +1 -0
- package/dist/packages/breadcrumbs/locales/fi/messages.mjs +1 -0
- package/dist/packages/breadcrumbs/locales/nb/messages.mjs +1 -0
- package/dist/packages/breadcrumbs/locales/sv/messages.mjs +1 -0
- package/dist/packages/breadcrumbs/react.d.ts +2 -0
- package/dist/packages/breadcrumbs/react.js +8 -0
- package/dist/packages/breadcrumbs/styles.d.ts +1 -0
- package/dist/packages/breadcrumbs/styles.js +2 -0
- package/dist/packages/button/button.stories.d.ts +21 -0
- package/dist/packages/button/button.stories.js +119 -0
- package/dist/packages/button/button.test.d.ts +1 -0
- package/dist/packages/button/button.test.js +24 -0
- package/dist/packages/button/index.d.ts +111 -56
- package/dist/packages/button/index.js +2612 -2130
- package/dist/packages/button/index.js.map +4 -4
- package/dist/packages/button/locales/da/messages.mjs +1 -0
- package/dist/packages/button/locales/en/messages.mjs +1 -0
- package/dist/packages/button/locales/fi/messages.mjs +1 -0
- package/dist/packages/button/locales/nb/messages.mjs +1 -0
- package/dist/packages/button/locales/sv/messages.mjs +1 -0
- package/dist/packages/button/react.d.ts +2 -0
- package/dist/packages/button/react.js +8 -0
- package/dist/packages/button/styles.d.ts +1 -0
- package/dist/packages/button/styles.js +2 -0
- package/dist/packages/card/card.stories.d.ts +15 -0
- package/dist/packages/card/card.stories.js +82 -0
- package/dist/packages/card/card.test.d.ts +1 -0
- package/dist/packages/card/card.test.js +9 -0
- package/dist/packages/card/index.d.ts +33 -16
- package/dist/packages/card/index.js +2403 -2067
- package/dist/packages/card/index.js.map +4 -4
- package/dist/packages/card/locales/da/messages.mjs +1 -0
- package/dist/packages/card/locales/en/messages.mjs +1 -0
- package/dist/packages/card/locales/fi/messages.mjs +1 -0
- package/dist/packages/card/locales/nb/messages.mjs +1 -0
- package/dist/packages/card/locales/sv/messages.mjs +1 -0
- package/dist/packages/card/react.d.ts +2 -0
- package/dist/packages/card/react.js +8 -0
- package/dist/packages/card/styles.d.ts +1 -0
- package/dist/packages/card/styles.js +2 -0
- package/dist/packages/datepicker/DatePicker.test.d.ts +1 -0
- package/dist/packages/datepicker/DatePicker.test.js +68 -0
- package/dist/packages/datepicker/datepicker.d.ts +107 -0
- package/dist/packages/datepicker/datepicker.js +2785 -0
- package/dist/packages/datepicker/datepicker.js.map +7 -0
- package/dist/packages/datepicker/datepicker.stories.d.ts +11 -0
- package/dist/packages/datepicker/datepicker.stories.js +50 -0
- package/dist/packages/datepicker/datepicker.test.d.ts +2 -0
- package/dist/packages/datepicker/datepicker.test.js +62 -0
- package/dist/packages/datepicker/index.d.ts +1 -0
- package/dist/packages/datepicker/index.js +2785 -0
- package/dist/packages/datepicker/index.js.map +7 -0
- package/dist/packages/datepicker/locales/da/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/da/messages.mjs +1 -0
- package/dist/packages/datepicker/locales/en/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/en/messages.mjs +1 -0
- package/dist/packages/datepicker/locales/fi/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/fi/messages.mjs +1 -0
- package/dist/packages/datepicker/locales/nb/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/nb/messages.mjs +1 -0
- package/dist/packages/datepicker/locales/sv/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/sv/messages.mjs +1 -0
- package/dist/packages/datepicker/react.d.ts +2 -0
- package/dist/packages/datepicker/react.js +8 -0
- package/dist/packages/datepicker/styles/w-datepicker-calendar.styles.d.ts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker-calendar.styles.js +15 -0
- package/dist/packages/datepicker/styles/w-datepicker-day.styles.d.ts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker-day.styles.js +64 -0
- package/dist/packages/datepicker/styles/w-datepicker-month.styles.d.ts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker-month.styles.js +72 -0
- package/dist/packages/datepicker/styles/w-datepicker.styles.d.ts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker.styles.js +101 -0
- package/dist/packages/datepicker/utils.d.ts +13 -0
- package/dist/packages/datepicker/utils.js +28 -0
- package/dist/packages/dead-toggle/dead-toggle.stories.d.ts +10 -0
- package/dist/packages/dead-toggle/dead-toggle.stories.js +23 -0
- package/dist/packages/dead-toggle/dead-toggle.test.d.ts +1 -0
- package/dist/packages/dead-toggle/dead-toggle.test.js +9 -0
- package/dist/packages/dead-toggle/index.d.ts +21 -0
- package/dist/packages/dead-toggle/index.js +2487 -0
- package/dist/packages/dead-toggle/index.js.map +7 -0
- package/dist/packages/dead-toggle/react.d.ts +2 -0
- package/dist/packages/dead-toggle/react.js +8 -0
- package/dist/packages/expandable/expandable.stories.d.ts +19 -0
- package/dist/packages/expandable/expandable.stories.js +133 -0
- package/dist/packages/expandable/expandable.test.d.ts +1 -0
- package/dist/packages/expandable/expandable.test.js +24 -0
- package/dist/packages/expandable/index.d.ts +55 -50
- package/dist/packages/expandable/index.js +2416 -2287
- package/dist/packages/expandable/index.js.map +4 -4
- package/dist/packages/expandable/react.d.ts +2 -0
- package/dist/packages/expandable/react.js +8 -0
- package/dist/packages/expandable/styles.d.ts +1 -0
- package/dist/packages/expandable/styles.js +2 -0
- package/dist/packages/i18n.js +44 -0
- package/dist/packages/link/index.d.ts +39 -0
- package/dist/packages/link/index.js +2646 -0
- package/dist/packages/link/index.js.map +7 -0
- package/dist/packages/link/link.stories.d.ts +20 -0
- package/dist/packages/link/link.stories.js +121 -0
- package/dist/packages/link/link.test.d.ts +1 -0
- package/dist/packages/link/link.test.js +9 -0
- package/dist/packages/link/react.d.ts +2 -0
- package/dist/packages/link/react.js +8 -0
- package/dist/packages/link/styles.d.ts +1 -0
- package/dist/packages/link/styles.js +200 -0
- package/dist/packages/modal/index.d.ts +4 -5
- package/dist/packages/modal/index.js +2649 -2569
- package/dist/packages/modal/index.js.map +4 -4
- package/dist/packages/modal/locales/da/messages.mjs +1 -0
- package/dist/packages/modal/locales/en/messages.mjs +1 -0
- package/dist/packages/modal/locales/fi/messages.mjs +1 -0
- package/dist/packages/modal/locales/nb/messages.mjs +1 -0
- package/dist/packages/modal/locales/sv/messages.mjs +1 -0
- package/dist/packages/modal/modal-footer.d.ts +18 -11
- package/dist/packages/modal/modal-footer.js +2460 -0
- package/dist/packages/modal/modal-footer.js.map +7 -0
- package/dist/packages/modal/modal-header.d.ts +30 -31
- package/dist/packages/modal/modal-header.js +2584 -0
- package/dist/packages/modal/modal-header.js.map +7 -0
- package/dist/packages/modal/modal-main.d.ts +32 -31
- package/dist/packages/modal/modal-main.js +2572 -0
- package/dist/packages/modal/modal-main.js.map +7 -0
- package/dist/packages/modal/modal.stories.d.ts +19 -0
- package/dist/packages/modal/modal.stories.js +160 -0
- package/dist/packages/modal/react.d.ts +4 -0
- package/dist/packages/modal/react.js +18 -0
- package/dist/packages/modal/util.d.ts +7 -17
- package/dist/packages/modal/util.js +21 -0
- package/dist/packages/pageindicator/index.d.ts +14 -0
- package/dist/packages/pageindicator/index.js +32 -0
- package/dist/packages/pageindicator/index.js.map +7 -0
- package/dist/packages/pageindicator/pageindicator.stories.d.ts +32 -0
- package/dist/packages/pageindicator/pageindicator.stories.js +71 -0
- package/dist/packages/pageindicator/react.d.ts +2 -0
- package/dist/packages/pageindicator/react.js +8 -0
- package/dist/packages/pageindicator/style.d.ts +1 -0
- package/dist/packages/pageindicator/style.js +26 -0
- package/dist/packages/pagination/index.d.ts +37 -0
- package/dist/packages/pagination/index.js +2494 -0
- package/dist/packages/pagination/index.js.map +7 -0
- package/dist/packages/pagination/locales/da/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/da/messages.mjs +1 -0
- package/dist/packages/pagination/locales/en/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/en/messages.mjs +1 -0
- package/dist/packages/pagination/locales/fi/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/fi/messages.mjs +1 -0
- package/dist/packages/pagination/locales/nb/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/nb/messages.mjs +1 -0
- package/dist/packages/pagination/locales/sv/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/sv/messages.mjs +1 -0
- package/dist/packages/pagination/pagination.stories.d.ts +14 -0
- package/dist/packages/pagination/pagination.stories.js +56 -0
- package/dist/packages/pagination/pagination.test.d.ts +1 -0
- package/dist/packages/pagination/pagination.test.js +76 -0
- package/dist/packages/pagination/react.d.ts +2 -0
- package/dist/packages/pagination/react.js +8 -0
- package/dist/packages/pagination/styles.d.ts +1 -0
- package/dist/packages/pagination/styles.js +2 -0
- package/dist/packages/pill/index.d.ts +44 -23
- package/dist/packages/pill/index.js +2408 -2175
- package/dist/packages/pill/index.js.map +4 -4
- package/dist/packages/pill/locales/da/messages.mjs +1 -0
- package/dist/packages/pill/locales/en/messages.mjs +1 -0
- package/dist/packages/pill/locales/fi/messages.mjs +1 -0
- package/dist/packages/pill/locales/nb/messages.mjs +1 -0
- package/dist/packages/pill/locales/sv/messages.mjs +1 -0
- package/dist/packages/pill/pill.stories.d.ts +12 -0
- package/dist/packages/pill/pill.stories.js +33 -0
- package/dist/packages/pill/pill.test.d.ts +1 -0
- package/dist/packages/pill/pill.test.js +23 -0
- package/dist/packages/pill/styles.d.ts +1 -0
- package/dist/packages/pill/styles.js +2 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.d.ts +64 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.js +210 -0
- package/dist/packages/rip-and-tear-checkbox/index.d.ts +6 -0
- package/dist/packages/rip-and-tear-checkbox/index.js +160 -0
- package/dist/packages/rip-and-tear-checkbox/index.js.map +7 -0
- package/dist/packages/rip-and-tear-checkbox/styles.d.ts +1 -0
- package/dist/packages/rip-and-tear-checkbox/styles.js +116 -0
- package/dist/packages/rip-and-tear-radio/base-element.d.ts +46 -0
- package/dist/packages/rip-and-tear-radio/base-element.js +100 -0
- package/dist/packages/rip-and-tear-radio/custom-error-validator.d.ts +6 -0
- package/dist/packages/rip-and-tear-radio/custom-error-validator.js +22 -0
- package/dist/packages/rip-and-tear-radio/form-associated-element.d.ts +103 -0
- package/dist/packages/rip-and-tear-radio/form-associated-element.js +282 -0
- package/dist/packages/rip-and-tear-radio/host-styles.d.ts +1 -0
- package/dist/packages/rip-and-tear-radio/host-styles.js +12 -0
- package/dist/packages/rip-and-tear-radio/index.d.ts +8 -0
- package/dist/packages/rip-and-tear-radio/index.js +272 -0
- package/dist/packages/rip-and-tear-radio/index.js.map +7 -0
- package/dist/packages/rip-and-tear-radio/invalid.d.ts +8 -0
- package/dist/packages/rip-and-tear-radio/invalid.js +5 -0
- package/dist/packages/rip-and-tear-radio/math.d.ts +1 -0
- package/dist/packages/rip-and-tear-radio/math.js +4 -0
- package/dist/packages/rip-and-tear-radio/radio-group-styles.d.ts +1 -0
- package/dist/packages/rip-and-tear-radio/radio-group-styles.js +60 -0
- package/dist/packages/rip-and-tear-radio/radio-group.d.ts +72 -0
- package/dist/packages/rip-and-tear-radio/radio-group.js +339 -0
- package/dist/packages/rip-and-tear-radio/radio-styles.d.ts +1 -0
- package/dist/packages/rip-and-tear-radio/radio-styles.js +172 -0
- package/dist/packages/rip-and-tear-radio/radio.d.ts +38 -0
- package/dist/packages/rip-and-tear-radio/radio.js +107 -0
- package/dist/packages/rip-and-tear-radio/required-validator.d.ts +11 -0
- package/dist/packages/rip-and-tear-radio/required-validator.js +34 -0
- package/dist/packages/rip-and-tear-radio/slot.d.ts +20 -0
- package/dist/packages/rip-and-tear-radio/slot.js +71 -0
- package/dist/packages/rip-and-tear-radio/watch.d.ts +26 -0
- package/dist/packages/rip-and-tear-radio/watch.js +39 -0
- package/dist/packages/select/index.d.ts +59 -48
- package/dist/packages/select/index.js +2421 -2236
- package/dist/packages/select/index.js.map +4 -4
- package/dist/packages/select/locales/da/messages.mjs +1 -0
- package/dist/packages/select/locales/en/messages.mjs +1 -0
- package/dist/packages/select/locales/fi/messages.mjs +1 -0
- package/dist/packages/select/locales/nb/messages.mjs +1 -0
- package/dist/packages/select/locales/sv/messages.mjs +1 -0
- package/dist/packages/select/react.d.ts +2 -0
- package/dist/packages/select/react.js +8 -0
- package/dist/packages/select/select.stories.d.ts +10 -0
- package/dist/packages/select/select.stories.js +31 -0
- package/dist/packages/select/select.test.d.ts +1 -0
- package/dist/packages/select/select.test.js +31 -0
- package/dist/packages/select/styles.d.ts +1 -0
- package/dist/packages/select/styles.js +2 -0
- package/dist/packages/steps/index.d.ts +43 -0
- package/dist/packages/steps/index.js +2465 -0
- package/dist/packages/steps/index.js.map +7 -0
- package/dist/packages/steps/locales/da/messages.d.mts +1 -0
- package/dist/packages/steps/locales/da/messages.mjs +1 -0
- package/dist/packages/steps/locales/en/messages.d.mts +1 -0
- package/dist/packages/steps/locales/en/messages.mjs +1 -0
- package/dist/packages/steps/locales/fi/messages.d.mts +1 -0
- package/dist/packages/steps/locales/fi/messages.mjs +1 -0
- package/dist/packages/steps/locales/nb/messages.d.mts +1 -0
- package/dist/packages/steps/locales/nb/messages.mjs +1 -0
- package/dist/packages/steps/locales/sv/messages.d.mts +1 -0
- package/dist/packages/steps/locales/sv/messages.mjs +1 -0
- package/dist/packages/steps/react.d.ts +3 -0
- package/dist/packages/steps/react.js +13 -0
- package/dist/packages/steps/steps.stories.d.ts +12 -0
- package/dist/packages/steps/steps.stories.js +172 -0
- package/dist/packages/steps/styles.d.ts +1 -0
- package/dist/packages/steps/styles.js +2 -0
- package/dist/packages/styles.d.ts +2 -0
- package/dist/packages/styles.js +2442 -0
- package/dist/packages/switch/index.d.ts +20 -0
- package/dist/packages/switch/index.js +2455 -0
- package/dist/packages/switch/index.js.map +7 -0
- package/dist/packages/switch/react.d.ts +2 -0
- package/dist/packages/switch/react.js +8 -0
- package/dist/packages/switch/styles.d.ts +1 -0
- package/dist/packages/switch/styles.js +2 -0
- package/dist/packages/switch/switch.stories.d.ts +9 -0
- package/dist/packages/switch/switch.stories.js +34 -0
- package/dist/packages/tabs/index.d.ts +4 -0
- package/dist/packages/tabs/index.js +2470 -0
- package/dist/packages/tabs/index.js.map +7 -0
- package/dist/packages/tabs/react.d.ts +4 -0
- package/dist/packages/tabs/react.js +18 -0
- package/dist/packages/tabs/styles.d.ts +1 -0
- package/dist/packages/tabs/styles.js +2 -0
- package/dist/packages/tabs/tab-panel.d.ts +20 -0
- package/dist/packages/tabs/tab-panel.js +51 -0
- package/dist/packages/tabs/tab.d.ts +23 -0
- package/dist/packages/tabs/tab.js +103 -0
- package/dist/packages/tabs/tabs.d.ts +38 -0
- package/dist/packages/tabs/tabs.js +238 -0
- package/dist/packages/tabs/tabs.stories.d.ts +8 -0
- package/dist/packages/tabs/tabs.stories.js +84 -0
- package/dist/packages/textfield/index.d.ts +72 -74
- package/dist/packages/textfield/index.js +2456 -413
- package/dist/packages/textfield/index.js.map +4 -4
- package/dist/packages/textfield/react.d.ts +2 -0
- package/dist/packages/textfield/react.js +8 -0
- package/dist/packages/textfield/styles.d.ts +1 -0
- package/dist/packages/textfield/styles.js +2 -0
- package/dist/packages/textfield/textfield.stories.d.ts +17 -0
- package/dist/packages/textfield/textfield.stories.js +86 -0
- package/dist/packages/textfield/textfield.test.d.ts +1 -0
- package/dist/packages/textfield/textfield.test.js +9 -0
- package/dist/packages/toast/api.d.ts +4 -45
- package/dist/packages/toast/api.js +41 -0
- package/dist/packages/toast/index.d.ts +3 -0
- package/dist/packages/toast/index.js +2466 -2787
- package/dist/packages/toast/index.js.map +4 -4
- package/dist/packages/toast/locales/da/messages.mjs +1 -0
- package/dist/packages/toast/locales/en/messages.mjs +1 -0
- package/dist/packages/toast/locales/fi/messages.mjs +1 -0
- package/dist/packages/toast/locales/nb/messages.mjs +1 -0
- package/dist/packages/toast/locales/sv/messages.mjs +1 -0
- package/dist/packages/toast/styles.d.ts +1 -0
- package/dist/packages/toast/styles.js +2 -0
- package/dist/packages/toast/toast-container.d.ts +12 -63
- package/dist/packages/toast/toast-container.js +153 -0
- package/dist/packages/toast/toast.d.ts +34 -29
- package/dist/packages/toast/toast.js +200 -0
- package/dist/packages/toast/toast.stories.d.ts +12 -0
- package/dist/packages/toast/toast.stories.js +50 -0
- package/dist/packages/toast/types.d.ts +15 -0
- package/dist/packages/toast/types.js +1 -0
- package/dist/packages/utils/expand-transition.d.ts +3 -2
- package/dist/packages/utils/expand-transition.js +59 -0
- package/dist/packages/utils/index.d.ts +1 -1
- package/dist/packages/utils/index.js +2 -0
- package/dist/packages/utils/index.js.map +7 -0
- package/dist/packages/utils/unstyled-heading.d.ts +3 -3
- package/dist/packages/utils/unstyled-heading.js +22 -0
- package/dist/packages/utils/window-exists.js +1 -0
- package/dist/setup-tests.d.ts +1 -0
- package/dist/setup-tests.js +1 -0
- package/dist/vscode.css-custom-data.json +6 -0
- package/dist/vscode.html-custom-data.json +421 -0
- package/dist/web-types.json +949 -0
- package/package.json +88 -32
- package/dist/index.d.ts +0 -18
- package/dist/index.js +0 -6832
- package/dist/index.js.map +0 -7
|
@@ -0,0 +1,238 @@
|
|
|
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 { html, LitElement } from 'lit';
|
|
9
|
+
import { classNames } from '@chbphone55/classnames';
|
|
10
|
+
import { property, query } from 'lit/decorators.js';
|
|
11
|
+
import { reset } from '../styles.js';
|
|
12
|
+
import { styles } from './styles.js';
|
|
13
|
+
const ccTabs = {
|
|
14
|
+
wrapper: 'inline-block border-b s-border mb-32',
|
|
15
|
+
base: 'inline-grid relative -mb-1',
|
|
16
|
+
selectionIndicator: 'absolute s-border-selected -bottom-0 border-b-4 transition-all',
|
|
17
|
+
};
|
|
18
|
+
const ccGridLayout = {
|
|
19
|
+
cols1: 'grid-cols-1',
|
|
20
|
+
cols2: 'grid-cols-2',
|
|
21
|
+
cols3: 'grid-cols-3',
|
|
22
|
+
cols4: 'grid-cols-4',
|
|
23
|
+
cols5: 'grid-cols-5',
|
|
24
|
+
cols6: 'grid-cols-6',
|
|
25
|
+
cols7: 'grid-cols-7',
|
|
26
|
+
cols8: 'grid-cols-8',
|
|
27
|
+
cols9: 'grid-cols-9',
|
|
28
|
+
};
|
|
29
|
+
// Simple debounce utility
|
|
30
|
+
function debounce(func, wait = 200, immediate = false) {
|
|
31
|
+
let timeout;
|
|
32
|
+
return ((...args) => {
|
|
33
|
+
const later = () => {
|
|
34
|
+
timeout = null;
|
|
35
|
+
if (!immediate)
|
|
36
|
+
func(...args);
|
|
37
|
+
};
|
|
38
|
+
const callNow = immediate && !timeout;
|
|
39
|
+
if (timeout)
|
|
40
|
+
clearTimeout(timeout);
|
|
41
|
+
timeout = setTimeout(later, wait);
|
|
42
|
+
if (callNow)
|
|
43
|
+
func(...args);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Tabs are used to organize content by grouping similar information on the same page.
|
|
48
|
+
*
|
|
49
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/tabs--docs)
|
|
50
|
+
*/
|
|
51
|
+
export class WarpTabs extends LitElement {
|
|
52
|
+
static { this.styles = [reset, styles]; }
|
|
53
|
+
constructor() {
|
|
54
|
+
super();
|
|
55
|
+
this.active = '';
|
|
56
|
+
this.tabClass = '';
|
|
57
|
+
this._activeTab = '';
|
|
58
|
+
this._updateSelectionIndicatorDebounced = debounce(this.updateSelectionIndicator.bind(this), 100);
|
|
59
|
+
this._handleTabClick = (event) => {
|
|
60
|
+
const newActiveTab = event.detail.name;
|
|
61
|
+
if (newActiveTab !== this._activeTab) {
|
|
62
|
+
this.active = newActiveTab;
|
|
63
|
+
this._activeTab = newActiveTab;
|
|
64
|
+
this.updateSelectionIndicator();
|
|
65
|
+
this.updatePanels();
|
|
66
|
+
this._notifyTabChange();
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
this._handleKeyDown = (event) => {
|
|
70
|
+
if (event.altKey || event.ctrlKey || event.shiftKey || !['ArrowLeft', 'ArrowRight', 'Home', 'End'].includes(event.key)) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
const tabs = Array.from(this.querySelectorAll('w-tab'));
|
|
74
|
+
const currentIndex = tabs.findIndex((tab) => tab.getAttribute('name') === this._activeTab);
|
|
75
|
+
if (currentIndex === -1)
|
|
76
|
+
return;
|
|
77
|
+
let nextIndex = currentIndex;
|
|
78
|
+
switch (event.key) {
|
|
79
|
+
case 'Home':
|
|
80
|
+
nextIndex = 0;
|
|
81
|
+
break;
|
|
82
|
+
case 'End':
|
|
83
|
+
nextIndex = tabs.length - 1;
|
|
84
|
+
break;
|
|
85
|
+
case 'ArrowLeft':
|
|
86
|
+
nextIndex = Math.max(0, currentIndex - 1);
|
|
87
|
+
break;
|
|
88
|
+
case 'ArrowRight':
|
|
89
|
+
nextIndex = Math.min(tabs.length - 1, currentIndex + 1);
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
if (nextIndex !== currentIndex) {
|
|
93
|
+
event.preventDefault();
|
|
94
|
+
const nextTab = tabs[nextIndex];
|
|
95
|
+
const nextTabName = nextTab.getAttribute('name');
|
|
96
|
+
if (nextTabName) {
|
|
97
|
+
this.active = nextTabName;
|
|
98
|
+
this._activeTab = nextTabName;
|
|
99
|
+
this.updateSelectionIndicator();
|
|
100
|
+
this.updatePanels();
|
|
101
|
+
this._notifyTabChange();
|
|
102
|
+
// Focus the next tab
|
|
103
|
+
nextTab.focus();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
this.addEventListener('tab-click', this._handleTabClick);
|
|
108
|
+
}
|
|
109
|
+
connectedCallback() {
|
|
110
|
+
super.connectedCallback();
|
|
111
|
+
// Set up resize observer for selection indicator updates
|
|
112
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
113
|
+
this._resizeObserver = new ResizeObserver(() => {
|
|
114
|
+
this._updateSelectionIndicatorDebounced();
|
|
115
|
+
});
|
|
116
|
+
this._resizeObserver.observe(this);
|
|
117
|
+
}
|
|
118
|
+
// Fallback for older browsers
|
|
119
|
+
window.addEventListener('resize', this._updateSelectionIndicatorDebounced);
|
|
120
|
+
}
|
|
121
|
+
disconnectedCallback() {
|
|
122
|
+
super.disconnectedCallback();
|
|
123
|
+
if (this._resizeObserver) {
|
|
124
|
+
this._resizeObserver.disconnect();
|
|
125
|
+
}
|
|
126
|
+
window.removeEventListener('resize', this._updateSelectionIndicatorDebounced);
|
|
127
|
+
this.removeEventListener('tab-click', this._handleTabClick);
|
|
128
|
+
}
|
|
129
|
+
firstUpdated() {
|
|
130
|
+
this._initializeActiveTab();
|
|
131
|
+
this.updateSelectionIndicator();
|
|
132
|
+
this.updatePanels();
|
|
133
|
+
}
|
|
134
|
+
updated(changedProperties) {
|
|
135
|
+
if (changedProperties.has('active') && this.active !== this._activeTab) {
|
|
136
|
+
this._activeTab = this.active;
|
|
137
|
+
this.updateSelectionIndicator();
|
|
138
|
+
this.updatePanels();
|
|
139
|
+
this._notifyTabChange();
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
_initializeActiveTab() {
|
|
143
|
+
const tabs = Array.from(this.querySelectorAll('w-tab'));
|
|
144
|
+
const activeTab = tabs.find((tab) => tab.hasAttribute('active'));
|
|
145
|
+
if (activeTab) {
|
|
146
|
+
this._activeTab = activeTab.getAttribute('name') || '';
|
|
147
|
+
}
|
|
148
|
+
else if (tabs.length > 0) {
|
|
149
|
+
this._activeTab = tabs[0].getAttribute('name') || '';
|
|
150
|
+
}
|
|
151
|
+
if (this._activeTab) {
|
|
152
|
+
this.active = this._activeTab;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
_notifyTabChange() {
|
|
156
|
+
this.dispatchEvent(new CustomEvent('change', {
|
|
157
|
+
detail: { name: this._activeTab },
|
|
158
|
+
bubbles: true,
|
|
159
|
+
composed: true,
|
|
160
|
+
}));
|
|
161
|
+
}
|
|
162
|
+
updateSelectionIndicator() {
|
|
163
|
+
requestAnimationFrame(() => {
|
|
164
|
+
if (!this.tabList || !this.selectionIndicator)
|
|
165
|
+
return;
|
|
166
|
+
const activeTab = this.tabList.querySelector(`w-tab[name="${this._activeTab}"]`);
|
|
167
|
+
if (!activeTab)
|
|
168
|
+
return;
|
|
169
|
+
const tabListRect = this.tabList.getBoundingClientRect();
|
|
170
|
+
const activeTabRect = activeTab.getBoundingClientRect();
|
|
171
|
+
const left = activeTabRect.left - tabListRect.left;
|
|
172
|
+
const width = activeTabRect.width;
|
|
173
|
+
this.selectionIndicator.style.left = `${left}px`;
|
|
174
|
+
this.selectionIndicator.style.width = `${width}px`;
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
updatePanels() {
|
|
178
|
+
// Update tab panels visibility
|
|
179
|
+
const panels = document.querySelectorAll('w-tab-panel');
|
|
180
|
+
panels.forEach((panel) => {
|
|
181
|
+
const panelName = panel.getAttribute('name');
|
|
182
|
+
if (panelName === this._activeTab) {
|
|
183
|
+
panel.removeAttribute('hidden');
|
|
184
|
+
// Also explicitly set hidden property to false for web components
|
|
185
|
+
panel.hidden = false;
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
panel.setAttribute('hidden', '');
|
|
189
|
+
panel.hidden = true;
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
// Update tab active states
|
|
193
|
+
const tabs = this.querySelectorAll('w-tab');
|
|
194
|
+
tabs.forEach((tab) => {
|
|
195
|
+
const tabName = tab.getAttribute('name');
|
|
196
|
+
if (tabName === this._activeTab) {
|
|
197
|
+
tab.setAttribute('active', '');
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
tab.removeAttribute('active');
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
get _tabCount() {
|
|
205
|
+
return this.querySelectorAll('w-tab').length;
|
|
206
|
+
}
|
|
207
|
+
get _gridClass() {
|
|
208
|
+
const count = Math.min(this._tabCount, 9);
|
|
209
|
+
return ccGridLayout[`cols${count}`] || ccGridLayout.cols1;
|
|
210
|
+
}
|
|
211
|
+
render() {
|
|
212
|
+
const navClasses = classNames(this.tabClass, ccTabs.wrapper);
|
|
213
|
+
const divClasses = classNames([ccTabs.base, this._gridClass]);
|
|
214
|
+
return html `
|
|
215
|
+
<div class="${navClasses}">
|
|
216
|
+
<div role="tablist" class="${divClasses}" @keydown="${this._handleKeyDown}">
|
|
217
|
+
<slot></slot>
|
|
218
|
+
<span class="selection-indicator ${ccTabs.selectionIndicator}" data-testid="selection-indicator"></span>
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
`;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
__decorate([
|
|
225
|
+
property({ reflect: true })
|
|
226
|
+
], WarpTabs.prototype, "active", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
property({ attribute: 'tab-class', reflect: true })
|
|
229
|
+
], WarpTabs.prototype, "tabClass", void 0);
|
|
230
|
+
__decorate([
|
|
231
|
+
query('[role="tablist"]')
|
|
232
|
+
], WarpTabs.prototype, "tabList", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
query('.selection-indicator')
|
|
235
|
+
], WarpTabs.prototype, "selectionIndicator", void 0);
|
|
236
|
+
if (!customElements.get('w-tabs')) {
|
|
237
|
+
customElements.define('w-tabs', WarpTabs);
|
|
238
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './index.js';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default meta;
|
|
6
|
+
export declare const Default: () => import("lit").TemplateResult<1>;
|
|
7
|
+
export declare const WithIcons: () => import("lit").TemplateResult<1>;
|
|
8
|
+
export declare const ManyTabs: () => import("lit").TemplateResult<1>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import './index.js';
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Components/Tabs',
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
export const Default = () => html `
|
|
8
|
+
<w-tabs active="tab1">
|
|
9
|
+
<w-tab name="tab1" label="First Tab"></w-tab>
|
|
10
|
+
<w-tab name="tab2" label="Second Tab"></w-tab>
|
|
11
|
+
<w-tab name="tab3" label="Third Tab"></w-tab>
|
|
12
|
+
</w-tabs>
|
|
13
|
+
|
|
14
|
+
<w-tab-panel name="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-panel name="tab2" hidden>
|
|
19
|
+
<p>Content for the second tab. This panel is visible when the second tab is active.</p>
|
|
20
|
+
</w-tab-panel>
|
|
21
|
+
|
|
22
|
+
<w-tab-panel name="tab3" hidden>
|
|
23
|
+
<p>Content for the third tab. This panel is visible when the third tab is active.</p>
|
|
24
|
+
</w-tab-panel>
|
|
25
|
+
`;
|
|
26
|
+
export const WithIcons = () => html `
|
|
27
|
+
<w-tabs active="home">
|
|
28
|
+
<w-tab name="home" label="Home">
|
|
29
|
+
<span slot="icon">🏠</span>
|
|
30
|
+
</w-tab>
|
|
31
|
+
<w-tab name="search" label="Search">
|
|
32
|
+
<span slot="icon">🔍</span>
|
|
33
|
+
</w-tab>
|
|
34
|
+
<w-tab name="profile" label="Profile">
|
|
35
|
+
<span slot="icon">👤</span>
|
|
36
|
+
</w-tab>
|
|
37
|
+
</w-tabs>
|
|
38
|
+
|
|
39
|
+
<w-tab-panel name="home">
|
|
40
|
+
<p>Welcome to the home page!</p>
|
|
41
|
+
</w-tab-panel>
|
|
42
|
+
|
|
43
|
+
<w-tab-panel name="search" hidden>
|
|
44
|
+
<p>Search functionality goes here.</p>
|
|
45
|
+
</w-tab-panel>
|
|
46
|
+
|
|
47
|
+
<w-tab-panel name="profile" hidden>
|
|
48
|
+
<p>User profile information.</p>
|
|
49
|
+
</w-tab-panel>
|
|
50
|
+
`;
|
|
51
|
+
export const ManyTabs = () => html `
|
|
52
|
+
<w-tabs active="tab1">
|
|
53
|
+
<w-tab name="tab1" label="Tab 1"></w-tab>
|
|
54
|
+
<w-tab name="tab2" label="Tab 2"></w-tab>
|
|
55
|
+
<w-tab name="tab3" label="Tab 3"></w-tab>
|
|
56
|
+
<w-tab name="tab4" label="Tab 4"></w-tab>
|
|
57
|
+
<w-tab name="tab5" label="Tab 5"></w-tab>
|
|
58
|
+
<w-tab name="tab6" label="Tab 6"></w-tab>
|
|
59
|
+
</w-tabs>
|
|
60
|
+
|
|
61
|
+
<w-tab-panel name="tab1">
|
|
62
|
+
<p>Content for tab 1</p>
|
|
63
|
+
</w-tab-panel>
|
|
64
|
+
|
|
65
|
+
<w-tab-panel name="tab2" hidden>
|
|
66
|
+
<p>Content for tab 2</p>
|
|
67
|
+
</w-tab-panel>
|
|
68
|
+
|
|
69
|
+
<w-tab-panel name="tab3" hidden>
|
|
70
|
+
<p>Content for tab 3</p>
|
|
71
|
+
</w-tab-panel>
|
|
72
|
+
|
|
73
|
+
<w-tab-panel name="tab4" hidden>
|
|
74
|
+
<p>Content for tab 4</p>
|
|
75
|
+
</w-tab-panel>
|
|
76
|
+
|
|
77
|
+
<w-tab-panel name="tab5" hidden>
|
|
78
|
+
<p>Content for tab 5</p>
|
|
79
|
+
</w-tab-panel>
|
|
80
|
+
|
|
81
|
+
<w-tab-panel name="tab6" hidden>
|
|
82
|
+
<p>Content for tab 6</p>
|
|
83
|
+
</w-tab-panel>
|
|
84
|
+
`;
|
|
@@ -1,83 +1,81 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
export declare const ccinput: {
|
|
3
|
+
wrapper: string;
|
|
4
|
+
base: string;
|
|
5
|
+
default: string;
|
|
6
|
+
disabled: string;
|
|
7
|
+
invalid: string;
|
|
8
|
+
readOnly: string;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
suffix: string;
|
|
11
|
+
prefix: string;
|
|
12
|
+
textArea: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const ccLabel: {
|
|
15
|
+
base: string;
|
|
16
|
+
optional: string;
|
|
7
17
|
};
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
size: {
|
|
26
|
-
type: StringConstructor;
|
|
27
|
-
};
|
|
28
|
-
max: {
|
|
29
|
-
type: NumberConstructor;
|
|
30
|
-
};
|
|
31
|
-
min: {
|
|
32
|
-
type: NumberConstructor;
|
|
33
|
-
};
|
|
34
|
-
minLength: {
|
|
35
|
-
type: NumberConstructor;
|
|
36
|
-
};
|
|
37
|
-
maxLength: {
|
|
38
|
-
type: NumberConstructor;
|
|
39
|
-
};
|
|
40
|
-
name: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
};
|
|
43
|
-
pattern: {
|
|
44
|
-
type: StringConstructor;
|
|
45
|
-
};
|
|
46
|
-
placeholder: {
|
|
47
|
-
type: StringConstructor;
|
|
48
|
-
};
|
|
49
|
-
readOnly: {
|
|
50
|
-
type: BooleanConstructor;
|
|
51
|
-
};
|
|
52
|
-
required: {
|
|
53
|
-
type: BooleanConstructor;
|
|
54
|
-
};
|
|
55
|
-
type: {
|
|
56
|
-
type: StringConstructor;
|
|
57
|
-
};
|
|
58
|
-
value: {
|
|
59
|
-
type: StringConstructor;
|
|
60
|
-
};
|
|
61
|
-
_hasPrefix: {
|
|
62
|
-
state: boolean;
|
|
63
|
-
};
|
|
64
|
-
_hasSuffix: {
|
|
65
|
-
state: boolean;
|
|
66
|
-
};
|
|
18
|
+
export declare const ccHelpText: {
|
|
19
|
+
base: string;
|
|
20
|
+
color: string;
|
|
21
|
+
colorInvalid: string;
|
|
22
|
+
};
|
|
23
|
+
declare const WarpTextField_base: import("@open-wc/form-control").Constructor<import("@open-wc/form-control").FormControlInterface> & typeof LitElement;
|
|
24
|
+
/**
|
|
25
|
+
* A single line text input element.
|
|
26
|
+
*
|
|
27
|
+
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-textfield--docs)
|
|
28
|
+
*/
|
|
29
|
+
declare class WarpTextField extends WarpTextField_base {
|
|
30
|
+
static shadowRootOptions: {
|
|
31
|
+
delegatesFocus: boolean;
|
|
32
|
+
mode: ShadowRootMode;
|
|
33
|
+
serializable?: boolean;
|
|
34
|
+
slotAssignment?: SlotAssignmentMode;
|
|
67
35
|
};
|
|
68
|
-
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
invalid: boolean;
|
|
38
|
+
id: string;
|
|
39
|
+
label: string;
|
|
40
|
+
helpText: string;
|
|
41
|
+
size: string;
|
|
42
|
+
max: number;
|
|
43
|
+
min: number;
|
|
44
|
+
minLength: number;
|
|
45
|
+
maxLength: number;
|
|
46
|
+
pattern: string;
|
|
47
|
+
placeholder: string;
|
|
48
|
+
readOnly: boolean;
|
|
49
|
+
required: boolean;
|
|
69
50
|
type: string;
|
|
70
|
-
|
|
71
|
-
|
|
51
|
+
value: string;
|
|
52
|
+
name: string;
|
|
53
|
+
/** @internal */
|
|
54
|
+
_hasPrefix: boolean;
|
|
55
|
+
/** @internal */
|
|
56
|
+
_hasSuffix: boolean;
|
|
57
|
+
updated(changedProperties: PropertyValues<this>): void;
|
|
58
|
+
static styles: import("lit").CSSResult[];
|
|
59
|
+
/** @internal */
|
|
60
|
+
get _inputstyles(): string;
|
|
61
|
+
/** @internal */
|
|
62
|
+
get _helptextstyles(): string;
|
|
63
|
+
/** @internal */
|
|
72
64
|
get _label(): import("lit").TemplateResult<1>;
|
|
65
|
+
/** @internal */
|
|
73
66
|
get _helpId(): string;
|
|
67
|
+
/** @internal */
|
|
74
68
|
get _id(): string;
|
|
69
|
+
/** @internal */
|
|
75
70
|
get _error(): string;
|
|
76
|
-
handler(e:
|
|
77
|
-
prefixSlotChange(
|
|
78
|
-
|
|
79
|
-
suffixSlotChange(e: any): void;
|
|
80
|
-
_hasSuffix: boolean;
|
|
71
|
+
handler(e: Event): void;
|
|
72
|
+
prefixSlotChange(): void;
|
|
73
|
+
suffixSlotChange(): void;
|
|
81
74
|
render(): import("lit").TemplateResult<1>;
|
|
82
75
|
}
|
|
83
|
-
export {};
|
|
76
|
+
export { WarpTextField };
|
|
77
|
+
declare global {
|
|
78
|
+
interface HTMLElementTagNameMap {
|
|
79
|
+
'w-textfield': WarpTextField;
|
|
80
|
+
}
|
|
81
|
+
}
|