@ukic/web-components 3.1.0 → 3.3.0
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/README.md +28 -0
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-a0a128bd.js → helpers-fc4016d2.js} +36 -73
- package/dist/cjs/helpers-fc4016d2.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +63 -36
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +4 -4
- package/dist/cjs/ic-badge.cjs.entry.js +41 -17
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +56 -76
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +32 -51
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +135 -131
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +6 -6
- package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +9 -10
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +35 -34
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +26 -38
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
- package/dist/cjs/ic-dialog.cjs.entry.js +3 -3
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +2 -2
- package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +3 -3
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +3 -3
- package/dist/cjs/ic-footer.cjs.entry.js +4 -4
- package/dist/cjs/ic-hero.cjs.entry.js +5 -5
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +9 -9
- package/dist/cjs/ic-input-label_2.cjs.entry.js +8 -8
- package/dist/cjs/ic-link.cjs.entry.js +21 -3
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-menu-item.cjs.entry.js +5 -5
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +3 -3
- package/dist/cjs/ic-navigation-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +12 -7
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
- package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
- package/dist/cjs/ic-pagination-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-pagination.cjs.entry.js +5 -5
- package/dist/cjs/ic-popover-menu.cjs.entry.js +8 -7
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +5 -5
- package/dist/cjs/ic-radio-option.cjs.entry.js +6 -6
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +112 -135
- 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-select.cjs.entry.js +47 -50
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +6 -6
- 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-skip-link.cjs.entry.js +10 -3
- package/dist/cjs/ic-skip-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +15 -15
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
- package/dist/cjs/ic-switch.cjs.entry.js +6 -6
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab.cjs.entry.js +3 -3
- package/dist/cjs/ic-text-field.cjs.entry.js +32 -29
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +4 -2
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +4 -4
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-toggle-button.cjs.entry.js +4 -4
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +5 -5
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +4 -4
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-accordion/ic-accordion.css +3 -0
- package/dist/collection/components/ic-accordion-group/ic-accordion-group.css +1 -0
- package/dist/collection/components/ic-alert/ic-alert.css +3 -1
- package/dist/collection/components/ic-alert/ic-alert.js +85 -50
- package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +3 -3
- package/dist/collection/components/ic-badge/ic-badge.css +1 -1
- package/dist/collection/components/ic-badge/ic-badge.js +39 -15
- package/dist/collection/components/ic-badge/ic-badge.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +40 -59
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +65 -86
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +1 -1
- package/dist/collection/components/ic-button/ic-button.css +123 -59
- package/dist/collection/components/ic-button/ic-button.js +141 -162
- package/dist/collection/components/ic-button/ic-button.js.map +1 -1
- package/dist/collection/components/ic-button/ic-button.stories.js +39 -54
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.css +20 -4
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.js +4 -4
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +3 -1
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +71 -73
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +24 -25
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
- package/dist/collection/components/ic-chip/ic-chip.css +9 -0
- package/dist/collection/components/ic-chip/ic-chip.js +66 -72
- package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
- package/dist/collection/components/ic-chip/ic-chip.stories.js +2 -1
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +2 -2
- package/dist/collection/components/ic-data-list/ic-data-list.js +2 -2
- package/dist/collection/components/ic-data-row/ic-data-row.js +2 -2
- package/dist/collection/components/ic-dialog/ic-dialog.css +2 -1
- package/dist/collection/components/ic-dialog/ic-dialog.js +1 -1
- package/dist/collection/components/ic-divider/ic-divider.css +7 -4
- package/dist/collection/components/ic-empty-state/ic-empty-state.js +2 -2
- package/dist/collection/components/ic-footer/ic-footer.js +3 -3
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.css +0 -3
- package/dist/collection/components/ic-hero/ic-hero.js +4 -4
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +5 -5
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +3 -3
- package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
- package/dist/collection/components/ic-input-label/ic-input-label.js +4 -4
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +3 -3
- package/dist/collection/components/ic-link/ic-link.js +23 -2
- package/dist/collection/components/ic-link/ic-link.js.map +1 -1
- package/dist/collection/components/ic-link/ic-link.stories.js +28 -5
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +3 -3
- package/dist/collection/components/ic-menu/ic-menu.js +3 -3
- package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
- package/dist/collection/components/ic-menu-item/ic-menu-item.css +2 -5
- package/dist/collection/components/ic-menu-item/ic-menu-item.js +3 -3
- package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +1 -1
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +2 -2
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +0 -4
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +1 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +20 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +11 -6
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +4 -4
- package/dist/collection/components/ic-page-header/ic-page-header.js +6 -6
- package/dist/collection/components/ic-pagination/ic-pagination.js +4 -4
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.css +0 -5
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +6 -5
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +4 -4
- package/dist/collection/components/ic-radio-option/ic-radio-option.css +2 -1
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +4 -4
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +169 -192
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
- package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
- package/dist/collection/components/ic-select/ic-select.js +46 -49
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +3 -2
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +4 -4
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
- package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
- package/dist/collection/components/ic-skip-link/ic-skip-link.js +31 -3
- package/dist/collection/components/ic-skip-link/ic-skip-link.js.map +1 -1
- package/dist/collection/components/ic-status-tag/ic-status-tag.css +6 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.js +2 -2
- package/dist/collection/components/ic-step/ic-step.css +0 -3
- package/dist/collection/components/ic-step/ic-step.js +13 -13
- package/dist/collection/components/ic-stepper/ic-stepper.js +2 -2
- package/dist/collection/components/ic-switch/ic-switch.js +5 -5
- package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
- package/dist/collection/components/ic-tab/ic-tab.js +2 -2
- package/dist/collection/components/ic-tab-context/ic-tab-context.js +1 -1
- package/dist/collection/components/ic-tab-group/ic-tab-group.js +2 -2
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
- package/dist/collection/components/ic-text-field/ic-text-field.js +112 -95
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
- package/dist/collection/components/ic-theme/ic-theme.js +31 -3
- package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
- package/dist/collection/components/ic-toast/ic-toast.js +3 -3
- package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.css +6 -8
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +32 -2
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +3 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +4 -4
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
- package/dist/collection/components/ic-typography/ic-typography.css +2 -2
- package/dist/collection/components/ic-typography/ic-typography.js +2 -2
- package/dist/collection/utils/helpers.js +35 -72
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/helpers.js +36 -73
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-accordion-group.js.map +1 -1
- package/dist/components/ic-accordion.js.map +1 -1
- package/dist/components/ic-alert.js +66 -37
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-back-to-top.js +3 -3
- package/dist/components/ic-badge.js +40 -16
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js +57 -78
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +32 -51
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +105 -126
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card-vertical.js +5 -5
- package/dist/components/ic-card-vertical.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +9 -10
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +37 -36
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +28 -40
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-classification-banner.js +2 -2
- package/dist/components/ic-data-list.js +2 -2
- package/dist/components/ic-data-row.js +3 -3
- package/dist/components/ic-dialog.js +2 -2
- package/dist/components/ic-dialog.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-empty-state.js +2 -2
- package/dist/components/ic-footer-link-group.js +1 -1
- package/dist/components/ic-footer-link-group.js.map +1 -1
- package/dist/components/ic-footer-link.js +2 -2
- package/dist/components/ic-footer.js +4 -4
- package/dist/components/ic-hero.js +5 -5
- package/dist/components/ic-horizontal-scroll2.js +6 -6
- package/dist/components/ic-input-component-container2.js +4 -4
- package/dist/components/ic-input-container2.js +2 -2
- package/dist/components/ic-input-label2.js +5 -5
- package/dist/components/ic-input-validation2.js +4 -4
- package/dist/components/ic-link2.js +23 -3
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +3 -3
- package/dist/components/ic-menu-group.js +1 -1
- package/dist/components/ic-menu-item2.js +4 -4
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-menu2.js +4 -4
- package/dist/components/ic-navigation-button.js +2 -2
- package/dist/components/ic-navigation-group.js +3 -3
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +12 -7
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +5 -5
- package/dist/components/ic-page-header.js +6 -6
- package/dist/components/ic-pagination-item2.js +2 -2
- package/dist/components/ic-pagination.js +4 -4
- package/dist/components/ic-popover-menu.js +7 -6
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +5 -5
- package/dist/components/ic-radio-option.js +6 -6
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +112 -135
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-section-container2.js +2 -2
- package/dist/components/ic-select.js +47 -50
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-side-navigation.js +6 -6
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +2 -2
- package/dist/components/ic-skip-link.js +12 -4
- package/dist/components/ic-skip-link.js.map +1 -1
- package/dist/components/ic-status-tag.js +2 -2
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +14 -14
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +3 -3
- package/dist/components/ic-switch.js +6 -6
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +1 -1
- package/dist/components/ic-tab-group.js +2 -2
- package/dist/components/ic-tab-panel.js +2 -2
- package/dist/components/ic-tab.js +2 -2
- package/dist/components/ic-text-field.js +32 -29
- package/dist/components/ic-text-field.js.map +1 -1
- package/dist/components/ic-theme.js +3 -1
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast.js +4 -4
- package/dist/components/ic-toggle-button-group.js +2 -2
- package/dist/components/ic-toggle-button.js +3 -3
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/components/ic-tooltip2.js +30 -2
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +5 -5
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-typography2.js +3 -3
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/core/core.css +160 -110
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-00bc353b.entry.js +2 -0
- package/dist/core/p-00bc353b.entry.js.map +1 -0
- package/dist/core/{p-45595f98.entry.js → p-0a436c47.entry.js} +2 -2
- package/dist/core/p-0a436c47.entry.js.map +1 -0
- package/dist/core/{p-a55e7988.entry.js → p-10e1e227.entry.js} +2 -2
- package/dist/core/p-1440847f.entry.js +2 -0
- package/dist/core/p-1440847f.entry.js.map +1 -0
- package/dist/core/{p-729745d3.entry.js → p-15b7adaf.entry.js} +2 -2
- package/dist/core/p-16f55230.entry.js +2 -0
- package/dist/core/p-16f55230.entry.js.map +1 -0
- package/dist/core/{p-5c349c9d.entry.js → p-1838d1e9.entry.js} +2 -2
- package/dist/core/p-1838d1e9.entry.js.map +1 -0
- package/dist/core/{p-972671ea.entry.js → p-18714198.entry.js} +2 -2
- package/dist/core/{p-a20a7cd3.entry.js → p-1b2690b4.entry.js} +2 -2
- package/dist/core/p-1b2690b4.entry.js.map +1 -0
- package/dist/core/{p-37df68fe.entry.js → p-1be17f22.entry.js} +2 -2
- package/dist/core/p-206c2a26.entry.js +2 -0
- package/dist/core/p-206c2a26.entry.js.map +1 -0
- package/dist/core/{p-17cf7b50.entry.js → p-267a19d4.entry.js} +2 -2
- package/dist/core/p-26dfc4db.entry.js +2 -0
- package/dist/core/p-26dfc4db.entry.js.map +1 -0
- package/dist/core/p-2c17cc67.entry.js +2 -0
- package/dist/core/p-2c17cc67.entry.js.map +1 -0
- package/dist/core/{p-8b268274.entry.js → p-2c371198.entry.js} +2 -2
- package/dist/core/p-2e44cf53.entry.js +2 -0
- package/dist/core/p-2e44cf53.entry.js.map +1 -0
- package/dist/core/p-42a7d0b6.entry.js +2 -0
- package/dist/core/{p-fa02a267.entry.js → p-4b6818d9.entry.js} +2 -2
- package/dist/core/p-513628ef.entry.js +2 -0
- package/dist/core/p-513628ef.entry.js.map +1 -0
- package/dist/core/{p-1ac08e6d.entry.js → p-628c32b8.entry.js} +2 -2
- package/dist/core/p-70a6cff1.entry.js +2 -0
- package/dist/core/p-70a6cff1.entry.js.map +1 -0
- package/dist/core/{p-8856dff4.entry.js → p-72c117b6.entry.js} +2 -2
- package/dist/core/p-730d2f6e.entry.js +2 -0
- package/dist/core/p-730d2f6e.entry.js.map +1 -0
- package/dist/core/{p-0d016565.entry.js → p-788c96ac.entry.js} +2 -2
- package/dist/core/{p-78e7a859.entry.js → p-7fb79e87.entry.js} +2 -2
- package/dist/core/p-8242c24f.js +2 -0
- package/dist/core/p-8242c24f.js.map +1 -0
- package/dist/core/{p-7e79bd0e.entry.js → p-83764268.entry.js} +2 -2
- package/dist/core/p-8b5022bc.entry.js +2 -0
- package/dist/core/p-8b5022bc.entry.js.map +1 -0
- package/dist/core/{p-f34efc17.entry.js → p-8c4f7c63.entry.js} +2 -2
- package/dist/core/{p-1f455336.entry.js → p-910f5f14.entry.js} +2 -2
- package/dist/core/{p-10cd26dc.entry.js → p-9479f272.entry.js} +2 -2
- package/dist/core/{p-10cd26dc.entry.js.map → p-9479f272.entry.js.map} +1 -1
- package/dist/core/p-9c47521d.entry.js +2 -0
- package/dist/core/p-9c47521d.entry.js.map +1 -0
- package/dist/core/{p-110486f0.entry.js → p-9ca147f3.entry.js} +2 -2
- package/dist/core/{p-d9aec0dd.entry.js → p-9cfc2bac.entry.js} +2 -2
- package/dist/core/{p-74600ed8.entry.js → p-a0161990.entry.js} +2 -2
- package/dist/core/p-a17499ff.entry.js +2 -0
- package/dist/core/p-a17499ff.entry.js.map +1 -0
- package/dist/core/{p-4f2a1950.entry.js → p-a4f9b5bf.entry.js} +2 -2
- package/dist/core/{p-c9726fbd.entry.js → p-aad10013.entry.js} +2 -2
- package/dist/core/p-aad10013.entry.js.map +1 -0
- package/dist/core/{p-44e32417.entry.js → p-b371a498.entry.js} +2 -2
- package/dist/core/{p-44e32417.entry.js.map → p-b371a498.entry.js.map} +1 -1
- package/dist/core/p-b7568944.entry.js +2 -0
- package/dist/core/p-b7568944.entry.js.map +1 -0
- package/dist/core/p-b8da5c07.entry.js +2 -0
- package/dist/core/p-b8da5c07.entry.js.map +1 -0
- package/dist/core/{p-701696aa.entry.js → p-b9459ba2.entry.js} +2 -2
- package/dist/core/{p-2537f33e.entry.js → p-ba600947.entry.js} +2 -2
- package/dist/core/p-ba600947.entry.js.map +1 -0
- package/dist/core/{p-50f4d151.entry.js → p-bc2ca778.entry.js} +2 -2
- package/dist/core/{p-69e4daec.entry.js → p-bdc72446.entry.js} +2 -2
- package/dist/core/p-c45023b7.entry.js +2 -0
- package/dist/core/p-c45023b7.entry.js.map +1 -0
- package/dist/core/p-c4663e1a.entry.js +2 -0
- package/dist/core/p-c4663e1a.entry.js.map +1 -0
- package/dist/core/{p-a103068b.entry.js → p-c8cf1ad5.entry.js} +2 -2
- package/dist/core/p-c9a4fe37.entry.js +2 -0
- package/dist/core/p-c9a4fe37.entry.js.map +1 -0
- package/dist/core/p-cdf56a5d.entry.js +2 -0
- package/dist/core/p-cdf56a5d.entry.js.map +1 -0
- package/dist/core/{p-a71055c9.entry.js → p-d45d66c0.entry.js} +2 -2
- package/dist/core/p-d6c50565.entry.js +2 -0
- package/dist/core/p-d6c50565.entry.js.map +1 -0
- package/dist/core/{p-85734ebf.entry.js → p-d975bf2f.entry.js} +2 -2
- package/dist/core/p-d975bf2f.entry.js.map +1 -0
- package/dist/core/p-dede4974.entry.js +2 -0
- package/dist/core/p-dede4974.entry.js.map +1 -0
- package/dist/core/{p-071f4748.entry.js → p-df88ff5b.entry.js} +2 -2
- package/dist/core/p-e86a6d2d.entry.js +2 -0
- package/dist/core/{p-20c4d90b.entry.js → p-ebab7a9e.entry.js} +2 -2
- package/dist/core/p-eeab3a2e.entry.js +2 -0
- package/dist/core/p-eeab3a2e.entry.js.map +1 -0
- package/dist/core/{p-264ce7a0.entry.js → p-ef36181d.entry.js} +2 -2
- package/dist/core/p-ef36181d.entry.js.map +1 -0
- package/dist/core/p-f0388d68.entry.js +2 -0
- package/dist/core/p-f0388d68.entry.js.map +1 -0
- package/dist/core/{p-2b1a331b.entry.js → p-fbf57f0a.entry.js} +2 -2
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-dd035d0d.js → helpers-f2ffaa7c.js} +37 -74
- package/dist/esm/helpers-f2ffaa7c.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +1 -1
- package/dist/esm/ic-accordion-group.entry.js.map +1 -1
- package/dist/esm/ic-accordion.entry.js +1 -1
- package/dist/esm/ic-accordion.entry.js.map +1 -1
- package/dist/esm/ic-alert.entry.js +63 -36
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +4 -4
- package/dist/esm/ic-badge.entry.js +41 -17
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +56 -76
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +32 -51
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +136 -132
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-vertical.entry.js +6 -6
- package/dist/esm/ic-card-vertical.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +9 -10
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +35 -34
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +26 -38
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-classification-banner.entry.js +2 -2
- package/dist/esm/ic-data-list.entry.js +2 -2
- package/dist/esm/ic-data-row.entry.js +3 -3
- package/dist/esm/ic-dialog.entry.js +3 -3
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +2 -2
- package/dist/esm/ic-divider.entry.js.map +1 -1
- package/dist/esm/ic-empty-state.entry.js +3 -3
- package/dist/esm/ic-footer-link-group.entry.js +2 -2
- package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
- package/dist/esm/ic-footer-link.entry.js +3 -3
- package/dist/esm/ic-footer.entry.js +4 -4
- package/dist/esm/ic-hero.entry.js +5 -5
- package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
- package/dist/esm/ic-input-component-container_3.entry.js +9 -9
- package/dist/esm/ic-input-label_2.entry.js +8 -8
- package/dist/esm/ic-link.entry.js +21 -3
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +2 -2
- package/dist/esm/ic-menu-item.entry.js +5 -5
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +3 -3
- package/dist/esm/ic-navigation-group.entry.js +3 -3
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +12 -7
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +5 -5
- package/dist/esm/ic-page-header.entry.js +7 -7
- package/dist/esm/ic-pagination-item.entry.js +2 -2
- package/dist/esm/ic-pagination.entry.js +5 -5
- package/dist/esm/ic-popover-menu.entry.js +8 -7
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +5 -5
- package/dist/esm/ic-radio-option.entry.js +6 -6
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +112 -135
- 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-select.entry.js +47 -50
- package/dist/esm/ic-select.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +6 -6
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +2 -2
- package/dist/esm/ic-skip-link.entry.js +10 -3
- package/dist/esm/ic-skip-link.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +3 -3
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +15 -15
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +3 -3
- package/dist/esm/ic-switch.entry.js +6 -6
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +1 -1
- package/dist/esm/ic-tab-group.entry.js +3 -3
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-tab.entry.js +3 -3
- package/dist/esm/ic-text-field.entry.js +32 -29
- package/dist/esm/ic-text-field.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +4 -2
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-toast-region.entry.js +1 -1
- package/dist/esm/ic-toast.entry.js +4 -4
- package/dist/esm/ic-toggle-button-group.entry.js +3 -3
- package/dist/esm/ic-toggle-button.entry.js +4 -4
- package/dist/esm/ic-toggle-button.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +5 -5
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +4 -4
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-alert/ic-alert.d.ts +17 -9
- package/dist/types/components/ic-badge/ic-badge.d.ts +4 -0
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +4 -6
- package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +9 -15
- package/dist/types/components/ic-button/ic-button.d.ts +29 -22
- package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +14 -13
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +8 -9
- package/dist/types/components/ic-chip/ic-chip.d.ts +13 -15
- package/dist/types/components/ic-link/ic-link.d.ts +2 -0
- package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +38 -40
- package/dist/types/components/ic-select/ic-select.d.ts +1 -0
- package/dist/types/components/ic-skip-link/ic-skip-link.d.ts +5 -0
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +37 -32
- package/dist/types/components/ic-theme/ic-theme.d.ts +6 -2
- package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +3 -0
- package/dist/types/components.d.ts +147 -133
- package/dist/types/utils/helpers.d.ts +13 -9
- package/dist/types/utils/types.d.ts +1 -0
- package/hydrate/index.js +809 -832
- package/hydrate/index.mjs +809 -832
- package/package.json +3 -3
- package/vscode-data.json +167 -3
- package/dist/cjs/helpers-a0a128bd.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.types.js +0 -2
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.types.js.map +0 -1
- package/dist/core/p-06d97789.entry.js +0 -2
- package/dist/core/p-06d97789.entry.js.map +0 -1
- package/dist/core/p-09070f61.entry.js +0 -2
- package/dist/core/p-0c0ac69d.entry.js +0 -2
- package/dist/core/p-0c0ac69d.entry.js.map +0 -1
- package/dist/core/p-0e96d4d8.entry.js +0 -2
- package/dist/core/p-0e96d4d8.entry.js.map +0 -1
- package/dist/core/p-116ad73d.entry.js +0 -2
- package/dist/core/p-116ad73d.entry.js.map +0 -1
- package/dist/core/p-1171a945.entry.js +0 -2
- package/dist/core/p-1171a945.entry.js.map +0 -1
- package/dist/core/p-2537f33e.entry.js.map +0 -1
- package/dist/core/p-264ce7a0.entry.js.map +0 -1
- package/dist/core/p-28656111.entry.js +0 -2
- package/dist/core/p-28656111.entry.js.map +0 -1
- package/dist/core/p-33243fff.entry.js +0 -2
- package/dist/core/p-33243fff.entry.js.map +0 -1
- package/dist/core/p-45595f98.entry.js.map +0 -1
- package/dist/core/p-49768069.entry.js +0 -2
- package/dist/core/p-49768069.entry.js.map +0 -1
- package/dist/core/p-4c68494c.entry.js +0 -2
- package/dist/core/p-4c68494c.entry.js.map +0 -1
- package/dist/core/p-55a37101.entry.js +0 -2
- package/dist/core/p-55a37101.entry.js.map +0 -1
- package/dist/core/p-5c349c9d.entry.js.map +0 -1
- package/dist/core/p-5e1fd097.entry.js +0 -2
- package/dist/core/p-5e1fd097.entry.js.map +0 -1
- package/dist/core/p-73fc198f.entry.js +0 -2
- package/dist/core/p-73fc198f.entry.js.map +0 -1
- package/dist/core/p-7eaf8da8.entry.js +0 -2
- package/dist/core/p-811d447b.entry.js +0 -2
- package/dist/core/p-811d447b.entry.js.map +0 -1
- package/dist/core/p-85734ebf.entry.js.map +0 -1
- package/dist/core/p-85b7d931.entry.js +0 -2
- package/dist/core/p-85b7d931.entry.js.map +0 -1
- package/dist/core/p-98328cb9.entry.js +0 -2
- package/dist/core/p-98328cb9.entry.js.map +0 -1
- package/dist/core/p-a20a7cd3.entry.js.map +0 -1
- package/dist/core/p-a22658fb.entry.js +0 -2
- package/dist/core/p-a22658fb.entry.js.map +0 -1
- package/dist/core/p-a794b724.entry.js +0 -2
- package/dist/core/p-a794b724.entry.js.map +0 -1
- package/dist/core/p-b21b4fea.entry.js +0 -2
- package/dist/core/p-b21b4fea.entry.js.map +0 -1
- package/dist/core/p-b953b22f.entry.js +0 -2
- package/dist/core/p-b953b22f.entry.js.map +0 -1
- package/dist/core/p-c9726fbd.entry.js.map +0 -1
- package/dist/core/p-d981598e.entry.js +0 -2
- package/dist/core/p-d981598e.entry.js.map +0 -1
- package/dist/core/p-ed8957da.js +0 -2
- package/dist/core/p-ed8957da.js.map +0 -1
- package/dist/core/p-f3315216.entry.js +0 -2
- package/dist/core/p-f3315216.entry.js.map +0 -1
- package/dist/core/p-f43f411a.entry.js +0 -2
- package/dist/core/p-f43f411a.entry.js.map +0 -1
- package/dist/core/p-ff995eb8.entry.js +0 -2
- package/dist/core/p-ff995eb8.entry.js.map +0 -1
- package/dist/esm/helpers-dd035d0d.js.map +0 -1
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.types.d.ts +0 -1
- /package/dist/core/{p-a55e7988.entry.js.map → p-10e1e227.entry.js.map} +0 -0
- /package/dist/core/{p-729745d3.entry.js.map → p-15b7adaf.entry.js.map} +0 -0
- /package/dist/core/{p-972671ea.entry.js.map → p-18714198.entry.js.map} +0 -0
- /package/dist/core/{p-37df68fe.entry.js.map → p-1be17f22.entry.js.map} +0 -0
- /package/dist/core/{p-17cf7b50.entry.js.map → p-267a19d4.entry.js.map} +0 -0
- /package/dist/core/{p-8b268274.entry.js.map → p-2c371198.entry.js.map} +0 -0
- /package/dist/core/{p-09070f61.entry.js.map → p-42a7d0b6.entry.js.map} +0 -0
- /package/dist/core/{p-fa02a267.entry.js.map → p-4b6818d9.entry.js.map} +0 -0
- /package/dist/core/{p-1ac08e6d.entry.js.map → p-628c32b8.entry.js.map} +0 -0
- /package/dist/core/{p-8856dff4.entry.js.map → p-72c117b6.entry.js.map} +0 -0
- /package/dist/core/{p-0d016565.entry.js.map → p-788c96ac.entry.js.map} +0 -0
- /package/dist/core/{p-78e7a859.entry.js.map → p-7fb79e87.entry.js.map} +0 -0
- /package/dist/core/{p-7e79bd0e.entry.js.map → p-83764268.entry.js.map} +0 -0
- /package/dist/core/{p-f34efc17.entry.js.map → p-8c4f7c63.entry.js.map} +0 -0
- /package/dist/core/{p-1f455336.entry.js.map → p-910f5f14.entry.js.map} +0 -0
- /package/dist/core/{p-110486f0.entry.js.map → p-9ca147f3.entry.js.map} +0 -0
- /package/dist/core/{p-d9aec0dd.entry.js.map → p-9cfc2bac.entry.js.map} +0 -0
- /package/dist/core/{p-74600ed8.entry.js.map → p-a0161990.entry.js.map} +0 -0
- /package/dist/core/{p-4f2a1950.entry.js.map → p-a4f9b5bf.entry.js.map} +0 -0
- /package/dist/core/{p-701696aa.entry.js.map → p-b9459ba2.entry.js.map} +0 -0
- /package/dist/core/{p-50f4d151.entry.js.map → p-bc2ca778.entry.js.map} +0 -0
- /package/dist/core/{p-69e4daec.entry.js.map → p-bdc72446.entry.js.map} +0 -0
- /package/dist/core/{p-a103068b.entry.js.map → p-c8cf1ad5.entry.js.map} +0 -0
- /package/dist/core/{p-a71055c9.entry.js.map → p-d45d66c0.entry.js.map} +0 -0
- /package/dist/core/{p-071f4748.entry.js.map → p-df88ff5b.entry.js.map} +0 -0
- /package/dist/core/{p-7eaf8da8.entry.js.map → p-e86a6d2d.entry.js.map} +0 -0
- /package/dist/core/{p-20c4d90b.entry.js.map → p-ebab7a9e.entry.js.map} +0 -0
- /package/dist/core/{p-2b1a331b.entry.js.map → p-fbf57f0a.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
2
|
-
import { onComponentRequiredPropUndefined, isSlotUsed, removeDisabledFalse, convertToRGBA, isElInAGGrid, } from "../../utils/helpers";
|
2
|
+
import { onComponentRequiredPropUndefined, isSlotUsed, removeDisabledFalse, convertToRGBA, isElInAGGrid, getBrandForegroundAppearance, } from "../../utils/helpers";
|
3
3
|
import dismissIcon from "../../assets/dismiss-icon.svg";
|
4
4
|
/**
|
5
5
|
* @slot icon - Content will be rendered at the start of the chip.
|
@@ -7,8 +7,7 @@ import dismissIcon from "../../assets/dismiss-icon.svg";
|
|
7
7
|
*/
|
8
8
|
export class Chip {
|
9
9
|
constructor() {
|
10
|
-
this.
|
11
|
-
this.customColorClass = "";
|
10
|
+
this.foregroundColor = null;
|
12
11
|
this.hovered = false;
|
13
12
|
this.visible = true;
|
14
13
|
/**
|
@@ -19,6 +18,10 @@ export class Chip {
|
|
19
18
|
* If `true`, the chip will have a close button at the end to dismiss it.
|
20
19
|
*/
|
21
20
|
this.dismissible = false;
|
21
|
+
/**
|
22
|
+
* The text in the dismiss button tooltip and aria label. Makes the user aware of the action resulting from clicking the 'Dismiss chip' button.
|
23
|
+
*/
|
24
|
+
this.dismissLabel = "Dismiss";
|
22
25
|
/**
|
23
26
|
* The size of the chip.
|
24
27
|
*/
|
@@ -36,10 +39,6 @@ export class Chip {
|
|
36
39
|
* The emphasis of the chip.
|
37
40
|
*/
|
38
41
|
this.variant = "filled";
|
39
|
-
/**
|
40
|
-
* The text in the dismiss button tooltip and aria label.
|
41
|
-
*/
|
42
|
-
this.dismissLabel = "Dismiss";
|
43
42
|
this.dismissAction = () => {
|
44
43
|
this.icDismiss.emit();
|
45
44
|
};
|
@@ -49,23 +48,16 @@ export class Chip {
|
|
49
48
|
this.mouseLeaveHandler = () => {
|
50
49
|
this.hovered = false;
|
51
50
|
};
|
52
|
-
this.setChipColour = () => {
|
53
|
-
const colorRGBA = this.customColor ? convertToRGBA(this.customColor) : null;
|
54
|
-
if (colorRGBA) {
|
55
|
-
const { r, g, b, a } = colorRGBA;
|
56
|
-
this.customColorClass =
|
57
|
-
(r * 299 + g * 587 + b * 114) / 1000 > 133.3505
|
58
|
-
? "ic-chip-dark-text"
|
59
|
-
: "ic-chip-light-text";
|
60
|
-
this.el.setAttribute("style", `--chip-custom-color: rgba(${r}, ${g}, ${b}, ${a});`);
|
61
|
-
}
|
62
|
-
else {
|
63
|
-
this.customColorClass = "";
|
64
|
-
}
|
65
|
-
};
|
66
51
|
}
|
67
52
|
customColorHandler() {
|
68
|
-
this.
|
53
|
+
const colorRGBA = this.customColor && convertToRGBA(this.customColor);
|
54
|
+
if (!colorRGBA) {
|
55
|
+
this.foregroundColor = null;
|
56
|
+
return;
|
57
|
+
}
|
58
|
+
const { r, g, b, a } = colorRGBA;
|
59
|
+
this.foregroundColor = getBrandForegroundAppearance((r * 299 + g * 587 + b * 114) / 1000);
|
60
|
+
this.el.setAttribute("style", `--chip-custom-color: rgba(${r}, ${g}, ${b}, ${a});`);
|
69
61
|
}
|
70
62
|
watchDisabledHandler() {
|
71
63
|
removeDisabledFalse(this.disabled, this.el);
|
@@ -74,11 +66,6 @@ export class Chip {
|
|
74
66
|
removeDisabledFalse(this.disabled, this.el);
|
75
67
|
this.customColorHandler();
|
76
68
|
}
|
77
|
-
componentWillRender() {
|
78
|
-
if (isElInAGGrid(this.el)) {
|
79
|
-
this.inAGGrid = true;
|
80
|
-
}
|
81
|
-
}
|
82
69
|
componentDidLoad() {
|
83
70
|
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Chip");
|
84
71
|
}
|
@@ -89,23 +76,24 @@ export class Chip {
|
|
89
76
|
* Sets focus on the chip.
|
90
77
|
*/
|
91
78
|
async setFocus() {
|
92
|
-
var _a
|
93
|
-
(
|
79
|
+
var _a;
|
80
|
+
(_a = this.buttonEl) === null || _a === void 0 ? void 0 : _a.focus();
|
94
81
|
}
|
95
82
|
render() {
|
96
|
-
const { label, variant, size, dismissible, visible, disabled, hovered, theme,
|
97
|
-
|
83
|
+
const { label, variant, size, dismissible, visible, disabled, hovered, theme, foregroundColor, dismissLabel, transparentBackground, } = this;
|
84
|
+
const ariaLabel = `${label} chip`;
|
85
|
+
return (h(Host, { key: '9a61d8ecacb78fcdf17dbbaf32e1cf79de705d78', class: {
|
98
86
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
99
|
-
[
|
100
|
-
} }, visible && (h("div", { key: '
|
87
|
+
[`ic-chip-${foregroundColor}-text`]: variant === "filled" && !!foregroundColor,
|
88
|
+
} }, visible && (h("div", { key: '5cfa78f3d8647cf3f6a98649bfe583af89f3458f', class: {
|
101
89
|
chip: true,
|
102
90
|
[`${variant}`]: true,
|
103
91
|
[`${size}`]: true,
|
104
|
-
disabled
|
105
|
-
dismissible
|
92
|
+
disabled,
|
93
|
+
dismissible,
|
106
94
|
hovered,
|
107
|
-
"non-transparent":
|
108
|
-
} }, isSlotUsed(this.el, "icon") && (h("div", { key: '
|
95
|
+
"non-transparent": variant === "outlined" && !transparentBackground,
|
96
|
+
} }, isSlotUsed(this.el, "icon") && (h("div", { key: 'd7f72306a186b66c4a215a3928655989870e34b3', class: "icon" }, h("slot", { key: '71b8d9a59d43e0580e7f56c1977f2992ee582d95', name: "icon" }))), h("ic-typography", { key: '46ba6cddc7c12f2c246cc2d23e6d403517ad54b3', variant: "label", "apply-vertical-margins": false, class: { label: true, "in-ag-grid": isElInAGGrid(this.el) } }, h("span", { key: '7e62d43da1b1d21a3b660839154aaaaedf96f935' }, label)), dismissible && (h("ic-tooltip", { key: 'c82c6387a16c2cf5006710b1623a332a1f5f3122', label: dismissLabel, target: "dismiss-icon", class: { "tooltip-disabled": disabled } }, h("button", { key: '0411f0e6d7ce468a6f7a489e652240724dee0213', id: "dismiss-icon", class: "dismiss-icon", ref: (el) => (this.buttonEl = el), "aria-label": `${dismissLabel} ${ariaLabel}`, disabled: disabled, tabindex: disabled ? -1 : 0, onClick: this.dismissAction, onMouseEnter: this.mouseEnterHandler, onMouseLeave: this.mouseLeaveHandler, innerHTML: dismissIcon }))), isSlotUsed(this.el, "badge") && h("slot", { key: '31e71e22e0d9b8755a8bc483934aabcc4ccb9033', name: "badge" }))), dismissible && (h("div", { key: 'c899f3ba330e9231e461b7869363ce85ff005b31', class: "sr-only", "aria-live": "polite" }, !visible ? `Dismissed ${ariaLabel}` : ""))));
|
109
97
|
}
|
110
98
|
static get is() { return "ic-chip"; }
|
111
99
|
static get encapsulation() { return "shadow"; }
|
@@ -152,11 +140,11 @@ export class Chip {
|
|
152
140
|
"mutable": false,
|
153
141
|
"complexType": {
|
154
142
|
"original": "boolean",
|
155
|
-
"resolved": "boolean
|
143
|
+
"resolved": "boolean",
|
156
144
|
"references": {}
|
157
145
|
},
|
158
146
|
"required": false,
|
159
|
-
"optional":
|
147
|
+
"optional": false,
|
160
148
|
"docs": {
|
161
149
|
"tags": [],
|
162
150
|
"text": "If `true`, the chip will appear disabled."
|
@@ -172,11 +160,11 @@ export class Chip {
|
|
172
160
|
"mutable": false,
|
173
161
|
"complexType": {
|
174
162
|
"original": "boolean",
|
175
|
-
"resolved": "boolean
|
163
|
+
"resolved": "boolean",
|
176
164
|
"references": {}
|
177
165
|
},
|
178
166
|
"required": false,
|
179
|
-
"optional":
|
167
|
+
"optional": false,
|
180
168
|
"docs": {
|
181
169
|
"tags": [],
|
182
170
|
"text": "If `true`, the chip will have a close button at the end to dismiss it."
|
@@ -187,6 +175,26 @@ export class Chip {
|
|
187
175
|
"reflect": false,
|
188
176
|
"defaultValue": "false"
|
189
177
|
},
|
178
|
+
"dismissLabel": {
|
179
|
+
"type": "string",
|
180
|
+
"mutable": false,
|
181
|
+
"complexType": {
|
182
|
+
"original": "string",
|
183
|
+
"resolved": "string",
|
184
|
+
"references": {}
|
185
|
+
},
|
186
|
+
"required": false,
|
187
|
+
"optional": false,
|
188
|
+
"docs": {
|
189
|
+
"tags": [],
|
190
|
+
"text": "The text in the dismiss button tooltip and aria label. Makes the user aware of the action resulting from clicking the 'Dismiss chip' button."
|
191
|
+
},
|
192
|
+
"getter": false,
|
193
|
+
"setter": false,
|
194
|
+
"attribute": "dismiss-label",
|
195
|
+
"reflect": false,
|
196
|
+
"defaultValue": "\"Dismiss\""
|
197
|
+
},
|
190
198
|
"label": {
|
191
199
|
"type": "string",
|
192
200
|
"mutable": false,
|
@@ -211,7 +219,7 @@ export class Chip {
|
|
211
219
|
"mutable": false,
|
212
220
|
"complexType": {
|
213
221
|
"original": "IcSizes",
|
214
|
-
"resolved": "\"large\" | \"medium\" | \"small\"
|
222
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
215
223
|
"references": {
|
216
224
|
"IcSizes": {
|
217
225
|
"location": "import",
|
@@ -221,7 +229,7 @@ export class Chip {
|
|
221
229
|
}
|
222
230
|
},
|
223
231
|
"required": false,
|
224
|
-
"optional":
|
232
|
+
"optional": false,
|
225
233
|
"docs": {
|
226
234
|
"tags": [],
|
227
235
|
"text": "The size of the chip."
|
@@ -236,12 +244,18 @@ export class Chip {
|
|
236
244
|
"type": "string",
|
237
245
|
"mutable": false,
|
238
246
|
"complexType": {
|
239
|
-
"original": "
|
240
|
-
"resolved": "\"dark\" | \"inherit\" | \"light\"
|
241
|
-
"references": {
|
247
|
+
"original": "IcThemeMode",
|
248
|
+
"resolved": "\"dark\" | \"inherit\" | \"light\"",
|
249
|
+
"references": {
|
250
|
+
"IcThemeMode": {
|
251
|
+
"location": "import",
|
252
|
+
"path": "../../utils/types",
|
253
|
+
"id": "src/utils/types.ts::IcThemeMode"
|
254
|
+
}
|
255
|
+
}
|
242
256
|
},
|
243
257
|
"required": false,
|
244
|
-
"optional":
|
258
|
+
"optional": false,
|
245
259
|
"docs": {
|
246
260
|
"tags": [],
|
247
261
|
"text": "Sets the chip to the dark or light theme colors. \"inherit\" will set the color based on the system settings or ic-theme component.\nSetting the \"customColor\" prop will override this."
|
@@ -257,11 +271,11 @@ export class Chip {
|
|
257
271
|
"mutable": false,
|
258
272
|
"complexType": {
|
259
273
|
"original": "boolean",
|
260
|
-
"resolved": "boolean
|
274
|
+
"resolved": "boolean",
|
261
275
|
"references": {}
|
262
276
|
},
|
263
277
|
"required": false,
|
264
|
-
"optional":
|
278
|
+
"optional": false,
|
265
279
|
"docs": {
|
266
280
|
"tags": [],
|
267
281
|
"text": "If `true`, the outlined variant of chip will have a transparent background rather than the theme defined color."
|
@@ -277,7 +291,7 @@ export class Chip {
|
|
277
291
|
"mutable": false,
|
278
292
|
"complexType": {
|
279
293
|
"original": "IcEmphasisType",
|
280
|
-
"resolved": "\"filled\" | \"outlined\"
|
294
|
+
"resolved": "\"filled\" | \"outlined\"",
|
281
295
|
"references": {
|
282
296
|
"IcEmphasisType": {
|
283
297
|
"location": "import",
|
@@ -287,7 +301,7 @@ export class Chip {
|
|
287
301
|
}
|
288
302
|
},
|
289
303
|
"required": false,
|
290
|
-
"optional":
|
304
|
+
"optional": false,
|
291
305
|
"docs": {
|
292
306
|
"tags": [],
|
293
307
|
"text": "The emphasis of the chip."
|
@@ -297,32 +311,12 @@ export class Chip {
|
|
297
311
|
"attribute": "variant",
|
298
312
|
"reflect": false,
|
299
313
|
"defaultValue": "\"filled\""
|
300
|
-
},
|
301
|
-
"dismissLabel": {
|
302
|
-
"type": "string",
|
303
|
-
"mutable": false,
|
304
|
-
"complexType": {
|
305
|
-
"original": "string",
|
306
|
-
"resolved": "string | undefined",
|
307
|
-
"references": {}
|
308
|
-
},
|
309
|
-
"required": false,
|
310
|
-
"optional": true,
|
311
|
-
"docs": {
|
312
|
-
"tags": [],
|
313
|
-
"text": "The text in the dismiss button tooltip and aria label."
|
314
|
-
},
|
315
|
-
"getter": false,
|
316
|
-
"setter": false,
|
317
|
-
"attribute": "dismiss-label",
|
318
|
-
"reflect": false,
|
319
|
-
"defaultValue": "\"Dismiss\""
|
320
314
|
}
|
321
315
|
};
|
322
316
|
}
|
323
317
|
static get states() {
|
324
318
|
return {
|
325
|
-
"
|
319
|
+
"foregroundColor": {},
|
326
320
|
"hovered": {},
|
327
321
|
"visible": {}
|
328
322
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ic-chip.js","sourceRoot":"","sources":["../../../src/components/ic-chip/ic-chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,CAAC,EACD,IAAI,EACJ,KAAK,EACL,MAAM,EACN,KAAK,EAEL,OAAO,EACP,MAAM,EACN,KAAK,EACL,IAAI,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gCAAgC,EAChC,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,YAAY,GACb,MAAM,qBAAqB,CAAC;AAE7B,OAAO,WAAW,MAAM,+BAA+B,CAAC;AAExD;;;GAGG;AAQH,MAAM,OAAO,IAAI;IAPjB;QAQU,aAAQ,GAAY,KAAK,CAAC;QAIzB,qBAAgB,GAAW,EAAE,CAAC;QAC9B,YAAO,GAAY,KAAK,CAAC;QACzB,YAAO,GAAY,IAAI,CAAC;QAajC;;WAEG;QACK,aAAQ,GAAa,KAAK,CAAC;QAMnC;;WAEG;QACK,gBAAW,GAAa,KAAK,CAAC;QAOtC;;WAEG;QACK,SAAI,GAAa,QAAQ,CAAC;QAClC;;;WAGG;QACK,UAAK,GAAkC,SAAS,CAAC;QAEzD;;WAEG;QACK,0BAAqB,GAAa,IAAI,CAAC;QAE/C;;WAEG;QACK,YAAO,GAAoB,QAAQ,CAAC;QAE5C;;W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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n h,\n Prop,\n State,\n Listen,\n Event,\n EventEmitter,\n Element,\n Method,\n Watch,\n Host,\n} from \"@stencil/core\";\nimport {\n onComponentRequiredPropUndefined,\n isSlotUsed,\n removeDisabledFalse,\n convertToRGBA,\n isElInAGGrid,\n} from \"../../utils/helpers\";\nimport { IcColor, IcEmphasisType, IcSizes } from \"../../utils/types\";\nimport dismissIcon from \"../../assets/dismiss-icon.svg\";\n\n/**\n * @slot icon - Content will be rendered at the start of the chip.\n * @slot badge - Badge component overlaying the top right of the chip.\n */\n@Component({\n tag: \"ic-chip\",\n styleUrl: \"ic-chip.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Chip {\n private inAGGrid: boolean = false;\n\n @Element() el: HTMLIcChipElement;\n\n @State() customColorClass: string = \"\";\n @State() hovered: boolean = false;\n @State() visible: boolean = true;\n\n /**\n * The custom chip colour. This will override the theme colour.\n * Can be a hex value e.g. \"#ff0000\", RGB e.g. \"rgb(255, 0, 0)\", or RGBA e.g. \"rgba(255, 0, 0, 1)\".\n */\n @Prop() customColor?: IcColor;\n\n @Watch(\"customColor\")\n customColorHandler(): void {\n this.setChipColour();\n }\n\n /**\n * If `true`, the chip will appear disabled.\n */\n @Prop() disabled?: boolean = false;\n @Watch(\"disabled\")\n watchDisabledHandler(): void {\n removeDisabledFalse(this.disabled, this.el);\n }\n\n /**\n * If `true`, the chip will have a close button at the end to dismiss it.\n */\n @Prop() dismissible?: boolean = false;\n\n /**\n * The text rendered within the chip.\n */\n @Prop() label!: string;\n\n /**\n * The size of the chip.\n */\n @Prop() size?: IcSizes = \"medium\";\n /**\n * Sets the chip to the dark or light theme colors. \"inherit\" will set the color based on the system settings or ic-theme component.\n * Setting the \"customColor\" prop will override this.\n */\n @Prop() theme?: \"dark\" | \"light\" | \"inherit\" = \"inherit\";\n\n /**\n * If `true`, the outlined variant of chip will have a transparent background rather than the theme defined color.\n */\n @Prop() transparentBackground?: boolean = true;\n\n /**\n * The emphasis of the chip.\n */\n @Prop() variant?: IcEmphasisType = \"filled\";\n\n /**\n * The text in the dismiss button tooltip and aria label.\n */\n @Prop() dismissLabel?: string = \"Dismiss\";\n\n /**\n * Is emitted when the user dismisses the chip.\n */\n @Event() icDismiss: EventEmitter<void>;\n\n componentWillLoad(): void {\n removeDisabledFalse(this.disabled, this.el);\n this.customColorHandler();\n }\n\n componentWillRender(): void {\n if (isElInAGGrid(this.el)) {\n this.inAGGrid = true;\n }\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Chip\"\n );\n }\n\n @Listen(\"icDismiss\", { capture: true })\n handleClick(): void {\n this.visible = !this.visible;\n }\n\n /**\n * Sets focus on the chip.\n */\n @Method()\n async setFocus(): Promise<void> {\n this.el.shadowRoot?.querySelector(\"button\")?.focus();\n }\n\n private dismissAction = (): void => {\n this.icDismiss.emit();\n };\n\n private mouseEnterHandler = (): void => {\n this.hovered = true;\n };\n\n private mouseLeaveHandler = (): void => {\n this.hovered = false;\n };\n\n private setChipColour = () => {\n const colorRGBA = this.customColor ? convertToRGBA(this.customColor) : null;\n\n if (colorRGBA) {\n const { r, g, b, a } = colorRGBA;\n this.customColorClass =\n (r * 299 + g * 587 + b * 114) / 1000 > 133.3505\n ? \"ic-chip-dark-text\"\n : \"ic-chip-light-text\";\n this.el.setAttribute(\n \"style\",\n `--chip-custom-color: rgba(${r}, ${g}, ${b}, ${a});`\n );\n } else {\n this.customColorClass = \"\";\n }\n };\n\n render() {\n const {\n label,\n variant,\n size,\n dismissible,\n visible,\n disabled,\n hovered,\n theme,\n customColorClass,\n dismissLabel,\n } = this;\n\n return (\n <Host\n class={{\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n [`${customColorClass}`]:\n variant === \"filled\" && customColorClass !== \"\",\n }}\n >\n {visible && (\n <div\n class={{\n chip: true,\n [`${variant}`]: true,\n [`${size}`]: true,\n disabled: !!disabled,\n dismissible: !!dismissible,\n hovered,\n \"non-transparent\":\n this.variant === \"outlined\" && !this.transparentBackground,\n }}\n >\n {isSlotUsed(this.el, \"icon\") && (\n <div class=\"icon\">\n <slot name=\"icon\" />\n </div>\n )}\n <ic-typography\n variant=\"label\"\n apply-vertical-margins={false}\n class={{ label: true, \"in-ag-grid\": this.inAGGrid }}\n >\n <span>{label}</span>\n </ic-typography>\n {dismissible && (\n <ic-tooltip\n label={dismissLabel!}\n target=\"dismiss-icon\"\n class={{ \"tooltip-disabled\": !!disabled }}\n >\n <button\n id=\"dismiss-icon\"\n class=\"dismiss-icon\"\n aria-label={`${dismissLabel} ${label} chip`}\n disabled={disabled}\n tabindex={disabled ? -1 : 0}\n onClick={this.dismissAction}\n onMouseEnter={this.mouseEnterHandler}\n onMouseLeave={this.mouseLeaveHandler}\n innerHTML={dismissIcon}\n ></button>\n </ic-tooltip>\n )}\n {isSlotUsed(this.el, \"badge\") && <slot name=\"badge\"></slot>}\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|
1
|
+
{"version":3,"file":"ic-chip.js","sourceRoot":"","sources":["../../../src/components/ic-chip/ic-chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,CAAC,EACD,IAAI,EACJ,KAAK,EACL,MAAM,EACN,KAAK,EAEL,OAAO,EACP,MAAM,EACN,KAAK,EACL,IAAI,GACL,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gCAAgC,EAChC,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,WAAW,MAAM,+BAA+B,CAAC;AAExD;;;GAGG;AAQH,MAAM,OAAO,IAAI;IAPjB;QAYW,oBAAe,GAAsC,IAAI,CAAC;QAC1D,YAAO,GAAG,KAAK,CAAC;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n h,\n Prop,\n State,\n Listen,\n Event,\n EventEmitter,\n Element,\n Method,\n Watch,\n Host,\n} from \"@stencil/core\";\nimport {\n onComponentRequiredPropUndefined,\n isSlotUsed,\n removeDisabledFalse,\n convertToRGBA,\n isElInAGGrid,\n getBrandForegroundAppearance,\n} from \"../../utils/helpers\";\nimport {\n IcBrandForegroundNoDefault,\n IcColor,\n IcEmphasisType,\n IcSizes,\n IcThemeMode,\n} from \"../../utils/types\";\nimport dismissIcon from \"../../assets/dismiss-icon.svg\";\n\n/**\n * @slot icon - Content will be rendered at the start of the chip.\n * @slot badge - Badge component overlaying the top right of the chip.\n */\n@Component({\n tag: \"ic-chip\",\n styleUrl: \"ic-chip.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Chip {\n private buttonEl?: HTMLButtonElement;\n\n @Element() el: HTMLIcChipElement;\n\n @State() foregroundColor: IcBrandForegroundNoDefault | null = null;\n @State() hovered = false;\n @State() visible = true;\n\n /**\n * The custom chip colour. This will override the theme colour.\n * Can be a hex value e.g. \"#ff0000\", RGB e.g. \"rgb(255, 0, 0)\", or RGBA e.g. \"rgba(255, 0, 0, 1)\".\n */\n @Prop() customColor?: IcColor;\n @Watch(\"customColor\")\n customColorHandler(): void {\n const colorRGBA = this.customColor && convertToRGBA(this.customColor);\n if (!colorRGBA) {\n this.foregroundColor = null;\n return;\n }\n\n const { r, g, b, a } = colorRGBA;\n this.foregroundColor = getBrandForegroundAppearance(\n (r * 299 + g * 587 + b * 114) / 1000\n );\n this.el.setAttribute(\n \"style\",\n `--chip-custom-color: rgba(${r}, ${g}, ${b}, ${a});`\n );\n }\n\n /**\n * If `true`, the chip will appear disabled.\n */\n @Prop() disabled = false;\n @Watch(\"disabled\")\n watchDisabledHandler(): void {\n removeDisabledFalse(this.disabled, this.el);\n }\n\n /**\n * If `true`, the chip will have a close button at the end to dismiss it.\n */\n @Prop() dismissible = false;\n\n /**\n * The text in the dismiss button tooltip and aria label. Makes the user aware of the action resulting from clicking the 'Dismiss chip' button.\n */\n @Prop() dismissLabel = \"Dismiss\";\n\n /**\n * The text rendered within the chip.\n */\n @Prop() label!: string;\n\n /**\n * The size of the chip.\n */\n @Prop() size: IcSizes = \"medium\";\n /**\n * Sets the chip to the dark or light theme colors. \"inherit\" will set the color based on the system settings or ic-theme component.\n * Setting the \"customColor\" prop will override this.\n */\n @Prop() theme: IcThemeMode = \"inherit\";\n\n /**\n * If `true`, the outlined variant of chip will have a transparent background rather than the theme defined color.\n */\n @Prop() transparentBackground = true;\n\n /**\n * The emphasis of the chip.\n */\n @Prop() variant: IcEmphasisType = \"filled\";\n\n /**\n * Is emitted when the user dismisses the chip.\n */\n @Event() icDismiss: EventEmitter<void>;\n\n componentWillLoad(): void {\n removeDisabledFalse(this.disabled, this.el);\n this.customColorHandler();\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Chip\"\n );\n }\n\n @Listen(\"icDismiss\", { capture: true })\n handleClick(): void {\n this.visible = !this.visible;\n }\n\n /**\n * Sets focus on the chip.\n */\n @Method()\n async setFocus(): Promise<void> {\n this.buttonEl?.focus();\n }\n\n private dismissAction = () => {\n this.icDismiss.emit();\n };\n\n private mouseEnterHandler = () => {\n this.hovered = true;\n };\n\n private mouseLeaveHandler = () => {\n this.hovered = false;\n };\n\n render() {\n const {\n label,\n variant,\n size,\n dismissible,\n visible,\n disabled,\n hovered,\n theme,\n foregroundColor,\n dismissLabel,\n transparentBackground,\n } = this;\n\n const ariaLabel = `${label} chip`;\n\n return (\n <Host\n class={{\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n [`ic-chip-${foregroundColor}-text`]:\n variant === \"filled\" && !!foregroundColor,\n }}\n >\n {visible && (\n <div\n class={{\n chip: true,\n [`${variant}`]: true,\n [`${size}`]: true,\n disabled,\n dismissible,\n hovered,\n \"non-transparent\":\n variant === \"outlined\" && !transparentBackground,\n }}\n >\n {isSlotUsed(this.el, \"icon\") && (\n <div class=\"icon\">\n <slot name=\"icon\" />\n </div>\n )}\n <ic-typography\n variant=\"label\"\n apply-vertical-margins={false}\n class={{ label: true, \"in-ag-grid\": isElInAGGrid(this.el) }}\n >\n <span>{label}</span>\n </ic-typography>\n {dismissible && (\n <ic-tooltip\n label={dismissLabel}\n target=\"dismiss-icon\"\n class={{ \"tooltip-disabled\": disabled }}\n >\n <button\n id=\"dismiss-icon\"\n class=\"dismiss-icon\"\n ref={(el) => (this.buttonEl = el)}\n aria-label={`${dismissLabel} ${ariaLabel}`}\n disabled={disabled}\n tabindex={disabled ? -1 : 0}\n onClick={this.dismissAction}\n onMouseEnter={this.mouseEnterHandler}\n onMouseLeave={this.mouseLeaveHandler}\n innerHTML={dismissIcon}\n ></button>\n </ic-tooltip>\n )}\n {isSlotUsed(this.el, \"badge\") && <slot name=\"badge\"></slot>}\n </div>\n )}\n {dismissible && (\n <div class=\"sr-only\" aria-live=\"polite\">\n {!visible ? `Dismissed ${ariaLabel}` : \"\"}\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|
@@ -40,10 +40,10 @@ export class ClassificationBanner {
|
|
40
40
|
if (!classification ||
|
41
41
|
(classification && !classificationText[classification]))
|
42
42
|
classification = "default";
|
43
|
-
return (h(Host, { key: '
|
43
|
+
return (h(Host, { key: 'f30aac02756628e8538572d0b2cab67b0ffc4b75', class: { ["ic-classification-banner-inline"]: !!inline } }, h("banner", { key: '5eda99cbdf376e20ad9ed03fc5c7fc515805c6da', "aria-label": "Protective marking", class: {
|
44
44
|
["classification-banner"]: true,
|
45
45
|
[`${classification}`]: classification,
|
46
|
-
} }, classification !== "default" ? (h("span", { class: "offscreen" }, "The protective marking of this page is:", " ")) : null, h("ic-typography", { key: '
|
46
|
+
} }, classification !== "default" ? (h("span", { class: "offscreen" }, "The protective marking of this page is:", " ")) : null, h("ic-typography", { key: '3f094aa6b0ed00ec4f70858a81a030b2599829f9', variant: "caption-uppercase" }, classification === "default"
|
47
47
|
? classificationText[classification]
|
48
48
|
: `${upTo ? "up to" : ""}
|
49
49
|
${country}
|
@@ -18,10 +18,10 @@ export class DataList {
|
|
18
18
|
if (size === "small") {
|
19
19
|
Array.from(el.children).forEach((child) => child.setAttribute("size", "small"));
|
20
20
|
}
|
21
|
-
return (h(Host, { key: '
|
21
|
+
return (h(Host, { key: '6f83752c95bc937a1fcc825cfaefa57f3103b71d', class: {
|
22
22
|
"ic-data-list-small": size === "small",
|
23
23
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
24
|
-
} }, h("div", { key: '
|
24
|
+
} }, h("div", { key: '1d2299d6bf8a13cba28b18d33ec8e1387c624cc5', class: "heading", id: "data-list-heading" }, h("slot", { key: '2f8b5c7bbb30d4c11bc08947737c7c9d7f0e91ed', name: "heading" }, h("ic-typography", { key: '7665e122d1da3e292abf459f0456e64c966eb65d', variant: "h3" }, heading))), h("div", { key: '44be7746fb08b772fc9bb38cd673811026fe4092', class: "divider" }), h("ul", { key: '8aa11aeada0518d6d9db18f3c962863e1414b02b', "aria-labelledby": "data-list-heading", class: "rows" }, h("slot", { key: '18635edff92562810f11056cb750615884e28efe' }))));
|
25
25
|
}
|
26
26
|
static get is() { return "ic-data-list"; }
|
27
27
|
static get encapsulation() { return "shadow"; }
|
@@ -68,12 +68,12 @@ export class DataRow {
|
|
68
68
|
}
|
69
69
|
render() {
|
70
70
|
const { el, listSize, hasEndComponent, label, renderCellContent, size, theme, value, } = this;
|
71
|
-
return (h(Host, { key: '
|
71
|
+
return (h(Host, { key: '572e916da4b05c25ef2d30d186e80b08f3dfb5b5', class: {
|
72
72
|
["ic-data-row-small"]: size === "small",
|
73
73
|
["breakpoint-medium"]: listSize === "m",
|
74
74
|
["breakpoint-xs"]: listSize === "xs",
|
75
75
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
76
|
-
}, role: "listitem" }, h("div", { key: '
|
76
|
+
}, role: "listitem" }, h("div", { key: '3fd5751be8c21404dfbe1c37d121103d7bc32ec5', class: "data" }, h("div", { key: '9dfd49f76340e059ad39cda8f7a28d7d51edeb5a', class: "text-cells" }, (isSlotUsed(el, "label") || label) && renderCellContent("label"), (isSlotUsed(el, "value") || value) && renderCellContent("value")), hasEndComponent && (h("div", { key: '0b64f2937db81ddb2aa12ea4a3d6a19ba69c925b', class: "end-component" }, h("slot", { key: 'fe70b486ca8ccc5f409fe805a772bd0110752a75', name: "end-component" })))), h("div", { key: '286f657395d2d77dd8d2783a395d02f897fd361b', class: "divider" })));
|
77
77
|
}
|
78
78
|
static get is() { return "ic-data-row"; }
|
79
79
|
static get encapsulation() { return "shadow"; }
|
@@ -499,7 +499,9 @@ video {
|
|
499
499
|
.dialog {
|
500
500
|
background-color: var(--ic-dialog-background);
|
501
501
|
color: var(--ic-dialog-text-primary);
|
502
|
+
|
502
503
|
--ic-typography-color: var(--ic-dialog-text-primary);
|
504
|
+
|
503
505
|
border: var(--ic-space-1px) solid var(--ic-dialog-border);
|
504
506
|
border-radius: var(--ic-border-radius);
|
505
507
|
padding: var(--ic-space-xs) 0 var(--ic-space-md);
|
@@ -610,7 +612,6 @@ video {
|
|
610
612
|
.dialog {
|
611
613
|
width: 100vw;
|
612
614
|
height: 100vh;
|
613
|
-
transform: translateY(-5rem);
|
614
615
|
max-width: none;
|
615
616
|
max-height: none;
|
616
617
|
box-sizing: border-box;
|
@@ -334,7 +334,7 @@ export class Dialog {
|
|
334
334
|
}
|
335
335
|
render() {
|
336
336
|
const { dialogRendered, disableHeightConstraint, fadeIn, theme } = this;
|
337
|
-
return (h(Host, { key: '
|
337
|
+
return (h(Host, { key: '11ce388b78e337682fcd54494a076789d488b86b', class: {
|
338
338
|
"ic-dialog-hidden": !dialogRendered,
|
339
339
|
"ic-dialog-fade-in": fadeIn,
|
340
340
|
"disable-height-constraint": !!disableHeightConstraint,
|
@@ -1,23 +1,29 @@
|
|
1
1
|
/**
|
2
2
|
* @prop --ic-divider-vertical-height: The height of a vertical divider. The default value is `inherit`.
|
3
3
|
*/
|
4
|
+
|
4
5
|
/**
|
5
6
|
* @prop --ic-divider-horizontal-width: The width of a horizontal divider. The default value is `inherit`.
|
6
7
|
*/
|
8
|
+
|
7
9
|
/**
|
8
10
|
* @prop --ic-divider-label-width: The max-width of the divider label. When orientation is set to `horizontal`, the default value is `max(20rem, 60%)`. When orientation is set to `vertical`, the default value is `20 rem`.
|
9
11
|
*/
|
10
12
|
|
11
13
|
/* IC-DIVIDER COLORS */
|
14
|
+
|
12
15
|
/**
|
13
16
|
* @internal @prop --ic-divider-background
|
14
17
|
*/
|
18
|
+
|
15
19
|
/**
|
16
20
|
* @internal @prop --ic-divider-background-monochrome
|
17
21
|
*/
|
22
|
+
|
18
23
|
/**
|
19
24
|
* @internal @prop --ic-divider-label
|
20
25
|
*/
|
26
|
+
|
21
27
|
/**
|
22
28
|
* @internal @prop --ic-divider-label-monochrome
|
23
29
|
*/
|
@@ -250,6 +256,7 @@ hr,
|
|
250
256
|
|
251
257
|
:host(.ic-divider-vertical) .ic-divider-label {
|
252
258
|
text-align: center;
|
259
|
+
max-width: var(--ic-divider-label-width, 20rem);
|
253
260
|
}
|
254
261
|
|
255
262
|
:host() .ic-divider-label-container {
|
@@ -258,10 +265,6 @@ hr,
|
|
258
265
|
max-width: var(--ic-divider-label-width, max(20rem, 60%));
|
259
266
|
}
|
260
267
|
|
261
|
-
:host(.ic-divider-vertical) .ic-divider-label {
|
262
|
-
max-width: var(--ic-divider-label-width, 20rem);
|
263
|
-
}
|
264
|
-
|
265
268
|
:host(.ic-divider-vertical) .ic-divider-label-container {
|
266
269
|
max-width: var(--ic-divider-label-width, 20rem);
|
267
270
|
}
|
@@ -37,11 +37,11 @@ export class EmptyState {
|
|
37
37
|
}
|
38
38
|
render() {
|
39
39
|
const { aligned, body, maxLines, heading, imageSize, subheading, theme } = this;
|
40
|
-
return (h(Host, { key: '
|
40
|
+
return (h(Host, { key: '16659f35d2b14d9a5e32fe6c61619fbafdf58f53', class: {
|
41
41
|
[`ic-empty-state-${aligned}`]: true,
|
42
42
|
[`image-${imageSize}`]: isSlotUsed(this.el, "image"),
|
43
43
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
44
|
-
} }, isSlotUsed(this.el, "image") && h("slot", { key: '
|
44
|
+
} }, isSlotUsed(this.el, "image") && h("slot", { key: 'ccc8a2daf0041d9dd5e611d3b60c96820271745b', name: "image" }), h("div", { key: 'ab68dff198b63394d890399ec53b9befbb70f222' }, h("slot", { key: 'fe99ebbfe6b9c899d4b1fb5737df268e0bc38bb4', name: "heading" }, h("ic-typography", { key: 'eea6eb657e09159b27935e16864961b95387a3d6', variant: "h4", class: "empty-state-heading" }, heading)), h("slot", { key: 'ca04ac75d72fc5864ed7821bf9d16c8999eac3aa', name: "subheading" }, h("ic-typography", { key: '257a4f73c4fb3577e4c1653607a492b4f4d18470', variant: "subtitle-small", class: "empty-state-subheading" }, subheading)), h("slot", { key: 'f0efda6128d1b5a5f2b280faf23940b0832e3121', name: "body" }, h("ic-typography", { key: '128849e7a458b1ff7b51079eeb9f6967df88cef1', maxLines: maxLines, class: "empty-state-body" }, body))), isSlotUsed(this.el, "actions") && (h("div", { key: '22cf30fd1f3636fb3344689c4435b59d4148bb5f', class: "action-area" }, h("slot", { key: 'c4e187603beb9b2291c9e038202ff651d4decfff', name: "actions" })))));
|
45
45
|
}
|
46
46
|
static get is() { return "ic-empty-state"; }
|
47
47
|
static get encapsulation() { return "shadow"; }
|
@@ -89,7 +89,7 @@ export class Footer {
|
|
89
89
|
isSlotUsed(el, "caption") ||
|
90
90
|
caption ||
|
91
91
|
copyright;
|
92
|
-
return (h(Host, { key: '
|
92
|
+
return (h(Host, { key: 'b25023d5362ca9baca9c01a319c038eb4540e97a', class: {
|
93
93
|
["ic-footer"]: true,
|
94
94
|
[`ic-footer-${small ? "small" : "sparse"}`]: true,
|
95
95
|
[`ic-footer-${groupLinks ? "grouped" : "ungrouped"}`]: true,
|
@@ -97,10 +97,10 @@ export class Footer {
|
|
97
97
|
// Slots will be able to infer their own color
|
98
98
|
[`ic-footer-${IcBrandForegroundEnum.Dark}`]: foregroundColor === IcBrandForegroundEnum.Dark,
|
99
99
|
[`ic-footer-${IcBrandForegroundEnum.Light}`]: foregroundColor === IcBrandForegroundEnum.Light,
|
100
|
-
} }, h("footer", { key: '
|
100
|
+
} }, h("footer", { key: '053aafbd7016c4a74230cb3f4bd15ff1bd331761', ref: (el) => (this.footerEl = el) }, (isSlotUsed(el, "description") || description) && (h("div", { key: 'c963c42c0f4d0a19d8fe9c133ca3cf9261398d70', class: "footer-description" }, h("ic-section-container", { key: '0dd1fd94781722a494368e146f2a0b8417e1849d', aligned: aligned, fullHeight: true }, h("div", { key: '61a25339f136d624ef39c3f72ff920735eac3656', class: "footer-description-inner" }, h("ic-typography", { key: '4655d70fa69d5cc7ed44e352d37646a93b95067a', variant: "body" }, h("slot", { key: '3a04c622d16c8fbad42bde6e5a62b94a7cc0dbfc', name: "description" }, description)))))), isSlotUsed(el, "link") && (h("div", { key: '9a98191b7712a906aafa5295786586cdca8fdd63', class: "footer-links" }, groupLinks && small ? (h("div", { class: "footer-links-inner", role: "list" }, h("slot", { name: "link" }))) : (h("ic-section-container", { fullHeight: true, aligned: aligned }, h("div", { class: "footer-links-inner", role: "list" }, h("slot", { name: "link" })))))), showComplianceSection && (h("div", { key: '26f71e1feac14df4ffd9a5f945823e7d8a334f87', class: "footer-compliance" }, h("ic-section-container", { key: 'd4b53cd4e8b1170b629f6493188f48438c1edd00', aligned: aligned, fullHeight: true }, h("div", { key: '50b07020da89a9ebe53d6fd035b7139ac8ca2282', class: "footer-compliance-inner" }, isSlotUsed(el, "logo") && (h("div", { key: '2ea27171f29498639b56426d4d21fbf4afc98798', class: "footer-logo" }, h("slot", { key: 'b09b28173314c1b0a63ce1ecdf60822d7497ed80', name: "logo" }))), (isSlotUsed(el, "caption") || caption) && (h("div", { key: 'b4ce260f52b3216ec3c73430311b7659e651a544', class: "footer-caption" }, h("ic-typography", { key: 'f83868bac58237dcd8586d4d161db7677f0b2b16', variant: deviceSize <= IC_DEVICE_SIZES.M ? "caption" : "body" }, h("slot", { key: '3da3e317b1f62be124bbabc9283e08258dc57141', name: "caption" }, caption)))), copyright && (h("div", { key: '63b18007efa190d038048a1d57223dc0547a64ad', class: {
|
101
101
|
["footer-copyright"]: true,
|
102
102
|
["classification-spacing"]: hasClassificationBanner(),
|
103
|
-
} }, h("ic-typography", { key: '
|
103
|
+
} }, h("ic-typography", { key: '0dc6200bfb89a7b34743c442f9c61829cd4b9374', variant: deviceSize <= IC_DEVICE_SIZES.M
|
104
104
|
? "caption-uppercase"
|
105
105
|
: "label-uppercase" }, "\u00A9 Crown Copyright"))))))))));
|
106
106
|
}
|
@@ -39,12 +39,12 @@ export class FooterLink {
|
|
39
39
|
const { footerConfig, href, hreflang, referrerpolicy, rel, target, download, } = this;
|
40
40
|
const { small, grouped } = footerConfig;
|
41
41
|
const isLogoLink = !!this.el.closest("div[slot='logo']");
|
42
|
-
return (h(Host, { key: '
|
42
|
+
return (h(Host, { key: 'b093247260ef7378ef3aa666029e463641eb20c0', class: {
|
43
43
|
"footer-link": true,
|
44
44
|
[`footer-link-${grouped ? "grouped" : "ungrouped"}-${small ? "small" : "sparse"}`]: true,
|
45
45
|
[`footer-link-${this.foregroundColor}`]: true,
|
46
46
|
"footer-logo-link": isLogoLink,
|
47
|
-
}, role: "listitem" }, h("ic-link", { key: '
|
47
|
+
}, role: "listitem" }, h("ic-link", { key: '79ac221357a96ca920f68609bb390a30f53be256', class: "footer-link", href: href, hreflang: hreflang, referrerpolicy: referrerpolicy, rel: rel, download: download !== false ? download : undefined, target: target }, h("slot", { key: '06182bca4f4268ca01466a411a8de43671fbea24' }))));
|
48
48
|
}
|
49
49
|
static get is() { return "ic-footer-link"; }
|
50
50
|
static get encapsulation() { return "shadow"; }
|
@@ -454,9 +454,6 @@ video {
|
|
454
454
|
--footer-link-label-margin-bottom: var(--ic-space-md);
|
455
455
|
--footer-link-group-links-padding-left: var(--ic-space-md);
|
456
456
|
--footer-link-group-links-padding-bottom: var(--ic-space-md);
|
457
|
-
}
|
458
|
-
|
459
|
-
:host(.footer-link-group-small) {
|
460
457
|
--footer-link-group-border-bottom: var(--ic-space-1px) solid
|
461
458
|
var(--ic-footer-keyline);
|
462
459
|
}
|
@@ -74,17 +74,17 @@ export class Hero {
|
|
74
74
|
"background-position": scrollFactor,
|
75
75
|
};
|
76
76
|
}
|
77
|
-
return (h(Host, { key: '
|
77
|
+
return (h(Host, { key: 'e03ade9bdd2567cd7ab8c1072bbdd90b3d75e3d8', class: {
|
78
78
|
[`ic-hero-${IcBrandForegroundEnum.Dark}`]: foregroundColor === IcBrandForegroundEnum.Dark,
|
79
79
|
["has-background-image"]: backgroundImage !== undefined,
|
80
80
|
["ic-hero-small"]: size === "small",
|
81
81
|
["secondary-heading"]: !!secondaryHeading,
|
82
|
-
}, style: style }, h("ic-section-container", { key: '
|
82
|
+
}, style: style }, h("ic-section-container", { key: 'af3bd63ec96401bf7db7238c8ceb5f2c867f4a0b', aligned: aligned, fullHeight: true, class: "section-container" }, h("div", { key: '8a37d137f390c9203973349f4fc3c2d2616045a9', class: {
|
83
83
|
["left-container"]: true,
|
84
84
|
["left-container-full-width"]: this.leftContentFullWidth,
|
85
|
-
} }, h("div", { key: '
|
85
|
+
} }, h("div", { key: 'a5796632e455cafaa95e2d03a7a653c04362aad6', class: "heading" }, h("slot", { key: '48c41d241497410ecd63ceccd3de26e350b1261d', name: "heading" }, h("ic-typography", { key: '6a6a601125d672f0ccd9c83dc51a016dd15e3e8d', variant: size === "small" ? "h2" : "h1", class: {
|
86
86
|
["heading-bottom-spacing"]: size !== "small",
|
87
|
-
} }, h("h2", { key: '
|
87
|
+
} }, h("h2", { key: 'c467063d6438bb2cc0ce9c04dd73408c184193c2' }, heading)))), h("div", { key: '677298e8979a2220a3c6f468476c1f2b1777a3af', class: "subheading" }, h("slot", { key: 'e2a55ff9eb1373c7b2c598909bee840a9224d606', name: "subheading" }, h("ic-typography", { key: '6fbfaad27a0439f6e0bf469757a1238e307683ac', variant: "body" }, subheading))), h("div", { key: '423aafd1dc41ca03887a59730e5880e23e2964b6', class: "interaction-container" }, h("slot", { key: '186057e873764afda68fad740fb8cb2826071b11', name: "interaction" }))), (isPropDefined(secondaryHeading) || this.rightContent) && (h("div", { key: '93910106562c1fc044d4a2a8126ff272905a34bf', class: "right-container" }, h("slot", { key: 'e801d684ed24de1e7138b6edb525e288c0461d60', name: "secondary" }, secondaryHeading && (h("div", { key: 'b602ea433de5de2d04522ac0f448c0422e886faa', class: "secondary-container" }, h("div", { key: 'd538d984f09bc748dc7c23599439bf7eba85f830', class: "secondary-heading" }, h("ic-typography", { key: '68d89508c9660f675ed35c0fa18f6cfde2cb5288', variant: "h4" }, h("h3", { key: '07285a037d0bfb1b397d9b0b96511804c7afc464' }, secondaryHeading))), h("div", { key: '6187e9026f1526f5c5d5c5e62bc1360fb869ef12', class: "secondary-subheading" }, h("ic-typography", { key: '6172800b84a3628d472b0cf7a1c3b52ff41a0aec', variant: "subtitle-small" }, secondarySubheading))))))))));
|
88
88
|
}
|
89
89
|
static get is() { return "ic-hero"; }
|
90
90
|
static get encapsulation() { return "shadow"; }
|
@@ -155,22 +155,22 @@ export class HorizontalScroll {
|
|
155
155
|
}
|
156
156
|
render() {
|
157
157
|
const { firstItemVisible, lastItemVisible, itemOverflow } = this;
|
158
|
-
return (h(Host, { key: '
|
158
|
+
return (h(Host, { key: '329d00bc4e7ebfab434cb41dd32e919820c5adb5', class: {
|
159
159
|
["ic-horizontal-scroll-visible"]: itemOverflow,
|
160
160
|
["ic-horizontal-scroll-dark"]: this.appearance === IcBrandForegroundEnum.Dark,
|
161
161
|
["ic-horizontal-scroll-light"]: this.appearance === IcBrandForegroundEnum.Light,
|
162
162
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
163
|
-
} }, h("div", { key: '
|
163
|
+
} }, h("div", { key: 'ed231bf1fcd68399e29e790026b377bf8f96a14e', "aria-hidden": "true", class: {
|
164
164
|
["scroll-container-left"]: true,
|
165
165
|
["hidden"]: !itemOverflow,
|
166
166
|
["disabled"]: firstItemVisible,
|
167
|
-
}, role: "tab" }, h("ic-button", { key: '
|
167
|
+
}, role: "tab" }, h("ic-button", { key: 'c34f45cb44e242939985f792a21e482a11078fba', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll left", theme: this.theme === "light" || this.theme === "inherit"
|
168
168
|
? "dark"
|
169
|
-
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), h("span", { key: '
|
169
|
+
: "light", monochrome: this.monochrome, innerHTML: LeftArrow, disabled: firstItemVisible, tabindex: "-1", onClick: this.scrollLeft, onMouseDown: this.leftArrowMouseDownHandler }), h("span", { key: 'c5b52e4cfa655f8dc499e69da531870f4e4fe216', class: "scroll-splitter-left" })), h("slot", { key: '8478dc63668ed2e842182c47e9a3b27b77ac642f' }), h("div", { key: 'b9b0e21e69a40f7afda403db3db8b983257240c0', "aria-hidden": "true", class: {
|
170
170
|
["scroll-container-right"]: true,
|
171
171
|
["hidden"]: !itemOverflow,
|
172
172
|
["disabled"]: lastItemVisible,
|
173
|
-
}, role: "tab" }, h("span", { key: '
|
173
|
+
}, role: "tab" }, h("span", { key: '909936dddf54502bb1bdc3fdfdf36d59b5582238', class: "scroll-splitter-right" }), h("ic-button", { key: '4e9093a9da1b3e387933dfc2495f1279bb7ad180', class: "scroll-arrow", variant: "icon-tertiary", "aria-label": "Scroll right", theme: this.theme === "light" || this.theme === "inherit"
|
174
174
|
? "dark"
|
175
175
|
: "light", monochrome: this.monochrome, innerHTML: RightArrow, disabled: lastItemVisible, tabindex: "-1", onClick: this.scrollRight, onMouseDown: this.rightArrowMouseDownHandler }))));
|
176
176
|
}
|