@cupra/ui-kit 2.0.0-canary.129 → 2.0.0-canary.131
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/dist/cjs/components/base/ds-base-input/ds-base-input.cjs +3 -3
- package/dist/cjs/components/base/ds-base-progress-bar/ds-base-progress-bar.cjs +3 -3
- package/dist/cjs/components/ds-accordion/ds-accordion.cjs +4 -4
- package/dist/cjs/components/ds-avatar/ds-avatar.cjs +3 -3
- package/dist/cjs/components/ds-badge/styles/common.styles.cjs +2 -2
- package/dist/cjs/components/ds-bullets/ds-bullets.cjs +5 -5
- package/dist/cjs/components/ds-button/ds-button.cjs +13 -13
- package/dist/cjs/components/ds-button/styles/common.styles.cjs +2 -2
- package/dist/cjs/components/ds-checkbox/ds-checkbox.cjs +3 -3
- package/dist/cjs/components/ds-chip/ds-chip.cjs +3 -3
- package/dist/cjs/components/ds-dialog-body/ds-dialog-body.cjs +3 -3
- package/dist/cjs/components/ds-dialog-header/ds-dialog-header.cjs +3 -3
- package/dist/cjs/components/ds-divider/ds-divider.cjs +3 -3
- package/dist/cjs/components/ds-drawer/styles/common.styles.cjs +4 -4
- package/dist/cjs/components/ds-hyperlink/ds-hyperlink.cjs +5 -5
- package/dist/cjs/components/ds-icon/ds-icon.cjs +8 -8
- package/dist/cjs/components/ds-icon-button/ds-icon-button.cjs +6 -6
- package/dist/cjs/components/ds-link-button/ds-link-button.cjs +5 -5
- package/dist/cjs/components/ds-list/styles/common.styles.cjs +2 -2
- package/dist/cjs/components/ds-list-item/styles/common.styles.cjs +2 -2
- package/dist/cjs/components/ds-loader-dots/ds-loader-dots.cjs +3 -3
- package/dist/cjs/components/ds-loader-dots/styles/common.styles.cjs +17 -9
- package/dist/cjs/components/ds-loader-logo/ds-loader-logo.cjs +1 -1
- package/dist/cjs/components/ds-logo/ds-logo.cjs +3 -3
- package/dist/cjs/components/ds-map-pin/styles/common.styles.cjs +1 -1
- package/dist/cjs/components/ds-navigation-controls/styles/common.styles.cjs +1 -1
- package/dist/cjs/components/ds-radio/ds-radio.cjs +3 -3
- package/dist/cjs/components/ds-search/ds-search.cjs +4 -4
- package/dist/cjs/components/ds-skeleton/styles/common.styles.cjs +2 -2
- package/dist/cjs/components/ds-slider/ds-slider.cjs +6 -6
- package/dist/cjs/components/ds-slider/styles/common.styles.cjs +10 -9
- package/dist/cjs/components/ds-static-box/ds-static-box.cjs +5 -5
- package/dist/cjs/components/ds-table/ds-table.cjs +1 -1
- package/dist/cjs/components/ds-table/styles/common.styles.cjs +2 -2
- package/dist/cjs/components/ds-table-cell/styles/common.styles.cjs +2 -2
- package/dist/cjs/components/ds-table-row/styles/common.styles.cjs +2 -2
- package/dist/cjs/components/ds-tag/styles/common.styles.cjs +3 -3
- package/dist/cjs/components/ds-text/ds-text.cjs +1 -1
- package/dist/cjs/components/ds-theme-provider/ds-theme-provider.cjs +1 -1
- package/dist/cjs/components/ds-toast/ds-toast.cjs +2 -2
- package/dist/cjs/components/ds-toggle-switch/ds-toggle-switch.cjs +3 -3
- package/dist/cjs/components/ds-tooltip/ds-tooltip.cjs +7 -7
- package/dist/cjs/components/ds-tooltip/styles/common.styles.cjs +2 -2
- package/dist/cjs/decorators/customUiKitElement.cjs +1 -1
- package/dist/cjs/utils/IconsManager.cjs +1 -1
- package/dist/cjs/utils/PubSub.cjs +1 -1
- package/dist/cjs/utils/StylesRegistry/StylesRegistry.cjs +1 -1
- package/dist/cjs/utils/componentFactory.cjs +0 -4
- package/dist/cjs/utils/version.cjs +1 -1
- package/dist/esm/components/base/ds-base-input/ds-base-input.js +17 -18
- package/dist/esm/components/base/ds-base-progress-bar/ds-base-progress-bar.js +16 -17
- package/dist/esm/components/ds-accordion/ds-accordion.js +9 -10
- package/dist/esm/components/ds-avatar/ds-avatar.js +9 -10
- package/dist/esm/components/ds-badge/styles/common.styles.js +2 -1
- package/dist/esm/components/ds-bullets/ds-bullets.js +10 -11
- package/dist/esm/components/ds-button/ds-button.js +39 -50
- package/dist/esm/components/ds-button/styles/common.styles.js +2 -2
- package/dist/esm/components/ds-checkbox/ds-checkbox.js +24 -25
- package/dist/esm/components/ds-chip/ds-chip.js +12 -13
- package/dist/esm/components/ds-dialog-body/ds-dialog-body.js +7 -8
- package/dist/esm/components/ds-dialog-header/ds-dialog-header.js +9 -10
- package/dist/esm/components/ds-divider/ds-divider.js +9 -10
- package/dist/esm/components/ds-drawer/styles/common.styles.js +4 -3
- package/dist/esm/components/ds-hyperlink/ds-hyperlink.js +14 -15
- package/dist/esm/components/ds-icon/ds-icon.js +15 -15
- package/dist/esm/components/ds-icon-button/ds-icon-button.js +27 -28
- package/dist/esm/components/ds-link-button/ds-link-button.js +18 -19
- package/dist/esm/components/ds-list/styles/common.styles.js +2 -1
- package/dist/esm/components/ds-list-item/styles/common.styles.js +2 -1
- package/dist/esm/components/ds-loader-dots/ds-loader-dots.js +8 -9
- package/dist/esm/components/ds-loader-dots/styles/common.styles.js +17 -8
- package/dist/esm/components/ds-loader-logo/ds-loader-logo.js +1 -1
- package/dist/esm/components/ds-logo/ds-logo.js +10 -11
- package/dist/esm/components/ds-map-pin/styles/common.styles.js +1 -1
- package/dist/esm/components/ds-navigation-controls/styles/common.styles.js +1 -1
- package/dist/esm/components/ds-radio/ds-radio.js +12 -13
- package/dist/esm/components/ds-search/ds-search.js +16 -17
- package/dist/esm/components/ds-skeleton/styles/common.styles.js +2 -1
- package/dist/esm/components/ds-slider/ds-slider.js +51 -52
- package/dist/esm/components/ds-slider/styles/common.styles.js +10 -10
- package/dist/esm/components/ds-static-box/ds-static-box.js +15 -16
- package/dist/esm/components/ds-table/ds-table.js +1 -1
- package/dist/esm/components/ds-table/styles/common.styles.js +2 -1
- package/dist/esm/components/ds-table-cell/styles/common.styles.js +2 -1
- package/dist/esm/components/ds-table-row/styles/common.styles.js +2 -1
- package/dist/esm/components/ds-tag/styles/common.styles.js +3 -2
- package/dist/esm/components/ds-text/ds-text.js +1 -1
- package/dist/esm/components/ds-theme-provider/ds-theme-provider.js +1 -1
- package/dist/esm/components/ds-toast/ds-toast.js +6 -6
- package/dist/esm/components/ds-toggle-switch/ds-toggle-switch.js +11 -12
- package/dist/esm/components/ds-tooltip/ds-tooltip.js +24 -25
- package/dist/esm/components/ds-tooltip/styles/common.styles.js +2 -2
- package/dist/esm/decorators/customUiKitElement.js +1 -1
- package/dist/esm/utils/IconsManager.js +1 -1
- package/dist/esm/utils/PubSub.js +1 -1
- package/dist/esm/utils/StylesRegistry/StylesRegistry.js +1 -1
- package/dist/esm/utils/componentFactory.js +0 -4
- package/dist/esm/utils/version.js +1 -1
- package/dist/types/components/base/ds-base-input/ds-base-input.d.ts +1 -1
- package/dist/types/components/base/ds-base-progress-bar/ds-base-progress-bar.d.ts +1 -1
- package/dist/types/components/ds-accordion/ds-accordion.d.ts +1 -1
- package/dist/types/components/ds-avatar/ds-avatar.d.ts +1 -1
- package/dist/types/components/ds-badge/ds-badge.d.ts +1 -1
- package/dist/types/components/ds-bullets/ds-bullets.d.ts +2 -2
- package/dist/types/components/ds-button/ds-button.d.ts +3 -7
- package/dist/types/components/ds-button/ds-button.types.d.ts +0 -2
- package/dist/types/components/ds-carousel-indicator/ds-carousel-indicator.d.ts +1 -1
- package/dist/types/components/ds-checkbox/ds-checkbox.d.ts +1 -1
- package/dist/types/components/ds-chip/ds-chip.d.ts +1 -1
- package/dist/types/components/ds-currency/ds-currency.d.ts +2 -2
- package/dist/types/components/ds-dialog/ds-dialog.d.ts +1 -1
- package/dist/types/components/ds-dialog-body/ds-dialog-body.d.ts +1 -1
- package/dist/types/components/ds-dialog-fullscreen/ds-dialog-fullscreen.d.ts +1 -1
- package/dist/types/components/ds-dialog-header/ds-dialog-header.d.ts +1 -1
- package/dist/types/components/ds-divider/ds-divider.d.ts +1 -1
- package/dist/types/components/ds-hyperlink/ds-hyperlink.d.ts +1 -1
- package/dist/types/components/ds-icon/ds-icon.d.ts +1 -1
- package/dist/types/components/ds-inline-alert/ds-inline-alert.d.ts +1 -1
- package/dist/types/components/ds-input/ds-input.d.ts +1 -1
- package/dist/types/components/ds-link-button/ds-link-button.d.ts +1 -1
- package/dist/types/components/ds-loader-bar/ds-loader-bar.d.ts +1 -1
- package/dist/types/components/ds-loader-dots/ds-loader-dots.d.ts +2 -2
- package/dist/types/components/ds-loader-logo/ds-loader-logo.d.ts +1 -1
- package/dist/types/components/ds-loader-spinner/ds-loader-spinner.d.ts +1 -1
- package/dist/types/components/ds-logo/ds-logo.d.ts +1 -1
- package/dist/types/components/ds-map-pin/ds-map-pin.d.ts +1 -1
- package/dist/types/components/ds-picker-item/ds-picker-item.d.ts +1 -1
- package/dist/types/components/ds-progress-bar/ds-progress-bar.d.ts +1 -1
- package/dist/types/components/ds-radio/ds-radio.d.ts +1 -1
- package/dist/types/components/ds-search/ds-search.d.ts +3 -3
- package/dist/types/components/ds-search-input/ds-search-input.d.ts +5 -5
- package/dist/types/components/ds-slider/ds-slider.d.ts +1 -1
- package/dist/types/components/ds-static-box/ds-static-box.d.ts +1 -1
- package/dist/types/components/ds-stepper/ds-stepper.d.ts +1 -1
- package/dist/types/components/ds-table/ds-table.d.ts +1 -1
- package/dist/types/components/ds-tag/ds-tag.d.ts +1 -1
- package/dist/types/components/ds-text-input/ds-text-input.d.ts +5 -5
- package/dist/types/components/ds-textarea/ds-textarea.d.ts +5 -5
- package/dist/types/components/ds-theme-provider/ds-theme-provider.d.ts +1 -1
- package/dist/types/components/ds-toast-message/ds-toast-message.d.ts +1 -1
- package/dist/types/components/ds-toggle-switch/ds-toggle-switch.d.ts +1 -1
- package/dist/types/components/ds-tooltip/ds-tooltip.d.ts +1 -1
- package/dist-react/cjs/components/base/ds-base-input/ds-base-input.cjs +3 -3
- package/dist-react/cjs/components/base/ds-base-progress-bar/ds-base-progress-bar.cjs +3 -3
- package/dist-react/cjs/components/ds-accordion/ds-accordion.cjs +4 -4
- package/dist-react/cjs/components/ds-avatar/ds-avatar.cjs +3 -3
- package/dist-react/cjs/components/ds-badge/styles/common.styles.cjs +2 -2
- package/dist-react/cjs/components/ds-bullets/ds-bullets.cjs +5 -5
- package/dist-react/cjs/components/ds-button/ds-button.cjs +13 -13
- package/dist-react/cjs/components/ds-button/styles/common.styles.cjs +2 -2
- package/dist-react/cjs/components/ds-checkbox/ds-checkbox.cjs +3 -3
- package/dist-react/cjs/components/ds-chip/ds-chip.cjs +3 -3
- package/dist-react/cjs/components/ds-dialog-body/ds-dialog-body.cjs +3 -3
- package/dist-react/cjs/components/ds-dialog-header/ds-dialog-header.cjs +3 -3
- package/dist-react/cjs/components/ds-divider/ds-divider.cjs +3 -3
- package/dist-react/cjs/components/ds-drawer/styles/common.styles.cjs +4 -4
- package/dist-react/cjs/components/ds-hyperlink/ds-hyperlink.cjs +5 -5
- package/dist-react/cjs/components/ds-icon/ds-icon.cjs +8 -8
- package/dist-react/cjs/components/ds-icon-button/ds-icon-button.cjs +6 -6
- package/dist-react/cjs/components/ds-link-button/ds-link-button.cjs +5 -5
- package/dist-react/cjs/components/ds-list/styles/common.styles.cjs +2 -2
- package/dist-react/cjs/components/ds-list-item/styles/common.styles.cjs +2 -2
- package/dist-react/cjs/components/ds-loader-dots/ds-loader-dots.cjs +3 -3
- package/dist-react/cjs/components/ds-loader-dots/styles/common.styles.cjs +17 -9
- package/dist-react/cjs/components/ds-loader-logo/ds-loader-logo.cjs +1 -1
- package/dist-react/cjs/components/ds-logo/ds-logo.cjs +3 -3
- package/dist-react/cjs/components/ds-map-pin/styles/common.styles.cjs +1 -1
- package/dist-react/cjs/components/ds-navigation-controls/styles/common.styles.cjs +1 -1
- package/dist-react/cjs/components/ds-radio/ds-radio.cjs +3 -3
- package/dist-react/cjs/components/ds-search/ds-search.cjs +4 -4
- package/dist-react/cjs/components/ds-skeleton/styles/common.styles.cjs +2 -2
- package/dist-react/cjs/components/ds-slider/ds-slider.cjs +6 -6
- package/dist-react/cjs/components/ds-slider/styles/common.styles.cjs +10 -9
- package/dist-react/cjs/components/ds-static-box/ds-static-box.cjs +5 -5
- package/dist-react/cjs/components/ds-table/ds-table.cjs +1 -1
- package/dist-react/cjs/components/ds-table/styles/common.styles.cjs +2 -2
- package/dist-react/cjs/components/ds-table-cell/styles/common.styles.cjs +2 -2
- package/dist-react/cjs/components/ds-table-row/styles/common.styles.cjs +2 -2
- package/dist-react/cjs/components/ds-tag/styles/common.styles.cjs +3 -3
- package/dist-react/cjs/components/ds-text/ds-text.cjs +1 -1
- package/dist-react/cjs/components/ds-theme-provider/ds-theme-provider.cjs +1 -1
- package/dist-react/cjs/components/ds-toast/ds-toast.cjs +2 -2
- package/dist-react/cjs/components/ds-toggle-switch/ds-toggle-switch.cjs +3 -3
- package/dist-react/cjs/components/ds-tooltip/ds-tooltip.cjs +7 -7
- package/dist-react/cjs/components/ds-tooltip/styles/common.styles.cjs +2 -2
- package/dist-react/cjs/decorators/customUiKitElement.cjs +1 -1
- package/dist-react/cjs/utils/IconsManager.cjs +1 -1
- package/dist-react/cjs/utils/PubSub.cjs +1 -1
- package/dist-react/cjs/utils/StylesRegistry/StylesRegistry.cjs +1 -1
- package/dist-react/cjs/utils/componentFactory.cjs +0 -2
- package/dist-react/cjs/utils/version.cjs +1 -1
- package/dist-react/esm/components/base/ds-base-input/ds-base-input.js +17 -18
- package/dist-react/esm/components/base/ds-base-progress-bar/ds-base-progress-bar.js +16 -17
- package/dist-react/esm/components/ds-accordion/ds-accordion.js +9 -10
- package/dist-react/esm/components/ds-avatar/ds-avatar.js +9 -10
- package/dist-react/esm/components/ds-badge/styles/common.styles.js +2 -1
- package/dist-react/esm/components/ds-bullets/ds-bullets.js +10 -11
- package/dist-react/esm/components/ds-button/ds-button.js +39 -50
- package/dist-react/esm/components/ds-button/styles/common.styles.js +2 -2
- package/dist-react/esm/components/ds-checkbox/ds-checkbox.js +24 -25
- package/dist-react/esm/components/ds-chip/ds-chip.js +12 -13
- package/dist-react/esm/components/ds-dialog-body/ds-dialog-body.js +7 -8
- package/dist-react/esm/components/ds-dialog-header/ds-dialog-header.js +9 -10
- package/dist-react/esm/components/ds-divider/ds-divider.js +9 -10
- package/dist-react/esm/components/ds-drawer/styles/common.styles.js +4 -3
- package/dist-react/esm/components/ds-hyperlink/ds-hyperlink.js +14 -15
- package/dist-react/esm/components/ds-icon/ds-icon.js +15 -15
- package/dist-react/esm/components/ds-icon-button/ds-icon-button.js +27 -28
- package/dist-react/esm/components/ds-link-button/ds-link-button.js +18 -19
- package/dist-react/esm/components/ds-list/styles/common.styles.js +2 -1
- package/dist-react/esm/components/ds-list-item/styles/common.styles.js +2 -1
- package/dist-react/esm/components/ds-loader-dots/ds-loader-dots.js +8 -9
- package/dist-react/esm/components/ds-loader-dots/styles/common.styles.js +17 -8
- package/dist-react/esm/components/ds-loader-logo/ds-loader-logo.js +1 -1
- package/dist-react/esm/components/ds-logo/ds-logo.js +10 -11
- package/dist-react/esm/components/ds-map-pin/styles/common.styles.js +1 -1
- package/dist-react/esm/components/ds-navigation-controls/styles/common.styles.js +1 -1
- package/dist-react/esm/components/ds-radio/ds-radio.js +12 -13
- package/dist-react/esm/components/ds-search/ds-search.js +16 -17
- package/dist-react/esm/components/ds-skeleton/styles/common.styles.js +2 -1
- package/dist-react/esm/components/ds-slider/ds-slider.js +51 -52
- package/dist-react/esm/components/ds-slider/styles/common.styles.js +10 -10
- package/dist-react/esm/components/ds-static-box/ds-static-box.js +15 -16
- package/dist-react/esm/components/ds-table/ds-table.js +1 -1
- package/dist-react/esm/components/ds-table/styles/common.styles.js +2 -1
- package/dist-react/esm/components/ds-table-cell/styles/common.styles.js +2 -1
- package/dist-react/esm/components/ds-table-row/styles/common.styles.js +2 -1
- package/dist-react/esm/components/ds-tag/styles/common.styles.js +3 -2
- package/dist-react/esm/components/ds-text/ds-text.js +1 -1
- package/dist-react/esm/components/ds-theme-provider/ds-theme-provider.js +1 -1
- package/dist-react/esm/components/ds-toast/ds-toast.js +6 -6
- package/dist-react/esm/components/ds-toggle-switch/ds-toggle-switch.js +11 -12
- package/dist-react/esm/components/ds-tooltip/ds-tooltip.js +24 -25
- package/dist-react/esm/components/ds-tooltip/styles/common.styles.js +2 -2
- package/dist-react/esm/decorators/customUiKitElement.js +1 -1
- package/dist-react/esm/utils/IconsManager.js +1 -1
- package/dist-react/esm/utils/PubSub.js +1 -1
- package/dist-react/esm/utils/StylesRegistry/StylesRegistry.js +1 -1
- package/dist-react/esm/utils/componentFactory.js +0 -2
- package/dist-react/esm/utils/version.js +1 -1
- package/dist-react/types/components/base/ds-base-input/ds-base-input.d.ts +1 -1
- package/dist-react/types/components/base/ds-base-progress-bar/ds-base-progress-bar.d.ts +1 -1
- package/dist-react/types/components/ds-accordion/ds-accordion.d.ts +1 -1
- package/dist-react/types/components/ds-avatar/ds-avatar.d.ts +1 -1
- package/dist-react/types/components/ds-badge/ds-badge.d.ts +1 -1
- package/dist-react/types/components/ds-bullets/ds-bullets.d.ts +2 -2
- package/dist-react/types/components/ds-button/ds-button.d.ts +3 -7
- package/dist-react/types/components/ds-button/ds-button.types.d.ts +0 -2
- package/dist-react/types/components/ds-carousel-indicator/ds-carousel-indicator.d.ts +1 -1
- package/dist-react/types/components/ds-checkbox/ds-checkbox.d.ts +1 -1
- package/dist-react/types/components/ds-chip/ds-chip.d.ts +1 -1
- package/dist-react/types/components/ds-currency/ds-currency.d.ts +2 -2
- package/dist-react/types/components/ds-dialog/ds-dialog.d.ts +1 -1
- package/dist-react/types/components/ds-dialog-body/ds-dialog-body.d.ts +1 -1
- package/dist-react/types/components/ds-dialog-fullscreen/ds-dialog-fullscreen.d.ts +1 -1
- package/dist-react/types/components/ds-dialog-header/ds-dialog-header.d.ts +1 -1
- package/dist-react/types/components/ds-divider/ds-divider.d.ts +1 -1
- package/dist-react/types/components/ds-hyperlink/ds-hyperlink.d.ts +1 -1
- package/dist-react/types/components/ds-icon/ds-icon.d.ts +1 -1
- package/dist-react/types/components/ds-inline-alert/ds-inline-alert.d.ts +1 -1
- package/dist-react/types/components/ds-input/ds-input.d.ts +1 -1
- package/dist-react/types/components/ds-link-button/ds-link-button.d.ts +1 -1
- package/dist-react/types/components/ds-loader-bar/ds-loader-bar.d.ts +1 -1
- package/dist-react/types/components/ds-loader-dots/ds-loader-dots.d.ts +2 -2
- package/dist-react/types/components/ds-loader-logo/ds-loader-logo.d.ts +1 -1
- package/dist-react/types/components/ds-loader-spinner/ds-loader-spinner.d.ts +1 -1
- package/dist-react/types/components/ds-logo/ds-logo.d.ts +1 -1
- package/dist-react/types/components/ds-map-pin/ds-map-pin.d.ts +1 -1
- package/dist-react/types/components/ds-picker-item/ds-picker-item.d.ts +1 -1
- package/dist-react/types/components/ds-progress-bar/ds-progress-bar.d.ts +1 -1
- package/dist-react/types/components/ds-radio/ds-radio.d.ts +1 -1
- package/dist-react/types/components/ds-search/ds-search.d.ts +3 -3
- package/dist-react/types/components/ds-search-input/ds-search-input.d.ts +5 -5
- package/dist-react/types/components/ds-slider/ds-slider.d.ts +1 -1
- package/dist-react/types/components/ds-static-box/ds-static-box.d.ts +1 -1
- package/dist-react/types/components/ds-stepper/ds-stepper.d.ts +1 -1
- package/dist-react/types/components/ds-table/ds-table.d.ts +1 -1
- package/dist-react/types/components/ds-tag/ds-tag.d.ts +1 -1
- package/dist-react/types/components/ds-text-input/ds-text-input.d.ts +5 -5
- package/dist-react/types/components/ds-textarea/ds-textarea.d.ts +5 -5
- package/dist-react/types/components/ds-theme-provider/ds-theme-provider.d.ts +1 -1
- package/dist-react/types/components/ds-toast-message/ds-toast-message.d.ts +1 -1
- package/dist-react/types/components/ds-toggle-switch/ds-toggle-switch.d.ts +1 -1
- package/dist-react/types/components/ds-tooltip/ds-tooltip.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/utils/cssWithTokens.cjs +0 -1
- package/dist/cjs/utils/htmlWithTokens.cjs +0 -1
- package/dist/esm/utils/cssWithTokens.js +0 -8
- package/dist/esm/utils/htmlWithTokens.js +0 -10
- package/dist-react/cjs/utils/cssWithTokens.cjs +0 -1
- package/dist-react/cjs/utils/htmlWithTokens.cjs +0 -1
- package/dist-react/esm/utils/cssWithTokens.js +0 -8
- package/dist-react/esm/utils/htmlWithTokens.js +0 -10
- package/dist-react/types/utils/cssWithTokens.d.ts +0 -2
- package/dist-react/types/utils/htmlWithTokens.d.ts +0 -2
|
@@ -8,13 +8,12 @@ import { __decorate as a } from "../../_virtual/_@oxc-project_runtime@0.122.0/he
|
|
|
8
8
|
import { UiKitElement as o } from "../base/UiKitElement.js";
|
|
9
9
|
import { customUiKitElement as s } from "../../decorators/customUiKitElement.js";
|
|
10
10
|
import { booleanConverter as c } from "../../utils/booleanConverter.js";
|
|
11
|
-
import {
|
|
12
|
-
import { e as u } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
11
|
+
import { e as l } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
13
12
|
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/class-map.js";
|
|
14
|
-
import { FormAssociatedMixin as
|
|
15
|
-
import { commonStyles as
|
|
13
|
+
import { FormAssociatedMixin as u } from "../../mixins/FormAssociatedMixin.js";
|
|
14
|
+
import { commonStyles as d, containerStyles as f, helperTextStyles as p, inputContainerStyles as m, inputFieldStyles as h } from "./styles/common.styles.js";
|
|
16
15
|
//#region src/components/ds-search/ds-search.ts
|
|
17
|
-
var
|
|
16
|
+
var g = class extends u(o) {
|
|
18
17
|
constructor(...e) {
|
|
19
18
|
super(...e), this.initialValue = "", this.label = "", this.helperText = "", this.errorText = "", this.disabled = !1, this.success = !1, this.mode = "light", this.size = "large", this.name = "", this.placeholder = "", this.type = "text", this.focused = !1, this.handleFocus = () => {
|
|
20
19
|
this.focused = !0;
|
|
@@ -43,11 +42,11 @@ var _ = class extends d(o) {
|
|
|
43
42
|
}
|
|
44
43
|
static {
|
|
45
44
|
this.styles = [
|
|
45
|
+
d,
|
|
46
46
|
f,
|
|
47
47
|
p,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
h
|
|
48
|
+
h,
|
|
49
|
+
m
|
|
51
50
|
];
|
|
52
51
|
}
|
|
53
52
|
firstUpdated() {
|
|
@@ -125,7 +124,7 @@ var _ = class extends d(o) {
|
|
|
125
124
|
return this.errorText ? t`<div class="error-text">${this.errorText}</div>` : e;
|
|
126
125
|
}
|
|
127
126
|
get styleTokens() {
|
|
128
|
-
return
|
|
127
|
+
return t`
|
|
129
128
|
<style>
|
|
130
129
|
:host{
|
|
131
130
|
color-scheme: ${this.mode};
|
|
@@ -140,7 +139,7 @@ var _ = class extends d(o) {
|
|
|
140
139
|
render() {
|
|
141
140
|
return t`
|
|
142
141
|
${this.styleTokens}
|
|
143
|
-
<div class=${
|
|
142
|
+
<div class=${l(this.classes)}>
|
|
144
143
|
<div class="input-container">
|
|
145
144
|
${this.searchIconTemplate}
|
|
146
145
|
${this.inputTemplate}
|
|
@@ -156,23 +155,23 @@ a([n({
|
|
|
156
155
|
type: String,
|
|
157
156
|
reflect: !0,
|
|
158
157
|
attribute: "initial-value"
|
|
159
|
-
})],
|
|
158
|
+
})], g.prototype, "initialValue", void 0), a([n({ type: String })], g.prototype, "label", void 0), a([n({
|
|
160
159
|
type: String,
|
|
161
160
|
attribute: "helper-text"
|
|
162
|
-
})],
|
|
161
|
+
})], g.prototype, "helperText", void 0), a([n({
|
|
163
162
|
type: String,
|
|
164
163
|
attribute: "error-text"
|
|
165
|
-
})],
|
|
164
|
+
})], g.prototype, "errorText", void 0), a([n({
|
|
166
165
|
type: Boolean,
|
|
167
166
|
converter: c
|
|
168
|
-
})],
|
|
167
|
+
})], g.prototype, "disabled", void 0), a([n({
|
|
169
168
|
type: Boolean,
|
|
170
169
|
converter: c
|
|
171
|
-
})],
|
|
170
|
+
})], g.prototype, "success", void 0), a([n({
|
|
172
171
|
type: String,
|
|
173
172
|
reflect: !0
|
|
174
|
-
})],
|
|
173
|
+
})], g.prototype, "mode", void 0), a([n({ type: String })], g.prototype, "size", void 0), a([n({ type: String })], g.prototype, "name", void 0), a([n({ type: String })], g.prototype, "placeholder", void 0), a([n({
|
|
175
174
|
type: String,
|
|
176
175
|
attribute: "max-length"
|
|
177
|
-
})],
|
|
176
|
+
})], g.prototype, "maxLength", void 0), a([n({ type: String })], g.prototype, "type", void 0), a([r()], g.prototype, "_value", void 0), a([r()], g.prototype, "focused", void 0), a([i(".input-field")], g.prototype, "inputField", void 0), g = a([s("ds-search")], g);
|
|
178
177
|
//#endregion
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as e } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
2
|
+
import "../../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.js";
|
|
2
3
|
//#region src/components/ds-skeleton/styles/common.styles.ts
|
|
3
4
|
var t = e`
|
|
4
5
|
:host {
|
|
@@ -9,21 +9,20 @@ import { __decorate as a } from "../../_virtual/_@oxc-project_runtime@0.122.0/he
|
|
|
9
9
|
import { UiKitElement as o } from "../base/UiKitElement.js";
|
|
10
10
|
import { customUiKitElement as s } from "../../decorators/customUiKitElement.js";
|
|
11
11
|
import { booleanConverter as c } from "../../utils/booleanConverter.js";
|
|
12
|
-
import {
|
|
13
|
-
import { e as u } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
12
|
+
import { e as l } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
14
13
|
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/class-map.js";
|
|
15
|
-
import { ViewportMixin as
|
|
16
|
-
import { objectConverter as
|
|
17
|
-
import { formatNumber as
|
|
18
|
-
import { getStepValue as
|
|
19
|
-
import { roundToDecimals as
|
|
20
|
-
import { l as
|
|
14
|
+
import { ViewportMixin as u } from "../../mixins/ViewportMixin.js";
|
|
15
|
+
import { objectConverter as d } from "../../utils/objectConverter.js";
|
|
16
|
+
import { formatNumber as f } from "../../utils/formatNumber/formatNumber.js";
|
|
17
|
+
import { getStepValue as p } from "./utils/getStepValue/getStepValue.js";
|
|
18
|
+
import { roundToDecimals as m } from "./utils/roundToDecimals/roundToDecimals.js";
|
|
19
|
+
import { l as h } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/live.js";
|
|
21
20
|
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/live.js";
|
|
22
|
-
import { commonStyles as
|
|
21
|
+
import { commonStyles as g, currentValueStyles as _, rangeValueStyles as v, thumbStyles as y, trackStyles as b } from "./styles/common.styles.js";
|
|
23
22
|
//#region src/components/ds-slider/ds-slider.ts
|
|
24
|
-
var
|
|
23
|
+
var x, S = class extends u(o) {
|
|
25
24
|
static {
|
|
26
|
-
|
|
25
|
+
x = this;
|
|
27
26
|
}
|
|
28
27
|
constructor(...e) {
|
|
29
28
|
super(...e), this.min = 0, this.max = 100, this.minLabel = "", this.maxLabel = "", this.step = 1, this.initialValueMin = 0, this.mode = "light", this.locale = void 0, this.localeMatcher = "lookup", this.useGrouping = !0, this.minimumIntegerDigits = 1, this.minimumFractionDigits = 0, this.maximumFractionDigits = 3, this.size = "medium", this.disabled = !1, this.keyboardMode = !1, this._initialValuesApplied = !1, this.getNewValue = (e) => {
|
|
@@ -85,11 +84,11 @@ var S, C = class extends d(o) {
|
|
|
85
84
|
}
|
|
86
85
|
static {
|
|
87
86
|
this.styles = [
|
|
88
|
-
|
|
89
|
-
x,
|
|
87
|
+
g,
|
|
90
88
|
b,
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
y,
|
|
90
|
+
_,
|
|
91
|
+
v
|
|
93
92
|
];
|
|
94
93
|
}
|
|
95
94
|
get isRange() {
|
|
@@ -108,7 +107,7 @@ var S, C = class extends d(o) {
|
|
|
108
107
|
};
|
|
109
108
|
}
|
|
110
109
|
computeStep({ proposedValue: e, role: t }) {
|
|
111
|
-
return
|
|
110
|
+
return p({
|
|
112
111
|
step: this.step,
|
|
113
112
|
min: this.min,
|
|
114
113
|
max: this.max,
|
|
@@ -150,17 +149,17 @@ var S, C = class extends d(o) {
|
|
|
150
149
|
return e ? e.offsetWidth / 2 : 0;
|
|
151
150
|
}
|
|
152
151
|
static {
|
|
153
|
-
this.THUMB_RADIUS_CSS_VAR = "var(--ui-kit-slider-thumb-radius, 0px)";
|
|
152
|
+
this.THUMB_RADIUS_CSS_VAR = "var(--ui-kit-private-slider-thumb-radius, 0px)";
|
|
154
153
|
}
|
|
155
154
|
trackPosition(e) {
|
|
156
|
-
let t =
|
|
155
|
+
let t = x.THUMB_RADIUS_CSS_VAR;
|
|
157
156
|
return `calc(${t} + (100% - ${t} * 2) * ${e / 100})`;
|
|
158
157
|
}
|
|
159
158
|
trackWidth(e) {
|
|
160
|
-
return `calc((100% - ${
|
|
159
|
+
return `calc((100% - ${x.THUMB_RADIUS_CSS_VAR} * 2) * ${e / 100})`;
|
|
161
160
|
}
|
|
162
161
|
handleChange({ value: e, role: t }) {
|
|
163
|
-
let n =
|
|
162
|
+
let n = m({
|
|
164
163
|
value: e,
|
|
165
164
|
fractionDigits: this.maximumFractionDigits
|
|
166
165
|
}), r = t === "min" ? "_valueMin" : "_valueMax";
|
|
@@ -174,7 +173,7 @@ var S, C = class extends d(o) {
|
|
|
174
173
|
})));
|
|
175
174
|
}
|
|
176
175
|
formatNumber(e) {
|
|
177
|
-
return
|
|
176
|
+
return f({
|
|
178
177
|
value: e,
|
|
179
178
|
locale: this.locale,
|
|
180
179
|
...this.unitStyle && { style: this.unitStyle },
|
|
@@ -261,18 +260,18 @@ var S, C = class extends d(o) {
|
|
|
261
260
|
`;
|
|
262
261
|
}
|
|
263
262
|
getInputTemplate(e) {
|
|
264
|
-
let n = this.getRoleById(e), r = this.editingField === n, i = n === "min" ? this._valueMin : this._valueMax, { formattedValue: a, unitSymbol: o, unitSymbolPosition: s } = this.formatNumber(i), c = this.unitSymbolPosition ?? s, l = this.unitSymbol ?? o, u = l ? c === "left" ? `${l} ${a}` : `${a} ${l}` : `${a}`, d = r ? "number" : "text", f = r ? String(i ?? "") : u, p = e === 1 ? this.inputMinAriaLabel : this.inputMaxAriaLabel, m = this.isRange ? e === 1 ? "Start value" : "End value" : "Value",
|
|
263
|
+
let n = this.getRoleById(e), r = this.editingField === n, i = n === "min" ? this._valueMin : this._valueMax, { formattedValue: a, unitSymbol: o, unitSymbolPosition: s } = this.formatNumber(i), c = this.unitSymbolPosition ?? s, l = this.unitSymbol ?? o, u = l ? c === "left" ? `${l} ${a}` : `${a} ${l}` : `${a}`, d = r ? "number" : "text", f = r ? String(i ?? "") : u, p = e === 1 ? this.inputMinAriaLabel : this.inputMaxAriaLabel, m = this.isRange ? e === 1 ? "Start value" : "End value" : "Value", g = p ?? m;
|
|
265
264
|
return t`
|
|
266
265
|
<div class="input-wrapper">
|
|
267
266
|
<input
|
|
268
267
|
class="input-value input-value-${e}"
|
|
269
268
|
type=${d}
|
|
270
|
-
.value=${
|
|
269
|
+
.value=${h(f)}
|
|
271
270
|
step=${String(this.step ?? 1)}
|
|
272
271
|
?disabled=${this.disabled}
|
|
273
272
|
tabindex=${this.disabled ? -1 : 0}
|
|
274
273
|
aria-disabled=${String(!!this.disabled)}
|
|
275
|
-
aria-label=${
|
|
274
|
+
aria-label=${g}
|
|
276
275
|
?readonly=${this.disabled}
|
|
277
276
|
@focus=${(t) => this.onInputFocus(t, e)}
|
|
278
277
|
@blur=${this.onInputBlur}
|
|
@@ -301,7 +300,7 @@ var S, C = class extends d(o) {
|
|
|
301
300
|
};
|
|
302
301
|
}
|
|
303
302
|
get styleTokens() {
|
|
304
|
-
return
|
|
303
|
+
return t`
|
|
305
304
|
<style>
|
|
306
305
|
:host{
|
|
307
306
|
color-scheme: ${this.mode};
|
|
@@ -312,7 +311,7 @@ var S, C = class extends d(o) {
|
|
|
312
311
|
render() {
|
|
313
312
|
return t`
|
|
314
313
|
${this.styleTokens}
|
|
315
|
-
<div class=${
|
|
314
|
+
<div class=${l(this.containerClasses)}>
|
|
316
315
|
<div @touchstart=${this.handleMouseDown} @mousedown=${this.handleMouseDown} class="track" role="presentation">
|
|
317
316
|
${this.thumbTemplates}
|
|
318
317
|
${this.trackRangeTemplate}
|
|
@@ -323,78 +322,78 @@ var S, C = class extends d(o) {
|
|
|
323
322
|
`;
|
|
324
323
|
}
|
|
325
324
|
};
|
|
326
|
-
a([n({ type: Number })],
|
|
325
|
+
a([n({ type: Number })], S.prototype, "min", void 0), a([n({ type: Number })], S.prototype, "max", void 0), a([n({
|
|
327
326
|
type: String,
|
|
328
327
|
attribute: "min-label"
|
|
329
|
-
})],
|
|
328
|
+
})], S.prototype, "minLabel", void 0), a([n({
|
|
330
329
|
type: String,
|
|
331
330
|
attribute: "max-label"
|
|
332
|
-
})],
|
|
331
|
+
})], S.prototype, "maxLabel", void 0), a([n({ type: Number })], S.prototype, "step", void 0), a([n({
|
|
333
332
|
type: Number,
|
|
334
333
|
attribute: "initial-value-min"
|
|
335
|
-
})],
|
|
334
|
+
})], S.prototype, "initialValueMin", void 0), a([n({
|
|
336
335
|
type: Number,
|
|
337
336
|
attribute: "initial-value-max"
|
|
338
|
-
})],
|
|
337
|
+
})], S.prototype, "initialValueMax", void 0), a([n({
|
|
339
338
|
type: Number,
|
|
340
339
|
attribute: "value-min"
|
|
341
|
-
})],
|
|
340
|
+
})], S.prototype, "valueMin", void 0), a([n({
|
|
342
341
|
type: Number,
|
|
343
342
|
attribute: "value-max"
|
|
344
|
-
})],
|
|
343
|
+
})], S.prototype, "valueMax", void 0), a([n({
|
|
345
344
|
type: String,
|
|
346
345
|
reflect: !0
|
|
347
|
-
})],
|
|
346
|
+
})], S.prototype, "mode", void 0), a([n({
|
|
348
347
|
type: String,
|
|
349
348
|
attribute: "locale"
|
|
350
|
-
})],
|
|
349
|
+
})], S.prototype, "locale", void 0), a([n({
|
|
351
350
|
type: String,
|
|
352
351
|
attribute: "locale-matcher"
|
|
353
|
-
})],
|
|
352
|
+
})], S.prototype, "localeMatcher", void 0), a([n({
|
|
354
353
|
type: String,
|
|
355
354
|
attribute: "unit-symbol"
|
|
356
|
-
})],
|
|
355
|
+
})], S.prototype, "unitSymbol", void 0), a([n({
|
|
357
356
|
type: String,
|
|
358
357
|
attribute: "unit-symbol-position"
|
|
359
|
-
})],
|
|
358
|
+
})], S.prototype, "unitSymbolPosition", void 0), a([n({
|
|
360
359
|
type: String,
|
|
361
360
|
attribute: "unit-style"
|
|
362
|
-
})],
|
|
361
|
+
})], S.prototype, "unitStyle", void 0), a([n({
|
|
363
362
|
type: String,
|
|
364
363
|
attribute: "currency"
|
|
365
|
-
})],
|
|
364
|
+
})], S.prototype, "currency", void 0), a([n({
|
|
366
365
|
type: String,
|
|
367
366
|
attribute: "unit"
|
|
368
|
-
})],
|
|
367
|
+
})], S.prototype, "unit", void 0), a([n({
|
|
369
368
|
type: String,
|
|
370
369
|
attribute: "use-grouping",
|
|
371
370
|
converter: (e) => e === "auto" ? "auto" : typeof e == "boolean" ? e : e === "true" || e === "" ? !0 : e !== "false"
|
|
372
|
-
})],
|
|
371
|
+
})], S.prototype, "useGrouping", void 0), a([n({
|
|
373
372
|
type: Number,
|
|
374
373
|
attribute: "minimum-integer-digits"
|
|
375
|
-
})],
|
|
374
|
+
})], S.prototype, "minimumIntegerDigits", void 0), a([n({
|
|
376
375
|
type: Number,
|
|
377
376
|
attribute: "minimum-fraction-digits"
|
|
378
|
-
})],
|
|
377
|
+
})], S.prototype, "minimumFractionDigits", void 0), a([n({
|
|
379
378
|
type: Number,
|
|
380
379
|
attribute: "maximum-fraction-digits"
|
|
381
|
-
})],
|
|
380
|
+
})], S.prototype, "maximumFractionDigits", void 0), a([n({
|
|
382
381
|
type: String,
|
|
383
382
|
attribute: "thousand-separator"
|
|
384
|
-
})],
|
|
383
|
+
})], S.prototype, "thousandSeparator", void 0), a([n({
|
|
385
384
|
type: String,
|
|
386
385
|
attribute: "fraction-separator"
|
|
387
|
-
})],
|
|
386
|
+
})], S.prototype, "fractionSeparator", void 0), a([n({
|
|
388
387
|
type: String,
|
|
389
|
-
converter:
|
|
390
|
-
})],
|
|
388
|
+
converter: d
|
|
389
|
+
})], S.prototype, "size", void 0), a([n({
|
|
391
390
|
type: Boolean,
|
|
392
391
|
converter: c
|
|
393
|
-
})],
|
|
392
|
+
})], S.prototype, "disabled", void 0), a([n({
|
|
394
393
|
type: String,
|
|
395
394
|
attribute: "input-min-aria-label"
|
|
396
|
-
})],
|
|
395
|
+
})], S.prototype, "inputMinAriaLabel", void 0), a([n({
|
|
397
396
|
type: String,
|
|
398
397
|
attribute: "input-max-aria-label"
|
|
399
|
-
})],
|
|
398
|
+
})], S.prototype, "inputMaxAriaLabel", void 0), a([i(".track")], S.prototype, "track", void 0), a([r()], S.prototype, "_valueMin", void 0), a([r()], S.prototype, "_valueMax", void 0), a([r()], S.prototype, "editingField", void 0), S = x = a([s("ds-slider")], S);
|
|
400
399
|
//#endregion
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import { i as e } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
2
2
|
import "../../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.js";
|
|
3
|
-
import { cssWithTokens as t } from "../../../utils/cssWithTokens.js";
|
|
4
3
|
//#region src/components/ds-slider/styles/common.styles.ts
|
|
5
|
-
var
|
|
4
|
+
var t = e`
|
|
6
5
|
:host {
|
|
7
6
|
display: block;
|
|
8
7
|
}
|
|
9
|
-
`,
|
|
8
|
+
`, n = e`
|
|
10
9
|
.current-value-container {
|
|
11
10
|
position: relative;
|
|
12
11
|
}
|
|
13
|
-
|
|
12
|
+
|
|
14
13
|
.current-value-text {
|
|
15
14
|
display: inline-flex;
|
|
16
15
|
position: absolute;
|
|
17
16
|
}
|
|
18
|
-
`,
|
|
17
|
+
`, r = e`
|
|
19
18
|
.range-value-container {
|
|
20
19
|
display: flex;
|
|
21
20
|
justify-content: space-between;
|
|
22
21
|
}
|
|
23
|
-
|
|
22
|
+
|
|
24
23
|
.range-value-text {
|
|
25
24
|
display: inline-flex;
|
|
26
25
|
}
|
|
@@ -28,7 +27,7 @@ var n = e`
|
|
|
28
27
|
.range-value-label:after {
|
|
29
28
|
content: ':';
|
|
30
29
|
}
|
|
31
|
-
`,
|
|
30
|
+
`, i = e`
|
|
32
31
|
.track {
|
|
33
32
|
position: relative;
|
|
34
33
|
cursor: pointer;
|
|
@@ -42,14 +41,15 @@ var n = e`
|
|
|
42
41
|
position: absolute;
|
|
43
42
|
}
|
|
44
43
|
|
|
45
|
-
.track,
|
|
44
|
+
.track,
|
|
45
|
+
.track-range {
|
|
46
46
|
background-clip: content-box;
|
|
47
47
|
}
|
|
48
|
-
`,
|
|
48
|
+
`, a = e`
|
|
49
49
|
.thumb {
|
|
50
50
|
z-index: 2;
|
|
51
51
|
position: absolute;
|
|
52
52
|
}
|
|
53
53
|
`;
|
|
54
54
|
//#endregion
|
|
55
|
-
export {
|
|
55
|
+
export { t as commonStyles, n as currentValueStyles, r as rangeValueStyles, a as thumbStyles, i as trackStyles };
|
|
@@ -8,20 +8,19 @@ import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/decorators.js";
|
|
|
8
8
|
import { __decorate as a } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorate.js";
|
|
9
9
|
import { UiKitElement as o } from "../base/UiKitElement.js";
|
|
10
10
|
import { customUiKitElement as s } from "../../decorators/customUiKitElement.js";
|
|
11
|
-
import {
|
|
12
|
-
import { e as l } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
11
|
+
import { e as c } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
13
12
|
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/class-map.js";
|
|
14
|
-
import { ViewportMixin as
|
|
15
|
-
import { objectConverter as
|
|
16
|
-
import { observeScroll as
|
|
17
|
-
import { commonStyles as
|
|
13
|
+
import { ViewportMixin as l } from "../../mixins/ViewportMixin.js";
|
|
14
|
+
import { objectConverter as u } from "../../utils/objectConverter.js";
|
|
15
|
+
import { observeScroll as d } from "../../utils/observeScroll/observeScroll.js";
|
|
16
|
+
import { commonStyles as f } from "./styles/common.styles.js";
|
|
18
17
|
//#region src/components/ds-static-box/ds-static-box.ts
|
|
19
|
-
var
|
|
18
|
+
var p = class extends l(o) {
|
|
20
19
|
constructor(...e) {
|
|
21
20
|
super(...e), this.size = "medium", this.showTopShadow = !1, this.showBottomShadow = !1;
|
|
22
21
|
}
|
|
23
22
|
static {
|
|
24
|
-
this.styles = [
|
|
23
|
+
this.styles = [f];
|
|
25
24
|
}
|
|
26
25
|
get classes() {
|
|
27
26
|
let e = typeof this.size == "string" ? this.size : this.size[this.viewport];
|
|
@@ -38,7 +37,7 @@ var m = class extends u(o) {
|
|
|
38
37
|
};
|
|
39
38
|
}
|
|
40
39
|
get styleTokens() {
|
|
41
|
-
return
|
|
40
|
+
return e`
|
|
42
41
|
<style>
|
|
43
42
|
.header {
|
|
44
43
|
display: ${this.headerItems?.length > 0 ? "block" : "none"};
|
|
@@ -51,7 +50,7 @@ var m = class extends u(o) {
|
|
|
51
50
|
`;
|
|
52
51
|
}
|
|
53
52
|
onSlotChange() {
|
|
54
|
-
this.cleanupScrollObserver && this.cleanupScrollObserver(), this.cleanupScrollObserver =
|
|
53
|
+
this.cleanupScrollObserver && this.cleanupScrollObserver(), this.cleanupScrollObserver = d(this.mainElement, ({ top: e, bottom: t }) => {
|
|
55
54
|
this.showTopShadow = e, this.showBottomShadow = t;
|
|
56
55
|
});
|
|
57
56
|
}
|
|
@@ -64,12 +63,12 @@ var m = class extends u(o) {
|
|
|
64
63
|
render() {
|
|
65
64
|
return e`
|
|
66
65
|
${this.styleTokens}
|
|
67
|
-
<div part="container" data-testid="ds-static-box-container" class=${
|
|
66
|
+
<div part="container" data-testid="ds-static-box-container" class=${c(this.classes)}>
|
|
68
67
|
<div class="body">
|
|
69
68
|
<div part="header" class="header">
|
|
70
69
|
<slot name="header"></slot>
|
|
71
70
|
</div>
|
|
72
|
-
<div class=${
|
|
71
|
+
<div class=${c(this.mainWrapperClasses)}>
|
|
73
72
|
<div part="main" class="main ds-scroll" tabindex="0">
|
|
74
73
|
<slot name="main" @slotchange=${this.onSlotChange}></slot>
|
|
75
74
|
</div>
|
|
@@ -84,12 +83,12 @@ var m = class extends u(o) {
|
|
|
84
83
|
};
|
|
85
84
|
a([t({
|
|
86
85
|
type: String,
|
|
87
|
-
converter:
|
|
88
|
-
})],
|
|
86
|
+
converter: u
|
|
87
|
+
})], p.prototype, "size", void 0), a([i({
|
|
89
88
|
slot: "header",
|
|
90
89
|
flatten: !0
|
|
91
|
-
})],
|
|
90
|
+
})], p.prototype, "headerItems", void 0), a([i({
|
|
92
91
|
slot: "footer",
|
|
93
92
|
flatten: !0
|
|
94
|
-
})],
|
|
93
|
+
})], p.prototype, "footerItems", void 0), a([r(".main")], p.prototype, "mainElement", void 0), a([n()], p.prototype, "showTopShadow", void 0), a([n()], p.prototype, "showBottomShadow", void 0), p = a([s("ds-static-box")], p);
|
|
95
94
|
//#endregion
|
|
@@ -32,7 +32,7 @@ var l = class extends a {
|
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
34
|
return this.columnCount === 0 ? e : t`
|
|
35
|
-
<div class="table-wrapper" role="table" style=${s({ "--ui-kit-table-grid-template-columns-default": `repeat(${this.columnCount}, 1fr)` })}>
|
|
35
|
+
<div class="table-wrapper" role="table" style=${s({ "--ui-kit-private-table-grid-template-columns-default": `repeat(${this.columnCount}, 1fr)` })}>
|
|
36
36
|
<div class="header" role="rowgroup">
|
|
37
37
|
<slot name="header" @slotchange=${this.handleHeaderSlotChange}></slot>
|
|
38
38
|
</div>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as e } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
2
|
+
import "../../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.js";
|
|
2
3
|
//#region src/components/ds-table/styles/common.styles.ts
|
|
3
4
|
var t = e`
|
|
4
5
|
:host {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as e } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
2
|
+
import "../../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.js";
|
|
2
3
|
//#region src/components/ds-table-cell/styles/common.styles.ts
|
|
3
4
|
var t = e`
|
|
4
5
|
:host {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as e } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
2
|
+
import "../../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.js";
|
|
2
3
|
//#region src/components/ds-table-row/styles/common.styles.ts
|
|
3
4
|
var t = e`
|
|
4
5
|
:host {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as e } from "../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
2
|
+
import "../../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.js";
|
|
2
3
|
//#region src/components/ds-tag/styles/common.styles.ts
|
|
3
4
|
var t = e`
|
|
4
5
|
:host {
|
|
5
6
|
display: inline-block;
|
|
6
7
|
}
|
|
7
|
-
|
|
8
|
+
|
|
8
9
|
.container {
|
|
9
10
|
display: inline-flex;
|
|
10
11
|
justify-content: center;
|
|
@@ -57,7 +57,7 @@ var m = new Set([
|
|
|
57
57
|
part="container"
|
|
58
58
|
data-testid="ds-text-container"
|
|
59
59
|
class=${l(this.classes)}
|
|
60
|
-
style=${f({ color: this.color || "var(--ui-kit-text-color)" })}
|
|
60
|
+
style=${f({ color: this.color || "var(--ui-kit-private-text-color)" })}
|
|
61
61
|
>
|
|
62
62
|
${this.value ? this.value : e}
|
|
63
63
|
<slot></slot>
|
|
@@ -50,7 +50,7 @@ var p = class extends o {
|
|
|
50
50
|
}
|
|
51
51
|
loadThemeStyles() {
|
|
52
52
|
return this.loadStyles ? new Promise((e, t) => {
|
|
53
|
-
let n = "/2.0.0-canary.
|
|
53
|
+
let n = "/2.0.0-canary.131", r = `https://ds-assets.cupra.com${n}/styles/${this.theme}/theme.css`;
|
|
54
54
|
if (document.head.querySelector(`link[href="${r}"]`)) e();
|
|
55
55
|
else {
|
|
56
56
|
let i = `ui-kit-theme-${n}`, a = document.getElementById(i), o = document.createElement("link");
|
|
@@ -6,10 +6,10 @@ import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/decorators.js";
|
|
|
6
6
|
import { __decorate as i } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorate.js";
|
|
7
7
|
import { UiKitElement as a } from "../base/UiKitElement.js";
|
|
8
8
|
import { customUiKitElement as o } from "../../decorators/customUiKitElement.js";
|
|
9
|
-
import {
|
|
10
|
-
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/unsafe-html.js";
|
|
11
|
-
import { e as c } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
9
|
+
import { e as s } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
12
10
|
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/class-map.js";
|
|
11
|
+
import { o as c } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/unsafe-html.js";
|
|
12
|
+
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/unsafe-html.js";
|
|
13
13
|
import { toastManager as l } from "./utils/ToastManager.js";
|
|
14
14
|
import { c as u } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/repeat.js";
|
|
15
15
|
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/repeat.js";
|
|
@@ -47,7 +47,7 @@ var p = class extends a {
|
|
|
47
47
|
let e = document.querySelector(`[data-id="${n.referenceId}"]`);
|
|
48
48
|
if (e) {
|
|
49
49
|
let t = e.cloneNode(!0);
|
|
50
|
-
t.setAttribute("data-template", "false"), t.setAttribute("data-id", n.id), i =
|
|
50
|
+
t.setAttribute("data-template", "false"), t.setAttribute("data-id", n.id), i = c(t.outerHTML);
|
|
51
51
|
}
|
|
52
52
|
} else i = this.componentFactory.createToastMessage({
|
|
53
53
|
"data-id": n.id,
|
|
@@ -56,7 +56,7 @@ var p = class extends a {
|
|
|
56
56
|
text: n.text,
|
|
57
57
|
status: n.status
|
|
58
58
|
});
|
|
59
|
-
return t`<div class=${
|
|
59
|
+
return t`<div class=${s(r)} data-id="${n.id}">${i}</div>`;
|
|
60
60
|
}
|
|
61
61
|
get containerClasses() {
|
|
62
62
|
return {
|
|
@@ -68,7 +68,7 @@ var p = class extends a {
|
|
|
68
68
|
return t`
|
|
69
69
|
<div
|
|
70
70
|
part="toast-container"
|
|
71
|
-
class=${
|
|
71
|
+
class=${s(this.containerClasses)}
|
|
72
72
|
@animationend=${this.handleAnimationEnd}
|
|
73
73
|
aria-live="polite"
|
|
74
74
|
>
|
|
@@ -8,17 +8,16 @@ import { __decorate as r } from "../../_virtual/_@oxc-project_runtime@0.122.0/he
|
|
|
8
8
|
import { UiKitElement as i } from "../base/UiKitElement.js";
|
|
9
9
|
import { customUiKitElement as a } from "../../decorators/customUiKitElement.js";
|
|
10
10
|
import { booleanConverter as o } from "../../utils/booleanConverter.js";
|
|
11
|
-
import {
|
|
12
|
-
import { e as c } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
11
|
+
import { e as s } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
13
12
|
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/class-map.js";
|
|
14
|
-
import { commonStyles as
|
|
13
|
+
import { commonStyles as c } from "./styles/common.styles.js";
|
|
15
14
|
//#region src/components/ds-toggle-switch/ds-toggle-switch.ts
|
|
16
|
-
var
|
|
15
|
+
var l = class extends i {
|
|
17
16
|
constructor(...e) {
|
|
18
17
|
super(...e), this.size = "medium", this._checked = void 0, this._checkedState = !1, this.disabled = !1, this.mode = "light";
|
|
19
18
|
}
|
|
20
19
|
static {
|
|
21
|
-
this.styles = [
|
|
20
|
+
this.styles = [c];
|
|
22
21
|
}
|
|
23
22
|
get checked() {
|
|
24
23
|
return this._checked ?? this._checkedState;
|
|
@@ -41,7 +40,7 @@ var u = class extends i {
|
|
|
41
40
|
e.stopPropagation(), !this.checked && this.handleClick();
|
|
42
41
|
}
|
|
43
42
|
get styleTokens() {
|
|
44
|
-
return
|
|
43
|
+
return e`
|
|
45
44
|
<style>
|
|
46
45
|
:host {
|
|
47
46
|
color-scheme: ${this.mode};
|
|
@@ -62,7 +61,7 @@ var u = class extends i {
|
|
|
62
61
|
return e`
|
|
63
62
|
${this.styleTokens}
|
|
64
63
|
<div
|
|
65
|
-
class=${
|
|
64
|
+
class=${s(this.labelClasses)}
|
|
66
65
|
@click=${this.handleClick}
|
|
67
66
|
>
|
|
68
67
|
<slot name="off" @click=${this.handleClickOff}></slot>
|
|
@@ -85,20 +84,20 @@ var u = class extends i {
|
|
|
85
84
|
`;
|
|
86
85
|
}
|
|
87
86
|
};
|
|
88
|
-
r([t({ type: String })],
|
|
87
|
+
r([t({ type: String })], l.prototype, "size", void 0), r([t({
|
|
89
88
|
type: Boolean,
|
|
90
89
|
attribute: "checked",
|
|
91
90
|
converter: o,
|
|
92
91
|
reflect: !0
|
|
93
|
-
})],
|
|
92
|
+
})], l.prototype, "_checked", void 0), r([n()], l.prototype, "_checkedState", void 0), r([t({
|
|
94
93
|
type: Boolean,
|
|
95
94
|
converter: o,
|
|
96
95
|
reflect: !0
|
|
97
|
-
})],
|
|
96
|
+
})], l.prototype, "disabled", void 0), r([t({
|
|
98
97
|
type: String,
|
|
99
98
|
reflect: !0
|
|
100
|
-
})],
|
|
99
|
+
})], l.prototype, "mode", void 0), r([t({
|
|
101
100
|
type: String,
|
|
102
101
|
attribute: "data-aria-label"
|
|
103
|
-
})],
|
|
102
|
+
})], l.prototype, "dataAriaLabel", void 0), l = r([a("ds-toggle-switch")], l);
|
|
104
103
|
//#endregion
|