@eui/eds-wc 22.0.0-alpha.5 → 22.0.0-alpha.50
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/eds-accordion/eds-wc-accordion.d.ts.map +1 -1
- package/eds-accordion/eds-wc-accordion.js +6 -3
- package/eds-accordion/eds-wc-accordion.js.map +1 -1
- package/eds-alert/eds-wc-alert.d.ts +59 -21
- package/eds-alert/eds-wc-alert.d.ts.map +1 -1
- package/eds-alert/eds-wc-alert.js +211 -85
- package/eds-alert/eds-wc-alert.js.map +1 -1
- package/eds-alert/index.d.ts +1 -0
- package/eds-alert/index.d.ts.map +1 -1
- package/eds-autocomplete/eds-wc-autocomplete.d.ts.map +1 -1
- package/eds-autocomplete/eds-wc-autocomplete.js +3 -0
- package/eds-autocomplete/eds-wc-autocomplete.js.map +1 -1
- package/eds-avatar/eds-wc-avatar.d.ts.map +1 -1
- package/eds-avatar/eds-wc-avatar.js +19 -18
- package/eds-avatar/eds-wc-avatar.js.map +1 -1
- package/eds-badge/eds-wc-badge.d.ts +63 -23
- package/eds-badge/eds-wc-badge.d.ts.map +1 -1
- package/eds-badge/eds-wc-badge.js +228 -101
- package/eds-badge/eds-wc-badge.js.map +1 -1
- package/eds-badge/index.d.ts +1 -0
- package/eds-badge/index.d.ts.map +1 -1
- package/eds-blockquote/eds-wc-blockquote.d.ts.map +1 -1
- package/eds-blockquote/eds-wc-blockquote.js +2 -1
- package/eds-blockquote/eds-wc-blockquote.js.map +1 -1
- package/eds-breadcrumb/eds-wc-breadcrumb.d.ts +20 -1
- package/eds-breadcrumb/eds-wc-breadcrumb.d.ts.map +1 -1
- package/eds-breadcrumb/eds-wc-breadcrumb.js +68 -22
- package/eds-breadcrumb/eds-wc-breadcrumb.js.map +1 -1
- package/eds-breadcrumb/index.d.ts +2 -1
- package/eds-breadcrumb/index.d.ts.map +1 -1
- package/eds-breadcrumb/index.js +1 -1
- package/eds-breadcrumb/index.js.map +1 -1
- package/eds-button/eds-wc-button.d.ts +41 -17
- package/eds-button/eds-wc-button.d.ts.map +1 -1
- package/eds-button/eds-wc-button.js +178 -150
- package/eds-button/eds-wc-button.js.map +1 -1
- package/eds-button/index.d.ts +2 -2
- package/eds-button/index.d.ts.map +1 -1
- package/eds-button/index.js +1 -1
- package/eds-button/index.js.map +1 -1
- package/eds-calendar/eds-wc-calendar.d.ts +274 -0
- package/eds-calendar/eds-wc-calendar.d.ts.map +1 -0
- package/eds-calendar/eds-wc-calendar.js +1237 -0
- package/eds-calendar/eds-wc-calendar.js.map +1 -0
- package/eds-calendar/index.d.ts +3 -0
- package/eds-calendar/index.d.ts.map +1 -0
- package/eds-calendar/index.js +2 -0
- package/eds-calendar/index.js.map +1 -0
- package/eds-card/eds-wc-card.d.ts.map +1 -1
- package/eds-card/eds-wc-card.js +2 -1
- package/eds-card/eds-wc-card.js.map +1 -1
- package/eds-chat-bubble/eds-wc-chat-bubble.d.ts +83 -0
- package/eds-chat-bubble/eds-wc-chat-bubble.d.ts.map +1 -0
- package/eds-chat-bubble/eds-wc-chat-bubble.js +238 -0
- package/eds-chat-bubble/eds-wc-chat-bubble.js.map +1 -0
- package/eds-chat-bubble/index.d.ts +3 -0
- package/eds-chat-bubble/index.d.ts.map +1 -0
- package/eds-chat-bubble/index.js +2 -0
- package/eds-chat-bubble/index.js.map +1 -0
- package/{eds-input-checkbox/eds-wc-input-checkbox.d.ts → eds-checkbox/eds-wc-checkbox.d.ts} +8 -8
- package/eds-checkbox/eds-wc-checkbox.d.ts.map +1 -0
- package/{eds-input-checkbox/eds-wc-input-checkbox.js → eds-checkbox/eds-wc-checkbox.js} +19 -19
- package/eds-checkbox/eds-wc-checkbox.js.map +1 -0
- package/eds-checkbox/index.d.ts +2 -0
- package/eds-checkbox/index.d.ts.map +1 -0
- package/eds-checkbox/index.js +2 -0
- package/eds-checkbox/index.js.map +1 -0
- package/eds-chip/eds-wc-chip.d.ts +107 -18
- package/eds-chip/eds-wc-chip.d.ts.map +1 -1
- package/eds-chip/eds-wc-chip.js +418 -114
- package/eds-chip/eds-wc-chip.js.map +1 -1
- package/eds-chip/index.d.ts +2 -1
- package/eds-chip/index.d.ts.map +1 -1
- package/eds-chip/index.js +1 -1
- package/eds-chip/index.js.map +1 -1
- package/eds-content-item/eds-wc-content-item.d.ts +110 -0
- package/eds-content-item/eds-wc-content-item.d.ts.map +1 -0
- package/eds-content-item/eds-wc-content-item.js +420 -0
- package/eds-content-item/eds-wc-content-item.js.map +1 -0
- package/eds-content-item/index.d.ts +3 -0
- package/eds-content-item/index.d.ts.map +1 -0
- package/eds-content-item/index.js +2 -0
- package/eds-content-item/index.js.map +1 -0
- package/eds-date-block/eds-wc-date-block.d.ts.map +1 -1
- package/eds-date-block/eds-wc-date-block.js +4 -2
- package/eds-date-block/eds-wc-date-block.js.map +1 -1
- package/eds-datepicker/eds-wc-datepicker.js +1 -1
- package/eds-dialog/eds-wc-dialog.js +1 -1
- package/eds-discussion-thread/eds-wc-discussion-thread.js +2 -2
- package/eds-divider/eds-wc-divider.d.ts +56 -0
- package/eds-divider/eds-wc-divider.d.ts.map +1 -0
- package/eds-divider/eds-wc-divider.js +109 -0
- package/eds-divider/eds-wc-divider.js.map +1 -0
- package/eds-divider/index.d.ts +3 -0
- package/eds-divider/index.d.ts.map +1 -0
- package/eds-divider/index.js +2 -0
- package/eds-divider/index.js.map +1 -0
- package/eds-empty-state/eds-wc-empty-state.d.ts.map +1 -1
- package/eds-empty-state/eds-wc-empty-state.js +2 -1
- package/eds-empty-state/eds-wc-empty-state.js.map +1 -1
- package/eds-fab-button/eds-wc-fab-button.js +2 -2
- package/eds-fieldset/eds-wc-fieldset.d.ts.map +1 -1
- package/eds-fieldset/eds-wc-fieldset.js +2 -1
- package/eds-fieldset/eds-wc-fieldset.js.map +1 -1
- package/eds-file-upload/eds-wc-file-upload.js +1 -1
- package/eds-icon/eds-wc-icon-image.d.ts +43 -0
- package/eds-icon/eds-wc-icon-image.d.ts.map +1 -0
- package/eds-icon/eds-wc-icon-image.js +107 -0
- package/eds-icon/eds-wc-icon-image.js.map +1 -0
- package/eds-icon/eds-wc-icon.d.ts +44 -28
- package/eds-icon/eds-wc-icon.d.ts.map +1 -1
- package/eds-icon/eds-wc-icon.js +129 -85
- package/eds-icon/eds-wc-icon.js.map +1 -1
- package/eds-icon/index.d.ts +3 -1
- package/eds-icon/index.d.ts.map +1 -1
- package/eds-icon/index.js +2 -1
- package/eds-icon/index.js.map +1 -1
- package/eds-icon-button/eds-wc-icon-button.d.ts +53 -18
- package/eds-icon-button/eds-wc-icon-button.d.ts.map +1 -1
- package/eds-icon-button/eds-wc-icon-button.js +165 -74
- package/eds-icon-button/eds-wc-icon-button.js.map +1 -1
- package/eds-icon-button/index.d.ts +2 -1
- package/eds-icon-button/index.d.ts.map +1 -1
- package/eds-icon-button/index.js +1 -1
- package/eds-icon-button/index.js.map +1 -1
- package/eds-icon-state/eds-wc-icon-state.d.ts +56 -0
- package/eds-icon-state/eds-wc-icon-state.d.ts.map +1 -0
- package/eds-icon-state/eds-wc-icon-state.js +93 -0
- package/eds-icon-state/eds-wc-icon-state.js.map +1 -0
- package/eds-icon-state/index.d.ts +3 -0
- package/eds-icon-state/index.d.ts.map +1 -0
- package/eds-icon-state/index.js +2 -0
- package/eds-icon-state/index.js.map +1 -0
- package/eds-input-addon/eds-wc-input-addon.d.ts +55 -0
- package/eds-input-addon/eds-wc-input-addon.d.ts.map +1 -0
- package/eds-input-addon/eds-wc-input-addon.js +177 -0
- package/eds-input-addon/eds-wc-input-addon.js.map +1 -0
- package/eds-input-addon/index.d.ts +3 -0
- package/eds-input-addon/index.d.ts.map +1 -0
- package/eds-input-addon/index.js +2 -0
- package/eds-input-addon/index.js.map +1 -0
- package/eds-input-button/eds-wc-input-button.d.ts +86 -8
- package/eds-input-button/eds-wc-input-button.d.ts.map +1 -1
- package/eds-input-button/eds-wc-input-button.js +275 -13
- package/eds-input-button/eds-wc-input-button.js.map +1 -1
- package/eds-input-button/index.d.ts +2 -1
- package/eds-input-button/index.d.ts.map +1 -1
- package/eds-input-button/index.js +1 -1
- package/eds-input-button/index.js.map +1 -1
- package/eds-input-chat/eds-wc-input-chat.d.ts +97 -0
- package/eds-input-chat/eds-wc-input-chat.d.ts.map +1 -0
- package/eds-input-chat/eds-wc-input-chat.js +363 -0
- package/eds-input-chat/eds-wc-input-chat.js.map +1 -0
- package/eds-input-chat/index.d.ts +3 -0
- package/eds-input-chat/index.d.ts.map +1 -0
- package/eds-input-chat/index.js +2 -0
- package/eds-input-chat/index.js.map +1 -0
- package/eds-input-number/eds-wc-input-number.js +1 -1
- package/eds-input-password/eds-wc-input-password.d.ts +115 -0
- package/eds-input-password/eds-wc-input-password.d.ts.map +1 -0
- package/eds-input-password/eds-wc-input-password.js +295 -0
- package/eds-input-password/eds-wc-input-password.js.map +1 -0
- package/eds-input-password/index.d.ts +2 -0
- package/eds-input-password/index.d.ts.map +1 -0
- package/eds-input-password/index.js +2 -0
- package/eds-input-password/index.js.map +1 -0
- package/eds-input-text/eds-wc-input-text.d.ts +4 -0
- package/eds-input-text/eds-wc-input-text.d.ts.map +1 -1
- package/eds-input-text/eds-wc-input-text.js +37 -5
- package/eds-input-text/eds-wc-input-text.js.map +1 -1
- package/eds-label/eds-wc-label.d.ts +10 -0
- package/eds-label/eds-wc-label.d.ts.map +1 -1
- package/eds-label/eds-wc-label.js +29 -1
- package/eds-label/eds-wc-label.js.map +1 -1
- package/eds-language-selector/eds-wc-language-selector.d.ts +108 -0
- package/eds-language-selector/eds-wc-language-selector.d.ts.map +1 -0
- package/eds-language-selector/eds-wc-language-selector.js +655 -0
- package/eds-language-selector/eds-wc-language-selector.js.map +1 -0
- package/eds-language-selector/index.d.ts +3 -0
- package/eds-language-selector/index.d.ts.map +1 -0
- package/eds-language-selector/index.js +2 -0
- package/eds-language-selector/index.js.map +1 -0
- package/eds-loading-indicator/eds-wc-loading-indicator.d.ts +61 -0
- package/eds-loading-indicator/eds-wc-loading-indicator.d.ts.map +1 -0
- package/eds-loading-indicator/eds-wc-loading-indicator.js +106 -0
- package/eds-loading-indicator/eds-wc-loading-indicator.js.map +1 -0
- package/eds-loading-indicator/index.d.ts +3 -0
- package/eds-loading-indicator/index.d.ts.map +1 -0
- package/eds-loading-indicator/index.js +2 -0
- package/eds-loading-indicator/index.js.map +1 -0
- package/eds-message-box/eds-wc-message-box.js +1 -1
- package/eds-multiselect/eds-wc-multiselect.d.ts +118 -0
- package/eds-multiselect/eds-wc-multiselect.d.ts.map +1 -0
- package/eds-multiselect/eds-wc-multiselect.js +618 -0
- package/eds-multiselect/eds-wc-multiselect.js.map +1 -0
- package/eds-multiselect/index.d.ts +3 -0
- package/eds-multiselect/index.d.ts.map +1 -0
- package/eds-multiselect/index.js +2 -0
- package/eds-multiselect/index.js.map +1 -0
- package/eds-overlay/eds-wc-overlay-content.d.ts +17 -0
- package/eds-overlay/eds-wc-overlay-content.d.ts.map +1 -0
- package/eds-overlay/eds-wc-overlay-content.js +34 -0
- package/eds-overlay/eds-wc-overlay-content.js.map +1 -0
- package/eds-overlay/eds-wc-overlay-footer.d.ts +17 -0
- package/eds-overlay/eds-wc-overlay-footer.d.ts.map +1 -0
- package/eds-overlay/eds-wc-overlay-footer.js +35 -0
- package/eds-overlay/eds-wc-overlay-footer.js.map +1 -0
- package/eds-overlay/eds-wc-overlay-header-action-items.d.ts +18 -0
- package/eds-overlay/eds-wc-overlay-header-action-items.d.ts.map +1 -0
- package/eds-overlay/eds-wc-overlay-header-action-items.js +34 -0
- package/eds-overlay/eds-wc-overlay-header-action-items.js.map +1 -0
- package/eds-overlay/eds-wc-overlay-header-label.d.ts +17 -0
- package/eds-overlay/eds-wc-overlay-header-label.d.ts.map +1 -0
- package/eds-overlay/eds-wc-overlay-header-label.js +32 -0
- package/eds-overlay/eds-wc-overlay-header-label.js.map +1 -0
- package/eds-overlay/eds-wc-overlay-header-sublabel.d.ts +17 -0
- package/eds-overlay/eds-wc-overlay-header-sublabel.d.ts.map +1 -0
- package/eds-overlay/eds-wc-overlay-header-sublabel.js +32 -0
- package/eds-overlay/eds-wc-overlay-header-sublabel.js.map +1 -0
- package/eds-overlay/eds-wc-overlay-header.d.ts +25 -0
- package/eds-overlay/eds-wc-overlay-header.d.ts.map +1 -0
- package/eds-overlay/eds-wc-overlay-header.js +105 -0
- package/eds-overlay/eds-wc-overlay-header.js.map +1 -0
- package/eds-overlay/eds-wc-overlay.d.ts +97 -0
- package/eds-overlay/eds-wc-overlay.d.ts.map +1 -0
- package/eds-overlay/eds-wc-overlay.js +352 -0
- package/eds-overlay/eds-wc-overlay.js.map +1 -0
- package/eds-overlay/index.d.ts +9 -0
- package/eds-overlay/index.d.ts.map +1 -0
- package/eds-overlay/index.js +8 -0
- package/eds-overlay/index.js.map +1 -0
- package/{eds-paginator/eds-wc-paginator.d.ts → eds-pagination/eds-wc-pagination.d.ts} +6 -6
- package/eds-pagination/eds-wc-pagination.d.ts.map +1 -0
- package/{eds-paginator/eds-wc-paginator.js → eds-pagination/eds-wc-pagination.js} +21 -21
- package/eds-pagination/eds-wc-pagination.js.map +1 -0
- package/eds-pagination/index.d.ts +3 -0
- package/eds-pagination/index.d.ts.map +1 -0
- package/eds-pagination/index.js +2 -0
- package/eds-pagination/index.js.map +1 -0
- package/eds-popover/eds-wc-popover.js +1 -1
- package/eds-progress-bar/eds-wc-progress-bar.d.ts.map +1 -1
- package/eds-progress-bar/eds-wc-progress-bar.js +2 -1
- package/eds-progress-bar/eds-wc-progress-bar.js.map +1 -1
- package/eds-progress-circle/eds-wc-progress-circle.d.ts.map +1 -1
- package/eds-progress-circle/eds-wc-progress-circle.js +4 -3
- package/eds-progress-circle/eds-wc-progress-circle.js.map +1 -1
- package/{eds-input-radio/eds-wc-input-radio.d.ts → eds-radio/eds-wc-radio.d.ts} +6 -6
- package/eds-radio/eds-wc-radio.d.ts.map +1 -0
- package/{eds-input-radio/eds-wc-input-radio.js → eds-radio/eds-wc-radio.js} +19 -19
- package/eds-radio/eds-wc-radio.js.map +1 -0
- package/eds-radio/index.d.ts +2 -0
- package/eds-radio/index.d.ts.map +1 -0
- package/eds-radio/index.js +2 -0
- package/eds-radio/index.js.map +1 -0
- package/eds-segmented-control/eds-wc-segmented-control.d.ts +67 -0
- package/eds-segmented-control/eds-wc-segmented-control.d.ts.map +1 -0
- package/{eds-button-group/eds-wc-button-group.js → eds-segmented-control/eds-wc-segmented-control.js} +40 -35
- package/eds-segmented-control/eds-wc-segmented-control.js.map +1 -0
- package/eds-segmented-control/index.d.ts +3 -0
- package/eds-segmented-control/index.d.ts.map +1 -0
- package/eds-segmented-control/index.js +2 -0
- package/eds-segmented-control/index.js.map +1 -0
- package/eds-select/eds-wc-select.d.ts +11 -0
- package/eds-select/eds-wc-select.d.ts.map +1 -1
- package/eds-select/eds-wc-select.js +42 -4
- package/eds-select/eds-wc-select.js.map +1 -1
- package/eds-side-sheet/eds-wc-side-sheet-content.d.ts +17 -0
- package/eds-side-sheet/eds-wc-side-sheet-content.d.ts.map +1 -0
- package/eds-side-sheet/eds-wc-side-sheet-content.js +34 -0
- package/eds-side-sheet/eds-wc-side-sheet-content.js.map +1 -0
- package/eds-side-sheet/eds-wc-side-sheet-footer.d.ts +17 -0
- package/eds-side-sheet/eds-wc-side-sheet-footer.d.ts.map +1 -0
- package/eds-side-sheet/eds-wc-side-sheet-footer.js +35 -0
- package/eds-side-sheet/eds-wc-side-sheet-footer.js.map +1 -0
- package/eds-side-sheet/eds-wc-side-sheet-header-action-items.d.ts +18 -0
- package/eds-side-sheet/eds-wc-side-sheet-header-action-items.d.ts.map +1 -0
- package/eds-side-sheet/eds-wc-side-sheet-header-action-items.js +34 -0
- package/eds-side-sheet/eds-wc-side-sheet-header-action-items.js.map +1 -0
- package/eds-side-sheet/eds-wc-side-sheet-header-label.d.ts +17 -0
- package/eds-side-sheet/eds-wc-side-sheet-header-label.d.ts.map +1 -0
- package/eds-side-sheet/eds-wc-side-sheet-header-label.js +32 -0
- package/eds-side-sheet/eds-wc-side-sheet-header-label.js.map +1 -0
- package/eds-side-sheet/eds-wc-side-sheet-header-sublabel.d.ts +17 -0
- package/eds-side-sheet/eds-wc-side-sheet-header-sublabel.d.ts.map +1 -0
- package/eds-side-sheet/eds-wc-side-sheet-header-sublabel.js +32 -0
- package/eds-side-sheet/eds-wc-side-sheet-header-sublabel.js.map +1 -0
- package/eds-side-sheet/eds-wc-side-sheet-header.d.ts +25 -0
- package/eds-side-sheet/eds-wc-side-sheet-header.d.ts.map +1 -0
- package/eds-side-sheet/eds-wc-side-sheet-header.js +105 -0
- package/eds-side-sheet/eds-wc-side-sheet-header.js.map +1 -0
- package/eds-side-sheet/eds-wc-side-sheet.d.ts +97 -0
- package/eds-side-sheet/eds-wc-side-sheet.d.ts.map +1 -0
- package/eds-side-sheet/eds-wc-side-sheet.js +352 -0
- package/eds-side-sheet/eds-wc-side-sheet.js.map +1 -0
- package/eds-side-sheet/index.d.ts +9 -0
- package/eds-side-sheet/index.d.ts.map +1 -0
- package/eds-side-sheet/index.js +8 -0
- package/eds-side-sheet/index.js.map +1 -0
- package/eds-skeleton/eds-wc-skeleton.js +1 -1
- package/eds-swiper/eds-wc-swiper.d.ts +100 -0
- package/eds-swiper/eds-wc-swiper.d.ts.map +1 -0
- package/eds-swiper/eds-wc-swiper.js +384 -0
- package/eds-swiper/eds-wc-swiper.js.map +1 -0
- package/eds-swiper/index.d.ts +2 -0
- package/eds-swiper/index.d.ts.map +1 -0
- package/eds-swiper/index.js +2 -0
- package/eds-swiper/index.js.map +1 -0
- package/{eds-toggle/eds-wc-toggle.d.ts → eds-switch/eds-wc-switch.d.ts} +11 -11
- package/{eds-toggle/eds-wc-toggle.d.ts.map → eds-switch/eds-wc-switch.d.ts.map} +1 -1
- package/{eds-toggle/eds-wc-toggle.js → eds-switch/eds-wc-switch.js} +39 -39
- package/{eds-toggle/eds-wc-toggle.js.map → eds-switch/eds-wc-switch.js.map} +1 -1
- package/eds-switch/index.d.ts +2 -0
- package/eds-switch/index.d.ts.map +1 -0
- package/eds-switch/index.js +2 -0
- package/eds-switch/index.js.map +1 -0
- package/eds-table/eds-wc-table.js +1 -1
- package/eds-tabs/eds-wc-tabs.d.ts.map +1 -1
- package/eds-tabs/eds-wc-tabs.js +2 -1
- package/eds-tabs/eds-wc-tabs.js.map +1 -1
- package/eds-tag/eds-wc-tag.d.ts +45 -16
- package/eds-tag/eds-wc-tag.d.ts.map +1 -1
- package/eds-tag/eds-wc-tag.js +196 -72
- package/eds-tag/eds-wc-tag.js.map +1 -1
- package/eds-tag/index.d.ts +2 -1
- package/eds-tag/index.d.ts.map +1 -1
- package/eds-tag/index.js +1 -1
- package/eds-tag/index.js.map +1 -1
- package/eds-textarea/eds-wc-textarea.js +1 -1
- package/eds-timeline/eds-wc-timeline.js +2 -2
- package/eds-timepicker/eds-wc-timepicker.js +1 -1
- package/{eds-growl/eds-wc-growl.d.ts → eds-toast/eds-wc-toast.d.ts} +18 -18
- package/{eds-growl/eds-wc-growl.d.ts.map → eds-toast/eds-wc-toast.d.ts.map} +1 -1
- package/{eds-growl/eds-wc-growl.js → eds-toast/eds-wc-toast.js} +17 -17
- package/{eds-growl/eds-wc-growl.js.map → eds-toast/eds-wc-toast.js.map} +1 -1
- package/eds-toast/index.d.ts +3 -0
- package/eds-toast/index.d.ts.map +1 -0
- package/eds-toast/index.js +2 -0
- package/eds-toast/index.js.map +1 -0
- package/eds-user-profile/eds-wc-user-profile.d.ts +146 -0
- package/eds-user-profile/eds-wc-user-profile.d.ts.map +1 -0
- package/eds-user-profile/eds-wc-user-profile.js +564 -0
- package/eds-user-profile/eds-wc-user-profile.js.map +1 -0
- package/eds-user-profile/index.d.ts +2 -0
- package/eds-user-profile/index.d.ts.map +1 -0
- package/eds-user-profile/index.js +2 -0
- package/eds-user-profile/index.js.map +1 -0
- package/eds-wizard/eds-wc-wizard.js +1 -1
- package/index.d.ts +46 -12
- package/index.d.ts.map +1 -1
- package/index.js +31 -9
- package/index.js.map +1 -1
- package/package.json +79 -19
- package/eds-button-group/eds-wc-button-group.d.ts +0 -62
- package/eds-button-group/eds-wc-button-group.d.ts.map +0 -1
- package/eds-button-group/eds-wc-button-group.js.map +0 -1
- package/eds-button-group/index.d.ts +0 -2
- package/eds-button-group/index.d.ts.map +0 -1
- package/eds-button-group/index.js +0 -2
- package/eds-button-group/index.js.map +0 -1
- package/eds-growl/index.d.ts +0 -3
- package/eds-growl/index.d.ts.map +0 -1
- package/eds-growl/index.js +0 -2
- package/eds-growl/index.js.map +0 -1
- package/eds-input-checkbox/eds-wc-input-checkbox.d.ts.map +0 -1
- package/eds-input-checkbox/eds-wc-input-checkbox.js.map +0 -1
- package/eds-input-checkbox/index.d.ts +0 -2
- package/eds-input-checkbox/index.d.ts.map +0 -1
- package/eds-input-checkbox/index.js +0 -2
- package/eds-input-checkbox/index.js.map +0 -1
- package/eds-input-radio/eds-wc-input-radio.d.ts.map +0 -1
- package/eds-input-radio/eds-wc-input-radio.js.map +0 -1
- package/eds-input-radio/index.d.ts +0 -2
- package/eds-input-radio/index.d.ts.map +0 -1
- package/eds-input-radio/index.js +0 -2
- package/eds-input-radio/index.js.map +0 -1
- package/eds-paginator/eds-wc-paginator.d.ts.map +0 -1
- package/eds-paginator/eds-wc-paginator.js.map +0 -1
- package/eds-paginator/index.d.ts +0 -3
- package/eds-paginator/index.d.ts.map +0 -1
- package/eds-paginator/index.js +0 -2
- package/eds-paginator/index.js.map +0 -1
- package/eds-toggle/index.d.ts +0 -2
- package/eds-toggle/index.d.ts.map +0 -1
- package/eds-toggle/index.js +0 -2
- package/eds-toggle/index.js.map +0 -1
|
@@ -0,0 +1,384 @@
|
|
|
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, css, nothing } from 'lit';
|
|
8
|
+
import { customElement, property, state, query } from 'lit/decorators.js';
|
|
9
|
+
import { EdsBaseElement } from '../shared/eds-base.js';
|
|
10
|
+
/**
|
|
11
|
+
* `<eds-wc-swiper-item>` — a single item within `<eds-wc-swiper>`.
|
|
12
|
+
*
|
|
13
|
+
* Pure content-projection card with scroll-snap alignment and card-like styling. 1:1 projection
|
|
14
|
+
* of the Angular `eds-swiper-item` component (host `role="listitem"`, `.eds-swiper-item` class).
|
|
15
|
+
*
|
|
16
|
+
* @slot - Default slot for the item content.
|
|
17
|
+
*/
|
|
18
|
+
let EdsWcSwiperItem = class EdsWcSwiperItem extends EdsBaseElement {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
/**
|
|
22
|
+
* Data attribute value for end-to-end testing identification.
|
|
23
|
+
* @default 'eds-swiper-item'
|
|
24
|
+
*/
|
|
25
|
+
this.e2eAttr = 'eds-swiper-item';
|
|
26
|
+
}
|
|
27
|
+
static { this.styles = css `
|
|
28
|
+
:host, *, *::before, *::after {
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:host {
|
|
33
|
+
display: block;
|
|
34
|
+
flex-shrink: 0;
|
|
35
|
+
scroll-snap-align: start;
|
|
36
|
+
border-radius: var(--eds-br-l);
|
|
37
|
+
background-color: var(--eds-c-surface-elevation);
|
|
38
|
+
padding: var(--eds-sp-m);
|
|
39
|
+
box-shadow: var(--eds-sh-1);
|
|
40
|
+
transition: box-shadow 200ms ease;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host(:hover) {
|
|
44
|
+
box-shadow: var(--eds-sh-2);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@media (max-width: 767px) {
|
|
48
|
+
:host {
|
|
49
|
+
min-width: 280px;
|
|
50
|
+
padding: var(--eds-sp-s);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
`; }
|
|
54
|
+
connectedCallback() {
|
|
55
|
+
super.connectedCallback();
|
|
56
|
+
if (!this.hasAttribute('role')) {
|
|
57
|
+
this.setAttribute('role', 'listitem');
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
render() {
|
|
61
|
+
return html `<slot></slot>`;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
__decorate([
|
|
65
|
+
property({ type: String, attribute: 'data-e2e', reflect: true })
|
|
66
|
+
], EdsWcSwiperItem.prototype, "e2eAttr", void 0);
|
|
67
|
+
EdsWcSwiperItem = __decorate([
|
|
68
|
+
customElement('eds-wc-swiper-item')
|
|
69
|
+
], EdsWcSwiperItem);
|
|
70
|
+
export { EdsWcSwiperItem };
|
|
71
|
+
/**
|
|
72
|
+
* `<eds-wc-swiper>` — EDS Swiper Web Component.
|
|
73
|
+
*
|
|
74
|
+
* A horizontal scrolling container that displays items in a row with optional navigation arrows
|
|
75
|
+
* and smooth scroll-snap behavior. Unlike the carousel (one slide at a time with transform-based
|
|
76
|
+
* animation), the swiper displays multiple items simultaneously and uses native scroll behavior.
|
|
77
|
+
* 1:1 projection of the Angular `eds-swiper` component (host `role="region"`, `.eds-swiper` class).
|
|
78
|
+
*
|
|
79
|
+
* Items are projected via the default slot — each direct child (typically an
|
|
80
|
+
* `<eds-wc-swiper-item>`) is one item in the scrollable track.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```html
|
|
84
|
+
* <eds-wc-swiper gap="20" item-min-width="320">
|
|
85
|
+
* <eds-wc-swiper-item>Card 1</eds-wc-swiper-item>
|
|
86
|
+
* <eds-wc-swiper-item>Card 2</eds-wc-swiper-item>
|
|
87
|
+
* <eds-wc-swiper-item>Card 3</eds-wc-swiper-item>
|
|
88
|
+
* </eds-wc-swiper>
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* @slot - Default slot for the swiper items (each direct child = one item).
|
|
92
|
+
*
|
|
93
|
+
* @fires swiper-scroll - Dispatched when the track is scrolled via a navigation arrow. `detail: { direction: 'left' | 'right' }`
|
|
94
|
+
*/
|
|
95
|
+
let EdsWcSwiper = class EdsWcSwiper extends EdsBaseElement {
|
|
96
|
+
constructor() {
|
|
97
|
+
super(...arguments);
|
|
98
|
+
/**
|
|
99
|
+
* Data attribute value for end-to-end testing identification.
|
|
100
|
+
* @default 'eds-swiper'
|
|
101
|
+
*/
|
|
102
|
+
this.e2eAttr = 'eds-swiper';
|
|
103
|
+
/**
|
|
104
|
+
* Accessible label describing the swiper region.
|
|
105
|
+
* @default 'Scrollable content'
|
|
106
|
+
*/
|
|
107
|
+
this.ariaLabel = 'Scrollable content';
|
|
108
|
+
/**
|
|
109
|
+
* Gap between items in pixels.
|
|
110
|
+
* @default 20
|
|
111
|
+
*/
|
|
112
|
+
this.gap = 20;
|
|
113
|
+
/**
|
|
114
|
+
* Minimum width of each item in pixels. Applied to slotted items via a CSS custom property.
|
|
115
|
+
* @default 320
|
|
116
|
+
*/
|
|
117
|
+
this.itemMinWidth = 320;
|
|
118
|
+
/**
|
|
119
|
+
* Whether to hide navigation arrows.
|
|
120
|
+
* @default false
|
|
121
|
+
*/
|
|
122
|
+
this.hideNavigation = false;
|
|
123
|
+
this._canScrollLeft = false;
|
|
124
|
+
this._canScrollRight = false;
|
|
125
|
+
this._slideDirection = null;
|
|
126
|
+
this._slideAnimationTimer = null;
|
|
127
|
+
this._scrollLeft = () => this.scrollLeftBy();
|
|
128
|
+
this._scrollRight = () => this.scrollRightBy();
|
|
129
|
+
this._onScroll = () => this._updateScrollState();
|
|
130
|
+
this._onSlotChange = () => this._updateScrollState();
|
|
131
|
+
}
|
|
132
|
+
/** Whether navigation arrows should be visible. */
|
|
133
|
+
get _showNavigation() {
|
|
134
|
+
return !this.hideNavigation && (this._canScrollLeft || this._canScrollRight);
|
|
135
|
+
}
|
|
136
|
+
static { this.styles = css `
|
|
137
|
+
:host, *, *::before, *::after {
|
|
138
|
+
box-sizing: border-box;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:host {
|
|
142
|
+
display: block;
|
|
143
|
+
position: relative;
|
|
144
|
+
width: 100%;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.eds-swiper__track {
|
|
148
|
+
display: flex;
|
|
149
|
+
overflow-x: auto;
|
|
150
|
+
scroll-snap-type: x mandatory;
|
|
151
|
+
scroll-behavior: smooth;
|
|
152
|
+
-webkit-overflow-scrolling: touch;
|
|
153
|
+
scrollbar-width: none;
|
|
154
|
+
padding: var(--eds-sp-2xs) 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.eds-swiper__track::-webkit-scrollbar {
|
|
158
|
+
display: none;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.eds-swiper__track--slide-right ::slotted(*) {
|
|
162
|
+
animation: eds-swiper-slide-in-right 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.eds-swiper__track--slide-left ::slotted(*) {
|
|
166
|
+
animation: eds-swiper-slide-in-left 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
::slotted(*) {
|
|
170
|
+
min-width: var(--_eds-swiper-item-min-width, 320px);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.eds-swiper__nav {
|
|
174
|
+
position: absolute;
|
|
175
|
+
top: 50%;
|
|
176
|
+
transform: translateY(-50%);
|
|
177
|
+
z-index: 2;
|
|
178
|
+
display: inline-flex;
|
|
179
|
+
align-items: center;
|
|
180
|
+
justify-content: center;
|
|
181
|
+
width: 40px;
|
|
182
|
+
height: 40px;
|
|
183
|
+
padding: 0;
|
|
184
|
+
border: none;
|
|
185
|
+
border-radius: var(--eds-br-full);
|
|
186
|
+
cursor: pointer;
|
|
187
|
+
color: var(--eds-c-foreground-subtle);
|
|
188
|
+
font-family: inherit;
|
|
189
|
+
background-color: var(--eds-c-surface-elevation);
|
|
190
|
+
box-shadow: var(--eds-sh-1);
|
|
191
|
+
transition: opacity 200ms ease, box-shadow 200ms ease;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.eds-swiper__nav:hover {
|
|
195
|
+
box-shadow: var(--eds-sh-2);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.eds-swiper__nav:focus-visible {
|
|
199
|
+
outline: 2px solid var(--eds-c-border-focus);
|
|
200
|
+
outline-offset: 2px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.eds-swiper__nav svg {
|
|
204
|
+
width: var(--eds-is-m);
|
|
205
|
+
height: var(--eds-is-m);
|
|
206
|
+
fill: currentColor;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.eds-swiper__nav--prev {
|
|
210
|
+
left: var(--eds-sp-2xs);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.eds-swiper__nav--next {
|
|
214
|
+
right: var(--eds-sp-2xs);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@media (max-width: 767px) {
|
|
218
|
+
.eds-swiper__nav {
|
|
219
|
+
display: none;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@keyframes eds-swiper-slide-in-right {
|
|
224
|
+
from {
|
|
225
|
+
opacity: 0.4;
|
|
226
|
+
transform: translateX(30px);
|
|
227
|
+
}
|
|
228
|
+
to {
|
|
229
|
+
opacity: 1;
|
|
230
|
+
transform: translateX(0);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@keyframes eds-swiper-slide-in-left {
|
|
235
|
+
from {
|
|
236
|
+
opacity: 0.4;
|
|
237
|
+
transform: translateX(-30px);
|
|
238
|
+
}
|
|
239
|
+
to {
|
|
240
|
+
opacity: 1;
|
|
241
|
+
transform: translateX(0);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
`; }
|
|
245
|
+
connectedCallback() {
|
|
246
|
+
super.connectedCallback();
|
|
247
|
+
if (!this.hasAttribute('role')) {
|
|
248
|
+
this.setAttribute('role', 'region');
|
|
249
|
+
}
|
|
250
|
+
this._resizeObserver = new ResizeObserver(() => this._updateScrollState());
|
|
251
|
+
this._resizeObserver.observe(this);
|
|
252
|
+
}
|
|
253
|
+
disconnectedCallback() {
|
|
254
|
+
super.disconnectedCallback();
|
|
255
|
+
this._resizeObserver?.disconnect();
|
|
256
|
+
this._resizeObserver = undefined;
|
|
257
|
+
if (this._slideAnimationTimer) {
|
|
258
|
+
clearTimeout(this._slideAnimationTimer);
|
|
259
|
+
this._slideAnimationTimer = null;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
firstUpdated() {
|
|
263
|
+
this._updateScrollState();
|
|
264
|
+
}
|
|
265
|
+
render() {
|
|
266
|
+
const baseUrl = EdsBaseElement.assetsBaseUrl;
|
|
267
|
+
const prevHref = `${baseUrl}/eds/icons/sprites/core.svg#caret-left`;
|
|
268
|
+
const nextHref = `${baseUrl}/eds/icons/sprites/core.svg#caret-right`;
|
|
269
|
+
const trackClasses = [
|
|
270
|
+
'eds-swiper__track',
|
|
271
|
+
this._slideDirection === 'left' ? 'eds-swiper__track--slide-left' : '',
|
|
272
|
+
this._slideDirection === 'right' ? 'eds-swiper__track--slide-right' : '',
|
|
273
|
+
].filter(Boolean).join(' ');
|
|
274
|
+
return html `
|
|
275
|
+
<div
|
|
276
|
+
class="${trackClasses}"
|
|
277
|
+
role="list"
|
|
278
|
+
style="gap: ${this.gap}px; --_eds-swiper-item-min-width: ${this.itemMinWidth}px;"
|
|
279
|
+
@scroll="${this._onScroll}">
|
|
280
|
+
<slot @slotchange="${this._onSlotChange}"></slot>
|
|
281
|
+
</div>
|
|
282
|
+
|
|
283
|
+
${this._showNavigation && this._canScrollLeft ? html `
|
|
284
|
+
<button
|
|
285
|
+
type="button"
|
|
286
|
+
class="eds-swiper__nav eds-swiper__nav--prev"
|
|
287
|
+
aria-label="Scroll left"
|
|
288
|
+
@click="${this._scrollLeft}">
|
|
289
|
+
<svg aria-hidden="true"><use href="${prevHref}"></use></svg>
|
|
290
|
+
</button>
|
|
291
|
+
` : nothing}
|
|
292
|
+
|
|
293
|
+
${this._showNavigation && this._canScrollRight ? html `
|
|
294
|
+
<button
|
|
295
|
+
type="button"
|
|
296
|
+
class="eds-swiper__nav eds-swiper__nav--next"
|
|
297
|
+
aria-label="Scroll right"
|
|
298
|
+
@click="${this._scrollRight}">
|
|
299
|
+
<svg aria-hidden="true"><use href="${nextHref}"></use></svg>
|
|
300
|
+
</button>
|
|
301
|
+
` : nothing}
|
|
302
|
+
`;
|
|
303
|
+
}
|
|
304
|
+
/** Scroll the track to the left by ~one viewport width. */
|
|
305
|
+
scrollLeftBy() {
|
|
306
|
+
const track = this._track;
|
|
307
|
+
if (!track)
|
|
308
|
+
return;
|
|
309
|
+
this._triggerSlideAnimation('left');
|
|
310
|
+
track.scrollBy({ left: -track.clientWidth * 0.8, behavior: 'smooth' });
|
|
311
|
+
this.dispatchEvent(new CustomEvent('swiper-scroll', {
|
|
312
|
+
bubbles: true,
|
|
313
|
+
composed: true,
|
|
314
|
+
detail: { direction: 'left' },
|
|
315
|
+
}));
|
|
316
|
+
}
|
|
317
|
+
/** Scroll the track to the right by ~one viewport width. */
|
|
318
|
+
scrollRightBy() {
|
|
319
|
+
const track = this._track;
|
|
320
|
+
if (!track)
|
|
321
|
+
return;
|
|
322
|
+
this._triggerSlideAnimation('right');
|
|
323
|
+
track.scrollBy({ left: track.clientWidth * 0.8, behavior: 'smooth' });
|
|
324
|
+
this.dispatchEvent(new CustomEvent('swiper-scroll', {
|
|
325
|
+
bubbles: true,
|
|
326
|
+
composed: true,
|
|
327
|
+
detail: { direction: 'right' },
|
|
328
|
+
}));
|
|
329
|
+
}
|
|
330
|
+
_triggerSlideAnimation(direction) {
|
|
331
|
+
if (this._slideAnimationTimer) {
|
|
332
|
+
clearTimeout(this._slideAnimationTimer);
|
|
333
|
+
}
|
|
334
|
+
this._slideDirection = direction;
|
|
335
|
+
this._slideAnimationTimer = setTimeout(() => {
|
|
336
|
+
this._slideDirection = null;
|
|
337
|
+
this._slideAnimationTimer = null;
|
|
338
|
+
}, 400);
|
|
339
|
+
}
|
|
340
|
+
_updateScrollState() {
|
|
341
|
+
const track = this._track;
|
|
342
|
+
if (!track)
|
|
343
|
+
return;
|
|
344
|
+
const { scrollLeft, scrollWidth, clientWidth } = track;
|
|
345
|
+
const canLeft = scrollLeft > 1;
|
|
346
|
+
const canRight = scrollLeft + clientWidth < scrollWidth - 1;
|
|
347
|
+
if (this._canScrollLeft !== canLeft)
|
|
348
|
+
this._canScrollLeft = canLeft;
|
|
349
|
+
if (this._canScrollRight !== canRight)
|
|
350
|
+
this._canScrollRight = canRight;
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
__decorate([
|
|
354
|
+
property({ type: String, attribute: 'data-e2e', reflect: true })
|
|
355
|
+
], EdsWcSwiper.prototype, "e2eAttr", void 0);
|
|
356
|
+
__decorate([
|
|
357
|
+
property({ type: String, attribute: 'aria-label', reflect: true })
|
|
358
|
+
], EdsWcSwiper.prototype, "ariaLabel", void 0);
|
|
359
|
+
__decorate([
|
|
360
|
+
property({ type: Number })
|
|
361
|
+
], EdsWcSwiper.prototype, "gap", void 0);
|
|
362
|
+
__decorate([
|
|
363
|
+
property({ type: Number, attribute: 'item-min-width' })
|
|
364
|
+
], EdsWcSwiper.prototype, "itemMinWidth", void 0);
|
|
365
|
+
__decorate([
|
|
366
|
+
property({ type: Boolean, attribute: 'hide-navigation', reflect: true })
|
|
367
|
+
], EdsWcSwiper.prototype, "hideNavigation", void 0);
|
|
368
|
+
__decorate([
|
|
369
|
+
state()
|
|
370
|
+
], EdsWcSwiper.prototype, "_canScrollLeft", void 0);
|
|
371
|
+
__decorate([
|
|
372
|
+
state()
|
|
373
|
+
], EdsWcSwiper.prototype, "_canScrollRight", void 0);
|
|
374
|
+
__decorate([
|
|
375
|
+
state()
|
|
376
|
+
], EdsWcSwiper.prototype, "_slideDirection", void 0);
|
|
377
|
+
__decorate([
|
|
378
|
+
query('.eds-swiper__track')
|
|
379
|
+
], EdsWcSwiper.prototype, "_track", void 0);
|
|
380
|
+
EdsWcSwiper = __decorate([
|
|
381
|
+
customElement('eds-wc-swiper')
|
|
382
|
+
], EdsWcSwiper);
|
|
383
|
+
export { EdsWcSwiper };
|
|
384
|
+
//# sourceMappingURL=eds-wc-swiper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eds-wc-swiper.js","sourceRoot":"","sources":["../../src/eds-swiper/eds-wc-swiper.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;;;;;;GAOG;AAEI,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,cAAc;IAA5C;;QACH;;;WAGG;QAEH,YAAO,GAAG,iBAAiB,CAAC;IAwChC,CAAC;aAtCmB,WAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;KA0B3B,AA1BqB,CA0BpB;IAEO,iBAAiB;QACtB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC;YAC7B,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAC1C,CAAC;IACL,CAAC;IAEkB,MAAM;QACrB,OAAO,IAAI,CAAA,eAAe,CAAC;IAC/B,CAAC;;AAvCD;IADC,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,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CACV;AAM7B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;wCAAU;AAMoB;IAAxD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;iDAAoB;AAMF;IAAzE,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDAAwB;AAEhF;IAAhB,KAAK,EAAE;mDAAgC;AACvB;IAAhB,KAAK,EAAE;oDAAiC;AACxB;IAAhB,KAAK,EAAE;oDAAyD;AAE5B;IAApC,KAAK,CAAC,oBAAoB,CAAC;2CAAiC;AArCpD,WAAW;IADvB,aAAa,CAAC,eAAe,CAAC;GAClB,WAAW,CAmRvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eds-swiper/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eds-swiper/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { EdsBaseElement } from '../shared/eds-base.js';
|
|
2
|
-
declare const
|
|
2
|
+
declare const EdsWcSwitch_base: (new (...args: any[]) => import("../shared/size-mixin.js").SizeMixinInterface) & typeof EdsBaseElement;
|
|
3
3
|
/**
|
|
4
|
-
* `<eds-wc-
|
|
4
|
+
* `<eds-wc-switch>` — EDS Switch Web Component.
|
|
5
5
|
*
|
|
6
6
|
* A switch control for boolean on/off states. Supports size variants,
|
|
7
7
|
* optional icons for on/off states, and proper ARIA switch semantics.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
10
|
* ```html
|
|
11
|
-
* <eds-wc-
|
|
12
|
-
* <eds-wc-
|
|
13
|
-
* <eds-wc-
|
|
11
|
+
* <eds-wc-switch checked size="m"></eds-wc-switch>
|
|
12
|
+
* <eds-wc-switch size="s" disabled></eds-wc-switch>
|
|
13
|
+
* <eds-wc-switch icon-on="check" icon-off="x"></eds-wc-switch>
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
|
-
* @fires
|
|
16
|
+
* @fires switch-change - Dispatched when the checked state changes. `detail: { checked: boolean }`
|
|
17
17
|
*
|
|
18
|
-
* @csspart track - The
|
|
19
|
-
* @csspart handle - The
|
|
18
|
+
* @csspart track - The switch track
|
|
19
|
+
* @csspart handle - The switch handle/thumb
|
|
20
20
|
*/
|
|
21
|
-
export declare class
|
|
21
|
+
export declare class EdsWcSwitch extends EdsWcSwitch_base {
|
|
22
22
|
/** Current checked state. */
|
|
23
23
|
checked: boolean;
|
|
24
24
|
/** Disabled state. */
|
|
@@ -39,8 +39,8 @@ export declare class EdsWcToggle extends EdsWcToggle_base {
|
|
|
39
39
|
}
|
|
40
40
|
declare global {
|
|
41
41
|
interface HTMLElementTagNameMap {
|
|
42
|
-
'eds-wc-
|
|
42
|
+
'eds-wc-switch': EdsWcSwitch;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
export {};
|
|
46
|
-
//# sourceMappingURL=eds-wc-
|
|
46
|
+
//# sourceMappingURL=eds-wc-switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eds-wc-
|
|
1
|
+
{"version":3,"file":"eds-wc-switch.d.ts","sourceRoot":"","sources":["../../src/eds-switch/eds-wc-switch.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;;AAGvD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBACa,WAAY,SAAQ,gBAAyB;IACtD,6BAA6B;IAE7B,OAAO,UAAS;IAEhB,sBAAsB;IAEtB,QAAQ,UAAS;IAEjB,kBAAkB;IAET,SAAS,EAAE,MAAM,GAAG,IAAI,CAAY;IAE7C,iGAAiG;IAEjG,MAAM,SAAM;IAEZ,mCAAmC;IAEnC,OAAO,SAAM;IAEb,OAAgB,MAAM,0BAsFpB;IAEO,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;cAKlB,MAAM;cA0BN,OAAO,IAAI,IAAI;IAclC,OAAO,CAAC,OAAO,CASb;IAEF,OAAO,CAAC,UAAU,CAMhB;CACL;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,eAAe,EAAE,WAAW,CAAC;KAChC;CACJ"}
|
|
@@ -9,24 +9,24 @@ import { customElement, property } from 'lit/decorators.js';
|
|
|
9
9
|
import { EdsBaseElement } from '../shared/eds-base.js';
|
|
10
10
|
import { SizeMixin } from '../shared/size-mixin.js';
|
|
11
11
|
/**
|
|
12
|
-
* `<eds-wc-
|
|
12
|
+
* `<eds-wc-switch>` — EDS Switch Web Component.
|
|
13
13
|
*
|
|
14
14
|
* A switch control for boolean on/off states. Supports size variants,
|
|
15
15
|
* optional icons for on/off states, and proper ARIA switch semantics.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```html
|
|
19
|
-
* <eds-wc-
|
|
20
|
-
* <eds-wc-
|
|
21
|
-
* <eds-wc-
|
|
19
|
+
* <eds-wc-switch checked size="m"></eds-wc-switch>
|
|
20
|
+
* <eds-wc-switch size="s" disabled></eds-wc-switch>
|
|
21
|
+
* <eds-wc-switch icon-on="check" icon-off="x"></eds-wc-switch>
|
|
22
22
|
* ```
|
|
23
23
|
*
|
|
24
|
-
* @fires
|
|
24
|
+
* @fires switch-change - Dispatched when the checked state changes. `detail: { checked: boolean }`
|
|
25
25
|
*
|
|
26
|
-
* @csspart track - The
|
|
27
|
-
* @csspart handle - The
|
|
26
|
+
* @csspart track - The switch track
|
|
27
|
+
* @csspart handle - The switch handle/thumb
|
|
28
28
|
*/
|
|
29
|
-
let
|
|
29
|
+
let EdsWcSwitch = class EdsWcSwitch extends SizeMixin(EdsBaseElement) {
|
|
30
30
|
constructor() {
|
|
31
31
|
super(...arguments);
|
|
32
32
|
/** Current checked state. */
|
|
@@ -34,7 +34,7 @@ let EdsWcToggle = class EdsWcToggle extends SizeMixin(EdsBaseElement) {
|
|
|
34
34
|
/** Disabled state. */
|
|
35
35
|
this.disabled = false;
|
|
36
36
|
/** ARIA label. */
|
|
37
|
-
this.ariaLabel = '
|
|
37
|
+
this.ariaLabel = 'Switch';
|
|
38
38
|
/** Icon name for the ON state. Both `icon-on` and `icon-off` must be set for icons to appear. */
|
|
39
39
|
this.iconOn = '';
|
|
40
40
|
/** Icon name for the OFF state. */
|
|
@@ -45,7 +45,7 @@ let EdsWcToggle = class EdsWcToggle extends SizeMixin(EdsBaseElement) {
|
|
|
45
45
|
if (this.disabled)
|
|
46
46
|
return;
|
|
47
47
|
this.checked = !this.checked;
|
|
48
|
-
this.dispatchEvent(new CustomEvent('
|
|
48
|
+
this.dispatchEvent(new CustomEvent('switch-change', {
|
|
49
49
|
bubbles: true,
|
|
50
50
|
composed: true,
|
|
51
51
|
detail: { checked: this.checked },
|
|
@@ -62,8 +62,8 @@ let EdsWcToggle = class EdsWcToggle extends SizeMixin(EdsBaseElement) {
|
|
|
62
62
|
}
|
|
63
63
|
static { this.styles = css `
|
|
64
64
|
:host {
|
|
65
|
-
--
|
|
66
|
-
--
|
|
65
|
+
--_switch-width: 2.75rem;
|
|
66
|
+
--_switch-height: 1.5rem;
|
|
67
67
|
--_handle-size: 1.25rem;
|
|
68
68
|
--_handle-offset: 0.125rem;
|
|
69
69
|
|
|
@@ -87,17 +87,17 @@ let EdsWcToggle = class EdsWcToggle extends SizeMixin(EdsBaseElement) {
|
|
|
87
87
|
|
|
88
88
|
/* Size variants */
|
|
89
89
|
:host([size="s"]) {
|
|
90
|
-
--
|
|
91
|
-
--
|
|
90
|
+
--_switch-width: 2.25rem;
|
|
91
|
+
--_switch-height: 1.25rem;
|
|
92
92
|
--_handle-size: 1rem;
|
|
93
93
|
}
|
|
94
94
|
:host([size="l"]) {
|
|
95
|
-
--
|
|
96
|
-
--
|
|
95
|
+
--_switch-width: 3.25rem;
|
|
96
|
+
--_switch-height: 1.75rem;
|
|
97
97
|
--_handle-size: 1.5rem;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
.
|
|
100
|
+
.switch__input {
|
|
101
101
|
position: absolute;
|
|
102
102
|
width: 100%;
|
|
103
103
|
height: 100%;
|
|
@@ -107,22 +107,22 @@ let EdsWcToggle = class EdsWcToggle extends SizeMixin(EdsBaseElement) {
|
|
|
107
107
|
margin: 0;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
.
|
|
110
|
+
.switch__track {
|
|
111
111
|
display: flex;
|
|
112
112
|
align-items: center;
|
|
113
|
-
width: var(--
|
|
114
|
-
height: var(--
|
|
113
|
+
width: var(--_switch-width);
|
|
114
|
+
height: var(--_switch-height);
|
|
115
115
|
background-color: var(--eds-c-surface-neutral-subtle);
|
|
116
116
|
border-radius: var(--eds-br-full);
|
|
117
117
|
padding: var(--_handle-offset);
|
|
118
118
|
transition: background-color 150ms ease-in-out;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
:host([checked]) .
|
|
121
|
+
:host([checked]) .switch__track {
|
|
122
122
|
background-color: var(--eds-c-surface-primary);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
.
|
|
125
|
+
.switch__handle {
|
|
126
126
|
display: flex;
|
|
127
127
|
align-items: center;
|
|
128
128
|
justify-content: center;
|
|
@@ -136,12 +136,12 @@ let EdsWcToggle = class EdsWcToggle extends SizeMixin(EdsBaseElement) {
|
|
|
136
136
|
color: var(--eds-c-foreground-subtler);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
:host([checked]) .
|
|
140
|
-
transform: translateX(calc(var(--
|
|
139
|
+
:host([checked]) .switch__handle {
|
|
140
|
+
transform: translateX(calc(var(--_switch-width) - var(--_handle-size) - var(--_handle-offset) * 2));
|
|
141
141
|
border-color: var(--eds-c-surface-primary);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
.
|
|
144
|
+
.switch__icon {
|
|
145
145
|
width: var(--eds-is-xs);
|
|
146
146
|
height: var(--eds-is-xs);
|
|
147
147
|
fill: currentColor;
|
|
@@ -162,17 +162,17 @@ let EdsWcToggle = class EdsWcToggle extends SizeMixin(EdsBaseElement) {
|
|
|
162
162
|
const iconHref = hasIcons ? `${baseUrl}/eds/icons/sprites/regular.svg#${currentIcon}` : '';
|
|
163
163
|
return html `
|
|
164
164
|
<input
|
|
165
|
-
class="
|
|
165
|
+
class="switch__input"
|
|
166
166
|
type="checkbox"
|
|
167
167
|
tabindex="-1"
|
|
168
168
|
aria-hidden="true"
|
|
169
169
|
.checked="${this.checked}"
|
|
170
170
|
?disabled="${this.disabled}"
|
|
171
171
|
@change="${this._toggle}" />
|
|
172
|
-
<span class="
|
|
173
|
-
<span class="
|
|
172
|
+
<span class="switch__track" part="track">
|
|
173
|
+
<span class="switch__handle" part="handle">
|
|
174
174
|
${hasIcons
|
|
175
|
-
? html `<svg class="
|
|
175
|
+
? html `<svg class="switch__icon" aria-hidden="true"><use href="${iconHref}"></use></svg>`
|
|
176
176
|
: nothing}
|
|
177
177
|
</span>
|
|
178
178
|
</span>
|
|
@@ -195,21 +195,21 @@ let EdsWcToggle = class EdsWcToggle extends SizeMixin(EdsBaseElement) {
|
|
|
195
195
|
};
|
|
196
196
|
__decorate([
|
|
197
197
|
property({ type: Boolean, reflect: true })
|
|
198
|
-
],
|
|
198
|
+
], EdsWcSwitch.prototype, "checked", void 0);
|
|
199
199
|
__decorate([
|
|
200
200
|
property({ type: Boolean, reflect: true })
|
|
201
|
-
],
|
|
201
|
+
], EdsWcSwitch.prototype, "disabled", void 0);
|
|
202
202
|
__decorate([
|
|
203
203
|
property({ type: String, attribute: 'aria-label' })
|
|
204
|
-
],
|
|
204
|
+
], EdsWcSwitch.prototype, "ariaLabel", void 0);
|
|
205
205
|
__decorate([
|
|
206
206
|
property({ type: String, attribute: 'icon-on' })
|
|
207
|
-
],
|
|
207
|
+
], EdsWcSwitch.prototype, "iconOn", void 0);
|
|
208
208
|
__decorate([
|
|
209
209
|
property({ type: String, attribute: 'icon-off' })
|
|
210
|
-
],
|
|
211
|
-
|
|
212
|
-
customElement('eds-wc-
|
|
213
|
-
],
|
|
214
|
-
export {
|
|
215
|
-
//# sourceMappingURL=eds-wc-
|
|
210
|
+
], EdsWcSwitch.prototype, "iconOff", void 0);
|
|
211
|
+
EdsWcSwitch = __decorate([
|
|
212
|
+
customElement('eds-wc-switch')
|
|
213
|
+
], EdsWcSwitch);
|
|
214
|
+
export { EdsWcSwitch };
|
|
215
|
+
//# sourceMappingURL=eds-wc-switch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eds-wc-
|
|
1
|
+
{"version":3,"file":"eds-wc-switch.js","sourceRoot":"","sources":["../../src/eds-switch/eds-wc-switch.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;;;;;;;;;;;;;;;;GAiBG;AAEI,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,SAAS,CAAC,cAAc,CAAC;IAAnD;;QACH,6BAA6B;QAE7B,YAAO,GAAG,KAAK,CAAC;QAEhB,sBAAsB;QAEtB,aAAQ,GAAG,KAAK,CAAC;QAEjB,kBAAkB;QAET,cAAS,GAAkB,QAAQ,CAAC;QAE7C,iGAAiG;QAEjG,WAAM,GAA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