@ukic/web-components 3.0.0-alpha.1 → 3.0.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/{helpers-f1cf5156.js → helpers-eca4c27e.js} +80 -29
- package/dist/cjs/helpers-eca4c27e.js.map +1 -0
- package/dist/cjs/ic-accordion-group.cjs.entry.js +10 -10
- package/dist/cjs/ic-accordion-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-accordion.cjs.entry.js +12 -5
- package/dist/cjs/ic-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +9 -14
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-back-to-top.cjs.entry.js +8 -5
- package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-badge.cjs.entry.js +26 -3
- package/dist/cjs/ic-badge.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js +43 -20
- package/dist/cjs/ic-breadcrumb-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +49 -4
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-button_3.cjs.entry.js +28 -26
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-card-vertical.cjs.entry.js +48 -47
- package/dist/cjs/ic-card-vertical.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +21 -6
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-checkbox.cjs.entry.js +10 -4
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-chip.cjs.entry.js +27 -15
- package/dist/cjs/ic-chip.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js +1 -1
- package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-row.cjs.entry.js +1 -1
- package/dist/cjs/ic-dialog.cjs.entry.js +32 -9
- package/dist/cjs/ic-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-divider.cjs.entry.js +73 -9
- package/dist/cjs/ic-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-empty-state.cjs.entry.js +7 -15
- package/dist/cjs/ic-empty-state.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +6 -7
- package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer-link.cjs.entry.js +8 -7
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-footer.cjs.entry.js +24 -14
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-hero.cjs.entry.js +7 -15
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js +17 -9
- package/dist/cjs/ic-horizontal-scroll.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +486 -200
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-input-label_2.cjs.entry.js +24 -26
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-link.cjs.entry.js +10 -12
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-group.cjs.entry.js +3 -3
- package/dist/cjs/ic-menu-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-menu-item.cjs.entry.js +25 -18
- package/dist/cjs/ic-menu-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-button.cjs.entry.js +11 -8
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-group.cjs.entry.js +10 -8
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-item.cjs.entry.js +60 -8
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +5 -4
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-page-header.cjs.entry.js +8 -6
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination-item.cjs.entry.js +12 -11
- package/dist/cjs/ic-pagination-item.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination.cjs.entry.js +23 -15
- package/dist/cjs/ic-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +47 -25
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-group.cjs.entry.js +60 -29
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-radio-option.cjs.entry.js +42 -22
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +54 -56
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-select.cjs.entry.js +192 -66
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-side-navigation.cjs.entry.js +16 -11
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-skeleton.cjs.entry.js +4 -4
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-status-tag.cjs.entry.js +5 -4
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-step.cjs.entry.js +4 -5
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-stepper.cjs.entry.js +12 -2
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-switch.cjs.entry.js +21 -16
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +60 -123
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-group.cjs.entry.js +3 -19
- 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 +10 -8
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-text-field.cjs.entry.js +43 -23
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-theme.cjs.entry.js +20 -20
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toast.cjs.entry.js +4 -4
- package/dist/cjs/ic-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js +62 -12
- package/dist/cjs/ic-toggle-button-group.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-toggle-button.cjs.entry.js +64 -9
- package/dist/cjs/ic-toggle-button.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-top-navigation.cjs.entry.js +13 -7
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +5 -3
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/index-f982899d.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/ag-theme-icds.css +218 -0
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/ic-accordion/ic-accordion.css +22 -20
- package/dist/collection/components/ic-accordion/ic-accordion.js +37 -31
- package/dist/collection/components/ic-accordion/ic-accordion.js.map +1 -1
- package/dist/collection/components/ic-accordion/ic-accordion.stories.js +611 -0
- package/dist/collection/components/ic-accordion/test/basic/ic-accordion.spec.js +6 -3
- package/dist/collection/components/ic-accordion/test/basic/ic-accordion.spec.js.map +1 -1
- package/dist/collection/components/ic-accordion-group/ic-accordion-group.css +2 -12
- package/dist/collection/components/ic-accordion-group/ic-accordion-group.js +18 -18
- package/dist/collection/components/ic-accordion-group/ic-accordion-group.js.map +1 -1
- package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.spec.js +3 -3
- package/dist/collection/components/ic-accordion-group/test/basic/ic-accordion-group.spec.js.map +1 -1
- package/dist/collection/components/ic-alert/ic-alert.css +38 -20
- package/dist/collection/components/ic-alert/ic-alert.js +52 -33
- package/dist/collection/components/ic-alert/ic-alert.js.map +1 -1
- package/dist/collection/components/ic-alert/ic-alert.stories.js +271 -0
- package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js +22 -4
- package/dist/collection/components/ic-alert/test/basic/ic-alert.spec.js.map +1 -1
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.css +5 -2
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +31 -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/ic-back-to-top.stories.js +162 -0
- package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js +14 -0
- package/dist/collection/components/ic-back-to-top/test/basic/ic-back-to-top.spec.js.map +1 -1
- package/dist/collection/components/ic-badge/ic-badge.css +5 -5
- package/dist/collection/components/ic-badge/ic-badge.js +42 -4
- package/dist/collection/components/ic-badge/ic-badge.js.map +1 -1
- package/dist/collection/components/ic-badge/ic-badge.stories.js +1092 -0
- package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js +194 -0
- package/dist/collection/components/ic-badge/test/basic/ic-badge.spec.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.css +27 -8
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +52 -4
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb/test/basic/ic-breadcrumb.spec.js +49 -5
- package/dist/collection/components/ic-breadcrumb/test/basic/ic-breadcrumb.spec.js.map +1 -1
- package/dist/collection/components/ic-breadcrumb-group/ic-breadcrumb-group.js +44 -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.stories.js +362 -0
- package/dist/collection/components/ic-button/ic-button.css +690 -420
- package/dist/collection/components/ic-button/ic-button.js +64 -46
- package/dist/collection/components/ic-button/ic-button.js.map +1 -1
- package/dist/collection/components/ic-button/ic-button.stories.js +2208 -0
- package/dist/collection/components/ic-button/ic-button.types.js.map +1 -1
- package/dist/collection/components/ic-button/test/basic/ic-button.spec.js +9 -9
- package/dist/collection/components/ic-button/test/basic/ic-button.spec.js.map +1 -1
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.css +102 -113
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.js +80 -52
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.js.map +1 -1
- package/dist/collection/components/ic-card-vertical/ic-card-vertical.stories.js +1050 -0
- package/dist/collection/components/ic-card-vertical/test/basic/ic-card-vertical.spec.js +44 -3
- package/dist/collection/components/ic-card-vertical/test/basic/ic-card-vertical.spec.js.map +1 -1
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +71 -39
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +35 -3
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +15 -2
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +46 -3
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -1
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.stories.js +726 -0
- package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js +3 -0
- package/dist/collection/components/ic-checkbox-group/test/basic/ic-checkbox-group.spec.js.map +1 -1
- package/dist/collection/components/ic-chip/ic-chip.css +64 -49
- package/dist/collection/components/ic-chip/ic-chip.js +66 -15
- package/dist/collection/components/ic-chip/ic-chip.js.map +1 -1
- package/dist/collection/components/ic-chip/ic-chip.stories.js +980 -0
- package/dist/collection/components/ic-chip/test/basic/ic-chip.spec.js +19 -0
- package/dist/collection/components/ic-chip/test/basic/ic-chip.spec.js.map +1 -1
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.css +14 -10
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.stories.js +131 -0
- package/dist/collection/components/ic-data-list/ic-data-list.stories.js +493 -0
- package/dist/collection/components/ic-dialog/ic-dialog.css +16 -9
- package/dist/collection/components/ic-dialog/ic-dialog.js +57 -10
- package/dist/collection/components/ic-dialog/ic-dialog.js.map +1 -1
- package/dist/collection/components/ic-dialog/ic-dialog.stories.js +1066 -0
- package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js +27 -7
- package/dist/collection/components/ic-dialog/test/basic/ic-dialog.spec.js.map +1 -1
- package/dist/collection/components/ic-divider/ic-divider.css +295 -4
- package/dist/collection/components/ic-divider/ic-divider.js +239 -12
- package/dist/collection/components/ic-divider/ic-divider.js.map +1 -1
- package/dist/collection/components/ic-divider/ic-divider.stories.js +394 -0
- package/dist/collection/components/ic-divider/ic-divider.types.js +2 -0
- package/dist/collection/components/ic-divider/ic-divider.types.js.map +1 -0
- package/dist/collection/components/ic-divider/test/basic/ic-divider.spec.js +90 -5
- package/dist/collection/components/ic-divider/test/basic/ic-divider.spec.js.map +1 -1
- package/dist/collection/components/ic-empty-state/ic-empty-state.css +15 -0
- package/dist/collection/components/ic-empty-state/ic-empty-state.js +31 -15
- package/dist/collection/components/ic-empty-state/ic-empty-state.js.map +1 -1
- package/dist/collection/components/ic-empty-state/ic-empty-state.stories.js +404 -0
- package/dist/collection/components/ic-empty-state/test/basic/ic-empty-state.spec.js +101 -0
- package/dist/collection/components/ic-empty-state/test/basic/ic-empty-state.spec.js.map +1 -0
- package/dist/collection/components/ic-footer/ic-footer.css +21 -20
- package/dist/collection/components/ic-footer/ic-footer.js +26 -16
- package/dist/collection/components/ic-footer/ic-footer.js.map +1 -1
- package/dist/collection/components/ic-footer/ic-footer.stories.js +384 -0
- package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js +43 -2
- package/dist/collection/components/ic-footer/test/basic/ic-footer.spec.js.map +1 -1
- package/dist/collection/components/ic-footer-link/ic-footer-link.css +24 -6
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +9 -8
- package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +1 -1
- package/dist/collection/components/ic-footer-link/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 -1
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.css +11 -19
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +7 -8
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -1
- package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js +1 -1
- package/dist/collection/components/ic-footer-link-group/test/basic/ic-footer-link-group.spec.js.map +1 -1
- package/dist/collection/components/ic-hero/ic-hero.css +25 -10
- package/dist/collection/components/ic-hero/ic-hero.js +10 -18
- package/dist/collection/components/ic-hero/ic-hero.js.map +1 -1
- package/dist/collection/components/ic-hero/ic-hero.stories.js +448 -0
- package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js +23 -5
- package/dist/collection/components/ic-hero/test/basic/ic-hero.spec.js.map +1 -1
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.css +2 -6
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js +67 -11
- package/dist/collection/components/ic-horizontal-scroll/ic-horizontal-scroll.js.map +1 -1
- package/dist/collection/components/ic-horizontal-scroll/test/basic/ic-horizontal-scroll.spec.js +43 -0
- package/dist/collection/components/ic-horizontal-scroll/test/basic/ic-horizontal-scroll.spec.js.map +1 -1
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +40 -17
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +23 -48
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js.map +1 -1
- package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js +30 -3
- package/dist/collection/components/ic-input-component-container/test/basic/ic-input-component-container.spec.js.map +1 -1
- package/dist/collection/components/ic-input-label/ic-input-label.css +19 -20
- package/dist/collection/components/ic-input-label/ic-input-label.js +53 -34
- package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -1
- package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js +35 -49
- package/dist/collection/components/ic-input-label/test/basic/ic-input-label.spec.js.map +1 -1
- package/dist/collection/components/ic-input-validation/ic-input-validation.css +12 -3
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +7 -7
- package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -1
- package/dist/collection/components/ic-link/ic-link.css +18 -33
- package/dist/collection/components/ic-link/ic-link.js +14 -16
- package/dist/collection/components/ic-link/ic-link.js.map +1 -1
- package/dist/collection/components/ic-link/ic-link.stories.js +85 -0
- package/dist/collection/components/ic-link/test/basic/ic-link.spec.js +3 -3
- package/dist/collection/components/ic-link/test/basic/ic-link.spec.js.map +1 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +15 -10
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +50 -31
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -1
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.stories.js +464 -0
- package/dist/collection/components/ic-menu/ic-menu.css +111 -29
- package/dist/collection/components/ic-menu/ic-menu.js +522 -201
- package/dist/collection/components/ic-menu/ic-menu.js.map +1 -1
- package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js +381 -33
- package/dist/collection/components/ic-menu/test/basic/ic-menu.spec.js.map +1 -1
- package/dist/collection/components/ic-menu-group/ic-menu-group.css +2 -2
- package/dist/collection/components/ic-menu-group/ic-menu-group.js +1 -1
- package/dist/collection/components/ic-menu-group/ic-menu-group.js.map +1 -1
- package/dist/collection/components/ic-menu-item/ic-menu-item.css +32 -28
- package/dist/collection/components/ic-menu-item/ic-menu-item.js +67 -25
- package/dist/collection/components/ic-menu-item/ic-menu-item.js.map +1 -1
- package/dist/collection/components/ic-menu-item/test/basic/ic-menu-item.spec.js +15 -2
- package/dist/collection/components/ic-menu-item/test/basic/ic-menu-item.spec.js.map +1 -1
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.css +18 -0
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +37 -10
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -1
- package/dist/collection/components/ic-navigation-button/test/basic/ic-navigation-button.spec.js +3 -3
- package/dist/collection/components/ic-navigation-button/test/basic/ic-navigation-button.spec.js.map +1 -1
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +17 -12
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +35 -9
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -1
- package/dist/collection/components/ic-navigation-group/test/basic/ic-navigation-group.spec.js +3 -3
- package/dist/collection/components/ic-navigation-group/test/basic/ic-navigation-group.spec.js.map +1 -1
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +38 -65
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +88 -11
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -1
- package/dist/collection/components/ic-navigation-item/test/basic/ic-navigation-item.spec.js +15 -3
- package/dist/collection/components/ic-navigation-item/test/basic/ic-navigation-item.spec.js.map +1 -1
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.css +9 -6
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +27 -2
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -1
- package/dist/collection/components/ic-page-header/ic-page-header.css +7 -3
- package/dist/collection/components/ic-page-header/ic-page-header.js +30 -4
- package/dist/collection/components/ic-page-header/ic-page-header.js.map +1 -1
- package/dist/collection/components/ic-page-header/ic-page-header.stories.js +823 -0
- package/dist/collection/components/ic-pagination/ic-pagination.css +15 -0
- package/dist/collection/components/ic-pagination/ic-pagination.js +65 -37
- package/dist/collection/components/ic-pagination/ic-pagination.js.map +1 -1
- package/dist/collection/components/ic-pagination/ic-pagination.stories.js +164 -0
- package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js +11 -1
- package/dist/collection/components/ic-pagination/test/basic/ic-pagination.spec.js.map +1 -1
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.css +29 -9
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js +54 -33
- package/dist/collection/components/ic-pagination-item/ic-pagination-item.js.map +1 -1
- package/dist/collection/components/ic-pagination-item/test/basic/ic-pagination-item.spec.js +3 -0
- package/dist/collection/components/ic-pagination-item/test/basic/ic-pagination-item.spec.js.map +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.css +5 -5
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js +112 -26
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.js.map +1 -1
- package/dist/collection/components/ic-popover-menu/ic-popover-menu.stories.js +504 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.css +17 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +83 -26
- package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -1
- package/dist/collection/components/ic-radio-group/ic-radio-group.stories.js +443 -0
- package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js +12 -3
- package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.spec.js.map +1 -1
- package/dist/collection/components/ic-radio-option/ic-radio-option.css +36 -28
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +73 -21
- package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -1
- package/dist/collection/components/ic-search-bar/ic-search-bar.css +110 -10
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +101 -57
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -1
- package/dist/collection/components/ic-search-bar/ic-search-bar.stories.js +593 -0
- package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js +63 -94
- package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.spec.js.map +1 -1
- package/dist/collection/components/ic-section-container/ic-section-container.stories.js +62 -0
- package/dist/collection/components/ic-select/ic-select.css +93 -53
- package/dist/collection/components/ic-select/ic-select.js +267 -77
- package/dist/collection/components/ic-select/ic-select.js.map +1 -1
- package/dist/collection/components/ic-select/ic-select_(multi).stories.js +892 -0
- package/dist/collection/components/ic-select/ic-select_(searchable).stories.js +965 -0
- package/dist/collection/components/ic-select/ic-select_(single).stories.js +790 -0
- package/dist/collection/components/ic-select/test/basic/ic-select.spec.js +234 -1
- package/dist/collection/components/ic-select/test/basic/ic-select.spec.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +50 -34
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +18 -13
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.stories.js +2526 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.types.js.map +1 -1
- package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js +6 -6
- package/dist/collection/components/ic-side-navigation/test/basic/ic-side-navigation.spec.js.map +1 -1
- package/dist/collection/components/ic-skeleton/ic-skeleton.css +4 -27
- package/dist/collection/components/ic-skeleton/ic-skeleton.js +16 -10
- package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -1
- package/dist/collection/components/ic-skeleton/ic-skeleton.stories.js +143 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.css +6 -6
- package/dist/collection/components/ic-status-tag/ic-status-tag.js +21 -2
- package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +1 -1
- package/dist/collection/components/ic-status-tag/ic-status-tag.stories.js +196 -0
- package/dist/collection/components/ic-status-tag/test/basic/ic-status-tag.spec.js +15 -32
- package/dist/collection/components/ic-status-tag/test/basic/ic-status-tag.spec.js.map +1 -1
- package/dist/collection/components/ic-step/ic-step.css +65 -98
- package/dist/collection/components/ic-step/ic-step.js +29 -3
- package/dist/collection/components/ic-step/ic-step.js.map +1 -1
- package/dist/collection/components/ic-stepper/ic-stepper.js +37 -19
- package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -1
- package/dist/collection/components/ic-stepper/ic-stepper.stories.js +277 -0
- package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js +4 -4
- package/dist/collection/components/ic-stepper/test/basic/ic-stepper.spec.js.map +1 -1
- package/dist/collection/components/ic-switch/ic-switch.css +30 -48
- package/dist/collection/components/ic-switch/ic-switch.js +43 -30
- package/dist/collection/components/ic-switch/ic-switch.js.map +1 -1
- package/dist/collection/components/ic-switch/ic-switch.stories.js +149 -0
- package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js +3 -14
- package/dist/collection/components/ic-switch/test/basic/ic-switch.spec.js.map +1 -1
- package/dist/collection/components/ic-tab/ic-tab.js +11 -6
- package/dist/collection/components/ic-tab/ic-tab.js.map +1 -1
- package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js +16 -0
- package/dist/collection/components/ic-tab/test/basic/ic-tab.spec.js.map +1 -1
- package/dist/collection/components/ic-tab-context/ic-tab-context.js +60 -123
- package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -1
- package/dist/collection/components/ic-tab-context/ic-tabs.stories.js +316 -0
- package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.spec.js +2 -2
- package/dist/collection/components/ic-tab-context/test/basic/ic-tab-context.spec.js.map +1 -1
- package/dist/collection/components/ic-tab-group/ic-tab-group.css +8 -0
- package/dist/collection/components/ic-tab-group/ic-tab-group.js +1 -17
- package/dist/collection/components/ic-tab-group/ic-tab-group.js.map +1 -1
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.css +1 -1
- package/dist/collection/components/ic-text-field/ic-text-field.css +62 -8
- package/dist/collection/components/ic-text-field/ic-text-field.js +70 -24
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -1
- package/dist/collection/components/ic-text-field/ic-text-field.stories.js +862 -0
- package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js +26 -12
- package/dist/collection/components/ic-text-field/test/basic/ic-text-field.input.spec.js.map +1 -1
- package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js +2 -2
- package/dist/collection/components/ic-text-field/test/basic/ic-text-field.textarea.spec.js.map +1 -1
- package/dist/collection/components/ic-theme/ic-theme.js +31 -31
- package/dist/collection/components/ic-theme/ic-theme.js.map +1 -1
- package/dist/collection/components/ic-theme/ic-theme.stories.js +434 -0
- package/dist/collection/components/ic-theme/test/basic/ic-theme.e2e.js +7 -7
- package/dist/collection/components/ic-theme/test/basic/ic-theme.e2e.js.map +1 -1
- package/dist/collection/components/ic-theme/test/basic/ic-theme.spec.js +11 -11
- package/dist/collection/components/ic-theme/test/basic/ic-theme.spec.js.map +1 -1
- package/dist/collection/components/ic-toast/ic-toast.css +31 -17
- package/dist/collection/components/ic-toast/ic-toast.js +2 -3
- package/dist/collection/components/ic-toast/ic-toast.js.map +1 -1
- package/dist/collection/components/ic-toast/ic-toast.stories.js +396 -0
- package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js +16 -16
- package/dist/collection/components/ic-toast/test/basic/ic-toast.spec.js.map +1 -1
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.css +189 -57
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js +149 -42
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.js.map +1 -1
- package/dist/collection/components/ic-toggle-button/ic-toggle-button.stories.js +427 -0
- package/dist/collection/components/ic-toggle-button/test/basic/ic-toggle-button.spec.js +10 -0
- package/dist/collection/components/ic-toggle-button/test/basic/ic-toggle-button.spec.js.map +1 -1
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.css +23 -16
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js +144 -35
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.js.map +1 -1
- package/dist/collection/components/ic-toggle-button-group/ic-toggle-button-group.stories.js +585 -0
- package/dist/collection/components/ic-toggle-button-group/test/ic-toggle-button-group.spec.js +187 -0
- package/dist/collection/components/ic-toggle-button-group/test/ic-toggle-button-group.spec.js.map +1 -1
- package/dist/collection/components/ic-tooltip/ic-tooltip.css +7 -1
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +2 -5
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -1
- package/dist/collection/components/ic-tooltip/ic-tooltip.stories.js +366 -0
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +49 -21
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +39 -9
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -1
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.stories.js +1098 -0
- package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.spec.js +3 -3
- package/dist/collection/components/ic-top-navigation/test/basic/ic-top-navigation.spec.js.map +1 -1
- package/dist/collection/components/ic-typography/ic-typography.css +7 -9
- package/dist/collection/components/ic-typography/ic-typography.js +3 -1
- package/dist/collection/components/ic-typography/ic-typography.js.map +1 -1
- package/dist/collection/components/ic-typography/ic-typography.stories.js +447 -0
- package/dist/collection/patterns/top-nav-content-footer.stories.js +109 -0
- package/dist/collection/patterns/z-index.stories.js +474 -0
- package/dist/collection/testspec.setup.js +14 -0
- package/dist/collection/testspec.setup.js.map +1 -1
- package/dist/collection/utils/constants.js +1 -1
- package/dist/collection/utils/constants.js.map +1 -1
- package/dist/collection/utils/helpers.js +64 -19
- package/dist/collection/utils/helpers.js.map +1 -1
- package/dist/collection/utils/types.js +6 -6
- package/dist/collection/utils/types.js.map +1 -1
- package/dist/components/helpers.js +73 -26
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/ic-accordion-group.js +11 -11
- package/dist/components/ic-accordion-group.js.map +1 -1
- package/dist/components/ic-accordion.js +14 -6
- package/dist/components/ic-accordion.js.map +1 -1
- package/dist/components/ic-alert.js +12 -16
- package/dist/components/ic-alert.js.map +1 -1
- package/dist/components/ic-back-to-top.js +9 -5
- package/dist/components/ic-back-to-top.js.map +1 -1
- package/dist/components/ic-badge.js +28 -5
- package/dist/components/ic-badge.js.map +1 -1
- package/dist/components/ic-breadcrumb-group.js +44 -20
- package/dist/components/ic-breadcrumb-group.js.map +1 -1
- package/dist/components/ic-breadcrumb2.js +51 -4
- package/dist/components/ic-breadcrumb2.js.map +1 -1
- package/dist/components/ic-button2.js +21 -20
- package/dist/components/ic-button2.js.map +1 -1
- package/dist/components/ic-card-vertical.js +54 -50
- package/dist/components/ic-card-vertical.js.map +1 -1
- package/dist/components/ic-checkbox-group.js +25 -7
- package/dist/components/ic-checkbox-group.js.map +1 -1
- package/dist/components/ic-checkbox.js +12 -4
- package/dist/components/ic-checkbox.js.map +1 -1
- package/dist/components/ic-chip.js +32 -16
- package/dist/components/ic-chip.js.map +1 -1
- package/dist/components/ic-classification-banner.js +1 -1
- package/dist/components/ic-classification-banner.js.map +1 -1
- package/dist/components/ic-data-row.js +1 -1
- package/dist/components/ic-dialog.js +33 -9
- package/dist/components/ic-dialog.js.map +1 -1
- package/dist/components/ic-divider2.js +89 -12
- package/dist/components/ic-divider2.js.map +1 -1
- package/dist/components/ic-empty-state.js +10 -17
- package/dist/components/ic-empty-state.js.map +1 -1
- package/dist/components/ic-footer-link-group.js +7 -8
- package/dist/components/ic-footer-link-group.js.map +1 -1
- package/dist/components/ic-footer-link.js +9 -8
- package/dist/components/ic-footer-link.js.map +1 -1
- package/dist/components/ic-footer.js +25 -15
- package/dist/components/ic-footer.js.map +1 -1
- package/dist/components/ic-hero.js +9 -17
- package/dist/components/ic-hero.js.map +1 -1
- package/dist/components/ic-horizontal-scroll2.js +19 -9
- package/dist/components/ic-horizontal-scroll2.js.map +1 -1
- package/dist/components/ic-input-component-container2.js +23 -32
- package/dist/components/ic-input-component-container2.js.map +1 -1
- package/dist/components/ic-input-label2.js +19 -20
- package/dist/components/ic-input-label2.js.map +1 -1
- package/dist/components/ic-input-validation2.js +9 -9
- package/dist/components/ic-input-validation2.js.map +1 -1
- package/dist/components/ic-link2.js +13 -15
- package/dist/components/ic-link2.js.map +1 -1
- package/dist/components/ic-loading-indicator2.js +11 -9
- package/dist/components/ic-loading-indicator2.js.map +1 -1
- package/dist/components/ic-menu-group.js +2 -2
- package/dist/components/ic-menu-group.js.map +1 -1
- package/dist/components/ic-menu-item2.js +30 -21
- package/dist/components/ic-menu-item2.js.map +1 -1
- package/dist/components/ic-menu2.js +472 -175
- package/dist/components/ic-menu2.js.map +1 -1
- package/dist/components/ic-navigation-button.js +13 -9
- package/dist/components/ic-navigation-button.js.map +1 -1
- package/dist/components/ic-navigation-group.js +12 -9
- package/dist/components/ic-navigation-group.js.map +1 -1
- package/dist/components/ic-navigation-item.js +64 -10
- package/dist/components/ic-navigation-item.js.map +1 -1
- package/dist/components/ic-navigation-menu2.js +6 -4
- package/dist/components/ic-navigation-menu2.js.map +1 -1
- package/dist/components/ic-page-header.js +9 -6
- package/dist/components/ic-page-header.js.map +1 -1
- package/dist/components/ic-pagination-item2.js +15 -12
- package/dist/components/ic-pagination-item2.js.map +1 -1
- package/dist/components/ic-pagination.js +25 -15
- package/dist/components/ic-pagination.js.map +1 -1
- package/dist/components/ic-popover-menu.js +50 -26
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-radio-group.js +63 -30
- package/dist/components/ic-radio-group.js.map +1 -1
- package/dist/components/ic-radio-option.js +45 -23
- package/dist/components/ic-radio-option.js.map +1 -1
- package/dist/components/ic-search-bar.js +70 -81
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-select.js +196 -67
- package/dist/components/ic-select.js.map +1 -1
- package/dist/components/ic-side-navigation.js +17 -12
- 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 +5 -3
- package/dist/components/ic-status-tag.js.map +1 -1
- package/dist/components/ic-step.js +4 -4
- package/dist/components/ic-step.js.map +1 -1
- package/dist/components/ic-stepper.js +14 -3
- package/dist/components/ic-stepper.js.map +1 -1
- package/dist/components/ic-switch.js +24 -18
- package/dist/components/ic-switch.js.map +1 -1
- package/dist/components/ic-tab-context.js +60 -123
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-group.js +2 -18
- package/dist/components/ic-tab-group.js.map +1 -1
- package/dist/components/ic-tab-panel.js +1 -1
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +10 -8
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field.js +371 -1
- package/dist/components/ic-text-field.js.map +1 -1
- package/dist/components/ic-theme.js +22 -22
- package/dist/components/ic-theme.js.map +1 -1
- package/dist/components/ic-toast.js +4 -4
- package/dist/components/ic-toast.js.map +1 -1
- package/dist/components/ic-toggle-button-group.js +75 -14
- package/dist/components/ic-toggle-button-group.js.map +1 -1
- package/dist/components/ic-toggle-button.js +76 -17
- package/dist/components/ic-toggle-button.js.map +1 -1
- package/dist/components/ic-tooltip2.js +1 -1
- package/dist/components/ic-tooltip2.js.map +1 -1
- package/dist/components/ic-top-navigation.js +15 -8
- package/dist/components/ic-top-navigation.js.map +1 -1
- package/dist/components/ic-typography2.js +4 -2
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/core/ag-theme-icds.css +218 -0
- package/dist/core/core.css +1607 -77
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-00587c99.entry.js +2 -0
- package/dist/core/p-00587c99.entry.js.map +1 -0
- package/dist/core/p-07aaf9c4.entry.js +2 -0
- package/dist/core/p-07aaf9c4.entry.js.map +1 -0
- package/dist/core/p-094f51b6.entry.js +2 -0
- package/dist/core/p-094f51b6.entry.js.map +1 -0
- package/dist/core/p-146b2788.entry.js +2 -0
- package/dist/core/p-146b2788.entry.js.map +1 -0
- package/dist/core/p-15082ea5.entry.js +2 -0
- package/dist/core/p-15082ea5.entry.js.map +1 -0
- package/dist/core/p-174de9d7.entry.js +2 -0
- package/dist/core/p-174de9d7.entry.js.map +1 -0
- package/dist/core/p-17f9921d.entry.js +2 -0
- package/dist/core/p-17f9921d.entry.js.map +1 -0
- package/dist/core/p-246ea059.entry.js +2 -0
- package/dist/core/p-246ea059.entry.js.map +1 -0
- package/dist/core/p-25d3c3a6.entry.js +2 -0
- package/dist/core/p-25d3c3a6.entry.js.map +1 -0
- package/dist/core/{p-54238d16.entry.js → p-27274ca8.entry.js} +2 -2
- package/dist/core/p-27274ca8.entry.js.map +1 -0
- package/dist/core/p-39ab6387.entry.js +2 -0
- package/dist/core/p-39ab6387.entry.js.map +1 -0
- package/dist/core/p-3d565739.entry.js +2 -0
- package/dist/core/p-3d565739.entry.js.map +1 -0
- package/dist/core/p-41b7c67c.entry.js +2 -0
- package/dist/core/p-41b7c67c.entry.js.map +1 -0
- package/dist/core/p-4572b2ba.entry.js +2 -0
- package/dist/core/p-4572b2ba.entry.js.map +1 -0
- package/dist/core/p-4cfe1dd8.entry.js +2 -0
- package/dist/core/p-4cfe1dd8.entry.js.map +1 -0
- package/dist/core/p-5b836707.entry.js +2 -0
- package/dist/core/p-5b836707.entry.js.map +1 -0
- package/dist/core/{p-46ee459b.entry.js → p-67b3cd55.entry.js} +2 -2
- package/dist/core/p-67b3cd55.entry.js.map +1 -0
- package/dist/core/p-67b8a829.entry.js +2 -0
- package/dist/core/p-67b8a829.entry.js.map +1 -0
- package/dist/core/p-6dfa5a4b.entry.js +2 -0
- package/dist/core/p-6dfa5a4b.entry.js.map +1 -0
- package/dist/core/p-6e94c79c.entry.js +2 -0
- package/dist/core/p-6e94c79c.entry.js.map +1 -0
- package/dist/core/p-73d6092d.entry.js +2 -0
- package/dist/core/p-73d6092d.entry.js.map +1 -0
- package/dist/core/{p-c81109da.entry.js → p-770c52a7.entry.js} +2 -2
- package/dist/core/p-770c52a7.entry.js.map +1 -0
- package/dist/core/{p-e861a2b3.entry.js → p-7b26ef60.entry.js} +2 -2
- package/dist/core/p-7b26ef60.entry.js.map +1 -0
- package/dist/core/{p-1e802eeb.entry.js → p-7f984e25.entry.js} +2 -2
- package/dist/core/p-7f984e25.entry.js.map +1 -0
- package/dist/core/p-86caada0.entry.js +2 -0
- package/dist/core/p-86caada0.entry.js.map +1 -0
- package/dist/core/p-8c03b8b5.entry.js +2 -0
- package/dist/core/p-8c03b8b5.entry.js.map +1 -0
- package/dist/core/p-8fdb9b16.entry.js +2 -0
- package/dist/core/p-8fdb9b16.entry.js.map +1 -0
- package/dist/core/p-91a221b5.entry.js +2 -0
- package/dist/core/p-91a221b5.entry.js.map +1 -0
- package/dist/core/{p-e597da0e.entry.js → p-96b4ca6e.entry.js} +2 -2
- package/dist/core/p-96b4ca6e.entry.js.map +1 -0
- package/dist/core/p-9e0c2c19.entry.js +2 -0
- package/dist/core/p-9e0c2c19.entry.js.map +1 -0
- package/dist/core/p-9f569f90.entry.js +2 -0
- package/dist/core/p-9f569f90.entry.js.map +1 -0
- package/dist/core/p-a178d53c.entry.js +2 -0
- package/dist/core/p-a178d53c.entry.js.map +1 -0
- package/dist/core/p-a3b7a147.entry.js +2 -0
- package/dist/core/p-a3b7a147.entry.js.map +1 -0
- package/dist/core/p-a72685f6.entry.js +2 -0
- package/dist/core/p-a72685f6.entry.js.map +1 -0
- package/dist/core/p-abdc2912.entry.js +2 -0
- package/dist/core/p-abdc2912.entry.js.map +1 -0
- package/dist/core/p-b260b967.entry.js +2 -0
- package/dist/core/p-b260b967.entry.js.map +1 -0
- package/dist/core/p-b404b307.entry.js +2 -0
- package/dist/core/p-b404b307.entry.js.map +1 -0
- package/dist/core/p-b6ce9ca3.entry.js +2 -0
- package/dist/core/p-b6ce9ca3.entry.js.map +1 -0
- package/dist/core/p-b6e010f3.entry.js +2 -0
- package/dist/core/p-b6e010f3.entry.js.map +1 -0
- package/dist/core/p-bbd4f487.entry.js +2 -0
- package/dist/core/p-bbd4f487.entry.js.map +1 -0
- package/dist/core/p-bd9f3961.entry.js +2 -0
- package/dist/core/p-bd9f3961.entry.js.map +1 -0
- package/dist/core/{p-a3b6a02d.entry.js → p-c1db155d.entry.js} +2 -2
- package/dist/core/p-c1db155d.entry.js.map +1 -0
- package/dist/core/p-c7bcdb8e.entry.js +2 -0
- package/dist/core/p-c7bcdb8e.entry.js.map +1 -0
- package/dist/core/p-ca11666f.entry.js +2 -0
- package/dist/core/p-ca11666f.entry.js.map +1 -0
- package/dist/core/p-cda4aca9.js +2 -0
- package/dist/core/p-cda4aca9.js.map +1 -0
- package/dist/core/{p-bf4c61cb.entry.js → p-d0afa458.entry.js} +2 -2
- package/dist/core/{p-bf4c61cb.entry.js.map → p-d0afa458.entry.js.map} +1 -1
- package/dist/core/p-d8690838.entry.js +2 -0
- package/dist/core/p-d8690838.entry.js.map +1 -0
- package/dist/core/p-dededae6.entry.js +2 -0
- package/dist/core/p-dededae6.entry.js.map +1 -0
- package/dist/core/p-df957570.entry.js +2 -0
- package/dist/core/p-df957570.entry.js.map +1 -0
- package/dist/core/{p-d8870804.entry.js → p-e2cf6e7e.entry.js} +2 -2
- package/dist/core/p-e6189634.entry.js +2 -0
- package/dist/core/p-e6189634.entry.js.map +1 -0
- package/dist/core/p-e6dc3cd1.entry.js +2 -0
- package/dist/core/p-e6dc3cd1.entry.js.map +1 -0
- package/dist/core/p-e831277e.entry.js +2 -0
- package/dist/core/p-e831277e.entry.js.map +1 -0
- package/dist/core/p-eb7c589b.entry.js +2 -0
- package/dist/core/p-eb7c589b.entry.js.map +1 -0
- package/dist/core/p-f65179fe.entry.js +2 -0
- package/dist/core/p-f65179fe.entry.js.map +1 -0
- package/dist/core/p-fd60eef7.entry.js +2 -0
- package/dist/core/p-fd60eef7.entry.js.map +1 -0
- package/dist/core/p-fd9f3fd0.entry.js +2 -0
- package/dist/core/p-fd9f3fd0.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/{helpers-1c9151ef.js → helpers-a72a277b.js} +74 -27
- package/dist/esm/helpers-a72a277b.js.map +1 -0
- package/dist/esm/ic-accordion-group.entry.js +10 -10
- package/dist/esm/ic-accordion-group.entry.js.map +1 -1
- package/dist/esm/ic-accordion.entry.js +12 -5
- package/dist/esm/ic-accordion.entry.js.map +1 -1
- package/dist/esm/ic-alert.entry.js +10 -15
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-back-to-top.entry.js +9 -6
- package/dist/esm/ic-back-to-top.entry.js.map +1 -1
- package/dist/esm/ic-badge.entry.js +26 -3
- package/dist/esm/ic-badge.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb-group.entry.js +43 -20
- package/dist/esm/ic-breadcrumb-group.entry.js.map +1 -1
- package/dist/esm/ic-breadcrumb.entry.js +49 -4
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -1
- package/dist/esm/ic-button_3.entry.js +28 -26
- package/dist/esm/ic-button_3.entry.js.map +1 -1
- package/dist/esm/ic-card-vertical.entry.js +49 -48
- package/dist/esm/ic-card-vertical.entry.js.map +1 -1
- package/dist/esm/ic-checkbox-group.entry.js +21 -6
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -1
- package/dist/esm/ic-checkbox.entry.js +10 -4
- package/dist/esm/ic-checkbox.entry.js.map +1 -1
- package/dist/esm/ic-chip.entry.js +28 -16
- package/dist/esm/ic-chip.entry.js.map +1 -1
- package/dist/esm/ic-classification-banner.entry.js +1 -1
- package/dist/esm/ic-classification-banner.entry.js.map +1 -1
- package/dist/esm/ic-data-row.entry.js +1 -1
- package/dist/esm/ic-dialog.entry.js +32 -9
- package/dist/esm/ic-dialog.entry.js.map +1 -1
- package/dist/esm/ic-divider.entry.js +74 -10
- package/dist/esm/ic-divider.entry.js.map +1 -1
- package/dist/esm/ic-empty-state.entry.js +8 -16
- package/dist/esm/ic-empty-state.entry.js.map +1 -1
- package/dist/esm/ic-footer-link-group.entry.js +6 -7
- package/dist/esm/ic-footer-link-group.entry.js.map +1 -1
- package/dist/esm/ic-footer-link.entry.js +8 -7
- package/dist/esm/ic-footer-link.entry.js.map +1 -1
- package/dist/esm/ic-footer.entry.js +24 -14
- package/dist/esm/ic-footer.entry.js.map +1 -1
- package/dist/esm/ic-hero.entry.js +8 -16
- package/dist/esm/ic-hero.entry.js.map +1 -1
- package/dist/esm/ic-horizontal-scroll.entry.js +17 -9
- package/dist/esm/ic-horizontal-scroll.entry.js.map +1 -1
- package/dist/esm/ic-input-component-container_3.entry.js +487 -201
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -1
- package/dist/esm/ic-input-label_2.entry.js +24 -26
- package/dist/esm/ic-input-label_2.entry.js.map +1 -1
- package/dist/esm/ic-link.entry.js +10 -12
- package/dist/esm/ic-link.entry.js.map +1 -1
- package/dist/esm/ic-menu-group.entry.js +3 -3
- package/dist/esm/ic-menu-group.entry.js.map +1 -1
- package/dist/esm/ic-menu-item.entry.js +25 -18
- package/dist/esm/ic-menu-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-button.entry.js +11 -8
- package/dist/esm/ic-navigation-button.entry.js.map +1 -1
- package/dist/esm/ic-navigation-group.entry.js +10 -8
- package/dist/esm/ic-navigation-group.entry.js.map +1 -1
- package/dist/esm/ic-navigation-item.entry.js +61 -9
- package/dist/esm/ic-navigation-item.entry.js.map +1 -1
- package/dist/esm/ic-navigation-menu.entry.js +5 -4
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -1
- package/dist/esm/ic-page-header.entry.js +8 -6
- package/dist/esm/ic-page-header.entry.js.map +1 -1
- package/dist/esm/ic-pagination-item.entry.js +12 -11
- package/dist/esm/ic-pagination-item.entry.js.map +1 -1
- package/dist/esm/ic-pagination.entry.js +23 -15
- package/dist/esm/ic-pagination.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +47 -25
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-radio-group.entry.js +60 -29
- package/dist/esm/ic-radio-group.entry.js.map +1 -1
- package/dist/esm/ic-radio-option.entry.js +42 -22
- package/dist/esm/ic-radio-option.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +54 -56
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-select.entry.js +192 -66
- package/dist/esm/ic-select.entry.js.map +1 -1
- package/dist/esm/ic-side-navigation.entry.js +16 -11
- package/dist/esm/ic-side-navigation.entry.js.map +1 -1
- package/dist/esm/ic-skeleton.entry.js +4 -4
- package/dist/esm/ic-skeleton.entry.js.map +1 -1
- package/dist/esm/ic-status-tag.entry.js +5 -4
- package/dist/esm/ic-status-tag.entry.js.map +1 -1
- package/dist/esm/ic-step.entry.js +4 -5
- package/dist/esm/ic-step.entry.js.map +1 -1
- package/dist/esm/ic-stepper.entry.js +12 -2
- package/dist/esm/ic-stepper.entry.js.map +1 -1
- package/dist/esm/ic-switch.entry.js +21 -16
- package/dist/esm/ic-switch.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +60 -123
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-group.entry.js +3 -19
- 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 +10 -8
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-text-field.entry.js +43 -23
- package/dist/esm/ic-text-field.entry.js.map +1 -1
- package/dist/esm/ic-theme.entry.js +20 -20
- package/dist/esm/ic-theme.entry.js.map +1 -1
- package/dist/esm/ic-toast.entry.js +4 -4
- package/dist/esm/ic-toast.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button-group.entry.js +62 -12
- package/dist/esm/ic-toggle-button-group.entry.js.map +1 -1
- package/dist/esm/ic-toggle-button.entry.js +64 -9
- package/dist/esm/ic-toggle-button.entry.js.map +1 -1
- package/dist/esm/ic-top-navigation.entry.js +13 -7
- package/dist/esm/ic-top-navigation.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +5 -3
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/index-d1d2c456.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-accordion/ic-accordion.d.ts +7 -5
- package/dist/types/components/ic-accordion-group/ic-accordion-group.d.ts +4 -4
- package/dist/types/components/ic-alert/ic-alert.d.ts +9 -6
- package/dist/types/components/ic-back-to-top/ic-back-to-top.d.ts +5 -0
- package/dist/types/components/ic-badge/ic-badge.d.ts +5 -0
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +9 -0
- package/dist/types/components/ic-breadcrumb-group/ic-breadcrumb-group.d.ts +1 -0
- package/dist/types/components/ic-button/ic-button.d.ts +11 -7
- package/dist/types/components/ic-button/ic-button.types.d.ts +0 -1
- package/dist/types/components/ic-card-vertical/ic-card-vertical.d.ts +9 -5
- package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +7 -2
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +8 -1
- package/dist/types/components/ic-chip/ic-chip.d.ts +13 -2
- package/dist/types/components/ic-dialog/ic-dialog.d.ts +8 -2
- package/dist/types/components/ic-divider/ic-divider.d.ts +33 -3
- package/dist/types/components/ic-divider/ic-divider.types.d.ts +3 -0
- package/dist/types/components/ic-empty-state/ic-empty-state.d.ts +5 -2
- package/dist/types/components/ic-footer/ic-footer.d.ts +4 -3
- package/dist/types/components/ic-footer-link/ic-footer-link.d.ts +3 -3
- package/dist/types/components/ic-footer-link-group/ic-footer-link-group.d.ts +3 -2
- package/dist/types/components/ic-hero/ic-hero.d.ts +3 -4
- package/dist/types/components/ic-horizontal-scroll/ic-horizontal-scroll.d.ts +8 -2
- package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +2 -5
- package/dist/types/components/ic-input-label/ic-input-label.d.ts +8 -4
- package/dist/types/components/ic-link/ic-link.d.ts +2 -2
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +9 -5
- package/dist/types/components/ic-menu/ic-menu.d.ts +49 -16
- package/dist/types/components/ic-menu-item/ic-menu-item.d.ts +12 -5
- package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +7 -3
- package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +7 -3
- package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +14 -3
- package/dist/types/components/ic-navigation-menu/ic-navigation-menu.d.ts +5 -0
- package/dist/types/components/ic-page-header/ic-page-header.d.ts +5 -1
- package/dist/types/components/ic-pagination/ic-pagination.d.ts +10 -5
- package/dist/types/components/ic-pagination-item/ic-pagination-item.d.ts +10 -5
- package/dist/types/components/ic-popover-menu/ic-popover-menu.d.ts +9 -7
- package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +6 -1
- package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +10 -3
- package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +15 -3
- package/dist/types/components/ic-select/ic-select.d.ts +36 -16
- package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +3 -3
- package/dist/types/components/ic-side-navigation/ic-side-navigation.types.d.ts +2 -2
- package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +3 -2
- package/dist/types/components/ic-status-tag/ic-status-tag.d.ts +4 -0
- package/dist/types/components/ic-step/ic-step.d.ts +5 -0
- package/dist/types/components/ic-stepper/ic-stepper.d.ts +6 -4
- package/dist/types/components/ic-switch/ic-switch.d.ts +7 -6
- package/dist/types/components/ic-tab/ic-tab.d.ts +1 -0
- package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +8 -6
- package/dist/types/components/ic-tab-group/ic-tab-group.d.ts +0 -4
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +10 -2
- package/dist/types/components/ic-theme/ic-theme.d.ts +8 -8
- package/dist/types/components/ic-toggle-button/ic-toggle-button.d.ts +16 -7
- package/dist/types/components/ic-toggle-button-group/ic-toggle-button-group.d.ts +21 -5
- package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +1 -1
- package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +7 -3
- package/dist/types/components.d.ts +516 -159
- package/dist/types/testspec.setup.d.ts +9 -0
- package/dist/types/utils/helpers.d.ts +22 -8
- package/dist/types/utils/types.d.ts +8 -6
- package/hydrate/index.js +1998 -1053
- package/package.json +20 -19
- package/vscode-data.json +655 -166
- package/dist/cjs/helpers-f1cf5156.js.map +0 -1
- package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.e2e.js +0 -339
- package/dist/collection/components/ic-radio-group/test/basic/ic-radio-group.e2e.js.map +0 -1
- package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js +0 -1106
- package/dist/collection/components/ic-search-bar/test/basic/ic-search-bar.e2e.js.map +0 -1
- package/dist/collection/components/ic-stepper/test/basic/ic-stepper.e2e.js +0 -49
- package/dist/collection/components/ic-stepper/test/basic/ic-stepper.e2e.js.map +0 -1
- package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.e2e.js +0 -109
- package/dist/collection/components/ic-tooltip/test/basic/ic-tooltip.e2e.js.map +0 -1
- package/dist/collection/components/ic-typography/test/basic/ic-typography.e2e.js +0 -39
- package/dist/collection/components/ic-typography/test/basic/ic-typography.e2e.js.map +0 -1
- package/dist/components/ic-text-field2.js +0 -353
- package/dist/components/ic-text-field2.js.map +0 -1
- package/dist/core/p-09104e40.entry.js +0 -2
- package/dist/core/p-09104e40.entry.js.map +0 -1
- package/dist/core/p-0c0b1c74.entry.js +0 -2
- package/dist/core/p-0c0b1c74.entry.js.map +0 -1
- package/dist/core/p-0c3a0d85.entry.js +0 -2
- package/dist/core/p-0c3a0d85.entry.js.map +0 -1
- package/dist/core/p-1083a708.entry.js +0 -2
- package/dist/core/p-1083a708.entry.js.map +0 -1
- package/dist/core/p-130dd440.entry.js +0 -2
- package/dist/core/p-130dd440.entry.js.map +0 -1
- package/dist/core/p-1e802eeb.entry.js.map +0 -1
- package/dist/core/p-21312898.entry.js +0 -2
- package/dist/core/p-21312898.entry.js.map +0 -1
- package/dist/core/p-21e5dd29.entry.js +0 -2
- package/dist/core/p-21e5dd29.entry.js.map +0 -1
- package/dist/core/p-2ab86057.entry.js +0 -2
- package/dist/core/p-2ab86057.entry.js.map +0 -1
- package/dist/core/p-312cacae.js +0 -2
- package/dist/core/p-312cacae.js.map +0 -1
- package/dist/core/p-31fc8756.entry.js +0 -2
- package/dist/core/p-31fc8756.entry.js.map +0 -1
- package/dist/core/p-355acffa.entry.js +0 -2
- package/dist/core/p-355acffa.entry.js.map +0 -1
- package/dist/core/p-35b8b480.entry.js +0 -2
- package/dist/core/p-35b8b480.entry.js.map +0 -1
- package/dist/core/p-363d6e88.entry.js +0 -2
- package/dist/core/p-363d6e88.entry.js.map +0 -1
- package/dist/core/p-40e9e76a.entry.js +0 -2
- package/dist/core/p-40e9e76a.entry.js.map +0 -1
- package/dist/core/p-43f9a711.entry.js +0 -2
- package/dist/core/p-43f9a711.entry.js.map +0 -1
- package/dist/core/p-46ee459b.entry.js.map +0 -1
- package/dist/core/p-54238d16.entry.js.map +0 -1
- package/dist/core/p-550d7356.entry.js +0 -2
- package/dist/core/p-550d7356.entry.js.map +0 -1
- package/dist/core/p-56d1828c.entry.js +0 -2
- package/dist/core/p-56d1828c.entry.js.map +0 -1
- package/dist/core/p-5a2630fb.entry.js +0 -2
- package/dist/core/p-5a2630fb.entry.js.map +0 -1
- package/dist/core/p-5a52614c.entry.js +0 -2
- package/dist/core/p-5a52614c.entry.js.map +0 -1
- package/dist/core/p-60efd7fa.entry.js +0 -2
- package/dist/core/p-60efd7fa.entry.js.map +0 -1
- package/dist/core/p-69f3ce5a.entry.js +0 -2
- package/dist/core/p-69f3ce5a.entry.js.map +0 -1
- package/dist/core/p-78ce4920.entry.js +0 -2
- package/dist/core/p-78ce4920.entry.js.map +0 -1
- package/dist/core/p-79d2a33b.entry.js +0 -2
- package/dist/core/p-79d2a33b.entry.js.map +0 -1
- package/dist/core/p-80237a20.entry.js +0 -2
- package/dist/core/p-80237a20.entry.js.map +0 -1
- package/dist/core/p-804513ad.entry.js +0 -2
- package/dist/core/p-804513ad.entry.js.map +0 -1
- package/dist/core/p-82375dca.entry.js +0 -2
- package/dist/core/p-82375dca.entry.js.map +0 -1
- package/dist/core/p-8e1e25a7.entry.js +0 -2
- package/dist/core/p-8e1e25a7.entry.js.map +0 -1
- package/dist/core/p-a1a1000d.entry.js +0 -2
- package/dist/core/p-a1a1000d.entry.js.map +0 -1
- package/dist/core/p-a1b1a0ab.entry.js +0 -2
- package/dist/core/p-a1b1a0ab.entry.js.map +0 -1
- package/dist/core/p-a37bcdbe.entry.js +0 -2
- package/dist/core/p-a37bcdbe.entry.js.map +0 -1
- package/dist/core/p-a3b6a02d.entry.js.map +0 -1
- package/dist/core/p-a765ad17.entry.js +0 -2
- package/dist/core/p-a765ad17.entry.js.map +0 -1
- package/dist/core/p-aa2be24c.entry.js +0 -2
- package/dist/core/p-aa2be24c.entry.js.map +0 -1
- package/dist/core/p-b12a5283.entry.js +0 -2
- package/dist/core/p-b12a5283.entry.js.map +0 -1
- package/dist/core/p-b1b05979.entry.js +0 -2
- package/dist/core/p-b1b05979.entry.js.map +0 -1
- package/dist/core/p-c6795377.entry.js +0 -2
- package/dist/core/p-c6795377.entry.js.map +0 -1
- package/dist/core/p-c81109da.entry.js.map +0 -1
- package/dist/core/p-cb4d104e.entry.js +0 -2
- package/dist/core/p-cb4d104e.entry.js.map +0 -1
- package/dist/core/p-d2f89cb5.entry.js +0 -2
- package/dist/core/p-d2f89cb5.entry.js.map +0 -1
- package/dist/core/p-d43d1ec0.entry.js +0 -2
- package/dist/core/p-d43d1ec0.entry.js.map +0 -1
- package/dist/core/p-d5829a35.entry.js +0 -2
- package/dist/core/p-d5829a35.entry.js.map +0 -1
- package/dist/core/p-ddb8d280.entry.js +0 -2
- package/dist/core/p-ddb8d280.entry.js.map +0 -1
- package/dist/core/p-e0e34fa7.entry.js +0 -2
- package/dist/core/p-e0e34fa7.entry.js.map +0 -1
- package/dist/core/p-e4b276b5.entry.js +0 -2
- package/dist/core/p-e4b276b5.entry.js.map +0 -1
- package/dist/core/p-e597da0e.entry.js.map +0 -1
- package/dist/core/p-e861a2b3.entry.js.map +0 -1
- package/dist/core/p-ea277b05.entry.js +0 -2
- package/dist/core/p-ea277b05.entry.js.map +0 -1
- package/dist/core/p-ef871b8f.entry.js +0 -2
- package/dist/core/p-ef871b8f.entry.js.map +0 -1
- package/dist/core/p-f229d19e.entry.js +0 -2
- package/dist/core/p-f229d19e.entry.js.map +0 -1
- package/dist/core/p-f30f3a3e.entry.js +0 -2
- package/dist/core/p-f30f3a3e.entry.js.map +0 -1
- package/dist/core/p-fa587e6d.entry.js +0 -2
- package/dist/core/p-fa587e6d.entry.js.map +0 -1
- package/dist/core/p-fb6ac08d.entry.js +0 -2
- package/dist/core/p-fb6ac08d.entry.js.map +0 -1
- package/dist/esm/helpers-1c9151ef.js.map +0 -1
- /package/dist/core/{p-d8870804.entry.js.map → p-e2cf6e7e.entry.js.map} +0 -0
@@ -0,0 +1,493 @@
|
|
1
|
+
import { html } from "lit-html";
|
2
|
+
|
3
|
+
const defaultArgs = {
|
4
|
+
heading: "Details",
|
5
|
+
size: "medium",
|
6
|
+
label: "Name",
|
7
|
+
rowSize: "default",
|
8
|
+
value: "Michael Johnson",
|
9
|
+
endCompSlot: "end-component",
|
10
|
+
theme: "inherit",
|
11
|
+
rowTheme: "inherit",
|
12
|
+
};
|
13
|
+
|
14
|
+
export default {
|
15
|
+
title: "Web Components/Data list",
|
16
|
+
component: "ic-data-list",
|
17
|
+
};
|
18
|
+
|
19
|
+
export const Default = {
|
20
|
+
render: () =>
|
21
|
+
html`<ic-data-list heading="Personal details">
|
22
|
+
<ic-data-row label="Name" value="Michael Johnson"></ic-data-row>
|
23
|
+
<ic-data-row label="Date of birth" value="16 October 1995"></ic-data-row>
|
24
|
+
<ic-data-row label="Telephone" value="07449 7654873"></ic-data-row>
|
25
|
+
<ic-data-row label="Email" value="mjohnson@coffee.gov"></ic-data-row>
|
26
|
+
<ic-data-row label="Address">
|
27
|
+
<ic-typography variant="body" slot="value">
|
28
|
+
383 Coffee Drive
|
29
|
+
<br />
|
30
|
+
London
|
31
|
+
<br />
|
32
|
+
SW7 988
|
33
|
+
<br />
|
34
|
+
United Kingdom
|
35
|
+
</ic-typography>
|
36
|
+
</ic-data-row>
|
37
|
+
</ic-data-list>`,
|
38
|
+
|
39
|
+
name: "Default",
|
40
|
+
};
|
41
|
+
|
42
|
+
export const SlottedHeadingAndLabel = {
|
43
|
+
render: () =>
|
44
|
+
html`<ic-data-list>
|
45
|
+
<ic-typography variant="h3" slot="heading"
|
46
|
+
>Personal details</ic-typography
|
47
|
+
>
|
48
|
+
<ic-data-row value="Michael Johnson">
|
49
|
+
<ic-typography variant="subtitle-large" slot="label"
|
50
|
+
>Name</ic-typography
|
51
|
+
>
|
52
|
+
</ic-data-row>
|
53
|
+
<ic-data-row value="16 October 1995">
|
54
|
+
<ic-typography variant="subtitle-large" slot="label"
|
55
|
+
>Date of birth</ic-typography
|
56
|
+
>
|
57
|
+
</ic-data-row>
|
58
|
+
</ic-data-list>`,
|
59
|
+
|
60
|
+
name: "Slotted heading and label",
|
61
|
+
};
|
62
|
+
|
63
|
+
export const LongTextValues = {
|
64
|
+
render: () =>
|
65
|
+
html`<ic-data-list
|
66
|
+
heading="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua"
|
67
|
+
>
|
68
|
+
<ic-data-row
|
69
|
+
label="Lorem ipsum dolor sit amet, consectetur adipiscing elit"
|
70
|
+
value="Michael Johnson"
|
71
|
+
></ic-data-row>
|
72
|
+
<ic-data-row label="Date of birth" value="16 October 1995"></ic-data-row>
|
73
|
+
<ic-data-row label="Telephone" value="07449 7654873"></ic-data-row>
|
74
|
+
<ic-data-row label="Email" value="mjohnson@coffee.gov"></ic-data-row>
|
75
|
+
<ic-data-row
|
76
|
+
label="Address"
|
77
|
+
value="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat"
|
78
|
+
></ic-data-row>
|
79
|
+
<ic-data-row label="Second address">
|
80
|
+
<ic-typography variant="body" slot="value">
|
81
|
+
383 Coffee Drive
|
82
|
+
<br />
|
83
|
+
London
|
84
|
+
<br />
|
85
|
+
SW7 988
|
86
|
+
<br />
|
87
|
+
United Kingdom
|
88
|
+
</ic-typography>
|
89
|
+
</ic-data-row>
|
90
|
+
</ic-data-list>`,
|
91
|
+
|
92
|
+
name: "Long text values",
|
93
|
+
};
|
94
|
+
|
95
|
+
export const Small = {
|
96
|
+
render: () =>
|
97
|
+
html`<ic-data-list heading="Personal details" size="small">
|
98
|
+
<ic-data-row label="Name" value="Michael Johnson"></ic-data-row>
|
99
|
+
<ic-data-row label="Date of birth" value="16 October 1995"></ic-data-row>
|
100
|
+
<ic-data-row label="Telephone" value="07449 7654873"></ic-data-row>
|
101
|
+
<ic-data-row label="Email" value="mjohnson@coffee.gov"></ic-data-row>
|
102
|
+
<ic-data-row label="Address">
|
103
|
+
<ic-typography variant="body" slot="value">
|
104
|
+
383 Coffee Drive
|
105
|
+
<br />
|
106
|
+
London
|
107
|
+
<br />
|
108
|
+
SW7 988
|
109
|
+
<br />
|
110
|
+
United Kingdom
|
111
|
+
</ic-typography>
|
112
|
+
</ic-data-row>
|
113
|
+
</ic-data-list>`,
|
114
|
+
|
115
|
+
name: "Small",
|
116
|
+
};
|
117
|
+
|
118
|
+
export const WithLink = {
|
119
|
+
render: () =>
|
120
|
+
html`<ic-data-list heading="Personal details">
|
121
|
+
<ic-data-row label="Name" value="Michael Johnson">
|
122
|
+
<ic-link href="#" slot="end-component"> Edit </ic-link>
|
123
|
+
</ic-data-row>
|
124
|
+
<ic-data-row label="Date of birth" value="16 October 1995">
|
125
|
+
<ic-link href="#" slot="end-component"> Edit </ic-link>
|
126
|
+
</ic-data-row>
|
127
|
+
<ic-data-row label="Telephone" value="07449 7654873">
|
128
|
+
<ic-link href="#" slot="end-component"> Edit </ic-link>
|
129
|
+
</ic-data-row>
|
130
|
+
<ic-data-row label="Email" value="mjohnson@coffee.gov">
|
131
|
+
<ic-link href="#" slot="end-component"> Edit </ic-link>
|
132
|
+
</ic-data-row>
|
133
|
+
<ic-data-row label="Address">
|
134
|
+
<ic-typography variant="body" slot="value">
|
135
|
+
383 Coffee Drive
|
136
|
+
<br />
|
137
|
+
London
|
138
|
+
<br />
|
139
|
+
SW7 988
|
140
|
+
<br />
|
141
|
+
United Kingdom
|
142
|
+
</ic-typography>
|
143
|
+
<ic-link href="#" slot="end-component"> Edit </ic-link>
|
144
|
+
</ic-data-row>
|
145
|
+
</ic-data-list>`,
|
146
|
+
|
147
|
+
name: "Link",
|
148
|
+
};
|
149
|
+
|
150
|
+
export const IconButton = {
|
151
|
+
render: () =>
|
152
|
+
html`<ic-data-list heading="Personal details">
|
153
|
+
<ic-data-row label="Name" value="Michael Johnson">
|
154
|
+
<ic-button variant="icon" aria-label="Edit" slot="end-component">
|
155
|
+
<svg
|
156
|
+
xmlns="http://www.w3.org/2000/svg"
|
157
|
+
width="24"
|
158
|
+
height="24"
|
159
|
+
viewBox="0 0 24 24"
|
160
|
+
>
|
161
|
+
<path
|
162
|
+
d="M7.127 22.562l-7.127 1.438 1.438-7.128 5.689 5.69zm1.414-1.414l11.228-11.225-5.69-5.692-11.227 11.227 5.689 5.69zm9.768-21.148l-2.816 2.817 5.691 5.691 2.816-2.819-5.691-5.689z"
|
163
|
+
/>
|
164
|
+
</svg>
|
165
|
+
</ic-button>
|
166
|
+
</ic-data-row>
|
167
|
+
<ic-data-row label="Date of birth" value="16 October 1995">
|
168
|
+
<ic-button variant="icon" aria-label="Edit" slot="end-component">
|
169
|
+
<svg
|
170
|
+
xmlns="http://www.w3.org/2000/svg"
|
171
|
+
width="24"
|
172
|
+
height="24"
|
173
|
+
viewBox="0 0 24 24"
|
174
|
+
>
|
175
|
+
<path
|
176
|
+
d="M7.127 22.562l-7.127 1.438 1.438-7.128 5.689 5.69zm1.414-1.414l11.228-11.225-5.69-5.692-11.227 11.227 5.689 5.69zm9.768-21.148l-2.816 2.817 5.691 5.691 2.816-2.819-5.691-5.689z"
|
177
|
+
/>
|
178
|
+
</svg>
|
179
|
+
</ic-button>
|
180
|
+
</ic-data-row>
|
181
|
+
<ic-data-row label="Telephone" value="07449 7654873">
|
182
|
+
<ic-button variant="icon" aria-label="Edit" slot="end-component">
|
183
|
+
<svg
|
184
|
+
xmlns="http://www.w3.org/2000/svg"
|
185
|
+
width="24"
|
186
|
+
height="24"
|
187
|
+
viewBox="0 0 24 24"
|
188
|
+
>
|
189
|
+
<path
|
190
|
+
d="M7.127 22.562l-7.127 1.438 1.438-7.128 5.689 5.69zm1.414-1.414l11.228-11.225-5.69-5.692-11.227 11.227 5.689 5.69zm9.768-21.148l-2.816 2.817 5.691 5.691 2.816-2.819-5.691-5.689z"
|
191
|
+
/>
|
192
|
+
</svg>
|
193
|
+
</ic-button>
|
194
|
+
</ic-data-row>
|
195
|
+
<ic-data-row label="Email" value="mjohnson@coffee.gov">
|
196
|
+
<ic-button variant="icon" aria-label="Edit" slot="end-component">
|
197
|
+
<svg
|
198
|
+
xmlns="http://www.w3.org/2000/svg"
|
199
|
+
width="24"
|
200
|
+
height="24"
|
201
|
+
viewBox="0 0 24 24"
|
202
|
+
>
|
203
|
+
<path
|
204
|
+
d="M7.127 22.562l-7.127 1.438 1.438-7.128 5.689 5.69zm1.414-1.414l11.228-11.225-5.69-5.692-11.227 11.227 5.689 5.69zm9.768-21.148l-2.816 2.817 5.691 5.691 2.816-2.819-5.691-5.689z"
|
205
|
+
/>
|
206
|
+
</svg>
|
207
|
+
</ic-button>
|
208
|
+
</ic-data-row>
|
209
|
+
<ic-data-row label="Address">
|
210
|
+
<ic-typography variant="body" slot="value">
|
211
|
+
383 Coffee Drive
|
212
|
+
<br />
|
213
|
+
London
|
214
|
+
<br />
|
215
|
+
SW7 988
|
216
|
+
<br />
|
217
|
+
United Kingdom
|
218
|
+
</ic-typography>
|
219
|
+
<ic-button variant="icon" aria-label="Edit" slot="end-component">
|
220
|
+
<svg
|
221
|
+
xmlns="http://www.w3.org/2000/svg"
|
222
|
+
width="24"
|
223
|
+
height="24"
|
224
|
+
viewBox="0 0 24 24"
|
225
|
+
>
|
226
|
+
<path
|
227
|
+
d="M7.127 22.562l-7.127 1.438 1.438-7.128 5.689 5.69zm1.414-1.414l11.228-11.225-5.69-5.692-11.227 11.227 5.689 5.69zm9.768-21.148l-2.816 2.817 5.691 5.691 2.816-2.819-5.691-5.689z"
|
228
|
+
/>
|
229
|
+
</svg>
|
230
|
+
</ic-button>
|
231
|
+
</ic-data-row>
|
232
|
+
</ic-data-list>`,
|
233
|
+
|
234
|
+
name: "Icon button",
|
235
|
+
};
|
236
|
+
|
237
|
+
export const Adornment = {
|
238
|
+
render: () =>
|
239
|
+
html`<ic-data-list heading="Personal details">
|
240
|
+
<ic-data-row label="Name" value="Michael Johnson">
|
241
|
+
<ic-status-tag
|
242
|
+
status="success"
|
243
|
+
label="confirmed"
|
244
|
+
variant="filled"
|
245
|
+
slot="end-component"
|
246
|
+
>
|
247
|
+
</ic-status-tag>
|
248
|
+
</ic-data-row>
|
249
|
+
<ic-data-row label="Date of birth" value="16 October 1995">
|
250
|
+
<ic-status-tag
|
251
|
+
status="warning"
|
252
|
+
label="in review"
|
253
|
+
variant="filled"
|
254
|
+
slot="end-component"
|
255
|
+
/>
|
256
|
+
</ic-data-row>
|
257
|
+
<ic-data-row label="Telephone" value="07449 7654873">
|
258
|
+
<ic-status-tag
|
259
|
+
status="warning"
|
260
|
+
label="in review"
|
261
|
+
variant="filled"
|
262
|
+
slot="end-component"
|
263
|
+
/>
|
264
|
+
</ic-data-row>
|
265
|
+
<ic-data-row label="Email" value="mjohnson@coffee.gov">
|
266
|
+
<ic-status-tag
|
267
|
+
status="success"
|
268
|
+
label="confirmed"
|
269
|
+
variant="filled"
|
270
|
+
slot="end-component"
|
271
|
+
/>
|
272
|
+
</ic-data-row>
|
273
|
+
<ic-data-row label="Address">
|
274
|
+
<ic-typography variant="body" slot="value">
|
275
|
+
383 Coffee Drive
|
276
|
+
<br />
|
277
|
+
London
|
278
|
+
<br />
|
279
|
+
SW7 988
|
280
|
+
<br />
|
281
|
+
United Kingdom
|
282
|
+
</ic-typography>
|
283
|
+
<ic-status-tag
|
284
|
+
label="not confirmed"
|
285
|
+
variant="filled"
|
286
|
+
slot="end-component"
|
287
|
+
/>
|
288
|
+
</ic-data-row>
|
289
|
+
</ic-data-list>`,
|
290
|
+
|
291
|
+
name: "Adornment",
|
292
|
+
};
|
293
|
+
|
294
|
+
export const WithStatusTag = {
|
295
|
+
render: () =>
|
296
|
+
html` <ic-data-list heading="Personal details">
|
297
|
+
<ic-data-row label="Name"
|
298
|
+
><ic-status-tag
|
299
|
+
status="success"
|
300
|
+
label="approved"
|
301
|
+
variant="filled"
|
302
|
+
slot="value"
|
303
|
+
/></ic-data-row>
|
304
|
+
<ic-data-row label="Date of birth"
|
305
|
+
><ic-status-tag
|
306
|
+
status="success"
|
307
|
+
label="approved"
|
308
|
+
variant="filled"
|
309
|
+
slot="value"
|
310
|
+
/></ic-data-row>
|
311
|
+
<ic-data-row label="Telephone"
|
312
|
+
><ic-status-tag
|
313
|
+
status="success"
|
314
|
+
label="approved"
|
315
|
+
variant="filled"
|
316
|
+
slot="value"
|
317
|
+
/></ic-data-row>
|
318
|
+
<ic-data-row label="Address"
|
319
|
+
><ic-status-tag
|
320
|
+
status="success"
|
321
|
+
label="approved"
|
322
|
+
variant="filled"
|
323
|
+
slot="value"
|
324
|
+
/></ic-data-row>
|
325
|
+
<ic-data-row label="Email"
|
326
|
+
><ic-status-tag
|
327
|
+
status="success"
|
328
|
+
label="approved"
|
329
|
+
variant="filled"
|
330
|
+
slot="value"
|
331
|
+
/></ic-data-row>
|
332
|
+
</ic-data-list>`,
|
333
|
+
|
334
|
+
name: "Status tag",
|
335
|
+
};
|
336
|
+
|
337
|
+
export const EditableExample = {
|
338
|
+
render: () =>
|
339
|
+
html`<ic-data-list heading="Personal details">
|
340
|
+
<ic-data-row label="Name">
|
341
|
+
<ic-text-field
|
342
|
+
slot="value"
|
343
|
+
label="Name"
|
344
|
+
value="Michael Johnson"
|
345
|
+
readonly
|
346
|
+
hide-label
|
347
|
+
full-width
|
348
|
+
/>
|
349
|
+
</ic-data-row>
|
350
|
+
<ic-data-row label="Date of birth">
|
351
|
+
<ic-text-field
|
352
|
+
slot="value"
|
353
|
+
label="Date of birth"
|
354
|
+
value="16 October 1995"
|
355
|
+
readonly
|
356
|
+
hide-label
|
357
|
+
full-width
|
358
|
+
/>
|
359
|
+
</ic-data-row>
|
360
|
+
<ic-data-row label="Telephone">
|
361
|
+
<ic-text-field
|
362
|
+
slot="value"
|
363
|
+
label="Telephone"
|
364
|
+
value="07449 7654873"
|
365
|
+
readonly
|
366
|
+
hide-label
|
367
|
+
full-width
|
368
|
+
/>
|
369
|
+
</ic-data-row>
|
370
|
+
<ic-data-row label="Email">
|
371
|
+
<ic-text-field
|
372
|
+
slot="value"
|
373
|
+
label="Email"
|
374
|
+
value="mjohnson@coffee.gov"
|
375
|
+
readonly
|
376
|
+
hide-label
|
377
|
+
full-width
|
378
|
+
/>
|
379
|
+
</ic-data-row>
|
380
|
+
<ic-data-row label="Address">
|
381
|
+
<ic-text-field
|
382
|
+
slot="value"
|
383
|
+
label="Address"
|
384
|
+
value="383 Coffee Drive, London, SW7 988, United Kingdom"
|
385
|
+
readonly
|
386
|
+
hide-label
|
387
|
+
full-width
|
388
|
+
/>
|
389
|
+
</ic-data-row>
|
390
|
+
</ic-data-list>
|
391
|
+
<ic-button
|
392
|
+
onclick="
|
393
|
+
var textFields = document.querySelectorAll('ic-text-field');
|
394
|
+
for (var i=0; i < textFields.length; i++) {
|
395
|
+
textFields[i].setAttribute('readonly', '');
|
396
|
+
}"
|
397
|
+
style="margin-right: var(--ic-space-md);margin-top: var(--ic-space-lg);"
|
398
|
+
>
|
399
|
+
Confirm
|
400
|
+
</ic-button>
|
401
|
+
<ic-button
|
402
|
+
onclick="
|
403
|
+
var textFields = document.querySelectorAll('ic-text-field');
|
404
|
+
for (var i=0; i < textFields.length; i++) {
|
405
|
+
textFields[i].removeAttribute('readonly');
|
406
|
+
}"
|
407
|
+
variant="secondary"
|
408
|
+
style="margin-top: var(--ic-space-lg);"
|
409
|
+
>
|
410
|
+
Edit
|
411
|
+
</ic-button>`,
|
412
|
+
|
413
|
+
name: "Editable example",
|
414
|
+
};
|
415
|
+
|
416
|
+
const inlineRadioSelector = "inline-radio";
|
417
|
+
|
418
|
+
export const Playground = {
|
419
|
+
render: (args) =>
|
420
|
+
html`<ic-data-list
|
421
|
+
heading=${args.heading}
|
422
|
+
size=${args.size}
|
423
|
+
theme=${args.theme}
|
424
|
+
>
|
425
|
+
<ic-data-row
|
426
|
+
label=${args.label}
|
427
|
+
value=${args.value}
|
428
|
+
size=${args.rowSize}
|
429
|
+
theme=${args.rowTheme}
|
430
|
+
>
|
431
|
+
<ic-button variant="icon" aria-label="Edit" slot=${args.endCompSlot}>
|
432
|
+
<svg
|
433
|
+
xmlns="http://www.w3.org/2000/svg"
|
434
|
+
width="24"
|
435
|
+
height="24"
|
436
|
+
viewBox="0 0 24 24"
|
437
|
+
>
|
438
|
+
<path
|
439
|
+
d="M7.127 22.562l-7.127 1.438 1.438-7.128 5.689 5.69zm1.414-1.414l11.228-11.225-5.69-5.692-11.227 11.227 5.689 5.69zm9.768-21.148l-2.816 2.817 5.691 5.691 2.816-2.819-5.691-5.689z"
|
440
|
+
/>
|
441
|
+
</svg>
|
442
|
+
</ic-button>
|
443
|
+
</ic-data-row>
|
444
|
+
<ic-data-row label="Date of birth" value="16 October 1995"></ic-data-row>
|
445
|
+
<ic-data-row label="Telephone" value="07449 7654873"></ic-data-row>
|
446
|
+
</ic-data-list>`,
|
447
|
+
|
448
|
+
args: defaultArgs,
|
449
|
+
|
450
|
+
argTypes: {
|
451
|
+
size: {
|
452
|
+
options: ["medium", "small"],
|
453
|
+
|
454
|
+
control: {
|
455
|
+
type: inlineRadioSelector,
|
456
|
+
},
|
457
|
+
},
|
458
|
+
|
459
|
+
rowSize: {
|
460
|
+
options: ["medium", "small"],
|
461
|
+
|
462
|
+
control: {
|
463
|
+
type: inlineRadioSelector,
|
464
|
+
},
|
465
|
+
},
|
466
|
+
|
467
|
+
endCompSlot: {
|
468
|
+
options: ["end-component", ""],
|
469
|
+
|
470
|
+
control: {
|
471
|
+
type: "select",
|
472
|
+
},
|
473
|
+
},
|
474
|
+
|
475
|
+
theme: {
|
476
|
+
options: ["inherit", "light", "dark"],
|
477
|
+
|
478
|
+
control: {
|
479
|
+
type: inlineRadioSelector,
|
480
|
+
},
|
481
|
+
},
|
482
|
+
|
483
|
+
rowTheme: {
|
484
|
+
options: ["inherit", "light", "dark"],
|
485
|
+
|
486
|
+
control: {
|
487
|
+
type: inlineRadioSelector,
|
488
|
+
},
|
489
|
+
},
|
490
|
+
},
|
491
|
+
|
492
|
+
name: "Playground",
|
493
|
+
};
|
@@ -497,9 +497,10 @@ video {
|
|
497
497
|
}
|
498
498
|
|
499
499
|
.dialog {
|
500
|
-
background-color: var(--ic-
|
501
|
-
color: var(--ic-
|
502
|
-
|
500
|
+
background-color: var(--ic-dialog-background);
|
501
|
+
color: var(--ic-dialog-text-primary);
|
502
|
+
--ic-typography-color: var(--ic-dialog-text-primary);
|
503
|
+
border: var(--ic-space-1px) solid var(--ic-dialog-border);
|
503
504
|
border-radius: var(--ic-border-radius);
|
504
505
|
padding: var(--ic-space-xs) 0 var(--ic-space-md);
|
505
506
|
display: flex;
|
@@ -543,18 +544,16 @@ video {
|
|
543
544
|
margin-left: auto;
|
544
545
|
}
|
545
546
|
|
547
|
+
.close-icon > svg {
|
548
|
+
color: var(--ic-dialog-clear-button);
|
549
|
+
}
|
550
|
+
|
546
551
|
.content-area {
|
547
|
-
-ms-overflow-style: none;
|
548
|
-
scrollbar-width: none;
|
549
552
|
padding: 0 var(--ic-space-md);
|
550
553
|
margin: 0;
|
551
554
|
overflow-y: auto;
|
552
555
|
}
|
553
556
|
|
554
|
-
.content-area::-webkit-scrollbar {
|
555
|
-
display: none;
|
556
|
-
}
|
557
|
-
|
558
557
|
#dialog-content {
|
559
558
|
margin-bottom: var(--ic-space-sm);
|
560
559
|
}
|
@@ -593,6 +592,14 @@ video {
|
|
593
592
|
padding-bottom: 16px;
|
594
593
|
}
|
595
594
|
|
595
|
+
.heading ic-typography {
|
596
|
+
--ic-typography-color: var(--ic-dialog-text-primary);
|
597
|
+
}
|
598
|
+
|
599
|
+
.label ic-typography {
|
600
|
+
--ic-typography-color: var(--ic-dialog-label);
|
601
|
+
}
|
602
|
+
|
596
603
|
@media (min-width: 800px) {
|
597
604
|
:host([size="large"]) .dialog:not(.disable-width-constraint) > .content-area {
|
598
605
|
width: 75%;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
2
2
|
import closeIcon from "../../assets/close-icon.svg";
|
3
|
-
import { isSlotUsed, checkResizeObserver, onComponentRequiredPropUndefined, } from "../../utils/helpers";
|
3
|
+
import { isSlotUsed, checkResizeObserver, onComponentRequiredPropUndefined, getSlotElements, } from "../../utils/helpers";
|
4
4
|
/**
|
5
5
|
* @slot dialog-controls - Content will be place at the bottom of the dialog.
|
6
6
|
* @slot heading - Content will be placed at the top of the dialog.
|
@@ -9,6 +9,7 @@ import { isSlotUsed, checkResizeObserver, onComponentRequiredPropUndefined, } fr
|
|
9
9
|
*/
|
10
10
|
export class Dialog {
|
11
11
|
constructor() {
|
12
|
+
this.contentAreaMutationObserver = null;
|
12
13
|
this.DATA_GETS_FOCUS = "data-gets-focus";
|
13
14
|
this.DATA_GETS_FOCUS_SELECTOR = "[data-gets-focus]";
|
14
15
|
this.DIALOG_CONTROLS = "dialog-controls";
|
@@ -62,12 +63,26 @@ export class Dialog {
|
|
62
63
|
}
|
63
64
|
};
|
64
65
|
this.refreshInteractiveElementsOnSlotChange = () => {
|
65
|
-
|
66
|
+
const contentWrapper = this.el.shadowRoot.querySelector("#dialog-content");
|
67
|
+
this.contentArea = contentWrapper.querySelector("slot");
|
68
|
+
// Detect changes to slotted elements
|
66
69
|
this.contentArea.addEventListener("slotchange", this.getInteractiveElements);
|
70
|
+
this.contentAreaMutationObserver = new MutationObserver(() => {
|
71
|
+
this.getInteractiveElements();
|
72
|
+
});
|
73
|
+
// Detect changes to children of slotted elements
|
74
|
+
getSlotElements(contentWrapper).forEach((el) => {
|
75
|
+
this.contentAreaMutationObserver.observe(el, {
|
76
|
+
childList: true,
|
77
|
+
subtree: true,
|
78
|
+
});
|
79
|
+
});
|
67
80
|
};
|
68
81
|
this.removeSlotChangeListener = () => {
|
82
|
+
var _a;
|
69
83
|
if (this.contentArea) {
|
70
84
|
this.contentArea.removeEventListener("slotchange", this.getInteractiveElements);
|
85
|
+
(_a = this.contentAreaMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
71
86
|
}
|
72
87
|
};
|
73
88
|
this.setInitialFocus = () => {
|
@@ -107,10 +122,10 @@ export class Dialog {
|
|
107
122
|
};
|
108
123
|
this.getInteractiveElements = () => {
|
109
124
|
this.interactiveElementList = Array.from(this.el.shadowRoot.querySelectorAll("ic-button"));
|
110
|
-
const slottedInteractiveElements = Array.from(this.el.querySelectorAll(`a[href], button, input:not(.ic-input), textarea, select, details, [tabindex]:not([tabindex="-1"]),
|
111
|
-
ic-button, ic-checkbox, ic-select, ic-search-bar, ic-tab-group, ic-radio-group,
|
112
|
-
ic-back-to-top, ic-breadcrumb, ic-chip[dismissible="true"], ic-footer-link, ic-link, ic-navigation-button,
|
113
|
-
ic-navigation-item, ic-switch, ic-text-field, ic-accordion-group, ic-accordion`));
|
125
|
+
const slottedInteractiveElements = Array.from(this.el.querySelectorAll(`a[href], button, input:not(.ic-input), textarea, select, details, [tabindex]:not([tabindex="-1"]),
|
126
|
+
ic-button, ic-checkbox, ic-select, ic-search-bar, ic-tab-group, ic-radio-group,
|
127
|
+
ic-back-to-top, ic-breadcrumb, ic-chip[dismissible="true"], ic-footer-link, ic-link, ic-navigation-button,
|
128
|
+
ic-navigation-item, ic-switch, ic-text-field, ic-accordion-group, ic-accordion, ic-date-input, ic-date-picker`));
|
114
129
|
if (slottedInteractiveElements.length > 0) {
|
115
130
|
if (slottedInteractiveElements[0].slot !== this.DIALOG_CONTROLS) {
|
116
131
|
slottedInteractiveElements[0].setAttribute(this.DATA_GETS_FOCUS, "");
|
@@ -126,6 +141,10 @@ export class Dialog {
|
|
126
141
|
this.getNextFocusEl = (focusedElementIndex) => this.interactiveElementList[focusedElementIndex];
|
127
142
|
this.focusNextInteractiveElement = (shiftKey) => {
|
128
143
|
this.getFocusedElementIndex();
|
144
|
+
if (this.interactiveElementList[this.focusedElementIndex].tagName ===
|
145
|
+
"IC-SEARCH-BAR") {
|
146
|
+
return false;
|
147
|
+
}
|
129
148
|
this.setFocusIndexBasedOnShiftKey(shiftKey);
|
130
149
|
this.loopNextFocusIndexIfLastElement();
|
131
150
|
let nextFocusEl = this.getNextFocusEl(this.focusedElementIndex);
|
@@ -151,6 +170,7 @@ export class Dialog {
|
|
151
170
|
nextFocusEl.focus();
|
152
171
|
}
|
153
172
|
}
|
173
|
+
return true;
|
154
174
|
};
|
155
175
|
this.renderDialog = () => {
|
156
176
|
const { buttons, size, heading, label, destructive, dismissLabel, hideCloseButton, } = this;
|
@@ -179,6 +199,7 @@ export class Dialog {
|
|
179
199
|
this.label = undefined;
|
180
200
|
this.open = undefined;
|
181
201
|
this.size = "small";
|
202
|
+
this.theme = "inherit";
|
182
203
|
}
|
183
204
|
watchOpenHandler() {
|
184
205
|
if (this.open) {
|
@@ -224,8 +245,9 @@ export class Dialog {
|
|
224
245
|
if (this.dialogRendered) {
|
225
246
|
switch (ev.key) {
|
226
247
|
case "Tab":
|
227
|
-
ev.
|
228
|
-
|
248
|
+
if (this.focusNextInteractiveElement(ev.shiftKey)) {
|
249
|
+
ev.preventDefault();
|
250
|
+
}
|
229
251
|
break;
|
230
252
|
case "Escape":
|
231
253
|
if (!ev.repeat) {
|
@@ -283,6 +305,7 @@ export class Dialog {
|
|
283
305
|
["ic-dialog-hidden"]: !this.dialogRendered,
|
284
306
|
["ic-dialog-fade-in"]: this.fadeIn,
|
285
307
|
["disable-height-constraint"]: this.disableHeightConstraint,
|
308
|
+
[`ic-theme-${this.theme}`]: this.theme !== "inherit",
|
286
309
|
} }, this.disableHeightConstraint ? (h("div", { class: "backdrop", ref: (el) => (this.backdropEl = el) }, this.renderDialog())) : (this.renderDialog())));
|
287
310
|
}
|
288
311
|
static get is() { return "ic-dialog"; }
|
@@ -311,7 +334,7 @@ export class Dialog {
|
|
311
334
|
"optional": true,
|
312
335
|
"docs": {
|
313
336
|
"tags": [],
|
314
|
-
"text": "If set to `false`, default buttons
|
337
|
+
"text": "If set to `false`, default buttons will not be shown, but slotted dialog controls will still be displayed."
|
315
338
|
},
|
316
339
|
"attribute": "buttons",
|
317
340
|
"reflect": false,
|
@@ -347,7 +370,7 @@ export class Dialog {
|
|
347
370
|
"optional": true,
|
348
371
|
"docs": {
|
349
372
|
"tags": [],
|
350
|
-
"text": "If
|
373
|
+
"text": "If 'true', sets the 'primary' or rightmost button to the destructive variant. Stops initial focus being set on the 'primary' or rightmost default or slotted button."
|
351
374
|
},
|
352
375
|
"attribute": "destructive",
|
353
376
|
"reflect": false,
|
@@ -494,6 +517,30 @@ export class Dialog {
|
|
494
517
|
"attribute": "size",
|
495
518
|
"reflect": false,
|
496
519
|
"defaultValue": "\"small\""
|
520
|
+
},
|
521
|
+
"theme": {
|
522
|
+
"type": "string",
|
523
|
+
"mutable": false,
|
524
|
+
"complexType": {
|
525
|
+
"original": "IcThemeMode",
|
526
|
+
"resolved": "\"dark\" | \"inherit\" | \"light\"",
|
527
|
+
"references": {
|
528
|
+
"IcThemeMode": {
|
529
|
+
"location": "import",
|
530
|
+
"path": "../../utils/types",
|
531
|
+
"id": "src/utils/types.ts::IcThemeMode"
|
532
|
+
}
|
533
|
+
}
|
534
|
+
},
|
535
|
+
"required": false,
|
536
|
+
"optional": true,
|
537
|
+
"docs": {
|
538
|
+
"tags": [],
|
539
|
+
"text": "Sets the theme color to the dark or light theme color. \"inherit\" will set the color based on the system settings or ic-theme component."
|
540
|
+
},
|
541
|
+
"attribute": "theme",
|
542
|
+
"reflect": false,
|
543
|
+
"defaultValue": "\"inherit\""
|
497
544
|
}
|
498
545
|
};
|
499
546
|
}
|