@cupra/ui-kit 2.0.0-canary.131 → 2.0.0-canary.133
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/ds-accordion/ds-accordion.cjs +4 -4
- package/dist/cjs/components/ds-avatar/ds-avatar.cjs +4 -4
- package/dist/cjs/components/ds-basic-card-header/ds-basic-card-header.cjs +3 -3
- package/dist/cjs/components/ds-basic-card-section/ds-basic-card-section.cjs +3 -3
- package/dist/cjs/components/ds-breadcrumbs/ds-breadcrumbs.cjs +12 -9
- package/dist/cjs/components/ds-button/ds-button.cjs +12 -12
- package/dist/cjs/components/ds-calendar/ds-calendar.cjs +25 -4
- package/dist/cjs/components/ds-calendar-day/ds-calendar-day.cjs +1 -1
- package/dist/cjs/components/ds-checkbox/ds-checkbox.cjs +3 -3
- package/dist/cjs/components/ds-chip/ds-chip.cjs +14 -4
- package/dist/cjs/components/ds-chips/ds-chips.cjs +12 -3
- package/dist/cjs/components/ds-date-picker/ds-date-picker.cjs +11 -3
- package/dist/cjs/components/ds-dialog-header/ds-dialog-header.cjs +4 -4
- package/dist/cjs/components/ds-divider/ds-divider.cjs +1 -1
- package/dist/cjs/components/ds-drawer/ds-drawer.cjs +13 -4
- package/dist/cjs/components/ds-favourite-action/ds-favourite-action.cjs +3 -3
- package/dist/cjs/components/ds-icon/ds-icon.cjs +1 -1
- package/dist/cjs/components/ds-icon-button/ds-icon-button.cjs +6 -6
- package/dist/cjs/components/ds-inline-alert/ds-inline-alert.cjs +11 -5
- package/dist/cjs/components/ds-input/ds-input.cjs +4 -4
- package/dist/cjs/components/ds-interactive-card/ds-interactive-card.cjs +11 -4
- package/dist/cjs/components/ds-link-button/ds-link-button.cjs +5 -5
- package/dist/cjs/components/ds-loader-logo/ds-loader-logo.cjs +3 -3
- package/dist/cjs/components/ds-loader-spinner/ds-loader-spinner.cjs +1 -1
- package/dist/cjs/components/ds-logo/ds-logo.cjs +3 -3
- package/dist/cjs/components/ds-map-pin/ds-map-pin.cjs +3 -3
- package/dist/cjs/components/ds-media-control/ds-media-control.cjs +3 -3
- package/dist/cjs/components/ds-modal/ds-modal.cjs +22 -4
- package/dist/cjs/components/ds-password-input/ds-password-input.cjs +9 -1
- package/dist/cjs/components/ds-rating/ds-rating.cjs +3 -3
- package/dist/cjs/components/ds-search/ds-search.cjs +6 -6
- package/dist/cjs/components/ds-search-input/ds-search-input.cjs +20 -4
- package/dist/cjs/components/ds-secondary-navigation/ds-secondary-navigation.cjs +24 -12
- package/dist/cjs/components/ds-select/ds-select.cjs +7 -7
- package/dist/cjs/components/ds-selection/ds-selection.cjs +3 -3
- package/dist/cjs/components/ds-sidebar-navigation/ds-sidebar-navigation.cjs +11 -3
- package/dist/cjs/components/ds-skeleton/ds-skeleton.cjs +1 -1
- package/dist/cjs/components/ds-tabs/ds-tabs.cjs +12 -4
- package/dist/cjs/components/ds-tag/ds-tag.cjs +5 -5
- package/dist/cjs/components/ds-text/ds-text.cjs +3 -3
- package/dist/cjs/components/ds-text-input/ds-text-input.cjs +11 -3
- package/dist/cjs/components/ds-theme-provider/ds-theme-provider.cjs +1 -1
- package/dist/cjs/components/ds-toast/ds-toast.cjs +10 -4
- package/dist/cjs/components/ds-toast-message/ds-toast-message.cjs +11 -5
- package/dist/cjs/components/ds-tooltip/ds-tooltip.cjs +2 -2
- package/dist/cjs/components/index.cjs +1 -1
- package/dist/cjs/decorators/customUiKitElement.cjs +1 -1
- package/dist/cjs/mixins/ViewportMixin.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/uiKitHtml.cjs +1 -0
- package/dist/cjs/utils/version.cjs +1 -1
- package/dist/esm/components/ds-accordion/ds-accordion.js +14 -18
- package/dist/esm/components/ds-avatar/ds-avatar.js +16 -17
- package/dist/esm/components/ds-basic-card-header/ds-basic-card-header.js +9 -10
- package/dist/esm/components/ds-basic-card-section/ds-basic-card-section.js +10 -11
- package/dist/esm/components/ds-breadcrumbs/ds-breadcrumbs.js +26 -28
- package/dist/esm/components/ds-button/ds-button.js +40 -41
- package/dist/esm/components/ds-calendar/ds-calendar.js +47 -45
- package/dist/esm/components/ds-calendar-day/ds-calendar-day.js +0 -1
- package/dist/esm/components/ds-checkbox/ds-checkbox.js +26 -29
- package/dist/esm/components/ds-chip/ds-chip.js +27 -28
- package/dist/esm/components/ds-chips/ds-chips.js +24 -20
- package/dist/esm/components/ds-date-picker/ds-date-picker.js +29 -25
- package/dist/esm/components/ds-dialog-header/ds-dialog-header.js +13 -13
- package/dist/esm/components/ds-divider/ds-divider.js +0 -1
- package/dist/esm/components/ds-drawer/ds-drawer.js +23 -19
- package/dist/esm/components/ds-favourite-action/ds-favourite-action.js +12 -13
- package/dist/esm/components/ds-icon/ds-icon.js +0 -1
- package/dist/esm/components/ds-icon-button/ds-icon-button.js +29 -29
- package/dist/esm/components/ds-inline-alert/ds-inline-alert.js +24 -24
- package/dist/esm/components/ds-input/ds-input.js +9 -11
- package/dist/esm/components/ds-interactive-card/ds-interactive-card.js +22 -23
- package/dist/esm/components/ds-link-button/ds-link-button.js +22 -21
- package/dist/esm/components/ds-loader-logo/ds-loader-logo.js +11 -10
- package/dist/esm/components/ds-loader-spinner/ds-loader-spinner.js +0 -1
- package/dist/esm/components/ds-logo/ds-logo.js +12 -16
- package/dist/esm/components/ds-map-pin/ds-map-pin.js +17 -17
- package/dist/esm/components/ds-media-control/ds-media-control.js +13 -13
- package/dist/esm/components/ds-modal/ds-modal.js +47 -47
- package/dist/esm/components/ds-password-input/ds-password-input.js +17 -13
- package/dist/esm/components/ds-rating/ds-rating.js +11 -14
- package/dist/esm/components/ds-search/ds-search.js +20 -29
- package/dist/esm/components/ds-search-input/ds-search-input.js +42 -40
- package/dist/esm/components/ds-secondary-navigation/ds-secondary-navigation.js +39 -44
- package/dist/esm/components/ds-select/ds-select.js +24 -26
- package/dist/esm/components/ds-selection/ds-selection.js +9 -11
- package/dist/esm/components/ds-sidebar-navigation/ds-sidebar-navigation.js +29 -27
- package/dist/esm/components/ds-skeleton/ds-skeleton.js +0 -1
- package/dist/esm/components/ds-tabs/ds-tabs.js +27 -23
- package/dist/esm/components/ds-tag/ds-tag.js +19 -20
- package/dist/esm/components/ds-text/ds-text.js +10 -10
- package/dist/esm/components/ds-text-input/ds-text-input.js +28 -24
- package/dist/esm/components/ds-theme-provider/ds-theme-provider.js +1 -1
- package/dist/esm/components/ds-toast/ds-toast.js +26 -22
- package/dist/esm/components/ds-toast-message/ds-toast-message.js +24 -24
- package/dist/esm/components/ds-tooltip/ds-tooltip.js +10 -11
- package/dist/esm/components/index.js +5 -5
- package/dist/esm/decorators/customUiKitElement.js +11 -15
- package/dist/esm/mixins/ViewportMixin.js +9 -9
- 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/uiKitHtml.js +9 -0
- package/dist/esm/utils/version.js +1 -1
- package/dist/types/components/base/UiKitElement.d.ts +0 -2
- package/dist/types/components/ds-accordion/ds-accordion.d.ts +4 -3
- package/dist/types/components/ds-avatar/ds-avatar.d.ts +2 -1
- package/dist/types/components/ds-basic-card-header/ds-basic-card-header.d.ts +2 -1
- package/dist/types/components/ds-basic-card-section/ds-basic-card-section.d.ts +2 -1
- package/dist/types/components/ds-breadcrumbs/ds-breadcrumbs.d.ts +2 -0
- package/dist/types/components/ds-button/ds-button.d.ts +2 -1
- package/dist/types/components/ds-calendar/ds-calendar.d.ts +1 -0
- package/dist/types/components/ds-checkbox/ds-checkbox.d.ts +3 -1
- package/dist/types/components/ds-chip/ds-chip.d.ts +3 -1
- package/dist/types/components/ds-chips/ds-chips.d.ts +1 -0
- package/dist/types/components/ds-date-picker/ds-date-picker.d.ts +1 -0
- package/dist/types/components/ds-dialog/ds-dialog.d.ts +0 -2
- package/dist/types/components/ds-dialog-header/ds-dialog-header.d.ts +3 -1
- package/dist/types/components/ds-drawer/ds-drawer.d.ts +1 -0
- package/dist/types/components/ds-favourite-action/ds-favourite-action.d.ts +2 -1
- package/dist/types/components/ds-icon-button/ds-icon-button.d.ts +3 -2
- package/dist/types/components/ds-inline-alert/ds-inline-alert.d.ts +4 -2
- package/dist/types/components/ds-input/ds-input.d.ts +1 -2
- package/dist/types/components/ds-interactive-card/ds-interactive-card.d.ts +5 -2
- package/dist/types/components/ds-link-button/ds-link-button.d.ts +3 -1
- package/dist/types/components/ds-loader-logo/ds-loader-logo.d.ts +1 -0
- package/dist/types/components/ds-logo/ds-logo.d.ts +4 -2
- package/dist/types/components/ds-map-pin/ds-map-pin.d.ts +2 -1
- package/dist/types/components/ds-media-control/ds-media-control.d.ts +1 -0
- package/dist/types/components/ds-modal/ds-modal.d.ts +3 -0
- package/dist/types/components/ds-password-input/ds-password-input.d.ts +2 -1
- package/dist/types/components/ds-search/ds-search.d.ts +1 -0
- package/dist/types/components/ds-search-input/ds-search-input.d.ts +7 -4
- package/dist/types/components/ds-secondary-navigation/ds-secondary-navigation.d.ts +4 -2
- package/dist/types/components/ds-select/ds-select.d.ts +4 -2
- package/dist/types/components/ds-selection/ds-selection.d.ts +2 -1
- package/dist/types/components/ds-sidebar-navigation/ds-sidebar-navigation.d.ts +1 -0
- package/dist/types/components/ds-tabs/ds-tabs.d.ts +1 -0
- package/dist/types/components/ds-tag/ds-tag.d.ts +2 -1
- package/dist/types/components/ds-text-input/ds-text-input.d.ts +2 -1
- package/dist/types/components/ds-toast/ds-toast.d.ts +1 -0
- package/dist/types/components/ds-toast-message/ds-toast-message.d.ts +4 -2
- package/dist/types/utils/uiKitHtml.d.ts +2 -0
- package/dist-react/cjs/components/ds-accordion/ds-accordion.cjs +4 -4
- package/dist-react/cjs/components/ds-avatar/ds-avatar.cjs +4 -4
- package/dist-react/cjs/components/ds-basic-card-header/ds-basic-card-header.cjs +3 -3
- package/dist-react/cjs/components/ds-basic-card-section/ds-basic-card-section.cjs +3 -3
- package/dist-react/cjs/components/ds-breadcrumbs/ds-breadcrumbs.cjs +12 -9
- package/dist-react/cjs/components/ds-button/ds-button.cjs +12 -12
- package/dist-react/cjs/components/ds-calendar/ds-calendar.cjs +25 -4
- package/dist-react/cjs/components/ds-calendar-day/ds-calendar-day.cjs +1 -1
- package/dist-react/cjs/components/ds-checkbox/ds-checkbox.cjs +3 -3
- package/dist-react/cjs/components/ds-chip/ds-chip.cjs +14 -4
- package/dist-react/cjs/components/ds-chips/ds-chips.cjs +12 -3
- package/dist-react/cjs/components/ds-date-picker/ds-date-picker.cjs +11 -3
- package/dist-react/cjs/components/ds-dialog-header/ds-dialog-header.cjs +4 -4
- package/dist-react/cjs/components/ds-divider/ds-divider.cjs +1 -1
- package/dist-react/cjs/components/ds-drawer/ds-drawer.cjs +13 -4
- package/dist-react/cjs/components/ds-favourite-action/ds-favourite-action.cjs +3 -3
- package/dist-react/cjs/components/ds-icon/ds-icon.cjs +1 -1
- package/dist-react/cjs/components/ds-icon-button/ds-icon-button.cjs +6 -6
- package/dist-react/cjs/components/ds-inline-alert/ds-inline-alert.cjs +11 -5
- package/dist-react/cjs/components/ds-input/ds-input.cjs +4 -4
- package/dist-react/cjs/components/ds-interactive-card/ds-interactive-card.cjs +11 -4
- package/dist-react/cjs/components/ds-link-button/ds-link-button.cjs +5 -5
- package/dist-react/cjs/components/ds-loader-logo/ds-loader-logo.cjs +3 -3
- package/dist-react/cjs/components/ds-loader-spinner/ds-loader-spinner.cjs +1 -1
- package/dist-react/cjs/components/ds-logo/ds-logo.cjs +3 -3
- package/dist-react/cjs/components/ds-map-pin/ds-map-pin.cjs +3 -3
- package/dist-react/cjs/components/ds-media-control/ds-media-control.cjs +3 -3
- package/dist-react/cjs/components/ds-modal/ds-modal.cjs +22 -4
- package/dist-react/cjs/components/ds-password-input/ds-password-input.cjs +9 -1
- package/dist-react/cjs/components/ds-rating/ds-rating.cjs +3 -3
- package/dist-react/cjs/components/ds-search/ds-search.cjs +6 -6
- package/dist-react/cjs/components/ds-search-input/ds-search-input.cjs +20 -4
- package/dist-react/cjs/components/ds-secondary-navigation/ds-secondary-navigation.cjs +24 -12
- package/dist-react/cjs/components/ds-select/ds-select.cjs +7 -7
- package/dist-react/cjs/components/ds-selection/ds-selection.cjs +3 -3
- package/dist-react/cjs/components/ds-sidebar-navigation/ds-sidebar-navigation.cjs +11 -3
- package/dist-react/cjs/components/ds-skeleton/ds-skeleton.cjs +1 -1
- package/dist-react/cjs/components/ds-tabs/ds-tabs.cjs +12 -4
- package/dist-react/cjs/components/ds-tag/ds-tag.cjs +5 -5
- package/dist-react/cjs/components/ds-text/ds-text.cjs +3 -3
- package/dist-react/cjs/components/ds-text-input/ds-text-input.cjs +11 -3
- package/dist-react/cjs/components/ds-theme-provider/ds-theme-provider.cjs +1 -1
- package/dist-react/cjs/components/ds-toast/ds-toast.cjs +10 -4
- package/dist-react/cjs/components/ds-toast-message/ds-toast-message.cjs +11 -5
- package/dist-react/cjs/components/ds-tooltip/ds-tooltip.cjs +2 -2
- package/dist-react/cjs/components/index.cjs +1 -1
- package/dist-react/cjs/decorators/customUiKitElement.cjs +1 -1
- package/dist-react/cjs/mixins/ViewportMixin.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/uiKitHtml.cjs +1 -0
- package/dist-react/cjs/utils/version.cjs +1 -1
- package/dist-react/esm/components/ds-accordion/ds-accordion.js +14 -18
- package/dist-react/esm/components/ds-avatar/ds-avatar.js +16 -17
- package/dist-react/esm/components/ds-basic-card-header/ds-basic-card-header.js +9 -10
- package/dist-react/esm/components/ds-basic-card-section/ds-basic-card-section.js +10 -11
- package/dist-react/esm/components/ds-breadcrumbs/ds-breadcrumbs.js +26 -28
- package/dist-react/esm/components/ds-button/ds-button.js +40 -41
- package/dist-react/esm/components/ds-calendar/ds-calendar.js +47 -45
- package/dist-react/esm/components/ds-calendar-day/ds-calendar-day.js +0 -1
- package/dist-react/esm/components/ds-checkbox/ds-checkbox.js +26 -29
- package/dist-react/esm/components/ds-chip/ds-chip.js +27 -28
- package/dist-react/esm/components/ds-chips/ds-chips.js +24 -20
- package/dist-react/esm/components/ds-date-picker/ds-date-picker.js +29 -25
- package/dist-react/esm/components/ds-dialog-header/ds-dialog-header.js +13 -13
- package/dist-react/esm/components/ds-divider/ds-divider.js +0 -1
- package/dist-react/esm/components/ds-drawer/ds-drawer.js +23 -19
- package/dist-react/esm/components/ds-favourite-action/ds-favourite-action.js +12 -13
- package/dist-react/esm/components/ds-icon/ds-icon.js +0 -1
- package/dist-react/esm/components/ds-icon-button/ds-icon-button.js +29 -29
- package/dist-react/esm/components/ds-inline-alert/ds-inline-alert.js +24 -24
- package/dist-react/esm/components/ds-input/ds-input.js +9 -11
- package/dist-react/esm/components/ds-interactive-card/ds-interactive-card.js +22 -23
- package/dist-react/esm/components/ds-link-button/ds-link-button.js +22 -21
- package/dist-react/esm/components/ds-loader-logo/ds-loader-logo.js +11 -10
- package/dist-react/esm/components/ds-loader-spinner/ds-loader-spinner.js +0 -1
- package/dist-react/esm/components/ds-logo/ds-logo.js +12 -16
- package/dist-react/esm/components/ds-map-pin/ds-map-pin.js +17 -17
- package/dist-react/esm/components/ds-media-control/ds-media-control.js +13 -13
- package/dist-react/esm/components/ds-modal/ds-modal.js +47 -47
- package/dist-react/esm/components/ds-password-input/ds-password-input.js +17 -13
- package/dist-react/esm/components/ds-rating/ds-rating.js +11 -14
- package/dist-react/esm/components/ds-search/ds-search.js +20 -29
- package/dist-react/esm/components/ds-search-input/ds-search-input.js +42 -40
- package/dist-react/esm/components/ds-secondary-navigation/ds-secondary-navigation.js +39 -44
- package/dist-react/esm/components/ds-select/ds-select.js +24 -26
- package/dist-react/esm/components/ds-selection/ds-selection.js +9 -11
- package/dist-react/esm/components/ds-sidebar-navigation/ds-sidebar-navigation.js +29 -27
- package/dist-react/esm/components/ds-skeleton/ds-skeleton.js +0 -1
- package/dist-react/esm/components/ds-tabs/ds-tabs.js +27 -23
- package/dist-react/esm/components/ds-tag/ds-tag.js +19 -20
- package/dist-react/esm/components/ds-text/ds-text.js +10 -10
- package/dist-react/esm/components/ds-text-input/ds-text-input.js +28 -24
- package/dist-react/esm/components/ds-theme-provider/ds-theme-provider.js +1 -1
- package/dist-react/esm/components/ds-toast/ds-toast.js +26 -22
- package/dist-react/esm/components/ds-toast-message/ds-toast-message.js +24 -24
- package/dist-react/esm/components/ds-tooltip/ds-tooltip.js +10 -11
- package/dist-react/esm/components/index.js +5 -5
- package/dist-react/esm/decorators/customUiKitElement.js +10 -14
- package/dist-react/esm/mixins/ViewportMixin.js +9 -9
- 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/uiKitHtml.js +18 -0
- package/dist-react/esm/utils/version.js +1 -1
- package/dist-react/types/components/base/UiKitElement.d.ts +0 -2
- package/dist-react/types/components/ds-accordion/ds-accordion.d.ts +4 -3
- package/dist-react/types/components/ds-avatar/ds-avatar.d.ts +2 -1
- package/dist-react/types/components/ds-basic-card-header/ds-basic-card-header.d.ts +2 -1
- package/dist-react/types/components/ds-basic-card-section/ds-basic-card-section.d.ts +2 -1
- package/dist-react/types/components/ds-breadcrumbs/ds-breadcrumbs.d.ts +2 -0
- package/dist-react/types/components/ds-button/ds-button.d.ts +2 -1
- package/dist-react/types/components/ds-calendar/ds-calendar.d.ts +1 -0
- package/dist-react/types/components/ds-checkbox/ds-checkbox.d.ts +3 -1
- package/dist-react/types/components/ds-chip/ds-chip.d.ts +3 -1
- package/dist-react/types/components/ds-chips/ds-chips.d.ts +1 -0
- package/dist-react/types/components/ds-date-picker/ds-date-picker.d.ts +1 -0
- package/dist-react/types/components/ds-dialog/ds-dialog.d.ts +0 -2
- package/dist-react/types/components/ds-dialog-header/ds-dialog-header.d.ts +3 -1
- package/dist-react/types/components/ds-drawer/ds-drawer.d.ts +1 -0
- package/dist-react/types/components/ds-favourite-action/ds-favourite-action.d.ts +2 -1
- package/dist-react/types/components/ds-icon-button/ds-icon-button.d.ts +3 -2
- package/dist-react/types/components/ds-inline-alert/ds-inline-alert.d.ts +4 -2
- package/dist-react/types/components/ds-input/ds-input.d.ts +1 -2
- package/dist-react/types/components/ds-interactive-card/ds-interactive-card.d.ts +5 -2
- package/dist-react/types/components/ds-link-button/ds-link-button.d.ts +3 -1
- package/dist-react/types/components/ds-loader-logo/ds-loader-logo.d.ts +1 -0
- package/dist-react/types/components/ds-logo/ds-logo.d.ts +4 -2
- package/dist-react/types/components/ds-map-pin/ds-map-pin.d.ts +2 -1
- package/dist-react/types/components/ds-media-control/ds-media-control.d.ts +1 -0
- package/dist-react/types/components/ds-modal/ds-modal.d.ts +3 -0
- package/dist-react/types/components/ds-password-input/ds-password-input.d.ts +2 -1
- package/dist-react/types/components/ds-search/ds-search.d.ts +1 -0
- package/dist-react/types/components/ds-search-input/ds-search-input.d.ts +7 -4
- package/dist-react/types/components/ds-secondary-navigation/ds-secondary-navigation.d.ts +4 -2
- package/dist-react/types/components/ds-select/ds-select.d.ts +4 -2
- package/dist-react/types/components/ds-selection/ds-selection.d.ts +2 -1
- package/dist-react/types/components/ds-sidebar-navigation/ds-sidebar-navigation.d.ts +1 -0
- package/dist-react/types/components/ds-tabs/ds-tabs.d.ts +1 -0
- package/dist-react/types/components/ds-tag/ds-tag.d.ts +2 -1
- package/dist-react/types/components/ds-text-input/ds-text-input.d.ts +2 -1
- package/dist-react/types/components/ds-toast/ds-toast.d.ts +1 -0
- package/dist-react/types/components/ds-toast-message/ds-toast-message.d.ts +4 -2
- package/dist-react/types/utils/uiKitHtml.d.ts +2 -0
- package/package.json +1 -1
- package/dist/cjs/utils/componentFactory.cjs +0 -239
- package/dist/esm/utils/componentFactory.js +0 -276
- package/dist/types/utils/componentFactory.d.ts +0 -30
- package/dist-react/cjs/utils/componentFactory.cjs +0 -120
- package/dist-react/esm/utils/componentFactory.js +0 -145
- package/dist-react/types/utils/componentFactory.d.ts +0 -30
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
import { x as e } from "../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
2
|
-
import "../node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.js";
|
|
3
|
-
import { o as t } from "../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/if-defined.js";
|
|
4
|
-
import "../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/if-defined.js";
|
|
5
|
-
import { s as n, u as r } from "../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/static.js";
|
|
6
|
-
import "../node_modules/.pnpm/lit@3.3.1/node_modules/lit/static-html.js";
|
|
7
|
-
import { VERSION_TAG_SUFFIX as i } from "./version.js";
|
|
8
|
-
//#region src/utils/componentFactory.ts
|
|
9
|
-
var a = n(`ds-icon${i}`), o = n(`ds-calendar-day${i}`), s = n(`ds-button${i}`), c = n(`ds-divider${i}`), l = n(`ds-icon-button${i}`), u = n(`ds-loader-spinner${i}`), d = n(`ds-skeleton${i}`), f = n(`ds-toast-message${i}`), p = n(`ds-inline-alert${i}`), m = n(`ds-tooltip${i}`), h = {
|
|
10
|
-
createIcon: (n) => (_("ds-icon", () => import("../components/ds-icon/ds-icon.js")), e`
|
|
11
|
-
<ds-icon
|
|
12
|
-
class=${t(n?.class)}
|
|
13
|
-
data-testid=${t(n?.["data-testid"])}
|
|
14
|
-
@click=${n?.["@click"]}
|
|
15
|
-
@keydown=${n?.["@keydown"]}
|
|
16
|
-
icon-name=${n?.["icon-name"]}
|
|
17
|
-
color=${t(n?.color)}
|
|
18
|
-
background-color=${t(n?.["background-color"])}
|
|
19
|
-
size=${t(n?.size)}
|
|
20
|
-
aria-label=${t(n?.["aria-label"])}
|
|
21
|
-
aria-hidden=${t(n?.["aria-hidden"])}
|
|
22
|
-
role=${t(n?.role)}
|
|
23
|
-
tabindex=${t(n?.tabindex)}
|
|
24
|
-
>
|
|
25
|
-
${n.children}
|
|
26
|
-
</ds-icon>
|
|
27
|
-
`),
|
|
28
|
-
createCalendarDay: (n = {}) => (_("ds-calendar-day", () => import("../components/ds-calendar-day/ds-calendar-day.js")), e`
|
|
29
|
-
<ds-calendar-day
|
|
30
|
-
class=${t(n?.class)}
|
|
31
|
-
day=${t(n?.day)}
|
|
32
|
-
size=${t(n?.size)}
|
|
33
|
-
?disabled=${n?.disabled}
|
|
34
|
-
?selected=${n?.selected}
|
|
35
|
-
?today=${n?.today}
|
|
36
|
-
?outside-month=${n?.["outside-month"]}
|
|
37
|
-
data-testid=${t(n?.["data-testid"])}
|
|
38
|
-
></ds-calendar-day>
|
|
39
|
-
`),
|
|
40
|
-
createButton: (n = {}) => (_("ds-button", () => import("../components/ds-button/ds-button.js")), e`
|
|
41
|
-
<ds-button
|
|
42
|
-
class=${n?.class}
|
|
43
|
-
@click=${n?.["@click"]}
|
|
44
|
-
.size=${t(n?.size)}
|
|
45
|
-
type=${n?.type}
|
|
46
|
-
icon-position=${n?.["icon-position"]}
|
|
47
|
-
.rounded=${n?.rounded}
|
|
48
|
-
.full-width=${n?.["full-width"]}
|
|
49
|
-
variant=${n?.variant ?? "primary"}
|
|
50
|
-
mode=${n?.mode ?? "light"}
|
|
51
|
-
.disabled=${n?.disabled}
|
|
52
|
-
icon-name=${n?.["icon-name"]}
|
|
53
|
-
html-tag-name=${n?.["html-tag-name"]}
|
|
54
|
-
href=${n?.href}
|
|
55
|
-
rel=${n?.rel}
|
|
56
|
-
target=${n?.target}
|
|
57
|
-
data-testid=${n?.["data-testid"]}
|
|
58
|
-
>
|
|
59
|
-
${n.children}
|
|
60
|
-
</ds-button>
|
|
61
|
-
`),
|
|
62
|
-
createDivider: (t = {}) => (_("ds-divider", () => import("../components/ds-divider/ds-divider.js")), e`
|
|
63
|
-
<ds-divider
|
|
64
|
-
class=${t?.class}
|
|
65
|
-
variant=${t?.variant ?? "primary"}
|
|
66
|
-
orientation=${t?.orientation ?? "horizontal"}
|
|
67
|
-
data-testid=${t?.["data-testid"]}
|
|
68
|
-
>
|
|
69
|
-
</ds-divider>
|
|
70
|
-
`),
|
|
71
|
-
createIconButton: (n = {}) => (_("ds-icon-button", () => import("../components/ds-icon-button/ds-icon-button.js")), e`
|
|
72
|
-
<ds-icon-button
|
|
73
|
-
class=${n?.class}
|
|
74
|
-
@click=${n?.["@click"]}
|
|
75
|
-
size=${t(n?.size)}
|
|
76
|
-
variant=${n?.variant ?? "primary"}
|
|
77
|
-
mode=${n?.mode ?? "light"}
|
|
78
|
-
.disabled=${n?.disabled}
|
|
79
|
-
icon-name=${n?.["icon-name"]}
|
|
80
|
-
html-tag-name=${n?.["html-tag-name"]}
|
|
81
|
-
href=${n?.href}
|
|
82
|
-
rel=${n?.rel}
|
|
83
|
-
target=${n?.target}
|
|
84
|
-
data-testid=${n?.["data-testid"]}
|
|
85
|
-
data-aria-label=${n?.["data-aria-label"]}
|
|
86
|
-
custom-background=${t(n?.["custom-background"])}
|
|
87
|
-
custom-color=${t(n?.["custom-color"])}
|
|
88
|
-
>
|
|
89
|
-
${n.children}
|
|
90
|
-
</ds-icon-button>
|
|
91
|
-
`),
|
|
92
|
-
createLoaderSpinner: (t = {}) => (_("ds-loader-spinner", () => import("../components/ds-loader-spinner/ds-loader-spinner.js")), e`
|
|
93
|
-
<ds-loader-spinner
|
|
94
|
-
?show=${t?.show}
|
|
95
|
-
orientation=${t?.orientation ?? "row"}
|
|
96
|
-
mode=${t?.mode ?? "light"}
|
|
97
|
-
></ds-loader-spinner>
|
|
98
|
-
`),
|
|
99
|
-
createSkeleton: (n = {}) => (_("ds-skeleton", () => import("../components/ds-skeleton/ds-skeleton.js")), e`
|
|
100
|
-
<ds-skeleton
|
|
101
|
-
class=${t(n?.class)}
|
|
102
|
-
data-testid=${t(n?.["data-testid"])}
|
|
103
|
-
variant=${t(n?.variant)}
|
|
104
|
-
width=${t(n?.width)}
|
|
105
|
-
height=${t(n?.height)}
|
|
106
|
-
animation=${t(n?.animation)}
|
|
107
|
-
></ds-skeleton>
|
|
108
|
-
`),
|
|
109
|
-
createToastMessage: (t) => (_("ds-toast-message", () => import("../components/ds-toast-message/ds-toast-message.js")), e`
|
|
110
|
-
<ds-toast-message
|
|
111
|
-
data-id="${t["data-id"]}"
|
|
112
|
-
data-template="${t["data-template"]}"
|
|
113
|
-
title="${t.title}"
|
|
114
|
-
text="${t.text}"
|
|
115
|
-
status="${t.status}"
|
|
116
|
-
></ds-toast-message>
|
|
117
|
-
`),
|
|
118
|
-
createInlineAlert: (t) => (_("ds-inline-alert", () => import("../components/ds-inline-alert/ds-inline-alert.js")), e`
|
|
119
|
-
<ds-inline-alert
|
|
120
|
-
title="${t.title}"
|
|
121
|
-
text="${t.text}"
|
|
122
|
-
status="${t.status}"
|
|
123
|
-
?show=${t.show ?? !0}
|
|
124
|
-
></ds-inline-alert>
|
|
125
|
-
`),
|
|
126
|
-
createTooltip: (n = {}) => (_("ds-tooltip", () => import("../components/ds-tooltip/ds-tooltip.js")), e`
|
|
127
|
-
<ds-tooltip
|
|
128
|
-
class=${t(n?.class)}
|
|
129
|
-
mode=${t(n.mode)}
|
|
130
|
-
?show=${n.show ?? !1}
|
|
131
|
-
?disable-hover-listener=${n?.["disable-hover-listener"]}
|
|
132
|
-
?disable-focus-listener=${n?.["disable-focus-listener"]}
|
|
133
|
-
?disable-press-listener=${n?.["disable-press-listener"]}
|
|
134
|
-
>
|
|
135
|
-
${n.children}
|
|
136
|
-
<div slot="content">${n.content}</div>
|
|
137
|
-
</ds-tooltip>
|
|
138
|
-
`)
|
|
139
|
-
}, g = {
|
|
140
|
-
createIcon: (e) => (_(`ds-icon${i}`, () => import("../components/ds-icon/ds-icon.js")), r`
|
|
141
|
-
<${a}
|
|
142
|
-
class=${t(e?.class)}
|
|
143
|
-
data-testid=${t(e?.["data-testid"])}
|
|
144
|
-
@click=${e?.["@click"]}
|
|
145
|
-
@keydown=${e?.["@keydown"]}
|
|
146
|
-
icon-name=${e?.["icon-name"]}
|
|
147
|
-
color=${t(e?.color)}
|
|
148
|
-
background-color=${t(e?.["background-color"])}
|
|
149
|
-
size=${t(e?.size)}
|
|
150
|
-
aria-label=${t(e?.["aria-label"])}
|
|
151
|
-
aria-hidden=${t(e?.["aria-hidden"])}
|
|
152
|
-
role=${t(e?.role)}
|
|
153
|
-
tabindex=${t(e?.tabindex)}
|
|
154
|
-
>
|
|
155
|
-
${e.children}
|
|
156
|
-
</${a}>
|
|
157
|
-
`),
|
|
158
|
-
createCalendarDay: (e = {}) => (_(`ds-calendar-day${i}`, () => import("../components/ds-calendar-day/ds-calendar-day.js")), r`
|
|
159
|
-
<${o}
|
|
160
|
-
class=${t(e?.class)}
|
|
161
|
-
day=${t(e?.day)}
|
|
162
|
-
size=${t(e?.size)}
|
|
163
|
-
?disabled=${e?.disabled}
|
|
164
|
-
?selected=${e?.selected}
|
|
165
|
-
?today=${e?.today}
|
|
166
|
-
?outside-month=${e?.["outside-month"]}
|
|
167
|
-
data-testid=${t(e?.["data-testid"])}
|
|
168
|
-
></${o}>
|
|
169
|
-
`),
|
|
170
|
-
createButton: (e = {}) => (_(`ds-button${i}`, () => import("../components/ds-button/ds-button.js")), r`
|
|
171
|
-
<${s}
|
|
172
|
-
class=${e?.class}
|
|
173
|
-
@click=${e?.["@click"]}
|
|
174
|
-
.size=${t(e?.size)}
|
|
175
|
-
type=${e?.type}
|
|
176
|
-
icon-position=${e?.["icon-position"]}
|
|
177
|
-
.rounded=${e?.rounded}
|
|
178
|
-
.full-width=${e?.["full-width"]}
|
|
179
|
-
variant=${e?.variant ?? "primary"}
|
|
180
|
-
mode=${e?.mode ?? "light"}
|
|
181
|
-
.disabled=${e?.disabled}
|
|
182
|
-
icon-name=${e?.["icon-name"]}
|
|
183
|
-
html-tag-name=${e?.["html-tag-name"]}
|
|
184
|
-
href=${e?.href}
|
|
185
|
-
rel=${e?.rel}
|
|
186
|
-
target=${e?.target}
|
|
187
|
-
data-testid=${e?.["data-testid"]}
|
|
188
|
-
>
|
|
189
|
-
${e.children}
|
|
190
|
-
</${s}>
|
|
191
|
-
`),
|
|
192
|
-
createDivider: (e = {}) => (_(`ds-divider${i}`, () => import("../components/ds-divider/ds-divider.js")), r`
|
|
193
|
-
<${c}
|
|
194
|
-
class=${e?.class}
|
|
195
|
-
variant=${e?.variant ?? "primary"}
|
|
196
|
-
orientation=${e?.orientation ?? "horizontal"}
|
|
197
|
-
data-testid=${e?.["data-testid"]}
|
|
198
|
-
>
|
|
199
|
-
</${c}>
|
|
200
|
-
`),
|
|
201
|
-
createIconButton: (e = {}) => (_(`ds-icon-button${i}`, () => import("../components/ds-icon-button/ds-icon-button.js")), r`
|
|
202
|
-
<${l}
|
|
203
|
-
class=${e?.class}
|
|
204
|
-
@click=${e?.["@click"]}
|
|
205
|
-
size=${t(e?.size)}
|
|
206
|
-
variant=${e?.variant ?? "primary"}
|
|
207
|
-
mode=${e?.mode ?? "light"}
|
|
208
|
-
.disabled=${e?.disabled}
|
|
209
|
-
icon-name=${e?.["icon-name"]}
|
|
210
|
-
html-tag-name=${e?.["html-tag-name"]}
|
|
211
|
-
href=${e?.href}
|
|
212
|
-
rel=${e?.rel}
|
|
213
|
-
target=${e?.target}
|
|
214
|
-
data-testid=${e?.["data-testid"]}
|
|
215
|
-
data-aria-label=${e?.["data-aria-label"]}
|
|
216
|
-
custom-background=${t(e?.["custom-background"])}
|
|
217
|
-
custom-color=${t(e?.["custom-color"])}
|
|
218
|
-
>
|
|
219
|
-
${e.children}
|
|
220
|
-
</${l}>
|
|
221
|
-
`),
|
|
222
|
-
createLoaderSpinner: (e = {}) => (_(`ds-loader-spinner${i}`, () => import("../components/ds-loader-spinner/ds-loader-spinner.js")), r`
|
|
223
|
-
<${u}
|
|
224
|
-
?show=${e?.show}
|
|
225
|
-
orientation=${e?.orientation ?? "row"}
|
|
226
|
-
mode=${e?.mode ?? "light"}
|
|
227
|
-
></${u}>
|
|
228
|
-
`),
|
|
229
|
-
createSkeleton: (e = {}) => (_(`ds-skeleton${i}`, () => import("../components/ds-skeleton/ds-skeleton.js")), r`
|
|
230
|
-
<${d}
|
|
231
|
-
class=${t(e?.class)}
|
|
232
|
-
data-testid=${t(e?.["data-testid"])}
|
|
233
|
-
variant=${t(e?.variant)}
|
|
234
|
-
width=${t(e?.width)}
|
|
235
|
-
height=${t(e?.height)}
|
|
236
|
-
animation=${t(e?.animation)}
|
|
237
|
-
></${d}>
|
|
238
|
-
`),
|
|
239
|
-
createToastMessage: (e) => (_(`ds-toast-message${i}`, () => import("../components/ds-toast-message/ds-toast-message.js")), r`
|
|
240
|
-
<${f}
|
|
241
|
-
data-id="${e["data-id"]}"
|
|
242
|
-
data-template="${e["data-template"]}"
|
|
243
|
-
title="${e.title}"
|
|
244
|
-
text="${e.text}"
|
|
245
|
-
status="${e.status}"
|
|
246
|
-
></${f}>
|
|
247
|
-
`),
|
|
248
|
-
createInlineAlert: (e) => (_(`ds-inline-alert${i}`, () => import("../components/ds-inline-alert/ds-inline-alert.js")), r`
|
|
249
|
-
<${p}
|
|
250
|
-
title="${e.title}"
|
|
251
|
-
text="${e.text}"
|
|
252
|
-
status="${e.status}"
|
|
253
|
-
?show=${e.show ?? !0}
|
|
254
|
-
></${p}>
|
|
255
|
-
`),
|
|
256
|
-
createTooltip: (e = {}) => (_(`ds-tooltip${i}`, () => import("../components/ds-tooltip/ds-tooltip.js")), r`
|
|
257
|
-
<${m}
|
|
258
|
-
class=${t(e?.class)}
|
|
259
|
-
mode=${t(e.mode)}
|
|
260
|
-
?show=${e.show ?? !1}
|
|
261
|
-
?disable-hover-listener=${e?.["disable-hover-listener"]}
|
|
262
|
-
?disable-focus-listener=${e?.["disable-focus-listener"]}
|
|
263
|
-
?disable-press-listener=${e?.["disable-press-listener"]}
|
|
264
|
-
>
|
|
265
|
-
${e.children}
|
|
266
|
-
<div slot="content">${e.content}</div>
|
|
267
|
-
</${m}>
|
|
268
|
-
`)
|
|
269
|
-
};
|
|
270
|
-
function _(e, t) {
|
|
271
|
-
try {
|
|
272
|
-
typeof window < "u" && typeof customElements < "u" && !customElements.get(e) && t().catch((e) => {});
|
|
273
|
-
} catch {}
|
|
274
|
-
}
|
|
275
|
-
//#endregion
|
|
276
|
-
export { g as reactFactory, h as standardFactory };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { DsButtonAttrs } from '../components/ds-button/ds-button.types.ts';
|
|
2
|
-
import type { DsCalendarDayAttrs } from '../components/ds-calendar-day/ds-calendar-day.types.ts';
|
|
3
|
-
import { DsDividerAttrs } from '../components/ds-divider/ds-divider.types';
|
|
4
|
-
import type { DsIconButtonAttrs } from '../components/ds-icon-button/ds-icon-button.types.ts';
|
|
5
|
-
import type { DsIconAttrs } from '../components/ds-icon/ds-icon.types.ts';
|
|
6
|
-
import { DsInlineAlertAttrs } from '../components/ds-inline-alert/ds-inline-alert.types.ts';
|
|
7
|
-
import type { DsLoaderSpinnerAttrs } from '../components/ds-loader-spinner/ds-loader-spinner.types.ts';
|
|
8
|
-
import type { DsSkeletonAttrs } from '../components/ds-skeleton/ds-skeleton.types.ts';
|
|
9
|
-
import { DsToastMessageAttrs } from '../components/ds-toast-message/ds-toast-message.types.ts';
|
|
10
|
-
import type { DsTooltipAttrs } from '../components/ds-tooltip/ds-tooltip.types.ts';
|
|
11
|
-
type GetAttributes<T> = (props?: T) => any;
|
|
12
|
-
export type ComponentFactory = {
|
|
13
|
-
createIcon: GetAttributes<DsIconAttrs>;
|
|
14
|
-
createButton: GetAttributes<DsButtonAttrs>;
|
|
15
|
-
createCalendarDay: GetAttributes<DsCalendarDayAttrs>;
|
|
16
|
-
createDivider: GetAttributes<DsDividerAttrs>;
|
|
17
|
-
createIconButton: GetAttributes<DsIconButtonAttrs>;
|
|
18
|
-
createLoaderSpinner: GetAttributes<DsLoaderSpinnerAttrs>;
|
|
19
|
-
createSkeleton: GetAttributes<DsSkeletonAttrs>;
|
|
20
|
-
createToastMessage: GetAttributes<DsToastMessageAttrs>;
|
|
21
|
-
createInlineAlert: GetAttributes<DsInlineAlertAttrs>;
|
|
22
|
-
createTooltip: GetAttributes<DsTooltipAttrs & {
|
|
23
|
-
class?: string;
|
|
24
|
-
children?: any;
|
|
25
|
-
content?: any;
|
|
26
|
-
}>;
|
|
27
|
-
};
|
|
28
|
-
export declare const standardFactory: ComponentFactory;
|
|
29
|
-
export declare const reactFactory: ComponentFactory;
|
|
30
|
-
export {};
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
require(`../node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.cjs`);const e=require(`../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/if-defined.cjs`);require(`../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/if-defined.cjs`);const t=require(`../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/static.cjs`);require(`../node_modules/.pnpm/lit@3.3.1/node_modules/lit/static-html.cjs`);const n=require(`./version.cjs`);var r=t.s(`ds-icon${n.VERSION_TAG_SUFFIX}`),i=t.s(`ds-calendar-day${n.VERSION_TAG_SUFFIX}`),a=t.s(`ds-button${n.VERSION_TAG_SUFFIX}`),o=t.s(`ds-divider${n.VERSION_TAG_SUFFIX}`),s=t.s(`ds-icon-button${n.VERSION_TAG_SUFFIX}`),c=t.s(`ds-loader-spinner${n.VERSION_TAG_SUFFIX}`),l=t.s(`ds-skeleton${n.VERSION_TAG_SUFFIX}`),u=t.s(`ds-toast-message${n.VERSION_TAG_SUFFIX}`),d=t.s(`ds-inline-alert${n.VERSION_TAG_SUFFIX}`),f=t.s(`ds-tooltip${n.VERSION_TAG_SUFFIX}`),p={createIcon:i=>(m(`ds-icon${n.VERSION_TAG_SUFFIX}`,()=>Promise.resolve().then(()=>require(`../components/ds-icon/ds-icon.cjs`))),t.u`
|
|
2
|
-
<${r}
|
|
3
|
-
class=${e.o(i?.class)}
|
|
4
|
-
data-testid=${e.o(i?.[`data-testid`])}
|
|
5
|
-
@click=${i?.[`@click`]}
|
|
6
|
-
@keydown=${i?.[`@keydown`]}
|
|
7
|
-
icon-name=${i?.[`icon-name`]}
|
|
8
|
-
color=${e.o(i?.color)}
|
|
9
|
-
background-color=${e.o(i?.[`background-color`])}
|
|
10
|
-
size=${e.o(i?.size)}
|
|
11
|
-
aria-label=${e.o(i?.[`aria-label`])}
|
|
12
|
-
aria-hidden=${e.o(i?.[`aria-hidden`])}
|
|
13
|
-
role=${e.o(i?.role)}
|
|
14
|
-
tabindex=${e.o(i?.tabindex)}
|
|
15
|
-
>
|
|
16
|
-
${i.children}
|
|
17
|
-
</${r}>
|
|
18
|
-
`),createCalendarDay:(r={})=>(m(`ds-calendar-day${n.VERSION_TAG_SUFFIX}`,()=>Promise.resolve().then(()=>require(`../components/ds-calendar-day/ds-calendar-day.cjs`))),t.u`
|
|
19
|
-
<${i}
|
|
20
|
-
class=${e.o(r?.class)}
|
|
21
|
-
day=${e.o(r?.day)}
|
|
22
|
-
size=${e.o(r?.size)}
|
|
23
|
-
?disabled=${r?.disabled}
|
|
24
|
-
?selected=${r?.selected}
|
|
25
|
-
?today=${r?.today}
|
|
26
|
-
?outside-month=${r?.[`outside-month`]}
|
|
27
|
-
data-testid=${e.o(r?.[`data-testid`])}
|
|
28
|
-
></${i}>
|
|
29
|
-
`),createButton:(r={})=>(m(`ds-button${n.VERSION_TAG_SUFFIX}`,()=>Promise.resolve().then(()=>require(`../components/ds-button/ds-button.cjs`))),t.u`
|
|
30
|
-
<${a}
|
|
31
|
-
class=${r?.class}
|
|
32
|
-
@click=${r?.[`@click`]}
|
|
33
|
-
.size=${e.o(r?.size)}
|
|
34
|
-
type=${r?.type}
|
|
35
|
-
icon-position=${r?.[`icon-position`]}
|
|
36
|
-
.rounded=${r?.rounded}
|
|
37
|
-
.full-width=${r?.[`full-width`]}
|
|
38
|
-
variant=${r?.variant??`primary`}
|
|
39
|
-
mode=${r?.mode??`light`}
|
|
40
|
-
.disabled=${r?.disabled}
|
|
41
|
-
icon-name=${r?.[`icon-name`]}
|
|
42
|
-
html-tag-name=${r?.[`html-tag-name`]}
|
|
43
|
-
href=${r?.href}
|
|
44
|
-
rel=${r?.rel}
|
|
45
|
-
target=${r?.target}
|
|
46
|
-
data-testid=${r?.[`data-testid`]}
|
|
47
|
-
>
|
|
48
|
-
${r.children}
|
|
49
|
-
</${a}>
|
|
50
|
-
`),createDivider:(e={})=>(m(`ds-divider${n.VERSION_TAG_SUFFIX}`,()=>Promise.resolve().then(()=>require(`../components/ds-divider/ds-divider.cjs`))),t.u`
|
|
51
|
-
<${o}
|
|
52
|
-
class=${e?.class}
|
|
53
|
-
variant=${e?.variant??`primary`}
|
|
54
|
-
orientation=${e?.orientation??`horizontal`}
|
|
55
|
-
data-testid=${e?.[`data-testid`]}
|
|
56
|
-
>
|
|
57
|
-
</${o}>
|
|
58
|
-
`),createIconButton:(r={})=>(m(`ds-icon-button${n.VERSION_TAG_SUFFIX}`,()=>Promise.resolve().then(()=>require(`../components/ds-icon-button/ds-icon-button.cjs`))),t.u`
|
|
59
|
-
<${s}
|
|
60
|
-
class=${r?.class}
|
|
61
|
-
@click=${r?.[`@click`]}
|
|
62
|
-
size=${e.o(r?.size)}
|
|
63
|
-
variant=${r?.variant??`primary`}
|
|
64
|
-
mode=${r?.mode??`light`}
|
|
65
|
-
.disabled=${r?.disabled}
|
|
66
|
-
icon-name=${r?.[`icon-name`]}
|
|
67
|
-
html-tag-name=${r?.[`html-tag-name`]}
|
|
68
|
-
href=${r?.href}
|
|
69
|
-
rel=${r?.rel}
|
|
70
|
-
target=${r?.target}
|
|
71
|
-
data-testid=${r?.[`data-testid`]}
|
|
72
|
-
data-aria-label=${r?.[`data-aria-label`]}
|
|
73
|
-
custom-background=${e.o(r?.[`custom-background`])}
|
|
74
|
-
custom-color=${e.o(r?.[`custom-color`])}
|
|
75
|
-
>
|
|
76
|
-
${r.children}
|
|
77
|
-
</${s}>
|
|
78
|
-
`),createLoaderSpinner:(e={})=>(m(`ds-loader-spinner${n.VERSION_TAG_SUFFIX}`,()=>Promise.resolve().then(()=>require(`../components/ds-loader-spinner/ds-loader-spinner.cjs`))),t.u`
|
|
79
|
-
<${c}
|
|
80
|
-
?show=${e?.show}
|
|
81
|
-
orientation=${e?.orientation??`row`}
|
|
82
|
-
mode=${e?.mode??`light`}
|
|
83
|
-
></${c}>
|
|
84
|
-
`),createSkeleton:(r={})=>(m(`ds-skeleton${n.VERSION_TAG_SUFFIX}`,()=>Promise.resolve().then(()=>require(`../components/ds-skeleton/ds-skeleton.cjs`))),t.u`
|
|
85
|
-
<${l}
|
|
86
|
-
class=${e.o(r?.class)}
|
|
87
|
-
data-testid=${e.o(r?.[`data-testid`])}
|
|
88
|
-
variant=${e.o(r?.variant)}
|
|
89
|
-
width=${e.o(r?.width)}
|
|
90
|
-
height=${e.o(r?.height)}
|
|
91
|
-
animation=${e.o(r?.animation)}
|
|
92
|
-
></${l}>
|
|
93
|
-
`),createToastMessage:e=>(m(`ds-toast-message${n.VERSION_TAG_SUFFIX}`,()=>Promise.resolve().then(()=>require(`../components/ds-toast-message/ds-toast-message.cjs`))),t.u`
|
|
94
|
-
<${u}
|
|
95
|
-
data-id="${e[`data-id`]}"
|
|
96
|
-
data-template="${e[`data-template`]}"
|
|
97
|
-
title="${e.title}"
|
|
98
|
-
text="${e.text}"
|
|
99
|
-
status="${e.status}"
|
|
100
|
-
></${u}>
|
|
101
|
-
`),createInlineAlert:e=>(m(`ds-inline-alert${n.VERSION_TAG_SUFFIX}`,()=>Promise.resolve().then(()=>require(`../components/ds-inline-alert/ds-inline-alert.cjs`))),t.u`
|
|
102
|
-
<${d}
|
|
103
|
-
title="${e.title}"
|
|
104
|
-
text="${e.text}"
|
|
105
|
-
status="${e.status}"
|
|
106
|
-
?show=${e.show??!0}
|
|
107
|
-
></${d}>
|
|
108
|
-
`),createTooltip:(r={})=>(m(`ds-tooltip${n.VERSION_TAG_SUFFIX}`,()=>Promise.resolve().then(()=>require(`../components/ds-tooltip/ds-tooltip.cjs`))),t.u`
|
|
109
|
-
<${f}
|
|
110
|
-
class=${e.o(r?.class)}
|
|
111
|
-
mode=${e.o(r.mode)}
|
|
112
|
-
?show=${r.show??!1}
|
|
113
|
-
?disable-hover-listener=${r?.[`disable-hover-listener`]}
|
|
114
|
-
?disable-focus-listener=${r?.[`disable-focus-listener`]}
|
|
115
|
-
?disable-press-listener=${r?.[`disable-press-listener`]}
|
|
116
|
-
>
|
|
117
|
-
${r.children}
|
|
118
|
-
<div slot="content">${r.content}</div>
|
|
119
|
-
</${f}>
|
|
120
|
-
`)};function m(e,t){try{typeof window<`u`&&typeof customElements<`u`&&!customElements.get(e)&&t().catch(e=>{})}catch{}}exports.reactFactory=p;
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import "../node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.js";
|
|
2
|
-
import { o as e } from "../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/if-defined.js";
|
|
3
|
-
import "../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/if-defined.js";
|
|
4
|
-
import { s as t, u as n } from "../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/static.js";
|
|
5
|
-
import "../node_modules/.pnpm/lit@3.3.1/node_modules/lit/static-html.js";
|
|
6
|
-
import { VERSION_TAG_SUFFIX as r } from "./version.js";
|
|
7
|
-
//#region src/utils/componentFactory.ts
|
|
8
|
-
var i = t(`ds-icon${r}`), a = t(`ds-calendar-day${r}`), o = t(`ds-button${r}`), s = t(`ds-divider${r}`), c = t(`ds-icon-button${r}`), l = t(`ds-loader-spinner${r}`), u = t(`ds-skeleton${r}`), d = t(`ds-toast-message${r}`), f = t(`ds-inline-alert${r}`), p = t(`ds-tooltip${r}`), m = {
|
|
9
|
-
createIcon: (t) => (h(`ds-icon${r}`, () => import("../components/ds-icon/ds-icon.js")), n`
|
|
10
|
-
<${i}
|
|
11
|
-
class=${e(t?.class)}
|
|
12
|
-
data-testid=${e(t?.["data-testid"])}
|
|
13
|
-
@click=${t?.["@click"]}
|
|
14
|
-
@keydown=${t?.["@keydown"]}
|
|
15
|
-
icon-name=${t?.["icon-name"]}
|
|
16
|
-
color=${e(t?.color)}
|
|
17
|
-
background-color=${e(t?.["background-color"])}
|
|
18
|
-
size=${e(t?.size)}
|
|
19
|
-
aria-label=${e(t?.["aria-label"])}
|
|
20
|
-
aria-hidden=${e(t?.["aria-hidden"])}
|
|
21
|
-
role=${e(t?.role)}
|
|
22
|
-
tabindex=${e(t?.tabindex)}
|
|
23
|
-
>
|
|
24
|
-
${t.children}
|
|
25
|
-
</${i}>
|
|
26
|
-
`),
|
|
27
|
-
createCalendarDay: (t = {}) => (h(`ds-calendar-day${r}`, () => import("../components/ds-calendar-day/ds-calendar-day.js")), n`
|
|
28
|
-
<${a}
|
|
29
|
-
class=${e(t?.class)}
|
|
30
|
-
day=${e(t?.day)}
|
|
31
|
-
size=${e(t?.size)}
|
|
32
|
-
?disabled=${t?.disabled}
|
|
33
|
-
?selected=${t?.selected}
|
|
34
|
-
?today=${t?.today}
|
|
35
|
-
?outside-month=${t?.["outside-month"]}
|
|
36
|
-
data-testid=${e(t?.["data-testid"])}
|
|
37
|
-
></${a}>
|
|
38
|
-
`),
|
|
39
|
-
createButton: (t = {}) => (h(`ds-button${r}`, () => import("../components/ds-button/ds-button.js")), n`
|
|
40
|
-
<${o}
|
|
41
|
-
class=${t?.class}
|
|
42
|
-
@click=${t?.["@click"]}
|
|
43
|
-
.size=${e(t?.size)}
|
|
44
|
-
type=${t?.type}
|
|
45
|
-
icon-position=${t?.["icon-position"]}
|
|
46
|
-
.rounded=${t?.rounded}
|
|
47
|
-
.full-width=${t?.["full-width"]}
|
|
48
|
-
variant=${t?.variant ?? "primary"}
|
|
49
|
-
mode=${t?.mode ?? "light"}
|
|
50
|
-
.disabled=${t?.disabled}
|
|
51
|
-
icon-name=${t?.["icon-name"]}
|
|
52
|
-
html-tag-name=${t?.["html-tag-name"]}
|
|
53
|
-
href=${t?.href}
|
|
54
|
-
rel=${t?.rel}
|
|
55
|
-
target=${t?.target}
|
|
56
|
-
data-testid=${t?.["data-testid"]}
|
|
57
|
-
>
|
|
58
|
-
${t.children}
|
|
59
|
-
</${o}>
|
|
60
|
-
`),
|
|
61
|
-
createDivider: (e = {}) => (h(`ds-divider${r}`, () => import("../components/ds-divider/ds-divider.js")), n`
|
|
62
|
-
<${s}
|
|
63
|
-
class=${e?.class}
|
|
64
|
-
variant=${e?.variant ?? "primary"}
|
|
65
|
-
orientation=${e?.orientation ?? "horizontal"}
|
|
66
|
-
data-testid=${e?.["data-testid"]}
|
|
67
|
-
>
|
|
68
|
-
</${s}>
|
|
69
|
-
`),
|
|
70
|
-
createIconButton: (t = {}) => (h(`ds-icon-button${r}`, () => import("../components/ds-icon-button/ds-icon-button.js")), n`
|
|
71
|
-
<${c}
|
|
72
|
-
class=${t?.class}
|
|
73
|
-
@click=${t?.["@click"]}
|
|
74
|
-
size=${e(t?.size)}
|
|
75
|
-
variant=${t?.variant ?? "primary"}
|
|
76
|
-
mode=${t?.mode ?? "light"}
|
|
77
|
-
.disabled=${t?.disabled}
|
|
78
|
-
icon-name=${t?.["icon-name"]}
|
|
79
|
-
html-tag-name=${t?.["html-tag-name"]}
|
|
80
|
-
href=${t?.href}
|
|
81
|
-
rel=${t?.rel}
|
|
82
|
-
target=${t?.target}
|
|
83
|
-
data-testid=${t?.["data-testid"]}
|
|
84
|
-
data-aria-label=${t?.["data-aria-label"]}
|
|
85
|
-
custom-background=${e(t?.["custom-background"])}
|
|
86
|
-
custom-color=${e(t?.["custom-color"])}
|
|
87
|
-
>
|
|
88
|
-
${t.children}
|
|
89
|
-
</${c}>
|
|
90
|
-
`),
|
|
91
|
-
createLoaderSpinner: (e = {}) => (h(`ds-loader-spinner${r}`, () => import("../components/ds-loader-spinner/ds-loader-spinner.js")), n`
|
|
92
|
-
<${l}
|
|
93
|
-
?show=${e?.show}
|
|
94
|
-
orientation=${e?.orientation ?? "row"}
|
|
95
|
-
mode=${e?.mode ?? "light"}
|
|
96
|
-
></${l}>
|
|
97
|
-
`),
|
|
98
|
-
createSkeleton: (t = {}) => (h(`ds-skeleton${r}`, () => import("../components/ds-skeleton/ds-skeleton.js")), n`
|
|
99
|
-
<${u}
|
|
100
|
-
class=${e(t?.class)}
|
|
101
|
-
data-testid=${e(t?.["data-testid"])}
|
|
102
|
-
variant=${e(t?.variant)}
|
|
103
|
-
width=${e(t?.width)}
|
|
104
|
-
height=${e(t?.height)}
|
|
105
|
-
animation=${e(t?.animation)}
|
|
106
|
-
></${u}>
|
|
107
|
-
`),
|
|
108
|
-
createToastMessage: (e) => (h(`ds-toast-message${r}`, () => import("../components/ds-toast-message/ds-toast-message.js")), n`
|
|
109
|
-
<${d}
|
|
110
|
-
data-id="${e["data-id"]}"
|
|
111
|
-
data-template="${e["data-template"]}"
|
|
112
|
-
title="${e.title}"
|
|
113
|
-
text="${e.text}"
|
|
114
|
-
status="${e.status}"
|
|
115
|
-
></${d}>
|
|
116
|
-
`),
|
|
117
|
-
createInlineAlert: (e) => (h(`ds-inline-alert${r}`, () => import("../components/ds-inline-alert/ds-inline-alert.js")), n`
|
|
118
|
-
<${f}
|
|
119
|
-
title="${e.title}"
|
|
120
|
-
text="${e.text}"
|
|
121
|
-
status="${e.status}"
|
|
122
|
-
?show=${e.show ?? !0}
|
|
123
|
-
></${f}>
|
|
124
|
-
`),
|
|
125
|
-
createTooltip: (t = {}) => (h(`ds-tooltip${r}`, () => import("../components/ds-tooltip/ds-tooltip.js")), n`
|
|
126
|
-
<${p}
|
|
127
|
-
class=${e(t?.class)}
|
|
128
|
-
mode=${e(t.mode)}
|
|
129
|
-
?show=${t.show ?? !1}
|
|
130
|
-
?disable-hover-listener=${t?.["disable-hover-listener"]}
|
|
131
|
-
?disable-focus-listener=${t?.["disable-focus-listener"]}
|
|
132
|
-
?disable-press-listener=${t?.["disable-press-listener"]}
|
|
133
|
-
>
|
|
134
|
-
${t.children}
|
|
135
|
-
<div slot="content">${t.content}</div>
|
|
136
|
-
</${p}>
|
|
137
|
-
`)
|
|
138
|
-
};
|
|
139
|
-
function h(e, t) {
|
|
140
|
-
try {
|
|
141
|
-
typeof window < "u" && typeof customElements < "u" && !customElements.get(e) && t().catch((e) => {});
|
|
142
|
-
} catch {}
|
|
143
|
-
}
|
|
144
|
-
//#endregion
|
|
145
|
-
export { m as reactFactory };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { DsButtonAttrs } from '../components/ds-button/ds-button.types.ts';
|
|
2
|
-
import type { DsCalendarDayAttrs } from '../components/ds-calendar-day/ds-calendar-day.types.ts';
|
|
3
|
-
import { DsDividerAttrs } from '../components/ds-divider/ds-divider.types';
|
|
4
|
-
import type { DsIconButtonAttrs } from '../components/ds-icon-button/ds-icon-button.types.ts';
|
|
5
|
-
import type { DsIconAttrs } from '../components/ds-icon/ds-icon.types.ts';
|
|
6
|
-
import { DsInlineAlertAttrs } from '../components/ds-inline-alert/ds-inline-alert.types.ts';
|
|
7
|
-
import type { DsLoaderSpinnerAttrs } from '../components/ds-loader-spinner/ds-loader-spinner.types.ts';
|
|
8
|
-
import type { DsSkeletonAttrs } from '../components/ds-skeleton/ds-skeleton.types.ts';
|
|
9
|
-
import { DsToastMessageAttrs } from '../components/ds-toast-message/ds-toast-message.types.ts';
|
|
10
|
-
import type { DsTooltipAttrs } from '../components/ds-tooltip/ds-tooltip.types.ts';
|
|
11
|
-
type GetAttributes<T> = (props?: T) => any;
|
|
12
|
-
export type ComponentFactory = {
|
|
13
|
-
createIcon: GetAttributes<DsIconAttrs>;
|
|
14
|
-
createButton: GetAttributes<DsButtonAttrs>;
|
|
15
|
-
createCalendarDay: GetAttributes<DsCalendarDayAttrs>;
|
|
16
|
-
createDivider: GetAttributes<DsDividerAttrs>;
|
|
17
|
-
createIconButton: GetAttributes<DsIconButtonAttrs>;
|
|
18
|
-
createLoaderSpinner: GetAttributes<DsLoaderSpinnerAttrs>;
|
|
19
|
-
createSkeleton: GetAttributes<DsSkeletonAttrs>;
|
|
20
|
-
createToastMessage: GetAttributes<DsToastMessageAttrs>;
|
|
21
|
-
createInlineAlert: GetAttributes<DsInlineAlertAttrs>;
|
|
22
|
-
createTooltip: GetAttributes<DsTooltipAttrs & {
|
|
23
|
-
class?: string;
|
|
24
|
-
children?: any;
|
|
25
|
-
content?: any;
|
|
26
|
-
}>;
|
|
27
|
-
};
|
|
28
|
-
export declare const standardFactory: ComponentFactory;
|
|
29
|
-
export declare const reactFactory: ComponentFactory;
|
|
30
|
-
export {};
|