@ember-eui/core 8.0.0-beta.3 → 8.0.0-beta.31
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/declarations/components/eui-accordion.d.ts +1 -1
- package/declarations/components/eui-accordion.d.ts.map +1 -1
- package/declarations/components/eui-auto-sizer.d.ts.map +1 -1
- package/declarations/components/eui-avatar.d.ts +2 -2
- package/declarations/components/eui-avatar.d.ts.map +1 -1
- package/declarations/components/eui-badge-group.d.ts +1 -1
- package/declarations/components/eui-badge-group.d.ts.map +1 -1
- package/declarations/components/eui-badge.d.ts +3 -2
- package/declarations/components/eui-badge.d.ts.map +1 -1
- package/declarations/components/eui-beta-badge.d.ts +2 -2
- package/declarations/components/eui-beta-badge.d.ts.map +1 -1
- package/declarations/components/eui-bottom-bar.d.ts.map +1 -1
- package/declarations/components/eui-breadcrumbs.d.ts.map +1 -1
- package/declarations/components/eui-button-content.d.ts +1 -1
- package/declarations/components/eui-button-content.d.ts.map +1 -1
- package/declarations/components/eui-button-empty.d.ts +2 -2
- package/declarations/components/eui-button-empty.d.ts.map +1 -1
- package/declarations/components/eui-button-group-button.d.ts +1 -1
- package/declarations/components/eui-button-group-button.d.ts.map +1 -1
- package/declarations/components/eui-button-group.d.ts +1 -1
- package/declarations/components/eui-button-group.d.ts.map +1 -1
- package/declarations/components/eui-button-icon.d.ts +2 -2
- package/declarations/components/eui-button-icon.d.ts.map +1 -1
- package/declarations/components/eui-button.d.ts +1 -1
- package/declarations/components/eui-button.d.ts.map +1 -1
- package/declarations/components/eui-call-out.d.ts +2 -2
- package/declarations/components/eui-call-out.d.ts.map +1 -1
- package/declarations/components/eui-card-select.d.ts +1 -1
- package/declarations/components/eui-card-select.d.ts.map +1 -1
- package/declarations/components/eui-card.d.ts +4 -4
- package/declarations/components/eui-card.d.ts.map +1 -1
- package/declarations/components/eui-checkable-card.d.ts +2 -2
- package/declarations/components/eui-checkable-card.d.ts.map +1 -1
- package/declarations/components/eui-checkbox-group.d.ts +3 -3
- package/declarations/components/eui-checkbox-group.d.ts.map +1 -1
- package/declarations/components/eui-code-block/controls.d.ts.map +1 -1
- package/declarations/components/eui-code-block/full-screen-display.d.ts.map +1 -1
- package/declarations/components/eui-code-block/virtualized.d.ts.map +1 -1
- package/declarations/components/eui-code-block.d.ts.map +1 -1
- package/declarations/components/eui-code.d.ts.map +1 -1
- package/declarations/components/eui-collapsible-nav-group.d.ts +3 -3
- package/declarations/components/eui-collapsible-nav-group.d.ts.map +1 -1
- package/declarations/components/eui-collapsible-nav.d.ts +1 -1
- package/declarations/components/eui-collapsible-nav.d.ts.map +1 -1
- package/declarations/components/eui-combo-box/create-option.d.ts.map +1 -1
- package/declarations/components/eui-combo-box/no-matches-message.d.ts +1 -1
- package/declarations/components/eui-combo-box/no-matches-message.d.ts.map +1 -1
- package/declarations/components/eui-combo-box/options.d.ts +1 -1
- package/declarations/components/eui-combo-box/options.d.ts.map +1 -1
- package/declarations/components/eui-combo-box/trigger/input.d.ts.map +1 -1
- package/declarations/components/eui-combo-box/trigger.d.ts.map +1 -1
- package/declarations/components/eui-combo-box-pill.d.ts +1 -1
- package/declarations/components/eui-combo-box-pill.d.ts.map +1 -1
- package/declarations/components/eui-combo-box.d.ts +35 -8
- package/declarations/components/eui-combo-box.d.ts.map +1 -1
- package/declarations/components/eui-comment-timeline.d.ts +1 -1
- package/declarations/components/eui-comment-timeline.d.ts.map +1 -1
- package/declarations/components/eui-comment.d.ts +1 -1
- package/declarations/components/eui-comment.d.ts.map +1 -1
- package/declarations/components/eui-confirm-modal.d.ts +1 -1
- package/declarations/components/eui-confirm-modal.d.ts.map +1 -1
- package/declarations/components/eui-context-menu-item.d.ts +2 -2
- package/declarations/components/eui-context-menu-item.d.ts.map +1 -1
- package/declarations/components/eui-copy.d.ts +1 -1
- package/declarations/components/eui-copy.d.ts.map +1 -1
- package/declarations/components/eui-described-form-group.d.ts +3 -3
- package/declarations/components/eui-described-form-group.d.ts.map +1 -1
- package/declarations/components/eui-description-list.d.ts +1 -1
- package/declarations/components/eui-description-list.d.ts.map +1 -1
- package/declarations/components/eui-dual-range.d.ts +8 -9
- package/declarations/components/eui-dual-range.d.ts.map +1 -1
- package/declarations/components/eui-empty-prompt.d.ts +4 -4
- package/declarations/components/eui-empty-prompt.d.ts.map +1 -1
- package/declarations/components/eui-field-number.d.ts +2 -2
- package/declarations/components/eui-field-number.d.ts.map +1 -1
- package/declarations/components/eui-field-password.d.ts +2 -1
- package/declarations/components/eui-field-password.d.ts.map +1 -1
- package/declarations/components/eui-field-search.d.ts +1 -1
- package/declarations/components/eui-field-search.d.ts.map +1 -1
- package/declarations/components/eui-field-text.d.ts +1 -1
- package/declarations/components/eui-field-text.d.ts.map +1 -1
- package/declarations/components/eui-file-picker.d.ts +1 -1
- package/declarations/components/eui-file-picker.d.ts.map +1 -1
- package/declarations/components/eui-flex-grid.d.ts +1 -1
- package/declarations/components/eui-flex-grid.d.ts.map +1 -1
- package/declarations/components/eui-flex-group.d.ts +1 -1
- package/declarations/components/eui-flex-group.d.ts.map +1 -1
- package/declarations/components/eui-flex-item.d.ts +1 -1
- package/declarations/components/eui-flex-item.d.ts.map +1 -1
- package/declarations/components/eui-flyout-body.d.ts.map +1 -1
- package/declarations/components/eui-flyout-header.d.ts.map +1 -1
- package/declarations/components/eui-flyout.d.ts.map +1 -1
- package/declarations/components/eui-form-control-layout-clear-button.d.ts +1 -1
- package/declarations/components/eui-form-control-layout-clear-button.d.ts.map +1 -1
- package/declarations/components/eui-form-control-layout-custom-icon.d.ts +1 -1
- package/declarations/components/eui-form-control-layout-custom-icon.d.ts.map +1 -1
- package/declarations/components/eui-form-control-layout-delimited.d.ts +1 -1
- package/declarations/components/eui-form-control-layout-delimited.d.ts.map +1 -1
- package/declarations/components/eui-form-control-layout-icons.d.ts +1 -1
- package/declarations/components/eui-form-control-layout-icons.d.ts.map +1 -1
- package/declarations/components/eui-form-control-layout.d.ts +1 -1
- package/declarations/components/eui-form-control-layout.d.ts.map +1 -1
- package/declarations/components/eui-form-fieldset.d.ts +1 -1
- package/declarations/components/eui-form-fieldset.d.ts.map +1 -1
- package/declarations/components/eui-form-label.d.ts.map +1 -1
- package/declarations/components/eui-form-legend.d.ts.map +1 -1
- package/declarations/components/eui-form-row.d.ts +3 -2
- package/declarations/components/eui-form-row.d.ts.map +1 -1
- package/declarations/components/eui-form.d.ts.map +1 -1
- package/declarations/components/eui-global-toast-list.d.ts +2 -2
- package/declarations/components/eui-global-toast-list.d.ts.map +1 -1
- package/declarations/components/eui-header-alert.d.ts.map +1 -1
- package/declarations/components/eui-header-breadcrumbs.d.ts +1 -1
- package/declarations/components/eui-header-breadcrumbs.d.ts.map +1 -1
- package/declarations/components/eui-header-link.d.ts +1 -1
- package/declarations/components/eui-header-link.d.ts.map +1 -1
- package/declarations/components/eui-header-links.d.ts +3 -3
- package/declarations/components/eui-header-links.d.ts.map +1 -1
- package/declarations/components/eui-header-logo.d.ts +1 -1
- package/declarations/components/eui-header-logo.d.ts.map +1 -1
- package/declarations/components/eui-header-section-item-button.d.ts.map +1 -1
- package/declarations/components/eui-header-section-item.d.ts +1 -1
- package/declarations/components/eui-header-section-item.d.ts.map +1 -1
- package/declarations/components/eui-header-section.d.ts +1 -1
- package/declarations/components/eui-header-section.d.ts.map +1 -1
- package/declarations/components/eui-header.d.ts +2 -2
- package/declarations/components/eui-header.d.ts.map +1 -1
- package/declarations/components/eui-health.d.ts +1 -1
- package/declarations/components/eui-health.d.ts.map +1 -1
- package/declarations/components/eui-hide-for.d.ts.map +1 -1
- package/declarations/components/eui-horizontal-rule.d.ts +1 -1
- package/declarations/components/eui-horizontal-rule.d.ts.map +1 -1
- package/declarations/components/eui-i18n.d.ts +1 -1
- package/declarations/components/eui-i18n.d.ts.map +1 -1
- package/declarations/components/eui-icon-tip.d.ts +2 -2
- package/declarations/components/eui-icon-tip.d.ts.map +1 -1
- package/declarations/components/eui-icon.d.ts +2 -2
- package/declarations/components/eui-icon.d.ts.map +1 -1
- package/declarations/components/eui-image.d.ts.map +1 -1
- package/declarations/components/eui-inner-text.d.ts.map +1 -1
- package/declarations/components/eui-input-popover.d.ts +1 -1
- package/declarations/components/eui-input-popover.d.ts.map +1 -1
- package/declarations/components/eui-key-pad-menu-item.d.ts.map +1 -1
- package/declarations/components/eui-link.d.ts.map +1 -1
- package/declarations/components/eui-list-group-item.d.ts +1 -1
- package/declarations/components/eui-list-group-item.d.ts.map +1 -1
- package/declarations/components/eui-list-group.d.ts.map +1 -1
- package/declarations/components/eui-loading-content.d.ts.map +1 -1
- package/declarations/components/eui-loading-logo.d.ts.map +1 -1
- package/declarations/components/eui-loading-spinner.d.ts +1 -1
- package/declarations/components/eui-loading-spinner.d.ts.map +1 -1
- package/declarations/components/eui-markdown-editor-drop-zone.d.ts +1 -1
- package/declarations/components/eui-markdown-editor-drop-zone.d.ts.map +1 -1
- package/declarations/components/eui-markdown-editor-text-area.d.ts.map +1 -1
- package/declarations/components/eui-markdown-editor-toolbar.d.ts.map +1 -1
- package/declarations/components/eui-markdown-editor.d.ts +6 -11
- package/declarations/components/eui-markdown-editor.d.ts.map +1 -1
- package/declarations/components/eui-markdown-format/markdown-checkbox.d.ts +3 -3
- package/declarations/components/eui-markdown-format/markdown-checkbox.d.ts.map +1 -1
- package/declarations/components/eui-markdown-format/markdown-code-block.d.ts +1 -1
- package/declarations/components/eui-markdown-format/markdown-code-block.d.ts.map +1 -1
- package/declarations/components/eui-markdown-format/markdown-code.d.ts +1 -1
- package/declarations/components/eui-markdown-format/markdown-code.d.ts.map +1 -1
- package/declarations/components/eui-markdown-format/markdown-tooltip.d.ts.map +1 -1
- package/declarations/components/eui-markdown-format.d.ts +1 -1
- package/declarations/components/eui-markdown-format.d.ts.map +1 -1
- package/declarations/components/eui-modal-header-title.d.ts.map +1 -1
- package/declarations/components/eui-modal-header.d.ts.map +1 -1
- package/declarations/components/eui-modal.d.ts.map +1 -1
- package/declarations/components/eui-notification-badge.d.ts +1 -1
- package/declarations/components/eui-notification-badge.d.ts.map +1 -1
- package/declarations/components/eui-notification-event-messages.d.ts.map +1 -1
- package/declarations/components/eui-notification-event-meta.d.ts +2 -2
- package/declarations/components/eui-notification-event-meta.d.ts.map +1 -1
- package/declarations/components/eui-notification-event-read-button.d.ts +1 -1
- package/declarations/components/eui-notification-event-read-button.d.ts.map +1 -1
- package/declarations/components/eui-notification-event-read-icon.d.ts +1 -1
- package/declarations/components/eui-notification-event-read-icon.d.ts.map +1 -1
- package/declarations/components/eui-notification-event.d.ts +3 -3
- package/declarations/components/eui-notification-event.d.ts.map +1 -1
- package/declarations/components/eui-overlay-mask.d.ts.map +1 -1
- package/declarations/components/eui-page-body.d.ts +1 -1
- package/declarations/components/eui-page-body.d.ts.map +1 -1
- package/declarations/components/eui-page-content-body.d.ts +1 -1
- package/declarations/components/eui-page-content-body.d.ts.map +1 -1
- package/declarations/components/eui-page-content.d.ts +1 -1
- package/declarations/components/eui-page-content.d.ts.map +1 -1
- package/declarations/components/eui-page-header-content.d.ts +4 -4
- package/declarations/components/eui-page-header-content.d.ts.map +1 -1
- package/declarations/components/eui-page-header.d.ts +2 -2
- package/declarations/components/eui-page-header.d.ts.map +1 -1
- package/declarations/components/eui-page-side-bar.d.ts +1 -1
- package/declarations/components/eui-page-side-bar.d.ts.map +1 -1
- package/declarations/components/eui-page-template.d.ts +6 -6
- package/declarations/components/eui-page-template.d.ts.map +1 -1
- package/declarations/components/eui-page.d.ts.map +1 -1
- package/declarations/components/eui-pagination/button-wrapper.d.ts.map +1 -1
- package/declarations/components/eui-pagination/next-button.d.ts +2 -2
- package/declarations/components/eui-pagination/next-button.d.ts.map +1 -1
- package/declarations/components/eui-pagination/previous-button.d.ts +2 -2
- package/declarations/components/eui-pagination/previous-button.d.ts.map +1 -1
- package/declarations/components/eui-pagination-button.d.ts +2 -2
- package/declarations/components/eui-pagination-button.d.ts.map +1 -1
- package/declarations/components/eui-pagination.d.ts.map +1 -1
- package/declarations/components/eui-panel.d.ts +1 -1
- package/declarations/components/eui-panel.d.ts.map +1 -1
- package/declarations/components/eui-popover-footer.d.ts +1 -1
- package/declarations/components/eui-popover-footer.d.ts.map +1 -1
- package/declarations/components/eui-popover-title.d.ts +1 -1
- package/declarations/components/eui-popover-title.d.ts.map +1 -1
- package/declarations/components/eui-popover.d.ts +3 -3
- package/declarations/components/eui-popover.d.ts.map +1 -1
- package/declarations/components/eui-portal.d.ts.map +1 -1
- package/declarations/components/eui-progress.d.ts +1 -1
- package/declarations/components/eui-progress.d.ts.map +1 -1
- package/declarations/components/eui-radio-group.d.ts.map +1 -1
- package/declarations/components/eui-radio.d.ts.map +1 -1
- package/declarations/components/eui-range-highlight.d.ts.map +1 -1
- package/declarations/components/eui-range-input.d.ts +2 -2
- package/declarations/components/eui-range-input.d.ts.map +1 -1
- package/declarations/components/eui-range-label.d.ts.map +1 -1
- package/declarations/components/eui-range-levels.d.ts.map +1 -1
- package/declarations/components/eui-range-slider.d.ts.map +1 -1
- package/declarations/components/eui-range-ticks.d.ts.map +1 -1
- package/declarations/components/eui-range-tooltip.d.ts.map +1 -1
- package/declarations/components/eui-range-track.d.ts +2 -2
- package/declarations/components/eui-range-track.d.ts.map +1 -1
- package/declarations/components/eui-range.d.ts +4 -2
- package/declarations/components/eui-range.d.ts.map +1 -1
- package/declarations/components/eui-select.d.ts +1 -1
- package/declarations/components/eui-select.d.ts.map +1 -1
- package/declarations/components/eui-selectable-list-item.d.ts.map +1 -1
- package/declarations/components/eui-show-for.d.ts +1 -1
- package/declarations/components/eui-show-for.d.ts.map +1 -1
- package/declarations/components/eui-side-nav-item/button.d.ts.map +1 -1
- package/declarations/components/eui-side-nav-item.d.ts +1 -1
- package/declarations/components/eui-side-nav-item.d.ts.map +1 -1
- package/declarations/components/eui-side-nav.d.ts +1 -1
- package/declarations/components/eui-side-nav.d.ts.map +1 -1
- package/declarations/components/eui-spacer.d.ts +1 -1
- package/declarations/components/eui-spacer.d.ts.map +1 -1
- package/declarations/components/eui-split-panel/inner.d.ts +1 -1
- package/declarations/components/eui-split-panel/inner.d.ts.map +1 -1
- package/declarations/components/eui-split-panel/outer.d.ts +1 -1
- package/declarations/components/eui-split-panel/outer.d.ts.map +1 -1
- package/declarations/components/eui-stat/description.d.ts.map +1 -1
- package/declarations/components/eui-stat/title.d.ts +1 -1
- package/declarations/components/eui-stat/title.d.ts.map +1 -1
- package/declarations/components/eui-stat.d.ts +4 -3
- package/declarations/components/eui-stat.d.ts.map +1 -1
- package/declarations/components/eui-step-horizontal.d.ts +1 -1
- package/declarations/components/eui-step-horizontal.d.ts.map +1 -1
- package/declarations/components/eui-step-number.d.ts +2 -2
- package/declarations/components/eui-step-number.d.ts.map +1 -1
- package/declarations/components/eui-step.d.ts +1 -1
- package/declarations/components/eui-step.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/date-popover/absolute-tab.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/date-popover/datetime-picker.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/date-popover/eui-date-popover-button.d.ts +1 -1
- package/declarations/components/eui-super-date-picker/date-popover/eui-date-popover-button.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/date-popover/eui-date-popover-content.d.ts +5 -5
- package/declarations/components/eui-super-date-picker/date-popover/eui-date-popover-content.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/date-popover/now-tab.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/date-popover/relative-tab.d.ts +1 -1
- package/declarations/components/eui-super-date-picker/date-popover/relative-tab.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover/eui-commonly-used-time-ranges.d.ts +1 -1
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover/eui-commonly-used-time-ranges.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.d.ts +1 -1
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover/eui-recently-used.d.ts +1 -1
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover/eui-recently-used.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover.d.ts +3 -3
- package/declarations/components/eui-super-date-picker/eui-quick-select-popover.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/eui-super-update-button.d.ts +2 -2
- package/declarations/components/eui-super-date-picker/eui-super-update-button.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/utils/index.d.ts +1 -1
- package/declarations/components/eui-super-date-picker/utils/index.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/utils/pretty-duration.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/utils/quick-select.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker/utils/time-options.d.ts +1 -1
- package/declarations/components/eui-super-date-picker/utils/time-options.d.ts.map +1 -1
- package/declarations/components/eui-super-date-picker.d.ts +2 -2
- package/declarations/components/eui-super-date-picker.d.ts.map +1 -1
- package/declarations/components/eui-switch.d.ts +18 -20
- package/declarations/components/eui-switch.d.ts.map +1 -1
- package/declarations/components/eui-tabbed-content.d.ts +2 -2
- package/declarations/components/eui-tabbed-content.d.ts.map +1 -1
- package/declarations/components/eui-tabs.d.ts +1 -1
- package/declarations/components/eui-tabs.d.ts.map +1 -1
- package/declarations/components/eui-text-align.d.ts +0 -5
- package/declarations/components/eui-text-align.d.ts.map +1 -1
- package/declarations/components/eui-text-area.d.ts +1 -1
- package/declarations/components/eui-text-area.d.ts.map +1 -1
- package/declarations/components/eui-text-color.d.ts +0 -5
- package/declarations/components/eui-text-color.d.ts.map +1 -1
- package/declarations/components/eui-text.d.ts +3 -8
- package/declarations/components/eui-text.d.ts.map +1 -1
- package/declarations/components/eui-title.d.ts +2 -2
- package/declarations/components/eui-title.d.ts.map +1 -1
- package/declarations/components/eui-toast.d.ts.map +1 -1
- package/declarations/components/eui-tool-tip-popover.d.ts.map +1 -1
- package/declarations/components/eui-tool-tip.d.ts +1 -1
- package/declarations/components/eui-tool-tip.d.ts.map +1 -1
- package/declarations/components.d.ts +150 -0
- package/declarations/components.d.ts.map +1 -0
- package/declarations/helpers/eui-palette.d.ts.map +1 -1
- package/declarations/helpers/get-eui-config.d.ts.map +1 -1
- package/declarations/helpers/get-range-tick.d.ts +1 -1
- package/declarations/helpers/get-range-tick.d.ts.map +1 -1
- package/declarations/helpers/hex-to-rgb.d.ts.map +1 -1
- package/declarations/helpers/inline-styles.d.ts.map +1 -1
- package/declarations/helpers/is-color-dark.d.ts.map +1 -1
- package/declarations/helpers/is-item-open.d.ts.map +1 -1
- package/declarations/helpers/is-within-number.d.ts.map +1 -1
- package/declarations/helpers/merge.d.ts.map +1 -1
- package/declarations/helpers/to-initials.d.ts +1 -1
- package/declarations/helpers/to-initials.d.ts.map +1 -1
- package/declarations/helpers/use-state.d.ts.map +1 -1
- package/declarations/helpers.d.ts +9 -0
- package/declarations/helpers.d.ts.map +1 -0
- package/declarations/i18n/util.d.ts.map +1 -1
- package/declarations/modifiers/mutation-observer.d.ts.map +1 -1
- package/declarations/modifiers/open-collapsible-nav.d.ts.map +1 -1
- package/declarations/modifiers/outside-click-detector.d.ts.map +1 -1
- package/declarations/modifiers/resize-observer.d.ts +1 -1
- package/declarations/modifiers/resize-observer.d.ts.map +1 -1
- package/declarations/modifiers/use-is-within-breakpoints.d.ts.map +1 -1
- package/declarations/modifiers/validatable-control.d.ts.map +1 -1
- package/declarations/modifiers.d.ts +8 -0
- package/declarations/modifiers.d.ts.map +1 -0
- package/declarations/services/eui-config.d.ts +0 -1
- package/declarations/services/eui-config.d.ts.map +1 -1
- package/declarations/services/eui-i18n.d.ts.map +1 -1
- package/declarations/template-registry.d.ts +152 -149
- package/declarations/template-registry.d.ts.map +1 -1
- package/declarations/utils/breakpoint.d.ts.map +1 -1
- package/declarations/utils/code/utils.d.ts +1 -1
- package/declarations/utils/code/utils.d.ts.map +1 -1
- package/declarations/utils/color/color_palette.d.ts.map +1 -1
- package/declarations/utils/color/eui_palettes.d.ts.map +1 -1
- package/declarations/utils/color/index.d.ts +3 -3
- package/declarations/utils/color/index.d.ts.map +1 -1
- package/declarations/utils/copy-to-clipboard.d.ts.map +1 -1
- package/declarations/utils/css-mappings/eui-range-highlight.d.ts.map +1 -1
- package/declarations/utils/css-mappings/eui-range-levels.d.ts.map +1 -1
- package/declarations/utils/detect-element-resize.d.ts.map +1 -1
- package/declarations/utils/index.d.ts +1 -1
- package/declarations/utils/index.d.ts.map +1 -1
- package/declarations/utils/markdown/markdown-actions.d.ts.map +1 -1
- package/declarations/utils/markdown/markdown-types.d.ts +5 -5
- package/declarations/utils/markdown/markdown-types.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/markdown-add-components/index.d.ts +2 -2
- package/declarations/utils/markdown/plugins/markdown-add-components/index.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/markdown-add-components/processor.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/markdown-checkbox/parser.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/markdown-default-plugins/index.d.ts +2 -2
- package/declarations/utils/markdown/plugins/markdown-default-plugins/index.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/markdown-default-plugins/parsing-plugins.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/markdown-default-plugins/plugins.d.ts +1 -1
- package/declarations/utils/markdown/plugins/markdown-default-plugins/plugins.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/markdown-default-plugins/processing-plugins.d.ts +2 -2
- package/declarations/utils/markdown/plugins/markdown-default-plugins/processing-plugins.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/markdown-default-plugins/ui-plugins.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/markdown-tooltip/parser.d.ts.map +1 -1
- package/declarations/utils/markdown/plugins/to-dom.d.ts +1 -1
- package/declarations/utils/markdown/plugins/to-dom.d.ts.map +1 -1
- package/declarations/utils/markdown/remark/remark-prismjs.d.ts.map +1 -1
- package/declarations/utils/maybe-unwrap-proxy.d.ts.map +1 -1
- package/declarations/utils/number/number.d.ts.map +1 -1
- package/declarations/utils/popover/index.d.ts.map +1 -1
- package/declarations/utils/timer.d.ts.map +1 -1
- package/declarations/utils/transition.d.ts.map +1 -1
- package/dist/components/eui-accordion.js +2 -2
- package/dist/components/eui-accordion.js.map +1 -1
- package/dist/components/eui-auto-sizer.js +2 -2
- package/dist/components/eui-auto-sizer.js.map +1 -1
- package/dist/components/eui-avatar.js +5 -5
- package/dist/components/eui-avatar.js.map +1 -1
- package/dist/components/eui-badge-group.js +1 -1
- package/dist/components/eui-badge-group.js.map +1 -1
- package/dist/components/eui-badge.js +4 -2
- package/dist/components/eui-badge.js.map +1 -1
- package/dist/components/eui-beta-badge.js +2 -2
- package/dist/components/eui-beta-badge.js.map +1 -1
- package/dist/components/eui-bottom-bar.js +2 -2
- package/dist/components/eui-bottom-bar.js.map +1 -1
- package/dist/components/eui-breadcrumbs.js +15 -11
- package/dist/components/eui-breadcrumbs.js.map +1 -1
- package/dist/components/eui-button-content.js +3 -3
- package/dist/components/eui-button-content.js.map +1 -1
- package/dist/components/eui-button-empty.js +1 -1
- package/dist/components/eui-button-empty.js.map +1 -1
- package/dist/components/eui-button-group-button.js +1 -1
- package/dist/components/eui-button-group-button.js.map +1 -1
- package/dist/components/eui-button-group.js +2 -2
- package/dist/components/eui-button-group.js.map +1 -1
- package/dist/components/eui-button-icon.js +1 -1
- package/dist/components/eui-button-icon.js.map +1 -1
- package/dist/components/eui-button.js.map +1 -1
- package/dist/components/eui-call-out.js +3 -3
- package/dist/components/eui-call-out.js.map +1 -1
- package/dist/components/eui-card-select.js +2 -2
- package/dist/components/eui-card-select.js.map +1 -1
- package/dist/components/eui-card.js +2 -2
- package/dist/components/eui-card.js.map +1 -1
- package/dist/components/eui-checkable-card.js +3 -3
- package/dist/components/eui-checkable-card.js.map +1 -1
- package/dist/components/eui-checkbox-group.js +4 -4
- package/dist/components/eui-checkbox-group.js.map +1 -1
- package/dist/components/eui-checkbox.js +1 -1
- package/dist/components/eui-checkbox.js.map +1 -1
- package/dist/components/eui-code-block/controls.js +2 -2
- package/dist/components/eui-code-block/controls.js.map +1 -1
- package/dist/components/eui-code-block/full-screen-display.js +2 -2
- package/dist/components/eui-code-block/full-screen-display.js.map +1 -1
- package/dist/components/eui-code-block/virtualized.js +1 -1
- package/dist/components/eui-code-block/virtualized.js.map +1 -1
- package/dist/components/eui-code-block.js +13 -13
- package/dist/components/eui-code-block.js.map +1 -1
- package/dist/components/eui-code.js +6 -6
- package/dist/components/eui-code.js.map +1 -1
- package/dist/components/eui-collapsible-nav-group.js +1 -1
- package/dist/components/eui-collapsible-nav-group.js.map +1 -1
- package/dist/components/eui-collapsible-nav.js +2 -2
- package/dist/components/eui-collapsible-nav.js.map +1 -1
- package/dist/components/eui-combo-box/create-option.js +3 -3
- package/dist/components/eui-combo-box/create-option.js.map +1 -1
- package/dist/components/eui-combo-box/no-matches-message.js.map +1 -1
- package/dist/components/eui-combo-box/options.js +9 -7
- package/dist/components/eui-combo-box/options.js.map +1 -1
- package/dist/components/eui-combo-box/trigger/input.js +7 -6
- package/dist/components/eui-combo-box/trigger/input.js.map +1 -1
- package/dist/components/eui-combo-box/trigger.js +3 -3
- package/dist/components/eui-combo-box/trigger.js.map +1 -1
- package/dist/components/eui-combo-box-pill.js.map +1 -1
- package/dist/components/eui-combo-box.js +4 -1
- package/dist/components/eui-combo-box.js.map +1 -1
- package/dist/components/eui-comment-timeline.js +1 -1
- package/dist/components/eui-comment-timeline.js.map +1 -1
- package/dist/components/eui-comment.js +1 -1
- package/dist/components/eui-comment.js.map +1 -1
- package/dist/components/eui-confirm-modal.js +5 -5
- package/dist/components/eui-confirm-modal.js.map +1 -1
- package/dist/components/eui-context-menu-item.js +4 -4
- package/dist/components/eui-context-menu-item.js.map +1 -1
- package/dist/components/eui-copy.js +1 -1
- package/dist/components/eui-copy.js.map +1 -1
- package/dist/components/eui-described-form-group.js.map +1 -1
- package/dist/components/eui-description-list.js +1 -1
- package/dist/components/eui-description-list.js.map +1 -1
- package/dist/components/eui-dual-range.js.map +1 -1
- package/dist/components/eui-empty-prompt.js +8 -8
- package/dist/components/eui-empty-prompt.js.map +1 -1
- package/dist/components/eui-field-number.js +2 -2
- package/dist/components/eui-field-number.js.map +1 -1
- package/dist/components/eui-field-password.js +4 -3
- package/dist/components/eui-field-password.js.map +1 -1
- package/dist/components/eui-field-search.js +5 -4
- package/dist/components/eui-field-search.js.map +1 -1
- package/dist/components/eui-field-text.js +2 -2
- package/dist/components/eui-field-text.js.map +1 -1
- package/dist/components/eui-file-picker.js +2 -2
- package/dist/components/eui-file-picker.js.map +1 -1
- package/dist/components/eui-flex-grid.js +2 -2
- package/dist/components/eui-flex-grid.js.map +1 -1
- package/dist/components/eui-flex-group.js +1 -1
- package/dist/components/eui-flex-group.js.map +1 -1
- package/dist/components/eui-flex-item.js +2 -2
- package/dist/components/eui-flex-item.js.map +1 -1
- package/dist/components/eui-flyout-body.js +1 -1
- package/dist/components/eui-flyout-body.js.map +1 -1
- package/dist/components/eui-flyout-header.js.map +1 -1
- package/dist/components/eui-flyout.js +14 -14
- package/dist/components/eui-flyout.js.map +1 -1
- package/dist/components/eui-form-control-layout-clear-button.js +1 -1
- package/dist/components/eui-form-control-layout-clear-button.js.map +1 -1
- package/dist/components/eui-form-control-layout-custom-icon.js.map +1 -1
- package/dist/components/eui-form-control-layout-delimited.js +1 -1
- package/dist/components/eui-form-control-layout-delimited.js.map +1 -1
- package/dist/components/eui-form-control-layout-icons.js.map +1 -1
- package/dist/components/eui-form-control-layout.js.map +1 -1
- package/dist/components/eui-form-fieldset.js.map +1 -1
- package/dist/components/eui-form-label.js +1 -1
- package/dist/components/eui-form-label.js.map +1 -1
- package/dist/components/eui-form-legend.js +1 -1
- package/dist/components/eui-form-legend.js.map +1 -1
- package/dist/components/eui-form-row.js +12 -8
- package/dist/components/eui-form-row.js.map +1 -1
- package/dist/components/eui-form.js +2 -2
- package/dist/components/eui-form.js.map +1 -1
- package/dist/components/eui-global-toast-list.js +4 -4
- package/dist/components/eui-global-toast-list.js.map +1 -1
- package/dist/components/eui-header-alert.js +1 -1
- package/dist/components/eui-header-alert.js.map +1 -1
- package/dist/components/eui-header-breadcrumbs.js.map +1 -1
- package/dist/components/eui-header-link.js.map +1 -1
- package/dist/components/eui-header-links.js +6 -6
- package/dist/components/eui-header-links.js.map +1 -1
- package/dist/components/eui-header-logo.js.map +1 -1
- package/dist/components/eui-header-section-item-button.js +4 -4
- package/dist/components/eui-header-section-item-button.js.map +1 -1
- package/dist/components/eui-header-section-item.js.map +1 -1
- package/dist/components/eui-header-section.js.map +1 -1
- package/dist/components/eui-header.js +1 -1
- package/dist/components/eui-header.js.map +1 -1
- package/dist/components/eui-health.js.map +1 -1
- package/dist/components/eui-hide-for.js +2 -2
- package/dist/components/eui-hide-for.js.map +1 -1
- package/dist/components/eui-horizontal-rule.js.map +1 -1
- package/dist/components/eui-i18n.js +1 -1
- package/dist/components/eui-i18n.js.map +1 -1
- package/dist/components/eui-icon-tip.js +3 -3
- package/dist/components/eui-icon-tip.js.map +1 -1
- package/dist/components/eui-icon.js +4 -5
- package/dist/components/eui-icon.js.map +1 -1
- package/dist/components/eui-image.js +7 -7
- package/dist/components/eui-image.js.map +1 -1
- package/dist/components/eui-inner-text.js.map +1 -1
- package/dist/components/eui-input-popover.js +8 -8
- package/dist/components/eui-input-popover.js.map +1 -1
- package/dist/components/eui-key-pad-menu-item.js +6 -6
- package/dist/components/eui-key-pad-menu-item.js.map +1 -1
- package/dist/components/eui-link.js +2 -2
- package/dist/components/eui-link.js.map +1 -1
- package/dist/components/eui-list-group-item.js +3 -3
- package/dist/components/eui-list-group-item.js.map +1 -1
- package/dist/components/eui-list-group.js +4 -4
- package/dist/components/eui-list-group.js.map +1 -1
- package/dist/components/eui-loading-content.js +2 -2
- package/dist/components/eui-loading-content.js.map +1 -1
- package/dist/components/eui-loading-logo.js +2 -2
- package/dist/components/eui-loading-logo.js.map +1 -1
- package/dist/components/eui-loading-spinner.js +1 -1
- package/dist/components/eui-loading-spinner.js.map +1 -1
- package/dist/components/eui-markdown-editor-drop-zone.js.map +1 -1
- package/dist/components/eui-markdown-editor-footer.js +11 -11
- package/dist/components/eui-markdown-editor-footer.js.map +1 -1
- package/dist/components/eui-markdown-editor-text-area.js.map +1 -1
- package/dist/components/eui-markdown-editor-toolbar.js +9 -7
- package/dist/components/eui-markdown-editor-toolbar.js.map +1 -1
- package/dist/components/eui-markdown-editor.js +22 -24
- package/dist/components/eui-markdown-editor.js.map +1 -1
- package/dist/components/eui-markdown-format/markdown-checkbox.js +2 -2
- package/dist/components/eui-markdown-format/markdown-checkbox.js.map +1 -1
- package/dist/components/eui-markdown-format/markdown-code-block.js.map +1 -1
- package/dist/components/eui-markdown-format/markdown-code.js.map +1 -1
- package/dist/components/eui-markdown-format/markdown-tooltip.js +1 -1
- package/dist/components/eui-markdown-format/markdown-tooltip.js.map +1 -1
- package/dist/components/eui-markdown-format.js +8 -6
- package/dist/components/eui-markdown-format.js.map +1 -1
- package/dist/components/eui-modal-header-title.js.map +1 -1
- package/dist/components/eui-modal-header.js.map +1 -1
- package/dist/components/eui-modal.js +10 -10
- package/dist/components/eui-modal.js.map +1 -1
- package/dist/components/eui-notification-badge.js.map +1 -1
- package/dist/components/eui-notification-event-messages.js +5 -5
- package/dist/components/eui-notification-event-messages.js.map +1 -1
- package/dist/components/eui-notification-event-meta.js +2 -2
- package/dist/components/eui-notification-event-meta.js.map +1 -1
- package/dist/components/eui-notification-event-read-button.js +2 -2
- package/dist/components/eui-notification-event-read-button.js.map +1 -1
- package/dist/components/eui-notification-event-read-icon.js +1 -1
- package/dist/components/eui-notification-event-read-icon.js.map +1 -1
- package/dist/components/eui-notification-event.js +9 -9
- package/dist/components/eui-notification-event.js.map +1 -1
- package/dist/components/eui-overlay-mask.js +3 -3
- package/dist/components/eui-overlay-mask.js.map +1 -1
- package/dist/components/eui-page-body.js +5 -5
- package/dist/components/eui-page-body.js.map +1 -1
- package/dist/components/eui-page-content-body.js +2 -2
- package/dist/components/eui-page-content-body.js.map +1 -1
- package/dist/components/eui-page-content.js +1 -1
- package/dist/components/eui-page-content.js.map +1 -1
- package/dist/components/eui-page-header-content.js +15 -15
- package/dist/components/eui-page-header-content.js.map +1 -1
- package/dist/components/eui-page-header.js +3 -3
- package/dist/components/eui-page-header.js.map +1 -1
- package/dist/components/eui-page-side-bar.js.map +1 -1
- package/dist/components/eui-page-template.js +7 -7
- package/dist/components/eui-page-template.js.map +1 -1
- package/dist/components/eui-page.js +3 -3
- package/dist/components/eui-page.js.map +1 -1
- package/dist/components/eui-pagination/button-wrapper.js +3 -3
- package/dist/components/eui-pagination/button-wrapper.js.map +1 -1
- package/dist/components/eui-pagination/next-button.js +4 -4
- package/dist/components/eui-pagination/next-button.js.map +1 -1
- package/dist/components/eui-pagination/previous-button.js +3 -3
- package/dist/components/eui-pagination/previous-button.js.map +1 -1
- package/dist/components/eui-pagination-button.js +4 -4
- package/dist/components/eui-pagination-button.js.map +1 -1
- package/dist/components/eui-pagination.js +5 -5
- package/dist/components/eui-pagination.js.map +1 -1
- package/dist/components/eui-panel.js +2 -2
- package/dist/components/eui-panel.js.map +1 -1
- package/dist/components/eui-popover-footer.js.map +1 -1
- package/dist/components/eui-popover-title.js.map +1 -1
- package/dist/components/eui-popover.js +16 -15
- package/dist/components/eui-popover.js.map +1 -1
- package/dist/components/eui-portal.js.map +1 -1
- package/dist/components/eui-progress.js +1 -1
- package/dist/components/eui-progress.js.map +1 -1
- package/dist/components/eui-radio-group.js +2 -2
- package/dist/components/eui-radio-group.js.map +1 -1
- package/dist/components/eui-radio.js +4 -4
- package/dist/components/eui-radio.js.map +1 -1
- package/dist/components/eui-range-highlight.js +2 -2
- package/dist/components/eui-range-highlight.js.map +1 -1
- package/dist/components/eui-range-input.js +5 -5
- package/dist/components/eui-range-input.js.map +1 -1
- package/dist/components/eui-range-label.js +2 -2
- package/dist/components/eui-range-label.js.map +1 -1
- package/dist/components/eui-range-levels.js +4 -4
- package/dist/components/eui-range-levels.js.map +1 -1
- package/dist/components/eui-range-slider.js.map +1 -1
- package/dist/components/eui-range-thumb.js +1 -1
- package/dist/components/eui-range-thumb.js.map +1 -1
- package/dist/components/eui-range-ticks.js +1 -1
- package/dist/components/eui-range-ticks.js.map +1 -1
- package/dist/components/eui-range-tooltip.js +1 -1
- package/dist/components/eui-range-tooltip.js.map +1 -1
- package/dist/components/eui-range-track.js +10 -8
- package/dist/components/eui-range-track.js.map +1 -1
- package/dist/components/eui-range.js +11 -11
- package/dist/components/eui-range.js.map +1 -1
- package/dist/components/eui-select.js +1 -1
- package/dist/components/eui-select.js.map +1 -1
- package/dist/components/eui-selectable-list-item.js +1 -1
- package/dist/components/eui-selectable-list-item.js.map +1 -1
- package/dist/components/eui-show-for.js +3 -3
- package/dist/components/eui-show-for.js.map +1 -1
- package/dist/components/eui-side-nav-item/button.js +3 -3
- package/dist/components/eui-side-nav-item/button.js.map +1 -1
- package/dist/components/eui-side-nav-item.js +4 -4
- package/dist/components/eui-side-nav-item.js.map +1 -1
- package/dist/components/eui-side-nav.js +8 -8
- package/dist/components/eui-side-nav.js.map +1 -1
- package/dist/components/eui-spacer.js +1 -1
- package/dist/components/eui-spacer.js.map +1 -1
- package/dist/components/eui-split-panel/inner.js.map +1 -1
- package/dist/components/eui-split-panel/outer.js +3 -3
- package/dist/components/eui-split-panel/outer.js.map +1 -1
- package/dist/components/eui-stat/description.js.map +1 -1
- package/dist/components/eui-stat/title.js +1 -1
- package/dist/components/eui-stat/title.js.map +1 -1
- package/dist/components/eui-stat.js +4 -4
- package/dist/components/eui-stat.js.map +1 -1
- package/dist/components/eui-step-horizontal.js.map +1 -1
- package/dist/components/eui-step-number.js +3 -3
- package/dist/components/eui-step-number.js.map +1 -1
- package/dist/components/eui-step.js +2 -2
- package/dist/components/eui-step.js.map +1 -1
- package/dist/components/eui-super-date-picker/date-popover/absolute-tab.js +8 -8
- package/dist/components/eui-super-date-picker/date-popover/absolute-tab.js.map +1 -1
- package/dist/components/eui-super-date-picker/date-popover/datetime-picker.js +8 -6
- package/dist/components/eui-super-date-picker/date-popover/datetime-picker.js.map +1 -1
- package/dist/components/eui-super-date-picker/date-popover/eui-date-popover-button.js +5 -5
- package/dist/components/eui-super-date-picker/date-popover/eui-date-popover-button.js.map +1 -1
- package/dist/components/eui-super-date-picker/date-popover/eui-date-popover-content.js +4 -4
- package/dist/components/eui-super-date-picker/date-popover/eui-date-popover-content.js.map +1 -1
- package/dist/components/eui-super-date-picker/date-popover/now-tab.js +4 -4
- package/dist/components/eui-super-date-picker/date-popover/now-tab.js.map +1 -1
- package/dist/components/eui-super-date-picker/date-popover/relative-tab.js +9 -9
- package/dist/components/eui-super-date-picker/date-popover/relative-tab.js.map +1 -1
- package/dist/components/eui-super-date-picker/eui-date-picker-range.js +1 -1
- package/dist/components/eui-super-date-picker/eui-date-picker-range.js.map +1 -1
- package/dist/components/eui-super-date-picker/eui-quick-select-popover/eui-commonly-used-time-ranges.js +5 -5
- package/dist/components/eui-super-date-picker/eui-quick-select-popover/eui-commonly-used-time-ranges.js.map +1 -1
- package/dist/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.js +14 -14
- package/dist/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select.js.map +1 -1
- package/dist/components/eui-super-date-picker/eui-quick-select-popover/eui-recently-used.js +5 -5
- package/dist/components/eui-super-date-picker/eui-quick-select-popover/eui-recently-used.js.map +1 -1
- package/dist/components/eui-super-date-picker/eui-quick-select-popover.js +5 -5
- package/dist/components/eui-super-date-picker/eui-quick-select-popover.js.map +1 -1
- package/dist/components/eui-super-date-picker/eui-super-update-button.js +3 -3
- package/dist/components/eui-super-date-picker/eui-super-update-button.js.map +1 -1
- package/dist/components/eui-super-date-picker/utils/index.js +1 -1
- package/dist/components/eui-super-date-picker/utils/index.js.map +1 -1
- package/dist/components/eui-super-date-picker/utils/pretty-duration.js.map +1 -1
- package/dist/components/eui-super-date-picker/utils/quick-select.js +2 -2
- package/dist/components/eui-super-date-picker/utils/quick-select.js.map +1 -1
- package/dist/components/eui-super-date-picker/utils/time-options.js.map +1 -1
- package/dist/components/eui-super-date-picker.js +8 -8
- package/dist/components/eui-super-date-picker.js.map +1 -1
- package/dist/components/eui-switch.js +1 -1
- package/dist/components/eui-switch.js.map +1 -1
- package/dist/components/eui-tab.js +1 -1
- package/dist/components/eui-tab.js.map +1 -1
- package/dist/components/eui-tabbed-content.js +2 -2
- package/dist/components/eui-tabbed-content.js.map +1 -1
- package/dist/components/eui-tabs.js +2 -2
- package/dist/components/eui-tabs.js.map +1 -1
- package/dist/components/eui-text-align.js.map +1 -1
- package/dist/components/eui-text-area.js +2 -2
- package/dist/components/eui-text-area.js.map +1 -1
- package/dist/components/eui-text-color.js.map +1 -1
- package/dist/components/eui-text.js.map +1 -1
- package/dist/components/eui-title.js +1 -1
- package/dist/components/eui-title.js.map +1 -1
- package/dist/components/eui-toast.js +3 -3
- package/dist/components/eui-toast.js.map +1 -1
- package/dist/components/eui-tool-tip-popover.js +1 -1
- package/dist/components/eui-tool-tip-popover.js.map +1 -1
- package/dist/components/eui-tool-tip.js +6 -4
- package/dist/components/eui-tool-tip.js.map +1 -1
- package/dist/components.js +149 -0
- package/dist/components.js.map +1 -0
- package/dist/helpers/eui-palette.js.map +1 -1
- package/dist/helpers/get-eui-config.js.map +1 -1
- package/dist/helpers/get-range-tick.js.map +1 -1
- package/dist/helpers/hex-to-rgb.js.map +1 -1
- package/dist/helpers/inline-styles.js.map +1 -1
- package/dist/helpers/is-color-dark.js.map +1 -1
- package/dist/helpers/is-item-open.js.map +1 -1
- package/dist/helpers/is-within-number.js.map +1 -1
- package/dist/helpers/merge.js.map +1 -1
- package/dist/helpers/to-initials.js +1 -0
- package/dist/helpers/to-initials.js.map +1 -1
- package/dist/helpers/use-state.js +1 -1
- package/dist/helpers/use-state.js.map +1 -1
- package/dist/helpers.js +8 -0
- package/dist/helpers.js.map +1 -0
- package/dist/i18n/util.js +2 -2
- package/dist/i18n/util.js.map +1 -1
- package/dist/modifiers/mutation-observer.js.map +1 -1
- package/dist/modifiers/open-collapsible-nav.js.map +1 -1
- package/dist/modifiers/outside-click-detector.js.map +1 -1
- package/dist/modifiers/resize-observer.js +2 -2
- package/dist/modifiers/resize-observer.js.map +1 -1
- package/dist/modifiers/use-is-within-breakpoints.js +1 -1
- package/dist/modifiers/use-is-within-breakpoints.js.map +1 -1
- package/dist/modifiers/validatable-control.js +1 -1
- package/dist/modifiers/validatable-control.js.map +1 -1
- package/dist/modifiers.js +7 -0
- package/dist/modifiers.js.map +1 -0
- package/dist/services/eui-config.js +1 -1
- package/dist/services/eui-config.js.map +1 -1
- package/dist/services/eui-i18n.js +1 -1
- package/dist/services/eui-i18n.js.map +1 -1
- package/dist/utils/accesibility/combo-box-keys.js.map +1 -1
- package/dist/utils/breakpoint.js.map +1 -1
- package/dist/utils/code/utils.js.map +1 -1
- package/dist/utils/color/color_palette.js.map +1 -1
- package/dist/utils/color/eui_palettes.js +1 -0
- package/dist/utils/color/eui_palettes.js.map +1 -1
- package/dist/utils/color/index.js +2 -2
- package/dist/utils/copy-to-clipboard.js.map +1 -1
- package/dist/utils/css-mappings/eui-badge.js +3 -3
- package/dist/utils/css-mappings/eui-badge.js.map +1 -1
- package/dist/utils/css-mappings/eui-range-highlight.js.map +1 -1
- package/dist/utils/css-mappings/eui-range-levels.js.map +1 -1
- package/dist/utils/css-mappings/index.js +1 -1
- package/dist/utils/css-mappings/index.js.map +1 -1
- package/dist/utils/detect-element-resize.js.map +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/markdown/markdown-actions.js +1 -0
- package/dist/utils/markdown/markdown-actions.js.map +1 -1
- package/dist/utils/markdown/markdown-types.js.map +1 -1
- package/dist/utils/markdown/plugins/markdown-add-components/processor.js +1 -1
- package/dist/utils/markdown/plugins/markdown-add-components/processor.js.map +1 -1
- package/dist/utils/markdown/plugins/markdown-checkbox/parser.js.map +1 -1
- package/dist/utils/markdown/plugins/markdown-default-plugins/index.js +2 -2
- package/dist/utils/markdown/plugins/markdown-default-plugins/parsing-plugins.js +2 -2
- package/dist/utils/markdown/plugins/markdown-default-plugins/parsing-plugins.js.map +1 -1
- package/dist/utils/markdown/plugins/markdown-default-plugins/plugins.js +1 -1
- package/dist/utils/markdown/plugins/markdown-default-plugins/plugins.js.map +1 -1
- package/dist/utils/markdown/plugins/markdown-default-plugins/processing-plugins.js +5 -3
- package/dist/utils/markdown/plugins/markdown-default-plugins/processing-plugins.js.map +1 -1
- package/dist/utils/markdown/plugins/markdown-default-plugins/ui-plugins.js +1 -0
- package/dist/utils/markdown/plugins/markdown-default-plugins/ui-plugins.js.map +1 -1
- package/dist/utils/markdown/plugins/markdown-tooltip/parser.js.map +1 -1
- package/dist/utils/markdown/plugins/to-dom.js.map +1 -1
- package/dist/utils/markdown/remark/remark-prismjs.js.map +1 -1
- package/dist/utils/maybe-unwrap-proxy.js +1 -1
- package/dist/utils/maybe-unwrap-proxy.js.map +1 -1
- package/dist/utils/number/number.js.map +1 -1
- package/dist/utils/popover/index.js +1 -0
- package/dist/utils/popover/index.js.map +1 -1
- package/dist/utils/predicate/lodash_predicates.js +3 -3
- package/dist/utils/predicate/lodash_predicates.js.map +1 -1
- package/dist/utils/timer.js.map +1 -1
- package/dist/utils/transition.js +2 -0
- package/dist/utils/transition.js.map +1 -1
- package/package.json +58 -54
- package/vendor/eui_theme_dark.min.css +1 -0
- package/vendor/eui_theme_light.min.css +1 -0
- package/vendor/icon/svgs/accessibility.svg +3 -0
- package/vendor/icon/svgs/aggregate.svg +3 -0
- package/vendor/icon/svgs/analyzeEvent.svg +3 -0
- package/vendor/icon/svgs/annotation.svg +3 -0
- package/vendor/icon/svgs/apm_trace.svg +3 -0
- package/vendor/icon/svgs/app_add_data.svg +6 -0
- package/vendor/icon/svgs/app_advanced_settings.svg +10 -0
- package/vendor/icon/svgs/app_agent.svg +4 -0
- package/vendor/icon/svgs/app_apm.svg +6 -0
- package/vendor/icon/svgs/app_app_search.svg +4 -0
- package/vendor/icon/svgs/app_auditbeat.svg +7 -0
- package/vendor/icon/svgs/app_canvas.svg +11 -0
- package/vendor/icon/svgs/app_cases.svg +6 -0
- package/vendor/icon/svgs/app_code.svg +7 -0
- package/vendor/icon/svgs/app_console.svg +8 -0
- package/vendor/icon/svgs/app_cross_cluster_replication.svg +6 -0
- package/vendor/icon/svgs/app_dashboard.svg +8 -0
- package/vendor/icon/svgs/app_devtools.svg +6 -0
- package/vendor/icon/svgs/app_discover.svg +6 -0
- package/vendor/icon/svgs/app_ems.svg +6 -0
- package/vendor/icon/svgs/app_filebeat.svg +8 -0
- package/vendor/icon/svgs/app_fleet.svg +6 -0
- package/vendor/icon/svgs/app_gis.svg +4 -0
- package/vendor/icon/svgs/app_graph.svg +6 -0
- package/vendor/icon/svgs/app_grok.svg +6 -0
- package/vendor/icon/svgs/app_heartbeat.svg +6 -0
- package/vendor/icon/svgs/app_index_management.svg +7 -0
- package/vendor/icon/svgs/app_index_pattern.svg +9 -0
- package/vendor/icon/svgs/app_index_rollup.svg +11 -0
- package/vendor/icon/svgs/app_lens.svg +4 -0
- package/vendor/icon/svgs/app_logs.svg +6 -0
- package/vendor/icon/svgs/app_management.svg +6 -0
- package/vendor/icon/svgs/app_metricbeat.svg +7 -0
- package/vendor/icon/svgs/app_metrics.svg +4 -0
- package/vendor/icon/svgs/app_ml.svg +6 -0
- package/vendor/icon/svgs/app_monitoring.svg +7 -0
- package/vendor/icon/svgs/app_notebook.svg +8 -0
- package/vendor/icon/svgs/app_packetbeat.svg +6 -0
- package/vendor/icon/svgs/app_pipeline.svg +6 -0
- package/vendor/icon/svgs/app_recently_viewed.svg +6 -0
- package/vendor/icon/svgs/app_reporting.svg +9 -0
- package/vendor/icon/svgs/app_saved_objects.svg +6 -0
- package/vendor/icon/svgs/app_search_profiler.svg +11 -0
- package/vendor/icon/svgs/app_security.svg +7 -0
- package/vendor/icon/svgs/app_security_analytics.svg +5 -0
- package/vendor/icon/svgs/app_spaces.svg +9 -0
- package/vendor/icon/svgs/app_sql.svg +13 -0
- package/vendor/icon/svgs/app_timelion.svg +6 -0
- package/vendor/icon/svgs/app_upgrade_assistant.svg +6 -0
- package/vendor/icon/svgs/app_uptime.svg +6 -0
- package/vendor/icon/svgs/app_users_roles.svg +6 -0
- package/vendor/icon/svgs/app_visualize.svg +9 -0
- package/vendor/icon/svgs/app_vulnerability_management.svg +4 -0
- package/vendor/icon/svgs/app_watches.svg +8 -0
- package/vendor/icon/svgs/app_workplace_search.svg +4 -0
- package/vendor/icon/svgs/apps.svg +3 -0
- package/vendor/icon/svgs/arrowEnd.svg +1 -0
- package/vendor/icon/svgs/arrowStart.svg +1 -0
- package/vendor/icon/svgs/arrow_down.svg +3 -0
- package/vendor/icon/svgs/arrow_left.svg +3 -0
- package/vendor/icon/svgs/arrow_right.svg +3 -0
- package/vendor/icon/svgs/arrow_up.svg +3 -0
- package/vendor/icon/svgs/article.svg +10 -0
- package/vendor/icon/svgs/asterisk.svg +3 -0
- package/vendor/icon/svgs/beaker.svg +3 -0
- package/vendor/icon/svgs/bell.svg +3 -0
- package/vendor/icon/svgs/bellSlash.svg +3 -0
- package/vendor/icon/svgs/beta.svg +3 -0
- package/vendor/icon/svgs/bolt.svg +3 -0
- package/vendor/icon/svgs/boxes_horizontal.svg +5 -0
- package/vendor/icon/svgs/boxes_vertical.svg +3 -0
- package/vendor/icon/svgs/branch.svg +3 -0
- package/vendor/icon/svgs/branchUser.svg +4 -0
- package/vendor/icon/svgs/broom.svg +3 -0
- package/vendor/icon/svgs/brush.svg +3 -0
- package/vendor/icon/svgs/bug.svg +3 -0
- package/vendor/icon/svgs/bullseye.svg +3 -0
- package/vendor/icon/svgs/calendar.svg +3 -0
- package/vendor/icon/svgs/check.svg +3 -0
- package/vendor/icon/svgs/checkInCircleFilled.svg +3 -0
- package/vendor/icon/svgs/cheer.svg +3 -0
- package/vendor/icon/svgs/clock.svg +3 -0
- package/vendor/icon/svgs/cloudDrizzle.svg +3 -0
- package/vendor/icon/svgs/cloudStormy.svg +3 -0
- package/vendor/icon/svgs/cloudSunny.svg +3 -0
- package/vendor/icon/svgs/cluster.svg +3 -0
- package/vendor/icon/svgs/color.svg +3 -0
- package/vendor/icon/svgs/compute.svg +6 -0
- package/vendor/icon/svgs/console.svg +5 -0
- package/vendor/icon/svgs/container.svg +3 -0
- package/vendor/icon/svgs/continuityAbove.svg +3 -0
- package/vendor/icon/svgs/continuityAboveBelow.svg +3 -0
- package/vendor/icon/svgs/continuityBelow.svg +3 -0
- package/vendor/icon/svgs/continuityWithin.svg +3 -0
- package/vendor/icon/svgs/controls_horizontal.svg +3 -0
- package/vendor/icon/svgs/controls_vertical.svg +3 -0
- package/vendor/icon/svgs/copy.svg +6 -0
- package/vendor/icon/svgs/copy_clipboard.svg +4 -0
- package/vendor/icon/svgs/cross.svg +3 -0
- package/vendor/icon/svgs/crosshairs.svg +3 -0
- package/vendor/icon/svgs/currency.svg +3 -0
- package/vendor/icon/svgs/cut.svg +3 -0
- package/vendor/icon/svgs/database.svg +3 -0
- package/vendor/icon/svgs/desktop.svg +4 -0
- package/vendor/icon/svgs/discuss.svg +4 -0
- package/vendor/icon/svgs/document.svg +3 -0
- package/vendor/icon/svgs/documentEdit.svg +3 -0
- package/vendor/icon/svgs/documentation.svg +5 -0
- package/vendor/icon/svgs/documents.svg +3 -0
- package/vendor/icon/svgs/dot.svg +3 -0
- package/vendor/icon/svgs/dotInCircle.svg +4 -0
- package/vendor/icon/svgs/doubleArrowLeft.svg +4 -0
- package/vendor/icon/svgs/doubleArrowRight.svg +4 -0
- package/vendor/icon/svgs/download.svg +4 -0
- package/vendor/icon/svgs/editorDistributeHorizontal.svg +3 -0
- package/vendor/icon/svgs/editorDistributeVertical.svg +3 -0
- package/vendor/icon/svgs/editorItemAlignBottom.svg +3 -0
- package/vendor/icon/svgs/editorItemAlignCenter.svg +3 -0
- package/vendor/icon/svgs/editorItemAlignLeft.svg +3 -0
- package/vendor/icon/svgs/editorItemAlignMiddle.svg +3 -0
- package/vendor/icon/svgs/editorItemAlignRight.svg +3 -0
- package/vendor/icon/svgs/editorItemAlignTop.svg +3 -0
- package/vendor/icon/svgs/editorPositionBottomLeft.svg +3 -0
- package/vendor/icon/svgs/editorPositionBottomRight.svg +3 -0
- package/vendor/icon/svgs/editorPositionTopLeft.svg +3 -0
- package/vendor/icon/svgs/editorPositionTopRight.svg +3 -0
- package/vendor/icon/svgs/editor_align_center.svg +3 -0
- package/vendor/icon/svgs/editor_align_left.svg +3 -0
- package/vendor/icon/svgs/editor_align_right.svg +3 -0
- package/vendor/icon/svgs/editor_bold.svg +3 -0
- package/vendor/icon/svgs/editor_checklist.svg +3 -0
- package/vendor/icon/svgs/editor_code_block.svg +3 -0
- package/vendor/icon/svgs/editor_comment.svg +3 -0
- package/vendor/icon/svgs/editor_heading.svg +3 -0
- package/vendor/icon/svgs/editor_italic.svg +3 -0
- package/vendor/icon/svgs/editor_link.svg +3 -0
- package/vendor/icon/svgs/editor_ordered_list.svg +3 -0
- package/vendor/icon/svgs/editor_redo.svg +3 -0
- package/vendor/icon/svgs/editor_strike.svg +3 -0
- package/vendor/icon/svgs/editor_table.svg +3 -0
- package/vendor/icon/svgs/editor_underline.svg +3 -0
- package/vendor/icon/svgs/editor_undo.svg +3 -0
- package/vendor/icon/svgs/editor_unordered_list.svg +3 -0
- package/vendor/icon/svgs/email.svg +3 -0
- package/vendor/icon/svgs/empty.svg +2 -0
- package/vendor/icon/svgs/eql.svg +4 -0
- package/vendor/icon/svgs/eraser.svg +4 -0
- package/vendor/icon/svgs/error.svg +3 -0
- package/vendor/icon/svgs/exit.svg +3 -0
- package/vendor/icon/svgs/expand.svg +3 -0
- package/vendor/icon/svgs/expandMini.svg +3 -0
- package/vendor/icon/svgs/export.svg +3 -0
- package/vendor/icon/svgs/eye.svg +3 -0
- package/vendor/icon/svgs/eye_closed.svg +3 -0
- package/vendor/icon/svgs/face_happy.svg +5 -0
- package/vendor/icon/svgs/face_neutral.svg +3 -0
- package/vendor/icon/svgs/face_sad.svg +3 -0
- package/vendor/icon/svgs/filter.svg +3 -0
- package/vendor/icon/svgs/filterExclude.svg +5 -0
- package/vendor/icon/svgs/filterIgnore.svg +4 -0
- package/vendor/icon/svgs/filterInCircle.svg +3 -0
- package/vendor/icon/svgs/filterInclude.svg +5 -0
- package/vendor/icon/svgs/flag.svg +3 -0
- package/vendor/icon/svgs/fold.svg +1 -0
- package/vendor/icon/svgs/folder_check.svg +3 -0
- package/vendor/icon/svgs/folder_closed.svg +3 -0
- package/vendor/icon/svgs/folder_exclamation.svg +3 -0
- package/vendor/icon/svgs/folder_open.svg +3 -0
- package/vendor/icon/svgs/frameNext.svg +3 -0
- package/vendor/icon/svgs/framePrevious.svg +3 -0
- package/vendor/icon/svgs/fullScreenExit.svg +3 -0
- package/vendor/icon/svgs/full_screen.svg +5 -0
- package/vendor/icon/svgs/function.svg +3 -0
- package/vendor/icon/svgs/gear.svg +3 -0
- package/vendor/icon/svgs/glasses.svg +3 -0
- package/vendor/icon/svgs/globe.svg +3 -0
- package/vendor/icon/svgs/grab.svg +3 -0
- package/vendor/icon/svgs/grab_horizontal.svg +3 -0
- package/vendor/icon/svgs/grid.svg +3 -0
- package/vendor/icon/svgs/heart.svg +3 -0
- package/vendor/icon/svgs/heatmap.svg +3 -0
- package/vendor/icon/svgs/help.svg +3 -0
- package/vendor/icon/svgs/home.svg +3 -0
- package/vendor/icon/svgs/iInCircle.svg +3 -0
- package/vendor/icon/svgs/image.svg +1 -0
- package/vendor/icon/svgs/import.svg +3 -0
- package/vendor/icon/svgs/indexTemporary.svg +4 -0
- package/vendor/icon/svgs/index_close.svg +3 -0
- package/vendor/icon/svgs/index_edit.svg +3 -0
- package/vendor/icon/svgs/index_flush.svg +3 -0
- package/vendor/icon/svgs/index_mapping.svg +3 -0
- package/vendor/icon/svgs/index_open.svg +3 -0
- package/vendor/icon/svgs/index_runtime.svg +4 -0
- package/vendor/icon/svgs/index_settings.svg +7 -0
- package/vendor/icon/svgs/infinity.svg +3 -0
- package/vendor/icon/svgs/inputOutput.svg +9 -0
- package/vendor/icon/svgs/inspect.svg +3 -0
- package/vendor/icon/svgs/invert.svg +6 -0
- package/vendor/icon/svgs/ip.svg +3 -0
- package/vendor/icon/svgs/keyboard.svg +3 -0
- package/vendor/icon/svgs/kql_field.svg +5 -0
- package/vendor/icon/svgs/kql_function.svg +5 -0
- package/vendor/icon/svgs/kql_operand.svg +5 -0
- package/vendor/icon/svgs/kql_selector.svg +5 -0
- package/vendor/icon/svgs/kql_value.svg +5 -0
- package/vendor/icon/svgs/kubernetesNode.svg +3 -0
- package/vendor/icon/svgs/kubernetesPod.svg +3 -0
- package/vendor/icon/svgs/launch.svg +5 -0
- package/vendor/icon/svgs/layers.svg +5 -0
- package/vendor/icon/svgs/lettering.svg +3 -0
- package/vendor/icon/svgs/lineDashed.svg +3 -0
- package/vendor/icon/svgs/lineDotted.svg +3 -0
- package/vendor/icon/svgs/lineSolid.svg +3 -0
- package/vendor/icon/svgs/link.svg +3 -0
- package/vendor/icon/svgs/list.svg +3 -0
- package/vendor/icon/svgs/list_add.svg +3 -0
- package/vendor/icon/svgs/lock.svg +3 -0
- package/vendor/icon/svgs/lockOpen.svg +3 -0
- package/vendor/icon/svgs/logo_aerospike.svg +6 -0
- package/vendor/icon/svgs/logo_apache.svg +54 -0
- package/vendor/icon/svgs/logo_app_search.svg +7 -0
- package/vendor/icon/svgs/logo_aws.svg +9 -0
- package/vendor/icon/svgs/logo_aws_mono.svg +9 -0
- package/vendor/icon/svgs/logo_azure.svg +3 -0
- package/vendor/icon/svgs/logo_azure_mono.svg +3 -0
- package/vendor/icon/svgs/logo_beats.svg +7 -0
- package/vendor/icon/svgs/logo_business_analytics.svg +7 -0
- package/vendor/icon/svgs/logo_ceph.svg +3 -0
- package/vendor/icon/svgs/logo_cloud.svg +7 -0
- package/vendor/icon/svgs/logo_cloud_ece.svg +5 -0
- package/vendor/icon/svgs/logo_code.svg +5 -0
- package/vendor/icon/svgs/logo_codesandbox.svg +3 -0
- package/vendor/icon/svgs/logo_couchbase.svg +3 -0
- package/vendor/icon/svgs/logo_docker.svg +1 -0
- package/vendor/icon/svgs/logo_dropwizard.svg +21 -0
- package/vendor/icon/svgs/logo_elastic.svg +10 -0
- package/vendor/icon/svgs/logo_elastic_stack.svg +8 -0
- package/vendor/icon/svgs/logo_elasticsearch.svg +7 -0
- package/vendor/icon/svgs/logo_enterprise_search.svg +5 -0
- package/vendor/icon/svgs/logo_etcd.svg +6 -0
- package/vendor/icon/svgs/logo_gcp.svg +19 -0
- package/vendor/icon/svgs/logo_gcp_mono.svg +6 -0
- package/vendor/icon/svgs/logo_github.svg +3 -0
- package/vendor/icon/svgs/logo_gmail.svg +11 -0
- package/vendor/icon/svgs/logo_golang.svg +37 -0
- package/vendor/icon/svgs/logo_google_g.svg +1 -0
- package/vendor/icon/svgs/logo_haproxy.svg +197 -0
- package/vendor/icon/svgs/logo_ibm.svg +37 -0
- package/vendor/icon/svgs/logo_ibm_mono.svg +3 -0
- package/vendor/icon/svgs/logo_kafka.svg +3 -0
- package/vendor/icon/svgs/logo_kibana.svg +7 -0
- package/vendor/icon/svgs/logo_kubernetes.svg +1 -0
- package/vendor/icon/svgs/logo_logging.svg +5 -0
- package/vendor/icon/svgs/logo_logstash.svg +7 -0
- package/vendor/icon/svgs/logo_maps.svg +5 -0
- package/vendor/icon/svgs/logo_memcached.svg +28 -0
- package/vendor/icon/svgs/logo_metrics.svg +7 -0
- package/vendor/icon/svgs/logo_mongodb.svg +10 -0
- package/vendor/icon/svgs/logo_mysql.svg +6 -0
- package/vendor/icon/svgs/logo_nginx.svg +6 -0
- package/vendor/icon/svgs/logo_observability.svg +7 -0
- package/vendor/icon/svgs/logo_osquery.svg +12 -0
- package/vendor/icon/svgs/logo_php.svg +44 -0
- package/vendor/icon/svgs/logo_postgres.svg +8 -0
- package/vendor/icon/svgs/logo_prometheus.svg +3 -0
- package/vendor/icon/svgs/logo_rabbitmq.svg +3 -0
- package/vendor/icon/svgs/logo_redis.svg +1 -0
- package/vendor/icon/svgs/logo_security.svg +7 -0
- package/vendor/icon/svgs/logo_site_search.svg +7 -0
- package/vendor/icon/svgs/logo_sketch.svg +12 -0
- package/vendor/icon/svgs/logo_slack.svg +8 -0
- package/vendor/icon/svgs/logo_uptime.svg +5 -0
- package/vendor/icon/svgs/logo_vulnerability_management.svg +7 -0
- package/vendor/icon/svgs/logo_webhook.svg +7 -0
- package/vendor/icon/svgs/logo_windows.svg +3 -0
- package/vendor/icon/svgs/logo_workplace_search.svg +7 -0
- package/vendor/icon/svgs/logstash_filter.svg +3 -0
- package/vendor/icon/svgs/logstash_if.svg +3 -0
- package/vendor/icon/svgs/logstash_input.svg +3 -0
- package/vendor/icon/svgs/logstash_output.svg +3 -0
- package/vendor/icon/svgs/logstash_queue.svg +3 -0
- package/vendor/icon/svgs/magnet.svg +3 -0
- package/vendor/icon/svgs/magnifyWithExclamation.svg +3 -0
- package/vendor/icon/svgs/magnifyWithMinus.svg +3 -0
- package/vendor/icon/svgs/magnifyWithPlus.svg +3 -0
- package/vendor/icon/svgs/map_marker.svg +3 -0
- package/vendor/icon/svgs/memory.svg +12 -0
- package/vendor/icon/svgs/menu.svg +3 -0
- package/vendor/icon/svgs/menuDown.svg +3 -0
- package/vendor/icon/svgs/menuLeft.svg +3 -0
- package/vendor/icon/svgs/menuRight.svg +3 -0
- package/vendor/icon/svgs/menuUp.svg +3 -0
- package/vendor/icon/svgs/merge.svg +3 -0
- package/vendor/icon/svgs/minimize.svg +3 -0
- package/vendor/icon/svgs/minus.svg +3 -0
- package/vendor/icon/svgs/minus_in_circle.svg +3 -0
- package/vendor/icon/svgs/minus_in_circle_filled.svg +3 -0
- package/vendor/icon/svgs/ml_classification_job.svg +7 -0
- package/vendor/icon/svgs/ml_create_advanced_job.svg +4 -0
- package/vendor/icon/svgs/ml_create_multi_metric_job.svg +4 -0
- package/vendor/icon/svgs/ml_create_population_job.svg +4 -0
- package/vendor/icon/svgs/ml_create_single_metric_job.svg +6 -0
- package/vendor/icon/svgs/ml_data_visualizer.svg +4 -0
- package/vendor/icon/svgs/ml_outlier_detection_job.svg +7 -0
- package/vendor/icon/svgs/ml_regression_job.svg +4 -0
- package/vendor/icon/svgs/mobile.svg +4 -0
- package/vendor/icon/svgs/moon.svg +3 -0
- package/vendor/icon/svgs/namespace.svg +3 -0
- package/vendor/icon/svgs/nested.svg +3 -0
- package/vendor/icon/svgs/node.svg +3 -0
- package/vendor/icon/svgs/number.svg +3 -0
- package/vendor/icon/svgs/offline.svg +3 -0
- package/vendor/icon/svgs/online.svg +3 -0
- package/vendor/icon/svgs/package.svg +3 -0
- package/vendor/icon/svgs/pageSelect.svg +3 -0
- package/vendor/icon/svgs/pagesSelect.svg +3 -0
- package/vendor/icon/svgs/paint.svg +3 -0
- package/vendor/icon/svgs/paper_clip.svg +3 -0
- package/vendor/icon/svgs/partial.svg +3 -0
- package/vendor/icon/svgs/pause.svg +3 -0
- package/vendor/icon/svgs/payment.svg +3 -0
- package/vendor/icon/svgs/pencil.svg +3 -0
- package/vendor/icon/svgs/percent.svg +5 -0
- package/vendor/icon/svgs/pin.svg +3 -0
- package/vendor/icon/svgs/pin_filled.svg +3 -0
- package/vendor/icon/svgs/pivot.svg +3 -0
- package/vendor/icon/svgs/play.svg +3 -0
- package/vendor/icon/svgs/playFilled.svg +3 -0
- package/vendor/icon/svgs/plus.svg +3 -0
- package/vendor/icon/svgs/plus_in_circle.svg +3 -0
- package/vendor/icon/svgs/plus_in_circle_filled.svg +3 -0
- package/vendor/icon/svgs/popout.svg +3 -0
- package/vendor/icon/svgs/push.svg +4 -0
- package/vendor/icon/svgs/question_in_circle.svg +3 -0
- package/vendor/icon/svgs/quote.svg +3 -0
- package/vendor/icon/svgs/refresh.svg +3 -0
- package/vendor/icon/svgs/reporter.svg +3 -0
- package/vendor/icon/svgs/return_key.svg +3 -0
- package/vendor/icon/svgs/save.svg +3 -0
- package/vendor/icon/svgs/scale.svg +3 -0
- package/vendor/icon/svgs/search.svg +3 -0
- package/vendor/icon/svgs/securitySignal.svg +3 -0
- package/vendor/icon/svgs/securitySignalDetected.svg +3 -0
- package/vendor/icon/svgs/securitySignalResolved.svg +3 -0
- package/vendor/icon/svgs/sessionViewer.svg +4 -0
- package/vendor/icon/svgs/shard.svg +3 -0
- package/vendor/icon/svgs/share.svg +3 -0
- package/vendor/icon/svgs/snowflake.svg +3 -0
- package/vendor/icon/svgs/sortAscending.svg +3 -0
- package/vendor/icon/svgs/sortDescending.svg +3 -0
- package/vendor/icon/svgs/sortLeft.svg +5 -0
- package/vendor/icon/svgs/sortRight.svg +3 -0
- package/vendor/icon/svgs/sort_down.svg +3 -0
- package/vendor/icon/svgs/sort_up.svg +3 -0
- package/vendor/icon/svgs/sortable.svg +3 -0
- package/vendor/icon/svgs/spaces.svg +3 -0
- package/vendor/icon/svgs/starPlusEmpty.svg +3 -0
- package/vendor/icon/svgs/starPlusFilled.svg +3 -0
- package/vendor/icon/svgs/star_empty.svg +3 -0
- package/vendor/icon/svgs/star_empty_space.svg +3 -0
- package/vendor/icon/svgs/star_filled.svg +3 -0
- package/vendor/icon/svgs/star_filled_space.svg +3 -0
- package/vendor/icon/svgs/star_minus_empty.svg +3 -0
- package/vendor/icon/svgs/star_minus_filled.svg +3 -0
- package/vendor/icon/svgs/stats.svg +3 -0
- package/vendor/icon/svgs/stop.svg +3 -0
- package/vendor/icon/svgs/stop_filled.svg +3 -0
- package/vendor/icon/svgs/stop_slash.svg +3 -0
- package/vendor/icon/svgs/storage.svg +11 -0
- package/vendor/icon/svgs/string.svg +3 -0
- package/vendor/icon/svgs/submodule.svg +3 -0
- package/vendor/icon/svgs/sun.svg +3 -0
- package/vendor/icon/svgs/swatch_input.svg +4 -0
- package/vendor/icon/svgs/symlink.svg +3 -0
- package/vendor/icon/svgs/tableOfContents.svg +3 -0
- package/vendor/icon/svgs/table_density_compact.svg +3 -0
- package/vendor/icon/svgs/table_density_expanded.svg +3 -0
- package/vendor/icon/svgs/table_density_normal.svg +3 -0
- package/vendor/icon/svgs/tag.svg +3 -0
- package/vendor/icon/svgs/tear.svg +3 -0
- package/vendor/icon/svgs/temperature.svg +6 -0
- package/vendor/icon/svgs/timeRefresh.svg +1 -0
- package/vendor/icon/svgs/timeline.svg +3 -0
- package/vendor/icon/svgs/timelineWithArrow.svg +6 -0
- package/vendor/icon/svgs/timeslider.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenAlias.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenAnnotation.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenArray.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenBinary.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenBoolean.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenClass.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenCompletionSuggester.svg +7 -0
- package/vendor/icon/svgs/tokens/tokenConstant.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenDate.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenDenseVector.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenElement.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenEnum.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenEnumMember.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenEvent.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenException.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenField.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenFile.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenFlattened.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenFunction.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenGeo.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenHistogram.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenIP.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenInterface.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenJoin.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenKey.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenKeyword.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenMethod.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenMetricCounter.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenMetricGauge.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenModule.svg +4 -0
- package/vendor/icon/svgs/tokens/tokenNamespace.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenNested.svg +6 -0
- package/vendor/icon/svgs/tokens/tokenNull.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenNumber.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenObject.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenOperator.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenPackage.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenParameter.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenPercolator.svg +4 -0
- package/vendor/icon/svgs/tokens/tokenProperty.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenRange.svg +6 -0
- package/vendor/icon/svgs/tokens/tokenRankFeature.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenRankFeatures.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenRepo.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenSearchType.svg +7 -0
- package/vendor/icon/svgs/tokens/tokenShape.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenString.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenStruct.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenSymbol.svg +3 -0
- package/vendor/icon/svgs/tokens/tokenTag.svg +4 -0
- package/vendor/icon/svgs/tokens/tokenText.svg +4 -0
- package/vendor/icon/svgs/tokens/tokenTokenCount.svg +8 -0
- package/vendor/icon/svgs/tokens/tokenVariable.svg +3 -0
- package/vendor/icon/svgs/training.svg +3 -0
- package/vendor/icon/svgs/trash.svg +3 -0
- package/vendor/icon/svgs/unfold.svg +1 -0
- package/vendor/icon/svgs/unlink.svg +4 -0
- package/vendor/icon/svgs/user.svg +4 -0
- package/vendor/icon/svgs/userAvatar.svg +6 -0
- package/vendor/icon/svgs/users.svg +4 -0
- package/vendor/icon/svgs/vector.svg +3 -0
- package/vendor/icon/svgs/videoPlayer.svg +3 -0
- package/vendor/icon/svgs/vis_area.svg +3 -0
- package/vendor/icon/svgs/vis_area_stacked.svg +3 -0
- package/vendor/icon/svgs/vis_bar_horizontal.svg +3 -0
- package/vendor/icon/svgs/vis_bar_horizontal_stacked.svg +3 -0
- package/vendor/icon/svgs/vis_bar_vertical.svg +3 -0
- package/vendor/icon/svgs/vis_bar_vertical_stacked.svg +3 -0
- package/vendor/icon/svgs/vis_gauge.svg +3 -0
- package/vendor/icon/svgs/vis_goal.svg +3 -0
- package/vendor/icon/svgs/vis_line.svg +3 -0
- package/vendor/icon/svgs/vis_map_coordinate.svg +3 -0
- package/vendor/icon/svgs/vis_map_region.svg +3 -0
- package/vendor/icon/svgs/vis_metric.svg +3 -0
- package/vendor/icon/svgs/vis_pie.svg +3 -0
- package/vendor/icon/svgs/vis_table.svg +3 -0
- package/vendor/icon/svgs/vis_tag_cloud.svg +3 -0
- package/vendor/icon/svgs/vis_text.svg +3 -0
- package/vendor/icon/svgs/vis_timelion.svg +3 -0
- package/vendor/icon/svgs/vis_vega.svg +3 -0
- package/vendor/icon/svgs/vis_visual_builder.svg +3 -0
- package/vendor/icon/svgs/warning.svg +4 -0
- package/vendor/icon/svgs/wordWrap.svg +4 -0
- package/vendor/icon/svgs/wordWrapDisabled.svg +3 -0
- package/vendor/icon/svgs/wrench.svg +3 -0
- package/dist/_app_/helpers/unique-id.js +0 -1
- package/dist/helpers/unique-id.js +0 -13
- package/dist/helpers/unique-id.js.map +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as mutationObserver } from './modifiers/mutation-observer.js';
|
|
2
|
+
export { default as outsideClickDetector } from './modifiers/outside-click-detector.js';
|
|
3
|
+
export { default as resizeObserver } from './modifiers/resize-observer.js';
|
|
4
|
+
export { default as screenReaderOnly } from './modifiers/screen-reader-only.js';
|
|
5
|
+
export { default as simpleStyle } from './modifiers/simple-style.js';
|
|
6
|
+
export { default as validatableControl } from './modifiers/validatable-control.js';
|
|
7
|
+
//# sourceMappingURL=modifiers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modifiers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as _applyDecoratedDescriptor, a as _initializerDefineProperty } from '../_rollupPluginBabelHelpers-_w_srC8C.js';
|
|
2
|
-
import Service from '@ember/service';
|
|
3
2
|
import { tracked } from '@glimmer/tracking';
|
|
3
|
+
import Service from '@ember/service';
|
|
4
4
|
import { merge } from 'lodash-es';
|
|
5
5
|
|
|
6
6
|
var _class, _descriptor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-config.js","sources":["../../src/services/eui-config.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"eui-config.js","sources":["../../src/services/eui-config.ts"],"sourcesContent":["import { tracked } from '@glimmer/tracking';\nimport Service from '@ember/service';\n\nimport { merge } from 'lodash-es';\n\nimport type { EuiButtonIconSignature } from '../components/eui-button-icon';\n\nexport interface EuiConfig {\n 'euiIcon.useSvg'?: boolean;\n euiIconUseSvg?: boolean;\n 'euiButtonIcon.size'?: EuiButtonIconSignature['Args']['iconSize'];\n euiComboBoxOptionsHeight?: number;\n}\n\nconst DEFAULT_CONFIG: EuiConfig = {\n 'euiIcon.useSvg': true,\n euiIconUseSvg: true,\n euiComboBoxOptionsHeight: 33\n};\n\nexport default class EuiConfigService extends Service {\n @tracked private _config: EuiConfig = DEFAULT_CONFIG;\n\n getConfig<T extends keyof EuiConfig>(key: T): EuiConfig[T] | undefined {\n return this._config[key];\n }\n\n updateConfig(config: Partial<EuiConfig>) {\n this._config = merge<Partial<EuiConfig>, EuiConfig, Partial<EuiConfig>>(\n {},\n this._config,\n config\n );\n }\n\n setConfig(config: EuiConfig) {\n this._config = config;\n }\n}\n"],"names":["DEFAULT_CONFIG","euiIconUseSvg","euiComboBoxOptionsHeight","EuiConfigService","_class","Service","constructor","args","_initializerDefineProperty","_descriptor","getConfig","key","_config","updateConfig","config","merge","setConfig","_applyDecoratedDescriptor","prototype","tracked","configurable","enumerable","writable","initializer"],"mappings":";;;;;;AAcA,MAAMA,cAAyB,GAAG;AAChC,EAAA,gBAAgB,EAAE,IAAI;AACtBC,EAAAA,aAAa,EAAE,IAAI;AACnBC,EAAAA,wBAAwB,EAAE,EAAA;AAC5B,CAAC,CAAA;AAEoBC,IAAAA,gBAAgB,IAAAC,MAAA,GAAtB,MAAMD,gBAAgB,SAASE,OAAO,CAAC;AAAAC,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA,CAAA;AAAAC,IAAAA,0BAAA,kBAAAC,WAAA,EAAA,IAAA,CAAA,CAAA;AAAA,GAAA;EAGpDC,SAASA,CAA4BC,GAAM,EAA4B;AACrE,IAAA,OAAO,IAAI,CAACC,OAAO,CAACD,GAAG,CAAC,CAAA;AAC1B,GAAA;EAEAE,YAAYA,CAACC,MAA0B,EAAE;AACvC,IAAA,IAAI,CAACF,OAAO,GAAGG,KAAK,CAClB,EAAE,EACF,IAAI,CAACH,OAAO,EACZE,MACF,CAAC,CAAA;AACH,GAAA;EAEAE,SAASA,CAACF,MAAiB,EAAE;IAC3B,IAAI,CAACF,OAAO,GAAGE,MAAM,CAAA;AACvB,GAAA;AACF,CAAC,GAAAL,WAAA,GAAAQ,yBAAA,CAAAb,MAAA,CAAAc,SAAA,EAAA,SAAA,EAAA,CAjBEC,OAAO,CAAA,EAAA;EAAAC,YAAA,EAAA,IAAA;EAAAC,UAAA,EAAA,IAAA;EAAAC,QAAA,EAAA,IAAA;AAAAC,EAAAA,WAAA,cAAA;AAAA,IAAA,OAA8BvB,cAAc,CAAA;AAAA,GAAA;AAAA,CAAA,CAAA,GAAAI,MAAA;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as _applyDecoratedDescriptor, b as _defineProperty } from '../_rollupPluginBabelHelpers-_w_srC8C.js';
|
|
2
|
-
import Service from '@ember/service';
|
|
3
2
|
import { action } from '@ember/object';
|
|
3
|
+
import Service from '@ember/service';
|
|
4
4
|
import { processStringToChildren } from '../i18n/util.js';
|
|
5
5
|
|
|
6
6
|
var _class;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-i18n.js","sources":["../../src/services/eui-i18n.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"eui-i18n.js","sources":["../../src/services/eui-i18n.ts"],"sourcesContent":["import { action } from '@ember/object';\nimport Service from '@ember/service';\n\nimport { processStringToChildren } from '../i18n/util';\n\ninterface LookupTokenOptions {\n token: string;\n i18nMapping?: Record<string, string>;\n valueDefault: string | ((values: Record<string, unknown>) => string);\n values?: Record<string, unknown>;\n}\n\nfunction flatten(\n acc: Record<string, unknown> = {},\n obj: Record<string, unknown>,\n path = ''\n) {\n path = path.length > 0 ? path + '.' : path;\n\n for (const key in obj) {\n if (typeof obj[key] === 'object' && obj[key] !== null) {\n flatten(acc, obj[key] as Record<string, unknown>, path + key);\n } else {\n acc[path + key] = obj[key];\n }\n }\n\n return acc;\n}\n\nexport default class EuiI18n extends Service {\n translations = {};\n @action\n addTranslations(translations: Record<string, unknown>) {\n // TODO: deep merge?\n this.translations = {\n ...this.translations,\n ...flatten({}, translations)\n };\n }\n\n get mapping() {\n return this.translations;\n }\n\n @action\n lookupToken(\n token: string,\n valueDefault: string | ((values: { [key: string]: unknown }) => string),\n values?: Record<string, any>\n ): string {\n return this._lookupToken({\n token,\n valueDefault,\n values\n });\n }\n\n getTokenFromMapping(\n token: LookupTokenOptions['token'],\n valueDefault: LookupTokenOptions['valueDefault'],\n _values: LookupTokenOptions['values'],\n i18nMapping: LookupTokenOptions['i18nMapping']\n ) {\n return (i18nMapping && i18nMapping[token]) || valueDefault;\n }\n\n @action\n _lookupToken(options: LookupTokenOptions) {\n const {\n token,\n i18nMapping = this.mapping,\n valueDefault,\n values = {}\n } = options;\n\n let renderable = this.getTokenFromMapping(\n token,\n valueDefault,\n values,\n i18nMapping\n );\n\n if (typeof renderable === 'function') {\n renderable = renderable(values);\n }\n\n const children = processStringToChildren(renderable, values);\n\n return children as string;\n }\n}\n\ndeclare module '@ember/service' {\n interface Registry {\n 'eui-i18n': EuiI18n;\n }\n}\n"],"names":["flatten","acc","obj","path","length","key","EuiI18n","_class","Service","constructor","args","_defineProperty","addTranslations","translations","mapping","lookupToken","token","valueDefault","values","_lookupToken","getTokenFromMapping","_values","i18nMapping","options","renderable","children","processStringToChildren","_applyDecoratedDescriptor","prototype","action","Object","getOwnPropertyDescriptor"],"mappings":";;;;;;AAYA,SAASA,OAAOA,CACdC,GAA4B,GAAG,EAAE,EACjCC,GAA4B,EAC5BC,IAAI,GAAG,EAAE,EACT;EACAA,IAAI,GAAGA,IAAI,CAACC,MAAM,GAAG,CAAC,GAAGD,IAAI,GAAG,GAAG,GAAGA,IAAI,CAAA;AAE1C,EAAA,KAAK,MAAME,GAAG,IAAIH,GAAG,EAAE;AACrB,IAAA,IAAI,OAAOA,GAAG,CAACG,GAAG,CAAC,KAAK,QAAQ,IAAIH,GAAG,CAACG,GAAG,CAAC,KAAK,IAAI,EAAE;MACrDL,OAAO,CAACC,GAAG,EAAEC,GAAG,CAACG,GAAG,CAAC,EAA6BF,IAAI,GAAGE,GAAG,CAAC,CAAA;AAC/D,KAAC,MAAM;MACLJ,GAAG,CAACE,IAAI,GAAGE,GAAG,CAAC,GAAGH,GAAG,CAACG,GAAG,CAAC,CAAA;AAC5B,KAAA;AACF,GAAA;AAEA,EAAA,OAAOJ,GAAG,CAAA;AACZ,CAAA;AAEqBK,IAAAA,OAAO,IAAAC,MAAA,G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MAAMO,QAAQ,GAAGC,uBAAuB,CAACF,UAAU,EAAEN,MAAM,CAAC,CAAA;AAE5D,IAAA,OAAOO,QAAQ,CAAA;AACjB,GAAA;AACF,CAAC,GAAAE,yBAAA,CAAApB,MAAA,CAAAqB,SAAA,EA3DEC,iBAAAA,EAAAA,CAAAA,MAAM,CAAAC,EAAAA,MAAA,CAAAC,wBAAA,CAAAxB,MAAA,CAAAqB,SAAA,EAAArB,iBAAAA,CAAAA,EAAAA,MAAA,CAAAqB,SAAA,CAAAD,EAAAA,yBAAA,CAAApB,MAAA,CAAAqB,SAAA,EAaNC,aAAAA,EAAAA,CAAAA,MAAM,CAAAC,EAAAA,MAAA,CAAAC,wBAAA,CAAAxB,MAAA,CAAAqB,SAAA,EAAArB,aAAAA,CAAAA,EAAAA,MAAA,CAAAqB,SAAA,CAAAD,EAAAA,yBAAA,CAAApB,MAAA,CAAAqB,SAAA,EAsBNC,cAAAA,EAAAA,CAAAA,MAAM,CAAAC,EAAAA,MAAA,CAAAC,wBAAA,CAAAxB,MAAA,CAAAqB,SAAA,EAAArB,cAAAA,CAAAA,EAAAA,MAAA,CAAAqB,SAAA,IAAArB,MAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combo-box-keys.js","sources":["../../../src/utils/accesibility/combo-box-keys.ts"],"sourcesContent":["/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n/**\n * These keys are used for navigating combobox UI components.\n *\n * ARROW_UP: Select the previous item in the list.\n * ARROW_DOWN: Select the next item in the list.\n * ENTER / TAB: Complete input with the current selection.\n * ESC: Deselect the current selection and hide the list.\n */\n\nimport { ARROW_DOWN, ENTER, ESCAPE, TAB
|
|
1
|
+
{"version":3,"file":"combo-box-keys.js","sources":["../../../src/utils/accesibility/combo-box-keys.ts"],"sourcesContent":["/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n/**\n * These keys are used for navigating combobox UI components.\n *\n * ARROW_UP: Select the previous item in the list.\n * ARROW_DOWN: Select the next item in the list.\n * ENTER / TAB: Complete input with the current selection.\n * ESC: Deselect the current selection and hide the list.\n */\n\nimport { ARROW_DOWN, ARROW_UP,ENTER, ESCAPE, TAB } from '../keys';\n\nexport const comboBoxKeys = {\n ARROW_DOWN,\n ARROW_UP,\n ENTER,\n ESCAPE,\n TAB\n};\n"],"names":["comboBoxKeys","ARROW_DOWN","ARROW_UP","ENTER","ESCAPE","TAB"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAaO,MAAMA,YAAY,GAAG;EAC1BC,UAAU;EACVC,QAAQ;EACRC,KAAK;EACLC,MAAM;AACNC,EAAAA,GAAAA;AACF;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breakpoint.js","sources":["../../src/utils/breakpoint.ts"],"sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0 and the Server Side Public License, v 1; you may not use this file except\n * in compliance with, at your election, the Elastic License 2.0 or the Server\n * Side Public License, v 1.\n */\n\nimport { keysOf } from '../components/common';\n\nexport type EuiBreakpointSize = 'xs' | 's' | 'm' | 'l' | 'xl';\n\nexport type EuiBreakpoints = {\n /**\n * Set the minimum window width at which to start to the breakpoint\n */\n [key in EuiBreakpointSize]: number;\n};\n\nexport const BREAKPOINTS: EuiBreakpoints = {\n xl: 1200,\n l: 992,\n m: 768,\n s: 575,\n xs: 0\n};\n\nexport const BREAKPOINT_KEYS = keysOf(BREAKPOINTS);\n\n/**\n * Given the current `width` and an object of `EuiBreakpoints`,\n * this function returns the string that is the name of the breakpoint key\n * that is less than or equal to the width\n *\n * @param {number} width Can either be the full window width or any width\n * @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width\n * @returns {string | undefined} Name of the breakpoint key or `undefined` if a key doesn't exist\n */\nexport function getBreakpoint(\n width: number,\n breakpoints: EuiBreakpoints = BREAKPOINTS\n): EuiBreakpointSize | undefined {\n // Find the breakpoint (key) whose value is <= windowWidth starting with largest first\n return keysOf(BREAKPOINTS).find((key) => breakpoints[key] <= width);\n}\n\n/**\n * Given the current `width` and a max breakpoint key,\n * this function returns true or false if the `width` falls within the max\n * breakpoint or any breakpoints below\n *\n * @param {number} width Can either be the full window width or any width\n * @param {EuiBreakpointSize | number} max The named breakpoint or custom number to check against\n * @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width\n * @returns {boolean} Will return `false` if it can't find a value for the `max` breakpoint\n */\nexport function isWithinMaxBreakpoint(\n width: number,\n max: EuiBreakpointSize | number,\n breakpoints: EuiBreakpoints = BREAKPOINTS\n): boolean {\n if (typeof max === 'number') {\n return width <= max;\n } else {\n const currentBreakpoint = getBreakpoint(width, breakpoints);\n return currentBreakpoint\n ? breakpoints[currentBreakpoint] <= breakpoints[max]\n : false;\n }\n}\n\n/**\n * Given the current `width` and a min breakpoint key,\n * this function returns true or false if the `width` falls within the min\n * breakpoint or any breakpoints above\n *\n * @param {number} width Can either be the full window width or any width\n * @param {EuiBreakpointSize | number} min The named breakpoint or custom number to check against\n * @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width\n * @returns {boolean} Will return `false` if it can't find a value for the `min` breakpoint\n */\nexport function isWithinMinBreakpoint(\n width: number,\n min: EuiBreakpointSize | number,\n breakpoints: EuiBreakpoints = BREAKPOINTS\n): boolean {\n if (typeof min === 'number') {\n return width >= min;\n } else {\n const currentBreakpoint = getBreakpoint(width, breakpoints);\n return currentBreakpoint\n ? breakpoints[currentBreakpoint] >= breakpoints[min]\n : false;\n }\n}\n\n/**\n * Given the current `width` and an array of breakpoint keys,\n * this function returns true or false if the `width` falls within\n * any of the named breakpoints\n *\n * @param {number} width Can either be the full window width or any width\n * @param {EuiBreakpointSize[]} sizes An array of named breakpoints\n * @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width\n * @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`\n */\nexport function isWithinBreakpoints(\n width: number,\n sizes: EuiBreakpointSize[],\n breakpoints: EuiBreakpoints = BREAKPOINTS\n): boolean {\n const currentBreakpoint = getBreakpoint(width, breakpoints);\n return currentBreakpoint ? sizes.includes(currentBreakpoint) : false;\n}\n"],"names":["BREAKPOINTS","xl","l","m","s","xs","BREAKPOINT_KEYS","keysOf","getBreakpoint","width","breakpoints","find","key","isWithinMaxBreakpoint","max","currentBreakpoint","isWithinMinBreakpoint","min","isWithinBreakpoints","sizes","includes"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAaO,MAAMA,WAA2B,GAAG;AACzCC,EAAAA,EAAE,EAAE,IAAI;AACRC,EAAAA,CAAC,EAAE,GAAG;AACNC,EAAAA,CAAC,EAAE,GAAG;AACNC,EAAAA,CAAC,EAAE,GAAG;AACNC,EAAAA,EAAE,EAAE,CAAA;AACN,EAAC;MAEYC,eAAe,GAAGC,MAAM,CAACP,WAAW,EAAC;;AAElD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASQ,aAAaA,CAC3BC,KAAa,EACbC,WAA2B,GAAGV,WAAW,EACV;AAC/B;AACA,EAAA,OAAOO,MAAM,CAACP,WAAW,CAAC,CAACW,IAAI,CAAEC,GAAG,IAAKF,WAAW,CAACE,GAAG,CAAC,IAAIH,KAAK,CAAC,CAAA;AACrE,CAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASI,qBAAqBA,CACnCJ,KAAa,EACbK,GAA+B,EAC/BJ,WAA2B,GAAGV,WAAW,EAChC;AACT,EAAA,IAAI,OAAOc,GAAG,KAAK,QAAQ,EAAE;IAC3B,OAAOL,KAAK,IAAIK,GAAG,CAAA;AACrB,GAAC,MAAM;AACL,IAAA,MAAMC,iBAAiB,GAAGP,aAAa,CAACC,KAAK,EAAEC,WAAW,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"breakpoint.js","sources":["../../src/utils/breakpoint.ts"],"sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0 and the Server Side Public License, v 1; you may not use this file except\n * in compliance with, at your election, the Elastic License 2.0 or the Server\n * Side Public License, v 1.\n */\n\nimport { keysOf } from '../components/common';\n\nexport type EuiBreakpointSize = 'xs' | 's' | 'm' | 'l' | 'xl';\n\nexport type EuiBreakpoints = {\n /**\n * Set the minimum window width at which to start to the breakpoint\n */\n [key in EuiBreakpointSize]: number;\n};\n\nexport const BREAKPOINTS: EuiBreakpoints = {\n xl: 1200,\n l: 992,\n m: 768,\n s: 575,\n xs: 0\n};\n\nexport const BREAKPOINT_KEYS = keysOf(BREAKPOINTS);\n\n/**\n * Given the current `width` and an object of `EuiBreakpoints`,\n * this function returns the string that is the name of the breakpoint key\n * that is less than or equal to the width\n *\n * @param {number} width Can either be the full window width or any width\n * @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width\n * @returns {string | undefined} Name of the breakpoint key or `undefined` if a key doesn't exist\n */\nexport function getBreakpoint(\n width: number,\n breakpoints: EuiBreakpoints = BREAKPOINTS\n): EuiBreakpointSize | undefined {\n // Find the breakpoint (key) whose value is <= windowWidth starting with largest first\n return keysOf(BREAKPOINTS).find((key) => breakpoints[key] <= width);\n}\n\n/**\n * Given the current `width` and a max breakpoint key,\n * this function returns true or false if the `width` falls within the max\n * breakpoint or any breakpoints below\n *\n * @param {number} width Can either be the full window width or any width\n * @param {EuiBreakpointSize | number} max The named breakpoint or custom number to check against\n * @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width\n * @returns {boolean} Will return `false` if it can't find a value for the `max` breakpoint\n */\nexport function isWithinMaxBreakpoint(\n width: number,\n max: EuiBreakpointSize | number,\n breakpoints: EuiBreakpoints = BREAKPOINTS\n): boolean {\n if (typeof max === 'number') {\n return width <= max;\n } else {\n const currentBreakpoint = getBreakpoint(width, breakpoints);\n\n return currentBreakpoint\n ? breakpoints[currentBreakpoint] <= breakpoints[max]\n : false;\n }\n}\n\n/**\n * Given the current `width` and a min breakpoint key,\n * this function returns true or false if the `width` falls within the min\n * breakpoint or any breakpoints above\n *\n * @param {number} width Can either be the full window width or any width\n * @param {EuiBreakpointSize | number} min The named breakpoint or custom number to check against\n * @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width\n * @returns {boolean} Will return `false` if it can't find a value for the `min` breakpoint\n */\nexport function isWithinMinBreakpoint(\n width: number,\n min: EuiBreakpointSize | number,\n breakpoints: EuiBreakpoints = BREAKPOINTS\n): boolean {\n if (typeof min === 'number') {\n return width >= min;\n } else {\n const currentBreakpoint = getBreakpoint(width, breakpoints);\n\n return currentBreakpoint\n ? breakpoints[currentBreakpoint] >= breakpoints[min]\n : false;\n }\n}\n\n/**\n * Given the current `width` and an array of breakpoint keys,\n * this function returns true or false if the `width` falls within\n * any of the named breakpoints\n *\n * @param {number} width Can either be the full window width or any width\n * @param {EuiBreakpointSize[]} sizes An array of named breakpoints\n * @param {EuiBreakpoints} breakpoints An object with keys for sizing and values for minimum width\n * @returns {boolean} Returns `true` if current breakpoint name is included in `sizes`\n */\nexport function isWithinBreakpoints(\n width: number,\n sizes: EuiBreakpointSize[],\n breakpoints: EuiBreakpoints = BREAKPOINTS\n): boolean {\n const currentBreakpoint = getBreakpoint(width, breakpoints);\n\n return currentBreakpoint ? sizes.includes(currentBreakpoint) : false;\n}\n"],"names":["BREAKPOINTS","xl","l","m","s","xs","BREAKPOINT_KEYS","keysOf","getBreakpoint","width","breakpoints","find","key","isWithinMaxBreakpoint","max","currentBreakpoint","isWithinMinBreakpoint","min","isWithinBreakpoints","sizes","includes"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAaO,MAAMA,WAA2B,GAAG;AACzCC,EAAAA,EAAE,EAAE,IAAI;AACRC,EAAAA,CAAC,EAAE,GAAG;AACNC,EAAAA,CAAC,EAAE,GAAG;AACNC,EAAAA,CAAC,EAAE,GAAG;AACNC,EAAAA,EAAE,EAAE,CAAA;AACN,EAAC;MAEYC,eAAe,GAAGC,MAAM,CAACP,WAAW,EAAC;;AAElD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASQ,aAAaA,CAC3BC,KAAa,EACbC,WAA2B,GAAGV,WAAW,EACV;AAC/B;AACA,EAAA,OAAOO,MAAM,CAACP,WAAW,CAAC,CAACW,IAAI,CAAEC,GAAG,IAAKF,WAAW,CAACE,GAAG,CAAC,IAAIH,KAAK,CAAC,CAAA;AACrE,CAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASI,qBAAqBA,CACnCJ,KAAa,EACbK,GAA+B,EAC/BJ,WAA2B,GAAGV,WAAW,EAChC;AACT,EAAA,IAAI,OAAOc,GAAG,KAAK,QAAQ,EAAE;IAC3B,OAAOL,KAAK,IAAIK,GAAG,CAAA;AACrB,GAAC,MAAM;AACL,IAAA,MAAMC,iBAAiB,GAAGP,aAAa,CAACC,KAAK,EAAEC,WAAW,CAAC,CAAA;AAE3D,IAAA,OAAOK,iBAAiB,GACpBL,WAAW,CAACK,iBAAiB,CAAC,IAAIL,WAAW,CAACI,GAAG,CAAC,GAClD,KAAK,CAAA;AACX,GAAA;AACF,CAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,qBAAqBA,CACnCP,KAAa,EACbQ,GAA+B,EAC/BP,WAA2B,GAAGV,WAAW,EAChC;AACT,EAAA,IAAI,OAAOiB,GAAG,KAAK,QAAQ,EAAE;IAC3B,OAAOR,KAAK,IAAIQ,GAAG,CAAA;AACrB,GAAC,MAAM;AACL,IAAA,MAAMF,iBAAiB,GAAGP,aAAa,CAACC,KAAK,EAAEC,WAAW,CAAC,CAAA;AAE3D,IAAA,OAAOK,iBAAiB,GACpBL,WAAW,CAACK,iBAAiB,CAAC,IAAIL,WAAW,CAACO,GAAG,CAAC,GAClD,KAAK,CAAA;AACX,GAAA;AACF,CAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,mBAAmBA,CACjCT,KAAa,EACbU,KAA0B,EAC1BT,WAA2B,GAAGV,WAAW,EAChC;AACT,EAAA,MAAMe,iBAAiB,GAAGP,aAAa,CAACC,KAAK,EAAEC,WAAW,CAAC,CAAA;EAE3D,OAAOK,iBAAiB,GAAGI,KAAK,CAACC,QAAQ,CAACL,iBAAiB,CAAC,GAAG,KAAK,CAAA;AACtE;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../src/utils/code/utils.ts"],"sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0 and the Server Side Public License, v 1; you may not use this file except\n * in compliance with, at your election, the Elastic License 2.0 or the Server\n * Side Public License, v 1.\n */\n\nimport { listLanguages, highlight } from 'refractor';\nimport type { AST, RefractorNode } from 'refractor';\nimport type { CommonArgs } from '../../components/common';\n\n/**\n * Utils shared between EuiCode and EuiCodeBlock\n */\n\nexport type EuiCodeSharedProps = CommonArgs & {\n /**\n * Sets the syntax highlighting for a specific language\n * @see [https://prismjs.com/#supported-languages](https://prismjs.com/#supported-languages) for options\n */\n language?: string;\n transparentBackground?: boolean;\n};\n\nexport const SUPPORTED_LANGUAGES = listLanguages();\nexport const DEFAULT_LANGUAGE = 'text';\n\nexport const checkSupportedLanguage = (language: string): string => {\n return SUPPORTED_LANGUAGES.includes(language) ? language : DEFAULT_LANGUAGE;\n};\n\nconst createDocument = () => {\n return document;\n};\n\nconst attributes = [\n 'src',\n 'alt',\n 'href',\n 'target',\n 'title',\n 'data-line-number',\n 'aria-hidden',\n 'style'\n];\nexport interface DynamicComponent {}\n\nexport const getHtmlContent = (nodes: RefractorNode[]) => {\n const document = createDocument();\n let components: DynamicComponent[] = [];\n\n const toElements = (parent: HTMLElement, nodes: RefractorNode[] = []) => {\n nodes?.forEach((node) => {\n let el = toElement(node);\n if (el) {\n parent.appendChild(el);\n }\n });\n return parent;\n };\n\n const createElement = (\n name: string,\n node: RefractorNode,\n className?: string\n ) => {\n let element = document.createElement(name);\n if (isAstElement(node)) {\n let properties = node.properties;\n let classNames = [];\n if (properties) {\n if (properties.className) {\n classNames.push(...properties.className);\n }\n for (let key in properties) {\n if (attributes.includes(key)) {\n let value = properties[key];\n if (key === 'style') {\n Object.keys(value).forEach((k: string) => {\n //@ts-ignore\n element.style[k] = `${value[k]}`;\n });\n } else {\n element.setAttribute(key, value as string);\n }\n } else {\n // temporary\n if (key !== 'className') {\n console.warn('Unmapped node property', key);\n }\n }\n }\n }\n if (className) {\n classNames.push(className);\n }\n if (classNames.length) {\n element.setAttribute('class', classNames.join(' '));\n }\n }\n return element;\n };\n\n const toElement = (node: RefractorNode) => {\n if (isAstElement(node)) {\n let { type } = node;\n if (type === 'element') {\n let element = createElement(node.tagName, node);\n return toElements(element, node.children);\n } else if (type === 'text') {\n //@ts-ignore\n return document.createTextNode(node.value);\n } else if (type === 'component') {\n let { inline } = node.properties;\n let element = createElement(inline ? 'span' : 'div', node, 'component');\n let { _children, ...properties } = node.properties;\n let content = toElements(document.createElement('span'), node.children);\n components.push({\n element,\n content,\n ...properties\n });\n return element;\n }\n }\n return;\n };\n\n const element = toElements(document.createElement('div'), nodes);\n\n return {\n element: element,\n components\n };\n};\n\nexport const isAstElement = (node: RefractorNode): node is AST.Element =>\n node.hasOwnProperty('type') &&\n (node.type === 'element' || node.type === 'text');\n\n/**\n * Line utils specific to EuiCodeBlock\n */\n\ntype ExtendedRefractorNode = RefractorNode & {\n lineStart?: number;\n lineEnd?: number;\n};\n\ninterface LineNumbersConfig {\n start: number;\n show: boolean;\n highlight?: string;\n}\n\n// Approximate width of a single digit/character\nconst CHAR_SIZE = 8;\nconst $euiSizeS = 8;\n\n// Creates an array of numbers from comma-separeated\n// string of numbers or number ranges using `-`\n// (e.g., \"1, 3-10, 15\")\nexport const parseLineRanges = (ranges: string) => {\n const highlights: number[] = [];\n ranges\n .replace(/\\s/g, '')\n .split(',')\n .forEach((line: string) => {\n if (line.includes('-')) {\n const range = line.split('-').map(Number);\n for (let i = range[0]!; i <= range[1]!; i++) {\n highlights.push(i);\n }\n } else {\n highlights.push(Number(line));\n }\n });\n return highlights;\n};\n\nconst addLineData = (\n nodes: ExtendedRefractorNode[],\n data: { lineNumber: number }\n): ExtendedRefractorNode[] => {\n return nodes.reduce<ExtendedRefractorNode[]>((result, node) => {\n const lineStart = data.lineNumber;\n if (node.type === 'text') {\n if (!node.value.match(/\\r\\n?|\\n/)) {\n node.lineStart = lineStart;\n node.lineEnd = lineStart;\n result.push(node);\n } else {\n const lines = node.value.split(/\\r\\n?|\\n/);\n lines.forEach((line, i) => {\n const num = i === 0 ? data.lineNumber : ++data.lineNumber;\n result.push({\n type: 'text',\n value: i === lines.length - 1 ? line : `${line}\\n`,\n lineStart: num,\n lineEnd: num\n });\n });\n }\n return result;\n }\n\n if (node.children && node.children.length) {\n const children = addLineData(node.children, data);\n const first = children[0];\n const last = children[children.length - 1];\n const start = first?.lineStart ?? lineStart;\n const end = last?.lineEnd ?? lineStart;\n if (start !== end) {\n children.forEach((node) => {\n result.push(node);\n });\n } else {\n node.lineStart = start;\n node.lineEnd = end;\n node.children = children;\n result.push(node);\n }\n return result;\n }\n\n result.push(node);\n return result;\n }, []);\n};\n\nfunction wrapLines(\n nodes: ExtendedRefractorNode[],\n options: { showLineNumbers: boolean; highlight?: string }\n) {\n const highlights = options.highlight\n ? parseLineRanges(options.highlight)\n : [];\n const grouped: ExtendedRefractorNode[][] = [];\n nodes.forEach((node) => {\n const lineStart = node.lineStart! - 1;\n if (grouped[lineStart]) {\n grouped[lineStart]?.push(node);\n } else {\n grouped[lineStart] = [node];\n }\n });\n const wrapped: RefractorNode[] = [];\n const digits = grouped.length.toString().length;\n const width = digits * CHAR_SIZE;\n grouped.forEach((node, i) => {\n const lineNumber = i + 1;\n const classes = ['euiCodeBlock__line'];\n if (highlights.includes(lineNumber)) {\n classes.push('euiCodeBlock__line--isHighlighted');\n }\n const children: RefractorNode[] = options.showLineNumbers\n ? [\n {\n type: 'element',\n tagName: 'span',\n properties: {\n style: { width: `${width}px` },\n ['data-line-number']: lineNumber,\n ['aria-hidden']: true,\n className: ['euiCodeBlock__lineNumber']\n },\n children: []\n },\n {\n type: 'element',\n tagName: 'span',\n properties: {\n style: {\n marginLeft: `${width + $euiSizeS}px`,\n width: `calc(100% - ${width}px)`\n },\n className: ['euiCodeBlock__lineText']\n },\n children: node\n }\n ]\n : node;\n wrapped.push({\n type: 'element',\n tagName: 'span',\n properties: {\n className: [classes.join(' ')]\n },\n children\n });\n });\n return wrapped;\n}\n\nexport const highlightByLine = (\n children: string,\n language: string,\n data: LineNumbersConfig\n) => {\n return wrapLines(\n addLineData(highlight(children, language), { lineNumber: data.start }),\n { showLineNumbers: data.show, highlight: data.highlight }\n );\n};\n"],"names":["SUPPORTED_LANGUAGES","listLanguages","DEFAULT_LANGUAGE","checkSupportedLanguage","language","includes","createDocument","document","attributes","getHtmlContent","nodes","components","toElements","parent","forEach","node","el","toElement","appendChild","createElement","name","className","element","isAstElement","properties","classNames","push","key","value","Object","keys","k","style","setAttribute","console","warn","length","join","type","tagName","children","createTextNode","inline","_children","content","hasOwnProperty","CHAR_SIZE","$euiSizeS","parseLineRanges","ranges","highlights","replace","split","line","range","map","Number","i","addLineData","data","reduce","result","lineStart","lineNumber","match","lineEnd","lines","num","first","last","start","end","wrapLines","options","highlight","grouped","wrapped","digits","toString","width","classes","showLineNumbers","marginLeft","highlightByLine","show"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAMA;AACA;AACA;;AAWaA,MAAAA,mBAAmB,GAAGC,aAAa,GAAE;AAC3C,MAAMC,gBAAgB,GAAG,OAAM;AAEzBC,MAAAA,sBAAsB,GAAIC,QAAgB,IAAa;EAClE,OAAOJ,mBAAmB,CAACK,QAAQ,CAACD,QAAQ,CAAC,GAAGA,QAAQ,GAAGF,gBAAgB,CAAA;AAC7E,EAAC;AAED,MAAMI,cAAc,GAAGA,MAAM;AAC3B,EAAA,OAAOC,QAAQ,CAAA;AACjB,CAAC,CAAA;AAED,MAAMC,UAAU,GAAG,CACjB,KAAK,EACL,KAAK,EACL,MAAM,EACN,QAAQ,EACR,OAAO,EACP,kBAAkB,EAClB,aAAa,EACb,OAAO,CACR,CAAA;AAGYC,MAAAA,cAAc,GAAIC,KAAsB,IAAK;AACxD,EAAA,MAAMH,QAAQ,GAAGD,cAAc,EAAE,CAAA;EACjC,IAAIK,UAA8B,GAAG,EAAE,CAAA;EAEvC,MAAMC,UAAU,GAAGA,CAACC,MAAmB,EAAEH,KAAsB,GAAG,EAAE,KAAK;AACvEA,IAAAA,KAAK,EAAEI,OAAO,CAAEC,IAAI,IAAK;A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,EACtE;IAAEW,eAAe,EAAEtB,IAAI,CAACyB,IAAI;IAAEV,SAAS,EAAEf,IAAI,CAACe,SAAAA;AAAU,GAC1D,CAAC,CAAA;AACH;;;;"}
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../src/utils/code/utils.ts"],"sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0 and the Server Side Public License, v 1; you may not use this file except\n * in compliance with, at your election, the Elastic License 2.0 or the Server\n * Side Public License, v 1.\n */\n\nimport { highlight,listLanguages } from 'refractor';\n\nimport type { CommonArgs } from '../../components/common';\nimport type { AST, RefractorNode } from 'refractor';\n\n/**\n * Utils shared between EuiCode and EuiCodeBlock\n */\n\nexport type EuiCodeSharedProps = CommonArgs & {\n /**\n * Sets the syntax highlighting for a specific language\n * @see [https://prismjs.com/#supported-languages](https://prismjs.com/#supported-languages) for options\n */\n language?: string;\n transparentBackground?: boolean;\n};\n\nexport const SUPPORTED_LANGUAGES = listLanguages();\nexport const DEFAULT_LANGUAGE = 'text';\n\nexport const checkSupportedLanguage = (language: string): string => {\n return SUPPORTED_LANGUAGES.includes(language) ? language : DEFAULT_LANGUAGE;\n};\n\nconst createDocument = () => {\n return document;\n};\n\nconst attributes = [\n 'src',\n 'alt',\n 'href',\n 'target',\n 'title',\n 'data-line-number',\n 'aria-hidden',\n 'style'\n];\n\nexport interface DynamicComponent {}\n\nexport const getHtmlContent = (nodes: RefractorNode[]) => {\n const document = createDocument();\n let components: DynamicComponent[] = [];\n\n const toElements = (parent: HTMLElement, nodes: RefractorNode[] = []) => {\n nodes?.forEach((node) => {\n let el = toElement(node);\n\n if (el) {\n parent.appendChild(el);\n }\n });\n\n return parent;\n };\n\n const createElement = (\n name: string,\n node: RefractorNode,\n className?: string\n ) => {\n let element = document.createElement(name);\n\n if (isAstElement(node)) {\n let properties = node.properties;\n let classNames = [];\n\n if (properties) {\n if (properties.className) {\n classNames.push(...properties.className);\n }\n\n for (let key in properties) {\n if (attributes.includes(key)) {\n let value = properties[key];\n\n if (key === 'style') {\n Object.keys(value).forEach((k: string) => {\n //@ts-ignore\n element.style[k] = `${value[k]}`;\n });\n } else {\n element.setAttribute(key, value as string);\n }\n } else {\n // temporary\n if (key !== 'className') {\n console.warn('Unmapped node property', key);\n }\n }\n }\n }\n\n if (className) {\n classNames.push(className);\n }\n\n if (classNames.length) {\n element.setAttribute('class', classNames.join(' '));\n }\n }\n\n return element;\n };\n\n const toElement = (node: RefractorNode) => {\n if (isAstElement(node)) {\n let { type } = node;\n\n if (type === 'element') {\n let element = createElement(node.tagName, node);\n\n return toElements(element, node.children);\n } else if (type === 'text') {\n //@ts-ignore\n return document.createTextNode(node.value);\n } else if (type === 'component') {\n let { inline } = node.properties;\n let element = createElement(inline ? 'span' : 'div', node, 'component');\n let { _children, ...properties } = node.properties;\n let content = toElements(document.createElement('span'), node.children);\n\n components.push({\n element,\n content,\n ...properties\n });\n\n return element;\n }\n }\n\n return;\n };\n\n const element = toElements(document.createElement('div'), nodes);\n\n return {\n element: element,\n components\n };\n};\n\nexport const isAstElement = (node: RefractorNode): node is AST.Element =>\n node.hasOwnProperty('type') &&\n (node.type === 'element' || node.type === 'text');\n\n/**\n * Line utils specific to EuiCodeBlock\n */\n\ntype ExtendedRefractorNode = RefractorNode & {\n lineStart?: number;\n lineEnd?: number;\n};\n\ninterface LineNumbersConfig {\n start: number;\n show: boolean;\n highlight?: string;\n}\n\n// Approximate width of a single digit/character\nconst CHAR_SIZE = 8;\nconst $euiSizeS = 8;\n\n// Creates an array of numbers from comma-separeated\n// string of numbers or number ranges using `-`\n// (e.g., \"1, 3-10, 15\")\nexport const parseLineRanges = (ranges: string) => {\n const highlights: number[] = [];\n\n ranges\n .replace(/\\s/g, '')\n .split(',')\n .forEach((line: string) => {\n if (line.includes('-')) {\n const range = line.split('-').map(Number);\n\n for (let i = range[0]!; i <= range[1]!; i++) {\n highlights.push(i);\n }\n } else {\n highlights.push(Number(line));\n }\n });\n\n return highlights;\n};\n\nconst addLineData = (\n nodes: ExtendedRefractorNode[],\n data: { lineNumber: number }\n): ExtendedRefractorNode[] => {\n return nodes.reduce<ExtendedRefractorNode[]>((result, node) => {\n const lineStart = data.lineNumber;\n\n if (node.type === 'text') {\n if (!node.value.match(/\\r\\n?|\\n/)) {\n node.lineStart = lineStart;\n node.lineEnd = lineStart;\n result.push(node);\n } else {\n const lines = node.value.split(/\\r\\n?|\\n/);\n\n lines.forEach((line, i) => {\n const num = i === 0 ? data.lineNumber : ++data.lineNumber;\n\n result.push({\n type: 'text',\n value: i === lines.length - 1 ? line : `${line}\\n`,\n lineStart: num,\n lineEnd: num\n });\n });\n }\n\n return result;\n }\n\n if (node.children && node.children.length) {\n const children = addLineData(node.children, data);\n const first = children[0];\n const last = children[children.length - 1];\n const start = first?.lineStart ?? lineStart;\n const end = last?.lineEnd ?? lineStart;\n\n if (start !== end) {\n children.forEach((node) => {\n result.push(node);\n });\n } else {\n node.lineStart = start;\n node.lineEnd = end;\n node.children = children;\n result.push(node);\n }\n\n return result;\n }\n\n result.push(node);\n\n return result;\n }, []);\n};\n\nfunction wrapLines(\n nodes: ExtendedRefractorNode[],\n options: { showLineNumbers: boolean; highlight?: string }\n) {\n const highlights = options.highlight\n ? parseLineRanges(options.highlight)\n : [];\n const grouped: ExtendedRefractorNode[][] = [];\n\n nodes.forEach((node) => {\n const lineStart = node.lineStart! - 1;\n\n if (grouped[lineStart]) {\n grouped[lineStart]?.push(node);\n } else {\n grouped[lineStart] = [node];\n }\n });\n\n const wrapped: RefractorNode[] = [];\n const digits = grouped.length.toString().length;\n const width = digits * CHAR_SIZE;\n\n grouped.forEach((node, i) => {\n const lineNumber = i + 1;\n const classes = ['euiCodeBlock__line'];\n\n if (highlights.includes(lineNumber)) {\n classes.push('euiCodeBlock__line--isHighlighted');\n }\n\n const children: RefractorNode[] = options.showLineNumbers\n ? [\n {\n type: 'element',\n tagName: 'span',\n properties: {\n style: { width: `${width}px` },\n ['data-line-number']: lineNumber,\n ['aria-hidden']: true,\n className: ['euiCodeBlock__lineNumber']\n },\n children: []\n },\n {\n type: 'element',\n tagName: 'span',\n properties: {\n style: {\n marginLeft: `${width + $euiSizeS}px`,\n width: `calc(100% - ${width}px)`\n },\n className: ['euiCodeBlock__lineText']\n },\n children: node\n }\n ]\n : node;\n\n wrapped.push({\n type: 'element',\n tagName: 'span',\n properties: {\n className: [classes.join(' ')]\n },\n children\n });\n });\n\n return wrapped;\n}\n\nexport const highlightByLine = (\n children: string,\n language: string,\n data: LineNumbersConfig\n) => {\n return wrapLines(\n addLineData(highlight(children, language), { lineNumber: data.start }),\n { showLineNumbers: data.show, highlight: data.highlight }\n );\n};\n"],"names":["SUPPORTED_LANGUAGES","listLanguages","DEFAULT_LANGUAGE","checkSupportedLanguage","language","includes","createDocument","document","attributes","getHtmlContent","nodes","components","toElements","parent","forEach","node","el","toElement","appendChild","createElement","name","className","element","isAstElement","properties","classNames","push","key","value","Object","keys","k","style","setAttribute","console","warn","length","join","type","tagName","children","createTextNode","inline","_children","content","hasOwnProperty","CHAR_SIZE","$euiSizeS","parseLineRanges","ranges","highlights","replace","split","line","range","map","Number","i","addLineData","data","reduce","result","lineStart","lineNumber","match","lineEnd","lines","num","first","last","start","end","wrapLines","options","highlight","grouped","wrapped","digits","toString","width","classes","showLineNumbers","marginLeft","highlightByLine","show"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAOA;AACA;AACA;;AAWaA,MAAAA,mBAAmB,GAAGC,aAAa,GAAE;AAC3C,MAAMC,gBAAgB,GAAG,OAAM;AAEzBC,MAAAA,sBAAsB,GAAIC,QAAgB,IAAa;EAClE,OAAOJ,mBAAmB,CAACK,QAAQ,CAACD,QAAQ,CAAC,GAAGA,QAAQ,GAAGF,gBAAgB,CAAA;AAC7E,EAAC;AAED,MAAMI,cAAc,GAAGA,MAAM;AAC3B,EAAA,OAAOC,QAAQ,CAAA;AACjB,CAA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AACVH,QAAAA,SAAS,EAAE,CAAC2D,OAAO,CAAC3C,IAAI,CAAC,GAAG,CAAC,CAAA;OAC9B;AACDG,MAAAA,QAAAA;AACF,KAAC,CAAC,CAAA;AACJ,GAAC,CAAC,CAAA;AAEF,EAAA,OAAOoC,OAAO,CAAA;AAChB,CAAA;AAEO,MAAMO,eAAe,GAAGA,CAC7B3C,QAAgB,EAChBpC,QAAgB,EAChBuD,IAAuB,KACpB;EACH,OAAOa,SAAS,CACdd,WAAW,CAACgB,SAAS,CAAClC,QAAQ,EAAEpC,QAAQ,CAAC,EAAE;IAAE2D,UAAU,EAAEJ,IAAI,CAACW,KAAAA;AAAM,GAAC,CAAC,EACtE;IAAEW,eAAe,EAAEtB,IAAI,CAACyB,IAAI;IAAEV,SAAS,EAAEf,IAAI,CAACe,SAAAA;AAAU,GAC1D,CAAC,CAAA;AACH;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color_palette.js","sources":["../../../src/utils/color/color_palette.ts"],"sourcesContent":["/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport chroma from 'chroma-js';\n\nexport const MID_COLOR_STOP = '#EBEFF5';\n\n/**\n * This function takes an array of colors and returns an array of interpolated\n * colors based on the number of steps/len needed for use in UI elements such as charts.\n * Derived from https://github.com/gka/palettes (Unlicensed)\n */\n\nexport function colorPalette(\n /**\n * The main color code or array of codes\n */\n colors: string[],\n /**\n * The number of colors in the resulting array (default 10)\n */\n len: number = 10,\n /**\n * Forces color interpolation to be calculated separately for each half (default false)\n */\n diverging: boolean = false,\n /**\n * Uses a more static interpolation for non-continuous spectrums\n */\n categorical: boolean = false\n): string[] {\n let hexStart: string[] = colors.slice();\n let hexEnd: string[] = [];\n\n const even = len % 2 === 0;\n const numColorsLeft = diverging ? Math.ceil(len / 2) + (even ? 1 : 0) : len;\n const numColorsRight = diverging ? Math.ceil(len / 2) + (even ? 1 : 0) : 0;\n\n // If only a single color is provided prepend the mid-point color\n if (hexStart.length === 1) {\n hexStart.unshift(MID_COLOR_STOP);\n }\n\n // If diverging, split the start array and duplicate the mid color\n if (diverging) {\n // If there's no midpoint, create one\n if (hexStart.length < 3) {\n hexStart[2] = hexStart[1]!;\n hexStart[1] = MID_COLOR_STOP;\n }\n\n const numColorsHalf = Math.ceil(hexStart.length / 2);\n\n const colorsLeft = hexStart.filter(function (_item, index) {\n if (index < numColorsHalf) {\n return true; // keep it\n }\n return false;\n });\n const colorsRight = hexStart\n .reverse()\n .filter(function (_item, index) {\n if (index < numColorsHalf) {\n return true; // keep it\n }\n return false;\n })\n .reverse();\n\n hexStart = colorsLeft;\n hexEnd = colorsRight;\n }\n\n function createSteps(colors: string[], steps: number): string[] {\n if (!colors.length) {\n return colors;\n }\n\n if (!categorical) {\n return chroma.bezier(colors).scale().correctLightness().colors(steps);\n } else {\n return chroma.scale(colors).colors(steps);\n }\n }\n\n const stepsLeft = createSteps(hexStart, numColorsLeft);\n const stepsRight = createSteps(hexEnd, numColorsRight);\n\n return (\n even && diverging ? stepsLeft.slice(0, stepsLeft.length - 1) : stepsLeft\n ).concat(stepsRight.slice(1));\n}\n"],"names":["MID_COLOR_STOP","colorPalette","colors","len","diverging","categorical","hexStart","slice","hexEnd","even","numColorsLeft","Math","ceil","numColorsRight","length","unshift","numColorsHalf","colorsLeft","filter","_item","index","colorsRight","reverse","createSteps","steps","chroma","bezier","scale","correctLightness","stepsLeft","stepsRight","concat"],"mappings":";;AAAA;AAC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Q,CAACQ,MAAM,GAAG,CAAC,CAAC,CAAA;IAEpD,MAAMG,UAAU,GAAGX,QAAQ,CAACY,MAAM,CAAC,UAAUC,KAAK,EAAEC,KAAK,EAAE;MACzD,IAAIA,KAAK,GAAGJ,aAAa,EAAE;QACzB,OAAO,IAAI,CAAC;AACd,OAAA;;
|
|
1
|
+
{"version":3,"file":"color_palette.js","sources":["../../../src/utils/color/color_palette.ts"],"sourcesContent":["/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nimport chroma from 'chroma-js';\n\nexport const MID_COLOR_STOP = '#EBEFF5';\n\n/**\n * This function takes an array of colors and returns an array of interpolated\n * colors based on the number of steps/len needed for use in UI elements such as charts.\n * Derived from https://github.com/gka/palettes (Unlicensed)\n */\n\nexport function colorPalette(\n /**\n * The main color code or array of codes\n */\n colors: string[],\n /**\n * The number of colors in the resulting array (default 10)\n */\n len: number = 10,\n /**\n * Forces color interpolation to be calculated separately for each half (default false)\n */\n diverging: boolean = false,\n /**\n * Uses a more static interpolation for non-continuous spectrums\n */\n categorical: boolean = false\n): string[] {\n let hexStart: string[] = colors.slice();\n let hexEnd: string[] = [];\n\n const even = len % 2 === 0;\n const numColorsLeft = diverging ? Math.ceil(len / 2) + (even ? 1 : 0) : len;\n const numColorsRight = diverging ? Math.ceil(len / 2) + (even ? 1 : 0) : 0;\n\n // If only a single color is provided prepend the mid-point color\n if (hexStart.length === 1) {\n hexStart.unshift(MID_COLOR_STOP);\n }\n\n // If diverging, split the start array and duplicate the mid color\n if (diverging) {\n // If there's no midpoint, create one\n if (hexStart.length < 3) {\n hexStart[2] = hexStart[1]!;\n hexStart[1] = MID_COLOR_STOP;\n }\n\n const numColorsHalf = Math.ceil(hexStart.length / 2);\n\n const colorsLeft = hexStart.filter(function (_item, index) {\n if (index < numColorsHalf) {\n return true; // keep it\n }\n\n return false;\n });\n const colorsRight = hexStart\n .reverse()\n .filter(function (_item, index) {\n if (index < numColorsHalf) {\n return true; // keep it\n }\n\n return false;\n })\n .reverse();\n\n hexStart = colorsLeft;\n hexEnd = colorsRight;\n }\n\n function createSteps(colors: string[], steps: number): string[] {\n if (!colors.length) {\n return colors;\n }\n\n if (!categorical) {\n return chroma.bezier(colors).scale().correctLightness().colors(steps);\n } else {\n return chroma.scale(colors).colors(steps);\n }\n }\n\n const stepsLeft = createSteps(hexStart, numColorsLeft);\n const stepsRight = createSteps(hexEnd, numColorsRight);\n\n return (\n even && diverging ? stepsLeft.slice(0, stepsLeft.length - 1) : stepsLeft\n ).concat(stepsRight.slice(1));\n}\n"],"names":["MID_COLOR_STOP","colorPalette","colors","len","diverging","categorical","hexStart","slice","hexEnd","even","numColorsLeft","Math","ceil","numColorsRight","length","unshift","numColorsHalf","colorsLeft","filter","_item","index","colorsRight","reverse","createSteps","steps","chroma","bezier","scale","correctLightness","stepsLeft","stepsRight","concat"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIO,MAAMA,cAAc,GAAG,UAAS;;AAEvC;AACA;AACA;AACA;AACA;;AAEO,SAASC,YAAYA;AAC1B;AACF;AACA;AACEC,MAAgB;AAChB;AACF;AACA;AACEC,GAAW,GAAG,EAAE;AAChB;AACF;AACA;AACEC,SAAkB,GAAG,KAAK;AAC1B;AACF;AACA;AACEC,WAAoB,GAAG,KAAK,EAClB;AACV,EAAA,IAAIC,QAAkB,GAAGJ,MAAM,CA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AAE;MAC9B,IAAIA,KAAK,GAAGJ,aAAa,EAAE;QACzB,OAAO,IAAI,CAAC;AACd,OAAA;;AAEA,MAAA,OAAO,KAAK,CAAA;AACd,KAAC,CAAC,CACDM,OAAO,EAAE,CAAA;AAEZhB,IAAAA,QAAQ,GAAGW,UAAU,CAAA;AACrBT,IAAAA,MAAM,GAAGa,WAAW,CAAA;AACtB,GAAA;AAEA,EAAA,SAASE,WAAWA,CAACrB,MAAgB,EAAEsB,KAAa,EAAY;AAC9D,IAAA,IAAI,CAACtB,MAAM,CAACY,MAAM,EAAE;AAClB,MAAA,OAAOZ,MAAM,CAAA;AACf,KAAA;IAEA,IAAI,CAACG,WAAW,EAAE;AAChB,MAAA,OAAOoB,MAAM,CAACC,MAAM,CAACxB,MAAM,CAAC,CAACyB,KAAK,EAAE,CAACC,gBAAgB,EAAE,CAAC1B,MAAM,CAACsB,KAAK,CAAC,CAAA;AACvE,KAAC,MAAM;MACL,OAAOC,MAAM,CAACE,KAAK,CAACzB,MAAM,CAAC,CAACA,MAAM,CAACsB,KAAK,CAAC,CAAA;AAC3C,KAAA;AACF,GAAA;AAEA,EAAA,MAAMK,SAAS,GAAGN,WAAW,CAACjB,QAAQ,EAAEI,aAAa,CAAC,CAAA;AACtD,EAAA,MAAMoB,UAAU,GAAGP,WAAW,CAACf,MAAM,EAAEK,cAAc,CAAC,CAAA;AAEtD,EAAA,OAAO,CACLJ,IAAI,IAAIL,SAAS,GAAGyB,SAAS,CAACtB,KAAK,CAAC,CAAC,EAAEsB,SAAS,CAACf,MAAM,GAAG,CAAC,CAAC,GAAGe,SAAS,EACxEE,MAAM,CAACD,UAAU,CAACvB,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;AAC/B;;;;"}
|
|
@@ -70,6 +70,7 @@ const euiPaletteColorBlind = ({
|
|
|
70
70
|
const palettes = base.map(color => {
|
|
71
71
|
// Create the darkest and lightest versions of each color using black and white
|
|
72
72
|
const palette = colorPalette(['black', color, 'white'], 5, false, true);
|
|
73
|
+
|
|
73
74
|
// Then removing the extremes
|
|
74
75
|
palette.pop();
|
|
75
76
|
palette.shift();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui_palettes.js","sources":["../../../src/utils/color/eui_palettes.ts"],"sourcesContent":["/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n/**\n * Color blind palette with text is meant for use when text is applied on top of the color.\n * It increases the brightness of the color to give the text more contrast.\n */\n\nimport chroma from 'chroma-js';\nimport { colorPalette } from './color_palette';\n\nexport type EuiPalette = string[];\n\n/* tslint:disable */\nconst flatten = (arr: any[]) => [].concat(...arr);\n\nconst euiPalette = function (\n colors: string[],\n steps: number,\n diverge: boolean = false,\n categorical: boolean = true\n): EuiPalette {\n // This function also trims the first color so white/black is never a color\n if (!diverge && steps > 1) {\n const palette = colorPalette(colors, steps + 1);\n palette.shift();\n return palette;\n }\n\n return colorPalette(colors, steps, diverge, categorical);\n};\n\nexport interface EuiPaletteColorBlindProps {\n /**\n * How many variations of the series is needed\n */\n rotations?: number;\n /**\n * Order similar colors as `group`s or just `append` each variation\n */\n order?: 'append' | 'group';\n /**\n * Specifies if the direction of the color variations\n */\n direction?: 'lighter' | 'darker' | 'both';\n /**\n * Use the default sort order, or re-sort them based on the color wheel (natural)\n */\n sortBy?: 'default' | 'natural';\n /**\n * Shift the sorting order by a certain number when used in conjunction with `'natural'` `sortBy`.\n * Defaults to a number close to green.\n */\n sortShift?: string;\n}\n\nexport const euiPaletteColorBlind = ({\n rotations = 1,\n order = 'append',\n direction = 'lighter',\n sortBy = 'default',\n sortShift = '-100'\n}: EuiPaletteColorBlindProps = {}): EuiPalette => {\n let colors: string[] = [];\n\n let base = [\n '#54B399', // 0 green\n '#6092C0', // 1 blue\n '#D36086', // 2 dark pink\n '#9170B8', // 3 purple\n '#CA8EAE', // 4 light pink\n '#D6BF57', // 5 yellow\n '#B9A888', // 6 tan\n '#DA8B45', // 7 orange\n '#AA6556', // 8 brown\n '#E7664C' // 9 red\n ];\n\n if (sortBy === 'natural') {\n // Sort the colors based on the color wheel, but shifting the values based on sortShift\n base = [...base].sort(function (a, b) {\n return (\n chroma(a).set('hsl.h', sortShift).hsl()[0] -\n chroma(b).set('hsl.h', sortShift).hsl()[0]\n );\n });\n }\n\n if (rotations > 1) {\n const palettes = base.map((color) => {\n // Create the darkest and lightest versions of each color using black and white\n const palette = colorPalette(['black', color, 'white'], 5, false, true);\n // Then removing the extremes\n palette.pop();\n palette.shift();\n\n switch (direction) {\n case 'lighter':\n return colorPalette(\n [palette[1]!, palette[2]!],\n rotations,\n false,\n true\n );\n case 'darker':\n return colorPalette(\n [palette[1]!, palette[0]!],\n rotations,\n false,\n true\n );\n case 'both':\n return colorPalette(palette, rotations, false, true);\n }\n });\n\n if (order === 'group') {\n colors = flatten(palettes);\n } else {\n for (let i = 0; i < rotations; i++) {\n const rotation = palettes.map((palette) => palette[i]) as string[];\n colors.push(...rotation);\n }\n }\n } else {\n colors = base;\n }\n\n return colors;\n};\n\nexport const euiPaletteColorBlindBehindText = (\n paletteProps: EuiPaletteColorBlindProps = {}\n) => {\n const originalPalette = euiPaletteColorBlind(paletteProps);\n const newPalette = originalPalette.map((color) =>\n chroma(color).brighten(0.5).hex()\n );\n return newPalette;\n};\n\nexport const euiPaletteForLightBackground = function (): EuiPalette {\n return ['#006BB4', '#017D73', '#F5A700', '#BD271E', '#DD0A73'];\n};\n\nexport const euiPaletteForDarkBackground = function (): EuiPalette {\n return ['#1BA9F5', '#7DE2D1', '#F990C0', '#F66', '#FFCE7A'];\n};\n\nconst positiveColor: HEX = '#209280';\nconst negativeColor: HEX = '#CC5642';\nconst lightNegativeColor: HEX = euiPaletteColorBlind()[9]!;\nconst coolArray: HEX[] = [euiPaletteColorBlind()[1]!, '#6092C0'];\nconst warmArray: HEX[] = [euiPaletteColorBlind()[7]!, euiPaletteColorBlind()[9]!];\n\nexport const euiPaletteForStatus = function (steps: number): EuiPalette {\n if (steps === 1) {\n return [euiPaletteColorBlind()[0]!];\n }\n if (steps <= 3) {\n return euiPalette(\n [\n euiPaletteColorBlind()[0]!,\n euiPaletteColorBlind()[5]!,\n lightNegativeColor\n ],\n steps,\n true\n );\n }\n return euiPalette(\n [\n positiveColor,\n euiPaletteColorBlind()[0]!,\n euiPaletteColorBlind()[5]!,\n lightNegativeColor,\n negativeColor\n ],\n steps,\n true\n );\n};\n\nexport const euiPaletteForTemperature = function (steps: number): EuiPalette {\n const cools = colorPalette([...coolArray.slice().reverse(), '#EBEFF5'], 3);\n const warms = colorPalette(['#F4F3DB', ...warmArray], 3);\n\n if (steps === 1) {\n return [cools[0]!];\n } else if (steps <= 3) {\n return euiPalette([cools[0]!, lightNegativeColor], steps, true);\n }\n\n return euiPalette([...cools, ...warms], steps, true);\n};\n\nexport const euiPaletteComplimentary = function (steps: number): EuiPalette {\n if (steps === 1) {\n return [euiPaletteColorBlind()[1]!];\n }\n\n return euiPalette(\n [euiPaletteColorBlind()[1]!, euiPaletteColorBlind()[7]!],\n steps,\n true\n );\n};\n\nexport const euiPaletteNegative = function (steps: number): EuiPalette {\n if (steps === 1) {\n return [lightNegativeColor];\n }\n\n return euiPalette(['white', negativeColor], steps);\n};\n\nexport const euiPalettePositive = function (steps: number): EuiPalette {\n if (steps === 1) {\n return [euiPaletteColorBlind()[0]!];\n }\n\n return euiPalette(['white', positiveColor], steps);\n};\n\nexport const euiPaletteCool = function (steps: number): EuiPalette {\n if (steps === 1) {\n return [coolArray[1]!];\n }\n\n return euiPalette(['white', ...coolArray], steps);\n};\n\nexport const euiPaletteWarm = function (steps: number): EuiPalette {\n if (steps === 1) {\n return [lightNegativeColor];\n }\n\n return euiPalette(['#FBFBDC', ...warmArray], steps);\n};\n\nexport const euiPaletteGray = function (steps: number): EuiPalette {\n if (steps === 1) {\n return ['#98a2b3'];\n }\n\n return euiPalette(\n ['white', '#d3dae6', '#98a2b3', '#69707d', '#343741'],\n steps,\n false\n );\n};\n"],"names":["flatten","arr","concat","euiPalette","colors","steps","diverge","categorical","palette","colorPalette","shift","euiPaletteColorBlind","rotations","order","direction","sortBy","sortShift","base","sort","a","b","chroma","set","hsl","palettes","map","color","pop","i","rotation","push","euiPaletteColorBlindBehindText","paletteProps","originalPalette","newPalette","brighten","hex","euiPaletteForLightBackground","euiPaletteForDarkBackground","positiveColor","negativeColor","lightNegativeColor","coolArray","warmArray","euiPaletteForStatus","euiPaletteForTemperature","cools","slice","reverse","warms","euiPaletteComplimentary","euiPaletteNegative","euiPalettePositive","euiPaletteCool","euiPaletteWarm","euiPaletteGray"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAYA;AACA,MAAMA,OAAO,GAAIC,GAAU,IAAK,EAAE,CAACC,MAAM,CAAC,GAAGD,GAAG,CAAC,CAAA;AAEjD,MAAME,UAAU,GAAG,UACjBC,MAAgB,EAChBC,KAAa,EACbC,OAAgB,GAAG,KAAK,EACxBC,WAAoB,GAAG,IAAI,EACf;AACZ;AACA,EAAA,IAAI,CAACD,OAAO,IAAID,KAAK,GAAG,CAAC,EAAE;IACzB,MAAMG,OAAO,GAAGC,YAAY,CAACL,MAAM,EAAEC,KAAK,GAAG,CAAC,CAAC,CAAA;IAC/CG,OAAO,CAACE,KAAK,EAAE,CAAA;AACf,IAAA,OAAOF,OAAO,CAAA;AAChB,GAAA;EAEA,OAAOC,YAAY,CAACL,MAAM,EAAEC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["/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\n/**\n * Color blind palette with text is meant for use when text is applied on top of the color.\n * It increases the brightness of the color to give the text more contrast.\n */\n\nimport chroma from 'chroma-js';\n\nimport { colorPalette } from './color_palette';\n\nexport type EuiPalette = string[];\n\n/* tslint:disable */\nconst flatten = (arr: any[]) => [].concat(...arr);\n\nconst euiPalette = function (\n colors: string[],\n steps: number,\n diverge: boolean = false,\n categorical: boolean = true\n): EuiPalette {\n // This function also trims the first color so white/black is never a color\n if (!diverge && steps > 1) {\n const palette = colorPalette(colors, steps + 1);\n\n palette.shift();\n\n return palette;\n }\n\n return colorPalette(colors, steps, diverge, categorical);\n};\n\nexport interface EuiPaletteColorBlindProps {\n /**\n * How many variations of the series is needed\n */\n rotations?: number;\n /**\n * Order similar colors as `group`s or just `append` each variation\n */\n order?: 'append' | 'group';\n /**\n * Specifies if the direction of the color variations\n */\n direction?: 'lighter' | 'darker' | 'both';\n /**\n * Use the default sort order, or re-sort them based on the color wheel (natural)\n */\n sortBy?: 'default' | 'natural';\n /**\n * Shift the sorting order by a certain number when used in conjunction with `'natural'` `sortBy`.\n * Defaults to a number close to green.\n */\n sortShift?: string;\n}\n\nexport const euiPaletteColorBlind = ({\n rotations = 1,\n order = 'append',\n direction = 'lighter',\n sortBy = 'default',\n sortShift = '-100'\n}: EuiPaletteColorBlindProps = {}): EuiPalette => {\n let colors: string[] = [];\n\n let base = [\n '#54B399', // 0 green\n '#6092C0', // 1 blue\n '#D36086', // 2 dark pink\n '#9170B8', // 3 purple\n '#CA8EAE', // 4 light pink\n '#D6BF57', // 5 yellow\n '#B9A888', // 6 tan\n '#DA8B45', // 7 orange\n '#AA6556', // 8 brown\n '#E7664C' // 9 red\n ];\n\n if (sortBy === 'natural') {\n // Sort the colors based on the color wheel, but shifting the values based on sortShift\n base = [...base].sort(function (a, b) {\n return (\n chroma(a).set('hsl.h', sortShift).hsl()[0] -\n chroma(b).set('hsl.h', sortShift).hsl()[0]\n );\n });\n }\n\n if (rotations > 1) {\n const palettes = base.map((color) => {\n // Create the darkest and lightest versions of each color using black and white\n const palette = colorPalette(['black', color, 'white'], 5, false, true);\n\n // Then removing the extremes\n palette.pop();\n palette.shift();\n\n switch (direction) {\n case 'lighter':\n return colorPalette(\n [palette[1]!, palette[2]!],\n rotations,\n false,\n true\n );\n case 'darker':\n return colorPalette(\n [palette[1]!, palette[0]!],\n rotations,\n false,\n true\n );\n case 'both':\n return colorPalette(palette, rotations, false, true);\n }\n });\n\n if (order === 'group') {\n colors = flatten(palettes);\n } else {\n for (let i = 0; i < rotations; i++) {\n const rotation = palettes.map((palette) => palette[i]) as string[];\n\n colors.push(...rotation);\n }\n }\n } else {\n colors = base;\n }\n\n return colors;\n};\n\nexport const euiPaletteColorBlindBehindText = (\n paletteProps: EuiPaletteColorBlindProps = {}\n) => {\n const originalPalette = euiPaletteColorBlind(paletteProps);\n const newPalette = originalPalette.map((color) =>\n chroma(color).brighten(0.5).hex()\n );\n\n return newPalette;\n};\n\nexport const euiPaletteForLightBackground = function (): EuiPalette {\n return ['#006BB4', '#017D73', '#F5A700', '#BD271E', '#DD0A73'];\n};\n\nexport const euiPaletteForDarkBackground = function (): EuiPalette {\n return ['#1BA9F5', '#7DE2D1', '#F990C0', '#F66', '#FFCE7A'];\n};\n\nconst positiveColor: HEX = '#209280';\nconst negativeColor: HEX = '#CC5642';\nconst lightNegativeColor: HEX = euiPaletteColorBlind()[9]!;\nconst coolArray: HEX[] = [euiPaletteColorBlind()[1]!, '#6092C0'];\nconst warmArray: HEX[] = [euiPaletteColorBlind()[7]!, euiPaletteColorBlind()[9]!];\n\nexport const euiPaletteForStatus = function (steps: number): EuiPalette {\n if (steps === 1) {\n return [euiPaletteColorBlind()[0]!];\n }\n\n if (steps <= 3) {\n return euiPalette(\n [\n euiPaletteColorBlind()[0]!,\n euiPaletteColorBlind()[5]!,\n lightNegativeColor\n ],\n steps,\n true\n );\n }\n\n return euiPalette(\n [\n positiveColor,\n euiPaletteColorBlind()[0]!,\n euiPaletteColorBlind()[5]!,\n lightNegativeColor,\n negativeColor\n ],\n steps,\n true\n );\n};\n\nexport const euiPaletteForTemperature = function (steps: number): EuiPalette {\n const cools = colorPalette([...coolArray.slice().reverse(), '#EBEFF5'], 3);\n const warms = colorPalette(['#F4F3DB', ...warmArray], 3);\n\n if (steps === 1) {\n return [cools[0]!];\n } else if (steps <= 3) {\n return euiPalette([cools[0]!, lightNegativeColor], steps, true);\n }\n\n return euiPalette([...cools, ...warms], steps, true);\n};\n\nexport const euiPaletteComplimentary = function (steps: number): EuiPalette {\n if (steps === 1) {\n return [euiPaletteColorBlind()[1]!];\n }\n\n return euiPalette(\n [euiPaletteColorBlind()[1]!, euiPaletteColorBlind()[7]!],\n steps,\n true\n );\n};\n\nexport const euiPaletteNegative = function (steps: number): EuiPalette {\n if (steps === 1) {\n return [lightNegativeColor];\n }\n\n return euiPalette(['white', negativeColor], steps);\n};\n\nexport const euiPalettePositive = function (steps: number): EuiPalette {\n if (steps === 1) {\n return [euiPaletteColorBlind()[0]!];\n }\n\n return euiPalette(['white', positiveColor], steps);\n};\n\nexport const euiPaletteCool = function (steps: number): EuiPalette {\n if (steps === 1) {\n return [coolArray[1]!];\n }\n\n return euiPalette(['white', ...coolArray], steps);\n};\n\nexport const euiPaletteWarm = function (steps: number): EuiPalette {\n if (steps === 1) {\n return [lightNegativeColor];\n }\n\n return euiPalette(['#FBFBDC', ...warmArray], steps);\n};\n\nexport const euiPaletteGray = function (steps: number): EuiPalette {\n if (steps === 1) {\n return ['#98a2b3'];\n }\n\n return euiPalette(\n ['white', '#d3dae6', '#98a2b3', '#69707d', '#343741'],\n steps,\n false\n );\n};\n"],"names":["flatten","arr","concat","euiPalette","colors","steps","diverge","categorical","palette","colorPalette","shift","euiPaletteColorBlind","rotations","order","direction","sortBy","sortShift","base","sort","a","b","chroma","set","hsl","palettes","map","color","pop","i","rotation","push","euiPaletteColorBlindBehindText","paletteProps","originalPalette","newPalette","brighten","hex","euiPaletteForLightBackground","euiPaletteForDarkBackground","positiveColor","negativeColor","lightNegativeColor","coolArray","warmArray","euiPaletteForStatus","euiPaletteForTemperature","cools","slice","reverse","warms","euiPaletteComplimentary","euiPaletteNegative","euiPalettePositive","euiPaletteCool","euiPaletteWarm","euiPaletteGray"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAaA;AACA,MAAMA,OAAO,GAAIC,GAAU,IAAK,EAAE,CAACC,MAAM,CAAC,GAAGD,GAAG,CAAC,CAAA;AAEjD,MAAME,UAAU,GAAG,UACjBC,MAAgB,EAChBC,KAAa,EACbC,OAAgB,GAAG,KAAK,EACxBC,WAAoB,GAAG,IAAI,EACf;AACZ;AACA,EAAA,IAAI,CAACD,OAAO,IAAID,KAAK,GAAG,CAAC,EAAE;IACzB,MAAMG,OAAO,GAAGC,YAAY,CAACL,MAAM,EAAEC,KAAK,GAAG,CAAC,CAAC,CAAA;IAE/CG,OAAO,CAACE,KAAK,EAAE,CAAA;AAEf,IAAA,OAAOF,OAAO,CAAA;AAChB,GAAA;EAEA,OAAOC,YAAY,CAACL,MAAM,EAAEC,KAAK,EAAEC,OAAO,EAAEC,WAAW,CAAC,CAAA;AAC1D,CAAC,CAAA;AA0BM,MAAMI,oBAAoB,GAAGA,CAAC;AACnCC,EAAAA,SAAS,GAAG,CAAC;AACbC,EAAAA,KAAK,GA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EY+C,kBAAkB,GAAG,UAAU/C,KAAa,EAAc;EACrE,IAAIA,KAAK,KAAK,CAAC,EAAE;AACf,IAAA,OAAO,CAACM,oBAAoB,EAAE,CAAC,CAAC,CAAC,CAAE,CAAA;AACrC,GAAA;EAEA,OAAOR,UAAU,CAAC,CAAC,OAAO,EAAEoC,aAAa,CAAC,EAAElC,KAAK,CAAC,CAAA;AACpD,EAAC;MAEYgD,cAAc,GAAG,UAAUhD,KAAa,EAAc;EACjE,IAAIA,KAAK,KAAK,CAAC,EAAE;AACf,IAAA,OAAO,CAACqC,SAAS,CAAC,CAAC,CAAC,CAAE,CAAA;AACxB,GAAA;EAEA,OAAOvC,UAAU,CAAC,CAAC,OAAO,EAAE,GAAGuC,SAAS,CAAC,EAAErC,KAAK,CAAC,CAAA;AACnD,EAAC;MAEYiD,cAAc,GAAG,UAAUjD,KAAa,EAAc;EACjE,IAAIA,KAAK,KAAK,CAAC,EAAE;IACf,OAAO,CAACoC,kBAAkB,CAAC,CAAA;AAC7B,GAAA;EAEA,OAAOtC,UAAU,CAAC,CAAC,SAAS,EAAE,GAAGwC,SAAS,CAAC,EAAEtC,KAAK,CAAC,CAAA;AACrD,EAAC;MAEYkD,cAAc,GAAG,UAAUlD,KAAa,EAAc;EACjE,IAAIA,KAAK,KAAK,CAAC,EAAE;IACf,OAAO,CAAC,SAAS,CAAC,CAAA;AACpB,GAAA;AAEA,EAAA,OAAOF,UAAU,CACf,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,EACrDE,KAAK,EACL,KACF,CAAC,CAAA;AACH;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { hexToRgb } from '../../helpers/hex-to-rgb.js';
|
|
2
2
|
export { isColorDark } from '../../helpers/is-color-dark.js';
|
|
3
3
|
export { isValidHex } from '../../helpers/is-valid-hex.js';
|
|
4
|
-
export {
|
|
4
|
+
export { colorPalette } from './color_palette.js';
|
|
5
5
|
export { euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteComplimentary, euiPaletteCool, euiPaletteForDarkBackground, euiPaletteForLightBackground, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteGray, euiPaletteNegative, euiPalettePositive, euiPaletteWarm } from './eui_palettes.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-to-clipboard.js","sources":["../../src/utils/copy-to-clipboard.ts"],"sourcesContent":["/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nfunction createHiddenTextElement(text: string): HTMLSpanElement {\n const textElement = document.createElement('span');\n textElement.textContent = text;\n // @ts-ignore .all is a real property - https://drafts.csswg.org/css-cascade/#all-shorthand\n textElement.style.all = 'unset';\n // prevents scrolling to the end of the page\n textElement.style.position = 'fixed';\n textElement.style.top = '0';\n textElement.style.clip = 'rect(0, 0, 0, 0)';\n // used to preserve spaces and line breaks\n textElement.style.whiteSpace = 'pre';\n // do not inherit user-select (it may be `none`)\n textElement.style.webkitUserSelect = 'text';\n // @ts-ignore this one doesn't appear in the TS definitions for some reason\n textElement.style.MozUserSelect = 'text';\n // @ts-ignore this one doesn't appear in the TS definitions for some reason\n textElement.style.msUserSelect = 'text';\n textElement.style.userSelect = 'text';\n return textElement;\n}\n\nexport function copyToClipboard(text: string): boolean {\n let isCopied = true;\n const range = document.createRange();\n const selection = window.getSelection();\n const elementToBeCopied = createHiddenTextElement(text);\n\n document.body.appendChild(elementToBeCopied);\n range.selectNode(elementToBeCopied);\n if (selection) {\n selection.removeAllRanges();\n selection.addRange(range);\n }\n\n if (!document.execCommand('copy')) {\n isCopied = false;\n console.warn('Unable to copy to clipboard.');\n }\n\n if (selection) {\n if (typeof selection.removeRange === 'function') {\n selection.removeRange(range);\n } else {\n selection.removeAllRanges();\n }\n }\n\n document.body.removeChild(elementToBeCopied);\n\n return isCopied;\n}\n"],"names":["createHiddenTextElement","text","textElement","document","createElement","textContent","style","all","position","top","clip","whiteSpace","webkitUserSelect","MozUserSelect","msUserSelect","userSelect","copyToClipboard","isCopied","range","createRange","selection","window","getSelection","elementToBeCopied","body","appendChild","selectNode","removeAllRanges","addRange","execCommand","console","warn","removeRange","removeChild"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,uBAAuBA,CAACC,IAAY,EAAmB;AAC9D,EAAA,MAAMC,WAAW,GAAGC,QAAQ,CAACC,aAAa,CAAC,MAAM,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"copy-to-clipboard.js","sources":["../../src/utils/copy-to-clipboard.ts"],"sourcesContent":["/*\n * Licensed to Elasticsearch B.V. under one or more contributor\n * license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright\n * ownership. Elasticsearch B.V. licenses this file to you under\n * the Apache License, Version 2.0 (the \"License\"); you may\n * not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing,\n * software distributed under the License is distributed on an\n * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n * KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations\n * under the License.\n */\n\nfunction createHiddenTextElement(text: string): HTMLSpanElement {\n const textElement = document.createElement('span');\n\n textElement.textContent = text;\n // @ts-ignore .all is a real property - https://drafts.csswg.org/css-cascade/#all-shorthand\n textElement.style.all = 'unset';\n // prevents scrolling to the end of the page\n textElement.style.position = 'fixed';\n textElement.style.top = '0';\n textElement.style.clip = 'rect(0, 0, 0, 0)';\n // used to preserve spaces and line breaks\n textElement.style.whiteSpace = 'pre';\n // do not inherit user-select (it may be `none`)\n textElement.style.webkitUserSelect = 'text';\n // @ts-ignore this one doesn't appear in the TS definitions for some reason\n textElement.style.MozUserSelect = 'text';\n // @ts-ignore this one doesn't appear in the TS definitions for some reason\n textElement.style.msUserSelect = 'text';\n textElement.style.userSelect = 'text';\n\n return textElement;\n}\n\nexport function copyToClipboard(text: string): boolean {\n let isCopied = true;\n const range = document.createRange();\n const selection = window.getSelection();\n const elementToBeCopied = createHiddenTextElement(text);\n\n document.body.appendChild(elementToBeCopied);\n range.selectNode(elementToBeCopied);\n\n if (selection) {\n selection.removeAllRanges();\n selection.addRange(range);\n }\n\n if (!document.execCommand('copy')) {\n isCopied = false;\n console.warn('Unable to copy to clipboard.');\n }\n\n if (selection) {\n if (typeof selection.removeRange === 'function') {\n selection.removeRange(range);\n } else {\n selection.removeAllRanges();\n }\n }\n\n document.body.removeChild(elementToBeCopied);\n\n return isCopied;\n}\n"],"names":["createHiddenTextElement","text","textElement","document","createElement","textContent","style","all","position","top","clip","whiteSpace","webkitUserSelect","MozUserSelect","msUserSelect","userSelect","copyToClipboard","isCopied","range","createRange","selection","window","getSelection","elementToBeCopied","body","appendChild","selectNode","removeAllRanges","addRange","execCommand","console","warn","removeRange","removeChild"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,uBAAuBA,CAACC,IAAY,EAAmB;AAC9D,EAAA,MAAMC,WAAW,GAAGC,QAAQ,CAACC,aAAa,CAAC,MAAM,CAAC,CAAA;EAElDF,WAAW,CAACG,WAAW,GAAGJ,IAAI,CAAA;AAC9B;AACAC,E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CAAC,MAAM,CAAC,EAAE;AACjCZ,IAAAA,QAAQ,GAAG,KAAK,CAAA;AAChBa,IAAAA,OAAO,CAACC,IAAI,CAAC,8BAA8B,CAAC,CAAA;AAC9C,GAAA;AAEA,EAAA,IAAIX,SAAS,EAAE;AACb,IAAA,IAAI,OAAOA,SAAS,CAACY,WAAW,KAAK,UAAU,EAAE;AAC/CZ,MAAAA,SAAS,CAACY,WAAW,CAACd,KAAK,CAAC,CAAA;AAC9B,KAAC,MAAM;MACLE,SAAS,CAACO,eAAe,EAAE,CAAA;AAC7B,KAAA;AACF,GAAA;AAEAxB,EAAAA,QAAQ,CAACqB,IAAI,CAACS,WAAW,CAACV,iBAAiB,CAAC,CAAA;AAE5C,EAAA,OAAON,QAAQ,CAAA;AACjB;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import '
|
|
1
|
+
import { keysOf } from '../../components/common.js';
|
|
2
|
+
import { hexToRgb } from '../../helpers/hex-to-rgb.js';
|
|
2
3
|
import { isColorDark } from '../../helpers/is-color-dark.js';
|
|
3
4
|
import '../../helpers/is-valid-hex.js';
|
|
4
|
-
import
|
|
5
|
+
import 'chroma-js';
|
|
5
6
|
import { euiPaletteColorBlindBehindText } from '../color/eui_palettes.js';
|
|
6
|
-
import { keysOf } from '../../components/common.js';
|
|
7
7
|
|
|
8
8
|
const VIS_COLORS = euiPaletteColorBlindBehindText();
|
|
9
9
|
const colorToHexMap = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-badge.js","sources":["../../../src/utils/css-mappings/eui-badge.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"eui-badge.js","sources":["../../../src/utils/css-mappings/eui-badge.ts"],"sourcesContent":["import { keysOf } from '../../components/common';\nimport { hexToRgb } from '../../helpers/hex-to-rgb';\nimport { isColorDark } from '../../helpers/is-color-dark';\nimport { euiPaletteColorBlindBehindText } from '../color';\n\nexport const VIS_COLORS = euiPaletteColorBlindBehindText();\n\nexport const colorToHexMap = {\n default: '#d3dae6',\n primary: VIS_COLORS[1],\n success: VIS_COLORS[0],\n accent: VIS_COLORS[2],\n warning: VIS_COLORS[5],\n danger: VIS_COLORS[9]\n};\n\nexport const COLORS = keysOf(colorToHexMap);\n\nexport type EuiBadgeColorType = keyof typeof colorToHexMap;\n\nexport type ColorType = EuiBadgeColorType | string;\n\nexport const baseClass = 'euiBadge';\n\nexport function inlineStyles({\n badgeColor\n}: {\n badgeColor: ColorType;\n}): Styling {\n let textColor = null;\n let colorHex = 'default';\n\n if (COLORS.indexOf(badgeColor as EuiBadgeColorType) > -1) {\n colorHex = colorToHexMap[badgeColor as EuiBadgeColorType]!;\n textColor = isColorDark(...hexToRgb(colorHex)) ? '#fff' : '#000';\n } else if (badgeColor !== 'hollow') {\n textColor = isColorDark(...hexToRgb(badgeColor)) ? '#fff' : '#000';\n colorHex = badgeColor;\n }\n\n return {\n 'background-color': colorHex,\n color: textColor\n };\n}\n\nexport const iconSideMapping = {\n left: `${baseClass}--iconLeft`,\n right: `${baseClass}--iconRight`\n};\n\nexport const colorMapping = {\n hollow: `${baseClass}--hollow`\n};\n\nconst mapping: ComponentMapping = {\n base: baseClass,\n properties: {\n iconSide: iconSideMapping,\n color: colorMapping\n },\n inlineStyles: inlineStyles\n};\n\nexport default mapping;\n"],"names":["VIS_COLORS","euiPaletteColorBlindBehindText","colorToHexMap","default","primary","success","accent","warning","danger","COLORS","keysOf","baseClass","inlineStyles","badgeColor","textColor","colorHex","indexOf","isColorDark","hexToRgb","color","iconSideMapping","left","right","colorMapping","hollow","mapping","base","properties","iconSide"],"mappings":";;;;;;;AAKaA,MAAAA,UAAU,GAAGC,8BAA8B,GAAE;AAEnD,MAAMC,aAAa,GAAG;AAC3BC,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,OAAO,EAAEJ,UAAU,CAAC,CAAC,CAAC;AACtBK,EAAAA,OAAO,EAAEL,UAAU,CAAC,CAAC,CAAC;AACtBM,EAAAA,MA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,UAAU,EAAE;AACVC,IAAAA,QAAQ,EAAER,eAAe;AACzBD,IAAAA,KAAK,EAAEI,YAAAA;GACR;AACDX,EAAAA,YAAY,EAAEA,YAAAA;AAChB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-range-highlight.js","sources":["../../../src/utils/css-mappings/eui-range-highlight.ts"],"sourcesContent":["export const baseClass = 'euiRangeHighlight';\n\nexport function inlineStyles({\n lowerValue,\n upperValue,\n min,\n max,\n background\n}: {\n lowerValue: number;\n upperValue: number;\n min: number;\n max: number;\n background?: string;\n}): Record<string, unknown> {\n const leftPosition = (lowerValue - min) / (max - min);\n const rangeWidth = (upperValue - lowerValue) / (max - min);\n return {\n background: background,\n 'margin-left': `${leftPosition * 100}%`,\n width: `${rangeWidth * 100}%`\n };\n}\n\nconst mapping: ComponentMapping = {\n base: baseClass,\n properties: {},\n inlineStyles\n};\n\nexport default mapping;\n"],"names":["baseClass","inlineStyles","lowerValue","upperValue","min","max","background","leftPosition","rangeWidth","width","mapping","base","properties"],"mappings":"AAAO,MAAMA,SAAS,GAAG,oBAAmB;AAErC,SAASC,YAAYA,CAAC;EAC3BC,UAAU;EACVC,UAAU;EACVC,GAAG;EACHC,GAAG;AACHC,EAAAA,UAAAA;AAOF,CAAC,EAA2B;EAC1B,MAAMC,YAAY,GAAG,CAACL,UAAU,GAAGE,GAAG,KAAKC,GAAG,GAAGD,GAAG,CAAC,CAAA;EACrD,MAAMI,UAAU,GAAG,CAACL,UAAU,GAAGD,UAAU,KAAKG,GAAG,GAAGD,GAAG,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"eui-range-highlight.js","sources":["../../../src/utils/css-mappings/eui-range-highlight.ts"],"sourcesContent":["export const baseClass = 'euiRangeHighlight';\n\nexport function inlineStyles({\n lowerValue,\n upperValue,\n min,\n max,\n background\n}: {\n lowerValue: number;\n upperValue: number;\n min: number;\n max: number;\n background?: string;\n}): Record<string, unknown> {\n const leftPosition = (lowerValue - min) / (max - min);\n const rangeWidth = (upperValue - lowerValue) / (max - min);\n\n return {\n background: background,\n 'margin-left': `${leftPosition * 100}%`,\n width: `${rangeWidth * 100}%`\n };\n}\n\nconst mapping: ComponentMapping = {\n base: baseClass,\n properties: {},\n inlineStyles\n};\n\nexport default mapping;\n"],"names":["baseClass","inlineStyles","lowerValue","upperValue","min","max","background","leftPosition","rangeWidth","width","mapping","base","properties"],"mappings":"AAAO,MAAMA,SAAS,GAAG,oBAAmB;AAErC,SAASC,YAAYA,CAAC;EAC3BC,UAAU;EACVC,UAAU;EACVC,GAAG;EACHC,GAAG;AACHC,EAAAA,UAAAA;AAOF,CAAC,EAA2B;EAC1B,MAAMC,YAAY,GAAG,CAACL,UAAU,GAAGE,GAAG,KAAKC,GAAG,GAAGD,GAAG,CAAC,CAAA;EACrD,MAAMI,UAAU,GAAG,CAACL,UAAU,GAAGD,UAAU,KAAKG,GAAG,GAAGD,GAAG,CAAC,CAAA;EAE1D,OAAO;AACLE,IAAAA,UAAU,EAAEA,UAAU;AACtB,IAAA,aAAa,EAAG,CAAA,EAAEC,YAAY,GAAG,GAAI,CAAE,CAAA,CAAA;AACvCE,IAAAA,KAAK,EAAG,CAAA,EAAED,UAAU,GAAG,GAAI,CAAA,CAAA,CAAA;GAC5B,CAAA;AACH,CAAA;AAEA,MAAME,OAAyB,GAAG;AAChCC,EAAAA,IAAI,EAAEX,SAAS;EACfY,UAAU,EAAE,EAAE;AACdX,EAAAA,YAAAA;AACF;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eui-range-levels.js","sources":["../../../src/utils/css-mappings/eui-range-levels.ts"],"sourcesContent":["import {\n
|
|
1
|
+
{"version":3,"file":"eui-range-levels.js","sources":["../../../src/utils/css-mappings/eui-range-levels.ts"],"sourcesContent":["import {\n calculateOffset,\n calculateThumbPosition} from '../../helpers/get-range-tick';\n\nexport const baseClass = 'euiRangeLevels';\n\nexport function inlineStyles({\n min,\n max,\n level,\n trackWidth\n}: {\n min: number;\n max: number;\n level: { min: number; max: number };\n trackWidth: number;\n}): Record<string, unknown> {\n const left =\n level.min === min\n ? 0\n : calculateThumbPosition(level.min, min, max, trackWidth);\n const right =\n level.max === max\n ? 100\n : calculateThumbPosition(level.max, min, max, trackWidth);\n const leftOffset = calculateOffset(left, level.min, min);\n const rightOffset = calculateOffset(right, level.max, max);\n\n return {\n left: `calc(${left}% + ${leftOffset}px)`,\n right: `calc(${100 - right}% - ${rightOffset}px)`\n };\n}\n\nconst mapping: ComponentMapping = {\n base: baseClass,\n properties: {},\n inlineStyles\n};\n\nexport default mapping;\n"],"names":["baseClass","inlineStyles","min","max","level","trackWidth","left","calculateThumbPosition","right","leftOffset","calculateOffset","rightOffset","mapping","base","properties"],"mappings":";;AAIO,MAAMA,SAAS,GAAG,iBAAgB;AAElC,SAASC,YAAYA,CAAC;EAC3BC,GAAG;EACHC,GAAG;EACHC,KAAK;AACLC,EAAAA,UAAAA;AAMF,CAAC,EAA2B;EAC1B,MAAMC,IAAI,GACRF,KAAK,CAACF,GAAG,KAAKA,GAAG,GACb,CAAC,GACDK,sBAAsB,CAACH,KAAK,CAACF,GAAG,EAAEA,GAAG,EAAEC,GAAG,EAAEE,UAAU,CAAC,CAAA;EAC7D,MAAMG,KAAK,GACTJ,KAAK,CAACD,GAAG,KAAKA,GAAG,GACb,GAAG,GACHI,sBAAsB,CAACH,KAAK,CAACD,GAAG,EAAED,GAAG,EAAEC,GAAG,EAAEE,UAAU,CAAC,CAAA;EAC7D,MAAMI,UAAU,GAAGC,eAAe,CAACJ,IAAI,EAAEF,KAAK,CAACF,GAAG,EAAEA,GAAG,CAAC,CAAA;EACxD,MAAMS,WAAW,GAAGD,eAAe,CAACF,KAAK,EAAEJ,KAAK,CAACD,GAAG,EAAEA,GAAG,CAAC,CAAA;EAE1D,OAAO;AACLG,IAAAA,IAAI,EAAG,CAAA,KAAA,EAAOA,IAAK,CAAA,IAAA,EAAMG,UAAW,CAAI,GAAA,CAAA;AACxCD,IAAAA,KAAK,EAAG,CAAO,KAAA,EAAA,GAAG,GAAGA,KAAM,OAAMG,WAAY,CAAA,GAAA,CAAA;GAC9C,CAAA;AACH,CAAA;AAEA,MAAMC,OAAyB,GAAG;AAChCC,EAAAA,IAAI,EAAEb,SAAS;EACfc,UAAU,EAAE,EAAE;AACdb,EAAAA,YAAAA;AACF;;;;"}
|
|
@@ -25,6 +25,7 @@ import { mapping as mapping$o } from './eui-flex-grid.js';
|
|
|
25
25
|
import { mapping as mapping$p } from './eui-flex-group.js';
|
|
26
26
|
import { mapping as mapping$q } from './eui-flex-item.js';
|
|
27
27
|
import mapping$r from './eui-flyout.js';
|
|
28
|
+
import mapping$17 from './eui-form-control-layout-clear-button.js';
|
|
28
29
|
import mapping$s from './eui-form-row.js';
|
|
29
30
|
import mapping$t from './eui-global-toast-list.js';
|
|
30
31
|
import mapping$u from './eui-header.js';
|
|
@@ -68,7 +69,6 @@ import mapping$13 from './eui-text-color.js';
|
|
|
68
69
|
import mapping$14 from './eui-title.js';
|
|
69
70
|
import mapping$15 from './eui-toast.js';
|
|
70
71
|
import mapping$16 from './eui-tool-tip.js';
|
|
71
|
-
import mapping$17 from './eui-form-control-layout-clear-button.js';
|
|
72
72
|
|
|
73
73
|
const mapping = {
|
|
74
74
|
EuiAccordion: mapping$1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/utils/css-mappings/index.ts"],"sourcesContent":["import EuiAccordion from './eui-accordion';\nimport EuiAvatar from './eui-avatar';\nimport EuiBadge from './eui-badge';\nimport EuiBadgeGroup from './eui-badge-group';\nimport EuiBetaBadge from './eui-beta-badge';\nimport EuiBottomBar from './eui-bottom-bar';\nimport EuiButton from './eui-button';\nimport EuiButtonEmpty from './eui-button-empty';\nimport EuiButtonGroup from './eui-button-group';\nimport EuiButtonGroupButton from './eui-button-group-button';\nimport EuiButtonIcon from './eui-button-icon';\nimport EuiCallOut from './eui-call-out';\nimport EuiCard from './eui-card';\nimport EuiCardSelect from './eui-card-select';\nimport EuiCodeBlock from './eui-code-block';\nimport EuiCollapsibleNavGroup from './eui-collapsible-nav-group';\nimport EuiCommentEvent from './eui-comment-event';\nimport EuiCommentTimelineIcon from './eui-comment-timeline-icon';\nimport EuiContextMenuItem from './eui-context-menu-item';\nimport EuiDescribedFormGroup from './eui-described-form-group';\nimport EuiDescriptionList from './eui-description-list';\nimport EuiEmptyPrompt from './eui-empty-prompt';\nimport EuiFilePicker from './eui-file-picker';\nimport EuiFlexGrid from './eui-flex-grid';\nimport EuiFlexGroup from './eui-flex-group';\nimport EuiFlexItem from './eui-flex-item';\nimport EuiFlyout from './eui-flyout';\nimport EuiFormRow from './eui-form-row';\nimport EuiGlobalToastList from './eui-global-toast-list';\nimport EuiHeader from './eui-header';\nimport EuiHeaderLinks from './eui-header-links';\nimport EuiHeaderSection from './eui-header-section';\nimport EuiHeaderSectionItem from './eui-header-section-item';\nimport EuiHealth from './eui-health';\nimport EuiHorizontalRule from './eui-horizontal-rule';\nimport EuiIcon from './eui-icon';\nimport EuiImage from './eui-image';\nimport EuiLink from './eui-link';\nimport EuiListGroup from './eui-list-group';\nimport EuiListGroupItem from './eui-list-group-item';\nimport EuiLoadingSpinner from './eui-loading-spinner';\nimport EuiModal from './eui-modal';\nimport EuiNotificationBadge from './eui-notification-badge';\nimport EuiPage from './eui-page';\nimport EuiPageBody from './eui-page-body';\nimport EuiPageContent from './eui-page-content';\nimport EuiPageContentBody from './eui-page-content-body';\nimport EuiPageHeader from './eui-page-header';\nimport EuiPageSideBar from './eui-page-side-bar';\nimport EuiPanel from './eui-panel';\nimport EuiPopover from './eui-popover';\nimport EuiPopoverFooter from './eui-popover-footer';\nimport EuiPopoverTitle from './eui-popover-title';\nimport EuiProgress from './eui-progress';\nimport EuiProgressData from './eui-progress-data';\nimport EuiRangeHighlight from './eui-range-highlight';\nimport EuiRangeInput from './eui-range-input';\nimport EuiRangeLevels from './eui-range-levels';\nimport EuiSelectableListItem from './eui-selectable-list-item';\nimport EuiSpacer from './eui-spacer';\nimport EuiStat from './eui-stat';\nimport EuiStepNumber from './eui-step-number';\nimport EuiTabs from './eui-tabs';\nimport EuiText from './eui-text';\nimport EuiTextAlign from './eui-text-align';\nimport EuiTextArea from './eui-text-area';\nimport EuiTextColor from './eui-text-color';\nimport EuiTitle from './eui-title';\nimport EuiToast from './eui-toast';\nimport EuiToolTip from './eui-tool-tip';\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/utils/css-mappings/index.ts"],"sourcesContent":["import EuiAccordion from './eui-accordion';\nimport EuiAvatar from './eui-avatar';\nimport EuiBadge from './eui-badge';\nimport EuiBadgeGroup from './eui-badge-group';\nimport EuiBetaBadge from './eui-beta-badge';\nimport EuiBottomBar from './eui-bottom-bar';\nimport EuiButton from './eui-button';\nimport EuiButtonEmpty from './eui-button-empty';\nimport EuiButtonGroup from './eui-button-group';\nimport EuiButtonGroupButton from './eui-button-group-button';\nimport EuiButtonIcon from './eui-button-icon';\nimport EuiCallOut from './eui-call-out';\nimport EuiCard from './eui-card';\nimport EuiCardSelect from './eui-card-select';\nimport EuiCodeBlock from './eui-code-block';\nimport EuiCollapsibleNavGroup from './eui-collapsible-nav-group';\nimport EuiCommentEvent from './eui-comment-event';\nimport EuiCommentTimelineIcon from './eui-comment-timeline-icon';\nimport EuiContextMenuItem from './eui-context-menu-item';\nimport EuiDescribedFormGroup from './eui-described-form-group';\nimport EuiDescriptionList from './eui-description-list';\nimport EuiEmptyPrompt from './eui-empty-prompt';\nimport EuiFilePicker from './eui-file-picker';\nimport EuiFlexGrid from './eui-flex-grid';\nimport EuiFlexGroup from './eui-flex-group';\nimport EuiFlexItem from './eui-flex-item';\nimport EuiFlyout from './eui-flyout';\nimport EuiFormControlLayoutClearButton from './eui-form-control-layout-clear-button';\nimport EuiFormRow from './eui-form-row';\nimport EuiGlobalToastList from './eui-global-toast-list';\nimport EuiHeader from './eui-header';\nimport EuiHeaderLinks from './eui-header-links';\nimport EuiHeaderSection from './eui-header-section';\nimport EuiHeaderSectionItem from './eui-header-section-item';\nimport EuiHealth from './eui-health';\nimport EuiHorizontalRule from './eui-horizontal-rule';\nimport EuiIcon from './eui-icon';\nimport EuiImage from './eui-image';\nimport EuiLink from './eui-link';\nimport EuiListGroup from './eui-list-group';\nimport EuiListGroupItem from './eui-list-group-item';\nimport EuiLoadingSpinner from './eui-loading-spinner';\nimport EuiModal from './eui-modal';\nimport EuiNotificationBadge from './eui-notification-badge';\nimport EuiPage from './eui-page';\nimport EuiPageBody from './eui-page-body';\nimport EuiPageContent from './eui-page-content';\nimport EuiPageContentBody from './eui-page-content-body';\nimport EuiPageHeader from './eui-page-header';\nimport EuiPageSideBar from './eui-page-side-bar';\nimport EuiPanel from './eui-panel';\nimport EuiPopover from './eui-popover';\nimport EuiPopoverFooter from './eui-popover-footer';\nimport EuiPopoverTitle from './eui-popover-title';\nimport EuiProgress from './eui-progress';\nimport EuiProgressData from './eui-progress-data';\nimport EuiRangeHighlight from './eui-range-highlight';\nimport EuiRangeInput from './eui-range-input';\nimport EuiRangeLevels from './eui-range-levels';\nimport EuiSelectableListItem from './eui-selectable-list-item';\nimport EuiSpacer from './eui-spacer';\nimport EuiStat from './eui-stat';\nimport EuiStepNumber from './eui-step-number';\nimport EuiTabs from './eui-tabs';\nimport EuiText from './eui-text';\nimport EuiTextAlign from './eui-text-align';\nimport EuiTextArea from './eui-text-area';\nimport EuiTextColor from './eui-text-color';\nimport EuiTitle from './eui-title';\nimport EuiToast from './eui-toast';\nimport EuiToolTip from './eui-tool-tip';\n\nconst mapping: Mapping = {\n EuiAccordion,\n EuiAvatar,\n EuiBadge,\n EuiBadgeGroup,\n EuiBetaBadge,\n EuiBottomBar,\n EuiButton,\n EuiButtonEmpty,\n EuiButtonIcon,\n EuiButtonGroup,\n EuiButtonGroupButton,\n EuiCallOut,\n EuiCard,\n EuiCardSelect,\n EuiCodeBlock,\n EuiCollapsibleNavGroup,\n EuiCommentEvent,\n EuiCommentTimelineIcon,\n EuiContextMenuItem,\n EuiDescribedFormGroup,\n EuiDescriptionList,\n EuiEmptyPrompt,\n EuiFilePicker,\n EuiFlexGrid,\n EuiFlexGroup,\n EuiFlexItem,\n EuiFlyout,\n EuiFormRow,\n EuiGlobalToastList,\n EuiHeader,\n EuiHeaderLinks,\n EuiHeaderSection,\n EuiHeaderSectionItem,\n EuiHealth,\n EuiHorizontalRule,\n EuiIcon,\n EuiImage,\n EuiLink,\n EuiListGroup,\n EuiListGroupItem,\n EuiLoadingSpinner,\n EuiModal,\n EuiNotificationBadge,\n EuiPage,\n EuiPageBody,\n EuiPageContent,\n EuiPageContentBody,\n EuiPageHeader,\n EuiPageSideBar,\n EuiPanel,\n EuiPopover,\n EuiPopoverFooter,\n EuiPopoverTitle,\n EuiProgress,\n EuiProgressData,\n EuiRangeHighlight,\n EuiRangeInput,\n EuiRangeLevels,\n EuiSelectableListItem,\n EuiSpacer,\n EuiStat,\n EuiStepNumber,\n EuiTabs,\n EuiText,\n EuiTextAlign,\n EuiTextArea,\n EuiTextColor,\n EuiTitle,\n EuiToast,\n EuiToolTip,\n EuiFormControlLayoutClearButton\n};\n\nexport default mapping;\n"],"names":["mapping","EuiAccordion","EuiAvatar","EuiBadge","EuiBadgeGroup","EuiBetaBadge","EuiBottomBar","EuiButton","EuiButtonEmpty","EuiButtonIcon","EuiButtonGroup","EuiButtonGroupButton","EuiCallOut","EuiCard","EuiCardSelect","EuiCodeBlock","EuiCollapsibleNavGroup","EuiCommentEvent","EuiCommentTimelineIcon","EuiContextMenuItem","EuiDescribedFormGroup","EuiDescriptionList","EuiEmptyPrompt","EuiFilePicker","EuiFlexGrid","EuiFlexGroup","EuiFlexItem","EuiFlyout","EuiFormRow","EuiGlobalToastList","EuiHeader","EuiHeaderLinks","EuiHeaderSection","EuiHeaderSectionItem","EuiHealth","EuiHorizontalRule","EuiIcon","EuiImage","EuiLink","EuiListGroup","EuiListGroupItem","EuiLoadingSpinner","EuiModal","EuiNotificationBadge","EuiPage","EuiPageBody","EuiPageContent","EuiPageContentBody","EuiPageHeader","EuiPageSideBar","EuiPanel","EuiPopover","EuiPopoverFooter","EuiPopoverTitle","EuiProgress","EuiProgressData","EuiRangeHighlight","EuiRangeInput","EuiRangeLevels","EuiSelectableListItem","EuiSpacer","EuiStat","EuiStepNumber","EuiTabs","EuiText","EuiTextAlign","EuiTextArea","EuiTextColor","EuiTitle","EuiToast","EuiToolTip","EuiFormControlLayoutClearButton"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEA,MAAMA,OAAgB,GAAG;gBACvBC,SAAY;aACZC,SAAS;YACTC,SAAQ;iBACRC,SAAa;gBACbC,SAAY;gBACZC,SAAY;aACZC,SAAS;kBACTC,SAAc;iBACdC,SAAa;kBACbC,SAAc;wBACdC,SAAoB;cACpBC,SAAU;WACVC,SAAO;iBACPC,SAAa;gBACbC,SAAY;0BACZC,SAAsB;mBACtBC,SAAe;0BACfC,SAAsB;sBACtBC,SAAkB;yBAClBC,SAAqB;sBACrBC,SAAkB;kBAClBC,SAAc;iBACdC,SAAa;eACbC,SAAW;gBACXC,SAAY;eACZC,SAAW;aACXC,SAAS;cACTC,SAAU;sBACVC,SAAkB;aAClBC,SAAS;kBACTC,SAAc;oBACdC,SAAgB;wBAChBC,SAAoB;aACpBC,SAAS;qBACTC,SAAiB;WACjBC,SAAO;YACPC,SAAQ;WACRC,SAAO;gBACPC,SAAY;oBACZC,SAAgB;qBAChBC,SAAiB;YACjBC,SAAQ;wBACRC,SAAoB;WACpBC,SAAO;eACPC,SAAW;kBACXC,SAAc;sBACdC,SAAkB;iBAClBC,SAAa;kBACbC,SAAc;YACdC,SAAQ;cACRC,SAAU;oBACVC,SAAgB;mBAChBC,SAAe;eACfC,SAAW;mBACXC,SAAe;qBACfC,SAAiB;iBACjBC,SAAa;kBACbC,SAAc;yBACdC,SAAqB;aACrBC,SAAS;WACTC,SAAO;iBACPC,SAAa;WACbC,SAAO;WACPC,UAAO;gBACPC,UAAY;eACZC,UAAW;gBACXC,UAAY;YACZC,UAAQ;YACRC,UAAQ;cACRC,UAAU;AACVC,mCAAAA,UAAAA;AACF;;;;"}
|