@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
|
@@ -7,129 +7,214 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { html, css } from 'lit';
|
|
8
8
|
import { customElement, property } from 'lit/decorators.js';
|
|
9
9
|
import { EdsBaseElement } from '../shared/eds-base.js';
|
|
10
|
-
import
|
|
11
|
-
import { SizeMixin } from '../shared/size-mixin.js';
|
|
10
|
+
import '../eds-icon/eds-wc-icon.js';
|
|
12
11
|
/**
|
|
13
12
|
* `<eds-wc-icon-button>` — EDS Icon Button Web Component.
|
|
14
13
|
*
|
|
15
|
-
* A
|
|
16
|
-
* Supports
|
|
14
|
+
* A compact, icon-only button. Renders an internal native `<button>` (for keyboard/focus/click
|
|
15
|
+
* semantics) containing an `<eds-wc-icon>`. Supports semantic color and size via reflected string
|
|
16
|
+
* attributes, an optional rounded shape, and a disabled state. 1:1 projection of the Angular
|
|
17
|
+
* `button[edsIconButton]` directive.
|
|
18
|
+
*
|
|
19
|
+
* Unlike the Angular directive which decorates a consumer-provided native `<button>`, this web
|
|
20
|
+
* component renders its own internal `<button>` element and mirrors the same reflected attribute
|
|
21
|
+
* API on the host.
|
|
17
22
|
*
|
|
18
23
|
* @example
|
|
19
24
|
* ```html
|
|
20
|
-
* <eds-wc-icon-button icon="
|
|
21
|
-
* <eds-wc-icon-button icon="
|
|
25
|
+
* <eds-wc-icon-button icon="gear" aria-label="Settings"></eds-wc-icon-button>
|
|
26
|
+
* <eds-wc-icon-button icon="trash" color="critical" size="s" aria-label="Delete"></eds-wc-icon-button>
|
|
27
|
+
* <eds-wc-icon-button icon="star" color="brand" rounded aria-label="Favorite"></eds-wc-icon-button>
|
|
28
|
+
* <eds-wc-icon-button icon="bell" disabled aria-label="Notifications"></eds-wc-icon-button>
|
|
22
29
|
* ```
|
|
23
30
|
*
|
|
24
|
-
* @slot - Default slot for overlay
|
|
25
|
-
*
|
|
26
|
-
* @fires click - Native click event (blocked when disabled)
|
|
31
|
+
* @slot - Default slot for a projected overlay such as an `<eds-wc-badge>`.
|
|
27
32
|
*
|
|
28
|
-
* @
|
|
29
|
-
* @csspart svg - The icon SVG element
|
|
33
|
+
* @fires button-click - Dispatched when the button is clicked. `detail: { originalEvent: Event }`
|
|
30
34
|
*/
|
|
31
|
-
let EdsWcIconButton = class EdsWcIconButton extends
|
|
35
|
+
let EdsWcIconButton = class EdsWcIconButton extends EdsBaseElement {
|
|
32
36
|
constructor() {
|
|
33
37
|
super(...arguments);
|
|
34
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* The name of the icon to display from the eUI icon library.
|
|
40
|
+
* @default ''
|
|
41
|
+
*/
|
|
35
42
|
this.icon = '';
|
|
36
|
-
/**
|
|
37
|
-
|
|
38
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Semantic color of the icon button.
|
|
45
|
+
* @default 'neutral'
|
|
46
|
+
*/
|
|
47
|
+
this.color = 'neutral';
|
|
48
|
+
/**
|
|
49
|
+
* Size of the icon button.
|
|
50
|
+
* @default 'm'
|
|
51
|
+
*/
|
|
52
|
+
this.size = 'm';
|
|
53
|
+
/**
|
|
54
|
+
* Accessible label for screen readers describing the button's purpose.
|
|
55
|
+
* @default 'EDS Icon button'
|
|
56
|
+
*/
|
|
57
|
+
this.ariaLabel = 'EDS Icon button';
|
|
58
|
+
/**
|
|
59
|
+
* Applies rounded corners to the button shape instead of default square corners.
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
39
62
|
this.rounded = false;
|
|
40
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* Disables the button (non-interactive, disabled styling, removed from tab order).
|
|
65
|
+
* @default false
|
|
66
|
+
*/
|
|
41
67
|
this.disabled = false;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
68
|
+
this._onClick = (event) => {
|
|
69
|
+
if (this.disabled) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
this.dispatchEvent(new CustomEvent('button-click', {
|
|
73
|
+
bubbles: true,
|
|
74
|
+
composed: true,
|
|
75
|
+
detail: { originalEvent: event },
|
|
76
|
+
}));
|
|
77
|
+
};
|
|
50
78
|
}
|
|
51
79
|
static { this.styles = css `
|
|
80
|
+
:host, *, *::before, *::after {
|
|
81
|
+
box-sizing: border-box;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* parent overrides :
|
|
85
|
+
--_button-padding, --_button-surface-hover, --_button-on-surface-hover, --_button-color */
|
|
86
|
+
|
|
52
87
|
:host {
|
|
88
|
+
--_eds-icon-button-surface-hover: var(--_button-surface-hover, var(--eds-c-surface-neutral-subtle));
|
|
89
|
+
--_eds-icon-button-on-surface-hover: var(--_button-on-surface-hover, var(--eds-c-on-surface-neutral-subtle));
|
|
90
|
+
--_eds-icon-button-padding: var(--_button-padding, var(--eds-sp-3xs));
|
|
91
|
+
--_eds-icon-button-color: var(--eds-c-foreground-subtle);
|
|
92
|
+
|
|
53
93
|
display: inline-flex;
|
|
54
94
|
}
|
|
55
95
|
|
|
56
96
|
button {
|
|
97
|
+
/* Reset */
|
|
98
|
+
font-family: inherit;
|
|
99
|
+
-webkit-appearance: none;
|
|
100
|
+
appearance: none;
|
|
101
|
+
|
|
57
102
|
display: inline-flex;
|
|
58
|
-
align-items: center;
|
|
59
|
-
justify-content: center;
|
|
60
103
|
border: none;
|
|
61
104
|
cursor: pointer;
|
|
62
|
-
background-color:
|
|
63
|
-
padding: var(--
|
|
105
|
+
background-color: inherit;
|
|
106
|
+
padding: var(--_eds-icon-button-padding);
|
|
64
107
|
position: relative;
|
|
65
|
-
color: var(--
|
|
66
|
-
border-radius:
|
|
67
|
-
|
|
68
|
-
-webkit-appearance: none;
|
|
69
|
-
appearance: none;
|
|
70
|
-
font-family: inherit;
|
|
108
|
+
color: var(--_eds-icon-button-color);
|
|
109
|
+
border-radius: inherit;
|
|
110
|
+
outline: none;
|
|
71
111
|
}
|
|
72
112
|
|
|
73
113
|
button:hover,
|
|
74
114
|
button:active {
|
|
75
|
-
background-color: var(--
|
|
76
|
-
color: var(--
|
|
115
|
+
background-color: var(--_eds-icon-button-surface-hover);
|
|
116
|
+
color: var(--_eds-icon-button-on-surface-hover);
|
|
77
117
|
}
|
|
78
118
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
119
|
+
/* COLOR VARIANTS */
|
|
120
|
+
|
|
121
|
+
:host([color="brand"]) {
|
|
122
|
+
--_eds-icon-button-surface-hover: var(--_button-surface-hover, var(--eds-c-surface-brand--hover));
|
|
123
|
+
--_eds-icon-button-on-surface-hover: var(--_button-on-surface-hover, var(--eds-c-on-surface-brand--hover));
|
|
124
|
+
--_eds-icon-button-color: var(--_button-color, var(--eds-c-on-surface-brand));
|
|
82
125
|
}
|
|
83
126
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
127
|
+
:host([color="neutral"]) {
|
|
128
|
+
--_eds-icon-button-surface-hover: var(--_button-surface-hover, var(--eds-c-surface-neutral-subtler));
|
|
129
|
+
--_eds-icon-button-on-surface-hover: var(--_button-on-surface-hover, var(--eds-c-on-surface-neutral-subtler));
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
:host([color="info"]) {
|
|
133
|
+
--_eds-icon-button-surface-hover: var(--_button-surface-hover, var(--eds-c-surface-info-subtler--hover));
|
|
134
|
+
--_eds-icon-button-on-surface-hover: var(--_button-on-surface-hover, var(--eds-c-on-surface-info-subtler--hover));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:host([color="success"]) {
|
|
138
|
+
--_eds-icon-button-surface-hover: var(--_button-surface-hover, var(--eds-c-surface-success-subtler--hover));
|
|
139
|
+
--_eds-icon-button-on-surface-hover: var(--_button-on-surface-hover, var(--eds-c-on-surface-success-subtler--hover));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:host([color="warning"]) {
|
|
143
|
+
--_eds-icon-button-surface-hover: var(--_button-surface-hover, var(--eds-c-surface-warning-subtler--hover));
|
|
144
|
+
--_eds-icon-button-on-surface-hover: var(--_button-on-surface-hover, var(--eds-c-on-surface-warning-subtler--hover));
|
|
87
145
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
146
|
+
|
|
147
|
+
:host([color="critical"]) {
|
|
148
|
+
--_eds-icon-button-surface-hover: var(--_button-surface-hover, var(--eds-c-surface-critical-subtler--hover));
|
|
149
|
+
--_eds-icon-button-on-surface-hover: var(--_button-on-surface-hover, var(--eds-c-on-surface-critical-subtler--hover));
|
|
91
150
|
}
|
|
92
151
|
|
|
93
|
-
/*
|
|
94
|
-
|
|
152
|
+
/* SIZE VARIANTS */
|
|
153
|
+
|
|
154
|
+
:host([size="2xs"]) { --_eds-icon-button-padding: var(--_button-padding, var(--eds-sp-2xs)); }
|
|
155
|
+
:host([size="xs"]) { --_eds-icon-button-padding: var(--_button-padding, var(--eds-sp-2xs)); }
|
|
156
|
+
:host([size="s"]) { --_eds-icon-button-padding: var(--_button-padding, var(--eds-sp-2xs)); }
|
|
157
|
+
:host([size="m"]) { --_eds-icon-button-padding: var(--_button-padding, var(--eds-sp-xs)); }
|
|
158
|
+
:host([size="l"]) { --_eds-icon-button-padding: var(--_button-padding, var(--eds-sp-s)); }
|
|
159
|
+
|
|
160
|
+
/* STATE */
|
|
161
|
+
|
|
162
|
+
:host([rounded]) {
|
|
95
163
|
border-radius: var(--eds-br-full);
|
|
96
164
|
}
|
|
97
165
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
:host([
|
|
104
|
-
|
|
166
|
+
:host([disabled]) {
|
|
167
|
+
--_eds-icon-button-color: var(--_button-color, var(--eds-c-foreground-disabled));
|
|
168
|
+
--_eds-icon-button-surface-hover: transparent;
|
|
169
|
+
--_eds-icon-button-on-surface-hover: var(--_eds-icon-button-color);
|
|
170
|
+
}
|
|
171
|
+
:host([disabled]) button {
|
|
172
|
+
cursor: default;
|
|
173
|
+
}
|
|
105
174
|
|
|
106
|
-
/*
|
|
107
|
-
:host([size="2xs"]) { --_padding: var(--eds-sp-2xs); }
|
|
108
|
-
:host([size="xs"]) { --_padding: var(--eds-sp-2xs); }
|
|
109
|
-
:host([size="s"]) { --_padding: var(--eds-sp-2xs); }
|
|
110
|
-
:host([size="m"]) { --_padding: var(--eds-sp-xs); }
|
|
111
|
-
:host([size="l"]) { --_padding: var(--eds-sp-s); }
|
|
175
|
+
/* FOCUS RING */
|
|
112
176
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
177
|
+
button:focus-visible {
|
|
178
|
+
outline: 2px solid var(--eds-c-border-focus);
|
|
179
|
+
outline-offset: 2px;
|
|
180
|
+
}
|
|
181
|
+
:host([rounded]) button:focus-visible {
|
|
182
|
+
border-radius: var(--eds-br-full);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* BADGE OVERLAY — a projected eds-wc-badge is absolutely positioned over the
|
|
186
|
+
top-right of the icon, mirroring the Angular badge's
|
|
187
|
+
:host-context(.eds-icon-button[size="…"]) offsets. The internal <eds-wc-icon>
|
|
188
|
+
is position:relative, so the slotted badge anchors to it. */
|
|
189
|
+
eds-wc-icon {
|
|
190
|
+
position: relative;
|
|
118
191
|
}
|
|
192
|
+
|
|
193
|
+
::slotted(eds-wc-badge) {
|
|
194
|
+
position: absolute !important;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:host([size="2xs"]) ::slotted(eds-wc-badge) { left: 50%; top: -30%; }
|
|
198
|
+
:host([size="xs"]) ::slotted(eds-wc-badge) { left: 50%; top: -40%; }
|
|
199
|
+
:host([size="s"]) ::slotted(eds-wc-badge) { left: 50%; top: -50%; }
|
|
200
|
+
:host([size="m"]) ::slotted(eds-wc-badge) { left: 50%; top: -40%; }
|
|
201
|
+
:host([size="l"]) ::slotted(eds-wc-badge) { left: 50%; top: -25%; }
|
|
119
202
|
`; }
|
|
120
203
|
render() {
|
|
121
|
-
const baseUrl = EdsBaseElement.assetsBaseUrl;
|
|
122
|
-
const spriteHref = `${baseUrl}/eds/icons/sprites/${this._resolvedSet}.svg#${this._iconName}`;
|
|
123
204
|
return html `
|
|
124
205
|
<button
|
|
125
206
|
part="button"
|
|
126
207
|
type="button"
|
|
127
208
|
?disabled="${this.disabled}"
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
209
|
+
tabindex="${this.disabled ? -1 : 0}"
|
|
210
|
+
aria-label="${this.ariaLabel ?? ''}"
|
|
211
|
+
@click="${this._onClick}">
|
|
212
|
+
<eds-wc-icon
|
|
213
|
+
.icon="${this.icon}"
|
|
214
|
+
.color="${this.color}"
|
|
215
|
+
.size="${this.size}">
|
|
216
|
+
<slot></slot>
|
|
217
|
+
</eds-wc-icon>
|
|
133
218
|
</button>
|
|
134
219
|
`;
|
|
135
220
|
}
|
|
@@ -138,7 +223,13 @@ __decorate([
|
|
|
138
223
|
property({ type: String })
|
|
139
224
|
], EdsWcIconButton.prototype, "icon", void 0);
|
|
140
225
|
__decorate([
|
|
141
|
-
property({ type: String,
|
|
226
|
+
property({ type: String, reflect: true })
|
|
227
|
+
], EdsWcIconButton.prototype, "color", void 0);
|
|
228
|
+
__decorate([
|
|
229
|
+
property({ type: String, reflect: true })
|
|
230
|
+
], EdsWcIconButton.prototype, "size", void 0);
|
|
231
|
+
__decorate([
|
|
232
|
+
property({ type: String, attribute: 'aria-label', reflect: true })
|
|
142
233
|
], EdsWcIconButton.prototype, "ariaLabel", void 0);
|
|
143
234
|
__decorate([
|
|
144
235
|
property({ type: Boolean, reflect: true })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eds-wc-icon-button.js","sourceRoot":"","sources":["../../src/eds-icon-button/eds-wc-icon-button.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,
|
|
1
|
+
{"version":3,"file":"eds-wc-icon-button.js","sourceRoot":"","sources":["../../src/eds-icon-button/eds-wc-icon-button.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,4BAA4B,CAAC;AAoBpC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEI,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,cAAc;IAA5C;;QACH;;;WAGG;QAEH,SAAI,GAAG,EAAE,CAAC;QAEV;;;WAGG;QAEH,UAAK,GAAyB,SAAS,CAAC;QAExC;;;WAGG;QAEH,SAAI,GAAwB,GAAG,CAAC;QAEhC;;;WAGG;QAEM,cAAS,GAAkB,iBAAiB,CAAC;QAEtD;;;WAGG;QAEH,YAAO,GAAG,KAAK,CAAC;QAEhB;;;WAGG;QAEH,aAAQ,GAAG,KAAK,CAAC;QAkJT,aAAQ,GAAG,CAAC,KAAY,EAAQ,EAAE;YACtC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAChB,OAAO;YACX,CAAC;YACD,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,cAAc,EAAE;gBAC/C,OAAO,EAAE,IAAI;gBACb,QAAQ,EAAE,IAAI;gBACd,MAAM,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE;aACnC,CAAC,CAAC,CAAC;QACR,CAAC,CAAC;IACN,CAAC;aA1JmB,WAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2H3B,AA3HqB,CA2HpB;IAEiB,MAAM;QACrB,OAAO,IAAI,CAAA;;;;6BAIU,IAAI,CAAC,QAAQ;4BACd,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;8BACpB,IAAI,CAAC,SAAS,IAAI,EAAE;0BACxB,IAAI,CAAC,QAAQ;;6BAEV,IAAI,CAAC,IAAI;8BACR,IAAI,CAAC,KAAK;6BACX,IAAI,CAAC,IAAI;;;;SAI7B,CAAC;IACN,CAAC;;AAnLD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CACjB;AAOV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CACF;AAOxC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CACV;AAOvB;IADR,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDACb;AAOtD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAC3B;AAOhB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAC1B;AAzCR,eAAe;IAD3B,aAAa,CAAC,oBAAoB,CAAC;GACvB,eAAe,CAqM3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eds-icon-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eds-icon-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC"}
|
package/eds-icon-button/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { EdsWcIconButton } from './eds-wc-icon-button
|
|
1
|
+
export { EdsWcIconButton } from './eds-wc-icon-button';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eds-icon-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eds-icon-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { EdsBaseElement } from '../shared/eds-base.js';
|
|
2
|
+
/**
|
|
3
|
+
* Local narrowed color union — the icon-state's color contract. Copied verbatim from the
|
|
4
|
+
* Angular `eds-icon-state` exported `EdsIconStateColor` union. Each value maps to a specific
|
|
5
|
+
* status icon. No shared-token import.
|
|
6
|
+
*/
|
|
7
|
+
export type EdsWcIconStateColor = 'info' | 'success' | 'warning' | 'critical';
|
|
8
|
+
/**
|
|
9
|
+
* Local narrowed size union — the icon-state's size contract. Copied verbatim from the
|
|
10
|
+
* Angular `eds-icon-state` exported `EdsIconStateSize` union.
|
|
11
|
+
*/
|
|
12
|
+
export type EdsWcIconStateSize = '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
13
|
+
/**
|
|
14
|
+
* `<eds-wc-icon-state>` — EDS Icon State Web Component.
|
|
15
|
+
*
|
|
16
|
+
* Renders exactly one status `<eds-wc-icon>` chosen by the semantic `color`:
|
|
17
|
+
* `success` → `check-circle:core`, `warning` → `warning:core`,
|
|
18
|
+
* `critical` → `warning-circle:core`, `info` → `info:core`. The inner icon receives the same
|
|
19
|
+
* `color` and `size`, and a default accessible label per status ("EDS success/warning/danger/info
|
|
20
|
+
* icon"), overridable via the `aria-label` attribute. 1:1 projection of the Angular
|
|
21
|
+
* `eds-icon-state`.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```html
|
|
25
|
+
* <eds-wc-icon-state></eds-wc-icon-state>
|
|
26
|
+
* <eds-wc-icon-state color="success" size="l"></eds-wc-icon-state>
|
|
27
|
+
* <eds-wc-icon-state color="critical" aria-label="Error"></eds-wc-icon-state>
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare class EdsWcIconState extends EdsBaseElement {
|
|
31
|
+
/**
|
|
32
|
+
* Semantic status color, selecting the corresponding status icon.
|
|
33
|
+
* @default 'info'
|
|
34
|
+
*/
|
|
35
|
+
color: EdsWcIconStateColor;
|
|
36
|
+
/**
|
|
37
|
+
* Size of the status icon.
|
|
38
|
+
* @default 'm'
|
|
39
|
+
*/
|
|
40
|
+
size: EdsWcIconStateSize;
|
|
41
|
+
/**
|
|
42
|
+
* Accessible label for screen readers describing the icon's purpose or meaning.
|
|
43
|
+
* When empty, a sensible default is derived from the status `color`
|
|
44
|
+
* ("EDS success/warning/danger/info icon").
|
|
45
|
+
* @default ''
|
|
46
|
+
*/
|
|
47
|
+
ariaLabel: string | null;
|
|
48
|
+
static styles: import("lit").CSSResult;
|
|
49
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
50
|
+
}
|
|
51
|
+
declare global {
|
|
52
|
+
interface HTMLElementTagNameMap {
|
|
53
|
+
'eds-wc-icon-state': EdsWcIconState;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=eds-wc-icon-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eds-wc-icon-state.d.ts","sourceRoot":"","sources":["../../src/eds-icon-state/eds-wc-icon-state.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMvD;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAE9E;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;AAUvE;;;;;;;;;;;;;;;;GAgBG;AACH,qBACa,cAAe,SAAQ,cAAc;IAC9C;;;OAGG;IAEH,KAAK,EAAE,mBAAmB,CAAU;IAEpC;;;OAGG;IAEH,IAAI,EAAE,kBAAkB,CAAO;IAE/B;;;;;OAKG;IAEM,SAAS,EAAE,MAAM,GAAG,IAAI,CAAM;IAEvC,OAAgB,MAAM,0BAQpB;cAEiB,MAAM;CAa5B;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,mBAAmB,EAAE,cAAc,CAAC;KACvC;CACJ"}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 } from 'lit';
|
|
8
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
9
|
+
import { EdsBaseElement } from '../shared/eds-base.js';
|
|
10
|
+
import { EdsWcIcon } from '../eds-icon/eds-wc-icon';
|
|
11
|
+
// Ensure the inner <eds-wc-icon> custom element is registered.
|
|
12
|
+
void EdsWcIcon;
|
|
13
|
+
/** Maps a semantic status color to its icon name and default accessible label. */
|
|
14
|
+
const ICON_STATE_MAP = {
|
|
15
|
+
success: { icon: 'check-circle:core', ariaLabel: 'EDS success icon' },
|
|
16
|
+
warning: { icon: 'warning:core', ariaLabel: 'EDS warning icon' },
|
|
17
|
+
critical: { icon: 'warning-circle:core', ariaLabel: 'EDS danger icon' },
|
|
18
|
+
info: { icon: 'info:core', ariaLabel: 'EDS info icon' },
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* `<eds-wc-icon-state>` — EDS Icon State Web Component.
|
|
22
|
+
*
|
|
23
|
+
* Renders exactly one status `<eds-wc-icon>` chosen by the semantic `color`:
|
|
24
|
+
* `success` → `check-circle:core`, `warning` → `warning:core`,
|
|
25
|
+
* `critical` → `warning-circle:core`, `info` → `info:core`. The inner icon receives the same
|
|
26
|
+
* `color` and `size`, and a default accessible label per status ("EDS success/warning/danger/info
|
|
27
|
+
* icon"), overridable via the `aria-label` attribute. 1:1 projection of the Angular
|
|
28
|
+
* `eds-icon-state`.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```html
|
|
32
|
+
* <eds-wc-icon-state></eds-wc-icon-state>
|
|
33
|
+
* <eds-wc-icon-state color="success" size="l"></eds-wc-icon-state>
|
|
34
|
+
* <eds-wc-icon-state color="critical" aria-label="Error"></eds-wc-icon-state>
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
let EdsWcIconState = class EdsWcIconState extends EdsBaseElement {
|
|
38
|
+
constructor() {
|
|
39
|
+
super(...arguments);
|
|
40
|
+
/**
|
|
41
|
+
* Semantic status color, selecting the corresponding status icon.
|
|
42
|
+
* @default 'info'
|
|
43
|
+
*/
|
|
44
|
+
this.color = 'info';
|
|
45
|
+
/**
|
|
46
|
+
* Size of the status icon.
|
|
47
|
+
* @default 'm'
|
|
48
|
+
*/
|
|
49
|
+
this.size = 'm';
|
|
50
|
+
/**
|
|
51
|
+
* Accessible label for screen readers describing the icon's purpose or meaning.
|
|
52
|
+
* When empty, a sensible default is derived from the status `color`
|
|
53
|
+
* ("EDS success/warning/danger/info icon").
|
|
54
|
+
* @default ''
|
|
55
|
+
*/
|
|
56
|
+
this.ariaLabel = '';
|
|
57
|
+
}
|
|
58
|
+
static { this.styles = css `
|
|
59
|
+
:host, *, *::before, *::after {
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
:host {
|
|
64
|
+
display: flex;
|
|
65
|
+
}
|
|
66
|
+
`; }
|
|
67
|
+
render() {
|
|
68
|
+
const state = ICON_STATE_MAP[this.color] ?? ICON_STATE_MAP.info;
|
|
69
|
+
const label = this.ariaLabel && this.ariaLabel.length > 0 ? this.ariaLabel : state.ariaLabel;
|
|
70
|
+
return html `
|
|
71
|
+
<eds-wc-icon
|
|
72
|
+
icon="${state.icon}"
|
|
73
|
+
color="${this.color}"
|
|
74
|
+
size="${this.size}"
|
|
75
|
+
aria-label="${label}"
|
|
76
|
+
></eds-wc-icon>
|
|
77
|
+
`;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
__decorate([
|
|
81
|
+
property({ type: String, reflect: true })
|
|
82
|
+
], EdsWcIconState.prototype, "color", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
property({ type: String, reflect: true })
|
|
85
|
+
], EdsWcIconState.prototype, "size", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
property({ type: String, attribute: 'aria-label' })
|
|
88
|
+
], EdsWcIconState.prototype, "ariaLabel", void 0);
|
|
89
|
+
EdsWcIconState = __decorate([
|
|
90
|
+
customElement('eds-wc-icon-state')
|
|
91
|
+
], EdsWcIconState);
|
|
92
|
+
export { EdsWcIconState };
|
|
93
|
+
//# sourceMappingURL=eds-wc-icon-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eds-wc-icon-state.js","sourceRoot":"","sources":["../../src/eds-icon-state/eds-wc-icon-state.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAChC,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,+DAA+D;AAC/D,KAAK,SAAS,CAAC;AAef,kFAAkF;AAClF,MAAM,cAAc,GAAqE;IACrF,OAAO,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,SAAS,EAAE,kBAAkB,EAAE;IACrE,OAAO,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,SAAS,EAAE,kBAAkB,EAAE;IAChE,QAAQ,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,SAAS,EAAE,iBAAiB,EAAE;IACvE,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE;CAC1D,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AAEI,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,cAAc;IAA3C;;QACH;;;WAGG;QAEH,UAAK,GAAwB,MAAM,CAAC;QAEpC;;;WAGG;QAEH,SAAI,GAAuB,GAAG,CAAC;QAE/B;;;;;WAKG;QAEM,cAAS,GAAkB,EAAE,CAAC;IAyB3C,CAAC;aAvBmB,WAAM,GAAG,GAAG,CAAA;;;;;;;;KAQ3B,AARqB,CAQpB;IAEiB,MAAM;QACrB,MAAM,KAAK,GAAG,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC;QAChE,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC;QAE7F,OAAO,IAAI,CAAA;;wBAEK,KAAK,CAAC,IAAI;yBACT,IAAI,CAAC,KAAK;wBACX,IAAI,CAAC,IAAI;8BACH,KAAK;;SAE1B,CAAC;IACN,CAAC;;AAxCD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CACN;AAOpC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CACX;AAStB;IADR,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;iDACb;AAtB9B,cAAc;IAD1B,aAAa,CAAC,mBAAmB,CAAC;GACtB,cAAc,CA+C1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eds-icon-state/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eds-icon-state/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { EdsBaseElement } from '../shared/eds-base.js';
|
|
2
|
+
/** Local narrowed union — the addon's position contract (copied from the Angular source). */
|
|
3
|
+
export type EdsWcInputAddonPosition = 'start' | 'end';
|
|
4
|
+
/**
|
|
5
|
+
* `<eds-wc-input-addon>` — EDS Input Addon Web Component.
|
|
6
|
+
*
|
|
7
|
+
* A layout component that positions a **non-actionable** static addon (fixed text and/or an icon)
|
|
8
|
+
* flush against an input field — e.g. a currency symbol, a `https://` prefix, a unit suffix.
|
|
9
|
+
*
|
|
10
|
+
* Visually it mirrors `<eds-wc-input-button>`'s footprint but reads as a **recessed extension of the
|
|
11
|
+
* field**, not a control: sunken surface, muted (subtler) foreground, `cursor: default`, no hover /
|
|
12
|
+
* focus states, and it is not in the tab order. Use `eds-wc-input-button` when the trailing/leading
|
|
13
|
+
* element must be clickable; use `eds-wc-input-addon` when it is purely contextual text/icon.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```html
|
|
17
|
+
* <!-- Addon at start of input (default) -->
|
|
18
|
+
* <eds-wc-input-addon>
|
|
19
|
+
* <eds-wc-input-text placeholder="example.com"></eds-wc-input-text>
|
|
20
|
+
* <span slot="label">https://</span>
|
|
21
|
+
* </eds-wc-input-addon>
|
|
22
|
+
*
|
|
23
|
+
* <!-- Addon at end of input -->
|
|
24
|
+
* <eds-wc-input-addon position="end">
|
|
25
|
+
* <eds-wc-input-text placeholder="0.00"></eds-wc-input-text>
|
|
26
|
+
* <span slot="label">EUR</span>
|
|
27
|
+
* </eds-wc-input-addon>
|
|
28
|
+
*
|
|
29
|
+
* <!-- With an icon -->
|
|
30
|
+
* <eds-wc-input-addon>
|
|
31
|
+
* <eds-wc-input-text placeholder="Search..."></eds-wc-input-text>
|
|
32
|
+
* <eds-wc-icon slot="label" icon="magnifying-glass" aria-hidden="true"></eds-wc-icon>
|
|
33
|
+
* </eds-wc-input-addon>
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @slot - The projected input element (default slot).
|
|
37
|
+
* @slot label - The static addon content (text and/or icon), wrapped in the addon label.
|
|
38
|
+
*/
|
|
39
|
+
export declare class EdsWcInputAddon extends EdsBaseElement {
|
|
40
|
+
/**
|
|
41
|
+
* Which side of the input the addon sits on, reflected as the `position` attribute.
|
|
42
|
+
* `start` = left in LTR (right in RTL); `end` = the opposite side.
|
|
43
|
+
*/
|
|
44
|
+
position: EdsWcInputAddonPosition;
|
|
45
|
+
/** Data attribute value for end-to-end testing identification, reflected as `data-e2e`. */
|
|
46
|
+
e2eAttr: string;
|
|
47
|
+
static styles: import("lit").CSSResult;
|
|
48
|
+
protected render(): import("lit-html").TemplateResult<1>;
|
|
49
|
+
}
|
|
50
|
+
declare global {
|
|
51
|
+
interface HTMLElementTagNameMap {
|
|
52
|
+
'eds-wc-input-addon': EdsWcInputAddon;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=eds-wc-input-addon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eds-wc-input-addon.d.ts","sourceRoot":"","sources":["../../src/eds-input-addon/eds-wc-input-addon.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,6FAA6F;AAC7F,MAAM,MAAM,uBAAuB,GAAG,OAAO,GAAG,KAAK,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,qBACa,eAAgB,SAAQ,cAAc;IAC/C;;;OAGG;IACwC,QAAQ,EAAE,uBAAuB,CAAW;IAEvF,2FAA2F;IACzB,OAAO,SAAqB;IAE9F,OAAgB,MAAM,0BAqGpB;cAEiB,MAAM;CAQ5B;AAED,OAAO,CAAC,MAAM,CAAC;IAAE,UAAU,qBAAqB;QAAG,oBAAoB,EAAE,eAAe,CAAC;KAAE;CAAE"}
|