@cscfi/csc-ui 3.0.18 → 4.0.0-alpha.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/README.md +40 -40
- package/dist/csc-ui.js +20128 -0
- package/dist/css-anchor-positioning-fn-RTxo68pt.js +6447 -0
- package/dist/custom-elements.json +11421 -0
- package/dist/docs/c-autocomplete/usage.md +2 -0
- package/dist/docs/c-button/usage.md +31 -0
- package/dist/docs/c-button-group/usage.md +57 -0
- package/dist/docs/c-link/usage.md +1 -0
- package/dist/docs/c-loader/usage.md +1 -0
- package/dist/docs/c-main/usage.md +1 -0
- package/dist/docs/c-menu-item/usage.md +1 -0
- package/dist/docs/c-menu-label/usage.md +1 -0
- package/dist/docs/c-modal/usage.md +70 -0
- package/dist/docs/c-tab-buttons/usage.md +11 -0
- package/dist/docs/c-toast/usage.md +1 -0
- package/dist/docs/c-toasts/usage.md +30 -0
- package/dist/styles/css/tailwind-theme.css +118 -0
- package/dist/styles/css/tokens.css +464 -0
- package/dist/vscode.css-custom-data.json +580 -0
- package/dist/vscode.html-custom-data.json +1850 -0
- package/dist/web-types.json +5678 -0
- package/dist-types/components/c-accordion/CAccordion.vue.d.ts +46 -0
- package/dist-types/components/c-accordion-item/CAccordionItem.vue.d.ts +56 -0
- package/dist-types/components/c-alert/CAlert.vue.d.ts +32 -0
- package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +131 -0
- package/dist-types/components/c-badge/CBadge.vue.d.ts +13 -0
- package/dist-types/components/c-button/CButton.vue.d.ts +146 -0
- package/dist-types/components/c-button-group/CButtonGroup.vue.d.ts +66 -0
- package/dist-types/components/c-card/CCard.vue.d.ts +26 -0
- package/dist-types/components/c-card-actions/CCardActions.vue.d.ts +36 -0
- package/dist-types/components/c-card-content/CCardContent.vue.d.ts +13 -0
- package/dist-types/components/c-card-title/CCardTitle.vue.d.ts +15 -0
- package/dist-types/components/c-checkbox/CCheckbox.vue.d.ts +120 -0
- package/dist-types/components/c-csc-logo/CCscLogo.vue.d.ts +13 -0
- package/dist-types/components/c-data-table/CDataTable.vue.d.ts +222 -0
- package/dist-types/components/c-divider/CDivider.vue.d.ts +9 -0
- package/dist-types/components/c-dropdown/CDropdown.vue.d.ts +62 -0
- package/dist-types/components/c-icon/CIcon.vue.d.ts +22 -0
- package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +89 -0
- package/dist-types/components/c-input/CInput.vue.d.ts +101 -0
- package/dist-types/components/c-link/CLink.vue.d.ts +46 -0
- package/dist-types/components/c-list/CList.vue.d.ts +30 -0
- package/dist-types/components/c-list-item/CListItem.vue.d.ts +71 -0
- package/dist-types/components/c-list-item-title/CListItemTitle.vue.d.ts +23 -0
- package/dist-types/components/c-loader/CLoader.vue.d.ts +55 -0
- package/dist-types/components/c-login-button/CLoginButton.vue.d.ts +40 -0
- package/dist-types/components/c-login-buttons/CLoginButtons.vue.d.ts +13 -0
- package/dist-types/components/c-login-card/CLoginCard.vue.d.ts +55 -0
- package/dist-types/components/c-login-card-actions/CLoginCardActions.vue.d.ts +36 -0
- package/dist-types/components/c-login-card-content/CLoginCardContent.vue.d.ts +13 -0
- package/dist-types/components/c-login-card-title/CLoginCardTitle.vue.d.ts +13 -0
- package/dist-types/components/c-main/CMain.vue.d.ts +23 -0
- package/dist-types/components/c-menu/CMenu.vue.d.ts +28 -0
- package/dist-types/components/c-menu-item/CMenuItem.vue.d.ts +34 -0
- package/dist-types/components/c-menu-label/CMenuLabel.vue.d.ts +13 -0
- package/dist-types/components/c-message/CMessage.vue.d.ts +36 -0
- package/dist-types/components/c-modal/CModal.vue.d.ts +38 -0
- package/dist-types/components/c-navigation-button/CNavigationButton.vue.d.ts +3 -0
- package/dist-types/components/c-option/COption.vue.d.ts +32 -0
- package/dist-types/components/c-option-value/COptionValue.vue.d.ts +13 -0
- package/dist-types/components/c-otp-input/COtpInput.vue.d.ts +87 -0
- package/dist-types/components/c-page/CPage.vue.d.ts +25 -0
- package/dist-types/components/c-pagination/CPagination.vue.d.ts +57 -0
- package/dist-types/components/c-progress-bar/CProgressBar.vue.d.ts +42 -0
- package/dist-types/components/c-radio/CRadio.vue.d.ts +38 -0
- package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +108 -0
- package/dist-types/components/c-select/CSelect.vue.d.ts +104 -0
- package/dist-types/components/c-side-navigation/CSideNavigation.vue.d.ts +39 -0
- package/dist-types/components/c-side-navigation-item/CSideNavigationItem.vue.d.ts +51 -0
- package/dist-types/components/c-side-navigation-title/CSideNavigationTitle.vue.d.ts +13 -0
- package/dist-types/components/c-slider/CSlider.vue.d.ts +109 -0
- package/dist-types/components/c-spinner/CSpinner.vue.d.ts +28 -0
- package/dist-types/components/c-status/CStatus.vue.d.ts +23 -0
- package/dist-types/components/c-step/CStep.vue.d.ts +30 -0
- package/dist-types/components/c-steps/CSteps.vue.d.ts +23 -0
- package/dist-types/components/c-sub-navigation-item/CSubNavigationItem.vue.d.ts +53 -0
- package/dist-types/components/c-switch/CSwitch.vue.d.ts +80 -0
- package/dist-types/components/c-tab/CTab.vue.d.ts +60 -0
- package/dist-types/components/c-tab-buttons/CTabButtons.vue.d.ts +36 -0
- package/dist-types/components/c-tab-item/CTabItem.vue.d.ts +30 -0
- package/dist-types/components/c-tab-items/CTabItems.vue.d.ts +30 -0
- package/dist-types/components/c-table/CTable.vue.d.ts +20 -0
- package/dist-types/components/c-tabs/CTabs.vue.d.ts +63 -0
- package/dist-types/components/c-tag/CTag.vue.d.ts +53 -0
- package/dist-types/components/c-tags/CTags.vue.d.ts +37 -0
- package/dist-types/components/c-text-field/CTextField.vue.d.ts +194 -0
- package/dist-types/components/c-toast/CToast.vue.d.ts +23 -0
- package/dist-types/components/c-toasts/CToasts.vue.d.ts +46 -0
- package/dist-types/components/c-toolbar/CToolbar.vue.d.ts +13 -0
- package/dist-types/index.d.ts +38 -0
- package/dist-types/shared/FormLabel.vue.d.ts +34 -0
- package/dist-types/shared/anchorPolyfill.d.ts +24 -0
- package/dist-types/shared/coerceBoolean.d.ts +19 -0
- package/dist-types/shared/defineElement.d.ts +20 -0
- package/dist-types/shared/emitModelValue.d.ts +37 -0
- package/dist-types/shared/modalStack.d.ts +63 -0
- package/dist-types/shared/useHasSlot.d.ts +24 -0
- package/dist-types/shared/useHostEmit.d.ts +1 -0
- package/dist-types/shared/useRipple.d.ts +51 -0
- package/dist-types/tag-name-map.d.ts +1521 -0
- package/dist-types/theme/applyTheme.d.ts +25 -0
- package/dist-types/types.d.ts +51 -0
- package/package.json +63 -88
- package/LICENSE +0 -21
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/c-accordion-item.cjs.entry.js +0 -123
- package/dist/cjs/c-accordion-item.cjs.entry.js.map +0 -1
- package/dist/cjs/c-accordion-item.entry.cjs.js.map +0 -1
- package/dist/cjs/c-accordion.cjs.entry.js +0 -66
- package/dist/cjs/c-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/c-accordion.entry.cjs.js.map +0 -1
- package/dist/cjs/c-alert.cjs.entry.js +0 -28
- package/dist/cjs/c-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/c-alert.entry.cjs.js.map +0 -1
- package/dist/cjs/c-autocomplete_35.cjs.entry.js +0 -2672
- package/dist/cjs/c-autocomplete_35.cjs.entry.js.map +0 -1
- package/dist/cjs/c-data-table.cjs.entry.js +0 -708
- package/dist/cjs/c-data-table.cjs.entry.js.map +0 -1
- package/dist/cjs/c-data-table.entry.cjs.js.map +0 -1
- package/dist/cjs/c-link.cjs.entry.js +0 -30
- package/dist/cjs/c-link.cjs.entry.js.map +0 -1
- package/dist/cjs/c-link.entry.cjs.js.map +0 -1
- package/dist/cjs/c-list-item-title.cjs.entry.js +0 -25
- package/dist/cjs/c-list-item-title.cjs.entry.js.map +0 -1
- package/dist/cjs/c-list-item-title.entry.cjs.js.map +0 -1
- package/dist/cjs/c-list-item.cjs.entry.js +0 -81
- package/dist/cjs/c-list-item.cjs.entry.js.map +0 -1
- package/dist/cjs/c-list-item.entry.cjs.js.map +0 -1
- package/dist/cjs/c-list.cjs.entry.js +0 -46
- package/dist/cjs/c-list.cjs.entry.js.map +0 -1
- package/dist/cjs/c-list.entry.cjs.js.map +0 -1
- package/dist/cjs/c-login-button.cjs.entry.js +0 -23
- package/dist/cjs/c-login-button.cjs.entry.js.map +0 -1
- package/dist/cjs/c-login-button.entry.cjs.js.map +0 -1
- package/dist/cjs/c-login-buttons.cjs.entry.js +0 -20
- package/dist/cjs/c-login-buttons.cjs.entry.js.map +0 -1
- package/dist/cjs/c-login-buttons.entry.cjs.js.map +0 -1
- package/dist/cjs/c-login-card-actions.cjs.entry.js +0 -19
- package/dist/cjs/c-login-card-actions.cjs.entry.js.map +0 -1
- package/dist/cjs/c-login-card-actions.entry.cjs.js.map +0 -1
- package/dist/cjs/c-login-card-content.cjs.entry.js +0 -20
- package/dist/cjs/c-login-card-content.cjs.entry.js.map +0 -1
- package/dist/cjs/c-login-card-content.entry.cjs.js.map +0 -1
- package/dist/cjs/c-login-card-title.cjs.entry.js +0 -20
- package/dist/cjs/c-login-card-title.cjs.entry.js.map +0 -1
- package/dist/cjs/c-login-card-title.entry.cjs.js.map +0 -1
- package/dist/cjs/c-login-card.cjs.entry.js +0 -65
- package/dist/cjs/c-login-card.cjs.entry.js.map +0 -1
- package/dist/cjs/c-login-card.entry.cjs.js.map +0 -1
- package/dist/cjs/c-menu.c-menu-items.entry.cjs.js.map +0 -1
- package/dist/cjs/c-menu_2.cjs.entry.js +0 -352
- package/dist/cjs/c-menu_2.cjs.entry.js.map +0 -1
- package/dist/cjs/c-modal.cjs.entry.js +0 -178
- package/dist/cjs/c-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/c-modal.entry.cjs.js.map +0 -1
- package/dist/cjs/c-option-value.cjs.entry.js +0 -20
- package/dist/cjs/c-option-value.cjs.entry.js.map +0 -1
- package/dist/cjs/c-option-value.entry.cjs.js.map +0 -1
- package/dist/cjs/c-pagination.cjs.entry.js +0 -223
- package/dist/cjs/c-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/c-pagination.entry.cjs.js.map +0 -1
- package/dist/cjs/c-progress-bar.cjs.entry.js +0 -58
- package/dist/cjs/c-progress-bar.cjs.entry.js.map +0 -1
- package/dist/cjs/c-progress-bar.entry.cjs.js.map +0 -1
- package/dist/cjs/c-row.cjs.entry.js +0 -32
- package/dist/cjs/c-row.cjs.entry.js.map +0 -1
- package/dist/cjs/c-row.entry.cjs.js.map +0 -1
- package/dist/cjs/c-slider.cjs.entry.js +0 -94
- package/dist/cjs/c-slider.cjs.entry.js.map +0 -1
- package/dist/cjs/c-slider.entry.cjs.js.map +0 -1
- package/dist/cjs/c-status.cjs.entry.js +0 -21
- package/dist/cjs/c-status.cjs.entry.js.map +0 -1
- package/dist/cjs/c-status.entry.cjs.js.map +0 -1
- package/dist/cjs/c-step.cjs.entry.js +0 -26
- package/dist/cjs/c-step.cjs.entry.js.map +0 -1
- package/dist/cjs/c-step.entry.cjs.js.map +0 -1
- package/dist/cjs/c-steps.cjs.entry.js +0 -76
- package/dist/cjs/c-steps.cjs.entry.js.map +0 -1
- package/dist/cjs/c-steps.entry.cjs.js.map +0 -1
- package/dist/cjs/c-swiper-tab.cjs.entry.js +0 -41
- package/dist/cjs/c-swiper-tab.cjs.entry.js.map +0 -1
- package/dist/cjs/c-swiper-tab.entry.cjs.js.map +0 -1
- package/dist/cjs/c-swiper.cjs.entry.js +0 -4181
- package/dist/cjs/c-swiper.cjs.entry.js.map +0 -1
- package/dist/cjs/c-swiper.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tab-buttons.cjs.entry.js +0 -132
- package/dist/cjs/c-tab-buttons.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tab-buttons.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tab-item.cjs.entry.js +0 -39
- package/dist/cjs/c-tab-item.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tab-item.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tab-items.cjs.entry.js +0 -76
- package/dist/cjs/c-tab-items.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tab-items.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tab.cjs.entry.js +0 -54
- package/dist/cjs/c-tab.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tab.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tabs.cjs.entry.js +0 -423
- package/dist/cjs/c-tabs.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tabs.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tag.cjs.entry.js +0 -46
- package/dist/cjs/c-tag.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tag.entry.cjs.js.map +0 -1
- package/dist/cjs/c-tags.cjs.entry.js +0 -30
- package/dist/cjs/c-tags.cjs.entry.js.map +0 -1
- package/dist/cjs/c-tags.entry.cjs.js.map +0 -1
- package/dist/cjs/c-toast.cjs.entry.js +0 -71
- package/dist/cjs/c-toast.cjs.entry.js.map +0 -1
- package/dist/cjs/c-toast.entry.cjs.js.map +0 -1
- package/dist/cjs/c-toasts.cjs.entry.js +0 -79
- package/dist/cjs/c-toasts.cjs.entry.js.map +0 -1
- package/dist/cjs/c-toasts.entry.cjs.js.map +0 -1
- package/dist/cjs/csc-ui.cjs.js +0 -28
- package/dist/cjs/csc-ui.cjs.js.map +0 -1
- package/dist/cjs/index-BTBT6v3v.js +0 -2052
- package/dist/cjs/index-BTBT6v3v.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -24
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -16
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/mdi-D4fs5l1W.js +0 -49
- package/dist/cjs/mdi-D4fs5l1W.js.map +0 -1
- package/dist/collection/collection-manifest.json +0 -82
- package/dist/collection/components/c-accordion/c-accordion.css +0 -31
- package/dist/collection/components/c-accordion/c-accordion.js +0 -179
- package/dist/collection/components/c-accordion/c-accordion.js.map +0 -1
- package/dist/collection/components/c-accordion/test/c-accordion.visual.js +0 -52
- package/dist/collection/components/c-accordion/test/c-accordion.visual.js.map +0 -1
- package/dist/collection/components/c-accordion-item/c-accordion-item.css +0 -139
- package/dist/collection/components/c-accordion-item/c-accordion-item.js +0 -273
- package/dist/collection/components/c-accordion-item/c-accordion-item.js.map +0 -1
- package/dist/collection/components/c-alert/c-alert.css +0 -67
- package/dist/collection/components/c-alert/c-alert.js +0 -58
- package/dist/collection/components/c-alert/c-alert.js.map +0 -1
- package/dist/collection/components/c-alert/test/c-alert.visual.js +0 -24
- package/dist/collection/components/c-alert/test/c-alert.visual.js.map +0 -1
- package/dist/collection/components/c-autocomplete/c-autocomplete.css +0 -233
- package/dist/collection/components/c-autocomplete/c-autocomplete.js +0 -806
- package/dist/collection/components/c-autocomplete/c-autocomplete.js.map +0 -1
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js +0 -31
- package/dist/collection/components/c-autocomplete/test/c-autocomplete.visual.js.map +0 -1
- package/dist/collection/components/c-backdrop/c-backdrop.css +0 -60
- package/dist/collection/components/c-backdrop/c-backdrop.js +0 -64
- package/dist/collection/components/c-backdrop/c-backdrop.js.map +0 -1
- package/dist/collection/components/c-badge/c-badge.css +0 -51
- package/dist/collection/components/c-badge/c-badge.js +0 -19
- package/dist/collection/components/c-badge/c-badge.js.map +0 -1
- package/dist/collection/components/c-button/c-button.css +0 -749
- package/dist/collection/components/c-button/c-button.js +0 -545
- package/dist/collection/components/c-button/c-button.js.map +0 -1
- package/dist/collection/components/c-button/test/c-button.visual.js +0 -98
- package/dist/collection/components/c-button/test/c-button.visual.js.map +0 -1
- package/dist/collection/components/c-card/assets/puhti.gif +0 -0
- package/dist/collection/components/c-card/c-card.css +0 -67
- package/dist/collection/components/c-card/c-card.js +0 -141
- package/dist/collection/components/c-card/c-card.js.map +0 -1
- package/dist/collection/components/c-card/test/c-card.visual.js +0 -18
- package/dist/collection/components/c-card/test/c-card.visual.js.map +0 -1
- package/dist/collection/components/c-card-actions/c-card-actions.css +0 -72
- package/dist/collection/components/c-card-actions/c-card-actions.js +0 -72
- package/dist/collection/components/c-card-actions/c-card-actions.js.map +0 -1
- package/dist/collection/components/c-card-content/c-card-content.css +0 -36
- package/dist/collection/components/c-card-content/c-card-content.js +0 -19
- package/dist/collection/components/c-card-content/c-card-content.js.map +0 -1
- package/dist/collection/components/c-card-title/c-card-title.css +0 -70
- package/dist/collection/components/c-card-title/c-card-title.js +0 -49
- package/dist/collection/components/c-card-title/c-card-title.js.map +0 -1
- package/dist/collection/components/c-checkbox/c-checkbox.css +0 -149
- package/dist/collection/components/c-checkbox/c-checkbox.js +0 -379
- package/dist/collection/components/c-checkbox/c-checkbox.js.map +0 -1
- package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js +0 -22
- package/dist/collection/components/c-checkbox/test/c-checkbox.visual.js.map +0 -1
- package/dist/collection/components/c-csc-logo/c-csc-logo.css +0 -43
- package/dist/collection/components/c-csc-logo/c-csc-logo.js +0 -47
- package/dist/collection/components/c-csc-logo/c-csc-logo.js.map +0 -1
- package/dist/collection/components/c-data-table/c-data-table.css +0 -470
- package/dist/collection/components/c-data-table/c-data-table.js +0 -1205
- package/dist/collection/components/c-data-table/c-data-table.js.map +0 -1
- package/dist/collection/components/c-data-table/test/c-data-table.visual.js +0 -31
- package/dist/collection/components/c-data-table/test/c-data-table.visual.js.map +0 -1
- package/dist/collection/components/c-data-table/test/data/index.js +0 -104
- package/dist/collection/components/c-data-table/test/data/index.js.map +0 -1
- package/dist/collection/components/c-dropdown/c-dropdown-options-item.js +0 -3
- package/dist/collection/components/c-dropdown/c-dropdown-options-item.js.map +0 -1
- package/dist/collection/components/c-dropdown/c-dropdown.css +0 -164
- package/dist/collection/components/c-dropdown/c-dropdown.js +0 -651
- package/dist/collection/components/c-dropdown/c-dropdown.js.map +0 -1
- package/dist/collection/components/c-icon/c-icon.css +0 -44
- package/dist/collection/components/c-icon/c-icon.js +0 -93
- package/dist/collection/components/c-icon/c-icon.js.map +0 -1
- package/dist/collection/components/c-icon-button/c-icon-button.css +0 -689
- package/dist/collection/components/c-icon-button/c-icon-button.js +0 -257
- package/dist/collection/components/c-icon-button/c-icon-button.js.map +0 -1
- package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js +0 -22
- package/dist/collection/components/c-icon-button/test/c-icon-button.visual.js.map +0 -1
- package/dist/collection/components/c-input/c-input.css +0 -335
- package/dist/collection/components/c-input/c-input.js +0 -887
- package/dist/collection/components/c-input/c-input.js.map +0 -1
- package/dist/collection/components/c-link/c-link.css +0 -60
- package/dist/collection/components/c-link/c-link.js +0 -115
- package/dist/collection/components/c-link/c-link.js.map +0 -1
- package/dist/collection/components/c-link/test/c-link.visual.js +0 -14
- package/dist/collection/components/c-link/test/c-link.visual.js.map +0 -1
- package/dist/collection/components/c-list/c-list.css +0 -38
- package/dist/collection/components/c-list/c-list.js +0 -93
- package/dist/collection/components/c-list/c-list.js.map +0 -1
- package/dist/collection/components/c-list-item/c-list-item.css +0 -96
- package/dist/collection/components/c-list-item/c-list-item.js +0 -231
- package/dist/collection/components/c-list-item/c-list-item.js.map +0 -1
- package/dist/collection/components/c-list-item-title/c-list-item-title.css +0 -38
- package/dist/collection/components/c-list-item-title/c-list-item-title.js +0 -50
- package/dist/collection/components/c-list-item-title/c-list-item-title.js.map +0 -1
- package/dist/collection/components/c-loader/c-loader.css +0 -106
- package/dist/collection/components/c-loader/c-loader.js +0 -126
- package/dist/collection/components/c-loader/c-loader.js.map +0 -1
- package/dist/collection/components/c-login-button/c-login-button.css +0 -84
- package/dist/collection/components/c-login-button/c-login-button.js +0 -87
- package/dist/collection/components/c-login-button/c-login-button.js.map +0 -1
- package/dist/collection/components/c-login-buttons/c-login-buttons.css +0 -28
- package/dist/collection/components/c-login-buttons/c-login-buttons.js +0 -19
- package/dist/collection/components/c-login-buttons/c-login-buttons.js.map +0 -1
- package/dist/collection/components/c-login-card/c-login-card.css +0 -96
- package/dist/collection/components/c-login-card/c-login-card.js +0 -181
- package/dist/collection/components/c-login-card/c-login-card.js.map +0 -1
- package/dist/collection/components/c-login-card/test/c-login-card.visual.js +0 -18
- package/dist/collection/components/c-login-card/test/c-login-card.visual.js.map +0 -1
- package/dist/collection/components/c-login-card-actions/c-login-card-actions.js +0 -57
- package/dist/collection/components/c-login-card-actions/c-login-card-actions.js.map +0 -1
- package/dist/collection/components/c-login-card-content/c-login-card-content.css +0 -31
- package/dist/collection/components/c-login-card-content/c-login-card-content.js +0 -19
- package/dist/collection/components/c-login-card-content/c-login-card-content.js.map +0 -1
- package/dist/collection/components/c-login-card-title/c-login-card-title.css +0 -37
- package/dist/collection/components/c-login-card-title/c-login-card-title.js +0 -19
- package/dist/collection/components/c-login-card-title/c-login-card-title.js.map +0 -1
- package/dist/collection/components/c-main/c-main.css +0 -61
- package/dist/collection/components/c-main/c-main.js +0 -46
- package/dist/collection/components/c-main/c-main.js.map +0 -1
- package/dist/collection/components/c-menu/c-menu.css +0 -123
- package/dist/collection/components/c-menu/c-menu.js +0 -296
- package/dist/collection/components/c-menu/c-menu.js.map +0 -1
- package/dist/collection/components/c-menu/test/c-menu.visual.js +0 -43
- package/dist/collection/components/c-menu/test/c-menu.visual.js.map +0 -1
- package/dist/collection/components/c-menu-items/c-menu-items.css +0 -102
- package/dist/collection/components/c-menu-items/c-menu-items.js +0 -438
- package/dist/collection/components/c-menu-items/c-menu-items.js.map +0 -1
- package/dist/collection/components/c-message/c-message.css +0 -75
- package/dist/collection/components/c-message/c-message.js +0 -161
- package/dist/collection/components/c-message/c-message.js.map +0 -1
- package/dist/collection/components/c-modal/c-modal.css +0 -83
- package/dist/collection/components/c-modal/c-modal.js +0 -310
- package/dist/collection/components/c-modal/c-modal.js.map +0 -1
- package/dist/collection/components/c-navigation-button/c-navigation-button.css +0 -38
- package/dist/collection/components/c-navigation-button/c-navigation-button.js +0 -20
- package/dist/collection/components/c-navigation-button/c-navigation-button.js.map +0 -1
- package/dist/collection/components/c-option/c-option.css +0 -28
- package/dist/collection/components/c-option/c-option.js +0 -105
- package/dist/collection/components/c-option/c-option.js.map +0 -1
- package/dist/collection/components/c-option-value/c-option-value.css +0 -26
- package/dist/collection/components/c-option-value/c-option-value.js +0 -19
- package/dist/collection/components/c-option-value/c-option-value.js.map +0 -1
- package/dist/collection/components/c-otp-input/c-otp-input.css +0 -92
- package/dist/collection/components/c-otp-input/c-otp-input.js +0 -396
- package/dist/collection/components/c-otp-input/c-otp-input.js.map +0 -1
- package/dist/collection/components/c-page/c-page.css +0 -66
- package/dist/collection/components/c-page/c-page.js +0 -58
- package/dist/collection/components/c-page/c-page.js.map +0 -1
- package/dist/collection/components/c-pagination/c-pagination.css +0 -129
- package/dist/collection/components/c-pagination/c-pagination.js +0 -367
- package/dist/collection/components/c-pagination/c-pagination.js.map +0 -1
- package/dist/collection/components/c-pagination/test/c-pagination.visual.js +0 -42
- package/dist/collection/components/c-pagination/test/c-pagination.visual.js.map +0 -1
- package/dist/collection/components/c-progress-bar/c-progress-bar.css +0 -143
- package/dist/collection/components/c-progress-bar/c-progress-bar.js +0 -163
- package/dist/collection/components/c-progress-bar/c-progress-bar.js.map +0 -1
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js +0 -22
- package/dist/collection/components/c-progress-bar/test/c-progress-bar.visual.js.map +0 -1
- package/dist/collection/components/c-radio/c-radio.css +0 -26
- package/dist/collection/components/c-radio/c-radio.js +0 -86
- package/dist/collection/components/c-radio/c-radio.js.map +0 -1
- package/dist/collection/components/c-radio-group/c-radio-group.css +0 -160
- package/dist/collection/components/c-radio-group/c-radio-group.js +0 -407
- package/dist/collection/components/c-radio-group/c-radio-group.js.map +0 -1
- package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js +0 -24
- package/dist/collection/components/c-radio-group/test/c-radio-group.visual.js.map +0 -1
- package/dist/collection/components/c-radio-group/test/items.js +0 -6
- package/dist/collection/components/c-radio-group/test/items.js.map +0 -1
- package/dist/collection/components/c-ripple/c-ripple.css +0 -53
- package/dist/collection/components/c-ripple/c-ripple.js +0 -94
- package/dist/collection/components/c-ripple/c-ripple.js.map +0 -1
- package/dist/collection/components/c-row/c-row.css +0 -71
- package/dist/collection/components/c-row/c-row.js +0 -127
- package/dist/collection/components/c-row/c-row.js.map +0 -1
- package/dist/collection/components/c-select/c-select.css +0 -212
- package/dist/collection/components/c-select/c-select.js +0 -852
- package/dist/collection/components/c-select/c-select.js.map +0 -1
- package/dist/collection/components/c-select/test/c-select.visual.js +0 -36
- package/dist/collection/components/c-select/test/c-select.visual.js.map +0 -1
- package/dist/collection/components/c-select/test/items.js +0 -10
- package/dist/collection/components/c-select/test/items.js.map +0 -1
- package/dist/collection/components/c-side-navigation/c-side-navigation.css +0 -162
- package/dist/collection/components/c-side-navigation/c-side-navigation.js +0 -153
- package/dist/collection/components/c-side-navigation/c-side-navigation.js.map +0 -1
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js +0 -16
- package/dist/collection/components/c-side-navigation/test/c-side-navigation.visual.js.map +0 -1
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.css +0 -173
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js +0 -235
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js.map +0 -1
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.css +0 -40
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js +0 -19
- package/dist/collection/components/c-side-navigation-title/c-side-navigation-title.js.map +0 -1
- package/dist/collection/components/c-slider/c-slider.css +0 -258
- package/dist/collection/components/c-slider/c-slider.js +0 -412
- package/dist/collection/components/c-slider/c-slider.js.map +0 -1
- package/dist/collection/components/c-spacer/c-spacer.css +0 -26
- package/dist/collection/components/c-spacer/c-spacer.js +0 -19
- package/dist/collection/components/c-spacer/c-spacer.js.map +0 -1
- package/dist/collection/components/c-spinner/c-spinner.css +0 -64
- package/dist/collection/components/c-spinner/c-spinner.js +0 -98
- package/dist/collection/components/c-spinner/c-spinner.js.map +0 -1
- package/dist/collection/components/c-status/c-status.css +0 -79
- package/dist/collection/components/c-status/c-status.js +0 -43
- package/dist/collection/components/c-status/c-status.js.map +0 -1
- package/dist/collection/components/c-status/test/c-status.visual.js +0 -10
- package/dist/collection/components/c-status/test/c-status.visual.js.map +0 -1
- package/dist/collection/components/c-step/c-step.css +0 -109
- package/dist/collection/components/c-step/c-step.js +0 -77
- package/dist/collection/components/c-step/c-step.js.map +0 -1
- package/dist/collection/components/c-steps/c-steps.css +0 -86
- package/dist/collection/components/c-steps/c-steps.js +0 -126
- package/dist/collection/components/c-steps/c-steps.js.map +0 -1
- package/dist/collection/components/c-steps/test/c-steps.visual.js +0 -19
- package/dist/collection/components/c-steps/test/c-steps.visual.js.map +0 -1
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.css +0 -189
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js +0 -151
- package/dist/collection/components/c-sub-navigation-item/c-sub-navigation-item.js.map +0 -1
- package/dist/collection/components/c-swiper/c-swiper.css +0 -322
- package/dist/collection/components/c-swiper/c-swiper.js +0 -219
- package/dist/collection/components/c-swiper/c-swiper.js.map +0 -1
- package/dist/collection/components/c-swiper/test/c-swiper.visual.js +0 -20
- package/dist/collection/components/c-swiper/test/c-swiper.visual.js.map +0 -1
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.css +0 -120
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js +0 -219
- package/dist/collection/components/c-swiper-tab/c-swiper-tab.js.map +0 -1
- package/dist/collection/components/c-switch/c-switch.css +0 -169
- package/dist/collection/components/c-switch/c-switch.js +0 -256
- package/dist/collection/components/c-switch/c-switch.js.map +0 -1
- package/dist/collection/components/c-switch/test/c-switch.visual.js +0 -28
- package/dist/collection/components/c-switch/test/c-switch.visual.js.map +0 -1
- package/dist/collection/components/c-tab/c-tab.css +0 -112
- package/dist/collection/components/c-tab/c-tab.js +0 -241
- package/dist/collection/components/c-tab/c-tab.js.map +0 -1
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.css +0 -113
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js +0 -284
- package/dist/collection/components/c-tab-buttons/c-tab-buttons.js.map +0 -1
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js +0 -47
- package/dist/collection/components/c-tab-buttons/test/c-tab-buttons.visual.js.map +0 -1
- package/dist/collection/components/c-tab-item/c-tab-item.css +0 -50
- package/dist/collection/components/c-tab-item/c-tab-item.js +0 -103
- package/dist/collection/components/c-tab-item/c-tab-item.js.map +0 -1
- package/dist/collection/components/c-tab-items/c-tab-items.css +0 -36
- package/dist/collection/components/c-tab-items/c-tab-items.js +0 -140
- package/dist/collection/components/c-tab-items/c-tab-items.js.map +0 -1
- package/dist/collection/components/c-table/c-table.css +0 -153
- package/dist/collection/components/c-table/c-table.js +0 -141
- package/dist/collection/components/c-table/c-table.js.map +0 -1
- package/dist/collection/components/c-tabs/c-tabs.css +0 -173
- package/dist/collection/components/c-tabs/c-tabs.js +0 -611
- package/dist/collection/components/c-tabs/c-tabs.js.map +0 -1
- package/dist/collection/components/c-tabs/test/c-tabs.visual.js +0 -16
- package/dist/collection/components/c-tabs/test/c-tabs.visual.js.map +0 -1
- package/dist/collection/components/c-tag/c-tag.css +0 -182
- package/dist/collection/components/c-tag/c-tag.js +0 -208
- package/dist/collection/components/c-tag/c-tag.js.map +0 -1
- package/dist/collection/components/c-tag/test/c-tag.visual.js +0 -26
- package/dist/collection/components/c-tag/test/c-tag.visual.js.map +0 -1
- package/dist/collection/components/c-tags/c-tags.css +0 -29
- package/dist/collection/components/c-tags/c-tags.js +0 -55
- package/dist/collection/components/c-tags/c-tags.js.map +0 -1
- package/dist/collection/components/c-text-field/c-text-field.css +0 -81
- package/dist/collection/components/c-text-field/c-text-field.js +0 -692
- package/dist/collection/components/c-text-field/c-text-field.js.map +0 -1
- package/dist/collection/components/c-text-field/test/c-text-field.visual.js +0 -41
- package/dist/collection/components/c-text-field/test/c-text-field.visual.js.map +0 -1
- package/dist/collection/components/c-toast/c-toast.css +0 -161
- package/dist/collection/components/c-toast/c-toast.js +0 -146
- package/dist/collection/components/c-toast/c-toast.js.map +0 -1
- package/dist/collection/components/c-toasts/c-toasts.css +0 -69
- package/dist/collection/components/c-toasts/c-toasts.js +0 -204
- package/dist/collection/components/c-toasts/c-toasts.js.map +0 -1
- package/dist/collection/components/c-toasts/test/c-toasts.visual.js +0 -27
- package/dist/collection/components/c-toasts/test/c-toasts.visual.js.map +0 -1
- package/dist/collection/components/c-toolbar/c-toolbar.css +0 -54
- package/dist/collection/components/c-toolbar/c-toolbar.js +0 -19
- package/dist/collection/components/c-toolbar/c-toolbar.js.map +0 -1
- package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js +0 -10
- package/dist/collection/components/c-toolbar/test/c-toolbar.visual.js.map +0 -1
- package/dist/collection/index.js +0 -2
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/styles/tailwind/theme.js +0 -120
- package/dist/collection/types/index.js +0 -20
- package/dist/collection/types/index.js.map +0 -1
- package/dist/collection/utils/getScrollParent.js +0 -23
- package/dist/collection/utils/getScrollParent.js.map +0 -1
- package/dist/collection/utils/index.js +0 -2
- package/dist/collection/utils/index.js.map +0 -1
- package/dist/collection/utils/test/sleep.js +0 -2
- package/dist/collection/utils/test/sleep.js.map +0 -1
- package/dist/collection/utils/test/takeScreenshot.js +0 -11
- package/dist/collection/utils/test/takeScreenshot.js.map +0 -1
- package/dist/components/c-accordion-item.d.ts +0 -11
- package/dist/components/c-accordion-item.js +0 -153
- package/dist/components/c-accordion-item.js.map +0 -1
- package/dist/components/c-accordion.d.ts +0 -11
- package/dist/components/c-accordion.js +0 -89
- package/dist/components/c-accordion.js.map +0 -1
- package/dist/components/c-alert.d.ts +0 -11
- package/dist/components/c-alert.js +0 -46
- package/dist/components/c-alert.js.map +0 -1
- package/dist/components/c-autocomplete.d.ts +0 -11
- package/dist/components/c-autocomplete.js +0 -367
- package/dist/components/c-autocomplete.js.map +0 -1
- package/dist/components/c-backdrop.d.ts +0 -11
- package/dist/components/c-backdrop.js +0 -9
- package/dist/components/c-backdrop.js.map +0 -1
- package/dist/components/c-badge.d.ts +0 -11
- package/dist/components/c-badge.js +0 -9
- package/dist/components/c-badge.js.map +0 -1
- package/dist/components/c-button.d.ts +0 -11
- package/dist/components/c-button.js +0 -189
- package/dist/components/c-button.js.map +0 -1
- package/dist/components/c-card-actions.d.ts +0 -11
- package/dist/components/c-card-actions.js +0 -9
- package/dist/components/c-card-actions.js.map +0 -1
- package/dist/components/c-card-content.d.ts +0 -11
- package/dist/components/c-card-content.js +0 -36
- package/dist/components/c-card-content.js.map +0 -1
- package/dist/components/c-card-title.d.ts +0 -11
- package/dist/components/c-card-title.js +0 -64
- package/dist/components/c-card-title.js.map +0 -1
- package/dist/components/c-card.d.ts +0 -11
- package/dist/components/c-card.js +0 -120
- package/dist/components/c-card.js.map +0 -1
- package/dist/components/c-checkbox.d.ts +0 -11
- package/dist/components/c-checkbox.js +0 -9
- package/dist/components/c-checkbox.js.map +0 -1
- package/dist/components/c-csc-logo.d.ts +0 -11
- package/dist/components/c-csc-logo.js +0 -40
- package/dist/components/c-csc-logo.js.map +0 -1
- package/dist/components/c-data-table.d.ts +0 -11
- package/dist/components/c-data-table.js +0 -830
- package/dist/components/c-data-table.js.map +0 -1
- package/dist/components/c-dropdown.d.ts +0 -11
- package/dist/components/c-dropdown.js +0 -9
- package/dist/components/c-dropdown.js.map +0 -1
- package/dist/components/c-icon-button.d.ts +0 -11
- package/dist/components/c-icon-button.js +0 -9
- package/dist/components/c-icon-button.js.map +0 -1
- package/dist/components/c-icon.d.ts +0 -11
- package/dist/components/c-icon.js +0 -9
- package/dist/components/c-icon.js.map +0 -1
- package/dist/components/c-input.d.ts +0 -11
- package/dist/components/c-input.js +0 -9
- package/dist/components/c-input.js.map +0 -1
- package/dist/components/c-link.d.ts +0 -11
- package/dist/components/c-link.js +0 -51
- package/dist/components/c-link.js.map +0 -1
- package/dist/components/c-list-item-title.d.ts +0 -11
- package/dist/components/c-list-item-title.js +0 -43
- package/dist/components/c-list-item-title.js.map +0 -1
- package/dist/components/c-list-item.d.ts +0 -11
- package/dist/components/c-list-item.js +0 -113
- package/dist/components/c-list-item.js.map +0 -1
- package/dist/components/c-list.d.ts +0 -11
- package/dist/components/c-list.js +0 -66
- package/dist/components/c-list.js.map +0 -1
- package/dist/components/c-loader.d.ts +0 -11
- package/dist/components/c-loader.js +0 -9
- package/dist/components/c-loader.js.map +0 -1
- package/dist/components/c-login-button.d.ts +0 -11
- package/dist/components/c-login-button.js +0 -43
- package/dist/components/c-login-button.js.map +0 -1
- package/dist/components/c-login-buttons.d.ts +0 -11
- package/dist/components/c-login-buttons.js +0 -36
- package/dist/components/c-login-buttons.js.map +0 -1
- package/dist/components/c-login-card-actions.d.ts +0 -11
- package/dist/components/c-login-card-actions.js +0 -44
- package/dist/components/c-login-card-actions.js.map +0 -1
- package/dist/components/c-login-card-content.d.ts +0 -11
- package/dist/components/c-login-card-content.js +0 -36
- package/dist/components/c-login-card-content.js.map +0 -1
- package/dist/components/c-login-card-title.d.ts +0 -11
- package/dist/components/c-login-card-title.js +0 -36
- package/dist/components/c-login-card-title.js.map +0 -1
- package/dist/components/c-login-card.d.ts +0 -11
- package/dist/components/c-login-card.js +0 -88
- package/dist/components/c-login-card.js.map +0 -1
- package/dist/components/c-main.d.ts +0 -11
- package/dist/components/c-main.js +0 -45
- package/dist/components/c-main.js.map +0 -1
- package/dist/components/c-menu-items.d.ts +0 -11
- package/dist/components/c-menu-items.js +0 -9
- package/dist/components/c-menu-items.js.map +0 -1
- package/dist/components/c-menu.d.ts +0 -11
- package/dist/components/c-menu.js +0 -9
- package/dist/components/c-menu.js.map +0 -1
- package/dist/components/c-message.d.ts +0 -11
- package/dist/components/c-message.js +0 -9
- package/dist/components/c-message.js.map +0 -1
- package/dist/components/c-modal.d.ts +0 -11
- package/dist/components/c-modal.js +0 -205
- package/dist/components/c-modal.js.map +0 -1
- package/dist/components/c-navigation-button.d.ts +0 -11
- package/dist/components/c-navigation-button.js +0 -67
- package/dist/components/c-navigation-button.js.map +0 -1
- package/dist/components/c-option-value.d.ts +0 -11
- package/dist/components/c-option-value.js +0 -36
- package/dist/components/c-option-value.js.map +0 -1
- package/dist/components/c-option.d.ts +0 -11
- package/dist/components/c-option.js +0 -43
- package/dist/components/c-option.js.map +0 -1
- package/dist/components/c-otp-input.d.ts +0 -11
- package/dist/components/c-otp-input.js +0 -201
- package/dist/components/c-otp-input.js.map +0 -1
- package/dist/components/c-page.d.ts +0 -11
- package/dist/components/c-page.js +0 -51
- package/dist/components/c-page.js.map +0 -1
- package/dist/components/c-pagination.d.ts +0 -11
- package/dist/components/c-pagination.js +0 -9
- package/dist/components/c-pagination.js.map +0 -1
- package/dist/components/c-progress-bar.d.ts +0 -11
- package/dist/components/c-progress-bar.js +0 -80
- package/dist/components/c-progress-bar.js.map +0 -1
- package/dist/components/c-radio-group.d.ts +0 -11
- package/dist/components/c-radio-group.js +0 -157
- package/dist/components/c-radio-group.js.map +0 -1
- package/dist/components/c-radio.d.ts +0 -11
- package/dist/components/c-radio.js +0 -42
- package/dist/components/c-radio.js.map +0 -1
- package/dist/components/c-ripple.d.ts +0 -11
- package/dist/components/c-ripple.js +0 -9
- package/dist/components/c-ripple.js.map +0 -1
- package/dist/components/c-row.d.ts +0 -11
- package/dist/components/c-row.js +0 -53
- package/dist/components/c-row.js.map +0 -1
- package/dist/components/c-select.d.ts +0 -11
- package/dist/components/c-select.js +0 -441
- package/dist/components/c-select.js.map +0 -1
- package/dist/components/c-side-navigation-item.d.ts +0 -11
- package/dist/components/c-side-navigation-item.js +0 -161
- package/dist/components/c-side-navigation-item.js.map +0 -1
- package/dist/components/c-side-navigation-title.d.ts +0 -11
- package/dist/components/c-side-navigation-title.js +0 -36
- package/dist/components/c-side-navigation-title.js.map +0 -1
- package/dist/components/c-side-navigation.d.ts +0 -11
- package/dist/components/c-side-navigation.js +0 -133
- package/dist/components/c-side-navigation.js.map +0 -1
- package/dist/components/c-slider.d.ts +0 -11
- package/dist/components/c-slider.js +0 -130
- package/dist/components/c-slider.js.map +0 -1
- package/dist/components/c-spacer.d.ts +0 -11
- package/dist/components/c-spacer.js +0 -9
- package/dist/components/c-spacer.js.map +0 -1
- package/dist/components/c-spinner.d.ts +0 -11
- package/dist/components/c-spinner.js +0 -9
- package/dist/components/c-spinner.js.map +0 -1
- package/dist/components/c-status.d.ts +0 -11
- package/dist/components/c-status.js +0 -39
- package/dist/components/c-status.js.map +0 -1
- package/dist/components/c-step.d.ts +0 -11
- package/dist/components/c-step.js +0 -45
- package/dist/components/c-step.js.map +0 -1
- package/dist/components/c-steps.d.ts +0 -11
- package/dist/components/c-steps.js +0 -98
- package/dist/components/c-steps.js.map +0 -1
- package/dist/components/c-sub-navigation-item.d.ts +0 -11
- package/dist/components/c-sub-navigation-item.js +0 -82
- package/dist/components/c-sub-navigation-item.js.map +0 -1
- package/dist/components/c-swiper-tab.d.ts +0 -11
- package/dist/components/c-swiper-tab.js +0 -71
- package/dist/components/c-swiper-tab.js.map +0 -1
- package/dist/components/c-swiper.d.ts +0 -11
- package/dist/components/c-swiper.js +0 -4226
- package/dist/components/c-swiper.js.map +0 -1
- package/dist/components/c-switch.d.ts +0 -11
- package/dist/components/c-switch.js +0 -98
- package/dist/components/c-switch.js.map +0 -1
- package/dist/components/c-tab-buttons.d.ts +0 -11
- package/dist/components/c-tab-buttons.js +0 -156
- package/dist/components/c-tab-buttons.js.map +0 -1
- package/dist/components/c-tab-item.d.ts +0 -11
- package/dist/components/c-tab-item.js +0 -58
- package/dist/components/c-tab-item.js.map +0 -1
- package/dist/components/c-tab-items.d.ts +0 -11
- package/dist/components/c-tab-items.js +0 -98
- package/dist/components/c-tab-items.js.map +0 -1
- package/dist/components/c-tab.d.ts +0 -11
- package/dist/components/c-tab.js +0 -83
- package/dist/components/c-tab.js.map +0 -1
- package/dist/components/c-table.d.ts +0 -11
- package/dist/components/c-table.js +0 -95
- package/dist/components/c-table.js.map +0 -1
- package/dist/components/c-tabs.d.ts +0 -11
- package/dist/components/c-tabs.js +0 -483
- package/dist/components/c-tabs.js.map +0 -1
- package/dist/components/c-tag.d.ts +0 -11
- package/dist/components/c-tag.js +0 -100
- package/dist/components/c-tag.js.map +0 -1
- package/dist/components/c-tags.d.ts +0 -11
- package/dist/components/c-tags.js +0 -48
- package/dist/components/c-tags.js.map +0 -1
- package/dist/components/c-text-field.d.ts +0 -11
- package/dist/components/c-text-field.js +0 -197
- package/dist/components/c-text-field.js.map +0 -1
- package/dist/components/c-toast.d.ts +0 -11
- package/dist/components/c-toast.js +0 -9
- package/dist/components/c-toast.js.map +0 -1
- package/dist/components/c-toasts.d.ts +0 -11
- package/dist/components/c-toasts.js +0 -133
- package/dist/components/c-toasts.js.map +0 -1
- package/dist/components/c-toolbar.d.ts +0 -11
- package/dist/components/c-toolbar.js +0 -36
- package/dist/components/c-toolbar.js.map +0 -1
- package/dist/components/index.d.ts +0 -178
- package/dist/components/index.js +0 -75
- package/dist/components/index.js.map +0 -1
- package/dist/components/p-BCgTj9pp.js +0 -95
- package/dist/components/p-BCgTj9pp.js.map +0 -1
- package/dist/components/p-BDgw4nNJ.js +0 -93
- package/dist/components/p-BDgw4nNJ.js.map +0 -1
- package/dist/components/p-BGFYISEF.js +0 -112
- package/dist/components/p-BGFYISEF.js.map +0 -1
- package/dist/components/p-BJVLvFq9.js +0 -88
- package/dist/components/p-BJVLvFq9.js.map +0 -1
- package/dist/components/p-BOTLtsJq.js +0 -291
- package/dist/components/p-BOTLtsJq.js.map +0 -1
- package/dist/components/p-BUcGIY5c.js +0 -43
- package/dist/components/p-BUcGIY5c.js.map +0 -1
- package/dist/components/p-BWp2ldC5.js +0 -64
- package/dist/components/p-BWp2ldC5.js.map +0 -1
- package/dist/components/p-Bd7jq7MS.js +0 -27
- package/dist/components/p-Bd7jq7MS.js.map +0 -1
- package/dist/components/p-Bz0xxOlq.js +0 -294
- package/dist/components/p-Bz0xxOlq.js.map +0 -1
- package/dist/components/p-CSoWw_-h.js +0 -236
- package/dist/components/p-CSoWw_-h.js.map +0 -1
- package/dist/components/p-Cmy8x1XB.js +0 -46
- package/dist/components/p-Cmy8x1XB.js.map +0 -1
- package/dist/components/p-CoxL9G3v.js +0 -349
- package/dist/components/p-CoxL9G3v.js.map +0 -1
- package/dist/components/p-D6wozX_5.js +0 -50
- package/dist/components/p-D6wozX_5.js.map +0 -1
- package/dist/components/p-DEHCeGjr.js +0 -69
- package/dist/components/p-DEHCeGjr.js.map +0 -1
- package/dist/components/p-DKhrqMh8.js +0 -33
- package/dist/components/p-DKhrqMh8.js.map +0 -1
- package/dist/components/p-DoU8xThq.js +0 -49
- package/dist/components/p-DoU8xThq.js.map +0 -1
- package/dist/components/p-DpnXN7-j.js +0 -33
- package/dist/components/p-DpnXN7-j.js.map +0 -1
- package/dist/components/p-Fv9YCUj3.js +0 -1662
- package/dist/components/p-Fv9YCUj3.js.map +0 -1
- package/dist/components/p-lKEVcO51.js +0 -186
- package/dist/components/p-lKEVcO51.js.map +0 -1
- package/dist/csc-ui/assets/puhti.gif +0 -0
- package/dist/csc-ui/c-accordion-item.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-accordion.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-alert.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-data-table.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-link.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-list-item-title.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-list-item.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-list.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-login-button.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-login-buttons.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-login-card-actions.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-login-card-content.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-login-card-title.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-login-card.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-menu.c-menu-items.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-modal.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-option-value.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-pagination.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-progress-bar.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-row.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-slider.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-status.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-step.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-steps.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-swiper-tab.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-swiper.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tab-buttons.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tab-item.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tab-items.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tab.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tabs.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tag.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-tags.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-toast.entry.esm.js.map +0 -1
- package/dist/csc-ui/c-toasts.entry.esm.js.map +0 -1
- package/dist/csc-ui/csc-ui.esm.js +0 -2
- package/dist/csc-ui/csc-ui.esm.js.map +0 -1
- package/dist/csc-ui/index.esm.js +0 -2
- package/dist/csc-ui/index.esm.js.map +0 -1
- package/dist/csc-ui/loader.esm.js.map +0 -1
- package/dist/csc-ui/p-084e4e2a.entry.js +0 -2
- package/dist/csc-ui/p-084e4e2a.entry.js.map +0 -1
- package/dist/csc-ui/p-0b56450b.entry.js +0 -2
- package/dist/csc-ui/p-0b56450b.entry.js.map +0 -1
- package/dist/csc-ui/p-0bf2ca66.entry.js +0 -2
- package/dist/csc-ui/p-0bf2ca66.entry.js.map +0 -1
- package/dist/csc-ui/p-0e4d4890.entry.js +0 -2
- package/dist/csc-ui/p-0e4d4890.entry.js.map +0 -1
- package/dist/csc-ui/p-1963c292.entry.js +0 -2
- package/dist/csc-ui/p-1963c292.entry.js.map +0 -1
- package/dist/csc-ui/p-1b1d64f3.entry.js +0 -2
- package/dist/csc-ui/p-1b1d64f3.entry.js.map +0 -1
- package/dist/csc-ui/p-2b012d43.entry.js +0 -2
- package/dist/csc-ui/p-2b012d43.entry.js.map +0 -1
- package/dist/csc-ui/p-39f34048.entry.js +0 -2
- package/dist/csc-ui/p-39f34048.entry.js.map +0 -1
- package/dist/csc-ui/p-3ab98b9a.entry.js +0 -2
- package/dist/csc-ui/p-3ab98b9a.entry.js.map +0 -1
- package/dist/csc-ui/p-41b53c95.entry.js +0 -2
- package/dist/csc-ui/p-41b53c95.entry.js.map +0 -1
- package/dist/csc-ui/p-4620a4d8.entry.js +0 -2
- package/dist/csc-ui/p-4620a4d8.entry.js.map +0 -1
- package/dist/csc-ui/p-4b9fc284.entry.js +0 -2
- package/dist/csc-ui/p-4b9fc284.entry.js.map +0 -1
- package/dist/csc-ui/p-516daf81.entry.js +0 -2
- package/dist/csc-ui/p-516daf81.entry.js.map +0 -1
- package/dist/csc-ui/p-5b10d5e5.entry.js +0 -2
- package/dist/csc-ui/p-5b10d5e5.entry.js.map +0 -1
- package/dist/csc-ui/p-732e7114.entry.js +0 -2
- package/dist/csc-ui/p-732e7114.entry.js.map +0 -1
- package/dist/csc-ui/p-73c56177.entry.js +0 -2
- package/dist/csc-ui/p-73c56177.entry.js.map +0 -1
- package/dist/csc-ui/p-74dfa0e1.entry.js +0 -2
- package/dist/csc-ui/p-74dfa0e1.entry.js.map +0 -1
- package/dist/csc-ui/p-774e25ed.entry.js +0 -2
- package/dist/csc-ui/p-774e25ed.entry.js.map +0 -1
- package/dist/csc-ui/p-781cde9c.entry.js +0 -2
- package/dist/csc-ui/p-781cde9c.entry.js.map +0 -1
- package/dist/csc-ui/p-7869709f.entry.js +0 -2
- package/dist/csc-ui/p-7869709f.entry.js.map +0 -1
- package/dist/csc-ui/p-7f778e0a.entry.js +0 -2
- package/dist/csc-ui/p-7f778e0a.entry.js.map +0 -1
- package/dist/csc-ui/p-7f84c51a.entry.js +0 -2
- package/dist/csc-ui/p-7f84c51a.entry.js.map +0 -1
- package/dist/csc-ui/p-82038174.entry.js +0 -2
- package/dist/csc-ui/p-82038174.entry.js.map +0 -1
- package/dist/csc-ui/p-82e5b6a3.entry.js +0 -2
- package/dist/csc-ui/p-82e5b6a3.entry.js.map +0 -1
- package/dist/csc-ui/p-8707c1c5.entry.js +0 -2
- package/dist/csc-ui/p-8707c1c5.entry.js.map +0 -1
- package/dist/csc-ui/p-95967094.entry.js +0 -2
- package/dist/csc-ui/p-95967094.entry.js.map +0 -1
- package/dist/csc-ui/p-9fff794f.entry.js +0 -2
- package/dist/csc-ui/p-9fff794f.entry.js.map +0 -1
- package/dist/csc-ui/p-Cb-CImk5.js +0 -2
- package/dist/csc-ui/p-Cb-CImk5.js.map +0 -1
- package/dist/csc-ui/p-DQuL1Twl.js +0 -2
- package/dist/csc-ui/p-DQuL1Twl.js.map +0 -1
- package/dist/csc-ui/p-a27a5f80.entry.js +0 -2
- package/dist/csc-ui/p-a27a5f80.entry.js.map +0 -1
- package/dist/csc-ui/p-ad4cba6c.entry.js +0 -2
- package/dist/csc-ui/p-ad4cba6c.entry.js.map +0 -1
- package/dist/csc-ui/p-aec6b36e.entry.js +0 -2
- package/dist/csc-ui/p-aec6b36e.entry.js.map +0 -1
- package/dist/csc-ui/p-c74c234c.entry.js +0 -2
- package/dist/csc-ui/p-c74c234c.entry.js.map +0 -1
- package/dist/csc-ui/p-c791bc22.entry.js +0 -2
- package/dist/csc-ui/p-c791bc22.entry.js.map +0 -1
- package/dist/csc-ui/p-ce764150.entry.js +0 -2
- package/dist/csc-ui/p-ce764150.entry.js.map +0 -1
- package/dist/csc-ui/p-cf835443.entry.js +0 -2
- package/dist/csc-ui/p-cf835443.entry.js.map +0 -1
- package/dist/csc-ui/p-f23b3ee3.entry.js +0 -2
- package/dist/csc-ui/p-f23b3ee3.entry.js.map +0 -1
- package/dist/csc-ui/p-fd75e786.entry.js +0 -2
- package/dist/csc-ui/p-fd75e786.entry.js.map +0 -1
- package/dist/csc-ui/p-gSzSMY-c.js +0 -3
- package/dist/csc-ui/p-gSzSMY-c.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/c-accordion-item.entry.js +0 -121
- package/dist/esm/c-accordion-item.entry.js.map +0 -1
- package/dist/esm/c-accordion.entry.js +0 -64
- package/dist/esm/c-accordion.entry.js.map +0 -1
- package/dist/esm/c-alert.entry.js +0 -26
- package/dist/esm/c-alert.entry.js.map +0 -1
- package/dist/esm/c-autocomplete_35.entry.js +0 -2636
- package/dist/esm/c-autocomplete_35.entry.js.map +0 -1
- package/dist/esm/c-data-table.entry.js +0 -706
- package/dist/esm/c-data-table.entry.js.map +0 -1
- package/dist/esm/c-link.entry.js +0 -28
- package/dist/esm/c-link.entry.js.map +0 -1
- package/dist/esm/c-list-item-title.entry.js +0 -23
- package/dist/esm/c-list-item-title.entry.js.map +0 -1
- package/dist/esm/c-list-item.entry.js +0 -79
- package/dist/esm/c-list-item.entry.js.map +0 -1
- package/dist/esm/c-list.entry.js +0 -44
- package/dist/esm/c-list.entry.js.map +0 -1
- package/dist/esm/c-login-button.entry.js +0 -21
- package/dist/esm/c-login-button.entry.js.map +0 -1
- package/dist/esm/c-login-buttons.entry.js +0 -18
- package/dist/esm/c-login-buttons.entry.js.map +0 -1
- package/dist/esm/c-login-card-actions.entry.js +0 -17
- package/dist/esm/c-login-card-actions.entry.js.map +0 -1
- package/dist/esm/c-login-card-content.entry.js +0 -18
- package/dist/esm/c-login-card-content.entry.js.map +0 -1
- package/dist/esm/c-login-card-title.entry.js +0 -18
- package/dist/esm/c-login-card-title.entry.js.map +0 -1
- package/dist/esm/c-login-card.entry.js +0 -63
- package/dist/esm/c-login-card.entry.js.map +0 -1
- package/dist/esm/c-menu.c-menu-items.entry.js.map +0 -1
- package/dist/esm/c-menu_2.entry.js +0 -349
- package/dist/esm/c-menu_2.entry.js.map +0 -1
- package/dist/esm/c-modal.entry.js +0 -176
- package/dist/esm/c-modal.entry.js.map +0 -1
- package/dist/esm/c-option-value.entry.js +0 -18
- package/dist/esm/c-option-value.entry.js.map +0 -1
- package/dist/esm/c-pagination.entry.js +0 -221
- package/dist/esm/c-pagination.entry.js.map +0 -1
- package/dist/esm/c-progress-bar.entry.js +0 -56
- package/dist/esm/c-progress-bar.entry.js.map +0 -1
- package/dist/esm/c-row.entry.js +0 -30
- package/dist/esm/c-row.entry.js.map +0 -1
- package/dist/esm/c-slider.entry.js +0 -92
- package/dist/esm/c-slider.entry.js.map +0 -1
- package/dist/esm/c-status.entry.js +0 -19
- package/dist/esm/c-status.entry.js.map +0 -1
- package/dist/esm/c-step.entry.js +0 -24
- package/dist/esm/c-step.entry.js.map +0 -1
- package/dist/esm/c-steps.entry.js +0 -74
- package/dist/esm/c-steps.entry.js.map +0 -1
- package/dist/esm/c-swiper-tab.entry.js +0 -39
- package/dist/esm/c-swiper-tab.entry.js.map +0 -1
- package/dist/esm/c-swiper.entry.js +0 -4179
- package/dist/esm/c-swiper.entry.js.map +0 -1
- package/dist/esm/c-tab-buttons.entry.js +0 -130
- package/dist/esm/c-tab-buttons.entry.js.map +0 -1
- package/dist/esm/c-tab-item.entry.js +0 -37
- package/dist/esm/c-tab-item.entry.js.map +0 -1
- package/dist/esm/c-tab-items.entry.js +0 -74
- package/dist/esm/c-tab-items.entry.js.map +0 -1
- package/dist/esm/c-tab.entry.js +0 -52
- package/dist/esm/c-tab.entry.js.map +0 -1
- package/dist/esm/c-tabs.entry.js +0 -421
- package/dist/esm/c-tabs.entry.js.map +0 -1
- package/dist/esm/c-tag.entry.js +0 -44
- package/dist/esm/c-tag.entry.js.map +0 -1
- package/dist/esm/c-tags.entry.js +0 -28
- package/dist/esm/c-tags.entry.js.map +0 -1
- package/dist/esm/c-toast.entry.js +0 -69
- package/dist/esm/c-toast.entry.js.map +0 -1
- package/dist/esm/c-toasts.entry.js +0 -77
- package/dist/esm/c-toasts.entry.js.map +0 -1
- package/dist/esm/csc-ui.js +0 -24
- package/dist/esm/csc-ui.js.map +0 -1
- package/dist/esm/index-gSzSMY-c.js +0 -2042
- package/dist/esm/index-gSzSMY-c.js.map +0 -1
- package/dist/esm/index.js +0 -24
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -14
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/mdi-Cb-CImk5.js +0 -27
- package/dist/esm/mdi-Cb-CImk5.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/playwright.config.js +0 -46
- package/dist/playwright.config.js.map +0 -1
- package/dist/stencil.config.js +0 -47
- package/dist/stencil.config.js.map +0 -1
- package/dist/styles/.gitkeep +0 -0
- package/dist/styles/css/theme.css +0 -102
- package/dist/styles/scss/_theme.scss +0 -100
- package/dist/styles/tailwind/theme.js +0 -120
- package/dist/types/additional-types.d.ts +0 -14
- package/dist/types/components/c-accordion/c-accordion.d.ts +0 -18
- package/dist/types/components/c-accordion/test/c-accordion.visual.d.ts +0 -1
- package/dist/types/components/c-accordion-item/c-accordion-item.d.ts +0 -30
- package/dist/types/components/c-alert/c-alert.d.ts +0 -6
- package/dist/types/components/c-alert/test/c-alert.visual.d.ts +0 -1
- package/dist/types/components/c-autocomplete/c-autocomplete.d.ts +0 -65
- package/dist/types/components/c-autocomplete/test/c-autocomplete.visual.d.ts +0 -1
- package/dist/types/components/c-backdrop/c-backdrop.d.ts +0 -6
- package/dist/types/components/c-badge/c-badge.d.ts +0 -3
- package/dist/types/components/c-button/c-button.d.ts +0 -36
- package/dist/types/components/c-button/test/c-button.visual.d.ts +0 -1
- package/dist/types/components/c-card/c-card.d.ts +0 -12
- package/dist/types/components/c-card/test/c-card.visual.d.ts +0 -1
- package/dist/types/components/c-card-actions/c-card-actions.d.ts +0 -5
- package/dist/types/components/c-card-content/c-card-content.d.ts +0 -3
- package/dist/types/components/c-card-title/c-card-title.d.ts +0 -14
- package/dist/types/components/c-checkbox/c-checkbox.d.ts +0 -28
- package/dist/types/components/c-checkbox/test/c-checkbox.visual.d.ts +0 -1
- package/dist/types/components/c-csc-logo/c-csc-logo.d.ts +0 -4
- package/dist/types/components/c-data-table/c-data-table.d.ts +0 -116
- package/dist/types/components/c-data-table/test/c-data-table.visual.d.ts +0 -1
- package/dist/types/components/c-data-table/test/data/index.d.ts +0 -3
- package/dist/types/components/c-dropdown/c-dropdown-options-item.d.ts +0 -3
- package/dist/types/components/c-dropdown/c-dropdown.d.ts +0 -56
- package/dist/types/components/c-icon/c-icon.d.ts +0 -9
- package/dist/types/components/c-icon-button/c-icon-button.d.ts +0 -18
- package/dist/types/components/c-icon-button/test/c-icon-button.visual.d.ts +0 -1
- package/dist/types/components/c-input/c-input.d.ts +0 -64
- package/dist/types/components/c-link/c-link.d.ts +0 -7
- package/dist/types/components/c-link/test/c-link.visual.d.ts +0 -1
- package/dist/types/components/c-list/c-list.d.ts +0 -9
- package/dist/types/components/c-list-item/c-list-item.d.ts +0 -16
- package/dist/types/components/c-list-item-title/c-list-item-title.d.ts +0 -4
- package/dist/types/components/c-loader/c-loader.d.ts +0 -10
- package/dist/types/components/c-login-button/c-login-button.d.ts +0 -6
- package/dist/types/components/c-login-buttons/c-login-buttons.d.ts +0 -3
- package/dist/types/components/c-login-card/c-login-card.d.ts +0 -19
- package/dist/types/components/c-login-card/test/c-login-card.visual.d.ts +0 -1
- package/dist/types/components/c-login-card-actions/c-login-card-actions.d.ts +0 -5
- package/dist/types/components/c-login-card-content/c-login-card-content.d.ts +0 -3
- package/dist/types/components/c-login-card-title/c-login-card-title.d.ts +0 -3
- package/dist/types/components/c-main/c-main.d.ts +0 -4
- package/dist/types/components/c-menu/c-menu.d.ts +0 -26
- package/dist/types/components/c-menu/test/c-menu.visual.d.ts +0 -1
- package/dist/types/components/c-menu-items/c-menu-items.d.ts +0 -43
- package/dist/types/components/c-message/c-message.d.ts +0 -18
- package/dist/types/components/c-modal/c-modal.d.ts +0 -31
- package/dist/types/components/c-navigation-button/c-navigation-button.d.ts +0 -3
- package/dist/types/components/c-option/c-option.d.ts +0 -7
- package/dist/types/components/c-option-value/c-option-value.d.ts +0 -3
- package/dist/types/components/c-otp-input/c-otp-input.d.ts +0 -36
- package/dist/types/components/c-page/c-page.d.ts +0 -8
- package/dist/types/components/c-pagination/c-pagination.d.ts +0 -38
- package/dist/types/components/c-pagination/test/c-pagination.visual.d.ts +0 -1
- package/dist/types/components/c-progress-bar/c-progress-bar.d.ts +0 -9
- package/dist/types/components/c-progress-bar/test/c-progress-bar.visual.d.ts +0 -1
- package/dist/types/components/c-radio/c-radio.d.ts +0 -6
- package/dist/types/components/c-radio-group/c-radio-group.d.ts +0 -31
- package/dist/types/components/c-radio-group/test/c-radio-group.visual.d.ts +0 -1
- package/dist/types/components/c-radio-group/test/items.d.ts +0 -2
- package/dist/types/components/c-ripple/c-ripple.d.ts +0 -7
- package/dist/types/components/c-row/c-row.d.ts +0 -10
- package/dist/types/components/c-select/c-select.d.ts +0 -71
- package/dist/types/components/c-select/test/c-select.visual.d.ts +0 -1
- package/dist/types/components/c-select/test/items.d.ts +0 -2
- package/dist/types/components/c-side-navigation/c-side-navigation.d.ts +0 -15
- package/dist/types/components/c-side-navigation/test/c-side-navigation.visual.d.ts +0 -1
- package/dist/types/components/c-side-navigation-item/c-side-navigation-item.d.ts +0 -21
- package/dist/types/components/c-side-navigation-title/c-side-navigation-title.d.ts +0 -3
- package/dist/types/components/c-slider/c-slider.d.ts +0 -32
- package/dist/types/components/c-spacer/c-spacer.d.ts +0 -3
- package/dist/types/components/c-spinner/c-spinner.d.ts +0 -6
- package/dist/types/components/c-status/c-status.d.ts +0 -4
- package/dist/types/components/c-status/test/c-status.visual.d.ts +0 -1
- package/dist/types/components/c-step/c-step.d.ts +0 -5
- package/dist/types/components/c-steps/c-steps.d.ts +0 -16
- package/dist/types/components/c-steps/test/c-steps.visual.d.ts +0 -1
- package/dist/types/components/c-sub-navigation-item/c-sub-navigation-item.d.ts +0 -10
- package/dist/types/components/c-swiper/c-swiper.d.ts +0 -25
- package/dist/types/components/c-swiper/test/c-swiper.visual.d.ts +0 -1
- package/dist/types/components/c-swiper-tab/c-swiper-tab.d.ts +0 -16
- package/dist/types/components/c-switch/c-switch.d.ts +0 -20
- package/dist/types/components/c-switch/test/c-switch.visual.d.ts +0 -1
- package/dist/types/components/c-tab/c-tab.d.ts +0 -20
- package/dist/types/components/c-tab-buttons/c-tab-buttons.d.ts +0 -24
- package/dist/types/components/c-tab-buttons/test/c-tab-buttons.visual.d.ts +0 -1
- package/dist/types/components/c-tab-item/c-tab-item.d.ts +0 -12
- package/dist/types/components/c-tab-items/c-tab-items.d.ts +0 -18
- package/dist/types/components/c-table/c-table.d.ts +0 -17
- package/dist/types/components/c-tabs/c-tabs.d.ts +0 -67
- package/dist/types/components/c-tabs/test/c-tabs.visual.d.ts +0 -1
- package/dist/types/components/c-tag/c-tag.d.ts +0 -13
- package/dist/types/components/c-tag/test/c-tag.visual.d.ts +0 -1
- package/dist/types/components/c-tags/c-tags.d.ts +0 -6
- package/dist/types/components/c-text-field/c-text-field.d.ts +0 -51
- package/dist/types/components/c-text-field/test/c-text-field.visual.d.ts +0 -1
- package/dist/types/components/c-toast/c-toast.d.ts +0 -19
- package/dist/types/components/c-toasts/c-toasts.d.ts +0 -17
- package/dist/types/components/c-toasts/test/c-toasts.visual.d.ts +0 -1
- package/dist/types/components/c-toolbar/c-toolbar.d.ts +0 -3
- package/dist/types/components/c-toolbar/test/c-toolbar.visual.d.ts +0 -1
- package/dist/types/components.d.ts +0 -5448
- package/dist/types/home/runner/work/ui/ui/packages/csc-ui/.stencil/playwright.config.d.ts +0 -2
- package/dist/types/home/runner/work/ui/ui/packages/csc-ui/.stencil/stencil.config.d.ts +0 -2
- package/dist/types/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1681
- package/dist/types/types/global.d.ts +0 -13
- package/dist/types/types/index.d.ts +0 -145
- package/dist/types/utils/getScrollParent.d.ts +0 -1
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/types/utils/test/sleep.d.ts +0 -1
- package/dist/types/utils/test/takeScreenshot.d.ts +0 -2
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +0 -2
- package/vscode-data.json +0 -2284
package/dist/components/c-tag.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-Fv9YCUj3.js';
|
|
2
|
-
import { i as mdiClose } from './p-Bd7jq7MS.js';
|
|
3
|
-
import { d as defineCustomElement$6 } from './p-DKhrqMh8.js';
|
|
4
|
-
import { d as defineCustomElement$5 } from './p-Cmy8x1XB.js';
|
|
5
|
-
import { d as defineCustomElement$4 } from './p-BCgTj9pp.js';
|
|
6
|
-
import { d as defineCustomElement$3 } from './p-DEHCeGjr.js';
|
|
7
|
-
import { d as defineCustomElement$2 } from './p-D6wozX_5.js';
|
|
8
|
-
|
|
9
|
-
const cTagCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-tag-background-color-active-hover:var(--c-tag-background-color-active-hover, var(--c-primary-400));--_c-tag-background-color-active:var(--c-tag-background-color-active, var(--_c-tag-text-color));--_c-tag-background-color-hover:var(--c-tag-background-color-hover, rgba(var(--c-primary-rgb), 0.1));--_c-tag-background-color:var(--c-tag-background-color, var(--c-transparent));--_c-tag-badge-background-color-active:var(--c-tag-badge-background-color-active, var(--_c-tag-text-color-active));--_c-tag-badge-background-color:var(--c-tag-badge-background-color, var(--_c-tag-background-color-active));--_c-tag-badge-text-color-active:var(--c-tag-badge-text-color-active, var(--_c-tag-text-color));--_c-tag-badge-text-color:var(--c-tag-badge-text-color, var(--_c-tag-text-color-active));--_c-tag-border-color:var(--c-tag-border-color, var(--_c-tag-text-color));--_c-tag-text-color-active:var(--c-tag-text-color-active, var(--c-white));--_c-tag-text-color:var(--c-tag-text-color, var(--c-primary-600));--_c-tag-border-radius:var(--c-tag-border-radius, 999px);--c-tag-min-height:28px;--c-tag-padding-y:4px;--c-tag-padding-x:12px;--c-tag-padding:var(--c-tag-padding-y) var(--c-tag-padding-x);--c-tag-badge-size:20px;--c-tag-icon-button-offset:0;--c-icon-button-outline-offset:0;border-radius:var(--_c-tag-border-radius)}:host>div{align-items:center;background:var(--_c-tag-background-color);border-radius:var(--_c-tag-border-radius);box-shadow:inset 0 0 0 1px var(--_c-tag-border-color);color:var(--_c-tag-text-color);cursor:pointer;display:inline-flex;font-size:14px;font-weight:400;gap:8px;justify-content:center;line-height:1;min-height:var(--c-tag-min-height);min-width:48px;padding:var(--c-tag-padding);transform:translate3d(0, 0, 0);transition:background-color 0.2s ease;user-select:none}:host c-icon-button{--_c-icon-button-height:20px;--_c-icon-button-width:20px;--_c-icon-button-background-color:var(--c-transparent);--_c-icon-button-text-color:var(--_c-tag-text-color);--_c-icon-button-background-hover:var(--_c-tag-background-color-active);margin:var(--c-tag-icon-button-offset)}:host c-icon-button:hover{--_c-icon-button-text-color:var(--_c-tag-text-color-active)}:host(:host:hover)>div{background-color:var(--_c-tag-background-color-hover)}:host>div[data-badge]{padding-left:var(--c-tag-padding-y)}:host>div[data-badge]::before{content:attr(data-badge);background-color:var(--_c-tag-badge-background-color);border-radius:calc(var(--_c-tag-border-radius) - var(--c-tag-padding-y));color:var(--_c-tag-badge-text-color);display:inline-grid;font-size:12px;height:var(--c-tag-badge-size);line-height:1;min-width:var(--c-tag-badge-size);padding:0 4px;place-content:center}:host(.c-tag--active)>div[data-badge]::before{background-color:var(--_c-tag-badge-background-color-active);color:var(--_c-tag-badge-text-color-active)}:host(.c-tag--closeable)>div{padding-right:var(--c-tag-padding-y)}:host(.c-tag--block)>div{flex-basis:100%}:host(.c-tag--fit)>div{flex-grow:1}:host(.c-tag--flat)>div{pointer-events:none}:host(.c-tag--small){--c-tag-min-height:20px;--c-tag-padding-y:2px;--c-tag-padding-x:8px;--c-tag-badge-size:16px;--c-tag-icon-button-offset:1px 0 0}:host(.c-tag--small) c-icon-button{--_c-icon-button-height:16px;--_c-icon-button-width:16px}:host([data-badge].c-tag--small)>div{padding-left:var(--c-tag-padding-y)}:host(:focus){outline:none}:host(:focus-visible){outline:2px var(--_c-tag-border-color) solid;outline-offset:2px;z-index:1}:host(.c-tag--active)>div{background:var(--_c-tag-background-color-active);color:var(--_c-tag-text-color-active);--c-icon-button-outline-color:var(--c-white)}:host(.c-tag--active .c-tag__badge)>div{background:var(--_c-tag-badge-background-color-active);color:var(--_c-tag-badge-text-color-active)}:host(.c-tag--active:hover)>div{background:var(--_c-tag-background-color-active-hover);box-shadow:none;--_c-icon-button-text-color:var(--_c-tag-text-color);--_c-icon-button-background-color:var(--_c-tag-text-color-active);--_c-icon-button-background-color-hover:var(--_c-tag-background-color-active)}:host(.c-tag--active) c-icon-button{--_c-icon-button-text-color:var(--_c-tag-text-color-active);--_c-icon-button-background-color-hover:var(--_c-tag-background-color-active)}";
|
|
10
|
-
|
|
11
|
-
const CTag$1 = proxyCustomElement(class CTag extends H {
|
|
12
|
-
constructor() {
|
|
13
|
-
super();
|
|
14
|
-
this.__registerHost();
|
|
15
|
-
this.__attachShadow();
|
|
16
|
-
this.close = createEvent(this, "close", 7);
|
|
17
|
-
this.active = false;
|
|
18
|
-
this.block = false;
|
|
19
|
-
this.fit = false;
|
|
20
|
-
this.flat = false;
|
|
21
|
-
this.closeable = false;
|
|
22
|
-
this.badge = null;
|
|
23
|
-
this.size = 'default';
|
|
24
|
-
}
|
|
25
|
-
_onClose() {
|
|
26
|
-
this.close.emit();
|
|
27
|
-
}
|
|
28
|
-
render() {
|
|
29
|
-
const hasBadge = !!this.badge || this.badge === 0;
|
|
30
|
-
const hostClasses = {
|
|
31
|
-
'c-tag': true,
|
|
32
|
-
'c-tag--closeable': this.closeable,
|
|
33
|
-
'c-tag--badge': hasBadge,
|
|
34
|
-
'c-tag--active': this.active,
|
|
35
|
-
'c-tag--block': this.block,
|
|
36
|
-
'c-tag--fit': this.fit,
|
|
37
|
-
'c-tag--flat': this.flat,
|
|
38
|
-
'c-tag--small': this.size === 'small',
|
|
39
|
-
};
|
|
40
|
-
const hostParams = Object.assign({ tabindex: this.flat ? -1 : 0 }, (!this.flat && {
|
|
41
|
-
role: 'button',
|
|
42
|
-
}));
|
|
43
|
-
return (h(Host, Object.assign({ key: '652b7b74c86d98e1a4878944883627e1d17bef2b' }, hostParams, { class: hostClasses }), h("div", Object.assign({ key: '30771323df80cadbcd69cea6c4ddb59047dd4090' }, (hasBadge ? { 'data-badge': this.badge } : {})), h("slot", { key: '1b70cf6dd9c0f495021e29f47577cbc6028dc7a4' }), this.closeable && (h("c-icon-button", { key: '1ddbcd81e0204345c126b2b73af188abe01d4d5d', onClick: () => this._onClose() }, h("c-icon", { key: '0d50551aae9fd49893c1ae7a703ca772fdaa581e', size: 16, path: mdiClose }))))));
|
|
44
|
-
}
|
|
45
|
-
static get style() { return cTagCss; }
|
|
46
|
-
}, [1, "c-tag", {
|
|
47
|
-
"active": [4],
|
|
48
|
-
"block": [4],
|
|
49
|
-
"fit": [4],
|
|
50
|
-
"flat": [4],
|
|
51
|
-
"closeable": [4],
|
|
52
|
-
"badge": [8],
|
|
53
|
-
"size": [1]
|
|
54
|
-
}]);
|
|
55
|
-
function defineCustomElement$1() {
|
|
56
|
-
if (typeof customElements === "undefined") {
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
const components = ["c-tag", "c-badge", "c-icon", "c-icon-button", "c-ripple", "c-spinner"];
|
|
60
|
-
components.forEach(tagName => { switch (tagName) {
|
|
61
|
-
case "c-tag":
|
|
62
|
-
if (!customElements.get(tagName)) {
|
|
63
|
-
customElements.define(tagName, CTag$1);
|
|
64
|
-
}
|
|
65
|
-
break;
|
|
66
|
-
case "c-badge":
|
|
67
|
-
if (!customElements.get(tagName)) {
|
|
68
|
-
defineCustomElement$6();
|
|
69
|
-
}
|
|
70
|
-
break;
|
|
71
|
-
case "c-icon":
|
|
72
|
-
if (!customElements.get(tagName)) {
|
|
73
|
-
defineCustomElement$5();
|
|
74
|
-
}
|
|
75
|
-
break;
|
|
76
|
-
case "c-icon-button":
|
|
77
|
-
if (!customElements.get(tagName)) {
|
|
78
|
-
defineCustomElement$4();
|
|
79
|
-
}
|
|
80
|
-
break;
|
|
81
|
-
case "c-ripple":
|
|
82
|
-
if (!customElements.get(tagName)) {
|
|
83
|
-
defineCustomElement$3();
|
|
84
|
-
}
|
|
85
|
-
break;
|
|
86
|
-
case "c-spinner":
|
|
87
|
-
if (!customElements.get(tagName)) {
|
|
88
|
-
defineCustomElement$2();
|
|
89
|
-
}
|
|
90
|
-
break;
|
|
91
|
-
} });
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
const CTag = CTag$1;
|
|
95
|
-
const defineCustomElement = defineCustomElement$1;
|
|
96
|
-
|
|
97
|
-
export { CTag, defineCustomElement };
|
|
98
|
-
//# sourceMappingURL=c-tag.js.map
|
|
99
|
-
|
|
100
|
-
//# sourceMappingURL=c-tag.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"c-tag.js","mappings":";;;;;;;;AAAA,MAAM,OAAO,GAAG,2zIAA2zI;;MCY9zIA,MAAI,GAAAC,kBAAA,CAAA,MAAA,IAAA,SAAAC,CAAA,CAAA;AALjB,IAAA,WAAA,GAAA;;;;;AASU,QAAA,IAAM,CAAA,MAAA,GAAG,KAAK;AAKd,QAAA,IAAK,CAAA,KAAA,GAAG,KAAK;AAKb,QAAA,IAAG,CAAA,GAAA,GAAG,KAAK;AAKX,QAAA,IAAI,CAAA,IAAA,GAAG,KAAK;AAKZ,QAAA,IAAS,CAAA,SAAA,GAAG,KAAK;AAKjB,QAAA,IAAK,CAAA,KAAA,GAAoB,IAAI;AAK7B,QAAA,IAAI,CAAA,IAAA,GAAwB,SAAS;AA8C9C;IAvCS,QAAQ,GAAA;AACd,QAAA,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;;IAGnB,MAAM,GAAA;AACJ,QAAA,MAAM,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,KAAK,CAAC;AAEjD,QAAA,MAAM,WAAW,GAAG;AAClB,YAAA,OAAO,EAAE,IAAI;YACb,kBAAkB,EAAE,IAAI,CAAC,SAAS;AAClC,YAAA,cAAc,EAAE,QAAQ;YACxB,eAAe,EAAE,IAAI,CAAC,MAAM;YAC5B,cAAc,EAAE,IAAI,CAAC,KAAK;YAC1B,YAAY,EAAE,IAAI,CAAC,GAAG;YACtB,aAAa,EAAE,IAAI,CAAC,IAAI;AACxB,YAAA,cAAc,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;SACtC;AAED,QAAA,MAAM,UAAU,mBACd,QAAQ,EAAE,IAAI,CAAC,IAAI,GAAG,EAAE,GAAG,CAAC,EAAA,GACxB,CAAC,IAAI,CAAC,IAAI,IAAI;AAChB,YAAA,IAAI,EAAE,QAAQ;AACf,SAAA,EACF;QAED,QACE,EAAC,IAAI,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EAAK,UAAU,EAAE,EAAA,KAAK,EAAE,WAAW,EAAA,CAAA,EACtC,CAAA,CAAA,KAAA,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,GAAU,QAAQ,GAAG,EAAE,YAAY,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,EAAC,EACrD,CAAa,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,EAEZ,IAAI,CAAC,SAAS,KACb,CAAe,CAAA,eAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,OAAO,EAAE,MAAM,IAAI,CAAC,QAAQ,EAAE,EAAA,EAC3C,CAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAQ,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAA,CAAW,CAC7B,CACjB,CACG,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CTag","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/c-tag/c-tag.scss?tag=c-tag&encapsulation=shadow","src/components/c-tag/c-tag.tsx"],"sourcesContent":[":host {\n /**\n * @prop --c-tag-background-color-active-hover: Active tag background color on hover\n * @prop --c-tag-background-color-active: Active tag background color\n * @prop --c-tag-background-color-hover: Tag background color on hover\n * @prop --c-tag-background-color: Tag background color\n * @prop --c-tag-badge-background-color-active: Active tag badge background color\n * @prop --c-tag-badge-background-color: Tag badge background color\n * @prop --c-tag-badge-text-color-active: Active tag badge text color\n * @prop --c-tag-badge-text-color: Tag badge text color\n * @prop --c-tag-border-color: Tag border color\n * @prop --c-tag-text-color-active: Active tag text color\n * @prop --c-tag-text-color: Tag text color\n * @prop --c-tag-border-radius: Tag border radius\n */\n --_c-tag-background-color-active-hover: var(--c-tag-background-color-active-hover, var(--c-primary-400));\n --_c-tag-background-color-active: var(--c-tag-background-color-active, var(--_c-tag-text-color));\n --_c-tag-background-color-hover: var(--c-tag-background-color-hover, rgba(var(--c-primary-rgb), 0.1));\n --_c-tag-background-color: var(--c-tag-background-color, var(--c-transparent));\n --_c-tag-badge-background-color-active: var(--c-tag-badge-background-color-active, var(--_c-tag-text-color-active));\n --_c-tag-badge-background-color: var(--c-tag-badge-background-color, var(--_c-tag-background-color-active));\n --_c-tag-badge-text-color-active: var(--c-tag-badge-text-color-active, var(--_c-tag-text-color));\n --_c-tag-badge-text-color: var(--c-tag-badge-text-color, var(--_c-tag-text-color-active));\n --_c-tag-border-color: var(--c-tag-border-color, var(--_c-tag-text-color));\n --_c-tag-text-color-active: var(--c-tag-text-color-active, var(--c-white));\n --_c-tag-text-color: var(--c-tag-text-color, var(--c-primary-600));\n --_c-tag-border-radius: var(--c-tag-border-radius, 999px);\n\n // private\n --c-tag-min-height: 28px;\n --c-tag-padding-y: 4px;\n --c-tag-padding-x: 12px;\n --c-tag-padding: var(--c-tag-padding-y) var(--c-tag-padding-x);\n --c-tag-badge-size: 20px;\n --c-tag-icon-button-offset: 0;\n\n --c-icon-button-outline-offset: 0;\n\n border-radius: var(--_c-tag-border-radius);\n \n > div {\n align-items: center;\n background: var(--_c-tag-background-color);\n border-radius: var(--_c-tag-border-radius);\n box-shadow: inset 0 0 0 1px var(--_c-tag-border-color);\n color: var(--_c-tag-text-color);\n cursor: pointer;\n display: inline-flex;\n font-size: 14px;\n font-weight: 400;\n gap: 8px;\n justify-content: center;\n line-height: 1;\n min-height: var(--c-tag-min-height);\n min-width: 48px;\n padding: var(--c-tag-padding);\n transform: translate3d(0, 0, 0);\n transition: background-color 0.2s ease;\n user-select: none;\n }\n\n c-icon-button {\n --_c-icon-button-height: 20px;\n --_c-icon-button-width: 20px;\n --_c-icon-button-background-color: var(--c-transparent);\n --_c-icon-button-text-color: var(--_c-tag-text-color);\n --_c-icon-button-background-hover: var(--_c-tag-background-color-active);\n\n margin: var(--c-tag-icon-button-offset);\n\n &:hover {\n --_c-icon-button-text-color: var(--_c-tag-text-color-active);\n }\n }\n}\n\n:host(:host:hover) > div {\n background-color: var(--_c-tag-background-color-hover);\n}\n\n:host > div[data-badge] {\n padding-left: var(--c-tag-padding-y);\n\n &::before {\n content: attr(data-badge);\n background-color: var(--_c-tag-badge-background-color);\n border-radius: calc(var(--_c-tag-border-radius) - var(--c-tag-padding-y));\n color: var(--_c-tag-badge-text-color);\n display: inline-grid;\n font-size: 12px;\n height: var(--c-tag-badge-size);\n line-height: 1;\n min-width: var(--c-tag-badge-size);\n padding: 0 4px;\n place-content: center;\n }\n}\n\n:host(.c-tag--active) > div[data-badge] {\n &::before {\n background-color: var(--_c-tag-badge-background-color-active);\n color: var(--_c-tag-badge-text-color-active);\n }\n}\n\n:host(.c-tag--closeable) > div {\n padding-right: var(--c-tag-padding-y);\n}\n\n:host(.c-tag--block) > div {\n flex-basis: 100%;\n}\n\n:host(.c-tag--fit) > div {\n flex-grow: 1;\n}\n\n:host(.c-tag--flat) > div {\n pointer-events: none;\n}\n\n:host(.c-tag--small) {\n --c-tag-min-height: 20px;\n --c-tag-padding-y: 2px;\n --c-tag-padding-x: 8px;\n --c-tag-badge-size: 16px;\n --c-tag-icon-button-offset: 1px 0 0;\n\n c-icon-button {\n --_c-icon-button-height: 16px;\n --_c-icon-button-width: 16px;\n }\n}\n\n:host([data-badge].c-tag--small) > div {\n padding-left: var(--c-tag-padding-y);\n}\n\n:host(:focus) {\n outline: none;\n}\n\n:host(:focus-visible) {\n outline: 2px var(--_c-tag-border-color) solid;\n outline-offset: 2px;\n z-index: 1;\n}\n\n:host(.c-tag--active) > div {\n background: var(--_c-tag-background-color-active);\n color: var(--_c-tag-text-color-active);\n\n --c-icon-button-outline-color: var(--c-white);\n}\n\n:host(.c-tag--active .c-tag__badge) > div {\n background: var(--_c-tag-badge-background-color-active);\n color: var(--_c-tag-badge-text-color-active);\n}\n\n:host(.c-tag--active:hover) > div {\n background: var(--_c-tag-background-color-active-hover);\n box-shadow: none;\n\n --_c-icon-button-text-color: var(--_c-tag-text-color);\n --_c-icon-button-background-color: var(--_c-tag-text-color-active);\n --_c-icon-button-background-color-hover: var(--_c-tag-background-color-active);\n}\n\n:host(.c-tag--active) c-icon-button {\n --_c-icon-button-text-color: var(--_c-tag-text-color-active);\n --_c-icon-button-background-color-hover: var(--_c-tag-background-color-active);\n}\n","import { mdiClose } from '@mdi/js';\nimport { Component, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\n\n/**\n * @parent c-tags\n * @slot Default slot - Default slot\n */\n@Component({\n tag: 'c-tag',\n styleUrl: 'c-tag.scss',\n shadow: true,\n})\nexport class CTag {\n /**\n * Mark tag as active\n */\n @Prop() active = false;\n\n /**\n * Stretch to fill the container row\n */\n @Prop() block = false;\n\n /**\n * Stretch to fill the container\n */\n @Prop() fit = false;\n\n /**\n * Remove the hover effect\n */\n @Prop() flat = false;\n\n /**\n * Mark tag as closeable\n */\n @Prop() closeable = false;\n\n /**\n * Display an optional badge at the start of the tag\n */\n @Prop() badge: string | number = null;\n\n /**\n * Size of the tag\n */\n @Prop() size: 'default' | 'small' = 'default';\n\n /**\n * Emit close event on close icon click\n */\n @Event() close: EventEmitter;\n\n private _onClose() {\n this.close.emit();\n }\n\n render() {\n const hasBadge = !!this.badge || this.badge === 0;\n\n const hostClasses = {\n 'c-tag': true,\n 'c-tag--closeable': this.closeable,\n 'c-tag--badge': hasBadge,\n 'c-tag--active': this.active,\n 'c-tag--block': this.block,\n 'c-tag--fit': this.fit,\n 'c-tag--flat': this.flat,\n 'c-tag--small': this.size === 'small',\n };\n\n const hostParams = {\n tabindex: this.flat ? -1 : 0,\n ...(!this.flat && {\n role: 'button',\n }),\n };\n\n return (\n <Host {...hostParams} class={hostClasses}>\n <div {...(hasBadge ? { 'data-badge': this.badge } : {})}>\n <slot></slot>\n\n {this.closeable && (\n <c-icon-button onClick={() => this._onClose()}>\n <c-icon size={16} path={mdiClose}></c-icon>\n </c-icon-button>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface CTags extends Components.CTags, HTMLElement {}
|
|
4
|
-
export const CTags: {
|
|
5
|
-
prototype: CTags;
|
|
6
|
-
new (): CTags;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h, d as Host } from './p-Fv9YCUj3.js';
|
|
2
|
-
|
|
3
|
-
const cTagsCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{place-items:center start;display:flex;flex-wrap:wrap;gap:4px}";
|
|
4
|
-
|
|
5
|
-
const CTags$1 = proxyCustomElement(class CTags extends H {
|
|
6
|
-
constructor() {
|
|
7
|
-
super();
|
|
8
|
-
this.__registerHost();
|
|
9
|
-
this.__attachShadow();
|
|
10
|
-
this.size = 'default';
|
|
11
|
-
}
|
|
12
|
-
componentDidLoad() {
|
|
13
|
-
if (this.size === 'small') {
|
|
14
|
-
const tags = this.el.querySelectorAll('c-tag');
|
|
15
|
-
[...tags].forEach((tag) => {
|
|
16
|
-
tag.size = 'small';
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
render() {
|
|
21
|
-
return (h(Host, { key: '0b52666fc0780347740355190998e4fdd30b6afe' }, h("slot", { key: '24236ffd7c9e1d10a0634eff08b591af63cab68a' })));
|
|
22
|
-
}
|
|
23
|
-
get el() { return this; }
|
|
24
|
-
static get style() { return cTagsCss; }
|
|
25
|
-
}, [1, "c-tags", {
|
|
26
|
-
"size": [1]
|
|
27
|
-
}]);
|
|
28
|
-
function defineCustomElement$1() {
|
|
29
|
-
if (typeof customElements === "undefined") {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
const components = ["c-tags"];
|
|
33
|
-
components.forEach(tagName => { switch (tagName) {
|
|
34
|
-
case "c-tags":
|
|
35
|
-
if (!customElements.get(tagName)) {
|
|
36
|
-
customElements.define(tagName, CTags$1);
|
|
37
|
-
}
|
|
38
|
-
break;
|
|
39
|
-
} });
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const CTags = CTags$1;
|
|
43
|
-
const defineCustomElement = defineCustomElement$1;
|
|
44
|
-
|
|
45
|
-
export { CTags, defineCustomElement };
|
|
46
|
-
//# sourceMappingURL=c-tags.js.map
|
|
47
|
-
|
|
48
|
-
//# sourceMappingURL=c-tags.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"c-tags.js","mappings":";;AAAA,MAAM,QAAQ,GAAG,6PAA6P;;MCWjQA,OAAK,GAAAC,kBAAA,CAAA,MAAA,KAAA,SAAAC,CAAA,CAAA;AALlB,IAAA,WAAA,GAAA;;;;AAWU,QAAA,IAAI,CAAA,IAAA,GAAwB,SAAS;AAmB9C;IAjBC,gBAAgB,GAAA;AACd,QAAA,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;YACzB,MAAM,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAE9C,CAAC,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,KAAI;AACxB,gBAAA,GAAG,CAAC,IAAI,GAAG,OAAO;AACpB,aAAC,CAAC;;;IAIN,MAAM,GAAA;QACJ,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACH,CAAa,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACR;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CTags","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/c-tags/c-tags.scss?tag=c-tags&encapsulation=shadow","src/components/c-tags/c-tags.tsx"],"sourcesContent":[":host {\n place-items: center start;\n display: flex;\n flex-wrap: wrap;\n gap: 4px;\n}\n","import { Component, Element, Host, Prop, h } from '@stencil/core';\n\n/**\n * @group buttons\n * @slot Default slot - Default slot\n */\n@Component({\n tag: 'c-tags',\n styleUrl: 'c-tags.scss',\n shadow: true,\n})\nexport class CTags {\n @Element() el: HTMLCTagsElement;\n\n /**\n * Size of the tags\n */\n @Prop() size: 'default' | 'small' = 'default';\n\n componentDidLoad() {\n if (this.size === 'small') {\n const tags = this.el.querySelectorAll('c-tag');\n\n [...tags].forEach((tag) => {\n tag.size = 'small';\n });\n }\n }\n\n render() {\n return (\n <Host>\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface CTextField extends Components.CTextField, HTMLElement {}
|
|
4
|
-
export const CTextField: {
|
|
5
|
-
prototype: CTextField;
|
|
6
|
-
new (): CTextField;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-Fv9YCUj3.js';
|
|
2
|
-
import { s as mdiEye, t as mdiEyeOff, u as mdiCalendar } from './p-Bd7jq7MS.js';
|
|
3
|
-
import { d as defineCustomElement$3 } from './p-Bz0xxOlq.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './p-BJVLvFq9.js';
|
|
5
|
-
|
|
6
|
-
const cTextFieldCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:root,:host{--_c-text-field-active-color:var(--c-text-field-active-color, var(--c-primary-600));--_c-text-field-inactive-color:var(--c-text-field-inactive-color, var(--c-tertiary-600));--_c-text-field-background-color:var(--c-text-field-background-color, var(--c-transparent));--_c-text-field-text-color:var(--c-text-field-text-color, var(--c-text-body));--_c-text-field-placeholder-color:var(--c-text-field-placeholder-color, var(--c-tertiary-500));--_c-text-field-shadow-active-color:var(--c-text-field-shadow-active-color, var(--_c-text-field-active-color));--_c-text-field-shadow-background-color:var(--c-text-field-shadow-background-color, var(--c-white));--_c-text-field-shadow-text-color:var(--c-text-field-shadow-text-color, var(--_c-text-field-text-color));--_c-text-field-shadow-placeholder-color:var(--c-text-field-shadow-placeholder-color, var(--_c-text-field-placeholder-color));--_c-text-field-label-color:var(--c-text-field-label-color, var(--_c-text-field-text-color))}.c-input{--_c-input-active-color:var(--_c-text-field-active-color);--_c-input-inactive-color:var(--_c-text-field-inactive-color);--_c-input-background-color:var(--_c-text-field-background-color);--_c-input-text-color:var(--_c-text-field-text-color);--_c-input-label-color:var(--_c-text-field-label-color);--_c-input-placeholder-color:var(--_c-text-field-placeholder-color);--_c-input-shadow-active-color:var(--_c-text-field-shadow-active-color);--_c-input-shadow-background-color:var(--_c-text-field-shadow-background-color);--_c-input-shadow-text-color:var(--_c-text-field-shadow-text-color);--_c-input-shadow-placeholder-color:var(--_c-text-field-shadow-placeholder-color)}.c-input__password-toggle,.c-input__date-toggle{cursor:pointer;fill:currentColor;height:22px;width:22px}.c-input__password-toggle--disabled,.c-input__date-toggle--disabled{cursor:not-allowed;fill:var(--c-tertiary-500)}.c-input input[type=date]{opacity:0}.c-input input[type=date]::-webkit-calendar-picker-indicator,.c-input input[type=date]::-webkit-inner-spin-button{display:none;appearance:none}.c-input input[type=date]:focus,.c-input input[type=date].c-input__input--filled{opacity:1}";
|
|
7
|
-
|
|
8
|
-
const CTextField$1 = proxyCustomElement(class CTextField extends H {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.__attachShadow();
|
|
13
|
-
this.changeValue = createEvent(this, "changeValue", 3);
|
|
14
|
-
this.internals = this.attachInternals();
|
|
15
|
-
this.automaticFocus = false;
|
|
16
|
-
this.automaticCapitalize = '';
|
|
17
|
-
this.autocorrect = '';
|
|
18
|
-
this.autocomplete = '';
|
|
19
|
-
this.disabled = false;
|
|
20
|
-
this.hideDetails = false;
|
|
21
|
-
this.hint = '';
|
|
22
|
-
this.trimWhitespace = false;
|
|
23
|
-
this.labelOnTop = false;
|
|
24
|
-
this.max = null;
|
|
25
|
-
this.min = null;
|
|
26
|
-
this.readonly = false;
|
|
27
|
-
this.required = false;
|
|
28
|
-
this.rows = 1;
|
|
29
|
-
this.shadow = false;
|
|
30
|
-
this.step = null;
|
|
31
|
-
this.type = 'text';
|
|
32
|
-
this.valid = true;
|
|
33
|
-
this.validate = false;
|
|
34
|
-
this.validateOnBlur = false;
|
|
35
|
-
this.validation = 'Required field';
|
|
36
|
-
this.isFocused = false;
|
|
37
|
-
this.labelWidth = 0;
|
|
38
|
-
this.preSlotWidth = 0;
|
|
39
|
-
this._originalType = '';
|
|
40
|
-
this._handleChange = (event) => {
|
|
41
|
-
if (this.type === 'number' && !event.target.value && event.key === '-') {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
this.value = this.trimWhitespace
|
|
45
|
-
? event.target.value.trim()
|
|
46
|
-
: event.target.value;
|
|
47
|
-
this.changeValue.emit(this.value);
|
|
48
|
-
this.internals.setFormValue(this.value);
|
|
49
|
-
};
|
|
50
|
-
this._handleBlur = (event) => {
|
|
51
|
-
if (this.trimWhitespace) {
|
|
52
|
-
const trimmedValue = event.target.value.trim();
|
|
53
|
-
event.target.value = trimmedValue;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
this._togglePasswordVisibility = () => {
|
|
57
|
-
if (this.disabled)
|
|
58
|
-
return;
|
|
59
|
-
this.type = this.type === 'password' ? 'text' : 'password';
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
componentWillLoad() {
|
|
63
|
-
CTextField._uniqueId += 1;
|
|
64
|
-
this._originalType = this.type;
|
|
65
|
-
this._inputId = `${(this.hostId ||
|
|
66
|
-
this.label ||
|
|
67
|
-
this.placeholder ||
|
|
68
|
-
'').replace(/[^a-zA-Z0-9-_]/g, '')}_${CTextField._uniqueId}`;
|
|
69
|
-
this.internals.setFormValue(this.value);
|
|
70
|
-
}
|
|
71
|
-
get isActive() {
|
|
72
|
-
return !!this.value || this.isFocused;
|
|
73
|
-
}
|
|
74
|
-
get passwordIcon() {
|
|
75
|
-
return this.type === 'password' ? mdiEye : mdiEyeOff;
|
|
76
|
-
}
|
|
77
|
-
_renderInputElement() {
|
|
78
|
-
const props = {
|
|
79
|
-
classes: {
|
|
80
|
-
'c-input__input': true,
|
|
81
|
-
'c-input__input--filled': !!this.value,
|
|
82
|
-
},
|
|
83
|
-
shared: {
|
|
84
|
-
id: this._inputId,
|
|
85
|
-
name: this.name,
|
|
86
|
-
disabled: this.disabled,
|
|
87
|
-
readonly: this.readonly,
|
|
88
|
-
value: this.value,
|
|
89
|
-
onInput: this._handleChange,
|
|
90
|
-
onChange: this._handleChange,
|
|
91
|
-
onBlur: this._handleBlur,
|
|
92
|
-
},
|
|
93
|
-
input: Object.assign(Object.assign(Object.assign({ type: this.type, min: this.min, max: this.max, step: this.step }, (!!this.autocomplete && { autocomplete: this.autocomplete })), (!!this.automaticCapitalize && {
|
|
94
|
-
autocapitalize: this.automaticCapitalize,
|
|
95
|
-
})), (!!this.autocorrect && { autocorrect: this.autocorrect })),
|
|
96
|
-
textArea: {
|
|
97
|
-
rows: this.rows,
|
|
98
|
-
},
|
|
99
|
-
};
|
|
100
|
-
const textInput = (h("input", Object.assign({ class: props.classes }, props.input, props.shared, { ref: (el) => (this._inputElement = el) })));
|
|
101
|
-
const textArea = (h("textarea", Object.assign({ class: props.classes }, props.shared, props.textArea)));
|
|
102
|
-
return this.rows > 1 ? textArea : textInput;
|
|
103
|
-
}
|
|
104
|
-
_isFirefox() {
|
|
105
|
-
return !!navigator.userAgent.match(/firefox|fxios/i);
|
|
106
|
-
}
|
|
107
|
-
_renderDateToggle() {
|
|
108
|
-
if (this._originalType !== 'date' || this._isFirefox())
|
|
109
|
-
return;
|
|
110
|
-
const classes = {
|
|
111
|
-
'c-input__date-toggle': true,
|
|
112
|
-
'c-input__date-toggle--disabled': this.disabled,
|
|
113
|
-
};
|
|
114
|
-
return (h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._toggleDatepicker.bind(this) }, h("path", { d: mdiCalendar })));
|
|
115
|
-
}
|
|
116
|
-
_toggleDatepicker() {
|
|
117
|
-
var _a;
|
|
118
|
-
(_a = this._inputElement) === null || _a === void 0 ? void 0 : _a.showPicker();
|
|
119
|
-
}
|
|
120
|
-
_renderPasswordToggle() {
|
|
121
|
-
if (this._originalType !== 'password')
|
|
122
|
-
return;
|
|
123
|
-
const classes = {
|
|
124
|
-
'c-input__password-toggle': true,
|
|
125
|
-
'c-input__password-toggle--disabled': this.disabled,
|
|
126
|
-
};
|
|
127
|
-
return (h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._togglePasswordVisibility }, h("path", { d: this.passwordIcon })));
|
|
128
|
-
}
|
|
129
|
-
render() {
|
|
130
|
-
return (h(Host, { key: 'fc0f5d30cb6d8e7d96359300b79e568f4e4c5e7c' }, h("c-input", { key: '4e30200c8f46c36454023e42ad287f3ace86c2ec', autofocus: this.automaticFocus, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, "label-on-top": this.labelOnTop, name: this.name, placeholder: this.placeholder, readonly: this.readonly, required: this.required, rows: this.rows, shadow: this.shadow, type: this.type, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value }, h("slot", { key: 'd0f32356c45e9b356bbace18f9b9ffaaded27d64', name: "pre", slot: "pre" }), this._renderInputElement(), this._renderPasswordToggle(), this._renderDateToggle(), h("slot", { key: '1e6eb44b3af9d9edb933bca28a2f60aefb0c9e1b', name: "post" }))));
|
|
131
|
-
}
|
|
132
|
-
static get formAssociated() { return true; }
|
|
133
|
-
get hiddenEl() { return this; }
|
|
134
|
-
static get style() { return cTextFieldCss; }
|
|
135
|
-
}, [65, "c-text-field", {
|
|
136
|
-
"automaticFocus": [4, "autofocus"],
|
|
137
|
-
"automaticCapitalize": [1, "autocapitalize"],
|
|
138
|
-
"autocorrect": [1],
|
|
139
|
-
"autocomplete": [1],
|
|
140
|
-
"disabled": [4],
|
|
141
|
-
"hideDetails": [4, "hide-details"],
|
|
142
|
-
"hint": [1],
|
|
143
|
-
"hostId": [1, "id"],
|
|
144
|
-
"trimWhitespace": [4, "trim-whitespace"],
|
|
145
|
-
"label": [1],
|
|
146
|
-
"labelOnTop": [4, "label-on-top"],
|
|
147
|
-
"max": [2],
|
|
148
|
-
"min": [2],
|
|
149
|
-
"name": [1],
|
|
150
|
-
"placeholder": [1],
|
|
151
|
-
"readonly": [4],
|
|
152
|
-
"required": [4],
|
|
153
|
-
"rows": [2],
|
|
154
|
-
"shadow": [4],
|
|
155
|
-
"step": [2],
|
|
156
|
-
"type": [1],
|
|
157
|
-
"valid": [4],
|
|
158
|
-
"validate": [4],
|
|
159
|
-
"validateOnBlur": [4, "validate-on-blur"],
|
|
160
|
-
"validation": [1],
|
|
161
|
-
"value": [1025],
|
|
162
|
-
"isFocused": [32],
|
|
163
|
-
"labelWidth": [32],
|
|
164
|
-
"preSlotWidth": [32]
|
|
165
|
-
}]);
|
|
166
|
-
CTextField$1._uniqueId = 0;
|
|
167
|
-
function defineCustomElement$1() {
|
|
168
|
-
if (typeof customElements === "undefined") {
|
|
169
|
-
return;
|
|
170
|
-
}
|
|
171
|
-
const components = ["c-text-field", "c-input", "c-message"];
|
|
172
|
-
components.forEach(tagName => { switch (tagName) {
|
|
173
|
-
case "c-text-field":
|
|
174
|
-
if (!customElements.get(tagName)) {
|
|
175
|
-
customElements.define(tagName, CTextField$1);
|
|
176
|
-
}
|
|
177
|
-
break;
|
|
178
|
-
case "c-input":
|
|
179
|
-
if (!customElements.get(tagName)) {
|
|
180
|
-
defineCustomElement$3();
|
|
181
|
-
}
|
|
182
|
-
break;
|
|
183
|
-
case "c-message":
|
|
184
|
-
if (!customElements.get(tagName)) {
|
|
185
|
-
defineCustomElement$2();
|
|
186
|
-
}
|
|
187
|
-
break;
|
|
188
|
-
} });
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
const CTextField = CTextField$1;
|
|
192
|
-
const defineCustomElement = defineCustomElement$1;
|
|
193
|
-
|
|
194
|
-
export { CTextField, defineCustomElement };
|
|
195
|
-
//# sourceMappingURL=c-text-field.js.map
|
|
196
|
-
|
|
197
|
-
//# sourceMappingURL=c-text-field.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"c-text-field.js","mappings":"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","names":["CTextField","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/c-text-field/c-text-field.scss?tag=c-text-field&encapsulation=shadow","src/components/c-text-field/c-text-field.tsx"],"sourcesContent":[":root,\n:host {\n /**\n * @prop --c-text-field-active-color: Active text field color\n * @prop --c-text-field-inactive-color: Inactive text field color\n * @prop --c-text-field-background-color: Inactive text field background color\n * @prop --c-text-field-text-color: Text field text color\n * @prop --c-text-field-placeholder-color:Text field placeholder color\n * @prop --c-text-field-shadow-active-color: Shadow text field active color\n * @prop --c-text-field-shadow-background-color: Shadow text field background color\n * @prop --c-text-field-shadow-text-color: Shadow text field text color\n * @prop --c-text-field-shadow-placeholder-color: Shadow text field placeholder color\n * @prop --c-text-field-label-color: Text field label color (works only with `label-on-top`)\n */\n --_c-text-field-active-color: var(--c-text-field-active-color, var(--c-primary-600));\n --_c-text-field-inactive-color: var(--c-text-field-inactive-color, var(--c-tertiary-600));\n --_c-text-field-background-color: var(--c-text-field-background-color, var(--c-transparent));\n --_c-text-field-text-color: var(--c-text-field-text-color, var(--c-text-body));\n --_c-text-field-placeholder-color: var(--c-text-field-placeholder-color, var(--c-tertiary-500));\n --_c-text-field-shadow-active-color: var(--c-text-field-shadow-active-color, var(--_c-text-field-active-color));\n --_c-text-field-shadow-background-color: var(--c-text-field-shadow-background-color, var(--c-white));\n --_c-text-field-shadow-text-color: var(--c-text-field-shadow-text-color, var(--_c-text-field-text-color));\n --_c-text-field-shadow-placeholder-color: var(--c-text-field-shadow-placeholder-color, var(--_c-text-field-placeholder-color));\n --_c-text-field-label-color: var(--c-text-field-label-color, var(--_c-text-field-text-color));\n}\n\n.c-input {\n --_c-input-active-color: var(--_c-text-field-active-color);\n --_c-input-inactive-color: var(--_c-text-field-inactive-color);\n --_c-input-background-color: var(--_c-text-field-background-color);\n --_c-input-text-color: var(--_c-text-field-text-color);\n --_c-input-label-color: var(--_c-text-field-label-color);\n --_c-input-placeholder-color: var(--_c-text-field-placeholder-color);\n --_c-input-shadow-active-color: var(--_c-text-field-shadow-active-color);\n --_c-input-shadow-background-color: var(--_c-text-field-shadow-background-color);\n --_c-input-shadow-text-color: var(--_c-text-field-shadow-text-color);\n --_c-input-shadow-placeholder-color: var(--_c-text-field-shadow-placeholder-color);\n\n &__password-toggle,\n &__date-toggle {\n cursor: pointer;\n fill: currentColor;\n height: 22px;\n width: 22px;\n\n &--disabled {\n cursor: not-allowed;\n fill: var(--c-tertiary-500);\n }\n }\n\n input {\n &[type=\"date\"] {\n opacity: 0;\n\n &::-webkit-calendar-picker-indicator,\n &::-webkit-inner-spin-button {\n display: none;\n appearance: none;\n }\n\n &:focus,\n &.c-input__input--filled {\n opacity: 1;\n }\n }\n }\n}\n","import {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n State,\n} from '@stencil/core';\nimport { mdiCalendar, mdiEye, mdiEyeOff } from '@mdi/js';\n\n/**\n * @group Form\n * @slot pre - Content added before the input\n * @slot post - Content added after the input\n */\n@Component({\n tag: 'c-text-field',\n styleUrl: 'c-text-field.scss',\n shadow: true,\n formAssociated: true,\n})\nexport class CTextField {\n // eslint-disable-next-line\n @AttachInternals() internals: ElementInternals;\n\n /**\n * Auto focus the input\n * @name autofocus\n */\n @Prop({ attribute: 'autofocus' }) automaticFocus = false;\n\n /**\n * HTML input autocapitalize\n * @name autocapitalize\n */\n @Prop({ attribute: 'autocapitalize' }) automaticCapitalize = '';\n\n /**\n * HTML input autocorrect\n */\n @Prop() autocorrect = '';\n\n /**\n * HTML input autocomplete\n */\n @Prop() autocomplete = '';\n\n /**\n * Disable the input\n */\n @Prop() disabled = false;\n\n /**\n * Hide the hint and error messages\n */\n @Prop() hideDetails = false;\n\n /**\n * Hint text for the input\n */\n @Prop() hint = '';\n\n /**\n * Id of the input\n * @name id\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Trim whitespace from the return value\n */\n @Prop() trimWhitespace = false;\n\n /**\n * Label of the input\n */\n @Prop() label: string;\n\n /**\n * Label on top of the input\n */\n @Prop() labelOnTop = false;\n\n /**\n * Maximum value on a numeric input\n */\n @Prop() max: number = null;\n\n /**\n * Minimum value on a numeric input\n */\n @Prop() min: number = null;\n\n /**\n * Name of the input\n */\n @Prop() name: string;\n\n /**\n * Placeholder of the input\n */\n @Prop() placeholder: string;\n\n /**\n * Mark as readonly\n */\n @Prop() readonly = false;\n\n /**\n * Set the input as required\n */\n @Prop() required = false;\n\n /**\n * Rows on the input\n */\n @Prop() rows = 1;\n\n /**\n * Shadow variant of the input\n */\n @Prop() shadow = false;\n\n /**\n * Step size on a numeric input\n */\n @Prop() step: number = null;\n\n /**\n * Type of the input\n */\n @Prop() type = 'text';\n\n /**\n * Set the validity of the input\n */\n @Prop() valid = true;\n\n /**\n * Manual validation\n */\n @Prop() validate = false;\n\n /**\n * Validate the input on blur\n */\n @Prop() validateOnBlur = false;\n\n /**\n * Custom validation message\n */\n @Prop() validation = 'Required field';\n\n /**\n * Value of the input\n */\n @Prop({ mutable: true }) value: string;\n\n /**\n * Emit changes to the parent\n */\n @Event({ bubbles: false })\n changeValue: EventEmitter;\n\n @State() isFocused = false;\n\n @State() labelWidth = 0;\n\n @State() preSlotWidth = 0;\n\n @Element() hiddenEl!: HTMLCTextFieldElement;\n\n private _inputElement: HTMLInputElement;\n\n private _originalType = '';\n\n private _inputId: string;\n\n private static _uniqueId = 0;\n\n componentWillLoad() {\n CTextField._uniqueId += 1;\n\n this._originalType = this.type;\n\n this._inputId = `${(\n this.hostId ||\n this.label ||\n this.placeholder ||\n ''\n ).replace(/[^a-zA-Z0-9-_]/g, '')}_${CTextField._uniqueId}`;\n\n this.internals.setFormValue(this.value);\n }\n\n get isActive() {\n return !!this.value || this.isFocused;\n }\n\n get passwordIcon() {\n return this.type === 'password' ? mdiEye : mdiEyeOff;\n }\n\n private _handleChange = (event) => {\n if (this.type === 'number' && !event.target.value && event.key === '-') {\n return;\n }\n\n this.value = this.trimWhitespace\n ? event.target.value.trim()\n : event.target.value;\n\n this.changeValue.emit(this.value);\n this.internals.setFormValue(this.value);\n };\n\n private _handleBlur = (event) => {\n if (this.trimWhitespace) {\n const trimmedValue = event.target.value.trim();\n\n event.target.value = trimmedValue;\n }\n };\n\n private _renderInputElement() {\n const props = {\n classes: {\n 'c-input__input': true,\n 'c-input__input--filled': !!this.value,\n },\n shared: {\n id: this._inputId,\n name: this.name,\n disabled: this.disabled,\n readonly: this.readonly,\n value: this.value,\n onInput: this._handleChange,\n onChange: this._handleChange,\n onBlur: this._handleBlur,\n },\n input: {\n type: this.type,\n min: this.min,\n max: this.max,\n step: this.step,\n ...(!!this.autocomplete && { autocomplete: this.autocomplete }),\n ...(!!this.automaticCapitalize && {\n autocapitalize: this.automaticCapitalize,\n }),\n ...(!!this.autocorrect && { autocorrect: this.autocorrect }),\n },\n textArea: {\n rows: this.rows,\n },\n };\n\n const textInput = (\n <input\n class={props.classes}\n {...props.input}\n {...props.shared}\n ref={(el) => (this._inputElement = el)}\n />\n );\n\n const textArea = (\n <textarea\n class={props.classes}\n {...props.shared}\n {...props.textArea}\n ></textarea>\n );\n\n return this.rows > 1 ? textArea : textInput;\n }\n\n private _isFirefox() {\n return !!navigator.userAgent.match(/firefox|fxios/i);\n }\n\n private _renderDateToggle() {\n if (this._originalType !== 'date' || this._isFirefox()) return;\n\n const classes = {\n 'c-input__date-toggle': true,\n 'c-input__date-toggle--disabled': this.disabled,\n };\n\n return (\n <svg\n class={classes}\n viewBox=\"0 0 24 24\"\n onClick={this._toggleDatepicker.bind(this)}\n >\n <path d={mdiCalendar} />\n </svg>\n );\n }\n\n private _toggleDatepicker() {\n this._inputElement?.showPicker();\n }\n\n private _renderPasswordToggle() {\n if (this._originalType !== 'password') return;\n\n const classes = {\n 'c-input__password-toggle': true,\n 'c-input__password-toggle--disabled': this.disabled,\n };\n\n return (\n <svg\n class={classes}\n viewBox=\"0 0 24 24\"\n onClick={this._togglePasswordVisibility}\n >\n <path d={this.passwordIcon} />\n </svg>\n );\n }\n\n private _togglePasswordVisibility = () => {\n if (this.disabled) return;\n\n this.type = this.type === 'password' ? 'text' : 'password';\n };\n\n render() {\n return (\n <Host>\n <c-input\n autofocus={this.automaticFocus}\n disabled={this.disabled}\n hide-details={this.hideDetails}\n hint={this.hint}\n id={this.hostId}\n input-id={this._inputId}\n label={this.label}\n label-on-top={this.labelOnTop}\n name={this.name}\n placeholder={this.placeholder}\n readonly={this.readonly}\n required={this.required}\n rows={this.rows}\n shadow={this.shadow}\n type={this.type}\n valid={this.valid}\n validate={this.validate}\n validate-on-blur={this.validateOnBlur}\n validation={this.validation}\n value={this.value}\n >\n <slot name=\"pre\" slot=\"pre\"></slot>\n\n {this._renderInputElement()}\n\n {this._renderPasswordToggle()}\n\n {this._renderDateToggle()}\n\n <slot name=\"post\"></slot>\n </c-input>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface CToast extends Components.CToast, HTMLElement {}
|
|
4
|
-
export const CToast: {
|
|
5
|
-
prototype: CToast;
|
|
6
|
-
new (): CToast;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { C as CToast$1, d as defineCustomElement$1 } from './p-BDgw4nNJ.js';
|
|
2
|
-
|
|
3
|
-
const CToast = CToast$1;
|
|
4
|
-
const defineCustomElement = defineCustomElement$1;
|
|
5
|
-
|
|
6
|
-
export { CToast, defineCustomElement };
|
|
7
|
-
//# sourceMappingURL=c-toast.js.map
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=c-toast.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"c-toast.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface CToasts extends Components.CToasts, HTMLElement {}
|
|
4
|
-
export const CToasts: {
|
|
5
|
-
prototype: CToasts;
|
|
6
|
-
new (): CToasts;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h, d as Host } from './p-Fv9YCUj3.js';
|
|
2
|
-
import { d as defineCustomElement$3 } from './p-Cmy8x1XB.js';
|
|
3
|
-
import { d as defineCustomElement$2 } from './p-BDgw4nNJ.js';
|
|
4
|
-
|
|
5
|
-
var CToastType;
|
|
6
|
-
(function (CToastType) {
|
|
7
|
-
CToastType["Warning"] = "warning";
|
|
8
|
-
CToastType["Error"] = "error";
|
|
9
|
-
CToastType["Success"] = "success";
|
|
10
|
-
CToastType["Info"] = "info";
|
|
11
|
-
})(CToastType || (CToastType = {}));
|
|
12
|
-
var CToastPosition;
|
|
13
|
-
(function (CToastPosition) {
|
|
14
|
-
CToastPosition["Absolute"] = "absolute";
|
|
15
|
-
CToastPosition["Fixed"] = "fixed";
|
|
16
|
-
})(CToastPosition || (CToastPosition = {}));
|
|
17
|
-
var CAlertType;
|
|
18
|
-
(function (CAlertType) {
|
|
19
|
-
CAlertType["Warning"] = "warning";
|
|
20
|
-
CAlertType["Error"] = "error";
|
|
21
|
-
CAlertType["Success"] = "success";
|
|
22
|
-
CAlertType["Info"] = "info";
|
|
23
|
-
})(CAlertType || (CAlertType = {}));
|
|
24
|
-
|
|
25
|
-
const cToastsCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{left:0;max-width:100%;min-width:30vw;pointer-events:none;position:fixed;right:0;width:640px;z-index:10000}:host>div{display:grid;gap:12px;grid-template-columns:1fr;padding:12px}:host(.absolute){position:absolute}:host(.bottom){bottom:0}:host(.top){top:0}:host(.right){justify-content:end;left:auto;right:0}:host(.left){justify-content:start;left:0;right:auto}:host(.center){justify-content:center;margin:0 auto !important}";
|
|
26
|
-
|
|
27
|
-
const CToasts$1 = proxyCustomElement(class CToasts extends H {
|
|
28
|
-
constructor() {
|
|
29
|
-
super();
|
|
30
|
-
this.__registerHost();
|
|
31
|
-
this.__attachShadow();
|
|
32
|
-
this.absolute = false;
|
|
33
|
-
this.horizontal = 'center';
|
|
34
|
-
this.vertical = 'bottom';
|
|
35
|
-
this.messages = [];
|
|
36
|
-
this._getDefaultOptions = () => ({
|
|
37
|
-
type: CToastType.Info,
|
|
38
|
-
duration: 6000,
|
|
39
|
-
persistent: false,
|
|
40
|
-
indeterminate: false,
|
|
41
|
-
position: CToastPosition.Fixed,
|
|
42
|
-
progress: false,
|
|
43
|
-
id: `c-toast-item-${CToasts._uniqueId}`,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
async addToast(message) {
|
|
47
|
-
const customMessages = this.messages.filter((message) => message.custom);
|
|
48
|
-
if (message.custom && customMessages.length > 0) {
|
|
49
|
-
console.warn(`Custom toast messages are restricted to 1 visible message due to slot reflection limitations.`);
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
CToasts._uniqueId += 1;
|
|
53
|
-
requestAnimationFrame(() => {
|
|
54
|
-
const defaultOptions = this._getDefaultOptions();
|
|
55
|
-
this.messages = [
|
|
56
|
-
...this.messages,
|
|
57
|
-
Object.assign(Object.assign(Object.assign({}, defaultOptions), message), { duration: +(message === null || message === void 0 ? void 0 : message.duration) > 0
|
|
58
|
-
? +message.duration
|
|
59
|
-
: defaultOptions.duration }),
|
|
60
|
-
];
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
async removeToast(id) {
|
|
65
|
-
const toast = this.el.shadowRoot.querySelector(`#c-toast--${id}`);
|
|
66
|
-
toast === null || toast === void 0 ? void 0 : toast.closeToast();
|
|
67
|
-
}
|
|
68
|
-
_onMessageClose(event) {
|
|
69
|
-
this._removeMessage(event.detail.id);
|
|
70
|
-
}
|
|
71
|
-
_removeMessage(id) {
|
|
72
|
-
const toast = this.el.shadowRoot.querySelector(`#c-toast--${id}`);
|
|
73
|
-
toast === null || toast === void 0 ? void 0 : toast.remove();
|
|
74
|
-
const messageCount = this.el.shadowRoot.querySelectorAll('c-toast').length;
|
|
75
|
-
if (messageCount === 0) {
|
|
76
|
-
this.messages = [].slice();
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
_renderMessage(message) {
|
|
80
|
-
return (h("c-toast", { message: message, onClose: (e) => this._onMessageClose(e) }, message.custom && h("slot", null)));
|
|
81
|
-
}
|
|
82
|
-
componentWillLoad() {
|
|
83
|
-
CToasts._uniqueId += 1;
|
|
84
|
-
}
|
|
85
|
-
render() {
|
|
86
|
-
return (h(Host, { key: '6dd7f4433e71d10e65b5bd7ca99c209841a665d7', class: {
|
|
87
|
-
absolute: this.absolute,
|
|
88
|
-
[this.vertical]: true,
|
|
89
|
-
[this.horizontal]: true,
|
|
90
|
-
} }, h("div", { key: 'e4c3ab0722789255b2aeb1b1e2e02d732d8e08cd' }, this.messages.map((message) => this._renderMessage(message)))));
|
|
91
|
-
}
|
|
92
|
-
get el() { return this; }
|
|
93
|
-
static get style() { return cToastsCss; }
|
|
94
|
-
}, [1, "c-toasts", {
|
|
95
|
-
"absolute": [4],
|
|
96
|
-
"horizontal": [1],
|
|
97
|
-
"vertical": [1],
|
|
98
|
-
"messages": [32],
|
|
99
|
-
"addToast": [64],
|
|
100
|
-
"removeToast": [64]
|
|
101
|
-
}]);
|
|
102
|
-
CToasts$1._uniqueId = 0;
|
|
103
|
-
function defineCustomElement$1() {
|
|
104
|
-
if (typeof customElements === "undefined") {
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
const components = ["c-toasts", "c-icon", "c-toast"];
|
|
108
|
-
components.forEach(tagName => { switch (tagName) {
|
|
109
|
-
case "c-toasts":
|
|
110
|
-
if (!customElements.get(tagName)) {
|
|
111
|
-
customElements.define(tagName, CToasts$1);
|
|
112
|
-
}
|
|
113
|
-
break;
|
|
114
|
-
case "c-icon":
|
|
115
|
-
if (!customElements.get(tagName)) {
|
|
116
|
-
defineCustomElement$3();
|
|
117
|
-
}
|
|
118
|
-
break;
|
|
119
|
-
case "c-toast":
|
|
120
|
-
if (!customElements.get(tagName)) {
|
|
121
|
-
defineCustomElement$2();
|
|
122
|
-
}
|
|
123
|
-
break;
|
|
124
|
-
} });
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
const CToasts = CToasts$1;
|
|
128
|
-
const defineCustomElement = defineCustomElement$1;
|
|
129
|
-
|
|
130
|
-
export { CToastType as C, CToasts, CToastPosition as a, CAlertType as b, defineCustomElement };
|
|
131
|
-
//# sourceMappingURL=c-toasts.js.map
|
|
132
|
-
|
|
133
|
-
//# sourceMappingURL=c-toasts.js.map
|