@cupra/ui-kit 1.0.0-canary.8 → 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,138 @@
|
|
|
1
|
+
import { DsBaseInput as m } from "../base/ds-base-input/ds-base-input.js";
|
|
2
|
+
import { customUiKitElement as c } 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 u, html as p } 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 r } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
7
|
+
import { state as d } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";
|
|
8
|
+
import { choose as y } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/choose.js";
|
|
9
|
+
var f = Object.defineProperty, b = Object.getOwnPropertyDescriptor, i = (t, s, n, l) => {
|
|
10
|
+
for (var a = l > 1 ? void 0 : l ? b(s, n) : s, o = t.length - 1, h; o >= 0; o--)
|
|
11
|
+
(h = t[o]) && (a = (l ? h(s, n, a) : h(a)) || a);
|
|
12
|
+
return l && a && f(s, n, a), a;
|
|
13
|
+
};
|
|
14
|
+
let e = class extends m {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments), this.name = "", this.placeholder = "", this.type = "text", this.min = 0, this.max = 100, this.step = 1, this._hasPicker = !1, this.handleClickIcon = () => {
|
|
17
|
+
var t, s;
|
|
18
|
+
(s = (t = this.inputField) == null ? void 0 : t.showPicker) == null || s.call(t);
|
|
19
|
+
}, this.handleInput = (t) => {
|
|
20
|
+
const s = t.target;
|
|
21
|
+
this._value = s.value || "";
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
firstUpdated() {
|
|
25
|
+
var t;
|
|
26
|
+
super.firstUpdated(), this._hasPicker = !!((t = this.inputField) != null && t.showPicker);
|
|
27
|
+
}
|
|
28
|
+
get iconTemplate() {
|
|
29
|
+
if (this.type !== "time" && this.type !== "date") return u;
|
|
30
|
+
let t;
|
|
31
|
+
switch (this.type) {
|
|
32
|
+
case "date":
|
|
33
|
+
t = "calendar";
|
|
34
|
+
break;
|
|
35
|
+
case "time":
|
|
36
|
+
t = "clock";
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
return p`
|
|
40
|
+
<style>
|
|
41
|
+
.icon {
|
|
42
|
+
cursor: ${this._hasPicker ? "pointer" : "auto"};
|
|
43
|
+
}
|
|
44
|
+
</style>
|
|
45
|
+
${this.componentFactory.createIcon({
|
|
46
|
+
class: "icon",
|
|
47
|
+
"icon-name": t,
|
|
48
|
+
"@click": this.handleClickIcon
|
|
49
|
+
})}
|
|
50
|
+
`;
|
|
51
|
+
}
|
|
52
|
+
get labelTemplate() {
|
|
53
|
+
return p`
|
|
54
|
+
<label
|
|
55
|
+
id="label"
|
|
56
|
+
class="label"
|
|
57
|
+
style=${this.focused || this._value || ["date", "time"].includes(this.type) ? "transform: translateY(-18px); font-size: 12px;" : "transform: translateY(0);"}
|
|
58
|
+
>
|
|
59
|
+
${this.label}
|
|
60
|
+
</label>
|
|
61
|
+
`;
|
|
62
|
+
}
|
|
63
|
+
get inputTemplate() {
|
|
64
|
+
return p`
|
|
65
|
+
${y(this.type === "number", [
|
|
66
|
+
[
|
|
67
|
+
!0,
|
|
68
|
+
() => p`
|
|
69
|
+
<input
|
|
70
|
+
aria-labelledby="label"
|
|
71
|
+
class="input-field number"
|
|
72
|
+
type=${this.type}
|
|
73
|
+
min="${this.min}"
|
|
74
|
+
max="${this.max}"
|
|
75
|
+
step="${this.step}"
|
|
76
|
+
name=${this.name}
|
|
77
|
+
placeholder=${this.focused ? this.placeholder : ""}
|
|
78
|
+
value=${this._value}
|
|
79
|
+
@focus=${this.handleFocus}
|
|
80
|
+
@blur=${this.handleBlur}
|
|
81
|
+
@input=${this.handleInput}
|
|
82
|
+
/>
|
|
83
|
+
`
|
|
84
|
+
],
|
|
85
|
+
[
|
|
86
|
+
!1,
|
|
87
|
+
() => p`
|
|
88
|
+
<input
|
|
89
|
+
aria-labelledby="label"
|
|
90
|
+
class="input-field"
|
|
91
|
+
type=${this.type}
|
|
92
|
+
maxlength=${this.maxLength}
|
|
93
|
+
name=${this.name}
|
|
94
|
+
placeholder=${this.focused ? this.placeholder : ""}
|
|
95
|
+
value=${this._value}
|
|
96
|
+
@focus=${this.handleFocus}
|
|
97
|
+
@blur=${this.handleBlur}
|
|
98
|
+
@input=${this.handleInput}
|
|
99
|
+
/>
|
|
100
|
+
`
|
|
101
|
+
]
|
|
102
|
+
])}
|
|
103
|
+
`;
|
|
104
|
+
}
|
|
105
|
+
get dropdownTemplate() {
|
|
106
|
+
return u;
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
i([
|
|
110
|
+
r({ type: String })
|
|
111
|
+
], e.prototype, "name", 2);
|
|
112
|
+
i([
|
|
113
|
+
r({ type: String })
|
|
114
|
+
], e.prototype, "placeholder", 2);
|
|
115
|
+
i([
|
|
116
|
+
r({ type: String, attribute: "max-length" })
|
|
117
|
+
], e.prototype, "maxLength", 2);
|
|
118
|
+
i([
|
|
119
|
+
r({ type: String })
|
|
120
|
+
], e.prototype, "type", 2);
|
|
121
|
+
i([
|
|
122
|
+
r({ type: Number })
|
|
123
|
+
], e.prototype, "min", 2);
|
|
124
|
+
i([
|
|
125
|
+
r({ type: Number })
|
|
126
|
+
], e.prototype, "max", 2);
|
|
127
|
+
i([
|
|
128
|
+
r({ type: Number })
|
|
129
|
+
], e.prototype, "step", 2);
|
|
130
|
+
i([
|
|
131
|
+
d()
|
|
132
|
+
], e.prototype, "_hasPicker", 2);
|
|
133
|
+
e = i([
|
|
134
|
+
c("ds-input", { skipTagAsComponentName: !0 })
|
|
135
|
+
], e);
|
|
136
|
+
export {
|
|
137
|
+
e as DsInput
|
|
138
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { UiKitElement as v } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as u } from "../../decorators/customUiKitElement.js";
|
|
3
|
+
import { booleanConverter as h } from "../../utils/booleanConverter.js";
|
|
4
|
+
import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
5
|
+
import { nothing as m, html as c } 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 p } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
8
|
+
import { classMap as d } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
9
|
+
import { commonStyles as f } from "./styles/common.styles.js";
|
|
10
|
+
var y = Object.defineProperty, g = Object.getOwnPropertyDescriptor, a = (r, s, i, o) => {
|
|
11
|
+
for (var t = o > 1 ? void 0 : o ? g(s, i) : s, l = r.length - 1, n; l >= 0; l--)
|
|
12
|
+
(n = r[l]) && (t = (o ? n(s, i, t) : n(t)) || t);
|
|
13
|
+
return o && t && y(s, i, t), t;
|
|
14
|
+
};
|
|
15
|
+
let e = class extends v {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments), this.size = "medium", this.selected = !1, this.error = !1, this.handleClick = (r) => {
|
|
18
|
+
r.stopPropagation();
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
get classes() {
|
|
22
|
+
return {
|
|
23
|
+
container: !0,
|
|
24
|
+
selected: this.selected,
|
|
25
|
+
[this.size]: !!this.size
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
get errorClasses() {
|
|
29
|
+
return {
|
|
30
|
+
error: !0,
|
|
31
|
+
selected: this.selected,
|
|
32
|
+
[this.size]: !!this.size
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
get iconTemplate() {
|
|
36
|
+
return this.componentFactory.createIcon({
|
|
37
|
+
class: "icon",
|
|
38
|
+
"icon-name": "cross-circle",
|
|
39
|
+
size: 24
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
get contentTemplate() {
|
|
43
|
+
return this.error ? m : c`
|
|
44
|
+
<div part="container" class=${d(this.classes)} data-testid="ds-interactive-card-container" tabindex="0">
|
|
45
|
+
<header class="header" part="header">
|
|
46
|
+
<div class="header-main">
|
|
47
|
+
<slot name="title" class="title" part="title"></slot>
|
|
48
|
+
<slot name="subtitle" class="subtitle" part="subtitle"></slot>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="meta" part="meta"><slot name="meta"></slot></div>
|
|
51
|
+
</header>
|
|
52
|
+
<div data-testid="ds-interactive-card-content" class="content" part="content"><slot name="content"></slot></div>
|
|
53
|
+
<footer @click=${this.handleClick} class="cta" part="cta"><slot name="cta"></slot></footer>
|
|
54
|
+
</div>
|
|
55
|
+
`;
|
|
56
|
+
}
|
|
57
|
+
get errorTemplate() {
|
|
58
|
+
return this.error ? c`
|
|
59
|
+
<div part="error" class=${d(this.errorClasses)}>
|
|
60
|
+
${this.iconTemplate}
|
|
61
|
+
<div class="error-content" part="error-text">
|
|
62
|
+
<slot class="error-title" name="error-title"></slot>
|
|
63
|
+
<slot class="error-text" name="error-text" data-testid="ds-interactive-card-error-text"></slot>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
` : m;
|
|
67
|
+
}
|
|
68
|
+
render() {
|
|
69
|
+
return c`
|
|
70
|
+
${this.contentTemplate}
|
|
71
|
+
${this.errorTemplate}
|
|
72
|
+
`;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
e.styles = [f];
|
|
76
|
+
a([
|
|
77
|
+
p({ type: String })
|
|
78
|
+
], e.prototype, "size", 2);
|
|
79
|
+
a([
|
|
80
|
+
p({ type: Boolean, converter: h })
|
|
81
|
+
], e.prototype, "selected", 2);
|
|
82
|
+
a([
|
|
83
|
+
p({ type: Boolean, converter: h })
|
|
84
|
+
], e.prototype, "error", 2);
|
|
85
|
+
e = a([
|
|
86
|
+
u("ds-interactive-card")
|
|
87
|
+
], e);
|
|
88
|
+
export {
|
|
89
|
+
e as DsInteractiveCard
|
|
90
|
+
};
|
|
@@ -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,120 @@
|
|
|
1
|
+
import { UiKitElement as d } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as f } from "../../decorators/customUiKitElement.js";
|
|
3
|
+
import { booleanConverter as u } from "../../utils/booleanConverter.js";
|
|
4
|
+
import { htmlWithTokens as y } 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 { nothing as r, html as m } 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 i } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
9
|
+
import { choose as g } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/choose.js";
|
|
10
|
+
import { classMap as c } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
11
|
+
import { commonStyles as b } from "./styles/common.styles.js";
|
|
12
|
+
var $ = Object.defineProperty, v = Object.getOwnPropertyDescriptor, e = (s, n, a, l) => {
|
|
13
|
+
for (var o = l > 1 ? void 0 : l ? v(n, a) : n, p = s.length - 1, h; p >= 0; p--)
|
|
14
|
+
(h = s[p]) && (o = (l ? h(n, a, o) : h(o)) || o);
|
|
15
|
+
return l && o && $(n, a, o), o;
|
|
16
|
+
};
|
|
17
|
+
let t = class extends d {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments), this.mode = "light", this.size = "large", this.underline = !1, this.disabled = !1, this.iconName = "arrow-right", this.iconPosition = "right";
|
|
20
|
+
}
|
|
21
|
+
get iconTemplate() {
|
|
22
|
+
return this.iconName === "none" ? r : this.componentFactory.createIcon({
|
|
23
|
+
class: "icon",
|
|
24
|
+
"icon-name": this.iconName
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
get classes() {
|
|
28
|
+
return {
|
|
29
|
+
"link-button": !0,
|
|
30
|
+
disabled: !!this.disabled,
|
|
31
|
+
underline: !!this.underline,
|
|
32
|
+
[this.size]: !0,
|
|
33
|
+
[this.mode]: !!this.mode
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
handleClick(s) {
|
|
37
|
+
this.href || s.preventDefault();
|
|
38
|
+
}
|
|
39
|
+
get styleTokens() {
|
|
40
|
+
return y`
|
|
41
|
+
<style>
|
|
42
|
+
:host{
|
|
43
|
+
color-scheme: ${this.mode};
|
|
44
|
+
pointer-events: ${this.disabled ? "none" : "visible"};
|
|
45
|
+
}
|
|
46
|
+
</style>
|
|
47
|
+
`;
|
|
48
|
+
}
|
|
49
|
+
render() {
|
|
50
|
+
return m`
|
|
51
|
+
${this.styleTokens}
|
|
52
|
+
${g(this.htmlTagName || "button", [
|
|
53
|
+
[
|
|
54
|
+
"button",
|
|
55
|
+
() => m`
|
|
56
|
+
<button class=${c(this.classes)} ?disabled=${this.disabled}>
|
|
57
|
+
${this.iconPosition === "left" ? this.iconTemplate : r}
|
|
58
|
+
<slot></slot>
|
|
59
|
+
${this.iconPosition === "right" ? this.iconTemplate : r}
|
|
60
|
+
</button>
|
|
61
|
+
`
|
|
62
|
+
],
|
|
63
|
+
[
|
|
64
|
+
"a",
|
|
65
|
+
() => m`
|
|
66
|
+
<a
|
|
67
|
+
class=${c(this.classes)}
|
|
68
|
+
href=${this.href}
|
|
69
|
+
rel=${this.rel}
|
|
70
|
+
target=${this.target}
|
|
71
|
+
@click=${this.handleClick}
|
|
72
|
+
?disabled=${this.disabled}
|
|
73
|
+
>
|
|
74
|
+
${this.iconPosition === "left" ? this.iconTemplate : r}
|
|
75
|
+
<slot></slot>
|
|
76
|
+
${this.iconPosition === "right" ? this.iconTemplate : r}
|
|
77
|
+
</a>
|
|
78
|
+
`
|
|
79
|
+
]
|
|
80
|
+
])}
|
|
81
|
+
`;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
t.styles = [b];
|
|
85
|
+
e([
|
|
86
|
+
i({ type: String, reflect: !0 })
|
|
87
|
+
], t.prototype, "mode", 2);
|
|
88
|
+
e([
|
|
89
|
+
i({ type: String })
|
|
90
|
+
], t.prototype, "size", 2);
|
|
91
|
+
e([
|
|
92
|
+
i({ type: Boolean, converter: u })
|
|
93
|
+
], t.prototype, "underline", 2);
|
|
94
|
+
e([
|
|
95
|
+
i({ type: Boolean, converter: u })
|
|
96
|
+
], t.prototype, "disabled", 2);
|
|
97
|
+
e([
|
|
98
|
+
i({ type: String, attribute: "html-tag-name" })
|
|
99
|
+
], t.prototype, "htmlTagName", 2);
|
|
100
|
+
e([
|
|
101
|
+
i({ type: String, reflect: !0 })
|
|
102
|
+
], t.prototype, "href", 2);
|
|
103
|
+
e([
|
|
104
|
+
i({ type: String, reflect: !0 })
|
|
105
|
+
], t.prototype, "rel", 2);
|
|
106
|
+
e([
|
|
107
|
+
i({ type: String, reflect: !0 })
|
|
108
|
+
], t.prototype, "target", 2);
|
|
109
|
+
e([
|
|
110
|
+
i({ type: String, attribute: "icon-name" })
|
|
111
|
+
], t.prototype, "iconName", 2);
|
|
112
|
+
e([
|
|
113
|
+
i({ type: String, attribute: "icon-position" })
|
|
114
|
+
], t.prototype, "iconPosition", 2);
|
|
115
|
+
t = e([
|
|
116
|
+
f("ds-link-button")
|
|
117
|
+
], t);
|
|
118
|
+
export {
|
|
119
|
+
t as DsLinkButton
|
|
120
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
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 n } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
const r = n`
|
|
6
|
+
:host {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.link-button {
|
|
11
|
+
background: transparent;
|
|
12
|
+
border: none;
|
|
13
|
+
outline: none;
|
|
14
|
+
text-align: center;
|
|
15
|
+
padding: 0;
|
|
16
|
+
display: inline-flex;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
22
|
+
export {
|
|
23
|
+
r as commonStyles
|
|
24
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DsBaseProgressBar as l } from "../base/ds-base-progress-bar/ds-base-progress-bar.js";
|
|
2
|
+
import { customUiKitElement as i } 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 n } 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 { commonStyles as f } from "./styles/common.styles.js";
|
|
7
|
+
var _ = Object.getOwnPropertyDescriptor, c = Object.getPrototypeOf, g = Reflect.get, v = (r, t, s, m) => {
|
|
8
|
+
for (var o = m > 1 ? void 0 : m ? _(t, s) : t, a = r.length - 1, p; a >= 0; a--)
|
|
9
|
+
(p = r[a]) && (o = p(o) || o);
|
|
10
|
+
return o;
|
|
11
|
+
}, u = (r, t, s) => g(c(r), s, t);
|
|
12
|
+
let e = class extends l {
|
|
13
|
+
render() {
|
|
14
|
+
return this.show ? this.barTemplate : n;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
e.styles = [...u(e, e, "styles"), f];
|
|
18
|
+
e = v([
|
|
19
|
+
i("ds-loader-bar", { skipTagAsComponentName: !0 })
|
|
20
|
+
], e);
|
|
21
|
+
export {
|
|
22
|
+
e as DsLoaderBar
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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 n = r`
|
|
6
|
+
.fill {
|
|
7
|
+
width: 33%;
|
|
8
|
+
transform: translateX(-100%);
|
|
9
|
+
animation: loader 1.4s linear infinite;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@keyframes loader {
|
|
13
|
+
0% {
|
|
14
|
+
transform: translateX(-100%);
|
|
15
|
+
}
|
|
16
|
+
100% {
|
|
17
|
+
transform: translateX(300%);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
export {
|
|
22
|
+
n as commonStyles
|
|
23
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { UiKitElement as a } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as d } from "../../decorators/customUiKitElement.js";
|
|
3
|
+
import { booleanConverter as h } 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 { nothing as f, html as v } 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 p } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
9
|
+
import { classMap as y } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
10
|
+
import { commonStyles as u } from "./styles/common.styles.js";
|
|
11
|
+
var g = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, r = (n, s, i, o) => {
|
|
12
|
+
for (var t = o > 1 ? void 0 : o ? _(s, i) : s, m = n.length - 1, l; m >= 0; m--)
|
|
13
|
+
(l = n[m]) && (t = (o ? l(s, i, t) : l(t)) || t);
|
|
14
|
+
return o && t && g(s, i, t), t;
|
|
15
|
+
};
|
|
16
|
+
let e = class extends a {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments), this.show = !1, this.mode = "light", this.size = "large";
|
|
19
|
+
}
|
|
20
|
+
get classes() {
|
|
21
|
+
return {
|
|
22
|
+
container: !0,
|
|
23
|
+
[this.size]: !0,
|
|
24
|
+
[this.mode]: !!this.mode
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
get styleTokens() {
|
|
28
|
+
return c`
|
|
29
|
+
<style>
|
|
30
|
+
:host {
|
|
31
|
+
color-scheme: ${this.mode};
|
|
32
|
+
}
|
|
33
|
+
</style>
|
|
34
|
+
`;
|
|
35
|
+
}
|
|
36
|
+
render() {
|
|
37
|
+
return this.show ? v`
|
|
38
|
+
${this.styleTokens}
|
|
39
|
+
<div class=${y(this.classes)}>
|
|
40
|
+
<div class="dot first"></div>
|
|
41
|
+
<div class="dot middle"></div>
|
|
42
|
+
<div class="dot last"></div>
|
|
43
|
+
</div>
|
|
44
|
+
` : f;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
e.styles = [u];
|
|
48
|
+
r([
|
|
49
|
+
p({ type: Boolean, converter: h })
|
|
50
|
+
], e.prototype, "show", 2);
|
|
51
|
+
r([
|
|
52
|
+
p({ type: String, reflect: !0 })
|
|
53
|
+
], e.prototype, "mode", 2);
|
|
54
|
+
r([
|
|
55
|
+
p({ type: String })
|
|
56
|
+
], e.prototype, "size", 2);
|
|
57
|
+
e = r([
|
|
58
|
+
d("ds-loader-dots")
|
|
59
|
+
], e);
|
|
60
|
+
export {
|
|
61
|
+
e as DsLoaderDots
|
|
62
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { cssWithTokens as i } from "../../../utils/cssWithTokens.js";
|
|
2
|
+
const t = i`
|
|
3
|
+
.container {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-items: center;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.dot.middle {
|
|
10
|
+
animation-delay: 0.4s;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.dot.last {
|
|
14
|
+
animation-delay: 0.8s;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.dot {
|
|
18
|
+
border-radius: 50%;
|
|
19
|
+
animation-name: loader;
|
|
20
|
+
animation-timing-function: linear;
|
|
21
|
+
animation-iteration-count: infinite;
|
|
22
|
+
animation-fill-mode: forwards;
|
|
23
|
+
animation-duration: 2s;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@keyframes loader {
|
|
27
|
+
0% { opacity: 1 }
|
|
28
|
+
18% { opacity: 0.2 }
|
|
29
|
+
82% { opacity: 0.6 }
|
|
30
|
+
100% { opacity: 1 }
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
export {
|
|
34
|
+
t as commonStyles
|
|
35
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { UiKitElement as h } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as y } from "../../decorators/customUiKitElement.js";
|
|
3
|
+
import { booleanConverter as d } from "../../utils/booleanConverter.js";
|
|
4
|
+
import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
5
|
+
import { html as a, nothing as m } 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 i } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
8
|
+
import { commonStyles as f } from "./ds-loader-logo.styles.js";
|
|
9
|
+
var u = Object.defineProperty, v = Object.getOwnPropertyDescriptor, t = (l, r, n, s) => {
|
|
10
|
+
for (var o = s > 1 ? void 0 : s ? v(r, n) : r, p = l.length - 1, c; p >= 0; p--)
|
|
11
|
+
(c = l[p]) && (o = (s ? c(r, n, o) : c(o)) || o);
|
|
12
|
+
return s && o && u(r, n, o), o;
|
|
13
|
+
};
|
|
14
|
+
let e = class extends h {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments), this.show = !1, this.zIndex = 2e3, this.iconName = "logo";
|
|
17
|
+
}
|
|
18
|
+
get styleTokens() {
|
|
19
|
+
return a`
|
|
20
|
+
<style>
|
|
21
|
+
:host {
|
|
22
|
+
--ds-icon-color: ${this.color || "var(--ds-loader-logo-icon-color)"};
|
|
23
|
+
}
|
|
24
|
+
</style>
|
|
25
|
+
`;
|
|
26
|
+
}
|
|
27
|
+
get iconTemplate() {
|
|
28
|
+
return this.iconName ? this.componentFactory.createIcon({
|
|
29
|
+
class: "icon",
|
|
30
|
+
"icon-name": this.iconName
|
|
31
|
+
}) : m;
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
return this.show ? a`
|
|
35
|
+
<style>
|
|
36
|
+
.backdrop {
|
|
37
|
+
z-index: ${this.zIndex};
|
|
38
|
+
}
|
|
39
|
+
</style>
|
|
40
|
+
${this.styleTokens}
|
|
41
|
+
<div class="backdrop">
|
|
42
|
+
<div class="container">${this.iconTemplate}</div>
|
|
43
|
+
</div>
|
|
44
|
+
` : m;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
e.styles = [f];
|
|
48
|
+
t([
|
|
49
|
+
i({ type: Boolean, converter: d })
|
|
50
|
+
], e.prototype, "show", 2);
|
|
51
|
+
t([
|
|
52
|
+
i({ type: Number, attribute: "z-index" })
|
|
53
|
+
], e.prototype, "zIndex", 2);
|
|
54
|
+
t([
|
|
55
|
+
i({ type: String, attribute: "icon-name" })
|
|
56
|
+
], e.prototype, "iconName", 2);
|
|
57
|
+
t([
|
|
58
|
+
i({ type: String })
|
|
59
|
+
], e.prototype, "color", 2);
|
|
60
|
+
e = t([
|
|
61
|
+
y("ds-loader-logo")
|
|
62
|
+
], e);
|
|
63
|
+
export {
|
|
64
|
+
e as DsLoaderLogo
|
|
65
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
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 t } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
const i = t`
|
|
6
|
+
.backdrop {
|
|
7
|
+
display: flex;
|
|
8
|
+
position: fixed;
|
|
9
|
+
height: 100dvh;
|
|
10
|
+
width: 100dvw;
|
|
11
|
+
left: 0;
|
|
12
|
+
top: 0;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* WebKit and Opera browsers */
|
|
18
|
+
@-webkit-keyframes spinner {
|
|
19
|
+
from {
|
|
20
|
+
-webkit-transform: rotateY(0deg);
|
|
21
|
+
}
|
|
22
|
+
to {
|
|
23
|
+
-webkit-transform: rotateY(-360deg);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* all other browsers */
|
|
28
|
+
@keyframes spinner {
|
|
29
|
+
from {
|
|
30
|
+
-moz-transform: rotateY(0deg);
|
|
31
|
+
-ms-transform: rotateY(0deg);
|
|
32
|
+
transform: rotateY(0deg);
|
|
33
|
+
}
|
|
34
|
+
to {
|
|
35
|
+
-moz-transform: rotateY(-360deg);
|
|
36
|
+
-ms-transform: rotateY(-360deg);
|
|
37
|
+
transform: rotateY(-360deg);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.container {
|
|
42
|
+
position: relative;
|
|
43
|
+
perspective: 1000px;
|
|
44
|
+
animation-name: spinner;
|
|
45
|
+
animation-timing-function: ease-in-out;
|
|
46
|
+
animation-iteration-count: infinite;
|
|
47
|
+
animation-duration: 2s;
|
|
48
|
+
transform-style: preserve-3d;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.logo {
|
|
52
|
+
position: absolute;
|
|
53
|
+
top: 0;
|
|
54
|
+
left: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.front-logo {
|
|
58
|
+
z-index: 1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.back-logo {
|
|
62
|
+
z-index: 0;
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
65
|
+
export {
|
|
66
|
+
i as commonStyles
|
|
67
|
+
};
|