@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,313 @@
|
|
|
1
|
+
import { flip as Z, shift as tt, offset as et, arrow as ot, size as it, computePosition as nt } from "../../../../../@floating-ui_core@1.7.3/node_modules/@floating-ui/core/dist/floating-ui.core.js";
|
|
2
|
+
import { createCoords as d, round as W, max as O, min as A, rectToClientRect as X } from "../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";
|
|
3
|
+
import { isElement as p, getDocumentElement as m, getComputedStyle as w, isHTMLElement as x, getWindow as b, isTopLayer as D, getParentNode as T, isLastTraversableNode as S, isTableElement as st, isContainingBlock as _, getContainingBlock as rt, getNodeName as N, isOverflowElement as H, getNodeScroll as E, getOverflowAncestors as ct, getFrameElement as M, isWebKit as P } from "../../../../../@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";
|
|
4
|
+
function K(t) {
|
|
5
|
+
const e = w(t);
|
|
6
|
+
let i = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
7
|
+
const n = x(t), r = n ? t.offsetWidth : i, s = n ? t.offsetHeight : o, c = W(i) !== r || W(o) !== s;
|
|
8
|
+
return c && (i = r, o = s), {
|
|
9
|
+
width: i,
|
|
10
|
+
height: o,
|
|
11
|
+
$: c
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function j(t) {
|
|
15
|
+
return p(t) ? t : t.contextElement;
|
|
16
|
+
}
|
|
17
|
+
function R(t) {
|
|
18
|
+
const e = j(t);
|
|
19
|
+
if (!x(e))
|
|
20
|
+
return d(1);
|
|
21
|
+
const i = e.getBoundingClientRect(), {
|
|
22
|
+
width: o,
|
|
23
|
+
height: n,
|
|
24
|
+
$: r
|
|
25
|
+
} = K(e);
|
|
26
|
+
let s = (r ? W(i.width) : i.width) / o, c = (r ? W(i.height) : i.height) / n;
|
|
27
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
28
|
+
x: s,
|
|
29
|
+
y: c
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
const lt = /* @__PURE__ */ d(0);
|
|
33
|
+
function q(t) {
|
|
34
|
+
const e = b(t);
|
|
35
|
+
return !P() || !e.visualViewport ? lt : {
|
|
36
|
+
x: e.visualViewport.offsetLeft,
|
|
37
|
+
y: e.visualViewport.offsetTop
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ft(t, e, i) {
|
|
41
|
+
return e === void 0 && (e = !1), !i || e && i !== b(t) ? !1 : e;
|
|
42
|
+
}
|
|
43
|
+
function v(t, e, i, o) {
|
|
44
|
+
e === void 0 && (e = !1), i === void 0 && (i = !1);
|
|
45
|
+
const n = t.getBoundingClientRect(), r = j(t);
|
|
46
|
+
let s = d(1);
|
|
47
|
+
e && (o ? p(o) && (s = R(o)) : s = R(t));
|
|
48
|
+
const c = ft(r, i, o) ? q(r) : d(0);
|
|
49
|
+
let l = (n.left + c.x) / s.x, f = (n.top + c.y) / s.y, u = n.width / s.x, h = n.height / s.y;
|
|
50
|
+
if (r) {
|
|
51
|
+
const g = b(r), a = o && p(o) ? b(o) : o;
|
|
52
|
+
let C = g, y = M(C);
|
|
53
|
+
for (; y && o && a !== C; ) {
|
|
54
|
+
const L = R(y), V = y.getBoundingClientRect(), $ = w(y), U = V.left + (y.clientLeft + parseFloat($.paddingLeft)) * L.x, Y = V.top + (y.clientTop + parseFloat($.paddingTop)) * L.y;
|
|
55
|
+
l *= L.x, f *= L.y, u *= L.x, h *= L.y, l += U, f += Y, C = b(y), y = M(C);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return X({
|
|
59
|
+
width: u,
|
|
60
|
+
height: h,
|
|
61
|
+
x: l,
|
|
62
|
+
y: f
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function F(t, e) {
|
|
66
|
+
const i = E(t).scrollLeft;
|
|
67
|
+
return e ? e.left + i : v(m(t)).left + i;
|
|
68
|
+
}
|
|
69
|
+
function G(t, e) {
|
|
70
|
+
const i = t.getBoundingClientRect(), o = i.left + e.scrollLeft - F(t, i), n = i.top + e.scrollTop;
|
|
71
|
+
return {
|
|
72
|
+
x: o,
|
|
73
|
+
y: n
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function ut(t) {
|
|
77
|
+
let {
|
|
78
|
+
elements: e,
|
|
79
|
+
rect: i,
|
|
80
|
+
offsetParent: o,
|
|
81
|
+
strategy: n
|
|
82
|
+
} = t;
|
|
83
|
+
const r = n === "fixed", s = m(o), c = e ? D(e.floating) : !1;
|
|
84
|
+
if (o === s || c && r)
|
|
85
|
+
return i;
|
|
86
|
+
let l = {
|
|
87
|
+
scrollLeft: 0,
|
|
88
|
+
scrollTop: 0
|
|
89
|
+
}, f = d(1);
|
|
90
|
+
const u = d(0), h = x(o);
|
|
91
|
+
if ((h || !h && !r) && ((N(o) !== "body" || H(s)) && (l = E(o)), x(o))) {
|
|
92
|
+
const a = v(o);
|
|
93
|
+
f = R(o), u.x = a.x + o.clientLeft, u.y = a.y + o.clientTop;
|
|
94
|
+
}
|
|
95
|
+
const g = s && !h && !r ? G(s, l) : d(0);
|
|
96
|
+
return {
|
|
97
|
+
width: i.width * f.x,
|
|
98
|
+
height: i.height * f.y,
|
|
99
|
+
x: i.x * f.x - l.scrollLeft * f.x + u.x + g.x,
|
|
100
|
+
y: i.y * f.y - l.scrollTop * f.y + u.y + g.y
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function ht(t) {
|
|
104
|
+
return Array.from(t.getClientRects());
|
|
105
|
+
}
|
|
106
|
+
function dt(t) {
|
|
107
|
+
const e = m(t), i = E(t), o = t.ownerDocument.body, n = O(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = O(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
108
|
+
let s = -i.scrollLeft + F(t);
|
|
109
|
+
const c = -i.scrollTop;
|
|
110
|
+
return w(o).direction === "rtl" && (s += O(e.clientWidth, o.clientWidth) - n), {
|
|
111
|
+
width: n,
|
|
112
|
+
height: r,
|
|
113
|
+
x: s,
|
|
114
|
+
y: c
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
const I = 25;
|
|
118
|
+
function gt(t, e) {
|
|
119
|
+
const i = b(t), o = m(t), n = i.visualViewport;
|
|
120
|
+
let r = o.clientWidth, s = o.clientHeight, c = 0, l = 0;
|
|
121
|
+
if (n) {
|
|
122
|
+
r = n.width, s = n.height;
|
|
123
|
+
const u = P();
|
|
124
|
+
(!u || u && e === "fixed") && (c = n.offsetLeft, l = n.offsetTop);
|
|
125
|
+
}
|
|
126
|
+
const f = F(o);
|
|
127
|
+
if (f <= 0) {
|
|
128
|
+
const u = o.ownerDocument, h = u.body, g = getComputedStyle(h), a = u.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, C = Math.abs(o.clientWidth - h.clientWidth - a);
|
|
129
|
+
C <= I && (r -= C);
|
|
130
|
+
} else f <= I && (r += f);
|
|
131
|
+
return {
|
|
132
|
+
width: r,
|
|
133
|
+
height: s,
|
|
134
|
+
x: c,
|
|
135
|
+
y: l
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
const at = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
139
|
+
function pt(t, e) {
|
|
140
|
+
const i = v(t, !0, e === "fixed"), o = i.top + t.clientTop, n = i.left + t.clientLeft, r = x(t) ? R(t) : d(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, l = n * r.x, f = o * r.y;
|
|
141
|
+
return {
|
|
142
|
+
width: s,
|
|
143
|
+
height: c,
|
|
144
|
+
x: l,
|
|
145
|
+
y: f
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
function k(t, e, i) {
|
|
149
|
+
let o;
|
|
150
|
+
if (e === "viewport")
|
|
151
|
+
o = gt(t, i);
|
|
152
|
+
else if (e === "document")
|
|
153
|
+
o = dt(m(t));
|
|
154
|
+
else if (p(e))
|
|
155
|
+
o = pt(e, i);
|
|
156
|
+
else {
|
|
157
|
+
const n = q(t);
|
|
158
|
+
o = {
|
|
159
|
+
x: e.x - n.x,
|
|
160
|
+
y: e.y - n.y,
|
|
161
|
+
width: e.width,
|
|
162
|
+
height: e.height
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
return X(o);
|
|
166
|
+
}
|
|
167
|
+
function J(t, e) {
|
|
168
|
+
const i = T(t);
|
|
169
|
+
return i === e || !p(i) || S(i) ? !1 : w(i).position === "fixed" || J(i, e);
|
|
170
|
+
}
|
|
171
|
+
function wt(t, e) {
|
|
172
|
+
const i = e.get(t);
|
|
173
|
+
if (i)
|
|
174
|
+
return i;
|
|
175
|
+
let o = ct(t, []).filter((c) => p(c) && N(c) !== "body"), n = null;
|
|
176
|
+
const r = w(t).position === "fixed";
|
|
177
|
+
let s = r ? T(t) : t;
|
|
178
|
+
for (; p(s) && !S(s); ) {
|
|
179
|
+
const c = w(s), l = _(s);
|
|
180
|
+
!l && c.position === "fixed" && (n = null), (r ? !l && !n : !l && c.position === "static" && !!n && at.has(n.position) || H(s) && !l && J(t, s)) ? o = o.filter((u) => u !== s) : n = c, s = T(s);
|
|
181
|
+
}
|
|
182
|
+
return e.set(t, o), o;
|
|
183
|
+
}
|
|
184
|
+
function yt(t) {
|
|
185
|
+
let {
|
|
186
|
+
element: e,
|
|
187
|
+
boundary: i,
|
|
188
|
+
rootBoundary: o,
|
|
189
|
+
strategy: n
|
|
190
|
+
} = t;
|
|
191
|
+
const s = [...i === "clippingAncestors" ? D(e) ? [] : wt(e, this._c) : [].concat(i), o], c = s[0], l = s.reduce((f, u) => {
|
|
192
|
+
const h = k(e, u, n);
|
|
193
|
+
return f.top = O(h.top, f.top), f.right = A(h.right, f.right), f.bottom = A(h.bottom, f.bottom), f.left = O(h.left, f.left), f;
|
|
194
|
+
}, k(e, c, n));
|
|
195
|
+
return {
|
|
196
|
+
width: l.right - l.left,
|
|
197
|
+
height: l.bottom - l.top,
|
|
198
|
+
x: l.left,
|
|
199
|
+
y: l.top
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
function xt(t) {
|
|
203
|
+
const {
|
|
204
|
+
width: e,
|
|
205
|
+
height: i
|
|
206
|
+
} = K(t);
|
|
207
|
+
return {
|
|
208
|
+
width: e,
|
|
209
|
+
height: i
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
function mt(t, e, i) {
|
|
213
|
+
const o = x(e), n = m(e), r = i === "fixed", s = v(t, !0, r, e);
|
|
214
|
+
let c = {
|
|
215
|
+
scrollLeft: 0,
|
|
216
|
+
scrollTop: 0
|
|
217
|
+
};
|
|
218
|
+
const l = d(0);
|
|
219
|
+
function f() {
|
|
220
|
+
l.x = F(n);
|
|
221
|
+
}
|
|
222
|
+
if (o || !o && !r)
|
|
223
|
+
if ((N(e) !== "body" || H(n)) && (c = E(e)), o) {
|
|
224
|
+
const a = v(e, !0, r, e);
|
|
225
|
+
l.x = a.x + e.clientLeft, l.y = a.y + e.clientTop;
|
|
226
|
+
} else n && f();
|
|
227
|
+
r && !o && n && f();
|
|
228
|
+
const u = n && !o && !r ? G(n, c) : d(0), h = s.left + c.scrollLeft - l.x - u.x, g = s.top + c.scrollTop - l.y - u.y;
|
|
229
|
+
return {
|
|
230
|
+
x: h,
|
|
231
|
+
y: g,
|
|
232
|
+
width: s.width,
|
|
233
|
+
height: s.height
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
function B(t) {
|
|
237
|
+
return w(t).position === "static";
|
|
238
|
+
}
|
|
239
|
+
function z(t, e) {
|
|
240
|
+
if (!x(t) || w(t).position === "fixed")
|
|
241
|
+
return null;
|
|
242
|
+
if (e)
|
|
243
|
+
return e(t);
|
|
244
|
+
let i = t.offsetParent;
|
|
245
|
+
return m(t) === i && (i = i.ownerDocument.body), i;
|
|
246
|
+
}
|
|
247
|
+
function Q(t, e) {
|
|
248
|
+
const i = b(t);
|
|
249
|
+
if (D(t))
|
|
250
|
+
return i;
|
|
251
|
+
if (!x(t)) {
|
|
252
|
+
let n = T(t);
|
|
253
|
+
for (; n && !S(n); ) {
|
|
254
|
+
if (p(n) && !B(n))
|
|
255
|
+
return n;
|
|
256
|
+
n = T(n);
|
|
257
|
+
}
|
|
258
|
+
return i;
|
|
259
|
+
}
|
|
260
|
+
let o = z(t, e);
|
|
261
|
+
for (; o && st(o) && B(o); )
|
|
262
|
+
o = z(o, e);
|
|
263
|
+
return o && S(o) && B(o) && !_(o) ? i : o || rt(t) || i;
|
|
264
|
+
}
|
|
265
|
+
const Ct = async function(t) {
|
|
266
|
+
const e = this.getOffsetParent || Q, i = this.getDimensions, o = await i(t.floating);
|
|
267
|
+
return {
|
|
268
|
+
reference: mt(t.reference, await e(t.floating), t.strategy),
|
|
269
|
+
floating: {
|
|
270
|
+
x: 0,
|
|
271
|
+
y: 0,
|
|
272
|
+
width: o.width,
|
|
273
|
+
height: o.height
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
function bt(t) {
|
|
278
|
+
return w(t).direction === "rtl";
|
|
279
|
+
}
|
|
280
|
+
const Lt = {
|
|
281
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ut,
|
|
282
|
+
getDocumentElement: m,
|
|
283
|
+
getClippingRect: yt,
|
|
284
|
+
getOffsetParent: Q,
|
|
285
|
+
getElementRects: Ct,
|
|
286
|
+
getClientRects: ht,
|
|
287
|
+
getDimensions: xt,
|
|
288
|
+
getScale: R,
|
|
289
|
+
isElement: p,
|
|
290
|
+
isRTL: bt
|
|
291
|
+
}, vt = et, Wt = tt, St = Z, Et = it, Ft = ot, Bt = (t, e, i) => {
|
|
292
|
+
const o = /* @__PURE__ */ new Map(), n = {
|
|
293
|
+
platform: Lt,
|
|
294
|
+
...i
|
|
295
|
+
}, r = {
|
|
296
|
+
...n.platform,
|
|
297
|
+
_c: o
|
|
298
|
+
};
|
|
299
|
+
return nt(t, e, {
|
|
300
|
+
...n,
|
|
301
|
+
platform: r
|
|
302
|
+
});
|
|
303
|
+
};
|
|
304
|
+
export {
|
|
305
|
+
Ft as arrow,
|
|
306
|
+
Bt as computePosition,
|
|
307
|
+
St as flip,
|
|
308
|
+
ct as getOverflowAncestors,
|
|
309
|
+
vt as offset,
|
|
310
|
+
Lt as platform,
|
|
311
|
+
Wt as shift,
|
|
312
|
+
Et as size
|
|
313
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
function c() {
|
|
2
|
+
return typeof window < "u";
|
|
3
|
+
}
|
|
4
|
+
function a(e) {
|
|
5
|
+
return f(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
6
|
+
}
|
|
7
|
+
function s(e) {
|
|
8
|
+
var t;
|
|
9
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
10
|
+
}
|
|
11
|
+
function b(e) {
|
|
12
|
+
var t;
|
|
13
|
+
return (t = (f(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
14
|
+
}
|
|
15
|
+
function f(e) {
|
|
16
|
+
return c() ? e instanceof Node || e instanceof s(e).Node : !1;
|
|
17
|
+
}
|
|
18
|
+
function d(e) {
|
|
19
|
+
return c() ? e instanceof Element || e instanceof s(e).Element : !1;
|
|
20
|
+
}
|
|
21
|
+
function m(e) {
|
|
22
|
+
return c() ? e instanceof HTMLElement || e instanceof s(e).HTMLElement : !1;
|
|
23
|
+
}
|
|
24
|
+
function u(e) {
|
|
25
|
+
return !c() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof s(e).ShadowRoot;
|
|
26
|
+
}
|
|
27
|
+
const g = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
28
|
+
function p(e) {
|
|
29
|
+
const {
|
|
30
|
+
overflow: t,
|
|
31
|
+
overflowX: n,
|
|
32
|
+
overflowY: o,
|
|
33
|
+
display: r
|
|
34
|
+
} = y(e);
|
|
35
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !g.has(r);
|
|
36
|
+
}
|
|
37
|
+
const N = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
38
|
+
function _(e) {
|
|
39
|
+
return N.has(a(e));
|
|
40
|
+
}
|
|
41
|
+
const v = [":popover-open", ":modal"];
|
|
42
|
+
function E(e) {
|
|
43
|
+
return v.some((t) => {
|
|
44
|
+
try {
|
|
45
|
+
return e.matches(t);
|
|
46
|
+
} catch {
|
|
47
|
+
return !1;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
const T = ["transform", "translate", "scale", "rotate", "perspective"], L = ["transform", "translate", "scale", "rotate", "perspective", "filter"], D = ["paint", "layout", "strict", "content"];
|
|
52
|
+
function C(e) {
|
|
53
|
+
const t = k(), n = d(e) ? y(e) : e;
|
|
54
|
+
return T.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || L.some((o) => (n.willChange || "").includes(o)) || D.some((o) => (n.contain || "").includes(o));
|
|
55
|
+
}
|
|
56
|
+
function A(e) {
|
|
57
|
+
let t = l(e);
|
|
58
|
+
for (; m(t) && !w(t); ) {
|
|
59
|
+
if (C(t))
|
|
60
|
+
return t;
|
|
61
|
+
if (E(t))
|
|
62
|
+
return null;
|
|
63
|
+
t = l(t);
|
|
64
|
+
}
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
function k() {
|
|
68
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
69
|
+
}
|
|
70
|
+
const V = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
71
|
+
function w(e) {
|
|
72
|
+
return V.has(a(e));
|
|
73
|
+
}
|
|
74
|
+
function y(e) {
|
|
75
|
+
return s(e).getComputedStyle(e);
|
|
76
|
+
}
|
|
77
|
+
function B(e) {
|
|
78
|
+
return d(e) ? {
|
|
79
|
+
scrollLeft: e.scrollLeft,
|
|
80
|
+
scrollTop: e.scrollTop
|
|
81
|
+
} : {
|
|
82
|
+
scrollLeft: e.scrollX,
|
|
83
|
+
scrollTop: e.scrollY
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function l(e) {
|
|
87
|
+
if (a(e) === "html")
|
|
88
|
+
return e;
|
|
89
|
+
const t = (
|
|
90
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
91
|
+
e.assignedSlot || // DOM Element detected.
|
|
92
|
+
e.parentNode || // ShadowRoot detected.
|
|
93
|
+
u(e) && e.host || // Fallback.
|
|
94
|
+
b(e)
|
|
95
|
+
);
|
|
96
|
+
return u(t) ? t.host : t;
|
|
97
|
+
}
|
|
98
|
+
function h(e) {
|
|
99
|
+
const t = l(e);
|
|
100
|
+
return w(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : m(t) && p(t) ? t : h(t);
|
|
101
|
+
}
|
|
102
|
+
function O(e, t, n) {
|
|
103
|
+
var o;
|
|
104
|
+
t === void 0 && (t = []);
|
|
105
|
+
const r = h(e), S = r === ((o = e.ownerDocument) == null ? void 0 : o.body), i = s(r);
|
|
106
|
+
return S ? (R(i), t.concat(i, i.visualViewport || [], p(r) ? r : [], [])) : t.concat(r, O(r, []));
|
|
107
|
+
}
|
|
108
|
+
function R(e) {
|
|
109
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
110
|
+
}
|
|
111
|
+
export {
|
|
112
|
+
y as getComputedStyle,
|
|
113
|
+
A as getContainingBlock,
|
|
114
|
+
b as getDocumentElement,
|
|
115
|
+
R as getFrameElement,
|
|
116
|
+
h as getNearestOverflowAncestor,
|
|
117
|
+
a as getNodeName,
|
|
118
|
+
B as getNodeScroll,
|
|
119
|
+
O as getOverflowAncestors,
|
|
120
|
+
l as getParentNode,
|
|
121
|
+
s as getWindow,
|
|
122
|
+
C as isContainingBlock,
|
|
123
|
+
d as isElement,
|
|
124
|
+
m as isHTMLElement,
|
|
125
|
+
w as isLastTraversableNode,
|
|
126
|
+
f as isNode,
|
|
127
|
+
p as isOverflowElement,
|
|
128
|
+
u as isShadowRoot,
|
|
129
|
+
_ as isTableElement,
|
|
130
|
+
E as isTopLayer,
|
|
131
|
+
k as isWebKit
|
|
132
|
+
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
const m = Math.min, p = Math.max, j = Math.round, C = (t) => ({
|
|
2
|
+
x: t,
|
|
3
|
+
y: t
|
|
4
|
+
}), h = {
|
|
5
|
+
left: "right",
|
|
6
|
+
right: "left",
|
|
7
|
+
bottom: "top",
|
|
8
|
+
top: "bottom"
|
|
9
|
+
}, x = {
|
|
10
|
+
start: "end",
|
|
11
|
+
end: "start"
|
|
12
|
+
};
|
|
13
|
+
function L(t, e, n) {
|
|
14
|
+
return p(t, m(e, n));
|
|
15
|
+
}
|
|
16
|
+
function E(t, e) {
|
|
17
|
+
return typeof t == "function" ? t(e) : t;
|
|
18
|
+
}
|
|
19
|
+
function g(t) {
|
|
20
|
+
return t.split("-")[0];
|
|
21
|
+
}
|
|
22
|
+
function a(t) {
|
|
23
|
+
return t.split("-")[1];
|
|
24
|
+
}
|
|
25
|
+
function b(t) {
|
|
26
|
+
return t === "x" ? "y" : "x";
|
|
27
|
+
}
|
|
28
|
+
function d(t) {
|
|
29
|
+
return t === "y" ? "height" : "width";
|
|
30
|
+
}
|
|
31
|
+
const A = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
32
|
+
function P(t) {
|
|
33
|
+
return A.has(g(t)) ? "y" : "x";
|
|
34
|
+
}
|
|
35
|
+
function y(t) {
|
|
36
|
+
return b(P(t));
|
|
37
|
+
}
|
|
38
|
+
function R(t, e, n) {
|
|
39
|
+
n === void 0 && (n = !1);
|
|
40
|
+
const r = a(t), i = y(t), o = d(i);
|
|
41
|
+
let c = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
42
|
+
return e.reference[o] > e.floating[o] && (c = u(c)), [c, u(c)];
|
|
43
|
+
}
|
|
44
|
+
function T(t) {
|
|
45
|
+
const e = u(t);
|
|
46
|
+
return [s(t), e, s(e)];
|
|
47
|
+
}
|
|
48
|
+
function s(t) {
|
|
49
|
+
return t.replace(/start|end/g, (e) => x[e]);
|
|
50
|
+
}
|
|
51
|
+
const f = ["left", "right"], l = ["right", "left"], O = ["top", "bottom"], S = ["bottom", "top"];
|
|
52
|
+
function M(t, e, n) {
|
|
53
|
+
switch (t) {
|
|
54
|
+
case "top":
|
|
55
|
+
case "bottom":
|
|
56
|
+
return n ? e ? l : f : e ? f : l;
|
|
57
|
+
case "left":
|
|
58
|
+
case "right":
|
|
59
|
+
return e ? O : S;
|
|
60
|
+
default:
|
|
61
|
+
return [];
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function k(t, e, n, r) {
|
|
65
|
+
const i = a(t);
|
|
66
|
+
let o = M(g(t), n === "start", r);
|
|
67
|
+
return i && (o = o.map((c) => c + "-" + i), e && (o = o.concat(o.map(s)))), o;
|
|
68
|
+
}
|
|
69
|
+
function u(t) {
|
|
70
|
+
return t.replace(/left|right|bottom|top/g, (e) => h[e]);
|
|
71
|
+
}
|
|
72
|
+
function w(t) {
|
|
73
|
+
return {
|
|
74
|
+
top: 0,
|
|
75
|
+
right: 0,
|
|
76
|
+
bottom: 0,
|
|
77
|
+
left: 0,
|
|
78
|
+
...t
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function q(t) {
|
|
82
|
+
return typeof t != "number" ? w(t) : {
|
|
83
|
+
top: t,
|
|
84
|
+
right: t,
|
|
85
|
+
bottom: t,
|
|
86
|
+
left: t
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function z(t) {
|
|
90
|
+
const {
|
|
91
|
+
x: e,
|
|
92
|
+
y: n,
|
|
93
|
+
width: r,
|
|
94
|
+
height: i
|
|
95
|
+
} = t;
|
|
96
|
+
return {
|
|
97
|
+
width: r,
|
|
98
|
+
height: i,
|
|
99
|
+
top: n,
|
|
100
|
+
left: e,
|
|
101
|
+
right: e + r,
|
|
102
|
+
bottom: n + i,
|
|
103
|
+
x: e,
|
|
104
|
+
y: n
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
export {
|
|
108
|
+
L as clamp,
|
|
109
|
+
C as createCoords,
|
|
110
|
+
E as evaluate,
|
|
111
|
+
w as expandPaddingObject,
|
|
112
|
+
a as getAlignment,
|
|
113
|
+
y as getAlignmentAxis,
|
|
114
|
+
R as getAlignmentSides,
|
|
115
|
+
d as getAxisLength,
|
|
116
|
+
T as getExpandedPlacements,
|
|
117
|
+
s as getOppositeAlignmentPlacement,
|
|
118
|
+
b as getOppositeAxis,
|
|
119
|
+
k as getOppositeAxisPlacements,
|
|
120
|
+
u as getOppositePlacement,
|
|
121
|
+
q as getPaddingObject,
|
|
122
|
+
g as getSide,
|
|
123
|
+
P as getSideAxis,
|
|
124
|
+
p as max,
|
|
125
|
+
m as min,
|
|
126
|
+
z as rectToClientRect,
|
|
127
|
+
j as round
|
|
128
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2021 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
*/
|
|
6
|
+
let r = class extends Event {
|
|
7
|
+
constructor(t, e, s, c) {
|
|
8
|
+
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e, this.callback = s, this.subscribe = c ?? !1;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
r as ContextRequestEvent
|
|
13
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ContextRequestEvent as b } from "../context-request-event.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2021 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/
|
|
7
|
+
class r {
|
|
8
|
+
constructor(e, t, h, c) {
|
|
9
|
+
if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (s, i) => {
|
|
10
|
+
this.unsubscribe && (this.unsubscribe !== i && (this.provided = !1, this.unsubscribe()), this.subscribe || this.unsubscribe()), this.value = s, this.host.requestUpdate(), this.provided && !this.subscribe || (this.provided = !0, this.callback && this.callback(s, i)), this.unsubscribe = i;
|
|
11
|
+
}, this.host = e, t.context !== void 0) {
|
|
12
|
+
const s = t;
|
|
13
|
+
this.context = s.context, this.callback = s.callback, this.subscribe = s.subscribe ?? !1;
|
|
14
|
+
} else this.context = t, this.callback = h, this.subscribe = c ?? !1;
|
|
15
|
+
this.host.addController(this);
|
|
16
|
+
}
|
|
17
|
+
hostConnected() {
|
|
18
|
+
this.dispatchRequest();
|
|
19
|
+
}
|
|
20
|
+
hostDisconnected() {
|
|
21
|
+
this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
|
|
22
|
+
}
|
|
23
|
+
dispatchRequest() {
|
|
24
|
+
this.host.dispatchEvent(new b(this.context, this.host, this.t, this.subscribe));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
r as ContextConsumer
|
|
29
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ContextRequestEvent as d } from "../context-request-event.js";
|
|
2
|
+
import { ValueNotifier as x } from "../value-notifier.js";
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
* Copyright 2021 Google LLC
|
|
6
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
+
*/
|
|
8
|
+
class u extends Event {
|
|
9
|
+
constructor(o, e) {
|
|
10
|
+
super("context-provider", { bubbles: !0, composed: !0 }), this.context = o, this.contextTarget = e;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
class l extends x {
|
|
14
|
+
constructor(o, e, a) {
|
|
15
|
+
var i, r;
|
|
16
|
+
super(e.context !== void 0 ? e.initialValue : a), this.onContextRequest = (t) => {
|
|
17
|
+
if (t.context !== this.context) return;
|
|
18
|
+
const s = t.contextTarget ?? t.composedPath()[0];
|
|
19
|
+
s !== this.host && (t.stopPropagation(), this.addCallback(t.callback, s, t.subscribe));
|
|
20
|
+
}, this.onProviderRequest = (t) => {
|
|
21
|
+
if (t.context !== this.context || (t.contextTarget ?? t.composedPath()[0]) === this.host) return;
|
|
22
|
+
const s = /* @__PURE__ */ new Set();
|
|
23
|
+
for (const [n, { consumerHost: c }] of this.subscriptions) s.has(n) || (s.add(n), c.dispatchEvent(new d(this.context, c, n, !0)));
|
|
24
|
+
t.stopPropagation();
|
|
25
|
+
}, this.host = o, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (r = (i = this.host).addController) == null || r.call(i, this);
|
|
26
|
+
}
|
|
27
|
+
attachListeners() {
|
|
28
|
+
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
29
|
+
}
|
|
30
|
+
hostConnected() {
|
|
31
|
+
this.host.dispatchEvent(new u(this.context, this.host));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
l as ContextProvider,
|
|
36
|
+
u as ContextProviderEvent
|
|
37
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ContextConsumer as n } from "../controllers/context-consumer.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright 2022 Google LLC
|
|
5
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
+
*/
|
|
7
|
+
function a({ context: e, subscribe: s }) {
|
|
8
|
+
return (i, c) => {
|
|
9
|
+
typeof c == "object" ? c.addInitializer((function() {
|
|
10
|
+
new n(this, { context: e, callback: (t) => {
|
|
11
|
+
i.set.call(this, t);
|
|
12
|
+
}, subscribe: s });
|
|
13
|
+
})) : i.constructor.addInitializer(((t) => {
|
|
14
|
+
new n(t, { context: e, callback: (o) => {
|
|
15
|
+
t[c] = o;
|
|
16
|
+
}, subscribe: s });
|
|
17
|
+
}));
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
a as consume
|
|
22
|
+
};
|