@ukic/web-components 3.2.0 → 3.4.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/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-789082d4.js → helpers-fc4016d2.js} +21 -37
- 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.cjs.entry.js +10 -8
- package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +2 -2
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +4 -4
- 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 +110 -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 +37 -41
- 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-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 +2 -2
- package/dist/cjs/ic-divider.cjs.entry.js +1 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +3 -3
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +3 -3
- package/dist/cjs/ic-footer.cjs.entry.js +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +7 -6
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +23 -22
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +8 -8
- package/dist/cjs/ic-link.cjs.entry.js +12 -4
- 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 +116 -164
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +65 -62
- 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 +5 -5
- package/dist/cjs/ic-search-bar.cjs.entry.js +149 -154
- 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 +142 -218
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +25 -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 +2 -2
- package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
- package/dist/cjs/ic-step.cjs.entry.js +14 -14
- 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 +39 -31
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +2 -2
- 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 +54 -68
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +62 -64
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +65 -63
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-accordion/ic-accordion.js +9 -7
- package/dist/collection/components/ic-accordion/ic-accordion.js.map +1 -1
- package/dist/collection/components/ic-accordion/ic-accordion.stories.js +1 -1
- package/dist/collection/components/ic-alert/ic-alert.css +4 -0
- package/dist/collection/components/ic-badge/ic-badge.css +1 -1
- package/dist/collection/components/ic-badge/ic-badge.js +2 -2
- 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 +105 -62
- 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 +10 -2
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.css +3 -0
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.js +4 -4
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +9 -1
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +73 -80
- 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-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.js +1 -1
- package/dist/collection/components/ic-empty-state/ic-empty-state.js +2 -2
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
- package/dist/collection/components/ic-hero/ic-hero.css +13 -4
- package/dist/collection/components/ic-hero/ic-hero.js +5 -4
- package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
- package/dist/collection/components/ic-hero/ic-hero.stories.js +1 -0
- 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 +12 -4
- 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 +41 -40
- package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
- package/dist/collection/components/ic-menu-item/ic-menu-item.css +0 -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.js +119 -167
- 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 +7 -13
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +80 -74
- 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 +3 -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.js +4 -4
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +208 -211
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
- package/dist/collection/components/ic-search-bar/ic-search-bar.stories.js +9 -8
- package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
- package/dist/collection/components/ic-select/ic-select.js +196 -271
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-select/ic-select_(single).stories.js +30 -21
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +43 -4
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.stories.js +247 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.js +2 -2
- package/dist/collection/components/ic-skip-link/ic-skip-link.js +2 -2
- package/dist/collection/components/ic-status-tag/ic-status-tag.js +2 -2
- 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 +124 -101
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
- package/dist/collection/components/ic-theme/ic-theme.js +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 +40 -7
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +80 -82
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js.map +1 -1
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +79 -88
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js.map +1 -1
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +2 -2
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +81 -79
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
- package/dist/collection/components/ic-typography/ic-typography.js +2 -2
- package/dist/collection/utils/helpers.js +20 -36
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/components/helpers.js +21 -37
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-accordion.js +9 -7
- package/dist/components/ic-accordion.js.map +1 -1
- package/dist/components/ic-alert.js +1 -1
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-badge.js +3 -3
- 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 +8 -9
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +39 -43
- 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-data-list.js +2 -2
- package/dist/components/ic-data-row.js +2 -2
- package/dist/components/ic-dialog.js +1 -1
- package/dist/components/ic-empty-state.js +2 -2
- package/dist/components/ic-footer-link.js +2 -2
- package/dist/components/ic-hero.js +6 -5
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-horizontal-scroll2.js +5 -5
- package/dist/components/ic-input-component-container2.js +3 -3
- package/dist/components/ic-input-container2.js +2 -2
- package/dist/components/ic-input-label2.js +4 -4
- package/dist/components/ic-input-validation2.js +3 -3
- package/dist/components/ic-link2.js +11 -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 +17 -16
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +2 -2
- package/dist/components/ic-navigation-group.js +115 -163
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +67 -62
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +4 -4
- package/dist/components/ic-page-header.js +6 -6
- package/dist/components/ic-pagination-item2.js +1 -1
- 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 +4 -4
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +4 -4
- package/dist/components/ic-search-bar.js +150 -154
- 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 +141 -217
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-side-navigation.js +25 -5
- 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 +2 -2
- package/dist/components/ic-status-tag.js +2 -2
- package/dist/components/ic-step.js +13 -13
- package/dist/components/ic-stepper.js +2 -2
- package/dist/components/ic-switch.js +5 -5
- 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-panel.js.map +1 -1
- package/dist/components/ic-tab.js +2 -2
- package/dist/components/ic-text-field.js +40 -31
- package/dist/components/ic-text-field.js.map +1 -1
- package/dist/components/ic-theme.js +1 -1
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast.js +3 -3
- package/dist/components/ic-toggle-button-group.js +53 -67
- package/dist/components/ic-toggle-button-group.js.map +1 -1
- package/dist/components/ic-toggle-button.js +61 -63
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/components/ic-tooltip2.js +2 -2
- package/dist/components/ic-top-navigation.js +65 -63
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-typography2.js +2 -2
- package/dist/core/core.css +159 -109
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-0fb68b4f.entry.js +2 -0
- package/dist/core/p-0fb68b4f.entry.js.map +1 -0
- package/dist/core/{p-bbe5596b.entry.js → p-15b7adaf.entry.js} +2 -2
- package/dist/core/{p-abaea607.entry.js → p-1d172032.entry.js} +2 -2
- package/dist/core/{p-fc50d582.entry.js → p-1d254b71.entry.js} +2 -2
- package/dist/core/p-1d254b71.entry.js.map +1 -0
- package/dist/core/{p-6de6b6b7.entry.js → p-23536595.entry.js} +2 -2
- package/dist/core/{p-81a12e36.entry.js → p-26dfc4db.entry.js} +2 -2
- package/dist/core/{p-81a12e36.entry.js.map → p-26dfc4db.entry.js.map} +1 -1
- package/dist/core/{p-f3c72ffb.entry.js → p-2c371198.entry.js} +2 -2
- package/dist/core/p-3676ac4e.entry.js +2 -0
- package/dist/core/p-3676ac4e.entry.js.map +1 -0
- package/dist/core/{p-f34eee68.entry.js → p-3cb4ecef.entry.js} +2 -2
- package/dist/core/{p-3eb7ef1d.entry.js → p-432aeae0.entry.js} +2 -2
- package/dist/core/p-4a2acb2e.entry.js +2 -0
- package/dist/core/p-4a2acb2e.entry.js.map +1 -0
- package/dist/core/p-4dc97b03.entry.js +2 -0
- package/dist/core/p-4dc97b03.entry.js.map +1 -0
- package/dist/core/p-4e48a671.entry.js +2 -0
- package/dist/core/p-4e48a671.entry.js.map +1 -0
- package/dist/core/p-513628ef.entry.js +2 -0
- package/dist/core/p-513628ef.entry.js.map +1 -0
- package/dist/core/{p-88924aef.entry.js → p-51b49429.entry.js} +2 -2
- package/dist/core/p-554845c4.entry.js +2 -0
- package/dist/core/p-554845c4.entry.js.map +1 -0
- package/dist/core/{p-7afc71d0.entry.js → p-56e0de32.entry.js} +2 -2
- package/dist/core/{p-7a0d238b.entry.js → p-56fb0298.entry.js} +2 -2
- package/dist/core/p-59b48450.entry.js +2 -0
- package/dist/core/p-59b48450.entry.js.map +1 -0
- package/dist/core/{p-fbde763c.entry.js → p-5aec3757.entry.js} +2 -2
- package/dist/core/{p-23d059ff.entry.js → p-5eb2ac90.entry.js} +2 -2
- package/dist/core/{p-c2ca6274.entry.js → p-60aad45d.entry.js} +2 -2
- package/dist/core/{p-33c86ba6.entry.js → p-628c32b8.entry.js} +2 -2
- package/dist/core/p-6cd0b010.entry.js +2 -0
- package/dist/core/p-6cd0b010.entry.js.map +1 -0
- package/dist/core/{p-7dfe0284.entry.js → p-6eea869b.entry.js} +2 -2
- package/dist/core/{p-0631c3ab.entry.js → p-7d2c07e2.entry.js} +2 -2
- package/dist/core/p-7d352865.entry.js +2 -0
- package/dist/core/p-7d352865.entry.js.map +1 -0
- package/dist/core/{p-959a9cdf.entry.js → p-7deaf128.entry.js} +2 -2
- package/dist/core/{p-959a9cdf.entry.js.map → p-7deaf128.entry.js.map} +1 -1
- package/dist/core/p-803f2eb8.entry.js +2 -0
- package/dist/core/p-803f2eb8.entry.js.map +1 -0
- package/dist/core/p-8242c24f.js +2 -0
- package/dist/core/p-8242c24f.js.map +1 -0
- package/dist/core/p-87fa5add.entry.js +2 -0
- package/dist/core/p-87fa5add.entry.js.map +1 -0
- package/dist/core/{p-3675c4b4.entry.js → p-887e00bb.entry.js} +2 -2
- package/dist/core/p-8958c60f.entry.js +2 -0
- package/dist/core/p-8958c60f.entry.js.map +1 -0
- package/dist/core/{p-45432bf5.entry.js → p-8c77dd65.entry.js} +2 -2
- package/dist/core/{p-e2f893f0.entry.js → p-9a6dc8b1.entry.js} +2 -2
- package/dist/core/p-9a6dc8b1.entry.js.map +1 -0
- package/dist/core/{p-acebb05c.entry.js → p-9c47521d.entry.js} +2 -2
- package/dist/core/p-a140bcaa.entry.js +2 -0
- package/dist/core/p-a17499ff.entry.js +2 -0
- package/dist/core/p-a17499ff.entry.js.map +1 -0
- package/dist/core/{p-005cd8a8.entry.js → p-aad10013.entry.js} +2 -2
- package/dist/core/p-aad2abbf.entry.js +2 -0
- package/dist/core/p-aad2abbf.entry.js.map +1 -0
- package/dist/core/p-bdcc79dd.entry.js +2 -0
- package/dist/core/p-bdcc79dd.entry.js.map +1 -0
- package/dist/core/{p-de43d375.entry.js → p-bf3b853e.entry.js} +2 -2
- package/dist/core/{p-e56d0db2.entry.js → p-c59fd23e.entry.js} +2 -2
- package/dist/core/{p-f815f8c9.entry.js → p-c5ffe2cf.entry.js} +2 -2
- package/dist/core/{p-5206a978.entry.js → p-c8cf1ad5.entry.js} +2 -2
- package/dist/core/p-cfa9ed7d.entry.js +2 -0
- package/dist/core/p-cfa9ed7d.entry.js.map +1 -0
- package/dist/core/{p-23ed8b99.entry.js → p-d4903dcd.entry.js} +2 -2
- package/dist/core/{p-1e4cdd2d.entry.js → p-d82b27df.entry.js} +2 -2
- package/dist/core/{p-7c0914e7.entry.js → p-d8ce39ac.entry.js} +2 -2
- package/dist/core/{p-70700c7a.entry.js → p-dcce0dfd.entry.js} +2 -2
- package/dist/core/{p-40f2f58e.entry.js → p-de1e04ac.entry.js} +2 -2
- package/dist/core/{p-4b601e06.entry.js → p-dee21f6d.entry.js} +2 -2
- package/dist/core/{p-4245a976.entry.js → p-dfc8cba6.entry.js} +2 -2
- package/dist/core/{p-b3ac38c5.entry.js → p-e2629bfe.entry.js} +2 -2
- package/dist/core/{p-3b5d3e24.entry.js → p-e38fddbb.entry.js} +2 -2
- package/dist/core/p-e38fddbb.entry.js.map +1 -0
- package/dist/core/p-eca6e215.entry.js +2 -0
- package/dist/core/p-eca6e215.entry.js.map +1 -0
- package/dist/core/{p-44e4e8c1.entry.js → p-ef36181d.entry.js} +2 -2
- package/dist/core/{p-ef09b450.entry.js → p-ef4b752c.entry.js} +2 -2
- package/dist/core/p-ef4b752c.entry.js.map +1 -0
- package/dist/core/{p-b3d6d5be.entry.js → p-fa38ad2e.entry.js} +2 -2
- package/dist/core/p-fc4f7180.entry.js +2 -0
- package/dist/core/p-fc4f7180.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-46a2d1fd.js → helpers-f2ffaa7c.js} +22 -38
- package/dist/esm/helpers-f2ffaa7c.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +1 -1
- package/dist/esm/ic-accordion.entry.js +10 -8
- package/dist/esm/ic-accordion.entry.js.map +1 -1
- package/dist/esm/ic-alert.entry.js +2 -2
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +1 -1
- package/dist/esm/ic-badge.entry.js +4 -4
- 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 +111 -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 +37 -41
- 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-data-list.entry.js +2 -2
- package/dist/esm/ic-data-row.entry.js +3 -3
- package/dist/esm/ic-dialog.entry.js +2 -2
- package/dist/esm/ic-divider.entry.js +1 -1
- package/dist/esm/ic-empty-state.entry.js +3 -3
- package/dist/esm/ic-footer-link-group.entry.js +1 -1
- package/dist/esm/ic-footer-link.entry.js +3 -3
- package/dist/esm/ic-footer.entry.js +1 -1
- package/dist/esm/ic-hero.entry.js +7 -6
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
- package/dist/esm/ic-input-component-container_3.entry.js +23 -22
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +8 -8
- package/dist/esm/ic-link.entry.js +12 -4
- 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 +116 -164
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +65 -62
- 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 +5 -5
- package/dist/esm/ic-search-bar.entry.js +149 -154
- 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 +142 -218
- package/dist/esm/ic-select.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +25 -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 +2 -2
- package/dist/esm/ic-status-tag.entry.js +3 -3
- package/dist/esm/ic-step.entry.js +14 -14
- 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 +39 -31
- package/dist/esm/ic-text-field.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +2 -2
- 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 +54 -68
- package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button.entry.js +62 -64
- package/dist/esm/ic-toggle-button.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +66 -64
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- 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 -1
- package/dist/types/components/ic-menu/ic-menu.d.ts +12 -12
- package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +4 -18
- package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +9 -7
- package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +40 -40
- package/dist/types/components/ic-select/ic-select.d.ts +36 -38
- package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +5 -0
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +40 -34
- package/dist/types/components/ic-toggle-button/ic-toggle-button.d.ts +10 -11
- package/dist/types/components/ic-toggle-button-group/ic-toggle-button-group.d.ts +10 -12
- package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +9 -8
- package/dist/types/components.d.ts +216 -203
- package/dist/types/utils/helpers.d.ts +8 -8
- package/hydrate/index.js +1158 -1350
- package/hydrate/index.mjs +1158 -1350
- package/package.json +2 -2
- package/vscode-data.json +172 -4
- package/dist/cjs/helpers-789082d4.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-0a8b3967.entry.js +0 -2
- package/dist/core/p-0a8b3967.entry.js.map +0 -1
- package/dist/core/p-0b4350df.entry.js +0 -2
- package/dist/core/p-0b4350df.entry.js.map +0 -1
- package/dist/core/p-0e618fc5.entry.js +0 -2
- package/dist/core/p-0e618fc5.entry.js.map +0 -1
- package/dist/core/p-18ecba80.entry.js +0 -2
- package/dist/core/p-18ecba80.entry.js.map +0 -1
- package/dist/core/p-281ce313.js +0 -2
- package/dist/core/p-281ce313.js.map +0 -1
- package/dist/core/p-30abe545.entry.js +0 -2
- package/dist/core/p-30abe545.entry.js.map +0 -1
- package/dist/core/p-3132270d.entry.js +0 -2
- package/dist/core/p-3132270d.entry.js.map +0 -1
- package/dist/core/p-3b5d3e24.entry.js.map +0 -1
- package/dist/core/p-517d7afb.entry.js +0 -2
- package/dist/core/p-517d7afb.entry.js.map +0 -1
- package/dist/core/p-5d4b0480.entry.js +0 -2
- package/dist/core/p-5d4b0480.entry.js.map +0 -1
- package/dist/core/p-5e18b899.entry.js +0 -2
- package/dist/core/p-5e18b899.entry.js.map +0 -1
- package/dist/core/p-6337fe1f.entry.js +0 -2
- package/dist/core/p-6337fe1f.entry.js.map +0 -1
- package/dist/core/p-63fe83ad.entry.js +0 -2
- package/dist/core/p-63fe83ad.entry.js.map +0 -1
- package/dist/core/p-8ba129fc.entry.js +0 -2
- package/dist/core/p-8ba129fc.entry.js.map +0 -1
- package/dist/core/p-950db960.entry.js +0 -2
- package/dist/core/p-950db960.entry.js.map +0 -1
- package/dist/core/p-9ea9a4ce.entry.js +0 -2
- package/dist/core/p-9ea9a4ce.entry.js.map +0 -1
- package/dist/core/p-a9c96e3e.entry.js +0 -2
- package/dist/core/p-a9c96e3e.entry.js.map +0 -1
- package/dist/core/p-ac7db165.entry.js +0 -2
- package/dist/core/p-ac7db165.entry.js.map +0 -1
- package/dist/core/p-c04f36c5.entry.js +0 -2
- package/dist/core/p-c62318a8.entry.js +0 -2
- package/dist/core/p-c62318a8.entry.js.map +0 -1
- package/dist/core/p-e2f893f0.entry.js.map +0 -1
- package/dist/core/p-e586ae7b.entry.js +0 -2
- package/dist/core/p-e586ae7b.entry.js.map +0 -1
- package/dist/core/p-ef09b450.entry.js.map +0 -1
- package/dist/core/p-fc50d582.entry.js.map +0 -1
- package/dist/core/p-fe833509.entry.js +0 -2
- package/dist/core/p-fe833509.entry.js.map +0 -1
- package/dist/esm/helpers-46a2d1fd.js.map +0 -1
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.types.d.ts +0 -1
- /package/dist/core/{p-bbe5596b.entry.js.map → p-15b7adaf.entry.js.map} +0 -0
- /package/dist/core/{p-abaea607.entry.js.map → p-1d172032.entry.js.map} +0 -0
- /package/dist/core/{p-6de6b6b7.entry.js.map → p-23536595.entry.js.map} +0 -0
- /package/dist/core/{p-f3c72ffb.entry.js.map → p-2c371198.entry.js.map} +0 -0
- /package/dist/core/{p-f34eee68.entry.js.map → p-3cb4ecef.entry.js.map} +0 -0
- /package/dist/core/{p-3eb7ef1d.entry.js.map → p-432aeae0.entry.js.map} +0 -0
- /package/dist/core/{p-88924aef.entry.js.map → p-51b49429.entry.js.map} +0 -0
- /package/dist/core/{p-7afc71d0.entry.js.map → p-56e0de32.entry.js.map} +0 -0
- /package/dist/core/{p-7a0d238b.entry.js.map → p-56fb0298.entry.js.map} +0 -0
- /package/dist/core/{p-fbde763c.entry.js.map → p-5aec3757.entry.js.map} +0 -0
- /package/dist/core/{p-23d059ff.entry.js.map → p-5eb2ac90.entry.js.map} +0 -0
- /package/dist/core/{p-c2ca6274.entry.js.map → p-60aad45d.entry.js.map} +0 -0
- /package/dist/core/{p-33c86ba6.entry.js.map → p-628c32b8.entry.js.map} +0 -0
- /package/dist/core/{p-7dfe0284.entry.js.map → p-6eea869b.entry.js.map} +0 -0
- /package/dist/core/{p-0631c3ab.entry.js.map → p-7d2c07e2.entry.js.map} +0 -0
- /package/dist/core/{p-3675c4b4.entry.js.map → p-887e00bb.entry.js.map} +0 -0
- /package/dist/core/{p-45432bf5.entry.js.map → p-8c77dd65.entry.js.map} +0 -0
- /package/dist/core/{p-acebb05c.entry.js.map → p-9c47521d.entry.js.map} +0 -0
- /package/dist/core/{p-c04f36c5.entry.js.map → p-a140bcaa.entry.js.map} +0 -0
- /package/dist/core/{p-005cd8a8.entry.js.map → p-aad10013.entry.js.map} +0 -0
- /package/dist/core/{p-de43d375.entry.js.map → p-bf3b853e.entry.js.map} +0 -0
- /package/dist/core/{p-e56d0db2.entry.js.map → p-c59fd23e.entry.js.map} +0 -0
- /package/dist/core/{p-f815f8c9.entry.js.map → p-c5ffe2cf.entry.js.map} +0 -0
- /package/dist/core/{p-5206a978.entry.js.map → p-c8cf1ad5.entry.js.map} +0 -0
- /package/dist/core/{p-23ed8b99.entry.js.map → p-d4903dcd.entry.js.map} +0 -0
- /package/dist/core/{p-1e4cdd2d.entry.js.map → p-d82b27df.entry.js.map} +0 -0
- /package/dist/core/{p-7c0914e7.entry.js.map → p-d8ce39ac.entry.js.map} +0 -0
- /package/dist/core/{p-70700c7a.entry.js.map → p-dcce0dfd.entry.js.map} +0 -0
- /package/dist/core/{p-40f2f58e.entry.js.map → p-de1e04ac.entry.js.map} +0 -0
- /package/dist/core/{p-4b601e06.entry.js.map → p-dee21f6d.entry.js.map} +0 -0
- /package/dist/core/{p-4245a976.entry.js.map → p-dfc8cba6.entry.js.map} +0 -0
- /package/dist/core/{p-b3ac38c5.entry.js.map → p-e2629bfe.entry.js.map} +0 -0
- /package/dist/core/{p-44e4e8c1.entry.js.map → p-ef36181d.entry.js.map} +0 -0
- /package/dist/core/{p-b3d6d5be.entry.js.map → p-fa38ad2e.entry.js.map} +0 -0
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
10
10
|
}
|
11
11
|
return t;
|
12
12
|
};
|
13
|
-
import { Host, forceUpdate, h, } from "@stencil/core";
|
13
|
+
import { Host, forceUpdate, h, Fragment, } from "@stencil/core";
|
14
14
|
import { getBrandFromContext, inheritAttributes, isSlotUsed, removeDisabledFalse, renderFileHiddenInput, } from "../../utils/helpers";
|
15
15
|
import { IC_INHERITED_ARIA } from "../../utils/constants";
|
16
16
|
import { IcBrandForegroundEnum, } from "../../utils/types";
|
@@ -29,7 +29,6 @@ export class Button {
|
|
29
29
|
this.hasTooltip = false;
|
30
30
|
this.inheritedAttributes = {};
|
31
31
|
this.describedbyEl = null;
|
32
|
-
this.describedById = null;
|
33
32
|
this.mutationObserver = null;
|
34
33
|
this.hostMutationObserver = null;
|
35
34
|
this.ariaLabel = "";
|
@@ -96,7 +95,7 @@ export class Button {
|
|
96
95
|
*/
|
97
96
|
this.tooltipPlacement = "bottom";
|
98
97
|
/**
|
99
|
-
* If `true`, the secondary
|
98
|
+
* If `true`, the secondary & tertiary variants of button will have a transparent background when not hovered, pressed or loading.
|
100
99
|
*/
|
101
100
|
this.transparentBackground = true;
|
102
101
|
/**
|
@@ -107,6 +106,7 @@ export class Button {
|
|
107
106
|
* The variant of the button to be displayed.
|
108
107
|
*/
|
109
108
|
this.variant = "primary";
|
109
|
+
this.getSlottedIcon = (position) => this.el.querySelector(`[slot="${position}-icon"]`);
|
110
110
|
this.handleClick = () => {
|
111
111
|
var _a;
|
112
112
|
if ((this.el.type === "submit" || this.el.type === "reset") &&
|
@@ -131,12 +131,17 @@ export class Button {
|
|
131
131
|
this.onBlur = () => {
|
132
132
|
this.icBlur.emit();
|
133
133
|
};
|
134
|
-
|
134
|
+
/**
|
135
|
+
* Triggered when text content of sibling element in light DOM changes
|
136
|
+
*/
|
135
137
|
this.mutationCallback = () => {
|
136
138
|
var _a;
|
137
139
|
this.describedByContent = (_a = this.describedbyEl) === null || _a === void 0 ? void 0 : _a.innerText;
|
138
140
|
};
|
139
|
-
|
141
|
+
/**
|
142
|
+
* Triggered when attributes of host element change
|
143
|
+
* @param mutationList the list of changes made to the host element
|
144
|
+
*/
|
140
145
|
this.hostMutationCallback = (mutationList) => {
|
141
146
|
let forceComponentUpdate = false;
|
142
147
|
mutationList.forEach(({ attributeName }) => {
|
@@ -162,58 +167,54 @@ export class Button {
|
|
162
167
|
this.hasTooltip =
|
163
168
|
!this.disableTooltip && (!!this.title || !!this.isIconVariant());
|
164
169
|
};
|
165
|
-
this.isIconVariant = () =>
|
166
|
-
var _a;
|
167
|
-
return (_a = this.variant) === null || _a === void 0 ? void 0 : _a.startsWith("icon");
|
168
|
-
};
|
170
|
+
this.isIconVariant = () => this.variant.startsWith("icon");
|
169
171
|
this.arrangeRouterItem = () => {
|
170
|
-
var _a
|
172
|
+
var _a;
|
171
173
|
const setStyles = (element, styles) => {
|
172
174
|
Object.entries(styles).forEach(([key, value]) => {
|
173
175
|
element.style.setProperty(key, value);
|
174
176
|
});
|
175
177
|
};
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
"font-family": "var(--ic-font-body-family)",
|
183
|
-
"font-size": "0.875rem",
|
184
|
-
"font-weight": "600",
|
185
|
-
});
|
186
|
-
setStyles(this.routerSlot, {
|
187
|
-
gap: "0",
|
188
|
-
});
|
189
|
-
if (icon) {
|
190
|
-
setStyles(icon, {
|
191
|
-
fill: "currentcolor",
|
178
|
+
if (this.routerSlot) {
|
179
|
+
const icTypography = document.createElement("ic-typography");
|
180
|
+
setStyles(icTypography, {
|
181
|
+
"font-family": "var(--ic-font-body-family)",
|
182
|
+
"font-size": "0.875rem",
|
183
|
+
"font-weight": "600",
|
192
184
|
});
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
icon.getAttribute("slot")
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
setStyles(this.routerSlot, {
|
203
|
-
display: "flex",
|
204
|
-
"flex-direction": "column",
|
205
|
-
"--height": "fit-content",
|
185
|
+
setStyles(this.routerSlot, {
|
186
|
+
gap: "0",
|
187
|
+
});
|
188
|
+
const icon = this.routerSlot.querySelector("svg");
|
189
|
+
const iconSlot = icon === null || icon === void 0 ? void 0 : icon.getAttribute("slot");
|
190
|
+
const iconWrapper = document.createElement("div");
|
191
|
+
if (icon) {
|
192
|
+
setStyles(icon, {
|
193
|
+
fill: "currentcolor",
|
206
194
|
});
|
195
|
+
if (iconSlot === "top-icon") {
|
196
|
+
setStyles(this.routerSlot, {
|
197
|
+
display: "flex",
|
198
|
+
"flex-direction": "column",
|
199
|
+
"--height": "fit-content",
|
200
|
+
});
|
201
|
+
}
|
202
|
+
else if (iconSlot) {
|
203
|
+
const marginPlacement = iconSlot === "left-icon" ? "right" : "left";
|
204
|
+
setStyles(iconWrapper, {
|
205
|
+
[`margin-${marginPlacement}`]: "var(--ic-space-xs)",
|
206
|
+
});
|
207
|
+
}
|
208
|
+
iconWrapper.append(icon);
|
207
209
|
}
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
if (this.routerSlot) {
|
210
|
+
const badge = this.routerSlot.querySelector("ic-badge");
|
211
|
+
const label = (_a = this.routerSlot.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
212
|
+
if (badge)
|
213
|
+
iconWrapper.append(badge);
|
214
|
+
if (label)
|
215
|
+
icTypography.textContent = label;
|
215
216
|
this.routerSlot.textContent = "";
|
216
|
-
if (
|
217
|
+
if (iconSlot === "right-icon") {
|
217
218
|
this.routerSlot.append(icTypography);
|
218
219
|
this.routerSlot.append(iconWrapper);
|
219
220
|
}
|
@@ -228,13 +229,9 @@ export class Button {
|
|
228
229
|
removeDisabledFalse(this.disabled, this.el);
|
229
230
|
}
|
230
231
|
disconnectedCallback() {
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
if (this.hostMutationObserver !== null &&
|
235
|
-
this.hostMutationObserver !== undefined) {
|
236
|
-
this.hostMutationObserver.disconnect();
|
237
|
-
}
|
232
|
+
var _a, _b;
|
233
|
+
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
234
|
+
(_b = this.hostMutationObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
238
235
|
}
|
239
236
|
componentWillUpdate() {
|
240
237
|
if (this.loading) {
|
@@ -254,7 +251,7 @@ export class Button {
|
|
254
251
|
this.setHasTooltip();
|
255
252
|
if (!this.hasTooltip) {
|
256
253
|
const describedById = this.inheritedAttributes["aria-describedby"];
|
257
|
-
if (describedById
|
254
|
+
if (describedById) {
|
258
255
|
this.describedById = describedById;
|
259
256
|
const el = (_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.querySelector(`#${describedById}`);
|
260
257
|
if (el) {
|
@@ -279,21 +276,18 @@ export class Button {
|
|
279
276
|
this.hostMutationObserver.observe(this.el, {
|
280
277
|
attributes: true,
|
281
278
|
});
|
282
|
-
this.hasRouterSlot()
|
279
|
+
if (this.hasRouterSlot())
|
280
|
+
this.arrangeRouterItem();
|
283
281
|
}
|
284
282
|
}
|
285
283
|
componentWillRender() {
|
286
|
-
const iconEl = this.
|
287
|
-
? this.el.querySelector(`[slot="left-icon"]`)
|
288
|
-
: this.hasIconSlot("right")
|
289
|
-
? this.el.querySelector(`[slot="right-icon"]`)
|
290
|
-
: null;
|
284
|
+
const iconEl = this.getSlottedIcon("left") || this.getSlottedIcon("right");
|
291
285
|
iconEl === null || iconEl === void 0 ? void 0 : iconEl.setAttribute("viewBox", "0 0 24 24");
|
292
286
|
}
|
293
287
|
handleHostClick(event) {
|
294
288
|
if (!this.hasRouterSlot()) {
|
295
289
|
if (this.fileUpload) {
|
296
|
-
renderFileHiddenInput(this.icFileSelection, this.el, !!this.multiple, this.
|
290
|
+
renderFileHiddenInput(this.icFileSelection, this.el, !!this.multiple, !!this.disabled, this.accept, this.fileInputName, this.selectedFiles);
|
297
291
|
}
|
298
292
|
if (this.disabled || this.loading) {
|
299
293
|
event.stopImmediatePropagation();
|
@@ -322,10 +316,6 @@ export class Button {
|
|
322
316
|
ev.stopImmediatePropagation();
|
323
317
|
}
|
324
318
|
}
|
325
|
-
hasIconSlot(position) {
|
326
|
-
const selectorPrefix = position ? `${position}-` : "";
|
327
|
-
return this.el.querySelector(`[slot="${selectorPrefix}icon"]`) !== null;
|
328
|
-
}
|
329
319
|
hasRouterSlot() {
|
330
320
|
this.routerSlot = this.el.querySelector('[slot="router-item"]');
|
331
321
|
if (this.routerSlot) {
|
@@ -344,72 +334,61 @@ export class Button {
|
|
344
334
|
}
|
345
335
|
}
|
346
336
|
render() {
|
347
|
-
const
|
348
|
-
const
|
337
|
+
const { ariaControlsId, ariaLabel, ariaOwnsId, buttonIdNum, describedByContent, describedById, disabled, download, dropdown, dropdownExpanded, form, formaction, formenctype, formmethod, formnovalidate, formtarget, fullWidth, handleClick, handleKeyDown, hasTooltip, href, hreflang, id, inheritedAttributes, isIconVariant, loading, monochrome, onBlur, onFocus, referrerpolicy, rel, size, target, theme, title, tooltipPlacement, transparentBackground, type, variant, } = this;
|
338
|
+
const TagType = href ? "a" : "button";
|
349
339
|
const buttonAttrs = TagType === "button"
|
350
340
|
? {
|
351
|
-
type
|
352
|
-
disabled
|
353
|
-
form
|
354
|
-
formaction
|
355
|
-
formenctype
|
356
|
-
formmethod
|
357
|
-
formnovalidate
|
358
|
-
formtarget
|
341
|
+
type,
|
342
|
+
disabled,
|
343
|
+
form,
|
344
|
+
formaction,
|
345
|
+
formenctype,
|
346
|
+
formmethod,
|
347
|
+
formnovalidate,
|
348
|
+
formtarget,
|
359
349
|
}
|
360
350
|
: {
|
361
|
-
download:
|
362
|
-
href
|
363
|
-
rel
|
364
|
-
target
|
365
|
-
referrerpolicy
|
366
|
-
hreflang
|
351
|
+
download: download !== false ? download : null,
|
352
|
+
href,
|
353
|
+
rel,
|
354
|
+
target,
|
355
|
+
referrerpolicy,
|
356
|
+
hreflang,
|
367
357
|
};
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
397
|
-
[`monochrome`]: !!this.monochrome,
|
398
|
-
["ic-button-disabled"]: !!this.disabled && !this.loading,
|
399
|
-
[`ic-button-variant-${this.variant}`]: true,
|
400
|
-
[`ic-button-size-${this.size}`]: true,
|
401
|
-
["ic-button-loading"]: !!this.loading,
|
402
|
-
["ic-button-full-width"]: !!this.fullWidth,
|
403
|
-
["with-badge"]: isSlotUsed(this.el, "badge"),
|
404
|
-
["dropdown-no-icon"]: !!this.dropdown &&
|
358
|
+
const buttonId = hasTooltip
|
359
|
+
? `ic-button-with-tooltip-${id || buttonIdNum}`
|
360
|
+
: undefined;
|
361
|
+
const describedby = !hasTooltip
|
362
|
+
? describedById
|
363
|
+
: variant !== "icon" || !ariaLabel
|
364
|
+
? `ic-tooltip-${buttonId}`
|
365
|
+
: undefined;
|
366
|
+
const hasLeftIcon = !!this.getSlottedIcon("left");
|
367
|
+
const hasRightIcon = !!this.getSlottedIcon("right");
|
368
|
+
const ButtonContent = () => this.hasRouterSlot() ? (h("slot", { name: "router-item" })) : (h(TagType, Object.assign({ class: "button", "aria-disabled": loading || disabled ? "true" : null, "aria-label": loading ? "Loading" : ariaLabel, "aria-expanded": dropdown && `${dropdownExpanded}` }, buttonAttrs, inheritedAttributes, { onFocus: onFocus, onBlur: onBlur, ref: (el) => (this.buttonEl = el), "aria-describedby": describedby, part: "button" }), loading ? (h("div", { class: "loading-container" }, h("ic-loading-indicator", { type: "linear", monochrome: monochrome, theme: theme }))) : (h(Fragment, null, (hasLeftIcon ||
|
369
|
+
(!!this.getSlottedIcon("top") && !hasRightIcon)) && (h("div", { class: "icon-container" }, h("slot", { name: `${hasLeftIcon ? "left" : "top"}-icon` }))), h("slot", null), !dropdown
|
370
|
+
? hasRightIcon && (h("div", { class: { "icon-container": true, "right-icon": true } }, h("slot", { name: "right-icon" })))
|
371
|
+
: variant !== "icon" &&
|
372
|
+
variant !== "destructive" && (h("span", { class: dropdownExpanded
|
373
|
+
? "dropdown-expanded"
|
374
|
+
: "arrow-dropdown", innerHTML: arrowDropdown }))))));
|
375
|
+
return (h(Host, { key: '76e9eabe7c49342e8b6c931180281063d6bc01f2', class: {
|
376
|
+
"ic-button-disabled": disabled && !loading,
|
377
|
+
"ic-button-full-width": fullWidth,
|
378
|
+
"ic-button-loading": loading,
|
379
|
+
[`ic-button-size-${size}`]: true,
|
380
|
+
[`ic-button-variant-${variant}`]: true,
|
381
|
+
[`ic-theme-${theme}`]: theme !== "inherit",
|
382
|
+
background: (variant === "secondary" || variant === "tertiary") &&
|
383
|
+
!transparentBackground &&
|
384
|
+
!disabled,
|
385
|
+
"dropdown-no-icon": dropdown &&
|
405
386
|
!isSlotUsed(this.el, "icon") &&
|
406
387
|
!isSlotUsed(this.el, "left-icon"),
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
}, onClick: this.handleClick, onKeyDown: this.handleKeyDown, "aria-owns": this.ariaOwnsId, "aria-controls": this.ariaControlsId, "aria-expanded": this.dropdown && `${this.dropdownExpanded}` }, this.hasTooltip && (h("ic-tooltip", { id: describedby || undefined, label: title || ariaLabel, target: buttonId || undefined, placement: this.tooltipPlacement, silent: this.isIconVariant() && !!ariaLabel }, this.hasRouterSlot() ? (h("slot", { name: "router-item" })) : (h(ButtonContent, null)))), isSlotUsed(this.el, "badge") && h("slot", { name: "badge" }), !this.hasTooltip &&
|
412
|
-
(this.hasRouterSlot() ? (h("slot", { name: "router-item" })) : (h(ButtonContent, null))), this.describedByContent && (h("span", { id: describedby || undefined, class: "ic-button-describedby" }, this.describedByContent))));
|
388
|
+
monochrome,
|
389
|
+
"top-icon": isSlotUsed(this.el, "top-icon"),
|
390
|
+
"with-badge": isSlotUsed(this.el, "badge"),
|
391
|
+
}, onClick: handleClick, onKeyDown: handleKeyDown, "aria-owns": ariaOwnsId, "aria-controls": ariaControlsId, "aria-expanded": dropdown && `${dropdownExpanded}` }, hasTooltip && (h("ic-tooltip", { key: 'b206653b613d9d78da264c8f796a4b7b90e50db0', id: describedby, label: title || ariaLabel, target: buttonId, placement: tooltipPlacement, silent: isIconVariant() && !!ariaLabel }, h(ButtonContent, { key: '9e63601518bac4f1ef197262e193a8977deb6df4' }))), isSlotUsed(this.el, "badge") && h("slot", { key: 'da708210c9061b0f2e3a4678f61e339a446616e4', name: "badge" }), !hasTooltip && h(ButtonContent, { key: '43131139c83a264a25995f616aac6b7431b86156' }), describedByContent && (h("span", { key: '1b1b37a9c1f17d39f768d0e8cee845fc09595219', id: describedby, class: "ic-button-describedby" }, describedByContent))));
|
413
392
|
}
|
414
393
|
static get is() { return "ic-button"; }
|
415
394
|
static get encapsulation() { return "shadow"; }
|
@@ -431,11 +410,11 @@ export class Button {
|
|
431
410
|
"mutable": false,
|
432
411
|
"complexType": {
|
433
412
|
"original": "string",
|
434
|
-
"resolved": "string
|
413
|
+
"resolved": "string",
|
435
414
|
"references": {}
|
436
415
|
},
|
437
416
|
"required": false,
|
438
|
-
"optional":
|
417
|
+
"optional": false,
|
439
418
|
"docs": {
|
440
419
|
"tags": [],
|
441
420
|
"text": "If `fileUpload` is set to `true`, this is the accepted list of file types."
|
@@ -495,11 +474,11 @@ export class Button {
|
|
495
474
|
"mutable": false,
|
496
475
|
"complexType": {
|
497
476
|
"original": "boolean",
|
498
|
-
"resolved": "boolean
|
477
|
+
"resolved": "boolean",
|
499
478
|
"references": {}
|
500
479
|
},
|
501
480
|
"required": false,
|
502
|
-
"optional":
|
481
|
+
"optional": false,
|
503
482
|
"docs": {
|
504
483
|
"tags": [],
|
505
484
|
"text": "If `true`, the button will be in disabled state."
|
@@ -515,11 +494,11 @@ export class Button {
|
|
515
494
|
"mutable": false,
|
516
495
|
"complexType": {
|
517
496
|
"original": "boolean",
|
518
|
-
"resolved": "boolean
|
497
|
+
"resolved": "boolean",
|
519
498
|
"references": {}
|
520
499
|
},
|
521
500
|
"required": false,
|
522
|
-
"optional":
|
501
|
+
"optional": false,
|
523
502
|
"docs": {
|
524
503
|
"tags": [],
|
525
504
|
"text": "If `true`, the ic-tooltip which is shown for icon variant will be disabled. Title or aria-label must be set if this prop is not applied."
|
@@ -535,11 +514,11 @@ export class Button {
|
|
535
514
|
"mutable": false,
|
536
515
|
"complexType": {
|
537
516
|
"original": "string | boolean",
|
538
|
-
"resolved": "boolean | string
|
517
|
+
"resolved": "boolean | string",
|
539
518
|
"references": {}
|
540
519
|
},
|
541
520
|
"required": false,
|
542
|
-
"optional":
|
521
|
+
"optional": false,
|
543
522
|
"docs": {
|
544
523
|
"tags": [],
|
545
524
|
"text": "If `true`, the user can save the linked URL instead of navigating to it."
|
@@ -555,11 +534,11 @@ export class Button {
|
|
555
534
|
"mutable": false,
|
556
535
|
"complexType": {
|
557
536
|
"original": "boolean",
|
558
|
-
"resolved": "boolean
|
537
|
+
"resolved": "boolean",
|
559
538
|
"references": {}
|
560
539
|
},
|
561
540
|
"required": false,
|
562
|
-
"optional":
|
541
|
+
"optional": false,
|
563
542
|
"docs": {
|
564
543
|
"tags": [],
|
565
544
|
"text": "If `true`, the button will show a dropdown icon."
|
@@ -575,11 +554,11 @@ export class Button {
|
|
575
554
|
"mutable": true,
|
576
555
|
"complexType": {
|
577
556
|
"original": "boolean",
|
578
|
-
"resolved": "boolean
|
557
|
+
"resolved": "boolean",
|
579
558
|
"references": {}
|
580
559
|
},
|
581
560
|
"required": false,
|
582
|
-
"optional":
|
561
|
+
"optional": false,
|
583
562
|
"docs": {
|
584
563
|
"tags": [],
|
585
564
|
"text": "If `true`, the aria-expanded value will be set to true. This is only applied if the dropdown prop is also true."
|
@@ -595,11 +574,11 @@ export class Button {
|
|
595
574
|
"mutable": false,
|
596
575
|
"complexType": {
|
597
576
|
"original": "boolean",
|
598
|
-
"resolved": "boolean
|
577
|
+
"resolved": "boolean",
|
599
578
|
"references": {}
|
600
579
|
},
|
601
580
|
"required": false,
|
602
|
-
"optional":
|
581
|
+
"optional": false,
|
603
582
|
"docs": {
|
604
583
|
"tags": [],
|
605
584
|
"text": "If `true`, when the button is clicked the native file explorer will be launched."
|
@@ -615,11 +594,11 @@ export class Button {
|
|
615
594
|
"mutable": false,
|
616
595
|
"complexType": {
|
617
596
|
"original": "string",
|
618
|
-
"resolved": "string
|
597
|
+
"resolved": "string",
|
619
598
|
"references": {}
|
620
599
|
},
|
621
600
|
"required": false,
|
622
|
-
"optional":
|
601
|
+
"optional": false,
|
623
602
|
"docs": {
|
624
603
|
"tags": [],
|
625
604
|
"text": "The name of the control for the file input, which is submitted with the form data."
|
@@ -749,11 +728,11 @@ export class Button {
|
|
749
728
|
"mutable": false,
|
750
729
|
"complexType": {
|
751
730
|
"original": "boolean",
|
752
|
-
"resolved": "boolean
|
731
|
+
"resolved": "boolean",
|
753
732
|
"references": {}
|
754
733
|
},
|
755
734
|
"required": false,
|
756
|
-
"optional":
|
735
|
+
"optional": false,
|
757
736
|
"docs": {
|
758
737
|
"tags": [],
|
759
738
|
"text": "If `true`, the button will fill the width of the container."
|
@@ -807,11 +786,11 @@ export class Button {
|
|
807
786
|
"mutable": false,
|
808
787
|
"complexType": {
|
809
788
|
"original": "boolean",
|
810
|
-
"resolved": "boolean
|
789
|
+
"resolved": "boolean",
|
811
790
|
"references": {}
|
812
791
|
},
|
813
792
|
"required": false,
|
814
|
-
"optional":
|
793
|
+
"optional": false,
|
815
794
|
"docs": {
|
816
795
|
"tags": [],
|
817
796
|
"text": "If `true`, the button will be in loading state."
|
@@ -827,11 +806,11 @@ export class Button {
|
|
827
806
|
"mutable": true,
|
828
807
|
"complexType": {
|
829
808
|
"original": "boolean",
|
830
|
-
"resolved": "boolean
|
809
|
+
"resolved": "boolean",
|
831
810
|
"references": {}
|
832
811
|
},
|
833
812
|
"required": false,
|
834
|
-
"optional":
|
813
|
+
"optional": false,
|
835
814
|
"docs": {
|
836
815
|
"tags": [],
|
837
816
|
"text": "If `true`, the button will display as monochromatic in either `light` or `dark` theme."
|
@@ -847,11 +826,11 @@ export class Button {
|
|
847
826
|
"mutable": false,
|
848
827
|
"complexType": {
|
849
828
|
"original": "boolean",
|
850
|
-
"resolved": "boolean
|
829
|
+
"resolved": "boolean",
|
851
830
|
"references": {}
|
852
831
|
},
|
853
832
|
"required": false,
|
854
|
-
"optional":
|
833
|
+
"optional": false,
|
855
834
|
"docs": {
|
856
835
|
"tags": [],
|
857
836
|
"text": "If `fileUpload` is set to `true`, this boolean determines whether multiple files are accepted."
|
@@ -932,7 +911,7 @@ export class Button {
|
|
932
911
|
"mutable": false,
|
933
912
|
"complexType": {
|
934
913
|
"original": "IcSizes",
|
935
|
-
"resolved": "\"large\" | \"medium\" | \"small\"
|
914
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
936
915
|
"references": {
|
937
916
|
"IcSizes": {
|
938
917
|
"location": "import",
|
@@ -942,7 +921,7 @@ export class Button {
|
|
942
921
|
}
|
943
922
|
},
|
944
923
|
"required": false,
|
945
|
-
"optional":
|
924
|
+
"optional": false,
|
946
925
|
"docs": {
|
947
926
|
"tags": [],
|
948
927
|
"text": "The size of the button to be displayed."
|
@@ -977,7 +956,7 @@ export class Button {
|
|
977
956
|
"mutable": true,
|
978
957
|
"complexType": {
|
979
958
|
"original": "IcThemeMode",
|
980
|
-
"resolved": "\"dark\" | \"inherit\" | \"light\"
|
959
|
+
"resolved": "\"dark\" | \"inherit\" | \"light\"",
|
981
960
|
"references": {
|
982
961
|
"IcThemeMode": {
|
983
962
|
"location": "import",
|
@@ -987,7 +966,7 @@ export class Button {
|
|
987
966
|
}
|
988
967
|
},
|
989
968
|
"required": false,
|
990
|
-
"optional":
|
969
|
+
"optional": false,
|
991
970
|
"docs": {
|
992
971
|
"tags": [],
|
993
972
|
"text": "Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component."
|
@@ -1003,7 +982,7 @@ export class Button {
|
|
1003
982
|
"mutable": false,
|
1004
983
|
"complexType": {
|
1005
984
|
"original": "IcButtonTooltipPlacement",
|
1006
|
-
"resolved": "\"bottom\" | \"left\" | \"right\" | \"top\"
|
985
|
+
"resolved": "\"bottom\" | \"left\" | \"right\" | \"top\"",
|
1007
986
|
"references": {
|
1008
987
|
"IcButtonTooltipPlacement": {
|
1009
988
|
"location": "import",
|
@@ -1013,7 +992,7 @@ export class Button {
|
|
1013
992
|
}
|
1014
993
|
},
|
1015
994
|
"required": false,
|
1016
|
-
"optional":
|
995
|
+
"optional": false,
|
1017
996
|
"docs": {
|
1018
997
|
"tags": [],
|
1019
998
|
"text": "The position of the tooltip in relation to the button."
|
@@ -1029,14 +1008,14 @@ export class Button {
|
|
1029
1008
|
"mutable": false,
|
1030
1009
|
"complexType": {
|
1031
1010
|
"original": "boolean",
|
1032
|
-
"resolved": "boolean
|
1011
|
+
"resolved": "boolean",
|
1033
1012
|
"references": {}
|
1034
1013
|
},
|
1035
1014
|
"required": false,
|
1036
|
-
"optional":
|
1015
|
+
"optional": false,
|
1037
1016
|
"docs": {
|
1038
1017
|
"tags": [],
|
1039
|
-
"text": "If `true`, the secondary
|
1018
|
+
"text": "If `true`, the secondary & tertiary variants of button will have a transparent background when not hovered, pressed or loading."
|
1040
1019
|
},
|
1041
1020
|
"getter": false,
|
1042
1021
|
"setter": false,
|
@@ -1049,7 +1028,7 @@ export class Button {
|
|
1049
1028
|
"mutable": false,
|
1050
1029
|
"complexType": {
|
1051
1030
|
"original": "IcButtonTypes",
|
1052
|
-
"resolved": "\"button\" | \"reset\" | \"submit\"
|
1031
|
+
"resolved": "\"button\" | \"reset\" | \"submit\"",
|
1053
1032
|
"references": {
|
1054
1033
|
"IcButtonTypes": {
|
1055
1034
|
"location": "import",
|
@@ -1059,7 +1038,7 @@ export class Button {
|
|
1059
1038
|
}
|
1060
1039
|
},
|
1061
1040
|
"required": false,
|
1062
|
-
"optional":
|
1041
|
+
"optional": false,
|
1063
1042
|
"docs": {
|
1064
1043
|
"tags": [],
|
1065
1044
|
"text": "The type of the button."
|
@@ -1075,7 +1054,7 @@ export class Button {
|
|
1075
1054
|
"mutable": false,
|
1076
1055
|
"complexType": {
|
1077
1056
|
"original": "IcButtonVariants",
|
1078
|
-
"resolved": "\"destructive\" | \"icon\" | \"icon-destructive\" | \"icon-primary\" | \"icon-secondary\" | \"icon-tertiary\" | \"primary\" | \"secondary\" | \"tertiary\"
|
1057
|
+
"resolved": "\"destructive\" | \"icon\" | \"icon-destructive\" | \"icon-primary\" | \"icon-secondary\" | \"icon-tertiary\" | \"primary\" | \"secondary\" | \"tertiary\"",
|
1079
1058
|
"references": {
|
1080
1059
|
"IcButtonVariants": {
|
1081
1060
|
"location": "import",
|
@@ -1085,7 +1064,7 @@ export class Button {
|
|
1085
1064
|
}
|
1086
1065
|
},
|
1087
1066
|
"required": false,
|
1088
|
-
"optional":
|
1067
|
+
"optional": false,
|
1089
1068
|
"docs": {
|
1090
1069
|
"tags": [],
|
1091
1070
|
"text": "The variant of the button to be displayed."
|