@cscfi/csc-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +54 -0
- package/dist/cjs/c-accordion-item.cjs.entry.js +118 -0
- package/dist/cjs/c-accordion-item.cjs.entry.js.map +1 -0
- package/dist/cjs/c-accordion.cjs.entry.js +68 -0
- package/dist/cjs/c-accordion.cjs.entry.js.map +1 -0
- package/dist/cjs/c-alert.cjs.entry.js +30 -0
- package/dist/cjs/c-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/c-autocomplete.cjs.entry.js +263 -0
- package/dist/cjs/c-autocomplete.cjs.entry.js.map +1 -0
- package/dist/cjs/c-badge_12.cjs.entry.js +442 -0
- package/dist/cjs/c-badge_12.cjs.entry.js.map +1 -0
- package/dist/cjs/c-card-actions.cjs.entry.js +28 -0
- package/dist/cjs/c-card-actions.cjs.entry.js.map +1 -0
- package/dist/cjs/c-card-content.cjs.entry.js +21 -0
- package/dist/cjs/c-card-content.cjs.entry.js.map +1 -0
- package/dist/cjs/c-card-title.cjs.entry.js +21 -0
- package/dist/cjs/c-card-title.cjs.entry.js.map +1 -0
- package/dist/cjs/c-checkbox_2.cjs.entry.js +342 -0
- package/dist/cjs/c-checkbox_2.cjs.entry.js.map +1 -0
- package/dist/cjs/c-data-table.cjs.entry.js +701 -0
- package/dist/cjs/c-data-table.cjs.entry.js.map +1 -0
- package/dist/cjs/c-dropdown_4.cjs.entry.js +837 -0
- package/dist/cjs/c-dropdown_4.cjs.entry.js.map +1 -0
- package/dist/cjs/c-link.cjs.entry.js +31 -0
- package/dist/cjs/c-link.cjs.entry.js.map +1 -0
- package/dist/cjs/c-list-item-title.cjs.entry.js +26 -0
- package/dist/cjs/c-list-item-title.cjs.entry.js.map +1 -0
- package/dist/cjs/c-list-item.cjs.entry.js +83 -0
- package/dist/cjs/c-list-item.cjs.entry.js.map +1 -0
- package/dist/cjs/c-list.cjs.entry.js +45 -0
- package/dist/cjs/c-list.cjs.entry.js.map +1 -0
- package/dist/cjs/c-loader.cjs.entry.js +39 -0
- package/dist/cjs/c-loader.cjs.entry.js.map +1 -0
- package/dist/cjs/c-login-button.cjs.entry.js +25 -0
- package/dist/cjs/c-login-button.cjs.entry.js.map +1 -0
- package/dist/cjs/c-login-buttons.cjs.entry.js +21 -0
- package/dist/cjs/c-login-buttons.cjs.entry.js.map +1 -0
- package/dist/cjs/c-login-card-actions.cjs.entry.js +20 -0
- package/dist/cjs/c-login-card-actions.cjs.entry.js.map +1 -0
- package/dist/cjs/c-login-card-content.cjs.entry.js +21 -0
- package/dist/cjs/c-login-card-content.cjs.entry.js.map +1 -0
- package/dist/cjs/c-login-card-title.cjs.entry.js +21 -0
- package/dist/cjs/c-login-card-title.cjs.entry.js.map +1 -0
- package/dist/cjs/c-login-card.cjs.entry.js +66 -0
- package/dist/cjs/c-login-card.cjs.entry.js.map +1 -0
- package/dist/cjs/c-menu_2.cjs.entry.js +354 -0
- package/dist/cjs/c-menu_2.cjs.entry.js.map +1 -0
- package/dist/cjs/c-modal.cjs.entry.js +108 -0
- package/dist/cjs/c-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/c-navigation-button.cjs.entry.js +22 -0
- package/dist/cjs/c-navigation-button.cjs.entry.js.map +1 -0
- package/dist/cjs/c-option-value.cjs.entry.js +21 -0
- package/dist/cjs/c-option-value.cjs.entry.js.map +1 -0
- package/dist/cjs/c-option.cjs.entry.js +25 -0
- package/dist/cjs/c-option.cjs.entry.js.map +1 -0
- package/dist/cjs/c-otp-input.cjs.entry.js +154 -0
- package/dist/cjs/c-otp-input.cjs.entry.js.map +1 -0
- package/dist/cjs/c-page.cjs.entry.js +31 -0
- package/dist/cjs/c-page.cjs.entry.js.map +1 -0
- package/dist/cjs/c-progress-bar.cjs.entry.js +59 -0
- package/dist/cjs/c-progress-bar.cjs.entry.js.map +1 -0
- package/dist/cjs/c-radio-group.cjs.entry.js +154 -0
- package/dist/cjs/c-radio-group.cjs.entry.js.map +1 -0
- package/dist/cjs/c-radio.cjs.entry.js +24 -0
- package/dist/cjs/c-radio.cjs.entry.js.map +1 -0
- package/dist/cjs/c-select.cjs.entry.js +331 -0
- package/dist/cjs/c-select.cjs.entry.js.map +1 -0
- package/dist/cjs/c-side-navigation-item.cjs.entry.js +121 -0
- package/dist/cjs/c-side-navigation-item.cjs.entry.js.map +1 -0
- package/dist/cjs/c-side-navigation-title.cjs.entry.js +21 -0
- package/dist/cjs/c-side-navigation-title.cjs.entry.js.map +1 -0
- package/dist/cjs/c-side-navigation.cjs.entry.js +71 -0
- package/dist/cjs/c-side-navigation.cjs.entry.js.map +1 -0
- package/dist/cjs/c-status.cjs.entry.js +23 -0
- package/dist/cjs/c-status.cjs.entry.js.map +1 -0
- package/dist/cjs/c-step.cjs.entry.js +27 -0
- package/dist/cjs/c-step.cjs.entry.js.map +1 -0
- package/dist/cjs/c-steps.cjs.entry.js +78 -0
- package/dist/cjs/c-steps.cjs.entry.js.map +1 -0
- package/dist/cjs/c-sub-navigation-item.cjs.entry.js +51 -0
- package/dist/cjs/c-sub-navigation-item.cjs.entry.js.map +1 -0
- package/dist/cjs/c-swiper-tab.cjs.entry.js +47 -0
- package/dist/cjs/c-swiper-tab.cjs.entry.js.map +1 -0
- package/dist/cjs/c-swiper.cjs.entry.js +4187 -0
- package/dist/cjs/c-swiper.cjs.entry.js.map +1 -0
- package/dist/cjs/c-switch.cjs.entry.js +71 -0
- package/dist/cjs/c-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/c-tab-buttons.cjs.entry.js +133 -0
- package/dist/cjs/c-tab-buttons.cjs.entry.js.map +1 -0
- package/dist/cjs/c-tab-item.cjs.entry.js +40 -0
- package/dist/cjs/c-tab-item.cjs.entry.js.map +1 -0
- package/dist/cjs/c-tab-items.cjs.entry.js +81 -0
- package/dist/cjs/c-tab-items.cjs.entry.js.map +1 -0
- package/dist/cjs/c-tab.cjs.entry.js +59 -0
- package/dist/cjs/c-tab.cjs.entry.js.map +1 -0
- package/dist/cjs/c-table.cjs.entry.js +47 -0
- package/dist/cjs/c-table.cjs.entry.js.map +1 -0
- package/dist/cjs/c-tabs.cjs.entry.js +423 -0
- package/dist/cjs/c-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/c-tag.cjs.entry.js +45 -0
- package/dist/cjs/c-tag.cjs.entry.js.map +1 -0
- package/dist/cjs/c-tags.cjs.entry.js +21 -0
- package/dist/cjs/c-tags.cjs.entry.js.map +1 -0
- package/dist/cjs/c-text-field.cjs.entry.js +151 -0
- package/dist/cjs/c-text-field.cjs.entry.js.map +1 -0
- package/dist/cjs/c-toast.cjs.entry.js +73 -0
- package/dist/cjs/c-toast.cjs.entry.js.map +1 -0
- package/dist/cjs/c-toasts.cjs.entry.js +80 -0
- package/dist/cjs/c-toasts.cjs.entry.js.map +1 -0
- package/dist/cjs/csc-ui.cjs.js +25 -0
- package/dist/cjs/csc-ui.cjs.js.map +1 -0
- package/dist/cjs/index-3cad12b5.js +2605 -0
- package/dist/cjs/index-3cad12b5.js.map +1 -0
- package/dist/cjs/index-72dca436.js +23 -0
- package/dist/cjs/index-72dca436.js.map +1 -0
- package/dist/cjs/index.cjs.js +28 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/mdi-16842afc.js +46 -0
- package/dist/cjs/mdi-16842afc.js.map +1 -0
- package/dist/collection/collection-manifest.json +81 -0
- package/dist/collection/components/c-accordion/c-accordion.css +26 -0
- package/dist/collection/components/c-accordion/c-accordion.js +172 -0
- package/dist/collection/components/c-accordion/c-accordion.js.map +1 -0
- package/dist/collection/components/c-accordion/test/c-accordion.e2e.js +140 -0
- package/dist/collection/components/c-accordion/test/c-accordion.e2e.js.map +1 -0
- package/dist/collection/components/c-accordion/test/c-accordion.spec.js +72 -0
- package/dist/collection/components/c-accordion/test/c-accordion.spec.js.map +1 -0
- package/dist/collection/components/c-accordion/test/c-accordion.visual.js +52 -0
- package/dist/collection/components/c-accordion/test/c-accordion.visual.js.map +1 -0
- package/dist/collection/components/c-accordion-item/c-accordion-item.css +130 -0
- package/dist/collection/components/c-accordion-item/c-accordion-item.js +251 -0
- package/dist/collection/components/c-accordion-item/c-accordion-item.js.map +1 -0
- package/dist/collection/components/c-alert/c-alert.css +62 -0
- package/dist/collection/components/c-alert/c-alert.js +57 -0
- package/dist/collection/components/c-alert/c-alert.js.map +1 -0
- package/dist/collection/components/c-alert/test/c-alert.spec.js +54 -0
- package/dist/collection/components/c-alert/test/c-alert.spec.js.map +1 -0
- package/dist/collection/components/c-alert/test/c-alert.visual.js +24 -0
- package/dist/collection/components/c-alert/test/c-alert.visual.js.map +1 -0
- package/dist/collection/components/c-autocomplete/c-autocomplete.css +207 -0
- package/dist/collection/components/c-autocomplete/c-autocomplete.js +808 -0
- package/dist/collection/components/c-autocomplete/c-autocomplete.js.map +1 -0
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.e2e.js +35 -0
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.e2e.js.map +1 -0
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js +31 -0
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js.map +1 -0
- package/dist/collection/components/c-badge/c-badge.css +46 -0
- package/dist/collection/components/c-badge/c-badge.js +19 -0
- package/dist/collection/components/c-badge/c-badge.js.map +1 -0
- package/dist/collection/components/c-badge/test/c-badge.e2e.js +10 -0
- package/dist/collection/components/c-badge/test/c-badge.e2e.js.map +1 -0
- package/dist/collection/components/c-badge/test/c-badge.spec.js +18 -0
- package/dist/collection/components/c-badge/test/c-badge.spec.js.map +1 -0
- package/dist/collection/components/c-button/c-button.css +565 -0
- package/dist/collection/components/c-button/c-button.js +511 -0
- package/dist/collection/components/c-button/c-button.js.map +1 -0
- package/dist/collection/components/c-button/test/c-button.spec.js +207 -0
- package/dist/collection/components/c-button/test/c-button.spec.js.map +1 -0
- package/dist/collection/components/c-button/test/c-button.visual.js +98 -0
- package/dist/collection/components/c-button/test/c-button.visual.js.map +1 -0
- package/dist/collection/components/c-card/assets/puhti.gif +0 -0
- package/dist/collection/components/c-card/c-card.css +47 -0
- package/dist/collection/components/c-card/c-card.js +138 -0
- package/dist/collection/components/c-card/c-card.js.map +1 -0
- package/dist/collection/components/c-card/test/c-card.e2e.js +17 -0
- package/dist/collection/components/c-card/test/c-card.e2e.js.map +1 -0
- package/dist/collection/components/c-card/test/c-card.spec.js +142 -0
- package/dist/collection/components/c-card/test/c-card.spec.js.map +1 -0
- package/dist/collection/components/c-card/test/c-card.visual.js +18 -0
- package/dist/collection/components/c-card/test/c-card.visual.js.map +1 -0
- package/dist/collection/components/c-card-actions/c-card-actions.css +65 -0
- package/dist/collection/components/c-card-actions/c-card-actions.js +68 -0
- package/dist/collection/components/c-card-actions/c-card-actions.js.map +1 -0
- package/dist/collection/components/c-card-actions/test/c-card-actions.spec.js +115 -0
- package/dist/collection/components/c-card-actions/test/c-card-actions.spec.js.map +1 -0
- package/dist/collection/components/c-card-content/c-card-content.css +31 -0
- package/dist/collection/components/c-card-content/c-card-content.js +19 -0
- package/dist/collection/components/c-card-content/c-card-content.js.map +1 -0
- package/dist/collection/components/c-card-title/c-card-title.css +41 -0
- package/dist/collection/components/c-card-title/c-card-title.js +19 -0
- package/dist/collection/components/c-card-title/c-card-title.js.map +1 -0
- package/dist/collection/components/c-checkbox/c-checkbox.css +178 -0
- package/dist/collection/components/c-checkbox/c-checkbox.js +391 -0
- package/dist/collection/components/c-checkbox/c-checkbox.js.map +1 -0
- package/dist/collection/components/c-checkbox/test/c-checkbox.e2e.js +60 -0
- package/dist/collection/components/c-checkbox/test/c-checkbox.e2e.js.map +1 -0
- package/dist/collection/components/c-checkbox/test/c-checkbox.spec.js +40 -0
- package/dist/collection/components/c-checkbox/test/c-checkbox.spec.js.map +1 -0
- package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js +22 -0
- package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js.map +1 -0
- package/dist/collection/components/c-csc-logo/c-csc-logo.css +38 -0
- package/dist/collection/components/c-csc-logo/c-csc-logo.js +45 -0
- package/dist/collection/components/c-csc-logo/c-csc-logo.js.map +1 -0
- package/dist/collection/components/c-data-table/c-data-table.css +379 -0
- package/dist/collection/components/c-data-table/c-data-table.js +1163 -0
- package/dist/collection/components/c-data-table/c-data-table.js.map +1 -0
- package/dist/collection/components/c-data-table/test/c-data-table.e2e.js +125 -0
- package/dist/collection/components/c-data-table/test/c-data-table.e2e.js.map +1 -0
- package/dist/collection/components/c-data-table/test/c-data-table.spec.js +107 -0
- package/dist/collection/components/c-data-table/test/c-data-table.spec.js.map +1 -0
- package/dist/collection/components/c-data-table/test/c-data-table.visual.js +31 -0
- package/dist/collection/components/c-data-table/test/c-data-table.visual.js.map +1 -0
- package/dist/collection/components/c-data-table/test/data/index.js +104 -0
- package/dist/collection/components/c-data-table/test/data/index.js.map +1 -0
- package/dist/collection/components/c-dropdown/c-dropdown.css +99 -0
- package/dist/collection/components/c-dropdown/c-dropdown.js +778 -0
- package/dist/collection/components/c-dropdown/c-dropdown.js.map +1 -0
- package/dist/collection/components/c-dropdowns/c-dropdowns.css +24 -0
- package/dist/collection/components/c-dropdowns/c-dropdowns.js +66 -0
- package/dist/collection/components/c-dropdowns/c-dropdowns.js.map +1 -0
- package/dist/collection/components/c-icon/c-icon.css +29 -0
- package/dist/collection/components/c-icon/c-icon.js +85 -0
- package/dist/collection/components/c-icon/c-icon.js.map +1 -0
- package/dist/collection/components/c-icon/test/c-icon.spec.js +12 -0
- package/dist/collection/components/c-icon/test/c-icon.spec.js.map +1 -0
- package/dist/collection/components/c-icon-button/c-icon-button.css +685 -0
- package/dist/collection/components/c-icon-button/c-icon-button.js +238 -0
- package/dist/collection/components/c-icon-button/c-icon-button.js.map +1 -0
- package/dist/collection/components/c-icon-button/test/c-icon-button.spec.js +82 -0
- package/dist/collection/components/c-icon-button/test/c-icon-button.spec.js.map +1 -0
- package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js +22 -0
- package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js.map +1 -0
- package/dist/collection/components/c-input/c-input.css +287 -0
- package/dist/collection/components/c-input/c-input.js +960 -0
- package/dist/collection/components/c-input/c-input.js.map +1 -0
- package/dist/collection/components/c-link/c-link.css +54 -0
- package/dist/collection/components/c-link/c-link.js +107 -0
- package/dist/collection/components/c-link/c-link.js.map +1 -0
- package/dist/collection/components/c-link/test/c-link.spec.js +75 -0
- package/dist/collection/components/c-link/test/c-link.spec.js.map +1 -0
- package/dist/collection/components/c-link/test/c-link.visual.js +14 -0
- package/dist/collection/components/c-link/test/c-link.visual.js.map +1 -0
- package/dist/collection/components/c-list/c-list.css +22 -0
- package/dist/collection/components/c-list/c-list.js +69 -0
- package/dist/collection/components/c-list/c-list.js.map +1 -0
- package/dist/collection/components/c-list-item/c-list-item.css +90 -0
- package/dist/collection/components/c-list-item/c-list-item.js +218 -0
- package/dist/collection/components/c-list-item/c-list-item.js.map +1 -0
- package/dist/collection/components/c-list-item-title/c-list-item-title.css +33 -0
- package/dist/collection/components/c-list-item-title/c-list-item-title.js +48 -0
- package/dist/collection/components/c-list-item-title/c-list-item-title.js.map +1 -0
- package/dist/collection/components/c-loader/c-loader.css +101 -0
- package/dist/collection/components/c-loader/c-loader.js +118 -0
- package/dist/collection/components/c-loader/c-loader.js.map +1 -0
- package/dist/collection/components/c-loader/test/c-loader.e2e.js +16 -0
- package/dist/collection/components/c-loader/test/c-loader.e2e.js.map +1 -0
- package/dist/collection/components/c-loader/test/c-loader.spec.js +28 -0
- package/dist/collection/components/c-loader/test/c-loader.spec.js.map +1 -0
- package/dist/collection/components/c-login-button/c-login-button.css +79 -0
- package/dist/collection/components/c-login-button/c-login-button.js +82 -0
- package/dist/collection/components/c-login-button/c-login-button.js.map +1 -0
- package/dist/collection/components/c-login-buttons/c-login-buttons.css +23 -0
- package/dist/collection/components/c-login-buttons/c-login-buttons.js +19 -0
- package/dist/collection/components/c-login-buttons/c-login-buttons.js.map +1 -0
- package/dist/collection/components/c-login-card/c-login-card.css +88 -0
- package/dist/collection/components/c-login-card/c-login-card.js +171 -0
- package/dist/collection/components/c-login-card/c-login-card.js.map +1 -0
- package/dist/collection/components/c-login-card/test/c-login-card.spec.js +151 -0
- package/dist/collection/components/c-login-card/test/c-login-card.spec.js.map +1 -0
- package/dist/collection/components/c-login-card/test/c-login-card.visual.js +18 -0
- package/dist/collection/components/c-login-card/test/c-login-card.visual.js.map +1 -0
- package/dist/collection/components/c-login-card-actions/c-login-card-actions.js +53 -0
- package/dist/collection/components/c-login-card-actions/c-login-card-actions.js.map +1 -0
- package/dist/collection/components/c-login-card-content/c-login-card-content.css +26 -0
- package/dist/collection/components/c-login-card-content/c-login-card-content.js +19 -0
- package/dist/collection/components/c-login-card-content/c-login-card-content.js.map +1 -0
- package/dist/collection/components/c-login-card-title/c-login-card-title.css +31 -0
- package/dist/collection/components/c-login-card-title/c-login-card-title.js +19 -0
- package/dist/collection/components/c-login-card-title/c-login-card-title.js.map +1 -0
- package/dist/collection/components/c-main/c-main.css +34 -0
- package/dist/collection/components/c-main/c-main.js +19 -0
- package/dist/collection/components/c-main/c-main.js.map +1 -0
- package/dist/collection/components/c-main/test/c-main.spec.js +19 -0
- package/dist/collection/components/c-main/test/c-main.spec.js.map +1 -0
- package/dist/collection/components/c-menu/c-menu.css +117 -0
- package/dist/collection/components/c-menu/c-menu.js +284 -0
- package/dist/collection/components/c-menu/c-menu.js.map +1 -0
- package/dist/collection/components/c-menu/test/c-menu.spec.js +46 -0
- package/dist/collection/components/c-menu/test/c-menu.spec.js.map +1 -0
- package/dist/collection/components/c-menu/test/c-menu.visual.js +43 -0
- package/dist/collection/components/c-menu/test/c-menu.visual.js.map +1 -0
- package/dist/collection/components/c-menu-items/c-menu-items.css +97 -0
- package/dist/collection/components/c-menu-items/c-menu-items.js +445 -0
- package/dist/collection/components/c-menu-items/c-menu-items.js.map +1 -0
- package/dist/collection/components/c-message/c-message.css +68 -0
- package/dist/collection/components/c-message/c-message.js +154 -0
- package/dist/collection/components/c-message/c-message.js.map +1 -0
- package/dist/collection/components/c-modal/c-modal.css +94 -0
- package/dist/collection/components/c-modal/c-modal.js +210 -0
- package/dist/collection/components/c-modal/c-modal.js.map +1 -0
- package/dist/collection/components/c-modal/test/c-modal.spec.js +75 -0
- package/dist/collection/components/c-modal/test/c-modal.spec.js.map +1 -0
- package/dist/collection/components/c-navigation-button/c-navigation-button.css +33 -0
- package/dist/collection/components/c-navigation-button/c-navigation-button.js +20 -0
- package/dist/collection/components/c-navigation-button/c-navigation-button.js.map +1 -0
- package/dist/collection/components/c-option/c-option.css +23 -0
- package/dist/collection/components/c-option/c-option.js +99 -0
- package/dist/collection/components/c-option/c-option.js.map +1 -0
- package/dist/collection/components/c-option-value/c-option-value.css +21 -0
- package/dist/collection/components/c-option-value/c-option-value.js +19 -0
- package/dist/collection/components/c-option-value/c-option-value.js.map +1 -0
- package/dist/collection/components/c-otp-input/c-otp-input.css +87 -0
- package/dist/collection/components/c-otp-input/c-otp-input.js +298 -0
- package/dist/collection/components/c-otp-input/c-otp-input.js.map +1 -0
- package/dist/collection/components/c-otp-input/test/c-otp-input.e2e.js +10 -0
- package/dist/collection/components/c-otp-input/test/c-otp-input.e2e.js.map +1 -0
- package/dist/collection/components/c-otp-input/test/c-otp-input.spec.js +18 -0
- package/dist/collection/components/c-otp-input/test/c-otp-input.spec.js.map +1 -0
- package/dist/collection/components/c-page/c-page.css +46 -0
- package/dist/collection/components/c-page/c-page.js +29 -0
- package/dist/collection/components/c-page/c-page.js.map +1 -0
- package/dist/collection/components/c-pagination/c-pagination.css +121 -0
- package/dist/collection/components/c-pagination/c-pagination.js +375 -0
- package/dist/collection/components/c-pagination/c-pagination.js.map +1 -0
- package/dist/collection/components/c-pagination/test/c-pagination.e2e.js +47 -0
- package/dist/collection/components/c-pagination/test/c-pagination.e2e.js.map +1 -0
- package/dist/collection/components/c-pagination/test/c-pagination.visual.js +42 -0
- package/dist/collection/components/c-pagination/test/c-pagination.visual.js.map +1 -0
- package/dist/collection/components/c-progress-bar/c-progress-bar.css +137 -0
- package/dist/collection/components/c-progress-bar/c-progress-bar.js +153 -0
- package/dist/collection/components/c-progress-bar/c-progress-bar.js.map +1 -0
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.spec.js +54 -0
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.spec.js.map +1 -0
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js +22 -0
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js.map +1 -0
- package/dist/collection/components/c-radio/c-radio.css +21 -0
- package/dist/collection/components/c-radio/c-radio.js +81 -0
- package/dist/collection/components/c-radio/c-radio.js.map +1 -0
- package/dist/collection/components/c-radio-group/c-radio-group.css +199 -0
- package/dist/collection/components/c-radio-group/c-radio-group.js +403 -0
- package/dist/collection/components/c-radio-group/c-radio-group.js.map +1 -0
- package/dist/collection/components/c-radio-group/test/c-radio-group.e2e.js +39 -0
- package/dist/collection/components/c-radio-group/test/c-radio-group.e2e.js.map +1 -0
- package/dist/collection/components/c-radio-group/test/c-radio-group.spec.js +28 -0
- package/dist/collection/components/c-radio-group/test/c-radio-group.spec.js.map +1 -0
- package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js +24 -0
- package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js.map +1 -0
- package/dist/collection/components/c-radio-group/test/items.js +6 -0
- package/dist/collection/components/c-radio-group/test/items.js.map +1 -0
- package/dist/collection/components/c-ripple/c-ripple.css +48 -0
- package/dist/collection/components/c-ripple/c-ripple.js +91 -0
- package/dist/collection/components/c-ripple/c-ripple.js.map +1 -0
- package/dist/collection/components/c-row/c-row.css +66 -0
- package/dist/collection/components/c-row/c-row.js +121 -0
- package/dist/collection/components/c-row/c-row.js.map +1 -0
- package/dist/collection/components/c-row/test/c-row.spec.js +137 -0
- package/dist/collection/components/c-row/test/c-row.spec.js.map +1 -0
- package/dist/collection/components/c-select/c-select.css +200 -0
- package/dist/collection/components/c-select/c-select.js +786 -0
- package/dist/collection/components/c-select/c-select.js.map +1 -0
- package/dist/collection/components/c-select/test/c-select.e2e.js +66 -0
- package/dist/collection/components/c-select/test/c-select.e2e.js.map +1 -0
- package/dist/collection/components/c-select/test/c-select.spec.js +38 -0
- package/dist/collection/components/c-select/test/c-select.spec.js.map +1 -0
- package/dist/collection/components/c-select/test/c-select.visual.js +36 -0
- package/dist/collection/components/c-select/test/c-select.visual.js.map +1 -0
- package/dist/collection/components/c-select/test/items.js +10 -0
- package/dist/collection/components/c-select/test/items.js.map +1 -0
- package/dist/collection/components/c-side-navigation/c-side-navigation.css +147 -0
- package/dist/collection/components/c-side-navigation/c-side-navigation.js +119 -0
- package/dist/collection/components/c-side-navigation/c-side-navigation.js.map +1 -0
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.spec.js +21 -0
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.spec.js.map +1 -0
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js +16 -0
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js.map +1 -0
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.css +168 -0
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js +227 -0
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js.map +1 -0
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.css +33 -0
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js +19 -0
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js.map +1 -0
- package/dist/collection/components/c-spacer/c-spacer.css +21 -0
- package/dist/collection/components/c-spacer/c-spacer.js +19 -0
- package/dist/collection/components/c-spacer/c-spacer.js.map +1 -0
- package/dist/collection/components/c-spacer/test/c-spacer.spec.js +12 -0
- package/dist/collection/components/c-spacer/test/c-spacer.spec.js.map +1 -0
- package/dist/collection/components/c-spinner/c-spinner.css +59 -0
- package/dist/collection/components/c-spinner/c-spinner.js +92 -0
- package/dist/collection/components/c-spinner/c-spinner.js.map +1 -0
- package/dist/collection/components/c-status/c-status.css +74 -0
- package/dist/collection/components/c-status/c-status.js +44 -0
- package/dist/collection/components/c-status/c-status.js.map +1 -0
- package/dist/collection/components/c-status/test/c-status.spec.js +40 -0
- package/dist/collection/components/c-status/test/c-status.spec.js.map +1 -0
- package/dist/collection/components/c-status/test/c-status.visual.js +10 -0
- package/dist/collection/components/c-status/test/c-status.visual.js.map +1 -0
- package/dist/collection/components/c-step/c-step.css +104 -0
- package/dist/collection/components/c-step/c-step.js +73 -0
- package/dist/collection/components/c-step/c-step.js.map +1 -0
- package/dist/collection/components/c-steps/c-steps.css +81 -0
- package/dist/collection/components/c-steps/c-steps.js +125 -0
- package/dist/collection/components/c-steps/c-steps.js.map +1 -0
- package/dist/collection/components/c-steps/test/c-steps.e2e.js +35 -0
- package/dist/collection/components/c-steps/test/c-steps.e2e.js.map +1 -0
- package/dist/collection/components/c-steps/test/c-steps.visual.js +19 -0
- package/dist/collection/components/c-steps/test/c-steps.visual.js.map +1 -0
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.css +184 -0
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js +143 -0
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js.map +1 -0
- package/dist/collection/components/c-swiper/c-swiper.css +317 -0
- package/dist/collection/components/c-swiper/c-swiper.js +214 -0
- package/dist/collection/components/c-swiper/c-swiper.js.map +1 -0
- package/dist/collection/components/c-swiper/test/c-swiper.e2e.js +83 -0
- package/dist/collection/components/c-swiper/test/c-swiper.e2e.js.map +1 -0
- package/dist/collection/components/c-swiper/test/c-swiper.visual.js +20 -0
- package/dist/collection/components/c-swiper/test/c-swiper.visual.js.map +1 -0
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.css +115 -0
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js +207 -0
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js.map +1 -0
- package/dist/collection/components/c-switch/c-switch.css +138 -0
- package/dist/collection/components/c-switch/c-switch.js +216 -0
- package/dist/collection/components/c-switch/c-switch.js.map +1 -0
- package/dist/collection/components/c-switch/test/c-switch.e2e.js +51 -0
- package/dist/collection/components/c-switch/test/c-switch.e2e.js.map +1 -0
- package/dist/collection/components/c-switch/test/c-switch.spec.js +40 -0
- package/dist/collection/components/c-switch/test/c-switch.spec.js.map +1 -0
- package/dist/collection/components/c-switch/test/c-switch.visual.js +28 -0
- package/dist/collection/components/c-switch/test/c-switch.visual.js.map +1 -0
- package/dist/collection/components/c-tab/c-tab.css +101 -0
- package/dist/collection/components/c-tab/c-tab.js +230 -0
- package/dist/collection/components/c-tab/c-tab.js.map +1 -0
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.css +108 -0
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js +271 -0
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js.map +1 -0
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.e2e.js +91 -0
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.e2e.js.map +1 -0
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.spec.js +42 -0
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.spec.js.map +1 -0
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js +47 -0
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js.map +1 -0
- package/dist/collection/components/c-tab-item/c-tab-item.css +41 -0
- package/dist/collection/components/c-tab-item/c-tab-item.js +99 -0
- package/dist/collection/components/c-tab-item/c-tab-item.js.map +1 -0
- package/dist/collection/components/c-tab-items/c-tab-items.css +34 -0
- package/dist/collection/components/c-tab-items/c-tab-items.js +140 -0
- package/dist/collection/components/c-tab-items/c-tab-items.js.map +1 -0
- package/dist/collection/components/c-table/c-table.css +143 -0
- package/dist/collection/components/c-table/c-table.js +86 -0
- package/dist/collection/components/c-table/c-table.js.map +1 -0
- package/dist/collection/components/c-tabs/c-tabs.css +167 -0
- package/dist/collection/components/c-tabs/c-tabs.js +598 -0
- package/dist/collection/components/c-tabs/c-tabs.js.map +1 -0
- package/dist/collection/components/c-tabs/test/c-tabs.e2e.js +74 -0
- package/dist/collection/components/c-tabs/test/c-tabs.e2e.js.map +1 -0
- package/dist/collection/components/c-tabs/test/c-tabs.spec.js +85 -0
- package/dist/collection/components/c-tabs/test/c-tabs.spec.js.map +1 -0
- package/dist/collection/components/c-tabs/test/c-tabs.visual.js +16 -0
- package/dist/collection/components/c-tabs/test/c-tabs.visual.js.map +1 -0
- package/dist/collection/components/c-tag/c-tag.css +146 -0
- package/dist/collection/components/c-tag/c-tag.js +174 -0
- package/dist/collection/components/c-tag/c-tag.js.map +1 -0
- package/dist/collection/components/c-tag/test/c-tag.spec.js +50 -0
- package/dist/collection/components/c-tag/test/c-tag.spec.js.map +1 -0
- package/dist/collection/components/c-tag/test/c-tag.visual.js +26 -0
- package/dist/collection/components/c-tag/test/c-tag.visual.js.map +1 -0
- package/dist/collection/components/c-tags/c-tags.css +25 -0
- package/dist/collection/components/c-tags/c-tags.js +19 -0
- package/dist/collection/components/c-tags/c-tags.js.map +1 -0
- package/dist/collection/components/c-text-field/c-text-field.css +73 -0
- package/dist/collection/components/c-text-field/c-text-field.js +639 -0
- package/dist/collection/components/c-text-field/c-text-field.js.map +1 -0
- package/dist/collection/components/c-text-field/test/c-text-field.e2e.js +12 -0
- package/dist/collection/components/c-text-field/test/c-text-field.e2e.js.map +1 -0
- package/dist/collection/components/c-text-field/test/c-text-field.spec.js +33 -0
- package/dist/collection/components/c-text-field/test/c-text-field.spec.js.map +1 -0
- package/dist/collection/components/c-text-field/test/c-text-field.visual.js +41 -0
- package/dist/collection/components/c-text-field/test/c-text-field.visual.js.map +1 -0
- package/dist/collection/components/c-toast/c-toast.css +156 -0
- package/dist/collection/components/c-toast/c-toast.js +145 -0
- package/dist/collection/components/c-toast/c-toast.js.map +1 -0
- package/dist/collection/components/c-toasts/c-toasts.css +61 -0
- package/dist/collection/components/c-toasts/c-toasts.js +196 -0
- package/dist/collection/components/c-toasts/c-toasts.js.map +1 -0
- package/dist/collection/components/c-toasts/test/c-toasts.spec.js +61 -0
- package/dist/collection/components/c-toasts/test/c-toasts.spec.js.map +1 -0
- package/dist/collection/components/c-toasts/test/c-toasts.visual.js +27 -0
- package/dist/collection/components/c-toasts/test/c-toasts.visual.js.map +1 -0
- package/dist/collection/components/c-toolbar/c-toolbar.css +49 -0
- package/dist/collection/components/c-toolbar/c-toolbar.js +19 -0
- package/dist/collection/components/c-toolbar/c-toolbar.js.map +1 -0
- package/dist/collection/components/c-toolbar/test/c-toolbar.spec.js +12 -0
- package/dist/collection/components/c-toolbar/test/c-toolbar.spec.js.map +1 -0
- package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js +10 -0
- package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js.map +1 -0
- package/dist/collection/dist/styles/css/c-data-table.css +10 -0
- package/dist/collection/dist/styles/css/theme.css +100 -0
- package/dist/collection/dist/styles/css/typography.css +10 -0
- package/dist/collection/dist/styles/scss/_c-data-table.scss +7 -0
- package/dist/collection/dist/styles/scss/_theme.scss +97 -0
- package/dist/collection/dist/styles/scss/_typography.scss +7 -0
- package/dist/collection/dist/styles/tailwind/theme.js +117 -0
- package/dist/collection/dist/styles/variables.css +111 -0
- package/dist/collection/dist/styles/variables.scss +108 -0
- package/dist/collection/index.js +3 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/styles/tailwind/theme.js +117 -0
- package/dist/collection/types/index.js +20 -0
- package/dist/collection/types/index.js.map +1 -0
- package/dist/collection/utils/test/sleep.js +2 -0
- package/dist/collection/utils/test/sleep.js.map +1 -0
- package/dist/collection/utils/test/takeScreenshot.js +11 -0
- package/dist/collection/utils/test/takeScreenshot.js.map +1 -0
- package/dist/components/c-accordion-item.d.ts +11 -0
- package/dist/components/c-accordion-item.js +144 -0
- package/dist/components/c-accordion-item.js.map +1 -0
- package/dist/components/c-accordion.d.ts +11 -0
- package/dist/components/c-accordion.js +89 -0
- package/dist/components/c-accordion.js.map +1 -0
- package/dist/components/c-alert.d.ts +11 -0
- package/dist/components/c-alert.js +46 -0
- package/dist/components/c-alert.js.map +1 -0
- package/dist/components/c-autocomplete.d.ts +11 -0
- package/dist/components/c-autocomplete.js +335 -0
- package/dist/components/c-autocomplete.js.map +1 -0
- package/dist/components/c-badge.d.ts +11 -0
- package/dist/components/c-badge.js +8 -0
- package/dist/components/c-badge.js.map +1 -0
- package/dist/components/c-badge2.js +32 -0
- package/dist/components/c-badge2.js.map +1 -0
- package/dist/components/c-button.d.ts +11 -0
- package/dist/components/c-button.js +191 -0
- package/dist/components/c-button.js.map +1 -0
- package/dist/components/c-card-actions.d.ts +11 -0
- package/dist/components/c-card-actions.js +8 -0
- package/dist/components/c-card-actions.js.map +1 -0
- package/dist/components/c-card-actions2.js +42 -0
- package/dist/components/c-card-actions2.js.map +1 -0
- package/dist/components/c-card-content.d.ts +11 -0
- package/dist/components/c-card-content.js +35 -0
- package/dist/components/c-card-content.js.map +1 -0
- package/dist/components/c-card-title.d.ts +11 -0
- package/dist/components/c-card-title.js +35 -0
- package/dist/components/c-card-title.js.map +1 -0
- package/dist/components/c-card.d.ts +11 -0
- package/dist/components/c-card.js +118 -0
- package/dist/components/c-card.js.map +1 -0
- package/dist/components/c-checkbox.d.ts +11 -0
- package/dist/components/c-checkbox.js +8 -0
- package/dist/components/c-checkbox.js.map +1 -0
- package/dist/components/c-checkbox2.js +153 -0
- package/dist/components/c-checkbox2.js.map +1 -0
- package/dist/components/c-csc-logo.d.ts +11 -0
- package/dist/components/c-csc-logo.js +39 -0
- package/dist/components/c-csc-logo.js.map +1 -0
- package/dist/components/c-data-table.d.ts +11 -0
- package/dist/components/c-data-table.js +815 -0
- package/dist/components/c-data-table.js.map +1 -0
- package/dist/components/c-dropdown.d.ts +11 -0
- package/dist/components/c-dropdown.js +8 -0
- package/dist/components/c-dropdown.js.map +1 -0
- package/dist/components/c-dropdown2.js +504 -0
- package/dist/components/c-dropdown2.js.map +1 -0
- package/dist/components/c-dropdowns.d.ts +11 -0
- package/dist/components/c-dropdowns.js +8 -0
- package/dist/components/c-dropdowns.js.map +1 -0
- package/dist/components/c-dropdowns2.js +60 -0
- package/dist/components/c-dropdowns2.js.map +1 -0
- package/dist/components/c-icon-button.d.ts +11 -0
- package/dist/components/c-icon-button.js +8 -0
- package/dist/components/c-icon-button.js.map +1 -0
- package/dist/components/c-icon-button2.js +95 -0
- package/dist/components/c-icon-button2.js.map +1 -0
- package/dist/components/c-icon.d.ts +11 -0
- package/dist/components/c-icon.js +8 -0
- package/dist/components/c-icon.js.map +1 -0
- package/dist/components/c-icon2.js +43 -0
- package/dist/components/c-icon2.js.map +1 -0
- package/dist/components/c-input.d.ts +11 -0
- package/dist/components/c-input.js +8 -0
- package/dist/components/c-input.js.map +1 -0
- package/dist/components/c-input2.js +373 -0
- package/dist/components/c-input2.js.map +1 -0
- package/dist/components/c-link.d.ts +11 -0
- package/dist/components/c-link.js +50 -0
- package/dist/components/c-link.js.map +1 -0
- package/dist/components/c-list-item-title.d.ts +11 -0
- package/dist/components/c-list-item-title.js +42 -0
- package/dist/components/c-list-item-title.js.map +1 -0
- package/dist/components/c-list-item.d.ts +11 -0
- package/dist/components/c-list-item.js +113 -0
- package/dist/components/c-list-item.js.map +1 -0
- package/dist/components/c-list.d.ts +11 -0
- package/dist/components/c-list.js +62 -0
- package/dist/components/c-list.js.map +1 -0
- package/dist/components/c-loader.d.ts +11 -0
- package/dist/components/c-loader.js +8 -0
- package/dist/components/c-loader.js.map +1 -0
- package/dist/components/c-loader2.js +63 -0
- package/dist/components/c-loader2.js.map +1 -0
- package/dist/components/c-login-button.d.ts +11 -0
- package/dist/components/c-login-button.js +43 -0
- package/dist/components/c-login-button.js.map +1 -0
- package/dist/components/c-login-buttons.d.ts +11 -0
- package/dist/components/c-login-buttons.js +35 -0
- package/dist/components/c-login-buttons.js.map +1 -0
- package/dist/components/c-login-card-actions.d.ts +11 -0
- package/dist/components/c-login-card-actions.js +43 -0
- package/dist/components/c-login-card-actions.js.map +1 -0
- package/dist/components/c-login-card-content.d.ts +11 -0
- package/dist/components/c-login-card-content.js +35 -0
- package/dist/components/c-login-card-content.js.map +1 -0
- package/dist/components/c-login-card-title.d.ts +11 -0
- package/dist/components/c-login-card-title.js +35 -0
- package/dist/components/c-login-card-title.js.map +1 -0
- package/dist/components/c-login-card.d.ts +11 -0
- package/dist/components/c-login-card.js +87 -0
- package/dist/components/c-login-card.js.map +1 -0
- package/dist/components/c-main.d.ts +11 -0
- package/dist/components/c-main.js +35 -0
- package/dist/components/c-main.js.map +1 -0
- package/dist/components/c-menu-items.d.ts +11 -0
- package/dist/components/c-menu-items.js +8 -0
- package/dist/components/c-menu-items.js.map +1 -0
- package/dist/components/c-menu-items2.js +236 -0
- package/dist/components/c-menu-items2.js.map +1 -0
- package/dist/components/c-menu.d.ts +11 -0
- package/dist/components/c-menu.js +8 -0
- package/dist/components/c-menu.js.map +1 -0
- package/dist/components/c-menu2.js +185 -0
- package/dist/components/c-menu2.js.map +1 -0
- package/dist/components/c-message.d.ts +11 -0
- package/dist/components/c-message.js +8 -0
- package/dist/components/c-message.js.map +1 -0
- package/dist/components/c-message2.js +88 -0
- package/dist/components/c-message2.js.map +1 -0
- package/dist/components/c-modal.d.ts +11 -0
- package/dist/components/c-modal.js +131 -0
- package/dist/components/c-modal.js.map +1 -0
- package/dist/components/c-navigation-button.d.ts +11 -0
- package/dist/components/c-navigation-button.js +66 -0
- package/dist/components/c-navigation-button.js.map +1 -0
- package/dist/components/c-option-value.d.ts +11 -0
- package/dist/components/c-option-value.js +35 -0
- package/dist/components/c-option-value.js.map +1 -0
- package/dist/components/c-option.d.ts +11 -0
- package/dist/components/c-option.js +44 -0
- package/dist/components/c-option.js.map +1 -0
- package/dist/components/c-otp-input.d.ts +11 -0
- package/dist/components/c-otp-input.js +178 -0
- package/dist/components/c-otp-input.js.map +1 -0
- package/dist/components/c-page.d.ts +11 -0
- package/dist/components/c-page.js +45 -0
- package/dist/components/c-page.js.map +1 -0
- package/dist/components/c-pagination.d.ts +11 -0
- package/dist/components/c-pagination.js +8 -0
- package/dist/components/c-pagination.js.map +1 -0
- package/dist/components/c-pagination2.js +293 -0
- package/dist/components/c-pagination2.js.map +1 -0
- package/dist/components/c-progress-bar.d.ts +11 -0
- package/dist/components/c-progress-bar.js +79 -0
- package/dist/components/c-progress-bar.js.map +1 -0
- package/dist/components/c-radio-group.d.ts +11 -0
- package/dist/components/c-radio-group.js +185 -0
- package/dist/components/c-radio-group.js.map +1 -0
- package/dist/components/c-radio.d.ts +11 -0
- package/dist/components/c-radio.js +42 -0
- package/dist/components/c-radio.js.map +1 -0
- package/dist/components/c-ripple.d.ts +11 -0
- package/dist/components/c-ripple.js +8 -0
- package/dist/components/c-ripple.js.map +1 -0
- package/dist/components/c-ripple2.js +68 -0
- package/dist/components/c-ripple2.js.map +1 -0
- package/dist/components/c-row.d.ts +11 -0
- package/dist/components/c-row.js +54 -0
- package/dist/components/c-row.js.map +1 -0
- package/dist/components/c-select.d.ts +11 -0
- package/dist/components/c-select.js +402 -0
- package/dist/components/c-select.js.map +1 -0
- package/dist/components/c-side-navigation-item.d.ts +11 -0
- package/dist/components/c-side-navigation-item.js +154 -0
- package/dist/components/c-side-navigation-item.js.map +1 -0
- package/dist/components/c-side-navigation-title.d.ts +11 -0
- package/dist/components/c-side-navigation-title.js +35 -0
- package/dist/components/c-side-navigation-title.js.map +1 -0
- package/dist/components/c-side-navigation.d.ts +11 -0
- package/dist/components/c-side-navigation.js +118 -0
- package/dist/components/c-side-navigation.js.map +1 -0
- package/dist/components/c-spacer.d.ts +11 -0
- package/dist/components/c-spacer.js +8 -0
- package/dist/components/c-spacer.js.map +1 -0
- package/dist/components/c-spacer2.js +32 -0
- package/dist/components/c-spacer2.js.map +1 -0
- package/dist/components/c-spinner.d.ts +11 -0
- package/dist/components/c-spinner.js +8 -0
- package/dist/components/c-spinner.js.map +1 -0
- package/dist/components/c-spinner2.js +49 -0
- package/dist/components/c-spinner2.js.map +1 -0
- package/dist/components/c-status.d.ts +11 -0
- package/dist/components/c-status.js +39 -0
- package/dist/components/c-status.js.map +1 -0
- package/dist/components/c-step.d.ts +11 -0
- package/dist/components/c-step.js +44 -0
- package/dist/components/c-step.js.map +1 -0
- package/dist/components/c-steps.d.ts +11 -0
- package/dist/components/c-steps.js +98 -0
- package/dist/components/c-steps.js.map +1 -0
- package/dist/components/c-sub-navigation-item.d.ts +11 -0
- package/dist/components/c-sub-navigation-item.js +83 -0
- package/dist/components/c-sub-navigation-item.js.map +1 -0
- package/dist/components/c-swiper-tab.d.ts +11 -0
- package/dist/components/c-swiper-tab.js +75 -0
- package/dist/components/c-swiper-tab.js.map +1 -0
- package/dist/components/c-swiper.d.ts +11 -0
- package/dist/components/c-swiper.js +4230 -0
- package/dist/components/c-swiper.js.map +1 -0
- package/dist/components/c-switch.d.ts +11 -0
- package/dist/components/c-switch.js +88 -0
- package/dist/components/c-switch.js.map +1 -0
- package/dist/components/c-tab-buttons.d.ts +11 -0
- package/dist/components/c-tab-buttons.js +155 -0
- package/dist/components/c-tab-buttons.js.map +1 -0
- package/dist/components/c-tab-item.d.ts +11 -0
- package/dist/components/c-tab-item.js +57 -0
- package/dist/components/c-tab-item.js.map +1 -0
- package/dist/components/c-tab-items.d.ts +11 -0
- package/dist/components/c-tab-items.js +101 -0
- package/dist/components/c-tab-items.js.map +1 -0
- package/dist/components/c-tab.d.ts +11 -0
- package/dist/components/c-tab.js +86 -0
- package/dist/components/c-tab.js.map +1 -0
- package/dist/components/c-table.d.ts +11 -0
- package/dist/components/c-table.js +63 -0
- package/dist/components/c-table.js.map +1 -0
- package/dist/components/c-tabs.d.ts +11 -0
- package/dist/components/c-tabs.js +481 -0
- package/dist/components/c-tabs.js.map +1 -0
- package/dist/components/c-tag.d.ts +11 -0
- package/dist/components/c-tag.js +96 -0
- package/dist/components/c-tag.js.map +1 -0
- package/dist/components/c-tags.d.ts +11 -0
- package/dist/components/c-tags.js +35 -0
- package/dist/components/c-tags.js.map +1 -0
- package/dist/components/c-text-field.d.ts +11 -0
- package/dist/components/c-text-field.js +220 -0
- package/dist/components/c-text-field.js.map +1 -0
- package/dist/components/c-toast.d.ts +11 -0
- package/dist/components/c-toast.js +8 -0
- package/dist/components/c-toast.js.map +1 -0
- package/dist/components/c-toast2.js +93 -0
- package/dist/components/c-toast2.js.map +1 -0
- package/dist/components/c-toasts.d.ts +11 -0
- package/dist/components/c-toasts.js +113 -0
- package/dist/components/c-toasts.js.map +1 -0
- package/dist/components/c-toolbar.d.ts +11 -0
- package/dist/components/c-toolbar.js +35 -0
- package/dist/components/c-toolbar.js.map +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +4 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index2.js +23 -0
- package/dist/components/index2.js.map +1 -0
- package/dist/components/mdi.js +25 -0
- package/dist/components/mdi.js.map +1 -0
- package/dist/csc-ui/assets/puhti.gif +0 -0
- package/dist/csc-ui/csc-ui.esm.js +2 -0
- package/dist/csc-ui/csc-ui.esm.js.map +1 -0
- package/dist/csc-ui/dist/styles/css/c-data-table.css +10 -0
- package/dist/csc-ui/dist/styles/css/theme.css +100 -0
- package/dist/csc-ui/dist/styles/css/typography.css +10 -0
- package/dist/csc-ui/dist/styles/scss/_c-data-table.scss +7 -0
- package/dist/csc-ui/dist/styles/scss/_theme.scss +97 -0
- package/dist/csc-ui/dist/styles/scss/_typography.scss +7 -0
- package/dist/csc-ui/dist/styles/tailwind/theme.js +117 -0
- package/dist/csc-ui/dist/styles/variables.css +111 -0
- package/dist/csc-ui/dist/styles/variables.scss +108 -0
- package/dist/csc-ui/index.esm.js +2 -0
- package/dist/csc-ui/index.esm.js.map +1 -0
- package/dist/csc-ui/p-0355c094.entry.js +2 -0
- package/dist/csc-ui/p-0355c094.entry.js.map +1 -0
- package/dist/csc-ui/p-0c7c2bbd.entry.js +2 -0
- package/dist/csc-ui/p-0c7c2bbd.entry.js.map +1 -0
- package/dist/csc-ui/p-177f7d7d.entry.js +2 -0
- package/dist/csc-ui/p-177f7d7d.entry.js.map +1 -0
- package/dist/csc-ui/p-20282d86.entry.js +2 -0
- package/dist/csc-ui/p-20282d86.entry.js.map +1 -0
- package/dist/csc-ui/p-21f39647.entry.js +2 -0
- package/dist/csc-ui/p-21f39647.entry.js.map +1 -0
- package/dist/csc-ui/p-2318ba6b.entry.js +2 -0
- package/dist/csc-ui/p-2318ba6b.entry.js.map +1 -0
- package/dist/csc-ui/p-2bf78691.entry.js +2 -0
- package/dist/csc-ui/p-2bf78691.entry.js.map +1 -0
- package/dist/csc-ui/p-319fba28.entry.js +2 -0
- package/dist/csc-ui/p-319fba28.entry.js.map +1 -0
- package/dist/csc-ui/p-33e42eb8.entry.js +2 -0
- package/dist/csc-ui/p-33e42eb8.entry.js.map +1 -0
- package/dist/csc-ui/p-3c11dfb2.entry.js +2 -0
- package/dist/csc-ui/p-3c11dfb2.entry.js.map +1 -0
- package/dist/csc-ui/p-3e4869bf.entry.js +2 -0
- package/dist/csc-ui/p-3e4869bf.entry.js.map +1 -0
- package/dist/csc-ui/p-3ec3f184.entry.js +2 -0
- package/dist/csc-ui/p-3ec3f184.entry.js.map +1 -0
- package/dist/csc-ui/p-3f35766b.entry.js +2 -0
- package/dist/csc-ui/p-3f35766b.entry.js.map +1 -0
- package/dist/csc-ui/p-425ca7aa.entry.js +2 -0
- package/dist/csc-ui/p-425ca7aa.entry.js.map +1 -0
- package/dist/csc-ui/p-49726bd5.entry.js +2 -0
- package/dist/csc-ui/p-49726bd5.entry.js.map +1 -0
- package/dist/csc-ui/p-540e681a.entry.js +2 -0
- package/dist/csc-ui/p-540e681a.entry.js.map +1 -0
- package/dist/csc-ui/p-593b6720.entry.js +2 -0
- package/dist/csc-ui/p-593b6720.entry.js.map +1 -0
- package/dist/csc-ui/p-626c6afe.entry.js +2 -0
- package/dist/csc-ui/p-626c6afe.entry.js.map +1 -0
- package/dist/csc-ui/p-6e90cdfb.entry.js +2 -0
- package/dist/csc-ui/p-6e90cdfb.entry.js.map +1 -0
- package/dist/csc-ui/p-7092cd6c.entry.js +2 -0
- package/dist/csc-ui/p-7092cd6c.entry.js.map +1 -0
- package/dist/csc-ui/p-771adfde.entry.js +2 -0
- package/dist/csc-ui/p-771adfde.entry.js.map +1 -0
- package/dist/csc-ui/p-7d76025c.entry.js +2 -0
- package/dist/csc-ui/p-7d76025c.entry.js.map +1 -0
- package/dist/csc-ui/p-816f84b2.entry.js +2 -0
- package/dist/csc-ui/p-816f84b2.entry.js.map +1 -0
- package/dist/csc-ui/p-86a96319.entry.js +2 -0
- package/dist/csc-ui/p-86a96319.entry.js.map +1 -0
- package/dist/csc-ui/p-87c39c69.entry.js +2 -0
- package/dist/csc-ui/p-87c39c69.entry.js.map +1 -0
- package/dist/csc-ui/p-89d6e4c6.entry.js +2 -0
- package/dist/csc-ui/p-89d6e4c6.entry.js.map +1 -0
- package/dist/csc-ui/p-8d3a455f.entry.js +2 -0
- package/dist/csc-ui/p-8d3a455f.entry.js.map +1 -0
- package/dist/csc-ui/p-8e08df79.entry.js +2 -0
- package/dist/csc-ui/p-8e08df79.entry.js.map +1 -0
- package/dist/csc-ui/p-982b94a7.entry.js +2 -0
- package/dist/csc-ui/p-982b94a7.entry.js.map +1 -0
- package/dist/csc-ui/p-993583f1.entry.js +2 -0
- package/dist/csc-ui/p-993583f1.entry.js.map +1 -0
- package/dist/csc-ui/p-9936c5e9.entry.js +2 -0
- package/dist/csc-ui/p-9936c5e9.entry.js.map +1 -0
- package/dist/csc-ui/p-9ad61903.entry.js +2 -0
- package/dist/csc-ui/p-9ad61903.entry.js.map +1 -0
- package/dist/csc-ui/p-9bda8e49.entry.js +2 -0
- package/dist/csc-ui/p-9bda8e49.entry.js.map +1 -0
- package/dist/csc-ui/p-9d54e9a4.js +3 -0
- package/dist/csc-ui/p-9d54e9a4.js.map +1 -0
- package/dist/csc-ui/p-a7a7f6ab.entry.js +2 -0
- package/dist/csc-ui/p-a7a7f6ab.entry.js.map +1 -0
- package/dist/csc-ui/p-a9441233.entry.js +2 -0
- package/dist/csc-ui/p-a9441233.entry.js.map +1 -0
- package/dist/csc-ui/p-b7dcfced.entry.js +2 -0
- package/dist/csc-ui/p-b7dcfced.entry.js.map +1 -0
- package/dist/csc-ui/p-bc1000f3.entry.js +2 -0
- package/dist/csc-ui/p-bc1000f3.entry.js.map +1 -0
- package/dist/csc-ui/p-bf6d76df.entry.js +2 -0
- package/dist/csc-ui/p-bf6d76df.entry.js.map +1 -0
- package/dist/csc-ui/p-bf8bc8d7.entry.js +2 -0
- package/dist/csc-ui/p-bf8bc8d7.entry.js.map +1 -0
- package/dist/csc-ui/p-c101d987.entry.js +2 -0
- package/dist/csc-ui/p-c101d987.entry.js.map +1 -0
- package/dist/csc-ui/p-c4122519.entry.js +2 -0
- package/dist/csc-ui/p-c4122519.entry.js.map +1 -0
- package/dist/csc-ui/p-c5847170.entry.js +2 -0
- package/dist/csc-ui/p-c5847170.entry.js.map +1 -0
- package/dist/csc-ui/p-d18578fc.entry.js +2 -0
- package/dist/csc-ui/p-d18578fc.entry.js.map +1 -0
- package/dist/csc-ui/p-d3659ea8.entry.js +2 -0
- package/dist/csc-ui/p-d3659ea8.entry.js.map +1 -0
- package/dist/csc-ui/p-dffa1f9f.js +2 -0
- package/dist/csc-ui/p-dffa1f9f.js.map +1 -0
- package/dist/csc-ui/p-e81aa4e4.entry.js +2 -0
- package/dist/csc-ui/p-e81aa4e4.entry.js.map +1 -0
- package/dist/csc-ui/p-e8cddda8.entry.js +2 -0
- package/dist/csc-ui/p-e8cddda8.entry.js.map +1 -0
- package/dist/csc-ui/p-e970fa68.entry.js +2 -0
- package/dist/csc-ui/p-e970fa68.entry.js.map +1 -0
- package/dist/csc-ui/p-edb164fa.entry.js +2 -0
- package/dist/csc-ui/p-edb164fa.entry.js.map +1 -0
- package/dist/csc-ui/p-f327adbb.entry.js +2 -0
- package/dist/csc-ui/p-f327adbb.entry.js.map +1 -0
- package/dist/csc-ui/p-f32832e3.entry.js +2 -0
- package/dist/csc-ui/p-f32832e3.entry.js.map +1 -0
- package/dist/csc-ui/p-f65ed4bf.entry.js +2 -0
- package/dist/csc-ui/p-f65ed4bf.entry.js.map +1 -0
- package/dist/csc-ui/p-fa86088a.entry.js +2 -0
- package/dist/csc-ui/p-fa86088a.entry.js.map +1 -0
- package/dist/csc-ui/p-fafac729.js +2 -0
- package/dist/csc-ui/p-fafac729.js.map +1 -0
- package/dist/csc-ui/p-fc284e52.entry.js +2 -0
- package/dist/csc-ui/p-fc284e52.entry.js.map +1 -0
- package/dist/csc-ui/p-fe217f6c.entry.js +2 -0
- package/dist/csc-ui/p-fe217f6c.entry.js.map +1 -0
- package/dist/esm/c-accordion-item.entry.js +114 -0
- package/dist/esm/c-accordion-item.entry.js.map +1 -0
- package/dist/esm/c-accordion.entry.js +64 -0
- package/dist/esm/c-accordion.entry.js.map +1 -0
- package/dist/esm/c-alert.entry.js +26 -0
- package/dist/esm/c-alert.entry.js.map +1 -0
- package/dist/esm/c-autocomplete.entry.js +259 -0
- package/dist/esm/c-autocomplete.entry.js.map +1 -0
- package/dist/esm/c-badge_12.entry.js +427 -0
- package/dist/esm/c-badge_12.entry.js.map +1 -0
- package/dist/esm/c-card-actions.entry.js +24 -0
- package/dist/esm/c-card-actions.entry.js.map +1 -0
- package/dist/esm/c-card-content.entry.js +17 -0
- package/dist/esm/c-card-content.entry.js.map +1 -0
- package/dist/esm/c-card-title.entry.js +17 -0
- package/dist/esm/c-card-title.entry.js.map +1 -0
- package/dist/esm/c-checkbox_2.entry.js +337 -0
- package/dist/esm/c-checkbox_2.entry.js.map +1 -0
- package/dist/esm/c-data-table.entry.js +697 -0
- package/dist/esm/c-data-table.entry.js.map +1 -0
- package/dist/esm/c-dropdown_4.entry.js +830 -0
- package/dist/esm/c-dropdown_4.entry.js.map +1 -0
- package/dist/esm/c-link.entry.js +27 -0
- package/dist/esm/c-link.entry.js.map +1 -0
- package/dist/esm/c-list-item-title.entry.js +22 -0
- package/dist/esm/c-list-item-title.entry.js.map +1 -0
- package/dist/esm/c-list-item.entry.js +79 -0
- package/dist/esm/c-list-item.entry.js.map +1 -0
- package/dist/esm/c-list.entry.js +41 -0
- package/dist/esm/c-list.entry.js.map +1 -0
- package/dist/esm/c-loader.entry.js +35 -0
- package/dist/esm/c-loader.entry.js.map +1 -0
- package/dist/esm/c-login-button.entry.js +21 -0
- package/dist/esm/c-login-button.entry.js.map +1 -0
- package/dist/esm/c-login-buttons.entry.js +17 -0
- package/dist/esm/c-login-buttons.entry.js.map +1 -0
- package/dist/esm/c-login-card-actions.entry.js +16 -0
- package/dist/esm/c-login-card-actions.entry.js.map +1 -0
- package/dist/esm/c-login-card-content.entry.js +17 -0
- package/dist/esm/c-login-card-content.entry.js.map +1 -0
- package/dist/esm/c-login-card-title.entry.js +17 -0
- package/dist/esm/c-login-card-title.entry.js.map +1 -0
- package/dist/esm/c-login-card.entry.js +62 -0
- package/dist/esm/c-login-card.entry.js.map +1 -0
- package/dist/esm/c-menu_2.entry.js +349 -0
- package/dist/esm/c-menu_2.entry.js.map +1 -0
- package/dist/esm/c-modal.entry.js +104 -0
- package/dist/esm/c-modal.entry.js.map +1 -0
- package/dist/esm/c-navigation-button.entry.js +18 -0
- package/dist/esm/c-navigation-button.entry.js.map +1 -0
- package/dist/esm/c-option-value.entry.js +17 -0
- package/dist/esm/c-option-value.entry.js.map +1 -0
- package/dist/esm/c-option.entry.js +21 -0
- package/dist/esm/c-option.entry.js.map +1 -0
- package/dist/esm/c-otp-input.entry.js +150 -0
- package/dist/esm/c-otp-input.entry.js.map +1 -0
- package/dist/esm/c-page.entry.js +27 -0
- package/dist/esm/c-page.entry.js.map +1 -0
- package/dist/esm/c-progress-bar.entry.js +55 -0
- package/dist/esm/c-progress-bar.entry.js.map +1 -0
- package/dist/esm/c-radio-group.entry.js +150 -0
- package/dist/esm/c-radio-group.entry.js.map +1 -0
- package/dist/esm/c-radio.entry.js +20 -0
- package/dist/esm/c-radio.entry.js.map +1 -0
- package/dist/esm/c-select.entry.js +327 -0
- package/dist/esm/c-select.entry.js.map +1 -0
- package/dist/esm/c-side-navigation-item.entry.js +117 -0
- package/dist/esm/c-side-navigation-item.entry.js.map +1 -0
- package/dist/esm/c-side-navigation-title.entry.js +17 -0
- package/dist/esm/c-side-navigation-title.entry.js.map +1 -0
- package/dist/esm/c-side-navigation.entry.js +67 -0
- package/dist/esm/c-side-navigation.entry.js.map +1 -0
- package/dist/esm/c-status.entry.js +19 -0
- package/dist/esm/c-status.entry.js.map +1 -0
- package/dist/esm/c-step.entry.js +23 -0
- package/dist/esm/c-step.entry.js.map +1 -0
- package/dist/esm/c-steps.entry.js +74 -0
- package/dist/esm/c-steps.entry.js.map +1 -0
- package/dist/esm/c-sub-navigation-item.entry.js +47 -0
- package/dist/esm/c-sub-navigation-item.entry.js.map +1 -0
- package/dist/esm/c-swiper-tab.entry.js +43 -0
- package/dist/esm/c-swiper-tab.entry.js.map +1 -0
- package/dist/esm/c-swiper.entry.js +4183 -0
- package/dist/esm/c-swiper.entry.js.map +1 -0
- package/dist/esm/c-switch.entry.js +67 -0
- package/dist/esm/c-switch.entry.js.map +1 -0
- package/dist/esm/c-tab-buttons.entry.js +129 -0
- package/dist/esm/c-tab-buttons.entry.js.map +1 -0
- package/dist/esm/c-tab-item.entry.js +36 -0
- package/dist/esm/c-tab-item.entry.js.map +1 -0
- package/dist/esm/c-tab-items.entry.js +77 -0
- package/dist/esm/c-tab-items.entry.js.map +1 -0
- package/dist/esm/c-tab.entry.js +55 -0
- package/dist/esm/c-tab.entry.js.map +1 -0
- package/dist/esm/c-table.entry.js +43 -0
- package/dist/esm/c-table.entry.js.map +1 -0
- package/dist/esm/c-tabs.entry.js +419 -0
- package/dist/esm/c-tabs.entry.js.map +1 -0
- package/dist/esm/c-tag.entry.js +41 -0
- package/dist/esm/c-tag.entry.js.map +1 -0
- package/dist/esm/c-tags.entry.js +17 -0
- package/dist/esm/c-tags.entry.js.map +1 -0
- package/dist/esm/c-text-field.entry.js +147 -0
- package/dist/esm/c-text-field.entry.js.map +1 -0
- package/dist/esm/c-toast.entry.js +69 -0
- package/dist/esm/c-toast.entry.js.map +1 -0
- package/dist/esm/c-toasts.entry.js +76 -0
- package/dist/esm/c-toasts.entry.js.map +1 -0
- package/dist/esm/csc-ui.js +20 -0
- package/dist/esm/csc-ui.js.map +1 -0
- package/dist/esm/index-cdf029b7.js +2575 -0
- package/dist/esm/index-cdf029b7.js.map +1 -0
- package/dist/esm/index-dfaed2a4.js +23 -0
- package/dist/esm/index-dfaed2a4.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/mdi-a4a63b40.js +25 -0
- package/dist/esm/mdi-a4a63b40.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -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/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +3 -0
- package/dist/loader/index.cjs.js +3 -0
- package/dist/loader/index.d.ts +21 -0
- package/dist/loader/index.es2017.js +3 -0
- package/dist/loader/index.js +4 -0
- package/dist/loader/package.json +11 -0
- package/dist/playwright.config.js +46 -0
- package/dist/playwright.config.js.map +1 -0
- package/dist/stencil.config.js +41 -0
- package/dist/stencil.config.js.map +1 -0
- package/dist/styles/css/c-data-table.css +10 -0
- package/dist/styles/css/theme.css +100 -0
- package/dist/styles/css/typography.css +10 -0
- package/dist/styles/scss/_c-data-table.scss +7 -0
- package/dist/styles/scss/_theme.scss +97 -0
- package/dist/styles/scss/_typography.scss +7 -0
- package/dist/styles/tailwind/theme.js +117 -0
- package/dist/styles/variables.css +111 -0
- package/dist/styles/variables.scss +108 -0
- package/dist/types/Users/veriksso/Documents/code/ui/packages/csc-ui/.stencil/playwright.config.d.ts +2 -0
- package/dist/types/Users/veriksso/Documents/code/ui/packages/csc-ui/.stencil/stencil.config.d.ts +2 -0
- package/dist/types/components/c-accordion/c-accordion.d.ts +18 -0
- package/dist/types/components/c-accordion/test/c-accordion.visual.d.ts +1 -0
- package/dist/types/components/c-accordion-item/c-accordion-item.d.ts +27 -0
- package/dist/types/components/c-alert/c-alert.d.ts +6 -0
- package/dist/types/components/c-alert/test/c-alert.visual.d.ts +1 -0
- package/dist/types/components/c-autocomplete/c-autocomplete.d.ts +65 -0
- package/dist/types/components/c-autocomplete/test/c-autocomplete.visual.d.ts +1 -0
- package/dist/types/components/c-badge/c-badge.d.ts +3 -0
- package/dist/types/components/c-button/c-button.d.ts +36 -0
- package/dist/types/components/c-button/test/c-button.visual.d.ts +1 -0
- package/dist/types/components/c-card/c-card.d.ts +12 -0
- package/dist/types/components/c-card/test/c-card.visual.d.ts +1 -0
- package/dist/types/components/c-card-actions/c-card-actions.d.ts +5 -0
- package/dist/types/components/c-card-content/c-card-content.d.ts +3 -0
- package/dist/types/components/c-card-title/c-card-title.d.ts +3 -0
- package/dist/types/components/c-checkbox/c-checkbox.d.ts +37 -0
- package/dist/types/components/c-checkbox/test/c-checkbox.visual.d.ts +1 -0
- package/dist/types/components/c-csc-logo/c-csc-logo.d.ts +4 -0
- package/dist/types/components/c-data-table/c-data-table.d.ts +116 -0
- package/dist/types/components/c-data-table/test/c-data-table.visual.d.ts +1 -0
- package/dist/types/components/c-data-table/test/data/index.d.ts +3 -0
- package/dist/types/components/c-dropdown/c-dropdown.d.ts +66 -0
- package/dist/types/components/c-dropdowns/c-dropdowns.d.ts +29 -0
- package/dist/types/components/c-icon/c-icon.d.ts +7 -0
- package/dist/types/components/c-icon-button/c-icon-button.d.ts +18 -0
- package/dist/types/components/c-icon-button/test/c-icon-button.visual.d.ts +1 -0
- package/dist/types/components/c-input/c-input.d.ts +75 -0
- package/dist/types/components/c-link/c-link.d.ts +7 -0
- package/dist/types/components/c-link/test/c-link.visual.d.ts +1 -0
- package/dist/types/components/c-list/c-list.d.ts +8 -0
- package/dist/types/components/c-list-item/c-list-item.d.ts +16 -0
- package/dist/types/components/c-list-item-title/c-list-item-title.d.ts +4 -0
- package/dist/types/components/c-loader/c-loader.d.ts +10 -0
- package/dist/types/components/c-login-button/c-login-button.d.ts +6 -0
- package/dist/types/components/c-login-buttons/c-login-buttons.d.ts +3 -0
- package/dist/types/components/c-login-card/c-login-card.d.ts +19 -0
- package/dist/types/components/c-login-card/test/c-login-card.visual.d.ts +1 -0
- package/dist/types/components/c-login-card-actions/c-login-card-actions.d.ts +5 -0
- package/dist/types/components/c-login-card-content/c-login-card-content.d.ts +3 -0
- package/dist/types/components/c-login-card-title/c-login-card-title.d.ts +3 -0
- package/dist/types/components/c-main/c-main.d.ts +3 -0
- package/dist/types/components/c-menu/c-menu.d.ts +26 -0
- package/dist/types/components/c-menu/test/c-menu.visual.d.ts +1 -0
- package/dist/types/components/c-menu-items/c-menu-items.d.ts +44 -0
- package/dist/types/components/c-message/c-message.d.ts +18 -0
- package/dist/types/components/c-modal/c-modal.d.ts +23 -0
- package/dist/types/components/c-navigation-button/c-navigation-button.d.ts +3 -0
- package/dist/types/components/c-option/c-option.d.ts +7 -0
- package/dist/types/components/c-option-value/c-option-value.d.ts +3 -0
- package/dist/types/components/c-otp-input/c-otp-input.d.ts +31 -0
- package/dist/types/components/c-page/c-page.d.ts +7 -0
- package/dist/types/components/c-pagination/c-pagination.d.ts +38 -0
- package/dist/types/components/c-pagination/test/c-pagination.visual.d.ts +1 -0
- package/dist/types/components/c-progress-bar/c-progress-bar.d.ts +9 -0
- package/dist/types/components/c-progress-bar/test/c-progress-bar.visual.d.ts +1 -0
- package/dist/types/components/c-radio/c-radio.d.ts +6 -0
- package/dist/types/components/c-radio-group/c-radio-group.d.ts +40 -0
- package/dist/types/components/c-radio-group/test/c-radio-group.visual.d.ts +1 -0
- package/dist/types/components/c-radio-group/test/items.d.ts +2 -0
- package/dist/types/components/c-ripple/c-ripple.d.ts +7 -0
- package/dist/types/components/c-row/c-row.d.ts +10 -0
- package/dist/types/components/c-select/c-select.d.ts +73 -0
- package/dist/types/components/c-select/test/c-select.visual.d.ts +1 -0
- package/dist/types/components/c-select/test/items.d.ts +2 -0
- package/dist/types/components/c-side-navigation/c-side-navigation.d.ts +9 -0
- package/dist/types/components/c-side-navigation/test/c-side-navigation.visual.d.ts +1 -0
- package/dist/types/components/c-side-navigation-item/c-side-navigation-item.d.ts +20 -0
- package/dist/types/components/c-side-navigation-title/c-side-navigation-title.d.ts +3 -0
- package/dist/types/components/c-spacer/c-spacer.d.ts +3 -0
- package/dist/types/components/c-spinner/c-spinner.d.ts +6 -0
- package/dist/types/components/c-status/c-status.d.ts +4 -0
- package/dist/types/components/c-status/test/c-status.visual.d.ts +1 -0
- package/dist/types/components/c-step/c-step.d.ts +5 -0
- package/dist/types/components/c-steps/c-steps.d.ts +16 -0
- package/dist/types/components/c-steps/test/c-steps.visual.d.ts +1 -0
- package/dist/types/components/c-sub-navigation-item/c-sub-navigation-item.d.ts +10 -0
- package/dist/types/components/c-swiper/c-swiper.d.ts +25 -0
- package/dist/types/components/c-swiper/test/c-swiper.visual.d.ts +1 -0
- package/dist/types/components/c-swiper-tab/c-swiper-tab.d.ts +16 -0
- package/dist/types/components/c-switch/c-switch.d.ts +18 -0
- package/dist/types/components/c-switch/test/c-switch.visual.d.ts +1 -0
- package/dist/types/components/c-tab/c-tab.d.ts +20 -0
- package/dist/types/components/c-tab-buttons/c-tab-buttons.d.ts +24 -0
- package/dist/types/components/c-tab-buttons/test/c-tab-buttons.visual.d.ts +1 -0
- package/dist/types/components/c-tab-item/c-tab-item.d.ts +12 -0
- package/dist/types/components/c-tab-items/c-tab-items.d.ts +18 -0
- package/dist/types/components/c-table/c-table.d.ts +12 -0
- package/dist/types/components/c-tabs/c-tabs.d.ts +67 -0
- package/dist/types/components/c-tabs/test/c-tabs.visual.d.ts +1 -0
- package/dist/types/components/c-tag/c-tag.d.ts +12 -0
- package/dist/types/components/c-tag/test/c-tag.visual.d.ts +1 -0
- package/dist/types/components/c-tags/c-tags.d.ts +3 -0
- package/dist/types/components/c-text-field/c-text-field.d.ts +56 -0
- package/dist/types/components/c-text-field/test/c-text-field.visual.d.ts +1 -0
- package/dist/types/components/c-toast/c-toast.d.ts +19 -0
- package/dist/types/components/c-toasts/c-toasts.d.ts +17 -0
- package/dist/types/components/c-toasts/test/c-toasts.visual.d.ts +1 -0
- package/dist/types/components/c-toolbar/c-toolbar.d.ts +3 -0
- package/dist/types/components/c-toolbar/test/c-toolbar.visual.d.ts +1 -0
- package/dist/types/components.d.ts +5143 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +1673 -0
- package/dist/types/types/global.d.ts +13 -0
- package/dist/types/types/index.d.ts +145 -0
- package/dist/types/utils/test/sleep.d.ts +1 -0
- package/dist/types/utils/test/takeScreenshot.d.ts +2 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +13 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +95 -0
- package/vscode-data.json +2135 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"c-switch.js","sourceRoot":"","sources":["../../../../src/components/c-switch/c-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,CAAC,EACD,OAAO,EACP,IAAI,EACJ,KAAK,EACL,KAAK,EAEL,eAAe,GAChB,MAAM,eAAe,CAAC;AAYvB,MAAM,OAAO,OAAO;;IAiEV,iBAAY,GAAG,GAAG,EAAE;MAC1B,IAAI,IAAI,CAAC,YAAY;QAAE,OAAO;MAE9B,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC;MAE7B,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,SAAS,KAAK,SAAS,EAAE;QACzE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAElC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAE,IAAI,CAAC,KAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAE1E,OAAO;OACR;MAED,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACzE,CAAC,CAAC;mBAxEiC,KAAK;iBAMN,KAAK;qBAKD,IAAI;sBAKH,KAAK;wBAKI,KAAK;;oBAUlC,KAAK;oBAIJ,KAAK;;EAOzB,iBAAiB;IACf,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,SAAS,EAAE;MACjC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;KACrB;IAED,IAAI,IAAI,CAAC,OAAO,EAAE;MAChB,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,KAAe,CAAC,CAAC;KACnD;EACH,CAAC;EAED,gBAAgB;IACd,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;IAErC,IAAI,CAAC,QAAQ,GAAG,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;EAChD,CAAC;EAkBD,MAAM;IACJ,MAAM,OAAO,GAAG;MACd,UAAU,EAAE,IAAI;MAChB,oBAAoB,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY;MACzC,iBAAiB,EAAE,IAAI,CAAC,QAAQ;KACjC,CAAC;IAEF,MAAM,aAAa,GAAG;MACpB,kBAAkB,EAAE,IAAI;MACxB,4BAA4B,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY;KAClD,CAAC;IAEF,OAAO,CACL,aAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,MAAM;MACzC,WAAK,KAAK,EAAC,iBAAiB;QAC1B,aACE,EAAE,EAAE,IAAI,CAAC,MAAM,kBACD,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,EACrC,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EACxC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,GACnC;QACF,YAAM,KAAK,EAAE,aAAa,GAAS,CAC/B;MACL,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CACf,WAAK,KAAK,EAAC,iBAAiB;QAC1B,eAAa;QAEZ,IAAI,CAAC,QAAQ,IAAI,YAAM,KAAK,EAAC,UAAU,cAAe,CACnD,CACP,CAAC,CAAC,CAAC,IAAI,CACF,CACT,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n h,\n Element,\n Prop,\n State,\n Event,\n EventEmitter,\n AttachInternals,\n} from '@stencil/core';\n\n/**\n * @group Form\n * @slot label - Label text for the switch\n */\n@Component({\n tag: 'c-switch',\n styleUrl: 'c-switch.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class CSwitch {\n // eslint-disable-next-line @stencil-community/own-props-must-be-private\n @AttachInternals() internals: ElementInternals;\n\n /**\n * If `true`, the checkbox is selected.\n */\n @Prop({ mutable: true }) checked = false;\n\n /**\n * The input value\n * - Only used when the checkbox participates in a native `<form>`\n */\n @Prop() value: string | boolean = false;\n\n /**\n * The value when the checkbox is checked\n */\n @Prop() trueValue: boolean | string = true;\n\n /**\n * The value when the checkbox is unchecked\n */\n @Prop() falseValue: boolean | string = false;\n\n /**\n * Disable the switch\n */\n @Prop({ attribute: 'disabled' }) hostDisabled = false;\n\n /**\n * Id for the element\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Set as required\n */\n @Prop() required = false;\n\n @Element() host: HTMLCSwitchElement;\n\n @State() hasLabel = false;\n\n /**\n * Emit inner value change to parent\n */\n @Event({ bubbles: false }) changeValue: EventEmitter;\n\n componentWillLoad() {\n if (this.value === this.trueValue) {\n this.checked = true;\n }\n\n if (this.checked) {\n this.internals.setFormValue(this.value as string);\n }\n }\n\n componentDidLoad() {\n const slotted = this.host.childNodes;\n\n this.hasLabel = slotted && slotted.length > 0;\n }\n\n private _toggleState = () => {\n if (this.hostDisabled) return;\n\n this.checked = !this.checked;\n\n if (typeof this.value === 'string' && typeof this.trueValue === 'boolean') {\n this.changeValue.emit(this.value);\n\n this.internals.setFormValue(this.checked ? (this.value as string) : null);\n\n return;\n }\n\n this.changeValue.emit(this.checked ? this.trueValue : this.falseValue);\n };\n\n render() {\n const classes = {\n 'c-switch': true,\n 'c-switch--disabled': !!this.hostDisabled,\n 'c-switch--label': this.hasLabel,\n };\n\n const sliderClasses = {\n 'c-switch__slider': true,\n 'c-switch__slider--disabled': !!this.hostDisabled,\n };\n\n return (\n <label class={classes} htmlFor={this.hostId}>\n <div class=\"c-switch__input\">\n <input\n id={this.hostId}\n aria-checked={this.checked.toString()}\n type=\"checkbox\"\n role=\"switch\"\n disabled={this.hostDisabled}\n checked={this.checked ? true : undefined}\n onChange={() => this._toggleState()}\n />\n <span class={sliderClasses}></span>\n </div>\n {this.hasLabel ? (\n <div class=\"c-switch__label\">\n <slot></slot>\n\n {this.required && <span class=\"required\"> *</span>}\n </div>\n ) : null}\n </label>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
describe('c-switch', () => {
|
|
3
|
+
it('reacts to value change', async () => {
|
|
4
|
+
const page = await newE2EPage({
|
|
5
|
+
html: `<c-switch></c-switch>`,
|
|
6
|
+
});
|
|
7
|
+
let checkMark = await page.find('c-switch >>> input');
|
|
8
|
+
expect(checkMark).not.toHaveAttribute('aria-checked');
|
|
9
|
+
const slider = await page.find('c-switch');
|
|
10
|
+
slider.setAttribute('value', true);
|
|
11
|
+
await page.waitForChanges();
|
|
12
|
+
checkMark = await page.find('c-switch >>> input');
|
|
13
|
+
expect(checkMark).toHaveAttribute('aria-checked');
|
|
14
|
+
});
|
|
15
|
+
it('value changes on click', async () => {
|
|
16
|
+
const page = await newE2EPage({
|
|
17
|
+
html: `<c-switch></c-switch>`,
|
|
18
|
+
});
|
|
19
|
+
let checkMark = await page.find('c-switch >>> input');
|
|
20
|
+
expect(checkMark).not.toHaveAttribute('aria-checked');
|
|
21
|
+
const slider = await page.find('c-switch');
|
|
22
|
+
slider.click();
|
|
23
|
+
await page.waitForChanges();
|
|
24
|
+
checkMark = await page.find('c-switch >>> input');
|
|
25
|
+
expect(checkMark).toHaveAttribute('aria-checked');
|
|
26
|
+
});
|
|
27
|
+
it('can not be clicked when disabled', async () => {
|
|
28
|
+
const page = await newE2EPage({
|
|
29
|
+
html: `<c-switch></c-switch>`,
|
|
30
|
+
});
|
|
31
|
+
let checkMark = await page.find('c-switch >>> input');
|
|
32
|
+
expect(checkMark).not.toHaveAttribute('aria-checked');
|
|
33
|
+
const slider = await page.find('c-switch');
|
|
34
|
+
slider.setAttribute('disabled', true);
|
|
35
|
+
await page.waitForChanges();
|
|
36
|
+
slider.click();
|
|
37
|
+
await page.waitForChanges();
|
|
38
|
+
checkMark = await page.find('c-switch >>> input');
|
|
39
|
+
expect(checkMark).not.toHaveAttribute('aria-checked');
|
|
40
|
+
});
|
|
41
|
+
it('require selection', async () => {
|
|
42
|
+
const page = await newE2EPage({
|
|
43
|
+
html: `<c-switch>Required</c-switch>`,
|
|
44
|
+
});
|
|
45
|
+
const slider = await page.find('c-switch');
|
|
46
|
+
slider.setProperty('required', true);
|
|
47
|
+
await page.waitForChanges();
|
|
48
|
+
expect(slider.innerText).toContain('Required');
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
//# sourceMappingURL=c-switch.e2e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"c-switch.e2e.js","sourceRoot":"","sources":["../../../../../src/components/c-switch/test/c-switch.e2e.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;EACxB,EAAE,CAAC,wBAAwB,EAAE,KAAK,IAAI,EAAE;IACtC,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC;MAC5B,IAAI,EAAE,uBAAuB;KAC9B,CAAC,CAAC;IAEH,IAAI,SAAS,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IACtD,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;IAEtD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAE3C,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAEnC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAE5B,SAAS,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IAElD,MAAM,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;EACpD,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,wBAAwB,EAAE,KAAK,IAAI,EAAE;IACtC,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC;MAC5B,IAAI,EAAE,uBAAuB;KAC9B,CAAC,CAAC;IAEH,IAAI,SAAS,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IACtD,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;IAEtD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAE3C,MAAM,CAAC,KAAK,EAAE,CAAC;IAEf,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAE5B,SAAS,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IAElD,MAAM,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;EACpD,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,kCAAkC,EAAE,KAAK,IAAI,EAAE;IAChD,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC;MAC5B,IAAI,EAAE,uBAAuB;KAC9B,CAAC,CAAC;IAEH,IAAI,SAAS,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IACtD,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;IAEtD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAE3C,MAAM,CAAC,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAEtC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAE5B,MAAM,CAAC,KAAK,EAAE,CAAC;IAEf,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAE5B,SAAS,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IAElD,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;EACxD,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,mBAAmB,EAAE,KAAK,IAAI,EAAE;IACjC,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC;MAC5B,IAAI,EAAE,+BAA+B;KACtC,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC3C,MAAM,CAAC,WAAW,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;IAErC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;IAE5B,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;EACjD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('c-switch', () => {\n it('reacts to value change', async () => {\n const page = await newE2EPage({\n html: `<c-switch></c-switch>`,\n });\n\n let checkMark = await page.find('c-switch >>> input');\n expect(checkMark).not.toHaveAttribute('aria-checked');\n\n const slider = await page.find('c-switch');\n\n slider.setAttribute('value', true);\n\n await page.waitForChanges();\n\n checkMark = await page.find('c-switch >>> input');\n\n expect(checkMark).toHaveAttribute('aria-checked');\n });\n\n it('value changes on click', async () => {\n const page = await newE2EPage({\n html: `<c-switch></c-switch>`,\n });\n\n let checkMark = await page.find('c-switch >>> input');\n expect(checkMark).not.toHaveAttribute('aria-checked');\n\n const slider = await page.find('c-switch');\n\n slider.click();\n\n await page.waitForChanges();\n\n checkMark = await page.find('c-switch >>> input');\n\n expect(checkMark).toHaveAttribute('aria-checked');\n });\n\n it('can not be clicked when disabled', async () => {\n const page = await newE2EPage({\n html: `<c-switch></c-switch>`,\n });\n\n let checkMark = await page.find('c-switch >>> input');\n expect(checkMark).not.toHaveAttribute('aria-checked');\n\n const slider = await page.find('c-switch');\n\n slider.setAttribute('disabled', true);\n\n await page.waitForChanges();\n\n slider.click();\n\n await page.waitForChanges();\n\n checkMark = await page.find('c-switch >>> input');\n\n expect(checkMark).not.toHaveAttribute('aria-checked');\n });\n\n it('require selection', async () => {\n const page = await newE2EPage({\n html: `<c-switch>Required</c-switch>`,\n });\n\n const slider = await page.find('c-switch');\n slider.setProperty('required', true);\n\n await page.waitForChanges();\n\n expect(slider.innerText).toContain('Required');\n });\n});\n"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { newSpecPage } from "@stencil/core/testing";
|
|
2
|
+
import { CSwitch } from "../c-switch";
|
|
3
|
+
describe('c-switch', () => {
|
|
4
|
+
it('renders default html', async () => {
|
|
5
|
+
const page = await newSpecPage({
|
|
6
|
+
components: [CSwitch],
|
|
7
|
+
html: `<c-switch></c-switch>`,
|
|
8
|
+
});
|
|
9
|
+
expect(page.root).toMatchSnapshot();
|
|
10
|
+
});
|
|
11
|
+
it('renders disabled switch', async () => {
|
|
12
|
+
const page = await newSpecPage({
|
|
13
|
+
components: [CSwitch],
|
|
14
|
+
html: `<c-switch disabled=${true}></c-switch>`,
|
|
15
|
+
});
|
|
16
|
+
expect(page.root).toMatchSnapshot();
|
|
17
|
+
});
|
|
18
|
+
it('renders id-attribute', async () => {
|
|
19
|
+
const page = await newSpecPage({
|
|
20
|
+
components: [CSwitch],
|
|
21
|
+
html: `<c-switch id="switching"></c-switch>`,
|
|
22
|
+
});
|
|
23
|
+
expect(page.root).toMatchSnapshot();
|
|
24
|
+
});
|
|
25
|
+
it('set as required', async () => {
|
|
26
|
+
const page = await newSpecPage({
|
|
27
|
+
components: [CSwitch],
|
|
28
|
+
html: `<c-switch required=${true}></c-switch>`,
|
|
29
|
+
});
|
|
30
|
+
expect(page.root).toMatchSnapshot();
|
|
31
|
+
});
|
|
32
|
+
it('set value', async () => {
|
|
33
|
+
const page = await newSpecPage({
|
|
34
|
+
components: [CSwitch],
|
|
35
|
+
html: `<c-switch value=${true}></c-switch>`,
|
|
36
|
+
});
|
|
37
|
+
expect(page.root).toMatchSnapshot();
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=c-switch.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"c-switch.spec.js","sourceRoot":"","sources":["../../../../../src/components/c-switch/test/c-switch.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;EACxB,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;IACpC,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,OAAO,CAAC;MACrB,IAAI,EAAE,uBAAuB;KAC9B,CAAC,CAAC;IAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;EACtC,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,yBAAyB,EAAE,KAAK,IAAI,EAAE;IACvC,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,OAAO,CAAC;MACrB,IAAI,EAAE,sBAAsB,IAAI,cAAc;KAC/C,CAAC,CAAC;IAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;EACtC,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;IACpC,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,OAAO,CAAC;MACrB,IAAI,EAAE,sCAAsC;KAC7C,CAAC,CAAC;IAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;EACtC,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,iBAAiB,EAAE,KAAK,IAAI,EAAE;IAC/B,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,OAAO,CAAC;MACrB,IAAI,EAAE,sBAAsB,IAAI,cAAc;KAC/C,CAAC,CAAC;IAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;EACtC,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,WAAW,EAAE,KAAK,IAAI,EAAE;IACzB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,OAAO,CAAC;MACrB,IAAI,EAAE,mBAAmB,IAAI,cAAc;KAC5C,CAAC,CAAC;IAEH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;EACtC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { CSwitch } from '../c-switch';\n\ndescribe('c-switch', () => {\n it('renders default html', async () => {\n const page = await newSpecPage({\n components: [CSwitch],\n html: `<c-switch></c-switch>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it('renders disabled switch', async () => {\n const page = await newSpecPage({\n components: [CSwitch],\n html: `<c-switch disabled=${true}></c-switch>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it('renders id-attribute', async () => {\n const page = await newSpecPage({\n components: [CSwitch],\n html: `<c-switch id=\"switching\"></c-switch>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it('set as required', async () => {\n const page = await newSpecPage({\n components: [CSwitch],\n html: `<c-switch required=${true}></c-switch>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n\n it('set value', async () => {\n const page = await newSpecPage({\n components: [CSwitch],\n html: `<c-switch value=${true}></c-switch>`,\n });\n\n expect(page.root).toMatchSnapshot();\n });\n});\n"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { test, expect } from "@playwright/test";
|
|
2
|
+
test.beforeEach(async ({ page }, testInfo) => {
|
|
3
|
+
await page.goto('http://localhost:4200/c-switch');
|
|
4
|
+
testInfo.snapshotSuffix = '';
|
|
5
|
+
});
|
|
6
|
+
test('Default', async ({ page }) => {
|
|
7
|
+
const button = page.locator('app-example[name="inactive"] c-switch');
|
|
8
|
+
await expect(button).toHaveScreenshot();
|
|
9
|
+
await button.locator('label span').click();
|
|
10
|
+
await expect(button).toHaveScreenshot();
|
|
11
|
+
});
|
|
12
|
+
test('Active', async ({ page }) => {
|
|
13
|
+
const button = page.locator('app-example[name="active"] c-switch');
|
|
14
|
+
await expect(button).toHaveScreenshot();
|
|
15
|
+
});
|
|
16
|
+
test('Disabled', async ({ page }) => {
|
|
17
|
+
const button = page.locator('app-example[name="disabled"] c-switch');
|
|
18
|
+
await expect(button).toHaveScreenshot();
|
|
19
|
+
});
|
|
20
|
+
test('Label', async ({ page }) => {
|
|
21
|
+
const button = page.locator('app-example[name="labeled"] c-switch');
|
|
22
|
+
await expect(button).toHaveScreenshot();
|
|
23
|
+
});
|
|
24
|
+
test('Required', async ({ page }) => {
|
|
25
|
+
const button = page.locator('app-example[name="required"] c-switch');
|
|
26
|
+
await expect(button).toHaveScreenshot();
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=c-switch.visual.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"c-switch.visual.js","sourceRoot":"","sources":["../../../../../src/components/c-switch/test/c-switch.visual.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAEhD,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,EAAE;EAC3C,MAAM,IAAI,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;EAElD,QAAQ,CAAC,cAAc,GAAG,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;EACjC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,uCAAuC,CAAC,CAAC;EAErE,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC,gBAAgB,EAAE,CAAC;EAExC,MAAM,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,KAAK,EAAE,CAAC;EAE3C,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC,gBAAgB,EAAE,CAAC;AAC1C,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;EAChC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,qCAAqC,CAAC,CAAC;EAEnE,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC,gBAAgB,EAAE,CAAC;AAC1C,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;EAClC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,uCAAuC,CAAC,CAAC;EAErE,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC,gBAAgB,EAAE,CAAC;AAC1C,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;EAC/B,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,sCAAsC,CAAC,CAAC;EAEpE,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC,gBAAgB,EAAE,CAAC;AAC1C,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;EAClC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,uCAAuC,CAAC,CAAC;EAErE,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC,gBAAgB,EAAE,CAAC;AAC1C,CAAC,CAAC,CAAC","sourcesContent":["import { test, expect } from '@playwright/test';\n\ntest.beforeEach(async ({ page }, testInfo) => {\n await page.goto('http://localhost:4200/c-switch');\n\n testInfo.snapshotSuffix = '';\n});\n\ntest('Default', async ({ page }) => {\n const button = page.locator('app-example[name=\"inactive\"] c-switch');\n\n await expect(button).toHaveScreenshot();\n\n await button.locator('label span').click();\n\n await expect(button).toHaveScreenshot();\n});\n\ntest('Active', async ({ page }) => {\n const button = page.locator('app-example[name=\"active\"] c-switch');\n\n await expect(button).toHaveScreenshot();\n});\n\ntest('Disabled', async ({ page }) => {\n const button = page.locator('app-example[name=\"disabled\"] c-switch');\n\n await expect(button).toHaveScreenshot();\n});\n\ntest('Label', async ({ page }) => {\n const button = page.locator('app-example[name=\"labeled\"] c-switch');\n\n await expect(button).toHaveScreenshot();\n});\n\ntest('Required', async ({ page }) => {\n const button = page.locator('app-example[name=\"required\"] c-switch');\n\n await expect(button).toHaveScreenshot();\n});\n"]}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
html {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
*,
|
|
6
|
+
*:before,
|
|
7
|
+
*:after {
|
|
8
|
+
box-sizing: inherit;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host {
|
|
12
|
+
font-family: var(--c-font-family);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
::-ms-reveal {
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host {
|
|
20
|
+
/**
|
|
21
|
+
* @prop --c-tab-border-color-active: Active tab bottom border color
|
|
22
|
+
* @prop --c-tab-background-color-hover: Tab hover background color
|
|
23
|
+
* @prop --c-tab-outline-color: Tab outline color
|
|
24
|
+
* @prop --c-tab-text-color: Tab text color
|
|
25
|
+
*/
|
|
26
|
+
--_c-tab-border-color-active: var(--c-tab-border-color-active, var(--_c-tab-text-color));
|
|
27
|
+
--_c-tab-background-color-hover: var(--c-tab-background-color-hover, var(--c-primary-100));
|
|
28
|
+
--_c-tab-outline-color: var(--c-tab-outline-color, var(--_c-tab-text-color));
|
|
29
|
+
--_c-tab-text-color: var(--c-tab-text-color, var(--c-primary-600));
|
|
30
|
+
display: block;
|
|
31
|
+
user-select: none;
|
|
32
|
+
min-width: min-content;
|
|
33
|
+
padding-inline: 12px;
|
|
34
|
+
flex-grow: 1;
|
|
35
|
+
}
|
|
36
|
+
:host span {
|
|
37
|
+
max-width: 100%;
|
|
38
|
+
white-space: nowrap;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
text-overflow: ellipsis;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:host(:focus) {
|
|
44
|
+
outline: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host(:focus-visible) {
|
|
48
|
+
border-radius: 4px;
|
|
49
|
+
outline: 2px var(--_c-tab-outline-color) solid;
|
|
50
|
+
outline-offset: 2px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:host([role=tab][aria-disabled=true]) {
|
|
54
|
+
cursor: default !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
slot {
|
|
58
|
+
pointer-events: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:host(.c-tab) {
|
|
62
|
+
align-items: center;
|
|
63
|
+
color: var(--_c-tab-text-color);
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
display: inline-flex;
|
|
66
|
+
font-weight: 600;
|
|
67
|
+
height: 52px;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
position: relative;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:host(.c-tab:hover) {
|
|
74
|
+
background-color: var(--_c-tab-background-color-hover);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:host(.c-tab--active:hover) {
|
|
78
|
+
background-color: transparent !important;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:host(.c-tab--disabled) {
|
|
82
|
+
color: var(--c-tertiary-500);
|
|
83
|
+
cursor: default;
|
|
84
|
+
opacity: 0.75;
|
|
85
|
+
pointer-events: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:host(.c-tab button) {
|
|
89
|
+
appearance: none;
|
|
90
|
+
background-color: transparent;
|
|
91
|
+
border: none;
|
|
92
|
+
color: inherit;
|
|
93
|
+
cursor: inherit;
|
|
94
|
+
font-family: inherit;
|
|
95
|
+
font-size: inherit;
|
|
96
|
+
font-weight: inherit;
|
|
97
|
+
height: 100%;
|
|
98
|
+
overflow: hidden;
|
|
99
|
+
position: relative;
|
|
100
|
+
width: 100%;
|
|
101
|
+
}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { h, Host, } from "@stencil/core";
|
|
2
|
+
export class CTab {
|
|
3
|
+
constructor() {
|
|
4
|
+
this._onClick = (event, center = false) => {
|
|
5
|
+
if (this.disabled)
|
|
6
|
+
return;
|
|
7
|
+
this._rippleElement.createRipple(event, this.element, center);
|
|
8
|
+
this.tabChange.emit({ value: this.value, element: this.element });
|
|
9
|
+
};
|
|
10
|
+
this.active = false;
|
|
11
|
+
this.disabled = false;
|
|
12
|
+
this.hostId = undefined;
|
|
13
|
+
this.position = undefined;
|
|
14
|
+
this.setsize = undefined;
|
|
15
|
+
this.value = undefined;
|
|
16
|
+
}
|
|
17
|
+
onTabFocus() {
|
|
18
|
+
this.tabFocus.emit(this.value);
|
|
19
|
+
}
|
|
20
|
+
handleKeydown(event) {
|
|
21
|
+
if (['Space', 'Enter'].includes(event.code)) {
|
|
22
|
+
event.preventDefault();
|
|
23
|
+
this._onClick(event, true);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
const classes = {
|
|
28
|
+
'c-tab': true,
|
|
29
|
+
'c-tab--active': this.active,
|
|
30
|
+
'c-tab--disabled': this.disabled,
|
|
31
|
+
};
|
|
32
|
+
const a11y = {
|
|
33
|
+
'aria-disabled': this.disabled.toString(),
|
|
34
|
+
'aria-hidden': this.disabled.toString(),
|
|
35
|
+
'aria-selected': this.active.toString(),
|
|
36
|
+
'aria-setsize': this.setsize,
|
|
37
|
+
'aria-posinset': this.position,
|
|
38
|
+
role: 'tab',
|
|
39
|
+
tabindex: this.active && !this.disabled ? 0 : -1,
|
|
40
|
+
};
|
|
41
|
+
return (h(Host, Object.assign({}, a11y, { id: this.hostId, "data-value": this.value, class: classes, onClick: this._onClick }), h("span", null, h("slot", null)), h("c-ripple", { ref: (el) => (this._rippleElement = el) })));
|
|
42
|
+
}
|
|
43
|
+
static get is() { return "c-tab"; }
|
|
44
|
+
static get encapsulation() { return "shadow"; }
|
|
45
|
+
static get originalStyleUrls() {
|
|
46
|
+
return {
|
|
47
|
+
"$": ["c-tab.scss"]
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
static get styleUrls() {
|
|
51
|
+
return {
|
|
52
|
+
"$": ["c-tab.css"]
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
static get properties() {
|
|
56
|
+
return {
|
|
57
|
+
"active": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"mutable": false,
|
|
60
|
+
"complexType": {
|
|
61
|
+
"original": "boolean",
|
|
62
|
+
"resolved": "boolean",
|
|
63
|
+
"references": {}
|
|
64
|
+
},
|
|
65
|
+
"required": false,
|
|
66
|
+
"optional": false,
|
|
67
|
+
"docs": {
|
|
68
|
+
"tags": [],
|
|
69
|
+
"text": "Mark tab as active"
|
|
70
|
+
},
|
|
71
|
+
"attribute": "active",
|
|
72
|
+
"reflect": false,
|
|
73
|
+
"defaultValue": "false"
|
|
74
|
+
},
|
|
75
|
+
"disabled": {
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"mutable": false,
|
|
78
|
+
"complexType": {
|
|
79
|
+
"original": "boolean",
|
|
80
|
+
"resolved": "boolean",
|
|
81
|
+
"references": {}
|
|
82
|
+
},
|
|
83
|
+
"required": false,
|
|
84
|
+
"optional": false,
|
|
85
|
+
"docs": {
|
|
86
|
+
"tags": [],
|
|
87
|
+
"text": "Mark tab as disabled"
|
|
88
|
+
},
|
|
89
|
+
"attribute": "disabled",
|
|
90
|
+
"reflect": false,
|
|
91
|
+
"defaultValue": "false"
|
|
92
|
+
},
|
|
93
|
+
"hostId": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"mutable": false,
|
|
96
|
+
"complexType": {
|
|
97
|
+
"original": "string",
|
|
98
|
+
"resolved": "string",
|
|
99
|
+
"references": {}
|
|
100
|
+
},
|
|
101
|
+
"required": false,
|
|
102
|
+
"optional": false,
|
|
103
|
+
"docs": {
|
|
104
|
+
"tags": [],
|
|
105
|
+
"text": "Id of the tab"
|
|
106
|
+
},
|
|
107
|
+
"attribute": "id",
|
|
108
|
+
"reflect": false
|
|
109
|
+
},
|
|
110
|
+
"position": {
|
|
111
|
+
"type": "number",
|
|
112
|
+
"mutable": false,
|
|
113
|
+
"complexType": {
|
|
114
|
+
"original": "number",
|
|
115
|
+
"resolved": "number",
|
|
116
|
+
"references": {}
|
|
117
|
+
},
|
|
118
|
+
"required": false,
|
|
119
|
+
"optional": false,
|
|
120
|
+
"docs": {
|
|
121
|
+
"tags": [{
|
|
122
|
+
"name": "private",
|
|
123
|
+
"text": undefined
|
|
124
|
+
}],
|
|
125
|
+
"text": "Position in the set"
|
|
126
|
+
},
|
|
127
|
+
"attribute": "position",
|
|
128
|
+
"reflect": false
|
|
129
|
+
},
|
|
130
|
+
"setsize": {
|
|
131
|
+
"type": "number",
|
|
132
|
+
"mutable": false,
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "number",
|
|
135
|
+
"resolved": "number",
|
|
136
|
+
"references": {}
|
|
137
|
+
},
|
|
138
|
+
"required": false,
|
|
139
|
+
"optional": false,
|
|
140
|
+
"docs": {
|
|
141
|
+
"tags": [{
|
|
142
|
+
"name": "private",
|
|
143
|
+
"text": undefined
|
|
144
|
+
}],
|
|
145
|
+
"text": "Size of the set"
|
|
146
|
+
},
|
|
147
|
+
"attribute": "setsize",
|
|
148
|
+
"reflect": false
|
|
149
|
+
},
|
|
150
|
+
"value": {
|
|
151
|
+
"type": "any",
|
|
152
|
+
"mutable": false,
|
|
153
|
+
"complexType": {
|
|
154
|
+
"original": "number | string",
|
|
155
|
+
"resolved": "number | string",
|
|
156
|
+
"references": {}
|
|
157
|
+
},
|
|
158
|
+
"required": false,
|
|
159
|
+
"optional": true,
|
|
160
|
+
"docs": {
|
|
161
|
+
"tags": [],
|
|
162
|
+
"text": "Value for the tab\n- for use in c-tabs"
|
|
163
|
+
},
|
|
164
|
+
"attribute": "value",
|
|
165
|
+
"reflect": false
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
static get events() {
|
|
170
|
+
return [{
|
|
171
|
+
"method": "tabChange",
|
|
172
|
+
"name": "tabChange",
|
|
173
|
+
"bubbles": true,
|
|
174
|
+
"cancelable": true,
|
|
175
|
+
"composed": true,
|
|
176
|
+
"docs": {
|
|
177
|
+
"tags": [{
|
|
178
|
+
"name": "private",
|
|
179
|
+
"text": undefined
|
|
180
|
+
}],
|
|
181
|
+
"text": "Emit changes to the parent"
|
|
182
|
+
},
|
|
183
|
+
"complexType": {
|
|
184
|
+
"original": "{\n value: number | string;\n element: HTMLCTabElement;\n }",
|
|
185
|
+
"resolved": "{ value: string | number; element: HTMLCTabElement; }",
|
|
186
|
+
"references": {
|
|
187
|
+
"HTMLCTabElement": {
|
|
188
|
+
"location": "global",
|
|
189
|
+
"id": "global::HTMLCTabElement"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}, {
|
|
194
|
+
"method": "tabFocus",
|
|
195
|
+
"name": "tabFocus",
|
|
196
|
+
"bubbles": true,
|
|
197
|
+
"cancelable": true,
|
|
198
|
+
"composed": true,
|
|
199
|
+
"docs": {
|
|
200
|
+
"tags": [{
|
|
201
|
+
"name": "private",
|
|
202
|
+
"text": undefined
|
|
203
|
+
}],
|
|
204
|
+
"text": "Emit focus to the parent"
|
|
205
|
+
},
|
|
206
|
+
"complexType": {
|
|
207
|
+
"original": "number | string",
|
|
208
|
+
"resolved": "number | string",
|
|
209
|
+
"references": {}
|
|
210
|
+
}
|
|
211
|
+
}];
|
|
212
|
+
}
|
|
213
|
+
static get elementRef() { return "element"; }
|
|
214
|
+
static get listeners() {
|
|
215
|
+
return [{
|
|
216
|
+
"name": "focus",
|
|
217
|
+
"method": "onTabFocus",
|
|
218
|
+
"target": undefined,
|
|
219
|
+
"capture": false,
|
|
220
|
+
"passive": true
|
|
221
|
+
}, {
|
|
222
|
+
"name": "keydown",
|
|
223
|
+
"method": "handleKeydown",
|
|
224
|
+
"target": undefined,
|
|
225
|
+
"capture": false,
|
|
226
|
+
"passive": true
|
|
227
|
+
}];
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
//# sourceMappingURL=c-tab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"c-tab.js","sourceRoot":"","sources":["../../../../src/components/c-tab/c-tab.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,MAAM,EACN,IAAI,GACL,MAAM,eAAe,CAAC;AAYvB,MAAM,OAAO,IAAI;;IAuDP,aAAQ,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,EAAE,EAAE;MAC3C,IAAI,IAAI,CAAC,QAAQ;QAAE,OAAO;MAE1B,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;MAE9D,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC,CAAC;kBAvDe,KAAK;oBAKH,KAAK;;;;;;EAqDxB,UAAU;IACR,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;EACjC,CAAC;EAGD,aAAa,CAAC,KAAoB;IAChC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;MAC3C,KAAK,CAAC,cAAc,EAAE,CAAC;MAEvB,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;KAC5B;EACH,CAAC;EAED,MAAM;IACJ,MAAM,OAAO,GAAG;MACd,OAAO,EAAE,IAAI;MACb,eAAe,EAAE,IAAI,CAAC,MAAM;MAC5B,iBAAiB,EAAE,IAAI,CAAC,QAAQ;KACjC,CAAC;IAEF,MAAM,IAAI,GAAG;MACX,eAAe,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE;MACzC,aAAa,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE;MACvC,eAAe,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;MACvC,cAAc,EAAE,IAAI,CAAC,OAAO;MAC5B,eAAe,EAAE,IAAI,CAAC,QAAQ;MAC9B,IAAI,EAAE,KAAK;MACX,QAAQ,EAAE,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACjD,CAAC;IAEF,OAAO,CACL,EAAC,IAAI,oBACC,IAAI,IACR,EAAE,EAAE,IAAI,CAAC,MAAM,gBACH,IAAI,CAAC,KAAK,EACtB,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,IAAI,CAAC,QAAQ;MAEtB;QACE,eAAa,CACR;MAEP,gBAAU,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC,GAAa,CACzD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Prop,\n} from '@stencil/core';\n\n/**\n * @group Tabs\n * @parent c-tabs\n * @slot Default slot - Default slot\n */\n@Component({\n tag: 'c-tab',\n styleUrl: 'c-tab.scss',\n shadow: true,\n})\nexport class CTab {\n @Element() element: HTMLCTabElement;\n\n /**\n * Mark tab as active\n */\n @Prop() active = false;\n\n /**\n * Mark tab as disabled\n */\n @Prop() disabled = false;\n\n /**\n * Id of the tab\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Position in the set\n * @private\n */\n @Prop() position: number;\n\n /**\n * Size of the set\n * @private\n */\n @Prop() setsize: number;\n\n /**\n * Value for the tab\n * - for use in c-tabs\n */\n @Prop() value?: number | string;\n\n /**\n * Emit changes to the parent\n *\n * @private\n */\n @Event() tabChange: EventEmitter<{\n value: number | string;\n element: HTMLCTabElement;\n }>;\n\n /**\n * Emit focus to the parent\n *\n * @private\n */\n @Event() tabFocus: EventEmitter<number | string>;\n\n private _rippleElement: HTMLCRippleElement;\n\n private _onClick = (event, center = false) => {\n if (this.disabled) return;\n\n this._rippleElement.createRipple(event, this.element, center);\n\n this.tabChange.emit({ value: this.value, element: this.element });\n };\n\n @Listen('focus', { passive: true })\n onTabFocus() {\n this.tabFocus.emit(this.value);\n }\n\n @Listen('keydown', { passive: true })\n handleKeydown(event: KeyboardEvent) {\n if (['Space', 'Enter'].includes(event.code)) {\n event.preventDefault();\n\n this._onClick(event, true);\n }\n }\n\n render() {\n const classes = {\n 'c-tab': true,\n 'c-tab--active': this.active,\n 'c-tab--disabled': this.disabled,\n };\n\n const a11y = {\n 'aria-disabled': this.disabled.toString(),\n 'aria-hidden': this.disabled.toString(),\n 'aria-selected': this.active.toString(),\n 'aria-setsize': this.setsize,\n 'aria-posinset': this.position,\n role: 'tab',\n tabindex: this.active && !this.disabled ? 0 : -1,\n };\n\n return (\n <Host\n {...a11y}\n id={this.hostId}\n data-value={this.value}\n class={classes}\n onClick={this._onClick}\n >\n <span>\n <slot></slot>\n </span>\n\n <c-ripple ref={(el) => (this._rippleElement = el)}></c-ripple>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
html {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
*,
|
|
6
|
+
*:before,
|
|
7
|
+
*:after {
|
|
8
|
+
box-sizing: inherit;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host {
|
|
12
|
+
font-family: var(--c-font-family);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
::-ms-reveal {
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host {
|
|
20
|
+
/**
|
|
21
|
+
* @prop --c-tab-buttons-background-color-active-hover: Active tab button hover background color
|
|
22
|
+
* @prop --c-tab-buttons-background-color-active: Active tab button background color
|
|
23
|
+
* @prop --c-tab-buttons-text-color-active: Active tab button text color
|
|
24
|
+
*/
|
|
25
|
+
--_c-tab-buttons-background-color-active-hover: var(--c-tab-buttons-background-color-active-hover, var(--c-primary-400));
|
|
26
|
+
--_c-tab-buttons-background-color-active: var(--c-tab-buttons-background-color-active, var(--c-primary-600));
|
|
27
|
+
--_c-tab-buttons-text-color-active: var(--c-tab-buttons-text-color-active, var(--c-white));
|
|
28
|
+
/**
|
|
29
|
+
* @prop --c-tab-buttons-background-color-hover: Tab button hover background color
|
|
30
|
+
* @prop --c-tab-buttons-background-color: Tab button background color
|
|
31
|
+
* @prop --c-tab-buttons-border-color: Tab button border color
|
|
32
|
+
* @prop --c-tab-buttons-text-color: Tab button text color
|
|
33
|
+
*/
|
|
34
|
+
--_c-tab-buttons-background-color-hover: var(--c-tab-buttons-background-color-hover, var(--c-primary-200));
|
|
35
|
+
--_c-tab-buttons-background-color: var(--c-tab-buttons-background-color, var(--c-white));
|
|
36
|
+
--_c-tab-buttons-border-color: var(--c-tab-buttons-border-color, var(--c-primary-600));
|
|
37
|
+
--_c-tab-buttons-text-color: var(--c-tab-buttons-text-color, var(--c-primary-600));
|
|
38
|
+
/**
|
|
39
|
+
* @prop --c-tab-buttons-background-color: Disabled tab buttons border color
|
|
40
|
+
*/
|
|
41
|
+
--_c-tab-buttons-border-color-disabled: var(--c-tab-buttons-border-color-disabled, var(--c-tertiary-400));
|
|
42
|
+
/**
|
|
43
|
+
* @prop --c-tab-buttons-border-radius: Tab buttons border radius
|
|
44
|
+
*/
|
|
45
|
+
--_c-tab-buttons-border-radius: var(--c-tab-buttons-border-radius, 4px);
|
|
46
|
+
background-color: var(--_c-tab-buttons-border-color);
|
|
47
|
+
border-radius: var(--_c-tab-buttons-border-radius);
|
|
48
|
+
box-shadow: 0 0 0 2px var(--_c-tab-buttons-border-color);
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-wrap: wrap;
|
|
51
|
+
gap: 2px;
|
|
52
|
+
margin: 2px;
|
|
53
|
+
}
|
|
54
|
+
:host ::slotted(c-button) {
|
|
55
|
+
--c-button-background-color-hover: var(--_c-tab-buttons-background-color-active-hover);
|
|
56
|
+
--c-button-background-color: var(--_c-tab-buttons-background-color-active);
|
|
57
|
+
--c-button-text-color: var(--_c-tab-buttons-text-color-active);
|
|
58
|
+
--_c-button-border-radius: 0;
|
|
59
|
+
--_c-button-min-width: auto;
|
|
60
|
+
--_c-button-padding: 0 8px;
|
|
61
|
+
--_c-button-outline-offset: 4px;
|
|
62
|
+
flex-grow: 1;
|
|
63
|
+
}
|
|
64
|
+
:host ::slotted(c-button.c-button--outlined) {
|
|
65
|
+
--c-button-outlined-background-color-hover: var(--_c-tab-buttons-background-color-hover);
|
|
66
|
+
--c-button-outlined-background-color: var(--_c-tab-buttons-background-color);
|
|
67
|
+
--c-button-outlined-border-color: var(--_c-tab-buttons-border-color);
|
|
68
|
+
--c-button-outlined-text-color: var(--_c-tab-buttons-text-color);
|
|
69
|
+
box-shadow: none;
|
|
70
|
+
}
|
|
71
|
+
:host ::slotted(c-button.c-button--outlined)::before, :host ::slotted(c-button.c-button--outlined)::after {
|
|
72
|
+
background-color: #ffffff;
|
|
73
|
+
border-radius: inherit;
|
|
74
|
+
content: "";
|
|
75
|
+
height: 100%;
|
|
76
|
+
left: 0;
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 0;
|
|
79
|
+
transition: background-color 0.3s ease-in-out;
|
|
80
|
+
width: 100%;
|
|
81
|
+
z-index: -1;
|
|
82
|
+
}
|
|
83
|
+
:host ::slotted(c-button.c-button--outlined):hover {
|
|
84
|
+
background-color: var(--c-tab-button-background-color);
|
|
85
|
+
}
|
|
86
|
+
:host ::slotted(c-button:first-child) {
|
|
87
|
+
--_c-button-border-radius: var(--_c-tab-buttons-border-radius) 0 0 var(--_c-tab-buttons-border-radius);
|
|
88
|
+
}
|
|
89
|
+
:host ::slotted(c-button:last-child) {
|
|
90
|
+
--_c-button-border-radius: 0 var(--_c-tab-buttons-border-radius) var(--_c-tab-buttons-border-radius) 0;
|
|
91
|
+
}
|
|
92
|
+
:host ::slotted(*) {
|
|
93
|
+
flex-grow: 1;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host(.disabled) {
|
|
97
|
+
--_c-tab-buttons-border-color: var(--_c-tab-buttons-border-color-disabled) !important;
|
|
98
|
+
pointer-events: none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:host(.c-tab-buttons) ::slotted(c-button:focus) {
|
|
102
|
+
outline: none;
|
|
103
|
+
}
|
|
104
|
+
:host(.c-tab-buttons) ::slotted(c-button:focus-visible) {
|
|
105
|
+
outline: 2px var(--_c-tab-buttons-border-color) solid;
|
|
106
|
+
outline-offset: 4px;
|
|
107
|
+
z-index: 1;
|
|
108
|
+
}
|