@ukic/web-components 3.24.0 → 3.25.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 +16 -8
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-horizontal.cjs.entry.js +5 -5
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-checkbox.cjs.entry.js +4 -4
- 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 +4 -4
- 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-component-container_3.cjs.entry.js.map +1 -1
- 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-bar.cjs.entry.js +5 -5
- package/dist/cjs/ic-pagination-item.cjs.entry.js +1 -1
- package/dist/cjs/ic-pagination_3.cjs.entry.js +24 -24
- 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-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 +6 -8
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-theme.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +5 -5
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/ic-typography.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-card-horizontal/ic-card-horizontal.js +5 -5
- 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-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.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.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-bar/ic-pagination-bar.js +5 -5
- 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 +10 -10
- package/dist/collection/components/ic-section-container/ic-section-container.js +2 -2
- package/dist/collection/components/ic-select/ic-select.js +15 -15
- 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.css +108 -43
- package/dist/collection/components/ic-switch/ic-switch.js +9 -11
- package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
- package/dist/collection/components/ic-switch/ic-switch.stories.js +8 -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 +5 -5
- package/dist/collection/components/ic-theme/ic-theme.js +1 -1
- package/dist/collection/components/ic-toast/ic-toast.js +5 -5
- package/dist/collection/components/ic-toast-region/ic-toast-region.js +1 -1
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +2 -2
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +2 -2
- package/dist/collection/components/ic-tooltip/ic-tooltip.css +21 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +33 -3
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
- package/dist/collection/components/ic-tooltip/ic-tooltip.stories.js +128 -6
- package/dist/collection/components/ic-typography/ic-typography.js +2 -2
- package/dist/components/helpers.js +1 -1
- package/dist/components/ic-action-chip.js +1 -1
- package/dist/components/ic-alert.js +1 -1
- package/dist/components/ic-card-horizontal.js +6 -6
- package/dist/components/ic-card-vertical.js +1 -1
- package/dist/components/ic-checkbox-group.js +2 -2
- package/dist/components/ic-checkbox.js +4 -4
- package/dist/components/ic-chip.js +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 +3 -3
- package/dist/components/ic-footer-link.js +2 -2
- package/dist/components/ic-footer.js +1 -1
- package/dist/components/ic-hero.js +5 -5
- package/dist/components/ic-horizontal-scroll2.js +5 -5
- 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 +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-menu2.js +4 -4
- package/dist/components/ic-page-header.js +6 -6
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-bar.js +5 -5
- package/dist/components/ic-pagination-bar.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +1 -1
- package/dist/components/ic-pagination2.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-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +9 -9
- package/dist/components/ic-section-container2.js +2 -2
- package/dist/components/ic-select2.js +15 -15
- package/dist/components/ic-side-navigation.js +5 -5
- 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-step.js.map +1 -1
- package/dist/components/ic-stepper.js +2 -2
- package/dist/components/ic-switch.js +6 -8
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +1 -1
- package/dist/components/ic-tab-group.js +2 -2
- package/dist/components/ic-tab-panel.js +2 -2
- package/dist/components/ic-text-field2.js +5 -5
- package/dist/components/ic-theme.js +1 -1
- package/dist/components/ic-toast-region.js +1 -1
- package/dist/components/ic-toast.js +5 -5
- package/dist/components/ic-toggle-button-group.js +2 -2
- package/dist/components/ic-toggle-button.js +2 -2
- package/dist/components/ic-tooltip2.js +13 -4
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-typography2.js +2 -2
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-be0010c0.entry.js → p-023cf5d9.entry.js} +2 -2
- package/dist/core/{p-52be32d7.entry.js → p-171a19bf.entry.js} +3 -3
- package/dist/core/p-171a19bf.entry.js.map +1 -0
- package/dist/core/{p-9da03270.entry.js → p-1cfaa962.entry.js} +2 -2
- package/dist/core/{p-1bacfc3c.entry.js → p-23fb87be.entry.js} +2 -2
- package/dist/core/{p-2a1faef2.entry.js → p-2424f82f.entry.js} +2 -2
- package/dist/core/{p-5d01fefb.entry.js → p-243ae8fe.entry.js} +2 -2
- package/dist/core/{p-aad03a3c.entry.js → p-271ee0bc.entry.js} +2 -2
- package/dist/core/{p-27540e3e.entry.js → p-343670b4.entry.js} +2 -2
- package/dist/core/{p-574ef8c9.entry.js → p-3da9774b.entry.js} +2 -2
- package/dist/core/{p-111abe0f.entry.js → p-3ee66d00.entry.js} +2 -2
- package/dist/core/{p-884af70c.entry.js → p-406647b8.entry.js} +2 -2
- package/dist/core/{p-ee63aaf8.entry.js → p-526dd099.entry.js} +2 -2
- package/dist/core/{p-b2aef77d.entry.js → p-5fc0dc36.entry.js} +2 -2
- package/dist/core/{p-ba80d403.entry.js → p-61799a8b.entry.js} +2 -2
- package/dist/core/{p-7410fde3.entry.js → p-6b5edd6b.entry.js} +2 -2
- package/dist/core/{p-2e15136e.entry.js → p-70ca7796.entry.js} +2 -2
- package/dist/core/{p-570d763b.entry.js → p-72f52f20.entry.js} +2 -2
- package/dist/core/{p-f82baa04.entry.js → p-74a3a450.entry.js} +2 -2
- package/dist/core/{p-c156e6e9.entry.js → p-796fc111.entry.js} +2 -2
- package/dist/core/{p-b52c44eb.entry.js → p-85232cec.entry.js} +2 -2
- package/dist/core/{p-b5e683d0.entry.js → p-85ac0d78.entry.js} +2 -2
- package/dist/core/{p-b4e8e438.entry.js → p-8fc5e9f9.entry.js} +2 -2
- package/dist/core/{p-fe9c3f6e.entry.js → p-9267c160.entry.js} +2 -2
- package/dist/core/{p-b431dd8a.entry.js → p-970e190c.entry.js} +2 -2
- package/dist/core/p-98dee727.entry.js +2 -0
- package/dist/core/p-98dee727.entry.js.map +1 -0
- package/dist/core/{p-4613f697.entry.js → p-99b20121.entry.js} +2 -2
- package/dist/core/{p-59c5265c.entry.js → p-a7c263bd.entry.js} +2 -2
- package/dist/core/{p-4e59d889.entry.js → p-ab104baa.entry.js} +2 -2
- package/dist/core/{p-9502fb86.entry.js → p-b58fb588.entry.js} +2 -2
- package/dist/core/p-bb52e752.entry.js +2 -0
- package/dist/core/p-bb52e752.entry.js.map +1 -0
- package/dist/core/{p-6183ad85.entry.js → p-c0b70c08.entry.js} +2 -2
- package/dist/core/{p-66bfff48.entry.js → p-c41fd2cf.entry.js} +2 -2
- package/dist/core/{p-c9fbad60.entry.js → p-c82c2362.entry.js} +2 -2
- package/dist/core/{p-174a70c4.entry.js → p-ca64b7ba.entry.js} +2 -2
- package/dist/core/{p-cad23b7d.entry.js → p-cd963de6.entry.js} +2 -2
- package/dist/core/{p-83578f1d.entry.js → p-cf87b6db.entry.js} +2 -2
- package/dist/core/{p-dbb1370f.entry.js → p-d0d324b4.entry.js} +2 -2
- package/dist/core/{p-ea890d3d.entry.js → p-d0dd9f2c.entry.js} +2 -2
- package/dist/core/{p-5976de6e.entry.js → p-d1220d2a.entry.js} +2 -2
- package/dist/core/{p-56de4f4b.entry.js → p-d7c6fc8d.entry.js} +2 -2
- package/dist/core/{p-c14ec3e2.entry.js → p-e5266c19.entry.js} +2 -2
- package/dist/core/{p-e8e45d88.entry.js → p-ec1ea1a7.entry.js} +2 -2
- package/dist/core/{p-a6ebe253.entry.js → p-ef96e1aa.entry.js} +2 -2
- package/dist/core/{p-571404d0.entry.js → p-fd9ea62a.entry.js} +2 -2
- package/dist/esm/core.js +1 -1
- package/dist/esm/ic-button_3.entry.js +17 -9
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-horizontal.entry.js +5 -5
- package/dist/esm/ic-checkbox-group.entry.js +2 -2
- package/dist/esm/ic-checkbox.entry.js +4 -4
- 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 +4 -4
- 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-component-container_3.entry.js.map +1 -1
- 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-bar.entry.js +5 -5
- package/dist/esm/ic-pagination-item.entry.js +1 -1
- package/dist/esm/ic-pagination_3.entry.js +24 -24
- 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-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 +6 -8
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +1 -1
- package/dist/esm/ic-tab-group.entry.js +2 -2
- package/dist/esm/ic-tab-panel.entry.js +2 -2
- package/dist/esm/ic-theme.entry.js +1 -1
- package/dist/esm/ic-toast-region.entry.js +1 -1
- package/dist/esm/ic-toast.entry.js +5 -5
- package/dist/esm/ic-toggle-button-group.entry.js +2 -2
- package/dist/esm/ic-toggle-button.entry.js +2 -2
- package/dist/esm/ic-typography.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-switch/ic-switch.d.ts +2 -2
- package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +8 -0
- package/dist/types/components.d.ts +10 -2
- package/hydrate/index.js +181 -171
- package/hydrate/index.mjs +181 -171
- package/package.json +9 -8
- package/vscode-data.json +10 -3
- package/dist/core/p-52be32d7.entry.js.map +0 -1
- package/dist/core/p-75bf2d00.entry.js +0 -2
- package/dist/core/p-75bf2d00.entry.js.map +0 -1
- package/dist/core/p-cc3cda99.entry.js +0 -2
- package/dist/core/p-cc3cda99.entry.js.map +0 -1
- /package/dist/core/{p-be0010c0.entry.js.map → p-023cf5d9.entry.js.map} +0 -0
- /package/dist/core/{p-9da03270.entry.js.map → p-1cfaa962.entry.js.map} +0 -0
- /package/dist/core/{p-1bacfc3c.entry.js.map → p-23fb87be.entry.js.map} +0 -0
- /package/dist/core/{p-2a1faef2.entry.js.map → p-2424f82f.entry.js.map} +0 -0
- /package/dist/core/{p-5d01fefb.entry.js.map → p-243ae8fe.entry.js.map} +0 -0
- /package/dist/core/{p-aad03a3c.entry.js.map → p-271ee0bc.entry.js.map} +0 -0
- /package/dist/core/{p-27540e3e.entry.js.map → p-343670b4.entry.js.map} +0 -0
- /package/dist/core/{p-574ef8c9.entry.js.map → p-3da9774b.entry.js.map} +0 -0
- /package/dist/core/{p-111abe0f.entry.js.map → p-3ee66d00.entry.js.map} +0 -0
- /package/dist/core/{p-884af70c.entry.js.map → p-406647b8.entry.js.map} +0 -0
- /package/dist/core/{p-ee63aaf8.entry.js.map → p-526dd099.entry.js.map} +0 -0
- /package/dist/core/{p-b2aef77d.entry.js.map → p-5fc0dc36.entry.js.map} +0 -0
- /package/dist/core/{p-ba80d403.entry.js.map → p-61799a8b.entry.js.map} +0 -0
- /package/dist/core/{p-7410fde3.entry.js.map → p-6b5edd6b.entry.js.map} +0 -0
- /package/dist/core/{p-2e15136e.entry.js.map → p-70ca7796.entry.js.map} +0 -0
- /package/dist/core/{p-570d763b.entry.js.map → p-72f52f20.entry.js.map} +0 -0
- /package/dist/core/{p-f82baa04.entry.js.map → p-74a3a450.entry.js.map} +0 -0
- /package/dist/core/{p-c156e6e9.entry.js.map → p-796fc111.entry.js.map} +0 -0
- /package/dist/core/{p-b52c44eb.entry.js.map → p-85232cec.entry.js.map} +0 -0
- /package/dist/core/{p-b5e683d0.entry.js.map → p-85ac0d78.entry.js.map} +0 -0
- /package/dist/core/{p-b4e8e438.entry.js.map → p-8fc5e9f9.entry.js.map} +0 -0
- /package/dist/core/{p-fe9c3f6e.entry.js.map → p-9267c160.entry.js.map} +0 -0
- /package/dist/core/{p-b431dd8a.entry.js.map → p-970e190c.entry.js.map} +0 -0
- /package/dist/core/{p-4613f697.entry.js.map → p-99b20121.entry.js.map} +0 -0
- /package/dist/core/{p-59c5265c.entry.js.map → p-a7c263bd.entry.js.map} +0 -0
- /package/dist/core/{p-4e59d889.entry.js.map → p-ab104baa.entry.js.map} +0 -0
- /package/dist/core/{p-9502fb86.entry.js.map → p-b58fb588.entry.js.map} +0 -0
- /package/dist/core/{p-6183ad85.entry.js.map → p-c0b70c08.entry.js.map} +0 -0
- /package/dist/core/{p-66bfff48.entry.js.map → p-c41fd2cf.entry.js.map} +0 -0
- /package/dist/core/{p-c9fbad60.entry.js.map → p-c82c2362.entry.js.map} +0 -0
- /package/dist/core/{p-174a70c4.entry.js.map → p-ca64b7ba.entry.js.map} +0 -0
- /package/dist/core/{p-cad23b7d.entry.js.map → p-cd963de6.entry.js.map} +0 -0
- /package/dist/core/{p-83578f1d.entry.js.map → p-cf87b6db.entry.js.map} +0 -0
- /package/dist/core/{p-dbb1370f.entry.js.map → p-d0d324b4.entry.js.map} +0 -0
- /package/dist/core/{p-ea890d3d.entry.js.map → p-d0dd9f2c.entry.js.map} +0 -0
- /package/dist/core/{p-5976de6e.entry.js.map → p-d1220d2a.entry.js.map} +0 -0
- /package/dist/core/{p-56de4f4b.entry.js.map → p-d7c6fc8d.entry.js.map} +0 -0
- /package/dist/core/{p-c14ec3e2.entry.js.map → p-e5266c19.entry.js.map} +0 -0
- /package/dist/core/{p-e8e45d88.entry.js.map → p-ec1ea1a7.entry.js.map} +0 -0
- /package/dist/core/{p-a6ebe253.entry.js.map → p-ef96e1aa.entry.js.map} +0 -0
- /package/dist/core/{p-571404d0.entry.js.map → p-fd9ea62a.entry.js.map} +0 -0
|
@@ -38,11 +38,11 @@ export class Skeleton {
|
|
|
38
38
|
width: el.style.width || width || DEFAULT_WIDTHS[variant],
|
|
39
39
|
}
|
|
40
40
|
: undefined;
|
|
41
|
-
return (h(Host, { key: '
|
|
41
|
+
return (h(Host, { key: '67c1971600feaaaf5849048b4bc5ad3d4903ffb4', class: {
|
|
42
42
|
skeleton: true,
|
|
43
43
|
"ic-skeleton-circle": variant === "circle",
|
|
44
44
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
45
|
-
}, style: style, "aria-disabled": "true" }, h("slot", { key: '
|
|
45
|
+
}, style: style, "aria-disabled": "true" }, h("slot", { key: 'caf8562f7997131daa69e85d6766b3edf2531259' })));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "ic-skeleton"; }
|
|
48
48
|
static get encapsulation() { return "shadow"; }
|
|
@@ -35,9 +35,9 @@ export class SkipLink {
|
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
37
|
const { fullWidth, inline, label, monochrome, target, theme, transparentBackground, } = this;
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '2f344a07df5cb31b39b5cd4ca8bc257229646b31', class: {
|
|
39
39
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
40
|
-
} }, h("ic-link", { key: '
|
|
40
|
+
} }, h("ic-link", { key: '9b844b5a2f207d08eaa8cbb621d54ed56f5cc28d', class: {
|
|
41
41
|
"display-top": !inline,
|
|
42
42
|
"full-width": !!fullWidth,
|
|
43
43
|
"show-background": !transparentBackground,
|
|
@@ -33,12 +33,12 @@ export class StatusTag {
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
const { label, status, variant, size, announced, theme, uppercase } = this;
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '06426990cc94da53c570547331c63d161675f620', class: { [`ic-theme-${theme}`]: theme !== "inherit" }, role: announced ? "status" : null, "aria-label": "Status" }, h("strong", { key: '2c6d0e05018d59bfc7c1acab4b8ffda5ba4cfce3', class: {
|
|
37
37
|
["tag"]: true,
|
|
38
38
|
[`${variant}-${status}`]: true,
|
|
39
39
|
["outlined"]: variant === "outlined",
|
|
40
40
|
[`${size}`]: true,
|
|
41
|
-
} }, h("ic-typography", { key: '
|
|
41
|
+
} }, h("ic-typography", { key: '3af29b781e35ed4817043d4f2f697f468502189a', variant: uppercase ? "label-uppercase" : "label", "apply-vertical-margins": false }, h("span", { key: '4f4759e8dabfff3d686ed3e4cd3975cc0b0c33b4' }, label)))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "ic-status-tag"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -77,27 +77,27 @@ export class Step {
|
|
|
77
77
|
// STATUS ICON FOR COMPACT STEP
|
|
78
78
|
let statusIcon;
|
|
79
79
|
if (type === "completed" || compactStepStyling === "completed") {
|
|
80
|
-
statusIcon = (h("span", { key: '
|
|
80
|
+
statusIcon = (h("span", { key: '4d1011a9a12449bd324aff3f404522fde6912be3', class: "check-icon step-icon", "aria-hidden": "true", innerHTML: checkIcon }));
|
|
81
81
|
}
|
|
82
82
|
else if (type === "disabled" || compactStepStyling === "disabled") {
|
|
83
|
-
statusIcon = (h("span", { key: '
|
|
83
|
+
statusIcon = (h("span", { key: '7825f61e87546bcaa9100c439239022abb0f3eb7', class: "warning-icon step-icon", "aria-hidden": "true", innerHTML: warningIcon }));
|
|
84
84
|
}
|
|
85
85
|
// COMPACT STEP COMPONENT
|
|
86
|
-
const compactStep = (h("div", { key: '
|
|
86
|
+
const compactStep = (h("div", { key: '82c7c26c90ce286582f7ef477129d2ce241200c1', class: {
|
|
87
87
|
["step"]: true,
|
|
88
88
|
["current"]: !!current,
|
|
89
89
|
[`compact-step-${compactStepStyling}`]: !!compactStepStyling,
|
|
90
90
|
["disabled"]: type === "disabled" || compactStepStyling === "disabled",
|
|
91
|
-
} }, h("ic-loading-indicator", { key: '
|
|
91
|
+
} }, h("ic-loading-indicator", { key: 'd3d1b2aa382bd8b307433f16aa05f644b275902f', class: {
|
|
92
92
|
"compact-step-progress-indicator": true,
|
|
93
93
|
"not-required": type === "disabled" || compactStepStyling === "disabled",
|
|
94
|
-
}, "aria-hidden": "true", size: "small", "inner-label": stepNum, progress: progress }), h("div", { key: '
|
|
94
|
+
}, "aria-hidden": "true", size: "small", "inner-label": stepNum, progress: progress }), h("div", { key: 'd0f78f477b4fe29b2ac33798712b70c0c3d2ce41', class: "heading-area" }, isSlotUsed(this.el, "heading") ? (h("slot", { name: "heading" })) : (h("ic-typography", { variant: "h4", class: "heading" }, heading)), h("div", { key: 'f9a074c126d393ec82cf72621e5941c32dbd72fb', class: "info-line" }, h("ic-typography", { key: '1b6bd91bcb1013fa1e23a9e9af49d3da1f25448e', variant: "caption", class: "step-num" }, `${stepNum} ${icI18n.of} ${lastStepNum}`, h("span", { key: '753bbc4c12a2b968cde11238f46ff4ffbc4f39fd', class: "visually-hidden" }, ` ${icI18n.steps}`)), (this.subheading ||
|
|
95
95
|
type === "completed" ||
|
|
96
96
|
type === "disabled" ||
|
|
97
97
|
(this.variant === "compact" &&
|
|
98
98
|
!!compactStepStyling &&
|
|
99
99
|
compactStepStyling !== "active") ||
|
|
100
|
-
!!status) && (h("div", { key: '
|
|
100
|
+
!!status) && (h("div", { key: '93968f9752cf90df5f67994a3942f38d94323b50', class: "step-status" }, statusIcon !== undefined && statusIcon, (subheading || stepType) && (h("ic-typography", { key: 'd1879f9dc5a7ea2e9b468fc95593056527e08095', variant: "caption" }, subheading !== null && isPropDefined(subheading)
|
|
101
101
|
? subheading
|
|
102
102
|
: type === "disabled" ||
|
|
103
103
|
(variant === "compact" &&
|
|
@@ -110,26 +110,26 @@ export class Step {
|
|
|
110
110
|
// ICON FOR DEFAULT STEP
|
|
111
111
|
let icon;
|
|
112
112
|
if (type !== "completed") {
|
|
113
|
-
icon = (h("ic-typography", { key: '
|
|
113
|
+
icon = (h("ic-typography", { key: 'e76d3c6f2fc82ae27e9f19af2ad29374c75271b1', variant: "subtitle-small" }, h("span", { key: '2ada7f696f0e90ecca298a2109d9aaeb70777a1a', class: "step-icon-inner", "aria-hidden": "true" }, this.stepNum)));
|
|
114
114
|
}
|
|
115
115
|
else {
|
|
116
|
-
icon = (h("div", { key: '
|
|
116
|
+
icon = (h("div", { key: '195a5f5dd31061a4059020d7fa1d65b15eb29a11', class: "step-icon-inner", "aria-hidden": "true" }, h("span", { key: 'd11d3bf512968fa286309bcd69faa20cd12d3396', class: "check-icon", innerHTML: checkIcon })));
|
|
117
117
|
}
|
|
118
118
|
// STEP CONNECT FOR DEFAULT STEP
|
|
119
|
-
const partialBar = type === "current" && (h("div", { key: '
|
|
120
|
-
const finalStep = !lastStep && (h("div", { key: '
|
|
119
|
+
const partialBar = type === "current" && (h("div", { key: '5564ceeb1d40367572f3ae679e7212a2a2a53578', class: "step-connect-inner" }));
|
|
120
|
+
const finalStep = !lastStep && (h("div", { key: 'fae846f5c7d46ad65c7d21a2785526ed6d841444', class: {
|
|
121
121
|
["step-connect"]: true,
|
|
122
122
|
["aligned-full-width"]: !!(((_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains("ic-stepper-default")) &&
|
|
123
123
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
|
124
124
|
} }, partialBar));
|
|
125
125
|
// DEFAULT STEP COMPONENT
|
|
126
|
-
const defaultStep = (h("div", { key: '
|
|
126
|
+
const defaultStep = (h("div", { key: 'f02d7139a59a46207e7bd308cf90ffd42c14a93e', class: {
|
|
127
127
|
["step"]: true,
|
|
128
128
|
[`${type}`]: true,
|
|
129
|
-
} }, h("div", { key: '
|
|
129
|
+
} }, h("div", { key: 'd3cb91eb9ae01c50255fefe75c9cf15dac9899a2', class: "step-top" }, h("div", { key: '71afc47b70d57c6d98aacd824c304e661d97a97d', class: "step-icon" }, icon), finalStep), (hasHeading || subheading || status) && (h("div", { key: '7b11bdfc83c4071d6aff8f026e7ab32f2033a666', class: "heading-area" }, isSlotUsed(this.el, "heading") ? (h("slot", { name: "heading" })) : (h("ic-typography", { variant: "subtitle-large", class: "heading" }, heading)), hasHeading && (subheading || status) && (h("ic-typography", { key: '10da1844c1af5252f89bc59254e23c45c5400a2d', variant: "caption", class: "subheading" }, subheading !== null && isPropDefined(subheading)
|
|
130
130
|
? subheading
|
|
131
131
|
: stepStatus))))));
|
|
132
|
-
return (h(Host, { key: '
|
|
132
|
+
return (h(Host, { key: '6605252cf1e05ba81b2adbcf6e41f2c9c23b1f09', role: "listitem", "aria-label": `${icI18n.step} ${stepNum}${ariaLabel}`, "aria-current": (current || type === "current") && "step", class: {
|
|
133
133
|
["aligned-full-width"]: !!(((_b = this.el.parentElement) === null || _b === void 0 ? void 0 : _b.classList.contains("ic-stepper-default")) &&
|
|
134
134
|
!this.el.parentElement.classList.contains("ic-stepper-aligned-left")),
|
|
135
135
|
[`ic-step-${variant}`]: true,
|
|
@@ -279,11 +279,11 @@ export class Stepper {
|
|
|
279
279
|
checkResizeObserver(this.runResizeObserver);
|
|
280
280
|
}
|
|
281
281
|
render() {
|
|
282
|
-
return (h(Host, { key: '
|
|
282
|
+
return (h(Host, { key: '4fbff633235fba3d0c146427b74d1c4e69cff419', class: {
|
|
283
283
|
[`ic-stepper-${this.variant}`]: true,
|
|
284
284
|
["ic-stepper-aligned-left"]: this.variant === "default" && this.aligned === "left",
|
|
285
285
|
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
|
286
|
-
} }, h("ul", { key: '
|
|
286
|
+
} }, h("ul", { key: '452b6724f1b286aa3ff75fd460cdc4dfa36e8e55', class: "step-item-list" }, h("slot", { key: 'e6e6465ee3c505fab2bbe1c7c502defa7e587571' }))));
|
|
287
287
|
}
|
|
288
288
|
static get is() { return "ic-stepper"; }
|
|
289
289
|
static get encapsulation() { return "shadow"; }
|
|
@@ -468,15 +468,10 @@ input {
|
|
|
468
468
|
margin-bottom: var(--ic-space-xs);
|
|
469
469
|
}
|
|
470
470
|
|
|
471
|
-
.ic-switch-label-small {
|
|
472
|
-
margin-bottom: var(--ic-space-xs);
|
|
473
|
-
}
|
|
474
|
-
|
|
475
471
|
.ic-switch-toggle {
|
|
476
472
|
display: flex;
|
|
477
473
|
align-items: center;
|
|
478
|
-
|
|
479
|
-
width: 4rem;
|
|
474
|
+
width: calc(var(--ic-space-xl) * 2);
|
|
480
475
|
height: var(--ic-space-xl);
|
|
481
476
|
position: relative;
|
|
482
477
|
border-radius: 100vw;
|
|
@@ -485,6 +480,19 @@ input {
|
|
|
485
480
|
box-sizing: border-box;
|
|
486
481
|
transition: var(--ic-transition-duration-fast);
|
|
487
482
|
margin-left: var(--ic-space-xxs);
|
|
483
|
+
gap: calc(var(--ic-space-md) + var(--ic-space-xxs));
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.ic-switch-small .ic-switch-toggle {
|
|
487
|
+
width: var(--ic-space-xxl);
|
|
488
|
+
height: var(--ic-space-lg);
|
|
489
|
+
gap: calc(var(--ic-space-sm) + var(--ic-space-xxxs));
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.ic-switch-large .ic-switch-toggle {
|
|
493
|
+
width: calc(var(--ic-space-xl) + var(--ic-space-xxl));
|
|
494
|
+
height: calc(var(--ic-space-xl) + var(--ic-space-xs));
|
|
495
|
+
gap: calc(var(--ic-space-lg) + var(--ic-space-xxs));
|
|
488
496
|
}
|
|
489
497
|
|
|
490
498
|
.ic-switch-line-break {
|
|
@@ -493,42 +501,70 @@ input {
|
|
|
493
501
|
|
|
494
502
|
.ic-switch-toggle::before {
|
|
495
503
|
content: "";
|
|
496
|
-
width:
|
|
497
|
-
height:
|
|
504
|
+
width: calc(var(--ic-space-sm) * 2);
|
|
505
|
+
height: calc(var(--ic-space-sm) * 2);
|
|
498
506
|
border-radius: 50%;
|
|
499
507
|
position: absolute;
|
|
500
508
|
z-index: 2;
|
|
501
509
|
top: 50%;
|
|
502
|
-
left:
|
|
510
|
+
left: var(--ic-space-xxs);
|
|
503
511
|
transform: translate(0, -50%);
|
|
504
512
|
background-color: var(--ic-switch-unchecked);
|
|
505
513
|
transition: var(--ic-transition-duration-slow);
|
|
506
514
|
}
|
|
507
515
|
|
|
516
|
+
.ic-switch-small .ic-switch-toggle::before {
|
|
517
|
+
width: var(--ic-space-md);
|
|
518
|
+
height: var(--ic-space-md);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.ic-switch-large .ic-switch-toggle::before {
|
|
522
|
+
width: var(--ic-space-xl);
|
|
523
|
+
height: var(--ic-space-xl);
|
|
524
|
+
}
|
|
525
|
+
|
|
508
526
|
.ic-switch-icon {
|
|
509
527
|
display: inline-block;
|
|
510
528
|
vertical-align: middle;
|
|
511
|
-
width:
|
|
512
|
-
height:
|
|
529
|
+
width: var(--ic-space-sm);
|
|
530
|
+
height: var(--ic-space-sm);
|
|
513
531
|
}
|
|
514
532
|
|
|
515
|
-
.ic-switch-icon
|
|
516
|
-
|
|
517
|
-
|
|
533
|
+
.ic-switch-small .ic-switch-icon {
|
|
534
|
+
width: var(--ic-space-xs);
|
|
535
|
+
height: var(--ic-space-xs);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.ic-switch-large .ic-switch-icon {
|
|
539
|
+
width: var(--ic-space-md);
|
|
540
|
+
height: var(--ic-space-md);
|
|
518
541
|
}
|
|
519
542
|
|
|
520
543
|
.ic-switch-icon-circle {
|
|
521
544
|
stroke: var(--ic-switch-indicator-off);
|
|
545
|
+
stroke-width: var(--ic-space-1px);
|
|
522
546
|
}
|
|
523
547
|
|
|
524
548
|
.ic-switch-icon-line {
|
|
525
|
-
|
|
549
|
+
height: var(--ic-space-sm);
|
|
550
|
+
width: var(--ic-space-1px);
|
|
551
|
+
background-color: var(--ic-switch-indicator-on);
|
|
552
|
+
border-radius: 99px;
|
|
553
|
+
margin-left: calc(
|
|
554
|
+
var(--ic-space-md) + var(--ic-space-xxs) - var(--ic-space-1px)
|
|
555
|
+
);
|
|
526
556
|
}
|
|
527
557
|
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
558
|
+
.ic-switch-small .ic-switch-icon-line {
|
|
559
|
+
margin-left: calc(var(--ic-space-md) - var(--ic-space-1px));
|
|
560
|
+
height: var(--ic-space-xs);
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.ic-switch-large .ic-switch-icon-line {
|
|
564
|
+
margin-left: calc(
|
|
565
|
+
var(--ic-space-xs) + var(--ic-space-md) - var(--ic-space-1px)
|
|
566
|
+
);
|
|
567
|
+
height: var(--ic-space-md);
|
|
532
568
|
}
|
|
533
569
|
|
|
534
570
|
.ic-switch-input:checked + .ic-switch-toggle {
|
|
@@ -537,24 +573,35 @@ input {
|
|
|
537
573
|
}
|
|
538
574
|
|
|
539
575
|
.ic-switch-input:checked + .ic-switch-toggle::before {
|
|
540
|
-
transform: translate(var(--ic-space-xl), -50%);
|
|
576
|
+
transform: translate(calc(var(--ic-space-xl) - var(--ic-space-1px)), -50%);
|
|
541
577
|
background-color: var(--ic-switch-checked);
|
|
542
578
|
}
|
|
543
579
|
|
|
580
|
+
.ic-switch-small .ic-switch-input:checked + .ic-switch-toggle::before {
|
|
581
|
+
transform: translate(calc(var(--ic-space-lg) - var(--ic-space-1px)), -50%);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.ic-switch-large .ic-switch-input:checked + .ic-switch-toggle::before {
|
|
585
|
+
transform: translate(
|
|
586
|
+
calc(var(--ic-space-xxl) - var(--ic-space-xs) - var(--ic-space-1px)),
|
|
587
|
+
-50%
|
|
588
|
+
);
|
|
589
|
+
}
|
|
590
|
+
|
|
544
591
|
.ic-switch-input:not([disabled]) + .ic-switch-toggle:hover::before {
|
|
545
|
-
box-shadow: 0 0 0
|
|
592
|
+
box-shadow: 0 0 0 var(--ic-space-sm) var(--ic-switch-unchecked-bg-hover);
|
|
546
593
|
}
|
|
547
594
|
|
|
548
595
|
.ic-switch-input:not([disabled]) + .ic-switch-toggle:active::before {
|
|
549
|
-
box-shadow: 0 0 0
|
|
596
|
+
box-shadow: 0 0 0 var(--ic-space-sm) var(--ic-switch-unchecked-bg-pressed);
|
|
550
597
|
}
|
|
551
598
|
|
|
552
599
|
.ic-switch-input:not([disabled]):checked + .ic-switch-toggle:hover::before {
|
|
553
|
-
box-shadow: 0 0 0
|
|
600
|
+
box-shadow: 0 0 0 var(--ic-space-sm) var(--ic-switch-checked-bg-hover);
|
|
554
601
|
}
|
|
555
602
|
|
|
556
603
|
.ic-switch-input:not([disabled]):checked + .ic-switch-toggle:active::before {
|
|
557
|
-
box-shadow: 0 0 0
|
|
604
|
+
box-shadow: 0 0 0 var(--ic-space-sm) var(--ic-switch-checked-bg-pressed);
|
|
558
605
|
}
|
|
559
606
|
|
|
560
607
|
.ic-switch-input:focus:not([disabled]) + .ic-switch-toggle,
|
|
@@ -571,7 +618,7 @@ input {
|
|
|
571
618
|
}
|
|
572
619
|
|
|
573
620
|
.ic-switch-disabled .ic-switch-icon-line {
|
|
574
|
-
|
|
621
|
+
background-color: var(--ic-switch-indicator-on-disabled);
|
|
575
622
|
}
|
|
576
623
|
|
|
577
624
|
.ic-switch-input:disabled + .ic-switch-toggle {
|
|
@@ -593,27 +640,27 @@ input {
|
|
|
593
640
|
background-color: var(--ic-switch-checked);
|
|
594
641
|
}
|
|
595
642
|
|
|
596
|
-
.ic-switch-small .ic-switch-toggle {
|
|
597
|
-
width: var(--ic-space-xxl);
|
|
598
|
-
height: var(--ic-space-lg);
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
.ic-switch-small .ic-switch-toggle::before {
|
|
602
|
-
width: var(--ic-space-md);
|
|
603
|
-
height: var(--ic-space-md);
|
|
604
|
-
left: var(--ic-space-xxs);
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
.ic-switch-small .ic-switch-input:checked + .ic-switch-toggle::before {
|
|
608
|
-
transform: translate(var(--ic-space-lg), -50%);
|
|
609
|
-
}
|
|
610
|
-
|
|
611
643
|
::slotted([slot="right-adornment"]) {
|
|
612
644
|
margin-left: var(--ic-space-sm);
|
|
613
645
|
fill: var(--ic-switch-icon);
|
|
614
646
|
}
|
|
615
647
|
|
|
616
648
|
@media (forced-colors: active) {
|
|
649
|
+
.ic-switch-toggle::before {
|
|
650
|
+
width: calc(var(--ic-space-sm) * 2 - var(--ic-space-xxxs));
|
|
651
|
+
height: calc(var(--ic-space-sm) * 2 - var(--ic-space-xxxs));
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.ic-switch-small .ic-switch-toggle::before {
|
|
655
|
+
width: calc(var(--ic-space-md) - var(--ic-space-xxxs));
|
|
656
|
+
height: calc(var(--ic-space-md) - var(--ic-space-xxxs));
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.ic-switch-large .ic-switch-toggle::before {
|
|
660
|
+
width: calc(var(--ic-space-xl) - var(--ic-space-xxxs));
|
|
661
|
+
height: calc(var(--ic-space-xl) - var(--ic-space-xxxs));
|
|
662
|
+
}
|
|
663
|
+
|
|
617
664
|
.ic-switch-toggle::before,
|
|
618
665
|
.ic-switch-input:checked + .ic-switch-toggle {
|
|
619
666
|
border: var(--ic-border-hc);
|
|
@@ -625,7 +672,18 @@ input {
|
|
|
625
672
|
}
|
|
626
673
|
|
|
627
674
|
.ic-switch-input:checked + .ic-switch-toggle::before {
|
|
628
|
-
transform: translate(calc(var(--ic-space-xl) -
|
|
675
|
+
transform: translate(calc(var(--ic-space-xl) - var(--ic-space-xxxs)), -50%);
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
.ic-switch-small .ic-switch-input:checked + .ic-switch-toggle::before {
|
|
679
|
+
transform: translate(calc(var(--ic-space-lg) - var(--ic-space-xxxs)), -50%);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.ic-switch-large .ic-switch-input:checked + .ic-switch-toggle::before {
|
|
683
|
+
transform: translate(
|
|
684
|
+
calc(var(--ic-space-xxl) - var(--ic-space-xs) - var(--ic-space-xxxs)),
|
|
685
|
+
-50%
|
|
686
|
+
);
|
|
629
687
|
}
|
|
630
688
|
|
|
631
689
|
.ic-switch-input:disabled + .ic-switch-toggle,
|
|
@@ -634,10 +692,17 @@ input {
|
|
|
634
692
|
border-color: GrayText;
|
|
635
693
|
}
|
|
636
694
|
|
|
637
|
-
.ic-switch-
|
|
638
|
-
|
|
695
|
+
.ic-switch-icon-line {
|
|
696
|
+
background-color: buttonborder;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
.ic-switch-disabled .ic-switch-icon-circle {
|
|
639
700
|
stroke: GrayText;
|
|
640
701
|
}
|
|
702
|
+
|
|
703
|
+
.ic-switch-disabled .ic-switch-icon-line {
|
|
704
|
+
background-color: GrayText;
|
|
705
|
+
}
|
|
641
706
|
}
|
|
642
707
|
|
|
643
708
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -89,18 +89,16 @@ export class Switch {
|
|
|
89
89
|
}
|
|
90
90
|
render() {
|
|
91
91
|
const { label, checkedState, size, disabled, name, value, hideLabel, helperText, inputId, theme, } = this;
|
|
92
|
-
const isSmall = size === "small";
|
|
93
92
|
renderHiddenInput(this.el, checkedState ? value : "", name, disabled);
|
|
94
|
-
return (h(Host, { key: '
|
|
93
|
+
return (h(Host, { key: '5c000ca3e49cd14427153c3621794df417e8cf20', class: {
|
|
95
94
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
96
|
-
} }, h("label", { key: '
|
|
95
|
+
} }, h("label", { key: '8460399d045a653d8c5e3c93f87d2759b99d4095', class: {
|
|
97
96
|
"ic-switch-container": true,
|
|
98
97
|
"ic-switch-disabled": !!disabled,
|
|
99
|
-
|
|
100
|
-
}, htmlFor: inputId }, !hideLabel && (h("ic-input-label", { key: '
|
|
98
|
+
[`ic-switch-${size}`]: true,
|
|
99
|
+
}, htmlFor: inputId }, !hideLabel && (h("ic-input-label", { key: '5bd95a31f589a3569373427072b91153b9af825d', for: inputId, label: label, helperText: helperText, readonly: false, disabled: disabled, class: {
|
|
101
100
|
"ic-switch-label": true,
|
|
102
|
-
|
|
103
|
-
} }, h("slot", { key: 'd0ec1f628328f0e3938964248ac38c576ee602ce', name: "helper-text", slot: "helper-text" }))), !hideLabel && h("span", { key: '60474539357c0bd43823042d06e0292f1769a879', class: "ic-switch-line-break" }), h("input", { key: 'e9f17d56e514e1a545fae25631c835a714515461', checked: checkedState, disabled: disabled, "aria-label": label, "aria-checked": checkedState ? "true" : "false", "aria-describedby": getInputDescribedByText(this.el, inputId, helperText !== "", false), role: "switch", class: "ic-switch-input", type: "checkbox", name: "toggle", id: inputId, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.handleChange }), h("span", { key: 'ec6530e9f6d0a9248d6104068a8dc08c98142d44', class: "ic-switch-toggle" }, h("svg", { key: '9dbe1ccb311d5d3cf836b1db84f783f3f4aa1b1c', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, h("line", { key: '019b9a398510349b9fbb41784aa01f77af2c482f', class: "ic-switch-icon-line", x1: "9", y1: isSmall ? "2" : "1", x2: "9", y2: isSmall ? "8" : "9" })), h("svg", { key: '36806f4ca85eb87212f155f42293cffc9d7b2f2e', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg" }, h("circle", { key: '5d34317d431ea7b8e10d6a379b02148b4fc69b4e', class: "ic-switch-icon-circle", fill: "none", cx: "5", cy: "5", r: isSmall ? "3.335" : "4.445" }))), h("slot", { key: 'bfb4599c8cfad3efa9466eefe7dc84b580a2a3d2', name: "right-adornment" }))));
|
|
101
|
+
} }, h("slot", { key: 'a89047529ee17453676191651624842e5b1643ff', name: "helper-text", slot: "helper-text" }))), !hideLabel && h("span", { key: 'ef6b29d8bfa4ad565aca3fdadc61f9d7e9c8a51c', class: "ic-switch-line-break" }), h("input", { key: '0299a7208ea94969af14ded8f92a3c602e4d9260', checked: checkedState, disabled: disabled, "aria-label": label, "aria-checked": checkedState ? "true" : "false", "aria-describedby": getInputDescribedByText(this.el, inputId, helperText !== "", false), role: "switch", class: "ic-switch-input", type: "checkbox", name: "toggle", id: inputId, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.handleChange }), h("span", { key: '5576c0aff81d9a5825111f62a00dfc69516ff52d', class: "ic-switch-toggle" }, h("span", { key: '3bd162d8cd5b5d08b1a71625edaa7905d837414b', class: "ic-switch-icon-line", "aria-hidden": "true" }), h("svg", { key: '592dd6027032283ed67502269b80fd6a5ca922ae', class: "ic-switch-icon", "aria-hidden": "true", focusable: "false", viewBox: "0 0 8 8", xmlns: "http://www.w3.org/2000/svg", fill: "none" }, h("circle", { key: '6479b349e98272f1578e84b7213949ed064e84f7', class: "ic-switch-icon-circle", fill: "none", cx: "4", cy: "4", r: "3.5", "vector-effect": "non-scaling-stroke" }))), h("slot", { key: '66d14ab0f462f8f050ffb425a154bde647821377', name: "right-adornment" }))));
|
|
104
102
|
}
|
|
105
103
|
static get is() { return "ic-switch"; }
|
|
106
104
|
static get encapsulation() { return "shadow"; }
|
|
@@ -240,13 +238,13 @@ export class Switch {
|
|
|
240
238
|
"type": "string",
|
|
241
239
|
"mutable": false,
|
|
242
240
|
"complexType": {
|
|
243
|
-
"original": "
|
|
244
|
-
"resolved": "\"medium\" | \"small\" | undefined",
|
|
241
|
+
"original": "IcSizes",
|
|
242
|
+
"resolved": "\"large\" | \"medium\" | \"small\" | undefined",
|
|
245
243
|
"references": {
|
|
246
|
-
"
|
|
244
|
+
"IcSizes": {
|
|
247
245
|
"location": "import",
|
|
248
246
|
"path": "../../utils/types",
|
|
249
|
-
"id": "src/utils/types.ts::
|
|
247
|
+
"id": "src/utils/types.ts::IcSizes"
|
|
250
248
|
}
|
|
251
249
|
}
|
|
252
250
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ic-switch.js","sourceRoot":"","sources":["../../../src/components/ic-switch/ic-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,KAAK,EACL,OAAO,EACP,KAAK,EAEL,MAAM,EACN,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,uBAAuB,EACvB,gCAAgC,EAChC,iBAAiB,EACjB,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAI7B,IAAI,QAAQ,GAAG,CAAC,CAAC;AAEjB;;;GAGG;AAQH,MAAM,OAAO,MAAM;IAPnB;QAQU,YAAO,GAAG,mBAAmB,QAAQ,EAAE,EAAE,CAAC;QAIzC,iBAAY,GAAY,KAAK,CAAC;QAC9B,qBAAgB,GAAG,IAAI,CAAC,OAAO,CAAC;QAEzC;;WAEG;QACK,YAAO,GAAa,KAAK,CAAC;QAOlC;;WAEG;QACK,aAAQ,GAAa,KAAK,CAAC;QAMnC;;WAEG;QACK,eAAU,GAAY,EAAE,CAAC;QAEjC;;WAEG;QACK,cAAS,GAAa,KAAK,CAAC;QAOpC;;WAEG;QACK,SAAI,GAAY,IAAI,CAAC,OAAO,CAAC;QAErC;;WAEG;QACK,SAAI,GAAoB,QAAQ,CAAC;QAEzC;;WAEG;QACK,UAAK,GAAiB,SAAS,CAAC;QAExC;;;;;;WAMG;QACK,UAAK,GAAmB,IAAI,CAAC;QA0C7B,iBAAY,GAAG,GAAG,EAAE;YAC1B,IAAI,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n State,\n Element,\n Event,\n EventEmitter,\n Method,\n Watch,\n} from \"@stencil/core\";\nimport {\n getInputDescribedByText,\n onComponentRequiredPropUndefined,\n renderHiddenInput,\n addFormResetListener,\n removeFormResetListener,\n removeDisabledFalse,\n} from \"../../utils/helpers\";\nimport { IcSwitchChangeEventDetail } from \"./ic-switch.types\";\nimport { IcSizesNoLarge, IcThemeMode } from \"../../utils/types\";\n\nlet inputIds = 0;\n\n/**\n * @slot helper-text - Content is set as the helper text for the switch.\n * @slot right-adornment - Content is placed to the right of switch.\n */\n@Component({\n tag: \"ic-switch\",\n styleUrl: \"ic-switch.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Switch {\n private inputId = `ic-switch-input-${inputIds++}`;\n\n @Element() el: HTMLIcSwitchElement;\n\n @State() checkedState: boolean = false;\n @State() initiallyChecked = this.checked;\n\n /**\n * If `true`, the switch will display as checked.\n */\n @Prop() checked?: boolean = false;\n\n @Watch(\"checked\")\n checkedChangeHandler(): void {\n this.checkedState = !!this.checked;\n }\n\n /**\n * If `true`, the disabled state will be set.\n */\n @Prop() disabled?: boolean = false;\n @Watch(\"disabled\")\n watchDisabledHandler(): void {\n removeDisabledFalse(this.disabled, this.el);\n }\n\n /**\n * The helper text that will be displayed for additional field guidance.\n */\n @Prop() helperText?: string = \"\";\n\n /**\n * If `true`, the label will be hidden and the required label value will be applied as an aria-label.\n */\n @Prop() hideLabel?: boolean = false;\n\n /**\n * The aria-label applied to the switch when no visual 'name' is provided.\n */\n @Prop() label!: string;\n\n /**\n * The name of the control, which is submitted with the form data.\n */\n @Prop() name?: string = this.inputId;\n\n /**\n * The size of the switch component.\n */\n @Prop() size?: IcSizesNoLarge = \"medium\";\n\n /**\n * Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component.\n */\n @Prop() theme?: IcThemeMode = \"inherit\";\n\n /**\n * The value of the toggle does not mean if it's checked or not, use the `checked`\n * property for that.\n *\n * The value of a toggle is analogous to the value of a `<input type=\"checkbox\">`,\n * it's only used when the toggle participates in a native `<form>`.\n */\n @Prop() value?: string | null = \"on\";\n\n /**\n * Emitted when the toggle loses focus.\n */\n @Event() icBlur!: EventEmitter<void>;\n\n /**\n * Emitted when the value property has changed.\n */\n @Event() icChange!: EventEmitter<IcSwitchChangeEventDetail>;\n\n /**\n * Emitted when the toggle has focus.\n */\n @Event() icFocus!: EventEmitter<void>;\n\n disconnectedCallback(): void {\n removeFormResetListener(this.el, this.handleFormReset);\n }\n\n componentWillLoad(): void {\n this.checkedState = this.checked!;\n addFormResetListener(this.el, this.handleFormReset);\n removeDisabledFalse(this.disabled, this.el);\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Switch\"\n );\n }\n\n /**\n * Sets focus on the switch.\n */\n @Method()\n async setFocus(): Promise<void> {\n this.el.shadowRoot?.querySelector(\"input\")?.focus();\n }\n\n private handleChange = () => {\n this.checkedState = !this.checkedState;\n this.icChange.emit({\n checked: this.checkedState,\n value: this.value!,\n });\n };\n\n private onFocus = () => {\n this.icFocus.emit();\n };\n\n private onBlur = () => {\n this.icBlur.emit();\n };\n\n private handleFormReset = (): void => {\n this.checkedState = this.initiallyChecked!;\n };\n\n render() {\n const {\n label,\n checkedState,\n size,\n disabled,\n name,\n value,\n hideLabel,\n helperText,\n inputId,\n theme,\n } = this;\n\n const isSmall = size === \"small\";\n\n renderHiddenInput(this.el, checkedState ? value : \"\", name, disabled);\n\n return (\n <Host\n class={{\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n }}\n >\n <label\n class={{\n \"ic-switch-container\": true,\n \"ic-switch-disabled\": !!disabled,\n \"ic-switch-small\": isSmall,\n }}\n htmlFor={inputId}\n >\n {!hideLabel && (\n <ic-input-label\n for={inputId}\n label={label}\n helperText={helperText}\n readonly={false}\n disabled={disabled}\n class={{\n \"ic-switch-label\": true,\n \"ic-switch-label-small\": isSmall,\n }}\n >\n <slot name=\"helper-text\" slot=\"helper-text\"></slot>\n </ic-input-label>\n )}\n {!hideLabel && <span class=\"ic-switch-line-break\"></span>}\n <input\n checked={checkedState}\n disabled={disabled}\n aria-label={label}\n aria-checked={checkedState ? \"true\" : \"false\"}\n aria-describedby={getInputDescribedByText(\n this.el,\n inputId,\n helperText !== \"\",\n false\n )}\n role=\"switch\"\n class=\"ic-switch-input\"\n type=\"checkbox\"\n name=\"toggle\"\n id={inputId}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onChange={this.handleChange}\n />\n <span class=\"ic-switch-toggle\">\n <svg\n class=\"ic-switch-icon\"\n aria-hidden=\"true\"\n focusable=\"false\"\n viewBox=\"0 0 10 10\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <line\n class=\"ic-switch-icon-line\"\n x1=\"9\"\n y1={isSmall ? \"2\" : \"1\"}\n x2=\"9\"\n y2={isSmall ? \"8\" : \"9\"}\n />\n </svg>\n <svg\n class=\"ic-switch-icon\"\n aria-hidden=\"true\"\n focusable=\"false\"\n viewBox=\"0 0 10 10\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <circle\n class=\"ic-switch-icon-circle\"\n fill=\"none\"\n cx=\"5\"\n cy=\"5\"\n r={isSmall ? \"3.335\" : \"4.445\"}\n />\n </svg>\n </span>\n <slot name=\"right-adornment\"></slot>\n </label>\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ic-switch.js","sourceRoot":"","sources":["../../../src/components/ic-switch/ic-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,I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EAClB,SAAS,EAAC,OAAO,EACjB,OAAO,EAAC,SAAS,EACjB,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,MAAM;wBAEX,+DACE,KAAK,EAAC,uBAAuB,EAC7B,IAAI,EAAC,MAAM,EACX,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,GAAG,EACN,CAAC,EAAC,KAAK,mBACO,oBAAoB,GAClC,CACE,CACD;gBACP,6DAAM,IAAI,EAAC,iBAAiB,GAAQ,CAC9B,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n State,\n Element,\n Event,\n EventEmitter,\n Method,\n Watch,\n} from \"@stencil/core\";\nimport {\n getInputDescribedByText,\n onComponentRequiredPropUndefined,\n renderHiddenInput,\n addFormResetListener,\n removeFormResetListener,\n removeDisabledFalse,\n} from \"../../utils/helpers\";\nimport { IcSwitchChangeEventDetail } from \"./ic-switch.types\";\nimport { IcSizes, IcThemeMode } from \"../../utils/types\";\n\nlet inputIds = 0;\n\n/**\n * @slot helper-text - Content is set as the helper text for the switch.\n * @slot right-adornment - Content is placed to the right of switch.\n */\n@Component({\n tag: \"ic-switch\",\n styleUrl: \"ic-switch.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Switch {\n private inputId = `ic-switch-input-${inputIds++}`;\n\n @Element() el: HTMLIcSwitchElement;\n\n @State() checkedState: boolean = false;\n @State() initiallyChecked = this.checked;\n\n /**\n * If `true`, the switch will display as checked.\n */\n @Prop() checked?: boolean = false;\n\n @Watch(\"checked\")\n checkedChangeHandler(): void {\n this.checkedState = !!this.checked;\n }\n\n /**\n * If `true`, the disabled state will be set.\n */\n @Prop() disabled?: boolean = false;\n @Watch(\"disabled\")\n watchDisabledHandler(): void {\n removeDisabledFalse(this.disabled, this.el);\n }\n\n /**\n * The helper text that will be displayed for additional field guidance.\n */\n @Prop() helperText?: string = \"\";\n\n /**\n * If `true`, the label will be hidden and the required label value will be applied as an aria-label.\n */\n @Prop() hideLabel?: boolean = false;\n\n /**\n * The aria-label applied to the switch when no visual 'name' is provided.\n */\n @Prop() label!: string;\n\n /**\n * The name of the control, which is submitted with the form data.\n */\n @Prop() name?: string = this.inputId;\n\n /**\n * The size of the switch component.\n */\n @Prop() size?: IcSizes = \"medium\";\n\n /**\n * Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component.\n */\n @Prop() theme?: IcThemeMode = \"inherit\";\n\n /**\n * The value of the toggle does not mean if it's checked or not, use the `checked`\n * property for that.\n *\n * The value of a toggle is analogous to the value of a `<input type=\"checkbox\">`,\n * it's only used when the toggle participates in a native `<form>`.\n */\n @Prop() value?: string | null = \"on\";\n\n /**\n * Emitted when the toggle loses focus.\n */\n @Event() icBlur!: EventEmitter<void>;\n\n /**\n * Emitted when the value property has changed.\n */\n @Event() icChange!: EventEmitter<IcSwitchChangeEventDetail>;\n\n /**\n * Emitted when the toggle has focus.\n */\n @Event() icFocus!: EventEmitter<void>;\n\n disconnectedCallback(): void {\n removeFormResetListener(this.el, this.handleFormReset);\n }\n\n componentWillLoad(): void {\n this.checkedState = this.checked!;\n addFormResetListener(this.el, this.handleFormReset);\n removeDisabledFalse(this.disabled, this.el);\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Switch\"\n );\n }\n\n /**\n * Sets focus on the switch.\n */\n @Method()\n async setFocus(): Promise<void> {\n this.el.shadowRoot?.querySelector(\"input\")?.focus();\n }\n\n private handleChange = () => {\n this.checkedState = !this.checkedState;\n this.icChange.emit({\n checked: this.checkedState,\n value: this.value!,\n });\n };\n\n private onFocus = () => {\n this.icFocus.emit();\n };\n\n private onBlur = () => {\n this.icBlur.emit();\n };\n\n private handleFormReset = (): void => {\n this.checkedState = this.initiallyChecked!;\n };\n\n render() {\n const {\n label,\n checkedState,\n size,\n disabled,\n name,\n value,\n hideLabel,\n helperText,\n inputId,\n theme,\n } = this;\n\n renderHiddenInput(this.el, checkedState ? value : \"\", name, disabled);\n\n return (\n <Host\n class={{\n [`ic-theme-${theme}`]: theme !== \"inherit\",\n }}\n >\n <label\n class={{\n \"ic-switch-container\": true,\n \"ic-switch-disabled\": !!disabled,\n [`ic-switch-${size}`]: true,\n }}\n htmlFor={inputId}\n >\n {!hideLabel && (\n <ic-input-label\n for={inputId}\n label={label}\n helperText={helperText}\n readonly={false}\n disabled={disabled}\n class={{\n \"ic-switch-label\": true,\n }}\n >\n <slot name=\"helper-text\" slot=\"helper-text\"></slot>\n </ic-input-label>\n )}\n {!hideLabel && <span class=\"ic-switch-line-break\"></span>}\n <input\n checked={checkedState}\n disabled={disabled}\n aria-label={label}\n aria-checked={checkedState ? \"true\" : \"false\"}\n aria-describedby={getInputDescribedByText(\n this.el,\n inputId,\n helperText !== \"\",\n false\n )}\n role=\"switch\"\n class=\"ic-switch-input\"\n type=\"checkbox\"\n name=\"toggle\"\n id={inputId}\n onFocus={this.onFocus}\n onBlur={this.onBlur}\n onChange={this.handleChange}\n />\n <span class=\"ic-switch-toggle\">\n <span class=\"ic-switch-icon-line\" aria-hidden=\"true\"></span>\n <svg\n class=\"ic-switch-icon\"\n aria-hidden=\"true\"\n focusable=\"false\"\n viewBox=\"0 0 8 8\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n >\n <circle\n class=\"ic-switch-icon-circle\"\n fill=\"none\"\n cx=\"4\"\n cy=\"4\"\n r=\"3.5\"\n vector-effect=\"non-scaling-stroke\"\n />\n </svg>\n </span>\n <slot name=\"right-adornment\"></slot>\n </label>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -30,9 +30,13 @@ export const Checked = {
|
|
|
30
30
|
name: "Checked",
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
export const
|
|
34
|
-
render: () => html`
|
|
35
|
-
|
|
33
|
+
export const Sizes = {
|
|
34
|
+
render: () => html`
|
|
35
|
+
<ic-switch size="small" label="Label"></ic-switch>
|
|
36
|
+
<ic-switch label="Label"></ic-switch>
|
|
37
|
+
<ic-switch size="large" label="Label"></ic-switch>
|
|
38
|
+
`,
|
|
39
|
+
name: "Sizes",
|
|
36
40
|
};
|
|
37
41
|
|
|
38
42
|
export const Disabled = {
|
|
@@ -136,7 +140,7 @@ export const Playground = {
|
|
|
136
140
|
|
|
137
141
|
argTypes: {
|
|
138
142
|
size: {
|
|
139
|
-
options: ["medium", "
|
|
143
|
+
options: ["small", "medium", "large"],
|
|
140
144
|
|
|
141
145
|
control: {
|
|
142
146
|
type: "inline-radio",
|
|
@@ -227,7 +227,7 @@ export class TabContext {
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
render() {
|
|
230
|
-
return h("slot", { key: '
|
|
230
|
+
return h("slot", { key: '717530e623d11f274e79fe3be4bcbd0ff9e71033' });
|
|
231
231
|
}
|
|
232
232
|
static get is() { return "ic-tab-context"; }
|
|
233
233
|
static get properties() {
|
|
@@ -16,11 +16,11 @@ export class TabGroup {
|
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
18
|
const { inline, theme, label, monochrome } = this;
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '1681c117c989b999a55a9646350f26efe3dac55c', role: "tablist", "aria-label": label, class: {
|
|
20
20
|
["ic-tab-group-inline"]: !!inline,
|
|
21
21
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
22
22
|
["ic-tab-group-monochrome"]: !!monochrome,
|
|
23
|
-
} }, h("ic-horizontal-scroll", { key: '
|
|
23
|
+
} }, h("ic-horizontal-scroll", { key: '86003202cd06e1bbd9f99124c10ceebe9414049d', theme: theme, "focus-trigger": "tabFocus", monochrome: monochrome }, h("div", { key: '4e1b79906c19817adf8a4d01332f8066e8d5e1c4', class: "tabs-container" }, h("slot", { key: '697f2ce044588082937aff666d1f04976b310785' })))));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "ic-tab-group"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -17,10 +17,10 @@ export class TabPanel {
|
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
19
|
const { active, theme } = this;
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: 'c00d3917329516768eb37409203d897251b75d76', class: {
|
|
21
21
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
22
22
|
"ic-tab-panel-hidden": !active,
|
|
23
|
-
}, role: "tabpanel", "aria-hidden": `${!active}` }, h("div", { key: '
|
|
23
|
+
}, role: "tabpanel", "aria-hidden": `${!active}` }, h("div", { key: 'f5cc419286a31c1b6da62a34926dcf8060c12dfd' }, h("slot", { key: '05c9bfb071d304e758c0bb8dd780bf000b3d8bf1' }))));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "ic-tab-panel"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -387,14 +387,14 @@ export class TextField {
|
|
|
387
387
|
hiddenInput
|
|
388
388
|
? renderHiddenInput(this.el, value, name, disabledMode)
|
|
389
389
|
: removeHiddenInput(this.el);
|
|
390
|
-
return (h(Host, { key: '
|
|
390
|
+
return (h(Host, { key: '4eb073ddbce5dc93c167bbaa66b94daf51c4a828', class: {
|
|
391
391
|
"ic-text-field-full-width": fullWidth,
|
|
392
392
|
"ic-text-field-disabled": disabledMode,
|
|
393
393
|
[`ic-theme-${theme}`]: theme !== "inherit",
|
|
394
|
-
} }, h("ic-input-container", { key: '
|
|
394
|
+
} }, h("ic-input-container", { key: '07a171c8cbd55588387145b3d8469e6930ab4a7c', readonly: readonly, disabled: disabledMode }, !hideLabel && (h("ic-input-label", { key: 'b5f6b3b831c08cd4958458188c8d6be3219f1479', for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly }, h("slot", { key: '1c33ec889c6a730f4b7e1075978e13f05a21f53a', name: "helper-text", slot: "helper-text" }))), h("ic-input-component-container", { key: '786f1d5b65b4b66838aba7320cd5b479cd8305e4', size: size, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, showLeftIcon && (h("span", { key: 'ed91ef841c132afd05cdee83e735413ad1d9e5a3', class: {
|
|
395
395
|
readonly,
|
|
396
396
|
"has-value": this.getNumberOfCharacters(value) > 0,
|
|
397
|
-
}, slot: "left-icon" }, h("slot", { key: '
|
|
397
|
+
}, slot: "left-icon" }, h("slot", { key: 'ee52a8fc57ce814d713d1a0807d8dc040ced4d41', name: "icon" }))), !multiline ? (h("input", Object.assign({ id: inputId, name: name, ref: (el) => (this.inputEl = el), type: type, min: min, max: max, value: value, class: {
|
|
398
398
|
"no-left-pad": !showLeftIcon && readonly,
|
|
399
399
|
readonly,
|
|
400
400
|
"truncate-value": truncateValue,
|
|
@@ -402,12 +402,12 @@ export class TextField {
|
|
|
402
402
|
"no-resize": resize === false || !!readonly,
|
|
403
403
|
"no-left-pad": !showLeftIcon && !!readonly,
|
|
404
404
|
readonly: !!readonly,
|
|
405
|
-
}, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholder, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onScroll: this.onTextAreaScroll, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, autocomplete: autocomplete, autocapitalize: autocapitalize, spellcheck: spellcheck, inputmode: inputmode, maxlength: maxCharactersReached ? maxCharacters : undefined, minlength: minCharactersUnattained ? minCharacters : undefined }, inheritedAttributes))), isSlotUsed(el, "clear-button") && (h("slot", { key: '
|
|
405
|
+
}, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholder, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, onScroll: this.onTextAreaScroll, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, autocomplete: autocomplete, autocapitalize: autocapitalize, spellcheck: spellcheck, inputmode: inputmode, maxlength: maxCharactersReached ? maxCharacters : undefined, minlength: minCharactersUnattained ? minCharacters : undefined }, inheritedAttributes))), isSlotUsed(el, "clear-button") && (h("slot", { key: '06f74409f7256055715e982be8e68780df1126b5', name: "clear-button" })), isSlotUsed(el, "search-submit-button") && (h("slot", { key: '7ed8058fb83dfa713539348de0c37929a0225129', name: "search-submit-button" }))), isSlotUsed(el, "menu") && h("slot", { key: 'e56ca28bcb4154d65bb46f1b3625e29c0038e9b7', name: "menu" }), h("ic-input-validation", { key: '3c64d8598155035ebde2419e407e89c35053c64a', class: { "show-validation": this.showValidationMargin() }, status: this.hasStatus(currentStatus) === false ||
|
|
406
406
|
(currentStatus === IcInformationStatus.Success &&
|
|
407
407
|
validationInline) ||
|
|
408
408
|
validationInlineInternal
|
|
409
409
|
? ""
|
|
410
|
-
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, isSlotUsed(el, "validation-text") && (h("slot", { key: '
|
|
410
|
+
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, isSlotUsed(el, "validation-text") && (h("slot", { key: 'd40417b8b52597518c4b1e804ede9ae59364c0c9', name: "validation-text", slot: "validation-message" })), !readonly && maxNumChars > 0 && (h("div", { key: 'e4dc991f18d280cf05f3ead492e17eb37b15cbb1', slot: "validation-message-adornment" }, !hideCharCount && (h("ic-typography", { key: 'e668b2a73a860bd7a53300440a019239363f2350', variant: "caption", class: "char-count-text" }, h("span", { key: '835dea67f0e27e0c86e0236f48ecd7a5265719a3', class: "char-count" }, numChars, "/", maxNumChars))), h("span", { key: '0a4d3628c4ecfe1102b015c3bf4a345eb2a18674', class: "remaining-char-count-desc", "aria-live": "polite", hidden: !isFocussed, id: remainingCharCountDescId }, remainingCharCountDesc), h("span", { key: '365c77cbed1ca017f3f19f13be9b76561ec5cf57', hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters.")))))));
|
|
411
411
|
}
|
|
412
412
|
static get is() { return "ic-text-field"; }
|
|
413
413
|
static get encapsulation() { return "shadow"; }
|
|
@@ -65,7 +65,7 @@ export class Theme {
|
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
67
|
const { themeClass } = this;
|
|
68
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: '63d492e3dd31089565a15df543420f375dbad1b6', class: themeClass }, h("slot", { key: '479a3cbc49286aa2e3853956721f26a5ee37e9ef' })));
|
|
69
69
|
}
|
|
70
70
|
static get is() { return "ic-theme"; }
|
|
71
71
|
static get properties() {
|