@ukic/web-components 2.1.0-beta.16 → 2.1.0-beta.17
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/helpers-eb53c416.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +8 -8
- 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 +25 -19
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +5 -5
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +71 -70
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card.cjs.entry.js +40 -40
- package/dist/cjs/ic-card.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +17 -17
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +32 -29
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +15 -15
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +20 -20
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +54 -55
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +16 -16
- package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +14 -14
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +17 -17
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +18 -18
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +33 -20
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +86 -86
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +7 -7
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +17 -17
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js +12 -12
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +15 -15
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +36 -36
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +42 -42
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +26 -26
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +12 -12
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination-item.cjs.entry.js +5 -5
- package/dist/cjs/ic-pagination-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination.cjs.entry.js +30 -30
- package/dist/cjs/ic-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +61 -61
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +35 -28
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +36 -29
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +121 -121
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-select.cjs.entry.js +66 -65
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +31 -35
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +3 -3
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +3 -3
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +7 -7
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +13 -13
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +16 -16
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +26 -32
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +16 -16
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-text-field.cjs.entry.js +53 -53
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast-region.cjs.entry.js +12 -12
- package/dist/cjs/ic-toast-region.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +57 -57
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +38 -38
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +11 -11
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/ic-alert/ic-alert.js +49 -49
- package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
- package/dist/collection/components/ic-alert/{ic-alert.test.a11y.js → test/a11y/ic-alert.test.a11y.js} +1 -1
- package/dist/collection/components/ic-alert/test/a11y/ic-alert.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-alert/test/basic/ic-alert.e2e.js.map +1 -0
- package/dist/collection/components/ic-alert/{ic-alert.spec.js → test/basic/ic-alert.spec.js} +1 -1
- package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js.map +1 -0
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +4 -4
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js.map +1 -1
- package/dist/collection/components/ic-back-to-top/test/a11y/ic-back-to-top.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.e2e.js.map +1 -0
- package/dist/collection/components/ic-back-to-top/{ic-back-to-top.spec.js → test/basic/ic-back-to-top.spec.js} +3 -3
- package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js.map +1 -0
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +24 -24
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb/{ic-breadcrumb.spec.js → test/basic/ic-breadcrumb.spec.js} +1 -1
- package/dist/collection/components/ic-breadcrumb/test/basic/ic-breadcrumb.spec.js.map +1 -0
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +25 -19
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb-group/{ic-breadcrumb-group.test.a11y.js → test/a11y/ic-breadcrumb-group.test.a11y.js} +1 -1
- package/dist/collection/components/ic-breadcrumb-group/test/a11y/ic-breadcrumb-group.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group-test-examples.js.map +1 -0
- package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.e2e.js.map +1 -0
- package/dist/collection/components/ic-breadcrumb-group/{ic-breadcrumb-group.spec.js → test/basic/ic-breadcrumb-group.spec.js} +5 -5
- package/dist/collection/components/ic-breadcrumb-group/test/basic/ic-breadcrumb-group.spec.js.map +1 -0
- package/dist/collection/components/ic-button/ic-button.css +4 -0
- package/dist/collection/components/ic-button/ic-button.js +191 -190
- package/dist/collection/components/ic-button/ic-button.js.map +1 -1
- package/dist/collection/components/ic-button/{ic-button.test.a11y.js → test/a11y/ic-button.test.a11y.js} +1 -1
- package/dist/collection/components/ic-button/test/a11y/ic-button.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-button/test/basic/ic-button.e2e.js.map +1 -0
- package/dist/collection/components/ic-button/{ic-button.spec.js → test/basic/ic-button.spec.js} +2 -2
- package/dist/collection/components/ic-button/test/basic/ic-button.spec.js.map +1 -0
- package/dist/collection/components/ic-card/ic-card.js +120 -120
- package/dist/collection/components/ic-card/ic-card.js.map +1 -1
- package/dist/collection/components/ic-card/{ic-card.test.a11y.js → test/a11y/ic-card.test.a11y.js} +1 -1
- package/dist/collection/components/ic-card/test/a11y/ic-card.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-card/test/basic/ic-card.e2e.js.map +1 -0
- package/dist/collection/components/ic-card/{ic-card.spec.js → test/basic/ic-card.spec.js} +1 -1
- package/dist/collection/components/ic-card/test/basic/ic-card.spec.js.map +1 -0
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +94 -91
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +58 -58
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/{ic-checkbox-group.test.a11y.js → test/a11y/ic-checkbox-group.test.a11y.js} +1 -1
- package/dist/collection/components/ic-checkbox-group/test/a11y/ic-checkbox-group.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.e2e.js.map +1 -0
- package/dist/collection/components/ic-checkbox-group/{ic-checkbox-group.spec.js → test/basic/ic-checkbox-group.spec.js} +3 -3
- package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js.map +1 -0
- package/dist/collection/components/ic-chip/ic-chip.js +54 -54
- package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
- package/dist/collection/components/ic-chip/{ic-chip.test.a11y.js → test/a11y/ic-chip.test.a11y.js} +1 -1
- package/dist/collection/components/ic-chip/test/a11y/ic-chip.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-chip/{ic-chip.spec.js → test/basic/ic-chip.spec.js} +1 -1
- package/dist/collection/components/ic-chip/test/basic/ic-chip.spec.js.map +1 -0
- package/dist/collection/components/ic-classification-banner/{ic-classification-banner.test.a11y.js → test/a11y/ic-classification-banner.test.a11y.js} +1 -1
- package/dist/collection/components/ic-classification-banner/test/a11y/ic-classification-banner.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-classification-banner/{ic-classification-banner.spec.js → test/basic/ic-classification-banner.spec.js} +1 -1
- package/dist/collection/components/ic-classification-banner/test/basic/ic-classification-banner.spec.js.map +1 -0
- package/dist/collection/components/ic-data-entity/{ic-data-entity.test.a11y.js → test/a11y/ic-data-entity.test.a11y.js} +1 -1
- package/dist/collection/components/ic-data-entity/test/a11y/ic-data-entity.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-data-entity/{ic-data-entity.spec.js → test/basic/ic-data-entity.spec.js} +1 -1
- package/dist/collection/components/ic-data-entity/test/basic/ic-data-entity.spec.js.map +1 -0
- package/dist/collection/components/ic-data-row/ic-data-row.js +35 -35
- package/dist/collection/components/ic-data-row/ic-data-row.js.map +1 -1
- package/dist/collection/components/ic-data-row/{ic-data-row.test.a11y.js → test/a11y/ic-data-row.test.a11y.js} +1 -1
- package/dist/collection/components/ic-data-row/test/a11y/ic-data-row.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-data-row/{ic-data-row.spec.js → test/basic/ic-data-row.spec.js} +1 -1
- package/dist/collection/components/ic-data-row/test/basic/ic-data-row.spec.js.map +1 -0
- package/dist/collection/components/ic-dialog/ic-dialog.css +1 -4
- package/dist/collection/components/ic-dialog/ic-dialog.js +122 -123
- package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
- package/dist/collection/components/ic-dialog/{ic-dialog.test.a11y.js → test/a11y/ic-dialog.test.a11y.js} +1 -1
- package/dist/collection/components/ic-dialog/test/a11y/ic-dialog.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-dialog/test/basic/ic-dialog.e2e.js.map +1 -0
- package/dist/collection/components/ic-dialog/{ic-dialog.spec.js → test/basic/ic-dialog.spec.js} +4 -4
- package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js.map +1 -0
- package/dist/collection/components/ic-divider/{ic-divider.spec.js → test/basic/ic-divider.spec.js} +1 -1
- package/dist/collection/components/ic-divider/test/basic/ic-divider.spec.js.map +1 -0
- package/dist/collection/components/ic-footer/ic-footer.js +47 -47
- package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
- package/dist/collection/components/ic-footer/{ic-footer.test.a11y.js → test/a11y/ic-footer.test.a11y.js} +1 -1
- package/dist/collection/components/ic-footer/test/a11y/ic-footer.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-footer/test/basic/ic-footer.e2e.js.map +1 -0
- package/dist/collection/components/ic-footer/{ic-footer.spec.js → test/basic/ic-footer.spec.js} +3 -3
- package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js.map +1 -0
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +33 -33
- package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +1 -1
- package/dist/collection/components/ic-footer-link/{ic-footer-link.test.a11y.js → test/a11y/ic-footer-link.test.a11y.js} +1 -1
- package/dist/collection/components/ic-footer-link/test/a11y/ic-footer-link.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-footer-link/{ic-footer-link.spec.js → test/basic/ic-footer-link.spec.js} +1 -1
- package/dist/collection/components/ic-footer-link/test/basic/ic-footer-link.spec.js.map +1 -0
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +18 -18
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -1
- package/dist/collection/components/ic-footer-link-group/{ic-footer-link-group.test.a11y.js → test/a11y/ic-footer-link-group.test.a11y.js} +1 -1
- package/dist/collection/components/ic-footer-link-group/test/a11y/ic-footer-link-group.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-footer-link-group/{ic-footer-link-group.spec.js → test/basic/ic-footer-link-group.spec.js} +3 -3
- package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js.map +1 -0
- package/dist/collection/components/ic-hero/ic-hero.js +95 -95
- package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
- package/dist/collection/components/ic-hero/{ic-hero.test.a11y.js → test/a11y/ic-hero.test.a11y.js} +1 -1
- package/dist/collection/components/ic-hero/test/a11y/ic-hero.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-hero/{ic-hero.spec.js → test/basic/ic-hero.spec.js} +1 -1
- package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js.map +1 -0
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +35 -22
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js.map +1 -1
- package/dist/collection/components/ic-horizontal-scroll/{ic-horizontal-scroll.test.a11y.js → test/a11y/ic-horizontal-scroll.test.a11y.js} +1 -1
- package/dist/collection/components/ic-horizontal-scroll/test/a11y/ic-horizontal-scroll.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-horizontal-scroll/{ic-horizontal-scroll.spec.js → test/basic/ic-horizontal-scroll.spec.js} +2 -2
- package/dist/collection/components/ic-horizontal-scroll/test/basic/ic-horizontal-scroll.spec.js.map +1 -0
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +45 -45
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js.map +1 -1
- package/dist/collection/components/ic-input-component-container/{ic-input-component-container.spec.js → test/basic/ic-input-component-container.spec.js} +1 -1
- package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js.map +1 -0
- package/dist/collection/components/ic-input-container/{ic-input-container.spec.js → test/basic/ic-input-container.spec.js} +1 -1
- package/dist/collection/components/ic-input-container/test/basic/ic-input-container.spec.js.map +1 -0
- package/dist/collection/components/ic-input-label/ic-input-label.js +51 -51
- package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
- package/dist/collection/components/ic-input-label/{ic-input-label.spec.js → test/basic/ic-input-label.spec.js} +1 -1
- package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js.map +1 -0
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +41 -41
- package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
- package/dist/collection/components/ic-input-validation/{ic-input-validation.spec.js → test/basic/ic-input-validation.spec.js} +1 -1
- package/dist/collection/components/ic-input-validation/test/basic/ic-input-validation.spec.js.map +1 -0
- package/dist/collection/components/ic-link/ic-link.js +48 -48
- package/dist/collection/components/ic-link/ic-link.js.map +1 -1
- package/dist/collection/components/ic-link/{ic-link.test.a11y.js → test/a11y/ic-link.test.a11y.js} +1 -1
- package/dist/collection/components/ic-link/test/a11y/ic-link.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-link/{ic-link.spec.js → test/basic/ic-link.spec.js} +2 -2
- package/dist/collection/components/ic-link/test/basic/ic-link.spec.js.map +1 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +89 -89
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
- package/dist/collection/components/ic-loading-indicator/{ic-loading-indicator.test.a11y.js → test/a11y/ic-loading-indicator.test.a11y.js} +1 -1
- package/dist/collection/components/ic-loading-indicator/test/a11y/ic-loading-indicator.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.e2e.js.map +1 -0
- package/dist/collection/components/ic-loading-indicator/{ic-loading-indicator.spec.js → test/basic/ic-loading-indicator.spec.js} +3 -3
- package/dist/collection/components/ic-loading-indicator/test/basic/ic-loading-indicator.spec.js.map +1 -0
- package/dist/collection/components/ic-menu/ic-menu.js +238 -238
- package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-menu/{ic-menu.spec.js → test/basic/ic-menu.spec.js} +3 -3
- package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js.map +1 -0
- package/dist/collection/components/ic-menu-group/{ic-menu-group.spec.js → test/basic/ic-menu-group.spec.js} +2 -2
- package/dist/collection/components/ic-menu-group/test/basic/ic-menu-group.spec.js.map +1 -0
- package/dist/collection/components/ic-menu-item/ic-menu-item.js +75 -75
- package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +1 -1
- package/dist/collection/components/ic-menu-item/{ic-menu-item.spec.js → test/basic/ic-menu-item.spec.js} +2 -2
- package/dist/collection/components/ic-menu-item/test/basic/ic-menu-item.spec.js.map +1 -0
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +56 -56
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
- package/dist/collection/components/ic-navigation-button/{ic-navigation-button.spec.js → test/basic/ic-navigation-button.spec.js} +2 -2
- package/dist/collection/components/ic-navigation-button/test/basic/ic-navigation-button.spec.js.map +1 -0
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +55 -55
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
- package/dist/collection/components/ic-navigation-group/{ic-navigation-group.test.a11y.js → test/a11y/ic-navigation-group.test.a11y.js} +1 -1
- package/dist/collection/components/ic-navigation-group/test/a11y/ic-navigation-group.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-navigation-group/{ic-navigation-group.spec.js → test/basic/ic-navigation-group.spec.js} +8 -8
- package/dist/collection/components/ic-navigation-group/test/basic/ic-navigation-group.spec.js.map +1 -0
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +5 -4
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +135 -135
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
- package/dist/collection/components/ic-navigation-item/{ic-navigation-item.test.a11y.js → test/a11y/ic-navigation-item.test.a11y.js} +1 -1
- package/dist/collection/components/ic-navigation-item/test/a11y/ic-navigation-item.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-navigation-item/{ic-navigation-item.spec.js → test/basic/ic-navigation-item.spec.js} +5 -5
- package/dist/collection/components/ic-navigation-item/test/basic/ic-navigation-item.spec.js.map +1 -0
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.css +1 -4
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +31 -31
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -1
- package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.e2e.js.map +1 -0
- package/dist/collection/components/ic-navigation-menu/{ic-navigation-menu.spec.js → test/basic/ic-navigation-menu.spec.js} +6 -6
- package/dist/collection/components/ic-navigation-menu/test/basic/ic-navigation-menu.spec.js.map +1 -0
- package/dist/collection/components/ic-page-header/ic-page-header.js +56 -56
- package/dist/collection/components/ic-page-header/ic-page-header.js.map +1 -1
- package/dist/collection/components/ic-page-header/{ic-page-header.test.a11y.js → test/a11y/ic-page-header.test.a11y.js} +1 -1
- package/dist/collection/components/ic-page-header/test/a11y/ic-page-header.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-page-header/test/basic/ic-page-header.e2e.js.map +1 -0
- package/dist/collection/components/ic-page-header/{ic-page-header.spec.js → test/basic/ic-page-header.spec.js} +7 -7
- package/dist/collection/components/ic-page-header/test/basic/ic-page-header.spec.js.map +1 -0
- package/dist/collection/components/ic-pagination/ic-pagination.js +97 -97
- package/dist/collection/components/ic-pagination/ic-pagination.js.map +1 -1
- package/dist/collection/components/ic-pagination/{ic-pagination.test.a11y.js → test/a11y/ic-pagination.test.a11y.js} +1 -1
- package/dist/collection/components/ic-pagination/test/a11y/ic-pagination.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-pagination/test/basic/ic-pagination.e2e.js.map +1 -0
- package/dist/collection/components/ic-pagination/{ic-pagination.spec.js → test/basic/ic-pagination.spec.js} +3 -3
- package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js.map +1 -0
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +65 -65
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js.map +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +96 -96
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
- package/dist/collection/components/ic-popover-menu/{ic-popover-menu.test.a11y.js → test/a11y/ic-popover-menu.test.a11y.js} +1 -1
- package/dist/collection/components/ic-popover-menu/test/a11y/ic-popover-menu.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.e2e.js.map +1 -0
- package/dist/collection/components/ic-popover-menu/{ic-popover-menu.spec.js → test/basic/ic-popover-menu.spec.js} +4 -4
- package/dist/collection/components/ic-popover-menu/test/basic/ic-popover-menu.spec.js.map +1 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +94 -81
- package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
- package/dist/collection/components/ic-radio-group/{ic-radio-group.test.a11y.js → test/a11y/ic-radio-group.test.a11y.js} +1 -1
- package/dist/collection/components/ic-radio-group/test/a11y/ic-radio-group.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.e2e.js.map +1 -0
- package/dist/collection/components/ic-radio-group/{ic-radio-group.spec.js → test/basic/ic-radio-group.spec.js} +3 -3
- package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js.map +1 -0
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +112 -88
- package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +384 -384
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
- package/dist/collection/components/ic-search-bar/{ic-search-bar.test.a11y.js → test/a11y/ic-search-bar.test.a11y.js} +1 -1
- package/dist/collection/components/ic-search-bar/test/a11y/ic-search-bar.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js.map +1 -0
- package/dist/collection/components/ic-search-bar/{ic-search-bar.spec.js → test/basic/ic-search-bar.spec.js} +7 -7
- package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js.map +1 -0
- package/dist/collection/components/ic-section-container/{ic-section-container.spec.js → test/basic/ic-section-container.spec.js} +1 -1
- package/dist/collection/components/ic-section-container/test/basic/ic-section-container.spec.js.map +1 -0
- package/dist/collection/components/ic-select/ic-select.js +266 -265
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-select/{ic-select.test.a11y.js → test/a11y/ic-select.test.a11y.js} +1 -1
- package/dist/collection/components/ic-select/test/a11y/ic-select.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-select/test/basic/ic-select.e2e.js.map +1 -0
- package/dist/collection/components/ic-select/{ic-select.spec.js → test/basic/ic-select.spec.js} +6 -6
- package/dist/collection/components/ic-select/test/basic/ic-select.spec.js.map +1 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +1 -4
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +75 -79
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/{ic-side-navigation.test.a11y.js → test/a11y/ic-side-navigation.test.a11y.js} +1 -1
- package/dist/collection/components/ic-side-navigation/test/a11y/ic-side-navigation.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation-test-examples.js.map +1 -0
- package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.e2e.js.map +1 -0
- package/dist/collection/components/ic-side-navigation/{ic-side-navigation.spec.js → test/basic/ic-side-navigation.spec.js} +5 -5
- package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js.map +1 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.js +22 -22
- package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -1
- package/dist/collection/components/ic-skeleton/{ic-skeleton.test.a11y.js → test/a11y/ic-skeleton.test.a11y.js} +1 -1
- package/dist/collection/components/ic-skeleton/test/a11y/ic-skeleton.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-skeleton/{ic-skeleton.spec.js → test/basic/ic-skeleton.spec.js} +1 -1
- package/dist/collection/components/ic-skeleton/test/basic/ic-skeleton.spec.js.map +1 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.js +40 -40
- package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +1 -1
- package/dist/collection/components/ic-status-tag/{ic-status-tag.test.a11y.js → test/a11y/ic-status-tag.test.a11y.js} +1 -1
- package/dist/collection/components/ic-status-tag/test/a11y/ic-status-tag.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-status-tag/{ic-status-tag.spec.js → test/basic/ic-status-tag.spec.js} +1 -1
- package/dist/collection/components/ic-status-tag/test/basic/ic-status-tag.spec.js.map +1 -0
- package/dist/collection/components/ic-step/ic-step.js +126 -126
- package/dist/collection/components/ic-step/ic-step.js.map +1 -1
- package/dist/collection/components/ic-step/{ic-step.spec.js → test/basic/ic-step.spec.js} +3 -3
- package/dist/collection/components/ic-step/test/basic/ic-step.spec.js.map +1 -0
- package/dist/collection/components/ic-stepper/ic-stepper.js +41 -41
- package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
- package/dist/collection/components/ic-stepper/{ic-stepper.test.a11y.js → test/a11y/ic-stepper.test.a11y.js} +1 -1
- package/dist/collection/components/ic-stepper/test/a11y/ic-stepper.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-stepper/test/basic/ic-stepper-test-examples.js.map +1 -0
- package/dist/collection/components/ic-stepper/test/basic/ic-stepper.e2e.js.map +1 -0
- package/dist/collection/components/ic-stepper/{ic-stepper.spec.js → test/basic/ic-stepper.spec.js} +3 -3
- package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js.map +1 -0
- package/dist/collection/components/ic-switch/ic-switch.js +72 -72
- package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
- package/dist/collection/components/ic-switch/{ic-switch.test.a11y.js → test/a11y/ic-switch.test.a11y.js} +1 -1
- package/dist/collection/components/ic-switch/test/a11y/ic-switch.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-switch/{ic-switch.spec.js → test/basic/ic-switch.spec.js} +1 -1
- package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js.map +1 -0
- package/dist/collection/components/ic-tab/ic-tab.js +56 -56
- package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
- package/dist/collection/components/ic-tab/test/basic/ic-tab.e2e.js.map +1 -0
- package/dist/collection/components/ic-tab/{ic-tab.spec.js → test/basic/ic-tab.spec.js} +3 -3
- package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js.map +1 -0
- package/dist/collection/components/ic-tab-context/ic-tab-context.js +71 -77
- package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
- package/dist/collection/components/ic-tab-context/test/a11y/ic-tab-context.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-tab-context/{ic-tab-context.e2e.js → test/basic/ic-tab-context.e2e.js} +1 -1
- package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.e2e.js.map +1 -0
- package/dist/collection/components/ic-tab-context/{ic-tab-context.spec.js → test/basic/ic-tab-context.spec.js} +4 -4
- package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.spec.js.map +1 -0
- package/dist/collection/components/ic-tab-group/ic-tab-group.js +27 -27
- package/dist/collection/components/ic-tab-group/ic-tab-group.js.map +1 -1
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +33 -33
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js.map +1 -1
- package/dist/collection/components/ic-tab-panel/{ic-tab-panel.spec.js → test/basic/ic-tab-panel.spec.js} +1 -1
- package/dist/collection/components/ic-tab-panel/test/basic/ic-tab-panel.spec.js.map +1 -0
- package/dist/collection/components/ic-text-field/ic-text-field.js +371 -371
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
- package/dist/collection/components/ic-text-field/test/a11y/ic-text-field.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-text-field/test/basic/ic-text-field.e2e.js.map +1 -0
- package/dist/collection/components/ic-text-field/{ic-text-field.input.spec.js → test/basic/ic-text-field.input.spec.js} +2 -2
- package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js.map +1 -0
- package/dist/collection/components/ic-text-field/{ic-text-field.textarea.spec.js → test/basic/ic-text-field.textarea.spec.js} +1 -1
- package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js.map +1 -0
- package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
- package/dist/collection/components/ic-theme/test/basic/ic-theme.e2e.js.map +1 -0
- package/dist/collection/components/ic-theme/{ic-theme.spec.js → test/basic/ic-theme.spec.js} +3 -3
- package/dist/collection/components/ic-theme/test/basic/ic-theme.spec.js.map +1 -0
- package/dist/collection/components/ic-toast/ic-toast.js +111 -111
- package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
- package/dist/collection/components/ic-toast/{ic-toast.test.a11y.js → test/a11y/ic-toast.test.a11y.js} +1 -1
- package/dist/collection/components/ic-toast/test/a11y/ic-toast.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-toast/test/basic/ic-toast.e2e.js.map +1 -0
- package/dist/collection/components/ic-toast/{ic-toast.spec.js → test/basic/ic-toast.spec.js} +4 -4
- package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js.map +1 -0
- package/dist/collection/components/ic-toast-region/ic-toast-region.js +12 -12
- package/dist/collection/components/ic-toast-region/ic-toast-region.js.map +1 -1
- package/dist/collection/components/ic-toast-region/{ic-toast-region.spec.js → test/basic/ic-toast-region.spec.js} +3 -3
- package/dist/collection/components/ic-toast-region/test/basic/ic-toast-region.spec.js.map +1 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +47 -47
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
- package/dist/collection/components/ic-tooltip/{ic-tooltip.test.a11y.js → test/a11y/ic-tooltip.test.a11y.js} +1 -1
- package/dist/collection/components/ic-tooltip/test/a11y/ic-tooltip.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.e2e.js.map +1 -0
- package/dist/collection/components/ic-tooltip/{ic-tooltip.spec.js → test/basic/ic-tooltip.spec.js} +2 -2
- package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.spec.js.map +1 -0
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +82 -82
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
- package/dist/collection/components/ic-top-navigation/{ic-top-navigation.test.a11y.js → test/a11y/ic-top-navigation.test.a11y.js} +1 -1
- package/dist/collection/components/ic-top-navigation/test/a11y/ic-top-navigation.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.e2e.js.map +1 -0
- package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.mobile.e2e.js.map +1 -0
- package/dist/collection/components/ic-top-navigation/{ic-top-navigation.spec.js → test/basic/ic-top-navigation.spec.js} +8 -8
- package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.spec.js.map +1 -0
- package/dist/collection/components/ic-typography/ic-typography.js +36 -36
- package/dist/collection/components/ic-typography/ic-typography.js.map +1 -1
- package/dist/collection/components/ic-typography/{ic-typography.test.a11y.js → test/a11y/ic-typography.test.a11y.js} +1 -1
- package/dist/collection/components/ic-typography/test/a11y/ic-typography.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-typography/test/basic/ic-typography.e2e.js.map +1 -0
- package/dist/collection/components/ic-typography/{ic-typography.spec.js → test/basic/ic-typography.spec.js} +1 -1
- package/dist/collection/components/ic-typography/test/basic/ic-typography.spec.js.map +1 -0
- package/dist/collection/testspec.setup.js.map +1 -1
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/components/helpers.js +1 -1
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-alert2.js +13 -13
- package/dist/components/ic-alert2.js.map +1 -1
- package/dist/components/ic-back-to-top.js +4 -4
- package/dist/components/ic-back-to-top.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js +25 -19
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +7 -7
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +47 -46
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card.js +50 -50
- package/dist/components/ic-card.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +20 -20
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +37 -34
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +19 -19
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-data-row.js +21 -21
- package/dist/components/ic-data-row.js.map +1 -1
- package/dist/components/ic-dialog.js +60 -61
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-footer-link-group.js +19 -19
- package/dist/components/ic-footer-link-group.js.map +1 -1
- package/dist/components/ic-footer-link.js +16 -16
- package/dist/components/ic-footer-link.js.map +1 -1
- package/dist/components/ic-footer.js +19 -19
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-hero.js +25 -25
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-horizontal-scroll2.js +34 -21
- package/dist/components/ic-horizontal-scroll2.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +8 -8
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-label2.js +8 -8
- package/dist/components/ic-input-label2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +6 -6
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-link2.js +20 -20
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +24 -24
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-item2.js +17 -17
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-menu2.js +93 -93
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +20 -20
- package/dist/components/ic-navigation-button.js.map +1 -1
- package/dist/components/ic-navigation-group.js +40 -40
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +52 -52
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +28 -28
- package/dist/components/ic-navigation-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js +18 -18
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +11 -11
- package/dist/components/ic-pagination-item2.js.map +1 -1
- package/dist/components/ic-pagination.js +39 -39
- package/dist/components/ic-pagination.js.map +1 -1
- package/dist/components/ic-popover-menu.js +64 -64
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +40 -33
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +42 -35
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +145 -145
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-select.js +95 -94
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-side-navigation.js +40 -44
- package/dist/components/ic-side-navigation.js.map +1 -1
- package/dist/components/ic-skeleton.js +5 -5
- package/dist/components/ic-skeleton.js.map +1 -1
- package/dist/components/ic-status-tag.js +6 -6
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +15 -15
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +19 -19
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +21 -21
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +28 -34
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +3 -3
- package/dist/components/ic-tab-group.js.map +1 -1
- package/dist/components/ic-tab-panel.js +4 -4
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +17 -17
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field2.js +83 -83
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-toast-region.js +12 -12
- package/dist/components/ic-toast-region.js.map +1 -1
- package/dist/components/ic-toast.js +62 -62
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-tooltip2.js +26 -26
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +47 -47
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-typography2.js +14 -14
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/{p-3ce0aa02.entry.js → p-00b0c1b5.entry.js} +2 -2
- package/dist/core/p-00b0c1b5.entry.js.map +1 -0
- package/dist/core/{p-ca6820dc.entry.js → p-0471f0a2.entry.js} +2 -2
- package/dist/core/p-0471f0a2.entry.js.map +1 -0
- package/dist/core/{p-bad10f6c.entry.js → p-053b387f.entry.js} +2 -2
- package/dist/core/p-053b387f.entry.js.map +1 -0
- package/dist/core/{p-31e80ccb.entry.js → p-071bd3f5.entry.js} +2 -2
- package/dist/core/p-071bd3f5.entry.js.map +1 -0
- package/dist/core/p-0738d6e3.entry.js +2 -0
- package/dist/core/p-0738d6e3.entry.js.map +1 -0
- package/dist/core/{p-b03bd9c6.entry.js → p-0ccdb432.entry.js} +2 -2
- package/dist/core/p-0ccdb432.entry.js.map +1 -0
- package/dist/core/{p-aeef3c9d.entry.js → p-0d4507ef.entry.js} +2 -2
- package/dist/core/p-0d4507ef.entry.js.map +1 -0
- package/dist/core/{p-97286148.entry.js → p-11e0f917.entry.js} +2 -2
- package/dist/core/p-11e0f917.entry.js.map +1 -0
- package/dist/core/{p-97fd0cc1.entry.js → p-12287f17.entry.js} +2 -2
- package/dist/core/p-12287f17.entry.js.map +1 -0
- package/dist/core/{p-a9de9aba.entry.js → p-18f86ab2.entry.js} +2 -2
- package/dist/core/{p-a9de9aba.entry.js.map → p-18f86ab2.entry.js.map} +1 -1
- package/dist/core/{p-ef91c17e.entry.js → p-1a7d6eca.entry.js} +2 -2
- package/dist/core/p-1a7d6eca.entry.js.map +1 -0
- package/dist/core/p-1c30ece9.entry.js +2 -0
- package/dist/core/p-1c30ece9.entry.js.map +1 -0
- package/dist/core/{p-b0685167.entry.js → p-206a402a.entry.js} +2 -2
- package/dist/core/p-206a402a.entry.js.map +1 -0
- package/dist/core/{p-a74b8476.entry.js → p-221c905b.entry.js} +2 -2
- package/dist/core/p-221c905b.entry.js.map +1 -0
- package/dist/core/p-2b80ce4c.entry.js +2 -0
- package/dist/core/p-2b80ce4c.entry.js.map +1 -0
- package/dist/core/{p-323bce82.entry.js → p-3294961a.entry.js} +2 -2
- package/dist/core/p-3294961a.entry.js.map +1 -0
- package/dist/core/p-36115f6a.entry.js +2 -0
- package/dist/core/p-36115f6a.entry.js.map +1 -0
- package/dist/core/{p-311c38b3.entry.js → p-38450979.entry.js} +2 -2
- package/dist/core/p-38450979.entry.js.map +1 -0
- package/dist/core/{p-b35a9909.entry.js → p-39ec4fc2.entry.js} +2 -2
- package/dist/core/p-39ec4fc2.entry.js.map +1 -0
- package/dist/core/p-4a47cc51.entry.js +2 -0
- package/dist/core/p-4a47cc51.entry.js.map +1 -0
- package/dist/core/{p-ecdcae46.entry.js → p-4a814585.entry.js} +2 -2
- package/dist/core/p-4a814585.entry.js.map +1 -0
- package/dist/core/{p-820e4c17.entry.js → p-51d4c05c.entry.js} +2 -2
- package/dist/core/{p-820e4c17.entry.js.map → p-51d4c05c.entry.js.map} +1 -1
- package/dist/core/{p-2e051e1e.entry.js → p-54a5e971.entry.js} +2 -2
- package/dist/core/p-54a5e971.entry.js.map +1 -0
- package/dist/core/{p-0d325b4c.entry.js → p-57ba3442.entry.js} +2 -2
- package/dist/core/p-57ba3442.entry.js.map +1 -0
- package/dist/core/{p-68308ecd.entry.js → p-594e88fe.entry.js} +2 -2
- package/dist/core/p-594e88fe.entry.js.map +1 -0
- package/dist/core/{p-79914e0c.entry.js → p-5d245683.entry.js} +2 -2
- package/dist/core/{p-79914e0c.entry.js.map → p-5d245683.entry.js.map} +1 -1
- package/dist/core/{p-29d9fea1.entry.js → p-64584eb6.entry.js} +2 -2
- package/dist/core/p-64584eb6.entry.js.map +1 -0
- package/dist/core/{p-ad6c4c02.entry.js → p-67e99ad8.entry.js} +2 -2
- package/dist/core/p-67e99ad8.entry.js.map +1 -0
- package/dist/core/{p-f0714432.entry.js → p-6921177c.entry.js} +2 -2
- package/dist/core/p-6921177c.entry.js.map +1 -0
- package/dist/core/{p-84c8c4c7.entry.js → p-6ac8df90.entry.js} +2 -2
- package/dist/core/{p-84c8c4c7.entry.js.map → p-6ac8df90.entry.js.map} +1 -1
- package/dist/core/{p-dbe06c3b.entry.js → p-6aee5f18.entry.js} +2 -2
- package/dist/core/p-6aee5f18.entry.js.map +1 -0
- package/dist/core/{p-da4c1409.entry.js → p-7350d63d.entry.js} +2 -2
- package/dist/core/p-7350d63d.entry.js.map +1 -0
- package/dist/core/p-75e23d08.entry.js +2 -0
- package/dist/core/p-75e23d08.entry.js.map +1 -0
- package/dist/core/p-7ae1d7bc.entry.js +2 -0
- package/dist/core/p-7ae1d7bc.entry.js.map +1 -0
- package/dist/core/{p-6c76c6ba.entry.js → p-7fafc87a.entry.js} +2 -2
- package/dist/core/p-7fafc87a.entry.js.map +1 -0
- package/dist/core/{p-2ec49a7e.entry.js → p-9779c179.entry.js} +2 -2
- package/dist/core/{p-2ec49a7e.entry.js.map → p-9779c179.entry.js.map} +1 -1
- package/dist/core/{p-617950f8.entry.js → p-9e7b1167.entry.js} +2 -2
- package/dist/core/p-9e7b1167.entry.js.map +1 -0
- package/dist/core/{p-bda4414e.entry.js → p-ac10763e.entry.js} +2 -2
- package/dist/core/p-ac10763e.entry.js.map +1 -0
- package/dist/core/{p-31ccdd50.entry.js → p-acdc2931.entry.js} +2 -2
- package/dist/core/p-acdc2931.entry.js.map +1 -0
- package/dist/core/{p-f381e93f.entry.js → p-bc02816a.entry.js} +2 -2
- package/dist/core/p-bc02816a.entry.js.map +1 -0
- package/dist/core/{p-551986d1.entry.js → p-bde0fcab.entry.js} +2 -2
- package/dist/core/p-bde0fcab.entry.js.map +1 -0
- package/dist/core/{p-8911656b.entry.js → p-be6ee8a9.entry.js} +2 -2
- package/dist/core/{p-8911656b.entry.js.map → p-be6ee8a9.entry.js.map} +1 -1
- package/dist/core/{p-4a385752.js → p-bf5669a2.js} +2 -2
- package/dist/core/{p-4a385752.js.map → p-bf5669a2.js.map} +1 -1
- package/dist/core/{p-c0333310.entry.js → p-c4dcc6b9.entry.js} +2 -2
- package/dist/core/p-c4dcc6b9.entry.js.map +1 -0
- package/dist/core/{p-dfd31e28.entry.js → p-ca0e8569.entry.js} +2 -2
- package/dist/core/p-ca0e8569.entry.js.map +1 -0
- package/dist/core/p-ddb60a4b.entry.js +2 -0
- package/dist/core/p-ddb60a4b.entry.js.map +1 -0
- package/dist/core/{p-e3e6308b.entry.js → p-e0bbf81e.entry.js} +2 -2
- package/dist/core/{p-5fcd965f.entry.js → p-e6d3b5f8.entry.js} +2 -2
- package/dist/core/p-e6d3b5f8.entry.js.map +1 -0
- package/dist/core/p-e8be020c.entry.js +2 -0
- package/dist/core/p-e8be020c.entry.js.map +1 -0
- package/dist/core/{p-249af8ab.entry.js → p-fa40a71b.entry.js} +2 -2
- package/dist/core/{p-249af8ab.entry.js.map → p-fa40a71b.entry.js.map} +1 -1
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-8e57082b.js → helpers-c4e378c4.js} +2 -2
- package/dist/esm/{helpers-8e57082b.js.map → helpers-c4e378c4.js.map} +1 -1
- package/dist/esm/ic-alert.entry.js +9 -9
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +3 -3
- package/dist/esm/ic-back-to-top.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +26 -20
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +6 -6
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +72 -71
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card.entry.js +41 -41
- package/dist/esm/ic-card.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +18 -18
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +33 -30
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +16 -16
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +21 -21
- package/dist/esm/ic-data-row.entry.js.map +1 -1
- package/dist/esm/ic-dialog.entry.js +55 -56
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +1 -1
- package/dist/esm/ic-footer-link-group.entry.js +17 -17
- package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
- package/dist/esm/ic-footer-link.entry.js +15 -15
- package/dist/esm/ic-footer-link.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +18 -18
- package/dist/esm/ic-footer.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js +19 -19
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +34 -21
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_3.entry.js +87 -87
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +8 -8
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- package/dist/esm/ic-link.entry.js +18 -18
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-item.entry.js +13 -13
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +16 -16
- package/dist/esm/ic-navigation-button.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +37 -37
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +43 -43
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +27 -27
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
- package/dist/esm/ic-page-header.entry.js +13 -13
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination-item.entry.js +6 -6
- package/dist/esm/ic-pagination-item.entry.js.map +1 -1
- package/dist/esm/ic-pagination.entry.js +31 -31
- package/dist/esm/ic-pagination.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +62 -62
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +36 -29
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +37 -30
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +122 -122
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-select.entry.js +67 -66
- package/dist/esm/ic-select.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +32 -36
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +3 -3
- package/dist/esm/ic-skeleton.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +4 -4
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +7 -7
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +14 -14
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +17 -17
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +26 -32
- package/dist/esm/ic-tab-context.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 +2 -2
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tab.entry.js +17 -17
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-text-field.entry.js +54 -54
- package/dist/esm/ic-text-field.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +1 -1
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-toast-region.entry.js +12 -12
- package/dist/esm/ic-toast-region.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +58 -58
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +39 -39
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +12 -12
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-alert/ic-alert.d.ts +12 -12
- package/dist/types/components/ic-back-to-top/ic-back-to-top.d.ts +8 -8
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +6 -6
- package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +15 -11
- package/dist/types/components/ic-button/ic-button.d.ts +52 -52
- package/dist/types/components/ic-card/ic-card.d.ts +32 -32
- package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +27 -26
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +13 -13
- package/dist/types/components/ic-chip/ic-chip.d.ts +16 -16
- package/dist/types/components/ic-data-row/ic-data-row.d.ts +11 -11
- package/dist/types/components/ic-dialog/ic-dialog.d.ts +47 -47
- package/dist/types/components/ic-footer/ic-footer.d.ts +20 -20
- package/dist/types/components/ic-footer-link/ic-footer-link.d.ts +9 -9
- package/dist/types/components/ic-footer-link-group/ic-footer-link-group.d.ts +8 -8
- package/dist/types/components/ic-hero/ic-hero.d.ts +24 -24
- package/dist/types/components/ic-horizontal-scroll/ic-horizontal-scroll.d.ts +15 -14
- package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +15 -15
- package/dist/types/components/ic-input-label/ic-input-label.d.ts +14 -14
- package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +8 -8
- package/dist/types/components/ic-link/ic-link.d.ts +8 -8
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +38 -38
- package/dist/types/components/ic-menu/ic-menu.d.ts +63 -63
- package/dist/types/components/ic-menu-item/ic-menu-item.d.ts +23 -23
- package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +21 -21
- package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +20 -20
- package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +39 -39
- package/dist/types/components/ic-navigation-menu/ic-navigation-menu.d.ts +14 -14
- package/dist/types/components/ic-page-header/ic-page-header.d.ts +19 -19
- package/dist/types/components/ic-pagination/ic-pagination.d.ts +26 -26
- package/dist/types/components/ic-pagination-item/ic-pagination-item.d.ts +15 -15
- package/dist/types/components/ic-popover-menu/ic-popover-menu.d.ts +22 -22
- package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +19 -21
- package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +31 -26
- package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +105 -105
- package/dist/types/components/ic-select/ic-select.d.ts +86 -86
- package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +27 -24
- package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +8 -8
- package/dist/types/components/ic-status-tag/ic-status-tag.d.ts +8 -8
- package/dist/types/components/ic-step/ic-step.d.ts +24 -24
- package/dist/types/components/ic-stepper/ic-stepper.d.ts +17 -17
- package/dist/types/components/ic-switch/ic-switch.d.ts +23 -23
- package/dist/types/components/ic-tab/ic-tab.d.ts +16 -16
- package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +20 -19
- package/dist/types/components/ic-tab-group/ic-tab-group.d.ts +4 -4
- package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +6 -6
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +102 -102
- package/dist/types/components/ic-theme/ic-theme.d.ts +1 -1
- package/dist/types/components/ic-toast/ic-toast.d.ts +26 -27
- package/dist/types/components/ic-toast-region/ic-toast-region.d.ts +3 -3
- package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +17 -17
- package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +32 -32
- package/dist/types/components/ic-typography/ic-typography.d.ts +16 -16
- package/dist/types/components.d.ts +5 -1
- package/dist/types/testspec.setup.d.ts +7 -5
- package/hydrate/index.js +1637 -1610
- package/package.json +3 -3
- package/dist/collection/components/ic-alert/ic-alert.e2e.js.map +0 -1
- package/dist/collection/components/ic-alert/ic-alert.spec.js.map +0 -1
- package/dist/collection/components/ic-alert/ic-alert.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.e2e.js.map +0 -1
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.spec.js.map +0 -1
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.spec.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group-test-examples.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.e2e.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.spec.js.map +0 -1
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-button/ic-button.e2e.js.map +0 -1
- package/dist/collection/components/ic-button/ic-button.spec.js.map +0 -1
- package/dist/collection/components/ic-button/ic-button.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-card/ic-card.e2e.js.map +0 -1
- package/dist/collection/components/ic-card/ic-card.spec.js.map +0 -1
- package/dist/collection/components/ic-card/ic-card.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.e2e.js.map +0 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.spec.js.map +0 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-chip/ic-chip.spec.js.map +0 -1
- package/dist/collection/components/ic-chip/ic-chip.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.spec.js.map +0 -1
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-data-entity/ic-data-entity.spec.js.map +0 -1
- package/dist/collection/components/ic-data-entity/ic-data-entity.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-data-row/ic-data-row.spec.js.map +0 -1
- package/dist/collection/components/ic-data-row/ic-data-row.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-dialog/ic-dialog.e2e.js.map +0 -1
- package/dist/collection/components/ic-dialog/ic-dialog.spec.js.map +0 -1
- package/dist/collection/components/ic-dialog/ic-dialog.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-divider/ic-divider.spec.js.map +0 -1
- package/dist/collection/components/ic-footer/ic-footer.e2e.js.map +0 -1
- package/dist/collection/components/ic-footer/ic-footer.spec.js.map +0 -1
- package/dist/collection/components/ic-footer/ic-footer.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-footer-link/ic-footer-link.spec.js.map +0 -1
- package/dist/collection/components/ic-footer-link/ic-footer-link.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.spec.js.map +0 -1
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-hero/ic-hero.spec.js.map +0 -1
- package/dist/collection/components/ic-hero/ic-hero.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.spec.js.map +0 -1
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.spec.js.map +0 -1
- package/dist/collection/components/ic-input-container/ic-input-container.spec.js.map +0 -1
- package/dist/collection/components/ic-input-label/ic-input-label.spec.js.map +0 -1
- package/dist/collection/components/ic-input-validation/ic-input-validation.spec.js.map +0 -1
- package/dist/collection/components/ic-link/ic-link.spec.js.map +0 -1
- package/dist/collection/components/ic-link/ic-link.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.e2e.js.map +0 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.spec.js.map +0 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-menu/ic-menu.spec.js.map +0 -1
- package/dist/collection/components/ic-menu-group/ic-menu-group.spec.js.map +0 -1
- package/dist/collection/components/ic-menu-item/ic-menu-item.spec.js.map +0 -1
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.spec.js.map +0 -1
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.spec.js.map +0 -1
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.spec.js.map +0 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.e2e.js.map +0 -1
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.spec.js.map +0 -1
- package/dist/collection/components/ic-page-header/ic-page-header.e2e.js.map +0 -1
- package/dist/collection/components/ic-page-header/ic-page-header.spec.js.map +0 -1
- package/dist/collection/components/ic-page-header/ic-page-header.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-pagination/ic-pagination.e2e.js.map +0 -1
- package/dist/collection/components/ic-pagination/ic-pagination.spec.js.map +0 -1
- package/dist/collection/components/ic-pagination/ic-pagination.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.e2e.js.map +0 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.spec.js.map +0 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.e2e.js.map +0 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.spec.js.map +0 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-search-bar/ic-search-bar.e2e.js.map +0 -1
- package/dist/collection/components/ic-search-bar/ic-search-bar.spec.js.map +0 -1
- package/dist/collection/components/ic-search-bar/ic-search-bar.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-section-container/ic-section-container.spec.js.map +0 -1
- package/dist/collection/components/ic-select/ic-select.e2e.js.map +0 -1
- package/dist/collection/components/ic-select/ic-select.spec.js.map +0 -1
- package/dist/collection/components/ic-select/ic-select.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation-test-examples.js.map +0 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.e2e.js.map +0 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.spec.js.map +0 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-skeleton/ic-skeleton.spec.js.map +0 -1
- package/dist/collection/components/ic-skeleton/ic-skeleton.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-status-tag/ic-status-tag.spec.js.map +0 -1
- package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-step/ic-step.spec.js.map +0 -1
- package/dist/collection/components/ic-stepper/ic-stepper-test-examples.js.map +0 -1
- package/dist/collection/components/ic-stepper/ic-stepper.e2e.js.map +0 -1
- package/dist/collection/components/ic-stepper/ic-stepper.spec.js.map +0 -1
- package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-switch/ic-switch.spec.js.map +0 -1
- package/dist/collection/components/ic-switch/ic-switch.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-tab/ic-tab.e2e.js.map +0 -1
- package/dist/collection/components/ic-tab/ic-tab.spec.js.map +0 -1
- package/dist/collection/components/ic-tab-context/ic-tab-context.e2e.js.map +0 -1
- package/dist/collection/components/ic-tab-context/ic-tab-context.spec.js.map +0 -1
- package/dist/collection/components/ic-tab-context/ic-tab-context.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.spec.js.map +0 -1
- package/dist/collection/components/ic-text-field/ic-text-field.e2e.js.map +0 -1
- package/dist/collection/components/ic-text-field/ic-text-field.input.spec.js.map +0 -1
- package/dist/collection/components/ic-text-field/ic-text-field.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-text-field/ic-text-field.textarea.spec.js.map +0 -1
- package/dist/collection/components/ic-theme/ic-theme.e2e.js.map +0 -1
- package/dist/collection/components/ic-theme/ic-theme.spec.js.map +0 -1
- package/dist/collection/components/ic-toast/ic-toast.e2e.js.map +0 -1
- package/dist/collection/components/ic-toast/ic-toast.spec.js.map +0 -1
- package/dist/collection/components/ic-toast/ic-toast.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-toast-region/ic-toast-region.spec.js.map +0 -1
- package/dist/collection/components/ic-tooltip/ic-tooltip.e2e.js.map +0 -1
- package/dist/collection/components/ic-tooltip/ic-tooltip.spec.js.map +0 -1
- package/dist/collection/components/ic-tooltip/ic-tooltip.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.e2e.js.map +0 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.mobile.e2e.js.map +0 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.spec.js.map +0 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.test.a11y.js.map +0 -1
- package/dist/collection/components/ic-typography/ic-typography.e2e.js.map +0 -1
- package/dist/collection/components/ic-typography/ic-typography.spec.js.map +0 -1
- package/dist/collection/components/ic-typography/ic-typography.test.a11y.js.map +0 -1
- package/dist/core/p-0d325b4c.entry.js.map +0 -1
- package/dist/core/p-29d9fea1.entry.js.map +0 -1
- package/dist/core/p-2e051e1e.entry.js.map +0 -1
- package/dist/core/p-3114a4b3.entry.js +0 -2
- package/dist/core/p-3114a4b3.entry.js.map +0 -1
- package/dist/core/p-311c38b3.entry.js.map +0 -1
- package/dist/core/p-31ccdd50.entry.js.map +0 -1
- package/dist/core/p-31e80ccb.entry.js.map +0 -1
- package/dist/core/p-323bce82.entry.js.map +0 -1
- package/dist/core/p-3918c27a.entry.js +0 -2
- package/dist/core/p-3918c27a.entry.js.map +0 -1
- package/dist/core/p-3ce0aa02.entry.js.map +0 -1
- package/dist/core/p-524557bc.entry.js +0 -2
- package/dist/core/p-524557bc.entry.js.map +0 -1
- package/dist/core/p-551986d1.entry.js.map +0 -1
- package/dist/core/p-57460fa3.entry.js +0 -2
- package/dist/core/p-57460fa3.entry.js.map +0 -1
- package/dist/core/p-5fcd965f.entry.js.map +0 -1
- package/dist/core/p-617950f8.entry.js.map +0 -1
- package/dist/core/p-68308ecd.entry.js.map +0 -1
- package/dist/core/p-6c76c6ba.entry.js.map +0 -1
- package/dist/core/p-97286148.entry.js.map +0 -1
- package/dist/core/p-97fd0cc1.entry.js.map +0 -1
- package/dist/core/p-a74b8476.entry.js.map +0 -1
- package/dist/core/p-ad6c4c02.entry.js.map +0 -1
- package/dist/core/p-aeef3c9d.entry.js.map +0 -1
- package/dist/core/p-b03bd9c6.entry.js.map +0 -1
- package/dist/core/p-b0685167.entry.js.map +0 -1
- package/dist/core/p-b35a9909.entry.js.map +0 -1
- package/dist/core/p-bad10f6c.entry.js.map +0 -1
- package/dist/core/p-bda4414e.entry.js.map +0 -1
- package/dist/core/p-c0333310.entry.js.map +0 -1
- package/dist/core/p-c3f9fb1d.entry.js +0 -2
- package/dist/core/p-c3f9fb1d.entry.js.map +0 -1
- package/dist/core/p-ca6820dc.entry.js.map +0 -1
- package/dist/core/p-d6694b41.entry.js +0 -2
- package/dist/core/p-d6694b41.entry.js.map +0 -1
- package/dist/core/p-da4c1409.entry.js.map +0 -1
- package/dist/core/p-dbe06c3b.entry.js.map +0 -1
- package/dist/core/p-dfd31e28.entry.js.map +0 -1
- package/dist/core/p-ea233813.entry.js +0 -2
- package/dist/core/p-ea233813.entry.js.map +0 -1
- package/dist/core/p-ecdcae46.entry.js.map +0 -1
- package/dist/core/p-ef91c17e.entry.js.map +0 -1
- package/dist/core/p-f0714432.entry.js.map +0 -1
- package/dist/core/p-f381e93f.entry.js.map +0 -1
- package/dist/core/p-fd482bd7.entry.js +0 -2
- package/dist/core/p-fd482bd7.entry.js.map +0 -1
- package/dist/core/p-fe2c4009.entry.js +0 -2
- package/dist/core/p-fe2c4009.entry.js.map +0 -1
- /package/dist/collection/components/ic-alert/{ic-alert.e2e.js → test/basic/ic-alert.e2e.js} +0 -0
- /package/dist/collection/components/ic-back-to-top/{ic-back-to-top.test.a11y.js → test/a11y/ic-back-to-top.test.a11y.js} +0 -0
- /package/dist/collection/components/ic-back-to-top/{ic-back-to-top.e2e.js → test/basic/ic-back-to-top.e2e.js} +0 -0
- /package/dist/collection/components/ic-breadcrumb-group/{ic-breadcrumb-group-test-examples.js → test/basic/ic-breadcrumb-group-test-examples.js} +0 -0
- /package/dist/collection/components/ic-breadcrumb-group/{ic-breadcrumb-group.e2e.js → test/basic/ic-breadcrumb-group.e2e.js} +0 -0
- /package/dist/collection/components/ic-button/{ic-button.e2e.js → test/basic/ic-button.e2e.js} +0 -0
- /package/dist/collection/components/ic-card/{ic-card.e2e.js → test/basic/ic-card.e2e.js} +0 -0
- /package/dist/collection/components/ic-checkbox-group/{ic-checkbox-group.e2e.js → test/basic/ic-checkbox-group.e2e.js} +0 -0
- /package/dist/collection/components/ic-dialog/{ic-dialog.e2e.js → test/basic/ic-dialog.e2e.js} +0 -0
- /package/dist/collection/components/ic-footer/{ic-footer.e2e.js → test/basic/ic-footer.e2e.js} +0 -0
- /package/dist/collection/components/ic-loading-indicator/{ic-loading-indicator.e2e.js → test/basic/ic-loading-indicator.e2e.js} +0 -0
- /package/dist/collection/components/ic-navigation-menu/{ic-navigation-menu.e2e.js → test/basic/ic-navigation-menu.e2e.js} +0 -0
- /package/dist/collection/components/ic-page-header/{ic-page-header.e2e.js → test/basic/ic-page-header.e2e.js} +0 -0
- /package/dist/collection/components/ic-pagination/{ic-pagination.e2e.js → test/basic/ic-pagination.e2e.js} +0 -0
- /package/dist/collection/components/ic-popover-menu/{ic-popover-menu.e2e.js → test/basic/ic-popover-menu.e2e.js} +0 -0
- /package/dist/collection/components/ic-radio-group/{ic-radio-group.e2e.js → test/basic/ic-radio-group.e2e.js} +0 -0
- /package/dist/collection/components/ic-search-bar/{ic-search-bar.e2e.js → test/basic/ic-search-bar.e2e.js} +0 -0
- /package/dist/collection/components/ic-select/{ic-select.e2e.js → test/basic/ic-select.e2e.js} +0 -0
- /package/dist/collection/components/ic-side-navigation/{ic-side-navigation-test-examples.js → test/basic/ic-side-navigation-test-examples.js} +0 -0
- /package/dist/collection/components/ic-side-navigation/{ic-side-navigation.e2e.js → test/basic/ic-side-navigation.e2e.js} +0 -0
- /package/dist/collection/components/ic-stepper/{ic-stepper-test-examples.js → test/basic/ic-stepper-test-examples.js} +0 -0
- /package/dist/collection/components/ic-stepper/{ic-stepper.e2e.js → test/basic/ic-stepper.e2e.js} +0 -0
- /package/dist/collection/components/ic-tab/{ic-tab.e2e.js → test/basic/ic-tab.e2e.js} +0 -0
- /package/dist/collection/components/ic-tab-context/{ic-tab-context.test.a11y.js → test/a11y/ic-tab-context.test.a11y.js} +0 -0
- /package/dist/collection/components/ic-text-field/{ic-text-field.test.a11y.js → test/a11y/ic-text-field.test.a11y.js} +0 -0
- /package/dist/collection/components/ic-text-field/{ic-text-field.e2e.js → test/basic/ic-text-field.e2e.js} +0 -0
- /package/dist/collection/components/ic-theme/{ic-theme.e2e.js → test/basic/ic-theme.e2e.js} +0 -0
- /package/dist/collection/components/ic-toast/{ic-toast.e2e.js → test/basic/ic-toast.e2e.js} +0 -0
- /package/dist/collection/components/ic-tooltip/{ic-tooltip.e2e.js → test/basic/ic-tooltip.e2e.js} +0 -0
- /package/dist/collection/components/ic-top-navigation/{ic-top-navigation.e2e.js → test/basic/ic-top-navigation.e2e.js} +0 -0
- /package/dist/collection/components/ic-top-navigation/{ic-top-navigation.mobile.e2e.js → test/basic/ic-top-navigation.mobile.e2e.js} +0 -0
- /package/dist/collection/components/ic-typography/{ic-typography.e2e.js → test/basic/ic-typography.e2e.js} +0 -0
- /package/dist/core/{p-e3e6308b.entry.js.map → p-e0bbf81e.entry.js.map} +0 -0
- /package/dist/types/components/ic-alert/{ic-alert.test.a11y.d.ts → test/a11y/ic-alert.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-back-to-top/{ic-back-to-top.test.a11y.d.ts → test/a11y/ic-back-to-top.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-breadcrumb-group/{ic-breadcrumb-group.test.a11y.d.ts → test/a11y/ic-breadcrumb-group.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-breadcrumb-group/{ic-breadcrumb-group-test-examples.d.ts → test/basic/ic-breadcrumb-group-test-examples.d.ts} +0 -0
- /package/dist/types/components/ic-button/{ic-button.test.a11y.d.ts → test/a11y/ic-button.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-card/{ic-card.test.a11y.d.ts → test/a11y/ic-card.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-checkbox-group/{ic-checkbox-group.test.a11y.d.ts → test/a11y/ic-checkbox-group.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-chip/{ic-chip.test.a11y.d.ts → test/a11y/ic-chip.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-classification-banner/{ic-classification-banner.test.a11y.d.ts → test/a11y/ic-classification-banner.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-data-entity/{ic-data-entity.test.a11y.d.ts → test/a11y/ic-data-entity.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-data-row/{ic-data-row.test.a11y.d.ts → test/a11y/ic-data-row.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-dialog/{ic-dialog.test.a11y.d.ts → test/a11y/ic-dialog.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-footer/{ic-footer.test.a11y.d.ts → test/a11y/ic-footer.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-footer-link/{ic-footer-link.test.a11y.d.ts → test/a11y/ic-footer-link.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-footer-link-group/{ic-footer-link-group.test.a11y.d.ts → test/a11y/ic-footer-link-group.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-hero/{ic-hero.test.a11y.d.ts → test/a11y/ic-hero.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-horizontal-scroll/{ic-horizontal-scroll.test.a11y.d.ts → test/a11y/ic-horizontal-scroll.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-link/{ic-link.test.a11y.d.ts → test/a11y/ic-link.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-loading-indicator/{ic-loading-indicator.test.a11y.d.ts → test/a11y/ic-loading-indicator.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-navigation-group/{ic-navigation-group.test.a11y.d.ts → test/a11y/ic-navigation-group.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-navigation-item/{ic-navigation-item.test.a11y.d.ts → test/a11y/ic-navigation-item.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-page-header/{ic-page-header.test.a11y.d.ts → test/a11y/ic-page-header.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-pagination/{ic-pagination.test.a11y.d.ts → test/a11y/ic-pagination.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-popover-menu/{ic-popover-menu.test.a11y.d.ts → test/a11y/ic-popover-menu.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-radio-group/{ic-radio-group.test.a11y.d.ts → test/a11y/ic-radio-group.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-search-bar/{ic-search-bar.test.a11y.d.ts → test/a11y/ic-search-bar.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-select/{ic-select.test.a11y.d.ts → test/a11y/ic-select.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-side-navigation/{ic-side-navigation.test.a11y.d.ts → test/a11y/ic-side-navigation.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-side-navigation/{ic-side-navigation-test-examples.d.ts → test/basic/ic-side-navigation-test-examples.d.ts} +0 -0
- /package/dist/types/components/ic-skeleton/{ic-skeleton.test.a11y.d.ts → test/a11y/ic-skeleton.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-status-tag/{ic-status-tag.test.a11y.d.ts → test/a11y/ic-status-tag.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-stepper/{ic-stepper.test.a11y.d.ts → test/a11y/ic-stepper.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-stepper/{ic-stepper-test-examples.d.ts → test/basic/ic-stepper-test-examples.d.ts} +0 -0
- /package/dist/types/components/ic-switch/{ic-switch.test.a11y.d.ts → test/a11y/ic-switch.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-tab-context/{ic-tab-context.test.a11y.d.ts → test/a11y/ic-tab-context.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-text-field/{ic-text-field.test.a11y.d.ts → test/a11y/ic-text-field.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-toast/{ic-toast.test.a11y.d.ts → test/a11y/ic-toast.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-tooltip/{ic-tooltip.test.a11y.d.ts → test/a11y/ic-tooltip.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-top-navigation/{ic-top-navigation.test.a11y.d.ts → test/a11y/ic-top-navigation.test.a11y.d.ts} +0 -0
- /package/dist/types/components/ic-typography/{ic-typography.test.a11y.d.ts → test/a11y/ic-typography.test.a11y.d.ts} +0 -0
@@ -3,30 +3,16 @@ import { getInputDescribedByText, hasValidationStatus, onComponentRequiredPropUn
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
4
4
|
export class CheckboxGroup {
|
5
5
|
constructor() {
|
6
|
+
this.disabled = false;
|
7
|
+
this.helperText = "";
|
8
|
+
this.hideLabel = false;
|
6
9
|
this.label = undefined;
|
7
10
|
this.name = undefined;
|
8
11
|
this.required = false;
|
9
|
-
this.hideLabel = false;
|
10
|
-
this.disabled = false;
|
11
|
-
this.helperText = "";
|
12
12
|
this.small = false;
|
13
13
|
this.validationStatus = "";
|
14
14
|
this.validationText = "";
|
15
15
|
}
|
16
|
-
selectHandler(ev) {
|
17
|
-
const checkedOptions = Array.from(this.host.querySelectorAll("ic-checkbox")).filter((checkbox) => checkbox.checked && !checkbox.disabled);
|
18
|
-
this.icChange.emit({
|
19
|
-
value: checkedOptions.map((opt) => opt.value),
|
20
|
-
checkedOptions: checkedOptions.map((opt) => {
|
21
|
-
var _a;
|
22
|
-
return ({
|
23
|
-
checkbox: opt,
|
24
|
-
textFieldValue: (_a = opt.querySelector("ic-text-field")) === null || _a === void 0 ? void 0 : _a.value,
|
25
|
-
});
|
26
|
-
}),
|
27
|
-
selectedOption: ev.target,
|
28
|
-
});
|
29
|
-
}
|
30
16
|
componentWillLoad() {
|
31
17
|
removeDisabledFalse(this.disabled, this.host);
|
32
18
|
}
|
@@ -41,6 +27,20 @@ export class CheckboxGroup {
|
|
41
27
|
{ prop: this.name, propName: "name" },
|
42
28
|
], "Checkbox Group");
|
43
29
|
}
|
30
|
+
selectHandler(ev) {
|
31
|
+
const checkedOptions = Array.from(this.host.querySelectorAll("ic-checkbox")).filter((checkbox) => checkbox.checked && !checkbox.disabled);
|
32
|
+
this.icChange.emit({
|
33
|
+
value: checkedOptions.map((opt) => opt.value),
|
34
|
+
checkedOptions: checkedOptions.map((opt) => {
|
35
|
+
var _a;
|
36
|
+
return ({
|
37
|
+
checkbox: opt,
|
38
|
+
textFieldValue: (_a = opt.querySelector("ic-text-field")) === null || _a === void 0 ? void 0 : _a.value,
|
39
|
+
});
|
40
|
+
}),
|
41
|
+
selectedOption: ev.target,
|
42
|
+
});
|
43
|
+
}
|
44
44
|
render() {
|
45
45
|
const describedBy = getInputDescribedByText(this.name, this.helperText !== "", this.validationStatus !== "");
|
46
46
|
const hadValidationStatus = hasValidationStatus(this.validationStatus, this.disabled);
|
@@ -64,24 +64,25 @@ export class CheckboxGroup {
|
|
64
64
|
}
|
65
65
|
static get properties() {
|
66
66
|
return {
|
67
|
-
"
|
68
|
-
"type": "
|
67
|
+
"disabled": {
|
68
|
+
"type": "boolean",
|
69
69
|
"mutable": false,
|
70
70
|
"complexType": {
|
71
|
-
"original": "
|
72
|
-
"resolved": "
|
71
|
+
"original": "boolean",
|
72
|
+
"resolved": "boolean",
|
73
73
|
"references": {}
|
74
74
|
},
|
75
|
-
"required":
|
75
|
+
"required": false,
|
76
76
|
"optional": false,
|
77
77
|
"docs": {
|
78
78
|
"tags": [],
|
79
|
-
"text": "
|
79
|
+
"text": "If `true`, the checkbox group will be set to the disabled state."
|
80
80
|
},
|
81
|
-
"attribute": "
|
82
|
-
"reflect": false
|
81
|
+
"attribute": "disabled",
|
82
|
+
"reflect": false,
|
83
|
+
"defaultValue": "false"
|
83
84
|
},
|
84
|
-
"
|
85
|
+
"helperText": {
|
85
86
|
"type": "string",
|
86
87
|
"mutable": false,
|
87
88
|
"complexType": {
|
@@ -89,16 +90,17 @@ export class CheckboxGroup {
|
|
89
90
|
"resolved": "string",
|
90
91
|
"references": {}
|
91
92
|
},
|
92
|
-
"required":
|
93
|
+
"required": false,
|
93
94
|
"optional": false,
|
94
95
|
"docs": {
|
95
96
|
"tags": [],
|
96
|
-
"text": "The
|
97
|
+
"text": "The helper text that will be displayed for additional field guidance."
|
97
98
|
},
|
98
|
-
"attribute": "
|
99
|
-
"reflect": false
|
99
|
+
"attribute": "helper-text",
|
100
|
+
"reflect": false,
|
101
|
+
"defaultValue": "\"\""
|
100
102
|
},
|
101
|
-
"
|
103
|
+
"hideLabel": {
|
102
104
|
"type": "boolean",
|
103
105
|
"mutable": false,
|
104
106
|
"complexType": {
|
@@ -110,65 +112,63 @@ export class CheckboxGroup {
|
|
110
112
|
"optional": false,
|
111
113
|
"docs": {
|
112
114
|
"tags": [],
|
113
|
-
"text": "If `true`, the
|
115
|
+
"text": "If `true`, the label will be hidden and the required label value will be applied as an aria-label."
|
114
116
|
},
|
115
|
-
"attribute": "
|
117
|
+
"attribute": "hide-label",
|
116
118
|
"reflect": false,
|
117
119
|
"defaultValue": "false"
|
118
120
|
},
|
119
|
-
"
|
120
|
-
"type": "
|
121
|
+
"label": {
|
122
|
+
"type": "string",
|
121
123
|
"mutable": false,
|
122
124
|
"complexType": {
|
123
|
-
"original": "
|
124
|
-
"resolved": "
|
125
|
+
"original": "string",
|
126
|
+
"resolved": "string",
|
125
127
|
"references": {}
|
126
128
|
},
|
127
|
-
"required":
|
129
|
+
"required": true,
|
128
130
|
"optional": false,
|
129
131
|
"docs": {
|
130
132
|
"tags": [],
|
131
|
-
"text": "
|
133
|
+
"text": "The label for the checkbox group to be displayed."
|
132
134
|
},
|
133
|
-
"attribute": "
|
134
|
-
"reflect": false
|
135
|
-
"defaultValue": "false"
|
135
|
+
"attribute": "label",
|
136
|
+
"reflect": false
|
136
137
|
},
|
137
|
-
"
|
138
|
-
"type": "
|
138
|
+
"name": {
|
139
|
+
"type": "string",
|
139
140
|
"mutable": false,
|
140
141
|
"complexType": {
|
141
|
-
"original": "
|
142
|
-
"resolved": "
|
142
|
+
"original": "string",
|
143
|
+
"resolved": "string",
|
143
144
|
"references": {}
|
144
145
|
},
|
145
|
-
"required":
|
146
|
+
"required": true,
|
146
147
|
"optional": false,
|
147
148
|
"docs": {
|
148
149
|
"tags": [],
|
149
|
-
"text": "
|
150
|
+
"text": "The name for the checkbox group to differentiate from other groups."
|
150
151
|
},
|
151
|
-
"attribute": "
|
152
|
-
"reflect": false
|
153
|
-
"defaultValue": "false"
|
152
|
+
"attribute": "name",
|
153
|
+
"reflect": false
|
154
154
|
},
|
155
|
-
"
|
156
|
-
"type": "
|
155
|
+
"required": {
|
156
|
+
"type": "boolean",
|
157
157
|
"mutable": false,
|
158
158
|
"complexType": {
|
159
|
-
"original": "
|
160
|
-
"resolved": "
|
159
|
+
"original": "boolean",
|
160
|
+
"resolved": "boolean",
|
161
161
|
"references": {}
|
162
162
|
},
|
163
163
|
"required": false,
|
164
164
|
"optional": false,
|
165
165
|
"docs": {
|
166
166
|
"tags": [],
|
167
|
-
"text": "
|
167
|
+
"text": "If `true`, the checkbox group will require a value."
|
168
168
|
},
|
169
|
-
"attribute": "
|
169
|
+
"attribute": "required",
|
170
170
|
"reflect": false,
|
171
|
-
"defaultValue": "
|
171
|
+
"defaultValue": "false"
|
172
172
|
},
|
173
173
|
"small": {
|
174
174
|
"type": "boolean",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ic-checkbox-group.js","sourceRoot":"","sources":["../../../src/components/ic-checkbox-group/ic-checkbox-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,MAAM,EACN,OAAO,EACP,KAAK,GAEN,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,gCAAgC,EAChC,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAS7B,6DAA6D;AAC7D,MAAM,OAAO,aAAa
|
1
|
+
{"version":3,"file":"ic-checkbox-group.js","sourceRoot":"","sources":["../../../src/components/ic-checkbox-group/ic-checkbox-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,IAAI,EACJ,MAAM,EACN,OAAO,EACP,KAAK,GAEN,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,gCAAgC,EAChC,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAS7B,6DAA6D;AAC7D,MAAM,OAAO,aAAa;;oBAMI,KAAK;sBAKJ,EAAE;qBAKF,KAAK;;;oBAeN,KAAK;iBAKR,KAAK;4BAKyB,EAAE;0BAKxB,EAAE;;EAOnC,iBAAiB;IACf,mBAAmB,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;EAChD,CAAC;EAED,gBAAgB;IACd,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAC3D,CAAC,QAAQ,EA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AAmB,IAAI,CACtB,2BACE,GAAG,EAAE,IAAI,CAAC,IAAI,EACd,YAAY,EAAC,QAAQ,EACrB,MAAM,EAAE,IAAI,CAAC,gBAAgB,EAC7B,OAAO,EAAE,IAAI,CAAC,cAAc,GACP,CACxB,CACI,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n Prop,\n Listen,\n Element,\n Event,\n EventEmitter,\n} from \"@stencil/core\";\nimport {\n getInputDescribedByText,\n hasValidationStatus,\n onComponentRequiredPropUndefined,\n removeDisabledFalse,\n} from \"../../utils/helpers\";\nimport { IcInformationStatusOrEmpty } from \"../../utils/types\";\nimport { IcChangeEventDetail } from \"./ic-checkbox-group.types\";\n\n@Component({\n tag: \"ic-checkbox-group\",\n styleUrl: \"ic-checkbox-group.css\",\n shadow: true,\n})\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport class CheckboxGroup {\n @Element() host: HTMLIcCheckboxGroupElement;\n\n /**\n * If `true`, the checkbox group will be set to the disabled state.\n */\n @Prop() disabled: boolean = false;\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 label for the checkbox group to be displayed.\n */\n @Prop() label!: string;\n\n /**\n * The name for the checkbox group to differentiate from other groups.\n */\n @Prop() name!: string;\n\n /**\n * If `true`, the checkbox group will require a value.\n */\n @Prop() required: boolean = false;\n\n /**\n * If `true`, the small styling will be applied to the checkbox group.\n */\n @Prop() small: boolean = false;\n\n /**\n * The validation status - e.g. 'error' | 'warning' | 'success'.\n */\n @Prop() validationStatus: IcInformationStatusOrEmpty = \"\";\n\n /**\n * The validation text - e.g. 'error' | 'warning' | 'success'.\n */\n @Prop() validationText: string = \"\";\n\n /**\n * Emitted when a checkbox is checked.\n */\n @Event() icChange: EventEmitter<IcChangeEventDetail>;\n\n componentWillLoad(): void {\n removeDisabledFalse(this.disabled, this.host);\n }\n\n componentDidLoad(): void {\n Array.from(this.host.querySelectorAll(\"ic-checkbox\")).forEach(\n (checkbox) => {\n if (!checkbox.name) checkbox.name = this.name;\n checkbox.groupLabel = this.label;\n }\n );\n\n onComponentRequiredPropUndefined(\n [\n { prop: this.label, propName: \"label\" },\n { prop: this.name, propName: \"name\" },\n ],\n \"Checkbox Group\"\n );\n }\n\n @Listen(\"icCheck\")\n selectHandler(ev: CustomEvent): void {\n const checkedOptions = Array.from(\n this.host.querySelectorAll(\"ic-checkbox\")\n ).filter((checkbox) => checkbox.checked && !checkbox.disabled);\n this.icChange.emit({\n value: checkedOptions.map((opt) => opt.value),\n checkedOptions: checkedOptions.map((opt) => ({\n checkbox: opt,\n textFieldValue: opt.querySelector(\"ic-text-field\")?.value,\n })),\n selectedOption: ev.target as HTMLIcCheckboxElement,\n });\n }\n\n render() {\n const describedBy = getInputDescribedByText(\n this.name,\n this.helperText !== \"\",\n this.validationStatus !== \"\"\n );\n const hadValidationStatus = hasValidationStatus(\n this.validationStatus,\n this.disabled\n );\n\n return (\n <Host class={{ [\"small\"]: this.small }}>\n {(this.validationStatus === \"error\" ||\n this.required ||\n this.hideLabel) && (\n <span\n id=\"screenReaderOnlyText\"\n class=\"screen-reader-only-text\"\n aria-hidden=\"true\"\n >\n {this.label}{\" \"}\n {this.validationStatus === \"error\" ? \"invalid data \" : null}{\" \"}\n {this.required ? \"required\" : null}\n </span>\n )}\n <fieldset\n id={this.name}\n aria-labelledby={`${\n this.validationStatus === \"error\" || this.required || this.hideLabel\n ? \"screenReaderOnlyText\"\n : \"\"\n } ${describedBy}`.trim()}\n disabled={this.disabled}\n >\n {!this.hideLabel && (\n <legend>\n <ic-input-label\n class={{ [`${this.validationStatus}`]: true }}\n label={this.label}\n helperText={this.helperText}\n required={this.required}\n disabled={this.disabled}\n for={this.name}\n ></ic-input-label>\n </legend>\n )}\n <div class=\"checkboxes-container\">\n <slot></slot>\n </div>\n </fieldset>\n {hadValidationStatus && (\n <ic-input-validation\n for={this.name}\n ariaLiveMode=\"polite\"\n status={this.validationStatus}\n message={this.validationText}\n ></ic-input-validation>\n )}\n </Host>\n );\n }\n}\n"]}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { fixture } from "@open-wc/testing-helpers";
|
2
2
|
import { axe } from "jest-axe";
|
3
|
-
import { checkShadowElementRendersCorrectly } from "
|
3
|
+
import { checkShadowElementRendersCorrectly } from "../../../../utils/testa11y.helpers";
|
4
4
|
describe("ic-checkbox-group", () => {
|
5
5
|
it("passes accessibility", async () => {
|
6
6
|
const el = await fixture(`<ic-checkbox-group label="this is a test label" name="test">
|
package/dist/collection/components/ic-checkbox-group/test/a11y/ic-checkbox-group.test.a11y.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ic-checkbox-group.test.a11y.js","sourceRoot":"","sources":["../../../../../src/components/ic-checkbox-group/test/a11y/ic-checkbox-group.test.a11y.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,kCAAkC,EAAE,MAAM,oCAAoC,CAAC;AAExF,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;EACjC,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;IACpC,MAAM,EAAE,GAAG,MAAM,OAAO,CACtB;;;;;2BAKqB,CACtB,CAAC;IACF,kCAAkC,CAAC,EAAE,CAAC,CAAC;IACvC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;EAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { fixture } from \"@open-wc/testing-helpers\";\nimport { axe } from \"jest-axe\";\nimport { checkShadowElementRendersCorrectly } from \"../../../../utils/testa11y.helpers\";\n\ndescribe(\"ic-checkbox-group\", () => {\n it(\"passes accessibility\", async () => {\n const el = await fixture(\n `<ic-checkbox-group label=\"this is a test label\" name=\"test\">\n <ic-checkbox\n value=\"testValue1\"\n label=\"test label\">\n </ic-checkbox>\n </ic-checkbox-group>`\n );\n checkShadowElementRendersCorrectly(el);\n expect(await axe(el)).toHaveNoViolations();\n });\n});\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ic-checkbox-group.e2e.js","sourceRoot":"","sources":["../../../../../src/components/ic-checkbox-group/test/basic/ic-checkbox-group.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,6BAA6B,EAAE,GAAG,EAAE;EAC3C,EAAE,CAAC,0CAA0C,EAAE,KAAK,IAAI,EAAE;IACxD,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;IAChC,MAAM,IAAI,CAAC,UAAU,CAAC;;;;OAInB,CAAC,CAAC;IAEL,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;IAC/D,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IACvB,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAC5B,MAAM,CAAC,MAAM,QAAQ,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAE1D,MAAM,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC1B,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAC5B,MAA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vB,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAC5B,MAAM,CAAC,MAAM,QAAQ,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEzD,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IACpD,MAAM,WAAW,CAAC,KAAK,EAAE,CAAC;IAC1B,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAE5B,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;IAC9D,MAAM,CAAC,MAAM,QAAQ,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;EAC5D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from \"@stencil/core/testing\";\n\ndescribe(\"ic-checkbox-group component\", () => {\n it(\"Should not be interactable when disabled\", async () => {\n const page = await newE2EPage();\n await page.setContent(`<ic-checkbox-group label=\"test label\" name=\"test\">\n <ic-checkbox value=\"test1\" label=\"checkbox label 1\" disabled></ic-checkbox> \n <ic-checkbox value=\"test2\" label=\"checkbox label 2\" disabled></ic-checkbox> \n </ic-checkbox-group>\n `);\n\n const checkbox = await page.find(\"ic-checkbox[value='test2']\");\n await checkbox.click();\n await page.waitForChanges();\n expect(await checkbox.getProperty(\"checked\")).toBe(false);\n\n await checkbox.press(\" \");\n await page.waitForChanges();\n expect(await checkbox.getProperty(\"checked\")).toBe(false);\n });\n it(\"Should set checkbox to checked when clicked\", async () => {\n const page = await newE2EPage();\n await page.setContent(`<ic-checkbox-group label=\"test label\" name=\"test\">\n <ic-checkbox value=\"test1\" label=\"checkbox label 1\"></ic-checkbox> \n <ic-checkbox value=\"test2\" label=\"checkbox label 2\"></ic-checkbox> \n </ic-checkbox-group>\n `);\n let checkbox = await page.find(\"ic-checkbox[value='test2']\");\n let input = checkbox.shadowRoot.querySelector(\"input\");\n\n expect(input.className).toBe(\"checkbox\");\n\n await checkbox.click();\n await page.waitForChanges();\n\n checkbox = await page.find(\"ic-checkbox[value='test2']\");\n input = checkbox.shadowRoot.querySelector(\"input\");\n\n expect(checkbox.getAttribute(\"value\")).toBe(\"test2\");\n\n expect(input.className).toBe(\"checkbox checked\");\n\n expect(await checkbox.getProperty(\"checked\")).toBe(true);\n\n await checkbox.click();\n await page.waitForChanges();\n\n checkbox = await page.find(\"ic-checkbox[value='test2']\");\n\n expect(checkbox.getAttribute(\"value\")).toBe(\"test2\");\n });\n it(\"Should enable statictextfield when associated checkbox is checked\", async () => {\n const page = await newE2EPage();\n await page.setContent(`<ic-checkbox-group label=\"test label\" name=\"test\">\n <ic-checkbox value=\"test1\" label=\"checkbox label 1\"></ic-checkbox> \n <ic-checkbox value=\"test2\" label=\"checkbox label 2\" checked>\n <ic-text-field\n slot=\"additional-field\"\n label=\"Test label\"\n ></ic-text-field>\n </ic-checkbox> \n </ic-checkbox-group>\n `);\n const checkbox = await page.find(\"ic-checkbox[value='test2']\");\n const textfield = await page.find(\"ic-text-field\");\n\n expect(textfield).not.toHaveAttribute(\"disabled\");\n\n await checkbox.click();\n await page.waitForChanges();\n\n expect(textfield).toHaveAttribute(\"disabled\");\n });\n it(\"Should display dynamic textfield when associated checkbox is checked\", async () => {\n const page = await newE2EPage();\n await page.setContent(`<ic-checkbox-group label=\"test label\" name=\"test\">\n <ic-checkbox value=\"test1\" label=\"checkbox label 1\"></ic-checkbox> \n <ic-checkbox value=\"test2\" label=\"checkbox label 2\" additional-field-display=\"dynamic\">\n <ic-text-field\n slot=\"additional-field\"\n label=\"Test label\"\n ></ic-text-field>\n </ic-checkbox> \n </ic-checkbox-group>\n `);\n const checkbox = await page.find(\"ic-checkbox[value='test2']\");\n let additionalFieldDisplay = await page.evaluate(() => {\n const additionalField = document\n .querySelector(\"ic-checkbox[value='test2']\")\n .shadowRoot.querySelector(\".dynamic-container\");\n\n return window.getComputedStyle(additionalField).display;\n });\n expect(additionalFieldDisplay).toBe(\"none\");\n\n await checkbox.click();\n await page.waitForChanges();\n\n additionalFieldDisplay = await page.evaluate(() => {\n const additionalField = document\n .querySelector(\"ic-checkbox[value='test2']\")\n .shadowRoot.querySelector(\".dynamic-container\");\n\n return window.getComputedStyle(additionalField).display;\n });\n expect(additionalFieldDisplay).not.toBe(\"none\");\n });\n it(\"Should emit icChange event when checkbox is checked\", async () => {\n const page = await newE2EPage();\n await page.setContent(`<ic-checkbox-group label=\"test label\" name=\"test\">\n <ic-checkbox value=\"test1\" label=\"checkbox label 1\"></ic-checkbox> \n <ic-checkbox value=\"test2\" label=\"checkbox label 2\">\n </ic-checkbox> \n </ic-checkbox-group>\n `);\n const checkbox = await page.find(\"ic-checkbox[value='test2']\");\n const icChange = await page.spyOnEvent(\"icChange\");\n\n await checkbox.click();\n await page.waitForChanges();\n\n const checkboxElement = await page.evaluate(\n () =>\n document.querySelector(\n \"ic-checkbox[value='test2']\"\n ) as HTMLIcCheckboxElement\n );\n expect(icChange).toHaveReceivedEventDetail({\n value: [\"test2\"],\n checkedOptions: [{ checkbox: checkboxElement }],\n selectedOption: checkboxElement,\n });\n\n await checkbox.click();\n await page.waitForChanges();\n\n expect(icChange).toHaveReceivedEventDetail({\n value: [],\n checkedOptions: [],\n selectedOption: checkboxElement,\n });\n });\n it(\"Should set checkbox to checked when space is pressed\", async () => {\n const page = await newE2EPage();\n await page.setContent(`<ic-checkbox-group label=\"test label\" name=\"test\">\n <ic-checkbox value=\"test1\" label=\"checkbox label 1\"></ic-checkbox> \n <ic-checkbox value=\"test2\" label=\"checkbox label 2\"></ic-checkbox> \n </ic-checkbox-group>\n `);\n const checkbox = await page.find(\"ic-checkbox[value='test1']\");\n expect(await checkbox.getProperty(\"checked\")).toBe(false);\n\n await page.keyboard.press(\"Tab\");\n await checkbox.press(\" \");\n await page.waitForChanges();\n\n expect(checkbox.getAttribute(\"value\")).toBe(\"test1\");\n expect(await checkbox.getProperty(\"checked\")).toBe(true);\n\n await checkbox.press(\" \");\n await page.waitForChanges();\n\n expect(checkbox.getAttribute(\"value\")).toBe(\"test1\");\n });\n it(\"Works on a form\", async () => {\n const page = await newE2EPage();\n\n await page.setContent(` <form>\n <ic-checkbox-group label=\"this is a label\" name=\"1\">\n <ic-checkbox\n value=\"valueName1\"\n label=\"Unselected / Default\"\n ></ic-checkbox>\n <ic-checkbox\n value=\"valueName2\"\n label=\"Selected / Default\"\n selected\n ></ic-checkbox>\n <ic-checkbox\n value=\"valueName3\"\n label=\"Unselected / Disabled\"\n disabled\n ></ic-checkbox>\n </ic-checkbox-group>\n <input type=\"submit\" value=\"Submit\">\n </form>\n <script>document.querySelector('form').addEventListener('submit', (ev) => {\n ev.preventDefault();\n })\n </script>\n `);\n await page.waitForChanges();\n\n const checkbox = await page.find(\"ic-checkbox[value='valueName1']\");\n\n await checkbox.click();\n await page.waitForChanges();\n const value = await (\n await page.find('ic-checkbox[value=\"valueName1\"] >>> input[name=\"1\"]')\n ).getProperty(\"value\");\n\n expect(value).toBe(\"valueName1\");\n });\n it(\"Passes the value of checkboxes correctly when already selected\", async () => {\n const page = await newE2EPage();\n await page.setContent(`<ic-checkbox-group label=\"test label\" name=\"test\">\n <ic-checkbox name=\"test1\" value=\"test1\" label=\"checkbox label 1\"></ic-checkbox> \n <ic-checkbox name=\"test2\" value=\"test2\" label=\"checkbox label 2\" checked></ic-checkbox> \n </ic-checkbox-group>\n `);\n\n await page.waitForChanges();\n\n const value = await await (\n await page.find('ic-checkbox[name=\"test2\"]')\n ).getAttribute(\"checked\");\n\n expect(value).toBe(\"\");\n });\n\n it(\"resets checked state on form reset\", async () => {\n const page = await newE2EPage();\n\n await page.setContent(` <form>\n <ic-checkbox-group label=\"this is a label\" name=\"1\">\n <ic-checkbox\n value=\"valueName1\"\n label=\"Unselected / Default\"\n ></ic-checkbox>\n </ic-checkbox-group>\n <button type=\"reset\" id=\"resetButton\">Reset</button>\n </form>\n `);\n await page.waitForChanges();\n\n let checkbox = await page.find(\"ic-checkbox[value='valueName1']\");\n await checkbox.click();\n await page.waitForChanges();\n expect(await checkbox.getProperty(\"checked\")).toBe(true);\n\n const resetButton = await page.find(\"#resetButton\");\n await resetButton.click();\n await page.waitForChanges();\n\n checkbox = await page.find(\"ic-checkbox[value='valueName1']\");\n expect(await checkbox.getProperty(\"checked\")).toBe(false);\n });\n});\n"]}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { newSpecPage } from "@stencil/core/testing";
|
2
|
-
import { CheckboxGroup } from "
|
3
|
-
import { Checkbox } from "
|
4
|
-
import { TextField } from "
|
2
|
+
import { CheckboxGroup } from "../../ic-checkbox-group";
|
3
|
+
import { Checkbox } from "../../../ic-checkbox/ic-checkbox";
|
4
|
+
import { TextField } from "../../../ic-text-field/ic-text-field";
|
5
5
|
describe("ic-checkbox-group", () => {
|
6
6
|
it("should render", async () => {
|
7
7
|
const page = await newSpecPage({
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ic-checkbox-group.spec.js","sourceRoot":"","sources":["../../../../../src/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEjE,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;EACjC,EAAE,CAAC,eAAe,EAAE,KAAK,IAAI,EAAE;IAC7B,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,aAAa,EAAE,QAAQ,CAAC;MACrC,IAAI,EAAE;;2BAEe;KACtB,CAAC,CAAC;IAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,eAAe,CAAC,SAAS,CAAC,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AAC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IAC1B,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAE5B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAEtC,MAAM,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE,CAAC;IAC1C,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAE5B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAErC,4BAA4B;IAC5B,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;EACtB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from \"@stencil/core/testing\";\nimport { CheckboxGroup } from \"../../ic-checkbox-group\";\nimport { Checkbox } from \"../../../ic-checkbox/ic-checkbox\";\nimport { TextField } from \"../../../ic-text-field/ic-text-field\";\n\ndescribe(\"ic-checkbox-group\", () => {\n it(\"should render\", async () => {\n const page = await newSpecPage({\n components: [CheckboxGroup, Checkbox],\n html: `<ic-checkbox-group label=\"test label\" name=\"test\">\n <ic-checkbox value=\"test\" label=\"test label\"></ic-checkbox> \n </ic-checkbox-group>`,\n });\n\n expect(page.root).toMatchSnapshot(\"renders\");\n });\n\n it(\"should render as required\", async () => {\n const page = await newSpecPage({\n components: [CheckboxGroup, Checkbox],\n html: `<ic-checkbox-group label=\"test label\" name=\"test\" required>\n <ic-checkbox value=\"test\" label=\"test label\"></ic-checkbox> \n </ic-checkbox-group>`,\n });\n\n expect(page.root).toMatchSnapshot(\"renders-required\");\n });\n\n it(\"should render as helper text\", async () => {\n const page = await newSpecPage({\n components: [CheckboxGroup, Checkbox],\n html: `<ic-checkbox-group label=\"test label\" name=\"test\" helper-text=\"helper test\">\n <ic-checkbox value=\"test\" label=\"test label\"></ic-checkbox> \n </ic-checkbox-group>`,\n });\n\n expect(page.root).toMatchSnapshot(\"renders-with-helpertext\");\n });\n\n it(\"should render checked\", async () => {\n const page = await newSpecPage({\n components: [CheckboxGroup, Checkbox],\n html: `<ic-checkbox-group label=\"test label\" name=\"test\">\n <ic-checkbox value=\"test\" checked label=\"test label\"></ic-checkbox> \n </ic-checkbox-group>`,\n });\n\n expect(page.root).toMatchSnapshot(\"renders-checked\");\n });\n\n it(\"should render indeterminate\", async () => {\n const page = await newSpecPage({\n components: [CheckboxGroup, Checkbox],\n html: `<ic-checkbox-group label=\"test label\" name=\"test\">\n <ic-checkbox value=\"test\" checked indeterminate label=\"test label\"></ic-checkbox> \n </ic-checkbox-group>`,\n });\n\n expect(page.root).toMatchSnapshot(\"renders-indeterminate\");\n });\n\n it(\"should render an aria label when label hidden\", async () => {\n const page = await newSpecPage({\n components: [CheckboxGroup, Checkbox],\n html: `<ic-checkbox-group label=\"test label\" hide-label name=\"test\">\n <ic-checkbox value=\"test\" label=\"test label\"></ic-checkbox> \n </ic-checkbox-group>`,\n });\n\n expect(page.root).toMatchSnapshot(\"renders-hidden-label\");\n });\n\n it(\"should render in a disabled state\", async () => {\n const page = await newSpecPage({\n components: [CheckboxGroup, Checkbox],\n html: `<ic-checkbox-group label=\"test label\" name=\"test\">\n <ic-checkbox value=\"test\" disabled label=\"test label\"></ic-checkbox> \n </ic-checkbox-group>`,\n });\n\n expect(page.root).toMatchSnapshot(\"renders-disabled\");\n });\n\n it(\"should render with validation status\", async () => {\n const page = await newSpecPage({\n components: [CheckboxGroup, Checkbox],\n html: `<ic-checkbox-group label=\"test label\" hide-label name=\"test\" validation-status=\"error\">\n <ic-checkbox value=\"test\" label=\"test label\"></ic-checkbox> \n </ic-checkbox-group>`,\n });\n\n expect(page.root).toMatchSnapshot(\"renders-with-validation\");\n });\n\n it(\"should render with hidden dynamic additional field\", async () => {\n const page = await newSpecPage({\n components: [CheckboxGroup, Checkbox, TextField],\n html: `<ic-checkbox-group label=\"test label\" hide-label name=\"test\" validation-status=\"error\">\n <ic-checkbox value=\"test\" additional-field-display=\"dynamic\" label=\"test label\">\n <ic-text-field slot=\"additional-field\" placeholder=\"Placeholder\" label=\"Test label\"></ic-text-field>\n </ic-checkbox> \n </ic-checkbox-group>`,\n });\n\n expect(page.root).toMatchSnapshot(\"renders-with-dynamic-field\");\n });\n\n it(\"should render with dynamic additional field when checked\", async () => {\n const page = await newSpecPage({\n components: [CheckboxGroup, Checkbox, TextField],\n html: `<ic-checkbox-group label=\"test label\" hide-label name=\"test\" validation-status=\"error\">\n <ic-checkbox value=\"test\" label=\"test label\" additional-field-display=\"dynamic\" checked>\n <ic-text-field slot=\"additional-field\" placeholder=\"Placeholder\" label=\"Test label\"></ic-text-field>\n </ic-checkbox> \n </ic-checkbox-group>`,\n });\n\n expect(page.root).toMatchSnapshot(\n \"renders-with-dynamic-field-when-checked\"\n );\n });\n\n it(\"should render with disabled static additional field\", async () => {\n const page = await newSpecPage({\n components: [CheckboxGroup, Checkbox, TextField],\n html: `<ic-checkbox-group label=\"test label\" hide-label name=\"test\" validation-status=\"error\">\n <ic-checkbox value=\"test\" label=\"test label\" additional-field-display=\"static\">\n <ic-text-field slot=\"additional-field\" placeholder=\"Placeholder\" label=\"Test label\"></ic-text-field>\n </ic-checkbox> \n </ic-checkbox-group>`,\n });\n\n expect(page.root).toMatchSnapshot(\"renders-with-disabled-additional-field\");\n });\n\n it(\"should remove disabled attribute from static additional field when checked\", async () => {\n const page = await newSpecPage({\n components: [CheckboxGroup, Checkbox, TextField],\n html: `<ic-checkbox-group label=\"test label\" hide-label name=\"test\" validation-status=\"error\">\n <ic-checkbox value=\"test\" label=\"test label\" additional-field-display=\"static\" checked>\n <ic-text-field slot=\"additional-field\" placeholder=\"Placeholder\" label=\"Test label\"></ic-text-field>\n </ic-checkbox> \n </ic-checkbox-group>`,\n });\n\n expect(page.root).toMatchSnapshot(\n \"renders-with-disabled-attribute-removed-from-field\"\n );\n });\n\n it(\"should change checked state\", async () => {\n const page = await newSpecPage({\n components: [Checkbox],\n html: `<ic-checkbox value=\"test\" label=\"test label\" checked></ic-checkbox>`,\n });\n\n expect(page.root.checked).toBe(true);\n\n page.rootInstance.handleClick();\n await page.waitForChanges();\n\n expect(page.root.checked).toBe(false);\n });\n\n it(\"should call 'setFocus' when checkbox is focused\", async () => {\n const page = await newSpecPage({\n components: [Checkbox],\n html: `<ic-checkbox value=\"test\" label=\"test label\" checked></ic-checkbox>`,\n });\n\n //Can't expect anything in this test - this is to increase code coverage only\n await page.rootInstance.setFocus().toHaveBeenCalled;\n });\n\n it(\"should emit icCheck on click\", async () => {\n const page = await newSpecPage({\n components: [CheckboxGroup, Checkbox],\n html: `<ic-checkbox-group label=\"test label\" name=\"test\">\n <ic-checkbox value=\"test\" label=\"test label\"></ic-checkbox> \n </ic-checkbox-group>`,\n });\n\n const eventSpy = jest.fn();\n\n page.win.addEventListener(\"icCheck\", eventSpy);\n\n page.root\n .querySelector(\"ic-checkbox\")\n .shadowRoot.querySelector(\"input\")\n .click();\n\n await page.waitForChanges();\n\n expect(eventSpy).toHaveBeenCalled();\n });\n\n it(\"should test form reset event\", async () => {\n const page = await newSpecPage({\n components: [Checkbox],\n html: `<form>\n <ic-checkbox value=\"test\" label=\"test label\" checked></ic-checkbox> \n <button id=\"resetButton\" type=\"reset\">Reset</button> \n </form>`,\n });\n\n expect(page.root.checked).toBe(true);\n\n page.root.checked = false;\n await page.waitForChanges();\n\n expect(page.root.checked).toBe(false);\n\n await page.rootInstance.handleFormReset();\n await page.waitForChanges();\n\n expect(page.root.checked).toBe(true);\n\n //test disconnected callback\n page.setContent(\"\");\n });\n});\n"]}
|
@@ -16,13 +16,23 @@ export class Chip {
|
|
16
16
|
this.mouseLeaveHandler = () => {
|
17
17
|
this.isHovered = false;
|
18
18
|
};
|
19
|
-
this.
|
19
|
+
this.isHovered = false;
|
20
|
+
this.visible = true;
|
20
21
|
this.appearance = "filled";
|
21
|
-
this.size = "default";
|
22
|
-
this.dismissible = false;
|
23
22
|
this.disabled = false;
|
24
|
-
this.
|
25
|
-
this.
|
23
|
+
this.dismissible = false;
|
24
|
+
this.label = undefined;
|
25
|
+
this.size = "default";
|
26
|
+
}
|
27
|
+
componentWillLoad() {
|
28
|
+
removeDisabledFalse(this.disabled, this.el);
|
29
|
+
}
|
30
|
+
componentDidLoad() {
|
31
|
+
var _a;
|
32
|
+
this.dismissible &&
|
33
|
+
((_a = this.el.shadowRoot
|
34
|
+
.querySelector("span.ic-tooltip-label")) === null || _a === void 0 ? void 0 : _a.setAttribute("aria-hidden", "true"));
|
35
|
+
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Chip");
|
26
36
|
}
|
27
37
|
handleClick() {
|
28
38
|
this.visible = !this.visible;
|
@@ -35,16 +45,6 @@ export class Chip {
|
|
35
45
|
this.el.shadowRoot.querySelector("button").focus();
|
36
46
|
}
|
37
47
|
}
|
38
|
-
componentWillLoad() {
|
39
|
-
removeDisabledFalse(this.disabled, this.el);
|
40
|
-
}
|
41
|
-
componentDidLoad() {
|
42
|
-
var _a;
|
43
|
-
this.dismissible &&
|
44
|
-
((_a = this.el.shadowRoot
|
45
|
-
.querySelector("span.ic-tooltip-label")) === null || _a === void 0 ? void 0 : _a.setAttribute("aria-hidden", "true"));
|
46
|
-
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Chip");
|
47
|
-
}
|
48
48
|
render() {
|
49
49
|
const { label, appearance, size, dismissible, visible, disabled, isHovered, } = this;
|
50
50
|
return (visible && (h("div", { class: {
|
@@ -73,23 +73,6 @@ export class Chip {
|
|
73
73
|
}
|
74
74
|
static get properties() {
|
75
75
|
return {
|
76
|
-
"label": {
|
77
|
-
"type": "string",
|
78
|
-
"mutable": false,
|
79
|
-
"complexType": {
|
80
|
-
"original": "string",
|
81
|
-
"resolved": "string",
|
82
|
-
"references": {}
|
83
|
-
},
|
84
|
-
"required": true,
|
85
|
-
"optional": false,
|
86
|
-
"docs": {
|
87
|
-
"tags": [],
|
88
|
-
"text": "The text rendered within the chip."
|
89
|
-
},
|
90
|
-
"attribute": "label",
|
91
|
-
"reflect": false
|
92
|
-
},
|
93
76
|
"appearance": {
|
94
77
|
"type": "string",
|
95
78
|
"mutable": false,
|
@@ -113,28 +96,23 @@ export class Chip {
|
|
113
96
|
"reflect": false,
|
114
97
|
"defaultValue": "\"filled\""
|
115
98
|
},
|
116
|
-
"
|
117
|
-
"type": "
|
99
|
+
"disabled": {
|
100
|
+
"type": "boolean",
|
118
101
|
"mutable": false,
|
119
102
|
"complexType": {
|
120
|
-
"original": "
|
121
|
-
"resolved": "
|
122
|
-
"references": {
|
123
|
-
"IcChipSizes": {
|
124
|
-
"location": "import",
|
125
|
-
"path": "./ic-chip.types"
|
126
|
-
}
|
127
|
-
}
|
103
|
+
"original": "boolean",
|
104
|
+
"resolved": "boolean",
|
105
|
+
"references": {}
|
128
106
|
},
|
129
107
|
"required": false,
|
130
108
|
"optional": true,
|
131
109
|
"docs": {
|
132
110
|
"tags": [],
|
133
|
-
"text": "
|
111
|
+
"text": "If `true`, the chip will appear disabled."
|
134
112
|
},
|
135
|
-
"attribute": "
|
113
|
+
"attribute": "disabled",
|
136
114
|
"reflect": false,
|
137
|
-
"defaultValue": "
|
115
|
+
"defaultValue": "false"
|
138
116
|
},
|
139
117
|
"dismissible": {
|
140
118
|
"type": "boolean",
|
@@ -154,30 +132,52 @@ export class Chip {
|
|
154
132
|
"reflect": false,
|
155
133
|
"defaultValue": "false"
|
156
134
|
},
|
157
|
-
"
|
158
|
-
"type": "
|
135
|
+
"label": {
|
136
|
+
"type": "string",
|
159
137
|
"mutable": false,
|
160
138
|
"complexType": {
|
161
|
-
"original": "
|
162
|
-
"resolved": "
|
139
|
+
"original": "string",
|
140
|
+
"resolved": "string",
|
163
141
|
"references": {}
|
164
142
|
},
|
143
|
+
"required": true,
|
144
|
+
"optional": false,
|
145
|
+
"docs": {
|
146
|
+
"tags": [],
|
147
|
+
"text": "The text rendered within the chip."
|
148
|
+
},
|
149
|
+
"attribute": "label",
|
150
|
+
"reflect": false
|
151
|
+
},
|
152
|
+
"size": {
|
153
|
+
"type": "string",
|
154
|
+
"mutable": false,
|
155
|
+
"complexType": {
|
156
|
+
"original": "IcChipSizes",
|
157
|
+
"resolved": "\"default\" | \"large\" | \"small\"",
|
158
|
+
"references": {
|
159
|
+
"IcChipSizes": {
|
160
|
+
"location": "import",
|
161
|
+
"path": "./ic-chip.types"
|
162
|
+
}
|
163
|
+
}
|
164
|
+
},
|
165
165
|
"required": false,
|
166
166
|
"optional": true,
|
167
167
|
"docs": {
|
168
168
|
"tags": [],
|
169
|
-
"text": "
|
169
|
+
"text": "The size of the chip."
|
170
170
|
},
|
171
|
-
"attribute": "
|
171
|
+
"attribute": "size",
|
172
172
|
"reflect": false,
|
173
|
-
"defaultValue": "
|
173
|
+
"defaultValue": "\"default\""
|
174
174
|
}
|
175
175
|
};
|
176
176
|
}
|
177
177
|
static get states() {
|
178
178
|
return {
|
179
|
-
"
|
180
|
-
"
|
179
|
+
"isHovered": {},
|
180
|
+
"visible": {}
|
181
181
|
};
|
182
182
|
}
|
183
183
|
static get events() {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ic-chip.js","sourceRoot":"","sources":["../../../src/components/ic-chip/ic-chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,CAAC,EACD,IAAI,EACJ,KAAK,EACL,MAAM,EACN,KAAK,EAEL,OAAO,EACP,MAAM,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gCAAgC,EAChC,UAAU,EACV,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,WAAW,MAAM,+BAA+B,CAAC;AAExD;;GAEG;AAQH,MAAM,OAAO,IAAI;;
|
1
|
+
{"version":3,"file":"ic-chip.js","sourceRoot":"","sources":["../../../src/components/ic-chip/ic-chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,CAAC,EACD,IAAI,EACJ,KAAK,EACL,MAAM,EACN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iB,EACpC,SAAS,EAAE,WAAW,GACd,CACC,CACd,CACG,CACP,CACF,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n h,\n Prop,\n State,\n Listen,\n Event,\n EventEmitter,\n Element,\n Method,\n} from \"@stencil/core\";\nimport {\n onComponentRequiredPropUndefined,\n isSlotUsed,\n removeDisabledFalse,\n} from \"../../utils/helpers\";\nimport { IcChipAppearance, IcChipSizes } from \"./ic-chip.types\";\nimport dismissIcon from \"../../assets/dismiss-icon.svg\";\n\n/**\n * @slot icon - Content will be rendered at the start of the chip.\n */\n@Component({\n tag: \"ic-chip\",\n styleUrl: \"ic-chip.css\",\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class Chip {\n @Element() el: HTMLIcChipElement;\n\n @State() isHovered: boolean = false;\n @State() visible: boolean = true;\n\n /**\n * The emphasis of the chip.\n */\n @Prop() appearance?: IcChipAppearance = \"filled\";\n\n /**\n * If `true`, the chip will appear disabled.\n */\n @Prop() disabled?: boolean = false;\n\n /**\n * If `true`, the chip will have a close button at the end to dismiss it.\n */\n @Prop() dismissible?: boolean = false;\n\n /**\n * The text rendered within the chip.\n */\n @Prop() label!: string;\n\n /**\n * The size of the chip.\n */\n @Prop() size?: IcChipSizes = \"default\";\n\n /**\n * @deprecated This event should not be used anymore. Use icDismiss instead.\n */\n @Event() dismiss: EventEmitter<void>;\n\n /**\n * Is emitted when the user dismisses the chip.\n */\n @Event() icDismiss: EventEmitter<void>;\n\n componentWillLoad(): void {\n removeDisabledFalse(this.disabled, this.el);\n }\n\n componentDidLoad(): void {\n this.dismissible &&\n this.el.shadowRoot\n .querySelector(\"span.ic-tooltip-label\")\n ?.setAttribute(\"aria-hidden\", \"true\");\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Chip\"\n );\n }\n\n @Listen(\"icDismiss\", { capture: true })\n handleClick(): void {\n this.visible = !this.visible;\n }\n\n /**\n * Sets focus on the chip.\n */\n @Method()\n async setFocus(): Promise<void> {\n if (this.el.shadowRoot.querySelector(\"button\")) {\n this.el.shadowRoot.querySelector(\"button\").focus();\n }\n }\n\n private dismissAction = (): void => {\n this.dismiss.emit();\n this.icDismiss.emit();\n };\n\n private mouseEnterHandler = (): void => {\n this.isHovered = true;\n };\n\n private mouseLeaveHandler = (): void => {\n this.isHovered = false;\n };\n\n render() {\n const {\n label,\n appearance,\n size,\n dismissible,\n visible,\n disabled,\n isHovered,\n } = this;\n\n return (\n visible && (\n <div\n class={{\n [\"chip\"]: true,\n [`${appearance}`]: true,\n [`${size}`]: true,\n [\"disabled\"]: disabled,\n [\"dismissible\"]: dismissible,\n [\"hovered\"]: isHovered,\n }}\n >\n {isSlotUsed(this.el, \"icon\") && (\n <div class=\"icon\">\n <slot name=\"icon\" />\n </div>\n )}\n <ic-typography\n variant=\"label\"\n apply-vertical-margins={false}\n class=\"label\"\n >\n <span>{label}</span>\n </ic-typography>\n {dismissible && (\n <ic-tooltip\n label=\"Dismiss\"\n target=\"dismiss-icon\"\n class={{ [\"tooltip-disabled\"]: disabled }}\n >\n <button\n id=\"dismiss-icon\"\n class={{\n [\"dismiss-icon\"]: true,\n }}\n aria-label={`Dismiss ${label} chip`}\n disabled={disabled}\n tabindex={disabled ? -1 : 0}\n onClick={this.dismissAction}\n onMouseEnter={this.mouseEnterHandler}\n onMouseLeave={this.mouseLeaveHandler}\n innerHTML={dismissIcon}\n ></button>\n </ic-tooltip>\n )}\n </div>\n )\n );\n }\n}\n"]}
|
package/dist/collection/components/ic-chip/{ic-chip.test.a11y.js → test/a11y/ic-chip.test.a11y.js}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { fixture } from "@open-wc/testing-helpers";
|
2
2
|
import { axe } from "jest-axe";
|
3
|
-
import { checkShadowElementRendersCorrectly } from "
|
3
|
+
import { checkShadowElementRendersCorrectly } from "../../../../utils/testa11y.helpers";
|
4
4
|
describe("chip component", () => {
|
5
5
|
it("passes accessibility", async () => {
|
6
6
|
const el = await fixture("<ic-chip label='label' href='/' dismissible='true'/>");
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ic-chip.test.a11y.js","sourceRoot":"","sources":["../../../../../src/components/ic-chip/test/a11y/ic-chip.test.a11y.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,kCAAkC,EAAE,MAAM,oCAAoC,CAAC;AAExF,QAAQ,CAAC,gBAAgB,EAAE,GAAG,EAAE;EAC9B,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;IACpC,MAAM,EAAE,GAAG,MAAM,OAAO,CACtB,sDAAsD,CACvD,CAAC;IACF,kCAAkC,CAAC,EAAE,CAAC,CAAC;IACvC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,kBAAkB,EAAE,CAAC;EAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { fixture } from \"@open-wc/testing-helpers\";\nimport { axe } from \"jest-axe\";\nimport { checkShadowElementRendersCorrectly } from \"../../../../utils/testa11y.helpers\";\n\ndescribe(\"chip component\", () => {\n it(\"passes accessibility\", async () => {\n const el = await fixture(\n \"<ic-chip label='label' href='/' dismissible='true'/>\"\n );\n checkShadowElementRendersCorrectly(el);\n expect(await axe(el)).toHaveNoViolations();\n });\n});\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ic-chip.spec.js","sourceRoot":"","sources":["../../../../../src/components/ic-chip/test/basic/ic-chip.spec.ts"],"names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I,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAEvD,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;EAC1B,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,6CAA6C,EAAE,KAAK,IAAI,EAAE;IAC3D,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,IAAI,CAAC;MAClB,IAAI,EAAE,oEAAoE;KAC3E,CAAC,CAAC;IAEH,6EAA6E;IAC7E,MAAM,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,gBAAgB,CAAC;EACtD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from \"@stencil/core/testing\";\nimport { Chip } from \"../../ic-chip\";\n\ndescribe(\"ic-chip component renders label\", () => {\n it(\"should render static\", async () => {\n const page = await newSpecPage({\n components: [Chip],\n html: `<ic-chip label=\"Label\">\n <svg slot=\"icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 3C11.66 3 13 4.34 13 6C13 7.66 11.66 9 10 9C8.34 9 7 7.66 7 6C7 4.34 8.34 3 10 3ZM10 17.2C7.5 17.2 5.29 15.92 4 13.98C4.03 11.99 8 10.9 10 10.9C11.99 10.9 15.97 11.99 16 13.98C14.71 15.92 12.5 17.2 10 17.2Z\" fill=\"currentColor\"/>\n</svg>\n </ic-chip>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render dismissible\", async () => {\n const page = await newSpecPage({\n components: [Chip],\n html: `<ic-chip label=\"Label\" dismissible=\"true\">\n <svg slot=\"icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 3C11.66 3 13 4.34 13 6C13 7.66 11.66 9 10 9C8.34 9 7 7.66 7 6C7 4.34 8.34 3 10 3ZM10 17.2C7.5 17.2 5.29 15.92 4 13.98C4.03 11.99 8 10.9 10 10.9C11.99 10.9 15.97 11.99 16 13.98C14.71 15.92 12.5 17.2 10 17.2Z\" fill=\"currentColor\"/>\n</svg>\n </ic-chip>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render disabled\", async () => {\n const page = await newSpecPage({\n components: [Chip],\n html: `<ic-chip label=\"Label\" dismissible=\"true\" disabled=\"true\">\n <svg slot=\"icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 3C11.66 3 13 4.34 13 6C13 7.66 11.66 9 10 9C8.34 9 7 7.66 7 6C7 4.34 8.34 3 10 3ZM10 17.2C7.5 17.2 5.29 15.92 4 13.98C4.03 11.99 8 10.9 10 10.9C11.99 10.9 15.97 11.99 16 13.98C14.71 15.92 12.5 17.2 10 17.2Z\" fill=\"currentColor\"/>\n</svg>\n </ic-chip>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should render small\", async () => {\n const page = await newSpecPage({\n components: [Chip],\n html: `<ic-chip label=\"Label\" dismissible=\"true\" size=\"small\">\n <svg slot=\"icon\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 3C11.66 3 13 4.34 13 6C13 7.66 11.66 9 10 9C8.34 9 7 7.66 7 6C7 4.34 8.34 3 10 3ZM10 17.2C7.5 17.2 5.29 15.92 4 13.98C4.03 11.99 8 10.9 10 10.9C11.99 10.9 15.97 11.99 16 13.98C14.71 15.92 12.5 17.2 10 17.2Z\" fill=\"currentColor\"/>\n </svg>\n </ic-chip>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it(\"should apply 'hovered' style when cursor is on dismiss button\", async () => {\n const page = await newSpecPage({\n components: [Chip],\n html: `<ic-chip id=\"test-id\" label=\"Label\" dismissible=\"true\"></ic-chip>`,\n });\n\n expect(page.root).not.toBeNull;\n\n const chip = await document.getElementById(\"test-id\");\n\n const dismissButton = page.root.shadowRoot.querySelector(\"button\");\n\n await expect(chip.classList.contains(\"hovered\")).toBeFalsy;\n\n const event = new Event(\"mouseenter\", {\n bubbles: true,\n cancelable: true,\n });\n\n dismissButton.dispatchEvent(event);\n await page.waitForChanges();\n\n await expect(chip.classList.contains(\"hovered\")).toBeTruthy;\n });\n\n it(\"should lose 'hovered' style when cursor moves off dismiss button\", async () => {\n const page = await newSpecPage({\n components: [Chip],\n html: `<ic-chip id=\"test-id\" label=\"Label\" dismissible=\"true\"></ic-chip>`,\n });\n\n expect(page.root).not.toBeNull;\n\n const chip = await document.getElementById(\"test-id\");\n\n const dismissButton = page.root.shadowRoot.querySelector(\"button\");\n\n const enterEvent = new Event(\"mouseenter\", {\n bubbles: true,\n cancelable: true,\n });\n\n dismissButton.dispatchEvent(enterEvent);\n await page.waitForChanges();\n\n await expect(chip.classList.contains(\"hovered\")).toBeTruthy;\n\n const leaveEvent = new Event(\"mouseleave\", {\n bubbles: true,\n cancelable: true,\n });\n\n dismissButton.dispatchEvent(leaveEvent);\n\n await expect(chip.classList.contains(\"hovered\")).toBeFalsy;\n });\n\n it(\"should close on dismiss icon click\", async () => {\n const page = await newSpecPage({\n components: [Chip],\n html: `<ic-chip label=\"This is dismissible\" dismissible=\"true\"></ic-chip>`,\n });\n\n let chip = await page.root.shadowRoot.querySelector(\"div\");\n const dismissButton = await page.root.shadowRoot.querySelector(\"button\");\n\n expect(chip).not.toBeNull();\n expect(dismissButton).not.toBeNull();\n\n await dismissButton.click();\n\n await page.waitForChanges();\n chip = await page.root.shadowRoot.querySelector(\"div\");\n\n expect(chip).toBeNull();\n });\n\n it(\"should call 'setFocus' when chip is focused\", async () => {\n const page = await newSpecPage({\n components: [Chip],\n html: `<ic-chip label=\"This is dismissible\" dismissible=\"true\"></ic-chip>`,\n });\n\n //Can't expect anything in this test - this is to increase code coverage only\n await page.rootInstance.setFocus().toHaveBeenCalled;\n });\n});\n"]}
|