@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,210 @@
|
|
|
1
|
+
import { UiKitElement as m } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as y } from "../../decorators/customUiKitElement.js";
|
|
3
|
+
import { FormAssociatedMixin as v } from "../../mixins/FormAssociatedMixin.js";
|
|
4
|
+
import { booleanConverter as u } 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 { html as o, nothing as c } 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 { state as d } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";
|
|
11
|
+
import { query as g } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query.js";
|
|
12
|
+
import { classMap as T } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
13
|
+
import { commonStyles as x, containerStyles as b, helperTextStyles as $, inputFieldStyles as S, inputContainerStyles as _ } from "./styles/common.styles.js";
|
|
14
|
+
var C = Object.defineProperty, I = Object.getOwnPropertyDescriptor, t = (s, l, n, a) => {
|
|
15
|
+
for (var i = a > 1 ? void 0 : a ? I(l, n) : l, p = s.length - 1, h; p >= 0; p--)
|
|
16
|
+
(h = s[p]) && (i = (a ? h(l, n, i) : h(i)) || i);
|
|
17
|
+
return a && i && C(l, n, i), i;
|
|
18
|
+
};
|
|
19
|
+
let e = class extends v(m) {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments), this.initialValue = "", this.label = "", this.helperText = "", this.errorText = "", this.disabled = !1, this.success = !1, this.mode = "light", this.size = "large", this.name = "", this.placeholder = "", this.type = "text", this.focused = !1, this.handleFocus = () => {
|
|
22
|
+
this.focused = !0;
|
|
23
|
+
}, this.handleBlur = () => {
|
|
24
|
+
this.focused = !1;
|
|
25
|
+
}, this.handleClickClearIcon = () => {
|
|
26
|
+
this._value = "", this.dispatchEvent(
|
|
27
|
+
new CustomEvent("ds-search:clear", {
|
|
28
|
+
bubbles: !0,
|
|
29
|
+
composed: !0
|
|
30
|
+
})
|
|
31
|
+
);
|
|
32
|
+
}, this.handleInput = (s) => {
|
|
33
|
+
const l = s.target;
|
|
34
|
+
this._value = l.value || "";
|
|
35
|
+
}, this.handleSuccess = (s) => {
|
|
36
|
+
this.dispatchEvent(
|
|
37
|
+
new CustomEvent("ds-search:position-success", {
|
|
38
|
+
bubbles: !0,
|
|
39
|
+
composed: !0,
|
|
40
|
+
detail: {
|
|
41
|
+
position: s
|
|
42
|
+
}
|
|
43
|
+
})
|
|
44
|
+
);
|
|
45
|
+
}, this.handleError = (s) => {
|
|
46
|
+
this.dispatchEvent(
|
|
47
|
+
new CustomEvent("ds-search:position-error", {
|
|
48
|
+
bubbles: !0,
|
|
49
|
+
composed: !0,
|
|
50
|
+
detail: {
|
|
51
|
+
error: s
|
|
52
|
+
}
|
|
53
|
+
})
|
|
54
|
+
);
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
firstUpdated() {
|
|
58
|
+
this._value = this.initialValue;
|
|
59
|
+
}
|
|
60
|
+
get value() {
|
|
61
|
+
return this._value;
|
|
62
|
+
}
|
|
63
|
+
set value(s) {
|
|
64
|
+
this._value = s;
|
|
65
|
+
}
|
|
66
|
+
get classes() {
|
|
67
|
+
return {
|
|
68
|
+
container: !0,
|
|
69
|
+
focused: this.focused,
|
|
70
|
+
error: !!this.errorText,
|
|
71
|
+
success: this.success,
|
|
72
|
+
disabled: this.disabled,
|
|
73
|
+
[this.size]: !0,
|
|
74
|
+
[this.mode]: !0
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
get searchIconTemplate() {
|
|
78
|
+
return o`
|
|
79
|
+
${this.componentFactory.createIcon({
|
|
80
|
+
class: "search-icon",
|
|
81
|
+
"icon-name": "magnifying-glass"
|
|
82
|
+
})}
|
|
83
|
+
`;
|
|
84
|
+
}
|
|
85
|
+
get positionIconTemplate() {
|
|
86
|
+
return o`
|
|
87
|
+
${this.componentFactory.createIcon({
|
|
88
|
+
class: "position-icon",
|
|
89
|
+
"icon-name": "position"
|
|
90
|
+
})}
|
|
91
|
+
`;
|
|
92
|
+
}
|
|
93
|
+
get clearIconTemplate() {
|
|
94
|
+
return o`
|
|
95
|
+
${this.componentFactory.createIcon({
|
|
96
|
+
class: "clear-icon",
|
|
97
|
+
"data-testid": "clear-icon",
|
|
98
|
+
"icon-name": "cross",
|
|
99
|
+
"@click": this.handleClickClearIcon
|
|
100
|
+
})}
|
|
101
|
+
`;
|
|
102
|
+
}
|
|
103
|
+
get inputTemplate() {
|
|
104
|
+
return o`
|
|
105
|
+
<input
|
|
106
|
+
class="input-field"
|
|
107
|
+
type=${this.type}
|
|
108
|
+
name=${this.name}
|
|
109
|
+
maxlength=${this.maxLength}
|
|
110
|
+
.placeholder=${this.placeholder}
|
|
111
|
+
.value=${this._value}
|
|
112
|
+
aria-label=${this._value}
|
|
113
|
+
@focus=${this.handleFocus}
|
|
114
|
+
@blur=${this.handleBlur}
|
|
115
|
+
@input=${this.handleInput}
|
|
116
|
+
?disabled=${this.disabled}
|
|
117
|
+
/>
|
|
118
|
+
`;
|
|
119
|
+
}
|
|
120
|
+
get helperTextTemplate() {
|
|
121
|
+
return this.helperText ? o`
|
|
122
|
+
<div class="helper-text" @click=${this.handleClickHelperText}>
|
|
123
|
+
${this.positionIconTemplate}
|
|
124
|
+
${this.helperText}
|
|
125
|
+
</div>
|
|
126
|
+
` : c;
|
|
127
|
+
}
|
|
128
|
+
get errorTextTemplate() {
|
|
129
|
+
return this.errorText ? o`<div class="error-text">${this.errorText}</div>` : c;
|
|
130
|
+
}
|
|
131
|
+
get styleTokens() {
|
|
132
|
+
return f`
|
|
133
|
+
<style>
|
|
134
|
+
:host{
|
|
135
|
+
color-scheme: ${this.mode};
|
|
136
|
+
pointer-events: ${this.disabled ? "none" : "visible"};
|
|
137
|
+
}
|
|
138
|
+
</style>
|
|
139
|
+
`;
|
|
140
|
+
}
|
|
141
|
+
handleClickHelperText() {
|
|
142
|
+
navigator.geolocation.getCurrentPosition(this.handleSuccess, this.handleError);
|
|
143
|
+
}
|
|
144
|
+
render() {
|
|
145
|
+
return o`
|
|
146
|
+
${this.styleTokens}
|
|
147
|
+
<div class=${T(this.classes)}>
|
|
148
|
+
<div class="input-container">
|
|
149
|
+
${this.searchIconTemplate}
|
|
150
|
+
${this.inputTemplate}
|
|
151
|
+
${this.clearIconTemplate}
|
|
152
|
+
</div>
|
|
153
|
+
${this.errorTextTemplate}
|
|
154
|
+
${this.helperTextTemplate}
|
|
155
|
+
</div>
|
|
156
|
+
`;
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
e.styles = [x, b, $, S, _];
|
|
160
|
+
t([
|
|
161
|
+
r({ type: String, reflect: !0, attribute: "initial-value" })
|
|
162
|
+
], e.prototype, "initialValue", 2);
|
|
163
|
+
t([
|
|
164
|
+
r({ type: String })
|
|
165
|
+
], e.prototype, "label", 2);
|
|
166
|
+
t([
|
|
167
|
+
r({ type: String, attribute: "helper-text" })
|
|
168
|
+
], e.prototype, "helperText", 2);
|
|
169
|
+
t([
|
|
170
|
+
r({ type: String, attribute: "error-text" })
|
|
171
|
+
], e.prototype, "errorText", 2);
|
|
172
|
+
t([
|
|
173
|
+
r({ type: Boolean, converter: u })
|
|
174
|
+
], e.prototype, "disabled", 2);
|
|
175
|
+
t([
|
|
176
|
+
r({ type: Boolean, converter: u })
|
|
177
|
+
], e.prototype, "success", 2);
|
|
178
|
+
t([
|
|
179
|
+
r({ type: String, reflect: !0 })
|
|
180
|
+
], e.prototype, "mode", 2);
|
|
181
|
+
t([
|
|
182
|
+
r({ type: String })
|
|
183
|
+
], e.prototype, "size", 2);
|
|
184
|
+
t([
|
|
185
|
+
r({ type: String })
|
|
186
|
+
], e.prototype, "name", 2);
|
|
187
|
+
t([
|
|
188
|
+
r({ type: String })
|
|
189
|
+
], e.prototype, "placeholder", 2);
|
|
190
|
+
t([
|
|
191
|
+
r({ type: String, attribute: "max-length" })
|
|
192
|
+
], e.prototype, "maxLength", 2);
|
|
193
|
+
t([
|
|
194
|
+
r({ type: String })
|
|
195
|
+
], e.prototype, "type", 2);
|
|
196
|
+
t([
|
|
197
|
+
d()
|
|
198
|
+
], e.prototype, "_value", 2);
|
|
199
|
+
t([
|
|
200
|
+
d()
|
|
201
|
+
], e.prototype, "focused", 2);
|
|
202
|
+
t([
|
|
203
|
+
g(".input-field")
|
|
204
|
+
], e.prototype, "inputField", 2);
|
|
205
|
+
e = t([
|
|
206
|
+
y("ds-search")
|
|
207
|
+
], e);
|
|
208
|
+
export {
|
|
209
|
+
e as DsSearch
|
|
210
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
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: block;
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.error-text,
|
|
12
|
+
.helper-text {
|
|
13
|
+
user-select: none;
|
|
14
|
+
}
|
|
15
|
+
`, s = t`
|
|
16
|
+
.container {
|
|
17
|
+
position: relative;
|
|
18
|
+
}
|
|
19
|
+
`, l = t`
|
|
20
|
+
.input-field::-webkit-search-decoration,
|
|
21
|
+
.input-field::-webkit-search-cancel-button,
|
|
22
|
+
.input-field::-webkit-search-results-button,
|
|
23
|
+
.input-field::-webkit-search-results-decoration,
|
|
24
|
+
.input-field::-webkit-inner-spin-button,
|
|
25
|
+
.input-field::-webkit-calendar-picker-indicator {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.input-field {
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
width: 100%;
|
|
32
|
+
border: none;
|
|
33
|
+
outline: none;
|
|
34
|
+
background-color: transparent;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.input-field:focus {
|
|
38
|
+
outline: none;
|
|
39
|
+
}
|
|
40
|
+
`, c = t`
|
|
41
|
+
.helper-text {
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: flex-start;
|
|
45
|
+
align-items: center;
|
|
46
|
+
}
|
|
47
|
+
`, p = t`
|
|
48
|
+
.input-container {
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
display: flex;
|
|
52
|
+
position: relative;
|
|
53
|
+
}
|
|
54
|
+
`;
|
|
55
|
+
export {
|
|
56
|
+
r as commonStyles,
|
|
57
|
+
s as containerStyles,
|
|
58
|
+
c as helperTextStyles,
|
|
59
|
+
p as inputContainerStyles,
|
|
60
|
+
l as inputFieldStyles
|
|
61
|
+
};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { UiKitElement as d } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as m } from "../../decorators/customUiKitElement.js";
|
|
3
|
+
import { inputStatesMixin as v } from "../../mixins/inputStatesMixin.js";
|
|
4
|
+
import { booleanConverter as c } from "../../utils/booleanConverter.js";
|
|
5
|
+
import { validateMaxLength as f } from "../../utils/validateMaxLength.js";
|
|
6
|
+
import "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
7
|
+
import { html as l, nothing as p } 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 n } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
10
|
+
import { classMap as b } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
11
|
+
import { commonStyles as g } from "./styles/common.styles.js";
|
|
12
|
+
var y = Object.defineProperty, E = Object.getOwnPropertyDescriptor, r = (t, e, o, a) => {
|
|
13
|
+
for (var s = a > 1 ? void 0 : a ? E(e, o) : e, h = t.length - 1, u; h >= 0; h--)
|
|
14
|
+
(u = t[h]) && (s = (a ? u(e, o, s) : u(s)) || s);
|
|
15
|
+
return a && s && y(e, o, s), s;
|
|
16
|
+
};
|
|
17
|
+
let i = class extends v(d) {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments), this.size = "medium", this.variant = "primary", this.loading = !1, this.helperText = "", this.forcedError = "", this.invalidError = "", this.dataAriaLabelRemoveButton = "", this.dataAriaLabelPositionButton = "", this.withPositionButton = !0, this.handleRemove = () => {
|
|
20
|
+
this.nativeInput.value = "", this.nativeInput.focus(), ["input", "change"].forEach(
|
|
21
|
+
(t) => this.nativeInput.dispatchEvent(new Event(t, { bubbles: !0, composed: !0 }))
|
|
22
|
+
);
|
|
23
|
+
}, this.handleClickPositionButton = () => {
|
|
24
|
+
this.dispatchEvent(
|
|
25
|
+
new Event("ds-search-input:click-position-button", {
|
|
26
|
+
bubbles: !0,
|
|
27
|
+
composed: !0
|
|
28
|
+
})
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
get classes() {
|
|
33
|
+
return {
|
|
34
|
+
container: !0,
|
|
35
|
+
error: !!this.forcedError,
|
|
36
|
+
loading: this.loading,
|
|
37
|
+
[this.size]: !!this.size,
|
|
38
|
+
[this.variant]: !!this.variant,
|
|
39
|
+
disabled: this.inputStates.disabled,
|
|
40
|
+
filled: this.inputStates.filled,
|
|
41
|
+
invalid: this.inputStates.invalid,
|
|
42
|
+
focus: this.inputStates.focus,
|
|
43
|
+
"focus-visible": this.inputStates.focusVisible
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
return l`
|
|
48
|
+
<div part="container" class=${b(this.classes)}>
|
|
49
|
+
<div part="input-container" class="input-container">
|
|
50
|
+
${this.searchIconTemplate}
|
|
51
|
+
<slot></slot>
|
|
52
|
+
<span class="buttons-container">
|
|
53
|
+
${this.removeTemplate}
|
|
54
|
+
${this.positionTemplate}
|
|
55
|
+
${this.loaderSpinnerTemplate}
|
|
56
|
+
</span>
|
|
57
|
+
</div>
|
|
58
|
+
${this.footerTemplate}
|
|
59
|
+
</div>
|
|
60
|
+
`;
|
|
61
|
+
}
|
|
62
|
+
get searchIconTemplate() {
|
|
63
|
+
return this.componentFactory.createIcon({
|
|
64
|
+
class: "icon",
|
|
65
|
+
"icon-name": "magnifying-glass",
|
|
66
|
+
variant: "standard"
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
get removeTemplate() {
|
|
70
|
+
var t, e, o;
|
|
71
|
+
return !((e = (t = this.nativeInput) == null ? void 0 : t.value) != null && e.length) || this.loading ? p : this.componentFactory.createIconButton({
|
|
72
|
+
class: "remove-icon-button",
|
|
73
|
+
"icon-name": "cross",
|
|
74
|
+
disabled: !!((o = this.nativeInput) != null && o.disabled),
|
|
75
|
+
size: this.size,
|
|
76
|
+
variant: "standard",
|
|
77
|
+
"@click": this.handleRemove,
|
|
78
|
+
"data-aria-label": this.dataAriaLabelRemoveButton || "remove button"
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
get positionTemplate() {
|
|
82
|
+
var t;
|
|
83
|
+
return this.loading || !this.withPositionButton ? p : this.componentFactory.createIconButton({
|
|
84
|
+
class: "position-icon-button",
|
|
85
|
+
"icon-name": "position",
|
|
86
|
+
disabled: !!((t = this.nativeInput) != null && t.disabled),
|
|
87
|
+
size: this.size,
|
|
88
|
+
variant: "standard",
|
|
89
|
+
"@click": this.handleClickPositionButton,
|
|
90
|
+
"data-aria-label": this.dataAriaLabelPositionButton || "position button"
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
get loaderSpinnerTemplate() {
|
|
94
|
+
return this.componentFactory.createLoaderSpinner({
|
|
95
|
+
show: this.loading
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
get footerTemplate() {
|
|
99
|
+
var t, e;
|
|
100
|
+
return !((t = this.helperText) != null && t.length) && !this.forcedError && (!this.inputStates.invalid || !this.invalidError) && Number((e = this.nativeInput) == null ? void 0 : e.maxLength) < 0 ? p : l`
|
|
101
|
+
<div class="footer">
|
|
102
|
+
${this.helperTextTemplate}
|
|
103
|
+
${this.forcedErrorTemplate}
|
|
104
|
+
${this.invalidErrorTemplate}
|
|
105
|
+
${this.lengthTemplate}
|
|
106
|
+
</div>
|
|
107
|
+
`;
|
|
108
|
+
}
|
|
109
|
+
get helperTextTemplate() {
|
|
110
|
+
var t;
|
|
111
|
+
return this.forcedError || this.inputStates.invalid && this.invalidError || !((t = this.helperText) != null && t.length) ? p : l`<span class="support-text helper-text">${this.helperText}</span>`;
|
|
112
|
+
}
|
|
113
|
+
get forcedErrorTemplate() {
|
|
114
|
+
return this.forcedError ? l`<span class="support-text error-text forced-error">${this.forcedError}</span>` : p;
|
|
115
|
+
}
|
|
116
|
+
get invalidErrorTemplate() {
|
|
117
|
+
return this.forcedError || !this.inputStates.invalid || !this.invalidError ? p : l`<span class="support-text error-text invalid-error">${this.invalidError}</span>`;
|
|
118
|
+
}
|
|
119
|
+
get lengthTemplate() {
|
|
120
|
+
var e, o, a;
|
|
121
|
+
const t = (o = (e = this.nativeInput) == null ? void 0 : e.maxLength) == null ? void 0 : o.toString();
|
|
122
|
+
return f(t) ? l`<span class="char-counter">${((a = this.inputStates.currentValue) == null ? void 0 : a.length) || 0}/${t}</span>` : p;
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
i.styles = [g];
|
|
126
|
+
r([
|
|
127
|
+
n({ type: String })
|
|
128
|
+
], i.prototype, "size", 2);
|
|
129
|
+
r([
|
|
130
|
+
n({ type: String })
|
|
131
|
+
], i.prototype, "variant", 2);
|
|
132
|
+
r([
|
|
133
|
+
n({ type: Boolean, converter: c })
|
|
134
|
+
], i.prototype, "loading", 2);
|
|
135
|
+
r([
|
|
136
|
+
n({ type: String, attribute: "helper-text" })
|
|
137
|
+
], i.prototype, "helperText", 2);
|
|
138
|
+
r([
|
|
139
|
+
n({ type: String, attribute: "forced-error" })
|
|
140
|
+
], i.prototype, "forcedError", 2);
|
|
141
|
+
r([
|
|
142
|
+
n({ type: String, attribute: "invalid-error" })
|
|
143
|
+
], i.prototype, "invalidError", 2);
|
|
144
|
+
r([
|
|
145
|
+
n({ type: String, attribute: "data-aria-label-remove-button" })
|
|
146
|
+
], i.prototype, "dataAriaLabelRemoveButton", 2);
|
|
147
|
+
r([
|
|
148
|
+
n({ type: String, attribute: "data-aria-label-position-button" })
|
|
149
|
+
], i.prototype, "dataAriaLabelPositionButton", 2);
|
|
150
|
+
r([
|
|
151
|
+
n({ type: Boolean, converter: c, attribute: "with-position-button" })
|
|
152
|
+
], i.prototype, "withPositionButton", 2);
|
|
153
|
+
i = r([
|
|
154
|
+
m("ds-search-input")
|
|
155
|
+
], i);
|
|
156
|
+
export {
|
|
157
|
+
i as DsSearchInput
|
|
158
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import "../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
3
|
+
import "../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { css as o } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
const p = o`
|
|
6
|
+
:host {
|
|
7
|
+
display: contents;
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
export {
|
|
11
|
+
p as commonStyles
|
|
12
|
+
};
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { UiKitElement as v } from "../base/UiKitElement.js";
|
|
2
|
+
import { customUiKitElement as f } from "../../decorators/customUiKitElement.js";
|
|
3
|
+
import { ViewportMixin as w } 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 a, nothing as l } 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 m } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
8
|
+
import { state as p } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";
|
|
9
|
+
import { query as g } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query.js";
|
|
10
|
+
import { queryAssignedElements as u } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js";
|
|
11
|
+
import { classMap as h } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
12
|
+
import { commonStyles as x } from "./styles/common.styles.js";
|
|
13
|
+
var I = Object.defineProperty, C = Object.getOwnPropertyDescriptor, r = (e, t, s, n) => {
|
|
14
|
+
for (var i = n > 1 ? void 0 : n ? C(t, s) : t, d = e.length - 1, c; d >= 0; d--)
|
|
15
|
+
(c = e[d]) && (i = (n ? c(t, s, i) : c(i)) || i);
|
|
16
|
+
return n && i && I(t, s, i), i;
|
|
17
|
+
};
|
|
18
|
+
let o = class extends w(v) {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments), this.dropdownButtonText = "Menu", this.openItems = !1, this.openCtas = !1, this.hasScrollLeft = !1, this.hasScrollRight = !1, this.resizeObserver = new ResizeObserver(() => {
|
|
21
|
+
this.handleScroll();
|
|
22
|
+
}), this.handleScroll = () => {
|
|
23
|
+
var t, s, n, i;
|
|
24
|
+
const e = ((t = this.itemsContainer) == null ? void 0 : t.scrollLeft) + ((s = this.itemsContainer) == null ? void 0 : s.clientWidth);
|
|
25
|
+
this.hasScrollLeft = ((n = this.itemsContainer) == null ? void 0 : n.scrollLeft) > 0, this.hasScrollRight = e < ((i = this.itemsContainer) == null ? void 0 : i.scrollWidth);
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
updated(e) {
|
|
29
|
+
super.updated(e), e.has("viewport") && this.updateCtas(), e.has("selectedIndex") && this.updateSelectedItem();
|
|
30
|
+
}
|
|
31
|
+
firstUpdated(e) {
|
|
32
|
+
var t;
|
|
33
|
+
super.firstUpdated(e), this.handleScroll(), this.resizeObserver.observe(this.itemsContainer), window.addEventListener("resize", this.handleScroll), (t = this.itemsContainer) == null || t.addEventListener("scroll", this.handleScroll);
|
|
34
|
+
}
|
|
35
|
+
disconnectedCallback() {
|
|
36
|
+
super.disconnectedCallback(), this.resizeObserver.disconnect(), window.removeEventListener("resize", this.handleScroll);
|
|
37
|
+
}
|
|
38
|
+
get selectedItemText() {
|
|
39
|
+
var e, t, s;
|
|
40
|
+
return ((s = (t = (e = this.items) == null ? void 0 : e[this.selectedIndex]) == null ? void 0 : t.textContent) == null ? void 0 : s.trim()) || this.dropdownButtonText;
|
|
41
|
+
}
|
|
42
|
+
get classes() {
|
|
43
|
+
return {
|
|
44
|
+
nav: !0,
|
|
45
|
+
"ds-blur": !0,
|
|
46
|
+
"scroll-left": this.hasScrollLeft,
|
|
47
|
+
"scroll-right": this.hasScrollRight
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
toggleItemsDropdown() {
|
|
51
|
+
this.openItems = !this.openItems, this.openItems && (this.openCtas = !1);
|
|
52
|
+
}
|
|
53
|
+
toggleActionsDropdown() {
|
|
54
|
+
this.openCtas = !this.openCtas, this.openCtas && (this.openItems = !1);
|
|
55
|
+
}
|
|
56
|
+
closeDropdowns() {
|
|
57
|
+
this.openItems = !1, this.openCtas = !1;
|
|
58
|
+
}
|
|
59
|
+
handleItemsSlotChange() {
|
|
60
|
+
this.updateSelectedItem();
|
|
61
|
+
}
|
|
62
|
+
handleActionsSlotChange() {
|
|
63
|
+
this.updateCtas();
|
|
64
|
+
}
|
|
65
|
+
updateSelectedItem() {
|
|
66
|
+
var e;
|
|
67
|
+
(e = this.items) == null || e.forEach((t, s) => {
|
|
68
|
+
s === this.selectedIndex ? t.classList.add("selected") : t.classList.remove("selected");
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
updateCtas() {
|
|
72
|
+
var e;
|
|
73
|
+
(e = this.ctas) == null || e.forEach((t) => {
|
|
74
|
+
["xxl", "xl"].includes(this.viewport) ? t == null || t.setAttribute("size", "large") : t == null || t.setAttribute("size", "medium");
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
handleItemClick(e) {
|
|
78
|
+
var n, i;
|
|
79
|
+
const t = e.target, s = ((n = this.items) == null ? void 0 : n.indexOf(t)) ?? -1;
|
|
80
|
+
if (s !== -1) {
|
|
81
|
+
this.selectedIndex = s, this.updateSelectedItem();
|
|
82
|
+
const d = ((i = t.textContent) == null ? void 0 : i.trim()) || t.getAttribute("data-label") || "";
|
|
83
|
+
this.dispatchEvent(
|
|
84
|
+
new CustomEvent("ds-secondary-navigation:select", {
|
|
85
|
+
detail: {
|
|
86
|
+
index: s,
|
|
87
|
+
label: d
|
|
88
|
+
},
|
|
89
|
+
bubbles: !0,
|
|
90
|
+
composed: !0
|
|
91
|
+
})
|
|
92
|
+
), this.closeDropdowns();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
render() {
|
|
96
|
+
return a`
|
|
97
|
+
${this.backdropTemplate}
|
|
98
|
+
<div class="container gutter">
|
|
99
|
+
<nav data-testid="ds-secondary-navigation-container" class=${h(this.classes)}>
|
|
100
|
+
${this.itemsTemplate}
|
|
101
|
+
${this.itemsDropdownButtonTemplate}
|
|
102
|
+
${this.actionsTemplate}
|
|
103
|
+
${this.actionsDropdownButtonTemplate}
|
|
104
|
+
</nav>
|
|
105
|
+
${this.itemsDropdownTemplate}
|
|
106
|
+
${this.actionsDropdownTemplate}
|
|
107
|
+
</div>
|
|
108
|
+
`;
|
|
109
|
+
}
|
|
110
|
+
get itemsTemplate() {
|
|
111
|
+
return ["l", "xl", "xxl"].includes(this.viewport) ? a`
|
|
112
|
+
<div class="items-container">
|
|
113
|
+
<div>
|
|
114
|
+
<slot name="items" @slotchange=${this.handleItemsSlotChange} @click=${this.handleItemClick}></slot>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
` : l;
|
|
118
|
+
}
|
|
119
|
+
get actionsTemplate() {
|
|
120
|
+
return ["m", "l", "xl", "xxl"].includes(this.viewport) ? a`
|
|
121
|
+
<div class="actions-container">
|
|
122
|
+
<slot name="actions" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
123
|
+
</div>
|
|
124
|
+
` : l;
|
|
125
|
+
}
|
|
126
|
+
get iconTemplate() {
|
|
127
|
+
return this.componentFactory.createIcon({
|
|
128
|
+
class: "icon",
|
|
129
|
+
"icon-name": this.openItems ? "arrow-up" : "arrow-down",
|
|
130
|
+
size: 20
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
get itemsDropdownButtonTemplate() {
|
|
134
|
+
return ["xxs", "xs", "s", "m"].includes(this.viewport) ? a`
|
|
135
|
+
<button
|
|
136
|
+
class="items-dropdown-button"
|
|
137
|
+
@click=${this.toggleItemsDropdown}
|
|
138
|
+
aria-expanded=${this.openItems}
|
|
139
|
+
aria-haspopup="true"
|
|
140
|
+
>
|
|
141
|
+
<span>${this.selectedItemText}</span>
|
|
142
|
+
${this.iconTemplate}
|
|
143
|
+
</button>
|
|
144
|
+
` : l;
|
|
145
|
+
}
|
|
146
|
+
get itemsDropdownTemplate() {
|
|
147
|
+
return ["xxs", "xs", "s", "m"].includes(this.viewport) ? a`
|
|
148
|
+
<div
|
|
149
|
+
class=${h({
|
|
150
|
+
gutter: !0,
|
|
151
|
+
"dropdown-container": !0,
|
|
152
|
+
"items-dropdown": !0,
|
|
153
|
+
open: this.openItems
|
|
154
|
+
})}
|
|
155
|
+
role="menu"
|
|
156
|
+
aria-hidden=${!this.openItems}
|
|
157
|
+
>
|
|
158
|
+
<div
|
|
159
|
+
class="dropdown ds-blur"
|
|
160
|
+
>
|
|
161
|
+
<slot name="items" @slotchange=${this.handleItemsSlotChange} @click=${this.handleItemClick}></slot>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
` : l;
|
|
165
|
+
}
|
|
166
|
+
get actionsDropdownButtonTemplate() {
|
|
167
|
+
return ["xxs", "xs", "s"].includes(this.viewport) ? this.componentFactory.createIconButton({
|
|
168
|
+
class: "nav-arrow",
|
|
169
|
+
"data-aria-label": "open actions dropdown",
|
|
170
|
+
"@click": this.toggleActionsDropdown,
|
|
171
|
+
size: "medium",
|
|
172
|
+
"icon-name": "triple-dot-v"
|
|
173
|
+
}) : l;
|
|
174
|
+
}
|
|
175
|
+
get actionsDropdownTemplate() {
|
|
176
|
+
return ["xxs", "xs", "s"].includes(this.viewport) ? a`
|
|
177
|
+
<div
|
|
178
|
+
class=${h({
|
|
179
|
+
gutter: !0,
|
|
180
|
+
"dropdown-container": !0,
|
|
181
|
+
"actions-dropdown": !0,
|
|
182
|
+
open: this.openCtas
|
|
183
|
+
})}
|
|
184
|
+
role="menu"
|
|
185
|
+
aria-hidden=${!this.openCtas}
|
|
186
|
+
>
|
|
187
|
+
<div
|
|
188
|
+
class="dropdown ds-blur"
|
|
189
|
+
|
|
190
|
+
>
|
|
191
|
+
<slot name="actions"></slot>
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
` : l;
|
|
195
|
+
}
|
|
196
|
+
get backdropTemplate() {
|
|
197
|
+
return !this.openItems && !this.openCtas ? l : a`<div class="dropdown-backdrop" @click=${this.closeDropdowns}></div>`;
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
o.styles = [x];
|
|
201
|
+
r([
|
|
202
|
+
m({ type: String, attribute: "dropdown-button-text" })
|
|
203
|
+
], o.prototype, "dropdownButtonText", 2);
|
|
204
|
+
r([
|
|
205
|
+
m({ type: Number, attribute: "selected-index" })
|
|
206
|
+
], o.prototype, "selectedIndex", 2);
|
|
207
|
+
r([
|
|
208
|
+
p()
|
|
209
|
+
], o.prototype, "openItems", 2);
|
|
210
|
+
r([
|
|
211
|
+
p()
|
|
212
|
+
], o.prototype, "openCtas", 2);
|
|
213
|
+
r([
|
|
214
|
+
p()
|
|
215
|
+
], o.prototype, "hasScrollLeft", 2);
|
|
216
|
+
r([
|
|
217
|
+
p()
|
|
218
|
+
], o.prototype, "hasScrollRight", 2);
|
|
219
|
+
r([
|
|
220
|
+
u({ slot: "items" })
|
|
221
|
+
], o.prototype, "items", 2);
|
|
222
|
+
r([
|
|
223
|
+
u({ slot: "actions" })
|
|
224
|
+
], o.prototype, "ctas", 2);
|
|
225
|
+
r([
|
|
226
|
+
g(".items-container")
|
|
227
|
+
], o.prototype, "itemsContainer", 2);
|
|
228
|
+
o = r([
|
|
229
|
+
f("ds-secondary-navigation")
|
|
230
|
+
], o);
|
|
231
|
+
export {
|
|
232
|
+
o as DsSecondaryNavigation
|
|
233
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import "../../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
3
|
+
import "../../../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
4
|
+
import { css as o } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
|
+
const p = o`
|
|
6
|
+
:host {
|
|
7
|
+
display: contents;
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
export {
|
|
11
|
+
p as commonStyles
|
|
12
|
+
};
|