@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,196 @@
|
|
|
1
|
+
import { UiKitElement as f } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as y } from "../../decorators/customUiKitElement.js";
|
|
3
|
+
import { ViewportMixin as g } from "../../mixins/ViewportMixin.js";
|
|
4
|
+
import { booleanConverter as a } from "../../utils/booleanConverter.js";
|
|
5
|
+
import { htmlWithTokens as b } from "../../utils/htmlWithTokens.js";
|
|
6
|
+
import { objectConverter as v } from "../../utils/objectConverter.js";
|
|
7
|
+
import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
8
|
+
import { nothing as u, html as o } 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 s } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
11
|
+
import { state as $ } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";
|
|
12
|
+
import { choose as T } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/choose.js";
|
|
13
|
+
import { classMap as d } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
14
|
+
import { when as p } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/when.js";
|
|
15
|
+
import { buttonStyles as S, textStyles as P, loadingDotsStyles as w } from "./styles/common.styles.js";
|
|
16
|
+
var C = Object.defineProperty, x = Object.getOwnPropertyDescriptor, e = (i, n, h, l) => {
|
|
17
|
+
for (var r = l > 1 ? void 0 : l ? x(n, h) : n, c = i.length - 1, m; c >= 0; c--)
|
|
18
|
+
(m = i[c]) && (r = (l ? m(n, h, r) : m(r)) || r);
|
|
19
|
+
return l && r && C(n, h, r), r;
|
|
20
|
+
};
|
|
21
|
+
let t = class extends g(f) {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments), this.variant = "primary", this.mode = "light", this.size = "large", this.disabled = !1, this.destructive = !1, this.htmlTagName = "button", this.type = "button", this.iconPosition = "left", this.rounded = !1, this.fullWidth = !1, this.loading = !1;
|
|
24
|
+
}
|
|
25
|
+
firstUpdated() {
|
|
26
|
+
this.closestForm = this.closest("form");
|
|
27
|
+
}
|
|
28
|
+
get classes() {
|
|
29
|
+
const i = typeof this.size == "string" ? this.size : this.size[this.viewport];
|
|
30
|
+
return {
|
|
31
|
+
button: !0,
|
|
32
|
+
custom: this.htmlTagName === "custom",
|
|
33
|
+
[i]: !!i,
|
|
34
|
+
[this.mode]: !!this.mode,
|
|
35
|
+
[this.variant]: !!this.variant,
|
|
36
|
+
rounded: this.rounded,
|
|
37
|
+
disabled: this.disabled || this.loading,
|
|
38
|
+
destructive: this.destructive,
|
|
39
|
+
"full-width": this.fullWidth
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
handleClick(i) {
|
|
43
|
+
if (this.href || i.preventDefault(), this.closestForm && this.type === "submit") {
|
|
44
|
+
const n = new Event("submit", {
|
|
45
|
+
bubbles: !0,
|
|
46
|
+
composed: !0,
|
|
47
|
+
cancelable: !0
|
|
48
|
+
});
|
|
49
|
+
this.closestForm.dispatchEvent(n);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
get iconTemplate() {
|
|
53
|
+
return this.iconName ? this.componentFactory.createIcon({
|
|
54
|
+
class: "icon",
|
|
55
|
+
"icon-name": this.iconName
|
|
56
|
+
}) : u;
|
|
57
|
+
}
|
|
58
|
+
get loadingTemplate() {
|
|
59
|
+
return this.loading ? o`
|
|
60
|
+
<span class="loading-dots">
|
|
61
|
+
<span>.</span>
|
|
62
|
+
<span>.</span>
|
|
63
|
+
<span>.</span>
|
|
64
|
+
</span>
|
|
65
|
+
` : u;
|
|
66
|
+
}
|
|
67
|
+
get cssTokens() {
|
|
68
|
+
return b`
|
|
69
|
+
<style>
|
|
70
|
+
:host{
|
|
71
|
+
color-scheme: ${this.mode};
|
|
72
|
+
pointer-events: ${this.loading || this.disabled ? "none" : "visible"};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:host:has(::slotted(*:disabled)){
|
|
76
|
+
pointer-events: none;
|
|
77
|
+
}
|
|
78
|
+
</style>`;
|
|
79
|
+
}
|
|
80
|
+
render() {
|
|
81
|
+
return o`
|
|
82
|
+
${this.cssTokens}
|
|
83
|
+
${T(this.htmlTagName || "button", [
|
|
84
|
+
[
|
|
85
|
+
"button",
|
|
86
|
+
() => {
|
|
87
|
+
var i;
|
|
88
|
+
return o`
|
|
89
|
+
<button
|
|
90
|
+
aria-label=${(i = this.textContent) == null ? void 0 : i.replace(/^\s+|\s+$/g, "")}
|
|
91
|
+
class=${d(this.classes)}
|
|
92
|
+
type=${this.type}
|
|
93
|
+
@click=${this.handleClick}
|
|
94
|
+
?disabled=${this.disabled}
|
|
95
|
+
>
|
|
96
|
+
${p(this.iconPosition === "left", () => o` ${this.iconTemplate} `)}
|
|
97
|
+
<span class="container">
|
|
98
|
+
<slot></slot>
|
|
99
|
+
${this.loadingTemplate}
|
|
100
|
+
</span>
|
|
101
|
+
${p(this.iconPosition === "right", () => o` ${this.iconTemplate} `)}
|
|
102
|
+
</button>
|
|
103
|
+
`;
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
[
|
|
107
|
+
"a",
|
|
108
|
+
() => {
|
|
109
|
+
var i;
|
|
110
|
+
return o`
|
|
111
|
+
<a
|
|
112
|
+
aria-label=${(i = this.textContent) == null ? void 0 : i.replace(/^\s+|\s+$/g, "")}
|
|
113
|
+
class=${d(this.classes)}
|
|
114
|
+
href=${this.href}
|
|
115
|
+
rel=${this.rel}
|
|
116
|
+
target=${this.target}
|
|
117
|
+
@click=${this.handleClick}
|
|
118
|
+
?disabled=${this.disabled}
|
|
119
|
+
>
|
|
120
|
+
${p(this.iconPosition === "left", () => o`${this.iconTemplate}`)}
|
|
121
|
+
<span class="container">
|
|
122
|
+
<slot></slot>
|
|
123
|
+
${this.loadingTemplate}
|
|
124
|
+
</span>
|
|
125
|
+
${p(this.iconPosition === "right", () => o`${this.iconTemplate}`)}
|
|
126
|
+
</a>
|
|
127
|
+
`;
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
[
|
|
131
|
+
"custom",
|
|
132
|
+
() => o`
|
|
133
|
+
<div class=${d(this.classes)}>
|
|
134
|
+
<slot></slot>
|
|
135
|
+
</div>
|
|
136
|
+
`
|
|
137
|
+
]
|
|
138
|
+
])}
|
|
139
|
+
`;
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
t.styles = [S, P, w];
|
|
143
|
+
e([
|
|
144
|
+
s({ type: String })
|
|
145
|
+
], t.prototype, "variant", 2);
|
|
146
|
+
e([
|
|
147
|
+
s({ type: String, reflect: !0 })
|
|
148
|
+
], t.prototype, "mode", 2);
|
|
149
|
+
e([
|
|
150
|
+
s({ type: String, converter: v })
|
|
151
|
+
], t.prototype, "size", 2);
|
|
152
|
+
e([
|
|
153
|
+
s({ type: Boolean, converter: a })
|
|
154
|
+
], t.prototype, "disabled", 2);
|
|
155
|
+
e([
|
|
156
|
+
s({ type: Boolean, converter: a })
|
|
157
|
+
], t.prototype, "destructive", 2);
|
|
158
|
+
e([
|
|
159
|
+
s({ type: String, attribute: "icon-name" })
|
|
160
|
+
], t.prototype, "iconName", 2);
|
|
161
|
+
e([
|
|
162
|
+
s({ type: String, attribute: "html-tag-name" })
|
|
163
|
+
], t.prototype, "htmlTagName", 2);
|
|
164
|
+
e([
|
|
165
|
+
s({ type: String, reflect: !0 })
|
|
166
|
+
], t.prototype, "href", 2);
|
|
167
|
+
e([
|
|
168
|
+
s({ type: String, reflect: !0 })
|
|
169
|
+
], t.prototype, "rel", 2);
|
|
170
|
+
e([
|
|
171
|
+
s({ type: String, reflect: !0 })
|
|
172
|
+
], t.prototype, "target", 2);
|
|
173
|
+
e([
|
|
174
|
+
s({ type: String })
|
|
175
|
+
], t.prototype, "type", 2);
|
|
176
|
+
e([
|
|
177
|
+
s({ type: String, attribute: "icon-position" })
|
|
178
|
+
], t.prototype, "iconPosition", 2);
|
|
179
|
+
e([
|
|
180
|
+
s({ type: Boolean, converter: a })
|
|
181
|
+
], t.prototype, "rounded", 2);
|
|
182
|
+
e([
|
|
183
|
+
s({ type: Boolean, converter: a, attribute: "full-width" })
|
|
184
|
+
], t.prototype, "fullWidth", 2);
|
|
185
|
+
e([
|
|
186
|
+
s({ type: Boolean, converter: a })
|
|
187
|
+
], t.prototype, "loading", 2);
|
|
188
|
+
e([
|
|
189
|
+
$()
|
|
190
|
+
], t.prototype, "closestForm", 2);
|
|
191
|
+
t = e([
|
|
192
|
+
y("ds-button")
|
|
193
|
+
], t);
|
|
194
|
+
export {
|
|
195
|
+
t as DsButton
|
|
196
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
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 e = t`
|
|
6
|
+
:host {
|
|
7
|
+
display: contents;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.button {
|
|
11
|
+
text-decoration: none;
|
|
12
|
+
user-select: none;
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
align-items: center;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
outline-style: solid;
|
|
19
|
+
max-width: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.button.full-width {
|
|
23
|
+
width: 100%;
|
|
24
|
+
}
|
|
25
|
+
`, s = t`
|
|
26
|
+
.text.container {
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.container {
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
text-overflow: ellipsis;
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
}
|
|
35
|
+
`, l = t`
|
|
36
|
+
.loading-dots {
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: baseline;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.loading-dots span {
|
|
42
|
+
animation-duration: 1.5s;
|
|
43
|
+
animation-iteration-count: infinite;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.loading-dots span:nth-child(1) {
|
|
47
|
+
animation-name: dot1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.loading-dots span:nth-child(2) {
|
|
51
|
+
animation-name: dot2;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.loading-dots span:nth-child(3) {
|
|
55
|
+
animation-name: dot3;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@keyframes dot1 {
|
|
59
|
+
0% {
|
|
60
|
+
opacity: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
20% {
|
|
64
|
+
opacity: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
30% {
|
|
68
|
+
opacity: 1;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
100% {
|
|
72
|
+
opacity: 1;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@keyframes dot2 {
|
|
77
|
+
0% {
|
|
78
|
+
opacity: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
45% {
|
|
82
|
+
opacity: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
55% {
|
|
86
|
+
opacity: 1;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
100% {
|
|
90
|
+
opacity: 1;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@keyframes dot3 {
|
|
95
|
+
0% {
|
|
96
|
+
opacity: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
70% {
|
|
100
|
+
opacity: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
80% {
|
|
104
|
+
opacity: 1;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
100% {
|
|
108
|
+
opacity: 1;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
`;
|
|
112
|
+
export {
|
|
113
|
+
e as buttonStyles,
|
|
114
|
+
l as loadingDotsStyles,
|
|
115
|
+
s as textStyles
|
|
116
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { UiKitElement as u } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as h } 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 { html as m, nothing as f } 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 d } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
7
|
+
import { state as b } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";
|
|
8
|
+
import { classMap as a } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
9
|
+
import { commonStyles as x } from "./styles/common.styles.js";
|
|
10
|
+
var v = Object.defineProperty, N = Object.getOwnPropertyDescriptor, n = (i, t, e, s) => {
|
|
11
|
+
for (var r = s > 1 ? void 0 : s ? N(t, e) : t, l = i.length - 1, c; l >= 0; l--)
|
|
12
|
+
(c = i[l]) && (r = (s ? c(t, e, r) : c(r)) || r);
|
|
13
|
+
return s && r && v(t, e, r), r;
|
|
14
|
+
};
|
|
15
|
+
let o = class extends u {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments), this.maxSelectorsShown = 6;
|
|
18
|
+
}
|
|
19
|
+
get classes() {
|
|
20
|
+
return {
|
|
21
|
+
container: !0,
|
|
22
|
+
infinite: this.selectorsNumber > this.maxSelectorsShown
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
get selectorsTemplate() {
|
|
26
|
+
const i = [], t = this.selectorsNumber > this.maxSelectorsShown;
|
|
27
|
+
for (let e = 0; e < this.selectorsNumber; e++) {
|
|
28
|
+
let s = !1;
|
|
29
|
+
const r = this.selectedIndex >= 3 && this.selectedIndex < this.selectorsNumber - 3, l = this.selectedIndex < 3, c = this.selectedIndex >= this.selectorsNumber - 3;
|
|
30
|
+
t && (r && (e < this.selectedIndex - 3 || e > this.selectedIndex + 3) || l && e >= 5 || c && e < this.selectorsNumber - 5) && (s = t);
|
|
31
|
+
const p = {
|
|
32
|
+
selector: !0,
|
|
33
|
+
selected: e === this.selectedIndex,
|
|
34
|
+
hidden: s
|
|
35
|
+
};
|
|
36
|
+
i.push(m` <div class=${a(p)}></div> `);
|
|
37
|
+
}
|
|
38
|
+
return i;
|
|
39
|
+
}
|
|
40
|
+
render() {
|
|
41
|
+
return this.selectorsNumber > 0 ? m`
|
|
42
|
+
<div data-testid="ds-carousel-indicator-container" class=${a(this.classes)}>
|
|
43
|
+
${this.selectorsTemplate}
|
|
44
|
+
</div>
|
|
45
|
+
` : f;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
o.styles = [x];
|
|
49
|
+
n([
|
|
50
|
+
d({ type: Number, attribute: "selectors-number" })
|
|
51
|
+
], o.prototype, "selectorsNumber", 2);
|
|
52
|
+
n([
|
|
53
|
+
d({ type: Number, attribute: "selected-index" })
|
|
54
|
+
], o.prototype, "selectedIndex", 2);
|
|
55
|
+
n([
|
|
56
|
+
b()
|
|
57
|
+
], o.prototype, "maxSelectorsShown", 2);
|
|
58
|
+
o = n([
|
|
59
|
+
h("ds-carousel-indicator")
|
|
60
|
+
], o);
|
|
61
|
+
export {
|
|
62
|
+
o as DsCarouselIndicator
|
|
63
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
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 n = t`
|
|
6
|
+
:host {
|
|
7
|
+
display: flex;
|
|
8
|
+
width: 100%;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.container {
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
export {
|
|
18
|
+
n as commonStyles
|
|
19
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { UiKitElement as m } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as u } from "../../decorators/customUiKitElement.js";
|
|
3
|
+
import { FormAssociatedMixin as v } from "../../mixins/FormAssociatedMixin.js";
|
|
4
|
+
import { booleanConverter as h } from "../../utils/booleanConverter.js";
|
|
5
|
+
import { htmlWithTokens as f } from "../../utils/htmlWithTokens.js";
|
|
6
|
+
import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
7
|
+
import { nothing as n, html as a } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
8
|
+
import "../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
9
|
+
import { property as r } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
10
|
+
import { classMap as y } 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 x = Object.defineProperty, g = Object.getOwnPropertyDescriptor, t = (o, s, p, c) => {
|
|
13
|
+
for (var i = c > 1 ? void 0 : c ? g(s, p) : s, l = o.length - 1, d; l >= 0; l--)
|
|
14
|
+
(d = o[l]) && (i = (c ? d(s, p, i) : d(i)) || i);
|
|
15
|
+
return c && i && x(s, p, i), i;
|
|
16
|
+
};
|
|
17
|
+
let e = class extends v(m) {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments), this.inputPlacement = "left", this.checked = !1, this.required = !1, this.disabled = !1, this.mode = "light", this.size = "medium", this.helperText = "", this.infoText = "", this.forcedError = "", this.invalidError = "", this.indeterminate = !1;
|
|
20
|
+
}
|
|
21
|
+
handleChange(o) {
|
|
22
|
+
const s = o.target;
|
|
23
|
+
this.checked = s.checked, this.dispatchEvent(
|
|
24
|
+
new CustomEvent("change", {
|
|
25
|
+
bubbles: !0,
|
|
26
|
+
composed: !0,
|
|
27
|
+
detail: {
|
|
28
|
+
checked: this.checked,
|
|
29
|
+
value: this.value
|
|
30
|
+
}
|
|
31
|
+
})
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
get classes() {
|
|
35
|
+
return {
|
|
36
|
+
container: !0,
|
|
37
|
+
[this.inputPlacement]: !!this.inputPlacement,
|
|
38
|
+
[this.mode]: !!this.mode,
|
|
39
|
+
[this.size]: !!this.size,
|
|
40
|
+
disabled: this.disabled,
|
|
41
|
+
checked: this.checked,
|
|
42
|
+
error: !!this.forcedError
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
get iconTemplate() {
|
|
46
|
+
if (!this.checked) return n;
|
|
47
|
+
const o = this.indeterminate ? "minus" : "check";
|
|
48
|
+
return this.componentFactory.createIcon({
|
|
49
|
+
class: "icon",
|
|
50
|
+
"icon-name": o
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
get styleTokens() {
|
|
54
|
+
return f`
|
|
55
|
+
<style>
|
|
56
|
+
:host{
|
|
57
|
+
color-scheme: ${this.mode};
|
|
58
|
+
pointer-events: ${this.disabled ? "none" : "visible"};
|
|
59
|
+
}
|
|
60
|
+
</style>
|
|
61
|
+
`;
|
|
62
|
+
}
|
|
63
|
+
render() {
|
|
64
|
+
return a`
|
|
65
|
+
${this.styleTokens}
|
|
66
|
+
<div class=${y(this.classes)}>
|
|
67
|
+
<label>
|
|
68
|
+
<span class="checkmark-container">
|
|
69
|
+
<span class="checkmark">
|
|
70
|
+
${this.iconTemplate}
|
|
71
|
+
<input
|
|
72
|
+
tabindex="0"
|
|
73
|
+
type="checkbox"
|
|
74
|
+
name=${this.name}
|
|
75
|
+
value=${this.value}
|
|
76
|
+
?required=${this.required}
|
|
77
|
+
?checked=${this.checked}
|
|
78
|
+
?disabled=${this.disabled}
|
|
79
|
+
@change=${this.handleChange}
|
|
80
|
+
/>
|
|
81
|
+
</span>
|
|
82
|
+
</span>
|
|
83
|
+
<div class="text-container">
|
|
84
|
+
<div class="text">
|
|
85
|
+
<slot></slot>
|
|
86
|
+
${this.infoText ? a` <div class="info-text">${this.infoText}</div> ` : n}
|
|
87
|
+
</div>
|
|
88
|
+
${this.helperText ? a` <div class="helper-text">${this.helperText}</div> ` : n}
|
|
89
|
+
${this.forcedError ? a` <div class="error-text">${this.forcedError}</div> ` : n}
|
|
90
|
+
${this.invalidError && !this.forcedError ? a`<div class="error-text invalid-error">${this.invalidError}</div>` : n}
|
|
91
|
+
</div>
|
|
92
|
+
</label>
|
|
93
|
+
</div>
|
|
94
|
+
`;
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
e.styles = [b];
|
|
98
|
+
t([
|
|
99
|
+
r({ type: String })
|
|
100
|
+
], e.prototype, "name", 2);
|
|
101
|
+
t([
|
|
102
|
+
r({ type: String })
|
|
103
|
+
], e.prototype, "value", 2);
|
|
104
|
+
t([
|
|
105
|
+
r({ type: String, attribute: "input-placement" })
|
|
106
|
+
], e.prototype, "inputPlacement", 2);
|
|
107
|
+
t([
|
|
108
|
+
r({ type: Boolean, converter: h, reflect: !0 })
|
|
109
|
+
], e.prototype, "checked", 2);
|
|
110
|
+
t([
|
|
111
|
+
r({ type: Boolean, converter: h })
|
|
112
|
+
], e.prototype, "required", 2);
|
|
113
|
+
t([
|
|
114
|
+
r({ type: Boolean, converter: h })
|
|
115
|
+
], e.prototype, "disabled", 2);
|
|
116
|
+
t([
|
|
117
|
+
r({ type: String, reflect: !0 })
|
|
118
|
+
], e.prototype, "mode", 2);
|
|
119
|
+
t([
|
|
120
|
+
r({ type: String })
|
|
121
|
+
], e.prototype, "size", 2);
|
|
122
|
+
t([
|
|
123
|
+
r({ type: String, attribute: "helper-text" })
|
|
124
|
+
], e.prototype, "helperText", 2);
|
|
125
|
+
t([
|
|
126
|
+
r({ type: String, attribute: "info-text" })
|
|
127
|
+
], e.prototype, "infoText", 2);
|
|
128
|
+
t([
|
|
129
|
+
r({ type: String, attribute: "forced-error" })
|
|
130
|
+
], e.prototype, "forcedError", 2);
|
|
131
|
+
t([
|
|
132
|
+
r({ type: String, attribute: "invalid-error" })
|
|
133
|
+
], e.prototype, "invalidError", 2);
|
|
134
|
+
t([
|
|
135
|
+
r({ type: Boolean, converter: h })
|
|
136
|
+
], e.prototype, "indeterminate", 2);
|
|
137
|
+
e = t([
|
|
138
|
+
u("ds-checkbox")
|
|
139
|
+
], e);
|
|
140
|
+
export {
|
|
141
|
+
e as DsCheckbox
|
|
142
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
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 i } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
const r = i`
|
|
6
|
+
:host {
|
|
7
|
+
display: block;
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
label {
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
display: flex;
|
|
14
|
+
justify-content: flex-start;
|
|
15
|
+
align-items: flex-start;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
input {
|
|
19
|
+
position: absolute;
|
|
20
|
+
opacity: 0;
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 100%;
|
|
23
|
+
top: 0;
|
|
24
|
+
left: 0;
|
|
25
|
+
margin: 0;
|
|
26
|
+
padding: 0;
|
|
27
|
+
z-index: 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.checkmark-container {
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.checkmark {
|
|
35
|
+
position: relative;
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
border-style: solid;
|
|
38
|
+
transition: all 200ms ease-in-out;
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
align-items: center;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.invalid-error {
|
|
46
|
+
display: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.container:has(input:invalid) .invalid-error {
|
|
50
|
+
display: block;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.container:has(input:invalid) .helper-text,
|
|
54
|
+
.container.error .helper-text {
|
|
55
|
+
display: none;
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
export {
|
|
59
|
+
r as commonStyles
|
|
60
|
+
};
|