@ukic/web-components 3.7.0 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-8217daf4.js → helpers-a0e78e2e.js} +31 -7
- package/dist/cjs/helpers-a0e78e2e.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +1 -1
- package/dist/cjs/ic-action-chip.cjs.entry.js +116 -0
- package/dist/cjs/ic-action-chip.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-alert.cjs.entry.js +2 -2
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +4 -4
- package/dist/cjs/ic-badge.cjs.entry.js +4 -4
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/ic-button_3.cjs.entry.js +56 -96
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +5 -5
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +13 -5
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-list.cjs.entry.js +3 -3
- package/dist/cjs/ic-data-list.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +4 -4
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +2 -2
- package/dist/cjs/ic-divider.cjs.entry.js +1 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +3 -3
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +3 -3
- package/dist/cjs/ic-footer.cjs.entry.js +4 -4
- package/dist/cjs/ic-hero.cjs.entry.js +5 -5
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +6 -6
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +9 -9
- package/dist/cjs/ic-input-label_2.cjs.entry.js +6 -6
- package/dist/cjs/ic-layout-grid-item.cjs.entry.js +70 -0
- package/dist/cjs/ic-layout-grid-item.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-layout-grid.cjs.entry.js +156 -0
- package/dist/cjs/ic-layout-grid.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-menu-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +3 -3
- package/dist/cjs/ic-navigation-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -5
- package/dist/cjs/ic-page-header.cjs.entry.js +7 -7
- package/dist/cjs/ic-pagination-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-pagination.cjs.entry.js +5 -5
- package/dist/cjs/ic-popover-menu.cjs.entry.js +10 -6
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +5 -5
- package/dist/cjs/ic-radio-option.cjs.entry.js +5 -5
- package/dist/cjs/ic-search-bar.cjs.entry.js +10 -10
- 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-side-navigation.cjs.entry.js +5 -5
- package/dist/cjs/ic-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/ic-skip-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
- package/dist/cjs/ic-step.cjs.entry.js +14 -14
- package/dist/cjs/ic-stepper.cjs.entry.js +3 -3
- package/dist/cjs/ic-switch.cjs.entry.js +5 -5
- package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab.cjs.entry.js +3 -3
- package/dist/cjs/ic-text-field.cjs.entry.js +7 -7
- package/dist/cjs/ic-theme.cjs.entry.js +2 -2
- package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +5 -5
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/ic-top-navigation.cjs.entry.js +5 -5
- package/dist/cjs/ic-typography.cjs.entry.js +3 -3
- package/dist/cjs/index-d337cd8a.js +12 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/ai-icon.svg +11 -0
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/ic-action-chip/ic-action-chip.css +644 -0
- package/dist/collection/components/ic-action-chip/ic-action-chip.js +564 -0
- package/dist/collection/components/ic-action-chip/ic-action-chip.js.map +1 -0
- package/dist/collection/components/ic-action-chip/ic-action-chip.stories.js +386 -0
- package/dist/collection/components/ic-alert/ic-alert.css +13 -0
- package/dist/collection/components/ic-alert/ic-alert.js +1 -1
- package/dist/collection/components/ic-alert/ic-alert.stories.js +7 -2
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +3 -3
- package/dist/collection/components/ic-badge/ic-badge.css +4 -0
- package/dist/collection/components/ic-badge/ic-badge.js +3 -3
- package/dist/collection/components/ic-badge/ic-badge.stories.js +98 -0
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +2 -2
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +2 -2
- package/dist/collection/components/ic-button/ic-button.css +3 -11
- package/dist/collection/components/ic-button/ic-button.js +33 -12
- package/dist/collection/components/ic-button/ic-button.js.map +1 -1
- package/dist/collection/components/ic-button/ic-button.stories.js +181 -2
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.js +4 -4
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +1 -0
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +4 -4
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +2 -2
- package/dist/collection/components/ic-chip/ic-chip.css +3 -3
- package/dist/collection/components/ic-chip/ic-chip.js +12 -4
- package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +2 -2
- package/dist/collection/components/ic-data-list/ic-data-list.css +5 -0
- package/dist/collection/components/ic-data-list/ic-data-list.js +2 -2
- package/dist/collection/components/ic-data-list/ic-data-list.stories.js +50 -0
- package/dist/collection/components/ic-data-row/ic-data-row.css +3 -1
- package/dist/collection/components/ic-data-row/ic-data-row.js +2 -2
- package/dist/collection/components/ic-dialog/ic-dialog.js +1 -1
- package/dist/collection/components/ic-dialog/ic-dialog.stories.js +31 -4
- package/dist/collection/components/ic-empty-state/ic-empty-state.js +2 -2
- package/dist/collection/components/ic-footer/ic-footer.js +3 -3
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +2 -2
- package/dist/collection/components/ic-hero/ic-hero.js +4 -4
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +5 -5
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +3 -3
- package/dist/collection/components/ic-input-container/ic-input-container.js +2 -2
- package/dist/collection/components/ic-input-label/ic-input-label.js +2 -2
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +3 -3
- package/dist/collection/components/ic-layout-grid/ic-layout-grid.css +540 -0
- package/dist/collection/components/ic-layout-grid/ic-layout-grid.js +377 -0
- package/dist/collection/components/ic-layout-grid/ic-layout-grid.js.map +1 -0
- package/dist/collection/components/ic-layout-grid/ic-layout-grid.stories.js +429 -0
- package/dist/collection/components/ic-layout-grid/ic-layout-grid.types.js +2 -0
- package/dist/collection/components/ic-layout-grid/ic-layout-grid.types.js.map +1 -0
- package/dist/collection/components/ic-layout-grid-item/ic-layout-grid-item.css +12 -0
- package/dist/collection/components/ic-layout-grid-item/ic-layout-grid-item.js +182 -0
- package/dist/collection/components/ic-layout-grid-item/ic-layout-grid-item.js.map +1 -0
- 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-button/ic-navigation-button.js +2 -2
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +2 -0
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +1 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +2 -2
- 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 +29 -5
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.stories.js +94 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +4 -4
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +4 -4
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +9 -9
- package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
- package/dist/collection/components/ic-select/ic-select.js +6 -6
- package/dist/collection/components/ic-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-switch/ic-switch.js +4 -4
- package/dist/collection/components/ic-tab/ic-tab.js +2 -2
- package/dist/collection/components/ic-tab-context/ic-tab-context.js +1 -1
- package/dist/collection/components/ic-tab-group/ic-tab-group.js +2 -2
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -2
- package/dist/collection/components/ic-text-field/ic-text-field.js +6 -6
- package/dist/collection/components/ic-theme/ic-theme.js +1 -1
- package/dist/collection/components/ic-toast/ic-toast.css +8 -0
- package/dist/collection/components/ic-toast/ic-toast.js +4 -4
- package/dist/collection/components/ic-toast/ic-toast.stories.js +2 -2
- package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
- package/dist/collection/components/ic-tooltip/ic-tooltip.css +2 -5
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +57 -78
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
- package/dist/collection/components/ic-tooltip/ic-tooltip.stories.js +38 -0
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +4 -4
- package/dist/collection/components/ic-typography/ic-typography.js +2 -2
- package/dist/collection/utils/constants.js +5 -0
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/collection/utils/helpers.js +14 -6
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/helpers.js +31 -7
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-action-chip.d.ts +11 -0
- package/dist/components/ic-action-chip.js +160 -0
- package/dist/components/ic-action-chip.js.map +1 -0
- package/dist/components/ic-alert.js +1 -1
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-back-to-top.js +4 -4
- package/dist/components/ic-back-to-top.js.map +1 -1
- package/dist/components/ic-badge.js +4 -4
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js +3 -3
- package/dist/components/ic-breadcrumb2.js +3 -3
- package/dist/components/ic-button2.js +15 -13
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card-vertical.js +4 -4
- package/dist/components/ic-checkbox-group.js +3 -3
- package/dist/components/ic-checkbox.js +6 -6
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +13 -5
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-classification-banner.js +2 -2
- package/dist/components/ic-data-list.js +3 -3
- package/dist/components/ic-data-list.js.map +1 -1
- package/dist/components/ic-data-row.js +4 -4
- package/dist/components/ic-data-row.js.map +1 -1
- package/dist/components/ic-dialog.js +2 -2
- package/dist/components/ic-divider2.js +1 -1
- package/dist/components/ic-empty-state.js +2 -2
- package/dist/components/ic-footer-link-group.js +1 -1
- package/dist/components/ic-footer-link.js +3 -3
- package/dist/components/ic-footer.js +4 -4
- package/dist/components/ic-hero.js +5 -5
- package/dist/components/ic-horizontal-scroll2.js +6 -6
- package/dist/components/ic-input-component-container2.js +4 -4
- package/dist/components/ic-input-container2.js +2 -2
- package/dist/components/ic-input-label2.js +3 -3
- package/dist/components/ic-input-validation2.js +4 -4
- package/dist/components/ic-layout-grid-item.d.ts +11 -0
- package/dist/components/ic-layout-grid-item.js +95 -0
- package/dist/components/ic-layout-grid-item.js.map +1 -0
- package/dist/components/ic-layout-grid.d.ts +11 -0
- package/dist/components/ic-layout-grid.js +188 -0
- package/dist/components/ic-layout-grid.js.map +1 -0
- package/dist/components/ic-link2.js +1 -1
- package/dist/components/ic-loading-indicator2.js +5 -5
- package/dist/components/ic-menu-group.js +2 -2
- package/dist/components/ic-menu-item2.js +1 -1
- package/dist/components/ic-menu2.js +4 -4
- package/dist/components/ic-navigation-button.js +3 -3
- package/dist/components/ic-navigation-group.js +3 -3
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +3 -3
- package/dist/components/ic-navigation-menu2.js +5 -5
- package/dist/components/ic-page-header.js +7 -7
- package/dist/components/ic-pagination-item2.js +2 -2
- package/dist/components/ic-pagination.js +4 -4
- package/dist/components/ic-pagination.js.map +1 -1
- package/dist/components/ic-popover-menu.js +11 -6
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +5 -5
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +5 -5
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +10 -10
- package/dist/components/ic-section-container2.js +2 -2
- package/dist/components/ic-select.js +7 -7
- package/dist/components/ic-side-navigation.js +5 -5
- 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-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +14 -14
- package/dist/components/ic-stepper.js +2 -2
- package/dist/components/ic-switch.js +5 -5
- package/dist/components/ic-tab-context.js +1 -1
- package/dist/components/ic-tab-group.js +2 -2
- package/dist/components/ic-tab-panel.js +2 -2
- package/dist/components/ic-tab.js +2 -2
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field.js +7 -7
- package/dist/components/ic-theme.js +2 -2
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast.js +5 -5
- 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/components/ic-tooltip2.js +39 -79
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +5 -5
- package/dist/components/ic-typography2.js +2 -2
- package/dist/core/core.css +236 -16
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-0d680d19.entry.js +2 -0
- package/dist/core/p-0d680d19.entry.js.map +1 -0
- package/dist/core/{p-06e80441.entry.js → p-15dbccc2.entry.js} +2 -2
- package/dist/core/{p-91f6884a.entry.js → p-19cf2327.entry.js} +2 -2
- package/dist/core/{p-4b6818d9.entry.js → p-1cc402b8.entry.js} +2 -2
- package/dist/core/p-1d37ac1c.entry.js +2 -0
- package/dist/core/p-1d37ac1c.entry.js.map +1 -0
- package/dist/core/{p-182b7037.entry.js → p-1e2f40b0.entry.js} +2 -2
- package/dist/core/{p-9d5e4b62.entry.js → p-21cf2beb.entry.js} +2 -2
- package/dist/core/p-25007ec9.js +2 -0
- package/dist/core/p-25007ec9.js.map +1 -0
- package/dist/core/{p-fc5661ac.entry.js → p-287e5c17.entry.js} +2 -2
- package/dist/core/{p-543b90c5.entry.js → p-28efe829.entry.js} +2 -2
- package/dist/core/{p-fb6e6ac4.entry.js → p-2f4f392f.entry.js} +2 -2
- package/dist/core/{p-4301e11e.entry.js → p-313a8a2f.entry.js} +2 -2
- package/dist/core/p-317e005f.entry.js +2 -0
- package/dist/core/{p-ff47772c.entry.js.map → p-317e005f.entry.js.map} +1 -1
- package/dist/core/{p-f4ee5fbb.entry.js → p-3dc54847.entry.js} +2 -2
- package/dist/core/{p-0549305b.entry.js → p-3e5d7a3d.entry.js} +2 -2
- package/dist/core/p-41ef74a7.entry.js +2 -0
- package/dist/core/p-41ef74a7.entry.js.map +1 -0
- package/dist/core/{p-ae2ea264.entry.js → p-41f92698.entry.js} +2 -2
- package/dist/core/p-43324339.entry.js +2 -0
- package/dist/core/p-43324339.entry.js.map +1 -0
- package/dist/core/{p-9e051db4.entry.js → p-45dd12ee.entry.js} +2 -2
- package/dist/core/{p-018eaee0.entry.js → p-493eaabb.entry.js} +2 -2
- package/dist/core/{p-a591ef38.entry.js → p-4ca782eb.entry.js} +2 -2
- package/dist/core/{p-056be0df.entry.js → p-4d1a3036.entry.js} +2 -2
- package/dist/core/p-52748d5c.entry.js +2 -0
- package/dist/core/p-52748d5c.entry.js.map +1 -0
- package/dist/core/p-595a4d06.entry.js +2 -0
- package/dist/core/p-595a4d06.entry.js.map +1 -0
- package/dist/core/p-5daa7915.entry.js +2 -0
- package/dist/core/{p-02132a4c.entry.js.map → p-5daa7915.entry.js.map} +1 -1
- package/dist/core/{p-421b5f2d.entry.js → p-5f68f62b.entry.js} +2 -2
- package/dist/core/{p-d281c3cf.entry.js → p-5fbc8e62.entry.js} +2 -2
- package/dist/core/{p-06b0d0f6.entry.js → p-6014ab64.entry.js} +2 -2
- package/dist/core/{p-afde0edc.entry.js → p-661ae402.entry.js} +2 -2
- package/dist/core/{p-a2ae5d9e.entry.js → p-6a576a8b.entry.js} +2 -2
- package/dist/core/{p-b1b27b7e.entry.js → p-6e8ef73c.entry.js} +2 -2
- package/dist/core/p-6ed0ac48.entry.js +2 -0
- package/dist/core/{p-3194e46c.entry.js.map → p-6ed0ac48.entry.js.map} +1 -1
- package/dist/core/p-711bfeed.entry.js +2 -0
- package/dist/core/p-711bfeed.entry.js.map +1 -0
- package/dist/core/{p-2ec0d11c.entry.js → p-72a9909c.entry.js} +2 -2
- package/dist/core/{p-f9491692.entry.js → p-742a9181.entry.js} +2 -2
- package/dist/core/p-7cd4f6a6.entry.js +2 -0
- package/dist/core/{p-773ded36.entry.js.map → p-7cd4f6a6.entry.js.map} +1 -1
- package/dist/core/{p-152ddde9.entry.js → p-8a4b12e4.entry.js} +2 -2
- package/dist/core/{p-3448c713.entry.js → p-8b5022bc.entry.js} +2 -2
- package/dist/core/{p-ce916f35.entry.js → p-9323c234.entry.js} +2 -2
- package/dist/core/{p-50d13439.entry.js → p-948f89a0.entry.js} +2 -2
- package/dist/core/p-97b93ddf.entry.js +2 -0
- package/dist/core/p-97b93ddf.entry.js.map +1 -0
- package/dist/core/{p-0f86ea09.entry.js → p-999f0a5d.entry.js} +2 -2
- package/dist/core/p-999f0a5d.entry.js.map +1 -0
- package/dist/core/{p-ba89fa16.entry.js → p-9c013333.entry.js} +2 -2
- package/dist/core/{p-b83cca09.entry.js → p-9eeb5e85.entry.js} +2 -2
- package/dist/core/{p-0179fbd3.entry.js → p-9f36791b.entry.js} +2 -2
- package/dist/core/{p-8a5b0fb0.entry.js → p-a602a8e1.entry.js} +2 -2
- package/dist/core/{p-98869fe7.entry.js → p-a77364f5.entry.js} +2 -2
- package/dist/core/{p-6b52e47f.entry.js → p-af9c391d.entry.js} +2 -2
- package/dist/core/{p-77750efc.entry.js → p-b0d488d0.entry.js} +2 -2
- package/dist/core/p-b25d33d8.entry.js +2 -0
- package/dist/core/{p-627f7172.entry.js.map → p-b25d33d8.entry.js.map} +1 -1
- package/dist/core/{p-cd8dab55.entry.js → p-b52000d9.entry.js} +2 -2
- package/dist/core/p-cbe0d1bb.entry.js +2 -0
- package/dist/core/{p-ec1657fc.entry.js.map → p-cbe0d1bb.entry.js.map} +1 -1
- package/dist/core/p-ceea1712.entry.js +2 -0
- package/dist/core/p-ceea1712.entry.js.map +1 -0
- package/dist/core/p-cf631191.entry.js +2 -0
- package/dist/core/{p-6dd73165.entry.js → p-df88ff5b.entry.js} +2 -2
- package/dist/core/{p-bb21268f.entry.js → p-e652ab09.entry.js} +2 -2
- package/dist/core/{p-29468171.entry.js → p-e876e47c.entry.js} +2 -2
- package/dist/core/p-ea061ccf.entry.js +2 -0
- package/dist/core/p-ea061ccf.entry.js.map +1 -0
- package/dist/core/{p-ab1103e1.entry.js → p-ea778379.entry.js} +2 -2
- package/dist/core/{p-948086f4.entry.js → p-ef4b5469.entry.js} +2 -2
- package/dist/core/p-f309d3af.entry.js +2 -0
- package/dist/core/{p-554c555f.entry.js.map → p-f309d3af.entry.js.map} +1 -1
- package/dist/core/{p-9ed5f11d.entry.js → p-f6a02202.entry.js} +2 -2
- package/dist/core/p-fc3b1155.entry.js +2 -0
- package/dist/core/p-fc3b1155.entry.js.map +1 -0
- package/dist/core/p-ffac41d6.entry.js +2 -0
- package/dist/core/p-ffac41d6.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-f5ff3b42.js → helpers-56631aa0.js} +32 -8
- package/dist/esm/helpers-56631aa0.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +1 -1
- package/dist/esm/ic-accordion.entry.js +1 -1
- package/dist/esm/ic-action-chip.entry.js +112 -0
- package/dist/esm/ic-action-chip.entry.js.map +1 -0
- package/dist/esm/ic-alert.entry.js +2 -2
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +4 -4
- package/dist/esm/ic-badge.entry.js +4 -4
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +3 -3
- package/dist/esm/ic-breadcrumb.entry.js +3 -3
- package/dist/esm/ic-button_3.entry.js +56 -96
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-vertical.entry.js +5 -5
- package/dist/esm/ic-checkbox-group.entry.js +3 -3
- package/dist/esm/ic-checkbox.entry.js +6 -6
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +13 -5
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-classification-banner.entry.js +2 -2
- package/dist/esm/ic-data-list.entry.js +3 -3
- package/dist/esm/ic-data-list.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +4 -4
- package/dist/esm/ic-data-row.entry.js.map +1 -1
- package/dist/esm/ic-dialog.entry.js +2 -2
- package/dist/esm/ic-divider.entry.js +1 -1
- package/dist/esm/ic-empty-state.entry.js +3 -3
- package/dist/esm/ic-footer-link-group.entry.js +1 -1
- package/dist/esm/ic-footer-link.entry.js +3 -3
- package/dist/esm/ic-footer.entry.js +4 -4
- package/dist/esm/ic-hero.entry.js +5 -5
- package/dist/esm/ic-horizontal-scroll.entry.js +6 -6
- package/dist/esm/ic-input-component-container_3.entry.js +9 -9
- package/dist/esm/ic-input-label_2.entry.js +6 -6
- package/dist/esm/ic-layout-grid-item.entry.js +66 -0
- package/dist/esm/ic-layout-grid-item.entry.js.map +1 -0
- package/dist/esm/ic-layout-grid.entry.js +152 -0
- package/dist/esm/ic-layout-grid.entry.js.map +1 -0
- package/dist/esm/ic-link.entry.js +2 -2
- package/dist/esm/ic-menu-group.entry.js +2 -2
- package/dist/esm/ic-menu-item.entry.js +1 -1
- package/dist/esm/ic-navigation-button.entry.js +3 -3
- package/dist/esm/ic-navigation-group.entry.js +3 -3
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +3 -3
- package/dist/esm/ic-navigation-menu.entry.js +5 -5
- package/dist/esm/ic-page-header.entry.js +7 -7
- package/dist/esm/ic-pagination-item.entry.js +2 -2
- package/dist/esm/ic-pagination.entry.js +5 -5
- package/dist/esm/ic-popover-menu.entry.js +10 -6
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +5 -5
- package/dist/esm/ic-radio-option.entry.js +5 -5
- package/dist/esm/ic-search-bar.entry.js +10 -10
- package/dist/esm/ic-section-container.entry.js +2 -2
- package/dist/esm/ic-select.entry.js +7 -7
- package/dist/esm/ic-side-navigation.entry.js +5 -5
- package/dist/esm/ic-skeleton.entry.js +2 -2
- package/dist/esm/ic-skip-link.entry.js +2 -2
- package/dist/esm/ic-status-tag.entry.js +3 -3
- package/dist/esm/ic-step.entry.js +14 -14
- package/dist/esm/ic-stepper.entry.js +3 -3
- package/dist/esm/ic-switch.entry.js +5 -5
- package/dist/esm/ic-tab-context.entry.js +1 -1
- package/dist/esm/ic-tab-group.entry.js +3 -3
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-tab.entry.js +3 -3
- package/dist/esm/ic-text-field.entry.js +7 -7
- package/dist/esm/ic-theme.entry.js +2 -2
- package/dist/esm/ic-toast-region.entry.js +1 -1
- package/dist/esm/ic-toast.entry.js +5 -5
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js +3 -3
- package/dist/esm/ic-toggle-button.entry.js +3 -3
- package/dist/esm/ic-top-navigation.entry.js +5 -5
- package/dist/esm/ic-typography.entry.js +3 -3
- package/dist/esm/index-a7a720e7.js +12 -0
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-action-chip/ic-action-chip.d.ts +100 -0
- package/dist/types/components/ic-button/ic-button.d.ts +4 -0
- package/dist/types/components/ic-chip/ic-chip.d.ts +2 -0
- package/dist/types/components/ic-layout-grid/ic-layout-grid.d.ts +56 -0
- package/dist/types/components/ic-layout-grid/ic-layout-grid.types.d.ts +8 -0
- package/dist/types/components/ic-layout-grid-item/ic-layout-grid-item.d.ts +29 -0
- package/dist/types/components/ic-popover-menu/ic-popover-menu.d.ts +4 -0
- package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +5 -4
- package/dist/types/components.d.ts +343 -2
- package/dist/types/utils/constants.d.ts +4 -0
- package/dist/types/utils/helpers.d.ts +3 -3
- package/dist/types/utils/types.d.ts +1 -1
- package/hydrate/index.js +659 -278
- package/hydrate/index.mjs +659 -278
- package/package.json +2 -2
- package/vscode-data.json +270 -0
- package/dist/cjs/helpers-8217daf4.js.map +0 -1
- package/dist/core/p-02132a4c.entry.js +0 -2
- package/dist/core/p-08567369.entry.js +0 -2
- package/dist/core/p-08567369.entry.js.map +0 -1
- package/dist/core/p-0f86ea09.entry.js.map +0 -1
- package/dist/core/p-3194e46c.entry.js +0 -2
- package/dist/core/p-43b98687.entry.js +0 -2
- package/dist/core/p-43b98687.entry.js.map +0 -1
- package/dist/core/p-4b8bfb59.entry.js +0 -2
- package/dist/core/p-4b8bfb59.entry.js.map +0 -1
- package/dist/core/p-4cd83bfe.entry.js +0 -2
- package/dist/core/p-4cd83bfe.entry.js.map +0 -1
- package/dist/core/p-554c555f.entry.js +0 -2
- package/dist/core/p-5fb58cc8.entry.js +0 -2
- package/dist/core/p-5fb58cc8.entry.js.map +0 -1
- package/dist/core/p-627f7172.entry.js +0 -2
- package/dist/core/p-70abcb2b.js +0 -2
- package/dist/core/p-70abcb2b.js.map +0 -1
- package/dist/core/p-773ded36.entry.js +0 -2
- package/dist/core/p-7cada631.entry.js +0 -2
- package/dist/core/p-7cada631.entry.js.map +0 -1
- package/dist/core/p-939adcae.entry.js +0 -2
- package/dist/core/p-939adcae.entry.js.map +0 -1
- package/dist/core/p-97f67617.entry.js +0 -2
- package/dist/core/p-97f67617.entry.js.map +0 -1
- package/dist/core/p-c100724d.entry.js +0 -2
- package/dist/core/p-d85b438a.entry.js +0 -2
- package/dist/core/p-d85b438a.entry.js.map +0 -1
- package/dist/core/p-ec1657fc.entry.js +0 -2
- package/dist/core/p-ff47772c.entry.js +0 -2
- package/dist/esm/helpers-f5ff3b42.js.map +0 -1
- /package/dist/core/{p-06e80441.entry.js.map → p-15dbccc2.entry.js.map} +0 -0
- /package/dist/core/{p-91f6884a.entry.js.map → p-19cf2327.entry.js.map} +0 -0
- /package/dist/core/{p-4b6818d9.entry.js.map → p-1cc402b8.entry.js.map} +0 -0
- /package/dist/core/{p-182b7037.entry.js.map → p-1e2f40b0.entry.js.map} +0 -0
- /package/dist/core/{p-9d5e4b62.entry.js.map → p-21cf2beb.entry.js.map} +0 -0
- /package/dist/core/{p-fc5661ac.entry.js.map → p-287e5c17.entry.js.map} +0 -0
- /package/dist/core/{p-543b90c5.entry.js.map → p-28efe829.entry.js.map} +0 -0
- /package/dist/core/{p-fb6e6ac4.entry.js.map → p-2f4f392f.entry.js.map} +0 -0
- /package/dist/core/{p-4301e11e.entry.js.map → p-313a8a2f.entry.js.map} +0 -0
- /package/dist/core/{p-f4ee5fbb.entry.js.map → p-3dc54847.entry.js.map} +0 -0
- /package/dist/core/{p-0549305b.entry.js.map → p-3e5d7a3d.entry.js.map} +0 -0
- /package/dist/core/{p-ae2ea264.entry.js.map → p-41f92698.entry.js.map} +0 -0
- /package/dist/core/{p-9e051db4.entry.js.map → p-45dd12ee.entry.js.map} +0 -0
- /package/dist/core/{p-018eaee0.entry.js.map → p-493eaabb.entry.js.map} +0 -0
- /package/dist/core/{p-a591ef38.entry.js.map → p-4ca782eb.entry.js.map} +0 -0
- /package/dist/core/{p-056be0df.entry.js.map → p-4d1a3036.entry.js.map} +0 -0
- /package/dist/core/{p-421b5f2d.entry.js.map → p-5f68f62b.entry.js.map} +0 -0
- /package/dist/core/{p-d281c3cf.entry.js.map → p-5fbc8e62.entry.js.map} +0 -0
- /package/dist/core/{p-06b0d0f6.entry.js.map → p-6014ab64.entry.js.map} +0 -0
- /package/dist/core/{p-afde0edc.entry.js.map → p-661ae402.entry.js.map} +0 -0
- /package/dist/core/{p-a2ae5d9e.entry.js.map → p-6a576a8b.entry.js.map} +0 -0
- /package/dist/core/{p-b1b27b7e.entry.js.map → p-6e8ef73c.entry.js.map} +0 -0
- /package/dist/core/{p-2ec0d11c.entry.js.map → p-72a9909c.entry.js.map} +0 -0
- /package/dist/core/{p-f9491692.entry.js.map → p-742a9181.entry.js.map} +0 -0
- /package/dist/core/{p-152ddde9.entry.js.map → p-8a4b12e4.entry.js.map} +0 -0
- /package/dist/core/{p-3448c713.entry.js.map → p-8b5022bc.entry.js.map} +0 -0
- /package/dist/core/{p-ce916f35.entry.js.map → p-9323c234.entry.js.map} +0 -0
- /package/dist/core/{p-50d13439.entry.js.map → p-948f89a0.entry.js.map} +0 -0
- /package/dist/core/{p-ba89fa16.entry.js.map → p-9c013333.entry.js.map} +0 -0
- /package/dist/core/{p-b83cca09.entry.js.map → p-9eeb5e85.entry.js.map} +0 -0
- /package/dist/core/{p-0179fbd3.entry.js.map → p-9f36791b.entry.js.map} +0 -0
- /package/dist/core/{p-8a5b0fb0.entry.js.map → p-a602a8e1.entry.js.map} +0 -0
- /package/dist/core/{p-98869fe7.entry.js.map → p-a77364f5.entry.js.map} +0 -0
- /package/dist/core/{p-6b52e47f.entry.js.map → p-af9c391d.entry.js.map} +0 -0
- /package/dist/core/{p-77750efc.entry.js.map → p-b0d488d0.entry.js.map} +0 -0
- /package/dist/core/{p-cd8dab55.entry.js.map → p-b52000d9.entry.js.map} +0 -0
- /package/dist/core/{p-c100724d.entry.js.map → p-cf631191.entry.js.map} +0 -0
- /package/dist/core/{p-6dd73165.entry.js.map → p-df88ff5b.entry.js.map} +0 -0
- /package/dist/core/{p-bb21268f.entry.js.map → p-e652ab09.entry.js.map} +0 -0
- /package/dist/core/{p-29468171.entry.js.map → p-e876e47c.entry.js.map} +0 -0
- /package/dist/core/{p-ab1103e1.entry.js.map → p-ea778379.entry.js.map} +0 -0
- /package/dist/core/{p-948086f4.entry.js.map → p-ef4b5469.entry.js.map} +0 -0
- /package/dist/core/{p-9ed5f11d.entry.js.map → p-f6a02202.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
2
|
-
import { r as removeDisabledFalse, f as renderDynamicChildSlots,
|
2
|
+
import { r as removeDisabledFalse, f as renderDynamicChildSlots, F as slotHasContent, A as IcInformationStatus, E as successIcon } from './helpers.js';
|
3
3
|
|
4
4
|
const icInputComponentContainerCss = "ic-input-component-container{display:flex;border:var(--ic-border-width) solid\n var(--border-color, var(--ic-architectural-400));border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-slow);height:2.5rem;min-height:2.5rem;width:var(--input-width, 20rem);padding:var(--ic-space-1px);background-color:var(--input-bg-color, var(--ic-color-background-primary));box-sizing:border-box;fill:var(--ic-architectural-400);outline:none}ic-input-component-container.ic-input-component-container-full-width{width:100%}ic-input-component-container.ic-input-component-container-disabled,ic-input-component-container.ic-input-component-container-disabled:hover{border:var(--ic-border-width) dashed\n var(--border-color-disabled, var(--ic-color-border-neutral-disabled))}ic-input-component-container.ic-input-component-container-readonly,ic-input-component-container.ic-input-component-container-small.ic-input-component-container-readonly,ic-input-component-container.ic-input-component-container-large.ic-input-component-container-readonly{height:auto;background:transparent}ic-input-component-container.ic-input-component-container-readonly,ic-input-component-container.ic-input-component-container-readonly:hover{border:none;padding:0}ic-input-component-container.ic-input-component-container-error{border:var(--ic-space-xxxs) solid\n var(--border-color-error, var(--ic-color-border-error));padding:0}ic-input-component-container.ic-input-component-container-error:hover{border:var(--ic-space-xxxs) solid\n var(--border-color-error-hover, var(--ic-color-border-error-hover))}ic-input-component-container.ic-input-component-container-error:focus-within{border:var(--ic-space-xxxs) solid\n var(--border-color-error-pressed, var(--ic-color-border-error-pressed))}ic-input-component-container.ic-input-component-container-warning{border:var(--ic-space-xxxs) solid\n var(--border-color-warning, var(--ic-color-border-warning));padding:0}ic-input-component-container.ic-input-component-container-warning:hover{border:var(--ic-space-xxxs) solid\n var(--border-color-warning-hover, var(--ic-color-border-warning-hover))}ic-input-component-container.ic-input-component-container-warning:focus-within{border:var(--ic-space-xxxs) solid\n var(--border-color-warning-pressed, var(--ic-color-border-warning-pressed))}ic-input-component-container.ic-input-component-container-success{border:var(--ic-space-xxxs) solid\n var(--border-color-success, var(--ic-color-border-success));padding:0}ic-input-component-container.ic-input-component-container-success:hover{border:var(--ic-space-xxxs) solid\n var(--border-color-success-hover, var(--ic-color-border-success-hover))}ic-input-component-container.ic-input-component-container-success:focus-within{border:var(--ic-space-xxxs) solid\n var(--border-color-success-pressed, var(--ic-color-border-success-pressed))}ic-input-component-container.ic-input-component-container-small{height:var(--ic-space-xl);min-height:var(--ic-space-xl)}ic-input-component-container.ic-input-component-container-large{height:var(--ic-space-xxl);min-height:var(--ic-space-xxl)}ic-input-component-container.ic-input-component-container-multiline{height:auto}ic-input-component-container .icon-container{margin-top:var(--ic-space-xxs);margin-left:0.438rem;display:flex;align-items:center}ic-input-component-container.ic-input-component-container-multiline .icon-container,ic-input-component-container.ic-input-component-container-multiline.ic-input-component-container-small .icon-container{margin-top:0.375rem;display:block}ic-input-component-container.ic-input-component-container-readonly .icon-container{margin-left:-0.313rem}ic-input-component-container.ic-input-component-container-disabled ::-moz-placeholder{display:none}ic-input-component-container.ic-input-component-container-disabled ::placeholder{display:none}ic-input-component-container .inline-success{margin:var(--ic-space-xs) 0.375rem;display:flex;align-items:center}ic-input-component-container .inline-success>svg{fill:var(--ic-input-component-container-success-icon-inline-color);height:1.25rem;width:1.25rem}ic-input-component-container:hover{border:var(--ic-input-component-container-hover-border);border-color:var(--border-color-hover, var(--ic-color-border-neutral-hover));color:var(--ic-action-monochrome-hover-dark)}ic-input-component-container:focus{border:var(--ic-border-pressed);border-color:var(\n --border-color-pressed,\n var(--ic-color-border-neutral-pressed)\n )}.focus-indicator{display:flex;width:100%;margin:-0.125rem;padding:0.125rem;border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast)}.focus-indicator:focus-within,.focus-indicator-enabled{box-shadow:var(--ic-border-focus)}.focus-indicator.ic-input-component-container-dark:focus-within{box-shadow:var(--ic-border-focus)}@media (forced-colors: active){ic-input-component-container,.focus-indicator{transition:none}ic-input-component-container:focus-within{border:var(--ic-border-width) solid Highlight;outline:0.125rem solid Highlight}ic-input-component-container.ic-input-component-container-disabled,ic-input-component-container.ic-input-component-container-disabled:hover{border:var(--ic-border-width) dashed GrayText}}";
|
5
5
|
const IcInputComponentContainerStyle0 = icInputComponentContainerCss;
|
@@ -49,15 +49,15 @@ const InputComponentContainer = /*@__PURE__*/ proxyCustomElement(class InputComp
|
|
49
49
|
}
|
50
50
|
render() {
|
51
51
|
const { size, validationStatus, disabled, readonly, multiLine, fullWidth, validationInline, } = this;
|
52
|
-
return (h(Host, { key: '
|
52
|
+
return (h(Host, { key: 'c33ebfd9dd18101fb9161259538e8e0046f77a3d', class: {
|
53
53
|
[`ic-input-component-container-${size}`]: true,
|
54
54
|
[`ic-input-component-container-${validationStatus}`]: validationStatus !== "" && !disabled && !readonly,
|
55
55
|
"ic-input-component-container-disabled": !!disabled,
|
56
56
|
"ic-input-component-container-readonly": !!readonly,
|
57
57
|
"ic-input-component-container-multiline": !!multiLine,
|
58
58
|
"ic-input-component-container-full-width": !!fullWidth,
|
59
|
-
}, "aria-disabled": disabled ? "true" : null }, h("div", { key: '
|
60
|
-
validationStatus === IcInformationStatus.Success && (h("span", { key: '
|
59
|
+
}, "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 &&
|
60
|
+
validationStatus === IcInformationStatus.Success && (h("span", { key: '58d228c595577c1cc9a0fe2b10538cc3efff53ab', class: "inline-success", innerHTML: successIcon })))));
|
61
61
|
}
|
62
62
|
get el() { return this; }
|
63
63
|
static get watchers() { return {
|
@@ -17,11 +17,11 @@ const InputContainer = /*@__PURE__*/ proxyCustomElement(class InputContainer ext
|
|
17
17
|
this.readonly = false;
|
18
18
|
}
|
19
19
|
render() {
|
20
|
-
return (h(Host, { key: '
|
20
|
+
return (h(Host, { key: '32ae22db5e182cc2c092c8f48e61d42a318284a0' }, h("div", { key: 'bae9ef74f7f92004ec99c387a213822315c505ba', class: {
|
21
21
|
["component-container"]: true,
|
22
22
|
["disabled"]: !!this.disabled,
|
23
23
|
["readonly"]: !!this.readonly,
|
24
|
-
} }, h("slot", { key: '
|
24
|
+
} }, h("slot", { key: 'acca571eaa0d8f19b0e3379d2592409aacf9dd95' }))));
|
25
25
|
}
|
26
26
|
static get style() { return IcInputContainerStyle0; }
|
27
27
|
}, [4, "ic-input-container", {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
2
|
-
import { o as onComponentRequiredPropUndefined,
|
2
|
+
import { o as onComponentRequiredPropUndefined, y as getInputHelperTextID } from './helpers.js';
|
3
3
|
import { d as defineCustomElement$1 } from './ic-typography2.js';
|
4
4
|
|
5
5
|
const icInputLabelCss = "ic-input-label{margin-bottom:var(--ic-space-xs);--ic-typography-color:var(\n --ic-input-label-text-color,\n var(--ic-color-text-primary)\n )}ic-input-label.with-helper{margin-bottom:0}ic-input-label.ic-input-label-readonly{--ic-typography-color:var(--ic-input-label-readonly-typography-color)}ic-input-label .helpertext,ic-input-label .helpertext ::slotted(*){margin-top:var(--ic-space-xxxs);padding-bottom:var(--ic-input-label-helpertext-padding, 0);--ic-typography-color:var(\n --ic-input-label-helper-text-color,\n var(--ic-color-text-secondary)\n )}ic-input-label .helpertext-normal{--ic-typography-color:var(\n --ic-input-label-helper-text-color,\n var(--ic-color-text-secondary)\n )}ic-input-label .helpertext-readonly{--ic-typography-color:var(--ic-input-label-readonly-helpertext-color)}ic-input-label .readonly-label{--ic-typography-color:var(--ic-input-label-readonly-label-color)}ic-input-label .error-label{--ic-typography-color:var(--ic-input-label-error-label-color)}";
|
@@ -70,11 +70,11 @@ const InputLabel = /*@__PURE__*/ proxyCustomElement(class InputLabel extends HTM
|
|
70
70
|
"helpertext-readonly": readonly,
|
71
71
|
};
|
72
72
|
const helperTextSlot = this.el.querySelector("slot[name='helper-text']");
|
73
|
-
return (h(Host, { key: '
|
73
|
+
return (h(Host, { key: 'da58fe3cac026661d1c624c69c56c6e64ff3c07a', class: {
|
74
74
|
"ic-input-label-disabled": !!disabled,
|
75
75
|
"ic-input-label-readonly": readonly,
|
76
76
|
"with-helper": this.isHelperTextSlotUsed(helperTextSlot) || helperText !== "",
|
77
|
-
} }, !hideLabel && (h("ic-typography", { key: '
|
77
|
+
} }, !hideLabel && (h("ic-typography", { key: 'bb221e5f51681a0caa721c66f03fd475e4e08749', variant: "label", class: {
|
78
78
|
"readonly-label": readonly,
|
79
79
|
"error-label": status === "error" && !(readonly || disabled),
|
80
80
|
} }, 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))))));
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
2
|
-
import { o as onComponentRequiredPropUndefined,
|
2
|
+
import { o as onComponentRequiredPropUndefined, z as getInputValidationTextID, A as IcInformationStatus, B as warningIcon, C as errorIcon, E as successIcon } from './helpers.js';
|
3
3
|
import { d as defineCustomElement$1 } from './ic-typography2.js';
|
4
4
|
|
5
5
|
const icInputValidationCss = "ic-input-validation{width:var(--input-width, 20rem);margin-top:var(--ic-space-xs);display:flex}ic-input-validation.ic-input-validation-full-width{width:100%}ic-input-validation span.status-icon{padding-right:var(--ic-space-xxs)}ic-input-validation span.status-icon>svg{height:1.25rem;width:1.25rem}ic-input-validation span.icon-success>svg{fill:var(--ic-input-validation-success-icon-color)}ic-input-validation span.icon-error>svg{fill:var(--ic-input-validation-error, var(--ic-atoms-status-icon-error))}ic-input-validation span.icon-warning>svg{fill:var(--ic-input-validation-warning-icon-color)}ic-input-validation .statustext{flex-grow:1;color:var(\n --ic-input-validation-status-text-color,\n var(--ic-color-text-primary)\n );--ic-typography-color:var(\n --ic-input-validation-status-text-color,\n var(--ic-color-text-primary)\n )}";
|
@@ -33,13 +33,13 @@ const InputValidation = /*@__PURE__*/ proxyCustomElement(class InputValidation e
|
|
33
33
|
render() {
|
34
34
|
const { ariaLiveMode, fullWidth, status, message } = this;
|
35
35
|
const displayIcon = status !== "" ? icon[status] : "";
|
36
|
-
return (h(Host, { key: '
|
36
|
+
return (h(Host, { key: '149fe6ed6f86bb49ff8179e617542c048da4b80f', class: {
|
37
37
|
[`ic-input-validation-${status}`]: status !== "",
|
38
38
|
"ic-input-validation-full-width": !!fullWidth,
|
39
|
-
} }, displayIcon !== "" && (h("span", { key: '
|
39
|
+
} }, displayIcon !== "" && (h("span", { key: 'e9e0ad999d435642e02a9f9c4abb95840fe13b3f', class: {
|
40
40
|
"status-icon": true,
|
41
41
|
[`icon-${status}`]: true,
|
42
|
-
}, innerHTML: displayIcon })), h("ic-typography", { key: '
|
42
|
+
}, innerHTML: displayIcon })), h("ic-typography", { key: '7494901b17b7bb3c91167e95190c415fd06f03c9', variant: "caption", class: "statustext" }, h("span", { key: '5e7d2d4cdcef0d32d5338f25365bc9831203a9c9', "aria-live": ariaLiveMode, id: this.for && getInputValidationTextID(this.for) }, message)), h("slot", { key: '445c0fe4b8effa3b9d98a9b240921e613ef43e24', name: "validation-message-adornment" })));
|
43
43
|
}
|
44
44
|
get el() { return this; }
|
45
45
|
static get style() { return IcInputValidationStyle0; }
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
2
|
+
|
3
|
+
interface IcLayoutGridItem extends Components.IcLayoutGridItem, HTMLElement {}
|
4
|
+
export const IcLayoutGridItem: {
|
5
|
+
prototype: IcLayoutGridItem;
|
6
|
+
new (): IcLayoutGridItem;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* Used to define this component and all nested components recursively.
|
10
|
+
*/
|
11
|
+
export const defineCustomElement: () => void;
|
@@ -0,0 +1,95 @@
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
2
|
+
|
3
|
+
const icLayoutGridItemCss = ":host{grid-column:var(--ic-grid-item-col-start, 1) / span\n var(--ic-grid-item-col-span, var(--ic-layout-grid-col-span, 1)) !important;grid-row:var(--ic-grid-item-row-start, 1) / span\n var(--ic-grid-item-row-span, var(--ic-layout-grid-row-span, 1)) !important}@media only screen and (max-width: 576px){:host(.ic-layout-grid-hide-in-mobile){display:none}}";
|
4
|
+
const IcLayoutGridItemStyle0 = icLayoutGridItemCss;
|
5
|
+
|
6
|
+
const LayoutGridItem = /*@__PURE__*/ proxyCustomElement(class LayoutGridItem extends HTMLElement {
|
7
|
+
constructor() {
|
8
|
+
super();
|
9
|
+
this.__registerHost();
|
10
|
+
this.__attachShadow();
|
11
|
+
/**
|
12
|
+
* The number of columns the grid item should span.
|
13
|
+
*/
|
14
|
+
this.colSpan = 1;
|
15
|
+
/**
|
16
|
+
* The column the grid item should start at.
|
17
|
+
*/
|
18
|
+
this.colStart = 1;
|
19
|
+
/**
|
20
|
+
* If `true`, the grid item will be hidden on smaller screens.
|
21
|
+
*/
|
22
|
+
this.hideInMobileMode = false;
|
23
|
+
/**
|
24
|
+
* The number of rows the grid item should span.
|
25
|
+
*/
|
26
|
+
this.rowSpan = 1;
|
27
|
+
/**
|
28
|
+
* The row the grid item should start at.
|
29
|
+
*/
|
30
|
+
this.rowStart = 1;
|
31
|
+
}
|
32
|
+
watchColSpan(newValue) {
|
33
|
+
this.el.style.setProperty("--ic-grid-item-col-span", `${newValue}`);
|
34
|
+
}
|
35
|
+
watchColStart(newValue) {
|
36
|
+
this.el.style.setProperty("--ic-grid-item-col-start", `${newValue}`);
|
37
|
+
}
|
38
|
+
watchRowSpan(newValue) {
|
39
|
+
this.el.style.setProperty("--ic-grid-item-row-span", `${newValue}`);
|
40
|
+
}
|
41
|
+
watchRowStart(newValue) {
|
42
|
+
this.el.style.setProperty("--ic-grid-item-row-start", `${newValue}`);
|
43
|
+
}
|
44
|
+
componentWillLoad() {
|
45
|
+
this.el.style.setProperty("--ic-grid-item-col-start", `${this.colStart}`);
|
46
|
+
this.el.style.setProperty("--ic-grid-item-col-span", `${this.colSpan}`);
|
47
|
+
this.el.style.setProperty("--ic-grid-item-row-start", `${this.rowStart}`);
|
48
|
+
this.el.style.setProperty("--ic-grid-item-row-span", `${this.rowSpan}`);
|
49
|
+
}
|
50
|
+
render() {
|
51
|
+
const { hideInMobileMode } = this;
|
52
|
+
return (h(Host, { key: '07cb3d39a4c3440a06df2f6c56ecdf3017e48f59', class: {
|
53
|
+
"ic-layout-grid-hide-in-mobile": !!hideInMobileMode,
|
54
|
+
} }, h("slot", { key: '53c7d5616494ad9fc7468d023b9a9ec520938916' })));
|
55
|
+
}
|
56
|
+
get el() { return this; }
|
57
|
+
static get watchers() { return {
|
58
|
+
"colSpan": ["watchColSpan"],
|
59
|
+
"colStart": ["watchColStart"],
|
60
|
+
"rowSpan": ["watchRowSpan"],
|
61
|
+
"rowStart": ["watchRowStart"]
|
62
|
+
}; }
|
63
|
+
static get style() { return IcLayoutGridItemStyle0; }
|
64
|
+
}, [1, "ic-layout-grid-item", {
|
65
|
+
"colSpan": [2, "col-span"],
|
66
|
+
"colStart": [2, "col-start"],
|
67
|
+
"hideInMobileMode": [4, "hide-in-mobile-mode"],
|
68
|
+
"rowSpan": [2, "row-span"],
|
69
|
+
"rowStart": [2, "row-start"]
|
70
|
+
}, undefined, {
|
71
|
+
"colSpan": ["watchColSpan"],
|
72
|
+
"colStart": ["watchColStart"],
|
73
|
+
"rowSpan": ["watchRowSpan"],
|
74
|
+
"rowStart": ["watchRowStart"]
|
75
|
+
}]);
|
76
|
+
function defineCustomElement$1() {
|
77
|
+
if (typeof customElements === "undefined") {
|
78
|
+
return;
|
79
|
+
}
|
80
|
+
const components = ["ic-layout-grid-item"];
|
81
|
+
components.forEach(tagName => { switch (tagName) {
|
82
|
+
case "ic-layout-grid-item":
|
83
|
+
if (!customElements.get(tagName)) {
|
84
|
+
customElements.define(tagName, LayoutGridItem);
|
85
|
+
}
|
86
|
+
break;
|
87
|
+
} });
|
88
|
+
}
|
89
|
+
|
90
|
+
const IcLayoutGridItem = LayoutGridItem;
|
91
|
+
const defineCustomElement = defineCustomElement$1;
|
92
|
+
|
93
|
+
export { IcLayoutGridItem, defineCustomElement };
|
94
|
+
|
95
|
+
//# sourceMappingURL=ic-layout-grid-item.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"ic-layout-grid-item.js","mappings":";;AAAA,MAAM,mBAAmB,GAAG,2WAA2W,CAAC;AACxY,+BAAe,mBAAmB;;MCMrB,cAAc;IAL3B;;;;;;;QAWU,YAAO,GAAY,CAAC,CAAC;;;;QASrB,aAAQ,GAAY,CAAC,CAAC;;;;QAStB,qBAAgB,GAAa,KAAK,CAAC;;;;QAKnC,YAAO,GAAY,CAAC,CAAC;;;;QASrB,aAAQ,GAAY,CAAC,CAAC;KAyB/B;IAvDC,YAAY,CAAC,QAAgB;QAC3B,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,yBAAyB,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC;KACrE;IAOD,aAAa,CAAC,QAAgB;QAC5B,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,0BAA0B,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC;KACtE;IAYD,YAAY,CAAC,QAAgB;QAC3B,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,yBAAyB,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC;KACrE;IAOD,aAAa,CAAC,QAAgB;QAC5B,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,0BAA0B,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC;KACtE;IAED,iBAAiB;QACf,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,0BAA0B,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC1E,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,yBAAyB,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QACxE,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,0BAA0B,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC1E,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,yBAAyB,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;KACzE;IAED,MAAM;QACJ,MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAAC;QAClC,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,+BAA+B,EAAE,CAAC,CAAC,gBAAgB;aACpD,IAED,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/ic-layout-grid-item/ic-layout-grid-item.css?tag=ic-layout-grid-item&encapsulation=shadow","src/components/ic-layout-grid-item/ic-layout-grid-item.tsx"],"sourcesContent":[":host {\n grid-column: var(--ic-grid-item-col-start, 1) / span\n var(--ic-grid-item-col-span, var(--ic-layout-grid-col-span, 1)) !important;\n grid-row: var(--ic-grid-item-row-start, 1) / span\n var(--ic-grid-item-row-span, var(--ic-layout-grid-row-span, 1)) !important;\n}\n\n@media only screen and (max-width: 576px) {\n :host(.ic-layout-grid-hide-in-mobile) {\n display: none;\n }\n}\n","import { Component, Prop, Host, h, Element, Watch } from \"@stencil/core\";\n\n@Component({\n tag: \"ic-layout-grid-item\",\n styleUrl: \"ic-layout-grid-item.css\",\n shadow: true,\n})\nexport class LayoutGridItem {\n @Element() el: HTMLIcLayoutGridItemElement;\n\n /**\n * The number of columns the grid item should span.\n */\n @Prop() colSpan?: number = 1;\n @Watch(\"colSpan\")\n watchColSpan(newValue: number) {\n this.el.style.setProperty(\"--ic-grid-item-col-span\", `${newValue}`);\n }\n\n /**\n * The column the grid item should start at.\n */\n @Prop() colStart?: number = 1;\n @Watch(\"colStart\")\n watchColStart(newValue: number) {\n this.el.style.setProperty(\"--ic-grid-item-col-start\", `${newValue}`);\n }\n\n /**\n * If `true`, the grid item will be hidden on smaller screens.\n */\n @Prop() hideInMobileMode?: boolean = false;\n\n /**\n * The number of rows the grid item should span.\n */\n @Prop() rowSpan?: number = 1;\n @Watch(\"rowSpan\")\n watchRowSpan(newValue: number) {\n this.el.style.setProperty(\"--ic-grid-item-row-span\", `${newValue}`);\n }\n\n /**\n * The row the grid item should start at.\n */\n @Prop() rowStart?: number = 1;\n @Watch(\"rowStart\")\n watchRowStart(newValue: number) {\n this.el.style.setProperty(\"--ic-grid-item-row-start\", `${newValue}`);\n }\n\n componentWillLoad(): void {\n this.el.style.setProperty(\"--ic-grid-item-col-start\", `${this.colStart}`);\n this.el.style.setProperty(\"--ic-grid-item-col-span\", `${this.colSpan}`);\n this.el.style.setProperty(\"--ic-grid-item-row-start\", `${this.rowStart}`);\n this.el.style.setProperty(\"--ic-grid-item-row-span\", `${this.rowSpan}`);\n }\n\n render() {\n const { hideInMobileMode } = this;\n return (\n <Host\n class={{\n \"ic-layout-grid-hide-in-mobile\": !!hideInMobileMode,\n }}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
2
|
+
|
3
|
+
interface IcLayoutGrid extends Components.IcLayoutGrid, HTMLElement {}
|
4
|
+
export const IcLayoutGrid: {
|
5
|
+
prototype: IcLayoutGrid;
|
6
|
+
new (): IcLayoutGrid;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* Used to define this component and all nested components recursively.
|
10
|
+
*/
|
11
|
+
export const defineCustomElement: () => void;
|
@@ -0,0 +1,188 @@
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
2
|
+
|
3
|
+
const icLayoutGridCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:grid;width:-moz-fit-content;width:fit-content;grid-template-columns:repeat(\n var(--ic-layout-grid-columns),\n var(--ic-layout-grid-col-width, 1fr)\n );grid-template-rows:repeat(var(--ic-layout-grid-rows), 1fr);gap:var(--ic-layout-grid-spacing);padding-top:var(--ic-layout-grid-margin);padding-bottom:var(--ic-layout-grid-margin)}:host ::slotted(*){grid-column:span var(--ic-layout-grid-col-span, 1);grid-row:span var(--ic-layout-grid-row-span, 1)}:host(.ic-layout-grid-aligned-center){margin-left:auto;margin-right:auto;padding-left:var(--ic-layout-grid-margin);padding-right:var(--ic-layout-grid-margin)}:host(.ic-layout-grid-aligned-left){margin-left:var(--ic-layout-grid-margin);margin-right:auto;padding-right:var(--ic-layout-grid-margin)}:host(.ic-layout-grid-aligned-full-width){margin-left:var(--ic-layout-grid-margin);margin-right:var(--ic-layout-grid-margin);width:calc(100% - (var(--ic-layout-grid-margin) * 2))}:host(.ic-layout-grid-no-vertical-padding){padding-top:0;padding-bottom:0}@media only screen and (max-width: 576px){:host{--ic-layout-grid-margin:var(--ic-space-xs);--ic-layout-grid-columns:var(--ic-layout-grid-columns-xs)}:host ::slotted(*){--ic-layout-grid-col-span:var(--ic-layout-grid-col-span-xs)}}@media only screen and (min-width: 577px){:host{--ic-layout-grid-margin:var(--ic-space-md);--ic-layout-grid-columns:var(--ic-layout-grid-columns-sm)}:host ::slotted(*){--ic-layout-grid-col-span:var(--ic-layout-grid-col-span-sm)}}@media only screen and (min-width: 769px){:host{--ic-layout-grid-margin:var(--ic-space-md);--ic-layout-grid-columns:var(--ic-layout-grid-columns-md)}:host ::slotted(*){--ic-layout-grid-col-span:var(--ic-layout-grid-col-span-md)}}@media only screen and (min-width: 993px){:host{--ic-layout-grid-margin:var(--ic-space-md);--ic-layout-grid-columns:var(--ic-layout-grid-columns-lg)}:host ::slotted(*){--ic-layout-grid-col-span:var(--ic-layout-grid-col-span-lg)}}@media only screen and (min-width: 1201px){:host{--ic-layout-grid-margin:var(--ic-space-lg);--ic-layout-grid-columns:var(--ic-layout-grid-columns-xl)}:host ::slotted(*){--ic-layout-grid-col-span:var(--ic-layout-grid-col-span-xl)}}";
|
4
|
+
const IcLayoutGridStyle0 = icLayoutGridCss;
|
5
|
+
|
6
|
+
const LayoutGrid = /*@__PURE__*/ proxyCustomElement(class LayoutGrid extends HTMLElement {
|
7
|
+
constructor() {
|
8
|
+
super();
|
9
|
+
this.__registerHost();
|
10
|
+
this.__attachShadow();
|
11
|
+
this.COL_WIDTH_CSS_PROP = "--ic-layout-grid-col-width";
|
12
|
+
/**
|
13
|
+
* The alignment of the grid.
|
14
|
+
*/
|
15
|
+
this.aligned = "left";
|
16
|
+
/**
|
17
|
+
* The default column span for grid items.
|
18
|
+
*/
|
19
|
+
this.defaultColSpan = 1;
|
20
|
+
/**
|
21
|
+
* The default column width for grid items.
|
22
|
+
* This is used when the grid type is set to "fixed".
|
23
|
+
*/
|
24
|
+
this.defaultColWidth = "64px";
|
25
|
+
/**
|
26
|
+
* The default row span for grid items.
|
27
|
+
*/
|
28
|
+
this.defaultRowSpan = 1;
|
29
|
+
/**
|
30
|
+
* If `true`, the standard vertical padding from the grid will be removed.
|
31
|
+
*/
|
32
|
+
this.fullHeight = false;
|
33
|
+
/**
|
34
|
+
* The space between grid items, in multiples of the base spacing unit (`var(--ic-space-xs)`).
|
35
|
+
*/
|
36
|
+
this.gridSpacing = 2;
|
37
|
+
/**
|
38
|
+
* The number of rows in the grid.
|
39
|
+
*/
|
40
|
+
this.rows = 1;
|
41
|
+
/**
|
42
|
+
* The layout type of the grid.
|
43
|
+
*/
|
44
|
+
this.type = "fixed";
|
45
|
+
this.getColumns = () => {
|
46
|
+
if (typeof this.columns === "number") {
|
47
|
+
this.el.style.setProperty("--ic-layout-grid-columns", this.columns.toString());
|
48
|
+
}
|
49
|
+
else if (typeof this.columns === "object") {
|
50
|
+
Object.entries(this.columns).forEach(([breakpoint, value]) => {
|
51
|
+
if (value !== undefined) {
|
52
|
+
this.el.style.setProperty(`--ic-layout-grid-columns-${breakpoint}`, value.toString());
|
53
|
+
}
|
54
|
+
});
|
55
|
+
}
|
56
|
+
};
|
57
|
+
this.getColSpan = () => {
|
58
|
+
if (this.defaultColSpan !== undefined) {
|
59
|
+
if (typeof this.defaultColSpan === "number") {
|
60
|
+
Array.from(this.el.children).forEach((child) => {
|
61
|
+
child.style.setProperty("--ic-layout-grid-col-span", `${this.defaultColSpan}`);
|
62
|
+
});
|
63
|
+
}
|
64
|
+
else if (typeof this.defaultColSpan === "object") {
|
65
|
+
Object.entries(this.defaultColSpan).forEach(([breakpoint, value]) => {
|
66
|
+
if (value !== undefined) {
|
67
|
+
this.el.style.setProperty(`--ic-layout-grid-col-span-${breakpoint}`, value.toString());
|
68
|
+
}
|
69
|
+
});
|
70
|
+
}
|
71
|
+
}
|
72
|
+
};
|
73
|
+
this.getGridSpacing = () => {
|
74
|
+
this.el.style.setProperty("--ic-layout-grid-spacing", `calc(var(--ic-space-xs) * ${this.gridSpacing})`);
|
75
|
+
};
|
76
|
+
}
|
77
|
+
watchColumns() {
|
78
|
+
this.getColumns();
|
79
|
+
}
|
80
|
+
watchDefaultColSpan() {
|
81
|
+
this.getColSpan();
|
82
|
+
}
|
83
|
+
watchDefaultColWidth(newValue) {
|
84
|
+
if (this.type === "fixed") {
|
85
|
+
this.el.style.setProperty(this.COL_WIDTH_CSS_PROP, newValue);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
watchDefaultRowSpan(newValue) {
|
89
|
+
this.el.style.setProperty("--ic-layout-grid-row-span", `${newValue}`);
|
90
|
+
}
|
91
|
+
watchGridSpacing() {
|
92
|
+
this.getGridSpacing();
|
93
|
+
}
|
94
|
+
watchRows(newValue) {
|
95
|
+
this.el.style.setProperty("--ic-layout-grid-rows", `${newValue}`);
|
96
|
+
}
|
97
|
+
watchType(newValue) {
|
98
|
+
this.getColumns();
|
99
|
+
if (newValue === "fixed" && this.defaultColWidth) {
|
100
|
+
this.el.style.setProperty(this.COL_WIDTH_CSS_PROP, this.defaultColWidth);
|
101
|
+
}
|
102
|
+
else {
|
103
|
+
this.el.style.removeProperty(this.COL_WIDTH_CSS_PROP);
|
104
|
+
}
|
105
|
+
}
|
106
|
+
componentWillLoad() {
|
107
|
+
if (this.columns === undefined) {
|
108
|
+
if (this.type === "fixed") {
|
109
|
+
this.columns = 12;
|
110
|
+
}
|
111
|
+
else if (this.type === "fluid") {
|
112
|
+
this.columns = {
|
113
|
+
xs: 2,
|
114
|
+
sm: 4,
|
115
|
+
md: 8,
|
116
|
+
lg: 12,
|
117
|
+
xl: 12,
|
118
|
+
};
|
119
|
+
}
|
120
|
+
}
|
121
|
+
this.getColumns();
|
122
|
+
this.getColSpan();
|
123
|
+
this.getGridSpacing();
|
124
|
+
if (this.type === "fixed" && this.defaultColWidth) {
|
125
|
+
this.el.style.setProperty(this.COL_WIDTH_CSS_PROP, this.defaultColWidth);
|
126
|
+
}
|
127
|
+
if (this.rows) {
|
128
|
+
this.el.style.setProperty("--ic-layout-grid-rows", `${this.rows}`);
|
129
|
+
this.el.style.setProperty("--ic-layout-grid-row-span", `${this.defaultRowSpan}`);
|
130
|
+
}
|
131
|
+
}
|
132
|
+
render() {
|
133
|
+
const { aligned, fullHeight } = this;
|
134
|
+
return (h(Host, { key: '95699906353df84f439ec7c7ed628f4ba9c80b4e', class: {
|
135
|
+
[`ic-layout-grid-aligned-${aligned}`]: true,
|
136
|
+
["ic-layout-grid-no-vertical-padding"]: !!fullHeight,
|
137
|
+
} }, h("slot", { key: '5642340495e02e53b2e7248e0f254b32b95b3b3f' })));
|
138
|
+
}
|
139
|
+
get el() { return this; }
|
140
|
+
static get watchers() { return {
|
141
|
+
"columns": ["watchColumns"],
|
142
|
+
"defaultColSpan": ["watchDefaultColSpan"],
|
143
|
+
"defaultColWidth": ["watchDefaultColWidth"],
|
144
|
+
"defaultRowSpan": ["watchDefaultRowSpan"],
|
145
|
+
"gridSpacing": ["watchGridSpacing"],
|
146
|
+
"rows": ["watchRows"],
|
147
|
+
"type": ["watchType"]
|
148
|
+
}; }
|
149
|
+
static get style() { return IcLayoutGridStyle0; }
|
150
|
+
}, [1, "ic-layout-grid", {
|
151
|
+
"aligned": [1],
|
152
|
+
"columns": [2],
|
153
|
+
"defaultColSpan": [2, "default-col-span"],
|
154
|
+
"defaultColWidth": [1, "default-col-width"],
|
155
|
+
"defaultRowSpan": [2, "default-row-span"],
|
156
|
+
"fullHeight": [4, "full-height"],
|
157
|
+
"gridSpacing": [2, "grid-spacing"],
|
158
|
+
"rows": [2],
|
159
|
+
"type": [1]
|
160
|
+
}, undefined, {
|
161
|
+
"columns": ["watchColumns"],
|
162
|
+
"defaultColSpan": ["watchDefaultColSpan"],
|
163
|
+
"defaultColWidth": ["watchDefaultColWidth"],
|
164
|
+
"defaultRowSpan": ["watchDefaultRowSpan"],
|
165
|
+
"gridSpacing": ["watchGridSpacing"],
|
166
|
+
"rows": ["watchRows"],
|
167
|
+
"type": ["watchType"]
|
168
|
+
}]);
|
169
|
+
function defineCustomElement$1() {
|
170
|
+
if (typeof customElements === "undefined") {
|
171
|
+
return;
|
172
|
+
}
|
173
|
+
const components = ["ic-layout-grid"];
|
174
|
+
components.forEach(tagName => { switch (tagName) {
|
175
|
+
case "ic-layout-grid":
|
176
|
+
if (!customElements.get(tagName)) {
|
177
|
+
customElements.define(tagName, LayoutGrid);
|
178
|
+
}
|
179
|
+
break;
|
180
|
+
} });
|
181
|
+
}
|
182
|
+
|
183
|
+
const IcLayoutGrid = LayoutGrid;
|
184
|
+
const defineCustomElement = defineCustomElement$1;
|
185
|
+
|
186
|
+
export { IcLayoutGrid, defineCustomElement };
|
187
|
+
|
188
|
+
//# sourceMappingURL=ic-layout-grid.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"ic-layout-grid.js","mappings":";;AAAA,MAAM,eAAe,GAAG,q/IAAq/I,CAAC;AAC9gJ,2BAAe,eAAe;;MCQjB,UAAU;IALvB;;;;QAMU,uBAAkB,GAAG,4BAA4B,CAAC;;;;QAOlD,YAAO,GAAiB,MAAM,CAAC;;;;QAe/B,mBAAc,GAAuB,CAAC,CAAC;;;;;QAUvC,oBAAe,GAAY,MAAM,CAAC;;;;QAWlC,mBAAc,GAAY,CAAC,CAAC;;;;QAS5B,eAAU,GAAa,KAAK,CAAC;;;;QAK7B,gBAAW,GAAY,CAAC,CAAC;;;;QASzB,SAAI,GAAY,CAAC,CAAC;;;;QASlB,SAAI,GAAe,OAAO,CAAC;QAwC3B,eAAU,GAAG;YACnB,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,EAAE;gBACpC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CACvB,0BAA0B,EAC1B,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CACxB,CAAC;aACH;iBAAM,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,EAAE;gBAC3C,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,EAAE,KAAK,CAAC;oBACvD,IAAI,KAAK,KAAK,SAAS,EAAE;wBACvB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CACvB,4BAA4B,UAAU,EAAE,EACxC,KAAK,CAAC,QAAQ,EAAE,CACjB,CAAC;qBACH;iBACF,CAAC,CAAC;aACJ;SACF,CAAC;QAEM,eAAU,GAAG;YACnB,IAAI,IAAI,CAAC,cAAc,KAAK,SAAS,EAAE;gBACrC,IAAI,OAAO,IAAI,CAAC,cAAc,KAAK,QAAQ,EAAE;oBAC1C,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAmB,CAAC,OAAO,CAAC,CAAC,KAAK;wBAC5D,KAAK,CAAC,KAAK,CAAC,WAAW,CACrB,2BAA2B,EAC3B,GAAG,IAAI,CAAC,cAAc,EAAE,CACzB,CAAC;qBACH,CAAC,CAAC;iBACJ;qBAAM,IAAI,OAAO,IAAI,CAAC,cAAc,KAAK,QAAQ,EAAE;oBAClD,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,EAAE,KAAK,CAAC;wBAC9D,IAAI,KAAK,KAAK,SAAS,EAAE;4BACvB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CACvB,6BAA6B,UAAU,EAAE,EACzC,KAAK,CAAC,QAAQ,EAAE,CACjB,CAAC;yBACH;qBACF,CAAC,CAAC;iBACJ;aACF;SACF,CAAC;QAEM,mBAAc,GAAG;YACvB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CACvB,0BAA0B,EAC1B,6BAA6B,IAAI,CAAC,WAAW,GAAG,CACjD,CAAC;SACH,CAAC;KAgBH;IAjKC,YAAY;QACV,IAAI,CAAC,UAAU,EAAE,CAAC;KACnB;IAOD,mBAAmB;QACjB,IAAI,CAAC,UAAU,EAAE,CAAC;KACnB;IAQD,oBAAoB,CAAC,QAAgB;QACnC,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;YACzB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC;SAC9D;KACF;IAOD,mBAAmB,CAAC,QAAgB;QAClC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,2BAA2B,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC;KACvE;IAYD,gBAAgB;QACd,IAAI,CAAC,cAAc,EAAE,CAAC;KACvB;IAOD,SAAS,CAAC,QAAgB;QACxB,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,uBAAuB,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC;KACnE;IAOD,SAAS,CAAC,QAAoB;QAC5B,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,IAAI,QAAQ,KAAK,OAAO,IAAI,IAAI,CAAC,eAAe,EAAE;YAChD,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;SAC1E;aAAM;YACL,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;SACvD;KACF;IAED,iBAAiB;QACf,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,EAAE;YAC9B,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;gBACzB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;aACnB;iBAAM,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;gBAChC,IAAI,CAAC,OAAO,GAAG;oBACb,EAAE,EAAE,CAAC;oBACL,EAAE,EAAE,CAAC;oBACL,EAAE,EAAE,CAAC;oBACL,EAAE,EAAE,EAAE;oBACN,EAAE,EAAE,EAAE;iBACP,CAAC;aACH;SACF;QACD,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,IAAI,CAAC,eAAe,EAAE;YACjD,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;SAC1E;QACD,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,uBAAuB,EAAE,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YACnE,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CACvB,2BAA2B,EAC3B,GAAG,IAAI,CAAC,cAAc,EAAE,CACzB,CAAC;SACH;KACF;IAiDD,MAAM;QACJ,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;QAErC,QACE,EAAC,IAAI,qDACH,KAAK,EAAE;gBACL,CAAC,0BAA0B,OAAO,EAAE,GAAG,IAAI;gBAC3C,CAAC,oCAAoC,GAAG,CAAC,CAAC,UAAU;aACrD,IAED,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/ic-layout-grid/ic-layout-grid.css?tag=ic-layout-grid&encapsulation=shadow","src/components/ic-layout-grid/ic-layout-grid.tsx"],"sourcesContent":["@import \"../../global/normalize.css\";\n\n:host {\n display: grid;\n width: fit-content;\n grid-template-columns: repeat(\n var(--ic-layout-grid-columns),\n var(--ic-layout-grid-col-width, 1fr)\n );\n grid-template-rows: repeat(var(--ic-layout-grid-rows), 1fr);\n gap: var(--ic-layout-grid-spacing);\n padding-top: var(--ic-layout-grid-margin);\n padding-bottom: var(--ic-layout-grid-margin);\n}\n\n:host ::slotted(*) {\n grid-column: span var(--ic-layout-grid-col-span, 1);\n grid-row: span var(--ic-layout-grid-row-span, 1);\n}\n\n:host(.ic-layout-grid-aligned-center) {\n margin-left: auto;\n margin-right: auto;\n padding-left: var(--ic-layout-grid-margin);\n padding-right: var(--ic-layout-grid-margin);\n}\n\n:host(.ic-layout-grid-aligned-left) {\n margin-left: var(--ic-layout-grid-margin);\n margin-right: auto;\n padding-right: var(--ic-layout-grid-margin);\n}\n\n:host(.ic-layout-grid-aligned-full-width) {\n margin-left: var(--ic-layout-grid-margin);\n margin-right: var(--ic-layout-grid-margin);\n width: calc(100% - (var(--ic-layout-grid-margin) * 2));\n}\n\n:host(.ic-layout-grid-no-vertical-padding) {\n padding-top: 0;\n padding-bottom: 0;\n}\n\n@media only screen and (max-width: 576px) {\n :host {\n --ic-layout-grid-margin: var(--ic-space-xs);\n --ic-layout-grid-columns: var(--ic-layout-grid-columns-xs);\n }\n\n :host ::slotted(*) {\n --ic-layout-grid-col-span: var(--ic-layout-grid-col-span-xs);\n }\n}\n\n@media only screen and (min-width: 577px) {\n :host {\n --ic-layout-grid-margin: var(--ic-space-md);\n --ic-layout-grid-columns: var(--ic-layout-grid-columns-sm);\n }\n\n :host ::slotted(*) {\n --ic-layout-grid-col-span: var(--ic-layout-grid-col-span-sm);\n }\n}\n\n@media only screen and (min-width: 769px) {\n :host {\n --ic-layout-grid-margin: var(--ic-space-md);\n --ic-layout-grid-columns: var(--ic-layout-grid-columns-md);\n }\n\n :host ::slotted(*) {\n --ic-layout-grid-col-span: var(--ic-layout-grid-col-span-md);\n }\n}\n\n@media only screen and (min-width: 993px) {\n :host {\n --ic-layout-grid-margin: var(--ic-space-md);\n --ic-layout-grid-columns: var(--ic-layout-grid-columns-lg);\n }\n\n :host ::slotted(*) {\n --ic-layout-grid-col-span: var(--ic-layout-grid-col-span-lg);\n }\n}\n\n@media only screen and (min-width: 1201px) {\n :host {\n --ic-layout-grid-margin: var(--ic-space-lg);\n --ic-layout-grid-columns: var(--ic-layout-grid-columns-xl);\n }\n\n :host ::slotted(*) {\n --ic-layout-grid-col-span: var(--ic-layout-grid-col-span-xl);\n }\n}\n","import { Component, Prop, Host, h, Element, Watch } from \"@stencil/core\";\nimport { IcAlignment } from \"../../utils/types\";\nimport { IcGridBreakpoints, IcGridType } from \"./ic-layout-grid.types\";\n\n@Component({\n tag: \"ic-layout-grid\",\n styleUrl: \"ic-layout-grid.css\",\n shadow: true,\n})\nexport class LayoutGrid {\n private COL_WIDTH_CSS_PROP = \"--ic-layout-grid-col-width\";\n\n @Element() el: HTMLIcLayoutGridElement;\n\n /**\n * The alignment of the grid.\n */\n @Prop() aligned?: IcAlignment = \"left\";\n\n /**\n * The number of columns in the grid.\n * This can be a number or an object specifying different values for each breakpoint.\n */\n @Prop() columns?: IcGridBreakpoints;\n @Watch(\"columns\")\n watchColumns() {\n this.getColumns();\n }\n\n /**\n * The default column span for grid items.\n */\n @Prop() defaultColSpan?: IcGridBreakpoints = 1;\n @Watch(\"defaultColSpan\")\n watchDefaultColSpan() {\n this.getColSpan();\n }\n\n /**\n * The default column width for grid items.\n * This is used when the grid type is set to \"fixed\".\n */\n @Prop() defaultColWidth?: string = \"64px\";\n @Watch(\"defaultColWidth\")\n watchDefaultColWidth(newValue: string) {\n if (this.type === \"fixed\") {\n this.el.style.setProperty(this.COL_WIDTH_CSS_PROP, newValue);\n }\n }\n\n /**\n * The default row span for grid items.\n */\n @Prop() defaultRowSpan?: number = 1;\n @Watch(\"defaultRowSpan\")\n watchDefaultRowSpan(newValue: number) {\n this.el.style.setProperty(\"--ic-layout-grid-row-span\", `${newValue}`);\n }\n\n /**\n * If `true`, the standard vertical padding from the grid will be removed.\n */\n @Prop() fullHeight?: boolean = false;\n\n /**\n * The space between grid items, in multiples of the base spacing unit (`var(--ic-space-xs)`).\n */\n @Prop() gridSpacing?: number = 2;\n @Watch(\"gridSpacing\")\n watchGridSpacing() {\n this.getGridSpacing();\n }\n\n /**\n * The number of rows in the grid.\n */\n @Prop() rows?: number = 1;\n @Watch(\"rows\")\n watchRows(newValue: number) {\n this.el.style.setProperty(\"--ic-layout-grid-rows\", `${newValue}`);\n }\n\n /**\n * The layout type of the grid.\n */\n @Prop() type: IcGridType = \"fixed\";\n @Watch(\"type\")\n watchType(newValue: IcGridType) {\n this.getColumns();\n if (newValue === \"fixed\" && this.defaultColWidth) {\n this.el.style.setProperty(this.COL_WIDTH_CSS_PROP, this.defaultColWidth);\n } else {\n this.el.style.removeProperty(this.COL_WIDTH_CSS_PROP);\n }\n }\n\n componentWillLoad(): void {\n if (this.columns === undefined) {\n if (this.type === \"fixed\") {\n this.columns = 12;\n } else if (this.type === \"fluid\") {\n this.columns = {\n xs: 2,\n sm: 4,\n md: 8,\n lg: 12,\n xl: 12,\n };\n }\n }\n this.getColumns();\n this.getColSpan();\n this.getGridSpacing();\n if (this.type === \"fixed\" && this.defaultColWidth) {\n this.el.style.setProperty(this.COL_WIDTH_CSS_PROP, this.defaultColWidth);\n }\n if (this.rows) {\n this.el.style.setProperty(\"--ic-layout-grid-rows\", `${this.rows}`);\n this.el.style.setProperty(\n \"--ic-layout-grid-row-span\",\n `${this.defaultRowSpan}`\n );\n }\n }\n\n private getColumns = () => {\n if (typeof this.columns === \"number\") {\n this.el.style.setProperty(\n \"--ic-layout-grid-columns\",\n this.columns.toString()\n );\n } else if (typeof this.columns === \"object\") {\n Object.entries(this.columns).forEach(([breakpoint, value]) => {\n if (value !== undefined) {\n this.el.style.setProperty(\n `--ic-layout-grid-columns-${breakpoint}`,\n value.toString()\n );\n }\n });\n }\n };\n\n private getColSpan = () => {\n if (this.defaultColSpan !== undefined) {\n if (typeof this.defaultColSpan === \"number\") {\n (Array.from(this.el.children) as HTMLElement[]).forEach((child) => {\n child.style.setProperty(\n \"--ic-layout-grid-col-span\",\n `${this.defaultColSpan}`\n );\n });\n } else if (typeof this.defaultColSpan === \"object\") {\n Object.entries(this.defaultColSpan).forEach(([breakpoint, value]) => {\n if (value !== undefined) {\n this.el.style.setProperty(\n `--ic-layout-grid-col-span-${breakpoint}`,\n value.toString()\n );\n }\n });\n }\n }\n };\n\n private getGridSpacing = () => {\n this.el.style.setProperty(\n \"--ic-layout-grid-spacing\",\n `calc(var(--ic-space-xs) * ${this.gridSpacing})`\n );\n };\n\n render() {\n const { aligned, fullHeight } = this;\n\n return (\n <Host\n class={{\n [`ic-layout-grid-aligned-${aligned}`]: true,\n [\"ic-layout-grid-no-vertical-padding\"]: !!fullHeight,\n }}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
@@ -93,7 +93,7 @@ const Link = /*@__PURE__*/ proxyCustomElement(class Link extends HTMLElement {
|
|
93
93
|
}
|
94
94
|
render() {
|
95
95
|
const { download, href, hreflang, referrerpolicy, rel, target, monochrome, theme, } = this;
|
96
|
-
return (h(Host, { key: '
|
96
|
+
return (h(Host, { key: '21143018ec29344c665ecc6ffdc7ca033eb6fd18', class: {
|
97
97
|
["ic-link"]: true,
|
98
98
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
99
99
|
["ic-link-monochrome"]: !!monochrome,
|
@@ -187,23 +187,23 @@ const LoadingIndicator = /*@__PURE__*/ proxyCustomElement(class LoadingIndicator
|
|
187
187
|
}
|
188
188
|
render() {
|
189
189
|
const { circularDiameter, circularDimensions: { x, y, r, dashArray, dashOffset }, description, fullWidth, indicatorLabel, innerLabel, label, max, min, monochrome, progress, size, theme, type, } = this;
|
190
|
-
return (h(Host, { key: '
|
190
|
+
return (h(Host, { key: '413c553dc741429027e834c352171bc538bad4e5', class: {
|
191
191
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
192
192
|
"ic-loading-indicator-full-width": fullWidth,
|
193
193
|
"ic-loading-indicator-label": !!label,
|
194
194
|
"ic-loading-indicator-monochrome": monochrome,
|
195
|
-
} }, h("div", { key: '
|
195
|
+
} }, h("div", { key: '988482262c2ce8269f8e10706f2455ee94fbed4c', class: "ic-loading-container", part: "ic-loading-container" }, h("div", { key: '93e2878a03795a8e5fd65e85cc586f8de22ec764', ref: (el) => (this.outerElement = el), class: {
|
196
196
|
[`ic-loading-${type}-outer`]: true,
|
197
197
|
[progress === undefined ? "indeterminate" : "determinate"]: true,
|
198
|
-
}, 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: '
|
198
|
+
}, 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: '1d4f9ebc1ee51844d0357c5629a9dc69aac0f16c', ref: (el) => (this.innerElement = el), class: {
|
199
199
|
[`ic-loading-${type}-inner`]: true,
|
200
200
|
"inner-label": !!innerLabel,
|
201
|
-
} }, innerLabel && size === "small" && (h("ic-typography", { key: '
|
201
|
+
} }, innerLabel && size === "small" && (h("ic-typography", { key: '85269ef476f8ee423e4a14383445cfa4b0256556', variant: "subtitle-small", class: "inner-text" }, innerLabel)), type === "circular" && (h("svg", { key: 'd3f423cd9659b735184d6657127c8626cc9cf4a3', class: "ic-loading-circular-svg", viewBox: `0 0 ${circularDiameter} ${circularDiameter}` }, h("circle", { key: '060c4d530c2e27309fbe6513eb2497ae91bcdb6a', cx: x, cy: y, r: r }), h("circle", { key: 'e4b17ca2492a92fe99561193250bb9fb4a8cf960', style: {
|
202
202
|
"--circular-steps-max": progress ? `${max}` : undefined,
|
203
203
|
"--progress-value": progress !== undefined ? `${progress}` : undefined,
|
204
204
|
"--stroke-dasharray": dashArray,
|
205
205
|
"--stroke-dashoffset": dashOffset,
|
206
|
-
}, cx: x, cy: y, r: r }))))), label && size !== "icon" && (h("ic-typography", { key: '
|
206
|
+
}, cx: x, cy: y, r: r }))))), label && size !== "icon" && (h("ic-typography", { key: '22f1b492ebc832a2ea60ffbefd9790c1f85b2c90', id: "ic-loading-label", class: "ic-loading-label", role: "alert", variant: this.getLabelVariant() }, h("p", { key: 'e513e1965e25987826a872c991faec17c17db505' }, indicatorLabel))))));
|
207
207
|
}
|
208
208
|
get el() { return this; }
|
209
209
|
static get watchers() { return {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
2
|
-
import {
|
2
|
+
import { m as isPropDefined } from './helpers.js';
|
3
3
|
import { d as defineCustomElement$2 } from './ic-typography2.js';
|
4
4
|
|
5
5
|
const icMenuGroupCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:flex;flex-direction:column}ic-typography{--ic-typography-color:var(--ic-popover-parent-label);margin:var(--ic-space-xs) var(--ic-space-xs) 0}ul{list-style-type:none;margin:0;padding:0}hr{display:flex;align-self:stretch;border:calc(var(--ic-space-xxxs) / 2) solid var(--ic-popover-border);margin:var(--ic-space-xxs) 0 calc(var(--ic-space-sm) / 4)}";
|
@@ -13,7 +13,7 @@ const MenuGroup = /*@__PURE__*/ proxyCustomElement(class MenuGroup extends HTMLE
|
|
13
13
|
}
|
14
14
|
render() {
|
15
15
|
const parentMenu = this.el.closest("ic-popover-menu");
|
16
|
-
return (h(Host, { key: '
|
16
|
+
return (h(Host, { key: 'e80513cbfafcba84a75297272b402bfb60acdf80', role: "group", "aria-label": this.label !== null ? this.label : "" }, isPropDefined(this.label) && (h("ic-typography", { key: '726deba27f96a3bdb84856d851e484aab1be1301', variant: "subtitle-small" }, this.label)), h("span", { key: 'a383d9a234af9acceb9a746a891c290225dc8e37', class: "menu-items-wrapper" }, h("slot", { key: '60219f7f2cf0ee516c908a5ed3f45c0d27686293' })), this.el !== (parentMenu === null || parentMenu === void 0 ? void 0 : parentMenu.querySelector("ic-menu-group:last-child")) && (h("hr", { key: '85128f561dcc20d70937c690b9bfc56d34b698b8' }))));
|
17
17
|
}
|
18
18
|
get el() { return this; }
|
19
19
|
static get style() { return IcMenuGroupStyle0; }
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
-
import {
|
2
|
+
import { m as isPropDefined, r as removeDisabledFalse, o as onComponentRequiredPropUndefined, i as isSlotUsed } from './helpers.js';
|
3
3
|
import { c as checkIcon } from './check-icon.js';
|
4
4
|
import { c as chevronIcon } from './chevron-icon.js';
|
5
5
|
import { d as defineCustomElement$4 } from './ic-button2.js';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host } from '@stencil/core/internal/client';
|
2
2
|
import { c as checkIcon } from './check-icon.js';
|
3
|
-
import {
|
3
|
+
import { K as isMacDevice, o as onComponentRequiredPropUndefined, L as getOptionsWithoutGroupTitlesCount } from './helpers.js';
|
4
4
|
import { d as defineCustomElement$4 } from './ic-button2.js';
|
5
5
|
import { d as defineCustomElement$3 } from './ic-loading-indicator2.js';
|
6
6
|
import { c as createPopper, d as defineCustomElement$2 } from './ic-tooltip2.js';
|
@@ -929,7 +929,7 @@ const Menu = /*@__PURE__*/ proxyCustomElement(class Menu extends HTMLElement {
|
|
929
929
|
const { inputLabel, options, menuId, value, fullWidth, hasTimedOut, isLoading, size, open, inputEl, keyboardNav, parentEl, SEARCH_BAR_TAG, multiSelect, } = this;
|
930
930
|
const selectAllButtonText = `${(value === null || value === void 0 ? void 0 : value.length) === this.ungroupedOptions.length ? "Clear" : "Select"} all`;
|
931
931
|
const hasNoResults = this.host.classList.contains("no-results");
|
932
|
-
return (h(Host, { key: '
|
932
|
+
return (h(Host, { key: '61aef706407716bbd85f087d6baeac4e393f5bb5', class: {
|
933
933
|
"ic-menu-full-width": !!fullWidth,
|
934
934
|
"ic-menu-no-focus": ((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) === "INPUT" &&
|
935
935
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) !== SEARCH_BAR_TAG) ||
|
@@ -938,7 +938,7 @@ const Menu = /*@__PURE__*/ proxyCustomElement(class Menu extends HTMLElement {
|
|
938
938
|
[`ic-menu-${size}`]: true,
|
939
939
|
"ic-menu-open": open && options.length !== 0,
|
940
940
|
"ic-menu-multiple": multiSelect,
|
941
|
-
} }, options.length !== 0 && (h("ul", { key: '
|
941
|
+
} }, options.length !== 0 && (h("ul", { key: '5800fadeb848cfad908cdbd2bb7bfd7ecba08811', id: menuId, class: "menu", role: "listbox", "aria-label": `${inputLabel} pop-up`, "aria-multiselectable": multiSelect ? "true" : "false", tabindex: open &&
|
942
942
|
!keyboardNav &&
|
943
943
|
((inputEl === null || inputEl === void 0 ? void 0 : inputEl.tagName) !== "INPUT" ||
|
944
944
|
(parentEl === null || parentEl === void 0 ? void 0 : parentEl.tagName) === SEARCH_BAR_TAG)
|
@@ -966,7 +966,7 @@ const Menu = /*@__PURE__*/ proxyCustomElement(class Menu extends HTMLElement {
|
|
966
966
|
multiSelect &&
|
967
967
|
!isLoading &&
|
968
968
|
!hasTimedOut &&
|
969
|
-
!hasNoResults && (h("div", { key: '
|
969
|
+
!hasNoResults && (h("div", { key: '3036b8e8b5727e354d45e9ae4a64a5e61b0caf59', class: "option-bar" }, h("ic-typography", { key: 'a797367880dd2a45638c65dcb353e6b4892e5db0' }, h("p", { key: 'ba309efe02198f93aa62329cf99d05e2e538434d' }, `${value ? value.length : 0}/${getOptionsWithoutGroupTitlesCount(this.options)} selected`)), h("ic-button", { key: '785eba9a6e82e745c7f4ccb054a1fbaf87df281e', 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)))));
|
970
970
|
}
|
971
971
|
get host() { return this; }
|
972
972
|
static get watchers() { return {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
2
|
-
import { b as inheritAttributes, o as onComponentRequiredPropUndefined,
|
2
|
+
import { b as inheritAttributes, o as onComponentRequiredPropUndefined, M as getElementInheritedTheme, l as getBrandForegroundAppearance, e as IcBrandForegroundEnum, i as isSlotUsed, I as IC_INHERITED_ARIA } from './helpers.js';
|
3
3
|
import { d as defineCustomElement$5 } from './ic-button2.js';
|
4
4
|
import { d as defineCustomElement$4 } from './ic-loading-indicator2.js';
|
5
5
|
import { d as defineCustomElement$3 } from './ic-tooltip2.js';
|
@@ -110,11 +110,11 @@ const NavigationButton = /*@__PURE__*/ proxyCustomElement(class NavigationButton
|
|
110
110
|
target,
|
111
111
|
theme,
|
112
112
|
};
|
113
|
-
return (h(Host, { key: '
|
113
|
+
return (h(Host, { key: '6d5b61877075117e4e5a88b0d1edf1cf986f4bcd', class: {
|
114
114
|
"in-side-menu": isMenuMode,
|
115
115
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
116
116
|
dark: parentThemeDark,
|
117
|
-
} }, h("ic-button", Object.assign({ key: '
|
117
|
+
} }, h("ic-button", Object.assign({ key: 'd1e885683fd648f260bec94656aeb818497899e2', ref: (el) => (this.buttonEl = el), class: { "popout-menu-button": isMenuMode }, "aria-label": !isMenuMode ? label : null, disableTooltip: isMenuMode, fullWidth: isMenuMode, monochrome: !isMenuMode, size: isMenuMode ? "medium" : "large", variant: isMenuMode ? "tertiary" : "icon-tertiary" }, buttonProps, inheritedAttributes), isMenuMode ? label : "", h("slot", { key: 'c3ae147f7bccd4f10f9259d442b86636c1a332ca', slot: "left-icon", name: "icon" }), isSlotUsed(this.el, "badge") && h("slot", { key: 'f5f961eb88638804430696e0e5b3424ad3b9ac6c', name: "badge" }))));
|
118
118
|
}
|
119
119
|
static get delegatesFocus() { return true; }
|
120
120
|
get el() { return this; }
|