@eui/components-wc 0.0.0-stage → 22.0.0-alpha.51
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/eui-accordion/eui-wc-accordion.d.ts +44 -0
- package/eui-accordion/eui-wc-accordion.d.ts.map +1 -0
- package/eui-accordion/eui-wc-accordion.js +128 -0
- package/eui-accordion/eui-wc-accordion.js.map +1 -0
- package/eui-accordion/index.d.ts +2 -0
- package/eui-accordion/index.d.ts.map +1 -0
- package/eui-accordion/index.js +2 -0
- package/eui-accordion/index.js.map +1 -0
- package/eui-alert/eui-wc-alert.d.ts +35 -0
- package/eui-alert/eui-wc-alert.d.ts.map +1 -0
- package/eui-alert/eui-wc-alert.js +100 -0
- package/eui-alert/eui-wc-alert.js.map +1 -0
- package/eui-alert/index.d.ts +2 -0
- package/eui-alert/index.d.ts.map +1 -0
- package/eui-alert/index.js +2 -0
- package/eui-alert/index.js.map +1 -0
- package/eui-autocomplete/eui-wc-autocomplete.d.ts +26 -0
- package/eui-autocomplete/eui-wc-autocomplete.d.ts.map +1 -0
- package/eui-autocomplete/eui-wc-autocomplete.js +79 -0
- package/eui-autocomplete/eui-wc-autocomplete.js.map +1 -0
- package/eui-autocomplete/index.d.ts +2 -0
- package/eui-autocomplete/index.d.ts.map +1 -0
- package/eui-autocomplete/index.js +2 -0
- package/eui-autocomplete/index.js.map +1 -0
- package/eui-autocomplete-v2/eui-wc-autocomplete-v2.d.ts +33 -0
- package/eui-autocomplete-v2/eui-wc-autocomplete-v2.d.ts.map +1 -0
- package/eui-autocomplete-v2/eui-wc-autocomplete-v2.js +118 -0
- package/eui-autocomplete-v2/eui-wc-autocomplete-v2.js.map +1 -0
- package/eui-autocomplete-v2/index.d.ts +2 -0
- package/eui-autocomplete-v2/index.d.ts.map +1 -0
- package/eui-autocomplete-v2/index.js +2 -0
- package/eui-autocomplete-v2/index.js.map +1 -0
- package/eui-avatar/eui-wc-avatar.d.ts +31 -0
- package/eui-avatar/eui-wc-avatar.d.ts.map +1 -0
- package/eui-avatar/eui-wc-avatar.js +109 -0
- package/eui-avatar/eui-wc-avatar.js.map +1 -0
- package/eui-avatar/index.d.ts +2 -0
- package/eui-avatar/index.d.ts.map +1 -0
- package/eui-avatar/index.js +2 -0
- package/eui-avatar/index.js.map +1 -0
- package/eui-badge/eui-wc-badge.d.ts +46 -0
- package/eui-badge/eui-wc-badge.d.ts.map +1 -0
- package/eui-badge/eui-wc-badge.js +195 -0
- package/eui-badge/eui-wc-badge.js.map +1 -0
- package/eui-badge/index.d.ts +2 -0
- package/eui-badge/index.d.ts.map +1 -0
- package/eui-badge/index.js +2 -0
- package/eui-badge/index.js.map +1 -0
- package/eui-banner/eui-wc-banner.d.ts +35 -0
- package/eui-banner/eui-wc-banner.d.ts.map +1 -0
- package/eui-banner/eui-wc-banner.js +100 -0
- package/eui-banner/eui-wc-banner.js.map +1 -0
- package/eui-banner/index.d.ts +2 -0
- package/eui-banner/index.d.ts.map +1 -0
- package/eui-banner/index.js +2 -0
- package/eui-banner/index.js.map +1 -0
- package/eui-block-content/eui-wc-block-content.d.ts +14 -0
- package/eui-block-content/eui-wc-block-content.d.ts.map +1 -0
- package/eui-block-content/eui-wc-block-content.js +43 -0
- package/eui-block-content/eui-wc-block-content.js.map +1 -0
- package/eui-block-content/index.d.ts +2 -0
- package/eui-block-content/index.d.ts.map +1 -0
- package/eui-block-content/index.js +2 -0
- package/eui-block-content/index.js.map +1 -0
- package/eui-block-document/eui-wc-block-document.d.ts +14 -0
- package/eui-block-document/eui-wc-block-document.d.ts.map +1 -0
- package/eui-block-document/eui-wc-block-document.js +51 -0
- package/eui-block-document/eui-wc-block-document.js.map +1 -0
- package/eui-block-document/index.d.ts +2 -0
- package/eui-block-document/index.d.ts.map +1 -0
- package/eui-block-document/index.js +2 -0
- package/eui-block-document/index.js.map +1 -0
- package/eui-breadcrumb/eui-wc-breadcrumb.d.ts +19 -0
- package/eui-breadcrumb/eui-wc-breadcrumb.d.ts.map +1 -0
- package/eui-breadcrumb/eui-wc-breadcrumb.js +33 -0
- package/eui-breadcrumb/eui-wc-breadcrumb.js.map +1 -0
- package/eui-breadcrumb/index.d.ts +2 -0
- package/eui-breadcrumb/index.d.ts.map +1 -0
- package/eui-breadcrumb/index.js +2 -0
- package/eui-breadcrumb/index.js.map +1 -0
- package/eui-button/eui-wc-button.d.ts +37 -0
- package/eui-button/eui-wc-button.d.ts.map +1 -0
- package/eui-button/eui-wc-button.js +246 -0
- package/eui-button/eui-wc-button.js.map +1 -0
- package/eui-button/index.d.ts +2 -0
- package/eui-button/index.d.ts.map +1 -0
- package/eui-button/index.js +2 -0
- package/eui-button/index.js.map +1 -0
- package/eui-calendar/eui-wc-calendar.d.ts +27 -0
- package/eui-calendar/eui-wc-calendar.d.ts.map +1 -0
- package/eui-calendar/eui-wc-calendar.js +108 -0
- package/eui-calendar/eui-wc-calendar.js.map +1 -0
- package/eui-calendar/index.d.ts +2 -0
- package/eui-calendar/index.d.ts.map +1 -0
- package/eui-calendar/index.js +2 -0
- package/eui-calendar/index.js.map +1 -0
- package/eui-card/eui-wc-card.d.ts +21 -0
- package/eui-card/eui-wc-card.d.ts.map +1 -0
- package/eui-card/eui-wc-card.js +60 -0
- package/eui-card/eui-wc-card.js.map +1 -0
- package/eui-card/index.d.ts +2 -0
- package/eui-card/index.d.ts.map +1 -0
- package/eui-card/index.js +2 -0
- package/eui-card/index.js.map +1 -0
- package/eui-card-v2/eui-wc-card-v2.d.ts +15 -0
- package/eui-card-v2/eui-wc-card-v2.d.ts.map +1 -0
- package/eui-card-v2/eui-wc-card-v2.js +44 -0
- package/eui-card-v2/eui-wc-card-v2.js.map +1 -0
- package/eui-card-v2/index.d.ts +2 -0
- package/eui-card-v2/index.d.ts.map +1 -0
- package/eui-card-v2/index.js +2 -0
- package/eui-card-v2/index.js.map +1 -0
- package/eui-chip/eui-wc-chip.d.ts +29 -0
- package/eui-chip/eui-wc-chip.d.ts.map +1 -0
- package/eui-chip/eui-wc-chip.js +133 -0
- package/eui-chip/eui-wc-chip.js.map +1 -0
- package/eui-chip/index.d.ts +2 -0
- package/eui-chip/index.d.ts.map +1 -0
- package/eui-chip/index.js +2 -0
- package/eui-chip/index.js.map +1 -0
- package/eui-comment-thread/eui-wc-comment-thread.d.ts +20 -0
- package/eui-comment-thread/eui-wc-comment-thread.d.ts.map +1 -0
- package/eui-comment-thread/eui-wc-comment-thread.js +52 -0
- package/eui-comment-thread/eui-wc-comment-thread.js.map +1 -0
- package/eui-comment-thread/index.d.ts +2 -0
- package/eui-comment-thread/index.d.ts.map +1 -0
- package/eui-comment-thread/index.js +2 -0
- package/eui-comment-thread/index.js.map +1 -0
- package/eui-content-card/eui-wc-content-card.d.ts +15 -0
- package/eui-content-card/eui-wc-content-card.d.ts.map +1 -0
- package/eui-content-card/eui-wc-content-card.js +52 -0
- package/eui-content-card/eui-wc-content-card.js.map +1 -0
- package/eui-content-card/index.d.ts +2 -0
- package/eui-content-card/index.d.ts.map +1 -0
- package/eui-content-card/index.js +2 -0
- package/eui-content-card/index.js.map +1 -0
- package/eui-dashboard-card/eui-wc-dashboard-card.d.ts +13 -0
- package/eui-dashboard-card/eui-wc-dashboard-card.d.ts.map +1 -0
- package/eui-dashboard-card/eui-wc-dashboard-card.js +42 -0
- package/eui-dashboard-card/eui-wc-dashboard-card.js.map +1 -0
- package/eui-dashboard-card/index.d.ts +2 -0
- package/eui-dashboard-card/index.d.ts.map +1 -0
- package/eui-dashboard-card/index.js +2 -0
- package/eui-dashboard-card/index.js.map +1 -0
- package/eui-date-block/eui-wc-date-block.d.ts +14 -0
- package/eui-date-block/eui-wc-date-block.d.ts.map +1 -0
- package/eui-date-block/eui-wc-date-block.js +40 -0
- package/eui-date-block/eui-wc-date-block.js.map +1 -0
- package/eui-date-block/index.d.ts +2 -0
- package/eui-date-block/index.d.ts.map +1 -0
- package/eui-date-block/index.js +2 -0
- package/eui-date-block/index.js.map +1 -0
- package/eui-date-range-selector/eui-wc-date-range-selector.d.ts +29 -0
- package/eui-date-range-selector/eui-wc-date-range-selector.d.ts.map +1 -0
- package/eui-date-range-selector/eui-wc-date-range-selector.js +78 -0
- package/eui-date-range-selector/eui-wc-date-range-selector.js.map +1 -0
- package/eui-date-range-selector/index.d.ts +2 -0
- package/eui-date-range-selector/index.d.ts.map +1 -0
- package/eui-date-range-selector/index.js +2 -0
- package/eui-date-range-selector/index.js.map +1 -0
- package/eui-datepicker/eui-wc-datepicker.d.ts +26 -0
- package/eui-datepicker/eui-wc-datepicker.d.ts.map +1 -0
- package/eui-datepicker/eui-wc-datepicker.js +87 -0
- package/eui-datepicker/eui-wc-datepicker.js.map +1 -0
- package/eui-datepicker/index.d.ts +2 -0
- package/eui-datepicker/index.d.ts.map +1 -0
- package/eui-datepicker/index.js +2 -0
- package/eui-datepicker/index.js.map +1 -0
- package/eui-dialog/eui-wc-dialog.d.ts +17 -0
- package/eui-dialog/eui-wc-dialog.d.ts.map +1 -0
- package/eui-dialog/eui-wc-dialog.js +56 -0
- package/eui-dialog/eui-wc-dialog.js.map +1 -0
- package/eui-dialog/index.d.ts +2 -0
- package/eui-dialog/index.d.ts.map +1 -0
- package/eui-dialog/index.js +2 -0
- package/eui-dialog/index.js.map +1 -0
- package/eui-disable-content/eui-wc-disable-content.d.ts +14 -0
- package/eui-disable-content/eui-wc-disable-content.d.ts.map +1 -0
- package/eui-disable-content/eui-wc-disable-content.js +40 -0
- package/eui-disable-content/eui-wc-disable-content.js.map +1 -0
- package/eui-disable-content/index.d.ts +2 -0
- package/eui-disable-content/index.d.ts.map +1 -0
- package/eui-disable-content/index.js +2 -0
- package/eui-disable-content/index.js.map +1 -0
- package/eui-discussion-thread/eui-wc-discussion-thread.d.ts +19 -0
- package/eui-discussion-thread/eui-wc-discussion-thread.d.ts.map +1 -0
- package/eui-discussion-thread/eui-wc-discussion-thread.js +42 -0
- package/eui-discussion-thread/eui-wc-discussion-thread.js.map +1 -0
- package/eui-discussion-thread/index.d.ts +2 -0
- package/eui-discussion-thread/index.d.ts.map +1 -0
- package/eui-discussion-thread/index.js +2 -0
- package/eui-discussion-thread/index.js.map +1 -0
- package/eui-dropdown/eui-wc-dropdown.d.ts +15 -0
- package/eui-dropdown/eui-wc-dropdown.d.ts.map +1 -0
- package/eui-dropdown/eui-wc-dropdown.js +41 -0
- package/eui-dropdown/eui-wc-dropdown.js.map +1 -0
- package/eui-dropdown/index.d.ts +2 -0
- package/eui-dropdown/index.d.ts.map +1 -0
- package/eui-dropdown/index.js +2 -0
- package/eui-dropdown/index.js.map +1 -0
- package/eui-feedback-message/eui-wc-feedback-message.d.ts +30 -0
- package/eui-feedback-message/eui-wc-feedback-message.d.ts.map +1 -0
- package/eui-feedback-message/eui-wc-feedback-message.js +94 -0
- package/eui-feedback-message/eui-wc-feedback-message.js.map +1 -0
- package/eui-feedback-message/index.d.ts +2 -0
- package/eui-feedback-message/index.d.ts.map +1 -0
- package/eui-feedback-message/index.js +2 -0
- package/eui-feedback-message/index.js.map +1 -0
- package/eui-fieldset/eui-wc-fieldset.d.ts +19 -0
- package/eui-fieldset/eui-wc-fieldset.d.ts.map +1 -0
- package/eui-fieldset/eui-wc-fieldset.js +72 -0
- package/eui-fieldset/eui-wc-fieldset.js.map +1 -0
- package/eui-fieldset/index.d.ts +2 -0
- package/eui-fieldset/index.d.ts.map +1 -0
- package/eui-fieldset/index.js +2 -0
- package/eui-fieldset/index.js.map +1 -0
- package/eui-file-upload/eui-wc-file-upload.d.ts +20 -0
- package/eui-file-upload/eui-wc-file-upload.d.ts.map +1 -0
- package/eui-file-upload/eui-wc-file-upload.js +84 -0
- package/eui-file-upload/eui-wc-file-upload.js.map +1 -0
- package/eui-file-upload/index.d.ts +2 -0
- package/eui-file-upload/index.d.ts.map +1 -0
- package/eui-file-upload/index.js +2 -0
- package/eui-file-upload/index.js.map +1 -0
- package/eui-floating-panel/eui-wc-floating-panel.d.ts +16 -0
- package/eui-floating-panel/eui-wc-floating-panel.d.ts.map +1 -0
- package/eui-floating-panel/eui-wc-floating-panel.js +42 -0
- package/eui-floating-panel/eui-wc-floating-panel.js.map +1 -0
- package/eui-floating-panel/index.d.ts +2 -0
- package/eui-floating-panel/index.d.ts.map +1 -0
- package/eui-floating-panel/index.js +2 -0
- package/eui-floating-panel/index.js.map +1 -0
- package/eui-growl/eui-wc-growl.d.ts +20 -0
- package/eui-growl/eui-wc-growl.d.ts.map +1 -0
- package/eui-growl/eui-wc-growl.js +44 -0
- package/eui-growl/eui-wc-growl.js.map +1 -0
- package/eui-growl/index.d.ts +2 -0
- package/eui-growl/index.d.ts.map +1 -0
- package/eui-growl/index.js +2 -0
- package/eui-growl/index.js.map +1 -0
- package/eui-helper-text/eui-wc-helper-text.d.ts +21 -0
- package/eui-helper-text/eui-wc-helper-text.d.ts.map +1 -0
- package/eui-helper-text/eui-wc-helper-text.js +42 -0
- package/eui-helper-text/eui-wc-helper-text.js.map +1 -0
- package/eui-helper-text/index.d.ts +2 -0
- package/eui-helper-text/index.d.ts.map +1 -0
- package/eui-helper-text/index.js +2 -0
- package/eui-helper-text/index.js.map +1 -0
- package/eui-icon/eui-wc-icon.d.ts +59 -0
- package/eui-icon/eui-wc-icon.d.ts.map +1 -0
- package/eui-icon/eui-wc-icon.js +258 -0
- package/eui-icon/eui-wc-icon.js.map +1 -0
- package/eui-icon/index.d.ts +2 -0
- package/eui-icon/index.d.ts.map +1 -0
- package/eui-icon/index.js +2 -0
- package/eui-icon/index.js.map +1 -0
- package/eui-icon-button/eui-wc-icon-button.d.ts +37 -0
- package/eui-icon-button/eui-wc-icon-button.d.ts.map +1 -0
- package/eui-icon-button/eui-wc-icon-button.js +148 -0
- package/eui-icon-button/eui-wc-icon-button.js.map +1 -0
- package/eui-icon-button/index.d.ts +2 -0
- package/eui-icon-button/index.d.ts.map +1 -0
- package/eui-icon-button/index.js +2 -0
- package/eui-icon-button/index.js.map +1 -0
- package/eui-icon-button-expander/eui-wc-icon-button-expander.d.ts +31 -0
- package/eui-icon-button-expander/eui-wc-icon-button-expander.d.ts.map +1 -0
- package/eui-icon-button-expander/eui-wc-icon-button-expander.js +119 -0
- package/eui-icon-button-expander/eui-wc-icon-button-expander.js.map +1 -0
- package/eui-icon-button-expander/index.d.ts +2 -0
- package/eui-icon-button-expander/index.d.ts.map +1 -0
- package/eui-icon-button-expander/index.js +2 -0
- package/eui-icon-button-expander/index.js.map +1 -0
- package/eui-icon-input/eui-wc-icon-input.d.ts +13 -0
- package/eui-icon-input/eui-wc-icon-input.d.ts.map +1 -0
- package/eui-icon-input/eui-wc-icon-input.js +33 -0
- package/eui-icon-input/eui-wc-icon-input.js.map +1 -0
- package/eui-icon-input/index.d.ts +2 -0
- package/eui-icon-input/index.d.ts.map +1 -0
- package/eui-icon-input/index.js +2 -0
- package/eui-icon-input/index.js.map +1 -0
- package/eui-icon-toggle/eui-wc-icon-toggle.d.ts +40 -0
- package/eui-icon-toggle/eui-wc-icon-toggle.d.ts.map +1 -0
- package/eui-icon-toggle/eui-wc-icon-toggle.js +137 -0
- package/eui-icon-toggle/eui-wc-icon-toggle.js.map +1 -0
- package/eui-icon-toggle/index.d.ts +2 -0
- package/eui-icon-toggle/index.d.ts.map +1 -0
- package/eui-icon-toggle/index.js +2 -0
- package/eui-icon-toggle/index.js.map +1 -0
- package/eui-input-button/eui-wc-input-button.d.ts +29 -0
- package/eui-input-button/eui-wc-input-button.d.ts.map +1 -0
- package/eui-input-button/eui-wc-input-button.js +57 -0
- package/eui-input-button/eui-wc-input-button.js.map +1 -0
- package/eui-input-button/index.d.ts +2 -0
- package/eui-input-button/index.d.ts.map +1 -0
- package/eui-input-button/index.js +2 -0
- package/eui-input-button/index.js.map +1 -0
- package/eui-input-checkbox/eui-wc-input-checkbox.d.ts +19 -0
- package/eui-input-checkbox/eui-wc-input-checkbox.d.ts.map +1 -0
- package/eui-input-checkbox/eui-wc-input-checkbox.js +59 -0
- package/eui-input-checkbox/eui-wc-input-checkbox.js.map +1 -0
- package/eui-input-checkbox/index.d.ts +2 -0
- package/eui-input-checkbox/index.d.ts.map +1 -0
- package/eui-input-checkbox/index.js +2 -0
- package/eui-input-checkbox/index.js.map +1 -0
- package/eui-input-number/eui-wc-input-number.d.ts +20 -0
- package/eui-input-number/eui-wc-input-number.d.ts.map +1 -0
- package/eui-input-number/eui-wc-input-number.js +66 -0
- package/eui-input-number/eui-wc-input-number.js.map +1 -0
- package/eui-input-number/index.d.ts +2 -0
- package/eui-input-number/index.d.ts.map +1 -0
- package/eui-input-number/index.js +2 -0
- package/eui-input-number/index.js.map +1 -0
- package/eui-input-radio/eui-wc-input-radio.d.ts +18 -0
- package/eui-input-radio/eui-wc-input-radio.d.ts.map +1 -0
- package/eui-input-radio/eui-wc-input-radio.js +54 -0
- package/eui-input-radio/eui-wc-input-radio.js.map +1 -0
- package/eui-input-radio/index.d.ts +2 -0
- package/eui-input-radio/index.d.ts.map +1 -0
- package/eui-input-radio/index.js +2 -0
- package/eui-input-radio/index.js.map +1 -0
- package/eui-input-text/eui-wc-input-text.d.ts +22 -0
- package/eui-input-text/eui-wc-input-text.d.ts.map +1 -0
- package/eui-input-text/eui-wc-input-text.js +72 -0
- package/eui-input-text/eui-wc-input-text.js.map +1 -0
- package/eui-input-text/index.d.ts +2 -0
- package/eui-input-text/index.d.ts.map +1 -0
- package/eui-input-text/index.js +2 -0
- package/eui-input-text/index.js.map +1 -0
- package/eui-label/eui-wc-label.d.ts +35 -0
- package/eui-label/eui-wc-label.d.ts.map +1 -0
- package/eui-label/eui-wc-label.js +98 -0
- package/eui-label/eui-wc-label.js.map +1 -0
- package/eui-label/index.d.ts +2 -0
- package/eui-label/index.d.ts.map +1 -0
- package/eui-label/index.js +2 -0
- package/eui-label/index.js.map +1 -0
- package/eui-language-selector/eui-wc-language-selector.d.ts +19 -0
- package/eui-language-selector/eui-wc-language-selector.d.ts.map +1 -0
- package/eui-language-selector/eui-wc-language-selector.js +42 -0
- package/eui-language-selector/eui-wc-language-selector.js.map +1 -0
- package/eui-language-selector/index.d.ts +2 -0
- package/eui-language-selector/index.d.ts.map +1 -0
- package/eui-language-selector/index.js +2 -0
- package/eui-language-selector/index.js.map +1 -0
- package/eui-list/eui-wc-list.d.ts +22 -0
- package/eui-list/eui-wc-list.d.ts.map +1 -0
- package/eui-list/eui-wc-list.js +74 -0
- package/eui-list/eui-wc-list.js.map +1 -0
- package/eui-list/index.d.ts +2 -0
- package/eui-list/index.d.ts.map +1 -0
- package/eui-list/index.js +2 -0
- package/eui-list/index.js.map +1 -0
- package/eui-menu/eui-wc-menu.d.ts +23 -0
- package/eui-menu/eui-wc-menu.d.ts.map +1 -0
- package/eui-menu/eui-wc-menu.js +45 -0
- package/eui-menu/eui-wc-menu.js.map +1 -0
- package/eui-menu/index.d.ts +2 -0
- package/eui-menu/index.d.ts.map +1 -0
- package/eui-menu/index.js +2 -0
- package/eui-menu/index.js.map +1 -0
- package/eui-message-box/eui-wc-message-box.d.ts +22 -0
- package/eui-message-box/eui-wc-message-box.d.ts.map +1 -0
- package/eui-message-box/eui-wc-message-box.js +71 -0
- package/eui-message-box/eui-wc-message-box.js.map +1 -0
- package/eui-message-box/index.d.ts +2 -0
- package/eui-message-box/index.d.ts.map +1 -0
- package/eui-message-box/index.js +2 -0
- package/eui-message-box/index.js.map +1 -0
- package/eui-overlay/eui-wc-overlay.d.ts +13 -0
- package/eui-overlay/eui-wc-overlay.d.ts.map +1 -0
- package/eui-overlay/eui-wc-overlay.js +37 -0
- package/eui-overlay/eui-wc-overlay.js.map +1 -0
- package/eui-overlay/index.d.ts +2 -0
- package/eui-overlay/index.d.ts.map +1 -0
- package/eui-overlay/index.js +2 -0
- package/eui-overlay/index.js.map +1 -0
- package/eui-page/eui-wc-page.d.ts +13 -0
- package/eui-page/eui-wc-page.d.ts.map +1 -0
- package/eui-page/eui-wc-page.js +38 -0
- package/eui-page/eui-wc-page.js.map +1 -0
- package/eui-page/index.d.ts +2 -0
- package/eui-page/index.d.ts.map +1 -0
- package/eui-page/index.js +2 -0
- package/eui-page/index.js.map +1 -0
- package/eui-paginator/eui-wc-paginator.d.ts +23 -0
- package/eui-paginator/eui-wc-paginator.d.ts.map +1 -0
- package/eui-paginator/eui-wc-paginator.js +74 -0
- package/eui-paginator/eui-wc-paginator.js.map +1 -0
- package/eui-paginator/index.d.ts +2 -0
- package/eui-paginator/index.d.ts.map +1 -0
- package/eui-paginator/index.js +2 -0
- package/eui-paginator/index.js.map +1 -0
- package/eui-phone-picker/eui-wc-phone-picker.d.ts +26 -0
- package/eui-phone-picker/eui-wc-phone-picker.d.ts.map +1 -0
- package/eui-phone-picker/eui-wc-phone-picker.js +73 -0
- package/eui-phone-picker/eui-wc-phone-picker.js.map +1 -0
- package/eui-phone-picker/index.d.ts +2 -0
- package/eui-phone-picker/index.d.ts.map +1 -0
- package/eui-phone-picker/index.js +2 -0
- package/eui-phone-picker/index.js.map +1 -0
- package/eui-popover/eui-wc-popover.d.ts +16 -0
- package/eui-popover/eui-wc-popover.d.ts.map +1 -0
- package/eui-popover/eui-wc-popover.js +58 -0
- package/eui-popover/eui-wc-popover.js.map +1 -0
- package/eui-popover/index.d.ts +2 -0
- package/eui-popover/index.d.ts.map +1 -0
- package/eui-popover/index.js +2 -0
- package/eui-popover/index.js.map +1 -0
- package/eui-progress-bar/eui-wc-progress-bar.d.ts +40 -0
- package/eui-progress-bar/eui-wc-progress-bar.d.ts.map +1 -0
- package/eui-progress-bar/eui-wc-progress-bar.js +199 -0
- package/eui-progress-bar/eui-wc-progress-bar.js.map +1 -0
- package/eui-progress-bar/index.d.ts +2 -0
- package/eui-progress-bar/index.d.ts.map +1 -0
- package/eui-progress-bar/index.js +2 -0
- package/eui-progress-bar/index.js.map +1 -0
- package/eui-progress-circle/eui-wc-progress-circle.d.ts +38 -0
- package/eui-progress-circle/eui-wc-progress-circle.d.ts.map +1 -0
- package/eui-progress-circle/eui-wc-progress-circle.js +306 -0
- package/eui-progress-circle/eui-wc-progress-circle.js.map +1 -0
- package/eui-progress-circle/index.d.ts +2 -0
- package/eui-progress-circle/index.d.ts.map +1 -0
- package/eui-progress-circle/index.js +2 -0
- package/eui-progress-circle/index.js.map +1 -0
- package/eui-rating/eui-wc-rating.d.ts +39 -0
- package/eui-rating/eui-wc-rating.d.ts.map +1 -0
- package/eui-rating/eui-wc-rating.js +177 -0
- package/eui-rating/eui-wc-rating.js.map +1 -0
- package/eui-rating/index.d.ts +2 -0
- package/eui-rating/index.d.ts.map +1 -0
- package/eui-rating/index.js +2 -0
- package/eui-rating/index.js.map +1 -0
- package/eui-section-header/eui-wc-section-header.d.ts +13 -0
- package/eui-section-header/eui-wc-section-header.d.ts.map +1 -0
- package/eui-section-header/eui-wc-section-header.js +36 -0
- package/eui-section-header/eui-wc-section-header.js.map +1 -0
- package/eui-section-header/index.d.ts +2 -0
- package/eui-section-header/index.d.ts.map +1 -0
- package/eui-section-header/index.js +2 -0
- package/eui-section-header/index.js.map +1 -0
- package/eui-select/eui-wc-select.d.ts +23 -0
- package/eui-select/eui-wc-select.d.ts.map +1 -0
- package/eui-select/eui-wc-select.js +67 -0
- package/eui-select/eui-wc-select.js.map +1 -0
- package/eui-select/index.d.ts +2 -0
- package/eui-select/index.d.ts.map +1 -0
- package/eui-select/index.js +2 -0
- package/eui-select/index.js.map +1 -0
- package/eui-skeleton/eui-wc-skeleton.d.ts +13 -0
- package/eui-skeleton/eui-wc-skeleton.d.ts.map +1 -0
- package/eui-skeleton/eui-wc-skeleton.js +35 -0
- package/eui-skeleton/eui-wc-skeleton.js.map +1 -0
- package/eui-skeleton/index.d.ts +2 -0
- package/eui-skeleton/index.d.ts.map +1 -0
- package/eui-skeleton/index.js +2 -0
- package/eui-skeleton/index.js.map +1 -0
- package/eui-slide-toggle/eui-wc-slide-toggle.d.ts +20 -0
- package/eui-slide-toggle/eui-wc-slide-toggle.d.ts.map +1 -0
- package/eui-slide-toggle/eui-wc-slide-toggle.js +93 -0
- package/eui-slide-toggle/eui-wc-slide-toggle.js.map +1 -0
- package/eui-slide-toggle/index.d.ts +2 -0
- package/eui-slide-toggle/index.d.ts.map +1 -0
- package/eui-slide-toggle/index.js +2 -0
- package/eui-slide-toggle/index.js.map +1 -0
- package/eui-slider/eui-wc-slider.d.ts +18 -0
- package/eui-slider/eui-wc-slider.d.ts.map +1 -0
- package/eui-slider/eui-wc-slider.js +57 -0
- package/eui-slider/eui-wc-slider.js.map +1 -0
- package/eui-slider/index.d.ts +2 -0
- package/eui-slider/index.d.ts.map +1 -0
- package/eui-slider/index.js +2 -0
- package/eui-slider/index.js.map +1 -0
- package/eui-split-button/eui-wc-split-button.d.ts +11 -0
- package/eui-split-button/eui-wc-split-button.d.ts.map +1 -0
- package/eui-split-button/eui-wc-split-button.js +17 -0
- package/eui-split-button/eui-wc-split-button.js.map +1 -0
- package/eui-split-button/index.d.ts +2 -0
- package/eui-split-button/index.d.ts.map +1 -0
- package/eui-split-button/index.js +2 -0
- package/eui-split-button/index.js.map +1 -0
- package/eui-status-badge/eui-wc-status-badge.d.ts +15 -0
- package/eui-status-badge/eui-wc-status-badge.d.ts.map +1 -0
- package/eui-status-badge/eui-wc-status-badge.js +45 -0
- package/eui-status-badge/eui-wc-status-badge.js.map +1 -0
- package/eui-status-badge/index.d.ts +2 -0
- package/eui-status-badge/index.d.ts.map +1 -0
- package/eui-status-badge/index.js +2 -0
- package/eui-status-badge/index.js.map +1 -0
- package/eui-table/eui-wc-table.d.ts +26 -0
- package/eui-table/eui-wc-table.d.ts.map +1 -0
- package/eui-table/eui-wc-table.js +84 -0
- package/eui-table/eui-wc-table.js.map +1 -0
- package/eui-table/index.d.ts +2 -0
- package/eui-table/index.d.ts.map +1 -0
- package/eui-table/index.js +2 -0
- package/eui-table/index.js.map +1 -0
- package/eui-tabs/eui-wc-tabs.d.ts +26 -0
- package/eui-tabs/eui-wc-tabs.d.ts.map +1 -0
- package/eui-tabs/eui-wc-tabs.js +78 -0
- package/eui-tabs/eui-wc-tabs.js.map +1 -0
- package/eui-tabs/index.d.ts +2 -0
- package/eui-tabs/index.d.ts.map +1 -0
- package/eui-tabs/index.js +2 -0
- package/eui-tabs/index.js.map +1 -0
- package/eui-textarea/eui-wc-textarea.d.ts +18 -0
- package/eui-textarea/eui-wc-textarea.d.ts.map +1 -0
- package/eui-textarea/eui-wc-textarea.js +63 -0
- package/eui-textarea/eui-wc-textarea.js.map +1 -0
- package/eui-textarea/index.d.ts +2 -0
- package/eui-textarea/index.d.ts.map +1 -0
- package/eui-textarea/index.js +2 -0
- package/eui-textarea/index.js.map +1 -0
- package/eui-timeline/eui-wc-timeline.d.ts +29 -0
- package/eui-timeline/eui-wc-timeline.d.ts.map +1 -0
- package/eui-timeline/eui-wc-timeline.js +119 -0
- package/eui-timeline/eui-wc-timeline.js.map +1 -0
- package/eui-timeline/index.d.ts +2 -0
- package/eui-timeline/index.d.ts.map +1 -0
- package/eui-timeline/index.js +2 -0
- package/eui-timeline/index.js.map +1 -0
- package/eui-timepicker/eui-wc-timepicker.d.ts +32 -0
- package/eui-timepicker/eui-wc-timepicker.d.ts.map +1 -0
- package/eui-timepicker/eui-wc-timepicker.js +102 -0
- package/eui-timepicker/eui-wc-timepicker.js.map +1 -0
- package/eui-timepicker/index.d.ts +2 -0
- package/eui-timepicker/index.d.ts.map +1 -0
- package/eui-timepicker/index.js +2 -0
- package/eui-timepicker/index.js.map +1 -0
- package/eui-toggle-group/eui-wc-toggle-group.d.ts +26 -0
- package/eui-toggle-group/eui-wc-toggle-group.d.ts.map +1 -0
- package/eui-toggle-group/eui-wc-toggle-group.js +80 -0
- package/eui-toggle-group/eui-wc-toggle-group.js.map +1 -0
- package/eui-toggle-group/index.d.ts +2 -0
- package/eui-toggle-group/index.d.ts.map +1 -0
- package/eui-toggle-group/index.js +2 -0
- package/eui-toggle-group/index.js.map +1 -0
- package/eui-tree/eui-wc-tree.d.ts +28 -0
- package/eui-tree/eui-wc-tree.d.ts.map +1 -0
- package/eui-tree/eui-wc-tree.js +57 -0
- package/eui-tree/eui-wc-tree.js.map +1 -0
- package/eui-tree/index.d.ts +2 -0
- package/eui-tree/index.d.ts.map +1 -0
- package/eui-tree/index.js +2 -0
- package/eui-tree/index.js.map +1 -0
- package/eui-tree-list/eui-wc-tree-list.d.ts +22 -0
- package/eui-tree-list/eui-wc-tree-list.d.ts.map +1 -0
- package/eui-tree-list/eui-wc-tree-list.js +51 -0
- package/eui-tree-list/eui-wc-tree-list.js.map +1 -0
- package/eui-tree-list/index.d.ts +2 -0
- package/eui-tree-list/index.d.ts.map +1 -0
- package/eui-tree-list/index.js +2 -0
- package/eui-tree-list/index.js.map +1 -0
- package/eui-user-profile/eui-wc-user-profile.d.ts +18 -0
- package/eui-user-profile/eui-wc-user-profile.d.ts.map +1 -0
- package/eui-user-profile/eui-wc-user-profile.js +52 -0
- package/eui-user-profile/eui-wc-user-profile.js.map +1 -0
- package/eui-user-profile/index.d.ts +2 -0
- package/eui-user-profile/index.d.ts.map +1 -0
- package/eui-user-profile/index.js +2 -0
- package/eui-user-profile/index.js.map +1 -0
- package/eui-wizard/eui-wc-wizard.d.ts +23 -0
- package/eui-wizard/eui-wc-wizard.d.ts.map +1 -0
- package/eui-wizard/eui-wc-wizard.js +75 -0
- package/eui-wizard/eui-wc-wizard.js.map +1 -0
- package/eui-wizard/index.d.ts +2 -0
- package/eui-wizard/index.d.ts.map +1 -0
- package/eui-wizard/index.js +2 -0
- package/eui-wizard/index.js.map +1 -0
- package/index.d.ts +72 -0
- package/index.d.ts.map +1 -0
- package/index.js +80 -0
- package/index.js.map +1 -0
- package/package.json +322 -4
- package/README.md +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-icon-button-expander.d.ts","sourceRoot":"","sources":["../../src/eui-icon-button-expander/eui-wc-icon-button-expander.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAErD,OAAO,4BAA4B,CAAC;AAEpC,MAAM,MAAM,+BAA+B,GAAG,KAAK,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAE5G;;;;;;;;;GASG;AACH,qBACa,uBAAwB,SAAQ,UAAU;IACnD,OAAgB,MAAM,0BAoCpB;IAEoE,UAAU,UAAS;IACV,kBAAkB,UAAS;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IAC7B,IAAI,EAAE,+BAA+B,CAAO;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAQ;IACpC,QAAQ,UAAS;IACxB,OAAO,SAAiC;IAE7E,OAAO,CAAC,YAAY;IAKX,MAAM;CAqBlB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAAG,6BAA6B,EAAE,uBAAuB,CAAC;KAAE;CAC9F"}
|
|
@@ -0,0 +1,119 @@
|
|
|
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 { LitElement, html, css, nothing } from 'lit';
|
|
8
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
9
|
+
import '../eui-icon/eui-wc-icon.js';
|
|
10
|
+
/**
|
|
11
|
+
* `EuiWcIconButtonExpander` — Lit WC projection of `eui-icon-button-expander`.
|
|
12
|
+
*
|
|
13
|
+
* Chevron icon button that rotates to indicate expand/collapse state.
|
|
14
|
+
*
|
|
15
|
+
* Usage:
|
|
16
|
+
* ```html
|
|
17
|
+
* <eui-wc-icon-button-expander is-expanded></eui-wc-icon-button-expander>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
let EuiWcIconButtonExpander = class EuiWcIconButtonExpander extends LitElement {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.isExpanded = false;
|
|
24
|
+
this.isDirectionForward = false;
|
|
25
|
+
this.size = 'm';
|
|
26
|
+
this.ariaLabel = null;
|
|
27
|
+
this.disabled = false;
|
|
28
|
+
this.e2eAttr = 'eui-wc-icon-button-expander';
|
|
29
|
+
}
|
|
30
|
+
static { this.styles = css `
|
|
31
|
+
:host {
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
border-radius: var(--eui-br-max);
|
|
34
|
+
}
|
|
35
|
+
:host(:hover) { background-color: var(--eui-c-secondary-surface-light-hover); }
|
|
36
|
+
|
|
37
|
+
.eui-icon-button-expander-toggle {
|
|
38
|
+
background-color: transparent;
|
|
39
|
+
border: var(--eui-bw-none);
|
|
40
|
+
border-radius: var(--eui-br-max);
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
padding: var(--eui-s-3xs);
|
|
43
|
+
align-items: center;
|
|
44
|
+
display: flex;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
position: relative;
|
|
47
|
+
transition: transform 0.2s linear;
|
|
48
|
+
}
|
|
49
|
+
.eui-icon-button-expander-toggle:focus-visible {
|
|
50
|
+
outline: 2px solid var(--eui-c-focus-visible) !important;
|
|
51
|
+
outline-offset: -2px !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:host([is-expanded]) .eui-icon-button-expander-toggle {
|
|
55
|
+
transform: rotate(180deg);
|
|
56
|
+
}
|
|
57
|
+
:host([is-direction-forward][is-expanded]) .eui-icon-button-expander-toggle {
|
|
58
|
+
transform: rotate(90deg);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:host([disabled]) .eui-icon-button-expander-toggle {
|
|
62
|
+
cursor: not-allowed;
|
|
63
|
+
opacity: var(--eui-o-50);
|
|
64
|
+
pointer-events: none;
|
|
65
|
+
}
|
|
66
|
+
`; }
|
|
67
|
+
_handleClick(e) {
|
|
68
|
+
if (this.disabled)
|
|
69
|
+
return;
|
|
70
|
+
this.dispatchEvent(new CustomEvent('eui-click', { detail: e, bubbles: true, composed: true }));
|
|
71
|
+
}
|
|
72
|
+
render() {
|
|
73
|
+
const icon = this.isDirectionForward ? 'eui-chevron-right' : 'eui-chevron-down';
|
|
74
|
+
const label = this.ariaLabel ?? (this.isExpanded ? 'expanded' : 'collapsed');
|
|
75
|
+
return html `
|
|
76
|
+
<button
|
|
77
|
+
class="eui-icon-button-expander-toggle"
|
|
78
|
+
type="button"
|
|
79
|
+
aria-expanded=${this.isExpanded ? 'true' : 'false'}
|
|
80
|
+
aria-label=${label}
|
|
81
|
+
?disabled=${this.disabled}
|
|
82
|
+
@click=${this._handleClick}
|
|
83
|
+
>
|
|
84
|
+
<eui-wc-icon
|
|
85
|
+
icon=${icon}
|
|
86
|
+
size=${this.size}
|
|
87
|
+
fill-color=${this.fillColor ?? nothing}
|
|
88
|
+
aria-hidden="true"
|
|
89
|
+
></eui-wc-icon>
|
|
90
|
+
</button>
|
|
91
|
+
`;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
__decorate([
|
|
95
|
+
property({ attribute: 'is-expanded', type: Boolean, reflect: true })
|
|
96
|
+
], EuiWcIconButtonExpander.prototype, "isExpanded", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
property({ attribute: 'is-direction-forward', type: Boolean, reflect: true })
|
|
99
|
+
], EuiWcIconButtonExpander.prototype, "isDirectionForward", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
property({ attribute: 'fill-color' })
|
|
102
|
+
], EuiWcIconButtonExpander.prototype, "fillColor", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
property({ reflect: true })
|
|
105
|
+
], EuiWcIconButtonExpander.prototype, "size", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
property({ attribute: 'aria-label' })
|
|
108
|
+
], EuiWcIconButtonExpander.prototype, "ariaLabel", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
property({ type: Boolean, reflect: true })
|
|
111
|
+
], EuiWcIconButtonExpander.prototype, "disabled", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
property({ attribute: 'data-e2e' })
|
|
114
|
+
], EuiWcIconButtonExpander.prototype, "e2eAttr", void 0);
|
|
115
|
+
EuiWcIconButtonExpander = __decorate([
|
|
116
|
+
customElement('eui-wc-icon-button-expander')
|
|
117
|
+
], EuiWcIconButtonExpander);
|
|
118
|
+
export { EuiWcIconButtonExpander };
|
|
119
|
+
//# sourceMappingURL=eui-wc-icon-button-expander.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-icon-button-expander.js","sourceRoot":"","sources":["../../src/eui-icon-button-expander/eui-wc-icon-button-expander.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,4BAA4B,CAAC;AAIpC;;;;;;;;;GASG;AAEI,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,UAAU;IAAhD;;QAuCmE,eAAU,GAAG,KAAK,CAAC;QACV,uBAAkB,GAAG,KAAK,CAAC;QAE7E,SAAI,GAAoC,GAAG,CAAC;QACzB,cAAS,GAAkB,IAAI,CAAC;QACpC,aAAQ,GAAG,KAAK,CAAC;QACxB,YAAO,GAAG,6BAA6B,CAAC;IA4BjF,CAAC;aAxEmB,WAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAoC3B,AApCqB,CAoCpB;IAUM,YAAY,CAAC,CAAa;QAC9B,IAAI,IAAI,CAAC,QAAQ;YAAE,OAAO;QAC1B,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACnG,CAAC;IAEQ,MAAM;QACX,MAAM,IAAI,GAAG,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,kBAAkB,CAAC;QAChF,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;QAC7E,OAAO,IAAI,CAAA;;;;gCAIa,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;6BACrC,KAAK;4BACN,IAAI,CAAC,QAAQ;yBAChB,IAAI,CAAC,YAAY;;;2BAGf,IAAI;2BACJ,IAAI,CAAC,IAAI;iCACH,IAAI,CAAC,SAAS,IAAI,OAAO;;;;SAIjD,CAAC;IACN,CAAC;;AAjCqE;IAArE,QAAQ,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;2DAAoB;AACV;IAA9E,QAAQ,CAAC,EAAE,SAAS,EAAE,sBAAsB,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mEAA4B;AACnE;IAAtC,QAAQ,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;0DAAoB;AAC7B;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qDAA6C;AACzB;IAA/C,QAAQ,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;0DAA0C;AACpC;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yDAAkB;AACxB;IAApC,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;wDAAyC;AA7CpE,uBAAuB;IADnC,aAAa,CAAC,6BAA6B,CAAC;GAChC,uBAAuB,CAyEnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eui-icon-button-expander/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,KAAK,+BAA+B,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eui-icon-button-expander/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAwC,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class EuiWcIconInput extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
4
|
+
isPositionStart: boolean;
|
|
5
|
+
isPositionEnd: boolean;
|
|
6
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
7
|
+
}
|
|
8
|
+
declare global {
|
|
9
|
+
interface HTMLElementTagNameMap {
|
|
10
|
+
'eui-wc-icon-input': EuiWcIconInput;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=eui-wc-icon-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-icon-input.d.ts","sourceRoot":"","sources":["../../src/eui-icon-input/eui-wc-icon-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,qBACa,cAAe,SAAQ,UAAU;IAC1C,OAAgB,MAAM,0BAKpB;IAC0E,eAAe,UAAS;IAC1B,aAAa,UAAS;IACvF,MAAM;CAClB;AAED,OAAO,CAAC,MAAM,CAAC;IAAE,UAAU,qBAAqB;QAAG,mBAAmB,EAAE,cAAc,CAAC;KAAE;CAAE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { LitElement, html, css } from 'lit';
|
|
8
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
9
|
+
let EuiWcIconInput = class EuiWcIconInput extends LitElement {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.isPositionStart = false;
|
|
13
|
+
this.isPositionEnd = false;
|
|
14
|
+
}
|
|
15
|
+
static { this.styles = css `
|
|
16
|
+
:host { display: inline-flex; align-items: center; position: relative; width: 100%; }
|
|
17
|
+
::slotted([slot='icon-start']) { left: var(--eui-s-m); position: absolute; pointer-events: none; }
|
|
18
|
+
::slotted([slot='icon-end']) { right: var(--eui-s-m); position: absolute; pointer-events: none; }
|
|
19
|
+
::slotted(input), ::slotted(eui-wc-input-text) { padding-left: calc(var(--eui-s-m) * 2 + var(--eui-is-m)); }
|
|
20
|
+
`; }
|
|
21
|
+
render() { return html `<slot name="icon-start"></slot><slot></slot><slot name="icon-end"></slot>`; }
|
|
22
|
+
};
|
|
23
|
+
__decorate([
|
|
24
|
+
property({ attribute: 'is-position-start', type: Boolean, reflect: true })
|
|
25
|
+
], EuiWcIconInput.prototype, "isPositionStart", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
property({ attribute: 'is-position-end', type: Boolean, reflect: true })
|
|
28
|
+
], EuiWcIconInput.prototype, "isPositionEnd", void 0);
|
|
29
|
+
EuiWcIconInput = __decorate([
|
|
30
|
+
customElement('eui-wc-icon-input')
|
|
31
|
+
], EuiWcIconInput);
|
|
32
|
+
export { EuiWcIconInput };
|
|
33
|
+
//# sourceMappingURL=eui-wc-icon-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-icon-input.js","sourceRoot":"","sources":["../../src/eui-icon-input/eui-wc-icon-input.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGrD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,UAAU;IAAvC;;QAOyE,oBAAe,GAAG,KAAK,CAAC;QAC1B,kBAAa,GAAG,KAAK,CAAC;IAEpG,CAAC;aATmB,WAAM,GAAG,GAAG,CAAA;;;;;KAK3B,AALqB,CAKpB;IAGO,MAAM,KAAK,OAAO,IAAI,CAAA,2EAA2E,CAAC,CAAC,CAAC;;AAFjC;IAA3E,QAAQ,CAAC,EAAE,SAAS,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uDAAyB;AAC1B;IAAzE,QAAQ,CAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qDAAuB;AARvF,cAAc;IAD1B,aAAa,CAAC,mBAAmB,CAAC;GACtB,cAAc,CAU1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eui-icon-input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eui-icon-input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../eui-icon/eui-wc-icon.js';
|
|
3
|
+
/**
|
|
4
|
+
* `EuiWcIconToggle` — Lit WC projection of `eui-icon-toggle`.
|
|
5
|
+
*
|
|
6
|
+
* A toggleable icon button (role=switch). Controlled via `is-checked`.
|
|
7
|
+
*
|
|
8
|
+
* Usage:
|
|
9
|
+
* ```html
|
|
10
|
+
* <eui-wc-icon-toggle
|
|
11
|
+
* icon-svg-name-on="eui-bookmark-fill"
|
|
12
|
+
* icon-svg-name-off="eui-bookmark"
|
|
13
|
+
* is-checked
|
|
14
|
+
* ></eui-wc-icon-toggle>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare class EuiWcIconToggle extends LitElement {
|
|
18
|
+
static styles: import("lit").CSSResult;
|
|
19
|
+
isChecked: boolean;
|
|
20
|
+
isReadOnly: boolean;
|
|
21
|
+
iconSvgNameOn?: string;
|
|
22
|
+
iconSvgNameOff?: string;
|
|
23
|
+
iconSvgSize: string;
|
|
24
|
+
iconSvgFillColorOn: string;
|
|
25
|
+
iconSvgFillColorOff: string;
|
|
26
|
+
ariaLabel: string | null;
|
|
27
|
+
keyboardAccessKey: string;
|
|
28
|
+
e2eAttr: string;
|
|
29
|
+
private _internal;
|
|
30
|
+
updated(changed: Map<string, unknown>): void;
|
|
31
|
+
private _toggle;
|
|
32
|
+
private _onKeyDown;
|
|
33
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
34
|
+
}
|
|
35
|
+
declare global {
|
|
36
|
+
interface HTMLElementTagNameMap {
|
|
37
|
+
'eui-wc-icon-toggle': EuiWcIconToggle;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=eui-wc-icon-toggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-icon-toggle.d.ts","sourceRoot":"","sources":["../../src/eui-icon-toggle/eui-wc-icon-toggle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAErD,OAAO,4BAA4B,CAAC;AAEpC;;;;;;;;;;;;;GAaG;AACH,qBACa,eAAgB,SAAQ,UAAU;IAC3C,OAAgB,MAAM,0BAsBpB;IAEmE,SAAS,UAAS;IACjB,UAAU,UAAS;IAC5C,aAAa,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IAC5B,WAAW,SAAO;IACT,kBAAkB,SAAY;IAC7B,mBAAmB,SAAa;IACrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAiB;IACxD,iBAAiB,SAAO;IACnC,OAAO,SAAwB;IAE3D,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAI9C,OAAO,CAAC,OAAO;IAQf,OAAO,CAAC,UAAU;IAQT,MAAM;CAoBlB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAAG,oBAAoB,EAAE,eAAe,CAAC;KAAE;CAC7E"}
|
|
@@ -0,0 +1,137 @@
|
|
|
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 { LitElement, html, css, nothing } from 'lit';
|
|
8
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
9
|
+
import '../eui-icon/eui-wc-icon.js';
|
|
10
|
+
/**
|
|
11
|
+
* `EuiWcIconToggle` — Lit WC projection of `eui-icon-toggle`.
|
|
12
|
+
*
|
|
13
|
+
* A toggleable icon button (role=switch). Controlled via `is-checked`.
|
|
14
|
+
*
|
|
15
|
+
* Usage:
|
|
16
|
+
* ```html
|
|
17
|
+
* <eui-wc-icon-toggle
|
|
18
|
+
* icon-svg-name-on="eui-bookmark-fill"
|
|
19
|
+
* icon-svg-name-off="eui-bookmark"
|
|
20
|
+
* is-checked
|
|
21
|
+
* ></eui-wc-icon-toggle>
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
let EuiWcIconToggle = class EuiWcIconToggle extends LitElement {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
this.isChecked = false;
|
|
28
|
+
this.isReadOnly = false;
|
|
29
|
+
this.iconSvgSize = 'm';
|
|
30
|
+
this.iconSvgFillColorOn = 'accent';
|
|
31
|
+
this.iconSvgFillColorOff = 'neutral';
|
|
32
|
+
this.ariaLabel = 'Toggle icon';
|
|
33
|
+
this.keyboardAccessKey = 'i';
|
|
34
|
+
this.e2eAttr = 'eui-wc-icon-toggle';
|
|
35
|
+
this._internal = false;
|
|
36
|
+
}
|
|
37
|
+
static { this.styles = css `
|
|
38
|
+
:host {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
position: relative;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
padding: calc(var(--eui-s-xs) - 1px);
|
|
43
|
+
}
|
|
44
|
+
:host(:hover) {
|
|
45
|
+
background-color: var(--eui-c-secondary-surface-light-hover);
|
|
46
|
+
border-radius: var(--eui-br-max);
|
|
47
|
+
}
|
|
48
|
+
:host(:focus-visible) {
|
|
49
|
+
border-radius: var(--eui-br-max);
|
|
50
|
+
outline: 2px solid var(--eui-c-focus-visible) !important;
|
|
51
|
+
outline-offset: -2px !important;
|
|
52
|
+
}
|
|
53
|
+
:host([is-checked]) {
|
|
54
|
+
color: var(--eui-c-primary);
|
|
55
|
+
}
|
|
56
|
+
:host([is-readonly]) {
|
|
57
|
+
cursor: auto;
|
|
58
|
+
}
|
|
59
|
+
`; }
|
|
60
|
+
updated(changed) {
|
|
61
|
+
if (changed.has('isChecked'))
|
|
62
|
+
this._internal = this.isChecked;
|
|
63
|
+
}
|
|
64
|
+
_toggle() {
|
|
65
|
+
if (this.isReadOnly)
|
|
66
|
+
return;
|
|
67
|
+
this._internal = !this._internal;
|
|
68
|
+
this.isChecked = this._internal;
|
|
69
|
+
this.dispatchEvent(new CustomEvent('eui-change', { detail: this._internal, bubbles: true, composed: true }));
|
|
70
|
+
this.dispatchEvent(new CustomEvent('eui-toggle', { detail: this._internal, bubbles: true, composed: true }));
|
|
71
|
+
}
|
|
72
|
+
_onKeyDown(e) {
|
|
73
|
+
if (e.code === 'Enter' || e.code === 'Space') {
|
|
74
|
+
e.preventDefault();
|
|
75
|
+
e.stopPropagation();
|
|
76
|
+
this._toggle();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
render() {
|
|
80
|
+
const icon = this._internal ? this.iconSvgNameOn : this.iconSvgNameOff;
|
|
81
|
+
const fillColor = this._internal ? this.iconSvgFillColorOn : this.iconSvgFillColorOff;
|
|
82
|
+
const label = this.ariaLabel || icon || 'Toggle icon';
|
|
83
|
+
return html `
|
|
84
|
+
<eui-wc-icon
|
|
85
|
+
icon=${icon ?? nothing}
|
|
86
|
+
size=${this.iconSvgSize}
|
|
87
|
+
fill-color=${fillColor}
|
|
88
|
+
aria-hidden="true"
|
|
89
|
+
role="img"
|
|
90
|
+
tabindex=${this.isReadOnly ? -1 : 0}
|
|
91
|
+
@click=${this._toggle}
|
|
92
|
+
@keydown=${this._onKeyDown}
|
|
93
|
+
aria-label=${label}
|
|
94
|
+
aria-checked=${this._internal ? 'true' : 'false'}
|
|
95
|
+
data-role="switch"
|
|
96
|
+
></eui-wc-icon>
|
|
97
|
+
`;
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
__decorate([
|
|
101
|
+
property({ attribute: 'is-checked', type: Boolean, reflect: true })
|
|
102
|
+
], EuiWcIconToggle.prototype, "isChecked", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
property({ attribute: 'is-readonly', type: Boolean, reflect: true })
|
|
105
|
+
], EuiWcIconToggle.prototype, "isReadOnly", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
property({ attribute: 'icon-svg-name-on' })
|
|
108
|
+
], EuiWcIconToggle.prototype, "iconSvgNameOn", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
property({ attribute: 'icon-svg-name-off' })
|
|
111
|
+
], EuiWcIconToggle.prototype, "iconSvgNameOff", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
property({ attribute: 'icon-svg-size' })
|
|
114
|
+
], EuiWcIconToggle.prototype, "iconSvgSize", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
property({ attribute: 'icon-svg-fill-color-on' })
|
|
117
|
+
], EuiWcIconToggle.prototype, "iconSvgFillColorOn", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
property({ attribute: 'icon-svg-fill-color-off' })
|
|
120
|
+
], EuiWcIconToggle.prototype, "iconSvgFillColorOff", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
property({ attribute: 'aria-label', reflect: true })
|
|
123
|
+
], EuiWcIconToggle.prototype, "ariaLabel", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
property({ attribute: 'keyboard-access-key' })
|
|
126
|
+
], EuiWcIconToggle.prototype, "keyboardAccessKey", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
property({ attribute: 'data-e2e' })
|
|
129
|
+
], EuiWcIconToggle.prototype, "e2eAttr", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
state()
|
|
132
|
+
], EuiWcIconToggle.prototype, "_internal", void 0);
|
|
133
|
+
EuiWcIconToggle = __decorate([
|
|
134
|
+
customElement('eui-wc-icon-toggle')
|
|
135
|
+
], EuiWcIconToggle);
|
|
136
|
+
export { EuiWcIconToggle };
|
|
137
|
+
//# sourceMappingURL=eui-wc-icon-toggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-icon-toggle.js","sourceRoot":"","sources":["../../src/eui-icon-toggle/eui-wc-icon-toggle.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eui-icon-toggle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eui-icon-toggle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* `EuiWcInputButton` — Lit WC projection of `eui-input-button`.
|
|
4
|
+
*
|
|
5
|
+
* Layout wrapper positioning a button relative to an input field (start or end).
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* ```html
|
|
9
|
+
* <eui-wc-input-button>
|
|
10
|
+
* <input type="text" />
|
|
11
|
+
* <eui-wc-button>Search</eui-wc-button>
|
|
12
|
+
* </eui-wc-input-button>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare class EuiWcInputButton extends LitElement {
|
|
16
|
+
static styles: import("lit").CSSResult;
|
|
17
|
+
/** Positions the button at the start (left in LTR). @default false */
|
|
18
|
+
isPositionStart: boolean;
|
|
19
|
+
/** Positions the button at the end (right in LTR). @default true */
|
|
20
|
+
isPositionEnd: boolean;
|
|
21
|
+
e2eAttr: string;
|
|
22
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
23
|
+
}
|
|
24
|
+
declare global {
|
|
25
|
+
interface HTMLElementTagNameMap {
|
|
26
|
+
'eui-wc-input-button': EuiWcInputButton;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=eui-wc-input-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-input-button.d.ts","sourceRoot":"","sources":["../../src/eui-input-button/eui-wc-input-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C;;;;;;;;;;;;GAYG;AACH,qBACa,gBAAiB,SAAQ,UAAU;IAC5C,OAAgB,MAAM,0BAQpB;IAEF,sEAAsE;IACM,eAAe,UAAS;IACpG,oEAAoE;IACM,aAAa,UAAQ;IAC1D,OAAO,SAAyB;IAE5D,MAAM;CAGlB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAAG,qBAAqB,EAAE,gBAAgB,CAAC;KAAE;CAC/E"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { LitElement, html, css } from 'lit';
|
|
8
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
9
|
+
/**
|
|
10
|
+
* `EuiWcInputButton` — Lit WC projection of `eui-input-button`.
|
|
11
|
+
*
|
|
12
|
+
* Layout wrapper positioning a button relative to an input field (start or end).
|
|
13
|
+
*
|
|
14
|
+
* Usage:
|
|
15
|
+
* ```html
|
|
16
|
+
* <eui-wc-input-button>
|
|
17
|
+
* <input type="text" />
|
|
18
|
+
* <eui-wc-button>Search</eui-wc-button>
|
|
19
|
+
* </eui-wc-input-button>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
let EuiWcInputButton = class EuiWcInputButton extends LitElement {
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments);
|
|
25
|
+
/** Positions the button at the start (left in LTR). @default false */
|
|
26
|
+
this.isPositionStart = false;
|
|
27
|
+
/** Positions the button at the end (right in LTR). @default true */
|
|
28
|
+
this.isPositionEnd = true;
|
|
29
|
+
this.e2eAttr = 'eui-wc-input-button';
|
|
30
|
+
}
|
|
31
|
+
static { this.styles = css `
|
|
32
|
+
:host {
|
|
33
|
+
display: flex;
|
|
34
|
+
width: 100%;
|
|
35
|
+
border-radius: var(--eui-br-s);
|
|
36
|
+
}
|
|
37
|
+
:host([is-position-start]) { flex-direction: row-reverse; }
|
|
38
|
+
/* Content (projected light DOM) styles are consumer-scoped; the wrapper just provides flex */
|
|
39
|
+
`; }
|
|
40
|
+
render() {
|
|
41
|
+
return html `<slot></slot>`;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
__decorate([
|
|
45
|
+
property({ attribute: 'is-position-start', type: Boolean, reflect: true })
|
|
46
|
+
], EuiWcInputButton.prototype, "isPositionStart", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
property({ attribute: 'is-position-end', type: Boolean, reflect: true })
|
|
49
|
+
], EuiWcInputButton.prototype, "isPositionEnd", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
property({ attribute: 'data-e2e' })
|
|
52
|
+
], EuiWcInputButton.prototype, "e2eAttr", void 0);
|
|
53
|
+
EuiWcInputButton = __decorate([
|
|
54
|
+
customElement('eui-wc-input-button')
|
|
55
|
+
], EuiWcInputButton);
|
|
56
|
+
export { EuiWcInputButton };
|
|
57
|
+
//# sourceMappingURL=eui-wc-input-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-input-button.js","sourceRoot":"","sources":["../../src/eui-input-button/eui-wc-input-button.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D;;;;;;;;;;;;GAYG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAAzC;;QAWH,sEAAsE;QACM,oBAAe,GAAG,KAAK,CAAC;QACpG,oEAAoE;QACM,kBAAa,GAAG,IAAI,CAAC;QAC1D,YAAO,GAAG,qBAAqB,CAAC;IAKzE,CAAC;aAnBmB,WAAM,GAAG,GAAG,CAAA;;;;;;;;KAQ3B,AARqB,CAQpB;IAQO,MAAM;QACX,OAAO,IAAI,CAAA,eAAe,CAAC;IAC/B,CAAC;;AAP2E;IAA3E,QAAQ,CAAC,EAAE,SAAS,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yDAAyB;AAE1B;IAAzE,QAAQ,CAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uDAAsB;AAC1D;IAApC,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;iDAAiC;AAf5D,gBAAgB;IAD5B,aAAa,CAAC,qBAAqB,CAAC;GACxB,gBAAgB,CAoB5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eui-input-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eui-input-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/** `EuiWcInputCheckbox` — Lit WC projection of `eui-input-checkbox`. */
|
|
3
|
+
export declare class EuiWcInputCheckbox extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
indeterminate: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
isInvalid: boolean;
|
|
9
|
+
label?: string;
|
|
10
|
+
e2eAttr: string;
|
|
11
|
+
updated(): void;
|
|
12
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
13
|
+
}
|
|
14
|
+
declare global {
|
|
15
|
+
interface HTMLElementTagNameMap {
|
|
16
|
+
'eui-wc-input-checkbox': EuiWcInputCheckbox;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=eui-wc-input-checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-input-checkbox.d.ts","sourceRoot":"","sources":["../../src/eui-input-checkbox/eui-wc-input-checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,wEAAwE;AACxE,qBACa,kBAAmB,SAAQ,UAAU;IAC9C,OAAgB,MAAM,0BAKpB;IAE2B,OAAO,UAAS;IAChB,aAAa,UAAS;IACP,QAAQ,UAAS;IACP,SAAS,UAAS;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAC;IACU,OAAO,SAA2B;IAE9D,OAAO;IAKP,MAAM;CAMlB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAAG,uBAAuB,EAAE,kBAAkB,CAAC;KAAE;CACnF"}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { LitElement, html, css } from 'lit';
|
|
8
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
9
|
+
/** `EuiWcInputCheckbox` — Lit WC projection of `eui-input-checkbox`. */
|
|
10
|
+
let EuiWcInputCheckbox = class EuiWcInputCheckbox extends LitElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.checked = false;
|
|
14
|
+
this.indeterminate = false;
|
|
15
|
+
this.disabled = false;
|
|
16
|
+
this.isInvalid = false;
|
|
17
|
+
this.e2eAttr = 'eui-wc-input-checkbox';
|
|
18
|
+
}
|
|
19
|
+
static { this.styles = css `
|
|
20
|
+
:host { display: inline-flex; align-items: center; gap: var(--eui-s-xs); cursor: pointer; }
|
|
21
|
+
:host([disabled]) { opacity: var(--eui-o-50); cursor: not-allowed; }
|
|
22
|
+
input[type='checkbox'] { accent-color: var(--eui-c-primary); cursor: pointer; height: 1rem; width: 1rem; }
|
|
23
|
+
label { font: var(--eui-f-m); cursor: pointer; }
|
|
24
|
+
`; }
|
|
25
|
+
updated() {
|
|
26
|
+
const cb = this.shadowRoot?.querySelector('input');
|
|
27
|
+
if (cb)
|
|
28
|
+
cb.indeterminate = this.indeterminate;
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
return html `
|
|
32
|
+
<input type="checkbox" .checked=${this.checked} ?disabled=${this.disabled} aria-invalid=${this.isInvalid ? 'true' : 'false'} @change=${(e) => { this.checked = e.target.checked; this.dispatchEvent(new CustomEvent('eui-change', { detail: this.checked, bubbles: true, composed: true })); }} />
|
|
33
|
+
${this.label ? html `<label>${this.label}</label>` : html `<slot></slot>`}
|
|
34
|
+
`;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
__decorate([
|
|
38
|
+
property({ type: Boolean })
|
|
39
|
+
], EuiWcInputCheckbox.prototype, "checked", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
property({ type: Boolean })
|
|
42
|
+
], EuiWcInputCheckbox.prototype, "indeterminate", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
property({ type: Boolean, reflect: true })
|
|
45
|
+
], EuiWcInputCheckbox.prototype, "disabled", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
property({ attribute: 'is-invalid', type: Boolean })
|
|
48
|
+
], EuiWcInputCheckbox.prototype, "isInvalid", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
property()
|
|
51
|
+
], EuiWcInputCheckbox.prototype, "label", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
property({ attribute: 'data-e2e' })
|
|
54
|
+
], EuiWcInputCheckbox.prototype, "e2eAttr", void 0);
|
|
55
|
+
EuiWcInputCheckbox = __decorate([
|
|
56
|
+
customElement('eui-wc-input-checkbox')
|
|
57
|
+
], EuiWcInputCheckbox);
|
|
58
|
+
export { EuiWcInputCheckbox };
|
|
59
|
+
//# sourceMappingURL=eui-wc-input-checkbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-input-checkbox.js","sourceRoot":"","sources":["../../src/eui-input-checkbox/eui-wc-input-checkbox.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D,wEAAwE;AAEjE,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,UAAU;IAA3C;;QAQ0B,YAAO,GAAG,KAAK,CAAC;QAChB,kBAAa,GAAG,KAAK,CAAC;QACP,aAAQ,GAAG,KAAK,CAAC;QACP,cAAS,GAAG,KAAK,CAAC;QAEnC,YAAO,GAAG,uBAAuB,CAAC;IAa3E,CAAC;aAzBmB,WAAM,GAAG,GAAG,CAAA;;;;;KAK3B,AALqB,CAKpB;IASO,OAAO;QACZ,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC,OAAO,CAA4B,CAAC;QAC9E,IAAI,EAAE;YAAE,EAAE,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;IAClD,CAAC;IAEQ,MAAM;QACX,OAAO,IAAI,CAAA;8CAC2B,IAAI,CAAC,OAAO,cAAc,IAAI,CAAC,QAAQ,iBAAiB,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,YAAY,CAAC,CAAQ,EAAE,EAAE,GAAG,IAAI,CAAC,OAAO,GAAI,CAAC,CAAC,MAA2B,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;cACzT,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAA,UAAU,IAAI,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,CAAA,eAAe;SAC1E,CAAC;IACN,CAAC;;AAjB4B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;mDAAiB;AAChB;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;yDAAuB;AACP;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;oDAAkB;AACP;IAArD,QAAQ,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;qDAAmB;AAC5D;IAAX,QAAQ,EAAE;iDAAgB;AACU;IAApC,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;mDAAmC;AAb9D,kBAAkB;IAD9B,aAAa,CAAC,uBAAuB,CAAC;GAC1B,kBAAkB,CA0B9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eui-input-checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eui-input-checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC"}
|