@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-phone-picker.d.ts","sourceRoot":"","sources":["../../src/eui-phone-picker/eui-wc-phone-picker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,MAAM,WAAW,uBAAuB;IAAG,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CAAE;AASxG,qBACa,gBAAiB,SAAQ,UAAU;IAC5C,OAAgB,MAAM,0BAOpB;IAC0C,cAAc,SAAQ;IACvC,SAAS,EAAE,uBAAuB,EAAE,CAAqB;IACf,SAAS,UAAS;IAC3C,QAAQ,UAAS;IACxB,OAAO,SAAyB;IAC5D,OAAO,CAAC,QAAQ,CAAM;IACtB,OAAO,CAAC,OAAO,CAAM;IAErB,iBAAiB;IAE1B,OAAO,CAAC,KAAK;IAKJ,MAAM;CAQlB;AAED,OAAO,CAAC,MAAM,CAAC;IAAE,UAAU,qBAAqB;QAAG,qBAAqB,EAAE,gBAAgB,CAAC;KAAE;CAAE"}
|
|
@@ -0,0 +1,73 @@
|
|
|
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, state } from 'lit/decorators.js';
|
|
9
|
+
const DEFAULT_COUNTRIES = [
|
|
10
|
+
{ id: 'be', label: 'Belgium', dialCode: '+32', flag: '🇧🇪' }, { id: 'de', label: 'Germany', dialCode: '+49', flag: '🇩🇪' },
|
|
11
|
+
{ id: 'fr', label: 'France', dialCode: '+33', flag: '🇫🇷' }, { id: 'gb', label: 'United Kingdom', dialCode: '+44', flag: '🇬🇧' },
|
|
12
|
+
{ id: 'it', label: 'Italy', dialCode: '+39', flag: '🇮🇹' }, { id: 'lu', label: 'Luxembourg', dialCode: '+352', flag: '🇱🇺' },
|
|
13
|
+
{ id: 'nl', label: 'Netherlands', dialCode: '+31', flag: '🇳🇱' }, { id: 'es', label: 'Spain', dialCode: '+34', flag: '🇪🇸' },
|
|
14
|
+
];
|
|
15
|
+
let EuiWcPhonePicker = class EuiWcPhonePicker extends LitElement {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.defaultCountry = 'be';
|
|
19
|
+
this.countries = DEFAULT_COUNTRIES;
|
|
20
|
+
this.isInvalid = false;
|
|
21
|
+
this.disabled = false;
|
|
22
|
+
this.e2eAttr = 'eui-wc-phone-picker';
|
|
23
|
+
this._country = '';
|
|
24
|
+
this._number = '';
|
|
25
|
+
}
|
|
26
|
+
static { this.styles = css `
|
|
27
|
+
:host { display: flex; gap: var(--eui-s-xs); width: 100%; }
|
|
28
|
+
select, input { border: 1px solid var(--eui-c-secondary-border); border-radius: var(--eui-br-s); font: var(--eui-f-m); padding: var(--eui-s-xs) var(--eui-s-s); background: var(--eui-c-surface-container); }
|
|
29
|
+
select { flex-shrink: 0; width: 120px; }
|
|
30
|
+
input { flex: 1; }
|
|
31
|
+
:host([is-invalid]) select, :host([is-invalid]) input { border-color: var(--eui-c-danger); }
|
|
32
|
+
:host([disabled]) select, :host([disabled]) input { opacity: var(--eui-o-50); cursor: not-allowed; }
|
|
33
|
+
`; }
|
|
34
|
+
connectedCallback() { super.connectedCallback(); this._country = this.defaultCountry; }
|
|
35
|
+
_emit() {
|
|
36
|
+
const c = this.countries.find((x) => x.id === this._country);
|
|
37
|
+
this.dispatchEvent(new CustomEvent('eui-change', { detail: { country: this._country, dialCode: c?.dialCode ?? '', number: this._number, full: `${c?.dialCode ?? ''}${this._number}` }, bubbles: true, composed: true }));
|
|
38
|
+
}
|
|
39
|
+
render() {
|
|
40
|
+
return html `
|
|
41
|
+
<select .value=${this._country} ?disabled=${this.disabled} @change=${(e) => { this._country = e.target.value; this._emit(); }}>
|
|
42
|
+
${this.countries.map((c) => html `<option value=${c.id} ?selected=${c.id === this._country}>${c.flag ?? ''} ${c.dialCode}</option>`)}
|
|
43
|
+
</select>
|
|
44
|
+
<input type="tel" .value=${this._number} placeholder="Phone number" ?disabled=${this.disabled} aria-invalid=${this.isInvalid ? 'true' : 'false'} @input=${(e) => { this._number = e.target.value; this._emit(); }} />
|
|
45
|
+
`;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
__decorate([
|
|
49
|
+
property({ attribute: 'default-country' })
|
|
50
|
+
], EuiWcPhonePicker.prototype, "defaultCountry", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
property({ type: Array })
|
|
53
|
+
], EuiWcPhonePicker.prototype, "countries", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
property({ attribute: 'is-invalid', type: Boolean, reflect: true })
|
|
56
|
+
], EuiWcPhonePicker.prototype, "isInvalid", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
property({ type: Boolean, reflect: true })
|
|
59
|
+
], EuiWcPhonePicker.prototype, "disabled", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
property({ attribute: 'data-e2e' })
|
|
62
|
+
], EuiWcPhonePicker.prototype, "e2eAttr", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
state()
|
|
65
|
+
], EuiWcPhonePicker.prototype, "_country", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
state()
|
|
68
|
+
], EuiWcPhonePicker.prototype, "_number", void 0);
|
|
69
|
+
EuiWcPhonePicker = __decorate([
|
|
70
|
+
customElement('eui-wc-phone-picker')
|
|
71
|
+
], EuiWcPhonePicker);
|
|
72
|
+
export { EuiWcPhonePicker };
|
|
73
|
+
//# sourceMappingURL=eui-wc-phone-picker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-phone-picker.js","sourceRoot":"","sources":["../../src/eui-phone-picker/eui-wc-phone-picker.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eui-phone-picker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,uBAAuB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eui-phone-picker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAgC,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export type EuiWcPopoverPosition = 'above' | 'below' | 'left' | 'right';
|
|
3
|
+
/** `EuiWcPopover` — Lit WC projection of `eui-popover`. */
|
|
4
|
+
export declare class EuiWcPopover extends LitElement {
|
|
5
|
+
static styles: import("lit").CSSResult;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
position: EuiWcPopoverPosition;
|
|
8
|
+
e2eAttr: string;
|
|
9
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
'eui-wc-popover': EuiWcPopover;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=eui-wc-popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-popover.d.ts","sourceRoot":"","sources":["../../src/eui-popover/eui-wc-popover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAExE,2DAA2D;AAC3D,qBACa,YAAa,SAAQ,UAAU;IACxC,OAAgB,MAAM,0BAgBpB;IAEgE,MAAM,UAAS;IACpD,QAAQ,EAAE,oBAAoB,CAAW;IACjC,OAAO,SAAoB;IAEvD,MAAM;CAUlB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAAG,gBAAgB,EAAE,YAAY,CAAC;KAAE;CACtE"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
/** `EuiWcPopover` — Lit WC projection of `eui-popover`. */
|
|
10
|
+
let EuiWcPopover = class EuiWcPopover extends LitElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.isOpen = false;
|
|
14
|
+
this.position = 'below';
|
|
15
|
+
this.e2eAttr = 'eui-wc-popover';
|
|
16
|
+
}
|
|
17
|
+
static { this.styles = css `
|
|
18
|
+
:host { display: inline-block; position: relative; }
|
|
19
|
+
.eui-popover__panel {
|
|
20
|
+
background-color: var(--eui-c-surface-container);
|
|
21
|
+
border: 1px solid var(--eui-c-divider);
|
|
22
|
+
border-radius: var(--eui-br-s);
|
|
23
|
+
box-shadow: var(--eui-sh-2);
|
|
24
|
+
padding: var(--eui-s-m);
|
|
25
|
+
position: absolute;
|
|
26
|
+
z-index: 100;
|
|
27
|
+
min-width: 200px;
|
|
28
|
+
}
|
|
29
|
+
:host([position='above']) .eui-popover__panel { bottom: 100%; margin-bottom: var(--eui-s-2xs); }
|
|
30
|
+
:host(:not([position='above'])) .eui-popover__panel { top: 100%; margin-top: var(--eui-s-2xs); }
|
|
31
|
+
:host([is-open]) .eui-popover__panel { display: block; }
|
|
32
|
+
:host(:not([is-open])) .eui-popover__panel { display: none; }
|
|
33
|
+
`; }
|
|
34
|
+
render() {
|
|
35
|
+
return html `
|
|
36
|
+
<div @click=${() => { this.isOpen = !this.isOpen; this.dispatchEvent(new CustomEvent('eui-open-change', { detail: this.isOpen, bubbles: true, composed: true })); }}>
|
|
37
|
+
<slot name="trigger"></slot>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="eui-popover__panel" role="dialog">
|
|
40
|
+
<slot></slot>
|
|
41
|
+
</div>
|
|
42
|
+
`;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
__decorate([
|
|
46
|
+
property({ attribute: 'is-open', type: Boolean, reflect: true })
|
|
47
|
+
], EuiWcPopover.prototype, "isOpen", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
property({ reflect: true })
|
|
50
|
+
], EuiWcPopover.prototype, "position", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
property({ attribute: 'data-e2e' })
|
|
53
|
+
], EuiWcPopover.prototype, "e2eAttr", void 0);
|
|
54
|
+
EuiWcPopover = __decorate([
|
|
55
|
+
customElement('eui-wc-popover')
|
|
56
|
+
], EuiWcPopover);
|
|
57
|
+
export { EuiWcPopover };
|
|
58
|
+
//# sourceMappingURL=eui-wc-popover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-popover.js","sourceRoot":"","sources":["../../src/eui-popover/eui-wc-popover.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;AAI5D,2DAA2D;AAEpD,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAArC;;QAmB+D,WAAM,GAAG,KAAK,CAAC;QACpD,aAAQ,GAAyB,OAAO,CAAC;QACjC,YAAO,GAAG,gBAAgB,CAAC;IAYpE,CAAC;aAhCmB,WAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;KAgB3B,AAhBqB,CAgBpB;IAMO,MAAM;QACX,OAAO,IAAI,CAAA;0BACO,GAAG,EAAE,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;SAMtK,CAAC;IACN,CAAC;;AAbiE;IAAjE,QAAQ,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAAgB;AACpD;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAA0C;AACjC;IAApC,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;6CAA4B;AArBvD,YAAY;IADxB,aAAa,CAAC,gBAAgB,CAAC;GACnB,YAAY,CAiCxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eui-popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eui-popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA6B,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../eui-icon/eui-wc-icon.js';
|
|
3
|
+
export type EuiWcProgressBarColor = 'neutral' | 'info' | 'success' | 'warning' | 'critical';
|
|
4
|
+
export type EuiWcProgressBarSize = '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
5
|
+
/**
|
|
6
|
+
* `EuiWcProgressBar` — Lit Web Component projection of `eui-progress-bar`.
|
|
7
|
+
*
|
|
8
|
+
* Horizontal progress indicator with determinate/indeterminate states, color/size variants,
|
|
9
|
+
* an optional header label, and an optional status icon.
|
|
10
|
+
*
|
|
11
|
+
* Usage:
|
|
12
|
+
* ```html
|
|
13
|
+
* <eui-wc-progress-bar progress="65" label="Uploading…"></eui-wc-progress-bar>
|
|
14
|
+
* <eui-wc-progress-bar is-indeterminate color="info"></eui-wc-progress-bar>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare class EuiWcProgressBar extends LitElement {
|
|
18
|
+
static styles: import("lit").CSSResult;
|
|
19
|
+
/** Semantic color variant. */
|
|
20
|
+
color?: EuiWcProgressBarColor;
|
|
21
|
+
/** Bar thickness. @default '2xs' */
|
|
22
|
+
size: EuiWcProgressBarSize;
|
|
23
|
+
/** Current progress 0-100. @default 0 */
|
|
24
|
+
progress: number;
|
|
25
|
+
/** Optional header label. */
|
|
26
|
+
label: string;
|
|
27
|
+
/** Shows indeterminate animation. @default false */
|
|
28
|
+
isIndeterminate: boolean;
|
|
29
|
+
/** Renders a status icon in the header. @default false */
|
|
30
|
+
hasStatusIcon: boolean;
|
|
31
|
+
/** `data-e2e` attribute. */
|
|
32
|
+
e2eAttr: string;
|
|
33
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
34
|
+
}
|
|
35
|
+
declare global {
|
|
36
|
+
interface HTMLElementTagNameMap {
|
|
37
|
+
'eui-wc-progress-bar': EuiWcProgressBar;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=eui-wc-progress-bar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-progress-bar.d.ts","sourceRoot":"","sources":["../../src/eui-progress-bar/eui-wc-progress-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAErD,OAAO,4BAA4B,CAAC;AAEpC,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAC5F,MAAM,MAAM,oBAAoB,GAAG,KAAK,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;AAazE;;;;;;;;;;;GAWG;AACH,qBACa,gBAAiB,SAAQ,UAAU;IAC5C,OAAgB,MAAM,0BA2FpB;IAEF,8BAA8B;IACD,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC3D,oCAAoC;IACP,IAAI,EAAE,oBAAoB,CAAS;IAChE,yCAAyC;IACb,QAAQ,SAAK;IACzC,6BAA6B;IACjB,KAAK,SAAM;IACvB,oDAAoD;IACuB,eAAe,UAAS;IACnG,0DAA0D;IACgB,aAAa,UAAS;IAChG,4BAA4B;IACS,OAAO,SAAyB;IAE5D,MAAM;CAkClB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,qBAAqB,EAAE,gBAAgB,CAAC;KAC3C;CACJ"}
|
|
@@ -0,0 +1,199 @@
|
|
|
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
|
+
/** Map a progress bar color to the corresponding eUI state icon name. */
|
|
11
|
+
function colorToStateIcon(color) {
|
|
12
|
+
switch (color) {
|
|
13
|
+
case 'info': return 'eui-state-info';
|
|
14
|
+
case 'success': return 'eui-state-success';
|
|
15
|
+
case 'warning': return 'eui-state-warning';
|
|
16
|
+
case 'critical': return 'eui-state-danger';
|
|
17
|
+
default: return 'eui-state-primary';
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* `EuiWcProgressBar` — Lit Web Component projection of `eui-progress-bar`.
|
|
22
|
+
*
|
|
23
|
+
* Horizontal progress indicator with determinate/indeterminate states, color/size variants,
|
|
24
|
+
* an optional header label, and an optional status icon.
|
|
25
|
+
*
|
|
26
|
+
* Usage:
|
|
27
|
+
* ```html
|
|
28
|
+
* <eui-wc-progress-bar progress="65" label="Uploading…"></eui-wc-progress-bar>
|
|
29
|
+
* <eui-wc-progress-bar is-indeterminate color="info"></eui-wc-progress-bar>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
let EuiWcProgressBar = class EuiWcProgressBar extends LitElement {
|
|
33
|
+
constructor() {
|
|
34
|
+
super(...arguments);
|
|
35
|
+
/** Bar thickness. @default '2xs' */
|
|
36
|
+
this.size = '2xs';
|
|
37
|
+
/** Current progress 0-100. @default 0 */
|
|
38
|
+
this.progress = 0;
|
|
39
|
+
/** Optional header label. */
|
|
40
|
+
this.label = '';
|
|
41
|
+
/** Shows indeterminate animation. @default false */
|
|
42
|
+
this.isIndeterminate = false;
|
|
43
|
+
/** Renders a status icon in the header. @default false */
|
|
44
|
+
this.hasStatusIcon = false;
|
|
45
|
+
/** `data-e2e` attribute. */
|
|
46
|
+
this.e2eAttr = 'eui-wc-progress-bar';
|
|
47
|
+
}
|
|
48
|
+
static { this.styles = css `
|
|
49
|
+
:host {
|
|
50
|
+
--_eui-wc-pb-current-color: var(--eui-c-primary);
|
|
51
|
+
align-items: center;
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
position: relative;
|
|
55
|
+
width: 100%;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:host([color='neutral']) { --_eui-wc-pb-current-color: var(--eui-c-secondary-surface); }
|
|
59
|
+
:host([color='success']) { --_eui-wc-pb-current-color: var(--eui-c-success-surface); }
|
|
60
|
+
:host([color='info']) { --_eui-wc-pb-current-color: var(--eui-c-info-surface); }
|
|
61
|
+
:host([color='warning']) { --_eui-wc-pb-current-color: var(--eui-c-warning-surface); }
|
|
62
|
+
:host([color='critical']) { --_eui-wc-pb-current-color: var(--eui-c-danger-surface); }
|
|
63
|
+
|
|
64
|
+
.eui-wc-progress-bar__header {
|
|
65
|
+
align-items: center;
|
|
66
|
+
display: flex;
|
|
67
|
+
justify-content: space-between;
|
|
68
|
+
height: var(--eui-s-l);
|
|
69
|
+
margin-bottom: var(--eui-s-s);
|
|
70
|
+
width: 100%;
|
|
71
|
+
}
|
|
72
|
+
.eui-wc-progress-bar__header-label {
|
|
73
|
+
display: flex;
|
|
74
|
+
justify-content: flex-start;
|
|
75
|
+
font: var(--eui-f-m-semi-bold);
|
|
76
|
+
}
|
|
77
|
+
.eui-wc-progress-bar__header-status {
|
|
78
|
+
display: flex;
|
|
79
|
+
justify-content: flex-end;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.eui-wc-progress-bar__indicator-container {
|
|
83
|
+
background-color: var(--eui-c-surface-container-3);
|
|
84
|
+
height: var(--eui-s-3xs);
|
|
85
|
+
position: relative;
|
|
86
|
+
width: 100%;
|
|
87
|
+
margin-bottom: var(--eui-s-3xs);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.eui-wc-progress-bar__indicator {
|
|
91
|
+
background-color: var(--eui-c-primary-surface);
|
|
92
|
+
height: 100%;
|
|
93
|
+
transition: width 0.25s ease;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* SIZE VARIANTS */
|
|
97
|
+
:host([size='2xs']) .eui-wc-progress-bar__indicator-container { height: var(--eui-s-3xs); }
|
|
98
|
+
:host([size='xs']) .eui-wc-progress-bar__indicator-container { height: var(--eui-s-xs); }
|
|
99
|
+
:host([size='s']) .eui-wc-progress-bar__indicator-container { height: var(--eui-s-s); }
|
|
100
|
+
:host([size='m']) .eui-wc-progress-bar__indicator-container { height: var(--eui-s-m); }
|
|
101
|
+
:host([size='l']) .eui-wc-progress-bar__indicator-container { height: var(--eui-s-l); }
|
|
102
|
+
:host([size='xl']) .eui-wc-progress-bar__indicator-container { height: var(--eui-s-xl); }
|
|
103
|
+
|
|
104
|
+
/* COLOR INDICATOR */
|
|
105
|
+
:host([color='neutral']) .eui-wc-progress-bar__indicator { background-color: var(--eui-c-secondary-surface); }
|
|
106
|
+
:host([color='success']) .eui-wc-progress-bar__indicator { background-color: var(--eui-c-success-surface); }
|
|
107
|
+
:host([color='info']) .eui-wc-progress-bar__indicator { background-color: var(--eui-c-info-surface); }
|
|
108
|
+
:host([color='warning']) .eui-wc-progress-bar__indicator { background-color: var(--eui-c-warning-surface); }
|
|
109
|
+
:host([color='critical']) .eui-wc-progress-bar__indicator { background-color: var(--eui-c-danger-surface); }
|
|
110
|
+
|
|
111
|
+
/* INDETERMINATE */
|
|
112
|
+
:host([is-indeterminate]) .eui-wc-progress-bar__indicator {
|
|
113
|
+
animation: eui-wc-pb-indeterminate 2s infinite linear;
|
|
114
|
+
background-color: var(--eui-c-surface-container-3);
|
|
115
|
+
background-size: 200% 100%;
|
|
116
|
+
background-image: linear-gradient(
|
|
117
|
+
to right,
|
|
118
|
+
transparent 50%,
|
|
119
|
+
var(--_eui-wc-pb-current-color) 50%,
|
|
120
|
+
var(--_eui-wc-pb-current-color) 60%,
|
|
121
|
+
transparent 60%,
|
|
122
|
+
transparent 71.5%,
|
|
123
|
+
var(--_eui-wc-pb-current-color) 71.5%,
|
|
124
|
+
var(--_eui-wc-pb-current-color) 84%,
|
|
125
|
+
transparent 84%
|
|
126
|
+
);
|
|
127
|
+
width: 100% !important;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@keyframes eui-wc-pb-indeterminate {
|
|
131
|
+
0% { background-size: 200% 100%; background-position: left -31.25% top 0%; }
|
|
132
|
+
50% { background-size: 800% 100%; background-position: left -49% top 0%; }
|
|
133
|
+
100% { background-size: 400% 100%; background-position: left -102% top 0%; }
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@media (max-width: 767px) {
|
|
137
|
+
:host([size='2xs']) .eui-wc-progress-bar__indicator-container { height: var(--eui-s-xs); }
|
|
138
|
+
}
|
|
139
|
+
`; }
|
|
140
|
+
render() {
|
|
141
|
+
const clamped = Math.min(Math.max(this.progress ?? 0, 0), 100);
|
|
142
|
+
const showHeader = this.label || this.hasStatusIcon;
|
|
143
|
+
return html `
|
|
144
|
+
${showHeader ? html `
|
|
145
|
+
<div class="eui-wc-progress-bar__header">
|
|
146
|
+
${this.label ? html `<div class="eui-wc-progress-bar__header-label">${this.label}</div>` : nothing}
|
|
147
|
+
${this.hasStatusIcon ? html `
|
|
148
|
+
<div class="eui-wc-progress-bar__header-status">
|
|
149
|
+
<eui-wc-icon
|
|
150
|
+
icon=${colorToStateIcon(this.color)}
|
|
151
|
+
size="s"
|
|
152
|
+
aria-hidden="true"
|
|
153
|
+
></eui-wc-icon>
|
|
154
|
+
</div>
|
|
155
|
+
` : nothing}
|
|
156
|
+
</div>
|
|
157
|
+
` : nothing}
|
|
158
|
+
<div
|
|
159
|
+
class="eui-wc-progress-bar__indicator-container"
|
|
160
|
+
role="progressbar"
|
|
161
|
+
aria-valuemin="0"
|
|
162
|
+
aria-valuemax="100"
|
|
163
|
+
aria-valuenow=${this.isIndeterminate ? nothing : clamped}
|
|
164
|
+
aria-label=${this.label || nothing}
|
|
165
|
+
>
|
|
166
|
+
<div
|
|
167
|
+
class="eui-wc-progress-bar__indicator"
|
|
168
|
+
style=${this.isIndeterminate ? nothing : `width: ${clamped}%`}
|
|
169
|
+
></div>
|
|
170
|
+
</div>
|
|
171
|
+
`;
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
__decorate([
|
|
175
|
+
property({ reflect: true })
|
|
176
|
+
], EuiWcProgressBar.prototype, "color", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
property({ reflect: true })
|
|
179
|
+
], EuiWcProgressBar.prototype, "size", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
property({ type: Number })
|
|
182
|
+
], EuiWcProgressBar.prototype, "progress", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
property()
|
|
185
|
+
], EuiWcProgressBar.prototype, "label", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
property({ attribute: 'is-indeterminate', type: Boolean, reflect: true })
|
|
188
|
+
], EuiWcProgressBar.prototype, "isIndeterminate", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
property({ attribute: 'has-status-icon', type: Boolean, reflect: true })
|
|
191
|
+
], EuiWcProgressBar.prototype, "hasStatusIcon", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
property({ attribute: 'data-e2e' })
|
|
194
|
+
], EuiWcProgressBar.prototype, "e2eAttr", void 0);
|
|
195
|
+
EuiWcProgressBar = __decorate([
|
|
196
|
+
customElement('eui-wc-progress-bar')
|
|
197
|
+
], EuiWcProgressBar);
|
|
198
|
+
export { EuiWcProgressBar };
|
|
199
|
+
//# sourceMappingURL=eui-wc-progress-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-progress-bar.js","sourceRoot":"","sources":["../../src/eui-progress-bar/eui-wc-progress-bar.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eui-progress-bar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC5B,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eui-progress-bar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,GAGnB,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '../eui-icon/eui-wc-icon.js';
|
|
3
|
+
export type EuiWcProgressCircleSize = 's' | 'm' | 'l';
|
|
4
|
+
export type EuiWcProgressCircleColorType = 'info' | 'success' | 'warning' | 'danger';
|
|
5
|
+
/**
|
|
6
|
+
* `EuiWcProgressCircle` — Lit WC projection of `eui-progress-circle`.
|
|
7
|
+
*
|
|
8
|
+
* Usage: `<eui-wc-progress-circle value="65"></eui-wc-progress-circle>`
|
|
9
|
+
*/
|
|
10
|
+
export declare class EuiWcProgressCircle extends LitElement {
|
|
11
|
+
static styles: import("lit").CSSResult;
|
|
12
|
+
size: EuiWcProgressCircleSize;
|
|
13
|
+
value: number;
|
|
14
|
+
ariaLabel: string | null;
|
|
15
|
+
isDefaultColorSteps: boolean;
|
|
16
|
+
hasBottomLabel: boolean;
|
|
17
|
+
emptyLabel: string;
|
|
18
|
+
valueLabel?: string;
|
|
19
|
+
colorSteps?: string;
|
|
20
|
+
colorType?: EuiWcProgressCircleColorType;
|
|
21
|
+
icon?: string;
|
|
22
|
+
fillColor?: string;
|
|
23
|
+
iconSize: string;
|
|
24
|
+
e2eAttr: string;
|
|
25
|
+
private _isLongLabel;
|
|
26
|
+
private _labelRef;
|
|
27
|
+
updated(): void;
|
|
28
|
+
private get _rounded();
|
|
29
|
+
private get _colorClass();
|
|
30
|
+
private get _labelValue();
|
|
31
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
32
|
+
}
|
|
33
|
+
declare global {
|
|
34
|
+
interface HTMLElementTagNameMap {
|
|
35
|
+
'eui-wc-progress-circle': EuiWcProgressCircle;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=eui-wc-progress-circle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-progress-circle.d.ts","sourceRoot":"","sources":["../../src/eui-progress-circle/eui-wc-progress-circle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAGrD,OAAO,4BAA4B,CAAC;AAEpC,MAAM,MAAM,uBAAuB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AACtD,MAAM,MAAM,4BAA4B,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAErF;;;;GAIG;AACH,qBACa,mBAAoB,SAAQ,UAAU;IAC/C,OAAgB,MAAM,0BA8JpB;IAE2B,IAAI,EAAE,uBAAuB,CAAO;IACrC,KAAK,SAAK;IACyB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAqB;IAC3B,mBAAmB,UAAQ;IACjC,cAAc,UAAS;IAC1D,UAAU,SAAS;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,4BAA4B,CAAC;IACpE,IAAI,CAAC,EAAE,MAAM,CAAC;IACa,SAAS,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,SAAO;IAChB,OAAO,SAA4B;IAE/D,OAAO,CAAC,YAAY,CAAS;IACtC,OAAO,CAAC,SAAS,CAAgC;IAExC,OAAO;IAQhB,OAAO,KAAK,QAAQ,GAEnB;IAED,OAAO,KAAK,WAAW,GAUtB;IAED,OAAO,KAAK,WAAW,GAItB;IAEQ,MAAM;CAqClB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAAG,wBAAwB,EAAE,mBAAmB,CAAC;KAAE;CACrF"}
|