@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,42 @@
|
|
|
1
|
+
import { ContextProvider as c } from "../controllers/context-provider.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2017 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/
|
|
7
|
+
function l({ context: a }) {
|
|
8
|
+
return (r, o) => {
|
|
9
|
+
const s = /* @__PURE__ */ new WeakMap();
|
|
10
|
+
if (typeof o == "object") return { get() {
|
|
11
|
+
return r.get.call(this);
|
|
12
|
+
}, set(t) {
|
|
13
|
+
return s.get(this).setValue(t), r.set.call(this, t);
|
|
14
|
+
}, init(t) {
|
|
15
|
+
return s.set(this, new c(this, { context: a, initialValue: t })), t;
|
|
16
|
+
} };
|
|
17
|
+
{
|
|
18
|
+
r.constructor.addInitializer(((e) => {
|
|
19
|
+
s.set(e, new c(e, { context: a }));
|
|
20
|
+
}));
|
|
21
|
+
const t = Object.getOwnPropertyDescriptor(r, o);
|
|
22
|
+
let n;
|
|
23
|
+
if (t === void 0) {
|
|
24
|
+
const e = /* @__PURE__ */ new WeakMap();
|
|
25
|
+
n = { get() {
|
|
26
|
+
return e.get(this);
|
|
27
|
+
}, set(i) {
|
|
28
|
+
s.get(this).setValue(i), e.set(this, i);
|
|
29
|
+
}, configurable: !0, enumerable: !0 };
|
|
30
|
+
} else {
|
|
31
|
+
const e = t.set;
|
|
32
|
+
n = { ...t, set(i) {
|
|
33
|
+
s.get(this).setValue(i), e == null || e.call(this, i);
|
|
34
|
+
} };
|
|
35
|
+
}
|
|
36
|
+
return void Object.defineProperty(r, o, n);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
l as provide
|
|
42
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
class r {
|
|
7
|
+
get value() {
|
|
8
|
+
return this.o;
|
|
9
|
+
}
|
|
10
|
+
set value(s) {
|
|
11
|
+
this.setValue(s);
|
|
12
|
+
}
|
|
13
|
+
setValue(s, t = !1) {
|
|
14
|
+
const i = t || !Object.is(s, this.o);
|
|
15
|
+
this.o = s, i && this.updateObservers();
|
|
16
|
+
}
|
|
17
|
+
constructor(s) {
|
|
18
|
+
this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
|
|
19
|
+
for (const [t, { disposer: i }] of this.subscriptions) t(this.o, i);
|
|
20
|
+
}, s !== void 0 && (this.value = s);
|
|
21
|
+
}
|
|
22
|
+
addCallback(s, t, i) {
|
|
23
|
+
if (!i) return void s(this.value);
|
|
24
|
+
this.subscriptions.has(s) || this.subscriptions.set(s, { disposer: () => {
|
|
25
|
+
this.subscriptions.delete(s);
|
|
26
|
+
}, consumerHost: t });
|
|
27
|
+
const { disposer: e } = this.subscriptions.get(s);
|
|
28
|
+
s(this.value, e);
|
|
29
|
+
}
|
|
30
|
+
clearCallbacks() {
|
|
31
|
+
this.subscriptions.clear();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
r as ValueNotifier
|
|
36
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
const r = globalThis, c = r.ShadowRoot && (r.ShadyCSS === void 0 || r.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, a = Symbol(), i = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
class l {
|
|
8
|
+
constructor(s, t, o) {
|
|
9
|
+
if (this._$cssResult$ = !0, o !== a) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
|
+
this.cssText = s, this.t = t;
|
|
11
|
+
}
|
|
12
|
+
get styleSheet() {
|
|
13
|
+
let s = this.o;
|
|
14
|
+
const t = this.t;
|
|
15
|
+
if (c && s === void 0) {
|
|
16
|
+
const o = t !== void 0 && t.length === 1;
|
|
17
|
+
o && (s = i.get(t)), s === void 0 && ((this.o = s = new CSSStyleSheet()).replaceSync(this.cssText), o && i.set(t, s));
|
|
18
|
+
}
|
|
19
|
+
return s;
|
|
20
|
+
}
|
|
21
|
+
toString() {
|
|
22
|
+
return this.cssText;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
const h = (e) => new l(typeof e == "string" ? e : e + "", void 0, a), p = (e, ...s) => {
|
|
26
|
+
const t = e.length === 1 ? e[0] : s.reduce(((o, S, u) => o + ((n) => {
|
|
27
|
+
if (n._$cssResult$ === !0) return n.cssText;
|
|
28
|
+
if (typeof n == "number") return n;
|
|
29
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
|
+
})(S) + e[u + 1]), e[0]);
|
|
31
|
+
return new l(t, e, a);
|
|
32
|
+
}, d = (e, s) => {
|
|
33
|
+
if (c) e.adoptedStyleSheets = s.map(((t) => t instanceof CSSStyleSheet ? t : t.styleSheet));
|
|
34
|
+
else for (const t of s) {
|
|
35
|
+
const o = document.createElement("style"), S = r.litNonce;
|
|
36
|
+
S !== void 0 && o.setAttribute("nonce", S), o.textContent = t.cssText, e.appendChild(o);
|
|
37
|
+
}
|
|
38
|
+
}, y = c ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((s) => {
|
|
39
|
+
let t = "";
|
|
40
|
+
for (const o of s.cssRules) t += o.cssText;
|
|
41
|
+
return h(t);
|
|
42
|
+
})(e) : e;
|
|
43
|
+
export {
|
|
44
|
+
l as CSSResult,
|
|
45
|
+
d as adoptStyles,
|
|
46
|
+
p as css,
|
|
47
|
+
y as getCompatibleStyle,
|
|
48
|
+
c as supportsAdoptingStyleSheets,
|
|
49
|
+
h as unsafeCSS
|
|
50
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2017 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
const o = (r, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(r, t, e), e);
|
|
7
|
+
export {
|
|
8
|
+
o as desc
|
|
9
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { notEqual as p, defaultConverter as l } from "../reactive-element.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2017 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/
|
|
7
|
+
const d = { attribute: !0, type: String, converter: l, reflect: !1, hasChanged: p }, u = (t = d, s, e) => {
|
|
8
|
+
const { kind: n, metadata: i } = e;
|
|
9
|
+
let r = globalThis.litPropertyMetadata.get(i);
|
|
10
|
+
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), n === "setter" && ((t = Object.create(t)).wrapped = !0), r.set(e.name, t), n === "accessor") {
|
|
11
|
+
const { name: o } = e;
|
|
12
|
+
return { set(a) {
|
|
13
|
+
const c = s.get.call(this);
|
|
14
|
+
s.set.call(this, a), this.requestUpdate(o, c, t);
|
|
15
|
+
}, init(a) {
|
|
16
|
+
return a !== void 0 && this.C(o, void 0, t, a), a;
|
|
17
|
+
} };
|
|
18
|
+
}
|
|
19
|
+
if (n === "setter") {
|
|
20
|
+
const { name: o } = e;
|
|
21
|
+
return function(a) {
|
|
22
|
+
const c = this[o];
|
|
23
|
+
s.call(this, a), this.requestUpdate(o, c, t);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
throw Error("Unsupported decorator location: " + n);
|
|
27
|
+
};
|
|
28
|
+
function f(t) {
|
|
29
|
+
return (s, e) => typeof e == "object" ? u(t, s, e) : ((n, i, r) => {
|
|
30
|
+
const o = i.hasOwnProperty(r);
|
|
31
|
+
return i.constructor.createProperty(r, n), o ? Object.getOwnPropertyDescriptor(i, r) : void 0;
|
|
32
|
+
})(t, s, e);
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
f as property,
|
|
36
|
+
u as standardProperty
|
|
37
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { desc as a } from "./base.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2021 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/
|
|
7
|
+
function d(t) {
|
|
8
|
+
return (c, i) => {
|
|
9
|
+
const { slot: r, selector: s } = t ?? {}, l = "slot" + (r ? `[name=${r}]` : ":not([name])");
|
|
10
|
+
return a(c, i, { get() {
|
|
11
|
+
var o;
|
|
12
|
+
const e = (o = this.renderRoot) == null ? void 0 : o.querySelector(l), n = (e == null ? void 0 : e.assignedElements(t)) ?? [];
|
|
13
|
+
return s === void 0 ? n : n.filter(((m) => m.matches(s)));
|
|
14
|
+
} });
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
d as queryAssignedElements
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { desc as u } from "./base.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2017 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/
|
|
7
|
+
function c(s) {
|
|
8
|
+
return (t, n) => {
|
|
9
|
+
const { slot: o } = s ?? {}, d = "slot" + (o ? `[name=${o}]` : ":not([name])");
|
|
10
|
+
return u(t, n, { get() {
|
|
11
|
+
var r;
|
|
12
|
+
const e = (r = this.renderRoot) == null ? void 0 : r.querySelector(d);
|
|
13
|
+
return (e == null ? void 0 : e.assignedNodes(s)) ?? [];
|
|
14
|
+
} });
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
c as queryAssignedNodes
|
|
19
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { desc as s } from "./base.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2017 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/
|
|
7
|
+
function a(e, c) {
|
|
8
|
+
return (t, o, i) => {
|
|
9
|
+
const n = (u) => {
|
|
10
|
+
var r;
|
|
11
|
+
return ((r = u.renderRoot) == null ? void 0 : r.querySelector(e)) ?? null;
|
|
12
|
+
};
|
|
13
|
+
return s(t, o, { get() {
|
|
14
|
+
return n(this);
|
|
15
|
+
} });
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
a as query
|
|
20
|
+
};
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { getCompatibleStyle as E, adoptStyles as m } from "./css-tag.js";
|
|
2
|
+
import { CSSResult as M, css as R, supportsAdoptingStyleSheets as z, unsafeCSS as j } from "./css-tag.js";
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
* Copyright 2017 Google LLC
|
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
const { is: g, defineProperty: b, getOwnPropertyDescriptor: P, getOwnPropertyNames: v, getOwnPropertySymbols: w, getPrototypeOf: S } = Object, n = globalThis, _ = n.trustedTypes, U = _ ? _.emptyScript : "", d = n.reactiveElementPolyfillSupport, c = (a, t) => a, u = { toAttribute(a, t) {
|
|
9
|
+
switch (t) {
|
|
10
|
+
case Boolean:
|
|
11
|
+
a = a ? U : null;
|
|
12
|
+
break;
|
|
13
|
+
case Object:
|
|
14
|
+
case Array:
|
|
15
|
+
a = a == null ? a : JSON.stringify(a);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
}, fromAttribute(a, t) {
|
|
19
|
+
let e = a;
|
|
20
|
+
switch (t) {
|
|
21
|
+
case Boolean:
|
|
22
|
+
e = a !== null;
|
|
23
|
+
break;
|
|
24
|
+
case Number:
|
|
25
|
+
e = a === null ? null : Number(a);
|
|
26
|
+
break;
|
|
27
|
+
case Object:
|
|
28
|
+
case Array:
|
|
29
|
+
try {
|
|
30
|
+
e = JSON.parse(a);
|
|
31
|
+
} catch {
|
|
32
|
+
e = null;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return e;
|
|
36
|
+
} }, y = (a, t) => !g(a, t), $ = { attribute: !0, type: String, converter: u, reflect: !1, useDefault: !1, hasChanged: y };
|
|
37
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), n.litPropertyMetadata ?? (n.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
38
|
+
class l extends HTMLElement {
|
|
39
|
+
static addInitializer(t) {
|
|
40
|
+
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
41
|
+
}
|
|
42
|
+
static get observedAttributes() {
|
|
43
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
44
|
+
}
|
|
45
|
+
static createProperty(t, e = $) {
|
|
46
|
+
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
47
|
+
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
|
48
|
+
i !== void 0 && b(this.prototype, t, i);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
static getPropertyDescriptor(t, e, s) {
|
|
52
|
+
const { get: i, set: r } = P(this.prototype, t) ?? { get() {
|
|
53
|
+
return this[e];
|
|
54
|
+
}, set(o) {
|
|
55
|
+
this[e] = o;
|
|
56
|
+
} };
|
|
57
|
+
return { get: i, set(o) {
|
|
58
|
+
const h = i == null ? void 0 : i.call(this);
|
|
59
|
+
r == null || r.call(this, o), this.requestUpdate(t, h, s);
|
|
60
|
+
}, configurable: !0, enumerable: !0 };
|
|
61
|
+
}
|
|
62
|
+
static getPropertyOptions(t) {
|
|
63
|
+
return this.elementProperties.get(t) ?? $;
|
|
64
|
+
}
|
|
65
|
+
static _$Ei() {
|
|
66
|
+
if (this.hasOwnProperty(c("elementProperties"))) return;
|
|
67
|
+
const t = S(this);
|
|
68
|
+
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
69
|
+
}
|
|
70
|
+
static finalize() {
|
|
71
|
+
if (this.hasOwnProperty(c("finalized"))) return;
|
|
72
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(c("properties"))) {
|
|
73
|
+
const e = this.properties, s = [...v(e), ...w(e)];
|
|
74
|
+
for (const i of s) this.createProperty(i, e[i]);
|
|
75
|
+
}
|
|
76
|
+
const t = this[Symbol.metadata];
|
|
77
|
+
if (t !== null) {
|
|
78
|
+
const e = litPropertyMetadata.get(t);
|
|
79
|
+
if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
|
|
80
|
+
}
|
|
81
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
|
82
|
+
for (const [e, s] of this.elementProperties) {
|
|
83
|
+
const i = this._$Eu(e, s);
|
|
84
|
+
i !== void 0 && this._$Eh.set(i, e);
|
|
85
|
+
}
|
|
86
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
87
|
+
}
|
|
88
|
+
static finalizeStyles(t) {
|
|
89
|
+
const e = [];
|
|
90
|
+
if (Array.isArray(t)) {
|
|
91
|
+
const s = new Set(t.flat(1 / 0).reverse());
|
|
92
|
+
for (const i of s) e.unshift(E(i));
|
|
93
|
+
} else t !== void 0 && e.push(E(t));
|
|
94
|
+
return e;
|
|
95
|
+
}
|
|
96
|
+
static _$Eu(t, e) {
|
|
97
|
+
const s = e.attribute;
|
|
98
|
+
return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
99
|
+
}
|
|
100
|
+
constructor() {
|
|
101
|
+
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
102
|
+
}
|
|
103
|
+
_$Ev() {
|
|
104
|
+
var t;
|
|
105
|
+
this._$ES = new Promise(((e) => this.enableUpdating = e)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach(((e) => e(this)));
|
|
106
|
+
}
|
|
107
|
+
addController(t) {
|
|
108
|
+
var e;
|
|
109
|
+
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
|
|
110
|
+
}
|
|
111
|
+
removeController(t) {
|
|
112
|
+
var e;
|
|
113
|
+
(e = this._$EO) == null || e.delete(t);
|
|
114
|
+
}
|
|
115
|
+
_$E_() {
|
|
116
|
+
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
117
|
+
for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
|
|
118
|
+
t.size > 0 && (this._$Ep = t);
|
|
119
|
+
}
|
|
120
|
+
createRenderRoot() {
|
|
121
|
+
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
122
|
+
return m(t, this.constructor.elementStyles), t;
|
|
123
|
+
}
|
|
124
|
+
connectedCallback() {
|
|
125
|
+
var t;
|
|
126
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach(((e) => {
|
|
127
|
+
var s;
|
|
128
|
+
return (s = e.hostConnected) == null ? void 0 : s.call(e);
|
|
129
|
+
}));
|
|
130
|
+
}
|
|
131
|
+
enableUpdating(t) {
|
|
132
|
+
}
|
|
133
|
+
disconnectedCallback() {
|
|
134
|
+
var t;
|
|
135
|
+
(t = this._$EO) == null || t.forEach(((e) => {
|
|
136
|
+
var s;
|
|
137
|
+
return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
|
|
138
|
+
}));
|
|
139
|
+
}
|
|
140
|
+
attributeChangedCallback(t, e, s) {
|
|
141
|
+
this._$AK(t, s);
|
|
142
|
+
}
|
|
143
|
+
_$ET(t, e) {
|
|
144
|
+
var r;
|
|
145
|
+
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
|
146
|
+
if (i !== void 0 && s.reflect === !0) {
|
|
147
|
+
const o = (((r = s.converter) == null ? void 0 : r.toAttribute) !== void 0 ? s.converter : u).toAttribute(e, s.type);
|
|
148
|
+
this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
_$AK(t, e) {
|
|
152
|
+
var r, o;
|
|
153
|
+
const s = this.constructor, i = s._$Eh.get(t);
|
|
154
|
+
if (i !== void 0 && this._$Em !== i) {
|
|
155
|
+
const h = s.getPropertyOptions(i), p = typeof h.converter == "function" ? { fromAttribute: h.converter } : ((r = h.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? h.converter : u;
|
|
156
|
+
this._$Em = i;
|
|
157
|
+
const f = p.fromAttribute(e, h.type);
|
|
158
|
+
this[i] = f ?? ((o = this._$Ej) == null ? void 0 : o.get(i)) ?? f, this._$Em = null;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
requestUpdate(t, e, s) {
|
|
162
|
+
var i;
|
|
163
|
+
if (t !== void 0) {
|
|
164
|
+
const r = this.constructor, o = this[t];
|
|
165
|
+
if (s ?? (s = r.getPropertyOptions(t)), !((s.hasChanged ?? y)(o, e) || s.useDefault && s.reflect && o === ((i = this._$Ej) == null ? void 0 : i.get(t)) && !this.hasAttribute(r._$Eu(t, s)))) return;
|
|
166
|
+
this.C(t, e, s);
|
|
167
|
+
}
|
|
168
|
+
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
169
|
+
}
|
|
170
|
+
C(t, e, { useDefault: s, reflect: i, wrapped: r }, o) {
|
|
171
|
+
s && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]), r !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || s || (e = void 0), this._$AL.set(t, e)), i === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
|
|
172
|
+
}
|
|
173
|
+
async _$EP() {
|
|
174
|
+
this.isUpdatePending = !0;
|
|
175
|
+
try {
|
|
176
|
+
await this._$ES;
|
|
177
|
+
} catch (e) {
|
|
178
|
+
Promise.reject(e);
|
|
179
|
+
}
|
|
180
|
+
const t = this.scheduleUpdate();
|
|
181
|
+
return t != null && await t, !this.isUpdatePending;
|
|
182
|
+
}
|
|
183
|
+
scheduleUpdate() {
|
|
184
|
+
return this.performUpdate();
|
|
185
|
+
}
|
|
186
|
+
performUpdate() {
|
|
187
|
+
var s;
|
|
188
|
+
if (!this.isUpdatePending) return;
|
|
189
|
+
if (!this.hasUpdated) {
|
|
190
|
+
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
191
|
+
for (const [r, o] of this._$Ep) this[r] = o;
|
|
192
|
+
this._$Ep = void 0;
|
|
193
|
+
}
|
|
194
|
+
const i = this.constructor.elementProperties;
|
|
195
|
+
if (i.size > 0) for (const [r, o] of i) {
|
|
196
|
+
const { wrapped: h } = o, p = this[r];
|
|
197
|
+
h !== !0 || this._$AL.has(r) || p === void 0 || this.C(r, void 0, o, p);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
let t = !1;
|
|
201
|
+
const e = this._$AL;
|
|
202
|
+
try {
|
|
203
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach(((i) => {
|
|
204
|
+
var r;
|
|
205
|
+
return (r = i.hostUpdate) == null ? void 0 : r.call(i);
|
|
206
|
+
})), this.update(e)) : this._$EM();
|
|
207
|
+
} catch (i) {
|
|
208
|
+
throw t = !1, this._$EM(), i;
|
|
209
|
+
}
|
|
210
|
+
t && this._$AE(e);
|
|
211
|
+
}
|
|
212
|
+
willUpdate(t) {
|
|
213
|
+
}
|
|
214
|
+
_$AE(t) {
|
|
215
|
+
var e;
|
|
216
|
+
(e = this._$EO) == null || e.forEach(((s) => {
|
|
217
|
+
var i;
|
|
218
|
+
return (i = s.hostUpdated) == null ? void 0 : i.call(s);
|
|
219
|
+
})), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
220
|
+
}
|
|
221
|
+
_$EM() {
|
|
222
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
223
|
+
}
|
|
224
|
+
get updateComplete() {
|
|
225
|
+
return this.getUpdateComplete();
|
|
226
|
+
}
|
|
227
|
+
getUpdateComplete() {
|
|
228
|
+
return this._$ES;
|
|
229
|
+
}
|
|
230
|
+
shouldUpdate(t) {
|
|
231
|
+
return !0;
|
|
232
|
+
}
|
|
233
|
+
update(t) {
|
|
234
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach(((e) => this._$ET(e, this[e])))), this._$EM();
|
|
235
|
+
}
|
|
236
|
+
updated(t) {
|
|
237
|
+
}
|
|
238
|
+
firstUpdated(t) {
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
l.elementStyles = [], l.shadowRootOptions = { mode: "open" }, l[c("elementProperties")] = /* @__PURE__ */ new Map(), l[c("finalized")] = /* @__PURE__ */ new Map(), d == null || d({ ReactiveElement: l }), (n.reactiveElementVersions ?? (n.reactiveElementVersions = [])).push("2.1.1");
|
|
242
|
+
export {
|
|
243
|
+
M as CSSResult,
|
|
244
|
+
l as ReactiveElement,
|
|
245
|
+
m as adoptStyles,
|
|
246
|
+
R as css,
|
|
247
|
+
u as defaultConverter,
|
|
248
|
+
E as getCompatibleStyle,
|
|
249
|
+
y as notEqual,
|
|
250
|
+
z as supportsAdoptingStyleSheets,
|
|
251
|
+
j as unsafeCSS
|
|
252
|
+
};
|
package/dist-react/node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ReactiveElement as i } from "../../../@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
+
import { defaultConverter as m, notEqual as C } from "../../../@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
3
|
+
import { render as a, noChange as l } from "../../../lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
4
|
+
import { _$LH as E, html as R, nothing as $ } from "../../../lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
5
|
+
/**
|
|
6
|
+
* @license
|
|
7
|
+
* Copyright 2017 Google LLC
|
|
8
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
+
*/
|
|
10
|
+
const t = globalThis;
|
|
11
|
+
class r extends i {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
14
|
+
}
|
|
15
|
+
createRenderRoot() {
|
|
16
|
+
var n;
|
|
17
|
+
const e = super.createRenderRoot();
|
|
18
|
+
return (n = this.renderOptions).renderBefore ?? (n.renderBefore = e.firstChild), e;
|
|
19
|
+
}
|
|
20
|
+
update(e) {
|
|
21
|
+
const n = this.render();
|
|
22
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = a(n, this.renderRoot, this.renderOptions);
|
|
23
|
+
}
|
|
24
|
+
connectedCallback() {
|
|
25
|
+
var e;
|
|
26
|
+
super.connectedCallback(), (e = this._$Do) == null || e.setConnected(!0);
|
|
27
|
+
}
|
|
28
|
+
disconnectedCallback() {
|
|
29
|
+
var e;
|
|
30
|
+
super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
return l;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
var s;
|
|
37
|
+
r._$litElement$ = !0, r.finalized = !0, (s = t.litElementHydrateSupport) == null || s.call(t, { LitElement: r });
|
|
38
|
+
const o = t.litElementPolyfillSupport;
|
|
39
|
+
o == null || o({ LitElement: r });
|
|
40
|
+
(t.litElementVersions ?? (t.litElementVersions = [])).push("4.2.1");
|
|
41
|
+
export {
|
|
42
|
+
r as LitElement,
|
|
43
|
+
i as ReactiveElement,
|
|
44
|
+
E as _$LH,
|
|
45
|
+
m as defaultConverter,
|
|
46
|
+
R as html,
|
|
47
|
+
l as noChange,
|
|
48
|
+
C as notEqual,
|
|
49
|
+
$ as nothing,
|
|
50
|
+
a as render
|
|
51
|
+
};
|
package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directive-helpers.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { _$LH as l } from "./lit-html.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2020 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/
|
|
7
|
+
const { I: f } = l, m = () => document.createComment(""), u = (e, A, t) => {
|
|
8
|
+
var o;
|
|
9
|
+
const $ = e._$AA.parentNode, i = A === void 0 ? e._$AB : A._$AA;
|
|
10
|
+
if (t === void 0) {
|
|
11
|
+
const s = $.insertBefore(m(), i), _ = $.insertBefore(m(), i);
|
|
12
|
+
t = new f(s, _, e, e.options);
|
|
13
|
+
} else {
|
|
14
|
+
const s = t._$AB.nextSibling, _ = t._$AM, a = _ !== e;
|
|
15
|
+
if (a) {
|
|
16
|
+
let r;
|
|
17
|
+
(o = t._$AQ) == null || o.call(t, e), t._$AM = e, t._$AP !== void 0 && (r = e._$AU) !== _._$AU && t._$AP(r);
|
|
18
|
+
}
|
|
19
|
+
if (s !== i || a) {
|
|
20
|
+
let r = t._$AA;
|
|
21
|
+
for (; r !== s; ) {
|
|
22
|
+
const d = r.nextSibling;
|
|
23
|
+
$.insertBefore(r, i), r = d;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return t;
|
|
28
|
+
}, v = (e, A, t = e) => (e._$AI(A, t), e), c = {}, p = (e, A = c) => e._$AH = A, B = (e) => e._$AH, P = (e) => {
|
|
29
|
+
e._$AR(), e._$AA.remove();
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
B as getCommittedValue,
|
|
33
|
+
u as insertPart,
|
|
34
|
+
P as removePart,
|
|
35
|
+
v as setChildPartValue,
|
|
36
|
+
p as setCommittedValue
|
|
37
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2017 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
const s = { ATTRIBUTE: 1, CHILD: 2 }, $ = (i) => (...t) => ({ _$litDirective$: i, values: t });
|
|
7
|
+
class _ {
|
|
8
|
+
constructor(t) {
|
|
9
|
+
}
|
|
10
|
+
get _$AU() {
|
|
11
|
+
return this._$AM._$AU;
|
|
12
|
+
}
|
|
13
|
+
_$AT(t, e, r) {
|
|
14
|
+
this._$Ct = t, this._$AM = e, this._$Ci = r;
|
|
15
|
+
}
|
|
16
|
+
_$AS(t, e) {
|
|
17
|
+
return this.update(t, e);
|
|
18
|
+
}
|
|
19
|
+
update(t, e) {
|
|
20
|
+
return this.render(...e);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
_ as Directive,
|
|
25
|
+
s as PartType,
|
|
26
|
+
$ as directive
|
|
27
|
+
};
|
package/dist-react/node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { noChange as o } from "../lit-html.js";
|
|
2
|
+
import { directive as h, Directive as c, PartType as d } from "../directive.js";
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
* Copyright 2018 Google LLC
|
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
const f = h(class extends c {
|
|
9
|
+
constructor(s) {
|
|
10
|
+
var e;
|
|
11
|
+
if (super(s), s.type !== d.ATTRIBUTE || s.name !== "class" || ((e = s.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
12
|
+
}
|
|
13
|
+
render(s) {
|
|
14
|
+
return " " + Object.keys(s).filter(((e) => s[e])).join(" ") + " ";
|
|
15
|
+
}
|
|
16
|
+
update(s, [e]) {
|
|
17
|
+
var n, i;
|
|
18
|
+
if (this.st === void 0) {
|
|
19
|
+
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter(((t) => t !== ""))));
|
|
20
|
+
for (const t in e) e[t] && !((n = this.nt) != null && n.has(t)) && this.st.add(t);
|
|
21
|
+
return this.render(e);
|
|
22
|
+
}
|
|
23
|
+
const r = s.element.classList;
|
|
24
|
+
for (const t of this.st) t in e || (r.remove(t), this.st.delete(t));
|
|
25
|
+
for (const t in e) {
|
|
26
|
+
const a = !!e[t];
|
|
27
|
+
a === this.st.has(t) || (i = this.nt) != null && i.has(t) || (a ? (r.add(t), this.st.add(t)) : (r.remove(t), this.st.delete(t)));
|
|
28
|
+
}
|
|
29
|
+
return o;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
f as classMap
|
|
34
|
+
};
|