@ukic/web-components 3.14.0 → 3.15.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-row.cjs.entry.js +2 -2
- 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 +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 +8 -8
- package/dist/cjs/ic-input-label_2.cjs.entry.js +5 -5
- 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 +4 -4
- 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 +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 +4 -4
- 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-checkbox/ic-checkbox.css +9 -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 +52 -0
- package/dist/collection/components/ic-data-list/ic-data-list.js +2 -2
- package/dist/collection/components/ic-data-row/ic-data-row.js +2 -2
- package/dist/collection/components/ic-dialog/ic-dialog.js +1 -1
- package/dist/collection/components/ic-empty-state/ic-empty-state.js +2 -2
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
- package/dist/collection/components/ic-hero/ic-hero.css +21 -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.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 +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-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 +4 -4
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.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.css +1 -1
- package/dist/collection/components/ic-select/ic-select.js +6 -6
- 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-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 +14 -0
- package/dist/collection/components/ic-theme/ic-theme.js +1 -1
- package/dist/collection/components/ic-toast/ic-toast.js +4 -4
- 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/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-data-list.js +2 -2
- package/dist/components/ic-data-row.js +2 -2
- package/dist/components/ic-dialog.js +1 -1
- package/dist/components/ic-empty-state.js +2 -2
- package/dist/components/ic-footer-link.js +2 -2
- package/dist/components/ic-hero.js +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 +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 +3 -3
- 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 +3 -3
- package/dist/components/ic-navigation-group.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 +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 +7 -7
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-side-navigation.js +4 -4
- package/dist/components/ic-skeleton.js +2 -2
- 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 +13 -13
- 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 +4 -4
- 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-d20a61a7.entry.js → p-06c950a3.entry.js} +2 -2
- package/dist/core/{p-6e61c48a.entry.js → p-0c4ceed9.entry.js} +2 -2
- package/dist/core/{p-6f60262e.entry.js → p-11d8a504.entry.js} +3 -3
- 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-d1cce122.entry.js → p-33e35173.entry.js} +2 -2
- 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-4a358f09.entry.js → p-3680f22c.entry.js} +2 -2
- 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-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-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-fb43abd6.entry.js → p-9ca147f3.entry.js} +2 -2
- package/dist/core/{p-8c7d6a85.entry.js → p-a5415f6c.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-053ed367.entry.js → p-b3cb1e35.entry.js} +2 -2
- package/dist/core/{p-f098e531.entry.js → p-b4a2f6fa.entry.js} +2 -2
- 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-bba25812.entry.js → p-e7af1e2d.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-row.entry.js +2 -2
- 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 +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 +8 -8
- package/dist/esm/ic-input-label_2.entry.js +5 -5
- 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 +4 -4
- 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 +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 +4 -4
- 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-hero/ic-hero.d.ts +5 -1
- package/dist/types/components.d.ts +8 -0
- package/hydrate/index.js +180 -150
- package/hydrate/index.mjs +180 -150
- package/package.json +2 -2
- package/vscode-data.json +15 -0
- 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-7970cbed.entry.js +0 -2
- package/dist/core/p-7970cbed.entry.js.map +0 -1
- package/dist/core/p-b29e325f.entry.js +0 -2
- package/dist/core/p-eb1823b3.entry.js.map +0 -1
- /package/dist/core/{p-889bb8db.entry.js.map → p-04cb17d7.entry.js.map} +0 -0
- /package/dist/core/{p-d20a61a7.entry.js.map → p-06c950a3.entry.js.map} +0 -0
- /package/dist/core/{p-6e61c48a.entry.js.map → p-0c4ceed9.entry.js.map} +0 -0
- /package/dist/core/{p-6f60262e.entry.js.map → p-11d8a504.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-d1cce122.entry.js.map → p-33e35173.entry.js.map} +0 -0
- /package/dist/core/{p-4a358f09.entry.js.map → p-3680f22c.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-8c7d6a85.entry.js.map → p-a5415f6c.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-053ed367.entry.js.map → p-b3cb1e35.entry.js.map} +0 -0
- /package/dist/core/{p-f098e531.entry.js.map → p-b4a2f6fa.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-bba25812.entry.js.map → p-e7af1e2d.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
|
@@ -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
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ic-hero.js","sourceRoot":"","sources":["../../../src/components/ic-hero/ic-hero.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,CAAC,EACD,KAAK,EACL,MAAM,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAKL,qBAAqB,GACtB,MAAM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C/B,sEAAe,OAAO,EAAC,gBAAgB,IACpC,mBAAmB,CACN,CACZ,CACF,CACP,CACI,CACH,CACP,CACoB,CAClB,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Element,\n Host,\n Prop,\n h,\n State,\n Listen,\n} from \"@stencil/core\";\nimport {\n IcAlignment,\n IcSizesNoLarge,\n IcBrand,\n IcBrandForeground,\n IcBrandForegroundEnum,\n} from \"../../utils/types\";\nimport {\n slotHasContent,\n getBrandForegroundAppearance,\n onComponentRequiredPropUndefined,\n isPropDefined,\n isSlotUsed,\n renderDynamicChildSlots,\n} from \"../../utils/helpers\";\nimport { IcHeroContentAlignments } from \"./ic-hero.types\";\n\n/**\n * @slot heading - Content will be rendered in the title area, in place of the heading.\n * @slot subheading - Content will be rendered in the title area, in place of the subheading.\n * @slot interaction - Content will be rendered in the interaction area, adjacent to the title area.\n * @slot secondary - Content will be rendered in the secondary content area.\n */\n\n@Component({\n tag: \"ic-hero\",\n styleUrl: \"ic-hero.css\",\n shadow: true,\n})\nexport class Hero {\n private hostMutationObserver: MutationObserver | null = null;\n\n @Element() el: HTMLIcHeroElement;\n\n @State() foregroundColor: IcBrandForeground = getBrandForegroundAppearance();\n @State() rightContent: boolean = false;\n // set by above state\n @State() leftContentFullWidth: boolean =\n !this.rightContent && this.secondaryHeading === undefined;\n @State() scrollFactor: string = \"right -100px\";\n\n /**\n * The alignment of the hero.\n */\n @Prop() aligned?: IcAlignment = \"left\";\n\n /**\n * The optional background image.\n */\n @Prop() backgroundImage?: string;\n\n /**\n * The alignment of the hero content.\n */\n @Prop() contentAligned?: IcHeroContentAlignments = \"left\";\n\n /**\n * If `true`, the background image (if set) will not scroll using a parallax effect.\n */\n @Prop() disableBackgroundParallax?: boolean = false;\n\n /**\n * The heading of the hero. An <h2> level heading.\n */\n @Prop() heading?: string;\n\n /**\n * The optional secondary heading, an <h3> level heading. Replaced by slotted right content.\n */\n @Prop() secondaryHeading?: string;\n\n /**\n * The optional secondary subheading, replaced by slotted right content.\n */\n @Prop() secondarySubheading?: string;\n\n /**\n * The size of the hero component.\n */\n @Prop() size?: IcSizesNoLarge = \"medium\";\n\n /**\n * The description for the hero.\n */\n @Prop() subheading?: string;\n\n disconnectedCallback(): void {\n this.hostMutationObserver?.disconnect();\n }\n\n componentWillLoad(): void {\n this.rightContent = slotHasContent(this.el, \"secondary\");\n }\n\n componentDidLoad(): void {\n !isSlotUsed(this.el, \"heading\") &&\n onComponentRequiredPropUndefined(\n [{ prop: this.heading, propName: \"heading\" }],\n \"Hero\"\n );\n\n this.hostMutationObserver = new MutationObserver((mutationList) =>\n renderDynamicChildSlots(mutationList, \"secondary\", this)\n );\n this.hostMutationObserver.observe(this.el, {\n childList: true,\n });\n }\n\n componentWillRender(): void {\n this.rightContent = slotHasContent(this.el, \"secondary\");\n }\n\n @Listen(\"brandChange\", { target: \"document\" })\n brandChangeHandler(ev: CustomEvent<IcBrand>): void {\n this.foregroundColor = ev.detail.mode;\n }\n\n @Listen(\"scroll\", { target: \"document\" })\n doScroll(): void {\n if (this.disableBackgroundParallax) {\n return;\n }\n\n const scrolltotop = document.scrollingElement?.scrollTop;\n if (scrolltotop) {\n const factor = 0.4;\n const y = -100 + scrolltotop * factor;\n this.scrollFactor = \"right \" + y + \"px\";\n }\n }\n\n render() {\n const {\n aligned,\n size,\n heading,\n subheading,\n secondaryHeading,\n secondarySubheading,\n foregroundColor,\n backgroundImage,\n scrollFactor,\n contentAligned,\n } = this;\n\n let style = {};\n\n if (isPropDefined(backgroundImage)) {\n style = {\n \"background-image\": \"url(\" + backgroundImage + \")\",\n \"background-position\": scrollFactor,\n };\n }\n\n return (\n <Host\n class={{\n [`ic-hero-${IcBrandForegroundEnum.Dark}`]:\n foregroundColor === IcBrandForegroundEnum.Dark,\n [\"has-background-image\"]: backgroundImage !== undefined,\n [\"has-right-content\"]: this.rightContent,\n [\"ic-hero-small\"]: size === \"small\",\n [\"secondary-heading\"]: !!secondaryHeading,\n [`ic-hero-content-aligned-${contentAligned}`]:\n contentAligned !== undefined,\n }}\n style={style}\n >\n <ic-section-container\n aligned={aligned}\n fullHeight\n class=\"section-container\"\n >\n <div\n class={{\n [\"left-container\"]: true,\n [\"left-container-full-width\"]: this.leftContentFullWidth,\n }}\n >\n <div class=\"heading\">\n <slot name=\"heading\">\n <ic-typography\n variant={size === \"small\" ? \"h2\" : \"h1\"}\n class={{\n [\"heading-bottom-spacing\"]: size !== \"small\",\n }}\n >\n <h2>{heading}</h2>\n </ic-typography>\n </slot>\n </div>\n <div class=\"subheading\">\n <slot name=\"subheading\">\n <ic-typography variant=\"body\">{subheading}</ic-typography>\n </slot>\n </div>\n <div class=\"interaction-container\">\n <slot name=\"interaction\"></slot>\n </div>\n </div>\n {(isPropDefined(secondaryHeading) || this.rightContent) && (\n <div class=\"right-container\">\n <slot name=\"secondary\">\n {secondaryHeading && (\n <div class=\"secondary-container\">\n <div class=\"secondary-heading\">\n <ic-typography variant=\"h4\">\n <h3>{secondaryHeading}</h3>\n </ic-typography>\n </div>\n <div class=\"secondary-subheading\">\n <ic-typography variant=\"subtitle-small\">\n {secondarySubheading}\n </ic-typography>\n </div>\n </div>\n )}\n </slot>\n </div>\n )}\n </ic-section-container>\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ic-hero.js","sourceRoot":"","sources":["../../../src/components/ic-hero/ic-hero.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,CAAC,EACD,KAAK,EACL,MAAM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ACnB,4DAAK,KAAK,EAAC,qBAAqB;wBAC9B,4DAAK,KAAK,EAAC,mBAAmB;4BAC5B,sEAAe,OAAO,EAAC,IAAI;gCACzB,6DAAK,gBAAgB,CAAM,CACb,CACZ;wBACN,4DAAK,KAAK,EAAC,sBAAsB;4BAC/B,sEAAe,OAAO,EAAC,gBAAgB,IACpC,mBAAmB,CACN,CACZ,CACF,CACP,CACI,CACH,CACP,CACoB,CAClB,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Element,\n Host,\n Prop,\n h,\n State,\n Listen,\n} from \"@stencil/core\";\nimport {\n IcAlignment,\n IcSizesNoLarge,\n IcBrand,\n IcBrandForeground,\n IcBrandForegroundEnum,\n IcThemeMode,\n} from \"../../utils/types\";\nimport {\n slotHasContent,\n getBrandForegroundAppearance,\n onComponentRequiredPropUndefined,\n isPropDefined,\n isSlotUsed,\n renderDynamicChildSlots,\n} from \"../../utils/helpers\";\nimport { IcHeroContentAlignments } from \"./ic-hero.types\";\n\n/**\n * @slot heading - Content will be rendered in the title area, in place of the heading.\n * @slot subheading - Content will be rendered in the title area, in place of the subheading.\n * @slot interaction - Content will be rendered in the interaction area, adjacent to the title area.\n * @slot secondary - Content will be rendered in the secondary content area.\n */\n\n@Component({\n tag: \"ic-hero\",\n styleUrl: \"ic-hero.css\",\n shadow: true,\n})\nexport class Hero {\n private hostMutationObserver: MutationObserver | null = null;\n\n @Element() el: HTMLIcHeroElement;\n\n @State() foregroundColor: IcBrandForeground = getBrandForegroundAppearance();\n @State() rightContent: boolean = false;\n // set by above state\n @State() leftContentFullWidth: boolean =\n !this.rightContent && this.secondaryHeading === undefined;\n @State() scrollFactor: string = \"right -100px\";\n\n /**\n * The alignment of the hero.\n */\n @Prop() aligned?: IcAlignment = \"left\";\n\n /**\n * The optional background image.\n */\n @Prop() backgroundImage?: string;\n\n /**\n * The alignment of the hero content.\n */\n @Prop() contentAligned?: IcHeroContentAlignments = \"left\";\n\n /**\n * If `true`, the background image (if set) will not scroll using a parallax effect.\n */\n @Prop() disableBackgroundParallax?: boolean = false;\n\n /**\n * The heading of the hero. An <h2> level heading.\n */\n @Prop() heading?: string;\n\n /**\n * The optional secondary heading, an <h3> level heading. Replaced by slotted right content.\n */\n @Prop() secondaryHeading?: string;\n\n /**\n * The optional secondary subheading, replaced by slotted right content.\n */\n @Prop() secondarySubheading?: string;\n\n /**\n * The size of the hero component.\n */\n @Prop() size?: IcSizesNoLarge = \"medium\";\n\n /**\n * The description for the hero.\n */\n @Prop() subheading?: string;\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 disconnectedCallback(): void {\n this.hostMutationObserver?.disconnect();\n }\n\n componentWillLoad(): void {\n this.rightContent = slotHasContent(this.el, \"secondary\");\n }\n\n componentDidLoad(): void {\n !isSlotUsed(this.el, \"heading\") &&\n onComponentRequiredPropUndefined(\n [{ prop: this.heading, propName: \"heading\" }],\n \"Hero\"\n );\n\n this.hostMutationObserver = new MutationObserver((mutationList) =>\n renderDynamicChildSlots(mutationList, \"secondary\", this)\n );\n this.hostMutationObserver.observe(this.el, {\n childList: true,\n });\n }\n\n componentWillRender(): void {\n this.rightContent = slotHasContent(this.el, \"secondary\");\n }\n\n @Listen(\"brandChange\", { target: \"document\" })\n brandChangeHandler(ev: CustomEvent<IcBrand>): void {\n this.foregroundColor = ev.detail.mode;\n }\n\n @Listen(\"scroll\", { target: \"document\" })\n doScroll(): void {\n if (this.disableBackgroundParallax) {\n return;\n }\n\n const scrolltotop = document.scrollingElement?.scrollTop;\n if (scrolltotop) {\n const factor = 0.4;\n const y = -100 + scrolltotop * factor;\n this.scrollFactor = \"right \" + y + \"px\";\n }\n }\n\n render() {\n const {\n aligned,\n size,\n heading,\n subheading,\n secondaryHeading,\n secondarySubheading,\n foregroundColor,\n backgroundImage,\n scrollFactor,\n contentAligned,\n theme,\n } = this;\n\n let style = {};\n\n if (isPropDefined(backgroundImage)) {\n style = {\n \"background-image\": \"url(\" + backgroundImage + \")\",\n \"background-position\": scrollFactor,\n };\n }\n\n return (\n <Host\n class={{\n [`ic-hero-${IcBrandForegroundEnum.Dark}`]:\n foregroundColor === IcBrandForegroundEnum.Dark,\n [\"has-background-image\"]: backgroundImage !== undefined,\n [\"has-right-content\"]: this.rightContent,\n [\"ic-hero-small\"]: size === \"small\",\n [\"secondary-heading\"]: !!secondaryHeading,\n [`ic-hero-content-aligned-${contentAligned}`]:\n contentAligned !== undefined,\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n }}\n style={style}\n >\n <ic-section-container\n aligned={aligned}\n fullHeight\n class=\"section-container\"\n >\n <div\n class={{\n [\"left-container\"]: true,\n [\"left-container-full-width\"]: this.leftContentFullWidth,\n }}\n >\n <div class=\"heading\">\n <slot name=\"heading\">\n <ic-typography\n variant={size === \"small\" ? \"h2\" : \"h1\"}\n class={{\n [\"heading-bottom-spacing\"]: size !== \"small\",\n }}\n >\n <h2>{heading}</h2>\n </ic-typography>\n </slot>\n </div>\n <div class=\"subheading\">\n <slot name=\"subheading\">\n <ic-typography variant=\"body\">{subheading}</ic-typography>\n </slot>\n </div>\n <div class=\"interaction-container\">\n <slot name=\"interaction\"></slot>\n </div>\n </div>\n {(isPropDefined(secondaryHeading) || this.rightContent) && (\n <div class=\"right-container\">\n <slot name=\"secondary\">\n {secondaryHeading && (\n <div class=\"secondary-container\">\n <div class=\"secondary-heading\">\n <ic-typography variant=\"h4\">\n <h3>{secondaryHeading}</h3>\n </ic-typography>\n </div>\n <div class=\"secondary-subheading\">\n <ic-typography variant=\"subtitle-small\">\n {secondarySubheading}\n </ic-typography>\n </div>\n </div>\n )}\n </slot>\n </div>\n )}\n </ic-section-container>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -19,6 +19,7 @@ const defaultArgs = {
|
|
|
19
19
|
subheading:
|
|
20
20
|
"Hero description. This is a Hero component, it should be used as a page heading.",
|
|
21
21
|
showSecondary: false,
|
|
22
|
+
theme: "inherit",
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
export const Playground = {
|
|
@@ -32,6 +33,7 @@ export const Playground = {
|
|
|
32
33
|
secondary-subheading=${args.secondarySubheading}
|
|
33
34
|
size=${args.size}
|
|
34
35
|
subheading=${args.subheading}
|
|
36
|
+
theme=${args.theme}
|
|
35
37
|
>
|
|
36
38
|
<ic-button variant="primary" slot="interaction"> Button </ic-button>
|
|
37
39
|
<ic-button variant="secondary" slot="interaction"> Button </ic-button>
|
|
@@ -43,6 +45,12 @@ export const Playground = {
|
|
|
43
45
|
slot="secondary"
|
|
44
46
|
/>
|
|
45
47
|
`}
|
|
48
|
+
<ic-text-field
|
|
49
|
+
slot="interaction"
|
|
50
|
+
label="Input"
|
|
51
|
+
helper-text="This is an input"
|
|
52
|
+
placeholder="Please enter…"
|
|
53
|
+
/>
|
|
46
54
|
</ic-hero>`,
|
|
47
55
|
|
|
48
56
|
args: defaultArgs,
|
|
@@ -76,6 +84,13 @@ export const Playground = {
|
|
|
76
84
|
type: "select",
|
|
77
85
|
},
|
|
78
86
|
},
|
|
87
|
+
theme: {
|
|
88
|
+
options: ["inherit", "light", "dark"],
|
|
89
|
+
|
|
90
|
+
control: {
|
|
91
|
+
type: "inline-radio",
|
|
92
|
+
},
|
|
93
|
+
},
|
|
79
94
|
},
|
|
80
95
|
};
|
|
81
96
|
|
|
@@ -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: '5c313665e71e0abc91a19f204ccf08d7b017f46b', 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: '7a65d56af26a6bfe660c3e923beaf7b512f77de8', "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: '0203d6acdde7444d03038b3ec86f3e318615030d', 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: 'dffb5fee1c17005205216d0901141317e2dc4aa6', class: "scroll-splitter-left" })), h("slot", { key: 'f637c15f3020e1572a61179c2132dece11d0699a' }), h("div", { key: 'c563d5ca6d07a66f2111bea5aebe7d36ae481770', "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: 'd8afe9aaf2304d13909815aeb8e60ac4f8952f7f', class: "scroll-splitter-right" }), h("ic-button", { key: '4f3be747e736a50705793742b0a1e9fab44d56db', 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: 'c33ebfd9dd18101fb9161259538e8e0046f77a3d', 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: 'a70f27a3235ac0edb9d9c5a18983ae3c02de2a48', class: "focus-indicator" }, slotHasContent(this.el, "left-icon") && (h("div", { key: 'aa0b233280382bd0e95a8ff932bf60a63603b7bf', class: "icon-container" }, h("slot", { key: 'ceb8ec9b420073ac2ecd5d6793ad4342ab9ebbdd', name: "left-icon" }))), h("slot", { key: '1850c6ed04510e678600c653a36e2114f982e561' }), validationInline &&
|
|
59
|
+
validationStatus === IcInformationStatus.Success && (h("span", { key: '58d228c595577c1cc9a0fe2b10538cc3efff53ab', 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: '32ae22db5e182cc2c092c8f48e61d42a318284a0' }, h("div", { key: 'bae9ef74f7f92004ec99c387a213822315c505ba', class: {
|
|
15
15
|
["component-container"]: true,
|
|
16
16
|
["disabled"]: !!this.disabled,
|
|
17
17
|
["readonly"]: !!this.readonly,
|
|
18
|
-
} }, h("slot", { key: '
|
|
18
|
+
} }, h("slot", { key: 'acca571eaa0d8f19b0e3379d2592409aacf9dd95' }))));
|
|
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: 'da58fe3cac026661d1c624c69c56c6e64ff3c07a', 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: 'bb221e5f51681a0caa721c66f03fd475e4e08749', 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))))));
|
|
@@ -43,14 +43,14 @@ export class InputValidation {
|
|
|
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: '0513b4d21426f48a3751fbb4f16786d8cdde6f30', 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: '3e6de247d788f9836f338e109d7be5914fa2f320', 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: '5ee4e673c1f2934d74eafbc08241cdfae1aa5f9f', variant: "caption", class: "statustext" }, h("span", { key: '850149ffb8c4cdab21ab0c05a8787747e399ca41', id: this.for && getInputValidationTextID(this.for) }, message), h("span", { key: 'a26f5aa58e81cf3e9d982d86b75b3ab7e14897ad', ref: (el) => (this.messageEl = el), class: "sr-only", "aria-live": ariaLiveMode })), h("slot", { key: '4dba13235c6ec27d634b0dd38523963798676b36', name: "validation-message-adornment" })));
|
|
54
54
|
}
|
|
55
55
|
static get is() { return "ic-input-validation"; }
|
|
56
56
|
static get originalStyleUrls() {
|
|
@@ -124,10 +124,10 @@ export class LayoutGrid {
|
|
|
124
124
|
}
|
|
125
125
|
render() {
|
|
126
126
|
const { aligned, fullHeight } = this;
|
|
127
|
-
return (h(Host, { key: '
|
|
127
|
+
return (h(Host, { key: 'fa862e7110426cb032982c8743b7ad3024f06f9a', class: {
|
|
128
128
|
[`ic-layout-grid-aligned-${aligned}`]: true,
|
|
129
129
|
["ic-layout-grid-no-vertical-padding"]: !!fullHeight,
|
|
130
|
-
} }, h("slot", { key: '
|
|
130
|
+
} }, h("slot", { key: '716c4137c338797b4ce17c9dd946f8902064606f' })));
|
|
131
131
|
}
|
|
132
132
|
static get is() { return "ic-layout-grid"; }
|
|
133
133
|
static get encapsulation() { return "shadow"; }
|
|
@@ -42,9 +42,9 @@ export class LayoutGridItem {
|
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
44
|
const { hideInMobileMode } = this;
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '9e96a528f70c414a5728a7fd0773d0adb4063020', class: {
|
|
46
46
|
"ic-layout-grid-hide-in-mobile": !!hideInMobileMode,
|
|
47
|
-
} }, h("slot", { key: '
|
|
47
|
+
} }, h("slot", { key: '43b2b4891f8b1241fad2fb707016cd927632bdfd' })));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "ic-layout-grid-item"; }
|
|
50
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -91,7 +91,7 @@ export class Link {
|
|
|
91
91
|
}
|
|
92
92
|
render() {
|
|
93
93
|
const { download, href, hreflang, referrerpolicy, rel, target, monochrome, theme, } = this;
|
|
94
|
-
return (h(Host, { key: '
|
|
94
|
+
return (h(Host, { key: '1d3ba1effcfab3255ea567c475e2252bd17de507', class: {
|
|
95
95
|
["ic-link"]: true,
|
|
96
96
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
97
97
|
["ic-link-monochrome"]: !!monochrome,
|
|
@@ -179,24 +179,24 @@ export class LoadingIndicator {
|
|
|
179
179
|
}
|
|
180
180
|
render() {
|
|
181
181
|
const { circularDiameter, circularDimensions: { x, y, r, dashArray, dashOffset }, description, fullWidth, indicatorLabel, innerLabel, label, max, min, monochrome, progress, size, theme, type, } = this;
|
|
182
|
-
return (h(Host, { key: '
|
|
182
|
+
return (h(Host, { key: '8f3a698fc177a9ff0c42efa2cb0d6fde7d09f2cb', class: {
|
|
183
183
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
184
184
|
"ic-loading-indicator-full-width": fullWidth,
|
|
185
185
|
"ic-loading-indicator-label": !!label,
|
|
186
186
|
"ic-loading-indicator-monochrome": monochrome,
|
|
187
187
|
[`ic-loading-indicator-size-${size}`]: true,
|
|
188
|
-
} }, h("div", { key: '
|
|
188
|
+
} }, h("div", { key: '947ed45a2a33bb3efc98be184d144c7022a99341', class: "ic-loading-container", part: "ic-loading-container" }, h("div", { key: '07cfd1daad6714aa3f0a9aa6639c62f07cd51319', ref: (el) => (this.outerElement = el), class: {
|
|
189
189
|
[`ic-loading-${type}-outer`]: true,
|
|
190
190
|
[progress === undefined ? "indeterminate" : "determinate"]: true,
|
|
191
|
-
}, role: "progressbar", "aria-labelledby": label && size !== "icon" && "ic-loading-label", "aria-label": description, "aria-valuenow": progress, "aria-valuemin": min, "aria-valuemax": max }, h("div", { key: '
|
|
191
|
+
}, role: "progressbar", "aria-labelledby": label && size !== "icon" && "ic-loading-label", "aria-label": description, "aria-valuenow": progress, "aria-valuemin": min, "aria-valuemax": max }, h("div", { key: '784dc31419e98ce922fc71941f22a063c26ab249', ref: (el) => (this.innerElement = el), class: {
|
|
192
192
|
[`ic-loading-${type}-inner`]: true,
|
|
193
193
|
"inner-label": !!innerLabel,
|
|
194
|
-
} }, innerLabel && size === "small" && (h("ic-typography", { key: '
|
|
194
|
+
} }, innerLabel && size === "small" && (h("ic-typography", { key: '8f55830d3c41595cecfdfdb3630af8ad2b93fc1e', variant: "subtitle-small", class: "inner-text" }, innerLabel)), type === "circular" && (h("svg", { key: '5505faa38e257e69a988217685c9a466f622489b', class: "ic-loading-circular-svg", viewBox: `0 0 ${circularDiameter} ${circularDiameter}` }, h("circle", { key: 'c2f46bcb23d2af900f8b6dbfabb317172b3fdb22', cx: x, cy: y, r: r }), h("circle", { key: 'f0d9f105bda3e40c78cba1a3a2986b31ccc0327a', style: {
|
|
195
195
|
"--circular-steps-max": progress ? `${max}` : undefined,
|
|
196
196
|
"--progress-value": progress !== undefined ? `${progress}` : undefined,
|
|
197
197
|
"--stroke-dasharray": dashArray,
|
|
198
198
|
"--stroke-dashoffset": dashOffset,
|
|
199
|
-
}, cx: x, cy: y, r: r }))))), label && size !== "icon" && (h("ic-typography", { key: '
|
|
199
|
+
}, cx: x, cy: y, r: r }))))), label && size !== "icon" && (h("ic-typography", { key: '15d34b2712a2961d2e1b8a63ab6f65a82fa68d67', id: "ic-loading-label", class: "ic-loading-label", role: "alert", variant: this.getLabelVariant() }, h("p", { key: '25130595c4008fdd8acd8c47a6729d3aef5cf70c' }, indicatorLabel))))));
|
|
200
200
|
}
|
|
201
201
|
static get is() { return "ic-loading-indicator"; }
|
|
202
202
|
static get encapsulation() { return "shadow"; }
|
|
@@ -916,7 +916,7 @@ export class Menu {
|
|
|
916
916
|
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, multiSelect, } = this;
|
|
917
917
|
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === this.ungroupedOptions.length ? "Clear" : "Select"} all`;
|
|
918
918
|
const hasNoResults = this.host.classList.contains("no-results");
|
|
919
|
-
return (h(Host, { key: '
|
|
919
|
+
return (h(Host, { key: '8dad972db607187821f9063a35f75768df5adcc1', class: {
|
|
920
920
|
"ic-menu-full-width": !!fullWidth,
|
|
921
921
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
|
922
922
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
|
@@ -925,7 +925,7 @@ export class Menu {
|
|
|
925
925
|
[`ic-menu-${size}`]: true,
|
|
926
926
|
"ic-menu-open": open && options.length !== 0,
|
|
927
927
|
"ic-menu-multiple": multiSelect,
|
|
928
|
-
} }, options.length !== 0 && (h("ul", { key: '
|
|
928
|
+
} }, options.length !== 0 && (h("ul", { key: 'bbdb630e801155ddb22240206eac4f919807ec2d', id: menuId, class: "menu", role: "listbox", "aria-label": `${inputLabel} pop-up`, "aria-multiselectable": multiSelect ? "true" : "false", tabindex: open &&
|
|
929
929
|
!keyboardNav &&
|
|
930
930
|
((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ||
|
|
931
931
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) === SEARCH_BAR_TAG)
|
|
@@ -953,7 +953,7 @@ export class Menu {
|
|
|
953
953
|
multiSelect &&
|
|
954
954
|
!isLoading &&
|
|
955
955
|
!hasTimedOut &&
|
|
956
|
-
!hasNoResults && (h("div", { key: '
|
|
956
|
+
!hasNoResults && (h("div", { key: '2806fdd383f3450d651e681a0156c47cd98689c5', class: "option-bar" }, h("ic-typography", { key: 'dd2e0b74622eb359e4e53cc5c7b0f031ef577ca2' }, h("p", { key: 'f6132822d0bf66e869b4c2bceba7dfcf93e697be' }, `${value ? value.length : 0}/${getOptionsWithoutGroupTitlesCount(this.options)} selected`)), h("ic-button", { key: 'e233f3ac017ce08d46d1973406a4bb99bcfa2cf6', class: "select-all-button", "aria-label": `${selectAllButtonText} options for ${inputLabel}`, ref: (el) => (this.selectAllButton = el), variant: "tertiary", onClick: this.handleSelectAllClick, onMouseDown: this.handleSelectAllMouseDown, onBlur: this.handleSelectAllBlur, onFocus: this.handleSelectAllFocus, size: size === "small" ? "small" : "medium" }, selectAllButtonText)))));
|
|
957
957
|
}
|
|
958
958
|
static get is() { return "ic-menu"; }
|
|
959
959
|
static get encapsulation() { return "scoped"; }
|
|
@@ -3,7 +3,7 @@ import { isPropDefined } from "../../utils/helpers";
|
|
|
3
3
|
export class MenuGroup {
|
|
4
4
|
render() {
|
|
5
5
|
const parentMenu = this.el.closest("ic-popover-menu");
|
|
6
|
-
return (h(Host, { key: '
|
|
6
|
+
return (h(Host, { key: '384be493b4b4148e4a09f0395bb1db6b651bfc2f', role: "group", "aria-label": this.label !== null ? this.label : "" }, isPropDefined(this.label) && (h("ic-typography", { key: '46982951ac8573a5ee8c5733043e109f268859f8', variant: "subtitle-small" }, this.label)), h("span", { key: 'd5a5fe976b9f88e61df589c1ddc105c31b8639e2', class: "menu-items-wrapper" }, h("slot", { key: '3b6cab53fde94c5a9cbc0a6a323c0aff28975a1c' })), this.el !== (parentMenu === null || parentMenu === void 0 ? void 0 : parentMenu.querySelector("ic-menu-group:last-child")) && (h("hr", { key: '60412dd9914569ad72a6160787b48d8b3239cebb' }))));
|
|
7
7
|
}
|
|
8
8
|
static get is() { return "ic-menu-group"; }
|
|
9
9
|
static get encapsulation() { return "shadow"; }
|
|
@@ -261,7 +261,7 @@ export class NavigationGroup {
|
|
|
261
261
|
const isTopNav = this.navigationType === "top";
|
|
262
262
|
const isTopNavDesktop = !inTopNavSideMenu && isTopNav;
|
|
263
263
|
const ariaExpanded = (isSideNav && expanded) || (isTopNav && dropdownOpen);
|
|
264
|
-
return (h(Host, { key: '
|
|
264
|
+
return (h(Host, { key: '4d9f64e96f0e60b2e120ef1ff3ead8fc9eeba8ff', class: {
|
|
265
265
|
"in-side-menu": inTopNavSideMenu,
|
|
266
266
|
"ic-navigation-group-expandable": expandable,
|
|
267
267
|
"ic-navigation-group-side-nav": isSideNav,
|
|
@@ -123,16 +123,16 @@ export class NavigationMenu {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
render() {
|
|
126
|
-
return (h(Host, { key: '
|
|
126
|
+
return (h(Host, { key: '3e06550714484b8a9d157e0391697e303fbf8259', class: { [`ic-theme-${this.theme}`]: this.theme !== "inherit" } }, h("div", { key: 'b56300f2817a5a42401570a56f5b29c90e37e336', class: "popout-modal", onClick: this.closeMenu }), h("div", { key: '081658f80afaa6d7f39971cc0f566068166b6688', class: "popout-menu", role: "dialog", "aria-modal": "true", "aria-label": `${this.hasNavigation ? "Navigation" : "App"} menu` }, h("span", { key: '67841c0d0cfb29fba7e3c722436c7e87bca1842d', "aria-hidden": "true", id: "navigation-landmark-text", class: "navigation-landmark-text" }, "Main navigation"), h("nav", { key: 'cb5aa473a04868d6af4dcd2ebc2b61ef5d785904', "aria-labelledby": "navigation-landmark-text", "aria-hidden": this.hasNavigation ? "false" : "true" }, h("div", { key: '2551b868b4c932b5fcff041bdae690e748d40430', class: {
|
|
127
127
|
["menu-close-button-container"]: true,
|
|
128
128
|
["nav-group-first"]: this.navGroupFirst,
|
|
129
|
-
} }, h("ic-button", { key: '
|
|
129
|
+
} }, h("ic-button", { key: '6f2a95a7824e18fa2f83a297984a7677110e887f', ref: (el) => (this.closeButton = el), id: "menu-close-button", class: "menu-close-button", variant: "icon-tertiary", size: "large", "aria-label": `Close ${this.hasNavigation ? "navigation" : "app"} menu`, onClick: this.closeMenu }, h("svg", { key: '2d4918dc6b797eb6f245dd531387cbb0370eb687', width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '51a063a29957f6992294ed31dae13570dc0ecd8c', d: "M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z" })))), this.hasNavigation && h("slot", { key: '70ef3173a42a47e1bb13042dc41c53313ee42697', name: "navigation" })), this.hasButtons && (h("div", { key: '95384803c8ab3a87492552b613cb53f95adacd52', class: {
|
|
130
130
|
["menu-buttons-container"]: true,
|
|
131
131
|
["menu-buttons-container-nav-item-above"]: this.navItemAboveButtons,
|
|
132
|
-
} }, h("slot", { key: '
|
|
132
|
+
} }, h("slot", { key: '9bdde63f875fe678742dff04018e562ec37eb500', name: "buttons" }))), (this.status !== "" || this.version !== "") && (h("div", { key: '502dd0df2ce93217d9a642e4a6b36dcd72229e70', class: {
|
|
133
133
|
["menu-status-version-container"]: true,
|
|
134
134
|
["status-version-no-buttons"]: !this.hasButtons,
|
|
135
|
-
} }, this.status !== "" && (h("div", { key: '
|
|
135
|
+
} }, this.status !== "" && (h("div", { key: 'a0b154b7307de42c92c9e26f9cd552dcc556b21d', class: "menu-status" }, h("ic-typography", { key: 'af91a5c0c556c8ac0faa29998e126de1ab86c0bc', variant: "label-uppercase", "aria-label": "app tag", class: "menu-status-text" }, this.status))), this.version !== "" && (h("div", { key: 'b16dec612bce0fe83c888b0a3e74d8f205710633', class: "menu-version" }, h("ic-typography", { key: '74d7e31b0126f240fa7bbc410a8b71268ca027a1', variant: "label", class: "menu-version-text", "aria-label": "app version" }, this.version))))))));
|
|
136
136
|
}
|
|
137
137
|
static get is() { return "ic-navigation-menu"; }
|
|
138
138
|
static get encapsulation() { return "shadow"; }
|
|
@@ -111,19 +111,19 @@ export class PageHeader {
|
|
|
111
111
|
const navAriaLabel = `${isSlotUsed(this.el, "heading")
|
|
112
112
|
? (_b = (_a = this.el.querySelector('[slot="heading"]')) === null || _a === void 0 ? void 0 : _a.textContent) !== null && _b !== void 0 ? _b : ""
|
|
113
113
|
: heading !== null && heading !== void 0 ? heading : ""} page sections`;
|
|
114
|
-
return (h(Host, { key: '
|
|
114
|
+
return (h(Host, { key: '17bc798fc01d1a70de9fed3da746d8e39a88e96c', class: {
|
|
115
115
|
["ic-page-header-sticky"]: !!sticky,
|
|
116
116
|
["ic-page-header-sticky-desktop"]: !sticky && !!stickyDesktopOnly,
|
|
117
117
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
118
|
-
}, "aria-label": this.el.ariaLabel || "page header" }, h("header", { key: '
|
|
118
|
+
}, "aria-label": this.el.ariaLabel || "page header" }, h("header", { key: '1dadcdce3f21efe0f196171330cb5774be34075e', class: {
|
|
119
119
|
["border-bottom"]: !!border,
|
|
120
120
|
["tabs"]: isSlotUsed(this.el, "tabs"),
|
|
121
|
-
}, role: "presentation" }, h("ic-section-container", { key: '
|
|
121
|
+
}, role: "presentation" }, h("ic-section-container", { key: '9f0855c0310d29f5381c12665aad41ee1656ccdb', aligned: aligned, fullHeight: isSlotUsed(this.el, "tabs") }, isSlotUsed(this.el, "breadcrumbs") && (h("div", { key: '3b1fe9729e1d62e72a432fd039db40c1c5da22da', class: "breadcrumb-area" }, h("slot", { key: 'e5055a9f7def4018e2046dae4687ae1945235bf7', name: "breadcrumbs" }))), h("div", { key: '70acf27823b39d41d9c2f3dbe3e89d71096e7daf', class: "main-content" }, h("div", { key: 'b924bba3df8954b9f314c1eff6ffe4443d0e53f1', class: "title-area" }, h("div", { key: '5a60bb74557d37b33be8312d177e75ce77210998', class: "header-content" }, h("slot", { key: 'e4c7c70b13eac0944bba1a1f2ddd320f3e1c2659', name: "heading" }, h("ic-typography", { key: 'eb98510ca2b55a81c1b91bbabc4bfe7d5e28bdde', variant: size === "small" ? "h4" : "h2", class: "heading" }, h("h2", { key: '9bc94aa414b9514f0e349faa521804682f22f85b' }, heading))), h("slot", { key: '47b147656f0fe7436d233bb669c4462faab353db', name: "heading-adornment" })), h("div", { key: '1456f12fba38ec4cd05706ccb92d72adf12ae623', class: {
|
|
122
122
|
["subheading-content"]: !!subheading || isSlotUsed(this.el, "subheading"),
|
|
123
123
|
["small"]: size === "small",
|
|
124
|
-
} }, h("slot", { key: '
|
|
125
|
-
isSlotUsed(this.el, "tabs")) && (h("div", { key: '
|
|
126
|
-
!isSlotUsed(this.el, "tabs") && h("slot", { key: '
|
|
124
|
+
} }, h("slot", { key: 'a82707ce4abf37e4e8a965a39a5cc6e50d634647', name: "subheading" }, h("ic-typography", { key: '9f77da962becb04b244f3df0dceb7dad9dc122d8', variant: "body" }, subheading)))), isSlotUsed(this.el, "actions") && (h("div", { key: '792df65e46b45a50514a1967866dd72f6f72e683', class: "action-area" }, h("slot", { key: '0cd5fd825254df4815fe2d3e788946de88cbaae1', name: "actions" }))), isSlotUsed(this.el, "input") && (h("div", { key: 'e030cb3067c544b3d3496146e25d511a30ca97b2', class: "input-area" }, h("slot", { key: '8c9f722a205eded36526a4bc926e7a92c43626af', name: "input" })))), (isSlotUsed(this.el, "stepper") ||
|
|
125
|
+
isSlotUsed(this.el, "tabs")) && (h("div", { key: 'deeb8c5520db91c494215d1adf90bebcc96fbbb5', class: "navigation-area" }, isSlotUsed(this.el, "stepper") &&
|
|
126
|
+
!isSlotUsed(this.el, "tabs") && h("slot", { key: 'd9201c158069b054c3903ea4c0647d96de9d0930', name: "stepper" }), isSlotUsed(this.el, "tabs") && (h("nav", { key: 'a0cdbb20f507dd783536b0a60ae7fa2d391be85f', "aria-label": navAriaLabel }, h("ic-horizontal-scroll", { key: 'f3c15e0d61db5990108d86c5540d4f69b9477a9e' }, h("ul", { key: '6e7aded64c14703b5b4f141fa11f0f9eac247bce', class: "tabs-slot" }, h("slot", { key: 'eee6cfc3a09856108574b715163cc645f9eae627', name: "tabs" })))))))))));
|
|
127
127
|
}
|
|
128
128
|
static get is() { return "ic-page-header"; }
|
|
129
129
|
static get encapsulation() { return "shadow"; }
|
|
@@ -239,14 +239,14 @@ export class Pagination {
|
|
|
239
239
|
}
|
|
240
240
|
render() {
|
|
241
241
|
const { type, currentPage, hideCurrentPage, disabled, hideFirstAndLastPageButton, label, theme, monochrome, } = this;
|
|
242
|
-
return (h(Host, { key: '
|
|
242
|
+
return (h(Host, { key: '9f9c0ceb1629ebff96c677d7b4ad9995bbe480cd', class: {
|
|
243
243
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
244
244
|
["ic-pagination-monochrome"]: !!monochrome,
|
|
245
|
-
} }, type === "simple" && (h("nav", { key: '
|
|
245
|
+
} }, type === "simple" && (h("nav", { key: '4d24ed30438c6755a1717454ee83e2a1b58d93c5', class: {
|
|
246
246
|
["disabled"]: !!disabled,
|
|
247
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), h("ic-pagination-item", { key: '
|
|
247
|
+
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), h("ic-pagination-item", { key: '784f99d1fa32d4f48c6de793707825333e45651a', theme: this.theme, monochrome: this.monochrome, type: "simple-current", page: currentPage, label: label, class: { ["hide-current-page"]: !!hideCurrentPage }, disabled: disabled }), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (h("nav", { key: 'ce6061fcee8e202cb895e2919525b64c6a1c1114', class: {
|
|
248
248
|
["disabled"]: !!disabled,
|
|
249
|
-
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (h("span", { key: '
|
|
249
|
+
}, role: "navigation", "aria-label": "Pagination Navigation" }, hideFirstAndLastPageButton ? null : this.firstButton(), this.previousButton(), this.renderStartItems(), this.startEllipsis && this.renderStartEllipsis(), this.renderMiddleItems(), this.endEllipsis && this.renderEndEllipsis(), this.renderEndItems(), this.nextButton(), hideFirstAndLastPageButton ? null : this.lastButton())), type === "complex" && (h("span", { key: '4980f1fd9ebd31a5b8835876479e12a8a0f5d54d', class: "sr-only", "aria-live": "polite" }, "Page ", this.currentPage))));
|
|
250
250
|
}
|
|
251
251
|
static get is() { return "ic-pagination"; }
|
|
252
252
|
static get encapsulation() { return "shadow"; }
|
|
@@ -38,7 +38,7 @@ export class PaginationItem {
|
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
40
|
const { page, selected, type, disabled, label, capitalizedLabel, monochrome, } = this;
|
|
41
|
-
return (h("a", { key: '
|
|
41
|
+
return (h("a", { key: 'c067a0e35e2a92dff8d7f24d135a06a686d74a7d', class: { ["monochrome"]: !!monochrome } }, type === "ellipsis" ? (h("div", { class: {
|
|
42
42
|
["item-container"]: true,
|
|
43
43
|
["ellipsis"]: true,
|
|
44
44
|
["disabled"]: !!disabled,
|
|
@@ -273,17 +273,17 @@ export class PopoverMenu {
|
|
|
273
273
|
this.popperProps = props;
|
|
274
274
|
}
|
|
275
275
|
render() {
|
|
276
|
-
return (h(Host, { key: '
|
|
276
|
+
return (h(Host, { key: '4d5467e45b173b365eba3fe507480bc87a0001f7', class: {
|
|
277
277
|
["ic-popover-menu-open"]: !!this.open,
|
|
278
278
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
|
279
|
-
} }, h("div", { key: '
|
|
279
|
+
} }, h("div", { key: '96ffeae7beede0b8a48e96dcbb262a5092974fd0', id: this.parentPopover === undefined
|
|
280
280
|
? `ic-popover-submenu-${this.submenuId}`
|
|
281
281
|
: "", class: {
|
|
282
282
|
menu: true,
|
|
283
|
-
} }, h("span", { key: '
|
|
283
|
+
} }, h("span", { key: '84b9c30b0377109233bb0135c68acd6419b1aa55', class: {
|
|
284
284
|
"opening-from-parent": this.openingFromParent,
|
|
285
285
|
"opening-from-child": this.openingFromChild,
|
|
286
|
-
} }, isPropDefined(this.submenuId) && (h("span", { key: '
|
|
286
|
+
} }, isPropDefined(this.submenuId) && (h("span", { key: 'cd6eaf24a7e6ea400614da471083aaa75f164b98' }, h("span", { key: 'b7be64cdfaf3a94fcd36f3ea0e5c6bf475418268', role: "menu" }, h("ic-menu-item", { key: '9868fd30a311aadfe9663ce8617c620940760549', class: "ic-popover-submenu-back-button", ref: (el) => (this.backButton = el), label: "Back", onClick: this.handleBackButtonClick, id: `ic-popover-submenu-back-button-${this.submenuLevel}` }, h("svg", { key: '5655f052a203d6b0d0c5c2182ec6339741691311', slot: "icon", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "submenu-back-icon" }, h("path", { key: 'b804bfa5d3cbfcf37322e19d5978875088e85d97', d: "M20 11H7.83L13.42 5.41L12 4L4 12L12 20L13.41 18.59L7.83 13H20V11Z", fill: "currentColor" })))), h("ic-typography", { key: '3cd5e496d8af145ebb77fe49f4637826dbf4c2ff', variant: "subtitle-small", class: "parent-label" }, this.parentLabel))), h("div", { key: '6249765618e71a536ed2ea67bc9ef31ba24cf7ff', class: "menu-body", "aria-label": this.getMenuAriaLabel(), role: "menu" }, h("slot", { key: 'c175948ff00694bad8419f4738bc82a469c2b53a' }))))));
|
|
287
287
|
}
|
|
288
288
|
static get is() { return "ic-popover-menu"; }
|
|
289
289
|
static get encapsulation() { return "shadow"; }
|
|
@@ -230,16 +230,16 @@ export class RadioGroup {
|
|
|
230
230
|
render() {
|
|
231
231
|
const { currentOrientation, disabled, handleKeyDown, helperText, hideLabel, label, required, size, validationAriaLive, validationStatus, validationText, theme, } = this;
|
|
232
232
|
const showValidation = hasValidationStatus(validationStatus, disabled);
|
|
233
|
-
return (h(Host, { key: '
|
|
233
|
+
return (h(Host, { key: '4ea2e0ca7614fb4ce6563ea146f86d72707a399a', onKeyDown: handleKeyDown, class: {
|
|
234
234
|
"ic-radio-group-small": size === "small",
|
|
235
235
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
236
|
-
} }, h("fieldset", { key: '
|
|
236
|
+
} }, h("fieldset", { key: 'ebad7a878454455a15892bf53c43bdcb914b77c4', role: "radiogroup", id: this.name, "aria-required": `${required}` }, !hideLabel && (h("legend", { key: 'aac1f37c7b1d4d5bc621bd3030dc9eef60417659' }, h("ic-input-label", { key: 'fd04e3f74c89b633996eb22e60902e988a8ac8ef', class: {
|
|
237
237
|
[`${validationStatus}`]: true,
|
|
238
238
|
["disabled"]: !!disabled,
|
|
239
|
-
}, label: label, helperText: helperText, required: required, disabled: disabled }, h("slot", { key: '
|
|
239
|
+
}, label: label, helperText: helperText, required: required, disabled: disabled }, h("slot", { key: '66325d58018dff189c975e3e4fc01249b51b6b9f', name: "helper-text", slot: "helper-text" })))), h("div", { key: '6d2d332396c87b798d5d160bdb5977c0a8ad6751', class: {
|
|
240
240
|
"radio-buttons-container": true,
|
|
241
241
|
horizontal: currentOrientation === this.RADIO_HORIZONTAL,
|
|
242
|
-
}, ref: (el) => (this.radioContainer = el) }, h("slot", { key: '
|
|
242
|
+
}, ref: (el) => (this.radioContainer = el) }, h("slot", { key: 'fb0a1b41503ba88ce9bda3c0bc8236ae0a7e3795' }))), h("ic-input-validation", { key: 'f9f7c2bdffd83d705149f74fe2caad93e57dd85b', class: {
|
|
243
243
|
"show-validation": showValidation,
|
|
244
244
|
}, ariaLiveMode: validationAriaLive, status: showValidation ? validationStatus : "", message: showValidation ? validationText : "" })));
|
|
245
245
|
}
|