@ukic/web-components 2.1.0-beta.1 → 2.1.0-beta.11
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +8 -0
- package/dist/cjs/OpenInNew-f9958725.js +7 -0
- package/dist/cjs/OpenInNew-f9958725.js.map +1 -0
- package/dist/cjs/{check-icon-999d9877.js → check-icon-b2f60716.js} +2 -2
- package/dist/cjs/check-icon-b2f60716.js.map +1 -0
- package/dist/cjs/chevron-icon-2bb3a907.js +10 -0
- package/dist/cjs/chevron-icon-2bb3a907.js.map +1 -0
- package/dist/cjs/core.cjs.js +2 -2
- package/dist/cjs/{helpers-8bc3b6d2.js → helpers-2021e212.js} +78 -4
- package/dist/cjs/helpers-2021e212.js.map +1 -0
- package/dist/cjs/ic-alert.cjs.entry.js +6 -25
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +24 -12
- package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +15 -6
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +46 -31
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card.cjs.entry.js +29 -5
- package/dist/cjs/ic-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +4 -4
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +16 -4
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +77 -0
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-classification-banner.cjs.entry.js +3 -3
- package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-entity.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-entity.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +14 -12
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +3 -3
- package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +4 -3
- package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +12 -5
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +5 -5
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +3 -3
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +164 -0
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +79 -45
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +6 -8
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +14 -8
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +24 -0
- package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-menu-item.cjs.entry.js +120 -0
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-navigation-button.cjs.entry.js +5 -4
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +7 -6
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +19 -12
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +8 -8
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +5 -5
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +236 -0
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-radio-group.cjs.entry.js +13 -5
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +24 -6
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +56 -42
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
- package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-select.cjs.entry.js +218 -69
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +26 -14
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +6 -5
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +103 -15
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +166 -42
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +12 -3
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +7 -2
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +9 -118
- package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +10 -2
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-text-field.cjs.entry.js +5 -5
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +4 -4
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +48 -0
- package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-toast.cjs.entry.js +165 -0
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-top-navigation.cjs.entry.js +15 -10
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/{index-3ef30d9d.js → index-f79a4e53.js} +33 -2
- package/dist/cjs/index-f79a4e53.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/types-3eb02246.js.map +1 -1
- package/dist/collection/assets/back-icon.svg +1 -1
- package/dist/collection/assets/check-icon.svg +1 -1
- package/dist/collection/assets/chevron-icon.svg +1 -1
- package/dist/collection/assets/dismiss-icon.svg +3 -0
- package/dist/collection/assets/error-icon.svg +3 -3
- package/dist/collection/assets/info-icon.svg +3 -3
- package/dist/collection/assets/neutral-icon.svg +3 -3
- package/dist/collection/assets/success-icon.svg +3 -3
- package/dist/collection/assets/warning-icon-outline.svg +3 -0
- package/dist/collection/assets/warning-icon.svg +3 -3
- package/dist/collection/collection-manifest.json +7 -0
- package/dist/collection/components/ic-alert/ic-alert.css +13 -13
- package/dist/collection/components/ic-alert/ic-alert.js +32 -24
- package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
- package/dist/collection/components/ic-back-to-top/assets/ArrowUpward.svg +2 -2
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.css +18 -8
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +18 -7
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.css +20 -5
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +33 -4
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +2 -2
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +1 -1
- package/dist/collection/components/ic-button/ic-button.css +16 -15
- package/dist/collection/components/ic-button/ic-button.js +18 -32
- package/dist/collection/components/ic-button/ic-button.js.map +1 -1
- package/dist/collection/components/ic-card/ic-card.css +75 -17
- package/dist/collection/components/ic-card/ic-card.js +103 -16
- package/dist/collection/components/ic-card/ic-card.js.map +1 -1
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +28 -30
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +63 -11
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +18 -2
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +11 -11
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.test.a11y.js +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-chip/ic-chip.css +596 -0
- package/dist/collection/components/ic-chip/ic-chip.js +247 -0
- package/dist/collection/components/ic-chip/ic-chip.js.map +1 -0
- package/dist/collection/components/ic-chip/ic-chip.test.a11y.js +11 -0
- package/dist/collection/components/ic-chip/ic-chip.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-chip/ic-chip.types.js +2 -0
- package/dist/collection/components/ic-chip/ic-chip.types.js.map +1 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.css +5 -1
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +6 -6
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js.map +1 -1
- package/dist/collection/components/ic-data-entity/ic-data-entity.css +1 -1
- package/dist/collection/components/ic-data-entity/ic-data-entity.js +2 -2
- package/dist/collection/components/ic-data-entity/ic-data-entity.js.map +1 -1
- package/dist/collection/components/ic-data-row/ic-data-row.css +19 -7
- package/dist/collection/components/ic-data-row/ic-data-row.js +14 -12
- package/dist/collection/components/ic-data-row/ic-data-row.js.map +1 -1
- package/dist/collection/components/ic-divider/ic-divider.css +1 -1
- package/dist/collection/components/ic-divider/ic-divider.js +1 -1
- package/dist/collection/components/ic-divider/ic-divider.js.map +1 -1
- package/dist/collection/components/ic-footer/ic-footer.css +4 -4
- package/dist/collection/components/ic-footer/ic-footer.js +19 -16
- package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
- package/dist/collection/components/ic-footer-link/ic-footer-link.css +44 -6
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +101 -4
- package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +1 -1
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.css +1 -1
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +4 -3
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -1
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.test.a11y.js +1 -1
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-hero/ic-hero.css +35 -30
- package/dist/collection/components/ic-hero/ic-hero.js +10 -10
- package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
- package/dist/collection/components/ic-horizontal-scroll/assets/left-arrow.svg +3 -0
- package/dist/collection/components/ic-horizontal-scroll/assets/right-arrow.svg +3 -0
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.css +539 -0
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +219 -0
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js.map +1 -0
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.test.a11y.js +34 -0
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +16 -17
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +8 -8
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js.map +1 -1
- package/dist/collection/components/ic-input-container/ic-input-container.css +0 -1
- package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
- package/dist/collection/components/ic-input-container/ic-input-container.js.map +1 -1
- package/dist/collection/components/ic-input-label/ic-input-label.js +8 -8
- package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
- package/dist/collection/components/ic-input-validation/ic-input-validation.css +4 -5
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +5 -5
- package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
- package/dist/collection/components/ic-link/ic-link.css +14 -10
- package/dist/collection/components/ic-link/ic-link.js +43 -13
- package/dist/collection/components/ic-link/ic-link.js.map +1 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +43 -7
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +48 -9
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
- package/dist/collection/components/ic-menu/ic-menu.css +20 -15
- package/dist/collection/components/ic-menu/ic-menu.js +144 -73
- package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-menu-group/ic-menu-group.css +465 -0
- package/dist/collection/components/ic-menu-group/ic-menu-group.js +45 -0
- package/dist/collection/components/ic-menu-group/ic-menu-group.js.map +1 -0
- package/dist/collection/components/ic-menu-item/ic-menu-item.css +633 -0
- package/dist/collection/components/ic-menu-item/ic-menu-item.js +392 -0
- package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +1 -0
- package/dist/collection/components/ic-menu-item/ic-menu-item.types.js +2 -0
- package/dist/collection/components/ic-menu-item/ic-menu-item.types.js.map +1 -0
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +9 -8
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +14 -7
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +7 -6
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +68 -18
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +113 -16
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.css +15 -11
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +8 -8
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -1
- package/dist/collection/components/ic-page-header/ic-page-header.css +15 -5
- package/dist/collection/components/ic-page-header/ic-page-header.js +10 -10
- package/dist/collection/components/ic-page-header/ic-page-header.js.map +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.css +535 -0
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +432 -0
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -0
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.test.a11y.js +13 -0
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.css +32 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +44 -13
- package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.test.a11y.js +1 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-radio-option/ic-radio-option.css +32 -42
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +65 -19
- package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
- package/dist/collection/components/ic-search-bar/ic-search-bar.css +24 -18
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +90 -83
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
- package/dist/collection/components/ic-section-container/ic-section-container.css +1 -0
- package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
- package/dist/collection/components/ic-section-container/ic-section-container.js.map +1 -1
- package/dist/collection/components/ic-select/assets/Expand.svg +1 -1
- package/dist/collection/components/ic-select/ic-select.css +47 -30
- package/dist/collection/components/ic-select/ic-select.js +336 -88
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation-test-examples.js +90 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation-test-examples.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +47 -37
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +40 -24
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
- package/dist/collection/components/ic-skeleton/ic-skeleton.css +1 -1
- package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
- package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -1
- package/dist/collection/components/ic-status-tag/ic-status-tag.css +7 -7
- package/dist/collection/components/ic-status-tag/ic-status-tag.js +22 -3
- package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +1 -1
- package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js +1 -1
- package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-step/ic-step.css +127 -30
- package/dist/collection/components/ic-step/ic-step.js +269 -28
- package/dist/collection/components/ic-step/ic-step.js.map +1 -1
- package/dist/collection/components/ic-step/ic-step.types.js.map +1 -1
- package/dist/collection/components/ic-stepper/ic-stepper-test-examples.js +74 -0
- package/dist/collection/components/ic-stepper/ic-stepper-test-examples.js.map +1 -0
- package/dist/collection/components/ic-stepper/ic-stepper.css +15 -1
- package/dist/collection/components/ic-stepper/ic-stepper.js +210 -40
- package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
- package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js +13 -1
- package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-switch/ic-switch.css +20 -20
- package/dist/collection/components/ic-switch/ic-switch.js +36 -7
- package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
- package/dist/collection/components/ic-tab/ic-tab.css +1 -1
- package/dist/collection/components/ic-tab/ic-tab.js +37 -6
- package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
- package/dist/collection/components/ic-tab-context/ic-tab-context.js +31 -4
- package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
- package/dist/collection/components/ic-tab-context/ic-tab-context.test.a11y.js +1 -1
- package/dist/collection/components/ic-tab-context/ic-tab-context.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-tab-group/ic-tab-group.css +6 -120
- package/dist/collection/components/ic-tab-group/ic-tab-group.js +12 -156
- package/dist/collection/components/ic-tab-group/ic-tab-group.js.map +1 -1
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.css +4 -0
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js.map +1 -1
- package/dist/collection/components/ic-text-field/ic-text-field.css +7 -7
- package/dist/collection/components/ic-text-field/ic-text-field.js +32 -32
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
- package/dist/collection/components/ic-theme/ic-theme.js +9 -6
- package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
- package/dist/collection/components/ic-toast/ic-toast.css +602 -0
- package/dist/collection/components/ic-toast/ic-toast.js +382 -0
- package/dist/collection/components/ic-toast/ic-toast.js.map +1 -0
- package/dist/collection/components/ic-toast/ic-toast.test.a11y.js +16 -0
- package/dist/collection/components/ic-toast/ic-toast.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-toast/ic-toast.types.js +2 -0
- package/dist/collection/components/ic-toast/ic-toast.types.js.map +1 -0
- package/dist/collection/components/ic-toast-region/ic-toast-region.js +81 -0
- package/dist/collection/components/ic-toast-region/ic-toast-region.js.map +1 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.css +9 -11
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +28 -3
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +34 -52
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +21 -15
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.test.a11y.js +1 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.test.a11y.js.map +1 -1
- package/dist/collection/components/ic-typography/ic-typography.js +1 -1
- package/dist/collection/components/ic-typography/ic-typography.js.map +1 -1
- package/dist/collection/normalize.css +440 -0
- package/dist/collection/testspec.setup.js +8 -0
- package/dist/collection/testspec.setup.js.map +1 -1
- package/dist/collection/utils/constants.js +28 -0
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/collection/utils/helpers.js +13 -4
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/OpenInNew.js +5 -0
- package/dist/components/OpenInNew.js.map +1 -0
- package/dist/components/check-icon.js +1 -1
- package/dist/components/chevron-icon.js +1 -1
- package/dist/components/helpers.js +71 -4
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-alert.js +6 -25
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-back-to-top.js +23 -11
- package/dist/components/ic-back-to-top.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +14 -4
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +9 -20
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card.js +52 -6
- package/dist/components/ic-card.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +3 -3
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +17 -4
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.d.ts +11 -0
- package/dist/components/ic-chip.js +111 -0
- package/dist/components/ic-chip.js.map +1 -0
- package/dist/components/ic-classification-banner.js +2 -2
- package/dist/components/ic-classification-banner.js.map +1 -1
- package/dist/components/ic-data-entity.js +1 -1
- package/dist/components/ic-data-entity.js.map +1 -1
- package/dist/components/ic-data-row.js +12 -10
- package/dist/components/ic-data-row.js.map +1 -1
- package/dist/components/ic-divider2.js +2 -2
- package/dist/components/ic-divider2.js.map +1 -1
- package/dist/components/ic-footer-link-group.js +4 -3
- package/dist/components/ic-footer-link-group.js.map +1 -1
- package/dist/components/ic-footer-link.js +17 -5
- package/dist/components/ic-footer-link.js.map +1 -1
- package/dist/components/ic-footer.js +4 -4
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-hero.js +2 -2
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-horizontal-scroll.d.ts +11 -0
- package/dist/components/ic-horizontal-scroll.js +8 -0
- package/dist/components/ic-horizontal-scroll.js.map +1 -0
- package/dist/components/ic-horizontal-scroll2.js +205 -0
- package/dist/components/ic-horizontal-scroll2.js.map +1 -0
- package/dist/components/ic-input-component-container2.js +2 -3
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-container2.js +1 -1
- package/dist/components/ic-input-container2.js.map +1 -1
- package/dist/components/ic-input-label2.js +1 -1
- package/dist/components/ic-input-label2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +2 -4
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-link2.js +16 -9
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +27 -7
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-group.d.ts +11 -0
- package/dist/components/ic-menu-group.js +46 -0
- package/dist/components/ic-menu-group.js.map +1 -0
- package/dist/components/ic-menu-item.d.ts +11 -0
- package/dist/components/ic-menu-item.js +8 -0
- package/dist/components/ic-menu-item.js.map +1 -0
- package/dist/components/ic-menu-item2.js +167 -0
- package/dist/components/ic-menu-item2.js.map +1 -0
- package/dist/components/ic-menu2.js +75 -41
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +5 -4
- package/dist/components/ic-navigation-button.js.map +1 -1
- package/dist/components/ic-navigation-group.js +5 -4
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +22 -10
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +8 -8
- package/dist/components/ic-navigation-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js +30 -6
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-popover-menu.d.ts +11 -0
- package/dist/components/ic-popover-menu.js +290 -0
- package/dist/components/ic-popover-menu.js.map +1 -0
- package/dist/components/ic-radio-group.js +14 -5
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +26 -7
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +59 -44
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-section-container2.js +1 -1
- package/dist/components/ic-section-container2.js.map +1 -1
- package/dist/components/ic-select.js +224 -69
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-side-navigation.js +23 -11
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +1 -1
- package/dist/components/ic-skeleton.js.map +1 -1
- package/dist/components/ic-status-tag.js +6 -4
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +117 -16
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +173 -42
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +13 -3
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +6 -1
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +30 -125
- package/dist/components/ic-tab-group.js.map +1 -1
- package/dist/components/ic-tab-panel.js +1 -1
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +11 -2
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field2.js +6 -6
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js +2 -2
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-toast-region.d.ts +11 -0
- package/dist/components/ic-toast-region.js +63 -0
- package/dist/components/ic-toast-region.js.map +1 -0
- package/dist/components/ic-toast.d.ts +11 -0
- package/dist/components/ic-toast.js +214 -0
- package/dist/components/ic-toast.js.map +1 -0
- package/dist/components/ic-tooltip2.js +13 -5
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +22 -11
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/components/index.d.ts +8 -1
- package/dist/components/index.js +7 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/types.js.map +1 -1
- package/dist/core/core.css +3 -3
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/normalize.css +440 -0
- package/dist/core/p-037dfe9d.entry.js +2 -0
- package/dist/core/p-037dfe9d.entry.js.map +1 -0
- package/dist/core/p-05c5c6c4.entry.js +2 -0
- package/dist/core/p-05c5c6c4.entry.js.map +1 -0
- package/dist/core/p-06321d19.js +2 -0
- package/dist/core/p-0a463a65.entry.js +2 -0
- package/dist/core/p-0a463a65.entry.js.map +1 -0
- package/dist/core/p-0faf328a.entry.js +2 -0
- package/dist/core/p-0faf328a.entry.js.map +1 -0
- package/dist/core/p-102281fd.entry.js +2 -0
- package/dist/core/p-102281fd.entry.js.map +1 -0
- package/dist/core/p-1549adc1.entry.js +2 -0
- package/dist/core/p-1549adc1.entry.js.map +1 -0
- package/dist/core/p-25b208ae.entry.js +2 -0
- package/dist/core/p-25b208ae.entry.js.map +1 -0
- package/dist/core/{p-c4d3c18c.entry.js → p-26c9e522.entry.js} +2 -2
- package/dist/core/p-26c9e522.entry.js.map +1 -0
- package/dist/core/p-31a595c1.entry.js +2 -0
- package/dist/core/p-31a595c1.entry.js.map +1 -0
- package/dist/core/p-33a0aabe.entry.js +2 -0
- package/dist/core/p-33a0aabe.entry.js.map +1 -0
- package/dist/core/p-360adc51.entry.js +2 -0
- package/dist/core/p-360adc51.entry.js.map +1 -0
- package/dist/core/p-3d84a743.entry.js +2 -0
- package/dist/core/p-3d84a743.entry.js.map +1 -0
- package/dist/core/p-3dea2867.js +2 -0
- package/dist/core/p-3dea2867.js.map +1 -0
- package/dist/core/p-3fd4f8eb.entry.js +2 -0
- package/dist/core/p-3fd4f8eb.entry.js.map +1 -0
- package/dist/core/p-48a5c2a7.entry.js +2 -0
- package/dist/core/p-48a5c2a7.entry.js.map +1 -0
- package/dist/core/p-4d8392fe.entry.js +2 -0
- package/dist/core/p-4d8392fe.entry.js.map +1 -0
- package/dist/core/p-4ee03271.entry.js +2 -0
- package/dist/core/p-4ee03271.entry.js.map +1 -0
- package/dist/core/{p-f9370be6.js → p-5450cebf.js} +3 -3
- package/dist/core/p-5450cebf.js.map +1 -0
- package/dist/core/p-58ff516f.entry.js +2 -0
- package/dist/core/p-58ff516f.entry.js.map +1 -0
- package/dist/core/p-62b3516e.entry.js +2 -0
- package/dist/core/p-62b3516e.entry.js.map +1 -0
- package/dist/core/p-6f57b13c.js.map +1 -1
- package/dist/core/p-73fddc63.entry.js +2 -0
- package/dist/core/p-73fddc63.entry.js.map +1 -0
- package/dist/core/p-741b4ea3.entry.js +2 -0
- package/dist/core/p-741b4ea3.entry.js.map +1 -0
- package/dist/core/p-7dcb9104.entry.js +2 -0
- package/dist/core/p-7dcb9104.entry.js.map +1 -0
- package/dist/core/{p-e93e9aa3.entry.js → p-7fd50355.entry.js} +2 -2
- package/dist/core/p-7fd50355.entry.js.map +1 -0
- package/dist/core/p-81652a98.entry.js +2 -0
- package/dist/core/p-81652a98.entry.js.map +1 -0
- package/dist/core/p-87c7ba3b.entry.js +2 -0
- package/dist/core/p-87c7ba3b.entry.js.map +1 -0
- package/dist/core/p-897e967a.entry.js +2 -0
- package/dist/core/p-897e967a.entry.js.map +1 -0
- package/dist/core/p-8c7f4343.js +2 -0
- package/dist/core/p-8c9cc4d5.entry.js +2 -0
- package/dist/core/p-8c9cc4d5.entry.js.map +1 -0
- package/dist/core/p-8d4f7027.js +2 -0
- package/dist/core/{p-0118400b.entry.js → p-8ffa00c9.entry.js} +2 -2
- package/dist/core/p-8ffa00c9.entry.js.map +1 -0
- package/dist/core/p-a2c7dc6c.entry.js +2 -0
- package/dist/core/p-a2c7dc6c.entry.js.map +1 -0
- package/dist/core/p-a3742d40.entry.js +2 -0
- package/dist/core/p-a3742d40.entry.js.map +1 -0
- package/dist/core/p-a44a0500.entry.js +2 -0
- package/dist/core/p-a44a0500.entry.js.map +1 -0
- package/dist/core/p-a8e969ea.entry.js +2 -0
- package/dist/core/p-a8e969ea.entry.js.map +1 -0
- package/dist/core/p-ac6ecdb6.entry.js +2 -0
- package/dist/core/p-ac6ecdb6.entry.js.map +1 -0
- package/dist/core/p-acb08809.entry.js +2 -0
- package/dist/core/p-acb08809.entry.js.map +1 -0
- package/dist/core/{p-6be5e06b.entry.js → p-ad2477d8.entry.js} +2 -2
- package/dist/core/p-ad2477d8.entry.js.map +1 -0
- package/dist/core/p-affb42c7.entry.js +2 -0
- package/dist/core/p-affb42c7.entry.js.map +1 -0
- package/dist/core/p-b7fc1f35.entry.js +2 -0
- package/dist/core/p-b7fc1f35.entry.js.map +1 -0
- package/dist/core/p-b8b960a5.entry.js +2 -0
- package/dist/core/p-b8b960a5.entry.js.map +1 -0
- package/dist/core/p-b921bb19.entry.js +2 -0
- package/dist/core/p-b921bb19.entry.js.map +1 -0
- package/dist/core/{p-6d0eaaeb.entry.js → p-c9068822.entry.js} +2 -2
- package/dist/core/{p-6d0eaaeb.entry.js.map → p-c9068822.entry.js.map} +1 -1
- package/dist/core/p-c996810e.entry.js +2 -0
- package/dist/core/p-c996810e.entry.js.map +1 -0
- package/dist/core/p-cc62d065.entry.js +2 -0
- package/dist/core/p-cc62d065.entry.js.map +1 -0
- package/dist/core/{p-02799e26.entry.js → p-d2508752.entry.js} +2 -2
- package/dist/core/{p-02799e26.entry.js.map → p-d2508752.entry.js.map} +1 -1
- package/dist/core/p-d28d7f24.entry.js +2 -0
- package/dist/core/p-d28d7f24.entry.js.map +1 -0
- package/dist/core/{p-07cd789d.entry.js → p-dbfdfa8a.entry.js} +2 -2
- package/dist/core/p-dbfdfa8a.entry.js.map +1 -0
- package/dist/core/{p-10da19d2.entry.js → p-dd71a986.entry.js} +2 -2
- package/dist/core/p-dd71a986.entry.js.map +1 -0
- package/dist/core/p-e4547265.entry.js +2 -0
- package/dist/core/p-e4547265.entry.js.map +1 -0
- package/dist/core/p-ea0c4aca.entry.js +2 -0
- package/dist/core/p-ea0c4aca.entry.js.map +1 -0
- package/dist/core/{p-cadb531f.entry.js → p-ed6cf9b9.entry.js} +2 -2
- package/dist/core/p-ed6cf9b9.entry.js.map +1 -0
- package/dist/core/p-f6ddd32f.entry.js +2 -0
- package/dist/core/p-f6ddd32f.entry.js.map +1 -0
- package/dist/core/p-f777679c.entry.js +2 -0
- package/dist/core/p-f777679c.entry.js.map +1 -0
- package/dist/esm/OpenInNew-67a881e0.js +5 -0
- package/dist/esm/OpenInNew-67a881e0.js.map +1 -0
- package/dist/esm/{check-icon-53f1d9e5.js → check-icon-abb210ec.js} +2 -2
- package/dist/esm/check-icon-abb210ec.js.map +1 -0
- package/dist/esm/chevron-icon-7927f709.js +8 -0
- package/dist/esm/chevron-icon-7927f709.js.map +1 -0
- package/dist/esm/core.js +2 -2
- package/dist/esm/{helpers-3d41833c.js → helpers-b2b47a7d.js} +72 -5
- package/dist/esm/helpers-b2b47a7d.js.map +1 -0
- package/dist/esm/ic-alert.entry.js +6 -25
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +24 -12
- package/dist/esm/ic-back-to-top.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +2 -2
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +15 -6
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +46 -31
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card.entry.js +29 -5
- package/dist/esm/ic-card.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +4 -4
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +16 -4
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +73 -0
- package/dist/esm/ic-chip.entry.js.map +1 -0
- package/dist/esm/ic-classification-banner.entry.js +3 -3
- package/dist/esm/ic-classification-banner.entry.js.map +1 -1
- package/dist/esm/ic-data-entity.entry.js +2 -2
- package/dist/esm/ic-data-entity.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +14 -12
- package/dist/esm/ic-data-row.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +3 -3
- package/dist/esm/ic-divider.entry.js.map +1 -1
- package/dist/esm/ic-footer-link-group.entry.js +4 -3
- package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
- package/dist/esm/ic-footer-link.entry.js +12 -5
- package/dist/esm/ic-footer-link.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +5 -5
- package/dist/esm/ic-footer.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js +3 -3
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +160 -0
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -0
- package/dist/esm/ic-input-component-container_3.entry.js +78 -44
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +3 -5
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- package/dist/esm/ic-link.entry.js +14 -8
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +20 -0
- package/dist/esm/ic-menu-group.entry.js.map +1 -0
- package/dist/esm/ic-menu-item.entry.js +116 -0
- package/dist/esm/ic-menu-item.entry.js.map +1 -0
- package/dist/esm/ic-navigation-button.entry.js +5 -4
- package/dist/esm/ic-navigation-button.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +7 -6
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +19 -12
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +8 -8
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
- package/dist/esm/ic-page-header.entry.js +5 -5
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +232 -0
- package/dist/esm/ic-popover-menu.entry.js.map +1 -0
- package/dist/esm/ic-radio-group.entry.js +13 -5
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +24 -6
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +56 -42
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-section-container.entry.js +2 -2
- package/dist/esm/ic-section-container.entry.js.map +1 -1
- package/dist/esm/ic-select.entry.js +218 -69
- package/dist/esm/ic-select.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +26 -14
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +2 -2
- package/dist/esm/ic-skeleton.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +6 -5
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +103 -15
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +166 -42
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +12 -3
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +7 -2
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +9 -118
- package/dist/esm/ic-tab-group.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tab.entry.js +10 -2
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-text-field.entry.js +5 -5
- package/dist/esm/ic-text-field.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +4 -4
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-toast-region.entry.js +44 -0
- package/dist/esm/ic-toast-region.entry.js.map +1 -0
- package/dist/esm/ic-toast.entry.js +161 -0
- package/dist/esm/ic-toast.entry.js.map +1 -0
- package/dist/esm/ic-top-navigation.entry.js +15 -10
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +1 -1
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/{index-1500de1f.js → index-90721b3c.js} +33 -2
- package/dist/esm/index-90721b3c.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/types-dd515332.js.map +1 -1
- package/dist/types/components/ic-alert/ic-alert.d.ts +14 -10
- package/dist/types/components/ic-back-to-top/ic-back-to-top.d.ts +1 -0
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +9 -5
- package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +2 -2
- package/dist/types/components/ic-button/ic-button.d.ts +11 -14
- package/dist/types/components/ic-card/ic-card.d.ts +31 -10
- package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +18 -10
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +9 -9
- package/dist/types/components/ic-chip/ic-chip.d.ts +48 -0
- package/dist/types/components/ic-chip/ic-chip.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-chip/ic-chip.types.d.ts +2 -0
- package/dist/types/components/ic-classification-banner/ic-classification-banner.d.ts +5 -5
- package/dist/types/components/ic-data-entity/ic-data-entity.d.ts +2 -2
- package/dist/types/components/ic-data-row/ic-data-row.d.ts +3 -3
- package/dist/types/components/ic-footer/ic-footer.d.ts +12 -12
- package/dist/types/components/ic-footer-link/ic-footer-link.d.ts +20 -0
- package/dist/types/components/ic-footer-link-group/ic-footer-link-group.d.ts +1 -1
- package/dist/types/components/ic-hero/ic-hero.d.ts +9 -9
- package/dist/types/components/ic-horizontal-scroll/ic-horizontal-scroll.d.ts +39 -0
- package/dist/types/components/ic-horizontal-scroll/ic-horizontal-scroll.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +8 -8
- package/dist/types/components/ic-input-container/ic-input-container.d.ts +2 -2
- package/dist/types/components/ic-input-label/ic-input-label.d.ts +8 -8
- package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +5 -5
- package/dist/types/components/ic-link/ic-link.d.ts +10 -7
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +7 -3
- package/dist/types/components/ic-menu/ic-menu.d.ts +36 -18
- package/dist/types/components/ic-menu-group/ic-menu-group.d.ts +8 -0
- package/dist/types/components/ic-menu-item/ic-menu-item.d.ts +74 -0
- package/dist/types/components/ic-menu-item/ic-menu-item.types.d.ts +1 -0
- package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +6 -6
- package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +3 -3
- package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +28 -8
- package/dist/types/components/ic-navigation-menu/ic-navigation-menu.d.ts +2 -2
- package/dist/types/components/ic-page-header/ic-page-header.d.ts +10 -8
- package/dist/types/components/ic-popover-menu/ic-popover-menu.d.ts +58 -0
- package/dist/types/components/ic-popover-menu/ic-popover-menu.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +15 -11
- package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +17 -11
- package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +31 -30
- package/dist/types/components/ic-section-container/ic-section-container.d.ts +2 -2
- package/dist/types/components/ic-select/ic-select.d.ts +68 -23
- package/dist/types/components/ic-side-navigation/ic-side-navigation-test-examples.d.ts +1 -0
- package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +13 -12
- package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +2 -2
- package/dist/types/components/ic-status-tag/ic-status-tag.d.ts +5 -1
- package/dist/types/components/ic-step/ic-step.d.ts +37 -8
- package/dist/types/components/ic-step/ic-step.types.d.ts +2 -0
- package/dist/types/components/ic-stepper/ic-stepper-test-examples.d.ts +4 -0
- package/dist/types/components/ic-stepper/ic-stepper.d.ts +23 -6
- package/dist/types/components/ic-switch/ic-switch.d.ts +11 -7
- package/dist/types/components/ic-tab/ic-tab.d.ts +9 -5
- package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +8 -4
- package/dist/types/components/ic-tab-group/ic-tab-group.d.ts +5 -33
- package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +2 -2
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +31 -31
- package/dist/types/components/ic-theme/ic-theme.d.ts +3 -3
- package/dist/types/components/ic-toast/ic-toast.d.ts +66 -0
- package/dist/types/components/ic-toast/ic-toast.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-toast/ic-toast.types.d.ts +1 -0
- package/dist/types/components/ic-toast-region/ic-toast-region.d.ts +12 -0
- package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +4 -0
- package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +7 -6
- package/dist/types/components/ic-typography/ic-typography.d.ts +1 -1
- package/dist/types/components.d.ts +1103 -559
- package/dist/types/interface.d.ts +0 -1
- package/dist/types/testspec.setup.d.ts +1 -0
- package/dist/types/utils/constants.d.ts +22 -0
- package/dist/types/utils/helpers.d.ts +2 -0
- package/dist/types/utils/types.d.ts +3 -0
- package/hydrate/index.js +2030 -602
- package/package.json +5 -5
- package/dist/cjs/check-icon-999d9877.js.map +0 -1
- package/dist/cjs/chevron-icon-d175fe66.js +0 -10
- package/dist/cjs/chevron-icon-d175fe66.js.map +0 -1
- package/dist/cjs/error-icon-99504103.js +0 -18
- package/dist/cjs/error-icon-99504103.js.map +0 -1
- package/dist/cjs/helpers-8bc3b6d2.js.map +0 -1
- package/dist/cjs/index-3ef30d9d.js.map +0 -1
- package/dist/cjs/success-icon-887b2097.js +0 -11
- package/dist/cjs/success-icon-887b2097.js.map +0 -1
- package/dist/collection/components/ic-alert/ic-alert.types.js +0 -2
- package/dist/collection/components/ic-alert/ic-alert.types.js.map +0 -1
- package/dist/collection/components/ic-tab-group/assets/left-arrow.svg +0 -3
- package/dist/collection/components/ic-tab-group/assets/right-arrow.svg +0 -3
- package/dist/components/error-icon.js +0 -15
- package/dist/components/error-icon.js.map +0 -1
- package/dist/components/success-icon.js +0 -9
- package/dist/components/success-icon.js.map +0 -1
- package/dist/core/p-0118400b.entry.js.map +0 -1
- package/dist/core/p-07cd789d.entry.js.map +0 -1
- package/dist/core/p-0b125f26.entry.js +0 -2
- package/dist/core/p-0b125f26.entry.js.map +0 -1
- package/dist/core/p-10da19d2.entry.js.map +0 -1
- package/dist/core/p-1337db5e.entry.js +0 -2
- package/dist/core/p-1337db5e.entry.js.map +0 -1
- package/dist/core/p-1721bcf3.entry.js +0 -2
- package/dist/core/p-1721bcf3.entry.js.map +0 -1
- package/dist/core/p-1e7b4310.js +0 -2
- package/dist/core/p-23831891.js +0 -2
- package/dist/core/p-23831891.js.map +0 -1
- package/dist/core/p-272c7abd.entry.js +0 -2
- package/dist/core/p-272c7abd.entry.js.map +0 -1
- package/dist/core/p-2f114521.entry.js +0 -2
- package/dist/core/p-2f114521.entry.js.map +0 -1
- package/dist/core/p-31a8595f.entry.js +0 -2
- package/dist/core/p-31a8595f.entry.js.map +0 -1
- package/dist/core/p-33a45ace.entry.js +0 -2
- package/dist/core/p-33a45ace.entry.js.map +0 -1
- package/dist/core/p-347ec49e.entry.js +0 -2
- package/dist/core/p-347ec49e.entry.js.map +0 -1
- package/dist/core/p-39ae284e.entry.js +0 -2
- package/dist/core/p-39ae284e.entry.js.map +0 -1
- package/dist/core/p-558552f8.entry.js +0 -2
- package/dist/core/p-558552f8.entry.js.map +0 -1
- package/dist/core/p-5e261268.entry.js +0 -2
- package/dist/core/p-5e261268.entry.js.map +0 -1
- package/dist/core/p-60ffb73e.entry.js +0 -2
- package/dist/core/p-60ffb73e.entry.js.map +0 -1
- package/dist/core/p-69650186.entry.js +0 -2
- package/dist/core/p-69650186.entry.js.map +0 -1
- package/dist/core/p-6b34d98f.entry.js +0 -2
- package/dist/core/p-6b34d98f.entry.js.map +0 -1
- package/dist/core/p-6be5e06b.entry.js.map +0 -1
- package/dist/core/p-6f6bd657.entry.js +0 -2
- package/dist/core/p-6f6bd657.entry.js.map +0 -1
- package/dist/core/p-7093d214.entry.js +0 -2
- package/dist/core/p-7093d214.entry.js.map +0 -1
- package/dist/core/p-7577c6a3.entry.js +0 -2
- package/dist/core/p-7577c6a3.entry.js.map +0 -1
- package/dist/core/p-7b11e1dc.entry.js +0 -2
- package/dist/core/p-7b11e1dc.entry.js.map +0 -1
- package/dist/core/p-7b39977f.entry.js +0 -2
- package/dist/core/p-7b39977f.entry.js.map +0 -1
- package/dist/core/p-7f632414.entry.js +0 -2
- package/dist/core/p-7f632414.entry.js.map +0 -1
- package/dist/core/p-898607d0.entry.js +0 -2
- package/dist/core/p-898607d0.entry.js.map +0 -1
- package/dist/core/p-8ddeb574.entry.js +0 -2
- package/dist/core/p-8ddeb574.entry.js.map +0 -1
- package/dist/core/p-9cd04875.entry.js +0 -2
- package/dist/core/p-9cd04875.entry.js.map +0 -1
- package/dist/core/p-ac43322e.entry.js +0 -2
- package/dist/core/p-ac43322e.entry.js.map +0 -1
- package/dist/core/p-ae6aa67f.js +0 -2
- package/dist/core/p-ae81dffa.entry.js +0 -2
- package/dist/core/p-ae81dffa.entry.js.map +0 -1
- package/dist/core/p-b3dec76d.entry.js +0 -2
- package/dist/core/p-b3dec76d.entry.js.map +0 -1
- package/dist/core/p-b5a988c0.entry.js +0 -2
- package/dist/core/p-b5a988c0.entry.js.map +0 -1
- package/dist/core/p-bf5717ca.js +0 -2
- package/dist/core/p-c4d3c18c.entry.js.map +0 -1
- package/dist/core/p-c6dd4f47.entry.js +0 -2
- package/dist/core/p-c6dd4f47.entry.js.map +0 -1
- package/dist/core/p-cadb531f.entry.js.map +0 -1
- package/dist/core/p-cc83692e.entry.js +0 -2
- package/dist/core/p-cc83692e.entry.js.map +0 -1
- package/dist/core/p-dd3c3e3c.entry.js +0 -2
- package/dist/core/p-dd3c3e3c.entry.js.map +0 -1
- package/dist/core/p-df5caf13.entry.js +0 -2
- package/dist/core/p-df5caf13.entry.js.map +0 -1
- package/dist/core/p-e106305b.entry.js +0 -2
- package/dist/core/p-e106305b.entry.js.map +0 -1
- package/dist/core/p-e28af65b.js +0 -2
- package/dist/core/p-e28af65b.js.map +0 -1
- package/dist/core/p-e590f1d2.entry.js +0 -2
- package/dist/core/p-e590f1d2.entry.js.map +0 -1
- package/dist/core/p-e93e9aa3.entry.js.map +0 -1
- package/dist/core/p-ecfb2e6b.entry.js +0 -2
- package/dist/core/p-ecfb2e6b.entry.js.map +0 -1
- package/dist/core/p-f9370be6.js.map +0 -1
- package/dist/esm/check-icon-53f1d9e5.js.map +0 -1
- package/dist/esm/chevron-icon-5b38c60a.js +0 -8
- package/dist/esm/chevron-icon-5b38c60a.js.map +0 -1
- package/dist/esm/error-icon-6046a380.js +0 -15
- package/dist/esm/error-icon-6046a380.js.map +0 -1
- package/dist/esm/helpers-3d41833c.js.map +0 -1
- package/dist/esm/index-1500de1f.js.map +0 -1
- package/dist/esm/success-icon-2f71b115.js +0 -9
- package/dist/esm/success-icon-2f71b115.js.map +0 -1
- package/dist/types/components/ic-alert/ic-alert.types.d.ts +0 -1
- /package/dist/collection/{components/ic-link/assets → assets}/OpenInNew.svg +0 -0
- /package/dist/core/{p-1e7b4310.js.map → p-06321d19.js.map} +0 -0
- /package/dist/core/{p-ae6aa67f.js.map → p-8c7f4343.js.map} +0 -0
- /package/dist/core/{p-bf5717ca.js.map → p-8d4f7027.js.map} +0 -0
@@ -441,6 +441,10 @@ video {
|
|
441
441
|
}
|
442
442
|
|
443
443
|
|
444
|
+
/**
|
445
|
+
* @prop --ic-z-index-menu: z-index of menu
|
446
|
+
*/
|
447
|
+
|
444
448
|
@media (prefers-reduced-motion: no-preference) {
|
445
449
|
:host([open]) .menu {
|
446
450
|
transition: max-height var(--ic-transition-duration-slow);
|
@@ -450,11 +454,11 @@ video {
|
|
450
454
|
:host {
|
451
455
|
border-radius: var(--ic-border-radius);
|
452
456
|
max-height: 0;
|
453
|
-
width: var(--input-width,
|
457
|
+
width: var(--input-width, 20rem);
|
454
458
|
color: var(--ic-color-primary-text);
|
455
459
|
background-color: var(--ic-architectural-white);
|
456
460
|
position: relative;
|
457
|
-
z-index: var(--ic-z-index-
|
461
|
+
z-index: var(--ic-z-index-menu);
|
458
462
|
box-sizing: border-box;
|
459
463
|
box-shadow: var(--ic-elevation-overlay);
|
460
464
|
}
|
@@ -466,7 +470,7 @@ video {
|
|
466
470
|
.menu {
|
467
471
|
text-decoration: none;
|
468
472
|
list-style-type: none;
|
469
|
-
border:
|
473
|
+
border: 0.063rem solid var(--ic-architectural-400);
|
470
474
|
border-radius: var(--ic-border-radius);
|
471
475
|
background-color: var(--ic-architectural-white);
|
472
476
|
visibility: hidden;
|
@@ -489,7 +493,7 @@ video {
|
|
489
493
|
|
490
494
|
:host([open]) .menu {
|
491
495
|
visibility: visible;
|
492
|
-
max-height:
|
496
|
+
max-height: 20.125rem;
|
493
497
|
}
|
494
498
|
|
495
499
|
:host(.full-width) {
|
@@ -497,7 +501,7 @@ video {
|
|
497
501
|
}
|
498
502
|
|
499
503
|
.option {
|
500
|
-
padding:
|
504
|
+
padding: 0.5rem 0.438rem;
|
501
505
|
cursor: pointer;
|
502
506
|
display: flex;
|
503
507
|
justify-content: space-between;
|
@@ -505,15 +509,15 @@ video {
|
|
505
509
|
}
|
506
510
|
|
507
511
|
:host([small]) .option {
|
508
|
-
padding:
|
512
|
+
padding: 0.25rem 0.438rem;
|
509
513
|
}
|
510
514
|
|
511
515
|
.option:last-child {
|
512
|
-
border-radius: 0 0
|
516
|
+
border-radius: 0 0 0.063rem 0.063rem;
|
513
517
|
}
|
514
518
|
|
515
519
|
.option:first-child {
|
516
|
-
border-radius:
|
520
|
+
border-radius: 0.063rem 0.063rem 0 0;
|
517
521
|
}
|
518
522
|
|
519
523
|
.option:not(.disabled-option):hover {
|
@@ -537,26 +541,27 @@ video {
|
|
537
541
|
}
|
538
542
|
|
539
543
|
.check-icon {
|
540
|
-
height:
|
541
|
-
|
544
|
+
height: var(--ic-space-lg);
|
545
|
+
width: var(--ic-space-lg);
|
546
|
+
margin-left: 0.5rem;
|
542
547
|
pointer-events: none;
|
543
548
|
}
|
544
549
|
|
545
550
|
.focused-option .check-icon * {
|
546
|
-
fill:
|
551
|
+
fill: currentcolor;
|
547
552
|
}
|
548
553
|
|
549
554
|
.option-group-title {
|
550
|
-
padding:
|
555
|
+
padding: 1.5rem 0.438rem 0.5rem;
|
551
556
|
color: var(--ic-color-tertiary-text);
|
552
557
|
}
|
553
558
|
|
554
559
|
:host([small]) .option-group-title {
|
555
|
-
padding:
|
560
|
+
padding: 0.75rem 0.438rem 0.25rem;
|
556
561
|
}
|
557
562
|
|
558
563
|
.last-recommended-option {
|
559
|
-
border-bottom:
|
564
|
+
border-bottom: 0.063rem solid var(--ic-architectural-400);
|
560
565
|
}
|
561
566
|
|
562
567
|
.disabled-option {
|
@@ -582,6 +587,6 @@ video {
|
|
582
587
|
@media (forced-colors: active) {
|
583
588
|
.focused-option:focus {
|
584
589
|
outline: none;
|
585
|
-
border:
|
590
|
+
border: 0.125rem solid transparent;
|
586
591
|
}
|
587
592
|
}
|
@@ -4,13 +4,21 @@ import Check from "../../assets/check-icon.svg";
|
|
4
4
|
import { onComponentRequiredPropUndefined } from "../../utils/helpers";
|
5
5
|
export class Menu {
|
6
6
|
constructor() {
|
7
|
+
this.handleClearListener = () => {
|
8
|
+
this.optionHighlighted = "";
|
9
|
+
};
|
10
|
+
this.handleSubmitSearch = () => {
|
11
|
+
const highlightedOptionIndex = this.options.findIndex((option) => option.value === this.optionHighlighted);
|
12
|
+
this.setInputValue(highlightedOptionIndex);
|
13
|
+
};
|
7
14
|
this.ungroupedOptions = [];
|
8
15
|
// Prevents menu re-opening immediately after it is closed on blur when clicking input
|
9
16
|
this.preventClickOpen = false;
|
17
|
+
this.isSearchBar = false;
|
10
18
|
this.handleMenuChange = (open, focusInput) => {
|
11
19
|
if (!open)
|
12
20
|
this.popperInstance.destroy();
|
13
|
-
this.
|
21
|
+
this.menuStateChange.emit({ open, focusInput });
|
14
22
|
if (!open && focusInput !== false) {
|
15
23
|
this.inputEl.focus();
|
16
24
|
this.preventClickOpen = false;
|
@@ -18,13 +26,13 @@ export class Menu {
|
|
18
26
|
};
|
19
27
|
this.setNextOptionValue = (selectedOptionIndex) => {
|
20
28
|
if (this.ungroupedOptions[selectedOptionIndex + 1]) {
|
21
|
-
this.
|
29
|
+
this.menuOptionSelect.emit({
|
22
30
|
value: this.ungroupedOptions[selectedOptionIndex + 1].value,
|
23
31
|
optionId: this.getOptionId(this.ungroupedOptions[selectedOptionIndex + 1].value),
|
24
32
|
});
|
25
33
|
}
|
26
34
|
else {
|
27
|
-
this.
|
35
|
+
this.menuOptionSelect.emit({
|
28
36
|
value: this.ungroupedOptions[0].value,
|
29
37
|
optionId: this.getOptionId(this.ungroupedOptions[0].value),
|
30
38
|
});
|
@@ -32,13 +40,13 @@ export class Menu {
|
|
32
40
|
};
|
33
41
|
this.setPreviousOptionValue = (selectedOptionIndex) => {
|
34
42
|
if (this.ungroupedOptions[selectedOptionIndex - 1]) {
|
35
|
-
this.
|
43
|
+
this.menuOptionSelect.emit({
|
36
44
|
value: this.ungroupedOptions[selectedOptionIndex - 1].value,
|
37
45
|
optionId: this.getOptionId(this.ungroupedOptions[selectedOptionIndex - 1].value),
|
38
46
|
});
|
39
47
|
}
|
40
48
|
else {
|
41
|
-
this.
|
49
|
+
this.menuOptionSelect.emit({
|
42
50
|
value: this.ungroupedOptions[this.ungroupedOptions.length - 1].value,
|
43
51
|
optionId: this.getOptionId(this.ungroupedOptions[this.ungroupedOptions.length - 1].value),
|
44
52
|
});
|
@@ -54,6 +62,7 @@ export class Menu {
|
|
54
62
|
this.autoSetInputValueKeyboardOpen = (event) => {
|
55
63
|
var _a;
|
56
64
|
const selectedOptionIndex = this.ungroupedOptions.findIndex((option) => option.value === this.value);
|
65
|
+
this.keyboardNav = false;
|
57
66
|
const isSearchableSelect = ((_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.tagName) === "INPUT";
|
58
67
|
switch (event.key) {
|
59
68
|
case "ArrowDown":
|
@@ -86,9 +95,7 @@ export class Menu {
|
|
86
95
|
};
|
87
96
|
this.manSetInputValueKeyboardOpen = (event) => {
|
88
97
|
const highlightedOptionIndex = this.options.findIndex((option) => option.value === this.optionHighlighted);
|
89
|
-
this.
|
90
|
-
const getOptionId = (index) => Array.from(this.host.shadowRoot.querySelectorAll("li"))[index].id;
|
91
|
-
const isSearchBar = this.parentEl.tagName === "IC-SEARCH-BAR";
|
98
|
+
const getOptionId = (index) => Array.from(this.host.querySelectorAll("li"))[index].id;
|
92
99
|
switch (event.key) {
|
93
100
|
case "ArrowDown":
|
94
101
|
this.arrowBehaviour(event);
|
@@ -100,6 +107,9 @@ export class Menu {
|
|
100
107
|
}
|
101
108
|
else {
|
102
109
|
this.setHighlightedOption(0);
|
110
|
+
this.menuOptionId.emit({
|
111
|
+
optionId: getOptionId(0),
|
112
|
+
});
|
103
113
|
}
|
104
114
|
this.preventIncorrectTabOrder = false;
|
105
115
|
this.focusFromSearchKeypress = false;
|
@@ -122,7 +132,6 @@ export class Menu {
|
|
122
132
|
this.preventIncorrectTabOrder = false;
|
123
133
|
this.focusFromSearchKeypress = false;
|
124
134
|
break;
|
125
|
-
case " ":
|
126
135
|
case "Enter":
|
127
136
|
event.preventDefault();
|
128
137
|
this.setInputValue(highlightedOptionIndex);
|
@@ -136,14 +145,14 @@ export class Menu {
|
|
136
145
|
this.preventIncorrectTabOrder = true;
|
137
146
|
break;
|
138
147
|
case "Backspace":
|
139
|
-
if (isSearchBar) {
|
148
|
+
if (this.isSearchBar) {
|
140
149
|
this.parentEl.setFocus();
|
141
150
|
this.focusFromSearchKeypress = true;
|
142
151
|
this.setHighlightedOption(0);
|
143
152
|
}
|
144
153
|
break;
|
145
154
|
default:
|
146
|
-
if (isSearchBar && event.key !== "Tab") {
|
155
|
+
if (this.isSearchBar && event.key !== "Tab") {
|
147
156
|
this.parentEl.setFocus();
|
148
157
|
this.focusFromSearchKeypress = true;
|
149
158
|
this.setHighlightedOption(0);
|
@@ -154,7 +163,7 @@ export class Menu {
|
|
154
163
|
this.setInputValue = (highlightedOptionIndex) => {
|
155
164
|
var _a;
|
156
165
|
if (this.options[highlightedOptionIndex]) {
|
157
|
-
this.
|
166
|
+
this.menuOptionSelect.emit({
|
158
167
|
value: (_a = this.options[highlightedOptionIndex]) === null || _a === void 0 ? void 0 : _a.value,
|
159
168
|
});
|
160
169
|
this.optionHighlighted = undefined;
|
@@ -164,7 +173,7 @@ export class Menu {
|
|
164
173
|
};
|
165
174
|
this.handleOptionClick = (event) => {
|
166
175
|
const { value, label } = event.target.dataset;
|
167
|
-
this.
|
176
|
+
this.menuOptionSelect.emit({ value, label });
|
168
177
|
this.handleMenuChange(false);
|
169
178
|
};
|
170
179
|
this.handleBlur = (event) => {
|
@@ -178,15 +187,22 @@ export class Menu {
|
|
178
187
|
this.preventClickOpen = true;
|
179
188
|
}
|
180
189
|
};
|
190
|
+
this.handleMouseDown = (event) => {
|
191
|
+
event.preventDefault();
|
192
|
+
};
|
181
193
|
this.handleMenuKeyDown = (event) => {
|
182
194
|
if (this.activationType === "automatic") {
|
183
195
|
this.autoSetValueOnMenuKeyDown(event);
|
184
196
|
}
|
185
197
|
};
|
198
|
+
this.emitMenuKeyPress = (isNavKey, key) => {
|
199
|
+
this.menuKeyPress.emit({ isNavKey: isNavKey, key: key });
|
200
|
+
};
|
186
201
|
this.autoSetValueOnMenuKeyDown = (event) => {
|
187
202
|
event.cancelBubble = true;
|
188
203
|
const selectedOptionIndex = this.ungroupedOptions.findIndex((option) => option.value === this.value);
|
189
204
|
const isSearchableSelect = this.inputEl.tagName === "INPUT";
|
205
|
+
this.keyboardNav = false;
|
190
206
|
switch (event.key) {
|
191
207
|
case "ArrowUp":
|
192
208
|
event.preventDefault();
|
@@ -199,18 +215,17 @@ export class Menu {
|
|
199
215
|
this.keyboardNav = true;
|
200
216
|
break;
|
201
217
|
case "Home":
|
202
|
-
this.
|
218
|
+
this.menuOptionSelect.emit({
|
203
219
|
value: this.ungroupedOptions[0].value,
|
204
220
|
});
|
205
221
|
this.keyboardNav = true;
|
206
222
|
break;
|
207
223
|
case "End":
|
208
|
-
this.
|
224
|
+
this.menuOptionSelect.emit({
|
209
225
|
value: this.ungroupedOptions[this.ungroupedOptions.length - 1].value,
|
210
226
|
});
|
211
227
|
this.keyboardNav = true;
|
212
228
|
break;
|
213
|
-
case " ":
|
214
229
|
case "Enter":
|
215
230
|
case "Escape":
|
216
231
|
this.handleMenuChange(false);
|
@@ -226,8 +241,12 @@ export class Menu {
|
|
226
241
|
if (isSearchableSelect && event.key !== "Tab") {
|
227
242
|
this.inputEl.focus();
|
228
243
|
}
|
244
|
+
if (event.key.length === 1) {
|
245
|
+
this.keyboardNav = true;
|
246
|
+
}
|
229
247
|
break;
|
230
248
|
}
|
249
|
+
this.emitMenuKeyPress(this.keyboardNav, event.key);
|
231
250
|
};
|
232
251
|
this.handleMenuKeyUp = (event) => {
|
233
252
|
if (event.key === "Tab" && event.shiftKey) {
|
@@ -250,7 +269,11 @@ export class Menu {
|
|
250
269
|
}
|
251
270
|
};
|
252
271
|
this.getSortedOptions = (options) => {
|
253
|
-
|
272
|
+
let sorted = [];
|
273
|
+
if (options.sort) {
|
274
|
+
sorted = options.sort((optionA, optionB) => optionA.recommended && !optionB.recommended ? -1 : 0);
|
275
|
+
}
|
276
|
+
return sorted;
|
254
277
|
};
|
255
278
|
this.isManualMode = this.activationType === "manual";
|
256
279
|
this.scrollToSelected = (menu) => {
|
@@ -265,7 +288,7 @@ export class Menu {
|
|
265
288
|
}
|
266
289
|
};
|
267
290
|
this.loadUngroupedOptions = () => {
|
268
|
-
if (this.options.length > 0) {
|
291
|
+
if (this.options.length > 0 && this.options.map) {
|
269
292
|
this.options.map((option) => {
|
270
293
|
if (option.children) {
|
271
294
|
option.children.map((option) => !option.disabled && this.ungroupedOptions.push(option));
|
@@ -276,6 +299,16 @@ export class Menu {
|
|
276
299
|
});
|
277
300
|
}
|
278
301
|
this.ungroupedOptions = this.getSortedOptions(this.ungroupedOptions);
|
302
|
+
this.ungroupedOptionsSet.emit({ options: this.ungroupedOptions });
|
303
|
+
};
|
304
|
+
this.setMenuScrollbar = () => {
|
305
|
+
let optionsHeight = 0;
|
306
|
+
this.host
|
307
|
+
.querySelectorAll(".option")
|
308
|
+
.forEach((option) => (optionsHeight += option.clientHeight));
|
309
|
+
if (optionsHeight >= 320) {
|
310
|
+
this.menu.classList.add("menu-scroll");
|
311
|
+
}
|
279
312
|
};
|
280
313
|
this.displayOption = (option, index, parentOption) => {
|
281
314
|
const { open, value } = this;
|
@@ -293,7 +326,7 @@ export class Menu {
|
|
293
326
|
(option.value === value || option.value === this.optionHighlighted) &&
|
294
327
|
this.keyboardNav
|
295
328
|
? "0"
|
296
|
-
: "-1", "aria-label": this.getOptionAriaLabel(option, parentOption), "aria-selected": option.value === value, "aria-disabled": option.disabled ? "true" : "false", onClick: this.handleOptionClick, onBlur: this.handleBlur, onMouseDown:
|
329
|
+
: "-1", "aria-label": this.getOptionAriaLabel(option, parentOption), "aria-selected": option.value === value, "aria-disabled": option.disabled ? "true" : "false", onClick: this.handleOptionClick, onBlur: this.handleBlur, onMouseDown: this.handleMouseDown, "data-value": option.value, "data-label": option.label }, h("div", { class: "option-text-container" }, h("ic-typography", { variant: "body", "aria-hidden": "true" }, h("p", null, option.label)), option.description && (h("ic-typography", { id: `${this.getOptionId(option.value)}-description`, class: "option-description", variant: "caption", "aria-hidden": "true" }, h("p", null, option.description)))), (option === null || option === void 0 ? void 0 : option.value.toLowerCase()) === (value === null || value === void 0 ? void 0 : value.toLowerCase()) &&
|
297
330
|
this.parentEl.tagName !== "IC-SEARCH-BAR" && (h("span", { class: "check-icon", innerHTML: Check }))));
|
298
331
|
};
|
299
332
|
this.open = undefined;
|
@@ -318,19 +351,12 @@ export class Menu {
|
|
318
351
|
this.ungroupedOptions = [];
|
319
352
|
this.loadUngroupedOptions();
|
320
353
|
}
|
321
|
-
handleClearListener() {
|
322
|
-
this.optionHighlighted = "";
|
323
|
-
}
|
324
|
-
handleSubmitSearch() {
|
325
|
-
const highlightedOptionIndex = this.options.findIndex((option) => option.value === this.optionHighlighted);
|
326
|
-
this.setInputValue(highlightedOptionIndex);
|
327
|
-
}
|
328
354
|
/**
|
329
|
-
* If menu is opened with the mouse, emit
|
355
|
+
* @internal If menu is opened with the mouse, emit menuStateChange custom event.
|
330
356
|
*/
|
331
357
|
async handleClickOpen() {
|
332
358
|
if (!this.preventClickOpen) {
|
333
|
-
this.
|
359
|
+
this.menuStateChange.emit({ open: !this.open });
|
334
360
|
this.keyboardNav = false;
|
335
361
|
}
|
336
362
|
this.preventClickOpen = false;
|
@@ -365,14 +391,14 @@ export class Menu {
|
|
365
391
|
}
|
366
392
|
componentWillLoad() {
|
367
393
|
this.loadUngroupedOptions();
|
394
|
+
this.isSearchBar = this.parentEl.tagName === "IC-SEARCH-BAR";
|
395
|
+
this.parentEl.addEventListener("icClear", this.handleClearListener);
|
396
|
+
this.parentEl.addEventListener("icSubmitSearch", this.handleSubmitSearch);
|
368
397
|
}
|
369
398
|
componentDidLoad() {
|
370
|
-
|
371
|
-
|
372
|
-
.
|
373
|
-
.forEach((option) => (optionsHeight += option.clientHeight));
|
374
|
-
if (optionsHeight > 320) {
|
375
|
-
this.menu.classList.add("menu-scroll");
|
399
|
+
if (this.isSearchBar &&
|
400
|
+
this.parentEl.disableFilter) {
|
401
|
+
this.focusFromSearchKeypress = true;
|
376
402
|
}
|
377
403
|
onComponentRequiredPropUndefined([
|
378
404
|
{ prop: this.open, propName: "open" },
|
@@ -403,6 +429,9 @@ export class Menu {
|
|
403
429
|
],
|
404
430
|
});
|
405
431
|
}
|
432
|
+
if (this.open && !!this.options.length) {
|
433
|
+
this.setMenuScrollbar();
|
434
|
+
}
|
406
435
|
}
|
407
436
|
componentDidUpdate() {
|
408
437
|
const inputValueInOptions = this.options.some((option) => option.value === this.value);
|
@@ -423,13 +452,17 @@ export class Menu {
|
|
423
452
|
else if (optionHighlightedIsSet &&
|
424
453
|
!this.focusFromSearchKeypress &&
|
425
454
|
!this.preventIncorrectTabOrder) {
|
426
|
-
const highlightedEl = this.host.
|
455
|
+
const highlightedEl = this.host.querySelector(`li[data-value="${this.optionHighlighted}"]`);
|
427
456
|
if (highlightedEl) {
|
428
457
|
highlightedEl.focus();
|
429
458
|
}
|
430
459
|
}
|
431
460
|
}
|
432
461
|
}
|
462
|
+
disconnectedCallback() {
|
463
|
+
this.parentEl.removeEventListener("icClear", this.handleClearListener);
|
464
|
+
this.parentEl.removeEventListener("icSubmitSearch", this.handleSubmitSearch);
|
465
|
+
}
|
433
466
|
render() {
|
434
467
|
var _a, _b;
|
435
468
|
const { inputLabel, options, menuId, value, fullWidth } = this;
|
@@ -453,7 +486,7 @@ export class Menu {
|
|
453
486
|
})))));
|
454
487
|
}
|
455
488
|
static get is() { return "ic-menu"; }
|
456
|
-
static get encapsulation() { return "
|
489
|
+
static get encapsulation() { return "scoped"; }
|
457
490
|
static get originalStyleUrls() {
|
458
491
|
return {
|
459
492
|
"$": ["ic-menu.css"]
|
@@ -478,7 +511,7 @@ export class Menu {
|
|
478
511
|
"optional": false,
|
479
512
|
"docs": {
|
480
513
|
"tags": [],
|
481
|
-
"text": "
|
514
|
+
"text": "If `true`, the menu will be displayed open."
|
482
515
|
},
|
483
516
|
"attribute": "open",
|
484
517
|
"reflect": true
|
@@ -500,7 +533,7 @@ export class Menu {
|
|
500
533
|
"optional": false,
|
501
534
|
"docs": {
|
502
535
|
"tags": [],
|
503
|
-
"text": "
|
536
|
+
"text": "The possible menu selection options."
|
504
537
|
}
|
505
538
|
},
|
506
539
|
"small": {
|
@@ -515,7 +548,7 @@ export class Menu {
|
|
515
548
|
"optional": true,
|
516
549
|
"docs": {
|
517
550
|
"tags": [],
|
518
|
-
"text": "
|
551
|
+
"text": "If `true`, the small styling will be applied to the menu."
|
519
552
|
},
|
520
553
|
"attribute": "small",
|
521
554
|
"reflect": true,
|
@@ -533,7 +566,7 @@ export class Menu {
|
|
533
566
|
"optional": false,
|
534
567
|
"docs": {
|
535
568
|
"tags": [],
|
536
|
-
"text": "
|
569
|
+
"text": "The ID of the menu."
|
537
570
|
},
|
538
571
|
"attribute": "menu-id",
|
539
572
|
"reflect": false
|
@@ -594,7 +627,7 @@ export class Menu {
|
|
594
627
|
"optional": false,
|
595
628
|
"docs": {
|
596
629
|
"tags": [],
|
597
|
-
"text": "
|
630
|
+
"text": "The reference to the input element."
|
598
631
|
}
|
599
632
|
},
|
600
633
|
"parentEl": {
|
@@ -614,7 +647,7 @@ export class Menu {
|
|
614
647
|
"docs": {
|
615
648
|
"tags": [{
|
616
649
|
"name": "internal",
|
617
|
-
"text": "-
|
650
|
+
"text": "- The parent element if ic-menu is nested inside another component."
|
618
651
|
}],
|
619
652
|
"text": ""
|
620
653
|
}
|
@@ -631,7 +664,7 @@ export class Menu {
|
|
631
664
|
"optional": false,
|
632
665
|
"docs": {
|
633
666
|
"tags": [],
|
634
|
-
"text": "
|
667
|
+
"text": "The label for the input element."
|
635
668
|
},
|
636
669
|
"attribute": "input-label",
|
637
670
|
"reflect": false
|
@@ -652,7 +685,7 @@ export class Menu {
|
|
652
685
|
"optional": false,
|
653
686
|
"docs": {
|
654
687
|
"tags": [],
|
655
|
-
"text": "
|
688
|
+
"text": "The reference to an anchor element the menu will position itself from when rendered."
|
656
689
|
}
|
657
690
|
},
|
658
691
|
"fullWidth": {
|
@@ -667,7 +700,7 @@ export class Menu {
|
|
667
700
|
"optional": false,
|
668
701
|
"docs": {
|
669
702
|
"tags": [],
|
670
|
-
"text": "If true
|
703
|
+
"text": "If `true`, the menu will fill the width of the container."
|
671
704
|
},
|
672
705
|
"attribute": "full-width",
|
673
706
|
"reflect": false,
|
@@ -686,7 +719,7 @@ export class Menu {
|
|
686
719
|
"docs": {
|
687
720
|
"tags": [{
|
688
721
|
"name": "internal",
|
689
|
-
"text": "If true
|
722
|
+
"text": "If `true`, autofocus will be applied on selected item when menu is open."
|
690
723
|
}],
|
691
724
|
"text": ""
|
692
725
|
},
|
@@ -707,14 +740,17 @@ export class Menu {
|
|
707
740
|
}
|
708
741
|
static get events() {
|
709
742
|
return [{
|
710
|
-
"method": "
|
711
|
-
"name": "
|
743
|
+
"method": "menuOptionSelect",
|
744
|
+
"name": "menuOptionSelect",
|
712
745
|
"bubbles": true,
|
713
746
|
"cancelable": true,
|
714
747
|
"composed": true,
|
715
748
|
"docs": {
|
716
|
-
"tags": [
|
717
|
-
|
749
|
+
"tags": [{
|
750
|
+
"name": "internal",
|
751
|
+
"text": "Emitted when an option is selected."
|
752
|
+
}],
|
753
|
+
"text": ""
|
718
754
|
},
|
719
755
|
"complexType": {
|
720
756
|
"original": "IcOptionSelectEventDetail",
|
@@ -727,14 +763,17 @@ export class Menu {
|
|
727
763
|
}
|
728
764
|
}
|
729
765
|
}, {
|
730
|
-
"method": "
|
731
|
-
"name": "
|
766
|
+
"method": "menuStateChange",
|
767
|
+
"name": "menuStateChange",
|
732
768
|
"bubbles": true,
|
733
769
|
"cancelable": true,
|
734
770
|
"composed": true,
|
735
771
|
"docs": {
|
736
|
-
"tags": [
|
737
|
-
|
772
|
+
"tags": [{
|
773
|
+
"name": "internal",
|
774
|
+
"text": "Emitted when state of menu changes (i.e. open or close)."
|
775
|
+
}],
|
776
|
+
"text": ""
|
738
777
|
},
|
739
778
|
"complexType": {
|
740
779
|
"original": "IcMenuChangeEventDetail",
|
@@ -753,8 +792,11 @@ export class Menu {
|
|
753
792
|
"cancelable": true,
|
754
793
|
"composed": true,
|
755
794
|
"docs": {
|
756
|
-
"tags": [
|
757
|
-
|
795
|
+
"tags": [{
|
796
|
+
"name": "internal",
|
797
|
+
"text": "Emitted when an option has been highlighted"
|
798
|
+
}],
|
799
|
+
"text": ""
|
758
800
|
},
|
759
801
|
"complexType": {
|
760
802
|
"original": "IcMenuOptionIdEventDetail",
|
@@ -766,6 +808,47 @@ export class Menu {
|
|
766
808
|
}
|
767
809
|
}
|
768
810
|
}
|
811
|
+
}, {
|
812
|
+
"method": "menuKeyPress",
|
813
|
+
"name": "menuKeyPress",
|
814
|
+
"bubbles": true,
|
815
|
+
"cancelable": true,
|
816
|
+
"composed": true,
|
817
|
+
"docs": {
|
818
|
+
"tags": [{
|
819
|
+
"name": "internal",
|
820
|
+
"text": "Emitted when key is pressed while menu is open"
|
821
|
+
}],
|
822
|
+
"text": ""
|
823
|
+
},
|
824
|
+
"complexType": {
|
825
|
+
"original": "{ isNavKey: boolean; key: string }",
|
826
|
+
"resolved": "{ isNavKey: boolean; key: string; }",
|
827
|
+
"references": {}
|
828
|
+
}
|
829
|
+
}, {
|
830
|
+
"method": "ungroupedOptionsSet",
|
831
|
+
"name": "ungroupedOptionsSet",
|
832
|
+
"bubbles": true,
|
833
|
+
"cancelable": true,
|
834
|
+
"composed": true,
|
835
|
+
"docs": {
|
836
|
+
"tags": [{
|
837
|
+
"name": "internal",
|
838
|
+
"text": "Emitted when the ungrouped options have been set."
|
839
|
+
}],
|
840
|
+
"text": ""
|
841
|
+
},
|
842
|
+
"complexType": {
|
843
|
+
"original": "{ options: IcMenuOption[] }",
|
844
|
+
"resolved": "{ options: IcMenuOption[]; }",
|
845
|
+
"references": {
|
846
|
+
"IcMenuOption": {
|
847
|
+
"location": "import",
|
848
|
+
"path": "../../utils/types"
|
849
|
+
}
|
850
|
+
}
|
851
|
+
}
|
769
852
|
}];
|
770
853
|
}
|
771
854
|
static get methods() {
|
@@ -782,8 +865,11 @@ export class Menu {
|
|
782
865
|
"return": "Promise<void>"
|
783
866
|
},
|
784
867
|
"docs": {
|
785
|
-
"text": "
|
786
|
-
"tags": [
|
868
|
+
"text": "",
|
869
|
+
"tags": [{
|
870
|
+
"name": "internal",
|
871
|
+
"text": "If menu is opened with the mouse, emit menuStateChange custom event."
|
872
|
+
}]
|
787
873
|
}
|
788
874
|
},
|
789
875
|
"handleKeyboardOpen": {
|
@@ -842,20 +928,5 @@ export class Menu {
|
|
842
928
|
"methodName": "watchOptionsHandler"
|
843
929
|
}];
|
844
930
|
}
|
845
|
-
static get listeners() {
|
846
|
-
return [{
|
847
|
-
"name": "icClear",
|
848
|
-
"method": "handleClearListener",
|
849
|
-
"target": "document",
|
850
|
-
"capture": false,
|
851
|
-
"passive": false
|
852
|
-
}, {
|
853
|
-
"name": "icSubmitSearch",
|
854
|
-
"method": "handleSubmitSearch",
|
855
|
-
"target": "document",
|
856
|
-
"capture": false,
|
857
|
-
"passive": false
|
858
|
-
}];
|
859
|
-
}
|
860
931
|
}
|
861
932
|
//# sourceMappingURL=ic-menu.js.map
|