@ukic/web-components 2.0.1 → 2.1.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/core.cjs.js +2 -2
- package/dist/cjs/core.cjs.js.map +1 -1
- package/dist/cjs/{helpers-d0eeccf0.js → helpers-8bc3b6d2.js} +83 -38
- package/dist/cjs/helpers-8bc3b6d2.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 +2 -2
- package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +56 -17
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card.cjs.entry.js +16 -3
- package/dist/cjs/ic-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +5 -4
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-entity.cjs.entry.js +1 -1
- package/dist/cjs/ic-data-entity.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +2 -2
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +1 -1
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +2 -2
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +1 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +3 -3
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +2 -2
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +2 -2
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +27 -13
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-select.cjs.entry.js +2 -2
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +2 -2
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +2 -2
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +1 -9
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +2 -2
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +0 -4
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +1 -5
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-text-field.cjs.entry.js +2 -2
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +19 -11
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +2 -2
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/index-3ef30d9d.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/types-3eb02246.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/ic-alert/ic-alert.css +10 -4
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.css +6 -0
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.css +7 -1
- package/dist/collection/components/ic-button/ic-button.css +12 -1
- package/dist/collection/components/ic-card/ic-card.css +7 -2
- package/dist/collection/components/ic-card/ic-card.js +23 -2
- package/dist/collection/components/ic-card/ic-card.js.map +1 -1
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +37 -0
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +4 -3
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.css +6 -0
- package/dist/collection/components/ic-data-entity/ic-data-entity.css +6 -0
- package/dist/collection/components/ic-data-row/ic-data-row.css +7 -1
- package/dist/collection/components/ic-footer/ic-footer.css +6 -0
- package/dist/collection/components/ic-footer-link/ic-footer-link.css +18 -2
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.css +2 -2
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +19 -0
- package/dist/collection/components/ic-link/ic-link.css +11 -2
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +56 -101
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +53 -12
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.types.js.map +1 -1
- package/dist/collection/components/ic-menu/ic-menu.css +9 -2
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +6 -2
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +5 -5
- package/dist/collection/components/ic-radio-option/ic-radio-option.css +29 -10
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +26 -12
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
- package/dist/collection/components/ic-select/ic-select.css +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +13 -2
- package/dist/collection/components/ic-skeleton/ic-skeleton.css +8 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.css +8 -0
- package/dist/collection/components/ic-step/ic-step.css +36 -1
- package/dist/collection/components/ic-step/ic-step.js +4 -11
- package/dist/collection/components/ic-step/ic-step.js.map +1 -1
- package/dist/collection/components/ic-switch/ic-switch.css +30 -0
- package/dist/collection/components/ic-tab/ic-tab.css +12 -2
- package/dist/collection/components/ic-tab/ic-tab.js +2 -6
- package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
- package/dist/collection/components/ic-tab-group/ic-tab-group.css +1 -1
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +2 -6
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js.map +1 -1
- package/dist/collection/components/ic-text-field/ic-text-field.css +11 -0
- package/dist/collection/components/ic-theme/ic-theme.js +21 -11
- package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
- package/dist/collection/components/ic-tooltip/ic-tooltip.css +6 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +4 -2
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +92 -79
- package/dist/collection/utils/constants.js +9 -0
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/collection/utils/helpers.js +68 -35
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/helpers.js +78 -36
- package/dist/components/helpers.js.map +1 -1
- 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 +1 -1
- package/dist/components/ic-back-to-top.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +1 -1
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +2 -2
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card.js +19 -4
- package/dist/components/ic-card.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +1 -1
- package/dist/components/ic-checkbox.js +5 -4
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-classification-banner.js +1 -1
- package/dist/components/ic-classification-banner.js.map +1 -1
- package/dist/components/ic-data-entity.js +1 -1
- package/dist/components/ic-data-entity.js.map +1 -1
- package/dist/components/ic-data-row.js +1 -1
- package/dist/components/ic-data-row.js.map +1 -1
- package/dist/components/ic-divider2.js +1 -1
- package/dist/components/ic-footer-link-group.js +2 -2
- package/dist/components/ic-footer-link-group.js.map +1 -1
- package/dist/components/ic-footer-link.js +2 -2
- package/dist/components/ic-footer-link.js.map +1 -1
- package/dist/components/ic-footer.js +2 -2
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-hero.js +1 -1
- package/dist/components/ic-input-component-container2.js +1 -1
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-label2.js +1 -1
- package/dist/components/ic-input-validation2.js +1 -1
- package/dist/components/ic-link2.js +2 -2
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +53 -14
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu2.js +1 -1
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +1 -1
- package/dist/components/ic-navigation-group.js +2 -2
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +2 -2
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +1 -1
- package/dist/components/ic-radio-group.js +1 -1
- package/dist/components/ic-radio-option.js +2 -2
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +27 -13
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-select.js +2 -2
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-side-navigation.js +2 -2
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +1 -1
- package/dist/components/ic-skeleton.js.map +1 -1
- package/dist/components/ic-status-tag.js +1 -1
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +1 -8
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-switch.js +2 -2
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-group.js +2 -2
- package/dist/components/ic-tab-group.js.map +1 -1
- package/dist/components/ic-tab-panel.js +0 -4
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +1 -5
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field2.js +2 -2
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js +19 -11
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-tooltip2.js +5 -3
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +2 -2
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/types.js.map +1 -1
- package/dist/core/core.css +12 -12
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-9c1f2861.entry.js → p-0118400b.entry.js} +2 -2
- package/dist/core/p-0118400b.entry.js.map +1 -0
- package/dist/core/{p-0992a2ee.entry.js → p-02799e26.entry.js} +2 -2
- package/dist/core/p-02799e26.entry.js.map +1 -0
- package/dist/core/{p-972f4e69.entry.js → p-07cd789d.entry.js} +2 -2
- package/dist/core/{p-972f4e69.entry.js.map → p-07cd789d.entry.js.map} +1 -1
- package/dist/core/{p-48029498.entry.js → p-0b125f26.entry.js} +2 -2
- package/dist/core/{p-48029498.entry.js.map → p-0b125f26.entry.js.map} +0 -0
- package/dist/core/{p-3c6defd7.entry.js → p-10da19d2.entry.js} +2 -2
- package/dist/core/{p-3c6defd7.entry.js.map → p-10da19d2.entry.js.map} +0 -0
- package/dist/core/{p-6009c5bc.entry.js → p-1337db5e.entry.js} +2 -2
- package/dist/core/p-1337db5e.entry.js.map +1 -0
- package/dist/core/p-1721bcf3.entry.js +2 -0
- package/dist/core/p-1721bcf3.entry.js.map +1 -0
- package/dist/core/p-23831891.js +2 -0
- package/dist/core/p-23831891.js.map +1 -0
- package/dist/core/p-272c7abd.entry.js +2 -0
- package/dist/core/p-272c7abd.entry.js.map +1 -0
- package/dist/core/{p-ee3a9fd0.entry.js → p-2f114521.entry.js} +2 -2
- package/dist/core/{p-ee3a9fd0.entry.js.map → p-2f114521.entry.js.map} +0 -0
- package/dist/core/{p-54b77947.entry.js → p-31a8595f.entry.js} +2 -2
- package/dist/core/{p-54b77947.entry.js.map → p-31a8595f.entry.js.map} +0 -0
- package/dist/core/p-33a45ace.entry.js +2 -0
- package/dist/core/p-33a45ace.entry.js.map +1 -0
- package/dist/core/p-347ec49e.entry.js +2 -0
- package/dist/core/p-347ec49e.entry.js.map +1 -0
- package/dist/core/p-39ae284e.entry.js +2 -0
- package/dist/core/p-39ae284e.entry.js.map +1 -0
- package/dist/core/{p-bf4ddf33.entry.js → p-558552f8.entry.js} +2 -2
- package/dist/core/p-558552f8.entry.js.map +1 -0
- package/dist/core/p-5e261268.entry.js +2 -0
- package/dist/core/p-5e261268.entry.js.map +1 -0
- package/dist/core/p-60ffb73e.entry.js +2 -0
- package/dist/core/p-60ffb73e.entry.js.map +1 -0
- package/dist/core/p-69650186.entry.js +2 -0
- package/dist/core/p-69650186.entry.js.map +1 -0
- package/dist/core/{p-4b6a55bb.entry.js → p-6b34d98f.entry.js} +2 -2
- package/dist/core/p-6b34d98f.entry.js.map +1 -0
- package/dist/core/p-6f57b13c.js.map +1 -1
- package/dist/core/{p-a183353c.entry.js → p-6f6bd657.entry.js} +2 -2
- package/dist/core/{p-a183353c.entry.js.map → p-6f6bd657.entry.js.map} +0 -0
- package/dist/core/p-7093d214.entry.js +2 -0
- package/dist/core/p-7093d214.entry.js.map +1 -0
- package/dist/core/p-7b11e1dc.entry.js +2 -0
- package/dist/core/p-7b11e1dc.entry.js.map +1 -0
- package/dist/core/p-7b39977f.entry.js +2 -0
- package/dist/core/p-7b39977f.entry.js.map +1 -0
- package/dist/core/p-7f632414.entry.js +2 -0
- package/dist/core/p-7f632414.entry.js.map +1 -0
- package/dist/core/{p-59041cfc.entry.js → p-898607d0.entry.js} +2 -2
- package/dist/core/{p-59041cfc.entry.js.map → p-898607d0.entry.js.map} +0 -0
- package/dist/core/{p-c023c49c.entry.js → p-8ddeb574.entry.js} +2 -2
- package/dist/core/p-8ddeb574.entry.js.map +1 -0
- package/dist/core/{p-037273aa.entry.js → p-9cd04875.entry.js} +2 -2
- package/dist/core/{p-037273aa.entry.js.map → p-9cd04875.entry.js.map} +0 -0
- package/dist/core/{p-17d0d631.entry.js → p-ac43322e.entry.js} +2 -2
- package/dist/core/p-ac43322e.entry.js.map +1 -0
- package/dist/core/{p-eeff0f89.entry.js → p-ae81dffa.entry.js} +2 -2
- package/dist/core/p-ae81dffa.entry.js.map +1 -0
- package/dist/core/{p-1b619302.entry.js → p-b3dec76d.entry.js} +2 -2
- package/dist/core/{p-1b619302.entry.js.map → p-b3dec76d.entry.js.map} +0 -0
- package/dist/core/p-b5a988c0.entry.js +2 -0
- package/dist/core/p-b5a988c0.entry.js.map +1 -0
- package/dist/core/{p-0d63bfe4.entry.js → p-c4d3c18c.entry.js} +2 -2
- package/dist/core/{p-0d63bfe4.entry.js.map → p-c4d3c18c.entry.js.map} +0 -0
- package/dist/core/{p-9a3d6bca.entry.js → p-c6dd4f47.entry.js} +2 -2
- package/dist/core/p-c6dd4f47.entry.js.map +1 -0
- package/dist/core/p-cadb531f.entry.js +2 -0
- package/dist/core/p-cadb531f.entry.js.map +1 -0
- package/dist/core/p-cc83692e.entry.js +2 -0
- package/dist/core/p-cc83692e.entry.js.map +1 -0
- package/dist/core/{p-9db8edb7.entry.js → p-dd3c3e3c.entry.js} +2 -2
- package/dist/core/{p-9db8edb7.entry.js.map → p-dd3c3e3c.entry.js.map} +0 -0
- package/dist/core/p-df5caf13.entry.js +2 -0
- package/dist/core/p-df5caf13.entry.js.map +1 -0
- package/dist/core/p-e106305b.entry.js +2 -0
- package/dist/core/p-e106305b.entry.js.map +1 -0
- package/dist/core/p-e590f1d2.entry.js +2 -0
- package/dist/core/p-e590f1d2.entry.js.map +1 -0
- package/dist/core/{p-eb33ece2.entry.js → p-e93e9aa3.entry.js} +2 -2
- package/dist/core/p-e93e9aa3.entry.js.map +1 -0
- package/dist/core/p-ecfb2e6b.entry.js +2 -0
- package/dist/core/p-ecfb2e6b.entry.js.map +1 -0
- package/dist/core/p-f9370be6.js.map +1 -1
- package/dist/esm/core.js +2 -2
- package/dist/esm/core.js.map +1 -1
- package/dist/esm/{helpers-e090fe7e.js → helpers-3d41833c.js} +79 -37
- package/dist/esm/helpers-3d41833c.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 +2 -2
- package/dist/esm/ic-back-to-top.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +2 -2
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +56 -17
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card.entry.js +16 -3
- package/dist/esm/ic-card.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +1 -1
- package/dist/esm/ic-checkbox.entry.js +5 -4
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-classification-banner.entry.js +1 -1
- package/dist/esm/ic-classification-banner.entry.js.map +1 -1
- package/dist/esm/ic-data-entity.entry.js +1 -1
- package/dist/esm/ic-data-entity.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +2 -2
- package/dist/esm/ic-data-row.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +1 -1
- package/dist/esm/ic-footer-link-group.entry.js +2 -2
- package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
- package/dist/esm/ic-footer-link.entry.js +2 -2
- package/dist/esm/ic-footer-link.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +2 -2
- package/dist/esm/ic-footer.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js +1 -1
- package/dist/esm/ic-input-component-container_3.entry.js +3 -3
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +1 -1
- package/dist/esm/ic-link.entry.js +2 -2
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +1 -1
- package/dist/esm/ic-navigation-group.entry.js +2 -2
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +2 -2
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +1 -1
- package/dist/esm/ic-page-header.entry.js +1 -1
- package/dist/esm/ic-radio-group.entry.js +1 -1
- package/dist/esm/ic-radio-option.entry.js +2 -2
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +27 -13
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-select.entry.js +2 -2
- package/dist/esm/ic-select.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +2 -2
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +1 -1
- package/dist/esm/ic-skeleton.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +2 -2
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +1 -9
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +1 -1
- package/dist/esm/ic-switch.entry.js +2 -2
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +2 -2
- package/dist/esm/ic-tab-group.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +0 -4
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tab.entry.js +1 -5
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-text-field.entry.js +2 -2
- package/dist/esm/ic-text-field.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +19 -11
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +2 -2
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/index-1500de1f.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/types-dd515332.js.map +1 -1
- package/dist/types/components/ic-card/ic-card.d.ts +4 -0
- package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +1 -1
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +8 -1
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.types.d.ts +5 -0
- package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +2 -0
- package/dist/types/components/ic-step/ic-step.d.ts +2 -3
- package/dist/types/components/ic-tab/ic-tab.d.ts +1 -2
- package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +1 -2
- package/dist/types/components/ic-theme/ic-theme.d.ts +2 -1
- package/dist/types/components.d.ts +6 -6
- package/dist/types/utils/constants.d.ts +2 -0
- package/dist/types/utils/helpers.d.ts +15 -3
- package/dist/types/utils/types.d.ts +3 -0
- package/hydrate/index.d.ts +1 -1
- package/hydrate/index.js +234 -126
- package/package.json +8 -5
- package/dist/cjs/helpers-d0eeccf0.js.map +0 -1
- package/dist/core/p-0992a2ee.entry.js.map +0 -1
- package/dist/core/p-0e1ae2a3.entry.js +0 -2
- package/dist/core/p-0e1ae2a3.entry.js.map +0 -1
- package/dist/core/p-155114db.entry.js +0 -2
- package/dist/core/p-155114db.entry.js.map +0 -1
- package/dist/core/p-16ab85c2.entry.js +0 -2
- package/dist/core/p-16ab85c2.entry.js.map +0 -1
- package/dist/core/p-17d0d631.entry.js.map +0 -1
- package/dist/core/p-2f29e74d.entry.js +0 -2
- package/dist/core/p-2f29e74d.entry.js.map +0 -1
- package/dist/core/p-4b6a55bb.entry.js.map +0 -1
- package/dist/core/p-6009c5bc.entry.js.map +0 -1
- package/dist/core/p-7612cfb0.entry.js +0 -2
- package/dist/core/p-7612cfb0.entry.js.map +0 -1
- package/dist/core/p-7dbb637f.entry.js +0 -2
- package/dist/core/p-7dbb637f.entry.js.map +0 -1
- package/dist/core/p-89d46b9b.entry.js +0 -2
- package/dist/core/p-89d46b9b.entry.js.map +0 -1
- package/dist/core/p-9a3d6bca.entry.js.map +0 -1
- package/dist/core/p-9c1f2861.entry.js.map +0 -1
- package/dist/core/p-a23e9d8a.entry.js +0 -2
- package/dist/core/p-a23e9d8a.entry.js.map +0 -1
- package/dist/core/p-aad5da60.entry.js +0 -2
- package/dist/core/p-aad5da60.entry.js.map +0 -1
- package/dist/core/p-aad76be7.entry.js +0 -2
- package/dist/core/p-aad76be7.entry.js.map +0 -1
- package/dist/core/p-ac76594c.entry.js +0 -2
- package/dist/core/p-ac76594c.entry.js.map +0 -1
- package/dist/core/p-b596f73d.entry.js +0 -2
- package/dist/core/p-b596f73d.entry.js.map +0 -1
- package/dist/core/p-b875ec01.entry.js +0 -2
- package/dist/core/p-b875ec01.entry.js.map +0 -1
- package/dist/core/p-bf4ddf33.entry.js.map +0 -1
- package/dist/core/p-c023c49c.entry.js.map +0 -1
- package/dist/core/p-d4a1734e.entry.js +0 -2
- package/dist/core/p-d4a1734e.entry.js.map +0 -1
- package/dist/core/p-d61c2983.entry.js +0 -2
- package/dist/core/p-d61c2983.entry.js.map +0 -1
- package/dist/core/p-dd36d23a.entry.js +0 -2
- package/dist/core/p-dd36d23a.entry.js.map +0 -1
- package/dist/core/p-eb0f09f4.entry.js +0 -2
- package/dist/core/p-eb0f09f4.entry.js.map +0 -1
- package/dist/core/p-eb33ece2.entry.js.map +0 -1
- package/dist/core/p-eeff0f89.entry.js.map +0 -1
- package/dist/core/p-f228c232.js +0 -2
- package/dist/core/p-f228c232.js.map +0 -1
- package/dist/core/p-f7e7d4f5.entry.js +0 -2
- package/dist/core/p-f7e7d4f5.entry.js.map +0 -1
- package/dist/core/p-ffc4cae2.entry.js +0 -2
- package/dist/core/p-ffc4cae2.entry.js.map +0 -1
- package/dist/esm/helpers-e090fe7e.js.map +0 -1
@@ -521,12 +521,21 @@ a:link:visited > ::slotted(svg) {
|
|
521
521
|
:host(.footer-link) a:link:focus,
|
522
522
|
:host(.footer-link) a ::slotted(a:link:hover),
|
523
523
|
:host(.footer-link) a ::slotted(a:link:focus) {
|
524
|
-
outline: none;
|
525
524
|
text-decoration-line: underline;
|
526
525
|
text-decoration-thickness: 25%;
|
527
526
|
text-underline-offset: 25%;
|
528
527
|
}
|
529
528
|
|
529
|
+
:host(.footer-link) a:link:hover,
|
530
|
+
:host(.footer-link) a ::slotted(a:link:hover) {
|
531
|
+
outline: none;
|
532
|
+
}
|
533
|
+
|
534
|
+
:host(.footer-link) a:link:focus,
|
535
|
+
:host(.footer-link) a ::slotted(a:link:focus) {
|
536
|
+
outline: var(--ic-hc-focus-outline);
|
537
|
+
}
|
538
|
+
|
530
539
|
:host(.footer-link) a:link:focus > ::slotted(svg),
|
531
540
|
:host(.footer-link) a:link:focus > ::slotted(img),
|
532
541
|
:host(.footer-link) a ::slotted(a:link:focus > ::slotted(svg)),
|
@@ -538,7 +547,7 @@ a:link:visited > ::slotted(svg) {
|
|
538
547
|
:host(.footer-link) a:focus,
|
539
548
|
:host(.footer-link) a ::slotted(a:focus) {
|
540
549
|
border-radius: var(--ic-border-radius);
|
541
|
-
outline:
|
550
|
+
outline: var(--ic-hc-focus-outline);
|
542
551
|
transition: var(--ic-transition-duration-fast);
|
543
552
|
}
|
544
553
|
|
@@ -556,3 +565,10 @@ a:link:visited > ::slotted(svg) {
|
|
556
565
|
:host(.footer-link) a ::slotted(a:hover) {
|
557
566
|
text-decoration: none;
|
558
567
|
}
|
568
|
+
|
569
|
+
@media (forced-colors: active) {
|
570
|
+
:host(.footer-link-light) ::slotted(svg),
|
571
|
+
:host(.footer-link-dark) ::slotted(svg) {
|
572
|
+
fill: currentcolor;
|
573
|
+
}
|
574
|
+
}
|
@@ -482,14 +482,14 @@ video {
|
|
482
482
|
:host(.footer-link-group-sparse:focus) {
|
483
483
|
box-shadow: var(--ic-border-focus-inset);
|
484
484
|
border-radius: var(--ic-border-radius-inset);
|
485
|
-
outline:
|
485
|
+
outline: var(--ic-hc-focus-outline);
|
486
486
|
z-index: 1;
|
487
487
|
}
|
488
488
|
|
489
489
|
:host(.footer-link-group-small:focus) {
|
490
490
|
box-shadow: var(--ic-border-focus-inset);
|
491
491
|
border-radius: var(--ic-border-radius-inset);
|
492
|
-
outline:
|
492
|
+
outline: var(--ic-hc-focus-outline);
|
493
493
|
z-index: 1;
|
494
494
|
}
|
495
495
|
|
package/dist/collection/components/ic-input-component-container/ic-input-component-container.css
CHANGED
@@ -14,6 +14,7 @@ ic-input-component-container {
|
|
14
14
|
box-sizing: border-box;
|
15
15
|
position: relative;
|
16
16
|
fill: var(--ic-architectural-400);
|
17
|
+
outline: none;
|
17
18
|
}
|
18
19
|
|
19
20
|
ic-input-component-container.fullwidth {
|
@@ -117,3 +118,21 @@ ic-input-component-container:hover {
|
|
117
118
|
.focus-indicator.dark:focus-within {
|
118
119
|
box-shadow: var(--ic-border-focus);
|
119
120
|
}
|
121
|
+
|
122
|
+
@media (forced-colors: active) {
|
123
|
+
/* Styles here only apply to Forced Colors Mode */
|
124
|
+
ic-input-component-container,
|
125
|
+
.focus-indicator {
|
126
|
+
transition: none;
|
127
|
+
}
|
128
|
+
|
129
|
+
ic-input-component-container:focus-within {
|
130
|
+
border: 1px solid Highlight;
|
131
|
+
outline: 2px solid Highlight;
|
132
|
+
}
|
133
|
+
|
134
|
+
ic-input-component-container.disabled,
|
135
|
+
ic-input-component-container.disabled:hover {
|
136
|
+
border: 1px dashed GrayText;
|
137
|
+
}
|
138
|
+
}
|
@@ -468,12 +468,21 @@ video {
|
|
468
468
|
:host(.link) .ic-link:focus,
|
469
469
|
:host(.link) ::slotted(a:hover),
|
470
470
|
:host(.link) ::slotted(a:focus) {
|
471
|
-
outline: none;
|
472
471
|
text-decoration-line: underline;
|
473
472
|
text-decoration-thickness: 25%;
|
474
473
|
text-underline-offset: 25%;
|
475
474
|
}
|
476
475
|
|
476
|
+
:host(.link) .ic-link:hover,
|
477
|
+
:host(.link) ::slotted(a:hover) {
|
478
|
+
outline: none;
|
479
|
+
}
|
480
|
+
|
481
|
+
:host(.link) .ic-link:focus,
|
482
|
+
:host(.link) ::slotted(a:focus) {
|
483
|
+
outline: var(--ic-hc-focus-outline);
|
484
|
+
}
|
485
|
+
|
477
486
|
:host(.link) .ic-link:active,
|
478
487
|
:host(.link) .ic-link:focus:active,
|
479
488
|
:host(.link) .ic-link:visited:active,
|
@@ -536,7 +545,7 @@ video {
|
|
536
545
|
|
537
546
|
:host(.breadcrumb-link.current-page) .ic-link,
|
538
547
|
:host(.breadcrumb-link.current-page) ::slotted(a:focus) {
|
539
|
-
outline:
|
548
|
+
outline: var(--ic-hc-focus-outline);
|
540
549
|
text-decoration: none;
|
541
550
|
}
|
542
551
|
|
@@ -456,6 +456,12 @@ video {
|
|
456
456
|
--linear-line-height: var(--ic-space-xs);
|
457
457
|
}
|
458
458
|
|
459
|
+
:host(.light) {
|
460
|
+
--inner-color: var(--ic-architectural-white);
|
461
|
+
--outer-color: var(--ic-architectural-800);
|
462
|
+
--label-color: var(--ic-architectural-white);
|
463
|
+
}
|
464
|
+
|
459
465
|
.ic-loading-container {
|
460
466
|
display: flex;
|
461
467
|
flex-direction: column;
|
@@ -473,7 +479,7 @@ video {
|
|
473
479
|
}
|
474
480
|
|
475
481
|
:host([size="large"]) {
|
476
|
-
--circular-diameter:
|
482
|
+
--circular-diameter: 120px;
|
477
483
|
}
|
478
484
|
|
479
485
|
:host([size="icon"]) {
|
@@ -494,11 +500,9 @@ video {
|
|
494
500
|
}
|
495
501
|
|
496
502
|
.ic-loading-circular-outer {
|
497
|
-
box-shadow: inset 0 0 0 var(--circular-line-width) var(--outer-color);
|
498
503
|
height: var(--circular-diameter);
|
499
504
|
width: var(--circular-diameter);
|
500
|
-
|
501
|
-
position: relative;
|
505
|
+
|
502
506
|
}
|
503
507
|
|
504
508
|
.ic-loading-circular-outer.indeterminate {
|
@@ -506,99 +510,6 @@ video {
|
|
506
510
|
animation-iteration-count: infinite;
|
507
511
|
}
|
508
512
|
|
509
|
-
.ic-loading-circular-inner {
|
510
|
-
height: var(--circular-diameter);
|
511
|
-
width: var(--circular-diameter);
|
512
|
-
border-radius: 50%;
|
513
|
-
position: relative;
|
514
|
-
}
|
515
|
-
|
516
|
-
.indeterminate > .ic-loading-circular-inner {
|
517
|
-
box-shadow: inset 0 0 0 var(--circular-line-width) var(--inner-color);
|
518
|
-
-webkit-clip-path: inset(0 50% 50% 0);
|
519
|
-
clip-path: inset(0 50% 50% 0);
|
520
|
-
}
|
521
|
-
|
522
|
-
.determinate > .ic-loading-circular-inner {
|
523
|
-
position: absolute;
|
524
|
-
top: 0;
|
525
|
-
left: 0;
|
526
|
-
bottom: 0;
|
527
|
-
right: 0;
|
528
|
-
}
|
529
|
-
|
530
|
-
.determinate > .ic-loading-circular-inner.clip {
|
531
|
-
clip: rect(
|
532
|
-
0,
|
533
|
-
var(--circular-diameter),
|
534
|
-
var(--circular-diameter),
|
535
|
-
calc(var(--circular-diameter) / 2)
|
536
|
-
);
|
537
|
-
}
|
538
|
-
|
539
|
-
.ic-loading-circular-inner .left,
|
540
|
-
.ic-loading-circular-inner .right {
|
541
|
-
height: 100%;
|
542
|
-
width: 100%;
|
543
|
-
border: var(--circular-line-width) solid var(--inner-color);
|
544
|
-
border-radius: 50%;
|
545
|
-
box-sizing: border-box;
|
546
|
-
clip: rect(
|
547
|
-
0,
|
548
|
-
calc(var(--circular-diameter) / 2),
|
549
|
-
var(--circular-diameter),
|
550
|
-
0
|
551
|
-
);
|
552
|
-
position: absolute;
|
553
|
-
left: 0;
|
554
|
-
top: 0;
|
555
|
-
}
|
556
|
-
|
557
|
-
.indeterminate > .ic-loading-circular-inner .left,
|
558
|
-
.indeterminate > .ic-loading-circular-inner .right {
|
559
|
-
display: none;
|
560
|
-
}
|
561
|
-
|
562
|
-
.determinate > .ic-loading-circular-inner .left {
|
563
|
-
transform: rotate(var(--circular-rotation));
|
564
|
-
}
|
565
|
-
|
566
|
-
.determinate > .ic-loading-circular-inner .right {
|
567
|
-
transform: rotate(180deg);
|
568
|
-
}
|
569
|
-
|
570
|
-
.determinate > .ic-loading-circular-inner.clip .right {
|
571
|
-
display: none;
|
572
|
-
}
|
573
|
-
|
574
|
-
.ic-loading-circular-outer::before {
|
575
|
-
content: "";
|
576
|
-
height: var(--circular-line-width);
|
577
|
-
width: var(--circular-line-width);
|
578
|
-
border-radius: 50%;
|
579
|
-
background-color: var(--inner-color);
|
580
|
-
position: absolute;
|
581
|
-
display: block;
|
582
|
-
top: calc(50% - var(--circular-line-width) / 2);
|
583
|
-
}
|
584
|
-
|
585
|
-
.ic-loading-circular-outer::after {
|
586
|
-
content: "";
|
587
|
-
height: var(--circular-line-width);
|
588
|
-
width: var(--circular-line-width);
|
589
|
-
border-radius: 50%;
|
590
|
-
background-color: var(--inner-color);
|
591
|
-
position: absolute;
|
592
|
-
display: block;
|
593
|
-
top: 0;
|
594
|
-
left: calc(50% - var(--circular-line-width) / 2);
|
595
|
-
}
|
596
|
-
|
597
|
-
.ic-loading-circular-outer.determinate::before,
|
598
|
-
.ic-loading-circular-outer.determinate::after {
|
599
|
-
display: none;
|
600
|
-
}
|
601
|
-
|
602
513
|
@keyframes circular-animation {
|
603
514
|
100% {
|
604
515
|
transform: rotate(360deg);
|
@@ -665,8 +576,52 @@ video {
|
|
665
576
|
}
|
666
577
|
}
|
667
578
|
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
579
|
+
.ic-loading-circular-svg {
|
580
|
+
position: relative;
|
581
|
+
width: 100%;
|
582
|
+
height: 100%;
|
583
|
+
transform: rotate(-90deg);
|
584
|
+
}
|
585
|
+
|
586
|
+
.ic-loading-circular-svg circle {
|
587
|
+
width: 100%;
|
588
|
+
height: 100%;
|
589
|
+
fill: none;
|
590
|
+
stroke: var(--outer-color);
|
591
|
+
stroke-width: var(--circular-line-width);
|
592
|
+
stroke-linecap: round;
|
593
|
+
}
|
594
|
+
|
595
|
+
/* --stroke-dash-array calculated via dashArray method */
|
596
|
+
.ic-loading-circular-svg circle:nth-child(2) {
|
597
|
+
--circular-indeterminate: calc(
|
598
|
+
(0.25 * var(--stroke-dasharray)) - var(--stroke-dasharray)
|
599
|
+
);
|
600
|
+
|
601
|
+
stroke-dasharray: var(--stroke-dasharray), var(--stroke-dasharray);
|
602
|
+
stroke-dashoffset: var(--stroke-dashoffset, var(--circular-indeterminate));
|
603
|
+
stroke: var(--inner-color);
|
604
|
+
}
|
605
|
+
|
606
|
+
/** High Contrast **/
|
607
|
+
@media (forced-colors: active) {
|
608
|
+
.indeterminate > .ic-loading-circular-inner {
|
609
|
+
forced-color-adjust: none;
|
610
|
+
}
|
611
|
+
|
612
|
+
.ic-loading-linear-outer {
|
613
|
+
border: var(--ic-hc-border);
|
614
|
+
}
|
615
|
+
|
616
|
+
.ic-loading-linear-inner {
|
617
|
+
background-color: canvastext;
|
618
|
+
}
|
619
|
+
|
620
|
+
.ic-loading-circular-svg circle {
|
621
|
+
stroke: Background;
|
622
|
+
}
|
623
|
+
|
624
|
+
.ic-loading-circular-svg circle:nth-child(2) {
|
625
|
+
stroke: canvastext;
|
626
|
+
}
|
672
627
|
}
|
@@ -2,6 +2,11 @@ import { h, Host } from "@stencil/core";
|
|
2
2
|
import { IcThemeForegroundEnum, } from "../../utils/types";
|
3
3
|
export class LoadingIndicator {
|
4
4
|
constructor() {
|
5
|
+
this.updateCircularProgressMeter = () => {
|
6
|
+
if (!this.indeterminate) {
|
7
|
+
this.circularMeter.style.setProperty("--progress-value", String(this.progress));
|
8
|
+
}
|
9
|
+
};
|
5
10
|
this.getLabel = (labelIndex, setLabel) => {
|
6
11
|
return new Promise(() => {
|
7
12
|
setInterval(() => {
|
@@ -30,13 +35,14 @@ export class LoadingIndicator {
|
|
30
35
|
};
|
31
36
|
// Sets the circular indicator line width - accounting for the circle size being altered using the CSS custom property
|
32
37
|
this.setCircleLineWidth = () => {
|
33
|
-
|
34
|
-
const width = (_a = this.outerElement) === null || _a === void 0 ? void 0 : _a.offsetWidth;
|
38
|
+
const { offsetWidth: width } = this.outerElement;
|
35
39
|
if (width) {
|
36
|
-
this.
|
40
|
+
this.circularLineWidth = width * 0.1;
|
41
|
+
this.circularDiameter = width;
|
42
|
+
this.outerElement.style.setProperty("--circular-line-width", `${this.circularLineWidth}px`);
|
37
43
|
}
|
38
44
|
};
|
39
|
-
this.
|
45
|
+
this.setLinearDeterminateWidth = () => {
|
40
46
|
if (!this.innerElement)
|
41
47
|
return;
|
42
48
|
// Ensure progress cannot be out of bounds
|
@@ -49,7 +55,6 @@ export class LoadingIndicator {
|
|
49
55
|
else {
|
50
56
|
this.innerElement.classList.add("clip");
|
51
57
|
}
|
52
|
-
this.innerElement.style.setProperty("--circular-rotation", `${proportion * 360}deg`);
|
53
58
|
this.innerElement.style.setProperty("--linear-width", `${proportion * 100}%`);
|
54
59
|
};
|
55
60
|
this.calcOuterClass = () => {
|
@@ -69,6 +74,27 @@ export class LoadingIndicator {
|
|
69
74
|
}
|
70
75
|
}
|
71
76
|
};
|
77
|
+
this.setCircleXY = () => {
|
78
|
+
if (this.circularDiameter) {
|
79
|
+
const r = this.circularDiameter / 2;
|
80
|
+
const x = r;
|
81
|
+
const y = r;
|
82
|
+
const nextRadius = r - this.circularLineWidth / 2;
|
83
|
+
this.setDashSteps(nextRadius);
|
84
|
+
return { x, y, r: nextRadius };
|
85
|
+
}
|
86
|
+
return { x: 0, y: 0, r: 0 };
|
87
|
+
};
|
88
|
+
this.setDashSteps = (radius) => {
|
89
|
+
const dashArray = 2 * Math.PI * radius;
|
90
|
+
const progress = Math.min(Math.max(this.progress, this.min), this.max);
|
91
|
+
const proportion = -1 - (progress - this.min) / (this.max - this.min);
|
92
|
+
this.circularMeter.style.setProperty("--stroke-dasharray", `${dashArray}px`);
|
93
|
+
if (!this.indeterminate) {
|
94
|
+
this.circularMeter.style.setProperty("--circular-steps-max", String(this.max));
|
95
|
+
this.circularMeter.style.setProperty("--stroke-dashoffset", `${proportion * dashArray}px`);
|
96
|
+
}
|
97
|
+
};
|
72
98
|
this.progress = undefined;
|
73
99
|
this.min = 0;
|
74
100
|
this.max = 100;
|
@@ -82,31 +108,41 @@ export class LoadingIndicator {
|
|
82
108
|
this.indicatorLabel = undefined;
|
83
109
|
this.indeterminate = undefined;
|
84
110
|
this.showSecond = false;
|
111
|
+
this.circularLineWidth = undefined;
|
112
|
+
this.circularDiameter = undefined;
|
85
113
|
}
|
86
114
|
watchPropHandler() {
|
87
115
|
this.updateLabel();
|
88
116
|
}
|
117
|
+
watchProgressHandler() {
|
118
|
+
this.updateCircularProgressMeter();
|
119
|
+
}
|
89
120
|
componentWillLoad() {
|
90
121
|
this.indeterminate = this.progress === undefined;
|
91
122
|
this.updateLabel();
|
92
123
|
}
|
93
124
|
componentDidLoad() {
|
94
|
-
this.
|
95
|
-
|
96
|
-
this.
|
125
|
+
if (this.type === "circular") {
|
126
|
+
this.setCircleLineWidth();
|
127
|
+
this.circularMeter = this.host.shadowRoot.querySelector(".ic-loading-circular-svg circle:nth-child(2)");
|
128
|
+
this.updateCircularProgressMeter();
|
129
|
+
}
|
130
|
+
if (Number(this.progress) >= 0 && this.type === "linear") {
|
131
|
+
this.setLinearDeterminateWidth();
|
97
132
|
}
|
98
133
|
}
|
99
134
|
componentWillUpdate() {
|
100
135
|
this.indeterminate = this.progress === undefined;
|
101
136
|
}
|
102
137
|
componentDidUpdate() {
|
103
|
-
if (Number(this.progress) >= 0) {
|
104
|
-
this.
|
138
|
+
if (Number(this.progress) >= 0 && this.type === "linear") {
|
139
|
+
this.setLinearDeterminateWidth();
|
105
140
|
}
|
106
141
|
}
|
107
142
|
render() {
|
108
143
|
const { appearance, label, description, size } = this;
|
109
|
-
|
144
|
+
const { x, y, r } = this.setCircleXY();
|
145
|
+
return (h(Host, { class: { ["light"]: appearance === IcThemeForegroundEnum.Light } }, h("div", { class: "ic-loading-container" }, h("div", { ref: (el) => (this.outerElement = el), class: this.calcOuterClass(), role: "progressbar", "aria-labelledby": this.label && this.size !== "icon" && "ic-loading-label", "aria-label": description, "aria-valuenow": this.progress, "aria-valuemin": this.min, "aria-valuemax": this.max }, h("div", { ref: (el) => (this.innerElement = el), class: `ic-loading-${this.type}-inner` }, this.type === "circular" && (h("svg", { class: "ic-loading-circular-svg", viewBox: `0 0 ${this.circularDiameter || 0} ${this.circularDiameter || 0}` }, h("circle", { cx: `${x}`, cy: `${y}`, r: `${r}` }), h("circle", { cx: `${x}`, cy: `${y}`, r: `${r}` }))))), label && size !== "icon" && (h("ic-typography", { id: "ic-loading-label", class: "ic-loading-label", role: "status", variant: this.getLabelVariant() }, h("p", null, this.indicatorLabel))))));
|
110
146
|
}
|
111
147
|
static get is() { return "ic-loading-indicator"; }
|
112
148
|
static get encapsulation() { return "shadow"; }
|
@@ -321,7 +357,9 @@ export class LoadingIndicator {
|
|
321
357
|
return {
|
322
358
|
"indicatorLabel": {},
|
323
359
|
"indeterminate": {},
|
324
|
-
"showSecond": {}
|
360
|
+
"showSecond": {},
|
361
|
+
"circularLineWidth": {},
|
362
|
+
"circularDiameter": {}
|
325
363
|
};
|
326
364
|
}
|
327
365
|
static get elementRef() { return "host"; }
|
@@ -329,6 +367,9 @@ export class LoadingIndicator {
|
|
329
367
|
return [{
|
330
368
|
"propName": "label",
|
331
369
|
"methodName": "watchPropHandler"
|
370
|
+
}, {
|
371
|
+
"propName": "progress",
|
372
|
+
"methodName": "watchProgressHandler"
|
332
373
|
}];
|
333
374
|
}
|
334
375
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ic-loading-indicator.js","sourceRoot":"","sources":["../../../src/components/ic-loading-indicator/ic-loading-indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEhF,OAAO,EAEL,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAO3B,MAAM,OAAO,gBAAgB;;IAsEnB,aAAQ,GAAG,CACjB,UAAkB,EAClB,QAAiC,EACjC,EAAE;MACF,OAAO,IAAI,OAAO,CAAC,GAAG,EAAE;QACtB,WAAW,CAAC,GAAG,EAAE;UACf,IAAI,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;YAC1C,UAAU,EAAE,CAAC;WACd;eAAM;YACL,UAAU,GAA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I,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,kBAAkB,gBAE9C,WAAW,mBACR,IAAI,CAAC,QAAQ,mBACb,IAAI,CAAC,GAAG,mBACR,IAAI,CAAC,GAAG;UAEvB,WACE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY,GAAG,EAAoB,CAAC,EACvD,KAAK,EAAE,cAAc,IAAI,CAAC,IAAI,QAAQ;YAErC,IAAI,CAAC,aAAa,IAAI,WAAK,KAAK,EAAC,MAAM,GAAG;YAC1C,IAAI,CAAC,aAAa,IAAI,WAAK,KAAK,EAAC,OAAO,GAAG,CACxC,CACF;QACL,KAAK,IAAI,IAAI,KAAK,MAAM,IAAI,CAC3B,qBACE,EAAE,EAAC,kBAAkB,EACrB,KAAK,EAAC,kBAAkB,EACxB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE;UAE/B,aAAI,IAAI,CAAC,cAAc,CAAK,CACd,CACjB,CACG,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, h, Host, Prop, State, Watch } from \"@stencil/core\";\nimport { IcLoadingSizes, IcLoadingTypes } from \"./ic-loading-indicator.types\";\nimport {\n IcThemeForegroundNoDefault,\n IcThemeForegroundEnum,\n} from \"../../utils/types\";\n\n@Component({\n tag: \"ic-loading-indicator\",\n styleUrl: \"ic-loading-indicator.css\",\n shadow: true,\n})\nexport class LoadingIndicator {\n @Element() host: HTMLIcLoadingIndicatorElement;\n\n /**\n * The current amount of progress made.\n * If not provided, component acts as an indeterminate loading indicator.\n */\n @Prop() progress?: number;\n\n /**\n * The minimum value that the progress value can take.\n * Used to calculate the proportional width of the progress bar.\n */\n @Prop() min?: number = 0;\n\n /**\n * The maximum value that the progress value can take.\n * Used to calculate the proportional width of the progress bar.\n */\n @Prop() max?: number = 100;\n\n /**\n * The label to be displayed beneath the loading indicator.\n * Display a changing label by separating multiple messages with forward slashes.\n */\n @Prop() label?: string;\n\n /**\n * Provide a description to be set as the aria-label of the loading indicator when not using a visible label.\n */\n @Prop() description?: string = \"Loading\";\n\n /**\n * The time in milliseconds before the label changes.\n */\n @Prop() labelDuration?: number = 8000;\n\n /**\n * The size of the loading indicator.\n */\n @Prop({ reflect: true }) size?: IcLoadingSizes = \"default\";\n\n /**\n * The type of indicator, either linear or circular.\n */\n @Prop({ reflect: true }) type?: IcLoadingTypes = \"circular\";\n\n /**\n * When linear, determines whether the full-width version (i.e. without a border radius) should be displayed.\n */\n @Prop({ reflect: true }) fullWidth?: boolean = false;\n\n /**\n * Determines whether the dark or light loading indicator should be displayed.\n */\n @Prop() appearance?: IcThemeForegroundNoDefault = \"dark\";\n\n @State() indicatorLabel: string;\n @State() indeterminate: boolean;\n @State() showSecond: boolean = false;\n\n @Watch(\"label\")\n watchPropHandler(): void {\n this.updateLabel();\n }\n\n private outerElement?: HTMLDivElement;\n private innerElement?: HTMLDivElement;\n private labelList: string[];\n\n private getLabel = (\n labelIndex: number,\n setLabel: (label: string) => void\n ) => {\n return new Promise(() => {\n setInterval(() => {\n if (labelIndex < this.labelList.length - 1) {\n labelIndex++;\n } else {\n labelIndex = 0;\n }\n setLabel(this.labelList[labelIndex]);\n }, this.labelDuration);\n });\n };\n\n private getLabelVariant = () => {\n let variant: \"label\" | \"h4\" | \"h2\" = \"h4\";\n const width = this.outerElement?.offsetWidth;\n if (this.size === \"small\" || (this.type === \"circular\" && width < 60)) {\n variant = \"label\";\n } else if (\n this.size === \"large\" ||\n (this.type === \"circular\" && width >= 120)\n ) {\n variant = \"h2\";\n }\n return variant;\n };\n\n // Sets the circular indicator line width - accounting for the circle size being altered using the CSS custom property\n private setCircleLineWidth = () => {\n const width = this.outerElement?.offsetWidth;\n if (width) {\n this.outerElement.style.setProperty(\n \"--circular-line-width\",\n `${width * 0.1}px`\n );\n }\n };\n\n private setDeterminateWidth = () => {\n if (!this.innerElement) return;\n // Ensure progress cannot be out of bounds\n\n const progress = Math.min(this.max, Math.max(this.min, this.progress));\n const proportion = (progress - this.min) / (this.max - this.min);\n this.showSecond = proportion > 0.5;\n if (this.showSecond) {\n this.innerElement.classList.remove(\"clip\");\n } else {\n this.innerElement.classList.add(\"clip\");\n }\n this.innerElement.style.setProperty(\n \"--circular-rotation\",\n `${proportion * 360}deg`\n );\n this.innerElement.style.setProperty(\n \"--linear-width\",\n `${proportion * 100}%`\n );\n };\n\n private calcOuterClass = (): string => {\n let cls = `ic-loading-${this.type}-outer`;\n cls += this.indeterminate ? \" indeterminate\" : \" determinate\";\n return cls;\n };\n\n private updateLabel = (): void => {\n if (this.label !== undefined) {\n this.labelList = this.label.split(\"/\");\n const labelIndex = 0;\n this.indicatorLabel = this.labelList[labelIndex];\n if (this.labelList.length > 1) {\n this.getLabel(labelIndex, (label) => {\n this.indicatorLabel = label;\n });\n }\n }\n };\n\n componentWillLoad(): void {\n this.indeterminate = this.progress === undefined;\n this.updateLabel();\n }\n\n componentDidLoad(): void {\n this.setCircleLineWidth();\n if (Number(this.progress) >= 0) {\n this.setDeterminateWidth();\n }\n }\n\n componentWillUpdate(): void {\n this.indeterminate = this.progress === undefined;\n }\n\n componentDidUpdate(): void {\n if (Number(this.progress) >= 0) {\n this.setDeterminateWidth();\n }\n }\n\n render() {\n const { appearance, label, description, size } = this;\n return (\n <Host class={{ [\"light\"]: appearance === IcThemeForegroundEnum.Light }}>\n <div class=\"ic-loading-container\">\n <div\n ref={(el) => (this.outerElement = el as HTMLDivElement)}\n class={this.calcOuterClass()}\n role=\"progressbar\"\n aria-labelledby={\n this.label && this.size !== \"icon\" && \"ic-loading-label\"\n }\n aria-label={description}\n aria-valuenow={this.progress}\n aria-valuemin={this.min}\n aria-valuemax={this.max}\n >\n <div\n ref={(el) => (this.innerElement = el as HTMLDivElement)}\n class={`ic-loading-${this.type}-inner`}\n >\n {this.indeterminate || <div class=\"left\" />}\n {this.indeterminate || <div class=\"right\" />}\n </div>\n </div>\n {label && size !== \"icon\" && (\n <ic-typography\n id=\"ic-loading-label\"\n class=\"ic-loading-label\"\n role=\"status\"\n variant={this.getLabelVariant()}\n >\n <p>{this.indicatorLabel}</p>\n </ic-typography>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
|
1
|
+
{"version":3,"file":"ic-loading-indicator.js","sourceRoot":"","sources":["../../../src/components/ic-loading-indicator/ic-loading-indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAMhF,OAAO,EACL,qBAAqB,GAEtB,MAAM,mBAAmB,CAAC;AAO3B,MAAM,OAAO,gBAAgB;;IA8EnB,gCAA2B,GAAG,GAAG,EAAE;MACzC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;QACvB,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,WAAW,CAClC,kBAAkB,EAClB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CACtB,CAAC;OACH;IACH,CAAC,CAAC;IAEM,aAAQ,GAAG,CACjB,UAAkB,EAClB,QAAiC,EACjC,EAAE;MACF,OAAO,IAAI,OAAO,CAAC,GAAG,EAAE;QACtB,WAAW,CAAC,GAAG,EAAE;UACf,IAAI,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;YAC1C,UAAU,EAAE,CAAC;WACd;eAAM;YACL,UAAU,GAAG,CAAC,CAAC;WAChB;UACD,QAAQ,CAAC,IAAI,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,IAAI,IAAI,KAAK,MAAM,IAAI,CAC3B,qBACE,EAAE,EAAC,kBAAkB,EACrB,KAAK,EAAC,kBAAkB,EACxB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE;UAE/B,aAAI,IAAI,CAAC,cAAc,CAAK,CACd,CACjB,CACG,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, h, Host, Prop, State, Watch } from \"@stencil/core\";\nimport {\n IcLoadingCircleXYR,\n IcLoadingSizes,\n IcLoadingTypes,\n} from \"./ic-loading-indicator.types\";\nimport {\n IcThemeForegroundEnum,\n IcThemeForegroundNoDefault,\n} from \"../../utils/types\";\n\n@Component({\n tag: \"ic-loading-indicator\",\n styleUrl: \"ic-loading-indicator.css\",\n shadow: true,\n})\nexport class LoadingIndicator {\n @Element() host: HTMLIcLoadingIndicatorElement;\n\n /**\n * The current amount of progress made.\n * If not provided, component acts as an indeterminate loading indicator.\n */\n @Prop() progress?: number;\n\n /**\n * The minimum value that the progress value can take.\n * Used to calculate the proportional width of the progress bar.\n */\n @Prop() min?: number = 0;\n\n /**\n * The maximum value that the progress value can take.\n * Used to calculate the proportional width of the progress bar.\n */\n @Prop() max?: number = 100;\n\n /**\n * The label to be displayed beneath the loading indicator.\n * Display a changing label by separating multiple messages with forward slashes.\n */\n @Prop() label?: string;\n\n /**\n * Provide a description to be set as the aria-label of the loading indicator when not using a visible label.\n */\n @Prop() description?: string = \"Loading\";\n\n /**\n * The time in milliseconds before the label changes.\n */\n @Prop() labelDuration?: number = 8000;\n\n /**\n * The size of the loading indicator.\n */\n @Prop({ reflect: true }) size?: IcLoadingSizes = \"default\";\n\n /**\n * The type of indicator, either linear or circular.\n */\n @Prop({ reflect: true }) type?: IcLoadingTypes = \"circular\";\n\n /**\n * When linear, determines whether the full-width version (i.e. without a border radius) should be displayed.\n */\n @Prop({ reflect: true }) fullWidth?: boolean = false;\n\n /**\n * Determines whether the dark or light loading indicator should be displayed.\n */\n @Prop() appearance?: IcThemeForegroundNoDefault = \"dark\";\n\n @State() indicatorLabel: string;\n @State() indeterminate: boolean;\n @State() showSecond: boolean = false;\n @State() circularLineWidth: number;\n @State() circularDiameter: number;\n\n @Watch(\"label\")\n watchPropHandler(): void {\n this.updateLabel();\n }\n\n @Watch(\"progress\")\n watchProgressHandler(): void {\n this.updateCircularProgressMeter();\n }\n\n private outerElement?: HTMLDivElement;\n private innerElement?: HTMLDivElement;\n private labelList: string[];\n private circularMeter: SVGCircleElement;\n\n private updateCircularProgressMeter = () => {\n if (!this.indeterminate) {\n this.circularMeter.style.setProperty(\n \"--progress-value\",\n String(this.progress)\n );\n }\n };\n\n private getLabel = (\n labelIndex: number,\n setLabel: (label: string) => void\n ) => {\n return new Promise(() => {\n setInterval(() => {\n if (labelIndex < this.labelList.length - 1) {\n labelIndex++;\n } else {\n labelIndex = 0;\n }\n setLabel(this.labelList[labelIndex]);\n }, this.labelDuration);\n });\n };\n\n private getLabelVariant = () => {\n let variant: \"label\" | \"h4\" | \"h2\" = \"h4\";\n const width = this.outerElement?.offsetWidth;\n if (this.size === \"small\" || (this.type === \"circular\" && width < 60)) {\n variant = \"label\";\n } else if (\n this.size === \"large\" ||\n (this.type === \"circular\" && width >= 120)\n ) {\n variant = \"h2\";\n }\n return variant;\n };\n\n // Sets the circular indicator line width - accounting for the circle size being altered using the CSS custom property\n private setCircleLineWidth = () => {\n const { offsetWidth: width } = this.outerElement;\n if (width) {\n this.circularLineWidth = width * 0.1;\n this.circularDiameter = width;\n this.outerElement.style.setProperty(\n \"--circular-line-width\",\n `${this.circularLineWidth}px`\n );\n }\n };\n\n private setLinearDeterminateWidth = () => {\n if (!this.innerElement) return;\n // Ensure progress cannot be out of bounds\n\n const progress = Math.min(this.max, Math.max(this.min, this.progress));\n const proportion = (progress - this.min) / (this.max - this.min);\n this.showSecond = proportion > 0.5;\n if (this.showSecond) {\n this.innerElement.classList.remove(\"clip\");\n } else {\n this.innerElement.classList.add(\"clip\");\n }\n this.innerElement.style.setProperty(\n \"--linear-width\",\n `${proportion * 100}%`\n );\n };\n\n private calcOuterClass = (): string => {\n let cls = `ic-loading-${this.type}-outer`;\n cls += this.indeterminate ? \" indeterminate\" : \" determinate\";\n return cls;\n };\n\n private updateLabel = (): void => {\n if (this.label !== undefined) {\n this.labelList = this.label.split(\"/\");\n const labelIndex = 0;\n this.indicatorLabel = this.labelList[labelIndex];\n if (this.labelList.length > 1) {\n this.getLabel(labelIndex, (label) => {\n this.indicatorLabel = label;\n });\n }\n }\n };\n\n private setCircleXY = (): IcLoadingCircleXYR => {\n if (this.circularDiameter) {\n const r = this.circularDiameter / 2;\n const x = r;\n const y = r;\n const nextRadius = r - this.circularLineWidth / 2;\n this.setDashSteps(nextRadius);\n\n return { x, y, r: nextRadius };\n }\n return { x: 0, y: 0, r: 0 };\n };\n\n private setDashSteps = (radius: number) => {\n const dashArray = 2 * Math.PI * radius;\n const progress = Math.min(Math.max(this.progress, this.min), this.max);\n const proportion = -1 - (progress - this.min) / (this.max - this.min);\n\n this.circularMeter.style.setProperty(\n \"--stroke-dasharray\",\n `${dashArray}px`\n );\n\n if (!this.indeterminate) {\n this.circularMeter.style.setProperty(\n \"--circular-steps-max\",\n String(this.max)\n );\n this.circularMeter.style.setProperty(\n \"--stroke-dashoffset\",\n `${proportion * dashArray}px`\n );\n }\n };\n\n componentWillLoad(): void {\n this.indeterminate = this.progress === undefined;\n this.updateLabel();\n }\n\n componentDidLoad(): void {\n if (this.type === \"circular\") {\n this.setCircleLineWidth();\n this.circularMeter = this.host.shadowRoot.querySelector(\n \".ic-loading-circular-svg circle:nth-child(2)\"\n );\n this.updateCircularProgressMeter();\n }\n\n if (Number(this.progress) >= 0 && this.type === \"linear\") {\n this.setLinearDeterminateWidth();\n }\n }\n\n componentWillUpdate(): void {\n this.indeterminate = this.progress === undefined;\n }\n\n componentDidUpdate(): void {\n if (Number(this.progress) >= 0 && this.type === \"linear\") {\n this.setLinearDeterminateWidth();\n }\n }\n\n render() {\n const { appearance, label, description, size } = this;\n const { x, y, r } = this.setCircleXY();\n\n return (\n <Host class={{ [\"light\"]: appearance === IcThemeForegroundEnum.Light }}>\n <div class=\"ic-loading-container\">\n <div\n ref={(el) => (this.outerElement = el as HTMLDivElement)}\n class={this.calcOuterClass()}\n role=\"progressbar\"\n aria-labelledby={\n this.label && this.size !== \"icon\" && \"ic-loading-label\"\n }\n aria-label={description}\n aria-valuenow={this.progress}\n aria-valuemin={this.min}\n aria-valuemax={this.max}\n >\n <div\n ref={(el) => (this.innerElement = el as HTMLDivElement)}\n class={`ic-loading-${this.type}-inner`}\n >\n {this.type === \"circular\" && (\n <svg\n class=\"ic-loading-circular-svg\"\n viewBox={`0 0 ${this.circularDiameter || 0} ${\n this.circularDiameter || 0\n }`}\n >\n <circle cx={`${x}`} cy={`${y}`} r={`${r}`}></circle>\n <circle cx={`${x}`} cy={`${y}`} r={`${r}`}></circle>\n </svg>\n )}\n </div>\n </div>\n {label && size !== \"icon\" && (\n <ic-typography\n id=\"ic-loading-label\"\n class=\"ic-loading-label\"\n role=\"status\"\n variant={this.getLabelVariant()}\n >\n <p>{this.indicatorLabel}</p>\n </ic-typography>\n )}\n </div>\n </Host>\n );\n }\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ic-loading-indicator.types.js","sourceRoot":"","sources":["../../../src/components/ic-loading-indicator/ic-loading-indicator.types.tsx"],"names":[],"mappings":"","sourcesContent":["export type IcLoadingSizes = \"default\" | \"small\" | \"large\" | \"icon\";\n\nexport type IcLoadingTypes = \"circular\" | \"linear\";\n"]}
|
1
|
+
{"version":3,"file":"ic-loading-indicator.types.js","sourceRoot":"","sources":["../../../src/components/ic-loading-indicator/ic-loading-indicator.types.tsx"],"names":[],"mappings":"","sourcesContent":["export type IcLoadingSizes = \"default\" | \"small\" | \"large\" | \"icon\";\n\nexport type IcLoadingTypes = \"circular\" | \"linear\";\n\nexport interface IcLoadingCircleXYR {\n x: number;\n y: number;\n r: number;\n}\n"]}
|
@@ -525,7 +525,7 @@ video {
|
|
525
525
|
}
|
526
526
|
|
527
527
|
.option:focus-visible {
|
528
|
-
outline:
|
528
|
+
outline: var(--ic-hc-focus-outline);
|
529
529
|
}
|
530
530
|
|
531
531
|
.option:not(.disabled-option) .option-description {
|
@@ -543,7 +543,7 @@ video {
|
|
543
543
|
}
|
544
544
|
|
545
545
|
.focused-option .check-icon * {
|
546
|
-
fill:
|
546
|
+
fill: currentColor;
|
547
547
|
}
|
548
548
|
|
549
549
|
.option-group-title {
|
@@ -578,3 +578,10 @@ video {
|
|
578
578
|
:host(.no-results) li:hover {
|
579
579
|
background-color: transparent;
|
580
580
|
}
|
581
|
+
|
582
|
+
@media (forced-colors: active) {
|
583
|
+
.focused-option:focus {
|
584
|
+
outline: none;
|
585
|
+
border: 2px solid transparent;
|
586
|
+
}
|
587
|
+
}
|
@@ -524,7 +524,7 @@ video {
|
|
524
524
|
:host(:not(.in-side-menu)) .navigation-group:focus {
|
525
525
|
box-shadow: var(--ic-border-focus);
|
526
526
|
border-radius: var(--ic-border-radius);
|
527
|
-
outline:
|
527
|
+
outline: var(--ic-hc-focus-outline);
|
528
528
|
z-index: 1;
|
529
529
|
transition: box-shadow var(--ic-easing-transition-fast);
|
530
530
|
}
|
@@ -539,6 +539,10 @@ video {
|
|
539
539
|
outline: none;
|
540
540
|
}
|
541
541
|
|
542
|
+
:host(.in-side-menu) .navigation-group-side-menu:focus {
|
543
|
+
outline: var(--ic-hc-focus-outline);
|
544
|
+
}
|
545
|
+
|
542
546
|
:host(.in-side-menu) .navigation-group-side-menu-expanded:hover:not(:focus),
|
543
547
|
:host(.in-side-menu) .navigation-group-side-menu-collapsed:hover:not(:focus) {
|
544
548
|
background-color: var(--ic-action-dark-bg-hover);
|
@@ -557,7 +561,7 @@ video {
|
|
557
561
|
color: var(--ic-action-default);
|
558
562
|
box-shadow: var(--ic-border-focus-inset);
|
559
563
|
border-radius: var(--ic-border-radius-inset);
|
560
|
-
outline:
|
564
|
+
outline: var(--ic-hc-focus-outline);
|
561
565
|
}
|
562
566
|
|
563
567
|
:host .navigation-group-dropdown {
|
@@ -531,21 +531,21 @@ ic-typography {
|
|
531
531
|
:host(.navigation-item) ::slotted(a:focus) {
|
532
532
|
box-shadow: var(--ic-border-focus);
|
533
533
|
border-radius: var(--ic-border-radius);
|
534
|
-
outline:
|
534
|
+
outline: var(--ic-hc-focus-outline);
|
535
535
|
}
|
536
536
|
|
537
537
|
:host(.navigation-item-selected) .link:focus,
|
538
538
|
:host(.navigation-item) ::slotted(a.active:focus) {
|
539
539
|
box-shadow: var(--ic-border-focus);
|
540
540
|
border-radius: var(--ic-border-radius);
|
541
|
-
outline:
|
541
|
+
outline: var(--ic-hc-focus-outline);
|
542
542
|
}
|
543
543
|
|
544
544
|
:host(.navigation-item-selected.dark) .link:focus,
|
545
545
|
:host(.navigation-item.dark) ::slotted(a.active:focus) {
|
546
546
|
box-shadow: var(--ic-border-focus);
|
547
547
|
border-radius: var(--ic-border-radius);
|
548
|
-
outline:
|
548
|
+
outline: var(--ic-hc-focus-outline);
|
549
549
|
}
|
550
550
|
|
551
551
|
:host(.navigation-item) .link:active:not(:focus),
|
@@ -638,7 +638,7 @@ ic-typography {
|
|
638
638
|
:host(.navigation-item-top-nav-child) .link:focus,
|
639
639
|
:host(.navigation-item-top-nav-child) ::slotted(a:focus) {
|
640
640
|
z-index: 1;
|
641
|
-
outline:
|
641
|
+
outline: var(--ic-hc-focus-outline);
|
642
642
|
border-radius: var(--ic-border-radius-inset);
|
643
643
|
box-shadow: var(--ic-border-focus-inset);
|
644
644
|
transition: border-radius 0s, box-shadow var(--ic-transition-duration-fast);
|
@@ -655,7 +655,7 @@ ic-typography {
|
|
655
655
|
|
656
656
|
:host(.navigation-item-top-nav-child) .link:active:not(:focus),
|
657
657
|
:host(.navigation-item-top-nav-child) ::slotted(a:active):not(:focus) {
|
658
|
-
outline:
|
658
|
+
outline: var(--ic-hc-focus-outline);
|
659
659
|
background-color: var(--ic-action-dark-bg-active);
|
660
660
|
}
|
661
661
|
|