@ukic/web-components 3.14.0 → 3.16.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-button_3.cjs.entry.js +5 -5
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-checkbox.cjs.entry.js +31 -8
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-list.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +2 -2
- 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-footer.cjs.entry.js +9 -5
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +11 -6
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +5 -5
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +10 -10
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +6 -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 +2 -2
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +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 +4 -4
- package/dist/cjs/ic-popover-menu.cjs.entry.js +4 -4
- package/dist/cjs/ic-radio-group.cjs.entry.js +5 -5
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +9 -6
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +10 -10
- 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 +7 -7
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +4 -4
- 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 +2 -2
- package/dist/cjs/ic-step.cjs.entry.js +13 -13
- package/dist/cjs/ic-stepper.cjs.entry.js +2 -2
- 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 +6 -6
- 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 +14 -6
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- 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/loader.cjs.js +1 -1
- package/dist/collection/components/ic-button/ic-button.stories.js +3 -3
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +11 -2
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +31 -7
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +2 -2
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +68 -16
- package/dist/collection/components/ic-data-list/ic-data-list.css +1 -0
- package/dist/collection/components/ic-data-list/ic-data-list.js +2 -2
- package/dist/collection/components/ic-data-row/ic-data-row.css +2 -0
- 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/ic-footer.js +29 -5
- package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
- package/dist/collection/components/ic-footer/ic-footer.stories.js +31 -0
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
- package/dist/collection/components/ic-hero/ic-hero.css +19 -0
- package/dist/collection/components/ic-hero/ic-hero.js +36 -5
- package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
- package/dist/collection/components/ic-hero/ic-hero.stories.js +15 -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.css +9 -0
- 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.css +2 -1
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +3 -3
- 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 +5 -5
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.stories.js +17 -18
- package/dist/collection/components/ic-menu/ic-menu.css +8 -0
- 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.css +12 -0
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +1 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +2 -7
- 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/ic-pagination.stories.js +3 -3
- 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-popover-menu/ic-popover-menu.stories.js +7 -7
- package/dist/collection/components/ic-radio-group/ic-radio-group.css +6 -6
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +4 -4
- package/dist/collection/components/ic-radio-group/ic-radio-group.stories.js +12 -12
- package/dist/collection/components/ic-radio-option/ic-radio-option.css +60 -54
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +9 -5
- package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
- package/dist/collection/components/ic-search-bar/ic-search-bar.css +8 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +9 -9
- package/dist/collection/components/ic-search-bar/ic-search-bar.stories.js +19 -19
- package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
- package/dist/collection/components/ic-select/ic-select.css +1 -1
- package/dist/collection/components/ic-select/ic-select.js +6 -6
- package/dist/collection/components/ic-select/ic-select_(multi).stories.js +20 -20
- package/dist/collection/components/ic-select/ic-select_(searchable).stories.js +21 -21
- package/dist/collection/components/ic-select/ic-select_(single).stories.js +21 -5
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +4 -4
- 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-stepper/ic-stepper.stories.js +16 -6
- 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-context/ic-tabs.stories.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 -6
- 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 +32 -18
- package/dist/collection/components/ic-theme/ic-theme.js +1 -1
- package/dist/collection/components/ic-toast/ic-toast.css +26 -1
- package/dist/collection/components/ic-toast/ic-toast.js +39 -5
- package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
- package/dist/collection/components/ic-toast/ic-toast.stories.js +21 -9
- 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/ic-toggle-button.stories.js +14 -14
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.stories.js +7 -7
- package/dist/collection/components/ic-tooltip/ic-tooltip.stories.js +11 -11
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.stories.js +15 -15
- package/dist/collection/components/ic-typography/ic-typography.stories.js +1 -1
- package/dist/collection/patterns/top-nav-content-footer.stories.js +1 -1
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +2 -2
- package/dist/components/ic-checkbox.js +31 -8
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-classification-banner.js.map +1 -1
- package/dist/components/ic-data-list.js +2 -2
- package/dist/components/ic-data-list.js.map +1 -1
- package/dist/components/ic-data-row.js +2 -2
- 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-footer.js +10 -5
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-hero.js +12 -6
- 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 +4 -4
- package/dist/components/ic-input-component-container2.js.map +1 -1
- 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 -4
- 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 +5 -5
- 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 +2 -2
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +1 -1
- 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 +4 -4
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +5 -5
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +10 -7
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +10 -10
- 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 +7 -7
- package/dist/components/ic-select.js.map +1 -1
- 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 +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-step.js.map +1 -1
- package/dist/components/ic-stepper.js +2 -2
- 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 +6 -6
- 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 +15 -6
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-toggle-button-group.js +2 -2
- package/dist/components/ic-toggle-button.js +2 -2
- package/dist/core/core.css +21 -9
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-889bb8db.entry.js → p-04cb17d7.entry.js} +2 -2
- package/dist/core/p-082e0068.entry.js +2 -0
- package/dist/core/p-082e0068.entry.js.map +1 -0
- package/dist/core/{p-f4e2e41f.entry.js → p-12c30491.entry.js} +2 -2
- package/dist/core/{p-109e7fce.entry.js → p-14d43f64.entry.js} +2 -2
- package/dist/core/p-1ca4a5ed.entry.js +2 -0
- package/dist/core/p-1ca4a5ed.entry.js.map +1 -0
- package/dist/core/{p-efc97f21.entry.js → p-1f41818b.entry.js} +2 -2
- package/dist/core/{p-5cf704e3.entry.js → p-319e3d5b.entry.js} +2 -2
- package/dist/core/p-3238389a.entry.js +2 -0
- package/dist/core/p-3238389a.entry.js.map +1 -0
- package/dist/core/{p-d1cce122.entry.js → p-33e35173.entry.js} +2 -2
- package/dist/core/p-33e35173.entry.js.map +1 -0
- package/dist/core/{p-eb1823b3.entry.js → p-34407b13.entry.js} +2 -2
- package/dist/core/p-34407b13.entry.js.map +1 -0
- package/dist/core/{p-ab26beed.entry.js → p-3d23ce54.entry.js} +2 -2
- package/dist/core/{p-ef397b6f.entry.js → p-42d35fc4.entry.js} +2 -2
- package/dist/core/{p-0b1ea961.entry.js → p-4d3b219c.entry.js} +2 -2
- package/dist/core/{p-93e1ba0a.entry.js → p-5254a078.entry.js} +2 -2
- package/dist/core/p-52c66bfe.entry.js +2 -0
- package/dist/core/p-52c66bfe.entry.js.map +1 -0
- package/dist/core/{p-9c2e9189.entry.js → p-53740194.entry.js} +2 -2
- package/dist/core/{p-614953c5.entry.js → p-601d4e3f.entry.js} +2 -2
- package/dist/core/{p-0257d59e.entry.js → p-6329ddcb.entry.js} +2 -2
- package/dist/core/{p-d8200098.entry.js → p-67c3985d.entry.js} +2 -2
- package/dist/core/p-6ed48c46.entry.js +2 -0
- package/dist/core/p-6ed48c46.entry.js.map +1 -0
- package/dist/core/{p-a8dc3162.entry.js → p-703f3de1.entry.js} +2 -2
- package/dist/core/{p-f7706ff7.entry.js → p-762ea31a.entry.js} +2 -2
- package/dist/core/{p-2969b5c9.entry.js → p-7d0d85c4.entry.js} +2 -2
- package/dist/core/p-8abcc114.entry.js +2 -0
- package/dist/core/p-8abcc114.entry.js.map +1 -0
- package/dist/core/{p-b00efb15.entry.js → p-9674b63f.entry.js} +2 -2
- package/dist/core/p-9c52ee48.entry.js +2 -0
- package/dist/core/p-9c52ee48.entry.js.map +1 -0
- package/dist/core/{p-fb43abd6.entry.js → p-9ca147f3.entry.js} +2 -2
- package/dist/core/{p-4637c326.entry.js → p-a7583faf.entry.js} +2 -2
- package/dist/core/{p-6996e94f.entry.js → p-a8e4258f.entry.js} +2 -2
- package/dist/core/{p-6996e94f.entry.js.map → p-a8e4258f.entry.js.map} +1 -1
- package/dist/core/{p-09c31ac6.entry.js → p-adde6c66.entry.js} +2 -2
- package/dist/core/{p-6fb29846.entry.js → p-ae11583f.entry.js} +2 -2
- package/dist/core/p-afbba548.entry.js +2 -0
- package/dist/core/p-afbba548.entry.js.map +1 -0
- package/dist/core/{p-f098e531.entry.js → p-b4a2f6fa.entry.js} +2 -2
- package/dist/core/p-b4a2f6fa.entry.js.map +1 -0
- package/dist/core/p-b59504f1.entry.js +2 -0
- package/dist/core/p-b59504f1.entry.js.map +1 -0
- package/dist/core/p-b83a736d.entry.js +3 -0
- package/dist/core/p-b83a736d.entry.js.map +1 -0
- package/dist/core/{p-4bdeb62d.entry.js → p-bdda404b.entry.js} +2 -2
- package/dist/core/p-bdda404b.entry.js.map +1 -0
- package/dist/core/{p-0cbd0967.entry.js → p-cce398e1.entry.js} +2 -2
- package/dist/core/{p-06b3ae40.entry.js → p-d3223b89.entry.js} +2 -2
- package/dist/core/{p-3b13d191.entry.js → p-eca43f7d.entry.js} +2 -2
- package/dist/core/{p-44fbe8c2.entry.js → p-f4e3bb5b.entry.js} +2 -2
- package/dist/core/p-f51c609d.entry.js +2 -0
- package/dist/core/{p-296a41ce.entry.js → p-f57729b8.entry.js} +2 -2
- package/dist/core/{p-091a7fbf.entry.js → p-f6bb691a.entry.js} +2 -2
- package/dist/core/{p-ad6632a9.entry.js → p-f7105cf9.entry.js} +2 -2
- package/dist/core/p-ffd0d9d1.entry.js +2 -0
- package/dist/core/p-ffd0d9d1.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/ic-button_3.entry.js +5 -5
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +2 -2
- package/dist/esm/ic-checkbox.entry.js +31 -8
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-data-list.entry.js +2 -2
- package/dist/esm/ic-data-list.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +2 -2
- 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-footer.entry.js +9 -5
- package/dist/esm/ic-footer.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js +11 -6
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +5 -5
- package/dist/esm/ic-input-component-container_3.entry.js +10 -10
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +6 -6
- 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 +2 -2
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +1 -1
- package/dist/esm/ic-navigation-item.entry.js.map +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 +4 -4
- package/dist/esm/ic-popover-menu.entry.js +4 -4
- package/dist/esm/ic-radio-group.entry.js +5 -5
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +9 -6
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +10 -10
- 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 +7 -7
- package/dist/esm/ic-select.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +4 -4
- 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 +2 -2
- package/dist/esm/ic-step.entry.js +13 -13
- package/dist/esm/ic-stepper.entry.js +2 -2
- 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 +6 -6
- 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 +14 -6
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js +2 -2
- package/dist/esm/ic-toggle-button.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +5 -0
- package/dist/types/components/ic-footer/ic-footer.d.ts +4 -0
- package/dist/types/components/ic-hero/ic-hero.d.ts +5 -1
- package/dist/types/components/ic-toast/ic-toast.d.ts +5 -1
- package/dist/types/components.d.ts +24 -0
- package/hydrate/index.js +214 -167
- package/hydrate/index.mjs +214 -167
- package/package.json +4 -4
- package/vscode-data.json +34 -0
- package/dist/core/p-042cfc35.entry.js +0 -2
- package/dist/core/p-042cfc35.entry.js.map +0 -1
- package/dist/core/p-053ed367.entry.js +0 -2
- package/dist/core/p-053ed367.entry.js.map +0 -1
- package/dist/core/p-24d46cab.entry.js +0 -2
- package/dist/core/p-24d46cab.entry.js.map +0 -1
- package/dist/core/p-48eb7299.entry.js +0 -2
- package/dist/core/p-48eb7299.entry.js.map +0 -1
- package/dist/core/p-4a358f09.entry.js +0 -2
- package/dist/core/p-4a358f09.entry.js.map +0 -1
- package/dist/core/p-4bdeb62d.entry.js.map +0 -1
- package/dist/core/p-6e61c48a.entry.js +0 -2
- package/dist/core/p-6e61c48a.entry.js.map +0 -1
- package/dist/core/p-6f60262e.entry.js +0 -3
- package/dist/core/p-6f60262e.entry.js.map +0 -1
- package/dist/core/p-7970cbed.entry.js +0 -2
- package/dist/core/p-7970cbed.entry.js.map +0 -1
- package/dist/core/p-8c7d6a85.entry.js +0 -2
- package/dist/core/p-8c7d6a85.entry.js.map +0 -1
- package/dist/core/p-b29e325f.entry.js +0 -2
- package/dist/core/p-bba25812.entry.js +0 -2
- package/dist/core/p-bba25812.entry.js.map +0 -1
- package/dist/core/p-d1cce122.entry.js.map +0 -1
- package/dist/core/p-d20a61a7.entry.js +0 -2
- package/dist/core/p-d20a61a7.entry.js.map +0 -1
- package/dist/core/p-eb1823b3.entry.js.map +0 -1
- package/dist/core/p-f098e531.entry.js.map +0 -1
- /package/dist/core/{p-889bb8db.entry.js.map → p-04cb17d7.entry.js.map} +0 -0
- /package/dist/core/{p-f4e2e41f.entry.js.map → p-12c30491.entry.js.map} +0 -0
- /package/dist/core/{p-109e7fce.entry.js.map → p-14d43f64.entry.js.map} +0 -0
- /package/dist/core/{p-efc97f21.entry.js.map → p-1f41818b.entry.js.map} +0 -0
- /package/dist/core/{p-5cf704e3.entry.js.map → p-319e3d5b.entry.js.map} +0 -0
- /package/dist/core/{p-ab26beed.entry.js.map → p-3d23ce54.entry.js.map} +0 -0
- /package/dist/core/{p-ef397b6f.entry.js.map → p-42d35fc4.entry.js.map} +0 -0
- /package/dist/core/{p-0b1ea961.entry.js.map → p-4d3b219c.entry.js.map} +0 -0
- /package/dist/core/{p-93e1ba0a.entry.js.map → p-5254a078.entry.js.map} +0 -0
- /package/dist/core/{p-9c2e9189.entry.js.map → p-53740194.entry.js.map} +0 -0
- /package/dist/core/{p-614953c5.entry.js.map → p-601d4e3f.entry.js.map} +0 -0
- /package/dist/core/{p-0257d59e.entry.js.map → p-6329ddcb.entry.js.map} +0 -0
- /package/dist/core/{p-d8200098.entry.js.map → p-67c3985d.entry.js.map} +0 -0
- /package/dist/core/{p-a8dc3162.entry.js.map → p-703f3de1.entry.js.map} +0 -0
- /package/dist/core/{p-f7706ff7.entry.js.map → p-762ea31a.entry.js.map} +0 -0
- /package/dist/core/{p-2969b5c9.entry.js.map → p-7d0d85c4.entry.js.map} +0 -0
- /package/dist/core/{p-b00efb15.entry.js.map → p-9674b63f.entry.js.map} +0 -0
- /package/dist/core/{p-fb43abd6.entry.js.map → p-9ca147f3.entry.js.map} +0 -0
- /package/dist/core/{p-4637c326.entry.js.map → p-a7583faf.entry.js.map} +0 -0
- /package/dist/core/{p-09c31ac6.entry.js.map → p-adde6c66.entry.js.map} +0 -0
- /package/dist/core/{p-6fb29846.entry.js.map → p-ae11583f.entry.js.map} +0 -0
- /package/dist/core/{p-0cbd0967.entry.js.map → p-cce398e1.entry.js.map} +0 -0
- /package/dist/core/{p-06b3ae40.entry.js.map → p-d3223b89.entry.js.map} +0 -0
- /package/dist/core/{p-3b13d191.entry.js.map → p-eca43f7d.entry.js.map} +0 -0
- /package/dist/core/{p-44fbe8c2.entry.js.map → p-f4e3bb5b.entry.js.map} +0 -0
- /package/dist/core/{p-b29e325f.entry.js.map → p-f51c609d.entry.js.map} +0 -0
- /package/dist/core/{p-296a41ce.entry.js.map → p-f57729b8.entry.js.map} +0 -0
- /package/dist/core/{p-091a7fbf.entry.js.map → p-f6bb691a.entry.js.map} +0 -0
- /package/dist/core/{p-ad6632a9.entry.js.map → p-f7105cf9.entry.js.map} +0 -0
|
@@ -98,11 +98,11 @@ export class CheckboxGroup {
|
|
|
98
98
|
const describedBy = getInputDescribedByText(this.el, name, helperText !== "", validationStatus !== "");
|
|
99
99
|
const renderSRText = validationStatus === "error" || required || hideLabel;
|
|
100
100
|
const showValidation = hasValidationStatus(validationStatus, disabled);
|
|
101
|
-
return (h(Host, { key: '
|
|
101
|
+
return (h(Host, { key: 'ee4fc914d346b2f35dd8d44ff73a44b479caee95', class: {
|
|
102
102
|
"ic-checkbox-group-disabled": !!disabled,
|
|
103
103
|
[`ic-checkbox-group-${size}`]: true,
|
|
104
104
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
105
|
-
} }, renderSRText && (h("span", { key: '
|
|
105
|
+
} }, renderSRText && (h("span", { key: '3718d5e6fce1597c836d01050ed17bcd01c97e6e', id: "screenReaderOnlyText", class: "screen-reader-only-text", "aria-hidden": "true" }, label, " ", validationStatus === "error" ? "invalid data " : null, " ", required ? "required" : null)), h("fieldset", { key: '318e6c61787f136916d39acdd2823fa644c8d865', id: name, "aria-labelledby": `${renderSRText ? "screenReaderOnlyText" : ""} ${describedBy}`.trim(), disabled: disabled }, !hideLabel && (h("legend", { key: '6348eb25d5a2de666033441d694b407f72ae834b' }, h("ic-input-label", { key: '96ef66ab6b4e3a02a2385eb9b8f5936c1fc57ad0', class: { [`${validationStatus}`]: true }, label: label, helperText: helperText, required: required, disabled: disabled, useLabelTag: false }, h("slot", { key: 'f9f0532834d50a57dbc2f075a9f94788071cceb6', name: "helper-text", slot: "helper-text" })))), h("div", { key: '9b72caba2adb5951814689ef5c8b1fa5d7ea11ed', class: "checkboxes-container" }, h("slot", { key: '5cf045069c87416b7889e7b29b44e6f137ca0b4f' }))), h("ic-input-validation", { key: '4b9680fcb5468fbf6e9c2e1eb6d45f929b2b09dc', class: {
|
|
106
106
|
"show-validation": showValidation,
|
|
107
107
|
}, for: name, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "" })));
|
|
108
108
|
}
|
|
@@ -29,7 +29,7 @@ export default {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
export const Default = {
|
|
32
|
-
render: (
|
|
32
|
+
render: () => html`
|
|
33
33
|
<ic-checkbox-group label="This is a label" name="group1">
|
|
34
34
|
<ic-checkbox
|
|
35
35
|
value="valueName1"
|
|
@@ -52,7 +52,7 @@ export const Default = {
|
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
export const Required = {
|
|
55
|
-
render: (
|
|
55
|
+
render: () => html`
|
|
56
56
|
<ic-checkbox-group label="This is a label" required name="group1">
|
|
57
57
|
<ic-checkbox
|
|
58
58
|
value="valueName1"
|
|
@@ -75,7 +75,7 @@ export const Required = {
|
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
export const Disabled = {
|
|
78
|
-
render: (
|
|
78
|
+
render: () => html`
|
|
79
79
|
<ic-checkbox-group label="This is a label" name="group1" Disabled>
|
|
80
80
|
<ic-checkbox
|
|
81
81
|
value="valueName1"
|
|
@@ -105,7 +105,7 @@ export const Disabled = {
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
export const Sizes = {
|
|
108
|
-
render: (
|
|
108
|
+
render: () => html`
|
|
109
109
|
<ic-checkbox-group
|
|
110
110
|
size="large"
|
|
111
111
|
label="These are checkboxes with the 'size' attribute set on them individually"
|
|
@@ -195,7 +195,7 @@ export const Sizes = {
|
|
|
195
195
|
};
|
|
196
196
|
|
|
197
197
|
export const HiddenGroupLabel = {
|
|
198
|
-
render: (
|
|
198
|
+
render: () => html`
|
|
199
199
|
<ic-checkbox-group label="This is a label" hide-label name="group1">
|
|
200
200
|
<ic-checkbox
|
|
201
201
|
value="valueName1"
|
|
@@ -218,7 +218,7 @@ export const HiddenGroupLabel = {
|
|
|
218
218
|
};
|
|
219
219
|
|
|
220
220
|
export const HiddenCheckboxLabel = {
|
|
221
|
-
render: (
|
|
221
|
+
render: () => html`
|
|
222
222
|
<ic-checkbox-group label="This is a label" name="group1">
|
|
223
223
|
<ic-checkbox
|
|
224
224
|
value="valueName1"
|
|
@@ -244,7 +244,7 @@ export const HiddenCheckboxLabel = {
|
|
|
244
244
|
};
|
|
245
245
|
|
|
246
246
|
export const ConditionalDynamic = {
|
|
247
|
-
render: (
|
|
247
|
+
render: () => html`
|
|
248
248
|
<script>
|
|
249
249
|
function handleIcChange(ev) {
|
|
250
250
|
console.log(
|
|
@@ -300,7 +300,7 @@ export const ConditionalDynamic = {
|
|
|
300
300
|
};
|
|
301
301
|
|
|
302
302
|
export const ConditionalStatic = {
|
|
303
|
-
render: (
|
|
303
|
+
render: () => html`
|
|
304
304
|
<ic-checkbox-group label="This is a label" name="group1">
|
|
305
305
|
<ic-checkbox value="valueName1" label="option1">
|
|
306
306
|
<ic-text-field
|
|
@@ -315,8 +315,31 @@ export const ConditionalStatic = {
|
|
|
315
315
|
name: "Conditional static",
|
|
316
316
|
};
|
|
317
317
|
|
|
318
|
+
export const SlottedLabel = {
|
|
319
|
+
render: () => html`
|
|
320
|
+
<ic-checkbox-group label="Pick your coffee" name="group1">
|
|
321
|
+
<ic-checkbox value="valueName1" label="Americano"></ic-checkbox>
|
|
322
|
+
<ic-checkbox value="valueName2" checked>
|
|
323
|
+
<span slot="label">
|
|
324
|
+
Coffee <ic-status-tag label="hot" status="warning"></ic-status-tag>
|
|
325
|
+
</span>
|
|
326
|
+
</ic-checkbox>
|
|
327
|
+
<ic-checkbox value="valueName3" checked>
|
|
328
|
+
<span slot="label">
|
|
329
|
+
<b>Slot Coffee</b>
|
|
330
|
+
</span>
|
|
331
|
+
</ic-checkbox>
|
|
332
|
+
<ic-checkbox value="valueName4" disabled>
|
|
333
|
+
<span slot="label"> <b>OUT OF STOCK</b> Big Coffee </span>
|
|
334
|
+
</ic-checkbox>
|
|
335
|
+
</ic-checkbox-group>
|
|
336
|
+
`,
|
|
337
|
+
|
|
338
|
+
name: "Slotted label",
|
|
339
|
+
};
|
|
340
|
+
|
|
318
341
|
export const HelperText = {
|
|
319
|
-
render: (
|
|
342
|
+
render: () => html`
|
|
320
343
|
<ic-checkbox-group
|
|
321
344
|
label="Coffee extras"
|
|
322
345
|
name="group1"
|
|
@@ -348,7 +371,7 @@ export const HelperText = {
|
|
|
348
371
|
};
|
|
349
372
|
|
|
350
373
|
export const Validation = {
|
|
351
|
-
render: (
|
|
374
|
+
render: () => html`
|
|
352
375
|
<ic-checkbox-group
|
|
353
376
|
label="This is a label"
|
|
354
377
|
name="group1"
|
|
@@ -376,7 +399,7 @@ export const Validation = {
|
|
|
376
399
|
};
|
|
377
400
|
|
|
378
401
|
export const AriaLiveBehaviour = {
|
|
379
|
-
render: (
|
|
402
|
+
render: () =>
|
|
380
403
|
html`<ic-checkbox-group
|
|
381
404
|
id="field-1"
|
|
382
405
|
label="This is a label"
|
|
@@ -529,7 +552,7 @@ export const AriaLiveBehaviour = {
|
|
|
529
552
|
};
|
|
530
553
|
|
|
531
554
|
export const Form = {
|
|
532
|
-
render: (
|
|
555
|
+
render: () => html`
|
|
533
556
|
<form>
|
|
534
557
|
<ic-checkbox-group label="This is a label" name="group1">
|
|
535
558
|
<ic-checkbox
|
|
@@ -573,7 +596,7 @@ export const Form = {
|
|
|
573
596
|
};
|
|
574
597
|
|
|
575
598
|
export const Indeterminate = {
|
|
576
|
-
render: (
|
|
599
|
+
render: () => html`
|
|
577
600
|
<script>
|
|
578
601
|
var indeterminate = true;
|
|
579
602
|
var nativeIndeterminate = true;
|
|
@@ -674,7 +697,7 @@ export const Indeterminate = {
|
|
|
674
697
|
};
|
|
675
698
|
|
|
676
699
|
export const IndeterminateWithChildren = {
|
|
677
|
-
render: (
|
|
700
|
+
render: () => html`
|
|
678
701
|
<script>
|
|
679
702
|
var drinksCheckbox = document.querySelector("#drinks-checkbox");
|
|
680
703
|
var teaCheckbox = document.querySelector("#tea-checkbox");
|
|
@@ -738,7 +761,7 @@ export const IndeterminateWithChildren = {
|
|
|
738
761
|
};
|
|
739
762
|
|
|
740
763
|
export const TextFieldValueChange = {
|
|
741
|
-
render: (
|
|
764
|
+
render: () => html`
|
|
742
765
|
<script>
|
|
743
766
|
var textOutputEl = document.querySelector("#value-text");
|
|
744
767
|
function handleIcChange(ev) {
|
|
@@ -773,7 +796,7 @@ export const TextFieldValueChange = {
|
|
|
773
796
|
};
|
|
774
797
|
|
|
775
798
|
export const RTL = {
|
|
776
|
-
render: (
|
|
799
|
+
render: () => html`
|
|
777
800
|
<ic-checkbox-group label="This is a label" name="group1" dir="rtl">
|
|
778
801
|
<ic-checkbox
|
|
779
802
|
value="valueName1"
|
|
@@ -799,6 +822,35 @@ export const RTL = {
|
|
|
799
822
|
name: "RTL",
|
|
800
823
|
};
|
|
801
824
|
|
|
825
|
+
export const Internationalisation = {
|
|
826
|
+
render: () => html`
|
|
827
|
+
<p>Each checkbox in this group is set to a different language by being wrapped in a <code><span lang=""></code></p>
|
|
828
|
+
<ic-checkbox-group
|
|
829
|
+
label="International Coffee"
|
|
830
|
+
>
|
|
831
|
+
<span lang="fr">
|
|
832
|
+
<ic-checkbox value="valueName1" label="Cafe au lait"></ic-checkbox>
|
|
833
|
+
</span>
|
|
834
|
+
<span lang="it">
|
|
835
|
+
<ic-checkbox value="valueName2" label="Americano" checked></ic-checkbox>
|
|
836
|
+
</span>
|
|
837
|
+
<ic-checkbox value="valueName3" label="Flat White"></ic-checkbox>
|
|
838
|
+
</ic-checkbox-group>
|
|
839
|
+
<p>This whole checkbox group has been wrapped in a <code><span lang="fr"></code> and will read in French</p>
|
|
840
|
+
<span lang="fr">
|
|
841
|
+
<ic-checkbox-group
|
|
842
|
+
label="Boissons"
|
|
843
|
+
>
|
|
844
|
+
<ic-checkbox value="valueName1" label="Limonade"></ic-checkbox>
|
|
845
|
+
<ic-checkbox value="valueName2" label="Chocolat Chaud" checked></ic-checkbox>
|
|
846
|
+
<ic-checkbox value="valueName3" label="Jus"></ic-checkbox>
|
|
847
|
+
</ic-checkbox-group>
|
|
848
|
+
</span>
|
|
849
|
+
</>
|
|
850
|
+
`,
|
|
851
|
+
name: "Internationalisation",
|
|
852
|
+
};
|
|
853
|
+
|
|
802
854
|
const inlineRadioSelector = "inline-radio";
|
|
803
855
|
|
|
804
856
|
export const Playground = {
|
|
@@ -18,10 +18,10 @@ export class DataList {
|
|
|
18
18
|
if (size === "small") {
|
|
19
19
|
Array.from(el.children).forEach((child) => child.setAttribute("size", "small"));
|
|
20
20
|
}
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: 'a050ac5764ea9496f33d53abdd27f1a193185cbb', class: {
|
|
22
22
|
"ic-data-list-small": size === "small",
|
|
23
23
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
24
|
-
} }, h("div", { key: '
|
|
24
|
+
} }, h("div", { key: '41836f9dce80428fe7f266601c779255195f2a1a', class: "heading", id: "data-list-heading" }, h("slot", { key: '0bd2c17f6dc9767364dc021695ac5839acb3040f', name: "heading" }, h("ic-typography", { key: '65c4dd118e264af61e6494a81b60e573361ea9d3', variant: "h3" }, heading))), h("div", { key: '5be1cea50a4d8beef81c14da5e13a74a75347244', class: "divider" }), h("ul", { key: '9b71c57f882aec9aecb018e4a1fb98ff66c6aaf1', "aria-labelledby": "data-list-heading", class: "rows" }, h("slot", { key: '729e8422e911d6dc7a64e568af78f9e7e1ba32c7' }))));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "ic-data-list"; }
|
|
27
27
|
static get encapsulation() { return "shadow"; }
|
|
@@ -457,6 +457,7 @@ video {
|
|
|
457
457
|
min-width: 0;
|
|
458
458
|
|
|
459
459
|
--ic-typography-color: var(--ic-data-list-text-cell);
|
|
460
|
+
|
|
460
461
|
color: var(--ic-data-list-text-cell);
|
|
461
462
|
}
|
|
462
463
|
|
|
@@ -466,6 +467,7 @@ video {
|
|
|
466
467
|
margin-right: var(--ic-space-md);
|
|
467
468
|
|
|
468
469
|
--ic-typography-color: var(--ic-data-list-text-label);
|
|
470
|
+
|
|
469
471
|
color: var(--ic-data-list-text-label);
|
|
470
472
|
}
|
|
471
473
|
|
|
@@ -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: '8a70c9ceda7aebc616eb335f08e626952c87ddf3', 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: 'b2f75779fb6392023c42d9c1f8bf58a98b431797', class: "data" }, h("div", { key: '059aa84f8a91c9a7cdaea4e118287ea460f1bcdd', class: "text-cells" }, (isSlotUsed(el, "label") || label) && renderCellContent("label"), (isSlotUsed(el, "value") || value) && renderCellContent("value")), hasEndComponent && (h("div", { key: '3bcb9b239d836434ceae03ecd35c1bdc42d73699', class: "end-component" }, h("slot", { key: '453e0c7e4d6b875ddfc319a12dc173913057b8bd', name: "end-component" })))), h("div", { key: 'f16fd733c8ffd0e8ed8e7461099a3b9b81809cb3', 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: 'b7042e156db6ea72797e7e83ce6af29747c40d6a', 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: '4bb35d1c3476b88cc58e952b1b8785e4425d5339', 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: '9e87ed9f746d37f57505a75c62b10279b31ef54e', name: "image" }), h("div", { key: '4f94dc11d843660d3fecd976fa71f9c57644c89b' }, h("slot", { key: 'be23c55a8dc832904fbae342890d2a3d2d74ae85', name: "heading" }, h("ic-typography", { key: '52bf3dca695fecff3e5d650bd81db23d09665258', variant: "h4", class: "empty-state-heading" }, heading)), h("slot", { key: '7ed10d78475ac8b9c3f5a084a1294ad1be180f15', name: "subheading" }, h("ic-typography", { key: '5772d056578a64a951178c3c3026b36d4b316496', variant: "subtitle-small", class: "empty-state-subheading" }, subheading)), h("slot", { key: '14a8815b51a06521642921f09fa8346483522e84', name: "body" }, h("ic-typography", { key: 'bca780cc2275e81d4e25bae45f5065f6fab3bcd5', maxLines: maxLines, class: "empty-state-body" }, body))), isSlotUsed(this.el, "actions") && (h("div", { key: 'd6c0f61a358c1d0c86c4da922ed0504ffdc8228f', class: "action-area" }, h("slot", { key: 'ac150a34e883376bfee43a6edbeb8992c3bc3f96', name: "actions" })))));
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "ic-empty-state"; }
|
|
47
47
|
static get encapsulation() { return "shadow"; }
|
|
@@ -26,6 +26,10 @@ export class Footer {
|
|
|
26
26
|
* If `true`, the footer will display the crown copyright at the bottom.
|
|
27
27
|
*/
|
|
28
28
|
this.copyright = true;
|
|
29
|
+
/**
|
|
30
|
+
* The text displayed for the copyright notice if `copyright` is `true`.
|
|
31
|
+
*/
|
|
32
|
+
this.copyrightText = "© Crown Copyright";
|
|
29
33
|
/**
|
|
30
34
|
* If `true`, the footer will be set up to handle link groups instead of standalone links.
|
|
31
35
|
*/
|
|
@@ -83,13 +87,13 @@ export class Footer {
|
|
|
83
87
|
: false;
|
|
84
88
|
}
|
|
85
89
|
render() {
|
|
86
|
-
const { aligned, caption, copyright, description, deviceSize, el, foregroundColor, groupLinks, } = this;
|
|
90
|
+
const { aligned, caption, copyright, copyrightText, description, deviceSize, el, foregroundColor, groupLinks, } = this;
|
|
87
91
|
const small = this.isSmall();
|
|
88
92
|
const showComplianceSection = isSlotUsed(el, "logo") ||
|
|
89
93
|
isSlotUsed(el, "caption") ||
|
|
90
94
|
caption ||
|
|
91
95
|
copyright;
|
|
92
|
-
return (h(Host, { key: '
|
|
96
|
+
return (h(Host, { key: '6d91277fef5b4a25ebc1300c5f6c9697f7cf51db', class: {
|
|
93
97
|
["ic-footer"]: true,
|
|
94
98
|
[`ic-footer-${small ? "small" : "sparse"}`]: true,
|
|
95
99
|
[`ic-footer-${groupLinks ? "grouped" : "ungrouped"}`]: true,
|
|
@@ -97,12 +101,12 @@ export class Footer {
|
|
|
97
101
|
// Slots will be able to infer their own color
|
|
98
102
|
[`ic-footer-${IcBrandForegroundEnum.Dark}`]: foregroundColor === IcBrandForegroundEnum.Dark,
|
|
99
103
|
[`ic-footer-${IcBrandForegroundEnum.Light}`]: foregroundColor === IcBrandForegroundEnum.Light,
|
|
100
|
-
} }, h("footer", { key: '
|
|
104
|
+
} }, h("footer", { key: 'ff497893502821b501404631d81a6c43282b1b36', ref: (el) => (this.footerEl = el) }, (isSlotUsed(el, "description") || description) && (h("div", { key: 'f8d674674bba8dc6570a7352e943ba8ce97ef666', class: "footer-description" }, h("ic-section-container", { key: 'd1c80f2b82c740b0ae5b3bfe55a42aa81ef631c9', aligned: aligned, fullHeight: true }, h("div", { key: '669b78285fb7274a0f36ad4ffca2e6527bc7ee8f', class: "footer-description-inner" }, h("ic-typography", { key: '0ef8cbc1311b48cfdc9fb0031802dfb3672e1bc0', variant: "body" }, h("slot", { key: '3ea6f48d56500f8ee7711e53c4c4794c5c06bc84', name: "description" }, description)))))), isSlotUsed(el, "link") && (h("div", { key: '3790b13ae7b820882d92d866ab946749f83515dc', class: "footer-links" }, groupLinks && small ? (h("div", { class: "footer-links-inner", role: "list" }, h("slot", { name: "link" }))) : (h("ic-section-container", { fullHeight: true, aligned: aligned }, h("div", { class: "footer-links-inner", role: "list" }, h("slot", { name: "link" })))))), showComplianceSection && (h("div", { key: 'bd4f9da66406e7587aadab57768e0f00d176f5f2', class: "footer-compliance" }, h("ic-section-container", { key: '4b760604abdeb1096927ca72d8b8c53ab2128ea9', aligned: aligned, fullHeight: true }, h("div", { key: '63f1d4b0009cf34f4f4492851f17653f2f2dba84', class: "footer-compliance-inner" }, isSlotUsed(el, "logo") && (h("div", { key: '9b8f9f9983db8f0f8642e79e20906e337c7cf57d', class: "footer-logo" }, h("slot", { key: 'faac7b5562c641bbb700514007e3ee6702e155df', name: "logo" }))), (isSlotUsed(el, "caption") || caption) && (h("div", { key: 'a388c6b1549d5a5516e94f872ecb538f15b1102f', class: "footer-caption" }, h("ic-typography", { key: '7e8a8e10983d31235ed8d90919d673f74d13bccb', variant: deviceSize <= IC_DEVICE_SIZES.M ? "caption" : "body" }, h("slot", { key: '81152b67972243451c8e9b3c05b1e79d5ce1b7f1', name: "caption" }, caption)))), copyright && (h("div", { key: '8f6480deac3ac1a31c0ad0e4a250c35cb07917eb', class: {
|
|
101
105
|
["footer-copyright"]: true,
|
|
102
106
|
["classification-spacing"]: hasClassificationBanner(),
|
|
103
|
-
} }, h("ic-typography", { key: '
|
|
107
|
+
} }, h("ic-typography", { key: 'e119f8f68ad5dc19a9e1020f8fabb52397fd0394', variant: deviceSize <= IC_DEVICE_SIZES.M
|
|
104
108
|
? "caption-uppercase"
|
|
105
|
-
: "label-uppercase" },
|
|
109
|
+
: "label-uppercase" }, copyrightText))))))))));
|
|
106
110
|
}
|
|
107
111
|
static get is() { return "ic-footer"; }
|
|
108
112
|
static get encapsulation() { return "shadow"; }
|
|
@@ -209,6 +213,26 @@ export class Footer {
|
|
|
209
213
|
"reflect": false,
|
|
210
214
|
"defaultValue": "true"
|
|
211
215
|
},
|
|
216
|
+
"copyrightText": {
|
|
217
|
+
"type": "string",
|
|
218
|
+
"mutable": false,
|
|
219
|
+
"complexType": {
|
|
220
|
+
"original": "string",
|
|
221
|
+
"resolved": "string | undefined",
|
|
222
|
+
"references": {}
|
|
223
|
+
},
|
|
224
|
+
"required": false,
|
|
225
|
+
"optional": true,
|
|
226
|
+
"docs": {
|
|
227
|
+
"tags": [],
|
|
228
|
+
"text": "The text displayed for the copyright notice if `copyright` is `true`."
|
|
229
|
+
},
|
|
230
|
+
"getter": false,
|
|
231
|
+
"setter": false,
|
|
232
|
+
"attribute": "copyright-text",
|
|
233
|
+
"reflect": false,
|
|
234
|
+
"defaultValue": "\"\u00A9 Crown Copyright\""
|
|
235
|
+
},
|
|
212
236
|
"description": {
|
|
213
237
|
"type": "string",
|
|
214
238
|
"mutable": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ic-footer.js","sourceRoot":"","sources":["../../../src/components/ic-footer/ic-footer.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EACL,oBAAoB,EACpB,4BAA4B,EAC5B,mBAAmB,EACnB,uBAAuB,EACvB,UAAU,EACV,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAIL,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAG3B;;;;;GAKG;AAOH,MAAM,OAAO,MAAM;IALnB;QAOU,mBAAc,GAA0B,IAAI,CAAC;QAC7C,yBAAoB,GAA4B,IAAI,CAAC;QAIpD,eAAU,GAAW,eAAe,CAAC,EAAE,CAAC;QACxC,oBAAe,GAAsB,4BAA4B,EAAE,CAAC;QAE7E;;WAEG;QACK,YAAO,GAAiB,MAAM,CAAC;QAEvC;;WAEG;QACK,eAAU,GAAyB,QAAQ,CAAC;QAOpD;;WAEG;QACK,cAAS,GAAa,IAAI,CAAC;QAOnC;;WAEG;QAC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BAAmB;oBAC5B,6EAAsB,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI;wBACtD,4DAAK,KAAK,EAAC,yBAAyB;4BACjC,UAAU,CAAC,EAAE,EAAE,MAAM,CAAC,IAAI,CACzB,4DAAK,KAAK,EAAC,aAAa;gCACtB,6DAAM,IAAI,EAAC,MAAM,GAAG,CAChB,CACP;4BACA,CAAC,UAAU,CAAC,EAAE,EAAE,SAAS,CAAC,IAAI,OAAO,CAAC,IAAI,CACzC,4DAAK,KAAK,EAAC,gBAAgB;gCACzB,sEACE,OAAO,EACL,UAAU,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM;oCAGtD,6DAAM,IAAI,EAAC,SAAS,IAAE,OAAO,CAAQ,CACvB,CACZ,CACP;4BACA,SAAS,IAAI,CACZ,4DACE,KAAK,EAAE;oCACL,CAAC,kBAAkB,CAAC,EAAE,IAAI;oCAC1B,CAAC,wBAAwB,CAAC,EAAE,uBAAuB,EAAE;iCACtD;gCAED,sEACE,OAAO,EACL,UAAU,IAAI,eAAe,CAAC,CAAC;wCAC7B,CAAC,CAAC,mBAAmB;wCACrB,CAAC,CAAC,iBAAiB,6BAIT,CACZ,CACP,CACG,CACe,CACnB,CACP,CACM,CACJ,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Prop,\n State,\n} from \"@stencil/core\";\nimport { IC_DEVICE_SIZES } from \"../../utils/constants\";\nimport {\n getCurrentDeviceSize,\n getBrandForegroundAppearance,\n checkResizeObserver,\n hasClassificationBanner,\n isSlotUsed,\n renderDynamicChildSlots,\n} from \"../../utils/helpers\";\nimport {\n IcAlignment,\n IcBrand,\n IcBrandForeground,\n IcBrandForegroundEnum,\n} from \"../../utils/types\";\nimport { IcFooterBreakpoints } from \"./ic-footer.types\";\n\n/**\n * @slot description - Content will be rendered at the top of the footer.\n * @slot link - Content will be rendered between description and logos.\n * @slot logo - Content will be rendered underneath footer links.\n * @slot caption - Content will be rendered above Crown Copyright.\n */\n\n@Component({\n tag: \"ic-footer\",\n styleUrl: \"ic-footer.css\",\n shadow: true,\n})\nexport class Footer {\n private footerEl?: HTMLElement;\n private resizeObserver: ResizeObserver | null = null;\n private hostMutationObserver: MutationObserver | null = null;\n\n @Element() el: HTMLIcFooterElement;\n\n @State() deviceSize: number = IC_DEVICE_SIZES.XL;\n @State() foregroundColor: IcBrandForeground = getBrandForegroundAppearance();\n\n /**\n * The alignment of the section containers used within the footer.\n */\n @Prop() aligned?: IcAlignment = \"left\";\n\n /**\n * The screen size breakpoint at which to switch to the small layout.\n */\n @Prop() breakpoint?: IcFooterBreakpoints = \"medium\";\n\n /**\n * The caption displayed at the bottom of the footer.\n */\n @Prop() caption?: string;\n\n /**\n * If `true`, the footer will display the crown copyright at the bottom.\n */\n @Prop() copyright?: boolean = true;\n\n /**\n * The description displayed at the top of the footer.\n */\n @Prop() description?: string;\n\n /**\n * If `true`, the footer will be set up to handle link groups instead of standalone links.\n */\n @Prop() groupLinks?: boolean = false;\n\n /**\n * @internal Triggers on page resize and triggers style changes in footer links and link groups\n */\n @Event() footerResized: EventEmitter<void>;\n\n disconnectedCallback(): void {\n if (this.resizeObserver !== null) {\n this.resizeObserver.disconnect();\n }\n\n this.hostMutationObserver?.disconnect();\n }\n\n componentWillLoad(): void {\n this.deviceSize = getCurrentDeviceSize();\n }\n\n componentDidLoad(): void {\n checkResizeObserver(this.runResizeObserver);\n\n this.hostMutationObserver = new MutationObserver((mutationList) => {\n return renderDynamicChildSlots(mutationList, \"link\", this);\n });\n\n this.hostMutationObserver.observe(this.el, {\n childList: true,\n });\n }\n\n @Listen(\"brandChange\", { target: \"document\" })\n brandChangeHandler(ev: CustomEvent<IcBrand>): void {\n this.foregroundColor = ev.detail.mode;\n }\n\n private isSmall() {\n const bp = this.breakpoint;\n\n return bp === \"extra small\"\n ? this.deviceSize < IC_DEVICE_SIZES.XS\n : bp === \"small\"\n ? this.deviceSize < IC_DEVICE_SIZES.S\n : bp === \"medium\"\n ? this.deviceSize < IC_DEVICE_SIZES.M\n : bp === \"large\"\n ? this.deviceSize < IC_DEVICE_SIZES.L\n : bp === \"extra large\"\n ? this.deviceSize < IC_DEVICE_SIZES.XL\n : false;\n }\n\n private resizeObserverCallback = (currSize: number) => {\n if (currSize !== this.deviceSize) {\n this.deviceSize = currSize;\n }\n this.footerResized.emit();\n };\n\n private runResizeObserver = () => {\n if (this.footerEl) {\n this.resizeObserver = new ResizeObserver(() => {\n const currSize = getCurrentDeviceSize();\n this.resizeObserverCallback(currSize);\n });\n\n this.resizeObserver.observe(this.footerEl);\n }\n };\n\n render() {\n const {\n aligned,\n caption,\n copyright,\n description,\n deviceSize,\n el,\n foregroundColor,\n groupLinks,\n } = this;\n const small = this.isSmall();\n\n const showComplianceSection =\n isSlotUsed(el, \"logo\") ||\n isSlotUsed(el, \"caption\") ||\n caption ||\n copyright;\n\n return (\n <Host\n class={{\n [\"ic-footer\"]: true,\n [`ic-footer-${small ? \"small\" : \"sparse\"}`]: true,\n [`ic-footer-${groupLinks ? \"grouped\" : \"ungrouped\"}`]: true,\n [`ic-footer-foreground-${foregroundColor}`]: true,\n // Slots will be able to infer their own color\n [`ic-footer-${IcBrandForegroundEnum.Dark}`]:\n foregroundColor === IcBrandForegroundEnum.Dark,\n [`ic-footer-${IcBrandForegroundEnum.Light}`]:\n foregroundColor === IcBrandForegroundEnum.Light,\n }}\n >\n <footer ref={(el) => (this.footerEl = el)}>\n {/* Description */}\n {(isSlotUsed(el, \"description\") || description) && (\n <div class=\"footer-description\">\n <ic-section-container aligned={aligned} fullHeight={true}>\n <div class=\"footer-description-inner\">\n <ic-typography variant=\"body\">\n <slot name=\"description\">{description}</slot>\n </ic-typography>\n </div>\n </ic-section-container>\n </div>\n )}\n\n {/* Links */}\n {isSlotUsed(el, \"link\") && (\n <div class=\"footer-links\">\n {groupLinks && small ? (\n <div class=\"footer-links-inner\" role=\"list\">\n <slot name=\"link\" />\n </div>\n ) : (\n <ic-section-container fullHeight aligned={aligned}>\n <div class=\"footer-links-inner\" role=\"list\">\n <slot name=\"link\" />\n </div>\n </ic-section-container>\n )}\n </div>\n )}\n\n {/* Compliance (logo, caption, copyright) */}\n {showComplianceSection && (\n <div class=\"footer-compliance\">\n <ic-section-container aligned={aligned} fullHeight={true}>\n <div class=\"footer-compliance-inner\">\n {isSlotUsed(el, \"logo\") && (\n <div class=\"footer-logo\">\n <slot name=\"logo\" />\n </div>\n )}\n {(isSlotUsed(el, \"caption\") || caption) && (\n <div class=\"footer-caption\">\n <ic-typography\n variant={\n deviceSize <= IC_DEVICE_SIZES.M ? \"caption\" : \"body\"\n }\n >\n <slot name=\"caption\">{caption}</slot>\n </ic-typography>\n </div>\n )}\n {copyright && (\n <div\n class={{\n [\"footer-copyright\"]: true,\n [\"classification-spacing\"]: hasClassificationBanner(),\n }}\n >\n <ic-typography\n variant={\n deviceSize <= IC_DEVICE_SIZES.M\n ? \"caption-uppercase\"\n : \"label-uppercase\"\n }\n >\n © Crown Copyright\n </ic-typography>\n </div>\n )}\n </div>\n </ic-section-container>\n </div>\n )}\n </footer>\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ic-footer.js","sourceRoot":"","sources":["../../../src/components/ic-footer/ic-footer.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,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tD;gCAED,sEACE,OAAO,EACL,UAAU,IAAI,eAAe,CAAC,CAAC;wCAC7B,CAAC,CAAC,mBAAmB;wCACrB,CAAC,CAAC,iBAAiB,IAGtB,aAAa,CACA,CACZ,CACP,CACG,CACe,CACnB,CACP,CACM,CACJ,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Prop,\n State,\n} from \"@stencil/core\";\nimport { IC_DEVICE_SIZES } from \"../../utils/constants\";\nimport {\n getCurrentDeviceSize,\n getBrandForegroundAppearance,\n checkResizeObserver,\n hasClassificationBanner,\n isSlotUsed,\n renderDynamicChildSlots,\n} from \"../../utils/helpers\";\nimport {\n IcAlignment,\n IcBrand,\n IcBrandForeground,\n IcBrandForegroundEnum,\n} from \"../../utils/types\";\nimport { IcFooterBreakpoints } from \"./ic-footer.types\";\n\n/**\n * @slot description - Content will be rendered at the top of the footer.\n * @slot link - Content will be rendered between description and logos.\n * @slot logo - Content will be rendered underneath footer links.\n * @slot caption - Content will be rendered above Crown Copyright.\n */\n\n@Component({\n tag: \"ic-footer\",\n styleUrl: \"ic-footer.css\",\n shadow: true,\n})\nexport class Footer {\n private footerEl?: HTMLElement;\n private resizeObserver: ResizeObserver | null = null;\n private hostMutationObserver: MutationObserver | null = null;\n\n @Element() el: HTMLIcFooterElement;\n\n @State() deviceSize: number = IC_DEVICE_SIZES.XL;\n @State() foregroundColor: IcBrandForeground = getBrandForegroundAppearance();\n\n /**\n * The alignment of the section containers used within the footer.\n */\n @Prop() aligned?: IcAlignment = \"left\";\n\n /**\n * The screen size breakpoint at which to switch to the small layout.\n */\n @Prop() breakpoint?: IcFooterBreakpoints = \"medium\";\n\n /**\n * The caption displayed at the bottom of the footer.\n */\n @Prop() caption?: string;\n\n /**\n * If `true`, the footer will display the crown copyright at the bottom.\n */\n @Prop() copyright?: boolean = true;\n\n /**\n * The text displayed for the copyright notice if `copyright` is `true`.\n */\n @Prop() copyrightText?: string = \"© Crown Copyright\";\n\n /**\n * The description displayed at the top of the footer.\n */\n @Prop() description?: string;\n\n /**\n * If `true`, the footer will be set up to handle link groups instead of standalone links.\n */\n @Prop() groupLinks?: boolean = false;\n\n /**\n * @internal Triggers on page resize and triggers style changes in footer links and link groups\n */\n @Event() footerResized: EventEmitter<void>;\n\n disconnectedCallback(): void {\n if (this.resizeObserver !== null) {\n this.resizeObserver.disconnect();\n }\n\n this.hostMutationObserver?.disconnect();\n }\n\n componentWillLoad(): void {\n this.deviceSize = getCurrentDeviceSize();\n }\n\n componentDidLoad(): void {\n checkResizeObserver(this.runResizeObserver);\n\n this.hostMutationObserver = new MutationObserver((mutationList) => {\n return renderDynamicChildSlots(mutationList, \"link\", this);\n });\n\n this.hostMutationObserver.observe(this.el, {\n childList: true,\n });\n }\n\n @Listen(\"brandChange\", { target: \"document\" })\n brandChangeHandler(ev: CustomEvent<IcBrand>): void {\n this.foregroundColor = ev.detail.mode;\n }\n\n private isSmall() {\n const bp = this.breakpoint;\n\n return bp === \"extra small\"\n ? this.deviceSize < IC_DEVICE_SIZES.XS\n : bp === \"small\"\n ? this.deviceSize < IC_DEVICE_SIZES.S\n : bp === \"medium\"\n ? this.deviceSize < IC_DEVICE_SIZES.M\n : bp === \"large\"\n ? this.deviceSize < IC_DEVICE_SIZES.L\n : bp === \"extra large\"\n ? this.deviceSize < IC_DEVICE_SIZES.XL\n : false;\n }\n\n private resizeObserverCallback = (currSize: number) => {\n if (currSize !== this.deviceSize) {\n this.deviceSize = currSize;\n }\n this.footerResized.emit();\n };\n\n private runResizeObserver = () => {\n if (this.footerEl) {\n this.resizeObserver = new ResizeObserver(() => {\n const currSize = getCurrentDeviceSize();\n this.resizeObserverCallback(currSize);\n });\n\n this.resizeObserver.observe(this.footerEl);\n }\n };\n\n render() {\n const {\n aligned,\n caption,\n copyright,\n copyrightText,\n description,\n deviceSize,\n el,\n foregroundColor,\n groupLinks,\n } = this;\n const small = this.isSmall();\n\n const showComplianceSection =\n isSlotUsed(el, \"logo\") ||\n isSlotUsed(el, \"caption\") ||\n caption ||\n copyright;\n\n return (\n <Host\n class={{\n [\"ic-footer\"]: true,\n [`ic-footer-${small ? \"small\" : \"sparse\"}`]: true,\n [`ic-footer-${groupLinks ? \"grouped\" : \"ungrouped\"}`]: true,\n [`ic-footer-foreground-${foregroundColor}`]: true,\n // Slots will be able to infer their own color\n [`ic-footer-${IcBrandForegroundEnum.Dark}`]:\n foregroundColor === IcBrandForegroundEnum.Dark,\n [`ic-footer-${IcBrandForegroundEnum.Light}`]:\n foregroundColor === IcBrandForegroundEnum.Light,\n }}\n >\n <footer ref={(el) => (this.footerEl = el)}>\n {/* Description */}\n {(isSlotUsed(el, \"description\") || description) && (\n <div class=\"footer-description\">\n <ic-section-container aligned={aligned} fullHeight={true}>\n <div class=\"footer-description-inner\">\n <ic-typography variant=\"body\">\n <slot name=\"description\">{description}</slot>\n </ic-typography>\n </div>\n </ic-section-container>\n </div>\n )}\n\n {/* Links */}\n {isSlotUsed(el, \"link\") && (\n <div class=\"footer-links\">\n {groupLinks && small ? (\n <div class=\"footer-links-inner\" role=\"list\">\n <slot name=\"link\" />\n </div>\n ) : (\n <ic-section-container fullHeight aligned={aligned}>\n <div class=\"footer-links-inner\" role=\"list\">\n <slot name=\"link\" />\n </div>\n </ic-section-container>\n )}\n </div>\n )}\n\n {/* Compliance (logo, caption, copyright) */}\n {showComplianceSection && (\n <div class=\"footer-compliance\">\n <ic-section-container aligned={aligned} fullHeight={true}>\n <div class=\"footer-compliance-inner\">\n {isSlotUsed(el, \"logo\") && (\n <div class=\"footer-logo\">\n <slot name=\"logo\" />\n </div>\n )}\n {(isSlotUsed(el, \"caption\") || caption) && (\n <div class=\"footer-caption\">\n <ic-typography\n variant={\n deviceSize <= IC_DEVICE_SIZES.M ? \"caption\" : \"body\"\n }\n >\n <slot name=\"caption\">{caption}</slot>\n </ic-typography>\n </div>\n )}\n {copyright && (\n <div\n class={{\n [\"footer-copyright\"]: true,\n [\"classification-spacing\"]: hasClassificationBanner(),\n }}\n >\n <ic-typography\n variant={\n deviceSize <= IC_DEVICE_SIZES.M\n ? \"caption-uppercase\"\n : \"label-uppercase\"\n }\n >\n {copyrightText}\n </ic-typography>\n </div>\n )}\n </div>\n </ic-section-container>\n </div>\n )}\n </footer>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -11,6 +11,7 @@ const defaultArgs = {
|
|
|
11
11
|
caption:
|
|
12
12
|
"All content is available under the Open Government Licence v3.0, except source code and code examples which are available under the MIT Licence.",
|
|
13
13
|
copyright: true,
|
|
14
|
+
copyrightText: "© Crown Copyright",
|
|
14
15
|
description:
|
|
15
16
|
"The ICDS is maintained by the Design Practice Team. If you've got a question or want to feedback, please get in touch.",
|
|
16
17
|
groupLinks: true,
|
|
@@ -22,6 +23,7 @@ export const Playground = {
|
|
|
22
23
|
breakpoint=${args.breakpoint}
|
|
23
24
|
caption=${args.caption}
|
|
24
25
|
copyright=${args.copyright}
|
|
26
|
+
copyright-text=${args.copyrightText}
|
|
25
27
|
description=${args.description}
|
|
26
28
|
group-links=${args.groupLinks}
|
|
27
29
|
>
|
|
@@ -454,3 +456,32 @@ export const SlottedDescriptionAndCaption = {
|
|
|
454
456
|
|
|
455
457
|
name: "Slotted description and caption",
|
|
456
458
|
};
|
|
459
|
+
|
|
460
|
+
export const CustomCopyright = {
|
|
461
|
+
render: () => html`
|
|
462
|
+
<ic-footer
|
|
463
|
+
description="The ICDS is maintained by the Design Practice Team. If you've got a question or want to feedback,
|
|
464
|
+
please get in touch."
|
|
465
|
+
caption="All content is available under the Open Government Licence v3.0, except source code and code examples which are available under the MIT Licence."
|
|
466
|
+
copyright-text="© 2025 Coffeehouse Inc. All rights reserved."
|
|
467
|
+
>
|
|
468
|
+
<ic-footer-link slot="link" href="/">Get Started</ic-footer-link>
|
|
469
|
+
<ic-footer-link slot="link" href="/">Accessibility</ic-footer-link>
|
|
470
|
+
<ic-footer-link slot="link" href="/">Styles</ic-footer-link>
|
|
471
|
+
<ic-footer-link slot="link" href="/" target="_blank"
|
|
472
|
+
>Components</ic-footer-link
|
|
473
|
+
>
|
|
474
|
+
<ic-footer-link slot="link" href="/">Patterns</ic-footer-link>
|
|
475
|
+
<ic-footer-link slot="link" href="/">Design toolkit</ic-footer-link>
|
|
476
|
+
<div
|
|
477
|
+
slot="logo"
|
|
478
|
+
style="width:100px;height:100px;display:flex;align-items:center;justify-content:center;
|
|
479
|
+
background-color:var(--ic-brand-color-primary);color:var(--ic-brand-text-color);"
|
|
480
|
+
>
|
|
481
|
+
Logo
|
|
482
|
+
</div>
|
|
483
|
+
</ic-footer>
|
|
484
|
+
`,
|
|
485
|
+
|
|
486
|
+
name: "Custom copyright text",
|
|
487
|
+
};
|
|
@@ -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: 'b8797484e397b1a952f2df6f644c985deec5be65', 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: '1cd559f7c768a70d2bc0c92845ad6ae6761b584a', class: "footer-link", href: href, hreflang: hreflang, referrerpolicy: referrerpolicy, rel: rel, download: download !== false ? download : undefined, target: target }, h("slot", { key: 'f2104f33d9651f96414a4963b30ea2e6c2414b18' }))));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "ic-footer-link"; }
|
|
50
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -519,6 +519,25 @@ ic-typography.heading-bottom-spacing {
|
|
|
519
519
|
gap: var(--ic-space-md);
|
|
520
520
|
margin-top: var(--ic-space-lg);
|
|
521
521
|
flex-wrap: wrap;
|
|
522
|
+
|
|
523
|
+
--ic-date-input-label: var(--ic-brand-text-color);
|
|
524
|
+
--ic-time-picker-label: var(--ic-brand-text-color);
|
|
525
|
+
--ic-checkbox-group-label: var(--ic-brand-text-color);
|
|
526
|
+
--ic-radio-button-input-field-label: var(--ic-brand-text-color);
|
|
527
|
+
--ic-search-bar-label: var(--ic-brand-text-color);
|
|
528
|
+
--ic-select-field-label: var(--ic-brand-text-color);
|
|
529
|
+
--ic-switch-label: var(--ic-brand-text-color);
|
|
530
|
+
--ic-text-field-label: var(--ic-brand-text-color);
|
|
531
|
+
--ic-date-input-subtitle: var(--ic-brand-text-color);
|
|
532
|
+
--ic-time-picker-subtitle: var(--ic-brand-text-color);
|
|
533
|
+
--ic-checkbox-group-subtitle: var(--ic-brand-text-color);
|
|
534
|
+
--ic-radio-button-input-field-subtitle: var(--ic-brand-text-color);
|
|
535
|
+
--ic-search-bar-subtitle: var(--ic-brand-text-color);
|
|
536
|
+
--ic-select-input-field-label-subtitle: var(--ic-brand-text-color);
|
|
537
|
+
--ic-switch-subtitle: var(--ic-brand-text-color);
|
|
538
|
+
--ic-text-field-subtitle: var(--ic-brand-text-color);
|
|
539
|
+
--ic-checkbox-text: var(--ic-brand-text-color);
|
|
540
|
+
--ic-radio-button-text-option: var(--ic-brand-text-color);
|
|
522
541
|
}
|
|
523
542
|
|
|
524
543
|
.secondary-subheading {
|
|
@@ -31,6 +31,10 @@ export class Hero {
|
|
|
31
31
|
* The size of the hero component.
|
|
32
32
|
*/
|
|
33
33
|
this.size = "medium";
|
|
34
|
+
/**
|
|
35
|
+
* 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.
|
|
36
|
+
*/
|
|
37
|
+
this.theme = "inherit";
|
|
34
38
|
}
|
|
35
39
|
disconnectedCallback() {
|
|
36
40
|
var _a;
|
|
@@ -66,7 +70,7 @@ export class Hero {
|
|
|
66
70
|
}
|
|
67
71
|
}
|
|
68
72
|
render() {
|
|
69
|
-
const { aligned, size, heading, subheading, secondaryHeading, secondarySubheading, foregroundColor, backgroundImage, scrollFactor, contentAligned, } = this;
|
|
73
|
+
const { aligned, size, heading, subheading, secondaryHeading, secondarySubheading, foregroundColor, backgroundImage, scrollFactor, contentAligned, theme, } = this;
|
|
70
74
|
let style = {};
|
|
71
75
|
if (isPropDefined(backgroundImage)) {
|
|
72
76
|
style = {
|
|
@@ -74,19 +78,20 @@ export class Hero {
|
|
|
74
78
|
"background-position": scrollFactor,
|
|
75
79
|
};
|
|
76
80
|
}
|
|
77
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: '34d3c839d5827d5dadfdc1a160c4b6b2ae965cdf', class: {
|
|
78
82
|
[`ic-hero-${IcBrandForegroundEnum.Dark}`]: foregroundColor === IcBrandForegroundEnum.Dark,
|
|
79
83
|
["has-background-image"]: backgroundImage !== undefined,
|
|
80
84
|
["has-right-content"]: this.rightContent,
|
|
81
85
|
["ic-hero-small"]: size === "small",
|
|
82
86
|
["secondary-heading"]: !!secondaryHeading,
|
|
83
87
|
[`ic-hero-content-aligned-${contentAligned}`]: contentAligned !== undefined,
|
|
84
|
-
|
|
88
|
+
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
89
|
+
}, style: style }, h("ic-section-container", { key: '92c885c6bb0532ed6d5adbea3927ff56c88ccf00', aligned: aligned, fullHeight: true, class: "section-container" }, h("div", { key: '808e287fe214793b21c2da1d4db8410a0fecdcb9', class: {
|
|
85
90
|
["left-container"]: true,
|
|
86
91
|
["left-container-full-width"]: this.leftContentFullWidth,
|
|
87
|
-
} }, h("div", { key: '
|
|
92
|
+
} }, h("div", { key: '09267f66de926f237092d55372f34ee75b3b1bb5', class: "heading" }, h("slot", { key: 'b30e4be509093aa6f7b2dbe906eb63c8ed1f70da', name: "heading" }, h("ic-typography", { key: 'a59edf905e413ecd324b09807acb4efc7730b1ef', variant: size === "small" ? "h2" : "h1", class: {
|
|
88
93
|
["heading-bottom-spacing"]: size !== "small",
|
|
89
|
-
} }, h("h2", { key: '
|
|
94
|
+
} }, h("h2", { key: 'f3d705dcea394926d050c5e9a518aa6d23e61c74' }, heading)))), h("div", { key: 'e67892b909d8d59b9714c9c39b07f5fbaa47cd5f', class: "subheading" }, h("slot", { key: '94601527aad82e6da4a1723f435b26221f562d3c', name: "subheading" }, h("ic-typography", { key: 'd10d05ad2ecbc02f3cc9612c5e5cd8507c95e7ba', variant: "body" }, subheading))), h("div", { key: '12ea9178058e547b57fd1ca454a00a9bdf542f41', class: "interaction-container" }, h("slot", { key: '8b3e37943fb688843dfcc6f28f7aab2d42c66454', name: "interaction" }))), (isPropDefined(secondaryHeading) || this.rightContent) && (h("div", { key: '2783784a47d8a7667959b6bc0a102e0536050cab', class: "right-container" }, h("slot", { key: 'ad168f0963f7950cf70b8a77abd4390a0585ddff', name: "secondary" }, secondaryHeading && (h("div", { key: 'faa3a3a6f23962c99eab8d1e81e2fa5d96b8f6c2', class: "secondary-container" }, h("div", { key: '147945f65e18d6d3ade2342057e1cdaf68faca50', class: "secondary-heading" }, h("ic-typography", { key: '78a22d379cb17ec183b4f320f652696cf46155b4', variant: "h4" }, h("h3", { key: '87619d7363588a0887f4c704011d824d51f3caa2' }, secondaryHeading))), h("div", { key: '0cc920336ef6d241361f095317391c296ce81e81', class: "secondary-subheading" }, h("ic-typography", { key: '19db9e9c8c392b26e698427048de8ad1bf2b7a5a', variant: "subtitle-small" }, secondarySubheading))))))))));
|
|
90
95
|
}
|
|
91
96
|
static get is() { return "ic-hero"; }
|
|
92
97
|
static get encapsulation() { return "shadow"; }
|
|
@@ -294,6 +299,32 @@ export class Hero {
|
|
|
294
299
|
"setter": false,
|
|
295
300
|
"attribute": "subheading",
|
|
296
301
|
"reflect": false
|
|
302
|
+
},
|
|
303
|
+
"theme": {
|
|
304
|
+
"type": "string",
|
|
305
|
+
"mutable": false,
|
|
306
|
+
"complexType": {
|
|
307
|
+
"original": "IcThemeMode",
|
|
308
|
+
"resolved": "\"dark\" | \"inherit\" | \"light\"",
|
|
309
|
+
"references": {
|
|
310
|
+
"IcThemeMode": {
|
|
311
|
+
"location": "import",
|
|
312
|
+
"path": "../../utils/types",
|
|
313
|
+
"id": "src/utils/types.ts::IcThemeMode"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"required": false,
|
|
318
|
+
"optional": false,
|
|
319
|
+
"docs": {
|
|
320
|
+
"tags": [],
|
|
321
|
+
"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."
|
|
322
|
+
},
|
|
323
|
+
"getter": false,
|
|
324
|
+
"setter": false,
|
|
325
|
+
"attribute": "theme",
|
|
326
|
+
"reflect": false,
|
|
327
|
+
"defaultValue": "\"inherit\""
|
|
297
328
|
}
|
|
298
329
|
};
|
|
299
330
|
}
|