@cupra/ui-kit 1.0.0-canary.9 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/components/base/DsUiElement.js +47 -0
- package/dist/components/base/UiKitElement.js +82 -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-badge/ds-badge.d.ts +18 -0
- package/dist/components/ds-badge/ds-badge.js +53 -0
- package/dist/components/ds-badge/ds-badge.test.d.ts +8 -0
- package/dist/components/ds-badge/ds-badge.types.d.ts +6 -0
- package/dist/components/ds-badge/styles/common.styles.d.ts +1 -0
- package/dist/components/ds-badge/styles/common.styles.js +9 -0
- package/dist/components/ds-badge/styles/cupra-diagonal.styles.d.ts +1 -0
- package/dist/components/ds-badge/styles/cupra-diagonal.styles.js +47 -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 +131 -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 +94 -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 +105 -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-main-title/ds-main-title.d.ts +10 -0
- package/dist/components/ds-main-title/ds-main-title.js +35 -0
- package/dist/components/ds-main-title/ds-main-title.test.d.ts +7 -0
- package/dist/components/ds-main-title/ds-main-title.types.d.ts +2 -0
- package/dist/components/ds-main-title/styles/common.styles.d.ts +1 -0
- package/dist/components/ds-main-title/styles/common.styles.js +19 -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-rating/ds-rating.d.ts +14 -0
- package/dist/components/ds-rating/ds-rating.js +73 -0
- package/dist/components/ds-rating/ds-rating.test.d.ts +8 -0
- package/dist/components/ds-rating/ds-rating.types.d.ts +6 -0
- package/dist/components/ds-rating/styles/common.styles.d.ts +1 -0
- package/dist/components/ds-rating/styles/common.styles.js +14 -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 +90 -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.d.ts +38 -23
- package/dist/components/ds-tooltip/ds-tooltip.js +234 -0
- package/dist/components/ds-tooltip/ds-tooltip.test.d.ts +8 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.ts +5 -10
- package/dist/components/ds-tooltip/styles/common.styles.d.ts +0 -2
- package/dist/components/ds-tooltip/styles/common.styles.js +130 -0
- package/dist/components/index.d.ts +4 -1
- package/dist/core/theme.constants.d.ts +1 -0
- package/dist/core/theme.constants.js +4 -0
- package/dist/decorators/customUiKitElement.js +23 -0
- package/dist/index.js +61 -9699
- 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/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +430 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +313 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +132 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -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.d.ts +1 -4
- package/dist/utils/IconsManager.js +39 -0
- package/dist/utils/PubSub.d.ts +0 -2
- package/dist/utils/PubSub.js +33 -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 +82 -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-badge/ds-badge.d.ts +18 -0
- package/dist-react/components/ds-badge/ds-badge.js +53 -0
- package/dist-react/components/ds-badge/ds-badge.test.d.ts +8 -0
- package/dist-react/components/ds-badge/ds-badge.types.d.ts +6 -0
- package/dist-react/components/ds-badge/styles/common.styles.d.ts +1 -0
- package/dist-react/components/ds-badge/styles/common.styles.js +9 -0
- package/dist-react/components/ds-badge/styles/cupra-diagonal.styles.d.ts +1 -0
- package/dist-react/components/ds-badge/styles/cupra-diagonal.styles.js +47 -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 +131 -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 +94 -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 +105 -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-main-title/ds-main-title.d.ts +10 -0
- package/dist-react/components/ds-main-title/ds-main-title.js +35 -0
- package/dist-react/components/ds-main-title/ds-main-title.test.d.ts +7 -0
- package/dist-react/components/ds-main-title/ds-main-title.types.d.ts +2 -0
- package/dist-react/components/ds-main-title/styles/common.styles.d.ts +1 -0
- package/dist-react/components/ds-main-title/styles/common.styles.js +19 -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-rating/ds-rating.d.ts +14 -0
- package/dist-react/components/ds-rating/ds-rating.js +73 -0
- package/dist-react/components/ds-rating/ds-rating.test.d.ts +8 -0
- package/dist-react/components/ds-rating/ds-rating.types.d.ts +6 -0
- package/dist-react/components/ds-rating/styles/common.styles.d.ts +1 -0
- package/dist-react/components/ds-rating/styles/common.styles.js +14 -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 +90 -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.d.ts +38 -23
- package/dist-react/components/ds-tooltip/ds-tooltip.js +234 -0
- package/dist-react/components/ds-tooltip/ds-tooltip.test.d.ts +8 -0
- package/dist-react/components/ds-tooltip/ds-tooltip.types.d.ts +5 -10
- package/dist-react/components/ds-tooltip/styles/common.styles.d.ts +0 -2
- package/dist-react/components/ds-tooltip/styles/common.styles.js +130 -0
- package/dist-react/components/index.d.ts +4 -1
- package/dist-react/core/theme.constants.d.ts +1 -0
- package/dist-react/core/theme.constants.js +4 -0
- package/dist-react/decorators/customUiKitElement.js +23 -0
- package/dist-react/index.js +61 -9623
- 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/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +430 -0
- package/dist-react/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +313 -0
- package/dist-react/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +132 -0
- package/dist-react/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -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.d.ts +1 -4
- package/dist-react/utils/IconsManager.js +39 -0
- package/dist-react/utils/PubSub.d.ts +0 -2
- package/dist-react/utils/PubSub.js +33 -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 +12 -6
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { UiKitElement as u } from "../base/UiKitElement.js";
|
|
2
|
+
import { commonStyles as f } from "./styles/common.styles.js";
|
|
3
|
+
import { themeConfig as m } from "./theme-config.js";
|
|
4
|
+
import { customUiKitElement as y } from "../../decorators/customUiKitElement.js";
|
|
5
|
+
import { booleanConverter as d } from "../../utils/booleanConverter.js";
|
|
6
|
+
import { htmlWithTokens as g } from "../../utils/htmlWithTokens.js";
|
|
7
|
+
import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
8
|
+
import { nothing as h, html as v } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
9
|
+
import "../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
10
|
+
import { property as r } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
11
|
+
import { state as b } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";
|
|
12
|
+
import { classMap as c } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
13
|
+
var _ = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, i = (e, t, a, n) => {
|
|
14
|
+
for (var s = n > 1 ? void 0 : n ? $(t, a) : t, l = e.length - 1, p; l >= 0; l--)
|
|
15
|
+
(p = e[l]) && (s = (n ? p(t, a, s) : p(s)) || s);
|
|
16
|
+
return n && s && _(t, a, s), s;
|
|
17
|
+
};
|
|
18
|
+
let o = class extends u {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments), this.maxHeight = 300, this.open = !1, this.mode = "light", this.size = "medium", this.disabled = !1, this._open = !1;
|
|
21
|
+
}
|
|
22
|
+
async firstUpdated(e) {
|
|
23
|
+
super.firstUpdated(e), await this.updateComplete, this._open = this.open;
|
|
24
|
+
}
|
|
25
|
+
get containerClasses() {
|
|
26
|
+
return {
|
|
27
|
+
container: !0,
|
|
28
|
+
disabled: this.disabled,
|
|
29
|
+
open: this._open,
|
|
30
|
+
[this.size]: !0,
|
|
31
|
+
[this.mode]: !!this.mode
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
get dividerClasses() {
|
|
35
|
+
return {
|
|
36
|
+
divider: !0,
|
|
37
|
+
[this.mode]: !!this.mode
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
get openIconTemplate() {
|
|
41
|
+
var t;
|
|
42
|
+
if (!this.theme) return h;
|
|
43
|
+
const e = (t = m[this.theme]) == null ? void 0 : t["icon-names"];
|
|
44
|
+
return this.componentFactory.createIcon({
|
|
45
|
+
class: "icon open-icon",
|
|
46
|
+
role: "image",
|
|
47
|
+
"aria-hidden": "true",
|
|
48
|
+
"icon-name": (e == null ? void 0 : e.open) || "minus"
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
get closeIconTemplate() {
|
|
52
|
+
var t;
|
|
53
|
+
if (!this.theme) return h;
|
|
54
|
+
const e = (t = m[this.theme]) == null ? void 0 : t["icon-names"];
|
|
55
|
+
return this.componentFactory.createIcon({
|
|
56
|
+
class: "icon close-icon",
|
|
57
|
+
role: "image",
|
|
58
|
+
"aria-hidden": "true",
|
|
59
|
+
"icon-name": (e == null ? void 0 : e.close) || "plus"
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
get styleTokens() {
|
|
63
|
+
return g`
|
|
64
|
+
<style>
|
|
65
|
+
:host{
|
|
66
|
+
color-scheme: ${this.mode};
|
|
67
|
+
pointer-events: ${this.disabled ? "none" : "visible"};
|
|
68
|
+
}
|
|
69
|
+
</style>
|
|
70
|
+
`;
|
|
71
|
+
}
|
|
72
|
+
handleKeyDown(e) {
|
|
73
|
+
this.disabled && e.preventDefault();
|
|
74
|
+
}
|
|
75
|
+
handleToggle(e) {
|
|
76
|
+
this._open = e.newState === "open";
|
|
77
|
+
}
|
|
78
|
+
render() {
|
|
79
|
+
return v`
|
|
80
|
+
${this.styleTokens}
|
|
81
|
+
|
|
82
|
+
<details
|
|
83
|
+
class=${c(this.containerClasses)}
|
|
84
|
+
aria-disabled=${!!this.disabled}
|
|
85
|
+
?open=${this.open}
|
|
86
|
+
@keydown=${this.handleKeyDown}
|
|
87
|
+
@toggle=${this.handleToggle}
|
|
88
|
+
>
|
|
89
|
+
<summary class="title">
|
|
90
|
+
<slot name="title"></slot>
|
|
91
|
+
${this.openIconTemplate}
|
|
92
|
+
${this.closeIconTemplate}
|
|
93
|
+
</summary>
|
|
94
|
+
<slot name="content"></slot>
|
|
95
|
+
</details>
|
|
96
|
+
<div class=${c(this.dividerClasses)}></div>
|
|
97
|
+
`;
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
o.styles = [f];
|
|
101
|
+
i([
|
|
102
|
+
r({ type: Number, attribute: "max-height" })
|
|
103
|
+
], o.prototype, "maxHeight", 2);
|
|
104
|
+
i([
|
|
105
|
+
r({ type: Boolean, converter: d, reflect: !0 })
|
|
106
|
+
], o.prototype, "open", 2);
|
|
107
|
+
i([
|
|
108
|
+
r({ type: String, reflect: !0 })
|
|
109
|
+
], o.prototype, "mode", 2);
|
|
110
|
+
i([
|
|
111
|
+
r({ type: String })
|
|
112
|
+
], o.prototype, "size", 2);
|
|
113
|
+
i([
|
|
114
|
+
r({ type: Boolean, converter: d })
|
|
115
|
+
], o.prototype, "disabled", 2);
|
|
116
|
+
i([
|
|
117
|
+
b()
|
|
118
|
+
], o.prototype, "_open", 2);
|
|
119
|
+
o = i([
|
|
120
|
+
y("ds-accordion")
|
|
121
|
+
], o);
|
|
122
|
+
export {
|
|
123
|
+
o as DsAccordion
|
|
124
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
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 s = e`
|
|
6
|
+
:host {
|
|
7
|
+
display: block;
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
summary {
|
|
12
|
+
list-style: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
summary::-webkit-details-marker {
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
summary::marker {
|
|
20
|
+
content: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.title {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
user-select: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.open .close-icon,
|
|
32
|
+
.open-icon {
|
|
33
|
+
display: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.open .open-icon,
|
|
37
|
+
.close-icon {
|
|
38
|
+
display: block;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
details {
|
|
42
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
43
|
+
interpolate-size: allow-keywords;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&::details-content {
|
|
47
|
+
opacity: 0;
|
|
48
|
+
block-size: 0;
|
|
49
|
+
overflow-y: clip;
|
|
50
|
+
transition:
|
|
51
|
+
content-visibility 0.3s cubic-bezier(0, 0, 0.2, 1) allow-discrete,
|
|
52
|
+
opacity 0.3s cubic-bezier(0, 0, 0.2, 1),
|
|
53
|
+
block-size 0.3s cubic-bezier(0, 0, 0.2, 1);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&[open]::details-content {
|
|
57
|
+
opacity: 1;
|
|
58
|
+
block-size: auto;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
export {
|
|
63
|
+
s as commonStyles
|
|
64
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const n = {
|
|
2
|
+
cupra: {
|
|
3
|
+
"icon-names": {
|
|
4
|
+
open: "minus",
|
|
5
|
+
close: "plus"
|
|
6
|
+
},
|
|
7
|
+
"icon-button-variant": "secondary"
|
|
8
|
+
},
|
|
9
|
+
"cupra-diagonal": {
|
|
10
|
+
"icon-names": {
|
|
11
|
+
open: "arrow-up",
|
|
12
|
+
close: "arrow-down"
|
|
13
|
+
},
|
|
14
|
+
"icon-button-variant": "primary"
|
|
15
|
+
},
|
|
16
|
+
seat: {
|
|
17
|
+
"icon-names": {
|
|
18
|
+
open: "minus",
|
|
19
|
+
close: "plus"
|
|
20
|
+
},
|
|
21
|
+
"icon-button-variant": "secondary"
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
n as themeConfig
|
|
26
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { UiKitElement as c } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as u } from "../../decorators/customUiKitElement.js";
|
|
3
|
+
import { booleanConverter as g } from "../../utils/booleanConverter.js";
|
|
4
|
+
import { htmlWithTokens as f } 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 d, nothing as p } 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 l } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
9
|
+
import { queryAssignedElements as y } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js";
|
|
10
|
+
import { classMap as $ } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
11
|
+
import { ifDefined as h } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/if-defined.js";
|
|
12
|
+
import { commonStyles as b } from "./styles/common.styles.js";
|
|
13
|
+
var v = Object.defineProperty, I = Object.getOwnPropertyDescriptor, r = (e, s, o, a) => {
|
|
14
|
+
for (var t = a > 1 ? void 0 : a ? I(s, o) : s, n = e.length - 1, m; n >= 0; n--)
|
|
15
|
+
(m = e[n]) && (t = (a ? m(s, o, t) : m(t)) || t);
|
|
16
|
+
return a && t && v(s, o, t), t;
|
|
17
|
+
};
|
|
18
|
+
let i = class extends c {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments), this.size = "medium", this.disabled = !1;
|
|
21
|
+
}
|
|
22
|
+
get iconTemplate() {
|
|
23
|
+
return this.componentFactory.createIcon({
|
|
24
|
+
class: "icon",
|
|
25
|
+
"icon-name": "user"
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
get initialsTemplate() {
|
|
29
|
+
const e = this.getInitialsFromName(this.name);
|
|
30
|
+
return d`<span class="initials" aria-hidden="true">${e}</span>`;
|
|
31
|
+
}
|
|
32
|
+
getInitialsFromName(e) {
|
|
33
|
+
return e ? e.trim().split(/\s+/).filter(Boolean).slice(0, 2).map((s) => s[0]).join("").toUpperCase() : "";
|
|
34
|
+
}
|
|
35
|
+
get classes() {
|
|
36
|
+
return {
|
|
37
|
+
container: !0,
|
|
38
|
+
disabled: this.disabled,
|
|
39
|
+
[this.size]: !0,
|
|
40
|
+
[`mode-${this.mode}`]: !0
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
get hasImage() {
|
|
44
|
+
return Array.isArray(this.assignedImages) && this.assignedImages.length > 0;
|
|
45
|
+
}
|
|
46
|
+
get mode() {
|
|
47
|
+
var e;
|
|
48
|
+
return this.hasImage ? "media" : (e = this.name) != null && e.trim() ? "text" : "icon";
|
|
49
|
+
}
|
|
50
|
+
handleSlotChange() {
|
|
51
|
+
this.requestUpdate();
|
|
52
|
+
}
|
|
53
|
+
get styleTokens() {
|
|
54
|
+
return f`
|
|
55
|
+
<style>
|
|
56
|
+
:host{
|
|
57
|
+
pointer-events: ${this.disabled ? "none" : "auto"};
|
|
58
|
+
}
|
|
59
|
+
</style>
|
|
60
|
+
`;
|
|
61
|
+
}
|
|
62
|
+
handleKeyDown(e) {
|
|
63
|
+
this.disabled || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.click());
|
|
64
|
+
}
|
|
65
|
+
render() {
|
|
66
|
+
return d`
|
|
67
|
+
${this.styleTokens}
|
|
68
|
+
<div
|
|
69
|
+
class=${$(this.classes)}
|
|
70
|
+
title=${h(this.name)}
|
|
71
|
+
aria-label=${`Open ${this.name ? this.name + "'s " : ""}profile menu`}
|
|
72
|
+
aria-disabled=${h(this.disabled ? "true" : void 0)}
|
|
73
|
+
role="button"
|
|
74
|
+
tabindex=${this.disabled ? -1 : 0}
|
|
75
|
+
@keydown=${this.handleKeyDown}
|
|
76
|
+
>
|
|
77
|
+
${this.mode === "icon" ? this.iconTemplate : p}
|
|
78
|
+
${this.mode === "text" ? this.initialsTemplate : p}
|
|
79
|
+
<div class="media" aria-hidden=${String(this.mode !== "media")}><slot name="media" @slotchange=${this.handleSlotChange}></slot></div>
|
|
80
|
+
</div>
|
|
81
|
+
`;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
i.styles = [b];
|
|
85
|
+
r([
|
|
86
|
+
l({ type: String })
|
|
87
|
+
], i.prototype, "size", 2);
|
|
88
|
+
r([
|
|
89
|
+
l({ type: String })
|
|
90
|
+
], i.prototype, "name", 2);
|
|
91
|
+
r([
|
|
92
|
+
l({ type: Boolean, converter: g, reflect: !0 })
|
|
93
|
+
], i.prototype, "disabled", 2);
|
|
94
|
+
r([
|
|
95
|
+
y({ slot: "media", selector: "img" })
|
|
96
|
+
], i.prototype, "assignedImages", 2);
|
|
97
|
+
i = r([
|
|
98
|
+
u("ds-avatar")
|
|
99
|
+
], i);
|
|
100
|
+
export {
|
|
101
|
+
i as DsAvatar
|
|
102
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
:host {
|
|
7
|
+
display: contents;
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
export {
|
|
11
|
+
p as commonStyles
|
|
12
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UiKitElement } from '../base/UiKitElement.ts';
|
|
2
|
+
import { nothing } from 'lit';
|
|
3
|
+
import type { DsBadgeAttrs } from './ds-badge.types.js';
|
|
4
|
+
export declare class DsBadge extends UiKitElement {
|
|
5
|
+
static styles: import("lit").CSSResult[];
|
|
6
|
+
number?: number;
|
|
7
|
+
variant: DsBadgeAttrs['variant'];
|
|
8
|
+
size: DsBadgeAttrs['size'];
|
|
9
|
+
protected get hasNumber(): boolean;
|
|
10
|
+
protected get classes(): {
|
|
11
|
+
[x: string]: boolean;
|
|
12
|
+
container: boolean;
|
|
13
|
+
dot: boolean;
|
|
14
|
+
number: boolean;
|
|
15
|
+
};
|
|
16
|
+
protected get contentTemplate(): typeof nothing | import("lit").TemplateResult<1>;
|
|
17
|
+
render(): import("lit").TemplateResult<1>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { UiKitElement as h } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as l } from "../../decorators/customUiKitElement.js";
|
|
3
|
+
import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
4
|
+
import { nothing as b, html as u } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
5
|
+
import "../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
6
|
+
import { property as a } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
7
|
+
import { classMap as c } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
8
|
+
import { commonStyles as f } from "./styles/common.styles.js";
|
|
9
|
+
import { cupraDiagonalStyles as v } from "./styles/cupra-diagonal.styles.js";
|
|
10
|
+
var y = Object.defineProperty, g = Object.getOwnPropertyDescriptor, i = (p, r, m, s) => {
|
|
11
|
+
for (var t = s > 1 ? void 0 : s ? g(r, m) : r, o = p.length - 1, n; o >= 0; o--)
|
|
12
|
+
(n = p[o]) && (t = (s ? n(r, m, t) : n(t)) || t);
|
|
13
|
+
return s && t && y(r, m, t), t;
|
|
14
|
+
};
|
|
15
|
+
let e = class extends h {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments), this.variant = "base", this.size = "medium";
|
|
18
|
+
}
|
|
19
|
+
get hasNumber() {
|
|
20
|
+
return typeof this.number == "number" && !Number.isNaN(this.number);
|
|
21
|
+
}
|
|
22
|
+
get classes() {
|
|
23
|
+
return {
|
|
24
|
+
container: !0,
|
|
25
|
+
dot: !this.hasNumber,
|
|
26
|
+
number: this.hasNumber,
|
|
27
|
+
[`variant-${this.variant}`]: !0,
|
|
28
|
+
[`size-${this.size}`]: !0
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
get contentTemplate() {
|
|
32
|
+
return this.hasNumber ? u`${this.number}` : b;
|
|
33
|
+
}
|
|
34
|
+
render() {
|
|
35
|
+
return u` <div class=${c(this.classes)}>${this.contentTemplate}</div> `;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
e.styles = [f, v];
|
|
39
|
+
i([
|
|
40
|
+
a({ type: Number })
|
|
41
|
+
], e.prototype, "number", 2);
|
|
42
|
+
i([
|
|
43
|
+
a({ type: String })
|
|
44
|
+
], e.prototype, "variant", 2);
|
|
45
|
+
i([
|
|
46
|
+
a({ type: String })
|
|
47
|
+
], e.prototype, "size", 2);
|
|
48
|
+
e = i([
|
|
49
|
+
l("ds-badge")
|
|
50
|
+
], e);
|
|
51
|
+
export {
|
|
52
|
+
e as DsBadge
|
|
53
|
+
};
|