@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
|
+
{"file":"c-tab.js","mappings":";;;AAAA,MAAM,OAAO,GAAG,w9CAAw9C;;MCqB39CA,MAAI;;;;;;;IAuDP,aAAQ,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK;MACvC,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;KACnE,CAAC;kBAvDe,KAAK;oBAKH,KAAK;;;;;;EAqDxB,UAAU;IACR,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;GAChC;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;GACF;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,GAAG,CAAC,GAAG,CAAC,CAAC;KACjD,CAAC;IAEF,QACE,EAAC,IAAI,oBACC,IAAI,IACR,EAAE,EAAE,IAAI,CAAC,MAAM,gBACH,IAAI,CAAC,KAAK,EACtB,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,IAAI,CAAC,QAAQ,KAEtB,gBACE,eAAa,CACR,EAEP,gBAAU,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC,GAAa,CACzD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CTab"],"sources":["src/components/c-tab/c-tab.scss?tag=c-tab&encapsulation=shadow","src/components/c-tab/c-tab.tsx"],"sourcesContent":[":host {\n /**\n * @prop --c-tab-border-color-active: Active tab bottom border color\n * @prop --c-tab-background-color-hover: Tab hover background color\n * @prop --c-tab-outline-color: Tab outline color\n * @prop --c-tab-text-color: Tab text color\n */\n --_c-tab-border-color-active: var(--c-tab-border-color-active, var(--_c-tab-text-color));\n --_c-tab-background-color-hover: var(--c-tab-background-color-hover, var(--c-primary-100));\n --_c-tab-outline-color: var(--c-tab-outline-color, var(--_c-tab-text-color));\n --_c-tab-text-color: var(--c-tab-text-color, var(--c-primary-600));\n\n display: block;\n user-select: none;\n min-width: min-content;\n padding-inline: 12px;\n flex-grow: 1;\n\n span {\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n}\n\n:host(:focus) {\n outline: none;\n}\n\n:host(:focus-visible) {\n border-radius: 4px;\n outline: 2px var(--_c-tab-outline-color) solid;\n outline-offset: 2px;\n}\n\n:host([role=\"tab\"][aria-disabled=\"true\"]) {\n cursor: default !important;\n}\n\nslot {\n pointer-events: none;\n}\n\n:host(.c-tab) {\n align-items: center;\n color: var(--_c-tab-text-color);\n cursor: pointer;\n display: inline-flex;\n font-weight: 600;\n height: 52px;\n justify-content: center;\n overflow: hidden;\n position: relative;\n}\n\n:host(.c-tab:hover) {\n background-color: var(--_c-tab-background-color-hover);\n}\n\n:host(.c-tab--active) {\n // box-shadow: inset 0 -3px 0 0 var(--_c-tab-border-color-active);\n}\n\n:host(.c-tab--active:hover) {\n background-color: transparent !important;\n}\n\n:host(.c-tab--disabled) {\n color: var(--c-tertiary-500);\n cursor: default;\n opacity: 0.75;\n pointer-events: none;\n}\n\n:host(.c-tab button) {\n appearance: none;\n background-color: transparent;\n border: none;\n color: inherit;\n cursor: inherit;\n font-family: inherit;\n font-size: inherit;\n font-weight: inherit;\n height: 100%;\n overflow: hidden;\n position: relative;\n width: 100%;\n}\n","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"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface CTable extends Components.CTable, HTMLElement {}
|
|
4
|
+
export const CTable: {
|
|
5
|
+
prototype: CTable;
|
|
6
|
+
new (): CTable;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const cTableCss = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host,:root{--_c-table-border-color:var(--c-table-border-color, var(--c-tertiary-200));--_c-table-header-text-color:var(--c-table-header-text-color, var(--c-text-system));--_c-table-row-background-color-mobile:var(--c-table-row-background-color-mobile, rgba(var(--c-primary-rgb), 0.05))}table.c-table{border-collapse:collapse;border-spacing:0;border:0;font-size:100%;font-family:var(--c-font-family);margin:0;padding:0;width:100%}table.c-table caption,table.c-table tbody,table.c-table tfoot,table.c-table thead,table.c-table tr,table.c-table th,table.c-table td{border:0;font-size:100%;font-family:var(--c-font-family);margin:0;padding:0}table.c-table thead{background-color:var(--c-white);position:relative}table.c-table thead th{border-bottom:2px solid var(--_c-table-border-color);text-align:left}table.c-table tbody{box-shadow:inset 1px 0 0 0 var(--_c-table-border-color), inset -1px 0 0 0 var(--_c-table-border-color), inset 0 1px 0 0 var(--_c-table-border-color), inset 0 -1px 0 0 var(--_c-table-border-color);}@supports (-webkit-hyphens: none){table.c-table tbody{border:1px solid var(--_c-table-border-color)}table.c-table tbody tr{border-bottom:1px solid var(--_c-table-border-color)}}table.c-table tbody tr{box-shadow:inset 0 1px 0 0 var(--_c-table-border-color)}table.c-table tfoot{background-color:var(--c-white)}table.c-table tfoot tr{box-shadow:inset 0 1px 0 0 var(--_c-table-border-color)}table.c-table tfoot td{min-height:48px}table.c-table tfoot td c-pagination{flex:1}table.c-table th,table.c-table td{font-weight:400;box-sizing:border-box;line-height:normal;padding:16px}table.c-table th{height:48px;font-size:14px;color:var(--_c-table-header-text-color)}table.c-table td{font-size:16px;color:var(--c-text-body)}table.c-table--mobile{border-spacing:0 16px;border-collapse:separate}table.c-table--mobile tbody{box-shadow:none}table.c-table--mobile tbody tr{border-radius:4px;box-shadow:inset 0 0 0 1px var(--_c-table-border-color)}@supports (-webkit-hyphens: none){table.c-table--mobile tbody tr{display:grid;margin-bottom:16px;border:none}}table.c-table--mobile thead{display:none}table.c-table--mobile td{display:grid;gap:4px;padding:12px;min-height:62px}table.c-table--mobile td::before{font-size:14px;color:var(--_c-table-header-text-color);content:attr(data-title);display:inline-block;text-align:start;padding-right:8px}table.c-table--mobile td:nth-of-type(even){background-color:var(--_c-table-row-background-color-mobile)}";
|
|
4
|
+
|
|
5
|
+
const CTable$1 = proxyCustomElement(class CTable extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.mobileBreakpoint = 600;
|
|
10
|
+
this.responsive = false;
|
|
11
|
+
}
|
|
12
|
+
get cells() {
|
|
13
|
+
return Array.from(this._tableElement.querySelectorAll('td'));
|
|
14
|
+
}
|
|
15
|
+
get headers() {
|
|
16
|
+
return Array.from(this._tableElement.querySelectorAll('th')).map((th) => th.innerHTML);
|
|
17
|
+
}
|
|
18
|
+
_handleResize(width) {
|
|
19
|
+
const isMobile = width <= this.mobileBreakpoint;
|
|
20
|
+
this._tableElement.classList.toggle('c-table--mobile', isMobile);
|
|
21
|
+
}
|
|
22
|
+
componentWillLoad() {
|
|
23
|
+
this._observer = new ResizeObserver(([entry]) => {
|
|
24
|
+
const { width } = entry.contentRect;
|
|
25
|
+
this._handleResize(width);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
componentDidLoad() {
|
|
29
|
+
if (this.responsive) {
|
|
30
|
+
this._observer.observe(this._tableElement);
|
|
31
|
+
}
|
|
32
|
+
this.cells.forEach((cell, index) => {
|
|
33
|
+
cell.dataset.title = this.headers[+index % this.headers.length];
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return (h(Host, null, h("table", { ref: (el) => (this._tableElement = el), class: "c-table" }, h("slot", null))));
|
|
38
|
+
}
|
|
39
|
+
static get style() { return cTableCss; }
|
|
40
|
+
}, [4, "c-table", {
|
|
41
|
+
"mobileBreakpoint": [2, "mobile-breakpoint"],
|
|
42
|
+
"responsive": [4]
|
|
43
|
+
}]);
|
|
44
|
+
function defineCustomElement$1() {
|
|
45
|
+
if (typeof customElements === "undefined") {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const components = ["c-table"];
|
|
49
|
+
components.forEach(tagName => { switch (tagName) {
|
|
50
|
+
case "c-table":
|
|
51
|
+
if (!customElements.get(tagName)) {
|
|
52
|
+
customElements.define(tagName, CTable$1);
|
|
53
|
+
}
|
|
54
|
+
break;
|
|
55
|
+
} });
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const CTable = CTable$1;
|
|
59
|
+
const defineCustomElement = defineCustomElement$1;
|
|
60
|
+
|
|
61
|
+
export { CTable, defineCustomElement };
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=c-table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"c-table.js","mappings":";;AAAA,MAAM,SAAS,GAAG,qhFAAqhF;;MCU1hFA,QAAM;;;;4BAIU,GAAG;sBAKT,KAAK;;EAM1B,IAAI,KAAK;IACP,OAAO,KAAK,CAAC,IAAI,CACf,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAChB,CAAC;GAC7B;EAED,IAAI,OAAO;IACT,OACE,KAAK,CAAC,IAAI,CACR,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAE5C,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,SAAS,CAAC,CAAC;GAC7B;EAEO,aAAa,CAAC,KAAa;IACjC,MAAM,QAAQ,GAAG,KAAK,IAAI,IAAI,CAAC,gBAAgB,CAAC;IAEhD,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC;GAClE;EAED,iBAAiB;IACf,IAAI,CAAC,SAAS,GAAG,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC;MAC1C,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC,WAAW,CAAC;MAEpC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;KAC3B,CAAC,CAAC;GACJ;EAED,gBAAgB;IACd,IAAI,IAAI,CAAC,UAAU,EAAE;MACnB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;KAC5C;IAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK;MAC7B,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;KACjE,CAAC,CAAC;GACJ;EAED,MAAM;IACJ,QACE,EAAC,IAAI,QACH,aAAO,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC,EAAE,KAAK,EAAC,SAAS,IAC5D,eAAa,CACP,CACH,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CTable"],"sources":["src/components/c-table/c-table.scss?tag=c-table","src/components/c-table/c-table.tsx"],"sourcesContent":[":host,\n:root {\n /**\n * @prop --c-table-border-color: Table border color\n * @prop --c-table-header-text-color: Table header text color\n * @prop --c-table-row-background-color-mobile: Background color for table rows (even) in mobile\n */\n --_c-table-border-color: var(--c-table-border-color, var(--c-tertiary-200));\n --_c-table-header-text-color: var(--c-table-header-text-color, var(--c-text-system));\n --_c-table-row-background-color-mobile: var(--c-table-row-background-color-mobile, rgba(var(--c-primary-rgb), 0.05));\n}\n\ntable.c-table {\n border-collapse: collapse;\n border-spacing: 0;\n border: 0;\n font-size: 100%;\n font-family: var(--c-font-family);\n margin: 0;\n padding: 0;\n width: 100%;\n\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td {\n border: 0;\n font-size: 100%;\n font-family: var(--c-font-family);\n margin: 0;\n padding: 0;\n }\n\n thead {\n background-color: var(--c-white);\n position: relative;\n\n th {\n border-bottom: 2px solid var(--_c-table-border-color);\n text-align: left;\n }\n }\n\n tbody {\n box-shadow: inset 1px 0 0 0 var(--_c-table-border-color),\n inset -1px 0 0 0 var(--_c-table-border-color),\n inset 0 1px 0 0 var(--_c-table-border-color),\n inset 0 -1px 0 0 var(--_c-table-border-color);\n\n /* Safari box shadow replacement */\n @supports (-webkit-hyphens: none) {\n border: 1px solid var(--_c-table-border-color);\n\n tr {\n border-bottom: 1px solid var(--_c-table-border-color);\n }\n }\n\n tr {\n box-shadow: inset 0 1px 0 0 var(--_c-table-border-color);\n }\n }\n\n tfoot {\n background-color: var(--c-white);\n\n tr {\n box-shadow: inset 0 1px 0 0 var(--_c-table-border-color);\n }\n\n td {\n min-height: 48px;\n\n c-pagination {\n flex: 1;\n }\n }\n }\n\n th,\n td {\n font-weight: 400;\n box-sizing: border-box;\n line-height: normal;\n padding: 16px;\n }\n\n th {\n height: 48px;\n font-size: 14px;\n color: var(--_c-table-header-text-color);\n }\n\n td {\n font-size: 16px;\n color: var(--c-text-body);\n }\n\n &--mobile {\n border-spacing: 0 16px;\n border-collapse: separate;\n\n tbody {\n box-shadow: none;\n\n tr {\n border-radius: 4px;\n\n /* Safari box shadow replacement */\n @supports (-webkit-hyphens: none) {\n display: grid;\n margin-bottom: 16px;\n border: none;\n }\n\n box-shadow: inset 0 0 0 1px var(--_c-table-border-color);\n }\n }\n\n thead {\n display: none;\n }\n\n td {\n display: grid;\n gap: 4px;\n padding: 12px;\n min-height: 62px;\n\n &::before {\n font-size: 14px;\n color: var(--_c-table-header-text-color);\n content: attr(data-title);\n display: inline-block;\n text-align: start;\n padding-right: 8px;\n }\n\n &:nth-of-type(even) {\n background-color: var(--_c-table-row-background-color-mobile);\n }\n }\n }\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\n\n/**\n * @group tables\n */\n@Component({\n tag: 'c-table',\n styleUrl: 'c-table.scss',\n shadow: false,\n})\nexport class CTable {\n /**\n * Mobile breakpoint in pixels\n */\n @Prop() mobileBreakpoint = 600;\n\n /**\n * Should the table be responsive\n */\n @Prop() responsive = false;\n\n private _tableElement: HTMLTableElement;\n\n private _observer: ResizeObserver;\n\n get cells() {\n return Array.from(\n this._tableElement.querySelectorAll('td'),\n ) as HTMLTableCellElement[];\n }\n\n get headers() {\n return (\n Array.from(\n this._tableElement.querySelectorAll('th'),\n ) as HTMLTableCellElement[]\n ).map((th) => th.innerHTML);\n }\n\n private _handleResize(width: number) {\n const isMobile = width <= this.mobileBreakpoint;\n\n this._tableElement.classList.toggle('c-table--mobile', isMobile);\n }\n\n componentWillLoad() {\n this._observer = new ResizeObserver(([entry]) => {\n const { width } = entry.contentRect;\n\n this._handleResize(width);\n });\n }\n\n componentDidLoad() {\n if (this.responsive) {\n this._observer.observe(this._tableElement);\n }\n\n this.cells.forEach((cell, index) => {\n cell.dataset.title = this.headers[+index % this.headers.length];\n });\n }\n\n render() {\n return (\n <Host>\n <table ref={(el) => (this._tableElement = el)} class=\"c-table\">\n <slot></slot>\n </table>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface CTabs extends Components.CTabs, HTMLElement {}
|
|
4
|
+
export const CTabs: {
|
|
5
|
+
prototype: CTabs;
|
|
6
|
+
new (): CTabs;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { p as mdiArrowLeft, o as mdiArrowRight } from './mdi.js';
|
|
3
|
+
import { d as defineCustomElement$6 } from './c-badge2.js';
|
|
4
|
+
import { d as defineCustomElement$5 } from './c-icon2.js';
|
|
5
|
+
import { d as defineCustomElement$4 } from './c-icon-button2.js';
|
|
6
|
+
import { d as defineCustomElement$3 } from './c-ripple2.js';
|
|
7
|
+
import { d as defineCustomElement$2 } from './c-spinner2.js';
|
|
8
|
+
|
|
9
|
+
const cTabsCss = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(.c-tabs){--_c-tabs-border-color:var(--c-tabs-border-color, var(--c-tertiary-200));--_c-tabs-indicator-color:var(--c-tabs-indicator-color, var(--c-primary-600));--_c-tabs-transition-speed:0.001ms;display:block;width:100%;transform:translateX(0%);max-width:100%}:host(.c-tabs) .c-tabs__container{display:grid;grid-template-columns:1fr;align-items:center;gap:4px;--c-icon-button-border-radius:4px}:host(.c-tabs) .c-tabs__tabs{display:flex;overflow:hidden;padding:4px;position:relative}:host(.c-tabs) .c-tabs__tabs::after{position:absolute;content:\"\";bottom:4px;inset-inline:0;height:1px;background-color:var(--_c-tabs-border-color)}:host(.c-tabs) .c-tabs__scroll{transform:translateX(var(--_c-tabs-scroll-position-x));transition:transform var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1);display:flex;margin:0;padding:0;position:relative;flex-grow:1}:host(.c-tabs) .c-tabs__scroll::after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:3px;scale:var(--_c-tabs-indicator-width, 0.125) 1;opacity:0.01;translate:var(--_c-tabs-indicator-left, 0) 0;transform-origin:left;transition:scale var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1), translate var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1);background:var(--_c-tabs-indicator-color)}:host(.c-tabs) .c-tabs__content{display:flex}:host(.c-tabs) ::slotted(c-tab-buttons){flex-grow:1}:host(.c-tabs.c-tabs--justify-start:not(.c-tabs--vertical)) ::slotted(c-tab-buttons),:host(.c-tabs.c-tabs--justify-start:not(.c-tabs--vertical)) ::slotted(c-tab){flex-grow:0}:host(.c-tabs.c-tabs--justify-end:not(.c-tabs--vertical)) .c-tabs__scroll{justify-content:end}:host(.c-tabs.c-tabs--justify-end:not(.c-tabs--vertical)) ::slotted(c-tab-buttons),:host(.c-tabs.c-tabs--justify-end:not(.c-tabs--vertical)) ::slotted(c-tab){flex-grow:0}:host(.c-tabs.c-tabs--justify-center:not(.c-tabs--vertical)) .c-tabs__scroll{justify-content:center}:host(.c-tabs.c-tabs--justify-center:not(.c-tabs--vertical)) ::slotted(c-tab-buttons),:host(.c-tabs.c-tabs--justify-center:not(.c-tabs--vertical)) ::slotted(c-tab){flex-grow:0}:host(.c-tabs.c-tabs--vertical.c-tabs--mobile){grid-template-columns:1fr}:host(.c-tabs.c-tabs--vertical){display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr}:host(.c-tabs.c-tabs--vertical) .c-tabs__tabs::after{display:none}:host(.c-tabs.c-tabs--vertical) ::slotted(c-tab-items){position:relative;min-height:100%}:host(.c-tabs.c-tabs--vertical) .c-tabs__scroll{display:grid;max-width:100%}:host(.c-tabs.c-tabs--vertical) .c-tabs__scroll::after{display:none}:host(.c-tabs.c-tabs--vertical) .c-tabs__scroll::before{content:\"\";position:absolute;width:4px;top:0;bottom:0;right:0;scale:1 var(--_c-tabs-indicator-width, 0.125);opacity:0.01;translate:0 var(--_c-tabs-indicator-top, 0);transform-origin:top left;transition:scale var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1), translate var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1);background:var(--_c-tabs-indicator-color)}:host(.c-tabs.c-tabs--vertical) ::slotted(c-tab){box-shadow:inset -1px 0 0 0 var(--_c-tabs-border-color);padding-inline:24px;justify-content:start;max-width:100%;min-width:100%}:host(.c-tabs.c-tabs--buttons) .c-tabs__tabs::after,:host(.c-tabs.c-tabs--buttons) .c-tabs__scroll::after{display:none}:host(.c-tabs--borderless) ::slotted(c-tab){box-shadow:none}:host(.c-tabs.c-tabs--initialized) .c-tabs__scroll::after{opacity:1}:host(.c-tabs.c-tabs--initialized) .c-tabs__scroll::before{opacity:1}:host(.c-tabs.c-tabs--overflow) .c-tabs__container{grid-template-columns:auto 1fr auto}";
|
|
10
|
+
|
|
11
|
+
var ScrollDirection;
|
|
12
|
+
(function (ScrollDirection) {
|
|
13
|
+
ScrollDirection[ScrollDirection["Left"] = 2] = "Left";
|
|
14
|
+
ScrollDirection[ScrollDirection["Right"] = 4] = "Right";
|
|
15
|
+
})(ScrollDirection || (ScrollDirection = {}));
|
|
16
|
+
const CTabs$1 = proxyCustomElement(class CTabs extends HTMLElement {
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
this.__registerHost();
|
|
20
|
+
this.__attachShadow();
|
|
21
|
+
this.changeValue = createEvent(this, "changeValue", 3);
|
|
22
|
+
this._initialized = false;
|
|
23
|
+
this._debounce = null;
|
|
24
|
+
this._moveDebounce = null;
|
|
25
|
+
this._isDirty = false;
|
|
26
|
+
this._focusedTabValue = this.value;
|
|
27
|
+
this._intersectionObserver = new IntersectionObserver(([entry]) => {
|
|
28
|
+
if (entry.isIntersecting) {
|
|
29
|
+
setTimeout(() => {
|
|
30
|
+
this._handleOverflow();
|
|
31
|
+
}, 1000);
|
|
32
|
+
}
|
|
33
|
+
}, { threshold: 1 });
|
|
34
|
+
this._previousWidth = 0;
|
|
35
|
+
this._maxScrollOffset = 0;
|
|
36
|
+
this._startX = 0;
|
|
37
|
+
this._touchOffset = 0;
|
|
38
|
+
this.value = undefined;
|
|
39
|
+
this.borderless = false;
|
|
40
|
+
this.disableAnimation = false;
|
|
41
|
+
this.justify = 'stretch';
|
|
42
|
+
this.mobileBreakpoint = 640;
|
|
43
|
+
this.vertical = false;
|
|
44
|
+
this.isOverflowing = false;
|
|
45
|
+
this.isMobile = false;
|
|
46
|
+
this.scrollOffset = 0;
|
|
47
|
+
}
|
|
48
|
+
onJustificationChange() {
|
|
49
|
+
this._handleActiveTab();
|
|
50
|
+
}
|
|
51
|
+
onExternalValueChange() {
|
|
52
|
+
this._handleActiveTab();
|
|
53
|
+
this.changeValue.emit(this.value);
|
|
54
|
+
}
|
|
55
|
+
tabFocusHandler(event) {
|
|
56
|
+
event.stopPropagation();
|
|
57
|
+
this._focusedTabValue = event.detail;
|
|
58
|
+
}
|
|
59
|
+
tabChangeHandler(event) {
|
|
60
|
+
event.stopPropagation();
|
|
61
|
+
this.value = event.detail.value;
|
|
62
|
+
this._updateItemsValue();
|
|
63
|
+
}
|
|
64
|
+
handleKeyDown(event) {
|
|
65
|
+
if (!this.tabs.includes(event.target) || event.target.disabled)
|
|
66
|
+
return;
|
|
67
|
+
if (event.key === 'Enter' || event.code === 'Space') {
|
|
68
|
+
this.value = event.target.value;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
handleKeyUp(event) {
|
|
72
|
+
this._isDirty = true;
|
|
73
|
+
if (!this.tabs.includes(event.target))
|
|
74
|
+
return;
|
|
75
|
+
const isArrowLeft = event.key === 'ArrowLeft';
|
|
76
|
+
const isArrowRight = event.key === 'ArrowRight';
|
|
77
|
+
if (!isArrowRight && !isArrowLeft)
|
|
78
|
+
return;
|
|
79
|
+
const tabIndex = this._getTabIndex(this._focusedTabValue);
|
|
80
|
+
const firstAvailableValue = this.availableValues.at(0);
|
|
81
|
+
const lastAvailableValue = this.availableValues.at(-1);
|
|
82
|
+
const isBeginning = this._focusedTabValue === firstAvailableValue;
|
|
83
|
+
const isEnd = this._focusedTabValue === lastAvailableValue;
|
|
84
|
+
const nextValue = isEnd
|
|
85
|
+
? firstAvailableValue
|
|
86
|
+
: this.availableValues[tabIndex + 1];
|
|
87
|
+
const previousValue = isBeginning
|
|
88
|
+
? lastAvailableValue
|
|
89
|
+
: this.availableValues[tabIndex - 1];
|
|
90
|
+
if (isArrowLeft) {
|
|
91
|
+
if (isBeginning)
|
|
92
|
+
return;
|
|
93
|
+
this._focusTab(previousValue);
|
|
94
|
+
}
|
|
95
|
+
if (isArrowRight) {
|
|
96
|
+
if (isEnd)
|
|
97
|
+
return;
|
|
98
|
+
this._focusTab(nextValue);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
get _prefersReducedMotion() {
|
|
102
|
+
return (window.matchMedia('(prefers-reduced-motion: reduce)').matches ||
|
|
103
|
+
this.disableAnimation);
|
|
104
|
+
}
|
|
105
|
+
get _tabItems() {
|
|
106
|
+
return this.el.querySelector(':scope > c-tab-items');
|
|
107
|
+
}
|
|
108
|
+
get _tabButtons() {
|
|
109
|
+
return this.el.querySelector(':scope > c-tab-buttons');
|
|
110
|
+
}
|
|
111
|
+
_updateItemsValue() {
|
|
112
|
+
this.tabItems.value = this.value;
|
|
113
|
+
if (this._tabButtons) {
|
|
114
|
+
this._tabButtons.value = this.value;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
componentWillLoad() {
|
|
118
|
+
CTabs._uniqueId += 1;
|
|
119
|
+
this._tabItems.disableAnimation = this._prefersReducedMotion;
|
|
120
|
+
if (this._tabButtons) {
|
|
121
|
+
this.el.classList.add('c-tabs--buttons');
|
|
122
|
+
this._tabButtons.setAttribute('tabs', 'true');
|
|
123
|
+
}
|
|
124
|
+
this._updateItemsValue();
|
|
125
|
+
}
|
|
126
|
+
componentDidLoad() {
|
|
127
|
+
this._resizeObserver = new ResizeObserver((entries) => {
|
|
128
|
+
this._handleResize(entries[0].contentRect.width);
|
|
129
|
+
});
|
|
130
|
+
this._resizeObserver.observe(this.el);
|
|
131
|
+
this._intersectionObserver.observe(this.el);
|
|
132
|
+
this.el.style.setProperty('--_c-tabs-count', this.setsize.toString());
|
|
133
|
+
requestAnimationFrame(() => {
|
|
134
|
+
this._handleOverflow();
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
disconnectedCallback() {
|
|
138
|
+
this._intersectionObserver.disconnect();
|
|
139
|
+
}
|
|
140
|
+
get tabs() {
|
|
141
|
+
if (!!this._tabButtons) {
|
|
142
|
+
return Array.from(this._tabButtons.querySelectorAll(':scope > c-button'));
|
|
143
|
+
}
|
|
144
|
+
return Array.from(this.el.querySelectorAll(':scope > c-tab'));
|
|
145
|
+
}
|
|
146
|
+
get tabItems() {
|
|
147
|
+
return this.el.querySelector('c-tab-items');
|
|
148
|
+
}
|
|
149
|
+
get setsize() {
|
|
150
|
+
return this.tabs.length;
|
|
151
|
+
}
|
|
152
|
+
get availableValues() {
|
|
153
|
+
return this.tabs.map((tab) => tab.value);
|
|
154
|
+
}
|
|
155
|
+
_getTabIndex(value) {
|
|
156
|
+
return this.availableValues.findIndex((tab) => tab === value);
|
|
157
|
+
}
|
|
158
|
+
_setIndicatorTop(value) {
|
|
159
|
+
const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
|
|
160
|
+
container.style.setProperty('--_c-tabs-indicator-top', `${value}px`);
|
|
161
|
+
}
|
|
162
|
+
_setIndicatorLeft(value) {
|
|
163
|
+
const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
|
|
164
|
+
container.style.setProperty('--_c-tabs-indicator-left', `${value}px`);
|
|
165
|
+
}
|
|
166
|
+
_setIndicatorWidth(value) {
|
|
167
|
+
const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
|
|
168
|
+
container.style.setProperty('--_c-tabs-indicator-width', value.toString());
|
|
169
|
+
}
|
|
170
|
+
_handleActiveTab() {
|
|
171
|
+
requestAnimationFrame(() => {
|
|
172
|
+
var _a;
|
|
173
|
+
let position = 0;
|
|
174
|
+
const oldTab = (_a = this.el.querySelector('[aria-selected="true"]')) !== null && _a !== void 0 ? _a : this.tabs[0];
|
|
175
|
+
this.tabs.forEach((tab, index) => {
|
|
176
|
+
if (!tab.disabled) {
|
|
177
|
+
position += 1;
|
|
178
|
+
}
|
|
179
|
+
const isActive = tab.value === this.value;
|
|
180
|
+
const tabId = `c-tab-${CTabs._uniqueId}-${index + 1}`;
|
|
181
|
+
const tabItemId = `c-tab-item-${CTabs._uniqueId}-${index + 1}`;
|
|
182
|
+
tab.setAttribute('id', tabId);
|
|
183
|
+
tab.setAttribute('aria-controls', tabItemId);
|
|
184
|
+
if (!this._tabButtons) {
|
|
185
|
+
tab.active = isActive;
|
|
186
|
+
}
|
|
187
|
+
else if (isActive) {
|
|
188
|
+
this._tabButtons.value = tab.value;
|
|
189
|
+
}
|
|
190
|
+
const item = Array.from(this.tabItems.querySelectorAll(':scope > c-tab-item')).find((child) => child.value === tab.value);
|
|
191
|
+
item.setAttribute('disabled', tab.disabled.toString());
|
|
192
|
+
item.setAttribute('id', tabItemId);
|
|
193
|
+
item.setAttribute('aria-labelledby', tabId);
|
|
194
|
+
item.active = isActive;
|
|
195
|
+
item.setAttribute('active', isActive.toString());
|
|
196
|
+
if (!tab.disabled) {
|
|
197
|
+
tab.setAttribute('aria-posinset', position.toString());
|
|
198
|
+
tab.setAttribute('setsize', this.availableValues.length.toString());
|
|
199
|
+
}
|
|
200
|
+
if (isActive && !this._tabButtons) {
|
|
201
|
+
this._moveIndicator(oldTab, tab);
|
|
202
|
+
requestAnimationFrame(() => {
|
|
203
|
+
if (!this.isOverflowing)
|
|
204
|
+
return;
|
|
205
|
+
const selectedTab = this.el.querySelector('c-tab[aria-selected="true"]');
|
|
206
|
+
this._moveToTab(selectedTab);
|
|
207
|
+
this._tabsTabsElement.style.setProperty('--_c-tabs-transition-speed', '200ms');
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
if (isActive && this._isDirty) {
|
|
211
|
+
tab.focus();
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
_getDimensions(item) {
|
|
217
|
+
const { x, width } = item.getBoundingClientRect();
|
|
218
|
+
const { x: containerX, width: containerWidth } = this._tabsTabsElement.getBoundingClientRect();
|
|
219
|
+
const { x: scrollerX, width: scrollerWidth } = this._tabsScrollElement.getBoundingClientRect();
|
|
220
|
+
return {
|
|
221
|
+
x,
|
|
222
|
+
width,
|
|
223
|
+
containerWidth,
|
|
224
|
+
containerX,
|
|
225
|
+
scrollerX,
|
|
226
|
+
scrollerWidth,
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
_focusTab(value) {
|
|
230
|
+
if (this._tabButtons) {
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
requestAnimationFrame(() => {
|
|
234
|
+
const item = this.tabs.find((tab) => tab.value === value);
|
|
235
|
+
const { x, width, containerX, containerWidth } = this._getDimensions(item);
|
|
236
|
+
const isInView = x >= containerX && x + width <= containerX + containerWidth;
|
|
237
|
+
if (isInView) {
|
|
238
|
+
item === null || item === void 0 ? void 0 : item.focus();
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
this._moveToTab(item);
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
_handleResize(width) {
|
|
245
|
+
if (this._moveDebounce !== null)
|
|
246
|
+
return;
|
|
247
|
+
if (this._debounce !== null) {
|
|
248
|
+
clearTimeout(this._debounce);
|
|
249
|
+
this._debounce = null;
|
|
250
|
+
}
|
|
251
|
+
this._debounce = setTimeout(() => {
|
|
252
|
+
const content = this.el.shadowRoot.querySelector('.c-tabs__scroll');
|
|
253
|
+
const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
|
|
254
|
+
requestAnimationFrame(() => {
|
|
255
|
+
if (width === this._previousWidth)
|
|
256
|
+
return;
|
|
257
|
+
this._handleOverflow();
|
|
258
|
+
this.isMobile = width < this.mobileBreakpoint;
|
|
259
|
+
this._maxScrollOffset =
|
|
260
|
+
-1 * (content.scrollWidth - container.clientWidth);
|
|
261
|
+
this._handleActiveTab();
|
|
262
|
+
this._previousWidth = width;
|
|
263
|
+
});
|
|
264
|
+
}, 200);
|
|
265
|
+
}
|
|
266
|
+
_moveIndicator(oldTab, newTab) {
|
|
267
|
+
if (this._moveDebounce !== null)
|
|
268
|
+
return;
|
|
269
|
+
this._moveDebounce = setTimeout(() => {
|
|
270
|
+
requestAnimationFrame(() => {
|
|
271
|
+
const content = this.el.shadowRoot.querySelector('.c-tabs__scroll');
|
|
272
|
+
const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
|
|
273
|
+
if (this._initialized && !this._prefersReducedMotion) {
|
|
274
|
+
container.style.setProperty('--_c-tabs-transition-speed', '200ms');
|
|
275
|
+
}
|
|
276
|
+
const buttonOffset = this.isOverflowing ? 36 : 4;
|
|
277
|
+
const newTabWidth = newTab.offsetWidth / content.offsetWidth;
|
|
278
|
+
const newTabHeight = this.vertical
|
|
279
|
+
? newTab.offsetHeight / content.offsetHeight
|
|
280
|
+
: newTab.offsetHeight / content.offsetHeight;
|
|
281
|
+
const newTabPosition = oldTab.compareDocumentPosition(newTab);
|
|
282
|
+
let transitionWidth = 0;
|
|
283
|
+
if (newTabPosition === ScrollDirection.Right) {
|
|
284
|
+
transitionWidth = this.vertical
|
|
285
|
+
? newTab.offsetTop + newTab.offsetHeight - oldTab.offsetTop
|
|
286
|
+
: newTab.offsetLeft + newTab.offsetWidth - oldTab.offsetLeft;
|
|
287
|
+
}
|
|
288
|
+
else {
|
|
289
|
+
transitionWidth = this.vertical
|
|
290
|
+
? oldTab.offsetTop + oldTab.offsetHeight - newTab.offsetTop
|
|
291
|
+
: oldTab.offsetLeft + oldTab.offsetWidth - newTab.offsetLeft;
|
|
292
|
+
this._setIndicatorLeft(newTab.offsetLeft - buttonOffset);
|
|
293
|
+
this._setIndicatorTop(newTab.offsetTop - buttonOffset);
|
|
294
|
+
}
|
|
295
|
+
this._setIndicatorWidth(this.vertical
|
|
296
|
+
? transitionWidth / content.offsetHeight
|
|
297
|
+
: transitionWidth / content.offsetWidth);
|
|
298
|
+
const onTransitionEnd = (event) => {
|
|
299
|
+
if (event.propertyName !== 'scale')
|
|
300
|
+
return;
|
|
301
|
+
this._setIndicatorLeft(newTab.offsetLeft - buttonOffset);
|
|
302
|
+
this._setIndicatorTop(newTab.offsetTop - buttonOffset);
|
|
303
|
+
this._setIndicatorWidth(this.vertical ? newTabHeight : newTabWidth);
|
|
304
|
+
content.removeEventListener('transitionend', onTransitionEnd);
|
|
305
|
+
if (!this._initialized) {
|
|
306
|
+
this.el.classList.add('c-tabs--initialized');
|
|
307
|
+
}
|
|
308
|
+
this._initialized = true;
|
|
309
|
+
};
|
|
310
|
+
content.addEventListener('transitionend', onTransitionEnd);
|
|
311
|
+
});
|
|
312
|
+
clearTimeout(this._moveDebounce);
|
|
313
|
+
this._moveDebounce = null;
|
|
314
|
+
}, 200);
|
|
315
|
+
}
|
|
316
|
+
onScrollOffsetChange(offset) {
|
|
317
|
+
this._tabsTabsElement.style.setProperty('--_c-tabs-scroll-position-x', `${offset}px`);
|
|
318
|
+
}
|
|
319
|
+
_handleOverflow() {
|
|
320
|
+
if (this._tabButtons) {
|
|
321
|
+
this.isOverflowing = false;
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
324
|
+
const content = this.el.shadowRoot.querySelector('.c-tabs__scroll');
|
|
325
|
+
const container = this.el.shadowRoot.querySelector('.c-tabs__tabs');
|
|
326
|
+
const contentSize = content.scrollWidth;
|
|
327
|
+
const containerSize = container.clientWidth;
|
|
328
|
+
this.isOverflowing = containerSize + 1 < contentSize;
|
|
329
|
+
}
|
|
330
|
+
_onTouchEnd() {
|
|
331
|
+
this._tabsTabsElement.style.setProperty('--_c-tabs-transition-speed', '200ms');
|
|
332
|
+
}
|
|
333
|
+
_onTouchMove(event) {
|
|
334
|
+
if (this.vertical)
|
|
335
|
+
return;
|
|
336
|
+
event.preventDefault();
|
|
337
|
+
this._tabsTabsElement.style.setProperty('--_c-tabs-transition-speed', '0ms');
|
|
338
|
+
const offset = -1 * (this._touchOffset + this._startX - event.touches[0].clientX);
|
|
339
|
+
const isInRange = offset <= 0 && offset >= this._maxScrollOffset;
|
|
340
|
+
if (isInRange) {
|
|
341
|
+
this.scrollOffset = offset;
|
|
342
|
+
}
|
|
343
|
+
else if (offset > 0 || !this.isOverflowing) {
|
|
344
|
+
this.scrollOffset = 0;
|
|
345
|
+
}
|
|
346
|
+
else if (offset < this._maxScrollOffset) {
|
|
347
|
+
this.scrollOffset = this._maxScrollOffset;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
_onTouchStart(event) {
|
|
351
|
+
this._handleOverflow();
|
|
352
|
+
if (!this.isOverflowing)
|
|
353
|
+
return;
|
|
354
|
+
this._touchOffset = this.scrollOffset * -1;
|
|
355
|
+
this._startX = event.touches[0].clientX;
|
|
356
|
+
}
|
|
357
|
+
_onBackClick() {
|
|
358
|
+
const min = 0;
|
|
359
|
+
const step = this._tabsTabsElement.clientWidth / 2;
|
|
360
|
+
this.scrollOffset = Math.min(this.scrollOffset + step, min);
|
|
361
|
+
}
|
|
362
|
+
_onForwardClick() {
|
|
363
|
+
const max = (this._tabsScrollElement.scrollWidth -
|
|
364
|
+
this._tabsTabsElement.clientWidth) *
|
|
365
|
+
-1;
|
|
366
|
+
const step = this._tabsTabsElement.clientWidth / 2;
|
|
367
|
+
this.scrollOffset = Math.max(-1 * step + this.scrollOffset, max);
|
|
368
|
+
}
|
|
369
|
+
_moveToTab(tab) {
|
|
370
|
+
const onTransitionEnd = () => {
|
|
371
|
+
tab === null || tab === void 0 ? void 0 : tab.focus();
|
|
372
|
+
this._tabsScrollElement.removeEventListener('transitionend', onTransitionEnd);
|
|
373
|
+
};
|
|
374
|
+
requestAnimationFrame(() => {
|
|
375
|
+
const tabIndex = this._getTabIndex(tab.dataset.value);
|
|
376
|
+
const isFirstTab = tabIndex === 0;
|
|
377
|
+
const isLastTab = tabIndex === this.availableValues.length - 1;
|
|
378
|
+
if (isFirstTab) {
|
|
379
|
+
this.scrollOffset = 0;
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
if (isLastTab) {
|
|
383
|
+
this.scrollOffset = this._maxScrollOffset - 8;
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
const { x, width, containerWidth, containerX } = this._getDimensions(tab);
|
|
387
|
+
const tabEnd = x + width;
|
|
388
|
+
const containerEnd = containerX + containerWidth;
|
|
389
|
+
const isOverflowingStart = x < containerX;
|
|
390
|
+
const isOverflowingEnd = tabEnd > containerEnd;
|
|
391
|
+
if (isOverflowingStart) {
|
|
392
|
+
const tabInside = tabEnd - containerX;
|
|
393
|
+
const tabOutside = tabInside - width;
|
|
394
|
+
this.scrollOffset = this.scrollOffset - tabOutside + 4;
|
|
395
|
+
}
|
|
396
|
+
if (isOverflowingEnd) {
|
|
397
|
+
this.scrollOffset -= tabEnd - containerEnd + 4;
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
const content = this.el.shadowRoot.querySelector('.c-tabs__scroll');
|
|
401
|
+
content.addEventListener('transitionend', onTransitionEnd);
|
|
402
|
+
}
|
|
403
|
+
render() {
|
|
404
|
+
const classes = {
|
|
405
|
+
'c-tabs': true,
|
|
406
|
+
'c-tabs--borderless': this.borderless,
|
|
407
|
+
'c-tabs--vertical': this.vertical,
|
|
408
|
+
'c-tabs--overflow': this.isOverflowing,
|
|
409
|
+
'c-tabs--mobile': this.isMobile,
|
|
410
|
+
[`c-tabs--justify-${this.justify}`]: true,
|
|
411
|
+
};
|
|
412
|
+
return (h(Host, { role: "tablist", class: classes }, h("div", { class: "c-tabs__container" }, this.isOverflowing && !this.vertical && (h("c-icon-button", { size: "x-small", ghost: true, onClick: this._onBackClick.bind(this) }, h("c-icon", { path: mdiArrowLeft }))), h("div", { ref: (el) => (this._tabsTabsElement = el), class: "c-tabs__tabs", onTouchStart: this._onTouchStart.bind(this), onTouchMove: this._onTouchMove.bind(this), onTouchEnd: this._onTouchEnd.bind(this) }, h("div", { ref: (el) => (this._tabsScrollElement = el), class: "c-tabs__scroll" }, h("slot", null))), this.isOverflowing && !this.vertical && (h("c-icon-button", { size: "x-small", ghost: true, onClick: this._onForwardClick.bind(this) }, h("c-icon", { path: mdiArrowRight })))), h("div", { class: "c-tabs__content" }, h("slot", { name: "items" }))));
|
|
413
|
+
}
|
|
414
|
+
get el() { return this; }
|
|
415
|
+
static get watchers() { return {
|
|
416
|
+
"justify": ["onJustificationChange"],
|
|
417
|
+
"value": ["onExternalValueChange"],
|
|
418
|
+
"scrollOffset": ["onScrollOffsetChange"]
|
|
419
|
+
}; }
|
|
420
|
+
static get style() { return cTabsCss; }
|
|
421
|
+
}, [1, "c-tabs", {
|
|
422
|
+
"value": [1032],
|
|
423
|
+
"borderless": [4],
|
|
424
|
+
"disableAnimation": [4, "disable-animation"],
|
|
425
|
+
"justify": [1],
|
|
426
|
+
"mobileBreakpoint": [2, "mobile-breakpoint"],
|
|
427
|
+
"vertical": [4],
|
|
428
|
+
"isOverflowing": [32],
|
|
429
|
+
"isMobile": [32],
|
|
430
|
+
"scrollOffset": [32]
|
|
431
|
+
}, [[1, "tabFocus", "tabFocusHandler"], [1, "tabChange", "tabChangeHandler"], [2, "keydown", "handleKeyDown"], [2, "keyup", "handleKeyUp"]], {
|
|
432
|
+
"justify": ["onJustificationChange"],
|
|
433
|
+
"value": ["onExternalValueChange"],
|
|
434
|
+
"scrollOffset": ["onScrollOffsetChange"]
|
|
435
|
+
}]);
|
|
436
|
+
CTabs$1._uniqueId = 0;
|
|
437
|
+
function defineCustomElement$1() {
|
|
438
|
+
if (typeof customElements === "undefined") {
|
|
439
|
+
return;
|
|
440
|
+
}
|
|
441
|
+
const components = ["c-tabs", "c-badge", "c-icon", "c-icon-button", "c-ripple", "c-spinner"];
|
|
442
|
+
components.forEach(tagName => { switch (tagName) {
|
|
443
|
+
case "c-tabs":
|
|
444
|
+
if (!customElements.get(tagName)) {
|
|
445
|
+
customElements.define(tagName, CTabs$1);
|
|
446
|
+
}
|
|
447
|
+
break;
|
|
448
|
+
case "c-badge":
|
|
449
|
+
if (!customElements.get(tagName)) {
|
|
450
|
+
defineCustomElement$6();
|
|
451
|
+
}
|
|
452
|
+
break;
|
|
453
|
+
case "c-icon":
|
|
454
|
+
if (!customElements.get(tagName)) {
|
|
455
|
+
defineCustomElement$5();
|
|
456
|
+
}
|
|
457
|
+
break;
|
|
458
|
+
case "c-icon-button":
|
|
459
|
+
if (!customElements.get(tagName)) {
|
|
460
|
+
defineCustomElement$4();
|
|
461
|
+
}
|
|
462
|
+
break;
|
|
463
|
+
case "c-ripple":
|
|
464
|
+
if (!customElements.get(tagName)) {
|
|
465
|
+
defineCustomElement$3();
|
|
466
|
+
}
|
|
467
|
+
break;
|
|
468
|
+
case "c-spinner":
|
|
469
|
+
if (!customElements.get(tagName)) {
|
|
470
|
+
defineCustomElement$2();
|
|
471
|
+
}
|
|
472
|
+
break;
|
|
473
|
+
} });
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
const CTabs = CTabs$1;
|
|
477
|
+
const defineCustomElement = defineCustomElement$1;
|
|
478
|
+
|
|
479
|
+
export { CTabs, defineCustomElement };
|
|
480
|
+
|
|
481
|
+
//# sourceMappingURL=c-tabs.js.map
|