@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,191 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$3 } from './c-ripple2.js';
|
|
3
|
+
import { d as defineCustomElement$2 } from './c-spinner2.js';
|
|
4
|
+
|
|
5
|
+
const cButtonCss = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-button-border-radius:var(--c-button-border-radius, 4px);--_c-button-height:44px;--_c-button-min-width:88px;--_c-button-padding:0 16px;--_c-button-font-size:16px;--_c-button-icon-size:24px;--_c-button-outline-offset:2px;border-radius:var(--_c-button-border-radius);display:inline-flex;transform:translateZ(0);transition:background-color 0.3s ease-in-out;--_c-button-background-color:var(--c-button-background-color, var(--c-primary-600));--_c-button-text-color:var(--c-button-text-color, var(--c-white));--_c-button-loader-color:var(--c-button-loader-color, var(--_c-button-text-color));--_c-button-outline-color:var(--c-button-outline-color, var(--_c-button-background-color));background-color:var(--_c-button-background-color);color:var(--_c-button-text-color)}:host ::slotted(svg){fill:var(--_c-button-loader-color)}:host(.c-button--no-radius){--_c-button-border-radius:0}:host(:host:not(.c-button--description)){height:var(--_c-button-height)}:host(.c-button--description){height:\"auto\"}:host(:host:hover){--_c-button-background-color-hover:var(--c-button-background-color-hover, var(--c-primary-400));background-color:var(--_c-button-background-color-hover)}:host(.c-button--disabled){--_c-button-disabled-background-color:var(--c-button-disabled-background-color, var(--c-tertiary-100));--_c-button-disabled-text-color:var(--c-button-disabled-text-color, var(--c-tertiary-600));background-color:var(--_c-button-disabled-background-color);color:var(--_c-button-disabled-text-color);pointer-events:none}:host(.c-button--inverted){--_c-button-inverted-background-color:var(--c-button-inverted-background-color, var(--c-white));--_c-button-inverted-text-color:var(--c-button-inverted-text-color, var(--c-primary-600));--_c-button-outline-color:var(--_c-button-inverted-background-color);background-color:var(--_c-button-inverted-background-color);color:var(--_c-button-inverted-text-color)}:host(.c-button--inverted:hover){--_c-button-inverted-background-color-hover:var(--c-button-inverted-background-color-hover, var(--c-primary-200));background-color:var(--_c-button-inverted-background-color-hover)}:host(.c-button--inverted.c-button--disabled){--_c-button-inverted-disabled-background-color:var(--c-button-inverted-disabled-background-color, var(--_c-button-disabled-background-color));--_c-button-inverted-disabled-text-color:var(--c-button-inverted-disabled-text-color, var(--c-tertiary-500));background-color:var(--_c-button-inverted-disabled-background-color);color:var(--_c-button-inverted-disabled-text-color)}:host(.c-button--danger){--_c-button-danger-background-color:var(--c-button-danger-background-color, var(--c-error-600));--_c-button-danger-text-color:var(--c-button-danger-text-color, var(--c-white));--_c-button-danger-loader-color:var(--c-button-danger-loader-color, var(--_c-button-danger-text-color));--_c-button-loader-color:var(--_c-button-danger-loader-color);--_c-button-outline-color:var(--_c-button-danger-background-color);background-color:var(--_c-button-danger-background-color);color:var(--_c-button-danger-text-color)}:host(.c-button--danger:hover){--_c-button-danger-background-color-hover:var(--c-button-danger-background-color-hover, var(--c-error-400));background-color:var(--_c-button-danger-background-color-hover)}:host(.c-button--danger.c-button--disabled){--_c-button-danger-disabled-background-color:var(--c-button-danger-disabled-background-color, var(--_c-button-disabled-background-color));--_c-button-danger-disabled-text-color:var(--c-button-danger-disabled-text-color, var(--_c-button-disabled-text-color));background-color:var(--_c-button-danger-disabled-background-color);color:var(--_c-button-danger-disabled-text-color)}:host(.c-button--danger.c-button--inverted){--_c-button-danger-inverted-text-color:var(--c-button-danger-inverted-text-color, var(--c-error-600));--_c-button-danger-inverted-background-color:var(--c-button-danger-inverted-background-color, var(--c-white));--_c-button-outline-color:var(--_c-button-danger-inverted-background-color);background-color:var(--_c-button-danger-inverted-background-color);color:var(--_c-button-danger-inverted-text-color)}:host(.c-button--danger.c-button--inverted:hover){--_c-button-danger-inverted-background-color-hover:var(--c-button-danger-inverted-background-color-hover, var(--c-error-100));background-color:var(--_c-button-danger-inverted-background-color-hover)}:host(.c-button--danger.c-button--inverted.c-button--disabled){--_c-button-danger-inverted-disabled-background-color:var(--c-button-danger-inverted-disabled-background-color, var(--_c-button-disabled-background-color));--_c-button-danger-inverted-disabled-text-color:var(--c-button-danger-inverted-disabled-text-color, var(--_c-button-disabled-text-color));background-color:var(--_c-button-danger-inverted-disabled-background-color);color:var(--_c-button-danger-inverted-disabled-text-color)}:host(.c-button--ghost){--_c-button-ghost-background-color:var(--c-button-ghost-background-color, var(--c-primary-200));--_c-button-ghost-text-color:var(--c-button-ghost-text-color, var(--c-primary-600));--_c-button-ghost-loader-color:var(--c-button-ghost-loader-color, var(--_c-button-ghost-text-color));--_c-button-loader-color:var(--_c-button-ghost-loader-color);--_c-button-outline-color:var(--_c-button-ghost-text-color);background-color:var(--_c-button-ghost-background-color);color:var(--_c-button-ghost-text-color)}:host(.c-button--ghost:hover){--_c-button-ghost-background-color-hover:var(--c-button-ghost-background-color-hover, var(--c-primary-100));background-color:var(--_c-button-ghost-background-color-hover)}:host(.c-button--ghost.c-button--disabled){--_c-button-ghost-disabled-background-color:var(--c-button-ghost-disabled-background-color, var(--_c-button-disabled-background-color));--_c-button-ghost-disabled-text-color:var(--c-button-ghost-disabled-text-color, var(--_c-button-disabled-text-color));background-color:var(--_c-button-ghost-disabled-background-color);color:var(--_c-button-ghost-disabled-text-color)}:host(.c-button--ghost.c-button--inverted){--_c-button-ghost-inverted-background-color:var(--c-button-ghost-inverted-background-color, rgba(var(--c-white-rgb), 0.2));--_c-button-ghost-inverted-text-color:var(--c-button-ghost-inverted-text-color, var(--c-white));--_c-button-outline-color:var(--_c-button-ghost-inverted-text-color);background-color:var(--_c-button-ghost-inverted-background-color);color:var(--_c-button-ghost-inverted-text-color)}:host(.c-button--ghost.c-button--inverted:hover){--_c-button-ghost-inverted-background-color-hover:var(--c-button-ghost-inverted-background-color-hover, rgba(var(--c-white-rgb), 0.3));background-color:var(--_c-button-ghost-inverted-background-color-hover)}:host(.c-button--ghost.c-button--inverted.c-button--disabled){--_c-button-ghost-inverted-disabled-background-color:var(--c-button-ghost-inverted-disabled-background-color, rgba(var(--c-white-rgb), 0.05));--_c-button-ghost-inverted-disabled-text-color:var(--c-button-ghost-inverted-disabled-text-color, var(--c-tertiary-400));background-color:var(--_c-button-ghost-inverted-disabled-background-color);color:var(--_c-button-ghost-inverted-disabled-text-color)}:host(.c-button--text){--_c-button-text-background-color:var(--c-button-text-background-color, var(--c-transparent));--_c-button-text-text-color:var(--c-button-text-text-color, var(--c-primary-600));--_c-button-text-loader-color:var(--c-button-text-loader-color, var(--_c-button-text-text-color));--_c-button-loader-color:var(--_c-button-text-loader-color);--_c-button-outline-color:var(--_c-button-text-text-color);background-color:var(--_c-button-text-background-color);color:var(--_c-button-text-text-color)}:host(.c-button--text:hover){--_c-button-text-background-color-hover:var(--c-button-text-background-color-hover, var(--c-primary-100));background-color:var(--_c-button-text-background-color-hover)}:host(.c-button--text.c-button--disabled){--_c-button-text-disabled-background-color:var(--c-button-text-disabled-background-color, var(--c-transparent));--_c-button-text-disabled-text-color:var(--c-button-text-disabled-text-color, var(--c-tertiary-500));background-color:var(--_c-button-text-disabled-background-color);color:var(--_c-button-text-disabled-text-color)}:host(.c-button--text.c-button--inverted){--_c-button-text-inverted-background-color:var(--c-button-text-inverted-background-color, var(--c-transparent));--_c-button-text-inverted-text-color:var(--c-button-text-inverted-text-color, var(--c-white));--_c-button-outline-color:var(--_c-button-text-inverted-text-color);background-color:var(--_c-button-text-inverted-background-color);color:var(--_c-button-text-inverted-text-color)}:host(.c-button--text.c-button--inverted:hover){--_c-button-text-inverted-background-color-hover:var(--c-button-text-inverted-background-color-hover, rgba(var(--c-white-rgb), 0.3));background-color:var(--_c-button-text-inverted-background-color-hover)}:host(.c-button--text.c-button--inverted.c-button--disabled){--_c-button-text-inverted-disabled-background-color:var(--c-button-text-inverted-disabled-background-color, var(--c-transparent));--_c-button-text-inverted-disabled-text-color:var(--c-button-text-inverted-disabled-text-color, var(--c-tertiary-400));background-color:var(--_c-button-text-inverted-disabled-background-color);color:var(--_c-button-text-inverted-disabled-text-color)}:host(.c-button--outlined){--_c-button-outlined-text-color:var(--c-button-outlined-text-color, var(--c-primary-600));--_c-button-outlined-border-color:var(--c-button-outlined-border-color, var(--_c-button-outlined-text-color));--_c-button-outlined-background-color:var(--c-button-outlined-background-color, var(--c-transparent));--_c-button-outlined-loader-color:var(--c-button-outlined-loader-color, var(--_c-button-outlined-text-color));--_c-button-loader-color:var(--_c-button-outlined-loader-color);--_c-outline-color:var(--_c-button-outlined-border-color);--_c-button-outline-color:var(--_c-button-outlined-border-color);background-color:var(--_c-button-outlined-background-color);color:var(--_c-button-outlined-text-color);box-shadow:inset 0 0 0 2px var(--_c-outline-color)}:host(.c-button--outlined:hover){--_c-button-outlined-background-color-hover:var(--c-button-outlined-background-color-hover, var(--c-primary-200));background-color:var(--_c-button-outlined-background-color-hover)}:host(.c-button--outlined.c-button--disabled){--_c-button-outlined-disabled-text-color:var(--c-button-outlined-disabled-text-color, var(--c-tertiary-500));--_c-button-outlined-disabled-background-color:var(--c-button-outlined-disabled-background-color, var(--_c-button-outlined-background-color));--_c-button-outlined-disabled-border-color:var(--c-button-outlined-disabled-border-color, var(--c-tertiary-400));--_c-outline-color:var(--_c-button-outlined-disabled-border-color);background-color:var(--_c-button-outlined-disabled-background-color);color:var(--_c-button-outlined-disabled-text-color)}:host(.c-button--outlined.c-button--inverted){--_c-button-outlined-inverted-text-color:var(--c-button-outlined-inverted-text-color, var(--c-white));--_c-button-outlined-inverted-border-color:var(--c-button-outlined-inverted-border-color, var(--_c-button-outlined-inverted-text-color));--_c-button-outlined-inverted-background-color:var(--c-button-outlined-inverted-background-color, var(--_c-button-outlined-background-color));--_c-outline-color:var(--_c-button-outlined-inverted-border-color);--_c-button-outline-color:var(--_c-button-outlined-inverted-border-color);background-color:var(--_c-button-outlined-inverted-background-color);color:var(--_c-button-outlined-inverted-text-color)}:host(.c-button--outlined.c-button--inverted:hover){--_c-button-outlined-inverted-background-color-hover:var(--c-button-outlined-inverted-background-color-hover, rgba(var(--c-white-rgb), 0.3));background-color:var(--_c-button-outlined-inverted-background-color-hover)}:host(.c-button--outlined.c-button--inverted.c-button--disabled){--_c-button-outlined-inverted-disabled-border-color:var(--c-button-outlined-inverted-disabled-border-color, var(--c-tertiary-400));--_c-button-outlined-inverted-disabled-text-color:var(--c-button-outlined-inverted-disabled-text-color, var(--c-tertiary-400));--_c-button-outlined-inverted-disabled-background-color:var(--c-button-outlined-inverted-disabled-background-color, var(--_c-button-outlined-background-color));--_c-outline-color:var(--_c-button-outlined-inverted-disabled-border-color);background-color:var(--_c-button-outlined-inverted-disabled-background-color);color:var(--_c-button-outlined-inverted-disabled-text-color)}:host(.c-button:focus){z-index:2}:host(.c-button) a:focus,:host(.c-button) button:focus{outline:none}:host(.c-button) a:focus-visible,:host(.c-button) button:focus-visible{outline:2px var(--_c-button-outline-color) solid;outline-offset:var(--_c-button-outline-offset);z-index:1}:host(.c-button--fit){width:100%}:host(.c-button--small){--_c-button-height:28px}:host(.c-button--large){--_c-button-height:52px}:host(.c-button--fitted){width:100%}::slotted([slot=icon]){font-size:var(--_c-button-icon-size)}::slotted(svg){fill:var(--_c-button-loader-color)}a{text-decoration:none}button,a{background-color:transparent;border-radius:var(--_c-button-border-radius);color:currentColor;font-family:var(--c-font-family);display:inline-grid;place-items:center;border:none;padding:0;position:relative;margin:0;width:100%;cursor:pointer;transition:background-color 0.3s cubic-bezier(0.25, 0.8, 0.5, 1), color 0.3s cubic-bezier(0.25, 0.8, 0.5, 1)}button:disabled,a:disabled{cursor:default}@media (max-width: 767px){.full-width-mobile{max-width:100% !important;width:100% !important;margin:0 !important}.full-width-mobile .c-button-padding{padding:24px 38px}.full-width{flex-grow:1 !important}}.c-button__content{border-radius:var(--_c-button-border-radius);position:relative;box-shadow:none;outline:none;backface-visibility:hidden;transform:translate3d(0, 0, 0);transition:background-color 0.3s;color:currentColor;margin:0;text-decoration:none;display:flex;text-align:center;font-size:var(--_c-button-font-size);font-weight:700;line-height:18px;user-select:none;min-width:var(--_c-button-min-width);white-space:nowrap;height:100%;width:100%;align-items:center;justify-content:center}.c-button__content *{pointer-events:none}.c-button__content svg{fill:var(--_c-button-loader-color);height:var(--_c-button-icon-size);width:var(--_c-button-icon-size)}.c-button__content svg.icon-by-path{margin-right:8px}.c-button__content svg.button-icon{margin-right:16px;font-size:10px;margin-left:-8px;margin-bottom:-2px}.c-button__content--small{--_c-button-padding:0 12px;--_c-button-font-size:14px;--_c-button-icon-size:20px}.c-button__content--large{--_c-button-padding:0 24px;--_c-button-font-size:18px}.c-button__content--no-radius{--_c-button-border-radius:0}.c-button__content--fitted{width:100%}.c-button__content--description{display:grid;grid-template-columns:1fr;gap:0}.c-button__content__inner{display:flex;gap:8px;height:var(--_c-button-height);align-items:center;justify-content:center;padding:var(--_c-button-padding)}.c-button__content__description{font-weight:400;font-size:12px;padding:0 12px 12px}.c-button__content__description--loading{opacity:0.8}.hide-text{color:transparent !important}.hide-text ::slotted([slot=icon]){opacity:0}.hide-text svg{fill:transparent !important}.hide-text .outlined.c-button svg{fill:transparent !important}.c-button__loader{width:100%;position:absolute;height:var(--_c-button-height);display:grid;place-content:center}.c-button__loader.dense_spinner{padding-top:7px}";
|
|
6
|
+
|
|
7
|
+
const CButton$1 = proxyCustomElement(class CButton extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.__attachShadow();
|
|
12
|
+
this.tabChange = createEvent(this, "tabChange", 7);
|
|
13
|
+
this.tabFocus = createEvent(this, "tabFocus", 7);
|
|
14
|
+
this._onClick = (event, center = false) => {
|
|
15
|
+
var _a;
|
|
16
|
+
if (this.disabled) {
|
|
17
|
+
event.preventDefault();
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
this._rippleElement.createRipple(event, this._container, center);
|
|
21
|
+
if (this.tabs) {
|
|
22
|
+
this.tabChange.emit({
|
|
23
|
+
value: (_a = this.value) !== null && _a !== void 0 ? _a : this.hostElement.dataset.index,
|
|
24
|
+
element: this.hostElement,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
if (this.type === 'submit') {
|
|
28
|
+
const submitButton = this._createHiddenSubmitButton();
|
|
29
|
+
submitButton.click();
|
|
30
|
+
submitButton.remove();
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
this._createHiddenSubmitButton = () => {
|
|
34
|
+
const form = this._closestElementComposed('form', this._container);
|
|
35
|
+
const submitButton = document.createElement('button');
|
|
36
|
+
submitButton.type = this.type;
|
|
37
|
+
submitButton.style.display = 'none';
|
|
38
|
+
submitButton.disabled = this.disabled;
|
|
39
|
+
form.appendChild(submitButton);
|
|
40
|
+
return submitButton;
|
|
41
|
+
};
|
|
42
|
+
this._onKeyDown = (event) => {
|
|
43
|
+
if (['Space', 'Enter'].includes(event.code)) {
|
|
44
|
+
if (!!this.href) {
|
|
45
|
+
window.open(this.href, this.target);
|
|
46
|
+
}
|
|
47
|
+
event.preventDefault();
|
|
48
|
+
this._onClick(event, true);
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
this.inverted = false;
|
|
52
|
+
this.outlined = false;
|
|
53
|
+
this.ghost = false;
|
|
54
|
+
this.danger = false;
|
|
55
|
+
this.grouped = false;
|
|
56
|
+
this.text = false;
|
|
57
|
+
this.loading = false;
|
|
58
|
+
this.fit = false;
|
|
59
|
+
this.noRadius = false;
|
|
60
|
+
this.type = 'button';
|
|
61
|
+
this.disabled = false;
|
|
62
|
+
this.value = undefined;
|
|
63
|
+
this.hostId = undefined;
|
|
64
|
+
this.size = 'default';
|
|
65
|
+
this.href = undefined;
|
|
66
|
+
this.target = '_blank';
|
|
67
|
+
this.tabs = false;
|
|
68
|
+
}
|
|
69
|
+
onTabFocus() {
|
|
70
|
+
var _a;
|
|
71
|
+
this.tabFocus.emit((_a = this.value) !== null && _a !== void 0 ? _a : this.hostElement.dataset.index);
|
|
72
|
+
}
|
|
73
|
+
_closestElementComposed(selector, base) {
|
|
74
|
+
function __closestFrom(el) {
|
|
75
|
+
const found = el.closest(selector);
|
|
76
|
+
return found ? found : __closestFrom(el.getRootNode().host);
|
|
77
|
+
}
|
|
78
|
+
return __closestFrom(base);
|
|
79
|
+
}
|
|
80
|
+
componentWillLoad() {
|
|
81
|
+
this._containerhasDescriptionSlot = !!this.hostElement.querySelector('[slot="description"]');
|
|
82
|
+
}
|
|
83
|
+
render() {
|
|
84
|
+
const contentClasses = {
|
|
85
|
+
'c-button__content': true,
|
|
86
|
+
'c-button__content--description': this._containerhasDescriptionSlot,
|
|
87
|
+
'c-button__content--fitted': !!this.fit,
|
|
88
|
+
'c-button__content--large': this.size === 'large',
|
|
89
|
+
'c-button__content--no-radius': !!this.noRadius,
|
|
90
|
+
'c-button__content--small': this.size === 'small',
|
|
91
|
+
};
|
|
92
|
+
const innerClasses = {
|
|
93
|
+
'c-button__content__inner': true,
|
|
94
|
+
'hide-text': this.loading,
|
|
95
|
+
};
|
|
96
|
+
const buttonClasses = {
|
|
97
|
+
fit: !!this.fit,
|
|
98
|
+
grouped: this.grouped,
|
|
99
|
+
outlined: this.outlined,
|
|
100
|
+
};
|
|
101
|
+
const hostClasses = {
|
|
102
|
+
'c-button': true,
|
|
103
|
+
'c-button--ghost': this.ghost,
|
|
104
|
+
'c-button--outlined': this.outlined,
|
|
105
|
+
'c-button--danger': this.danger,
|
|
106
|
+
'c-button--disabled': this.disabled,
|
|
107
|
+
'c-button--inverted': this.inverted,
|
|
108
|
+
'c-button--text': this.text,
|
|
109
|
+
'c-button--fitted': !!this.fit,
|
|
110
|
+
'c-button--description': !!this._containerhasDescriptionSlot,
|
|
111
|
+
'c-button--active': this.grouped && !this.outlined,
|
|
112
|
+
'c-button--no-radius': !!this.noRadius,
|
|
113
|
+
[`c-button--${this.size}`]: true,
|
|
114
|
+
};
|
|
115
|
+
const descriptionSlotClasses = {
|
|
116
|
+
'c-button__content__description': this._containerhasDescriptionSlot,
|
|
117
|
+
'c-button__content__description--loading': this.loading,
|
|
118
|
+
};
|
|
119
|
+
const Tag = !!this.href ? 'a' : 'button';
|
|
120
|
+
const hostAttributes = {
|
|
121
|
+
onKeyDown: this._onKeyDown,
|
|
122
|
+
};
|
|
123
|
+
const attributes = {
|
|
124
|
+
id: this.hostId,
|
|
125
|
+
class: buttonClasses,
|
|
126
|
+
disabled: this.disabled,
|
|
127
|
+
onClick: this._onClick,
|
|
128
|
+
type: this.type,
|
|
129
|
+
};
|
|
130
|
+
let linkAttributes = {};
|
|
131
|
+
if (!!this.href) {
|
|
132
|
+
linkAttributes = { href: this.href, target: this.target };
|
|
133
|
+
}
|
|
134
|
+
const spinnerSizes = {
|
|
135
|
+
small: 20,
|
|
136
|
+
default: 24,
|
|
137
|
+
large: 28,
|
|
138
|
+
};
|
|
139
|
+
return (h(Host, Object.assign({ class: hostClasses }, hostAttributes), h(Tag, Object.assign({}, attributes, linkAttributes), h("div", { class: contentClasses, ref: (el) => (this._container = el) }, h("div", { class: innerClasses }, this.loading && (h("div", { class: "c-button__loader" }, h("c-spinner", { color: "var(--_c-button-loader-color)", size: spinnerSizes[this.size] }))), h("slot", null)), this._containerhasDescriptionSlot && (h("div", { class: descriptionSlotClasses }, h("slot", { name: "description" })))), h("c-ripple", { ref: (el) => (this._rippleElement = el) }))));
|
|
140
|
+
}
|
|
141
|
+
get hostElement() { return this; }
|
|
142
|
+
static get style() { return cButtonCss; }
|
|
143
|
+
}, [1, "c-button", {
|
|
144
|
+
"inverted": [4],
|
|
145
|
+
"outlined": [4],
|
|
146
|
+
"ghost": [4],
|
|
147
|
+
"danger": [4],
|
|
148
|
+
"grouped": [4],
|
|
149
|
+
"text": [4],
|
|
150
|
+
"loading": [4],
|
|
151
|
+
"fit": [4],
|
|
152
|
+
"noRadius": [4, "no-radius"],
|
|
153
|
+
"type": [1],
|
|
154
|
+
"disabled": [516],
|
|
155
|
+
"value": [8],
|
|
156
|
+
"hostId": [1, "id"],
|
|
157
|
+
"size": [1],
|
|
158
|
+
"href": [1],
|
|
159
|
+
"target": [1],
|
|
160
|
+
"tabs": [4]
|
|
161
|
+
}, [[1, "focus", "onTabFocus"]]]);
|
|
162
|
+
function defineCustomElement$1() {
|
|
163
|
+
if (typeof customElements === "undefined") {
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
const components = ["c-button", "c-ripple", "c-spinner"];
|
|
167
|
+
components.forEach(tagName => { switch (tagName) {
|
|
168
|
+
case "c-button":
|
|
169
|
+
if (!customElements.get(tagName)) {
|
|
170
|
+
customElements.define(tagName, CButton$1);
|
|
171
|
+
}
|
|
172
|
+
break;
|
|
173
|
+
case "c-ripple":
|
|
174
|
+
if (!customElements.get(tagName)) {
|
|
175
|
+
defineCustomElement$3();
|
|
176
|
+
}
|
|
177
|
+
break;
|
|
178
|
+
case "c-spinner":
|
|
179
|
+
if (!customElements.get(tagName)) {
|
|
180
|
+
defineCustomElement$2();
|
|
181
|
+
}
|
|
182
|
+
break;
|
|
183
|
+
} });
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
const CButton = CButton$1;
|
|
187
|
+
const defineCustomElement = defineCustomElement$1;
|
|
188
|
+
|
|
189
|
+
export { CButton, defineCustomElement };
|
|
190
|
+
|
|
191
|
+
//# sourceMappingURL=c-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"c-button.js","mappings":";;;;AAAA,MAAM,UAAU,GAAG,+3eAA+3e;;MCsBr4eA,SAAO;;;;;;;IAoHV,aAAQ,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK;;MACvC,IAAI,IAAI,CAAC,QAAQ,EAAE;QACjB,KAAK,CAAC,cAAc,EAAE,CAAC;QAEvB,OAAO;OACR;MAED,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;MAEjE,IAAI,IAAI,CAAC,IAAI,EAAE;QACb,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;UAClB,KAAK,EAAE,MAAA,IAAI,CAAC,KAAK,mCAAI,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK;UACnD,OAAO,EAAE,IAAI,CAAC,WAAW;SAC1B,CAAC,CAAC;OACJ;MAED,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE;QAC1B,MAAM,YAAY,GAAG,IAAI,CAAC,yBAAyB,EAAE,CAAC;QAEtD,YAAY,CAAC,KAAK,EAAE,CAAC;QAErB,YAAY,CAAC,MAAM,EAAE,CAAC;OACvB;KACF,CAAC;IAEM,8BAAyB,GAAG;MAClC,MAAM,IAAI,GAAG,IAAI,CAAC,uBAAuB,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;MAEnE,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;MACtD,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;MAC9B,YAAY,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;MACpC,YAAY,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;MAEtC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;MAE/B,OAAO,YAAY,CAAC;KACrB,CAAC;IAEM,eAAU,GAAG,CAAC,KAAoB;MACxC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;QAC3C,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE;UACf,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;SACrC;QAED,KAAK,CAAC,cAAc,EAAE,CAAC;QAEvB,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;OAC5B;KACF,CAAC;oBAhKiB,KAAK;oBAKL,KAAK;iBAKR,KAAK;kBAKJ,KAAK;mBAMJ,KAAK;gBAKR,KAAK;mBAKF,KAAK;eAKT,KAAK;oBAKA,KAAK;gBAKY,QAAQ;oBAKR,KAAK;;;gBAgBK,SAAS;;kBAUtC,QAAQ;gBAMV,KAAK;;EAqBpB,UAAU;;IACR,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAA,IAAI,CAAC,KAAK,mCAAI,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;GAClE;EAwDO,uBAAuB,CAAC,QAAQ,EAAE,IAAI;IAC5C,SAAS,aAAa,CAAC,EAAE;MACvB,MAAM,KAAK,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;MAEnC,OAAO,KAAK,GAAG,KAAK,GAAG,aAAa,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC,IAAI,CAAC,CAAC;KAC7D;IAED,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC;GAC5B;EAID,iBAAiB;IACf,IAAI,CAAC,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,CAClE,sBAAsB,CACvB,CAAC;GACH;EAED,MAAM;IACJ,MAAM,cAAc,GAAG;MACrB,mBAAmB,EAAE,IAAI;MACzB,gCAAgC,EAAE,IAAI,CAAC,4BAA4B;MACnE,2BAA2B,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG;MACvC,0BAA0B,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;MACjD,8BAA8B,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ;MAC/C,0BAA0B,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;KAClD,CAAC;IAEF,MAAM,YAAY,GAAG;MACnB,0BAA0B,EAAE,IAAI;MAChC,WAAW,EAAE,IAAI,CAAC,OAAO;KAC1B,CAAC;IAEF,MAAM,aAAa,GAAG;MACpB,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG;MACf,OAAO,EAAE,IAAI,CAAC,OAAO;MACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ;KACxB,CAAC;IAEF,MAAM,WAAW,GAAG;MAClB,UAAU,EAAE,IAAI;MAChB,iBAAiB,EAAE,IAAI,CAAC,KAAK;MAC7B,oBAAoB,EAAE,IAAI,CAAC,QAAQ;MACnC,kBAAkB,EAAE,IAAI,CAAC,MAAM;MAC/B,oBAAoB,EAAE,IAAI,CAAC,QAAQ;MACnC,oBAAoB,EAAE,IAAI,CAAC,QAAQ;MACnC,gBAAgB,EAAE,IAAI,CAAC,IAAI;MAC3B,kBAAkB,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG;MAC9B,uBAAuB,EAAE,CAAC,CAAC,IAAI,CAAC,4BAA4B;MAC5D,kBAAkB,EAAE,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ;MAClD,qBAAqB,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ;MACtC,CAAC,aAAa,IAAI,CAAC,IAAI,EAAE,GAAG,IAAI;KACjC,CAAC;IAEF,MAAM,sBAAsB,GAAG;MAC7B,gCAAgC,EAAE,IAAI,CAAC,4BAA4B;MACnE,yCAAyC,EAAE,IAAI,CAAC,OAAO;KACxD,CAAC;IAEF,MAAM,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,GAAG,QAAQ,CAAC;IAEzC,MAAM,cAAc,GAAG;MACrB,SAAS,EAAE,IAAI,CAAC,UAAU;KAC3B,CAAC;IAEF,MAAM,UAAU,GAAG;MACjB,EAAE,EAAE,IAAI,CAAC,MAAM;MACf,KAAK,EAAE,aAAa;MACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ;MACvB,OAAO,EAAE,IAAI,CAAC,QAAQ;MACtB,IAAI,EAAE,IAAI,CAAC,IAAI;KAChB,CAAC;IAEF,IAAI,cAAc,GAAG,EAAE,CAAC;IAExB,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE;MACf,cAAc,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;KAC3D;IAED,MAAM,YAAY,GAAG;MACnB,KAAK,EAAE,EAAE;MACT,OAAO,EAAE,EAAE;MACX,KAAK,EAAE,EAAE;KACV,CAAC;IAEF,QACE,EAAC,IAAI,kBAAC,KAAK,EAAE,WAAW,IAAM,cAAc,GAC1C,EAAC,GAAG,oBAAK,UAAU,EAAM,cAAc,GACrC,WACE,KAAK,EAAE,cAAc,EACrB,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,UAAU,GAAG,EAAoB,CAAC,IAErD,WAAK,KAAK,EAAE,YAAY,IACrB,IAAI,CAAC,OAAO,KACX,WAAK,KAAK,EAAC,kBAAkB,IAC3B,iBACE,KAAK,EAAC,+BAA+B,EACrC,IAAI,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,GAC7B,CACE,CACP,EAED,eAAa,CACT,EAEL,IAAI,CAAC,4BAA4B,KAChC,WAAK,KAAK,EAAE,sBAAsB,IAChC,YAAM,IAAI,EAAC,aAAa,GAAQ,CAC5B,CACP,CACG,EAEN,gBAAU,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC,GAAa,CAC1D,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CButton"],"sources":["src/components/c-button/c-button.scss?tag=c-button&encapsulation=shadow","src/components/c-button/c-button.tsx"],"sourcesContent":[":host {\n /**\n * @prop --c-button-border-radius: Button border radius\n */\n --_c-button-border-radius: var(--c-button-border-radius, 4px);\n --_c-button-height: 44px;\n --_c-button-min-width: 88px;\n --_c-button-padding: 0 16px;\n --_c-button-font-size: 16px;\n --_c-button-icon-size: 24px;\n --_c-button-outline-offset: 2px;\n\n border-radius: var(--_c-button-border-radius);\n display: inline-flex;\n transform: translateZ(0); // Safari border-radius fix\n transition: background-color 0.3s ease-in-out;\n\n /**\n * @prop --c-button-background-color: Default button background color\n * @prop --c-button-text-color: Default button text color\n * @prop --c-button-loader-color: Default button loader color\n * @prop --c-button-outline-color: Default button outline color\n */\n --_c-button-background-color: var(--c-button-background-color, var(--c-primary-600));\n --_c-button-text-color: var(--c-button-text-color, var(--c-white));\n --_c-button-loader-color: var(--c-button-loader-color, var(--_c-button-text-color));\n --_c-button-outline-color: var(--c-button-outline-color, var(--_c-button-background-color));\n\n background-color: var(--_c-button-background-color);\n color: var(--_c-button-text-color);\n\n ::slotted(svg) {\n fill: var(--_c-button-loader-color);\n }\n}\n\n:host(.c-button--no-radius) {\n --_c-button-border-radius: 0;\n}\n\n:host(:host:not(.c-button--description)) {\n height: var(--_c-button-height);\n}\n\n:host(.c-button--description) {\n height: \"auto\";\n}\n\n:host(:host:hover) {\n /**\n * @prop --c-button-background-color-hover: Default button hover background color\n */\n --_c-button-background-color-hover: var(--c-button-background-color-hover, var(--c-primary-400));\n\n background-color: var(--_c-button-background-color-hover);\n}\n\n:host(.c-button--disabled) {\n /**\n * @prop --c-button-disabled-background-color: Disabled button background color\n * @prop --c-button-disabled-text-color: Disabled button text color\n */\n --_c-button-disabled-background-color: var(--c-button-disabled-background-color, var(--c-tertiary-100));\n --_c-button-disabled-text-color: var(--c-button-disabled-text-color, var(--c-tertiary-600));\n\n background-color: var(--_c-button-disabled-background-color);\n color: var(--_c-button-disabled-text-color);\n pointer-events: none;\n}\n\n:host(.c-button--inverted) {\n /**\n * @prop --c-button-inverted-background-color: Inverted default button background color\n * @prop --c-button-inverted-text-color: Inverted default button text color\n */\n --_c-button-inverted-background-color: var(--c-button-inverted-background-color, var(--c-white));\n --_c-button-inverted-text-color: var(--c-button-inverted-text-color, var(--c-primary-600));\n\n // private\n --_c-button-outline-color: var(--_c-button-inverted-background-color);\n\n background-color: var(--_c-button-inverted-background-color);\n color: var(--_c-button-inverted-text-color);\n}\n\n:host(.c-button--inverted:hover) {\n /**\n * @prop --c-button-inverted-background-color-hover: Inverted default button hover background color\n */\n --_c-button-inverted-background-color-hover: var(--c-button-inverted-background-color-hover, var(--c-primary-200));\n\n background-color: var(--_c-button-inverted-background-color-hover);\n}\n\n:host(.c-button--inverted.c-button--disabled) {\n /**\n * @prop --c-button-inverted-disabled-background-color: Inverted disabled default button background color\n * @prop --c-button-inverted-disabled-text-color: Inverted disabled default button text color\n */\n --_c-button-inverted-disabled-background-color: var(--c-button-inverted-disabled-background-color, var(--_c-button-disabled-background-color));\n --_c-button-inverted-disabled-text-color: var(--c-button-inverted-disabled-text-color, var(--c-tertiary-500));\n\n background-color: var(--_c-button-inverted-disabled-background-color);\n color: var(--_c-button-inverted-disabled-text-color);\n}\n\n// ---- danger ----------------------------------------------------------------\n\n:host(.c-button--danger) {\n /**\n * @prop --c-button-danger-background-color: Danger button background color\n * @prop --c-button-danger-text-color: Danger button text color\n * @prop --c-button-danger-loader-color: Danger button loader color\n */\n --_c-button-danger-background-color: var(--c-button-danger-background-color, var(--c-error-600));\n --_c-button-danger-text-color: var(--c-button-danger-text-color, var(--c-white));\n --_c-button-danger-loader-color: var(--c-button-danger-loader-color, var(--_c-button-danger-text-color));\n\n // private\n --_c-button-loader-color: var(--_c-button-danger-loader-color);\n --_c-button-outline-color: var(--_c-button-danger-background-color);\n\n background-color: var(--_c-button-danger-background-color);\n color: var(--_c-button-danger-text-color);\n}\n\n:host(.c-button--danger:hover) {\n /**\n * @prop --c-button-danger-background-color-hover: Danger button hover background color\n */\n --_c-button-danger-background-color-hover: var(--c-button-danger-background-color-hover, var(--c-error-400));\n\n background-color: var(--_c-button-danger-background-color-hover);\n}\n\n:host(.c-button--danger.c-button--disabled) {\n /**\n * @prop --c-button-danger-disabled-background-color: Disabled danger button background color\n * @prop --c-button-danger-disabled-text-color: Disabled danger button text color\n */\n --_c-button-danger-disabled-background-color: var(--c-button-danger-disabled-background-color, var(--_c-button-disabled-background-color));\n --_c-button-danger-disabled-text-color: var(--c-button-danger-disabled-text-color, var(--_c-button-disabled-text-color));\n\n background-color: var(--_c-button-danger-disabled-background-color);\n color: var(--_c-button-danger-disabled-text-color);\n}\n\n:host(.c-button--danger.c-button--inverted) {\n /**\n * @prop --c-button-danger-inverted-background-color: Inverted danger button background color\n * @prop --c-button-danger-inverted-text-color: Inverted danger button text color\n */\n --_c-button-danger-inverted-text-color: var(--c-button-danger-inverted-text-color, var(--c-error-600));\n --_c-button-danger-inverted-background-color: var(--c-button-danger-inverted-background-color, var(--c-white));\n\n // private\n --_c-button-outline-color: var(--_c-button-danger-inverted-background-color);\n\n background-color: var(--_c-button-danger-inverted-background-color);\n color: var(--_c-button-danger-inverted-text-color);\n}\n\n:host(.c-button--danger.c-button--inverted:hover) {\n /**\n * @prop --c-button-danger-inverted-background-color-hover: Inverted danger button hover background color\n */\n --_c-button-danger-inverted-background-color-hover: var(--c-button-danger-inverted-background-color-hover, var(--c-error-100));\n\n background-color: var(--_c-button-danger-inverted-background-color-hover);\n}\n\n:host(.c-button--danger.c-button--inverted.c-button--disabled) {\n /**\n * @prop --c-button-danger-inverted-disabled-background-color: Disabled inverted danger button background color\n * @prop --c-button-danger-inverted-disabled-text-color: Disabled inverted danger button text color\n */\n --_c-button-danger-inverted-disabled-background-color: var(--c-button-danger-inverted-disabled-background-color, var(--_c-button-disabled-background-color));\n --_c-button-danger-inverted-disabled-text-color: var(--c-button-danger-inverted-disabled-text-color, var(--_c-button-disabled-text-color));\n\n background-color: var(--_c-button-danger-inverted-disabled-background-color);\n color: var(--_c-button-danger-inverted-disabled-text-color);\n}\n\n// ---- ghost ----------------------------------------------------------------\n\n:host(.c-button--ghost) {\n /**\n * @prop --c-button-ghost-background-color: Ghost button background color\n * @prop --c-button-ghost-text-color: Ghost button text color\n * @prop --c-button-ghost-loader-color: Ghost button loader color\n */\n --_c-button-ghost-background-color: var(--c-button-ghost-background-color, var(--c-primary-200));\n --_c-button-ghost-text-color: var(--c-button-ghost-text-color, var(--c-primary-600));\n --_c-button-ghost-loader-color: var(--c-button-ghost-loader-color, var(--_c-button-ghost-text-color));\n\n // private\n --_c-button-loader-color: var(--_c-button-ghost-loader-color);\n --_c-button-outline-color: var(--_c-button-ghost-text-color);\n\n background-color: var(--_c-button-ghost-background-color);\n color: var(--_c-button-ghost-text-color);\n}\n\n:host(.c-button--ghost:hover) {\n /**\n * @prop --c-button-ghost-background-color-hover: Ghost button hover background color\n */\n --_c-button-ghost-background-color-hover: var(--c-button-ghost-background-color-hover, var(--c-primary-100));\n\n background-color: var(--_c-button-ghost-background-color-hover);\n}\n\n:host(.c-button--ghost.c-button--disabled) {\n /**\n * @prop --c-button-ghost-disabled-background-color: Disabled ghost button background color\n * @prop --c-button-ghost-disabled-text-color: Disabled ghost button text color\n */\n --_c-button-ghost-disabled-background-color: var(--c-button-ghost-disabled-background-color, var(--_c-button-disabled-background-color));\n --_c-button-ghost-disabled-text-color: var(--c-button-ghost-disabled-text-color, var(--_c-button-disabled-text-color));\n\n background-color: var(--_c-button-ghost-disabled-background-color);\n color: var(--_c-button-ghost-disabled-text-color);\n}\n\n:host(.c-button--ghost.c-button--inverted) {\n /**\n * @prop --c-button-ghost-inverted-background-color: Inverted ghost button background color\n * @prop --c-button-ghost-inverted-text-color: Inverted ghost button text color\n */\n --_c-button-ghost-inverted-background-color: var(--c-button-ghost-inverted-background-color, rgba(var(--c-white-rgb), 0.2));\n --_c-button-ghost-inverted-text-color: var(--c-button-ghost-inverted-text-color, var(--c-white));\n\n // private\n --_c-button-outline-color: var(--_c-button-ghost-inverted-text-color);\n\n background-color: var(--_c-button-ghost-inverted-background-color);\n color: var(--_c-button-ghost-inverted-text-color);\n}\n\n:host(.c-button--ghost.c-button--inverted:hover) {\n /**\n * @prop --c-button-ghost-inverted-background-color-hover: Inverted ghost button hover text color\n */\n --_c-button-ghost-inverted-background-color-hover: var(--c-button-ghost-inverted-background-color-hover, rgba(var(--c-white-rgb), 0.3));\n\n background-color: var(--_c-button-ghost-inverted-background-color-hover);\n}\n\n:host(.c-button--ghost.c-button--inverted.c-button--disabled) {\n /**\n * @prop --c-button-ghost-inverted-disabled-background-color: Disabled inverted ghost button background color\n * @prop --c-button-ghost-inverted-disabled-text-color: Disabled inverted ghost button text color\n */\n --_c-button-ghost-inverted-disabled-background-color: var(--c-button-ghost-inverted-disabled-background-color, rgba(var(--c-white-rgb), 0.05));\n --_c-button-ghost-inverted-disabled-text-color: var(--c-button-ghost-inverted-disabled-text-color, var(--c-tertiary-400));\n\n background-color: var(--_c-button-ghost-inverted-disabled-background-color);\n color: var(--_c-button-ghost-inverted-disabled-text-color);\n}\n\n// ---- text ----------------------------------------------------------------\n\n:host(.c-button--text) {\n /**\n * @prop --c-button-text-background-color: Text button background color\n * @prop --c-button-text-text-color: Text button text color\n * @prop --c-button-text-loader-color: Text button loader color\n */\n --_c-button-text-background-color: var(--c-button-text-background-color, var(--c-transparent));\n --_c-button-text-text-color: var(--c-button-text-text-color, var(--c-primary-600));\n --_c-button-text-loader-color: var(--c-button-text-loader-color, var(--_c-button-text-text-color));\n\n // private\n --_c-button-loader-color: var(--_c-button-text-loader-color);\n --_c-button-outline-color: var(--_c-button-text-text-color);\n\n background-color: var(--_c-button-text-background-color);\n color: var(--_c-button-text-text-color);\n}\n\n:host(.c-button--text:hover) {\n /**\n * @prop --c-button-text-background-color-hover: Text button hover background color\n */\n --_c-button-text-background-color-hover: var(--c-button-text-background-color-hover, var(--c-primary-100));\n\n background-color: var(--_c-button-text-background-color-hover);\n}\n\n:host(.c-button--text.c-button--disabled) {\n /**\n * @prop --c-button-text-disabled-background-color: Disabled text button background color\n * @prop --c-button-text-disabled-text-color: Disabled text button text color\n */\n --_c-button-text-disabled-background-color: var(--c-button-text-disabled-background-color, var(--c-transparent));\n --_c-button-text-disabled-text-color: var(--c-button-text-disabled-text-color, var(--c-tertiary-500));\n\n background-color: var(--_c-button-text-disabled-background-color);\n color: var(--_c-button-text-disabled-text-color);\n}\n\n:host(.c-button--text.c-button--inverted) {\n /**\n * @prop --c-button-text-inverted-background-color: Inverted text button background color\n * @prop --c-button-text-inverted-text-color: Inverted text button text color\n */\n --_c-button-text-inverted-background-color: var(--c-button-text-inverted-background-color, var(--c-transparent));\n --_c-button-text-inverted-text-color: var(--c-button-text-inverted-text-color, var(--c-white));\n\n // private\n --_c-button-outline-color: var(--_c-button-text-inverted-text-color);\n\n background-color: var(--_c-button-text-inverted-background-color);\n color: var(--_c-button-text-inverted-text-color);\n}\n\n:host(.c-button--text.c-button--inverted:hover) {\n /**\n * @prop --c-button-text-inverted-background-color-hover: Inverted text button hover background color\n */\n --_c-button-text-inverted-background-color-hover: var(--c-button-text-inverted-background-color-hover, rgba(var(--c-white-rgb), 0.3));\n\n background-color: var(--_c-button-text-inverted-background-color-hover);\n}\n\n:host(.c-button--text.c-button--inverted.c-button--disabled) {\n /**\n * @prop --c-button-text-inverted-disabled-background-color: Disabled inverted text button background color\n * @prop --c-button-text-inverted-disabled-text-color: Disabled inverted text button text color\n */\n --_c-button-text-inverted-disabled-background-color: var(--c-button-text-inverted-disabled-background-color, var(--c-transparent));\n --_c-button-text-inverted-disabled-text-color: var(--c-button-text-inverted-disabled-text-color, var(--c-tertiary-400));\n\n background-color: var(--_c-button-text-inverted-disabled-background-color);\n color: var(--_c-button-text-inverted-disabled-text-color);\n}\n\n// ---- outlined ----------------------------------------------------------------\n\n:host(.c-button--outlined) {\n /**\n * @prop --c-button-outlined-background-color: Outlined button background color\n * @prop --c-button-outlined-border-color: Outlined button border color\n * @prop --c-button-outlined-text-color: Outlined button text color\n * @prop --c-button-outlined-loader-color: Outlined button loader color\n */\n --_c-button-outlined-text-color: var(--c-button-outlined-text-color, var(--c-primary-600));\n --_c-button-outlined-border-color: var(--c-button-outlined-border-color, var(--_c-button-outlined-text-color));\n --_c-button-outlined-background-color: var(--c-button-outlined-background-color, var(--c-transparent));\n --_c-button-outlined-loader-color: var(--c-button-outlined-loader-color, var(--_c-button-outlined-text-color));\n\n // private\n --_c-button-loader-color: var(--_c-button-outlined-loader-color);\n --_c-outline-color: var(--_c-button-outlined-border-color);\n --_c-button-outline-color: var(--_c-button-outlined-border-color);\n\n background-color: var(--_c-button-outlined-background-color);\n color: var(--_c-button-outlined-text-color);\n box-shadow: inset 0 0 0 2px var(--_c-outline-color);\n}\n\n:host(.c-button--outlined:hover) {\n /**\n * @prop --c-button-outlined-background-color-hover: Outlined button hover background color\n */\n --_c-button-outlined-background-color-hover: var(--c-button-outlined-background-color-hover, var(--c-primary-200));\n\n background-color: var(--_c-button-outlined-background-color-hover);\n}\n\n:host(.c-button--outlined.c-button--disabled) {\n /**\n * @prop --c-button-outlined-disabled-background-color: Disabled outlined button background color\n * @prop --c-button-outlined-disabled-border-color: Disabled outlined button border color\n * @prop --c-button-outlined-disabled-text-color: Disabled outlined button text color\n */\n --_c-button-outlined-disabled-text-color: var(--c-button-outlined-disabled-text-color, var(--c-tertiary-500));\n --_c-button-outlined-disabled-background-color: var(--c-button-outlined-disabled-background-color, var(--_c-button-outlined-background-color));\n --_c-button-outlined-disabled-border-color: var(--c-button-outlined-disabled-border-color, var(--c-tertiary-400));\n\n // private\n --_c-outline-color: var(--_c-button-outlined-disabled-border-color);\n\n background-color: var(--_c-button-outlined-disabled-background-color);\n color: var(--_c-button-outlined-disabled-text-color);\n}\n\n:host(.c-button--outlined.c-button--inverted) {\n /**\n * @prop --c-button-outlined-inverted-background-color: Inverted outlined button background color\n * @prop --c-button-outlined-inverted-border-color: Inverted outlined button border color\n * @prop --c-button-outlined-inverted-text-color: Inverted outlined button text color\n */\n --_c-button-outlined-inverted-text-color: var(--c-button-outlined-inverted-text-color, var(--c-white));\n --_c-button-outlined-inverted-border-color: var(--c-button-outlined-inverted-border-color, var(--_c-button-outlined-inverted-text-color));\n --_c-button-outlined-inverted-background-color: var(--c-button-outlined-inverted-background-color, var(--_c-button-outlined-background-color));\n\n // private\n --_c-outline-color: var(--_c-button-outlined-inverted-border-color);\n --_c-button-outline-color: var(--_c-button-outlined-inverted-border-color);\n\n background-color: var(--_c-button-outlined-inverted-background-color);\n color: var(--_c-button-outlined-inverted-text-color);\n}\n\n:host(.c-button--outlined.c-button--inverted:hover) {\n /**\n * @prop --c-button-outlined-background-color-hover: Outlined button hover background color\n */\n --_c-button-outlined-inverted-background-color-hover: var(--c-button-outlined-inverted-background-color-hover, rgba(var(--c-white-rgb), 0.3));\n\n background-color: var(--_c-button-outlined-inverted-background-color-hover);\n}\n\n:host(.c-button--outlined.c-button--inverted.c-button--disabled) {\n /**\n * @prop --c-button-outlined-inverted-disabled-background-color: Disabled inverted outlined button background color\n * @prop --c-button-outlined-inverted-disabled-border-color: Disabled inverted outlined button border color\n * @prop --c-button-outlined-inverted-disabled-text-color: Disabled inverted outlined button text color\n */\n --_c-button-outlined-inverted-disabled-border-color: var(--c-button-outlined-inverted-disabled-border-color, var(--c-tertiary-400));\n --_c-button-outlined-inverted-disabled-text-color: var(--c-button-outlined-inverted-disabled-text-color, var(--c-tertiary-400));\n --_c-button-outlined-inverted-disabled-background-color: var(--c-button-outlined-inverted-disabled-background-color, var(--_c-button-outlined-background-color));\n\n // private\n --_c-outline-color: var(--_c-button-outlined-inverted-disabled-border-color);\n\n background-color: var(--_c-button-outlined-inverted-disabled-background-color);\n color: var(--_c-button-outlined-inverted-disabled-text-color);\n}\n\n// ==========================================================================\n\n// :host(.c-button--active) {\n// --_c-button-text-color: var(--c-white);\n// }\n\n:host(.c-button:focus) {\n z-index: 2;\n}\n\n:host(.c-button) a:focus,\n:host(.c-button) button:focus {\n outline: none;\n}\n\n:host(.c-button) a:focus-visible,\n:host(.c-button) button:focus-visible {\n outline: 2px var(--_c-button-outline-color) solid;\n outline-offset: var(--_c-button-outline-offset);\n z-index: 1;\n}\n\n:host(.c-button--fit) {\n width: 100%;\n}\n\n:host(.c-button--small) {\n --_c-button-height: 28px;\n}\n\n:host(.c-button--large) {\n --_c-button-height: 52px;\n}\n\n:host(.c-button--fitted) {\n width: 100%;\n}\n\n::slotted([slot=\"icon\"]) {\n font-size: var(--_c-button-icon-size);\n}\n\n::slotted(svg) {\n fill: var(--_c-button-loader-color);\n}\n\na {\n text-decoration: none;\n}\n\nbutton,\na {\n background-color: transparent;\n border-radius: var(--_c-button-border-radius);\n color: currentColor;\n font-family: var(--c-font-family);\n display: inline-grid;\n place-items: center;\n border: none;\n padding: 0;\n position: relative;\n margin: 0;\n width: 100%;\n cursor: pointer;\n transition: background-color 0.3s cubic-bezier(0.25, 0.8, 0.5, 1),\n color 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);\n\n &:disabled {\n cursor: default;\n }\n}\n\n@media (max-width: 767px) {\n .full-width-mobile {\n max-width: 100% !important;\n width: 100% !important;\n margin: 0 !important;\n\n .c-button-padding {\n padding: 24px 38px;\n }\n }\n\n .full-width {\n flex-grow: 1 !important;\n }\n}\n\n.c-button__content {\n $this: &;\n\n border-radius: var(--_c-button-border-radius);\n position: relative;\n box-shadow: none;\n outline: none;\n backface-visibility: hidden;\n transform: translate3d(0, 0, 0);\n transition: background-color 0.3s;\n color: currentColor;\n margin: 0;\n text-decoration: none;\n display: flex;\n text-align: center;\n font-size: var(--_c-button-font-size);\n font-weight: 700;\n line-height: 18px;\n user-select: none;\n min-width: var(--_c-button-min-width);\n white-space: nowrap;\n height: 100%;\n width: 100%;\n align-items: center;\n justify-content: center;\n\n * {\n pointer-events: none;\n }\n\n svg {\n fill: var(--_c-button-loader-color);\n height: var(--_c-button-icon-size);\n width: var(--_c-button-icon-size);\n\n &.icon-by-path {\n margin-right: 8px;\n }\n\n &.button-icon {\n margin-right: 16px;\n font-size: 10px;\n margin-left: -8px;\n margin-bottom: -2px;\n }\n }\n\n &--small {\n --_c-button-padding: 0 12px;\n --_c-button-font-size: 14px;\n --_c-button-icon-size: 20px;\n }\n\n &--large {\n --_c-button-padding: 0 24px;\n --_c-button-font-size: 18px;\n }\n\n &--no-radius {\n --_c-button-border-radius: 0;\n }\n\n &--fitted {\n width: 100%;\n }\n\n &--description {\n display: grid;\n grid-template-columns: 1fr;\n gap: 0;\n }\n\n &__inner {\n display: flex;\n gap: 8px;\n height: var(--_c-button-height);\n align-items: center;\n justify-content: center;\n padding: var(--_c-button-padding);\n }\n\n &__description {\n font-weight: 400;\n font-size: 12px;\n padding: 0 12px 12px;\n\n &--loading {\n opacity: 0.8;\n }\n }\n}\n\n.hide-text {\n color: transparent !important;\n\n ::slotted([slot=\"icon\"]) {\n opacity: 0;\n }\n\n svg {\n fill: transparent !important;\n }\n\n .outlined.c-button svg {\n fill: transparent !important;\n }\n}\n\n.c-button__loader {\n width: 100%;\n position: absolute;\n height: var(--_c-button-height);\n display: grid;\n place-content: center;\n\n &.dense_spinner {\n padding-top: 7px;\n }\n}\n","import {\n Component,\n Prop,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n} from '@stencil/core';\n\n/**\n * @group Buttons\n * @slot Default slot - Button text\n * @slot icon - Icon\n * @slot description - Additional description to be shown below the button text\n */\n@Component({\n tag: 'c-button',\n styleUrl: 'c-button.scss',\n shadow: true,\n})\nexport class CButton {\n /**\n * Inverted button style for dark backgrounds\n */\n @Prop() inverted = false;\n\n /**\n * Outlined button style\n */\n @Prop() outlined = false;\n\n /**\n * Light button background\n */\n @Prop() ghost = false;\n\n /**\n * Danger variant style\n */\n @Prop() danger = false;\n\n /**\n * True when used as a tab button\n * @private\n */\n @Prop() grouped = false;\n\n /**\n * Transparent button background\n */\n @Prop() text = false;\n\n /**\n * Display loader on the button\n */\n @Prop() loading = false;\n\n /**\n * Fit width to containing element\n */\n @Prop() fit = false;\n\n /**\n * Remove the default border radius\n */\n @Prop() noRadius = false;\n\n /**\n * Button type\n */\n @Prop() type: 'button' | 'submit' = 'button';\n\n /**\n * Disable the button\n */\n @Prop({ reflect: true }) disabled = false;\n\n /**\n * Value for the button\n * - for use in the c-tab-buttons\n */\n @Prop() value?: number | string;\n\n /**\n * Id of the button\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Size of the button\n */\n @Prop() size: 'default' | 'small' | 'large' = 'default';\n\n /**\n * Hyperlink url\n */\n @Prop() href: string;\n\n /**\n * Hyperlink target\n */\n @Prop() target = '_blank';\n\n /**\n * Used a s atab button\n * @private\n */\n @Prop() tabs = false;\n\n /**\n * Emit changes to the parent\n * @private\n */\n @Event() tabChange: EventEmitter<{\n value: number | string;\n element: HTMLCButtonElement;\n }>;\n\n /**\n * Emit focus to the parent\n *\n * @private\n */\n @Event() tabFocus: EventEmitter<number | string>;\n\n @Element() hostElement: HTMLCButtonElement;\n\n @Listen('focus', { passive: true })\n onTabFocus() {\n this.tabFocus.emit(this.value ?? this.hostElement.dataset.index);\n }\n\n private _container?: HTMLDivElement;\n\n private _rippleElement: HTMLCRippleElement;\n\n private _onClick = (event, center = false) => {\n if (this.disabled) {\n event.preventDefault();\n\n return;\n }\n\n this._rippleElement.createRipple(event, this._container, center);\n\n if (this.tabs) {\n this.tabChange.emit({\n value: this.value ?? this.hostElement.dataset.index,\n element: this.hostElement,\n });\n }\n\n if (this.type === 'submit') {\n const submitButton = this._createHiddenSubmitButton();\n\n submitButton.click();\n\n submitButton.remove();\n }\n };\n\n private _createHiddenSubmitButton = () => {\n const form = this._closestElementComposed('form', this._container);\n\n const submitButton = document.createElement('button');\n submitButton.type = this.type;\n submitButton.style.display = 'none';\n submitButton.disabled = this.disabled;\n\n form.appendChild(submitButton);\n\n return submitButton;\n };\n\n private _onKeyDown = (event: KeyboardEvent) => {\n if (['Space', 'Enter'].includes(event.code)) {\n if (!!this.href) {\n window.open(this.href, this.target);\n }\n\n event.preventDefault();\n\n this._onClick(event, true);\n }\n };\n\n private _closestElementComposed(selector, base) {\n function __closestFrom(el) {\n const found = el.closest(selector);\n\n return found ? found : __closestFrom(el.getRootNode().host);\n }\n\n return __closestFrom(base);\n }\n\n private _containerhasDescriptionSlot: boolean;\n\n componentWillLoad() {\n this._containerhasDescriptionSlot = !!this.hostElement.querySelector(\n '[slot=\"description\"]',\n );\n }\n\n render() {\n const contentClasses = {\n 'c-button__content': true,\n 'c-button__content--description': this._containerhasDescriptionSlot,\n 'c-button__content--fitted': !!this.fit,\n 'c-button__content--large': this.size === 'large',\n 'c-button__content--no-radius': !!this.noRadius,\n 'c-button__content--small': this.size === 'small',\n };\n\n const innerClasses = {\n 'c-button__content__inner': true,\n 'hide-text': this.loading,\n };\n\n const buttonClasses = {\n fit: !!this.fit,\n grouped: this.grouped,\n outlined: this.outlined,\n };\n\n const hostClasses = {\n 'c-button': true,\n 'c-button--ghost': this.ghost,\n 'c-button--outlined': this.outlined,\n 'c-button--danger': this.danger,\n 'c-button--disabled': this.disabled,\n 'c-button--inverted': this.inverted,\n 'c-button--text': this.text,\n 'c-button--fitted': !!this.fit,\n 'c-button--description': !!this._containerhasDescriptionSlot,\n 'c-button--active': this.grouped && !this.outlined,\n 'c-button--no-radius': !!this.noRadius,\n [`c-button--${this.size}`]: true,\n };\n\n const descriptionSlotClasses = {\n 'c-button__content__description': this._containerhasDescriptionSlot,\n 'c-button__content__description--loading': this.loading,\n };\n\n const Tag = !!this.href ? 'a' : 'button';\n\n const hostAttributes = {\n onKeyDown: this._onKeyDown,\n };\n\n const attributes = {\n id: this.hostId,\n class: buttonClasses,\n disabled: this.disabled,\n onClick: this._onClick,\n type: this.type,\n };\n\n let linkAttributes = {};\n\n if (!!this.href) {\n linkAttributes = { href: this.href, target: this.target };\n }\n\n const spinnerSizes = {\n small: 20,\n default: 24,\n large: 28,\n };\n\n return (\n <Host class={hostClasses} {...hostAttributes}>\n <Tag {...attributes} {...linkAttributes}>\n <div\n class={contentClasses}\n ref={(el) => (this._container = el as HTMLDivElement)}\n >\n <div class={innerClasses}>\n {this.loading && (\n <div class=\"c-button__loader\">\n <c-spinner\n color=\"var(--_c-button-loader-color)\"\n size={spinnerSizes[this.size]}\n />\n </div>\n )}\n\n <slot></slot>\n </div>\n\n {this._containerhasDescriptionSlot && (\n <div class={descriptionSlotClasses}>\n <slot name=\"description\"></slot>\n </div>\n )}\n </div>\n\n <c-ripple ref={(el) => (this._rippleElement = el)}></c-ripple>\n </Tag>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface CCardActions extends Components.CCardActions, HTMLElement {}
|
|
4
|
+
export const CCardActions: {
|
|
5
|
+
prototype: CCardActions;
|
|
6
|
+
new (): CCardActions;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { C as CCardActions$1, d as defineCustomElement$1 } from './c-card-actions2.js';
|
|
2
|
+
|
|
3
|
+
const CCardActions = CCardActions$1;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { CCardActions, defineCustomElement };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=c-card-actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"c-card-actions.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const cCardActionsCss = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{padding:0 var(--_c-card-gap, 24px);display:block}:host menu{margin:0;padding:0}.c-card-actions{align-items:center;display:flex;gap:8px}.c-card-actions ::slotted(c-button[fit]){flex:1}.c-card-actions--align-center{align-items:center}.c-card-actions--align-start{align-items:flex-start}.c-card-actions--align-end{align-items:flex-end}.c-card-actions--justify-center{justify-content:center}.c-card-actions--justify-end{justify-content:flex-end}.c-card-actions--justify-start{justify-content:flex-start}.c-card-actions--justify-stretch{justify-content:stretch}.c-card-actions--justify-stretch ::slotted(*){flex:1}.c-card-actions--justify-space-between{justify-content:space-between}.c-card-actions--justify-space-around{justify-content:space-around}";
|
|
4
|
+
|
|
5
|
+
const CCardActions = proxyCustomElement(class CCardActions extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.__attachShadow();
|
|
10
|
+
this.align = 'center';
|
|
11
|
+
this.justify = 'start';
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
const classes = {
|
|
15
|
+
'c-card-actions': true,
|
|
16
|
+
[`c-card-actions--align-${this.align}`]: true,
|
|
17
|
+
[`c-card-actions--justify-${this.justify}`]: true,
|
|
18
|
+
};
|
|
19
|
+
return (h("footer", null, h("menu", { class: classes }, h("slot", null))));
|
|
20
|
+
}
|
|
21
|
+
static get style() { return cCardActionsCss; }
|
|
22
|
+
}, [1, "c-card-actions", {
|
|
23
|
+
"align": [1],
|
|
24
|
+
"justify": [1]
|
|
25
|
+
}]);
|
|
26
|
+
function defineCustomElement() {
|
|
27
|
+
if (typeof customElements === "undefined") {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const components = ["c-card-actions"];
|
|
31
|
+
components.forEach(tagName => { switch (tagName) {
|
|
32
|
+
case "c-card-actions":
|
|
33
|
+
if (!customElements.get(tagName)) {
|
|
34
|
+
customElements.define(tagName, CCardActions);
|
|
35
|
+
}
|
|
36
|
+
break;
|
|
37
|
+
} });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { CCardActions as C, defineCustomElement as d };
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=c-card-actions2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"c-card-actions2.js","mappings":";;AAAA,MAAM,eAAe,GAAG,m3BAAm3B;;MCU93B,YAAY;;;;;iBAIqB,QAAQ;mBAW/B,OAAO;;EAE5B,MAAM;IACJ,MAAM,OAAO,GAAG;MACd,gBAAgB,EAAE,IAAI;MACtB,CAAC,yBAAyB,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI;MAC7C,CAAC,2BAA2B,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI;KAClD,CAAC;IAEF,QACE,kBACE,YAAM,KAAK,EAAE,OAAO,IAClB,eAAa,CACR,CACA,EACT;GACH;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/c-card-actions/c-card-actions.scss?tag=c-card-actions&encapsulation=shadow","src/components/c-card-actions/c-card-actions.tsx"],"sourcesContent":[":host {\n padding: 0 var(--_c-card-gap, 24px);\n display: block;\n\n menu {\n margin: 0;\n padding: 0;\n }\n}\n\n.c-card-actions {\n align-items: center;\n display: flex;\n gap: 8px;\n\n ::slotted(c-button[fit]) {\n flex: 1;\n }\n\n &--align {\n &-center {\n align-items: center;\n }\n\n &-start {\n align-items: flex-start;\n }\n\n &-end {\n align-items: flex-end;\n }\n }\n\n &--justify {\n &-center {\n justify-content: center;\n }\n\n &-end {\n justify-content: flex-end;\n }\n\n &-start {\n justify-content: flex-start;\n }\n\n &-stretch {\n justify-content: stretch;\n\n ::slotted(*) {\n flex: 1;\n }\n }\n\n &-space-between {\n justify-content: space-between;\n }\n\n &-space-around {\n justify-content: space-around;\n }\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\n/**\n * @parent c-card\n * @slot Default slot - Card actions\n */\n@Component({\n tag: 'c-card-actions',\n styleUrl: 'c-card-actions.scss',\n shadow: true,\n})\nexport class CCardActions {\n /**\n * Align the actions\n */\n @Prop() align: 'start' | 'center' | 'end' = 'center';\n\n /**\n * Justify the actions\n */\n @Prop() justify:\n | 'start'\n | 'center'\n | 'end'\n | 'space-between'\n | 'stretch'\n | 'space-around' = 'start';\n\n render() {\n const classes = {\n 'c-card-actions': true,\n [`c-card-actions--align-${this.align}`]: true,\n [`c-card-actions--justify-${this.justify}`]: true,\n };\n\n return (\n <footer>\n <menu class={classes}>\n <slot></slot>\n </menu>\n </footer>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface CCardContent extends Components.CCardContent, HTMLElement {}
|
|
4
|
+
export const CCardContent: {
|
|
5
|
+
prototype: CCardContent;
|
|
6
|
+
new (): CCardContent;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const cCardContentCss = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{display:block;padding:0 var(--_c-card-gap, 24px)}.c-card-content{display:flex;flex-direction:column;gap:var(--_c-card-gap)}.c-card-content ::slotted(*){max-width:100%}";
|
|
4
|
+
|
|
5
|
+
const CCardContent$1 = proxyCustomElement(class CCardContent extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.__attachShadow();
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return (h("article", { class: "c-card-content" }, h("slot", null)));
|
|
13
|
+
}
|
|
14
|
+
static get style() { return cCardContentCss; }
|
|
15
|
+
}, [1, "c-card-content"]);
|
|
16
|
+
function defineCustomElement$1() {
|
|
17
|
+
if (typeof customElements === "undefined") {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const components = ["c-card-content"];
|
|
21
|
+
components.forEach(tagName => { switch (tagName) {
|
|
22
|
+
case "c-card-content":
|
|
23
|
+
if (!customElements.get(tagName)) {
|
|
24
|
+
customElements.define(tagName, CCardContent$1);
|
|
25
|
+
}
|
|
26
|
+
break;
|
|
27
|
+
} });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const CCardContent = CCardContent$1;
|
|
31
|
+
const defineCustomElement = defineCustomElement$1;
|
|
32
|
+
|
|
33
|
+
export { CCardContent, defineCustomElement };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=c-card-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"c-card-content.js","mappings":";;AAAA,MAAM,eAAe,GAAG,iTAAiT;;MCU5TA,cAAY;;;;;;EACvB,MAAM;IACJ,QACE,eAAS,KAAK,EAAC,gBAAgB,IAC7B,eAAa,CACL,EACV;GACH;;;;;;;;;;;;;;;;;;;;;;","names":["CCardContent"],"sources":["src/components/c-card-content/c-card-content.scss?tag=c-card-content&encapsulation=shadow","src/components/c-card-content/c-card-content.tsx"],"sourcesContent":[":host {\n display: block;\n padding: 0 var(--_c-card-gap, 24px);\n}\n\n.c-card-content {\n display: flex;\n flex-direction: column;\n gap: var(--_c-card-gap);\n\n ::slotted(*) {\n max-width: 100%;\n }\n}\n","import { Component, h } from '@stencil/core';\n/**\n * @parent c-card\n * @slot Default slot - Card contents\n */\n@Component({\n tag: 'c-card-content',\n styleUrl: 'c-card-content.scss',\n shadow: true,\n})\nexport class CCardContent {\n render() {\n return (\n <article class=\"c-card-content\">\n <slot></slot>\n </article>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface CCardTitle extends Components.CCardTitle, HTMLElement {}
|
|
4
|
+
export const CCardTitle: {
|
|
5
|
+
prototype: CCardTitle;
|
|
6
|
+
new (): CCardTitle;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const cCardTitleCss = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-card-title-color:var(--c-card-title-color, var(--c-text-system));--_c-card-title-underline-color:var(--c-card-title-underline-color, var(--c-primary-600));color:var(--_c-card-title-color);padding-inline:var(--_c-card-gap, 24px);display:block;font-family:var(--c-font-family);font-size:1rem;font-weight:500;text-transform:uppercase}.c-card-title__underline{background-color:var(--_c-card-title-underline-color);border-radius:4px;height:4px;margin-top:10px;width:44px}";
|
|
4
|
+
|
|
5
|
+
const CCardTitle$1 = proxyCustomElement(class CCardTitle extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.__attachShadow();
|
|
10
|
+
}
|
|
11
|
+
render() {
|
|
12
|
+
return (h("header", { class: "c-card-title" }, h("slot", null), h("div", { class: "c-card-title__underline" })));
|
|
13
|
+
}
|
|
14
|
+
static get style() { return cCardTitleCss; }
|
|
15
|
+
}, [1, "c-card-title"]);
|
|
16
|
+
function defineCustomElement$1() {
|
|
17
|
+
if (typeof customElements === "undefined") {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const components = ["c-card-title"];
|
|
21
|
+
components.forEach(tagName => { switch (tagName) {
|
|
22
|
+
case "c-card-title":
|
|
23
|
+
if (!customElements.get(tagName)) {
|
|
24
|
+
customElements.define(tagName, CCardTitle$1);
|
|
25
|
+
}
|
|
26
|
+
break;
|
|
27
|
+
} });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const CCardTitle = CCardTitle$1;
|
|
31
|
+
const defineCustomElement = defineCustomElement$1;
|
|
32
|
+
|
|
33
|
+
export { CCardTitle, defineCustomElement };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=c-card-title.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"c-card-title.js","mappings":";;AAAA,MAAM,aAAa,GAAG,imBAAimB;;MCU1mBA,YAAU;;;;;;EACrB,MAAM;IACJ,QACE,cAAQ,KAAK,EAAC,cAAc,IAC1B,eAAa,EACb,WAAK,KAAK,EAAC,yBAAyB,GAAO,CACpC,EACT;GACH;;;;;;;;;;;;;;;;;;;;;;","names":["CCardTitle"],"sources":["src/components/c-card-title/c-card-title.scss?tag=c-card-title&encapsulation=shadow","src/components/c-card-title/c-card-title.tsx"],"sourcesContent":[":host {\n /**\n * @prop --c-card-title-color: Card title color\n * @prop --c-card-title-underline-color: Card title underline color\n */\n --_c-card-title-color: var(--c-card-title-color, var(--c-text-system));\n --_c-card-title-underline-color: var(--c-card-title-underline-color, var(--c-primary-600));\n\n color: var(--_c-card-title-color);\n padding-inline: var(--_c-card-gap, 24px);\n display: block;\n font-family: var(--c-font-family);\n font-size: 1rem;\n font-weight: 500;\n text-transform: uppercase;\n}\n\n.c-card-title {\n &__underline {\n background-color: var(--_c-card-title-underline-color);\n border-radius: 4px;\n height: 4px;\n margin-top: 10px;\n width: 44px;\n }\n}\n","import { Component, h } from '@stencil/core';\n/**\n * @parent c-card\n * @slot Default slot - Card title text\n */\n@Component({\n tag: 'c-card-title',\n styleUrl: 'c-card-title.scss',\n shadow: true,\n})\nexport class CCardTitle {\n render() {\n return (\n <header class=\"c-card-title\">\n <slot></slot>\n <div class=\"c-card-title__underline\"></div>\n </header>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface CCard extends Components.CCard, HTMLElement {}
|
|
4
|
+
export const CCard: {
|
|
5
|
+
prototype: CCard;
|
|
6
|
+
new (): CCard;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { f as mdiFullscreenExit, g as mdiFullscreen } 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 cCardCss = "html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-card-gap:var(--c-card-gap, clamp(1rem, 2vw, 1.5rem));--_c-card-background-color:var(--c-card-background-color, var(--c-white));display:block;border-radius:6px;box-shadow:rgba(0, 0, 0, 0.15) 0 10px 20px, rgba(0, 0, 0, 0.2) 0 5px 5px;padding-block:var(--_c-card-gap);position:relative;background-color:var(--_c-card-background-color)}:host article{display:flex;flex-direction:column;gap:var(--_c-card-gap)}::slotted(c-loader){border-radius:6px}.c-card__fullscreen-toggle{position:absolute;right:calc(var(--_c-card-gap) - 8px);top:calc(var(--_c-card-gap) - 8px)}";
|
|
10
|
+
|
|
11
|
+
const CCard$1 = proxyCustomElement(class CCard extends HTMLElement {
|
|
12
|
+
constructor() {
|
|
13
|
+
super();
|
|
14
|
+
this.__registerHost();
|
|
15
|
+
this.__attachShadow();
|
|
16
|
+
this.fullscreen = false;
|
|
17
|
+
this.isFullscreen = false;
|
|
18
|
+
}
|
|
19
|
+
_toggleFullscreen() {
|
|
20
|
+
this.isFullscreen = !this.isFullscreen;
|
|
21
|
+
}
|
|
22
|
+
_onFullscreen() {
|
|
23
|
+
var _a, _b;
|
|
24
|
+
if (document.fullscreenElement) {
|
|
25
|
+
this.exitFullscreen();
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
this.host.requestFullscreen();
|
|
29
|
+
const modalWrapper = (_b = (_a = this.host.parentElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.modal-wrapper');
|
|
30
|
+
if (modalWrapper) {
|
|
31
|
+
modalWrapper.style.display = this.isFullscreen
|
|
32
|
+
? 'block'
|
|
33
|
+
: 'flex';
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
componentDidLoad() {
|
|
37
|
+
const title = this.host.querySelector('c-card-title');
|
|
38
|
+
if (!!title && this.fullscreen) {
|
|
39
|
+
title.style.marginRight = '40px';
|
|
40
|
+
}
|
|
41
|
+
this.host.addEventListener('fullscreenchange', this._toggleFullscreen.bind(this));
|
|
42
|
+
}
|
|
43
|
+
disconnectedCallback() {
|
|
44
|
+
this.host.removeEventListener('fullscreenchange', this._toggleFullscreen.bind(this));
|
|
45
|
+
}
|
|
46
|
+
async exitFullscreen() {
|
|
47
|
+
var _a, _b;
|
|
48
|
+
if (!document.fullscreenElement)
|
|
49
|
+
return;
|
|
50
|
+
document.exitFullscreen();
|
|
51
|
+
const modalWrapper = (_b = (_a = this.host.parentElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.modal-wrapper');
|
|
52
|
+
if (modalWrapper) {
|
|
53
|
+
modalWrapper.style.display = 'flex';
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
async enterFullscreen() {
|
|
57
|
+
this.isFullscreen = true;
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
const hostClasses = {
|
|
61
|
+
'c-card': true,
|
|
62
|
+
};
|
|
63
|
+
return (h(Host, { class: hostClasses }, h("article", null, this.fullscreen && (h("c-icon-button", { "aria-hidden": "true", class: "c-card__fullscreen-toggle", title: this.isFullscreen ? 'Exit fullscreen' : 'Enter fullscreen', text: true, onClick: () => this._onFullscreen() }, h("c-icon", { path: this.isFullscreen ? mdiFullscreenExit : mdiFullscreen }))), h("slot", null))));
|
|
64
|
+
}
|
|
65
|
+
static get assetsDirs() { return ["assets"]; }
|
|
66
|
+
get host() { return this; }
|
|
67
|
+
static get style() { return cCardCss; }
|
|
68
|
+
}, [1, "c-card", {
|
|
69
|
+
"fullscreen": [4],
|
|
70
|
+
"isFullscreen": [32],
|
|
71
|
+
"exitFullscreen": [64],
|
|
72
|
+
"enterFullscreen": [64]
|
|
73
|
+
}]);
|
|
74
|
+
function defineCustomElement$1() {
|
|
75
|
+
if (typeof customElements === "undefined") {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
const components = ["c-card", "c-badge", "c-icon", "c-icon-button", "c-ripple", "c-spinner"];
|
|
79
|
+
components.forEach(tagName => { switch (tagName) {
|
|
80
|
+
case "c-card":
|
|
81
|
+
if (!customElements.get(tagName)) {
|
|
82
|
+
customElements.define(tagName, CCard$1);
|
|
83
|
+
}
|
|
84
|
+
break;
|
|
85
|
+
case "c-badge":
|
|
86
|
+
if (!customElements.get(tagName)) {
|
|
87
|
+
defineCustomElement$6();
|
|
88
|
+
}
|
|
89
|
+
break;
|
|
90
|
+
case "c-icon":
|
|
91
|
+
if (!customElements.get(tagName)) {
|
|
92
|
+
defineCustomElement$5();
|
|
93
|
+
}
|
|
94
|
+
break;
|
|
95
|
+
case "c-icon-button":
|
|
96
|
+
if (!customElements.get(tagName)) {
|
|
97
|
+
defineCustomElement$4();
|
|
98
|
+
}
|
|
99
|
+
break;
|
|
100
|
+
case "c-ripple":
|
|
101
|
+
if (!customElements.get(tagName)) {
|
|
102
|
+
defineCustomElement$3();
|
|
103
|
+
}
|
|
104
|
+
break;
|
|
105
|
+
case "c-spinner":
|
|
106
|
+
if (!customElements.get(tagName)) {
|
|
107
|
+
defineCustomElement$2();
|
|
108
|
+
}
|
|
109
|
+
break;
|
|
110
|
+
} });
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const CCard = CCard$1;
|
|
114
|
+
const defineCustomElement = defineCustomElement$1;
|
|
115
|
+
|
|
116
|
+
export { CCard, defineCustomElement };
|
|
117
|
+
|
|
118
|
+
//# sourceMappingURL=c-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"c-card.js","mappings":";;;;;;;;AAAA,MAAM,QAAQ,GAAG,8rBAA8rB;;MCqBlsBA,OAAK;;;;;sBAIK,KAAK;wBAEF,KAAK;;EAIrB,iBAAiB;IACvB,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC;GACxC;EAEO,aAAa;;IACnB,IAAI,QAAQ,CAAC,iBAAiB,EAAE;MAC9B,IAAI,CAAC,cAAc,EAAE,CAAC;MAEtB,OAAO;KACR;IAED,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAE9B,MAAM,YAAY,GAChB,MAAA,MAAA,IAAI,CAAC,IAAI,CAAC,aAAa,0CAAE,UAAU,0CAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAEvE,IAAI,YAAY,EAAE;MACf,YAA+B,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,YAAY;UAC9D,OAAO;UACP,MAAM,CAAC;KACZ;GACF;EAED,gBAAgB;IACd,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;IAEtD,IAAI,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC,UAAU,EAAE;MAC9B,KAAK,CAAC,KAAK,CAAC,WAAW,GAAG,MAAM,CAAC;KAClC;IAED,IAAI,CAAC,IAAI,CAAC,gBAAgB,CACxB,kBAAkB,EAClB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAClC,CAAC;GACH;EAED,oBAAoB;IAClB,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAC3B,kBAAkB,EAClB,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAClC,CAAC;GACH;EAMD,MAAM,cAAc;;IAClB,IAAI,CAAC,QAAQ,CAAC,iBAAiB;MAAE,OAAO;IAExC,QAAQ,CAAC,cAAc,EAAE,CAAC;IAE1B,MAAM,YAAY,GAChB,MAAA,MAAA,IAAI,CAAC,IAAI,CAAC,aAAa,0CAAE,UAAU,0CAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAEvE,IAAI,YAAY,EAAE;MACf,YAA+B,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;KACzD;GACF;EAMD,MAAM,eAAe;IACnB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;GAC1B;EAED,MAAM;IACJ,MAAM,WAAW,GAAG;MAClB,QAAQ,EAAE,IAAI;KACf,CAAC;IAEF,QACE,EAAC,IAAI,IAAC,KAAK,EAAE,WAAW,IACtB,mBACG,IAAI,CAAC,UAAU,KACd,oCACc,MAAM,EAClB,KAAK,EAAC,2BAA2B,EACjC,KAAK,EAAE,IAAI,CAAC,YAAY,GAAG,iBAAiB,GAAG,kBAAkB,EACjE,IAAI,QACJ,OAAO,EAAE,MAAM,IAAI,CAAC,aAAa,EAAE,IAEnC,cACE,IAAI,EAAE,IAAI,CAAC,YAAY,GAAG,iBAAiB,GAAG,aAAa,GAC3D,CACY,CACjB,EACD,eAAa,CACL,CACL,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CCard"],"sources":["src/components/c-card/c-card.scss?tag=c-card&encapsulation=shadow","src/components/c-card/c-card.tsx"],"sourcesContent":[":host {\n /**\n * @prop --c-card-gap: Card column gap / padding\n * @prop --c-card-background-color: Card background color\n */\n --_c-card-gap: var(--c-card-gap, clamp(1rem, 2vw, 1.5rem));\n --_c-card-background-color: var(--c-card-background-color, var(--c-white));\n\n display: block;\n border-radius: 6px;\n box-shadow: rgba(0, 0, 0, 0.15) 0 10px 20px, rgba(0, 0, 0, 0.2) 0 5px 5px;\n padding-block: var(--_c-card-gap);\n position: relative;\n background-color: var(--_c-card-background-color);\n\n article {\n display: flex;\n flex-direction: column;\n gap: var(--_c-card-gap);\n }\n}\n\n::slotted(c-loader) {\n border-radius: 6px;\n}\n\n.c-card {\n &__fullscreen-toggle {\n position: absolute;\n right: calc(var(--_c-card-gap) - 8px);\n top: calc(var(--_c-card-gap) - 8px);\n }\n}\n","import { mdiFullscreen, mdiFullscreenExit } from '@mdi/js';\nimport {\n Component,\n Element,\n Host,\n h,\n Prop,\n State,\n Method,\n} from '@stencil/core';\n\n/**\n * @group Cards\n * @slot Default slot - Card components\n */\n@Component({\n tag: 'c-card',\n styleUrl: 'c-card.scss',\n shadow: true,\n assetsDirs: ['assets'],\n})\nexport class CCard {\n /**\n * Enable the fullscreen toggle button\n */\n @Prop() fullscreen = false;\n\n @State() isFullscreen = false;\n\n @Element() host: HTMLCCardElement;\n\n private _toggleFullscreen() {\n this.isFullscreen = !this.isFullscreen;\n }\n\n private _onFullscreen() {\n if (document.fullscreenElement) {\n this.exitFullscreen();\n\n return;\n }\n\n this.host.requestFullscreen();\n\n const modalWrapper =\n this.host.parentElement?.shadowRoot?.querySelector('.modal-wrapper');\n\n if (modalWrapper) {\n (modalWrapper as HTMLDivElement).style.display = this.isFullscreen\n ? 'block'\n : 'flex';\n }\n }\n\n componentDidLoad() {\n const title = this.host.querySelector('c-card-title');\n\n if (!!title && this.fullscreen) {\n title.style.marginRight = '40px';\n }\n\n this.host.addEventListener(\n 'fullscreenchange',\n this._toggleFullscreen.bind(this),\n );\n }\n\n disconnectedCallback() {\n this.host.removeEventListener(\n 'fullscreenchange',\n this._toggleFullscreen.bind(this),\n );\n }\n\n /**\n * Exit fullscreen from the outside\n */\n @Method()\n async exitFullscreen() {\n if (!document.fullscreenElement) return;\n\n document.exitFullscreen();\n\n const modalWrapper =\n this.host.parentElement?.shadowRoot?.querySelector('.modal-wrapper');\n\n if (modalWrapper) {\n (modalWrapper as HTMLDivElement).style.display = 'flex';\n }\n }\n\n /**\n * Enter fullscreen from the outside\n */\n @Method()\n async enterFullscreen() {\n this.isFullscreen = true;\n }\n\n render() {\n const hostClasses = {\n 'c-card': true,\n };\n\n return (\n <Host class={hostClasses}>\n <article>\n {this.fullscreen && (\n <c-icon-button\n aria-hidden=\"true\"\n class=\"c-card__fullscreen-toggle\"\n title={this.isFullscreen ? 'Exit fullscreen' : 'Enter fullscreen'}\n text\n onClick={() => this._onFullscreen()}\n >\n <c-icon\n path={this.isFullscreen ? mdiFullscreenExit : mdiFullscreen}\n />\n </c-icon-button>\n )}\n <slot></slot>\n </article>\n </Host>\n );\n }\n}\n"],"version":3}
|