@eui/components-wc 0.0.0-stage → 22.0.0-alpha.52
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,20 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/** `EuiWcInputNumber` — Lit WC projection of `eui-input-number`. */
|
|
3
|
+
export declare class EuiWcInputNumber extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
5
|
+
value?: number;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
min?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
step: number;
|
|
10
|
+
isInvalid: boolean;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
e2eAttr: string;
|
|
13
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
'eui-wc-input-number': EuiWcInputNumber;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=eui-wc-input-number.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-input-number.d.ts","sourceRoot":"","sources":["../../src/eui-input-number/eui-wc-input-number.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAGrD,oEAAoE;AACpE,qBACa,gBAAiB,SAAQ,UAAU;IAC5C,OAAgB,MAAM,0BAcpB;IAE0B,KAAK,CAAC,EAAE,MAAM,CAAC;IAC/B,WAAW,SAAM;IACD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,SAAK;IACgC,SAAS,UAAS;IAC3C,QAAQ,UAAS;IACxB,OAAO,SAAyB;IAE5D,MAAM;CAGlB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAAG,qBAAqB,EAAE,gBAAgB,CAAC;KAAE;CAC/E"}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
/** `EuiWcInputNumber` — Lit WC projection of `eui-input-number`. */
|
|
10
|
+
let EuiWcInputNumber = class EuiWcInputNumber extends LitElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.placeholder = '';
|
|
14
|
+
this.step = 1;
|
|
15
|
+
this.isInvalid = false;
|
|
16
|
+
this.disabled = false;
|
|
17
|
+
this.e2eAttr = 'eui-wc-input-number';
|
|
18
|
+
}
|
|
19
|
+
static { this.styles = css `
|
|
20
|
+
:host { display: inline-flex; width: 100%; }
|
|
21
|
+
input {
|
|
22
|
+
background-color: var(--eui-c-surface-container);
|
|
23
|
+
border: 1px solid var(--eui-c-secondary-border);
|
|
24
|
+
border-radius: var(--eui-br-s);
|
|
25
|
+
color: var(--eui-c-text);
|
|
26
|
+
font: var(--eui-f-m);
|
|
27
|
+
padding: var(--eui-s-xs) var(--eui-s-m);
|
|
28
|
+
width: 100%;
|
|
29
|
+
}
|
|
30
|
+
input:focus { border-color: var(--eui-c-primary); outline: none; }
|
|
31
|
+
:host([is-invalid]) input { border-color: var(--eui-c-danger); }
|
|
32
|
+
:host([disabled]) input { opacity: var(--eui-o-50); cursor: not-allowed; }
|
|
33
|
+
`; }
|
|
34
|
+
render() {
|
|
35
|
+
return html `<input type="number" .value=${this.value?.toString() ?? ''} placeholder=${this.placeholder} min=${this.min ?? nothing} max=${this.max ?? nothing} step=${this.step} ?disabled=${this.disabled} aria-invalid=${this.isInvalid ? 'true' : nothing} @input=${(e) => { this.value = Number(e.target.value); this.dispatchEvent(new CustomEvent('eui-change', { detail: this.value, bubbles: true, composed: true })); }} />`;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
__decorate([
|
|
39
|
+
property({ type: Number })
|
|
40
|
+
], EuiWcInputNumber.prototype, "value", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
property()
|
|
43
|
+
], EuiWcInputNumber.prototype, "placeholder", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
property({ type: Number })
|
|
46
|
+
], EuiWcInputNumber.prototype, "min", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
property({ type: Number })
|
|
49
|
+
], EuiWcInputNumber.prototype, "max", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
property({ type: Number })
|
|
52
|
+
], EuiWcInputNumber.prototype, "step", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
property({ attribute: 'is-invalid', type: Boolean, reflect: true })
|
|
55
|
+
], EuiWcInputNumber.prototype, "isInvalid", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
property({ type: Boolean, reflect: true })
|
|
58
|
+
], EuiWcInputNumber.prototype, "disabled", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
property({ attribute: 'data-e2e' })
|
|
61
|
+
], EuiWcInputNumber.prototype, "e2eAttr", void 0);
|
|
62
|
+
EuiWcInputNumber = __decorate([
|
|
63
|
+
customElement('eui-wc-input-number')
|
|
64
|
+
], EuiWcInputNumber);
|
|
65
|
+
export { EuiWcInputNumber };
|
|
66
|
+
//# sourceMappingURL=eui-wc-input-number.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-input-number.js","sourceRoot":"","sources":["../../src/eui-input-number/eui-wc-input-number.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;AAE5D,oEAAoE;AAE7D,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAAzC;;QAkBS,gBAAW,GAAG,EAAE,CAAC;QAGD,SAAI,GAAG,CAAC,CAAC;QACgC,cAAS,GAAG,KAAK,CAAC;QAC3C,aAAQ,GAAG,KAAK,CAAC;QACxB,YAAO,GAAG,qBAAqB,CAAC;IAKzE,CAAC;aA5BmB,WAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;KAc3B,AAdqB,CAcpB;IAWO,MAAM;QACX,OAAO,IAAI,CAAA,+BAA+B,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,gBAAgB,IAAI,CAAC,WAAW,QAAQ,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,IAAI,CAAC,GAAG,IAAI,OAAO,SAAS,IAAI,CAAC,IAAI,cAAc,IAAI,CAAC,QAAQ,iBAAiB,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,WAAW,CAAC,CAAQ,EAAE,EAAE,GAAG,IAAI,CAAC,KAAK,GAAG,MAAM,CAAE,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IACtc,CAAC;;AAX2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+CAAgB;AAC/B;IAAX,QAAQ,EAAE;qDAAkB;AACD;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAAc;AACb;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAAc;AACb;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8CAAU;AACgC;IAApE,QAAQ,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDAAmB;AAC3C;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAAkB;AACxB;IAApC,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;iDAAiC;AAxB5D,gBAAgB;IAD5B,aAAa,CAAC,qBAAqB,CAAC;GACxB,gBAAgB,CA6B5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eui-input-number/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-number/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/** `EuiWcInputRadio` — Lit WC projection of `eui-input-radio`. */
|
|
3
|
+
export declare class EuiWcInputRadio extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
value: string;
|
|
7
|
+
name: string;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
label?: string;
|
|
10
|
+
e2eAttr: string;
|
|
11
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
12
|
+
}
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
'eui-wc-input-radio': EuiWcInputRadio;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=eui-wc-input-radio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-input-radio.d.ts","sourceRoot":"","sources":["../../src/eui-input-radio/eui-wc-input-radio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,kEAAkE;AAClE,qBACa,eAAgB,SAAQ,UAAU;IAC3C,OAAgB,MAAM,0BAKpB;IAE2B,OAAO,UAAS;IACjC,KAAK,SAAM;IACX,IAAI,SAAM;IACsB,QAAQ,UAAS;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IACU,OAAO,SAAwB;IAE3D,MAAM;CAMlB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAAG,oBAAoB,EAAE,eAAe,CAAC;KAAE;CAC7E"}
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
/** `EuiWcInputRadio` — Lit WC projection of `eui-input-radio`. */
|
|
10
|
+
let EuiWcInputRadio = class EuiWcInputRadio extends LitElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.checked = false;
|
|
14
|
+
this.value = '';
|
|
15
|
+
this.name = '';
|
|
16
|
+
this.disabled = false;
|
|
17
|
+
this.e2eAttr = 'eui-wc-input-radio';
|
|
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='radio'] { accent-color: var(--eui-c-primary); cursor: pointer; height: 1rem; width: 1rem; }
|
|
23
|
+
label { font: var(--eui-f-m); cursor: pointer; }
|
|
24
|
+
`; }
|
|
25
|
+
render() {
|
|
26
|
+
return html `
|
|
27
|
+
<input type="radio" .checked=${this.checked} value=${this.value} name=${this.name} ?disabled=${this.disabled} @change=${() => { this.dispatchEvent(new CustomEvent('eui-change', { detail: this.value, bubbles: true, composed: true })); }} />
|
|
28
|
+
${this.label ? html `<label>${this.label}</label>` : html `<slot></slot>`}
|
|
29
|
+
`;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
__decorate([
|
|
33
|
+
property({ type: Boolean })
|
|
34
|
+
], EuiWcInputRadio.prototype, "checked", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
property()
|
|
37
|
+
], EuiWcInputRadio.prototype, "value", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
property()
|
|
40
|
+
], EuiWcInputRadio.prototype, "name", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
property({ type: Boolean, reflect: true })
|
|
43
|
+
], EuiWcInputRadio.prototype, "disabled", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
property()
|
|
46
|
+
], EuiWcInputRadio.prototype, "label", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
property({ attribute: 'data-e2e' })
|
|
49
|
+
], EuiWcInputRadio.prototype, "e2eAttr", void 0);
|
|
50
|
+
EuiWcInputRadio = __decorate([
|
|
51
|
+
customElement('eui-wc-input-radio')
|
|
52
|
+
], EuiWcInputRadio);
|
|
53
|
+
export { EuiWcInputRadio };
|
|
54
|
+
//# sourceMappingURL=eui-wc-input-radio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-input-radio.js","sourceRoot":"","sources":["../../src/eui-input-radio/eui-wc-input-radio.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,kEAAkE;AAE3D,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,UAAU;IAAxC;;QAQ0B,YAAO,GAAG,KAAK,CAAC;QACjC,UAAK,GAAG,EAAE,CAAC;QACX,SAAI,GAAG,EAAE,CAAC;QACsB,aAAQ,GAAG,KAAK,CAAC;QAExB,YAAO,GAAG,oBAAoB,CAAC;IAQxE,CAAC;aApBmB,WAAM,GAAG,GAAG,CAAA;;;;;KAK3B,AALqB,CAKpB;IASO,MAAM;QACX,OAAO,IAAI,CAAA;2CACwB,IAAI,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK,SAAS,IAAI,CAAC,IAAI,cAAc,IAAI,CAAC,QAAQ,YAAY,GAAG,EAAE,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;cACzO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAA,UAAU,IAAI,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,CAAA,eAAe;SAC1E,CAAC;IACN,CAAC;;AAZ4B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;gDAAiB;AACjC;IAAX,QAAQ,EAAE;8CAAY;AACX;IAAX,QAAQ,EAAE;6CAAW;AACsB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAAkB;AACjD;IAAX,QAAQ,EAAE;8CAAgB;AACU;IAApC,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;gDAAgC;AAb3D,eAAe;IAD3B,aAAa,CAAC,oBAAoB,CAAC;GACvB,eAAe,CAqB3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eui-input-radio/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-input-radio/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/** `EuiWcInputText` — Lit WC projection of `eui-input-text`. */
|
|
3
|
+
export declare class EuiWcInputText extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
5
|
+
value: string;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
type: string;
|
|
8
|
+
isInvalid: boolean;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
isReadonly: boolean;
|
|
11
|
+
isClearable: boolean;
|
|
12
|
+
e2eAttr: string;
|
|
13
|
+
private _handleInput;
|
|
14
|
+
private _handleChange;
|
|
15
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
16
|
+
}
|
|
17
|
+
declare global {
|
|
18
|
+
interface HTMLElementTagNameMap {
|
|
19
|
+
'eui-wc-input-text': EuiWcInputText;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=eui-wc-input-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-input-text.d.ts","sourceRoot":"","sources":["../../src/eui-input-text/eui-wc-input-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAGrD,gEAAgE;AAChE,qBACa,cAAe,SAAQ,UAAU;IAC1C,OAAgB,MAAM,0BAepB;IAEU,KAAK,SAAM;IACX,WAAW,SAAM;IACjB,IAAI,SAAU;IAC2C,SAAS,UAAS;IAC3C,QAAQ,UAAS;IACS,UAAU,UAAS;IACjC,WAAW,UAAS;IACvC,OAAO,SAAuB;IAEnE,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,aAAa;IAEZ,MAAM;CAGlB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAAG,mBAAmB,EAAE,cAAc,CAAC;KAAE;CAC3E"}
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
/** `EuiWcInputText` — Lit WC projection of `eui-input-text`. */
|
|
10
|
+
let EuiWcInputText = class EuiWcInputText extends LitElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.value = '';
|
|
14
|
+
this.placeholder = '';
|
|
15
|
+
this.type = 'text';
|
|
16
|
+
this.isInvalid = false;
|
|
17
|
+
this.disabled = false;
|
|
18
|
+
this.isReadonly = false;
|
|
19
|
+
this.isClearable = false;
|
|
20
|
+
this.e2eAttr = 'eui-wc-input-text';
|
|
21
|
+
}
|
|
22
|
+
static { this.styles = css `
|
|
23
|
+
:host { display: inline-flex; width: 100%; }
|
|
24
|
+
.eui-input-text {
|
|
25
|
+
background-color: var(--eui-c-surface-container);
|
|
26
|
+
border: 1px solid var(--eui-c-secondary-border);
|
|
27
|
+
border-radius: var(--eui-br-s);
|
|
28
|
+
color: var(--eui-c-text);
|
|
29
|
+
font: var(--eui-f-m);
|
|
30
|
+
padding: var(--eui-s-xs) var(--eui-s-m);
|
|
31
|
+
width: 100%;
|
|
32
|
+
}
|
|
33
|
+
.eui-input-text:focus { border-color: var(--eui-c-primary); outline: none; box-shadow: 0 0 0 2px var(--eui-c-primary-surface-light); }
|
|
34
|
+
:host([is-invalid]) .eui-input-text { border-color: var(--eui-c-danger); }
|
|
35
|
+
:host([disabled]) .eui-input-text { opacity: var(--eui-o-50); cursor: not-allowed; }
|
|
36
|
+
:host([is-readonly]) .eui-input-text { background: var(--eui-c-surface-page); }
|
|
37
|
+
`; }
|
|
38
|
+
_handleInput(e) { this.value = e.target.value; this.dispatchEvent(new CustomEvent('eui-input', { detail: this.value, bubbles: true, composed: true })); }
|
|
39
|
+
_handleChange(e) { this.dispatchEvent(new CustomEvent('eui-change', { detail: e.target.value, bubbles: true, composed: true })); }
|
|
40
|
+
render() {
|
|
41
|
+
return html `<input class="eui-input-text" type=${this.type} .value=${this.value} placeholder=${this.placeholder} ?disabled=${this.disabled} ?readonly=${this.isReadonly} aria-invalid=${this.isInvalid ? 'true' : nothing} @input=${this._handleInput} @change=${this._handleChange} />`;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
__decorate([
|
|
45
|
+
property()
|
|
46
|
+
], EuiWcInputText.prototype, "value", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
property()
|
|
49
|
+
], EuiWcInputText.prototype, "placeholder", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
property()
|
|
52
|
+
], EuiWcInputText.prototype, "type", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
property({ attribute: 'is-invalid', type: Boolean, reflect: true })
|
|
55
|
+
], EuiWcInputText.prototype, "isInvalid", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
property({ type: Boolean, reflect: true })
|
|
58
|
+
], EuiWcInputText.prototype, "disabled", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
property({ attribute: 'is-readonly', type: Boolean, reflect: true })
|
|
61
|
+
], EuiWcInputText.prototype, "isReadonly", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
property({ attribute: 'is-clearable', type: Boolean })
|
|
64
|
+
], EuiWcInputText.prototype, "isClearable", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
property({ attribute: 'data-e2e' })
|
|
67
|
+
], EuiWcInputText.prototype, "e2eAttr", void 0);
|
|
68
|
+
EuiWcInputText = __decorate([
|
|
69
|
+
customElement('eui-wc-input-text')
|
|
70
|
+
], EuiWcInputText);
|
|
71
|
+
export { EuiWcInputText };
|
|
72
|
+
//# sourceMappingURL=eui-wc-input-text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-input-text.js","sourceRoot":"","sources":["../../src/eui-input-text/eui-wc-input-text.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;AAE5D,gEAAgE;AAEzD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,UAAU;IAAvC;;QAkBS,UAAK,GAAG,EAAE,CAAC;QACX,gBAAW,GAAG,EAAE,CAAC;QACjB,SAAI,GAAG,MAAM,CAAC;QAC2C,cAAS,GAAG,KAAK,CAAC;QAC3C,aAAQ,GAAG,KAAK,CAAC;QACS,eAAU,GAAG,KAAK,CAAC;QACjC,gBAAW,GAAG,KAAK,CAAC;QACvC,YAAO,GAAG,mBAAmB,CAAC;IAQvE,CAAC;aAhCmB,WAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;KAe3B,AAfqB,CAepB;IAWM,YAAY,CAAC,CAAQ,IAAI,IAAI,CAAC,KAAK,GAAI,CAAC,CAAC,MAA2B,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACtL,aAAa,CAAC,CAAQ,IAAI,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,YAAY,EAAE,EAAE,MAAM,EAAG,CAAC,CAAC,MAA2B,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAE9J,MAAM;QACX,OAAO,IAAI,CAAA,sCAAsC,IAAI,CAAC,IAAI,WAAW,IAAI,CAAC,KAAK,gBAAgB,IAAI,CAAC,WAAW,cAAc,IAAI,CAAC,QAAQ,cAAc,IAAI,CAAC,UAAU,iBAAiB,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,WAAW,IAAI,CAAC,YAAY,YAAY,IAAI,CAAC,aAAa,KAAK,CAAC;IAC7R,CAAC;;AAdW;IAAX,QAAQ,EAAE;6CAAY;AACX;IAAX,QAAQ,EAAE;mDAAkB;AACjB;IAAX,QAAQ,EAAE;4CAAe;AAC2C;IAApE,QAAQ,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDAAmB;AAC3C;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAAkB;AACS;IAArE,QAAQ,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAAoB;AACjC;IAAvD,QAAQ,CAAC,EAAE,SAAS,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;mDAAqB;AACvC;IAApC,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;+CAA+B;AAzB1D,cAAc;IAD1B,aAAa,CAAC,mBAAmB,CAAC;GACtB,cAAc,CAiC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eui-input-text/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-input-text/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export type EuiWcLabelColor = 'primary' | 'neutral' | 'info' | 'success' | 'warning' | 'critical';
|
|
3
|
+
export type EuiWcLabelSize = 's' | 'm' | 'l';
|
|
4
|
+
/**
|
|
5
|
+
* `EuiWcLabel` — Lit Web Component projection of `eui-label`.
|
|
6
|
+
*
|
|
7
|
+
* Versatile textual label/sublabel with color + size variants and required/readonly/sublabel states.
|
|
8
|
+
* CSS custom properties pierce the Shadow DOM from `@eui/styles`.
|
|
9
|
+
*
|
|
10
|
+
* Usage: `<eui-wc-label color="primary" size="m">Label text</eui-wc-label>`
|
|
11
|
+
*/
|
|
12
|
+
export declare class EuiWcLabel extends LitElement {
|
|
13
|
+
static styles: import("lit").CSSResult;
|
|
14
|
+
/** Color variant. */
|
|
15
|
+
color?: EuiWcLabelColor;
|
|
16
|
+
/** Size variant. @default 'm' */
|
|
17
|
+
size: EuiWcLabelSize;
|
|
18
|
+
/** Shows a required asterisk (*) after the label. @default false */
|
|
19
|
+
isRequired: boolean;
|
|
20
|
+
/** Readonly visual state. @default false */
|
|
21
|
+
isReadonly: boolean;
|
|
22
|
+
/** Sublabel style — smaller, lighter, block. @default false */
|
|
23
|
+
isSublabel: boolean;
|
|
24
|
+
/** Disabled visual state. @default false */
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
/** `data-e2e` attribute. */
|
|
27
|
+
e2eAttr: string;
|
|
28
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
29
|
+
}
|
|
30
|
+
declare global {
|
|
31
|
+
interface HTMLElementTagNameMap {
|
|
32
|
+
'eui-wc-label': EuiWcLabel;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=eui-wc-label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-label.d.ts","sourceRoot":"","sources":["../../src/eui-label/eui-wc-label.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAClG,MAAM,MAAM,cAAc,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE7C;;;;;;;GAOG;AACH,qBACa,UAAW,SAAQ,UAAU;IACtC,OAAgB,MAAM,0BAmCpB;IAEF,qBAAqB;IACQ,KAAK,CAAC,EAAE,eAAe,CAAC;IACrD,iCAAiC;IACJ,IAAI,EAAE,cAAc,CAAO;IACxD,oEAAoE;IACE,UAAU,UAAS;IACzF,4CAA4C;IAC0B,UAAU,UAAS;IACzF,+DAA+D;IACO,UAAU,UAAS;IACzF,4CAA4C;IACA,QAAQ,UAAS;IAC7D,4BAA4B;IACS,OAAO,SAAkB;IAErD,MAAM;CAGlB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,cAAc,EAAE,UAAU,CAAC;KAC9B;CACJ"}
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
* `EuiWcLabel` — Lit Web Component projection of `eui-label`.
|
|
11
|
+
*
|
|
12
|
+
* Versatile textual label/sublabel with color + size variants and required/readonly/sublabel states.
|
|
13
|
+
* CSS custom properties pierce the Shadow DOM from `@eui/styles`.
|
|
14
|
+
*
|
|
15
|
+
* Usage: `<eui-wc-label color="primary" size="m">Label text</eui-wc-label>`
|
|
16
|
+
*/
|
|
17
|
+
let EuiWcLabel = class EuiWcLabel extends LitElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
/** Size variant. @default 'm' */
|
|
21
|
+
this.size = 'm';
|
|
22
|
+
/** Shows a required asterisk (*) after the label. @default false */
|
|
23
|
+
this.isRequired = false;
|
|
24
|
+
/** Readonly visual state. @default false */
|
|
25
|
+
this.isReadonly = false;
|
|
26
|
+
/** Sublabel style — smaller, lighter, block. @default false */
|
|
27
|
+
this.isSublabel = false;
|
|
28
|
+
/** Disabled visual state. @default false */
|
|
29
|
+
this.disabled = false;
|
|
30
|
+
/** `data-e2e` attribute. */
|
|
31
|
+
this.e2eAttr = 'eui-wc-label';
|
|
32
|
+
}
|
|
33
|
+
static { this.styles = css `
|
|
34
|
+
:host {
|
|
35
|
+
display: inline-block;
|
|
36
|
+
font: var(--eui-f-m);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host([is-sublabel]) {
|
|
40
|
+
color: var(--eui-c-text-light);
|
|
41
|
+
display: block;
|
|
42
|
+
font: var(--eui-f-m);
|
|
43
|
+
margin-bottom: var(--eui-s-3xs);
|
|
44
|
+
margin-top: var(--eui-s-3xs);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host([color='primary']) { color: var(--eui-c-primary); }
|
|
48
|
+
:host([color='neutral']) { color: var(--eui-c-secondary); }
|
|
49
|
+
:host([color='info']) { color: var(--eui-c-info); }
|
|
50
|
+
:host([color='success']) { color: var(--eui-c-success); }
|
|
51
|
+
:host([color='warning']) { color: var(--eui-c-warning); }
|
|
52
|
+
:host([color='critical']){ color: var(--eui-c-danger); }
|
|
53
|
+
|
|
54
|
+
:host([size='s']) { font: var(--eui-f-s); }
|
|
55
|
+
:host([size='m']) { font: var(--eui-f-m); }
|
|
56
|
+
:host([size='l']) { font: var(--eui-f-l); }
|
|
57
|
+
|
|
58
|
+
:host([is-required])::after {
|
|
59
|
+
color: var(--eui-c-danger);
|
|
60
|
+
content: '*';
|
|
61
|
+
line-height: 1;
|
|
62
|
+
padding-left: var(--eui-s-3xs);
|
|
63
|
+
font: var(--eui-f-m-semi-bold);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:host([disabled]) { color: var(--eui-c-disabled); }
|
|
67
|
+
:host([is-readonly]) { color: var(--eui-c-readonly); }
|
|
68
|
+
`; }
|
|
69
|
+
render() {
|
|
70
|
+
return html `<slot></slot>`;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
__decorate([
|
|
74
|
+
property({ reflect: true })
|
|
75
|
+
], EuiWcLabel.prototype, "color", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
property({ reflect: true })
|
|
78
|
+
], EuiWcLabel.prototype, "size", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
property({ attribute: 'is-required', type: Boolean, reflect: true })
|
|
81
|
+
], EuiWcLabel.prototype, "isRequired", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
property({ attribute: 'is-readonly', type: Boolean, reflect: true })
|
|
84
|
+
], EuiWcLabel.prototype, "isReadonly", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
property({ attribute: 'is-sublabel', type: Boolean, reflect: true })
|
|
87
|
+
], EuiWcLabel.prototype, "isSublabel", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
property({ type: Boolean, reflect: true })
|
|
90
|
+
], EuiWcLabel.prototype, "disabled", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
property({ attribute: 'data-e2e' })
|
|
93
|
+
], EuiWcLabel.prototype, "e2eAttr", void 0);
|
|
94
|
+
EuiWcLabel = __decorate([
|
|
95
|
+
customElement('eui-wc-label')
|
|
96
|
+
], EuiWcLabel);
|
|
97
|
+
export { EuiWcLabel };
|
|
98
|
+
//# sourceMappingURL=eui-wc-label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-label.js","sourceRoot":"","sources":["../../src/eui-label/eui-wc-label.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;AAK5D;;;;;;;GAOG;AAEI,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,UAAU;IAAnC;;QAwCH,iCAAiC;QACJ,SAAI,GAAmB,GAAG,CAAC;QACxD,oEAAoE;QACE,eAAU,GAAG,KAAK,CAAC;QACzF,4CAA4C;QAC0B,eAAU,GAAG,KAAK,CAAC;QACzF,+DAA+D;QACO,eAAU,GAAG,KAAK,CAAC;QACzF,4CAA4C;QACA,aAAQ,GAAG,KAAK,CAAC;QAC7D,4BAA4B;QACS,YAAO,GAAG,cAAc,CAAC;IAKlE,CAAC;aAvDmB,WAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmC3B,AAnCqB,CAmCpB;IAiBO,MAAM;QACX,OAAO,IAAI,CAAA,eAAe,CAAC;IAC/B,CAAC;;AAhB4B;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;yCAAyB;AAExB;IAA5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wCAA4B;AAEc;IAArE,QAAQ,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAAoB;AAEnB;IAArE,QAAQ,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAAoB;AAEnB;IAArE,QAAQ,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAAoB;AAE7C;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;4CAAkB;AAExB;IAApC,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;2CAA0B;AAnDrD,UAAU;IADtB,aAAa,CAAC,cAAc,CAAC;GACjB,UAAU,CAwDtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eui-label/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eui-label/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA6C,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export interface EuiWcLanguage {
|
|
3
|
+
code: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
/** `EuiWcLanguageSelector` — Lit WC projection of `eui-language-selector`. */
|
|
7
|
+
export declare class EuiWcLanguageSelector extends LitElement {
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
9
|
+
activeLanguage: string;
|
|
10
|
+
languages: EuiWcLanguage[];
|
|
11
|
+
e2eAttr: string;
|
|
12
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
13
|
+
}
|
|
14
|
+
declare global {
|
|
15
|
+
interface HTMLElementTagNameMap {
|
|
16
|
+
'eui-wc-language-selector': EuiWcLanguageSelector;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=eui-wc-language-selector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-language-selector.d.ts","sourceRoot":"","sources":["../../src/eui-language-selector/eui-wc-language-selector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,MAAM,WAAW,aAAa;IAAG,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;CAAE;AAE/D,8EAA8E;AAC9E,qBACa,qBAAsB,SAAQ,UAAU;IACjD,OAAgB,MAAM,0BAGpB;IAE0C,cAAc,SAAQ;IACvC,SAAS,EAAE,aAAa,EAAE,CAA2G;IAC3H,OAAO,SAA8B;IAEjE,MAAM;CAOlB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAAG,0BAA0B,EAAE,qBAAqB,CAAC;KAAE;CACzF"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
/** `EuiWcLanguageSelector` — Lit WC projection of `eui-language-selector`. */
|
|
10
|
+
let EuiWcLanguageSelector = class EuiWcLanguageSelector extends LitElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.activeLanguage = 'en';
|
|
14
|
+
this.languages = [{ code: 'en', label: 'English' }, { code: 'fr', label: 'Français' }, { code: 'de', label: 'Deutsch' }];
|
|
15
|
+
this.e2eAttr = 'eui-wc-language-selector';
|
|
16
|
+
}
|
|
17
|
+
static { this.styles = css `
|
|
18
|
+
:host { display: inline-block; }
|
|
19
|
+
select { border: 1px solid var(--eui-c-border); border-radius: var(--eui-br-s); font: var(--eui-f-m); padding: var(--eui-s-3xs) var(--eui-s-s); background: var(--eui-c-surface-container); cursor: pointer; }
|
|
20
|
+
`; }
|
|
21
|
+
render() {
|
|
22
|
+
return html `
|
|
23
|
+
<select @change=${(e) => { this.activeLanguage = e.target.value; this.dispatchEvent(new CustomEvent('eui-language-change', { detail: this.activeLanguage, bubbles: true, composed: true })); }} aria-label="Select language">
|
|
24
|
+
${this.languages.map((l) => html `<option value=${l.code} ?selected=${l.code === this.activeLanguage}>${l.label}</option>`)}
|
|
25
|
+
</select>
|
|
26
|
+
`;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
__decorate([
|
|
30
|
+
property({ attribute: 'active-language' })
|
|
31
|
+
], EuiWcLanguageSelector.prototype, "activeLanguage", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
property({ type: Array })
|
|
34
|
+
], EuiWcLanguageSelector.prototype, "languages", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
property({ attribute: 'data-e2e' })
|
|
37
|
+
], EuiWcLanguageSelector.prototype, "e2eAttr", void 0);
|
|
38
|
+
EuiWcLanguageSelector = __decorate([
|
|
39
|
+
customElement('eui-wc-language-selector')
|
|
40
|
+
], EuiWcLanguageSelector);
|
|
41
|
+
export { EuiWcLanguageSelector };
|
|
42
|
+
//# sourceMappingURL=eui-wc-language-selector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-language-selector.js","sourceRoot":"","sources":["../../src/eui-language-selector/eui-wc-language-selector.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,8EAA8E;AAEvE,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,UAAU;IAA9C;;QAMyC,mBAAc,GAAG,IAAI,CAAC;QACvC,cAAS,GAAoB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QAC3H,YAAO,GAAG,0BAA0B,CAAC;IAS9E,CAAC;aAhBmB,WAAM,GAAG,GAAG,CAAA;;;KAG3B,AAHqB,CAGpB;IAMO,MAAM;QACX,OAAO,IAAI,CAAA;8BACW,CAAC,CAAQ,EAAE,EAAE,GAAG,IAAI,CAAC,cAAc,GAAI,CAAC,CAAC,MAA4B,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,qBAAqB,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;kBACtN,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAA,iBAAiB,CAAC,CAAC,IAAI,cAAc,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,cAAc,IAAI,CAAC,CAAC,KAAK,WAAW,CAAC;;SAEjI,CAAC;IACN,CAAC;;AAV2C;IAA3C,QAAQ,CAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;6DAAuB;AACvC;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;wDAAsI;AAC3H;IAApC,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;sDAAsC;AARjE,qBAAqB;IADjC,aAAa,CAAC,0BAA0B,CAAC;GAC7B,qBAAqB,CAiBjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eui-language-selector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,KAAK,aAAa,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eui-language-selector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAsB,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export type EuiWcListItemColor = 'primary' | 'neutral' | 'info' | 'success' | 'warning' | 'critical';
|
|
3
|
+
/** `EuiWcList` — Lit WC projection of `eui-list`. */
|
|
4
|
+
export declare class EuiWcList extends LitElement {
|
|
5
|
+
static styles: import("lit").CSSResult;
|
|
6
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
7
|
+
}
|
|
8
|
+
/** `EuiWcListItem` — individual list row. */
|
|
9
|
+
export declare class EuiWcListItem extends LitElement {
|
|
10
|
+
static styles: import("lit").CSSResult;
|
|
11
|
+
color?: EuiWcListItemColor;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
15
|
+
}
|
|
16
|
+
declare global {
|
|
17
|
+
interface HTMLElementTagNameMap {
|
|
18
|
+
'eui-wc-list': EuiWcList;
|
|
19
|
+
'eui-wc-list-item': EuiWcListItem;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=eui-wc-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eui-wc-list.d.ts","sourceRoot":"","sources":["../../src/eui-list/eui-wc-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAErG,qDAAqD;AACrD,qBACa,SAAU,SAAQ,UAAU;IACrC,OAAgB,MAAM,0BAGpB;IACO,MAAM;CAClB;AAED,6CAA6C;AAC7C,qBACa,aAAc,SAAQ,UAAU;IACzC,OAAgB,MAAM,0BAmBpB;IAE2B,KAAK,CAAC,EAAE,kBAAkB,CAAC;IACY,QAAQ,UAAS;IACzC,QAAQ,UAAS;IAEpD,MAAM;CAYlB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,aAAa,EAAE,SAAS,CAAC;QACzB,kBAAkB,EAAE,aAAa,CAAC;KACrC;CACJ"}
|