@cupra/ui-kit 1.0.0-canary.9 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/components/base/DsUiElement.js +47 -0
- package/dist/components/base/UiKitElement.js +82 -0
- package/dist/components/base/ds-base-input/ds-base-input.js +112 -0
- package/dist/components/base/ds-base-input/styles/common.styles.js +63 -0
- package/dist/components/base/ds-base-input/styles/cupra.styles.js +124 -0
- package/dist/components/base/ds-base-progress-bar/ds-base-progress-bar.js +64 -0
- package/dist/components/base/ds-base-progress-bar/styles/common.styles.js +22 -0
- package/dist/components/base/ds-base-progress-bar/styles/cupra-diagonal.styles.js +27 -0
- package/dist/components/base/ds-base-progress-bar/styles/cupra.styles.js +27 -0
- package/dist/components/base/ds-base-progress-bar/styles/seat.styles.js +8 -0
- package/dist/components/ds-accordion/ds-accordion.js +124 -0
- package/dist/components/ds-accordion/styles/common.styles.js +64 -0
- package/dist/components/ds-accordion/theme-config.js +26 -0
- package/dist/components/ds-avatar/ds-avatar.js +102 -0
- package/dist/components/ds-avatar/styles/common.styles.js +12 -0
- package/dist/components/ds-badge/ds-badge.d.ts +18 -0
- package/dist/components/ds-badge/ds-badge.js +53 -0
- package/dist/components/ds-badge/ds-badge.test.d.ts +8 -0
- package/dist/components/ds-badge/ds-badge.types.d.ts +6 -0
- package/dist/components/ds-badge/styles/common.styles.d.ts +1 -0
- package/dist/components/ds-badge/styles/common.styles.js +9 -0
- package/dist/components/ds-badge/styles/cupra-diagonal.styles.d.ts +1 -0
- package/dist/components/ds-badge/styles/cupra-diagonal.styles.js +47 -0
- package/dist/components/ds-bullets/ds-bullets.js +79 -0
- package/dist/components/ds-bullets/styles/common.styles.js +26 -0
- package/dist/components/ds-button/ds-button.js +196 -0
- package/dist/components/ds-button/styles/common.styles.js +116 -0
- package/dist/components/ds-carousel-indicator/ds-carousel-indicator.js +63 -0
- package/dist/components/ds-carousel-indicator/styles/common.styles.js +19 -0
- package/dist/components/ds-checkbox/ds-checkbox.js +142 -0
- package/dist/components/ds-checkbox/styles/common.styles.js +60 -0
- package/dist/components/ds-chip/ds-chip.js +131 -0
- package/dist/components/ds-chip/styles/common.styles.js +25 -0
- package/dist/components/ds-chips/ds-chips.js +143 -0
- package/dist/components/ds-chips/styles/common.styles.js +94 -0
- package/dist/components/ds-currency/ds-currency.js +139 -0
- package/dist/components/ds-currency/styles/common.styles.js +17 -0
- package/dist/components/ds-dialog/ds-dialog.js +107 -0
- package/dist/components/ds-dialog/styles/common.styles.js +82 -0
- package/dist/components/ds-dialog-body/ds-dialog-body.js +46 -0
- package/dist/components/ds-dialog-body/styles/common.styles.js +12 -0
- package/dist/components/ds-dialog-footer/ds-dialog-footer.js +47 -0
- package/dist/components/ds-dialog-footer/styles/common.styles.js +16 -0
- package/dist/components/ds-dialog-header/ds-dialog-header.js +68 -0
- package/dist/components/ds-dialog-header/styles/common.styles.js +12 -0
- package/dist/components/ds-divider/ds-divider.js +58 -0
- package/dist/components/ds-divider/styles/common.styles.js +13 -0
- package/dist/components/ds-hyperlink/ds-hyperlink.js +93 -0
- package/dist/components/ds-hyperlink/styles/common.styles.js +22 -0
- package/dist/components/ds-icon/Icons.type.d.ts +1 -1
- package/dist/components/ds-icon/ds-icon.js +105 -0
- package/dist/components/ds-icon/iconNames.d.ts +1 -1
- package/dist/components/ds-icon/iconNames.js +394 -0
- package/dist/components/ds-icon-button/ds-icon-button.js +138 -0
- package/dist/components/ds-icon-button/styles/common.styles.js +24 -0
- package/dist/components/ds-input/ds-input.js +138 -0
- package/dist/components/ds-interactive-card/ds-interactive-card.js +90 -0
- package/dist/components/ds-interactive-card/styles/common.styles.js +12 -0
- package/dist/components/ds-link-button/ds-link-button.js +120 -0
- package/dist/components/ds-link-button/styles/common.styles.js +24 -0
- package/dist/components/ds-loader-bar/ds-loader-bar.js +23 -0
- package/dist/components/ds-loader-bar/styles/common.styles.js +23 -0
- package/dist/components/ds-loader-dots/ds-loader-dots.js +62 -0
- package/dist/components/ds-loader-dots/styles/common.styles.js +35 -0
- package/dist/components/ds-loader-logo/ds-loader-logo.js +65 -0
- package/dist/components/ds-loader-logo/ds-loader-logo.styles.js +67 -0
- package/dist/components/ds-loader-spinner/ds-loader-spinner.js +53 -0
- package/dist/components/ds-loader-spinner/styles/common.styles.js +56 -0
- package/dist/components/ds-logo/ds-logo.js +69 -0
- package/dist/components/ds-logo/styles/common.styles.js +18 -0
- package/dist/components/ds-main-title/ds-main-title.d.ts +10 -0
- package/dist/components/ds-main-title/ds-main-title.js +35 -0
- package/dist/components/ds-main-title/ds-main-title.test.d.ts +7 -0
- package/dist/components/ds-main-title/ds-main-title.types.d.ts +2 -0
- package/dist/components/ds-main-title/styles/common.styles.d.ts +1 -0
- package/dist/components/ds-main-title/styles/common.styles.js +19 -0
- package/dist/components/ds-map-pin/ds-map-pin.js +116 -0
- package/dist/components/ds-map-pin/styles/common.styles.js +43 -0
- package/dist/components/ds-modal/ds-modal.js +215 -0
- package/dist/components/ds-modal/styles/common.styles.js +289 -0
- package/dist/components/ds-password-input/ds-password-input.js +43 -0
- package/dist/components/ds-picker-item/ds-picker-item.js +89 -0
- package/dist/components/ds-picker-item/styles/common.styles.js +12 -0
- package/dist/components/ds-portal/ds-portal.js +41 -0
- package/dist/components/ds-progress-bar/ds-progress-bar.js +34 -0
- package/dist/components/ds-progress-bar/styles/common.styles.js +12 -0
- package/dist/components/ds-radio/ds-radio.js +111 -0
- package/dist/components/ds-radio/styles/common.styles.js +44 -0
- package/dist/components/ds-radio-button/ds-radio-button.js +185 -0
- package/dist/components/ds-radio-button/styles/common.styles.js +52 -0
- package/dist/components/ds-radio-button-group/ds-radio-button-group.js +83 -0
- package/dist/components/ds-radio-button-group/styles/common.styles.js +25 -0
- package/dist/components/ds-radio-group/ds-radio-group.js +79 -0
- package/dist/components/ds-radio-group/ds-radio-group.styles.js +21 -0
- package/dist/components/ds-rating/ds-rating.d.ts +14 -0
- package/dist/components/ds-rating/ds-rating.js +73 -0
- package/dist/components/ds-rating/ds-rating.test.d.ts +8 -0
- package/dist/components/ds-rating/ds-rating.types.d.ts +6 -0
- package/dist/components/ds-rating/styles/common.styles.d.ts +1 -0
- package/dist/components/ds-rating/styles/common.styles.js +14 -0
- package/dist/components/ds-search/ds-search.js +210 -0
- package/dist/components/ds-search/styles/common.styles.js +61 -0
- package/dist/components/ds-search-input/ds-search-input.js +158 -0
- package/dist/components/ds-search-input/styles/common.styles.js +12 -0
- package/dist/components/ds-secondary-navigation/ds-secondary-navigation.js +233 -0
- package/dist/components/ds-secondary-navigation/styles/common.styles.js +12 -0
- package/dist/components/ds-segmented-control/ds-segmented-control.js +71 -0
- package/dist/components/ds-segmented-control/styles/common.styles.js +56 -0
- package/dist/components/ds-select/controllers/SelectKeyboardController.js +33 -0
- package/dist/components/ds-select/ds-select.js +274 -0
- package/dist/components/ds-select/styles/common.styles.js +29 -0
- package/dist/components/ds-selection/ds-selection.js +57 -0
- package/dist/components/ds-selection/styles/common.styles.js +17 -0
- package/dist/components/ds-sidebar-navigation/ds-sidebar-navigation.js +102 -0
- package/dist/components/ds-sidebar-navigation/styles/common.styles.js +25 -0
- package/dist/components/ds-slider/ds-slider.js +409 -0
- package/dist/components/ds-slider/styles/common.styles.js +61 -0
- package/dist/components/ds-slider/utils/getStepValue/getStepValue.js +28 -0
- package/dist/components/ds-slider/utils/roundToDecimals/roundToDecimals.js +7 -0
- package/dist/components/ds-static-box/ds-static-box.js +77 -0
- package/dist/components/ds-static-box/styles/common.styles.js +12 -0
- package/dist/components/ds-stepper/ds-stepper.js +57 -0
- package/dist/components/ds-stepper/styles/common.styles.js +12 -0
- package/dist/components/ds-tabs/ds-tabs.js +203 -0
- package/dist/components/ds-tabs/styles/common.styles.js +97 -0
- package/dist/components/ds-tabs/theme-config.js +14 -0
- package/dist/components/ds-tag/ds-tag.js +87 -0
- package/dist/components/ds-tag/styles/common.styles.js +20 -0
- package/dist/components/ds-text/ds-text.js +83 -0
- package/dist/components/ds-text/styles/common.styles.js +29 -0
- package/dist/components/ds-text-input/ds-text-input.js +100 -0
- package/dist/components/ds-text-input/styles/common.styles.js +12 -0
- package/dist/components/ds-textarea/ds-textarea.js +87 -0
- package/dist/components/ds-textarea/styles/common.styles.js +12 -0
- package/dist/components/ds-theme-provider/ds-theme-provider.js +90 -0
- package/dist/components/ds-theme-provider/themeContext.js +5 -0
- package/dist/components/ds-toast/ds-toast.js +95 -0
- package/dist/components/ds-toast/styles/common.styles.js +112 -0
- package/dist/components/ds-toast/utils/ToastManager.js +48 -0
- package/dist/components/ds-toast-message/ds-toast-message.js +103 -0
- package/dist/components/ds-toast-message/styles/common.styles.js +12 -0
- package/dist/components/ds-toggle-button/ds-toggle-button.js +73 -0
- package/dist/components/ds-toggle-switch/ds-toggle-switch.js +100 -0
- package/dist/components/ds-toggle-switch/styles/common.styles.js +47 -0
- package/dist/components/ds-tooltip/ds-tooltip.d.ts +38 -23
- package/dist/components/ds-tooltip/ds-tooltip.js +234 -0
- package/dist/components/ds-tooltip/ds-tooltip.test.d.ts +8 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.ts +5 -10
- package/dist/components/ds-tooltip/styles/common.styles.d.ts +0 -2
- package/dist/components/ds-tooltip/styles/common.styles.js +130 -0
- package/dist/components/index.d.ts +4 -1
- package/dist/core/theme.constants.d.ts +1 -0
- package/dist/core/theme.constants.js +4 -0
- package/dist/decorators/customUiKitElement.js +23 -0
- package/dist/index.js +61 -9699
- package/dist/mixins/FormAssociatedMixin.js +14 -0
- package/dist/mixins/ViewportMixin.js +32 -0
- package/dist/mixins/inputStatesMixin.js +46 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +430 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +313 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +132 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/context-request-event.js +13 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/controllers/context-consumer.js +29 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/controllers/context-provider.js +37 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/create-context.js +11 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/consume.js +22 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/provide.js +42 -0
- package/dist/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/value-notifier.js +36 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js +50 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/base.js +9 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js +37 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +19 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js +19 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query.js +20 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js +12 -0
- package/dist/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js +252 -0
- package/dist/node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js +51 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive-helpers.js +37 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive.js +27 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/choose.js +12 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js +34 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/if-defined.js +10 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/repeat.js +61 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/unsafe-html.js +27 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/when.js +11 -0
- package/dist/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js +243 -0
- package/dist/styles/fonts-config.js +28 -0
- package/dist/utils/IconsManager.d.ts +1 -4
- package/dist/utils/IconsManager.js +39 -0
- package/dist/utils/PubSub.d.ts +0 -2
- package/dist/utils/PubSub.js +33 -0
- package/dist/utils/StylesRegistry/StylesRegistry.js +32 -0
- package/dist/utils/arrayConverter.js +19 -0
- package/dist/utils/booleanConverter.js +4 -0
- package/dist/utils/componentFactory.js +167 -0
- package/dist/utils/cssQueries.js +16 -0
- package/dist/utils/cssWithTokens.js +11 -0
- package/dist/utils/formatNumber/formatNumber.js +54 -0
- package/dist/utils/htmlWithTokens.js +11 -0
- package/dist/utils/objectConverter.js +11 -0
- package/dist/utils/validateMaxLength.js +6 -0
- package/dist-react/components/base/DsUiElement.js +47 -0
- package/dist-react/components/base/UiKitElement.js +82 -0
- package/dist-react/components/base/ds-base-input/ds-base-input.js +112 -0
- package/dist-react/components/base/ds-base-input/styles/common.styles.js +63 -0
- package/dist-react/components/base/ds-base-input/styles/cupra.styles.js +124 -0
- package/dist-react/components/base/ds-base-progress-bar/ds-base-progress-bar.js +64 -0
- package/dist-react/components/base/ds-base-progress-bar/styles/common.styles.js +22 -0
- package/dist-react/components/base/ds-base-progress-bar/styles/cupra-diagonal.styles.js +27 -0
- package/dist-react/components/base/ds-base-progress-bar/styles/cupra.styles.js +27 -0
- package/dist-react/components/base/ds-base-progress-bar/styles/seat.styles.js +8 -0
- package/dist-react/components/ds-accordion/ds-accordion.js +124 -0
- package/dist-react/components/ds-accordion/styles/common.styles.js +64 -0
- package/dist-react/components/ds-accordion/theme-config.js +26 -0
- package/dist-react/components/ds-avatar/ds-avatar.js +102 -0
- package/dist-react/components/ds-avatar/styles/common.styles.js +12 -0
- package/dist-react/components/ds-badge/ds-badge.d.ts +18 -0
- package/dist-react/components/ds-badge/ds-badge.js +53 -0
- package/dist-react/components/ds-badge/ds-badge.test.d.ts +8 -0
- package/dist-react/components/ds-badge/ds-badge.types.d.ts +6 -0
- package/dist-react/components/ds-badge/styles/common.styles.d.ts +1 -0
- package/dist-react/components/ds-badge/styles/common.styles.js +9 -0
- package/dist-react/components/ds-badge/styles/cupra-diagonal.styles.d.ts +1 -0
- package/dist-react/components/ds-badge/styles/cupra-diagonal.styles.js +47 -0
- package/dist-react/components/ds-bullets/ds-bullets.js +79 -0
- package/dist-react/components/ds-bullets/styles/common.styles.js +26 -0
- package/dist-react/components/ds-button/ds-button.js +196 -0
- package/dist-react/components/ds-button/styles/common.styles.js +116 -0
- package/dist-react/components/ds-carousel-indicator/ds-carousel-indicator.js +63 -0
- package/dist-react/components/ds-carousel-indicator/styles/common.styles.js +19 -0
- package/dist-react/components/ds-checkbox/ds-checkbox.js +142 -0
- package/dist-react/components/ds-checkbox/styles/common.styles.js +60 -0
- package/dist-react/components/ds-chip/ds-chip.js +131 -0
- package/dist-react/components/ds-chip/styles/common.styles.js +25 -0
- package/dist-react/components/ds-chips/ds-chips.js +143 -0
- package/dist-react/components/ds-chips/styles/common.styles.js +94 -0
- package/dist-react/components/ds-currency/ds-currency.js +139 -0
- package/dist-react/components/ds-currency/styles/common.styles.js +17 -0
- package/dist-react/components/ds-dialog/ds-dialog.js +107 -0
- package/dist-react/components/ds-dialog/styles/common.styles.js +82 -0
- package/dist-react/components/ds-dialog-body/ds-dialog-body.js +46 -0
- package/dist-react/components/ds-dialog-body/styles/common.styles.js +12 -0
- package/dist-react/components/ds-dialog-footer/ds-dialog-footer.js +47 -0
- package/dist-react/components/ds-dialog-footer/styles/common.styles.js +16 -0
- package/dist-react/components/ds-dialog-header/ds-dialog-header.js +68 -0
- package/dist-react/components/ds-dialog-header/styles/common.styles.js +12 -0
- package/dist-react/components/ds-divider/ds-divider.js +58 -0
- package/dist-react/components/ds-divider/styles/common.styles.js +13 -0
- package/dist-react/components/ds-hyperlink/ds-hyperlink.js +93 -0
- package/dist-react/components/ds-hyperlink/styles/common.styles.js +22 -0
- package/dist-react/components/ds-icon/Icons.type.d.ts +1 -1
- package/dist-react/components/ds-icon/ds-icon.js +105 -0
- package/dist-react/components/ds-icon/iconNames.d.ts +1 -1
- package/dist-react/components/ds-icon/iconNames.js +394 -0
- package/dist-react/components/ds-icon-button/ds-icon-button.js +138 -0
- package/dist-react/components/ds-icon-button/styles/common.styles.js +24 -0
- package/dist-react/components/ds-input/ds-input.js +138 -0
- package/dist-react/components/ds-interactive-card/ds-interactive-card.js +90 -0
- package/dist-react/components/ds-interactive-card/styles/common.styles.js +12 -0
- package/dist-react/components/ds-link-button/ds-link-button.js +120 -0
- package/dist-react/components/ds-link-button/styles/common.styles.js +24 -0
- package/dist-react/components/ds-loader-bar/ds-loader-bar.js +23 -0
- package/dist-react/components/ds-loader-bar/styles/common.styles.js +23 -0
- package/dist-react/components/ds-loader-dots/ds-loader-dots.js +62 -0
- package/dist-react/components/ds-loader-dots/styles/common.styles.js +35 -0
- package/dist-react/components/ds-loader-logo/ds-loader-logo.js +65 -0
- package/dist-react/components/ds-loader-logo/ds-loader-logo.styles.js +67 -0
- package/dist-react/components/ds-loader-spinner/ds-loader-spinner.js +53 -0
- package/dist-react/components/ds-loader-spinner/styles/common.styles.js +56 -0
- package/dist-react/components/ds-logo/ds-logo.js +69 -0
- package/dist-react/components/ds-logo/styles/common.styles.js +18 -0
- package/dist-react/components/ds-main-title/ds-main-title.d.ts +10 -0
- package/dist-react/components/ds-main-title/ds-main-title.js +35 -0
- package/dist-react/components/ds-main-title/ds-main-title.test.d.ts +7 -0
- package/dist-react/components/ds-main-title/ds-main-title.types.d.ts +2 -0
- package/dist-react/components/ds-main-title/styles/common.styles.d.ts +1 -0
- package/dist-react/components/ds-main-title/styles/common.styles.js +19 -0
- package/dist-react/components/ds-map-pin/ds-map-pin.js +116 -0
- package/dist-react/components/ds-map-pin/styles/common.styles.js +43 -0
- package/dist-react/components/ds-modal/ds-modal.js +215 -0
- package/dist-react/components/ds-modal/styles/common.styles.js +289 -0
- package/dist-react/components/ds-password-input/ds-password-input.js +43 -0
- package/dist-react/components/ds-picker-item/ds-picker-item.js +89 -0
- package/dist-react/components/ds-picker-item/styles/common.styles.js +12 -0
- package/dist-react/components/ds-portal/ds-portal.js +41 -0
- package/dist-react/components/ds-progress-bar/ds-progress-bar.js +34 -0
- package/dist-react/components/ds-progress-bar/styles/common.styles.js +12 -0
- package/dist-react/components/ds-radio/ds-radio.js +111 -0
- package/dist-react/components/ds-radio/styles/common.styles.js +44 -0
- package/dist-react/components/ds-radio-button/ds-radio-button.js +185 -0
- package/dist-react/components/ds-radio-button/styles/common.styles.js +52 -0
- package/dist-react/components/ds-radio-button-group/ds-radio-button-group.js +83 -0
- package/dist-react/components/ds-radio-button-group/styles/common.styles.js +25 -0
- package/dist-react/components/ds-radio-group/ds-radio-group.js +79 -0
- package/dist-react/components/ds-radio-group/ds-radio-group.styles.js +21 -0
- package/dist-react/components/ds-rating/ds-rating.d.ts +14 -0
- package/dist-react/components/ds-rating/ds-rating.js +73 -0
- package/dist-react/components/ds-rating/ds-rating.test.d.ts +8 -0
- package/dist-react/components/ds-rating/ds-rating.types.d.ts +6 -0
- package/dist-react/components/ds-rating/styles/common.styles.d.ts +1 -0
- package/dist-react/components/ds-rating/styles/common.styles.js +14 -0
- package/dist-react/components/ds-search/ds-search.js +210 -0
- package/dist-react/components/ds-search/styles/common.styles.js +61 -0
- package/dist-react/components/ds-search-input/ds-search-input.js +158 -0
- package/dist-react/components/ds-search-input/styles/common.styles.js +12 -0
- package/dist-react/components/ds-secondary-navigation/ds-secondary-navigation.js +233 -0
- package/dist-react/components/ds-secondary-navigation/styles/common.styles.js +12 -0
- package/dist-react/components/ds-segmented-control/ds-segmented-control.js +71 -0
- package/dist-react/components/ds-segmented-control/styles/common.styles.js +56 -0
- package/dist-react/components/ds-select/controllers/SelectKeyboardController.js +33 -0
- package/dist-react/components/ds-select/ds-select.js +274 -0
- package/dist-react/components/ds-select/styles/common.styles.js +29 -0
- package/dist-react/components/ds-selection/ds-selection.js +57 -0
- package/dist-react/components/ds-selection/styles/common.styles.js +17 -0
- package/dist-react/components/ds-sidebar-navigation/ds-sidebar-navigation.js +102 -0
- package/dist-react/components/ds-sidebar-navigation/styles/common.styles.js +25 -0
- package/dist-react/components/ds-slider/ds-slider.js +409 -0
- package/dist-react/components/ds-slider/styles/common.styles.js +61 -0
- package/dist-react/components/ds-slider/utils/getStepValue/getStepValue.js +28 -0
- package/dist-react/components/ds-slider/utils/roundToDecimals/roundToDecimals.js +7 -0
- package/dist-react/components/ds-static-box/ds-static-box.js +77 -0
- package/dist-react/components/ds-static-box/styles/common.styles.js +12 -0
- package/dist-react/components/ds-stepper/ds-stepper.js +57 -0
- package/dist-react/components/ds-stepper/styles/common.styles.js +12 -0
- package/dist-react/components/ds-tabs/ds-tabs.js +203 -0
- package/dist-react/components/ds-tabs/styles/common.styles.js +97 -0
- package/dist-react/components/ds-tabs/theme-config.js +14 -0
- package/dist-react/components/ds-tag/ds-tag.js +87 -0
- package/dist-react/components/ds-tag/styles/common.styles.js +20 -0
- package/dist-react/components/ds-text/ds-text.js +83 -0
- package/dist-react/components/ds-text/styles/common.styles.js +29 -0
- package/dist-react/components/ds-text-input/ds-text-input.js +100 -0
- package/dist-react/components/ds-text-input/styles/common.styles.js +12 -0
- package/dist-react/components/ds-textarea/ds-textarea.js +87 -0
- package/dist-react/components/ds-textarea/styles/common.styles.js +12 -0
- package/dist-react/components/ds-theme-provider/ds-theme-provider.js +90 -0
- package/dist-react/components/ds-theme-provider/themeContext.js +5 -0
- package/dist-react/components/ds-toast/ds-toast.js +95 -0
- package/dist-react/components/ds-toast/styles/common.styles.js +112 -0
- package/dist-react/components/ds-toast/utils/ToastManager.js +48 -0
- package/dist-react/components/ds-toast-message/ds-toast-message.js +103 -0
- package/dist-react/components/ds-toast-message/styles/common.styles.js +12 -0
- package/dist-react/components/ds-toggle-button/ds-toggle-button.js +73 -0
- package/dist-react/components/ds-toggle-switch/ds-toggle-switch.js +100 -0
- package/dist-react/components/ds-toggle-switch/styles/common.styles.js +47 -0
- package/dist-react/components/ds-tooltip/ds-tooltip.d.ts +38 -23
- package/dist-react/components/ds-tooltip/ds-tooltip.js +234 -0
- package/dist-react/components/ds-tooltip/ds-tooltip.test.d.ts +8 -0
- package/dist-react/components/ds-tooltip/ds-tooltip.types.d.ts +5 -10
- package/dist-react/components/ds-tooltip/styles/common.styles.d.ts +0 -2
- package/dist-react/components/ds-tooltip/styles/common.styles.js +130 -0
- package/dist-react/components/index.d.ts +4 -1
- package/dist-react/core/theme.constants.d.ts +1 -0
- package/dist-react/core/theme.constants.js +4 -0
- package/dist-react/decorators/customUiKitElement.js +23 -0
- package/dist-react/index.js +61 -9623
- package/dist-react/mixins/FormAssociatedMixin.js +14 -0
- package/dist-react/mixins/ViewportMixin.js +32 -0
- package/dist-react/mixins/inputStatesMixin.js +46 -0
- package/dist-react/node_modules/.pnpm/@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js +430 -0
- package/dist-react/node_modules/.pnpm/@floating-ui_dom@1.7.4/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +313 -0
- package/dist-react/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +132 -0
- package/dist-react/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +128 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/context-request-event.js +13 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/controllers/context-consumer.js +29 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/controllers/context-provider.js +37 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/create-context.js +11 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/consume.js +22 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/decorators/provide.js +42 -0
- package/dist-react/node_modules/.pnpm/@lit_context@1.1.6/node_modules/@lit/context/lib/value-notifier.js +36 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js +50 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/base.js +9 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js +37 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +19 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-nodes.js +19 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query.js +20 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js +12 -0
- package/dist-react/node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js +252 -0
- package/dist-react/node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js +51 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive-helpers.js +37 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive.js +27 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/choose.js +12 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js +34 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/if-defined.js +10 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/repeat.js +61 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/unsafe-html.js +27 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/when.js +11 -0
- package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js +243 -0
- package/dist-react/styles/fonts-config.js +28 -0
- package/dist-react/utils/IconsManager.d.ts +1 -4
- package/dist-react/utils/IconsManager.js +39 -0
- package/dist-react/utils/PubSub.d.ts +0 -2
- package/dist-react/utils/PubSub.js +33 -0
- package/dist-react/utils/StylesRegistry/StylesRegistry.js +32 -0
- package/dist-react/utils/arrayConverter.js +19 -0
- package/dist-react/utils/booleanConverter.js +4 -0
- package/dist-react/utils/componentFactory.js +90 -0
- package/dist-react/utils/cssQueries.js +16 -0
- package/dist-react/utils/cssWithTokens.js +11 -0
- package/dist-react/utils/formatNumber/formatNumber.js +54 -0
- package/dist-react/utils/htmlWithTokens.js +11 -0
- package/dist-react/utils/objectConverter.js +11 -0
- package/dist-react/utils/validateMaxLength.js +6 -0
- package/package.json +12 -6
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { UiKitElement as c } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as p } from "../../decorators/customUiKitElement.js";
|
|
3
|
+
import { htmlWithTokens as h } from "../../utils/htmlWithTokens.js";
|
|
4
|
+
import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
5
|
+
import { html as g } 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 a } 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 u, containerStyles as y } from "./styles/common.styles.js";
|
|
10
|
+
var f = Object.defineProperty, v = Object.getOwnPropertyDescriptor, l = (n, o, s, r) => {
|
|
11
|
+
for (var t = r > 1 ? void 0 : r ? v(o, s) : o, m = n.length - 1, i; m >= 0; m--)
|
|
12
|
+
(i = n[m]) && (t = (r ? i(o, s, t) : i(t)) || t);
|
|
13
|
+
return r && t && f(o, s, t), t;
|
|
14
|
+
};
|
|
15
|
+
let e = class extends c {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments), this.size = "xxsmall", this.mode = "light";
|
|
18
|
+
}
|
|
19
|
+
get logoTemplate() {
|
|
20
|
+
return this.componentFactory.createIcon({
|
|
21
|
+
class: "icon-logo",
|
|
22
|
+
"icon-name": "logo"
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
get logoWordmarkTemplate() {
|
|
26
|
+
return this.componentFactory.createIcon({
|
|
27
|
+
class: "icon-wordmark",
|
|
28
|
+
"icon-name": "logo-wordmark"
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
get classes() {
|
|
32
|
+
return {
|
|
33
|
+
container: !0,
|
|
34
|
+
[this.size]: !0,
|
|
35
|
+
[this.mode]: !!this.mode
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
get styleTokens() {
|
|
39
|
+
return h`
|
|
40
|
+
<style>
|
|
41
|
+
:host {
|
|
42
|
+
color-scheme: ${this.mode};
|
|
43
|
+
}
|
|
44
|
+
</style>
|
|
45
|
+
`;
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
return g`
|
|
49
|
+
${this.styleTokens}
|
|
50
|
+
<div data-testid="ds-logo-container" class=${d(this.classes)}>
|
|
51
|
+
${this.logoTemplate}
|
|
52
|
+
${this.logoWordmarkTemplate}
|
|
53
|
+
</div>
|
|
54
|
+
`;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
e.styles = [u, y];
|
|
58
|
+
l([
|
|
59
|
+
a({ type: String })
|
|
60
|
+
], e.prototype, "size", 2);
|
|
61
|
+
l([
|
|
62
|
+
a({ type: String, reflect: !0 })
|
|
63
|
+
], e.prototype, "mode", 2);
|
|
64
|
+
e = l([
|
|
65
|
+
p("ds-logo")
|
|
66
|
+
], e);
|
|
67
|
+
export {
|
|
68
|
+
e as DsLogo
|
|
69
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
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 r = t`
|
|
6
|
+
:host {
|
|
7
|
+
display: contents;
|
|
8
|
+
}
|
|
9
|
+
`, m = t`
|
|
10
|
+
.container {
|
|
11
|
+
display: grid;
|
|
12
|
+
grid-template-columns: auto auto;
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
export {
|
|
16
|
+
r as commonStyles,
|
|
17
|
+
m as containerStyles
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UiKitElement } from '../base/UiKitElement.ts';
|
|
2
|
+
declare const DsMainTitle_base: (new (...args: any[]) => import("../../mixins/ViewportMixin").ViewportInterface) & typeof UiKitElement;
|
|
3
|
+
export declare class DsMainTitle extends DsMainTitle_base {
|
|
4
|
+
static styles: import("lit").CSSResult[];
|
|
5
|
+
protected get containerClasses(): {
|
|
6
|
+
container: boolean;
|
|
7
|
+
};
|
|
8
|
+
render(): import("lit").TemplateResult<1>;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { UiKitElement as l } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as a } from "../../decorators/customUiKitElement.js";
|
|
3
|
+
import { ViewportMixin as p } from "../../mixins/ViewportMixin.js";
|
|
4
|
+
import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
5
|
+
import { 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 { classMap as f } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
8
|
+
import { commonStyles as v } from "./styles/common.styles.js";
|
|
9
|
+
var u = Object.getOwnPropertyDescriptor, d = (s, o, n, i) => {
|
|
10
|
+
for (var t = i > 1 ? void 0 : i ? u(o, n) : o, e = s.length - 1, m; e >= 0; e--)
|
|
11
|
+
(m = s[e]) && (t = m(t) || t);
|
|
12
|
+
return t;
|
|
13
|
+
};
|
|
14
|
+
let r = class extends p(l) {
|
|
15
|
+
get containerClasses() {
|
|
16
|
+
return {
|
|
17
|
+
container: !0
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
return c`
|
|
22
|
+
<div class=${f(this.containerClasses)}>
|
|
23
|
+
<slot name="title"></slot>
|
|
24
|
+
<slot name="description"></slot>
|
|
25
|
+
</div>
|
|
26
|
+
`;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
r.styles = [v];
|
|
30
|
+
r = d([
|
|
31
|
+
a("ds-main-title")
|
|
32
|
+
], r);
|
|
33
|
+
export {
|
|
34
|
+
r as DsMainTitle
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const commonStyles: import("lit").CSSResult;
|
|
@@ -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 o } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
const l = o`
|
|
6
|
+
:host {
|
|
7
|
+
display: block;
|
|
8
|
+
width: 100%;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
::slotted([slot='title']),
|
|
13
|
+
::slotted([slot='description']) {
|
|
14
|
+
margin: 0;
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
export {
|
|
18
|
+
l as commonStyles
|
|
19
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { UiKitElement as u } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as m } 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 { nothing as a, html as h } 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 r } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
8
|
+
import { classMap as y } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
9
|
+
import { mapPinStyles as b } from "./styles/common.styles.js";
|
|
10
|
+
var f = Object.defineProperty, v = Object.getOwnPropertyDescriptor, e = (l, o, c, s) => {
|
|
11
|
+
for (var i = s > 1 ? void 0 : s ? v(o, c) : o, n = l.length - 1, p; n >= 0; n--)
|
|
12
|
+
(p = l[n]) && (i = (s ? p(o, c, i) : p(i)) || i);
|
|
13
|
+
return s && i && f(o, c, i), i;
|
|
14
|
+
};
|
|
15
|
+
let t = class extends u {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments), this.width = 48, this.height = 48, this.checked = !1, this.iconSize = 24, this.iconTop = 8;
|
|
18
|
+
}
|
|
19
|
+
get iconTemplate() {
|
|
20
|
+
return this.iconName ? this.componentFactory.createIcon({
|
|
21
|
+
class: "icon",
|
|
22
|
+
"icon-name": this.iconName,
|
|
23
|
+
size: this.iconSize
|
|
24
|
+
}) : a;
|
|
25
|
+
}
|
|
26
|
+
get clusterNumberTemplate() {
|
|
27
|
+
return this.clusterCount ? h`
|
|
28
|
+
<div class='cluster-count'>
|
|
29
|
+
${this.clusterCount}
|
|
30
|
+
</div>
|
|
31
|
+
` : a;
|
|
32
|
+
}
|
|
33
|
+
handleClick() {
|
|
34
|
+
this.checked = !this.checked, this.dispatchEvent(
|
|
35
|
+
new CustomEvent("change", {
|
|
36
|
+
bubbles: !0,
|
|
37
|
+
composed: !0,
|
|
38
|
+
detail: {
|
|
39
|
+
checked: this.checked
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
get styleTokens() {
|
|
45
|
+
return h`
|
|
46
|
+
<style>
|
|
47
|
+
:host{
|
|
48
|
+
--ds-icon-color: var(--ds-map-pin-icon-color);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.icon {
|
|
52
|
+
top: ${this.iconTop}px;
|
|
53
|
+
}
|
|
54
|
+
</style>
|
|
55
|
+
`;
|
|
56
|
+
}
|
|
57
|
+
get classes() {
|
|
58
|
+
return {
|
|
59
|
+
container: !0,
|
|
60
|
+
checked: this.checked,
|
|
61
|
+
cluster: !!this.clusterCount
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
render() {
|
|
65
|
+
return h`
|
|
66
|
+
${this.styleTokens}
|
|
67
|
+
<span data-testid="ds-map-pin-container" class=${y(this.classes)} @click=${this.handleClick}>
|
|
68
|
+
<svg
|
|
69
|
+
class="marker"
|
|
70
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
71
|
+
width=${this.width}
|
|
72
|
+
height=${this.height}
|
|
73
|
+
viewBox="0 0 48 49"
|
|
74
|
+
fill="none"
|
|
75
|
+
>
|
|
76
|
+
<path
|
|
77
|
+
fill-rule="evenodd"
|
|
78
|
+
clip-rule="evenodd"
|
|
79
|
+
d="M24.1599 48.6467C26.4109 38.2008 41.9998 30.5848 41.9998 18.5849C41.9998 8.74991 33.9409 0.777954 23.9999 0.777954C14.059 0.777954 6 8.74991 6 18.5849C6 31.2298 21.5719 37.9948 23.5469 48.6077C23.7759 48.8277 23.8869 48.8277 24.1599 48.6467Z"
|
|
80
|
+
fill="#1B1B1B"
|
|
81
|
+
/>
|
|
82
|
+
</svg>
|
|
83
|
+
${this.iconTemplate}
|
|
84
|
+
${this.clusterNumberTemplate}
|
|
85
|
+
</span>
|
|
86
|
+
`;
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
t.styles = [b];
|
|
90
|
+
e([
|
|
91
|
+
r({ type: Number, attribute: "width" })
|
|
92
|
+
], t.prototype, "width", 2);
|
|
93
|
+
e([
|
|
94
|
+
r({ type: Number, attribute: "height" })
|
|
95
|
+
], t.prototype, "height", 2);
|
|
96
|
+
e([
|
|
97
|
+
r({ type: Boolean, converter: d, reflect: !0 })
|
|
98
|
+
], t.prototype, "checked", 2);
|
|
99
|
+
e([
|
|
100
|
+
r({ type: String, attribute: "icon-name" })
|
|
101
|
+
], t.prototype, "iconName", 2);
|
|
102
|
+
e([
|
|
103
|
+
r({ type: Number, attribute: "icon-size" })
|
|
104
|
+
], t.prototype, "iconSize", 2);
|
|
105
|
+
e([
|
|
106
|
+
r({ type: Number, attribute: "icon-top" })
|
|
107
|
+
], t.prototype, "iconTop", 2);
|
|
108
|
+
e([
|
|
109
|
+
r({ type: Number, attribute: "cluster-count" })
|
|
110
|
+
], t.prototype, "clusterCount", 2);
|
|
111
|
+
t = e([
|
|
112
|
+
m("ds-map-pin")
|
|
113
|
+
], t);
|
|
114
|
+
export {
|
|
115
|
+
t as DsMapPin
|
|
116
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
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: inline-block;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.container {
|
|
11
|
+
display: inline-block;
|
|
12
|
+
position: relative;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.icon {
|
|
17
|
+
position: absolute;
|
|
18
|
+
left: 50%;
|
|
19
|
+
transform: translateX(-50%);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.cluster-count {
|
|
23
|
+
display: flex;
|
|
24
|
+
position: absolute;
|
|
25
|
+
border-radius: var(--dg-border-radius-full);
|
|
26
|
+
background: var(--dg-color-bg-base);
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
top: -8px;
|
|
30
|
+
right: -6px;
|
|
31
|
+
width: 24px;
|
|
32
|
+
height: 24px;
|
|
33
|
+
font-size: var(--dg-font-size-body-s, 12px);
|
|
34
|
+
font-style: normal;
|
|
35
|
+
font-weight: 400;
|
|
36
|
+
line-height: var(--dg-font-height-body-s, 16px); /* 133.333% */
|
|
37
|
+
letter-spacing: var(--dg-font-letter-spacing-m, 0.5px);
|
|
38
|
+
color: var(--dg-color-text-strong);
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
export {
|
|
42
|
+
n as mapPinStyles
|
|
43
|
+
};
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { UiKitElement as m } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as b } from "../../decorators/customUiKitElement.js";
|
|
3
|
+
import { ViewportMixin as f } from "../../mixins/ViewportMixin.js";
|
|
4
|
+
import { booleanConverter as a } from "../../utils/booleanConverter.js";
|
|
5
|
+
import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
6
|
+
import { nothing as l, html as h } 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 n } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
9
|
+
import { classMap as p } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
10
|
+
import { fullScreenStyles as v, dialogStyles as y, fitStyles as g, commonStyles as B, alignStyles as C } from "./styles/common.styles.js";
|
|
11
|
+
var S = Object.defineProperty, w = Object.getOwnPropertyDescriptor, o = (e, s, c, r) => {
|
|
12
|
+
for (var i = r > 1 ? void 0 : r ? w(s, c) : s, u = e.length - 1, d; u >= 0; u--)
|
|
13
|
+
(d = e[u]) && (i = (r ? d(s, c, i) : d(i)) || i);
|
|
14
|
+
return r && i && S(s, c, i), i;
|
|
15
|
+
};
|
|
16
|
+
let t = class extends f(m) {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments), this.withCloseButton = !0, this.variant = "fullScreen", this.zIndex = 2e3, this.disableScrollLock = !1, this.fullWidth = !1, this.vAlign = "default";
|
|
19
|
+
}
|
|
20
|
+
disconnectedCallback() {
|
|
21
|
+
super.disconnectedCallback(), document.body.style.paddingRight = "0", document.body.style.overflow = "";
|
|
22
|
+
}
|
|
23
|
+
handleScroll() {
|
|
24
|
+
const e = this.open && !this.disableScrollLock, s = window.innerWidth > document.documentElement.clientWidth;
|
|
25
|
+
document.body.style.paddingRight = e && s ? `${window.innerWidth - document.documentElement.clientWidth}px` : "0", document.body.style.overflow = e ? "hidden" : "";
|
|
26
|
+
}
|
|
27
|
+
updated(e) {
|
|
28
|
+
super.updated(e), (e.has("open") || e.has("disableScrollLock")) && this.handleScroll();
|
|
29
|
+
}
|
|
30
|
+
get backdropClasses() {
|
|
31
|
+
return {
|
|
32
|
+
backdrop: !0,
|
|
33
|
+
animate: !0,
|
|
34
|
+
open: this.open,
|
|
35
|
+
close: !this.open
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
get backdropTemplate() {
|
|
39
|
+
return this.variant === "dialog" ? h`<div class=${p(this.backdropClasses)} />` : l;
|
|
40
|
+
}
|
|
41
|
+
get buttonSize() {
|
|
42
|
+
return ["xs", "s", "m"].includes(this.viewport) ? "medium" : "large";
|
|
43
|
+
}
|
|
44
|
+
get closeButtonSize() {
|
|
45
|
+
return this.variant === "dialog" || ["xs", "s"].includes(this.viewport) ? "small" : "medium";
|
|
46
|
+
}
|
|
47
|
+
get closeButtonTemplate() {
|
|
48
|
+
return this.withCloseButton ? this.componentFactory.createIconButton({
|
|
49
|
+
class: "close-button",
|
|
50
|
+
"data-aria-label": "close-button",
|
|
51
|
+
"@click": this.handleClickCloseButton,
|
|
52
|
+
size: this.closeButtonSize,
|
|
53
|
+
"icon-name": "cross",
|
|
54
|
+
mode: "light",
|
|
55
|
+
variant: "primary"
|
|
56
|
+
}) : l;
|
|
57
|
+
}
|
|
58
|
+
get iconTemplate() {
|
|
59
|
+
return this.iconName ? this.componentFactory.createIcon({
|
|
60
|
+
class: "icon",
|
|
61
|
+
"icon-name": this.iconName,
|
|
62
|
+
size: 64
|
|
63
|
+
}) : l;
|
|
64
|
+
}
|
|
65
|
+
get cancelButtonTemplate() {
|
|
66
|
+
return this.cancelButtonText ? this.componentFactory.createButton({
|
|
67
|
+
class: "cancel-button",
|
|
68
|
+
variant: "secondary",
|
|
69
|
+
size: this.buttonSize,
|
|
70
|
+
"@click": this.handleClickCancelButton,
|
|
71
|
+
children: this.cancelButtonText
|
|
72
|
+
}) : l;
|
|
73
|
+
}
|
|
74
|
+
get confirmButtonTemplate() {
|
|
75
|
+
return this.confirmButtonText ? this.componentFactory.createButton({
|
|
76
|
+
class: "confirm-button",
|
|
77
|
+
variant: "primary",
|
|
78
|
+
size: this.buttonSize,
|
|
79
|
+
"@click": this.handleClickConfirmButton,
|
|
80
|
+
children: this.confirmButtonText
|
|
81
|
+
}) : l;
|
|
82
|
+
}
|
|
83
|
+
get modalClasses() {
|
|
84
|
+
return {
|
|
85
|
+
container: !0,
|
|
86
|
+
animate: !0,
|
|
87
|
+
open: this.open,
|
|
88
|
+
close: !this.open,
|
|
89
|
+
dialog: this.variant === "dialog",
|
|
90
|
+
"full-screen": this.variant === "fullScreen" || this.variant === "fit",
|
|
91
|
+
fit: this.variant === "fit",
|
|
92
|
+
[`v-align-${this.vAlign}`]: !!this.vAlign
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
get contentClasses() {
|
|
96
|
+
return {
|
|
97
|
+
"content-container": !0,
|
|
98
|
+
"full-width": !!this.fullWidth
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
render() {
|
|
102
|
+
return h`
|
|
103
|
+
<style>
|
|
104
|
+
:host {
|
|
105
|
+
${!this.open && "display: none;"}
|
|
106
|
+
}
|
|
107
|
+
.container, .backdrop {
|
|
108
|
+
z-index: ${this.zIndex};
|
|
109
|
+
}
|
|
110
|
+
</style>
|
|
111
|
+
${this.backdropTemplate}
|
|
112
|
+
<div
|
|
113
|
+
role="dialog"
|
|
114
|
+
aria-labelledby="ds-modal-title"
|
|
115
|
+
class=${p(this.modalClasses)}
|
|
116
|
+
@transitionend=${this.handleTransitionEnd}
|
|
117
|
+
>
|
|
118
|
+
${this.closeButtonTemplate}
|
|
119
|
+
${this.iconTemplate}
|
|
120
|
+
<div class=${p(this.contentClasses)}>
|
|
121
|
+
<slot id="ds-modal-title" name="title"></slot>
|
|
122
|
+
<slot name="content"></slot>
|
|
123
|
+
${this.cancelButtonTemplate}
|
|
124
|
+
${this.confirmButtonTemplate}
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
`;
|
|
128
|
+
}
|
|
129
|
+
handleClickCancelButton() {
|
|
130
|
+
this.open = !1, this.dispatchEvent(
|
|
131
|
+
new CustomEvent("click-cancel-button", {
|
|
132
|
+
bubbles: !0,
|
|
133
|
+
composed: !0
|
|
134
|
+
})
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
handleClickConfirmButton() {
|
|
138
|
+
this.dispatchEvent(
|
|
139
|
+
new CustomEvent("click-confirm-button", {
|
|
140
|
+
bubbles: !0,
|
|
141
|
+
composed: !0
|
|
142
|
+
})
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
handleClickCloseButton() {
|
|
146
|
+
this.open = !1, this.dispatchEvent(
|
|
147
|
+
new CustomEvent("click-close-button", {
|
|
148
|
+
bubbles: !0,
|
|
149
|
+
composed: !0
|
|
150
|
+
})
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
handleTransitionEnd(e) {
|
|
154
|
+
e.propertyName === "opacity" && (this.open ? this.dispatchEvent(
|
|
155
|
+
new CustomEvent("open-transition-end", {
|
|
156
|
+
bubbles: !0,
|
|
157
|
+
composed: !0
|
|
158
|
+
})
|
|
159
|
+
) : this.dispatchEvent(
|
|
160
|
+
new CustomEvent("close-transition-end", {
|
|
161
|
+
bubbles: !0,
|
|
162
|
+
composed: !0
|
|
163
|
+
})
|
|
164
|
+
));
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
t.styles = [v, y, g, B, C];
|
|
168
|
+
o([
|
|
169
|
+
n({ type: Boolean, reflect: !0, converter: a })
|
|
170
|
+
], t.prototype, "open", 2);
|
|
171
|
+
o([
|
|
172
|
+
n({
|
|
173
|
+
type: Boolean,
|
|
174
|
+
attribute: "with-close-button",
|
|
175
|
+
converter: a
|
|
176
|
+
})
|
|
177
|
+
], t.prototype, "withCloseButton", 2);
|
|
178
|
+
o([
|
|
179
|
+
n({ type: String, attribute: "cancel-button-text" })
|
|
180
|
+
], t.prototype, "cancelButtonText", 2);
|
|
181
|
+
o([
|
|
182
|
+
n({ type: String, attribute: "confirm-button-text" })
|
|
183
|
+
], t.prototype, "confirmButtonText", 2);
|
|
184
|
+
o([
|
|
185
|
+
n({ type: String })
|
|
186
|
+
], t.prototype, "variant", 2);
|
|
187
|
+
o([
|
|
188
|
+
n({ type: Number, attribute: "z-index" })
|
|
189
|
+
], t.prototype, "zIndex", 2);
|
|
190
|
+
o([
|
|
191
|
+
n({
|
|
192
|
+
type: Boolean,
|
|
193
|
+
converter: a,
|
|
194
|
+
attribute: "disable-scroll-lock"
|
|
195
|
+
})
|
|
196
|
+
], t.prototype, "disableScrollLock", 2);
|
|
197
|
+
o([
|
|
198
|
+
n({ type: String, attribute: "icon-name" })
|
|
199
|
+
], t.prototype, "iconName", 2);
|
|
200
|
+
o([
|
|
201
|
+
n({
|
|
202
|
+
type: Boolean,
|
|
203
|
+
converter: a,
|
|
204
|
+
attribute: "full-width"
|
|
205
|
+
})
|
|
206
|
+
], t.prototype, "fullWidth", 2);
|
|
207
|
+
o([
|
|
208
|
+
n({ type: String, attribute: "v-align" })
|
|
209
|
+
], t.prototype, "vAlign", 2);
|
|
210
|
+
t = o([
|
|
211
|
+
b("ds-modal")
|
|
212
|
+
], t);
|
|
213
|
+
export {
|
|
214
|
+
t as DsModal
|
|
215
|
+
};
|