@ukic/web-components 2.0.0-alpha.121
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -0
- package/dist/cjs/check-icon-999d9877.js +10 -0
- package/dist/cjs/check-icon-999d9877.js.map +1 -0
- package/dist/cjs/chevron-icon-d175fe66.js +10 -0
- package/dist/cjs/chevron-icon-d175fe66.js.map +1 -0
- package/dist/cjs/close-icon-8ccb0163.js +12 -0
- package/dist/cjs/close-icon-8ccb0163.js.map +1 -0
- package/dist/cjs/core.cjs.js +21 -0
- package/dist/cjs/core.cjs.js.map +1 -0
- package/dist/cjs/error-icon-99504103.js +18 -0
- package/dist/cjs/error-icon-99504103.js.map +1 -0
- package/dist/cjs/helpers-9d4961dc.js +430 -0
- package/dist/cjs/helpers-9d4961dc.js.map +1 -0
- package/dist/cjs/ic-alert.cjs.entry.js +91 -0
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-back-to-top.cjs.entry.js +132 -0
- package/dist/cjs/ic-back-to-top.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-breadcrumb.cjs.entry.js +63 -0
- package/dist/cjs/ic-breadcrumb.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-breadcrumbs.cjs.entry.js +181 -0
- package/dist/cjs/ic-breadcrumbs.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-button_3.cjs.entry.js +432 -0
- package/dist/cjs/ic-button_3.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-card.cjs.entry.js +87 -0
- package/dist/cjs/ic-card.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-checkbox-group.cjs.entry.js +66 -0
- package/dist/cjs/ic-checkbox-group.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-checkbox.cjs.entry.js +72 -0
- package/dist/cjs/ic-checkbox.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-classification-banner.cjs.entry.js +42 -0
- package/dist/cjs/ic-classification-banner.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-data-entity.cjs.entry.js +31 -0
- package/dist/cjs/ic-data-entity.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-data-row.cjs.entry.js +74 -0
- package/dist/cjs/ic-data-row.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-divider.cjs.entry.js +29 -0
- package/dist/cjs/ic-divider.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-footer-link-group.cjs.entry.js +69 -0
- package/dist/cjs/ic-footer-link-group.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-footer-link.cjs.entry.js +59 -0
- package/dist/cjs/ic-footer-link.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-footer.cjs.entry.js +87 -0
- package/dist/cjs/ic-footer.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-hero.cjs.entry.js +72 -0
- package/dist/cjs/ic-hero.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js +485 -0
- package/dist/cjs/ic-input-component-container_3.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-input-label_2.cjs.entry.js +86 -0
- package/dist/cjs/ic-input-label_2.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-link.cjs.entry.js +69 -0
- package/dist/cjs/ic-link.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-navigation-button.cjs.entry.js +86 -0
- package/dist/cjs/ic-navigation-button.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-navigation-group.cjs.entry.js +240 -0
- package/dist/cjs/ic-navigation-group.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-navigation-item.cjs.entry.js +146 -0
- package/dist/cjs/ic-navigation-item.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-navigation-menu.cjs.entry.js +129 -0
- package/dist/cjs/ic-navigation-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-page-header.cjs.entry.js +107 -0
- package/dist/cjs/ic-page-header.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-radio-group.cjs.entry.js +103 -0
- package/dist/cjs/ic-radio-group.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-radio-option.cjs.entry.js +108 -0
- package/dist/cjs/ic-radio-option.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-search-bar.cjs.entry.js +393 -0
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-section-container.cjs.entry.js +29 -0
- package/dist/cjs/ic-section-container.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-select.cjs.entry.js +166 -0
- package/dist/cjs/ic-select.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-side-navigation.cjs.entry.js +384 -0
- package/dist/cjs/ic-side-navigation.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-skeleton.cjs.entry.js +59 -0
- package/dist/cjs/ic-skeleton.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-status-tag.cjs.entry.js +34 -0
- package/dist/cjs/ic-status-tag.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-step.cjs.entry.js +59 -0
- package/dist/cjs/ic-step.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-stepper.cjs.entry.js +96 -0
- package/dist/cjs/ic-stepper.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-switch.cjs.entry.js +65 -0
- package/dist/cjs/ic-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-tab-context.cjs.entry.js +226 -0
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-tab-list.cjs.entry.js +145 -0
- package/dist/cjs/ic-tab-list.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-tab-panel.cjs.entry.js +33 -0
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-tab.cjs.entry.js +73 -0
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-text-field.cjs.entry.js +203 -0
- package/dist/cjs/ic-text-field.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-theme.cjs.entry.js +53 -0
- package/dist/cjs/ic-theme.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-top-navigation.cjs.entry.js +207 -0
- package/dist/cjs/ic-top-navigation.cjs.entry.js.map +1 -0
- package/dist/cjs/ic-typography.cjs.entry.js +28 -0
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -0
- package/dist/cjs/index-3ef30d9d.js +2459 -0
- package/dist/cjs/index-3ef30d9d.js.map +1 -0
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +23 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/popper-11d5f714.js +1803 -0
- package/dist/cjs/popper-11d5f714.js.map +1 -0
- package/dist/cjs/success-icon-887b2097.js +11 -0
- package/dist/cjs/success-icon-887b2097.js.map +1 -0
- package/dist/collection/assets/back-icon.svg +3 -0
- package/dist/collection/assets/check-icon.svg +3 -0
- package/dist/collection/assets/chevron-icon.svg +3 -0
- package/dist/collection/assets/clear-icon.svg +3 -0
- package/dist/collection/assets/close-icon.svg +5 -0
- package/dist/collection/assets/error-icon.svg +5 -0
- package/dist/collection/assets/hamburger-menu-icon.svg +5 -0
- package/dist/collection/assets/info-icon.svg +5 -0
- package/dist/collection/assets/neutral-icon.svg +5 -0
- package/dist/collection/assets/search-icon.svg +3 -0
- package/dist/collection/assets/success-icon.svg +5 -0
- package/dist/collection/assets/warning-icon.svg +5 -0
- package/dist/collection/collection-manifest.json +59 -0
- package/dist/collection/components/ic-alert/ic-alert.css +615 -0
- package/dist/collection/components/ic-alert/ic-alert.js +235 -0
- package/dist/collection/components/ic-alert/ic-alert.js.map +1 -0
- package/dist/collection/components/ic-alert/ic-alert.test.a11y.js +11 -0
- package/dist/collection/components/ic-alert/ic-alert.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-alert/ic-alert.types.js +2 -0
- package/dist/collection/components/ic-alert/ic-alert.types.js.map +1 -0
- package/dist/collection/components/ic-back-to-top/assets/ArrowUpward.svg +3 -0
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.css +526 -0
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js +160 -0
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.js.map +1 -0
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.test.a11y.js +28 -0
- package/dist/collection/components/ic-back-to-top/ic-back-to-top.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.css +80 -0
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js +136 -0
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.js.map +1 -0
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.types.js +2 -0
- package/dist/collection/components/ic-breadcrumb/ic-breadcrumb.types.js.map +1 -0
- package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs-test-examples.js +35 -0
- package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs-test-examples.js.map +1 -0
- package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs.css +35 -0
- package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs.js +228 -0
- package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs.js.map +1 -0
- package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs.test.a11y.js +21 -0
- package/dist/collection/components/ic-breadcrumbs/ic-breadcrumbs.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-button/ic-button.css +840 -0
- package/dist/collection/components/ic-button/ic-button.js +613 -0
- package/dist/collection/components/ic-button/ic-button.js.map +1 -0
- package/dist/collection/components/ic-button/ic-button.test.a11y.js +11 -0
- package/dist/collection/components/ic-button/ic-button.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-button/ic-button.types.js +2 -0
- package/dist/collection/components/ic-button/ic-button.types.js.map +1 -0
- package/dist/collection/components/ic-card/ic-card.css +546 -0
- package/dist/collection/components/ic-card/ic-card.js +291 -0
- package/dist/collection/components/ic-card/ic-card.js.map +1 -0
- package/dist/collection/components/ic-card/ic-card.test.a11y.js +21 -0
- package/dist/collection/components/ic-card/ic-card.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-checkbox/ic-checkbox.css +597 -0
- package/dist/collection/components/ic-checkbox/ic-checkbox.js +256 -0
- package/dist/collection/components/ic-checkbox/ic-checkbox.js.map +1 -0
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.css +466 -0
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js +271 -0
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.js.map +1 -0
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.test.a11y.js +16 -0
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.types.js +2 -0
- package/dist/collection/components/ic-checkbox-group/ic-checkbox-group.types.js.map +1 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.css +494 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js +141 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.js.map +1 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.test.a11y.js +11 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.types.js +2 -0
- package/dist/collection/components/ic-classification-banner/ic-classification-banner.types.js.map +1 -0
- package/dist/collection/components/ic-data-entity/ic-data-entity.css +468 -0
- package/dist/collection/components/ic-data-entity/ic-data-entity.js +70 -0
- package/dist/collection/components/ic-data-entity/ic-data-entity.js.map +1 -0
- package/dist/collection/components/ic-data-entity/ic-data-entity.test.a11y.js +11 -0
- package/dist/collection/components/ic-data-entity/ic-data-entity.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-data-row/ic-data-row.css +499 -0
- package/dist/collection/components/ic-data-row/ic-data-row.js +141 -0
- package/dist/collection/components/ic-data-row/ic-data-row.js.map +1 -0
- package/dist/collection/components/ic-data-row/ic-data-row.test.a11y.js +18 -0
- package/dist/collection/components/ic-data-row/ic-data-row.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-divider/ic-divider.css +11 -0
- package/dist/collection/components/ic-divider/ic-divider.js +44 -0
- package/dist/collection/components/ic-divider/ic-divider.js.map +1 -0
- package/dist/collection/components/ic-footer/ic-footer.css +537 -0
- package/dist/collection/components/ic-footer/ic-footer.js +247 -0
- package/dist/collection/components/ic-footer/ic-footer.js.map +1 -0
- package/dist/collection/components/ic-footer/ic-footer.test.a11y.js +21 -0
- package/dist/collection/components/ic-footer/ic-footer.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-footer/ic-footer.types.js +2 -0
- package/dist/collection/components/ic-footer/ic-footer.types.js.map +1 -0
- package/dist/collection/components/ic-footer-link/ic-footer-link.css +558 -0
- package/dist/collection/components/ic-footer-link/ic-footer-link.js +103 -0
- package/dist/collection/components/ic-footer-link/ic-footer-link.js.map +1 -0
- package/dist/collection/components/ic-footer-link/ic-footer-link.test.a11y.js +21 -0
- package/dist/collection/components/ic-footer-link/ic-footer-link.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.css +522 -0
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js +113 -0
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.js.map +1 -0
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.test.a11y.js +21 -0
- package/dist/collection/components/ic-footer-link-group/ic-footer-link-group.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-hero/ic-hero.css +703 -0
- package/dist/collection/components/ic-hero/ic-hero.js +273 -0
- package/dist/collection/components/ic-hero/ic-hero.js.map +1 -0
- package/dist/collection/components/ic-hero/ic-hero.test.a11y.js +11 -0
- package/dist/collection/components/ic-hero/ic-hero.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-hero/ic-hero.types.js +2 -0
- package/dist/collection/components/ic-hero/ic-hero.types.js.map +1 -0
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.css +118 -0
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js +208 -0
- package/dist/collection/components/ic-input-component-container/ic-input-component-container.js.map +1 -0
- package/dist/collection/components/ic-input-container/ic-input-container.css +5 -0
- package/dist/collection/components/ic-input-container/ic-input-container.js +66 -0
- package/dist/collection/components/ic-input-container/ic-input-container.js.map +1 -0
- package/dist/collection/components/ic-input-label/ic-input-label.css +39 -0
- package/dist/collection/components/ic-input-label/ic-input-label.js +194 -0
- package/dist/collection/components/ic-input-label/ic-input-label.js.map +1 -0
- package/dist/collection/components/ic-input-validation/ic-input-validation.css +43 -0
- package/dist/collection/components/ic-input-validation/ic-input-validation.js +152 -0
- package/dist/collection/components/ic-input-validation/ic-input-validation.js.map +1 -0
- package/dist/collection/components/ic-input-validation/ic-input-validation.types.js +2 -0
- package/dist/collection/components/ic-input-validation/ic-input-validation.types.js.map +1 -0
- package/dist/collection/components/ic-link/assets/OpenInNew.svg +1 -0
- package/dist/collection/components/ic-link/ic-link.css +545 -0
- package/dist/collection/components/ic-link/ic-link.js +231 -0
- package/dist/collection/components/ic-link/ic-link.js.map +1 -0
- package/dist/collection/components/ic-link/ic-link.test.a11y.js +11 -0
- package/dist/collection/components/ic-link/ic-link.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.css +672 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js +334 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.js.map +1 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.test.a11y.js +11 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.types.js +2 -0
- package/dist/collection/components/ic-loading-indicator/ic-loading-indicator.types.js.map +1 -0
- package/dist/collection/components/ic-menu/ic-menu.css +579 -0
- package/dist/collection/components/ic-menu/ic-menu.js +806 -0
- package/dist/collection/components/ic-menu/ic-menu.js.map +1 -0
- package/dist/collection/components/ic-menu/ic-menu.types.js +2 -0
- package/dist/collection/components/ic-menu/ic-menu.types.js.map +1 -0
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.css +452 -0
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js +266 -0
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.js.map +1 -0
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.types.js +2 -0
- package/dist/collection/components/ic-navigation-button/ic-navigation-button.types.js.map +1 -0
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.css +639 -0
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js +331 -0
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.js.map +1 -0
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.test.a11y.js +18 -0
- package/dist/collection/components/ic-navigation-group/ic-navigation-group.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.css +967 -0
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js +347 -0
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.js.map +1 -0
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.test.a11y.js +18 -0
- package/dist/collection/components/ic-navigation-item/ic-navigation-item.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.css +87 -0
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js +208 -0
- package/dist/collection/components/ic-navigation-menu/ic-navigation-menu.js.map +1 -0
- package/dist/collection/components/ic-page-header/ic-page-header.css +561 -0
- package/dist/collection/components/ic-page-header/ic-page-header.js +275 -0
- package/dist/collection/components/ic-page-header/ic-page-header.js.map +1 -0
- package/dist/collection/components/ic-page-header/ic-page-header.test.a11y.js +13 -0
- package/dist/collection/components/ic-page-header/ic-page-header.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.css +454 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.js +308 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.js.map +1 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.test.a11y.js +16 -0
- package/dist/collection/components/ic-radio-group/ic-radio-group.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-radio-option/ic-radio-option.css +639 -0
- package/dist/collection/components/ic-radio-option/ic-radio-option.js +305 -0
- package/dist/collection/components/ic-radio-option/ic-radio-option.js.map +1 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.css +552 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.js +1127 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.js.map +1 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.test.a11y.js +11 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.types.js +2 -0
- package/dist/collection/components/ic-search-bar/ic-search-bar.types.js.map +1 -0
- package/dist/collection/components/ic-section-container/ic-section-container.css +513 -0
- package/dist/collection/components/ic-section-container/ic-section-container.js +74 -0
- package/dist/collection/components/ic-section-container/ic-section-container.js.map +1 -0
- package/dist/collection/components/ic-select/assets/Check.svg +3 -0
- package/dist/collection/components/ic-select/assets/Clear.svg +3 -0
- package/dist/collection/components/ic-select/assets/Expand.svg +3 -0
- package/dist/collection/components/ic-select/ic-select.css +592 -0
- package/dist/collection/components/ic-select/ic-select.js +516 -0
- package/dist/collection/components/ic-select/ic-select.js.map +1 -0
- package/dist/collection/components/ic-select/ic-select.test.a11y.js +28 -0
- package/dist/collection/components/ic-select/ic-select.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation-test-examples.js +321 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation-test-examples.js.map +1 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.css +607 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js +566 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.js.map +1 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.test.a11y.js +14 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.types.js +2 -0
- package/dist/collection/components/ic-side-navigation/ic-side-navigation.types.js.map +1 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.css +495 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.js +112 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.js.map +1 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.test.a11y.js +11 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.types.js +2 -0
- package/dist/collection/components/ic-skeleton/ic-skeleton.types.js.map +1 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.css +499 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.js +119 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.js.map +1 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js +11 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.types.js +2 -0
- package/dist/collection/components/ic-status-tag/ic-status-tag.types.js.map +1 -0
- package/dist/collection/components/ic-step/ic-step.css +146 -0
- package/dist/collection/components/ic-step/ic-step.js +160 -0
- package/dist/collection/components/ic-step/ic-step.js.map +1 -0
- package/dist/collection/components/ic-step/ic-step.types.js +2 -0
- package/dist/collection/components/ic-step/ic-step.types.js.map +1 -0
- package/dist/collection/components/ic-stepper/ic-stepper.css +14 -0
- package/dist/collection/components/ic-stepper/ic-stepper.js +147 -0
- package/dist/collection/components/ic-stepper/ic-stepper.js.map +1 -0
- package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js +24 -0
- package/dist/collection/components/ic-stepper/ic-stepper.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-stepper/ic-stepper.types.js +2 -0
- package/dist/collection/components/ic-stepper/ic-stepper.types.js.map +1 -0
- package/dist/collection/components/ic-switch/ic-switch.css +626 -0
- package/dist/collection/components/ic-switch/ic-switch.js +288 -0
- package/dist/collection/components/ic-switch/ic-switch.js.map +1 -0
- package/dist/collection/components/ic-switch/ic-switch.test.a11y.js +11 -0
- package/dist/collection/components/ic-switch/ic-switch.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-switch/ic-switch.types.js +2 -0
- package/dist/collection/components/ic-switch/ic-switch.types.js.map +1 -0
- package/dist/collection/components/ic-tab/ic-tab.css +511 -0
- package/dist/collection/components/ic-tab/ic-tab.js +245 -0
- package/dist/collection/components/ic-tab/ic-tab.js.map +1 -0
- package/dist/collection/components/ic-tab/ic-tab.types.js +2 -0
- package/dist/collection/components/ic-tab/ic-tab.types.js.map +1 -0
- package/dist/collection/components/ic-tab-context/ic-tab-context.js +337 -0
- package/dist/collection/components/ic-tab-context/ic-tab-context.js.map +1 -0
- package/dist/collection/components/ic-tab-context/ic-tab-context.test.a11y.js +19 -0
- package/dist/collection/components/ic-tab-context/ic-tab-context.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-tab-list/assets/left-arrow.svg +3 -0
- package/dist/collection/components/ic-tab-list/assets/right-arrow.svg +3 -0
- package/dist/collection/components/ic-tab-list/ic-tab-list.css +139 -0
- package/dist/collection/components/ic-tab-list/ic-tab-list.js +258 -0
- package/dist/collection/components/ic-tab-list/ic-tab-list.js.map +1 -0
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.css +3 -0
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js +115 -0
- package/dist/collection/components/ic-tab-panel/ic-tab-panel.js.map +1 -0
- package/dist/collection/components/ic-text-field/ic-text-field.css +556 -0
- package/dist/collection/components/ic-text-field/ic-text-field.js +1006 -0
- package/dist/collection/components/ic-text-field/ic-text-field.js.map +1 -0
- package/dist/collection/components/ic-text-field/ic-text-field.test.a11y.js +33 -0
- package/dist/collection/components/ic-text-field/ic-text-field.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-text-field/ic-text-field.types.js +2 -0
- package/dist/collection/components/ic-text-field/ic-text-field.types.js.map +1 -0
- package/dist/collection/components/ic-theme/ic-theme.js +93 -0
- package/dist/collection/components/ic-theme/ic-theme.js.map +1 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.css +538 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.js +192 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.js.map +1 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.test.a11y.js +15 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.types.js +2 -0
- package/dist/collection/components/ic-tooltip/ic-tooltip.types.js.map +1 -0
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.css +736 -0
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js +411 -0
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.js.map +1 -0
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.test.a11y.js +23 -0
- package/dist/collection/components/ic-top-navigation/ic-top-navigation.test.a11y.js.map +1 -0
- package/dist/collection/components/ic-typography/ic-typography.css +543 -0
- package/dist/collection/components/ic-typography/ic-typography.js +73 -0
- package/dist/collection/components/ic-typography/ic-typography.js.map +1 -0
- package/dist/collection/components/ic-typography/ic-typography.test.a11y.js +11 -0
- package/dist/collection/components/ic-typography/ic-typography.test.a11y.js.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/testspec.setup.js +32 -0
- package/dist/collection/testspec.setup.js.map +1 -0
- package/dist/collection/utils/constants.js +44 -0
- package/dist/collection/utils/constants.js.map +1 -0
- package/dist/collection/utils/helpers.js +339 -0
- package/dist/collection/utils/helpers.js.map +1 -0
- package/dist/collection/utils/testa11y.helpers.js +8 -0
- package/dist/collection/utils/testa11y.helpers.js.map +1 -0
- package/dist/collection/utils/types.js +13 -0
- package/dist/collection/utils/types.js.map +1 -0
- package/dist/components/check-icon.js +8 -0
- package/dist/components/check-icon.js.map +1 -0
- package/dist/components/chevron-icon.js +8 -0
- package/dist/components/chevron-icon.js.map +1 -0
- package/dist/components/close-icon.js +10 -0
- package/dist/components/close-icon.js.map +1 -0
- package/dist/components/error-icon.js +15 -0
- package/dist/components/error-icon.js.map +1 -0
- package/dist/components/helpers.js +397 -0
- package/dist/components/helpers.js.map +1 -0
- package/dist/components/ic-alert.d.ts +11 -0
- package/dist/components/ic-alert.js +138 -0
- package/dist/components/ic-alert.js.map +1 -0
- package/dist/components/ic-back-to-top.d.ts +11 -0
- package/dist/components/ic-back-to-top.js +157 -0
- package/dist/components/ic-back-to-top.js.map +1 -0
- package/dist/components/ic-breadcrumb.d.ts +11 -0
- package/dist/components/ic-breadcrumb.js +8 -0
- package/dist/components/ic-breadcrumb.js.map +1 -0
- package/dist/components/ic-breadcrumb2.js +85 -0
- package/dist/components/ic-breadcrumb2.js.map +1 -0
- package/dist/components/ic-breadcrumbs.d.ts +11 -0
- package/dist/components/ic-breadcrumbs.js +212 -0
- package/dist/components/ic-breadcrumbs.js.map +1 -0
- package/dist/components/ic-button.d.ts +11 -0
- package/dist/components/ic-button.js +8 -0
- package/dist/components/ic-button.js.map +1 -0
- package/dist/components/ic-button2.js +243 -0
- package/dist/components/ic-button2.js.map +1 -0
- package/dist/components/ic-card.d.ts +11 -0
- package/dist/components/ic-card.js +121 -0
- package/dist/components/ic-card.js.map +1 -0
- package/dist/components/ic-checkbox-group.d.ts +11 -0
- package/dist/components/ic-checkbox-group.js +109 -0
- package/dist/components/ic-checkbox-group.js.map +1 -0
- package/dist/components/ic-checkbox.d.ts +11 -0
- package/dist/components/ic-checkbox.js +102 -0
- package/dist/components/ic-checkbox.js.map +1 -0
- package/dist/components/ic-classification-banner.d.ts +11 -0
- package/dist/components/ic-classification-banner.js +68 -0
- package/dist/components/ic-classification-banner.js.map +1 -0
- package/dist/components/ic-data-entity.d.ts +11 -0
- package/dist/components/ic-data-entity.js +54 -0
- package/dist/components/ic-data-entity.js.map +1 -0
- package/dist/components/ic-data-row.d.ts +11 -0
- package/dist/components/ic-data-row.js +100 -0
- package/dist/components/ic-data-row.js.map +1 -0
- package/dist/components/ic-divider.d.ts +11 -0
- package/dist/components/ic-divider.js +8 -0
- package/dist/components/ic-divider.js.map +1 -0
- package/dist/components/ic-divider2.js +41 -0
- package/dist/components/ic-divider2.js.map +1 -0
- package/dist/components/ic-footer-link-group.d.ts +11 -0
- package/dist/components/ic-footer-link-group.js +101 -0
- package/dist/components/ic-footer-link-group.js.map +1 -0
- package/dist/components/ic-footer-link.d.ts +11 -0
- package/dist/components/ic-footer-link.js +78 -0
- package/dist/components/ic-footer-link.js.map +1 -0
- package/dist/components/ic-footer.d.ts +11 -0
- package/dist/components/ic-footer.js +122 -0
- package/dist/components/ic-footer.js.map +1 -0
- package/dist/components/ic-hero.d.ts +11 -0
- package/dist/components/ic-hero.js +112 -0
- package/dist/components/ic-hero.js.map +1 -0
- package/dist/components/ic-input-component-container.d.ts +11 -0
- package/dist/components/ic-input-component-container.js +8 -0
- package/dist/components/ic-input-component-container.js.map +1 -0
- package/dist/components/ic-input-component-container2.js +71 -0
- package/dist/components/ic-input-component-container2.js.map +1 -0
- package/dist/components/ic-input-container.d.ts +11 -0
- package/dist/components/ic-input-container.js +8 -0
- package/dist/components/ic-input-container.js.map +1 -0
- package/dist/components/ic-input-container2.js +40 -0
- package/dist/components/ic-input-container2.js.map +1 -0
- package/dist/components/ic-input-label.d.ts +11 -0
- package/dist/components/ic-input-label.js +8 -0
- package/dist/components/ic-input-label.js.map +1 -0
- package/dist/components/ic-input-label2.js +74 -0
- package/dist/components/ic-input-label2.js.map +1 -0
- package/dist/components/ic-input-validation.d.ts +11 -0
- package/dist/components/ic-input-validation.js +8 -0
- package/dist/components/ic-input-validation.js.map +1 -0
- package/dist/components/ic-input-validation2.js +68 -0
- package/dist/components/ic-input-validation2.js.map +1 -0
- package/dist/components/ic-link.d.ts +11 -0
- package/dist/components/ic-link.js +8 -0
- package/dist/components/ic-link.js.map +1 -0
- package/dist/components/ic-link2.js +89 -0
- package/dist/components/ic-link2.js.map +1 -0
- package/dist/components/ic-loading-indicator.d.ts +11 -0
- package/dist/components/ic-loading-indicator.js +8 -0
- package/dist/components/ic-loading-indicator.js.map +1 -0
- package/dist/components/ic-loading-indicator2.js +158 -0
- package/dist/components/ic-loading-indicator2.js.map +1 -0
- package/dist/components/ic-menu.d.ts +11 -0
- package/dist/components/ic-menu.js +8 -0
- package/dist/components/ic-menu.js.map +1 -0
- package/dist/components/ic-menu2.js +461 -0
- package/dist/components/ic-menu2.js.map +1 -0
- package/dist/components/ic-navigation-button.d.ts +11 -0
- package/dist/components/ic-navigation-button.js +135 -0
- package/dist/components/ic-navigation-button.js.map +1 -0
- package/dist/components/ic-navigation-group.d.ts +11 -0
- package/dist/components/ic-navigation-group.js +271 -0
- package/dist/components/ic-navigation-group.js.map +1 -0
- package/dist/components/ic-navigation-item.d.ts +11 -0
- package/dist/components/ic-navigation-item.js +188 -0
- package/dist/components/ic-navigation-item.js.map +1 -0
- package/dist/components/ic-navigation-menu.d.ts +11 -0
- package/dist/components/ic-navigation-menu.js +8 -0
- package/dist/components/ic-navigation-menu.js.map +1 -0
- package/dist/components/ic-navigation-menu2.js +167 -0
- package/dist/components/ic-navigation-menu2.js.map +1 -0
- package/dist/components/ic-page-header.d.ts +11 -0
- package/dist/components/ic-page-header.js +145 -0
- package/dist/components/ic-page-header.js.map +1 -0
- package/dist/components/ic-radio-group.d.ts +11 -0
- package/dist/components/ic-radio-group.js +147 -0
- package/dist/components/ic-radio-group.js.map +1 -0
- package/dist/components/ic-radio-option.d.ts +11 -0
- package/dist/components/ic-radio-option.js +137 -0
- package/dist/components/ic-radio-option.js.map +1 -0
- package/dist/components/ic-search-bar.d.ts +11 -0
- package/dist/components/ic-search-bar.js +500 -0
- package/dist/components/ic-search-bar.js.map +1 -0
- package/dist/components/ic-section-container.d.ts +11 -0
- package/dist/components/ic-section-container.js +8 -0
- package/dist/components/ic-section-container.js.map +1 -0
- package/dist/components/ic-section-container2.js +43 -0
- package/dist/components/ic-section-container2.js.map +1 -0
- package/dist/components/ic-select.d.ts +11 -0
- package/dist/components/ic-select.js +253 -0
- package/dist/components/ic-select.js.map +1 -0
- package/dist/components/ic-side-navigation.d.ts +11 -0
- package/dist/components/ic-side-navigation.js +444 -0
- package/dist/components/ic-side-navigation.js.map +1 -0
- package/dist/components/ic-skeleton.d.ts +11 -0
- package/dist/components/ic-skeleton.js +80 -0
- package/dist/components/ic-skeleton.js.map +1 -0
- package/dist/components/ic-status-tag.d.ts +11 -0
- package/dist/components/ic-status-tag.js +59 -0
- package/dist/components/ic-status-tag.js.map +1 -0
- package/dist/components/ic-step.d.ts +11 -0
- package/dist/components/ic-step.js +85 -0
- package/dist/components/ic-step.js.map +1 -0
- package/dist/components/ic-stepper.d.ts +11 -0
- package/dist/components/ic-stepper.js +115 -0
- package/dist/components/ic-stepper.js.map +1 -0
- package/dist/components/ic-switch.d.ts +11 -0
- package/dist/components/ic-switch.js +102 -0
- package/dist/components/ic-switch.js.map +1 -0
- package/dist/components/ic-tab-context.d.ts +11 -0
- package/dist/components/ic-tab-context.js +245 -0
- package/dist/components/ic-tab-context.js.map +1 -0
- package/dist/components/ic-tab-list.d.ts +11 -0
- package/dist/components/ic-tab-list.js +180 -0
- package/dist/components/ic-tab-list.js.map +1 -0
- package/dist/components/ic-tab-panel.d.ts +11 -0
- package/dist/components/ic-tab-panel.js +52 -0
- package/dist/components/ic-tab-panel.js.map +1 -0
- package/dist/components/ic-tab.d.ts +11 -0
- package/dist/components/ic-tab.js +100 -0
- package/dist/components/ic-tab.js.map +1 -0
- package/dist/components/ic-text-field.d.ts +11 -0
- package/dist/components/ic-text-field.js +8 -0
- package/dist/components/ic-text-field.js.map +1 -0
- package/dist/components/ic-text-field2.js +282 -0
- package/dist/components/ic-text-field2.js.map +1 -0
- package/dist/components/ic-theme.d.ts +11 -0
- package/dist/components/ic-theme.js +69 -0
- package/dist/components/ic-theme.js.map +1 -0
- package/dist/components/ic-tooltip.d.ts +11 -0
- package/dist/components/ic-tooltip.js +8 -0
- package/dist/components/ic-tooltip.js.map +1 -0
- package/dist/components/ic-tooltip2.js +149 -0
- package/dist/components/ic-tooltip2.js.map +1 -0
- package/dist/components/ic-top-navigation.d.ts +11 -0
- package/dist/components/ic-top-navigation.js +273 -0
- package/dist/components/ic-top-navigation.js.map +1 -0
- package/dist/components/ic-typography.d.ts +11 -0
- package/dist/components/ic-typography.js +8 -0
- package/dist/components/ic-typography.js.map +1 -0
- package/dist/components/ic-typography2.js +42 -0
- package/dist/components/ic-typography2.js.map +1 -0
- package/dist/components/index.d.ts +69 -0
- package/dist/components/index.js +51 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/popper.js +1801 -0
- package/dist/components/popper.js.map +1 -0
- package/dist/components/success-icon.js +9 -0
- package/dist/components/success-icon.js.map +1 -0
- package/dist/core/core.css +57 -0
- package/dist/core/core.esm.js +2 -0
- package/dist/core/core.esm.js.map +1 -0
- package/dist/core/index.esm.js +2 -0
- package/dist/core/index.esm.js.map +1 -0
- package/dist/core/p-012dc33c.entry.js +2 -0
- package/dist/core/p-012dc33c.entry.js.map +1 -0
- package/dist/core/p-0d4ac3c9.entry.js +2 -0
- package/dist/core/p-0d4ac3c9.entry.js.map +1 -0
- package/dist/core/p-0ebbf9e7.entry.js +2 -0
- package/dist/core/p-0ebbf9e7.entry.js.map +1 -0
- package/dist/core/p-13854b65.entry.js +2 -0
- package/dist/core/p-13854b65.entry.js.map +1 -0
- package/dist/core/p-17420c90.entry.js +2 -0
- package/dist/core/p-17420c90.entry.js.map +1 -0
- package/dist/core/p-1e7b4310.js +2 -0
- package/dist/core/p-1e7b4310.js.map +1 -0
- package/dist/core/p-263018da.entry.js +2 -0
- package/dist/core/p-263018da.entry.js.map +1 -0
- package/dist/core/p-28ef3fe0.entry.js +2 -0
- package/dist/core/p-28ef3fe0.entry.js.map +1 -0
- package/dist/core/p-3b9d4007.entry.js +2 -0
- package/dist/core/p-3b9d4007.entry.js.map +1 -0
- package/dist/core/p-43e646c6.entry.js +2 -0
- package/dist/core/p-43e646c6.entry.js.map +1 -0
- package/dist/core/p-44355e34.entry.js +2 -0
- package/dist/core/p-44355e34.entry.js.map +1 -0
- package/dist/core/p-44512ebe.js +2 -0
- package/dist/core/p-44512ebe.js.map +1 -0
- package/dist/core/p-44af91df.entry.js +2 -0
- package/dist/core/p-44af91df.entry.js.map +1 -0
- package/dist/core/p-4b1b46f5.entry.js +2 -0
- package/dist/core/p-4b1b46f5.entry.js.map +1 -0
- package/dist/core/p-4b692529.entry.js +2 -0
- package/dist/core/p-4b692529.entry.js.map +1 -0
- package/dist/core/p-4cf60a22.entry.js +2 -0
- package/dist/core/p-4cf60a22.entry.js.map +1 -0
- package/dist/core/p-4fba6cae.entry.js +2 -0
- package/dist/core/p-4fba6cae.entry.js.map +1 -0
- package/dist/core/p-5316e421.entry.js +2 -0
- package/dist/core/p-5316e421.entry.js.map +1 -0
- package/dist/core/p-5d3dd182.entry.js +2 -0
- package/dist/core/p-5d3dd182.entry.js.map +1 -0
- package/dist/core/p-5e0b88fa.entry.js +2 -0
- package/dist/core/p-5e0b88fa.entry.js.map +1 -0
- package/dist/core/p-6be5e06b.entry.js +2 -0
- package/dist/core/p-6be5e06b.entry.js.map +1 -0
- package/dist/core/p-7152788d.entry.js +2 -0
- package/dist/core/p-7152788d.entry.js.map +1 -0
- package/dist/core/p-79905074.entry.js +2 -0
- package/dist/core/p-79905074.entry.js.map +1 -0
- package/dist/core/p-7ed79493.entry.js +2 -0
- package/dist/core/p-7ed79493.entry.js.map +1 -0
- package/dist/core/p-7f6ba60a.entry.js +2 -0
- package/dist/core/p-7f6ba60a.entry.js.map +1 -0
- package/dist/core/p-836c93b1.entry.js +2 -0
- package/dist/core/p-836c93b1.entry.js.map +1 -0
- package/dist/core/p-85436343.entry.js +2 -0
- package/dist/core/p-85436343.entry.js.map +1 -0
- package/dist/core/p-85dc9100.entry.js +2 -0
- package/dist/core/p-85dc9100.entry.js.map +1 -0
- package/dist/core/p-8a677ff1.entry.js +2 -0
- package/dist/core/p-8a677ff1.entry.js.map +1 -0
- package/dist/core/p-8af2a343.entry.js +2 -0
- package/dist/core/p-8af2a343.entry.js.map +1 -0
- package/dist/core/p-a3df537f.entry.js +2 -0
- package/dist/core/p-a3df537f.entry.js.map +1 -0
- package/dist/core/p-a968ff18.entry.js +2 -0
- package/dist/core/p-a968ff18.entry.js.map +1 -0
- package/dist/core/p-ae6aa67f.js +2 -0
- package/dist/core/p-ae6aa67f.js.map +1 -0
- package/dist/core/p-b1d83eb6.entry.js +2 -0
- package/dist/core/p-b1d83eb6.entry.js.map +1 -0
- package/dist/core/p-b858dc5a.entry.js +2 -0
- package/dist/core/p-b858dc5a.entry.js.map +1 -0
- package/dist/core/p-b9253509.entry.js +2 -0
- package/dist/core/p-b9253509.entry.js.map +1 -0
- package/dist/core/p-bbe0b521.entry.js +2 -0
- package/dist/core/p-bbe0b521.entry.js.map +1 -0
- package/dist/core/p-bdd2f166.entry.js +2 -0
- package/dist/core/p-bdd2f166.entry.js.map +1 -0
- package/dist/core/p-bddb885a.entry.js +2 -0
- package/dist/core/p-bddb885a.entry.js.map +1 -0
- package/dist/core/p-bf5717ca.js +2 -0
- package/dist/core/p-bf5717ca.js.map +1 -0
- package/dist/core/p-c09e9589.entry.js +2 -0
- package/dist/core/p-c09e9589.entry.js.map +1 -0
- package/dist/core/p-d10ce0a7.entry.js +2 -0
- package/dist/core/p-d10ce0a7.entry.js.map +1 -0
- package/dist/core/p-d198ae1f.entry.js +2 -0
- package/dist/core/p-d198ae1f.entry.js.map +1 -0
- package/dist/core/p-dc79694a.entry.js +2 -0
- package/dist/core/p-dc79694a.entry.js.map +1 -0
- package/dist/core/p-e28af65b.js +2 -0
- package/dist/core/p-e28af65b.js.map +1 -0
- package/dist/core/p-e5a09372.js +2 -0
- package/dist/core/p-e5a09372.js.map +1 -0
- package/dist/core/p-ec26fc38.js +2 -0
- package/dist/core/p-ec26fc38.js.map +1 -0
- package/dist/core/p-ed1d8712.entry.js +2 -0
- package/dist/core/p-ed1d8712.entry.js.map +1 -0
- package/dist/core/p-f7828fde.entry.js +2 -0
- package/dist/core/p-f7828fde.entry.js.map +1 -0
- package/dist/core/p-f9370be6.js +3 -0
- package/dist/core/p-f9370be6.js.map +1 -0
- package/dist/core/p-fba2f052.entry.js +2 -0
- package/dist/core/p-fba2f052.entry.js.map +1 -0
- package/dist/esm/check-icon-53f1d9e5.js +8 -0
- package/dist/esm/check-icon-53f1d9e5.js.map +1 -0
- package/dist/esm/chevron-icon-5b38c60a.js +8 -0
- package/dist/esm/chevron-icon-5b38c60a.js.map +1 -0
- package/dist/esm/close-icon-2f02b42a.js +10 -0
- package/dist/esm/close-icon-2f02b42a.js.map +1 -0
- package/dist/esm/core.js +19 -0
- package/dist/esm/core.js.map +1 -0
- package/dist/esm/error-icon-6046a380.js +15 -0
- package/dist/esm/error-icon-6046a380.js.map +1 -0
- package/dist/esm/helpers-db00eae1.js +397 -0
- package/dist/esm/helpers-db00eae1.js.map +1 -0
- package/dist/esm/ic-alert.entry.js +87 -0
- package/dist/esm/ic-alert.entry.js.map +1 -0
- package/dist/esm/ic-back-to-top.entry.js +128 -0
- package/dist/esm/ic-back-to-top.entry.js.map +1 -0
- package/dist/esm/ic-breadcrumb.entry.js +59 -0
- package/dist/esm/ic-breadcrumb.entry.js.map +1 -0
- package/dist/esm/ic-breadcrumbs.entry.js +177 -0
- package/dist/esm/ic-breadcrumbs.entry.js.map +1 -0
- package/dist/esm/ic-button_3.entry.js +426 -0
- package/dist/esm/ic-button_3.entry.js.map +1 -0
- package/dist/esm/ic-card.entry.js +83 -0
- package/dist/esm/ic-card.entry.js.map +1 -0
- package/dist/esm/ic-checkbox-group.entry.js +62 -0
- package/dist/esm/ic-checkbox-group.entry.js.map +1 -0
- package/dist/esm/ic-checkbox.entry.js +68 -0
- package/dist/esm/ic-checkbox.entry.js.map +1 -0
- package/dist/esm/ic-classification-banner.entry.js +38 -0
- package/dist/esm/ic-classification-banner.entry.js.map +1 -0
- package/dist/esm/ic-data-entity.entry.js +27 -0
- package/dist/esm/ic-data-entity.entry.js.map +1 -0
- package/dist/esm/ic-data-row.entry.js +70 -0
- package/dist/esm/ic-data-row.entry.js.map +1 -0
- package/dist/esm/ic-divider.entry.js +25 -0
- package/dist/esm/ic-divider.entry.js.map +1 -0
- package/dist/esm/ic-footer-link-group.entry.js +65 -0
- package/dist/esm/ic-footer-link-group.entry.js.map +1 -0
- package/dist/esm/ic-footer-link.entry.js +55 -0
- package/dist/esm/ic-footer-link.entry.js.map +1 -0
- package/dist/esm/ic-footer.entry.js +83 -0
- package/dist/esm/ic-footer.entry.js.map +1 -0
- package/dist/esm/ic-hero.entry.js +68 -0
- package/dist/esm/ic-hero.entry.js.map +1 -0
- package/dist/esm/ic-input-component-container_3.entry.js +479 -0
- package/dist/esm/ic-input-component-container_3.entry.js.map +1 -0
- package/dist/esm/ic-input-label_2.entry.js +81 -0
- package/dist/esm/ic-input-label_2.entry.js.map +1 -0
- package/dist/esm/ic-link.entry.js +65 -0
- package/dist/esm/ic-link.entry.js.map +1 -0
- package/dist/esm/ic-navigation-button.entry.js +82 -0
- package/dist/esm/ic-navigation-button.entry.js.map +1 -0
- package/dist/esm/ic-navigation-group.entry.js +236 -0
- package/dist/esm/ic-navigation-group.entry.js.map +1 -0
- package/dist/esm/ic-navigation-item.entry.js +142 -0
- package/dist/esm/ic-navigation-item.entry.js.map +1 -0
- package/dist/esm/ic-navigation-menu.entry.js +125 -0
- package/dist/esm/ic-navigation-menu.entry.js.map +1 -0
- package/dist/esm/ic-page-header.entry.js +103 -0
- package/dist/esm/ic-page-header.entry.js.map +1 -0
- package/dist/esm/ic-radio-group.entry.js +99 -0
- package/dist/esm/ic-radio-group.entry.js.map +1 -0
- package/dist/esm/ic-radio-option.entry.js +104 -0
- package/dist/esm/ic-radio-option.entry.js.map +1 -0
- package/dist/esm/ic-search-bar.entry.js +389 -0
- package/dist/esm/ic-search-bar.entry.js.map +1 -0
- package/dist/esm/ic-section-container.entry.js +25 -0
- package/dist/esm/ic-section-container.entry.js.map +1 -0
- package/dist/esm/ic-select.entry.js +162 -0
- package/dist/esm/ic-select.entry.js.map +1 -0
- package/dist/esm/ic-side-navigation.entry.js +380 -0
- package/dist/esm/ic-side-navigation.entry.js.map +1 -0
- package/dist/esm/ic-skeleton.entry.js +55 -0
- package/dist/esm/ic-skeleton.entry.js.map +1 -0
- package/dist/esm/ic-status-tag.entry.js +30 -0
- package/dist/esm/ic-status-tag.entry.js.map +1 -0
- package/dist/esm/ic-step.entry.js +55 -0
- package/dist/esm/ic-step.entry.js.map +1 -0
- package/dist/esm/ic-stepper.entry.js +92 -0
- package/dist/esm/ic-stepper.entry.js.map +1 -0
- package/dist/esm/ic-switch.entry.js +61 -0
- package/dist/esm/ic-switch.entry.js.map +1 -0
- package/dist/esm/ic-tab-context.entry.js +222 -0
- package/dist/esm/ic-tab-context.entry.js.map +1 -0
- package/dist/esm/ic-tab-list.entry.js +141 -0
- package/dist/esm/ic-tab-list.entry.js.map +1 -0
- package/dist/esm/ic-tab-panel.entry.js +29 -0
- package/dist/esm/ic-tab-panel.entry.js.map +1 -0
- package/dist/esm/ic-tab.entry.js +69 -0
- package/dist/esm/ic-tab.entry.js.map +1 -0
- package/dist/esm/ic-text-field.entry.js +199 -0
- package/dist/esm/ic-text-field.entry.js.map +1 -0
- package/dist/esm/ic-theme.entry.js +49 -0
- package/dist/esm/ic-theme.entry.js.map +1 -0
- package/dist/esm/ic-top-navigation.entry.js +203 -0
- package/dist/esm/ic-top-navigation.entry.js.map +1 -0
- package/dist/esm/ic-typography.entry.js +24 -0
- package/dist/esm/ic-typography.entry.js.map +1 -0
- package/dist/esm/index-1500de1f.js +2431 -0
- package/dist/esm/index-1500de1f.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +19 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/popper-f860750c.js +1801 -0
- package/dist/esm/popper-f860750c.js.map +1 -0
- package/dist/esm/success-icon-2f71b115.js +9 -0
- package/dist/esm/success-icon-2f71b115.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/ic-alert/ic-alert.d.ts +44 -0
- package/dist/types/components/ic-alert/ic-alert.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-alert/ic-alert.types.d.ts +1 -0
- package/dist/types/components/ic-back-to-top/ic-back-to-top.d.ts +24 -0
- package/dist/types/components/ic-back-to-top/ic-back-to-top.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.d.ts +26 -0
- package/dist/types/components/ic-breadcrumb/ic-breadcrumb.types.d.ts +1 -0
- package/dist/types/components/ic-breadcrumbs/ic-breadcrumbs-test-examples.d.ts +2 -0
- package/dist/types/components/ic-breadcrumbs/ic-breadcrumbs.d.ts +33 -0
- package/dist/types/components/ic-breadcrumbs/ic-breadcrumbs.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-button/ic-button.d.ts +111 -0
- package/dist/types/components/ic-button/ic-button.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-button/ic-button.types.d.ts +5 -0
- package/dist/types/components/ic-card/ic-card.d.ts +58 -0
- package/dist/types/components/ic-card/ic-card.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-checkbox/ic-checkbox.d.ts +50 -0
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.d.ts +51 -0
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-checkbox-group/ic-checkbox-group.types.d.ts +3 -0
- package/dist/types/components/ic-classification-banner/ic-classification-banner.d.ts +24 -0
- package/dist/types/components/ic-classification-banner/ic-classification-banner.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-classification-banner/ic-classification-banner.types.d.ts +1 -0
- package/dist/types/components/ic-data-entity/ic-data-entity.d.ts +12 -0
- package/dist/types/components/ic-data-entity/ic-data-entity.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-data-row/ic-data-row.d.ts +31 -0
- package/dist/types/components/ic-data-row/ic-data-row.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-divider/ic-divider.d.ts +6 -0
- package/dist/types/components/ic-footer/ic-footer.d.ts +52 -0
- package/dist/types/components/ic-footer/ic-footer.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-footer/ic-footer.types.d.ts +1 -0
- package/dist/types/components/ic-footer-link/ic-footer-link.d.ts +21 -0
- package/dist/types/components/ic-footer-link/ic-footer-link.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-footer-link-group/ic-footer-link-group.d.ts +19 -0
- package/dist/types/components/ic-footer-link-group/ic-footer-link-group.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-hero/ic-hero.d.ts +57 -0
- package/dist/types/components/ic-hero/ic-hero.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-hero/ic-hero.types.d.ts +1 -0
- package/dist/types/components/ic-input-component-container/ic-input-component-container.d.ts +40 -0
- package/dist/types/components/ic-input-container/ic-input-container.d.ts +11 -0
- package/dist/types/components/ic-input-label/ic-input-label.d.ts +36 -0
- package/dist/types/components/ic-input-validation/ic-input-validation.d.ts +30 -0
- package/dist/types/components/ic-input-validation/ic-input-validation.types.d.ts +1 -0
- package/dist/types/components/ic-link/ic-link.d.ts +44 -0
- package/dist/types/components/ic-link/ic-link.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.d.ts +66 -0
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-loading-indicator/ic-loading-indicator.types.d.ts +3 -0
- package/dist/types/components/ic-menu/ic-menu.d.ts +116 -0
- package/dist/types/components/ic-menu/ic-menu.types.d.ts +11 -0
- package/dist/types/components/ic-navigation-button/ic-navigation-button.d.ts +53 -0
- package/dist/types/components/ic-navigation-button/ic-navigation-button.types.d.ts +1 -0
- package/dist/types/components/ic-navigation-group/ic-navigation-group.d.ts +56 -0
- package/dist/types/components/ic-navigation-group/ic-navigation-group.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-navigation-item/ic-navigation-item.d.ts +65 -0
- package/dist/types/components/ic-navigation-item/ic-navigation-item.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-navigation-menu/ic-navigation-menu.d.ts +36 -0
- package/dist/types/components/ic-page-header/ic-page-header.d.ts +55 -0
- package/dist/types/components/ic-page-header/ic-page-header.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-radio-group/ic-radio-group.d.ts +57 -0
- package/dist/types/components/ic-radio-group/ic-radio-group.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-radio-option/ic-radio-option.d.ts +57 -0
- package/dist/types/components/ic-search-bar/ic-search-bar.d.ts +211 -0
- package/dist/types/components/ic-search-bar/ic-search-bar.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-search-bar/ic-search-bar.types.d.ts +4 -0
- package/dist/types/components/ic-section-container/ic-section-container.d.ts +12 -0
- package/dist/types/components/ic-select/ic-select.d.ts +108 -0
- package/dist/types/components/ic-select/ic-select.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-side-navigation/ic-side-navigation-test-examples.d.ts +5 -0
- package/dist/types/components/ic-side-navigation/ic-side-navigation.d.ts +89 -0
- package/dist/types/components/ic-side-navigation/ic-side-navigation.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-side-navigation/ic-side-navigation.types.d.ts +9 -0
- package/dist/types/components/ic-skeleton/ic-skeleton.d.ts +18 -0
- package/dist/types/components/ic-skeleton/ic-skeleton.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-skeleton/ic-skeleton.types.d.ts +1 -0
- package/dist/types/components/ic-status-tag/ic-status-tag.d.ts +21 -0
- package/dist/types/components/ic-status-tag/ic-status-tag.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-status-tag/ic-status-tag.types.d.ts +2 -0
- package/dist/types/components/ic-step/ic-step.d.ts +26 -0
- package/dist/types/components/ic-step/ic-step.types.d.ts +1 -0
- package/dist/types/components/ic-stepper/ic-stepper.d.ts +26 -0
- package/dist/types/components/ic-stepper/ic-stepper.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-stepper/ic-stepper.types.d.ts +1 -0
- package/dist/types/components/ic-switch/ic-switch.d.ts +67 -0
- package/dist/types/components/ic-switch/ic-switch.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-switch/ic-switch.types.d.ts +4 -0
- package/dist/types/components/ic-tab/ic-tab.d.ts +38 -0
- package/dist/types/components/ic-tab/ic-tab.types.d.ts +8 -0
- package/dist/types/components/ic-tab-context/ic-tab-context.d.ts +51 -0
- package/dist/types/components/ic-tab-context/ic-tab-context.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-tab-list/ic-tab-list.d.ts +49 -0
- package/dist/types/components/ic-tab-panel/ic-tab-panel.d.ts +15 -0
- package/dist/types/components/ic-text-field/ic-text-field.d.ts +199 -0
- package/dist/types/components/ic-text-field/ic-text-field.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-text-field/ic-text-field.types.d.ts +3 -0
- package/dist/types/components/ic-theme/ic-theme.d.ts +17 -0
- package/dist/types/components/ic-tooltip/ic-tooltip.d.ts +35 -0
- package/dist/types/components/ic-tooltip/ic-tooltip.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-tooltip/ic-tooltip.types.d.ts +1 -0
- package/dist/types/components/ic-top-navigation/ic-top-navigation.d.ts +79 -0
- package/dist/types/components/ic-top-navigation/ic-top-navigation.test.a11y.d.ts +1 -0
- package/dist/types/components/ic-typography/ic-typography.d.ts +13 -0
- package/dist/types/components/ic-typography/ic-typography.test.a11y.d.ts +1 -0
- package/dist/types/components.d.ts +3276 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/interface.d.ts +15 -0
- package/dist/types/stencil-public-runtime.d.ts +1581 -0
- package/dist/types/testspec.setup.d.ts +3 -0
- package/dist/types/utils/constants.d.ts +14 -0
- package/dist/types/utils/helpers.d.ts +95 -0
- package/dist/types/utils/testa11y.helpers.d.ts +2 -0
- package/dist/types/utils/types.d.ts +53 -0
- package/hydrate/index.d.ts +217 -0
- package/hydrate/index.js +14702 -0
- package/hydrate/package.json +6 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +74 -0
@@ -0,0 +1,100 @@
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
+
import { a as onComponentRequiredPropUndefined } from './helpers.js';
|
3
|
+
import { d as defineCustomElement$2 } from './ic-typography2.js';
|
4
|
+
|
5
|
+
const icTabCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{--indicator-initial-color:rgba(23 89 188 / 0%);--indicator-color:var(--ic-action-default);--focus-indicator:var(--ic-border-focus);--label-color:var(--ic-color-primary-text);--background-color-hover:var(--ic-action-default-bg-hover);--background-color-active:var(--ic-action-default-bg-active);display:flex;align-items:center;border-radius:0;color:var(--label-color);height:40px;padding:0 var(--ic-space-md);cursor:pointer;position:relative;border-bottom:var(--ic-space-xxs) solid var(--indicator-initial-color);gap:var(--ic-space-xs);transition:all var(--ic-easing-transition-fast)}:host(:focus){box-shadow:var(--focus-indicator);border-radius:var(--ic-border-radius)}:host(:focus-visible){outline:none}:host(:hover){background-color:var(--background-color-hover)}:host(:active){background-color:var(--background-color-active)}:host(.ic-tab-dark){--indicator-initial-color:rgb(255 255 255 / 0%);--indicator-color:rgb(255 255 255 / 100%);--focus-indicator:var(--ic-border-focus);--label-color:white;--background-color-hover:var(--ic-action-dark-bg-hover);--background-color-active:var(--ic-action-dark-bg-active)}:host([selected]){border-bottom:var(--ic-space-xxs) solid var(--indicator-color)}:host([disabled]){pointer-events:none;color:var(--ic-architectural-300)}:host([selected].with-transition){transition:all var(--ic-easing-transition-slow),\n border-color var(--ic-transition-duration-slow)}.ic-tab-label{pointer-events:none}::slotted(svg){fill:var(--label-color)}";
|
6
|
+
|
7
|
+
const Tab = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
8
|
+
constructor() {
|
9
|
+
super();
|
10
|
+
this.__registerHost();
|
11
|
+
this.__attachShadow();
|
12
|
+
this.tabClick = createEvent(this, "tabClick", 7);
|
13
|
+
this.tabFocus = createEvent(this, "tabFocus", 7);
|
14
|
+
this.isInitialRender = true;
|
15
|
+
this.focusFromClick = false;
|
16
|
+
this.handleClick = () => {
|
17
|
+
this.tabClick.emit({
|
18
|
+
tabId: this.tabId,
|
19
|
+
contextId: this.contextId,
|
20
|
+
position: this.tabPosition,
|
21
|
+
});
|
22
|
+
if (this.focusFromClick) {
|
23
|
+
this.tabFocus.emit({
|
24
|
+
tabId: this.tabId,
|
25
|
+
contextId: this.contextId,
|
26
|
+
position: this.tabPosition,
|
27
|
+
});
|
28
|
+
this.focusFromClick = false;
|
29
|
+
}
|
30
|
+
};
|
31
|
+
this.handleFocus = () => {
|
32
|
+
if (!this.focusFromClick) {
|
33
|
+
this.tabFocus.emit({
|
34
|
+
tabId: this.tabId,
|
35
|
+
contextId: this.contextId,
|
36
|
+
position: this.tabPosition,
|
37
|
+
});
|
38
|
+
}
|
39
|
+
};
|
40
|
+
this.handleMouseDown = () => {
|
41
|
+
//set flag so that focus gets handled after click
|
42
|
+
//there is a timing issue where a long click only causes focus to happen & not the click
|
43
|
+
//the focus does need to be a seperate event though to handle focus from keyboard
|
44
|
+
this.focusFromClick = true;
|
45
|
+
};
|
46
|
+
this.contextId = "default";
|
47
|
+
this.disabled = false;
|
48
|
+
this.selected = false;
|
49
|
+
this.tabId = undefined;
|
50
|
+
this.tabPosition = undefined;
|
51
|
+
this.dark = false;
|
52
|
+
}
|
53
|
+
componentDidUpdate() {
|
54
|
+
this.isInitialRender = false;
|
55
|
+
}
|
56
|
+
componentDidLoad() {
|
57
|
+
onComponentRequiredPropUndefined([{ prop: this.tabPosition, propName: "tab-position" }], "Tab");
|
58
|
+
}
|
59
|
+
render() {
|
60
|
+
const { disabled, selected, dark } = this;
|
61
|
+
return (h(Host, { class: {
|
62
|
+
["with-transition"]: !this.isInitialRender,
|
63
|
+
["ic-tab-dark"]: dark,
|
64
|
+
}, role: "tab", "aria-selected": selected ? "true" : "false", onClick: this.handleClick, onFocus: this.handleFocus, onMouseDown: this.handleMouseDown, "aria-disabled": disabled ? "true" : "false", tabindex: this.selected ? 0 : -1 }, this.host.querySelector('[slot="icon"]') && h("slot", { name: "icon" }), h("ic-typography", { class: "ic-tab-label", variant: "label" }, h("span", null, h("slot", null)))));
|
65
|
+
}
|
66
|
+
get host() { return this; }
|
67
|
+
static get style() { return icTabCss; }
|
68
|
+
}, [1, "ic-tab", {
|
69
|
+
"contextId": [513, "context-id"],
|
70
|
+
"disabled": [4],
|
71
|
+
"selected": [516],
|
72
|
+
"tabId": [513, "tab-id"],
|
73
|
+
"tabPosition": [2, "tab-position"],
|
74
|
+
"dark": [4]
|
75
|
+
}]);
|
76
|
+
function defineCustomElement$1() {
|
77
|
+
if (typeof customElements === "undefined") {
|
78
|
+
return;
|
79
|
+
}
|
80
|
+
const components = ["ic-tab", "ic-typography"];
|
81
|
+
components.forEach(tagName => { switch (tagName) {
|
82
|
+
case "ic-tab":
|
83
|
+
if (!customElements.get(tagName)) {
|
84
|
+
customElements.define(tagName, Tab);
|
85
|
+
}
|
86
|
+
break;
|
87
|
+
case "ic-typography":
|
88
|
+
if (!customElements.get(tagName)) {
|
89
|
+
defineCustomElement$2();
|
90
|
+
}
|
91
|
+
break;
|
92
|
+
} });
|
93
|
+
}
|
94
|
+
|
95
|
+
const IcTab = Tab;
|
96
|
+
const defineCustomElement = defineCustomElement$1;
|
97
|
+
|
98
|
+
export { IcTab, defineCustomElement };
|
99
|
+
|
100
|
+
//# sourceMappingURL=ic-tab.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"ic-tab.js","mappings":";;;;AAAA,MAAM,QAAQ,GAAG,00HAA00H;;MCqB90H,GAAG;;;;;;;IAiCN,oBAAe,GAAY,IAAI,CAAC;IAChC,mBAAc,GAAY,KAAK,CAAC;IAEhC,gBAAW,GAAG;MACpB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;QACjB,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,QAAQ,EAAE,IAAI,CAAC,WAAW;OAC3B,CAAC,CAAC;MACH,IAAI,IAAI,CAAC,cAAc,EAAE;QACvB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;UACjB,KAAK,EAAE,IAAI,CAAC,KAAK;UACjB,SAAS,EAAE,IAAI,CAAC,SAAS;UACzB,QAAQ,EAAE,IAAI,CAAC,WAAW;SAC3B,CAAC,CAAC;QACH,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;OAC7B;KACF,CAAC;IAEM,gBAAW,GAAG;MACpB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;QACxB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;UACjB,KAAK,EAAE,IAAI,CAAC,KAAK;UACjB,SAAS,EAAE,IAAI,CAAC,SAAS;UACzB,QAAQ,EAAE,IAAI,CAAC,WAAW;SAC3B,CAAC,CAAC;OACJ;KACF,CAAC;IAEM,oBAAe,GAAG;;;;MAIxB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;KAC5B,CAAC;qBA/D4C,SAAS;oBAK1B,KAAK;oBAGY,KAAK;;;gBAS1B,KAAK;;EAgD9B,kBAAkB;IAChB,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;GAC9B;EAED,gBAAgB;IACd,gCAAgC,CAC9B,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC,EACtD,KAAK,CACN,CAAC;GACH;EAED,MAAM;IACJ,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;IAC1C,QACE,EAAC,IAAI,IACH,KAAK,EAAE;QACL,CAAC,iBAAiB,GAAG,CAAC,IAAI,CAAC,eAAe;QAC1C,CAAC,aAAa,GAAG,IAAI;OACtB,EACD,IAAI,EAAC,KAAK,mBACK,QAAQ,GAAG,MAAM,GAAG,OAAO,EAC1C,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,WAAW,EAAE,IAAI,CAAC,eAAe,mBAClB,QAAQ,GAAG,MAAM,GAAG,OAAO,EAC1C,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,CAAC,GAAG,CAAC,CAAC,IAE/B,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,IAAI,YAAM,IAAI,EAAC,MAAM,GAAQ,EACtE,qBAAe,KAAK,EAAC,cAAc,EAAC,OAAO,EAAC,OAAO,IACjD,gBACE,eAAa,CACR,CACO,CACX,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["./src/components/ic-tab/ic-tab.css?tag=ic-tab&encapsulation=shadow","./src/components/ic-tab/ic-tab.tsx"],"sourcesContent":["@import \"../../global/normalise.css\";\n\n:host {\n --indicator-initial-color: rgba(23 89 188 / 0%);\n --indicator-color: var(--ic-action-default);\n --focus-indicator: var(--ic-border-focus);\n --label-color: var(--ic-color-primary-text);\n --background-color-hover: var(--ic-action-default-bg-hover);\n --background-color-active: var(--ic-action-default-bg-active);\n\n display: flex;\n align-items: center;\n border-radius: 0;\n color: var(--label-color);\n height: 40px;\n padding: 0 var(--ic-space-md);\n cursor: pointer;\n position: relative;\n border-bottom: var(--ic-space-xxs) solid var(--indicator-initial-color);\n gap: var(--ic-space-xs);\n transition: all var(--ic-easing-transition-fast);\n}\n\n:host(:focus) {\n box-shadow: var(--focus-indicator);\n border-radius: var(--ic-border-radius);\n}\n\n:host(:focus-visible) {\n outline: none;\n}\n\n:host(:hover) {\n background-color: var(--background-color-hover);\n}\n\n:host(:active) {\n background-color: var(--background-color-active);\n}\n\n:host(.ic-tab-dark) {\n --indicator-initial-color: rgb(255 255 255 / 0%);\n --indicator-color: rgb(255 255 255 / 100%);\n --focus-indicator: var(--ic-border-focus);\n --label-color: white;\n --background-color-hover: var(--ic-action-dark-bg-hover);\n --background-color-active: var(--ic-action-dark-bg-active);\n}\n\n:host([selected]) {\n border-bottom: var(--ic-space-xxs) solid var(--indicator-color);\n}\n\n:host([disabled]) {\n pointer-events: none;\n color: var(--ic-architectural-300);\n}\n\n:host([selected].with-transition) {\n transition: all var(--ic-easing-transition-slow),\n border-color var(--ic-transition-duration-slow);\n}\n\n.ic-tab-label {\n pointer-events: none;\n}\n\n::slotted(svg) {\n fill: var(--label-color);\n}\n","import {\n Component,\n Element,\n Event,\n EventEmitter,\n Host,\n Prop,\n h,\n} from \"@stencil/core\";\nimport { onComponentRequiredPropUndefined } from \"../../utils/helpers\";\n\nimport { IcTabClickEventDetail } from \"./ic-tab.types\";\n\n/**\n * @slot icon - Content will be rendered next to the tab label.\n */\n@Component({\n tag: \"ic-tab\",\n styleUrl: \"ic-tab.css\",\n shadow: true,\n})\nexport class Tab {\n @Element() host: HTMLIcTabElement;\n\n /** @internal Provide a unique context if using multiple tabs inside one another i.e. rendering another tabs inside a tab panel. */\n @Prop({ reflect: true }) contextId?: string = \"default\";\n\n /**\n * Disables the tab.\n */\n @Prop() disabled?: boolean = false;\n\n /** @internal Will display a selected indicator and set tabIndex. */\n @Prop({ reflect: true }) selected?: boolean = false;\n\n /** @internal The shared ID between panel and tab. */\n @Prop({ reflect: true }) tabId?: string;\n\n /** @internal The position of the tab inside the tabs array in context. */\n @Prop() tabPosition!: number;\n\n /** @internal Determines whether the dark variant of the tabs should be displayed. */\n @Prop() dark?: boolean = false;\n\n /**\n * Called when a tab is selected.\n */\n @Event() tabClick: EventEmitter<IcTabClickEventDetail>;\n\n /**\n * @internal Called when a tab is focussed.\n */\n @Event() tabFocus: EventEmitter<IcTabClickEventDetail>;\n\n private isInitialRender: boolean = true;\n private focusFromClick: boolean = false;\n\n private handleClick = () => {\n this.tabClick.emit({\n tabId: this.tabId,\n contextId: this.contextId,\n position: this.tabPosition,\n });\n if (this.focusFromClick) {\n this.tabFocus.emit({\n tabId: this.tabId,\n contextId: this.contextId,\n position: this.tabPosition,\n });\n this.focusFromClick = false;\n }\n };\n\n private handleFocus = () => {\n if (!this.focusFromClick) {\n this.tabFocus.emit({\n tabId: this.tabId,\n contextId: this.contextId,\n position: this.tabPosition,\n });\n }\n };\n\n private handleMouseDown = () => {\n //set flag so that focus gets handled after click\n //there is a timing issue where a long click only causes focus to happen & not the click\n //the focus does need to be a seperate event though to handle focus from keyboard\n this.focusFromClick = true;\n };\n\n componentDidUpdate(): void {\n this.isInitialRender = false;\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.tabPosition, propName: \"tab-position\" }],\n \"Tab\"\n );\n }\n\n render() {\n const { disabled, selected, dark } = this;\n return (\n <Host\n class={{\n [\"with-transition\"]: !this.isInitialRender,\n [\"ic-tab-dark\"]: dark,\n }}\n role=\"tab\"\n aria-selected={selected ? \"true\" : \"false\"}\n onClick={this.handleClick}\n onFocus={this.handleFocus}\n onMouseDown={this.handleMouseDown}\n aria-disabled={disabled ? \"true\" : \"false\"}\n tabindex={this.selected ? 0 : -1}\n >\n {this.host.querySelector('[slot=\"icon\"]') && <slot name=\"icon\"></slot>}\n <ic-typography class=\"ic-tab-label\" variant=\"label\">\n <span>\n <slot></slot>\n </span>\n </ic-typography>\n </Host>\n );\n }\n}\n"],"version":3}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
2
|
+
|
3
|
+
interface IcTextField extends Components.IcTextField, HTMLElement {}
|
4
|
+
export const IcTextField: {
|
5
|
+
prototype: IcTextField;
|
6
|
+
new (): IcTextField;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* Used to define this component and all nested components recursively.
|
10
|
+
*/
|
11
|
+
export const defineCustomElement: () => void;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"ic-text-field.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
@@ -0,0 +1,282 @@
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
+
import { w as IcInformationStatus, t as debounceEvent, k as inheritAttributes, a as onComponentRequiredPropUndefined, d as getInputDescribedByText, r as renderHiddenInput, G as isEmptyString, l as IC_INHERITED_ARIA } from './helpers.js';
|
3
|
+
import { d as defineCustomElement$5 } from './ic-input-component-container2.js';
|
4
|
+
import { d as defineCustomElement$4 } from './ic-input-container2.js';
|
5
|
+
import { d as defineCustomElement$3 } from './ic-input-label2.js';
|
6
|
+
import { d as defineCustomElement$2 } from './ic-input-validation2.js';
|
7
|
+
import { d as defineCustomElement$1 } from './ic-typography2.js';
|
8
|
+
|
9
|
+
const icTextFieldCss = "/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button}button::-moz-focus-inner,[type=\"button\"]::-moz-focus-inner,[type=\"reset\"]::-moz-focus-inner,[type=\"submit\"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=\"button\"]:-moz-focusring,[type=\"reset\"]:-moz-focusring,[type=\"submit\"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=\"checkbox\"],[type=\"radio\"]{box-sizing:border-box;padding:0;}[type=\"number\"]::-webkit-inner-spin-button,[type=\"number\"]::-webkit-outer-spin-button{height:auto}[type=\"search\"]{-webkit-appearance:textfield;outline-offset:-2px;}[type=\"search\"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}:host{display:block}::-moz-placeholder{color:var(--ic-color-tertiary-text);opacity:1}::placeholder{color:var(--ic-color-tertiary-text);opacity:1}input,textarea{border:0;border-radius:var(--ic-border-radius);background-color:var(--ic-architectural-white);line-height:1.5rem;letter-spacing:0.005rem;width:100%;padding-right:var(--ic-space-xs);padding-left:var(--ic-space-xs)}textarea{min-height:var(--ic-space-lg);resize:vertical;padding-top:6px}input:focus,textarea:focus{border:0;outline:0}input:disabled,textarea:disabled{color:var(--ic-architectural-200)}input.readonly,textarea.readonly{color:var(--ic-color-primary-text)}.fullwidth{position:relative;width:100%}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=\"number\"]{-moz-appearance:textfield}textarea.no-resize{resize:none}.maxlengthtext{color:var(--ic-color-secondary-text)}.exceeded{color:var(--ic-status-error)}.disabled{color:var(--ic-architectural-200)}.no-left-pad{padding-left:0}::slotted([slot=\"icon\"]){fill:var(--ic-color-tertiary-text)}.has-value ::slotted([slot=\"icon\"]){fill:var(--ic-color-primary-text)}.charcount{margin-right:calc(-1 * var(--ic-space-xxxs))}input[type=\"search\"]::-webkit-search-cancel-button,input[type=\"search\"]::-webkit-search-decoration,input[type=\"search\"]::-webkit-search-results-button,input[type=\"search\"]::-webkit-search-results-decoration{display:none}input[type=\"search\"].truncate-value{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}";
|
10
|
+
|
11
|
+
let inputIds = 0;
|
12
|
+
const TextField = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
13
|
+
constructor() {
|
14
|
+
super();
|
15
|
+
this.__registerHost();
|
16
|
+
this.__attachShadow();
|
17
|
+
this.icKeydown = createEvent(this, "icKeydown", 7);
|
18
|
+
this.icInput = createEvent(this, "icInput", 7);
|
19
|
+
this.icBlur = createEvent(this, "icBlur", 7);
|
20
|
+
this.icFocus = createEvent(this, "icFocus", 7);
|
21
|
+
this.icChange = createEvent(this, "icChange", 7);
|
22
|
+
this.inheritedAttributes = {};
|
23
|
+
this.showLeftIcon = this.hasLeftIconSlot();
|
24
|
+
this.onInput = (ev) => {
|
25
|
+
this.value = ev.target.value;
|
26
|
+
this.icInput.emit({ value: this.value });
|
27
|
+
};
|
28
|
+
this.onBlur = (ev) => {
|
29
|
+
const value = ev.target.value;
|
30
|
+
this.icBlur.emit({ value: value });
|
31
|
+
};
|
32
|
+
this.onFocus = (ev) => {
|
33
|
+
const value = ev.target.value;
|
34
|
+
this.icFocus.emit({ value: value });
|
35
|
+
};
|
36
|
+
this.isTextArea = () => {
|
37
|
+
return this.rows > 1;
|
38
|
+
};
|
39
|
+
this.hasStatus = (status) => {
|
40
|
+
return status !== "" && !this.disabled;
|
41
|
+
};
|
42
|
+
this.showStatusText = (status) => {
|
43
|
+
if (this.hasStatus(status) &&
|
44
|
+
!(status == IcInformationStatus.Success && this.validationInline)) {
|
45
|
+
return true;
|
46
|
+
}
|
47
|
+
return false;
|
48
|
+
};
|
49
|
+
this.inputId = `ic-text-field-input-${inputIds++}`;
|
50
|
+
this.label = undefined;
|
51
|
+
this.required = false;
|
52
|
+
this.disabled = false;
|
53
|
+
this.readonly = false;
|
54
|
+
this.placeholder = "";
|
55
|
+
this.fullWidth = false;
|
56
|
+
this.hideLabel = false;
|
57
|
+
this.helperText = "";
|
58
|
+
this.rows = 1;
|
59
|
+
this.resize = false;
|
60
|
+
this.dense = false;
|
61
|
+
this.value = "";
|
62
|
+
this.maxLength = 0;
|
63
|
+
this.validationStatus = "";
|
64
|
+
this.validationText = "";
|
65
|
+
this.validationInline = false;
|
66
|
+
this.autocapitalize = "off";
|
67
|
+
this.autocomplete = "off";
|
68
|
+
this.autocorrect = "off";
|
69
|
+
this.autoFocus = false;
|
70
|
+
this.debounce = 0;
|
71
|
+
this.dark = false;
|
72
|
+
this.type = "text";
|
73
|
+
this.inputmode = "text";
|
74
|
+
this.name = this.inputId;
|
75
|
+
this.spellcheck = false;
|
76
|
+
this.ariaActiveDescendant = undefined;
|
77
|
+
this.truncateValue = undefined;
|
78
|
+
this.ariaExpanded = undefined;
|
79
|
+
this.ariaOwns = undefined;
|
80
|
+
this.ariaAutocomplete = undefined;
|
81
|
+
this.role = undefined;
|
82
|
+
this.hiddenInput = true;
|
83
|
+
this.numChars = 0;
|
84
|
+
this.maxLengthExceeded = false;
|
85
|
+
}
|
86
|
+
debounceChanged() {
|
87
|
+
this.icChange = debounceEvent(this.icChange, this.debounce);
|
88
|
+
}
|
89
|
+
watchValueHandler(newValue) {
|
90
|
+
if (this.inputEl && this.inputEl.value !== newValue) {
|
91
|
+
this.inputEl.value = newValue;
|
92
|
+
}
|
93
|
+
if (this.maxLength > 0) {
|
94
|
+
this.numChars = newValue.length;
|
95
|
+
if (newValue.length > this.maxLength) {
|
96
|
+
this.maxLengthExceeded = true;
|
97
|
+
}
|
98
|
+
else {
|
99
|
+
this.maxLengthExceeded = false;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
this.icChange.emit({ value: newValue });
|
103
|
+
}
|
104
|
+
/**
|
105
|
+
* Sets focus on the native `input`
|
106
|
+
*/
|
107
|
+
async setFocus() {
|
108
|
+
if (this.inputEl) {
|
109
|
+
this.inputEl.focus();
|
110
|
+
}
|
111
|
+
}
|
112
|
+
//stop keydown event bubbling up to storybook
|
113
|
+
handleKeyDown(ev) {
|
114
|
+
this.icKeydown.emit({ event: ev });
|
115
|
+
ev.cancelBubble = true;
|
116
|
+
}
|
117
|
+
hasLeftIconSlot() {
|
118
|
+
const iconEl = this.el.querySelector(`[slot="icon"]`);
|
119
|
+
if (iconEl != null) {
|
120
|
+
return true;
|
121
|
+
}
|
122
|
+
return false;
|
123
|
+
}
|
124
|
+
connectedCallback() {
|
125
|
+
this.debounceChanged();
|
126
|
+
}
|
127
|
+
componentWillLoad() {
|
128
|
+
this.watchValueHandler(this.value);
|
129
|
+
this.inheritedAttributes = inheritAttributes(this.el, [
|
130
|
+
...IC_INHERITED_ARIA,
|
131
|
+
"title",
|
132
|
+
"aria-autocomplete",
|
133
|
+
"aria-haspopup",
|
134
|
+
]);
|
135
|
+
if (this.readonly) {
|
136
|
+
this.maxLengthExceeded = false;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
componentDidLoad() {
|
140
|
+
onComponentRequiredPropUndefined([{ prop: this.label, propName: "label" }], "Text Field");
|
141
|
+
}
|
142
|
+
render() {
|
143
|
+
const { dark, inputId, name, label, required, dense, placeholder, helperText, rows, resize, disabled, value, maxLength, numChars, readonly, maxLengthExceeded, validationStatus, validationText, validationInline, spellcheck, inputmode, fullWidth, truncateValue, hiddenInput, } = this;
|
144
|
+
const disabledMode = readonly ? true : disabled;
|
145
|
+
const placeholderText = disabled ? "" : placeholder;
|
146
|
+
const currentStatus = maxLengthExceeded
|
147
|
+
? IcInformationStatus.Error
|
148
|
+
: validationStatus;
|
149
|
+
const currentValidationText = maxLengthExceeded
|
150
|
+
? "Maximum length exceeded"
|
151
|
+
: validationText;
|
152
|
+
const maxNumChars = readonly ? 0 : maxLength;
|
153
|
+
const messageAriaLive = maxLengthExceeded ||
|
154
|
+
(maxLength === 0 && currentStatus === IcInformationStatus.Error)
|
155
|
+
? "assertive"
|
156
|
+
: "polite";
|
157
|
+
const showStatusText = this.showStatusText(currentStatus);
|
158
|
+
const multiline = this.isTextArea();
|
159
|
+
const hiddenCharCountDescId = maxLength > 0 ? inputId + "-charcount-desc" : "";
|
160
|
+
const describedBy = (hiddenCharCountDescId +
|
161
|
+
" " +
|
162
|
+
getInputDescribedByText(inputId, helperText !== "", showStatusText)).trim();
|
163
|
+
if (this.showLeftIcon) {
|
164
|
+
if (!readonly && disabledMode) {
|
165
|
+
this.showLeftIcon = false;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
const invalid = currentStatus === IcInformationStatus.Error ? "true" : "false";
|
169
|
+
const disabledText = disabledMode && !readonly;
|
170
|
+
if (hiddenInput) {
|
171
|
+
renderHiddenInput(true, this.el, name, value, disabledMode);
|
172
|
+
}
|
173
|
+
return (h(Host, { class: { ["fullwidth"]: fullWidth } }, h("ic-input-container", { readonly: readonly, disabled: disabledMode }, !this.hideLabel && (h("ic-input-label", { for: inputId, label: label, helperText: helperText, required: required, disabled: disabledText, readonly: readonly, dark: dark })), h("ic-input-component-container", { dark: dark, dense: dense, validationStatus: currentStatus, multiLine: multiline, disabled: disabledMode, readonly: readonly, validationInline: validationInline, fullWidth: fullWidth }, this.showLeftIcon && (h("span", { class: {
|
174
|
+
["readonly"]: readonly,
|
175
|
+
["has-value"]: value.length > 0,
|
176
|
+
}, slot: "left-icon" }, h("slot", { name: "icon" }))), !multiline && (h("input", Object.assign({ id: inputId, name: name, ref: (el) => (this.inputEl = el), type: this.type, value: value, class: {
|
177
|
+
["no-left-pad"]: !this.showLeftIcon && readonly,
|
178
|
+
["readonly"]: readonly,
|
179
|
+
["truncate-value"]: truncateValue,
|
180
|
+
}, placeholder: placeholderText, required: required, disabled: disabledMode, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, "aria-activedescendant": this.ariaActiveDescendant, "aria-expanded": this.ariaExpanded, "aria-owns": this.ariaOwns, autocomplete: this.autocomplete, autocapitalize: this.autocapitalize, autoFocus: this.autoFocus, spellcheck: spellcheck, inputmode: inputmode, role: this.role }, this.inheritedAttributes))), multiline && (h("textarea", Object.assign({ id: inputId, class: {
|
181
|
+
["no-resize"]: resize === false || readonly,
|
182
|
+
["no-left-pad"]: !this.showLeftIcon && readonly,
|
183
|
+
["readonly"]: readonly,
|
184
|
+
}, name: name, ref: (el) => (this.inputEl = el), value: value, rows: rows, required: required, disabled: disabledMode, placeholder: placeholderText, readonly: readonly, onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, "aria-label": label, "aria-describedby": describedBy, "aria-invalid": invalid, autocapitalize: this.autocapitalize, autoFocus: this.autoFocus, spellcheck: spellcheck, inputmode: inputmode }, this.inheritedAttributes))), h("slot", { name: "clear-button" }), h("slot", { name: "search-submit-button" })), h("slot", { name: "menu" }), (!isEmptyString(validationStatus) ||
|
185
|
+
!isEmptyString(validationText) ||
|
186
|
+
maxNumChars > 0) && (h("ic-input-validation", { status: this.hasStatus(currentStatus) === false ||
|
187
|
+
(currentStatus === IcInformationStatus.Success &&
|
188
|
+
validationInline)
|
189
|
+
? ""
|
190
|
+
: currentStatus, message: showStatusText ? currentValidationText : "", ariaLiveMode: messageAriaLive, for: inputId, fullWidth: fullWidth }, !readonly && maxNumChars > 0 && (h("div", { slot: "validation-message-adornment" }, h("ic-typography", { variant: "caption", class: {
|
191
|
+
["maxlengthtext"]: true,
|
192
|
+
["exceeded"]: maxLengthExceeded,
|
193
|
+
["disabled"]: disabledText,
|
194
|
+
} }, h("span", { "aria-live": "polite", id: `${inputId}-charcount`, class: "charcount" }, numChars, "/", maxNumChars), h("span", { hidden: true, id: hiddenCharCountDescId }, "Field can contain a maximum of ", maxNumChars, " characters.")))))))));
|
195
|
+
}
|
196
|
+
get el() { return this; }
|
197
|
+
static get watchers() { return {
|
198
|
+
"debounce": ["debounceChanged"],
|
199
|
+
"value": ["watchValueHandler"]
|
200
|
+
}; }
|
201
|
+
static get style() { return icTextFieldCss; }
|
202
|
+
}, [1, "ic-text-field", {
|
203
|
+
"inputId": [1, "input-id"],
|
204
|
+
"label": [1],
|
205
|
+
"required": [4],
|
206
|
+
"disabled": [4],
|
207
|
+
"readonly": [4],
|
208
|
+
"placeholder": [1],
|
209
|
+
"fullWidth": [4, "full-width"],
|
210
|
+
"hideLabel": [4, "hide-label"],
|
211
|
+
"helperText": [1, "helper-text"],
|
212
|
+
"rows": [2],
|
213
|
+
"resize": [4],
|
214
|
+
"dense": [4],
|
215
|
+
"value": [1537],
|
216
|
+
"maxLength": [2, "max-length"],
|
217
|
+
"validationStatus": [1, "validation-status"],
|
218
|
+
"validationText": [1, "validation-text"],
|
219
|
+
"validationInline": [4, "validation-inline"],
|
220
|
+
"autocapitalize": [1],
|
221
|
+
"autocomplete": [1],
|
222
|
+
"autocorrect": [1],
|
223
|
+
"autoFocus": [4, "auto-focus"],
|
224
|
+
"debounce": [2],
|
225
|
+
"dark": [4],
|
226
|
+
"type": [1],
|
227
|
+
"inputmode": [1],
|
228
|
+
"name": [1],
|
229
|
+
"spellcheck": [4],
|
230
|
+
"ariaActiveDescendant": [1, "aria-active-descendant"],
|
231
|
+
"truncateValue": [4, "truncate-value"],
|
232
|
+
"ariaExpanded": [1, "aria-expanded"],
|
233
|
+
"ariaOwns": [1, "aria-owns"],
|
234
|
+
"ariaAutocomplete": [1, "aria-autocomplete"],
|
235
|
+
"role": [1],
|
236
|
+
"hiddenInput": [4, "hidden-input"],
|
237
|
+
"numChars": [32],
|
238
|
+
"maxLengthExceeded": [32],
|
239
|
+
"setFocus": [64]
|
240
|
+
}, [[0, "keydown", "handleKeyDown"]]]);
|
241
|
+
function defineCustomElement() {
|
242
|
+
if (typeof customElements === "undefined") {
|
243
|
+
return;
|
244
|
+
}
|
245
|
+
const components = ["ic-text-field", "ic-input-component-container", "ic-input-container", "ic-input-label", "ic-input-validation", "ic-typography"];
|
246
|
+
components.forEach(tagName => { switch (tagName) {
|
247
|
+
case "ic-text-field":
|
248
|
+
if (!customElements.get(tagName)) {
|
249
|
+
customElements.define(tagName, TextField);
|
250
|
+
}
|
251
|
+
break;
|
252
|
+
case "ic-input-component-container":
|
253
|
+
if (!customElements.get(tagName)) {
|
254
|
+
defineCustomElement$5();
|
255
|
+
}
|
256
|
+
break;
|
257
|
+
case "ic-input-container":
|
258
|
+
if (!customElements.get(tagName)) {
|
259
|
+
defineCustomElement$4();
|
260
|
+
}
|
261
|
+
break;
|
262
|
+
case "ic-input-label":
|
263
|
+
if (!customElements.get(tagName)) {
|
264
|
+
defineCustomElement$3();
|
265
|
+
}
|
266
|
+
break;
|
267
|
+
case "ic-input-validation":
|
268
|
+
if (!customElements.get(tagName)) {
|
269
|
+
defineCustomElement$2();
|
270
|
+
}
|
271
|
+
break;
|
272
|
+
case "ic-typography":
|
273
|
+
if (!customElements.get(tagName)) {
|
274
|
+
defineCustomElement$1();
|
275
|
+
}
|
276
|
+
break;
|
277
|
+
} });
|
278
|
+
}
|
279
|
+
|
280
|
+
export { TextField as T, defineCustomElement as d };
|
281
|
+
|
282
|
+
//# sourceMappingURL=ic-text-field2.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"ic-text-field2.js","mappings":";;;;;;;;AAAA,MAAM,cAAc,GAAG,63HAA63H;;ACoCp5H,IAAI,QAAQ,GAAG,CAAC,CAAC;MAUJ,SAAS;;;;;;;;;;IAIZ,wBAAmB,GAA6B,EAAE,CAAC;IA4HnD,iBAAY,GAAY,IAAI,CAAC,eAAe,EAAE,CAAC;IA6G/C,YAAO,GAAG,CAAC,EAAS;MAC1B,IAAI,CAAC,KAAK,GAAI,EAAE,CAAC,MAA2B,CAAC,KAAK,CAAC;MACnD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;KAC1C,CAAC;IAMM,WAAM,GAAG,CAAC,EAAS;MACzB,MAAM,KAAK,GAAI,EAAE,CAAC,MAA2B,CAAC,KAAK,CAAC;MACpD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;KACpC,CAAC;IAMM,YAAO,GAAG,CAAC,EAAS;MAC1B,MAAM,KAAK,GAAI,EAAE,CAAC,MAA2B,CAAC,KAAK,CAAC;MACpD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;KACrC,CAAC;IAOM,eAAU,GAAG;MACnB,OAAO,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;KACtB,CAAC;IAUM,cAAS,GAAG,CAAC,MAAkC;MACrD,OAAO,MAAM,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;KACxC,CAAC;IAEM,mBAAc,GAAG,CAAC,MAAkC;MAC1D,IAC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adow","./src/components/ic-text-field/ic-text-field.tsx"],"sourcesContent":["@import \"../../global/normalise.css\";\n\n:host {\n /**\n * @prop --input-width: Width of the input field \n */\n display: block;\n}\n\n::placeholder {\n color: var(--ic-color-tertiary-text);\n opacity: 1;\n}\n\ninput,\ntextarea {\n border: 0;\n border-radius: var(--ic-border-radius);\n background-color: var(--ic-architectural-white);\n line-height: 1.5rem;\n letter-spacing: 0.005rem;\n width: 100%;\n padding-right: var(--ic-space-xs);\n padding-left: var(--ic-space-xs);\n}\n\ntextarea {\n min-height: var(--ic-space-lg);\n resize: vertical;\n padding-top: 6px;\n}\n\ninput:focus,\ntextarea:focus {\n border: 0;\n outline: 0;\n}\n\ninput:disabled,\ntextarea:disabled {\n color: var(--ic-architectural-200);\n}\n\ninput.readonly,\ntextarea.readonly {\n color: var(--ic-color-primary-text);\n}\n\n.fullwidth {\n position: relative;\n width: 100%;\n}\n\n/* Chrome, Safari, Edge */\ninput::-webkit-outer-spin-button,\ninput::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n\n/* Firefox */\ninput[type=\"number\"] {\n -moz-appearance: textfield;\n}\n\ntextarea.no-resize {\n resize: none;\n}\n\n.maxlengthtext {\n color: var(--ic-color-secondary-text);\n}\n\n.exceeded {\n color: var(--ic-status-error);\n}\n\n.disabled {\n color: var(--ic-architectural-200);\n}\n\n.no-left-pad {\n padding-left: 0;\n}\n\n::slotted([slot=\"icon\"]) {\n fill: var(--ic-color-tertiary-text);\n}\n\n.has-value ::slotted([slot=\"icon\"]) {\n fill: var(--ic-color-primary-text);\n}\n\n.charcount {\n margin-right: calc(-1 * var(--ic-space-xxxs));\n}\n\ninput[type=\"search\"]::-webkit-search-cancel-button,\ninput[type=\"search\"]::-webkit-search-decoration,\ninput[type=\"search\"]::-webkit-search-results-button,\ninput[type=\"search\"]::-webkit-search-results-decoration {\n display: none;\n}\n\ninput[type=\"search\"].truncate-value {\n width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n","import {\n Component,\n Element,\n Event,\n EventEmitter,\n Host,\n Listen,\n Prop,\n State,\n Watch,\n Method,\n h,\n} from \"@stencil/core\";\n\nimport {\n IcAutocompleteTypes,\n IcAutocorrectStates,\n IcInformationStatusOrEmpty,\n IcValueEventDetail,\n} from \"../../interface\";\nimport { IcInformationStatus } from \"../../utils/types\";\nimport {\n inheritAttributes,\n debounceEvent,\n getInputDescribedByText,\n renderHiddenInput,\n isEmptyString,\n onComponentRequiredPropUndefined,\n} from \"../../utils/helpers\";\nimport { IC_INHERITED_ARIA } from \"../../utils/constants\";\nimport {\n IcAriaAutocompleteTypes,\n IcTextFieldInputModes,\n IcTextFieldTypes,\n} from \"./ic-text-field.types\";\n\nlet inputIds = 0;\n\n/**\n * @slot icon - Content will be placed to the left of the text input.\n */\n@Component({\n tag: \"ic-text-field\",\n styleUrl: \"ic-text-field.css\",\n shadow: true,\n})\nexport class TextField {\n @Element() el: HTMLIcTextFieldElement;\n\n private inputEl: HTMLInputElement | HTMLTextAreaElement;\n private inheritedAttributes: { [k: string]: unknown } = {};\n\n /**\n * @slot clear-button - an ic-button clear component will render as an end adornment to the input\n * @slot search-submit-button - an ic-button search submit component will render as an end adornment to the input\n * @slot menu - an ic-menu component will appear below the input\n */\n\n /**\n * Provide an id for the input\n */\n @Prop() inputId?: string = `ic-text-field-input-${inputIds++}`;\n\n /**\n * Provide a label for the input.\n */\n @Prop() label!: string;\n\n /**\n * Specify if the input requires a value.\n */\n @Prop() required: boolean = false;\n /**\n * Specify whether the input is disabled.\n */\n @Prop() disabled: boolean = false;\n\n /**\n * Specify whether the input is read only.\n */\n @Prop() readonly: boolean = false;\n\n /**\n * Provide a placeholder value to display.\n */\n @Prop() placeholder: string = \"\";\n\n /**\n * Specify whether the component fills the full width of the container.\n * If true, this overrides the --input-width css prop.\n */\n @Prop() fullWidth: boolean = false;\n\n /**\n * Hides the label and applies the required label value as an aria-label.\n */\n @Prop() hideLabel: boolean = false;\n\n /**\n * Provide helper text to display additional field guidance.\n */\n @Prop() helperText: string = \"\";\n\n /**\n * Specify the number of rows to transform the text field into a text area with a specific height.\n */\n @Prop() rows: number = 1;\n\n /**\n * Allow resizing of a multiline text area\n */\n @Prop() resize: boolean = false;\n\n /**\n * Specify whether dense styling is to be applied to the element.\n */\n @Prop() dense: boolean = false;\n\n /**\n * Value of TextField.\n */\n @Prop({ reflect: true, mutable: true }) value: string = \"\";\n\n /**\n * Maximum number of characters that can be entered in the field.\n */\n @Prop() maxLength: number = 0;\n\n /**\n * Provide validation state - 'error' | 'warning' | 'success'\n */\n @Prop() validationStatus: IcInformationStatusOrEmpty = \"\";\n\n /**\n * Provide validation state - 'error' | 'warning' | 'success'\n */\n @Prop() validationText: string = \"\";\n\n /**\n * Show icon in input control - only applies when validationStatus ='success'\n */\n @Prop() validationInline: boolean = false;\n\n /**\n * Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.\n * Available options: \"off\", \"none\", \"on\", \"sentences\", \"words\", \"characters\".\n */\n @Prop() autocapitalize = \"off\";\n\n /**\n * Indicates whether the value of the control can be automatically completed by the browser.\n */\n @Prop() autocomplete: IcAutocompleteTypes = \"off\";\n\n /**\n * Whether auto correction should be enabled when the user is entering/editing the text value.\n */\n @Prop() autocorrect: IcAutocorrectStates = \"off\";\n\n /**\n * This Boolean attribute lets you specify that a form control should have input focus when the page loads.\n */\n @Prop() autoFocus = false;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger the `icChange` event after each keystroke.\n */\n @Prop() debounce: number = 0;\n\n /**\n * Determines whether the dark variant of the text field should be displayed.\n */\n @Prop() dark?: boolean = false;\n\n private showLeftIcon: boolean = this.hasLeftIconSlot();\n\n @Watch(\"debounce\")\n private debounceChanged() {\n this.icChange = debounceEvent(this.icChange, this.debounce);\n }\n\n /**\n * The type of control to display. The default type is text.\n */\n @Prop() type: IcTextFieldTypes = \"text\";\n\n /**\n * A hint to the browser for which keyboard to display.\n * Possible values: `\"none\"`, `\"text\"`, `\"tel\"`, `\"url\"`,\n * `\"email\"`, `\"numeric\"`, `\"decimal\"`, and `\"search\"`.\n */\n @Prop() inputmode: IcTextFieldInputModes = \"text\";\n\n /**\n * The name of the control, which is submitted with the form data.\n */\n @Prop() name: string = this.inputId;\n\n /**\n * If `true`, the element will have its spelling and grammar checked.\n */\n @Prop() spellcheck: boolean = false;\n\n /**\n * @internal Used to identify the active element when focus is on the ic-menu items\n */\n @Prop() ariaActiveDescendant?: string;\n /**\n * @internal This boolean sets an ellipsis at the end of the value if the value is longer than the container\n */\n @Prop() truncateValue?: boolean;\n\n /**\n * @internal Used to identify if the slotted menu is rendered\n */\n @Prop() ariaExpanded: string;\n\n /**\n * @internal Used to identify any related child component\n */\n @Prop() ariaOwns: string;\n\n /**\n * @internal Used to identify whether inputting any text triggers more predictions\n */\n @Prop() ariaAutocomplete: IcAriaAutocompleteTypes = undefined;\n\n /**\n * @internal Used to set the role if not default textbox;\n */\n @Prop() role: string;\n\n /**\n * @internal Used to stop rendering of hidden form input for form submission;\n */\n @Prop() hiddenInput: boolean = true;\n\n @State() numChars: number = 0;\n @State() maxLengthExceeded: boolean = false;\n\n @Watch(\"value\")\n watchValueHandler(newValue: string): void {\n if (this.inputEl && this.inputEl.value !== newValue) {\n this.inputEl.value = newValue;\n }\n\n if (this.maxLength > 0) {\n this.numChars = newValue.length;\n if (newValue.length > this.maxLength) {\n this.maxLengthExceeded = true;\n } else {\n this.maxLengthExceeded = false;\n }\n }\n this.icChange.emit({ value: newValue });\n }\n\n /**\n * Sets focus on the native `input`\n */\n @Method()\n async setFocus(): Promise<void> {\n if (this.inputEl) {\n this.inputEl.focus();\n }\n }\n\n //stop keydown event bubbling up to storybook\n @Listen(\"keydown\", {})\n handleKeyDown(ev: KeyboardEvent): void {\n this.icKeydown.emit({ event: ev });\n ev.cancelBubble = true;\n }\n\n /**\n * Emitted when a keydown event occurred.\n */\n @Event() icKeydown: EventEmitter<{ event: KeyboardEvent }>;\n\n /**\n * Emitted when a keyboard input occurred.\n */\n @Event() icInput: EventEmitter<IcValueEventDetail>;\n private onInput = (ev: Event) => {\n this.value = (ev.target as HTMLInputElement).value;\n this.icInput.emit({ value: this.value });\n };\n\n /**\n * Emitted when input loses focus.\n */\n @Event() icBlur: EventEmitter<IcValueEventDetail>;\n private onBlur = (ev: Event) => {\n const value = (ev.target as HTMLInputElement).value;\n this.icBlur.emit({ value: value });\n };\n\n /**\n * Emitted when input gains focus.\n */\n @Event() icFocus: EventEmitter<IcValueEventDetail>;\n private onFocus = (ev: Event) => {\n const value = (ev.target as HTMLInputElement).value;\n this.icFocus.emit({ value: value });\n };\n\n /**\n * Emitted when the value has changed.\n */\n @Event() icChange: EventEmitter<IcValueEventDetail>;\n\n private isTextArea = (): boolean => {\n return this.rows > 1;\n };\n\n private hasLeftIconSlot(): boolean {\n const iconEl = this.el.querySelector(`[slot=\"icon\"]`);\n if (iconEl != null) {\n return true;\n }\n return false;\n }\n\n private hasStatus = (status: IcInformationStatusOrEmpty): boolean => {\n return status !== \"\" && !this.disabled;\n };\n\n private showStatusText = (status: IcInformationStatusOrEmpty): boolean => {\n if (\n this.hasStatus(status) &&\n !(status == IcInformationStatus.Success && this.validationInline)\n ) {\n return true;\n }\n return false;\n };\n\n connectedCallback(): void {\n this.debounceChanged();\n }\n\n componentWillLoad(): void {\n this.watchValueHandler(this.value);\n\n this.inheritedAttributes = inheritAttributes(this.el, [\n ...IC_INHERITED_ARIA,\n \"title\",\n \"aria-autocomplete\",\n \"aria-haspopup\",\n ]);\n\n if (this.readonly) {\n this.maxLengthExceeded = false;\n }\n }\n\n componentDidLoad(): void {\n onComponentRequiredPropUndefined(\n [{ prop: this.label, propName: \"label\" }],\n \"Text Field\"\n );\n }\n\n render() {\n const {\n dark,\n inputId,\n name,\n label,\n required,\n dense,\n placeholder,\n helperText,\n rows,\n resize,\n disabled,\n value,\n maxLength,\n numChars,\n readonly,\n maxLengthExceeded,\n validationStatus,\n validationText,\n validationInline,\n spellcheck,\n inputmode,\n fullWidth,\n truncateValue,\n hiddenInput,\n } = this;\n\n const disabledMode = readonly ? true : disabled;\n\n const placeholderText = disabled ? \"\" : placeholder;\n\n const currentStatus = maxLengthExceeded\n ? IcInformationStatus.Error\n : validationStatus;\n\n const currentValidationText = maxLengthExceeded\n ? \"Maximum length exceeded\"\n : validationText;\n\n const maxNumChars = readonly ? 0 : maxLength;\n\n const messageAriaLive =\n maxLengthExceeded ||\n (maxLength === 0 && currentStatus === IcInformationStatus.Error)\n ? \"assertive\"\n : \"polite\";\n\n const showStatusText = this.showStatusText(currentStatus);\n const multiline = this.isTextArea();\n const hiddenCharCountDescId =\n maxLength > 0 ? inputId + \"-charcount-desc\" : \"\";\n const describedBy = (\n hiddenCharCountDescId +\n \" \" +\n getInputDescribedByText(inputId, helperText !== \"\", showStatusText)\n ).trim();\n\n if (this.showLeftIcon) {\n if (!readonly && disabledMode) {\n this.showLeftIcon = false;\n }\n }\n\n const invalid =\n currentStatus === IcInformationStatus.Error ? \"true\" : \"false\";\n const disabledText = disabledMode && !readonly;\n\n if (hiddenInput) {\n renderHiddenInput(true, this.el, name, value, disabledMode);\n }\n\n return (\n <Host class={{ [\"fullwidth\"]: fullWidth }}>\n <ic-input-container readonly={readonly} disabled={disabledMode}>\n {!this.hideLabel && (\n <ic-input-label\n for={inputId}\n label={label}\n helperText={helperText}\n required={required}\n disabled={disabledText}\n readonly={readonly}\n dark={dark}\n ></ic-input-label>\n )}\n\n <ic-input-component-container\n dark={dark}\n dense={dense}\n validationStatus={currentStatus}\n multiLine={multiline}\n disabled={disabledMode}\n readonly={readonly}\n validationInline={validationInline}\n fullWidth={fullWidth}\n >\n {this.showLeftIcon && (\n <span\n class={{\n [\"readonly\"]: readonly,\n [\"has-value\"]: value.length > 0,\n }}\n slot=\"left-icon\"\n >\n <slot name=\"icon\" />\n </span>\n )}\n\n {!multiline && (\n <input\n id={inputId}\n name={name}\n ref={(el) => (this.inputEl = el as HTMLInputElement)}\n type={this.type}\n value={value}\n class={{\n [\"no-left-pad\"]: !this.showLeftIcon && readonly,\n [\"readonly\"]: readonly,\n [\"truncate-value\"]: truncateValue,\n }}\n placeholder={placeholderText}\n required={required}\n disabled={disabledMode}\n readonly={readonly}\n onInput={this.onInput}\n onBlur={this.onBlur}\n onFocus={this.onFocus}\n aria-label={label}\n aria-describedby={describedBy}\n aria-invalid={invalid}\n aria-activedescendant={this.ariaActiveDescendant}\n aria-expanded={this.ariaExpanded}\n aria-owns={this.ariaOwns}\n autocomplete={this.autocomplete}\n autocapitalize={this.autocapitalize}\n autoFocus={this.autoFocus}\n spellcheck={spellcheck}\n inputmode={inputmode}\n role={this.role}\n {...this.inheritedAttributes}\n ></input>\n )}\n {multiline && (\n <textarea\n id={inputId}\n class={{\n [\"no-resize\"]: resize === false || readonly,\n [\"no-left-pad\"]: !this.showLeftIcon && readonly,\n [\"readonly\"]: readonly,\n }}\n name={name}\n ref={(el) => (this.inputEl = el as HTMLTextAreaElement)}\n value={value}\n rows={rows}\n required={required}\n disabled={disabledMode}\n placeholder={placeholderText}\n readonly={readonly}\n onInput={this.onInput}\n onBlur={this.onBlur}\n onFocus={this.onFocus}\n aria-label={label}\n aria-describedby={describedBy}\n aria-invalid={invalid}\n autocapitalize={this.autocapitalize}\n autoFocus={this.autoFocus}\n spellcheck={spellcheck}\n inputmode={inputmode}\n {...this.inheritedAttributes}\n ></textarea>\n )}\n <slot name=\"clear-button\"></slot>\n <slot name=\"search-submit-button\"></slot>\n </ic-input-component-container>\n <slot name=\"menu\"></slot>\n {(!isEmptyString(validationStatus) ||\n !isEmptyString(validationText) ||\n maxNumChars > 0) && (\n <ic-input-validation\n status={\n this.hasStatus(currentStatus) === false ||\n (currentStatus === IcInformationStatus.Success &&\n validationInline)\n ? \"\"\n : currentStatus\n }\n message={showStatusText ? currentValidationText : \"\"}\n ariaLiveMode={messageAriaLive}\n for={inputId}\n fullWidth={fullWidth}\n >\n {!readonly && maxNumChars > 0 && (\n <div slot=\"validation-message-adornment\">\n <ic-typography\n variant=\"caption\"\n class={{\n [\"maxlengthtext\"]: true,\n [\"exceeded\"]: maxLengthExceeded,\n [\"disabled\"]: disabledText,\n }}\n >\n <span\n aria-live=\"polite\"\n id={`${inputId}-charcount`}\n class=\"charcount\"\n >\n {numChars}/{maxNumChars}\n </span>\n <span hidden={true} id={hiddenCharCountDescId}>\n Field can contain a maximum of {maxNumChars} characters.\n </span>\n </ic-typography>\n </div>\n )}\n </ic-input-validation>\n )}\n </ic-input-container>\n </Host>\n );\n }\n}\n"],"version":3}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
2
|
+
|
3
|
+
interface IcTheme extends Components.IcTheme, HTMLElement {}
|
4
|
+
export const IcTheme: {
|
5
|
+
prototype: IcTheme;
|
6
|
+
new (): IcTheme;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* Used to define this component and all nested components recursively.
|
10
|
+
*/
|
11
|
+
export const defineCustomElement: () => void;
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
+
import { z as hexToRgb, A as rgbStrToObj, f as getThemeForegroundColor } from './helpers.js';
|
3
|
+
|
4
|
+
const Theme = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
5
|
+
constructor() {
|
6
|
+
super();
|
7
|
+
this.__registerHost();
|
8
|
+
this.__attachShadow();
|
9
|
+
this.icThemeChange = createEvent(this, "icThemeChange", 7);
|
10
|
+
this.setThemeColor = () => {
|
11
|
+
if (this.color !== null) {
|
12
|
+
let colorRGB = null;
|
13
|
+
const firstChar = this.color.slice(0, 1);
|
14
|
+
if (firstChar === "#") {
|
15
|
+
colorRGB = hexToRgb(this.color);
|
16
|
+
}
|
17
|
+
else if (firstChar.toLowerCase() === "r") {
|
18
|
+
colorRGB = rgbStrToObj(this.color);
|
19
|
+
}
|
20
|
+
this.setThemeRGB(colorRGB);
|
21
|
+
}
|
22
|
+
};
|
23
|
+
this.setThemeRGB = (colorRGB) => {
|
24
|
+
if (colorRGB !== null) {
|
25
|
+
const root = document.documentElement;
|
26
|
+
root.style.setProperty("--ic-theme-primary-r", colorRGB.r.toString());
|
27
|
+
root.style.setProperty("--ic-theme-primary-g", colorRGB.g.toString());
|
28
|
+
root.style.setProperty("--ic-theme-primary-b", colorRGB.b.toString());
|
29
|
+
const foregroundColor = getThemeForegroundColor();
|
30
|
+
this.icThemeChange.emit({ mode: foregroundColor, color: colorRGB });
|
31
|
+
}
|
32
|
+
};
|
33
|
+
this.color = null;
|
34
|
+
}
|
35
|
+
watchColorPropHandler() {
|
36
|
+
this.setThemeColor();
|
37
|
+
}
|
38
|
+
componentWillLoad() {
|
39
|
+
this.setThemeColor();
|
40
|
+
}
|
41
|
+
render() {
|
42
|
+
return h(Host, null);
|
43
|
+
}
|
44
|
+
static get watchers() { return {
|
45
|
+
"color": ["watchColorPropHandler"]
|
46
|
+
}; }
|
47
|
+
}, [1, "ic-theme", {
|
48
|
+
"color": [1]
|
49
|
+
}]);
|
50
|
+
function defineCustomElement$1() {
|
51
|
+
if (typeof customElements === "undefined") {
|
52
|
+
return;
|
53
|
+
}
|
54
|
+
const components = ["ic-theme"];
|
55
|
+
components.forEach(tagName => { switch (tagName) {
|
56
|
+
case "ic-theme":
|
57
|
+
if (!customElements.get(tagName)) {
|
58
|
+
customElements.define(tagName, Theme);
|
59
|
+
}
|
60
|
+
break;
|
61
|
+
} });
|
62
|
+
}
|
63
|
+
|
64
|
+
const IcTheme = Theme;
|
65
|
+
const defineCustomElement = defineCustomElement$1;
|
66
|
+
|
67
|
+
export { IcTheme, defineCustomElement };
|
68
|
+
|
69
|
+
//# sourceMappingURL=ic-theme.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"ic-theme.js","mappings":";;;MAqBa,KAAK;;;;;;IAgBR,kBAAa,GAAG;MACtB,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE;QACvB,IAAI,QAAQ,GAAG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ources":["./src/components/ic-theme/ic-theme.tsx"],"sourcesContent":["import {\n Component,\n Host,\n Event,\n EventEmitter,\n h,\n Watch,\n Prop,\n} from \"@stencil/core\";\n\nimport { IcColorRGB, IcTheme } from \"../../utils/types\";\nimport {\n getThemeForegroundColor,\n hexToRgb,\n rgbStrToObj,\n} from \"../../utils/helpers\";\n\n@Component({\n tag: \"ic-theme\",\n shadow: true,\n})\nexport class Theme {\n /**\n * The theme colour. Can be a hex value eg \"#ff0000\" or RGB eg \"rgb(255, 0, 0)\"\n */\n @Prop() color?: string = null;\n\n @Watch(\"color\")\n watchColorPropHandler(): void {\n this.setThemeColor();\n }\n\n /**\n * Emitted when the theme is changed.\n */\n @Event() icThemeChange: EventEmitter<IcTheme>;\n\n private setThemeColor = () => {\n if (this.color !== null) {\n let colorRGB = null;\n const firstChar = this.color.slice(0, 1);\n if (firstChar === \"#\") {\n colorRGB = hexToRgb(this.color);\n } else if (firstChar.toLowerCase() === \"r\") {\n colorRGB = rgbStrToObj(this.color);\n }\n this.setThemeRGB(colorRGB);\n }\n };\n\n private setThemeRGB = (colorRGB: IcColorRGB) => {\n if (colorRGB !== null) {\n const root = document.documentElement;\n root.style.setProperty(\"--ic-theme-primary-r\", colorRGB.r.toString());\n root.style.setProperty(\"--ic-theme-primary-g\", colorRGB.g.toString());\n root.style.setProperty(\"--ic-theme-primary-b\", colorRGB.b.toString());\n const foregroundColor = getThemeForegroundColor();\n this.icThemeChange.emit({ mode: foregroundColor, color: colorRGB });\n }\n };\n\n componentWillLoad(): void {\n this.setThemeColor();\n }\n\n render() {\n return <Host></Host>;\n }\n}\n"],"version":3}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
2
|
+
|
3
|
+
interface IcTooltip extends Components.IcTooltip, HTMLElement {}
|
4
|
+
export const IcTooltip: {
|
5
|
+
prototype: IcTooltip;
|
6
|
+
new (): IcTooltip;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* Used to define this component and all nested components recursively.
|
10
|
+
*/
|
11
|
+
export const defineCustomElement: () => void;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"ic-tooltip.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|