@cupra/ui-kit 1.0.0-canary.1 → 1.0.0-canary.11
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 +24 -16
- package/dist/components/base/DsUiElement.js +47 -0
- package/dist/components/base/UiKitElement.js +80 -0
- package/dist/components/base/ds-base-input/ds-base-input.js +112 -0
- package/dist/components/base/ds-base-input/styles/common.styles.js +63 -0
- package/dist/components/base/ds-base-input/styles/cupra.styles.js +124 -0
- package/dist/components/base/ds-base-progress-bar/ds-base-progress-bar.js +64 -0
- package/dist/components/base/ds-base-progress-bar/styles/common.styles.js +22 -0
- package/dist/components/base/ds-base-progress-bar/styles/cupra-diagonal.styles.js +27 -0
- package/dist/components/base/ds-base-progress-bar/styles/cupra.styles.js +27 -0
- package/dist/components/base/ds-base-progress-bar/styles/seat.styles.js +8 -0
- package/dist/components/ds-accordion/ds-accordion.js +124 -0
- package/dist/components/ds-accordion/styles/common.styles.js +64 -0
- package/dist/components/ds-accordion/theme-config.js +26 -0
- package/dist/components/ds-avatar/ds-avatar.js +102 -0
- package/dist/components/ds-avatar/styles/common.styles.js +12 -0
- package/dist/components/ds-bullets/ds-bullets.js +79 -0
- package/dist/components/ds-bullets/styles/common.styles.js +26 -0
- package/dist/components/ds-button/ds-button.js +196 -0
- package/dist/components/ds-button/styles/common.styles.js +116 -0
- package/dist/components/ds-carousel-indicator/ds-carousel-indicator.js +63 -0
- package/dist/components/ds-carousel-indicator/styles/common.styles.js +19 -0
- package/dist/components/ds-checkbox/ds-checkbox.js +142 -0
- package/dist/components/ds-checkbox/styles/common.styles.js +60 -0
- package/dist/components/ds-chip/ds-chip.js +130 -0
- package/dist/components/ds-chip/styles/common.styles.js +25 -0
- package/dist/components/ds-chips/ds-chips.js +143 -0
- package/dist/components/ds-chips/styles/common.styles.js +78 -0
- package/dist/components/ds-currency/ds-currency.js +139 -0
- package/dist/components/ds-currency/styles/common.styles.js +17 -0
- package/dist/components/ds-dialog/ds-dialog.js +107 -0
- package/dist/components/ds-dialog/styles/common.styles.js +82 -0
- package/dist/components/ds-dialog-body/ds-dialog-body.js +46 -0
- package/dist/components/ds-dialog-body/styles/common.styles.js +12 -0
- package/dist/components/ds-dialog-footer/ds-dialog-footer.js +47 -0
- package/dist/components/ds-dialog-footer/styles/common.styles.js +16 -0
- package/dist/components/ds-dialog-header/ds-dialog-header.js +68 -0
- package/dist/components/ds-dialog-header/styles/common.styles.js +12 -0
- package/dist/components/ds-divider/ds-divider.js +58 -0
- package/dist/components/ds-divider/styles/common.styles.js +13 -0
- package/dist/components/ds-hyperlink/ds-hyperlink.js +93 -0
- package/dist/components/ds-hyperlink/styles/common.styles.js +22 -0
- package/dist/components/ds-icon/Icons.type.d.ts +1 -1
- package/dist/components/ds-icon/ds-icon.js +100 -0
- package/dist/components/ds-icon/iconNames.d.ts +1 -1
- package/dist/components/ds-icon/iconNames.js +394 -0
- package/dist/components/ds-icon-button/ds-icon-button.js +138 -0
- package/dist/components/ds-icon-button/styles/common.styles.js +24 -0
- package/dist/components/ds-input/ds-input.js +138 -0
- package/dist/components/ds-interactive-card/ds-interactive-card.js +90 -0
- package/dist/components/ds-interactive-card/styles/common.styles.js +12 -0
- package/dist/components/ds-link-button/ds-link-button.js +120 -0
- package/dist/components/ds-link-button/styles/common.styles.js +24 -0
- package/dist/components/ds-loader-bar/ds-loader-bar.js +23 -0
- package/dist/components/ds-loader-bar/styles/common.styles.js +23 -0
- package/dist/components/ds-loader-dots/ds-loader-dots.js +62 -0
- package/dist/components/ds-loader-dots/styles/common.styles.js +35 -0
- package/dist/components/ds-loader-logo/ds-loader-logo.js +65 -0
- package/dist/components/ds-loader-logo/ds-loader-logo.styles.js +67 -0
- package/dist/components/ds-loader-spinner/ds-loader-spinner.js +53 -0
- package/dist/components/ds-loader-spinner/styles/common.styles.js +56 -0
- package/dist/components/ds-logo/ds-logo.js +69 -0
- package/dist/components/ds-logo/styles/common.styles.js +18 -0
- package/dist/components/ds-map-pin/ds-map-pin.js +116 -0
- package/dist/components/ds-map-pin/styles/common.styles.js +43 -0
- package/dist/components/ds-modal/ds-modal.js +215 -0
- package/dist/components/ds-modal/styles/common.styles.js +289 -0
- package/dist/components/ds-password-input/ds-password-input.js +43 -0
- package/dist/components/ds-picker-item/ds-picker-item.js +89 -0
- package/dist/components/ds-picker-item/styles/common.styles.js +12 -0
- package/dist/components/ds-portal/ds-portal.js +41 -0
- package/dist/components/ds-progress-bar/ds-progress-bar.js +34 -0
- package/dist/components/ds-progress-bar/styles/common.styles.js +12 -0
- package/dist/components/ds-radio/ds-radio.js +111 -0
- package/dist/components/ds-radio/styles/common.styles.js +44 -0
- package/dist/components/ds-radio-button/ds-radio-button.js +185 -0
- package/dist/components/ds-radio-button/styles/common.styles.js +52 -0
- package/dist/components/ds-radio-button-group/ds-radio-button-group.js +83 -0
- package/dist/components/ds-radio-button-group/styles/common.styles.js +25 -0
- package/dist/components/ds-radio-group/ds-radio-group.js +79 -0
- package/dist/components/ds-radio-group/ds-radio-group.styles.js +21 -0
- package/dist/components/ds-search/ds-search.js +210 -0
- package/dist/components/ds-search/styles/common.styles.js +61 -0
- package/dist/components/ds-search-input/ds-search-input.js +158 -0
- package/dist/components/ds-search-input/styles/common.styles.js +12 -0
- package/dist/components/ds-secondary-navigation/ds-secondary-navigation.js +233 -0
- package/dist/components/ds-secondary-navigation/styles/common.styles.js +12 -0
- package/dist/components/ds-segmented-control/ds-segmented-control.js +71 -0
- package/dist/components/ds-segmented-control/styles/common.styles.js +56 -0
- package/dist/components/ds-select/controllers/SelectKeyboardController.js +33 -0
- package/dist/components/ds-select/ds-select.js +274 -0
- package/dist/components/ds-select/styles/common.styles.js +29 -0
- package/dist/components/ds-selection/ds-selection.js +57 -0
- package/dist/components/ds-selection/styles/common.styles.js +17 -0
- package/dist/components/ds-sidebar-navigation/ds-sidebar-navigation.js +102 -0
- package/dist/components/ds-sidebar-navigation/styles/common.styles.js +25 -0
- package/dist/components/ds-slider/ds-slider.js +409 -0
- package/dist/components/ds-slider/styles/common.styles.js +61 -0
- package/dist/components/ds-slider/utils/getStepValue/getStepValue.js +28 -0
- package/dist/components/ds-slider/utils/roundToDecimals/roundToDecimals.js +7 -0
- package/dist/components/ds-static-box/ds-static-box.js +77 -0
- package/dist/components/ds-static-box/styles/common.styles.js +12 -0
- package/dist/components/ds-stepper/ds-stepper.js +57 -0
- package/dist/components/ds-stepper/styles/common.styles.js +12 -0
- package/dist/components/ds-tabs/ds-tabs.js +203 -0
- package/dist/components/ds-tabs/styles/common.styles.js +97 -0
- package/dist/components/ds-tabs/theme-config.js +14 -0
- package/dist/components/ds-tag/ds-tag.js +87 -0
- package/dist/components/ds-tag/styles/common.styles.js +20 -0
- package/dist/components/ds-text/ds-text.js +83 -0
- package/dist/components/ds-text/styles/common.styles.js +29 -0
- package/dist/components/ds-text-input/ds-text-input.js +100 -0
- package/dist/components/ds-text-input/styles/common.styles.js +12 -0
- package/dist/components/ds-textarea/ds-textarea.js +87 -0
- package/dist/components/ds-textarea/styles/common.styles.js +12 -0
- package/dist/components/ds-theme-provider/ds-theme-provider.js +89 -0
- package/dist/components/ds-theme-provider/themeContext.js +5 -0
- package/dist/components/ds-toast/ds-toast.js +95 -0
- package/dist/components/ds-toast/styles/common.styles.js +112 -0
- package/dist/components/ds-toast/utils/ToastManager.js +48 -0
- package/dist/components/ds-toast-message/ds-toast-message.js +103 -0
- package/dist/components/ds-toast-message/styles/common.styles.js +12 -0
- package/dist/components/ds-toggle-button/ds-toggle-button.js +73 -0
- package/dist/components/ds-toggle-switch/ds-toggle-switch.js +100 -0
- package/dist/components/ds-toggle-switch/styles/common.styles.js +47 -0
- package/dist/components/ds-tooltip/ds-tooltip.js +198 -0
- package/dist/components/ds-tooltip/styles/common.styles.js +163 -0
- package/dist/decorators/customUiKitElement.js +23 -0
- package/dist/index.js +58 -9693
- package/dist/mixins/FormAssociatedMixin.js +14 -0
- package/dist/mixins/ViewportMixin.js +32 -0
- package/dist/mixins/inputStatesMixin.js +46 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/context-request-event.js +13 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/controllers/context-consumer.js +29 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/controllers/context-provider.js +37 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/create-context.js +11 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/consume.js +22 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/provide.js +42 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/value-notifier.js +36 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js +50 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/base.js +9 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js +37 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +19 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js +19 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query.js +20 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js +12 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js +252 -0
- package/dist/node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js +51 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive-helpers.js +37 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive.js +27 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/choose.js +12 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js +34 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/if-defined.js +10 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/repeat.js +61 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/unsafe-html.js +27 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/when.js +11 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js +243 -0
- package/dist/styles/fonts-config.js +28 -0
- package/dist/utils/IconsManager.js +30 -0
- package/dist/utils/PubSub.js +28 -0
- package/dist/utils/StylesRegistry/StylesRegistry.js +32 -0
- package/dist/utils/arrayConverter.js +19 -0
- package/dist/utils/booleanConverter.js +4 -0
- package/dist/utils/componentFactory.js +167 -0
- package/dist/utils/cssQueries.js +16 -0
- package/dist/utils/cssWithTokens.js +11 -0
- package/dist/utils/formatNumber/formatNumber.js +54 -0
- package/dist/utils/htmlWithTokens.js +11 -0
- package/dist/utils/objectConverter.js +11 -0
- package/dist/utils/validateMaxLength.js +6 -0
- package/dist-react/components/base/DsUiElement.js +47 -0
- package/dist-react/components/base/UiKitElement.js +80 -0
- package/dist-react/components/base/ds-base-input/ds-base-input.js +112 -0
- package/dist-react/components/base/ds-base-input/styles/common.styles.js +63 -0
- package/dist-react/components/base/ds-base-input/styles/cupra.styles.js +124 -0
- package/dist-react/components/base/ds-base-progress-bar/ds-base-progress-bar.js +64 -0
- package/dist-react/components/base/ds-base-progress-bar/styles/common.styles.js +22 -0
- package/dist-react/components/base/ds-base-progress-bar/styles/cupra-diagonal.styles.js +27 -0
- package/dist-react/components/base/ds-base-progress-bar/styles/cupra.styles.js +27 -0
- package/dist-react/components/base/ds-base-progress-bar/styles/seat.styles.js +8 -0
- package/dist-react/components/ds-accordion/ds-accordion.js +124 -0
- package/dist-react/components/ds-accordion/styles/common.styles.js +64 -0
- package/dist-react/components/ds-accordion/theme-config.js +26 -0
- package/dist-react/components/ds-avatar/ds-avatar.js +102 -0
- package/dist-react/components/ds-avatar/styles/common.styles.js +12 -0
- package/dist-react/components/ds-bullets/ds-bullets.js +79 -0
- package/dist-react/components/ds-bullets/styles/common.styles.js +26 -0
- package/dist-react/components/ds-button/ds-button.js +196 -0
- package/dist-react/components/ds-button/styles/common.styles.js +116 -0
- package/dist-react/components/ds-carousel-indicator/ds-carousel-indicator.js +63 -0
- package/dist-react/components/ds-carousel-indicator/styles/common.styles.js +19 -0
- package/dist-react/components/ds-checkbox/ds-checkbox.js +142 -0
- package/dist-react/components/ds-checkbox/styles/common.styles.js +60 -0
- package/dist-react/components/ds-chip/ds-chip.js +130 -0
- package/dist-react/components/ds-chip/styles/common.styles.js +25 -0
- package/dist-react/components/ds-chips/ds-chips.js +143 -0
- package/dist-react/components/ds-chips/styles/common.styles.js +78 -0
- package/dist-react/components/ds-currency/ds-currency.js +139 -0
- package/dist-react/components/ds-currency/styles/common.styles.js +17 -0
- package/dist-react/components/ds-dialog/ds-dialog.js +107 -0
- package/dist-react/components/ds-dialog/styles/common.styles.js +82 -0
- package/dist-react/components/ds-dialog-body/ds-dialog-body.js +46 -0
- package/dist-react/components/ds-dialog-body/styles/common.styles.js +12 -0
- package/dist-react/components/ds-dialog-footer/ds-dialog-footer.js +47 -0
- package/dist-react/components/ds-dialog-footer/styles/common.styles.js +16 -0
- package/dist-react/components/ds-dialog-header/ds-dialog-header.js +68 -0
- package/dist-react/components/ds-dialog-header/styles/common.styles.js +12 -0
- package/dist-react/components/ds-divider/ds-divider.js +58 -0
- package/dist-react/components/ds-divider/styles/common.styles.js +13 -0
- package/dist-react/components/ds-hyperlink/ds-hyperlink.js +93 -0
- package/dist-react/components/ds-hyperlink/styles/common.styles.js +22 -0
- package/dist-react/components/ds-icon/Icons.type.d.ts +1 -1
- package/dist-react/components/ds-icon/ds-icon.js +100 -0
- package/dist-react/components/ds-icon/iconNames.d.ts +1 -1
- package/dist-react/components/ds-icon/iconNames.js +394 -0
- package/dist-react/components/ds-icon-button/ds-icon-button.js +138 -0
- package/dist-react/components/ds-icon-button/styles/common.styles.js +24 -0
- package/dist-react/components/ds-input/ds-input.js +138 -0
- package/dist-react/components/ds-interactive-card/ds-interactive-card.js +90 -0
- package/dist-react/components/ds-interactive-card/styles/common.styles.js +12 -0
- package/dist-react/components/ds-link-button/ds-link-button.js +120 -0
- package/dist-react/components/ds-link-button/styles/common.styles.js +24 -0
- package/dist-react/components/ds-loader-bar/ds-loader-bar.js +23 -0
- package/dist-react/components/ds-loader-bar/styles/common.styles.js +23 -0
- package/dist-react/components/ds-loader-dots/ds-loader-dots.js +62 -0
- package/dist-react/components/ds-loader-dots/styles/common.styles.js +35 -0
- package/dist-react/components/ds-loader-logo/ds-loader-logo.js +65 -0
- package/dist-react/components/ds-loader-logo/ds-loader-logo.styles.js +67 -0
- package/dist-react/components/ds-loader-spinner/ds-loader-spinner.js +53 -0
- package/dist-react/components/ds-loader-spinner/styles/common.styles.js +56 -0
- package/dist-react/components/ds-logo/ds-logo.js +69 -0
- package/dist-react/components/ds-logo/styles/common.styles.js +18 -0
- package/dist-react/components/ds-map-pin/ds-map-pin.js +116 -0
- package/dist-react/components/ds-map-pin/styles/common.styles.js +43 -0
- package/dist-react/components/ds-modal/ds-modal.js +215 -0
- package/dist-react/components/ds-modal/styles/common.styles.js +289 -0
- package/dist-react/components/ds-password-input/ds-password-input.js +43 -0
- package/dist-react/components/ds-picker-item/ds-picker-item.js +89 -0
- package/dist-react/components/ds-picker-item/styles/common.styles.js +12 -0
- package/dist-react/components/ds-portal/ds-portal.js +41 -0
- package/dist-react/components/ds-progress-bar/ds-progress-bar.js +34 -0
- package/dist-react/components/ds-progress-bar/styles/common.styles.js +12 -0
- package/dist-react/components/ds-radio/ds-radio.js +111 -0
- package/dist-react/components/ds-radio/styles/common.styles.js +44 -0
- package/dist-react/components/ds-radio-button/ds-radio-button.js +185 -0
- package/dist-react/components/ds-radio-button/styles/common.styles.js +52 -0
- package/dist-react/components/ds-radio-button-group/ds-radio-button-group.js +83 -0
- package/dist-react/components/ds-radio-button-group/styles/common.styles.js +25 -0
- package/dist-react/components/ds-radio-group/ds-radio-group.js +79 -0
- package/dist-react/components/ds-radio-group/ds-radio-group.styles.js +21 -0
- package/dist-react/components/ds-search/ds-search.js +210 -0
- package/dist-react/components/ds-search/styles/common.styles.js +61 -0
- package/dist-react/components/ds-search-input/ds-search-input.js +158 -0
- package/dist-react/components/ds-search-input/styles/common.styles.js +12 -0
- package/dist-react/components/ds-secondary-navigation/ds-secondary-navigation.js +233 -0
- package/dist-react/components/ds-secondary-navigation/styles/common.styles.js +12 -0
- package/dist-react/components/ds-segmented-control/ds-segmented-control.js +71 -0
- package/dist-react/components/ds-segmented-control/styles/common.styles.js +56 -0
- package/dist-react/components/ds-select/controllers/SelectKeyboardController.js +33 -0
- package/dist-react/components/ds-select/ds-select.js +274 -0
- package/dist-react/components/ds-select/styles/common.styles.js +29 -0
- package/dist-react/components/ds-selection/ds-selection.js +57 -0
- package/dist-react/components/ds-selection/styles/common.styles.js +17 -0
- package/dist-react/components/ds-sidebar-navigation/ds-sidebar-navigation.js +102 -0
- package/dist-react/components/ds-sidebar-navigation/styles/common.styles.js +25 -0
- package/dist-react/components/ds-slider/ds-slider.js +409 -0
- package/dist-react/components/ds-slider/styles/common.styles.js +61 -0
- package/dist-react/components/ds-slider/utils/getStepValue/getStepValue.js +28 -0
- package/dist-react/components/ds-slider/utils/roundToDecimals/roundToDecimals.js +7 -0
- package/dist-react/components/ds-static-box/ds-static-box.js +77 -0
- package/dist-react/components/ds-static-box/styles/common.styles.js +12 -0
- package/dist-react/components/ds-stepper/ds-stepper.js +57 -0
- package/dist-react/components/ds-stepper/styles/common.styles.js +12 -0
- package/dist-react/components/ds-tabs/ds-tabs.js +203 -0
- package/dist-react/components/ds-tabs/styles/common.styles.js +97 -0
- package/dist-react/components/ds-tabs/theme-config.js +14 -0
- package/dist-react/components/ds-tag/ds-tag.js +87 -0
- package/dist-react/components/ds-tag/styles/common.styles.js +20 -0
- package/dist-react/components/ds-text/ds-text.js +83 -0
- package/dist-react/components/ds-text/styles/common.styles.js +29 -0
- package/dist-react/components/ds-text-input/ds-text-input.js +100 -0
- package/dist-react/components/ds-text-input/styles/common.styles.js +12 -0
- package/dist-react/components/ds-textarea/ds-textarea.js +87 -0
- package/dist-react/components/ds-textarea/styles/common.styles.js +12 -0
- package/dist-react/components/ds-theme-provider/ds-theme-provider.js +89 -0
- package/dist-react/components/ds-theme-provider/themeContext.js +5 -0
- package/dist-react/components/ds-toast/ds-toast.js +95 -0
- package/dist-react/components/ds-toast/styles/common.styles.js +112 -0
- package/dist-react/components/ds-toast/utils/ToastManager.js +48 -0
- package/dist-react/components/ds-toast-message/ds-toast-message.js +103 -0
- package/dist-react/components/ds-toast-message/styles/common.styles.js +12 -0
- package/dist-react/components/ds-toggle-button/ds-toggle-button.js +73 -0
- package/dist-react/components/ds-toggle-switch/ds-toggle-switch.js +100 -0
- package/dist-react/components/ds-toggle-switch/styles/common.styles.js +47 -0
- package/dist-react/components/ds-tooltip/ds-tooltip.js +198 -0
- package/dist-react/components/ds-tooltip/styles/common.styles.js +163 -0
- package/dist-react/decorators/customUiKitElement.js +23 -0
- package/dist-react/index.js +58 -9618
- package/dist-react/mixins/FormAssociatedMixin.js +14 -0
- package/dist-react/mixins/ViewportMixin.js +32 -0
- package/dist-react/mixins/inputStatesMixin.js +46 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/context-request-event.js +13 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/controllers/context-consumer.js +29 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/controllers/context-provider.js +37 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/create-context.js +11 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/consume.js +22 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/provide.js +42 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/value-notifier.js +36 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js +50 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/base.js +9 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js +37 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +19 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js +19 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query.js +20 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js +12 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js +252 -0
- package/dist-react/node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js +51 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive-helpers.js +37 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive.js +27 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/choose.js +12 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js +34 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/if-defined.js +10 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/repeat.js +61 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/unsafe-html.js +27 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/when.js +11 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js +243 -0
- package/dist-react/styles/fonts-config.js +28 -0
- package/dist-react/utils/IconsManager.js +30 -0
- package/dist-react/utils/PubSub.js +28 -0
- package/dist-react/utils/StylesRegistry/StylesRegistry.js +32 -0
- package/dist-react/utils/arrayConverter.js +19 -0
- package/dist-react/utils/booleanConverter.js +4 -0
- package/dist-react/utils/componentFactory.js +90 -0
- package/dist-react/utils/cssQueries.js +16 -0
- package/dist-react/utils/cssWithTokens.js +11 -0
- package/dist-react/utils/formatNumber/formatNumber.js +54 -0
- package/dist-react/utils/htmlWithTokens.js +11 -0
- package/dist-react/utils/objectConverter.js +11 -0
- package/dist-react/utils/validateMaxLength.js +6 -0
- package/package.json +20 -6
- /package/{THIRD-PARTY-LICENSES.MD → THIRD_PARTY_LICENSES.MD} +0 -0
package/README.md
CHANGED
|
@@ -115,48 +115,56 @@ How to consume the package, either through the CDN or your application build.
|
|
|
115
115
|
<script src="https://ds-assets.cupra.com/[version]/dist/index.iife.js"></script>
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
-
2)
|
|
118
|
+
2) Wrap your UI with the theme provider.
|
|
119
119
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
3) Wrap your UI with the theme provider.
|
|
125
|
-
`load-fonts` and `load-styles` control whether the provider loads assets automatically.
|
|
120
|
+
`load-fonts` and `load-styles` control whether the provider loads assets automatically.
|
|
121
|
+
Replace `[theme]` with your theme name (e.g. `cupra-diagonal`).
|
|
126
122
|
|
|
127
123
|
```html
|
|
128
|
-
<ds-theme-provider theme="
|
|
124
|
+
<ds-theme-provider theme="[theme]" load-fonts="true" load-styles="true">
|
|
129
125
|
<ds-button variant="destructive" icon-name="filters-background">Hello</ds-button>
|
|
130
126
|
<ds-icon icon-name="filters-background"></ds-icon>
|
|
131
127
|
</ds-theme-provider>
|
|
132
128
|
```
|
|
133
129
|
|
|
134
130
|
**Performance note:**
|
|
135
|
-
For optimal behaviour, manually preload the
|
|
131
|
+
For optimal behaviour, manually preload the fonts and load the theme CSS via a stylesheet link.
|
|
136
132
|
|
|
137
133
|
```html
|
|
138
|
-
|
|
139
|
-
<link rel="
|
|
134
|
+
<!-- Preload fonts (one line per required font file) -->
|
|
135
|
+
<link rel="preload" as="font" type="font/woff2" href="https://ds-assets.cupra.com/fonts/[theme]/[font-file]" crossorigin />
|
|
136
|
+
|
|
137
|
+
<!-- Load the theme stylesheet normally -->
|
|
138
|
+
<link rel="stylesheet" href="https://ds-assets.cupra.com/[version]/styles/[theme]/theme.css" />
|
|
140
139
|
|
|
141
|
-
<ds-theme-provider theme="
|
|
140
|
+
<ds-theme-provider theme="[theme]" load-fonts="false" load-styles="false">
|
|
142
141
|
<!-- components -->
|
|
143
142
|
</ds-theme-provider>
|
|
144
143
|
```
|
|
145
144
|
|
|
146
145
|
---
|
|
147
146
|
|
|
148
|
-
### Option B — Installed via npm in an
|
|
147
|
+
### Option B — Installed via npm in an application bundle
|
|
149
148
|
Install the package:
|
|
150
149
|
|
|
151
150
|
```bash
|
|
152
151
|
npm install @cupra/ui-kit
|
|
153
152
|
```
|
|
154
153
|
|
|
155
|
-
|
|
156
|
-
|
|
154
|
+
Import only the components you will use so their custom elements are registered:
|
|
155
|
+
|
|
156
|
+
```js
|
|
157
|
+
import '@cupra/ui-kit/ds-theme-provider';
|
|
158
|
+
import '@cupra/ui-kit/ds-button';
|
|
159
|
+
import '@cupra/ui-kit/ds-icon';
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Then include the theme provider:
|
|
163
|
+
|
|
164
|
+
Replace `[theme]` with your theme name (e.g. `cupra-diagonal`).
|
|
157
165
|
|
|
158
166
|
```html
|
|
159
|
-
<ds-theme-provider theme="
|
|
167
|
+
<ds-theme-provider theme="[theme]" load-fonts="true" load-styles="true">
|
|
160
168
|
<ds-button variant="primary">Button</ds-button>
|
|
161
169
|
</ds-theme-provider>
|
|
162
170
|
```
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { themeContext as n } from "../ds-theme-provider/themeContext.js";
|
|
2
|
+
import { consume as u } from "../../node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/consume.js";
|
|
3
|
+
import { pubSub as l } from "../../utils/PubSub.js";
|
|
4
|
+
import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
5
|
+
import "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
6
|
+
import { LitElement as c } from "../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
7
|
+
import { property as b } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
8
|
+
import { state as a } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";
|
|
9
|
+
import { adoptStyles as y } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
10
|
+
var f = Object.defineProperty, h = (m, e, s, o) => {
|
|
11
|
+
for (var t = void 0, r = m.length - 1, i; r >= 0; r--)
|
|
12
|
+
(i = m[r]) && (t = i(e, s, t) || t);
|
|
13
|
+
return t && f(e, s, t), t;
|
|
14
|
+
};
|
|
15
|
+
class p extends c {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(), this.handleChangeTheme = (e) => {
|
|
18
|
+
this.pubSubTheme = e;
|
|
19
|
+
}, this.pubSubTheme = l.subscribe("theme", this.handleChangeTheme);
|
|
20
|
+
}
|
|
21
|
+
connectedCallback() {
|
|
22
|
+
super.connectedCallback(), this.applyTheme();
|
|
23
|
+
}
|
|
24
|
+
updated(e) {
|
|
25
|
+
super.updated(e), (e.has("contextTheme") || e.has("pubSubTheme")) && (this.theme = this.contextTheme ?? this.pubSubTheme, this.applyTheme());
|
|
26
|
+
}
|
|
27
|
+
applyTheme() {
|
|
28
|
+
var r;
|
|
29
|
+
const e = this.constructor, s = (r = e.themesStyles) == null ? void 0 : r[this.theme], o = Array.isArray(s) ? s : [s];
|
|
30
|
+
if (!(o != null && o.length)) return;
|
|
31
|
+
const t = Array.isArray(e.styles) ? e.styles : [e.styles];
|
|
32
|
+
y(this.shadowRoot, [...t, ...o].filter(Boolean));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
h([
|
|
36
|
+
b({ attribute: !1 }),
|
|
37
|
+
u({ context: n, subscribe: !0 })
|
|
38
|
+
], p.prototype, "contextTheme");
|
|
39
|
+
h([
|
|
40
|
+
a()
|
|
41
|
+
], p.prototype, "pubSubTheme");
|
|
42
|
+
h([
|
|
43
|
+
a()
|
|
44
|
+
], p.prototype, "theme");
|
|
45
|
+
export {
|
|
46
|
+
p as DsUiElement
|
|
47
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { themeContext as d } from "../ds-theme-provider/themeContext.js";
|
|
2
|
+
import { consume as m } from "../../node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/consume.js";
|
|
3
|
+
import { pubSub as p } from "../../utils/PubSub.js";
|
|
4
|
+
import { stylesRegistry as u } from "../../utils/StylesRegistry/StylesRegistry.js";
|
|
5
|
+
import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
6
|
+
import "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
7
|
+
import { LitElement as y } from "../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
8
|
+
import { property as S } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
9
|
+
import { state as b } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";
|
|
10
|
+
import { css as f, adoptStyles as C } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
11
|
+
var T = Object.defineProperty, l = (n, e, t, i) => {
|
|
12
|
+
for (var o = void 0, a = n.length - 1, s; a >= 0; a--)
|
|
13
|
+
(s = n[a]) && (o = s(e, t, o) || o);
|
|
14
|
+
return o && T(e, t, o), o;
|
|
15
|
+
};
|
|
16
|
+
const g = f`:host([unresolved]){visibility:hidden}`, h = class c extends y {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(), this.appliedConstructables = [], this.appliedStyleTags = [], this.handleChangeTheme = (e) => {
|
|
19
|
+
this.pubSubTheme = e;
|
|
20
|
+
}, this.pubSubTheme = p.subscribe("theme", this.handleChangeTheme);
|
|
21
|
+
}
|
|
22
|
+
get theme() {
|
|
23
|
+
return this.contextTheme ?? this.pubSubTheme;
|
|
24
|
+
}
|
|
25
|
+
connectedCallback() {
|
|
26
|
+
super.connectedCallback(), this.shadowRoot || this.attachShadow({ mode: "open" }), this.setAttribute("unresolved", "");
|
|
27
|
+
const e = this.constructor, t = Array.isArray(e.styles) ? e.styles : [e.styles].filter(Boolean);
|
|
28
|
+
C(this.shadowRoot, [...t, g]), this.applyThemeStyles();
|
|
29
|
+
}
|
|
30
|
+
disconnectedCallback() {
|
|
31
|
+
super.disconnectedCallback(), p.unsubscribe("theme", this.handleChangeTheme);
|
|
32
|
+
}
|
|
33
|
+
updated(e) {
|
|
34
|
+
super.updated(e), (e.has("contextTheme") || e.has("pubSubTheme")) && this.applyThemeStyles();
|
|
35
|
+
}
|
|
36
|
+
getComponentNames() {
|
|
37
|
+
const e = /* @__PURE__ */ new Set();
|
|
38
|
+
let t = this.constructor;
|
|
39
|
+
for (; t && t !== c; )
|
|
40
|
+
Array.isArray(t.componentName) && t.componentName.forEach((i) => e.add(i)), t = Object.getPrototypeOf(t);
|
|
41
|
+
return Array.from(e).reverse();
|
|
42
|
+
}
|
|
43
|
+
supportsAdoptedSheets() {
|
|
44
|
+
return "adoptedStyleSheets" in ((ShadowRoot == null ? void 0 : ShadowRoot.prototype) || {}) && "replace" in CSSStyleSheet.prototype;
|
|
45
|
+
}
|
|
46
|
+
async applyThemeStyles() {
|
|
47
|
+
const e = this.getComponentNames();
|
|
48
|
+
if (!(!this.theme || !(e != null && e.length)))
|
|
49
|
+
try {
|
|
50
|
+
const t = await Promise.all(
|
|
51
|
+
e.map((s) => u.getStyles({ componentName: s, theme: this.theme }))
|
|
52
|
+
), i = this.supportsAdoptedSheets(), o = this.shadowRoot.adoptedStyleSheets || [], a = this.appliedConstructables ? o.filter((s) => !this.appliedConstructables.includes(s)) : o;
|
|
53
|
+
this.appliedConstructables = [], this.appliedStyleTags.forEach((s) => s.remove()), this.appliedStyleTags = [], t.forEach((s) => {
|
|
54
|
+
if (s)
|
|
55
|
+
if (i) {
|
|
56
|
+
const r = new CSSStyleSheet();
|
|
57
|
+
r.replaceSync(s), this.appliedConstructables.push(r);
|
|
58
|
+
} else {
|
|
59
|
+
const r = document.createElement("style");
|
|
60
|
+
r.textContent = s, this.shadowRoot.appendChild(r), this.appliedStyleTags.push(r);
|
|
61
|
+
}
|
|
62
|
+
}), i && (this.shadowRoot.adoptedStyleSheets = [...a, ...this.appliedConstructables]);
|
|
63
|
+
} catch (t) {
|
|
64
|
+
console.error(t);
|
|
65
|
+
} finally {
|
|
66
|
+
this.removeAttribute("unresolved"), this.requestUpdate();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
l([
|
|
71
|
+
S({ attribute: !1 }),
|
|
72
|
+
m({ context: d, subscribe: !0 })
|
|
73
|
+
], h.prototype, "contextTheme");
|
|
74
|
+
l([
|
|
75
|
+
b()
|
|
76
|
+
], h.prototype, "pubSubTheme");
|
|
77
|
+
let N = h;
|
|
78
|
+
export {
|
|
79
|
+
N as UiKitElement
|
|
80
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { DsUiElement as d } from "../DsUiElement.js";
|
|
2
|
+
import { FormAssociatedMixin as m } from "../../../mixins/FormAssociatedMixin.js";
|
|
3
|
+
import { booleanConverter as n } from "../../../utils/booleanConverter.js";
|
|
4
|
+
import { htmlWithTokens as c } from "../../../utils/htmlWithTokens.js";
|
|
5
|
+
import "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
6
|
+
import { html as f } from "../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
7
|
+
import "../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
8
|
+
import { property as r } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
9
|
+
import { state as u } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";
|
|
10
|
+
import { query as y } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query.js";
|
|
11
|
+
import { classMap as v } from "../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
12
|
+
import { commonStyles as x, inputStyles as b } from "./styles/common.styles.js";
|
|
13
|
+
import { cupraStyles as T } from "./styles/cupra.styles.js";
|
|
14
|
+
var g = Object.defineProperty, t = (p, i, a, $) => {
|
|
15
|
+
for (var s = void 0, l = p.length - 1, h; l >= 0; l--)
|
|
16
|
+
(h = p[l]) && (s = h(i, a, s) || s);
|
|
17
|
+
return s && g(i, a, s), s;
|
|
18
|
+
};
|
|
19
|
+
const o = class o extends m(d) {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments), this.initialValue = "", this.label = "", this.helperText = "", this.errorText = "", this.disabled = !1, this.success = !1, this.mode = "light", this.size = "large", this.focused = !1, this.handleFocus = () => {
|
|
22
|
+
this.focused = !0;
|
|
23
|
+
}, this.handleBlur = () => {
|
|
24
|
+
this.focused = !1;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
firstUpdated() {
|
|
28
|
+
this._value = this.initialValue;
|
|
29
|
+
}
|
|
30
|
+
get value() {
|
|
31
|
+
return this._value;
|
|
32
|
+
}
|
|
33
|
+
set value(i) {
|
|
34
|
+
this._value = i;
|
|
35
|
+
}
|
|
36
|
+
get classes() {
|
|
37
|
+
return {
|
|
38
|
+
container: !0,
|
|
39
|
+
focused: this.focused,
|
|
40
|
+
error: !!this.errorText,
|
|
41
|
+
success: this.success,
|
|
42
|
+
disabled: this.disabled,
|
|
43
|
+
[this.size]: !0,
|
|
44
|
+
[this.mode]: !0
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
get styleTokens() {
|
|
48
|
+
return c`
|
|
49
|
+
<style>
|
|
50
|
+
:host{
|
|
51
|
+
color-scheme: ${this.mode};
|
|
52
|
+
pointer-events: ${this.disabled ? "none" : "visible"};
|
|
53
|
+
}
|
|
54
|
+
</style>
|
|
55
|
+
`;
|
|
56
|
+
}
|
|
57
|
+
render() {
|
|
58
|
+
return f`
|
|
59
|
+
${this.styleTokens}
|
|
60
|
+
<div class=${v(this.classes)}>
|
|
61
|
+
<div class="inner-container">
|
|
62
|
+
${this.labelTemplate}
|
|
63
|
+
${this.inputTemplate}
|
|
64
|
+
${this.iconTemplate}
|
|
65
|
+
</div>
|
|
66
|
+
<div class="helper-text">${this.helperText}</div>
|
|
67
|
+
<div class="error-text">${this.errorText}</div>
|
|
68
|
+
${this.dropdownTemplate}
|
|
69
|
+
</div>
|
|
70
|
+
`;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
o.styles = [x, b], o.themesStyles = {
|
|
74
|
+
cupra: T
|
|
75
|
+
};
|
|
76
|
+
let e = o;
|
|
77
|
+
t([
|
|
78
|
+
r({ type: String, reflect: !0, attribute: "initial-value" })
|
|
79
|
+
], e.prototype, "initialValue");
|
|
80
|
+
t([
|
|
81
|
+
r({ type: String })
|
|
82
|
+
], e.prototype, "label");
|
|
83
|
+
t([
|
|
84
|
+
r({ type: String, attribute: "helper-text" })
|
|
85
|
+
], e.prototype, "helperText");
|
|
86
|
+
t([
|
|
87
|
+
r({ type: String, attribute: "error-text" })
|
|
88
|
+
], e.prototype, "errorText");
|
|
89
|
+
t([
|
|
90
|
+
r({ type: Boolean, converter: n })
|
|
91
|
+
], e.prototype, "disabled");
|
|
92
|
+
t([
|
|
93
|
+
r({ type: Boolean, converter: n })
|
|
94
|
+
], e.prototype, "success");
|
|
95
|
+
t([
|
|
96
|
+
r({ type: String, reflect: !0 })
|
|
97
|
+
], e.prototype, "mode");
|
|
98
|
+
t([
|
|
99
|
+
r({ type: String })
|
|
100
|
+
], e.prototype, "size");
|
|
101
|
+
t([
|
|
102
|
+
u()
|
|
103
|
+
], e.prototype, "_value");
|
|
104
|
+
t([
|
|
105
|
+
u()
|
|
106
|
+
], e.prototype, "focused");
|
|
107
|
+
t([
|
|
108
|
+
y(".input-field")
|
|
109
|
+
], e.prototype, "inputField");
|
|
110
|
+
export {
|
|
111
|
+
e as DsBaseInput
|
|
112
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import "../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import "../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
3
|
+
import "../../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { css as e } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
const r = e`
|
|
6
|
+
:host {
|
|
7
|
+
display: block;
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.label,
|
|
12
|
+
.error-text,
|
|
13
|
+
.helper-text {
|
|
14
|
+
user-select: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.label {
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
transform-origin: top left;
|
|
22
|
+
pointer-events: none;
|
|
23
|
+
transition:
|
|
24
|
+
transform 0.2s,
|
|
25
|
+
font-size 0.2s;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
}
|
|
28
|
+
`, s = e`
|
|
29
|
+
.container {
|
|
30
|
+
position: relative;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.input-field::-webkit-search-decoration,
|
|
34
|
+
.input-field::-webkit-search-cancel-button,
|
|
35
|
+
.input-field::-webkit-search-results-button,
|
|
36
|
+
.input-field::-webkit-search-results-decoration,
|
|
37
|
+
.input-field:not(.number)::-webkit-inner-spin-button,
|
|
38
|
+
.input-field::-webkit-calendar-picker-indicator {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.input-field {
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
width: 100%;
|
|
45
|
+
border: none;
|
|
46
|
+
outline: none;
|
|
47
|
+
background-color: transparent;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.inner-container {
|
|
51
|
+
align-items: center;
|
|
52
|
+
display: flex;
|
|
53
|
+
position: relative;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.input-field:focus {
|
|
57
|
+
outline: none;
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
60
|
+
export {
|
|
61
|
+
r as commonStyles,
|
|
62
|
+
s as inputStyles
|
|
63
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import "../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import "../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
3
|
+
import "../../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { css as r } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
const o = r`
|
|
6
|
+
.container {
|
|
7
|
+
padding: 16px 0 0 0;
|
|
8
|
+
}
|
|
9
|
+
.inner-container {
|
|
10
|
+
border-bottom-style: solid;
|
|
11
|
+
border-bottom-width: 1px;
|
|
12
|
+
margin-top: 4px;
|
|
13
|
+
}
|
|
14
|
+
.light .inner-container {
|
|
15
|
+
border-bottom-color: var(--ds-color-dark-grey);
|
|
16
|
+
}
|
|
17
|
+
.dark .inner-container {
|
|
18
|
+
border-bottom-color: var(--ds-color-medium-grey);
|
|
19
|
+
}
|
|
20
|
+
.success.light .inner-container {
|
|
21
|
+
border-bottom-color: var(--ds-color-green-100);
|
|
22
|
+
}
|
|
23
|
+
.success.dark .inner-container {
|
|
24
|
+
border-bottom-color: var(--ds-color-green-100);
|
|
25
|
+
}
|
|
26
|
+
:focus.light .inner-container {
|
|
27
|
+
border-bottom-color: var(--ds-color-black);
|
|
28
|
+
}
|
|
29
|
+
.focused.dark .inner-container {
|
|
30
|
+
border-bottom-color: var(--ds-color-light-grey);
|
|
31
|
+
}
|
|
32
|
+
.error.light .inner-container {
|
|
33
|
+
border-bottom-color: #b50303;
|
|
34
|
+
}
|
|
35
|
+
.error.dark .inner-container {
|
|
36
|
+
border-bottom-color: #ec8b8b;
|
|
37
|
+
}
|
|
38
|
+
.disabled.light .inner-container {
|
|
39
|
+
border-bottom-color: var(--ds-color-medium-grey);
|
|
40
|
+
}
|
|
41
|
+
.disabled.dark .inner-container {
|
|
42
|
+
border-bottom-color: var(--ds-color-dark-grey);
|
|
43
|
+
}
|
|
44
|
+
.input-field {
|
|
45
|
+
padding: 0 0 8px 0;
|
|
46
|
+
}
|
|
47
|
+
.large .input-field {
|
|
48
|
+
font: var(--ds-font-cupra-light-30-title);
|
|
49
|
+
}
|
|
50
|
+
.small .input-field {
|
|
51
|
+
font: var(--ds-font-cupra-light-20-title);
|
|
52
|
+
}
|
|
53
|
+
.light .input-field {
|
|
54
|
+
color: var(--ds-color-black);
|
|
55
|
+
}
|
|
56
|
+
.dark .input-field {
|
|
57
|
+
color: var(--ds-color-white);
|
|
58
|
+
}
|
|
59
|
+
.disabled.light .input-field {
|
|
60
|
+
color: var(--ds-color-off-white);
|
|
61
|
+
}
|
|
62
|
+
.disabled.dark .input-field {
|
|
63
|
+
color: var(--ds-color-grey);
|
|
64
|
+
}
|
|
65
|
+
.error-text {
|
|
66
|
+
font: var(--ds-font-cupra-light-10);
|
|
67
|
+
margin-top: 4px;
|
|
68
|
+
}
|
|
69
|
+
.light .error-text {
|
|
70
|
+
color: #b50303;
|
|
71
|
+
}
|
|
72
|
+
.dark .error-text {
|
|
73
|
+
color: #ec8b8b;
|
|
74
|
+
}
|
|
75
|
+
.helper-text {
|
|
76
|
+
font: var(--ds-font-cupra-light-10);
|
|
77
|
+
margin-top: 4px;
|
|
78
|
+
}
|
|
79
|
+
.light .helper-text {
|
|
80
|
+
color: var(--ds-color-grey);
|
|
81
|
+
}
|
|
82
|
+
.dark .helper-text {
|
|
83
|
+
color: var(--ds-color-off-white);
|
|
84
|
+
}
|
|
85
|
+
.disabled.light .helper-text {
|
|
86
|
+
color: var(--ds-color-off-white);
|
|
87
|
+
}
|
|
88
|
+
.disabled.dark .helper-text {
|
|
89
|
+
color: var(--ds-color-grey);
|
|
90
|
+
}
|
|
91
|
+
.large .label {
|
|
92
|
+
font: var(--ds-font-cupra-light-30-title);
|
|
93
|
+
}
|
|
94
|
+
.small .label {
|
|
95
|
+
font: var(--ds-font-cupra-light-20-title);
|
|
96
|
+
}
|
|
97
|
+
.light .label {
|
|
98
|
+
color: var(--ds-color-grey);
|
|
99
|
+
}
|
|
100
|
+
.dark .label {
|
|
101
|
+
color: var(--ds-color-off-white);
|
|
102
|
+
}
|
|
103
|
+
.disabled.light .label {
|
|
104
|
+
color: var(--ds-color-off-white);
|
|
105
|
+
}
|
|
106
|
+
.disabled.dark .label {
|
|
107
|
+
color: var(--ds-color-grey);
|
|
108
|
+
}
|
|
109
|
+
.light .icon {
|
|
110
|
+
--ds-icon-color: var(--ds-color-dark-grey);
|
|
111
|
+
}
|
|
112
|
+
.dark .icon {
|
|
113
|
+
--ds-icon-color: var(--ds-color-light-grey);
|
|
114
|
+
}
|
|
115
|
+
.disabled.light .icon {
|
|
116
|
+
--ds-icon-color: var(--ds-color-medium-grey);
|
|
117
|
+
}
|
|
118
|
+
.disabled.dark .icon {
|
|
119
|
+
--ds-icon-color: var(--ds-color-dark-grey);
|
|
120
|
+
}
|
|
121
|
+
`, d = [o];
|
|
122
|
+
export {
|
|
123
|
+
d as cupraStyles
|
|
124
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { DsUiElement as n } from "../DsUiElement.js";
|
|
2
|
+
import { booleanConverter as h } from "../../../utils/booleanConverter.js";
|
|
3
|
+
import { htmlWithTokens as c } from "../../../utils/htmlWithTokens.js";
|
|
4
|
+
import "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
5
|
+
import { html as f } from "../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
6
|
+
import "../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
7
|
+
import { property as s } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
8
|
+
import { classMap as y } from "../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
9
|
+
import { commonStyles as u } from "./styles/common.styles.js";
|
|
10
|
+
import { cupraDiagonalStyles as d } from "./styles/cupra-diagonal.styles.js";
|
|
11
|
+
import { cupraStyles as v } from "./styles/cupra.styles.js";
|
|
12
|
+
import { seatStyles as g } from "./styles/seat.styles.js";
|
|
13
|
+
var S = Object.defineProperty, i = (m, l, p, k) => {
|
|
14
|
+
for (var t = void 0, o = m.length - 1, a; o >= 0; o--)
|
|
15
|
+
(a = m[o]) && (t = a(l, p, t) || t);
|
|
16
|
+
return t && S(l, p, t), t;
|
|
17
|
+
};
|
|
18
|
+
const r = class r extends n {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments), this.show = !1, this.mode = "light", this.size = "large";
|
|
21
|
+
}
|
|
22
|
+
get classes() {
|
|
23
|
+
return {
|
|
24
|
+
track: !0,
|
|
25
|
+
[this.size]: !0,
|
|
26
|
+
[this.mode]: !!this.mode
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
get styleTokens() {
|
|
30
|
+
return c`
|
|
31
|
+
<style>
|
|
32
|
+
:host {
|
|
33
|
+
color-scheme: ${this.mode};
|
|
34
|
+
}
|
|
35
|
+
</style>
|
|
36
|
+
`;
|
|
37
|
+
}
|
|
38
|
+
get barTemplate() {
|
|
39
|
+
return f`
|
|
40
|
+
${this.styleTokens}
|
|
41
|
+
<div class=${y(this.classes)}>
|
|
42
|
+
<div class="fill"></div>
|
|
43
|
+
</div>
|
|
44
|
+
`;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
r.styles = [u], r.themesStyles = {
|
|
48
|
+
cupra: v,
|
|
49
|
+
"cupra-diagonal": d,
|
|
50
|
+
seat: g
|
|
51
|
+
};
|
|
52
|
+
let e = r;
|
|
53
|
+
i([
|
|
54
|
+
s({ type: Boolean, converter: h })
|
|
55
|
+
], e.prototype, "show");
|
|
56
|
+
i([
|
|
57
|
+
s({ type: String, reflect: !0 })
|
|
58
|
+
], e.prototype, "mode");
|
|
59
|
+
i([
|
|
60
|
+
s({ type: String })
|
|
61
|
+
], e.prototype, "size");
|
|
62
|
+
export {
|
|
63
|
+
e as DsBaseProgressBar
|
|
64
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import "../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
3
|
+
import "../../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { css as o } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
const p = o`
|
|
6
|
+
.track {
|
|
7
|
+
width: 100%;
|
|
8
|
+
position: relative;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.fill {
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 0;
|
|
15
|
+
left: 0;
|
|
16
|
+
height: 100%;
|
|
17
|
+
display: block;
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
export {
|
|
21
|
+
p as commonStyles
|
|
22
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import "../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
3
|
+
import "../../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { css as o } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
const r = o`
|
|
6
|
+
.track.large {
|
|
7
|
+
height: 4px;
|
|
8
|
+
}
|
|
9
|
+
.track.small {
|
|
10
|
+
height: 2px;
|
|
11
|
+
}
|
|
12
|
+
.track.light {
|
|
13
|
+
background-color: var(--ds-color-off-white);
|
|
14
|
+
}
|
|
15
|
+
.track.dark {
|
|
16
|
+
background-color: var(--ds-color-off-white);
|
|
17
|
+
}
|
|
18
|
+
.light .fill {
|
|
19
|
+
background-color: var(--ds-color-black);
|
|
20
|
+
}
|
|
21
|
+
.dark .fill {
|
|
22
|
+
background-color: var(--ds-color-white);
|
|
23
|
+
}
|
|
24
|
+
`, i = [r];
|
|
25
|
+
export {
|
|
26
|
+
i as cupraDiagonalStyles
|
|
27
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import "../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
3
|
+
import "../../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { css as o } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
const r = o`
|
|
6
|
+
.track.large {
|
|
7
|
+
height: 4px;
|
|
8
|
+
}
|
|
9
|
+
.track.small {
|
|
10
|
+
height: 2px;
|
|
11
|
+
}
|
|
12
|
+
.track.light {
|
|
13
|
+
background-color: var(--ds-color-off-white);
|
|
14
|
+
}
|
|
15
|
+
.track.dark {
|
|
16
|
+
background-color: var(--ds-color-off-white);
|
|
17
|
+
}
|
|
18
|
+
.light .fill {
|
|
19
|
+
background-color: var(--ds-color-black);
|
|
20
|
+
}
|
|
21
|
+
.dark .fill {
|
|
22
|
+
background-color: var(--ds-color-white);
|
|
23
|
+
}
|
|
24
|
+
`, i = [r];
|
|
25
|
+
export {
|
|
26
|
+
i as cupraStyles
|
|
27
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import "../../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
3
|
+
import "../../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { css as o } from "../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
const t = o``, p = [t];
|
|
6
|
+
export {
|
|
7
|
+
p as seatStyles
|
|
8
|
+
};
|