@ukic/web-components 3.17.0 → 3.19.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/ic-alert.cjs.entry.js +6 -2
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +28 -16
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +23 -2
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +12 -5
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-list.cjs.entry.js +4 -3
- package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +3 -3
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-hero.cjs.entry.js +4 -4
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +5 -5
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +9 -9
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +5 -6
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-layout-grid-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-layout-grid.cjs.entry.js +2 -2
- package/dist/cjs/ic-link.cjs.entry.js +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +4 -4
- package/dist/cjs/ic-page-header.cjs.entry.js +6 -6
- package/dist/cjs/ic-pagination-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-pagination.cjs.entry.js +29 -4
- package/dist/cjs/ic-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +4 -4
- package/dist/cjs/ic-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/ic-radio-option.cjs.entry.js +4 -4
- package/dist/cjs/ic-search-bar.cjs.entry.js +9 -9
- package/dist/cjs/ic-section-container.cjs.entry.js +2 -2
- package/dist/cjs/ic-select.cjs.entry.js +6 -6
- package/dist/cjs/ic-side-navigation.cjs.entry.js +4 -4
- package/dist/cjs/ic-skeleton.cjs.entry.js +20 -5
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-status-tag.cjs.entry.js +2 -2
- package/dist/cjs/ic-step.cjs.entry.js +16 -14
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +24 -4
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +4 -4
- package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-text-field.cjs.entry.js +5 -5
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +5 -5
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/ic-top-navigation.cjs.entry.js +5 -2
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-alert/ic-alert.js +26 -2
- package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
- package/dist/collection/components/ic-alert/ic-alert.stories.js +15 -0
- package/dist/collection/components/ic-button/ic-button.css +12 -0
- package/dist/collection/components/ic-button/ic-button.js +3 -3
- package/dist/collection/components/ic-button/ic-button.js.map +1 -1
- package/dist/collection/components/ic-button/ic-button.stories.js +251 -0
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +25 -2
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +17 -9
- package/dist/collection/components/ic-chip/ic-chip.css +12 -0
- package/dist/collection/components/ic-chip/ic-chip.js +31 -4
- package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
- package/dist/collection/components/ic-chip/ic-chip.stories.js +15 -0
- package/dist/collection/components/ic-data-list/ic-data-list.css +4 -0
- package/dist/collection/components/ic-data-list/ic-data-list.js +3 -2
- package/dist/collection/components/ic-data-list/ic-data-list.js.map +1 -1
- package/dist/collection/components/ic-data-list/ic-data-list.stories.js +6 -0
- package/dist/collection/components/ic-data-row/ic-data-row.css +1 -1
- 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.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 +2 -2
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +8 -8
- package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
- package/dist/collection/components/ic-layout-grid/ic-layout-grid.js +2 -2
- package/dist/collection/components/ic-layout-grid-item/ic-layout-grid-item.js +2 -2
- package/dist/collection/components/ic-link/ic-link.js +1 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +29 -14
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
- package/dist/collection/components/ic-menu/ic-menu.css +1 -1
- 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-navigation-group/ic-navigation-group.js +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 +35 -4
- package/dist/collection/components/ic-pagination/ic-pagination.js.map +1 -1
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +4 -4
- 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 +9 -9
- package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
- package/dist/collection/components/ic-select/ic-select.js +6 -6
- package/dist/collection/components/ic-select/ic-select_(multi).stories.js +2 -2
- package/dist/collection/components/ic-select/ic-select_(searchable).stories.js +1 -1
- package/dist/collection/components/ic-select/ic-select_(single).stories.js +3 -3
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +4 -4
- package/dist/collection/components/ic-skeleton/ic-skeleton.js +58 -5
- package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -1
- package/dist/collection/components/ic-skeleton/ic-skeleton.stories.js +4 -3
- 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.css +16 -7
- package/dist/collection/components/ic-step/ic-step.js +19 -14
- package/dist/collection/components/ic-step/ic-step.js.map +1 -1
- package/dist/collection/components/ic-stepper/ic-stepper.js +24 -4
- package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
- package/dist/collection/components/ic-stepper/ic-stepper.stories.js +12 -0
- package/dist/collection/components/ic-switch/ic-switch.js +4 -4
- 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 +6 -5
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
- package/dist/collection/components/ic-text-field/ic-text-field.stories.js +12 -1
- package/dist/collection/components/ic-theme/ic-theme.js +1 -1
- package/dist/collection/components/ic-toast/ic-toast.js +5 -5
- package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
- 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-top-navigation/ic-top-navigation.js +5 -2
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-alert.js +7 -2
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-button2.js +4 -4
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +24 -2
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-chip.js +13 -5
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-data-list.js +4 -3
- package/dist/components/ic-data-list.js.map +1 -1
- package/dist/components/ic-data-row.js +3 -3
- package/dist/components/ic-data-row.js.map +1 -1
- 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 +4 -4
- 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 +2 -2
- package/dist/components/ic-input-validation2.js +4 -5
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-layout-grid-item.js +2 -2
- package/dist/components/ic-layout-grid.js +2 -2
- package/dist/components/ic-link2.js +1 -1
- package/dist/components/ic-loading-indicator2.js +27 -13
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-group.js +1 -1
- package/dist/components/ic-menu2.js +4 -4
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-group.js +1 -1
- package/dist/components/ic-navigation-menu2.js +4 -4
- package/dist/components/ic-page-header.js +6 -6
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +1 -1
- package/dist/components/ic-pagination.js +30 -5
- package/dist/components/ic-pagination.js.map +1 -1
- package/dist/components/ic-popover-menu.js +4 -4
- 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 +9 -9
- package/dist/components/ic-section-container2.js +2 -2
- package/dist/components/ic-select.js +6 -6
- package/dist/components/ic-side-navigation.js +4 -4
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +23 -6
- package/dist/components/ic-skeleton.js.map +1 -1
- package/dist/components/ic-skip-link.js +2 -2
- package/dist/components/ic-status-tag.js +2 -2
- package/dist/components/ic-step.js +17 -15
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +24 -4
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +4 -4
- 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-text-field.js +5 -5
- 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 +5 -5
- package/dist/components/ic-toggle-button-group.js +2 -2
- package/dist/components/ic-toggle-button.js +2 -2
- package/dist/components/ic-top-navigation.js +5 -2
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/core/core.css +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-b83a736d.entry.js → p-012e058a.entry.js} +3 -3
- package/dist/core/p-012e058a.entry.js.map +1 -0
- package/dist/core/{p-6329ddcb.entry.js → p-0257d59e.entry.js} +2 -2
- package/dist/core/{p-d3223b89.entry.js → p-06b3ae40.entry.js} +2 -2
- package/dist/core/{p-f6bb691a.entry.js → p-091a7fbf.entry.js} +2 -2
- package/dist/core/{p-b4a2f6fa.entry.js → p-0eafbaa1.entry.js} +2 -2
- package/dist/core/p-0eafbaa1.entry.js.map +1 -0
- package/dist/core/{p-1ca4a5ed.entry.js → p-128e2cbb.entry.js} +2 -2
- package/dist/core/{p-afbba548.entry.js → p-21efc36e.entry.js} +2 -2
- package/dist/core/{p-04cb17d7.entry.js → p-287e5c17.entry.js} +2 -2
- package/dist/core/{p-4d3b219c.entry.js → p-28c9a6e4.entry.js} +2 -2
- package/dist/core/{p-f57729b8.entry.js → p-296a41ce.entry.js} +2 -2
- package/dist/core/p-34cc376c.entry.js +2 -0
- package/dist/core/p-34cc376c.entry.js.map +1 -0
- package/dist/core/{p-eca43f7d.entry.js → p-3b13d191.entry.js} +2 -2
- package/dist/core/{p-adde6c66.entry.js → p-43356493.entry.js} +2 -2
- package/dist/core/{p-3636be4f.entry.js → p-44aaf454.entry.js} +2 -2
- package/dist/core/{p-f4e3bb5b.entry.js → p-44fbe8c2.entry.js} +2 -2
- package/dist/core/{p-a7583faf.entry.js → p-4637c326.entry.js} +2 -2
- package/dist/core/{p-30312243.entry.js → p-49444c33.entry.js} +2 -2
- package/dist/core/p-49444c33.entry.js.map +1 -0
- package/dist/core/p-4fa7fbc4.entry.js +2 -0
- package/dist/core/p-4fa7fbc4.entry.js.map +1 -0
- package/dist/core/{p-2026f4fa.entry.js → p-52fa3eec.entry.js} +2 -2
- package/dist/core/{p-2026f4fa.entry.js.map → p-52fa3eec.entry.js.map} +1 -1
- package/dist/core/{p-9c52ee48.entry.js → p-539b975f.entry.js} +2 -2
- package/dist/core/{p-319e3d5b.entry.js → p-5cf704e3.entry.js} +2 -2
- package/dist/core/p-5e1a77aa.entry.js +2 -0
- package/dist/core/p-5e1a77aa.entry.js.map +1 -0
- package/dist/core/{p-601d4e3f.entry.js → p-614953c5.entry.js} +2 -2
- package/dist/core/{p-3d23ce54.entry.js → p-6b6c1491.entry.js} +2 -2
- package/dist/core/{p-5254a078.entry.js → p-6e8ef73c.entry.js} +2 -2
- package/dist/core/{p-ae11583f.entry.js → p-6fb29846.entry.js} +2 -2
- package/dist/core/p-70e1dd4d.entry.js +2 -0
- package/dist/core/p-70e1dd4d.entry.js.map +1 -0
- package/dist/core/{p-52c66bfe.entry.js → p-72ac8bb9.entry.js} +2 -2
- package/dist/core/{p-ffd0d9d1.entry.js → p-7552c8a1.entry.js} +2 -2
- package/dist/core/{p-a8e4258f.entry.js → p-8798cc6b.entry.js} +2 -2
- package/dist/core/p-8798cc6b.entry.js.map +1 -0
- package/dist/core/{p-ca82850f.entry.js → p-9452b9ac.entry.js} +2 -2
- package/dist/core/p-9452b9ac.entry.js.map +1 -0
- package/dist/core/p-a5295f66.entry.js +2 -0
- package/dist/core/p-a5295f66.entry.js.map +1 -0
- package/dist/core/p-a7645717.entry.js +2 -0
- package/dist/core/p-a7645717.entry.js.map +1 -0
- package/dist/core/p-a86785dd.entry.js +2 -0
- package/dist/core/p-a86785dd.entry.js.map +1 -0
- package/dist/core/{p-703f3de1.entry.js → p-a8dc3162.entry.js} +2 -2
- package/dist/core/{p-f7105cf9.entry.js → p-ad6632a9.entry.js} +2 -2
- package/dist/core/p-ae861bb8.entry.js +2 -0
- package/dist/core/{p-7d0d85c4.entry.js → p-af02add9.entry.js} +2 -2
- package/dist/core/{p-9674b63f.entry.js → p-b00efb15.entry.js} +2 -2
- package/dist/core/{p-3238389a.entry.js → p-bb3a5130.entry.js} +2 -2
- package/dist/core/{p-53740194.entry.js → p-bfd03fb4.entry.js} +2 -2
- package/dist/core/p-bfd03fb4.entry.js.map +1 -0
- package/dist/core/{p-67c3985d.entry.js → p-d8200098.entry.js} +2 -2
- package/dist/core/{p-6ed48c46.entry.js → p-dfc2a0b1.entry.js} +2 -2
- package/dist/core/{p-12c30491.entry.js → p-f4e2e41f.entry.js} +2 -2
- package/dist/core/{p-9ca147f3.entry.js → p-fb43abd6.entry.js} +2 -2
- package/dist/esm/core.js +1 -1
- package/dist/esm/ic-alert.entry.js +6 -2
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +28 -16
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +23 -2
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +12 -5
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-data-list.entry.js +4 -3
- package/dist/esm/ic-data-list.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +3 -3
- package/dist/esm/ic-data-row.entry.js.map +1 -1
- package/dist/esm/ic-dialog.entry.js +1 -1
- package/dist/esm/ic-empty-state.entry.js +2 -2
- package/dist/esm/ic-footer-link.entry.js +2 -2
- package/dist/esm/ic-hero.entry.js +4 -4
- package/dist/esm/ic-horizontal-scroll.entry.js +5 -5
- package/dist/esm/ic-input-component-container_3.entry.js +9 -9
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +6 -7
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- package/dist/esm/ic-layout-grid-item.entry.js +2 -2
- package/dist/esm/ic-layout-grid.entry.js +2 -2
- package/dist/esm/ic-link.entry.js +1 -1
- package/dist/esm/ic-menu-group.entry.js +1 -1
- package/dist/esm/ic-navigation-group.entry.js +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +4 -4
- package/dist/esm/ic-page-header.entry.js +6 -6
- package/dist/esm/ic-pagination-item.entry.js +1 -1
- package/dist/esm/ic-pagination.entry.js +29 -4
- package/dist/esm/ic-pagination.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +4 -4
- package/dist/esm/ic-radio-group.entry.js +4 -4
- package/dist/esm/ic-radio-option.entry.js +4 -4
- package/dist/esm/ic-search-bar.entry.js +9 -9
- package/dist/esm/ic-section-container.entry.js +2 -2
- package/dist/esm/ic-select.entry.js +6 -6
- package/dist/esm/ic-side-navigation.entry.js +4 -4
- package/dist/esm/ic-skeleton.entry.js +20 -5
- package/dist/esm/ic-skeleton.entry.js.map +1 -1
- package/dist/esm/ic-skip-link.entry.js +2 -2
- package/dist/esm/ic-status-tag.entry.js +2 -2
- package/dist/esm/ic-step.entry.js +17 -15
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +24 -4
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +4 -4
- package/dist/esm/ic-tab-context.entry.js +1 -1
- package/dist/esm/ic-tab-group.entry.js +2 -2
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-text-field.entry.js +5 -5
- package/dist/esm/ic-text-field.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +1 -1
- package/dist/esm/ic-toast-region.entry.js +1 -1
- package/dist/esm/ic-toast.entry.js +5 -5
- package/dist/esm/ic-toggle-button-group.entry.js +2 -2
- package/dist/esm/ic-toggle-button.entry.js +2 -2
- package/dist/esm/ic-top-navigation.entry.js +5 -2
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-alert/ic-alert.d.ts +4 -0
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +3 -0
- package/dist/types/components/ic-chip/ic-chip.d.ts +5 -0
- package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +2 -1
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +4 -1
- package/dist/types/components/ic-pagination/ic-pagination.d.ts +7 -0
- package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +8 -0
- package/dist/types/components/ic-step/ic-step.d.ts +3 -0
- package/dist/types/components/ic-stepper/ic-stepper.d.ts +1 -0
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +1 -0
- package/dist/types/components.d.ts +36 -4
- package/hydrate/index.js +291 -172
- package/hydrate/index.mjs +291 -172
- package/package.json +17 -23
- package/vscode-data.json +17 -1
- package/dist/core/p-199c5ff6.entry.js +0 -2
- package/dist/core/p-199c5ff6.entry.js.map +0 -1
- package/dist/core/p-1f41818b.entry.js +0 -2
- package/dist/core/p-1f41818b.entry.js.map +0 -1
- package/dist/core/p-30312243.entry.js.map +0 -1
- package/dist/core/p-33e35173.entry.js +0 -2
- package/dist/core/p-33e35173.entry.js.map +0 -1
- package/dist/core/p-34407b13.entry.js +0 -2
- package/dist/core/p-34407b13.entry.js.map +0 -1
- package/dist/core/p-42d35fc4.entry.js +0 -2
- package/dist/core/p-42d35fc4.entry.js.map +0 -1
- package/dist/core/p-53740194.entry.js.map +0 -1
- package/dist/core/p-a8e4258f.entry.js.map +0 -1
- package/dist/core/p-b4a2f6fa.entry.js.map +0 -1
- package/dist/core/p-b59504f1.entry.js +0 -2
- package/dist/core/p-b59504f1.entry.js.map +0 -1
- package/dist/core/p-b83a736d.entry.js.map +0 -1
- package/dist/core/p-ca82850f.entry.js.map +0 -1
- package/dist/core/p-cce398e1.entry.js +0 -2
- package/dist/core/p-cce398e1.entry.js.map +0 -1
- package/dist/core/p-f51c609d.entry.js +0 -2
- /package/dist/core/{p-6329ddcb.entry.js.map → p-0257d59e.entry.js.map} +0 -0
- /package/dist/core/{p-d3223b89.entry.js.map → p-06b3ae40.entry.js.map} +0 -0
- /package/dist/core/{p-f6bb691a.entry.js.map → p-091a7fbf.entry.js.map} +0 -0
- /package/dist/core/{p-1ca4a5ed.entry.js.map → p-128e2cbb.entry.js.map} +0 -0
- /package/dist/core/{p-afbba548.entry.js.map → p-21efc36e.entry.js.map} +0 -0
- /package/dist/core/{p-04cb17d7.entry.js.map → p-287e5c17.entry.js.map} +0 -0
- /package/dist/core/{p-4d3b219c.entry.js.map → p-28c9a6e4.entry.js.map} +0 -0
- /package/dist/core/{p-f57729b8.entry.js.map → p-296a41ce.entry.js.map} +0 -0
- /package/dist/core/{p-eca43f7d.entry.js.map → p-3b13d191.entry.js.map} +0 -0
- /package/dist/core/{p-adde6c66.entry.js.map → p-43356493.entry.js.map} +0 -0
- /package/dist/core/{p-3636be4f.entry.js.map → p-44aaf454.entry.js.map} +0 -0
- /package/dist/core/{p-f4e3bb5b.entry.js.map → p-44fbe8c2.entry.js.map} +0 -0
- /package/dist/core/{p-a7583faf.entry.js.map → p-4637c326.entry.js.map} +0 -0
- /package/dist/core/{p-9c52ee48.entry.js.map → p-539b975f.entry.js.map} +0 -0
- /package/dist/core/{p-319e3d5b.entry.js.map → p-5cf704e3.entry.js.map} +0 -0
- /package/dist/core/{p-601d4e3f.entry.js.map → p-614953c5.entry.js.map} +0 -0
- /package/dist/core/{p-3d23ce54.entry.js.map → p-6b6c1491.entry.js.map} +0 -0
- /package/dist/core/{p-5254a078.entry.js.map → p-6e8ef73c.entry.js.map} +0 -0
- /package/dist/core/{p-ae11583f.entry.js.map → p-6fb29846.entry.js.map} +0 -0
- /package/dist/core/{p-52c66bfe.entry.js.map → p-72ac8bb9.entry.js.map} +0 -0
- /package/dist/core/{p-ffd0d9d1.entry.js.map → p-7552c8a1.entry.js.map} +0 -0
- /package/dist/core/{p-703f3de1.entry.js.map → p-a8dc3162.entry.js.map} +0 -0
- /package/dist/core/{p-f7105cf9.entry.js.map → p-ad6632a9.entry.js.map} +0 -0
- /package/dist/core/{p-f51c609d.entry.js.map → p-ae861bb8.entry.js.map} +0 -0
- /package/dist/core/{p-7d0d85c4.entry.js.map → p-af02add9.entry.js.map} +0 -0
- /package/dist/core/{p-9674b63f.entry.js.map → p-b00efb15.entry.js.map} +0 -0
- /package/dist/core/{p-3238389a.entry.js.map → p-bb3a5130.entry.js.map} +0 -0
- /package/dist/core/{p-67c3985d.entry.js.map → p-d8200098.entry.js.map} +0 -0
- /package/dist/core/{p-6ed48c46.entry.js.map → p-dfc2a0b1.entry.js.map} +0 -0
- /package/dist/core/{p-12c30491.entry.js.map → p-f4e2e41f.entry.js.map} +0 -0
- /package/dist/core/{p-9ca147f3.entry.js.map → p-fb43abd6.entry.js.map} +0 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { useArgs } from "
|
|
1
|
+
import { useArgs } from "storybook/preview-api";
|
|
2
2
|
import { html } from "lit-html";
|
|
3
3
|
|
|
4
4
|
const defaultArgs = {
|
|
5
5
|
additionalFieldDisplay: "dynamic",
|
|
6
6
|
additionalFieldSlot: "additional-field",
|
|
7
7
|
checked: false,
|
|
8
|
+
checkboxDisabled: false,
|
|
9
|
+
checkboxSize: "medium",
|
|
8
10
|
disabled: false,
|
|
9
11
|
dynamicText: "Dynamic text",
|
|
10
12
|
groupLabel: "Checkbox group label",
|
|
@@ -43,7 +45,7 @@ export const Default = {
|
|
|
43
45
|
<ic-checkbox
|
|
44
46
|
value="valueName3"
|
|
45
47
|
label="Unselected / Disabled"
|
|
46
|
-
|
|
48
|
+
disabled
|
|
47
49
|
></ic-checkbox>
|
|
48
50
|
</ic-checkbox-group>
|
|
49
51
|
`,
|
|
@@ -76,26 +78,22 @@ export const Required = {
|
|
|
76
78
|
|
|
77
79
|
export const Disabled = {
|
|
78
80
|
render: () => html`
|
|
79
|
-
<ic-checkbox-group label="This is a label" name="group1"
|
|
81
|
+
<ic-checkbox-group label="This is a label" name="group1" disabled>
|
|
80
82
|
<ic-checkbox
|
|
81
83
|
value="valueName1"
|
|
82
84
|
label="Unselected / Disabled 1"
|
|
83
|
-
Disabled
|
|
84
85
|
></ic-checkbox>
|
|
85
86
|
<ic-checkbox
|
|
86
87
|
value="valueName2"
|
|
87
88
|
label="Unselected / Disabled 2"
|
|
88
|
-
Disabled
|
|
89
89
|
></ic-checkbox>
|
|
90
90
|
<ic-checkbox
|
|
91
91
|
value="valueName3"
|
|
92
92
|
label="Unselected / Disabled 3"
|
|
93
|
-
Disabled
|
|
94
93
|
></ic-checkbox>
|
|
95
94
|
<ic-checkbox
|
|
96
95
|
value="valueName4"
|
|
97
96
|
label="Selected / Disabled"
|
|
98
|
-
Disabled
|
|
99
97
|
checked
|
|
100
98
|
></ic-checkbox>
|
|
101
99
|
</ic-checkbox-group>
|
|
@@ -872,10 +870,10 @@ export const Playground = {
|
|
|
872
870
|
theme=${args.theme}
|
|
873
871
|
>
|
|
874
872
|
<ic-checkbox
|
|
875
|
-
disabled=${args.
|
|
873
|
+
disabled=${args.checkboxDisabled}
|
|
876
874
|
label=${args.label}
|
|
877
875
|
value=${args.value}
|
|
878
|
-
size=${args.
|
|
876
|
+
size=${args.checkboxSize}
|
|
879
877
|
hide-label=${args.hideLabel}
|
|
880
878
|
indeterminate=${args.indeterminate}
|
|
881
879
|
checked=${checked}
|
|
@@ -889,6 +887,8 @@ export const Playground = {
|
|
|
889
887
|
label="What's your favourite type of coffee?"
|
|
890
888
|
></ic-text-field>
|
|
891
889
|
</ic-checkbox>
|
|
890
|
+
<ic-checkbox value="valueName2" label="Checkbox 2"></ic-checkbox>
|
|
891
|
+
<ic-checkbox value="valueName3" label="Checkbox 3"></ic-checkbox>
|
|
892
892
|
</ic-checkbox-group>`;
|
|
893
893
|
},
|
|
894
894
|
|
|
@@ -919,6 +919,14 @@ export const Playground = {
|
|
|
919
919
|
},
|
|
920
920
|
},
|
|
921
921
|
|
|
922
|
+
checkboxSize: {
|
|
923
|
+
options: ["medium", "large", "small"],
|
|
924
|
+
|
|
925
|
+
control: {
|
|
926
|
+
type: inlineRadioSelector,
|
|
927
|
+
},
|
|
928
|
+
},
|
|
929
|
+
|
|
922
930
|
validationAriaLive: {
|
|
923
931
|
options: ["polite", "assertive", "off"],
|
|
924
932
|
|
|
@@ -466,6 +466,18 @@ video {
|
|
|
466
466
|
background-color: var(--chip-bg-color);
|
|
467
467
|
border: var(--ic-border-width) solid transparent;
|
|
468
468
|
justify-content: space-between;
|
|
469
|
+
width: -moz-fit-content;
|
|
470
|
+
width: fit-content;
|
|
471
|
+
box-sizing: border-box;
|
|
472
|
+
max-width: 100%;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.chip.full-width {
|
|
476
|
+
width: 100%;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
:host(.ic-chip-full-width) {
|
|
480
|
+
width: 100%;
|
|
469
481
|
}
|
|
470
482
|
|
|
471
483
|
@media (prefers-reduced-motion: no-preference) {
|
|
@@ -22,6 +22,11 @@ export class Chip {
|
|
|
22
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
23
|
*/
|
|
24
24
|
this.dismissLabel = "Dismiss";
|
|
25
|
+
/**
|
|
26
|
+
* Specify whether the chip fills the full width of the container.
|
|
27
|
+
* If `true`, this overrides the --input-width CSS variable.
|
|
28
|
+
*/
|
|
29
|
+
this.fullWidth = false;
|
|
25
30
|
/**
|
|
26
31
|
* The size of the chip.
|
|
27
32
|
*/
|
|
@@ -88,13 +93,14 @@ export class Chip {
|
|
|
88
93
|
(_a = this.buttonEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
89
94
|
}
|
|
90
95
|
render() {
|
|
91
|
-
const { label, variant, size, dismissible, visible, disabled, hovered, theme, foregroundColor, dismissLabel, transparentBackground, } = this;
|
|
96
|
+
const { label, variant, size, dismissible, visible, disabled, hovered, theme, foregroundColor, dismissLabel, transparentBackground, fullWidth, } = this;
|
|
92
97
|
const ariaLabel = `${label} chip`;
|
|
93
|
-
return (h(Host, { key: '
|
|
98
|
+
return (h(Host, { key: '5eddf76a82ea1c0589a664c6553dadbf4dbda7c1', class: {
|
|
94
99
|
"ic-chip-dismissed": !visible,
|
|
95
100
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
96
101
|
[`ic-chip-${foregroundColor}-text`]: variant === "filled" && !!foregroundColor,
|
|
97
|
-
|
|
102
|
+
"ic-chip-full-width": fullWidth,
|
|
103
|
+
} }, visible && (h("div", { key: 'c58c911f4373c48d04fe4f4f4295210bf32f6260', class: {
|
|
98
104
|
chip: true,
|
|
99
105
|
[`${variant}`]: true,
|
|
100
106
|
[`${size}`]: true,
|
|
@@ -102,7 +108,8 @@ export class Chip {
|
|
|
102
108
|
dismissible,
|
|
103
109
|
hovered,
|
|
104
110
|
"non-transparent": variant === "outlined" && !transparentBackground,
|
|
105
|
-
|
|
111
|
+
"full-width": fullWidth,
|
|
112
|
+
} }, isSlotUsed(this.el, "icon") && (h("div", { key: '7eeadeb6eee49ac890dc1c52e39cd0cea4df7c01', class: "icon" }, h("slot", { key: 'ea4df10a163a8c878a7f700696b4ddcc423a213a', name: "icon" }))), h("ic-typography", { key: '2bbdbd7e1c5360a15616c52649dd7388fcaa417f', variant: "label", "apply-vertical-margins": false, class: { label: true, "in-ag-grid": isElInAGGrid(this.el) } }, h("span", { key: '3085a661aaa96d6b955cc95240a3f5322e5fdf8a' }, label)), dismissible && (h("ic-tooltip", { key: 'e876238e430c974fa1c3513f7dea201d44a36c8e', label: dismissLabel, target: "dismiss-icon", class: { "tooltip-disabled": disabled } }, h("button", { key: '125f60aca78da345de3b1e03751af2b8b3e196d2', 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: '688e1ad7f6b8bfab9cfa4649d7f515c2d5ae37c1', name: "badge" }))), dismissible && (h("div", { key: '45cb6d6e91a9e0d0c0715044ad40fa6da5cf100b', class: "sr-only", "aria-live": "polite" }, !visible ? `Dismissed ${ariaLabel}` : ""))));
|
|
106
113
|
}
|
|
107
114
|
static get is() { return "ic-chip"; }
|
|
108
115
|
static get encapsulation() { return "shadow"; }
|
|
@@ -204,6 +211,26 @@ export class Chip {
|
|
|
204
211
|
"reflect": false,
|
|
205
212
|
"defaultValue": "\"Dismiss\""
|
|
206
213
|
},
|
|
214
|
+
"fullWidth": {
|
|
215
|
+
"type": "boolean",
|
|
216
|
+
"mutable": false,
|
|
217
|
+
"complexType": {
|
|
218
|
+
"original": "boolean",
|
|
219
|
+
"resolved": "boolean",
|
|
220
|
+
"references": {}
|
|
221
|
+
},
|
|
222
|
+
"required": false,
|
|
223
|
+
"optional": false,
|
|
224
|
+
"docs": {
|
|
225
|
+
"tags": [],
|
|
226
|
+
"text": "Specify whether the chip fills the full width of the container.\nIf `true`, this overrides the --input-width CSS variable."
|
|
227
|
+
},
|
|
228
|
+
"getter": false,
|
|
229
|
+
"setter": false,
|
|
230
|
+
"attribute": "full-width",
|
|
231
|
+
"reflect": false,
|
|
232
|
+
"defaultValue": "false"
|
|
233
|
+
},
|
|
207
234
|
"label": {
|
|
208
235
|
"type": "string",
|
|
209
236
|
"mutable": false,
|
|
@@ -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,EACZ,4BAA4B,EAC5B,uBAAuB,GACxB,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,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAC3B,OAAO,EAAE,IAAI,CAAC,aAAa,EAC3B,YAAY,EAAE,IAAI,CAAC,iBAAiB,EACpC,YAAY,EAAE,IAAI,CAAC,iBAAiB,EACpC,SAAS,EAAE,WAAW,GACd,CACC,CACd;gBACA,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,IAAI,6DAAM,IAAI,EAAC,OAAO,GAAQ,CACvD,CACP;YACA,WAAW,IAAI,CACd,4DAAK,KAAK,EAAC,SAAS,eAAW,QAAQ,IACpC,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CACrC,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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 renderDynamicChildSlots,\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 private hostMutationObserver?: MutationObserver;\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 disconnectedCallback(): void {\n this.hostMutationObserver?.disconnect();\n }\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 this.hostMutationObserver = new MutationObserver((mutationList) =>\n renderDynamicChildSlots(mutationList, [\"icon\", \"badge\"], this)\n );\n this.hostMutationObserver.observe(this.el, {\n childList: true,\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-chip-dismissed\": !visible,\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"]}
|
|
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,EAC5B,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,WAAW,MAAM,+BAA+B,CAAC;AAExD;;;GAGG;AAQH,MAAM,OAAO,IAAI;IAPjB;QAaW,oBAAe,GAAsC,IAAI,CAAC;QAC1D,YAAO,GAAG,KAAK,CAAC;QAChB,YAAO,GAAG,IAAI,CAAC;QAyBxB;;WAEG;QACK,aAAQ,GAAG,KAAK,CAAC;QAMzB;;WAEG;QACK,gBAAW,GAAG,KAAK,CAAC;QAE5B;;WAEG;QACK,iBAAY,GAAG,SAAS,CAAC;QAEjC;;;WAGG;QACK,cAAS,GAA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AAU,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,IAAI,6DAAM,IAAI,EAAC,OAAO,GAAQ,CACvD,CACP;YACA,WAAW,IAAI,CACd,4DAAK,KAAK,EAAC,SAAS,eAAW,QAAQ,IACpC,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CACrC,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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 renderDynamicChildSlots,\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 private hostMutationObserver?: MutationObserver;\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 * Specify whether the chip fills the full width of the container.\n * If `true`, this overrides the --input-width CSS variable.\n */\n @Prop() fullWidth = 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: 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 disconnectedCallback(): void {\n this.hostMutationObserver?.disconnect();\n }\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 this.hostMutationObserver = new MutationObserver((mutationList) =>\n renderDynamicChildSlots(mutationList, [\"icon\", \"badge\"], this)\n );\n this.hostMutationObserver.observe(this.el, {\n childList: true,\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 fullWidth,\n } = this;\n\n const ariaLabel = `${label} chip`;\n\n return (\n <Host\n class={{\n \"ic-chip-dismissed\": !visible,\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n [`ic-chip-${foregroundColor}-text`]:\n variant === \"filled\" && !!foregroundColor,\n \"ic-chip-full-width\": fullWidth,\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 \"full-width\": fullWidth,\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"]}
|
|
@@ -12,6 +12,7 @@ const defaultArgs = {
|
|
|
12
12
|
transparentBackground: true,
|
|
13
13
|
variant: "filled",
|
|
14
14
|
badgeSlot: "badge",
|
|
15
|
+
fullWidth: false,
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
export default {
|
|
@@ -739,6 +740,19 @@ export const WithoutIcons = {
|
|
|
739
740
|
name: "Without icons",
|
|
740
741
|
};
|
|
741
742
|
|
|
743
|
+
export const FullWidth = {
|
|
744
|
+
render: () =>
|
|
745
|
+
html`<div style="display:flex; flex-direction: column; gap: 0.5rem ">
|
|
746
|
+
<ic-chip label="Americano" dismissible full-width></ic-chip>
|
|
747
|
+
<ic-chip label="Americano" dismissible> </ic-chip>
|
|
748
|
+
<ic-theme theme="dark">
|
|
749
|
+
<ic-chip label="Cappuccino" full-width> </ic-chip>
|
|
750
|
+
</ic-theme>
|
|
751
|
+
</div>`,
|
|
752
|
+
|
|
753
|
+
name: "Full Width",
|
|
754
|
+
};
|
|
755
|
+
|
|
742
756
|
export const LongLabel = {
|
|
743
757
|
render: () =>
|
|
744
758
|
html`<ic-chip
|
|
@@ -913,6 +927,7 @@ export const Playground = {
|
|
|
913
927
|
transparent-background=${args.transparentBackground}
|
|
914
928
|
theme=${args.theme}
|
|
915
929
|
dismiss-label=${args.dismissLabel}
|
|
930
|
+
full-width=${args.fullWidth}
|
|
916
931
|
>
|
|
917
932
|
<svg
|
|
918
933
|
slot="icon"
|
|
@@ -472,6 +472,10 @@ video {
|
|
|
472
472
|
background-color: var(--ic-data-list-keyline-heading);
|
|
473
473
|
}
|
|
474
474
|
|
|
475
|
+
.divider-no-heading {
|
|
476
|
+
margin-top: 0;
|
|
477
|
+
}
|
|
478
|
+
|
|
475
479
|
:host(.ic-data-list-small) .divider {
|
|
476
480
|
margin-top: var(--ic-space-sm);
|
|
477
481
|
margin-bottom: var(--ic-space-xs);
|
|
@@ -18,10 +18,11 @@ export class DataList {
|
|
|
18
18
|
if (size === "small") {
|
|
19
19
|
Array.from(el.children).forEach((child) => child.setAttribute("size", "small"));
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
const hasHeading = heading || el.querySelector('[slot="heading"]');
|
|
22
|
+
return (h(Host, { key: '17c612682af529e83aa9e68f352e0def68e3ed1f', class: {
|
|
22
23
|
"ic-data-list-small": size === "small",
|
|
23
24
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
24
|
-
} }, h("div", { key: '
|
|
25
|
+
} }, h("div", { key: '35e939693c3be1a65b3773dc4cc777f934b0fbda', class: "heading", id: "data-list-heading" }, h("slot", { key: '6adee6dde0c29913a75228719df88583586dfb6e', name: "heading" }, h("ic-typography", { key: 'fc50ff9029cf0b6d4a327353dc930e6bd9d938da', variant: "h3" }, heading))), h("div", { key: 'f04cf846e38231a4008687d55cdadd825222bbf9', class: { divider: true, "divider-no-heading": !hasHeading } }), h("ul", { key: 'e23f726e29c9436d889e97494d1999208589f857', "aria-labelledby": "data-list-heading", class: "rows" }, h("slot", { key: 'a5c323131aba38658d7b7406d5ee2bf9e3c415d7' }))));
|
|
25
26
|
}
|
|
26
27
|
static get is() { return "ic-data-list"; }
|
|
27
28
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ic-data-list.js","sourceRoot":"","sources":["../../../src/components/ic-data-list/ic-data-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGlE;;GAEG;AAMH,MAAM,OAAO,QAAQ;IALrB;QAaE;;WAEG;QACK,SAAI,GAAoB,QAAQ,CAAC;QAEzC;;WAEG;QACK,UAAK,GAAiB,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ic-data-list.js","sourceRoot":"","sources":["../../../src/components/ic-data-list/ic-data-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAGlE;;GAEG;AAMH,MAAM,OAAO,QAAQ;IALrB;QAaE;;WAEG;QACK,SAAI,GAAoB,QAAQ,CAAC;QAEzC;;WAEG;QACK,UAAK,GAAiB,SAAS,CAAC;KAgCzC;IA9BC,MAAM;QACJ,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QAE1C,IAAI,IAAI,KAAK,OAAO,EAAE,CAAC;YACrB,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CACxC,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,CACpC,CAAC;QACJ,CAAC;QAED,MAAM,UAAU,GAAG,OAAO,IAAI,EAAE,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;QAEnE,OAAO,CACL,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,oBAAoB,EAAE,IAAI,KAAK,OAAO;gBACtC,CAAC,YAAY,KAAK,EAAE,CAAC,EAAE,KAAK,KAAK,SAAS;aAC3C;YAED,4DAAK,KAAK,EAAC,SAAS,EAAC,EAAE,EAAC,mBAAmB;gBACzC,6DAAM,IAAI,EAAC,SAAS;oBAClB,sEAAe,OAAO,EAAC,IAAI,IAAE,OAAO,CAAiB,CAChD,CACH;YACN,4DAAK,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC,UAAU,EAAE,GAAI;YACpE,8EAAoB,mBAAmB,EAAC,KAAK,EAAC,MAAM;gBAClD,8DAAa,CACV,CACA,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, h, Prop } from \"@stencil/core\";\nimport { IcSizesNoLarge, IcThemeMode } from \"../../utils/types\";\n\n/**\n * @slot heading - Content will be placed at the top of the data list.\n */\n@Component({\n tag: \"ic-data-list\",\n styleUrl: \"ic-data-list.css\",\n shadow: true,\n})\nexport class DataList {\n @Element() el: HTMLIcDataListElement;\n\n /**\n * The title for the data list.\n */\n @Prop() heading?: string;\n\n /**\n * The size of the data list component.\n */\n @Prop() size?: IcSizesNoLarge = \"medium\";\n\n /**\n * 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.\n */\n @Prop() theme?: IcThemeMode = \"inherit\";\n\n render() {\n const { el, heading, size, theme } = this;\n\n if (size === \"small\") {\n Array.from(el.children).forEach((child) =>\n child.setAttribute(\"size\", \"small\")\n );\n }\n\n const hasHeading = heading || el.querySelector('[slot=\"heading\"]');\n\n return (\n <Host\n class={{\n \"ic-data-list-small\": size === \"small\",\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n }}\n >\n <div class=\"heading\" id=\"data-list-heading\">\n <slot name=\"heading\">\n <ic-typography variant=\"h3\">{heading}</ic-typography>\n </slot>\n </div>\n <div class={{ divider: true, \"divider-no-heading\": !hasHeading }} />\n <ul aria-labelledby=\"data-list-heading\" class=\"rows\">\n <slot></slot>\n </ul>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -155,6 +155,7 @@ export const IconButton = {
|
|
|
155
155
|
variant="icon-tertiary"
|
|
156
156
|
aria-label="Edit"
|
|
157
157
|
slot="end-component"
|
|
158
|
+
size="small"
|
|
158
159
|
>
|
|
159
160
|
<svg
|
|
160
161
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -173,6 +174,7 @@ export const IconButton = {
|
|
|
173
174
|
variant="icon-tertiary"
|
|
174
175
|
aria-label="Edit"
|
|
175
176
|
slot="end-component"
|
|
177
|
+
size="small"
|
|
176
178
|
>
|
|
177
179
|
<svg
|
|
178
180
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -191,6 +193,7 @@ export const IconButton = {
|
|
|
191
193
|
variant="icon-tertiary"
|
|
192
194
|
aria-label="Edit"
|
|
193
195
|
slot="end-component"
|
|
196
|
+
size="small"
|
|
194
197
|
>
|
|
195
198
|
<svg
|
|
196
199
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -209,6 +212,7 @@ export const IconButton = {
|
|
|
209
212
|
variant="icon-tertiary"
|
|
210
213
|
aria-label="Edit"
|
|
211
214
|
slot="end-component"
|
|
215
|
+
size="small"
|
|
212
216
|
>
|
|
213
217
|
<svg
|
|
214
218
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -236,6 +240,7 @@ export const IconButton = {
|
|
|
236
240
|
variant="icon-tertiary"
|
|
237
241
|
aria-label="Edit"
|
|
238
242
|
slot="end-component"
|
|
243
|
+
size="small"
|
|
239
244
|
>
|
|
240
245
|
<svg
|
|
241
246
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -502,6 +507,7 @@ export const Playground = {
|
|
|
502
507
|
variant="icon-tertiary"
|
|
503
508
|
aria-label="Edit"
|
|
504
509
|
slot=${args.endCompSlot}
|
|
510
|
+
size="small"
|
|
505
511
|
>
|
|
506
512
|
<svg
|
|
507
513
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -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: '3cfe27bfa3e8e0a563450e3842c31e50a78fcb28', 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: '348b7ebe1cec0baab24213e9cc468a7e2274ae31', class: "data" }, h("div", { key: 'a2d9d409a312f20b259a40a85ce37b8928e8da06', class: "text-cells" }, (isSlotUsed(el, "label") || label) && renderCellContent("label"), (isSlotUsed(el, "value") || value) && renderCellContent("value")), hasEndComponent && (h("div", { key: 'c7f9583403acf4041eebe4b26ff417b453fe07db', class: "end-component" }, h("slot", { key: '837641d249f27635ece7e1eb6505d3e4dbf5492b', name: "end-component" })))), h("div", { key: '9f39724a36e05428a979a589bbed4a09fa2043e0', class: "divider" })));
|
|
77
77
|
}
|
|
78
78
|
static get is() { return "ic-data-row"; }
|
|
79
79
|
static get encapsulation() { return "shadow"; }
|
|
@@ -361,7 +361,7 @@ export class Dialog {
|
|
|
361
361
|
}
|
|
362
362
|
render() {
|
|
363
363
|
const { dialogRendered, disableHeightConstraint, fadeIn, theme, size } = this;
|
|
364
|
-
return (h(Host, { key: '
|
|
364
|
+
return (h(Host, { key: 'fca8d5ed62295efef6630d45e8174331c4d99e48', class: {
|
|
365
365
|
"ic-dialog-hidden": !dialogRendered,
|
|
366
366
|
"ic-dialog-fade-in": fadeIn,
|
|
367
367
|
"disable-height-constraint": !!disableHeightConstraint,
|
|
@@ -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: 'a0dcd0b2fe385b4c2f1f4ffc346ac54b3e19565c', 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: 'e652b784ccd7b2af7ed0f9755547a9ddbbb4c5e7', name: "image" }), h("div", { key: '1dfc5567a55de1301caec6d779ad60f851826a41' }, h("slot", { key: '70b5a550c9650fcab692acbc53d035e114eaf09e', name: "heading" }, h("ic-typography", { key: '043fc0ae7d4364442d75bb78bdbe3004fa1274f4', variant: "h4", class: "empty-state-heading" }, heading)), h("slot", { key: '84dbde519a4b6cb0cd7ab03e8dbcb85931796a24', name: "subheading" }, h("ic-typography", { key: 'a2d94ae6cba46c73212f2c688858ee56ceaa5a90', variant: "subtitle-small", class: "empty-state-subheading" }, subheading)), h("slot", { key: 'aa1fc8130e5d4fb6a472f908a30fd319463b443f', name: "body" }, h("ic-typography", { key: 'f73a7eb783dd049cb4de2510b977500d0fa47d52', maxLines: maxLines, class: "empty-state-body" }, body))), isSlotUsed(this.el, "actions") && (h("div", { key: '3cb1e55fb552cf4177498d87e874d16a3f16d429', class: "action-area" }, h("slot", { key: 'e25cb0c875f095825a512cea93c5ffe700072e71', name: "actions" })))));
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "ic-empty-state"; }
|
|
47
47
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: '445c93b158bc2ac7958a7b9712ab29462acdce9e', 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: 'f6ae4e7d52fdebdd574efd3ff21c6d5e0dbc827b', class: "footer-link", href: href, hreflang: hreflang, referrerpolicy: referrerpolicy, rel: rel, download: download !== false ? download : undefined, target: target }, h("slot", { key: '8d8cf6f52b51cd26b6faa02fb91889d674286b38' }))));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "ic-footer-link"; }
|
|
50
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -78,7 +78,7 @@ export class Hero {
|
|
|
78
78
|
"background-position": scrollFactor,
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: '0ae644324ec79f6f3b227626452353339c05272c', class: {
|
|
82
82
|
[`ic-hero-${IcBrandForegroundEnum.Dark}`]: foregroundColor === IcBrandForegroundEnum.Dark,
|
|
83
83
|
["has-background-image"]: backgroundImage !== undefined,
|
|
84
84
|
["has-right-content"]: this.rightContent,
|
|
@@ -86,12 +86,12 @@ export class Hero {
|
|
|
86
86
|
["secondary-heading"]: !!secondaryHeading,
|
|
87
87
|
[`ic-hero-content-aligned-${contentAligned}`]: contentAligned !== undefined,
|
|
88
88
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
89
|
-
}, style: style }, h("ic-section-container", { key: '
|
|
89
|
+
}, style: style }, h("ic-section-container", { key: '5643bc58c2c704cd503a0933bdb795e181af98d9', aligned: aligned, fullHeight: true, class: "section-container" }, h("div", { key: '1b81861076201ba5b3f643b6288b5bb10841fae4', class: {
|
|
90
90
|
["left-container"]: true,
|
|
91
91
|
["left-container-full-width"]: this.leftContentFullWidth,
|
|
92
|
-
} }, h("div", { key: '
|
|
92
|
+
} }, h("div", { key: '5a53dc54324f6f15170797ab81616ba2f83eee9b', class: "heading" }, h("slot", { key: 'b535d7a5cf4e0551c7dcfe160fe5e8e735cbfec4', name: "heading" }, h("ic-typography", { key: 'c8abd3f44bc9c5957a4103dd84ac388ccc09fdc8', variant: size === "small" ? "h2" : "h1", class: {
|
|
93
93
|
["heading-bottom-spacing"]: size !== "small",
|
|
94
|
-
} }, h("h2", { key: '
|
|
94
|
+
} }, h("h2", { key: '6e723202fd477bf488c5b6760bdbf6c4ec7e560d' }, heading)))), h("div", { key: '091d301ed753366740c5d703f40f132f2aee25cf', class: "subheading" }, h("slot", { key: 'ce39e48683e9ce91098b20f9f0e48b7f384cda68', name: "subheading" }, h("ic-typography", { key: 'daeef6b852b0301c4938c803bf1176d739bff0c1', variant: "body" }, subheading))), h("div", { key: '492dacd32aca9642eb52399d02e665fc86243486', class: "interaction-container" }, h("slot", { key: 'e3f6ce704c0bdfac397753ec3d786f2768be4cc9', name: "interaction" }))), (isPropDefined(secondaryHeading) || this.rightContent) && (h("div", { key: '446b6a7afe3ff99602127308142019e167943649', class: "right-container" }, h("slot", { key: '6309a6e8edb1be8c0aae243dd893a732e305d6ca', name: "secondary" }, secondaryHeading && (h("div", { key: 'd4ab8e694dd03bcedb5d3bd71f3c1f1bf63e5b8c', class: "secondary-container" }, h("div", { key: '388608d5a191bafc5c11945c1e24a0a790fa8be8', class: "secondary-heading" }, h("ic-typography", { key: 'bd607ed8f7581dfd58e1ac76c25ba7aca6b730ce', variant: "h4" }, h("h3", { key: '20d2ae02e785decd0cfb86b24b262e19e57c8623' }, secondaryHeading))), h("div", { key: 'cd22db2c0acb66dd4585f95b29ced4988e880276', class: "secondary-subheading" }, h("ic-typography", { key: '43348f58372ffc4fa71f08519f881153bc6d4411', variant: "subtitle-small" }, secondarySubheading))))))))));
|
|
95
95
|
}
|
|
96
96
|
static get is() { return "ic-hero"; }
|
|
97
97
|
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: '5f340f9d11d2ca42a17eacea2b9ce38b35614151', 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: '555d223168b83a595030b18c4d21874c1cf679bd', "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: '9196738f3d7d2c48b9173af7b152828a00c56edd', 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: '89c1dc4017ec5a5ccd691c16c47957d35067d0b5', class: "scroll-splitter-left" })), h("slot", { key: 'bc45bafea5bad600701b74f097aae39c2e6b1e4d' }), h("div", { key: 'b961e7d153dccb0187f0aa8c02f73494f4233649', "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: 'd0960807543d4513129f192ce975c7a0139a91a0', class: "scroll-splitter-right" }), h("ic-button", { key: '4844fbcec6360b939a67c3878e36f4b812685c22', 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
|
}
|
package/dist/collection/components/ic-input-component-container/ic-input-component-container.js
CHANGED
|
@@ -48,15 +48,15 @@ export class InputComponentContainer {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
const { size, validationStatus, disabled, readonly, multiLine, fullWidth, validationInline, } = this;
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '20c111945d3fea6c2ec9ddcb70a0e5c74489fcd0', class: {
|
|
52
52
|
[`ic-input-component-container-${size}`]: true,
|
|
53
53
|
[`ic-input-component-container-${validationStatus}`]: validationStatus !== "" && !disabled && !readonly,
|
|
54
54
|
"ic-input-component-container-disabled": !!disabled,
|
|
55
55
|
"ic-input-component-container-readonly": !!readonly,
|
|
56
56
|
"ic-input-component-container-multiline": !!multiLine,
|
|
57
57
|
"ic-input-component-container-full-width": !!fullWidth,
|
|
58
|
-
}, "aria-disabled": disabled ? "true" : null }, h("div", { key: '
|
|
59
|
-
validationStatus === IcInformationStatus.Success && (h("span", { key: '
|
|
58
|
+
}, "aria-disabled": disabled ? "true" : null }, h("div", { key: '10974ddaa6b7e895645b50a73501ef8004036e8d', class: "focus-indicator" }, slotHasContent(this.el, "left-icon") && (h("div", { key: '29b14de6450c67f924e6820cc4ef74f20abad132', class: "icon-container" }, h("slot", { key: '9c35122ee4308cd2782cf405a80b4b986a4b3fe8', name: "left-icon" }))), h("slot", { key: '71782b3c047c6bc14d63bb2218fc825ee644ed12' }), validationInline &&
|
|
59
|
+
validationStatus === IcInformationStatus.Success && (h("span", { key: 'e3ad09a64f224428e5a38127390751d86b5db914', class: "inline-success", innerHTML: successIcon })))));
|
|
60
60
|
}
|
|
61
61
|
static get is() { return "ic-input-component-container"; }
|
|
62
62
|
static get originalStyleUrls() {
|
|
@@ -11,11 +11,11 @@ export class InputContainer {
|
|
|
11
11
|
this.readonly = false;
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '25d076eaba3bd1c7e469a5a3c44b26990dfcb43c' }, h("div", { key: '77559c5ab0557c9d42eb30d4a6487962dc8d2462', class: {
|
|
15
15
|
["component-container"]: true,
|
|
16
16
|
["disabled"]: !!this.disabled,
|
|
17
17
|
["readonly"]: !!this.readonly,
|
|
18
|
-
} }, h("slot", { key: '
|
|
18
|
+
} }, h("slot", { key: '0b579f90ba6c9b7b5c515632b9e3f78a3a47c9a2' }))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "ic-input-container"; }
|
|
21
21
|
static get originalStyleUrls() {
|
|
@@ -63,11 +63,11 @@ export class InputLabel {
|
|
|
63
63
|
"helpertext-readonly": readonly,
|
|
64
64
|
};
|
|
65
65
|
const helperTextSlot = this.el.querySelector("slot[name='helper-text']");
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: '632235f5528b1ee7cbdc981b1fd8f83f81317ac5', class: {
|
|
67
67
|
"ic-input-label-disabled": !!disabled,
|
|
68
68
|
"ic-input-label-readonly": readonly,
|
|
69
69
|
"with-helper": this.isHelperTextSlotUsed(helperTextSlot) || helperText !== "",
|
|
70
|
-
} }, !hideLabel && (h("ic-typography", { key: '
|
|
70
|
+
} }, !hideLabel && (h("ic-typography", { key: '4d5ffe88dcfd61697ac5c10bbfe72da69d6cd09e', variant: "label", class: {
|
|
71
71
|
"readonly-label": readonly,
|
|
72
72
|
"error-label": status === "error" && !(readonly || disabled),
|
|
73
73
|
} }, readonly || !useLabelTag ? (`${labelText}`) : (h("label", { htmlFor: this.for }, labelText)))), this.isHelperTextSlotUsed(helperTextSlot) ? (h("span", { id: helperTextId, class: helperTextClass }, h("slot", { name: "helper-text" }))) : (helperText !== "" && (h("ic-typography", { variant: "caption", class: helperTextClass }, h("span", { id: helperTextId }, helperText))))));
|
|
@@ -3,7 +3,7 @@ import { IcInformationStatus, } from "../../utils/types";
|
|
|
3
3
|
import errorIcon from "../../assets/error-icon.svg";
|
|
4
4
|
import successIcon from "../../assets/success-icon.svg";
|
|
5
5
|
import warningIcon from "../../assets/warning-icon.svg";
|
|
6
|
-
import { getInputValidationTextID,
|
|
6
|
+
import { getInputValidationTextID, isSlotUsed } from "../../utils/helpers";
|
|
7
7
|
const ICON = {
|
|
8
8
|
[IcInformationStatus.Warning]: warningIcon,
|
|
9
9
|
[IcInformationStatus.Error]: errorIcon,
|
|
@@ -12,6 +12,7 @@ const ICON = {
|
|
|
12
12
|
const INVISIBLE_CHAR = "\u200B";
|
|
13
13
|
/**
|
|
14
14
|
* @slot validation-message-adornment - Content will be placed to the right of the validation message.
|
|
15
|
+
* @slot validation-message - Content will be placed as the validation message.
|
|
15
16
|
*/
|
|
16
17
|
export class InputValidation {
|
|
17
18
|
constructor() {
|
|
@@ -37,20 +38,19 @@ export class InputValidation {
|
|
|
37
38
|
}, 200); // Delay to help ensure screen readers detect change
|
|
38
39
|
}
|
|
39
40
|
componentDidLoad() {
|
|
40
|
-
onComponentRequiredPropUndefined([{ prop: this.message, propName: "message" }], "Input Validation");
|
|
41
41
|
this.messageEl.textContent = INVISIBLE_CHAR;
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
44
|
const { ariaLiveMode, fullWidth, status, message } = this;
|
|
45
45
|
const displayIcon = status !== "" ? ICON[status] : "";
|
|
46
|
-
return (h(Host, { key: '
|
|
46
|
+
return (h(Host, { key: '96d572f2475891bb27613f8bdfc137fc5a5eeceb', class: {
|
|
47
47
|
[`ic-input-validation-${status}`]: status !== "",
|
|
48
48
|
"ic-input-validation-full-width": !!fullWidth,
|
|
49
49
|
"ic-input-validation-with-status": status !== "",
|
|
50
|
-
} }, displayIcon !== "" && (h("span", { key: '
|
|
50
|
+
} }, displayIcon !== "" && (h("span", { key: '8b8a9716ab6350d4959ba09254830e17d275258d', class: {
|
|
51
51
|
"status-icon": true,
|
|
52
52
|
[`icon-${status}`]: true,
|
|
53
|
-
}, innerHTML: displayIcon })), h("ic-typography", { key: '
|
|
53
|
+
}, innerHTML: displayIcon })), h("ic-typography", { key: '587682a13e0ef65b1fc31e7018827077728e1b5d', variant: "caption", class: "statustext" }, h("span", { key: '6c398ad4c73d27b90a9df1485902dcb4d4ea1b49', id: this.for && getInputValidationTextID(this.for) }, isSlotUsed(this.el, "validation-message") ? (h("slot", { name: "validation-message" })) : (message)), h("span", { key: '542800ff7792e9bd075d2f682ca9e997ceb74fc2', ref: (el) => (this.messageEl = el), class: "sr-only", "aria-live": ariaLiveMode })), h("slot", { key: 'edcd7ddf24ae842f40eada9fa221da19b9fb6c79', name: "validation-message-adornment" })));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "ic-input-validation"; }
|
|
56
56
|
static get originalStyleUrls() {
|
|
@@ -135,11 +135,11 @@ export class InputValidation {
|
|
|
135
135
|
"mutable": false,
|
|
136
136
|
"complexType": {
|
|
137
137
|
"original": "string",
|
|
138
|
-
"resolved": "string",
|
|
138
|
+
"resolved": "string | undefined",
|
|
139
139
|
"references": {}
|
|
140
140
|
},
|
|
141
|
-
"required":
|
|
142
|
-
"optional":
|
|
141
|
+
"required": false,
|
|
142
|
+
"optional": true,
|
|
143
143
|
"docs": {
|
|
144
144
|
"tags": [],
|
|
145
145
|
"text": "The validation message to display."
|