@drivenets/design-system 0.0.2 → 0.0.4
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/CHANGELOG.md +13 -0
- package/dist/_virtual/rolldown_runtime.cjs +29 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.cjs +182 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.d.cts +53 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.d.cts.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.d.ts +53 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.d.ts.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.js +181 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.js.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.module.cjs +21 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.module.js +21 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.module.js.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.cjs +12 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.cts +49 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.cts.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.ts +50 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.d.ts.map +1 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.js +12 -0
- package/dist/components/ds-alert-banner/ds-alert-banner.types.js.map +1 -0
- package/dist/components/ds-alert-banner/index.cjs +2 -0
- package/dist/components/ds-alert-banner/index.d.ts +2 -0
- package/dist/components/ds-alert-banner/index.js +2 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.cjs +135 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.d.cts +12 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.d.cts.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.d.ts +12 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.d.ts.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.js +134 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.js.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.module.cjs +16 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.module.js +16 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.module.js.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.types.d.cts +36 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.types.d.cts.map +1 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.types.d.ts +37 -0
- package/dist/components/ds-breadcrumb/ds-breadcrumb.types.d.ts.map +1 -0
- package/dist/components/ds-breadcrumb/index.cjs +1 -0
- package/dist/components/ds-breadcrumb/index.d.ts +2 -0
- package/dist/components/ds-breadcrumb/index.js +1 -0
- package/dist/components/ds-button/ds-button.cjs +32 -0
- package/dist/components/ds-button/ds-button.d.cts +8 -0
- package/dist/components/ds-button/ds-button.d.cts.map +1 -0
- package/dist/components/ds-button/ds-button.d.ts +8 -0
- package/dist/components/ds-button/ds-button.d.ts.map +1 -0
- package/dist/components/ds-button/ds-button.js +32 -0
- package/dist/components/ds-button/ds-button.js.map +1 -0
- package/dist/components/ds-button/ds-button.types.d.cts +12 -0
- package/dist/components/ds-button/ds-button.types.d.cts.map +1 -0
- package/dist/components/ds-button/ds-button.types.d.ts +12 -0
- package/dist/components/ds-button/ds-button.types.d.ts.map +1 -0
- package/dist/components/ds-button/index.cjs +1 -0
- package/dist/components/ds-button/index.d.ts +2 -0
- package/dist/components/ds-button/index.js +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.cjs +95 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js +94 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.js.map +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.module.cjs +27 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.module.js +27 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.module.js.map +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.cts +38 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.cts.map +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.ts +38 -0
- package/dist/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.ts.map +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/index.cjs +1 -0
- package/dist/components/ds-button/versions/ds-button-legacy/index.js +1 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.cjs +102 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js +101 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.js.map +1 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.module.cjs +25 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.module.js +25 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.module.js.map +1 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.types.d.cts +38 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.types.d.cts.map +1 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.types.d.ts +38 -0
- package/dist/components/ds-button/versions/ds-button-new/ds-button-new.types.d.ts.map +1 -0
- package/dist/components/ds-button/versions/ds-button-new/index.cjs +1 -0
- package/dist/components/ds-button/versions/ds-button-new/index.js +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.cjs +123 -0
- package/dist/components/ds-checkbox/ds-checkbox.d.cts +12 -0
- package/dist/components/ds-checkbox/ds-checkbox.d.cts.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.d.ts +12 -0
- package/dist/components/ds-checkbox/ds-checkbox.d.ts.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.js +121 -0
- package/dist/components/ds-checkbox/ds-checkbox.js.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.module.cjs +13 -0
- package/dist/components/ds-checkbox/ds-checkbox.module.js +13 -0
- package/dist/components/ds-checkbox/ds-checkbox.module.js.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.types.d.cts +31 -0
- package/dist/components/ds-checkbox/ds-checkbox.types.d.cts.map +1 -0
- package/dist/components/ds-checkbox/ds-checkbox.types.d.ts +31 -0
- package/dist/components/ds-checkbox/ds-checkbox.types.d.ts.map +1 -0
- package/dist/components/ds-checkbox/index.cjs +1 -0
- package/dist/components/ds-checkbox/index.d.ts +2 -0
- package/dist/components/ds-checkbox/index.js +1 -0
- package/dist/components/ds-chip/ds-chip.cjs +130 -0
- package/dist/components/ds-chip/ds-chip.d.cts +12 -0
- package/dist/components/ds-chip/ds-chip.d.cts.map +1 -0
- package/dist/components/ds-chip/ds-chip.d.ts +12 -0
- package/dist/components/ds-chip/ds-chip.d.ts.map +1 -0
- package/dist/components/ds-chip/ds-chip.js +129 -0
- package/dist/components/ds-chip/ds-chip.js.map +1 -0
- package/dist/components/ds-chip/ds-chip.module.cjs +12 -0
- package/dist/components/ds-chip/ds-chip.module.js +12 -0
- package/dist/components/ds-chip/ds-chip.module.js.map +1 -0
- package/dist/components/ds-chip/ds-chip.types.d.cts +49 -0
- package/dist/components/ds-chip/ds-chip.types.d.cts.map +1 -0
- package/dist/components/ds-chip/ds-chip.types.d.ts +50 -0
- package/dist/components/ds-chip/ds-chip.types.d.ts.map +1 -0
- package/dist/components/ds-chip/index.cjs +1 -0
- package/dist/components/ds-chip/index.d.ts +2 -0
- package/dist/components/ds-chip/index.js +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.cjs +108 -0
- package/dist/components/ds-chip-group/ds-chip-group.d.cts +13 -0
- package/dist/components/ds-chip-group/ds-chip-group.d.cts.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.d.ts +13 -0
- package/dist/components/ds-chip-group/ds-chip-group.d.ts.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.js +106 -0
- package/dist/components/ds-chip-group/ds-chip-group.js.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.module.cjs +15 -0
- package/dist/components/ds-chip-group/ds-chip-group.module.js +15 -0
- package/dist/components/ds-chip-group/ds-chip-group.module.js.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.types.d.cts +55 -0
- package/dist/components/ds-chip-group/ds-chip-group.types.d.cts.map +1 -0
- package/dist/components/ds-chip-group/ds-chip-group.types.d.ts +55 -0
- package/dist/components/ds-chip-group/ds-chip-group.types.d.ts.map +1 -0
- package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.cjs +51 -0
- package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.js +51 -0
- package/dist/components/ds-chip-group/hooks/use-chip-row-calculation.js.map +1 -0
- package/dist/components/ds-chip-group/index.cjs +1 -0
- package/dist/components/ds-chip-group/index.d.ts +2 -0
- package/dist/components/ds-chip-group/index.js +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.cjs +235 -0
- package/dist/components/ds-confirmation/ds-confirmation.d.cts +72 -0
- package/dist/components/ds-confirmation/ds-confirmation.d.cts.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.d.ts +72 -0
- package/dist/components/ds-confirmation/ds-confirmation.d.ts.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.js +234 -0
- package/dist/components/ds-confirmation/ds-confirmation.js.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.module.cjs +21 -0
- package/dist/components/ds-confirmation/ds-confirmation.module.js +21 -0
- package/dist/components/ds-confirmation/ds-confirmation.module.js.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.types.d.cts +33 -0
- package/dist/components/ds-confirmation/ds-confirmation.types.d.cts.map +1 -0
- package/dist/components/ds-confirmation/ds-confirmation.types.d.ts +33 -0
- package/dist/components/ds-confirmation/ds-confirmation.types.d.ts.map +1 -0
- package/dist/components/ds-confirmation/index.cjs +1 -0
- package/dist/components/ds-confirmation/index.d.ts +2 -0
- package/dist/components/ds-confirmation/index.js +1 -0
- package/dist/components/ds-dialog/ds-dialog.cjs +60 -0
- package/dist/components/ds-dialog/ds-dialog.d.cts +8 -0
- package/dist/components/ds-dialog/ds-dialog.d.cts.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.d.ts +8 -0
- package/dist/components/ds-dialog/ds-dialog.d.ts.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.js +58 -0
- package/dist/components/ds-dialog/ds-dialog.js.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.module.cjs +12 -0
- package/dist/components/ds-dialog/ds-dialog.module.js +12 -0
- package/dist/components/ds-dialog/ds-dialog.module.js.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.types.d.cts +55 -0
- package/dist/components/ds-dialog/ds-dialog.types.d.cts.map +1 -0
- package/dist/components/ds-dialog/ds-dialog.types.d.ts +55 -0
- package/dist/components/ds-dialog/ds-dialog.types.d.ts.map +1 -0
- package/dist/components/ds-dialog/index.cjs +1 -0
- package/dist/components/ds-dialog/index.d.ts +2 -0
- package/dist/components/ds-dialog/index.js +1 -0
- package/dist/components/ds-drawer/ds-drawer.cjs +297 -0
- package/dist/components/ds-drawer/ds-drawer.d.cts +90 -0
- package/dist/components/ds-drawer/ds-drawer.d.cts.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.d.ts +90 -0
- package/dist/components/ds-drawer/ds-drawer.d.ts.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.js +296 -0
- package/dist/components/ds-drawer/ds-drawer.js.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.module.cjs +38 -0
- package/dist/components/ds-drawer/ds-drawer.module.js +38 -0
- package/dist/components/ds-drawer/ds-drawer.module.js.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.types.d.cts +58 -0
- package/dist/components/ds-drawer/ds-drawer.types.d.cts.map +1 -0
- package/dist/components/ds-drawer/ds-drawer.types.d.ts +58 -0
- package/dist/components/ds-drawer/ds-drawer.types.d.ts.map +1 -0
- package/dist/components/ds-drawer/index.cjs +1 -0
- package/dist/components/ds-drawer/index.d.ts +2 -0
- package/dist/components/ds-drawer/index.js +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.cjs +629 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.cts +58 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.cts.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.ts +58 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.d.ts.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js +626 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.js.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.module.cjs +25 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.module.js +25 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.module.js.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.cts +247 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.cts.map +1 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.ts +247 -0
- package/dist/components/ds-dropdown-menu/ds-dropdown-menu.types.d.ts.map +1 -0
- package/dist/components/ds-dropdown-menu/index.cjs +1 -0
- package/dist/components/ds-dropdown-menu/index.d.ts +2 -0
- package/dist/components/ds-dropdown-menu/index.js +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.cjs +173 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.cts +13 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.cts.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.ts +13 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.d.ts.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.js +172 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.js.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.module.cjs +13 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.module.js +13 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.module.js.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.types.d.cts +21 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.types.d.cts.map +1 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.types.d.ts +23 -0
- package/dist/components/ds-expandable-text-input/ds-expandable-text-input.types.d.ts.map +1 -0
- package/dist/components/ds-expandable-text-input/index.cjs +1 -0
- package/dist/components/ds-expandable-text-input/index.d.ts +2 -0
- package/dist/components/ds-expandable-text-input/index.js +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.cjs +217 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.d.cts +13 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.d.cts.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.d.ts +13 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.d.ts.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.js +216 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.js.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.module.cjs +15 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.module.js +15 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.module.js.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.types.d.cts +98 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.types.d.cts.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.types.d.ts +98 -0
- package/dist/components/ds-file-upload/components/file-upload/file-upload.types.d.ts.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload/index.cjs +1 -0
- package/dist/components/ds-file-upload/components/file-upload/index.d.ts +2 -0
- package/dist/components/ds-file-upload/components/file-upload/index.js +1 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.cjs +297 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.js +296 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.js.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.module.cjs +24 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.module.js +24 -0
- package/dist/components/ds-file-upload/components/file-upload-item/file-upload-item.module.js.map +1 -0
- package/dist/components/ds-file-upload/components/file-upload-item/index.cjs +1 -0
- package/dist/components/ds-file-upload/components/file-upload-item/index.js +1 -0
- package/dist/components/ds-file-upload/ds-file-upload-api.types.d.cts +38 -0
- package/dist/components/ds-file-upload/ds-file-upload-api.types.d.cts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload-api.types.d.ts +38 -0
- package/dist/components/ds-file-upload/ds-file-upload-api.types.d.ts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.cjs +117 -0
- package/dist/components/ds-file-upload/ds-file-upload.d.cts +12 -0
- package/dist/components/ds-file-upload/ds-file-upload.d.cts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.d.ts +12 -0
- package/dist/components/ds-file-upload/ds-file-upload.d.ts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.js +117 -0
- package/dist/components/ds-file-upload/ds-file-upload.js.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.types.d.cts +36 -0
- package/dist/components/ds-file-upload/ds-file-upload.types.d.cts.map +1 -0
- package/dist/components/ds-file-upload/ds-file-upload.types.d.ts +37 -0
- package/dist/components/ds-file-upload/ds-file-upload.types.d.ts.map +1 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.cjs +30 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.d.cts +25 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.d.cts.map +1 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.d.ts +25 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.d.ts.map +1 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.js +28 -0
- package/dist/components/ds-file-upload/errors/file-upload-errors.js.map +1 -0
- package/dist/components/ds-file-upload/hooks/index.cjs +1 -0
- package/dist/components/ds-file-upload/hooks/index.d.ts +1 -0
- package/dist/components/ds-file-upload/hooks/index.js +1 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.cjs +201 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.d.cts +59 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.d.cts.map +1 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.d.ts +60 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.d.ts.map +1 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.js +201 -0
- package/dist/components/ds-file-upload/hooks/use-file-upload.js.map +1 -0
- package/dist/components/ds-file-upload/index.cjs +6 -0
- package/dist/components/ds-file-upload/index.d.ts +9 -0
- package/dist/components/ds-file-upload/index.js +6 -0
- package/dist/components/ds-file-upload/types/accept-types.cjs +117 -0
- package/dist/components/ds-file-upload/types/accept-types.d.cts +21 -0
- package/dist/components/ds-file-upload/types/accept-types.d.cts.map +1 -0
- package/dist/components/ds-file-upload/types/accept-types.d.ts +21 -0
- package/dist/components/ds-file-upload/types/accept-types.d.ts.map +1 -0
- package/dist/components/ds-file-upload/types/accept-types.js +117 -0
- package/dist/components/ds-file-upload/types/accept-types.js.map +1 -0
- package/dist/components/ds-file-upload/utils/accept-utils.cjs +26 -0
- package/dist/components/ds-file-upload/utils/accept-utils.js +26 -0
- package/dist/components/ds-file-upload/utils/accept-utils.js.map +1 -0
- package/dist/components/ds-file-upload/utils/constants.cjs +24 -0
- package/dist/components/ds-file-upload/utils/constants.js +22 -0
- package/dist/components/ds-file-upload/utils/constants.js.map +1 -0
- package/dist/components/ds-file-upload/utils/file-factory.cjs +20 -0
- package/dist/components/ds-file-upload/utils/file-factory.js +20 -0
- package/dist/components/ds-file-upload/utils/file-factory.js.map +1 -0
- package/dist/components/ds-file-upload/utils/format-file-size.cjs +22 -0
- package/dist/components/ds-file-upload/utils/format-file-size.js +22 -0
- package/dist/components/ds-file-upload/utils/format-file-size.js.map +1 -0
- package/dist/components/ds-file-upload/utils/generate-helper-text.cjs +21 -0
- package/dist/components/ds-file-upload/utils/generate-helper-text.js +22 -0
- package/dist/components/ds-file-upload/utils/generate-helper-text.js.map +1 -0
- package/dist/components/ds-file-upload/utils/get-error-message.cjs +19 -0
- package/dist/components/ds-file-upload/utils/get-error-message.js +19 -0
- package/dist/components/ds-file-upload/utils/get-error-message.js.map +1 -0
- package/dist/components/ds-file-upload/utils/is-file-equal.cjs +13 -0
- package/dist/components/ds-file-upload/utils/is-file-equal.js +13 -0
- package/dist/components/ds-file-upload/utils/is-file-equal.js.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.cjs +179 -0
- package/dist/components/ds-form-control/ds-form-control.d.cts +33 -0
- package/dist/components/ds-form-control/ds-form-control.d.cts.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.d.ts +38 -0
- package/dist/components/ds-form-control/ds-form-control.d.ts.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.js +178 -0
- package/dist/components/ds-form-control/ds-form-control.js.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.module.cjs +24 -0
- package/dist/components/ds-form-control/ds-form-control.module.js +24 -0
- package/dist/components/ds-form-control/ds-form-control.module.js.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.types.cjs +11 -0
- package/dist/components/ds-form-control/ds-form-control.types.d.cts +59 -0
- package/dist/components/ds-form-control/ds-form-control.types.d.cts.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.types.d.ts +60 -0
- package/dist/components/ds-form-control/ds-form-control.types.d.ts.map +1 -0
- package/dist/components/ds-form-control/ds-form-control.types.js +11 -0
- package/dist/components/ds-form-control/ds-form-control.types.js.map +1 -0
- package/dist/components/ds-form-control/index.cjs +2 -0
- package/dist/components/ds-form-control/index.d.ts +2 -0
- package/dist/components/ds-form-control/index.js +2 -0
- package/dist/components/ds-grid/ds-grid.cjs +36 -0
- package/dist/components/ds-grid/ds-grid.d.cts +16 -0
- package/dist/components/ds-grid/ds-grid.d.cts.map +1 -0
- package/dist/components/ds-grid/ds-grid.d.ts +16 -0
- package/dist/components/ds-grid/ds-grid.d.ts.map +1 -0
- package/dist/components/ds-grid/ds-grid.js +34 -0
- package/dist/components/ds-grid/ds-grid.js.map +1 -0
- package/dist/components/ds-grid/ds-grid.types.d.cts +50 -0
- package/dist/components/ds-grid/ds-grid.types.d.cts.map +1 -0
- package/dist/components/ds-grid/ds-grid.types.d.ts +50 -0
- package/dist/components/ds-grid/ds-grid.types.d.ts.map +1 -0
- package/dist/components/ds-grid/index.cjs +1 -0
- package/dist/components/ds-grid/index.d.ts +2 -0
- package/dist/components/ds-grid/index.js +1 -0
- package/dist/components/ds-icon/ds-icon.cjs +100 -0
- package/dist/components/ds-icon/ds-icon.d.cts +12 -0
- package/dist/components/ds-icon/ds-icon.d.cts.map +1 -0
- package/dist/components/ds-icon/ds-icon.d.ts +12 -0
- package/dist/components/ds-icon/ds-icon.d.ts.map +1 -0
- package/dist/components/ds-icon/ds-icon.js +99 -0
- package/dist/components/ds-icon/ds-icon.js.map +1 -0
- package/dist/components/ds-icon/ds-icon.module.cjs +14 -0
- package/dist/components/ds-icon/ds-icon.module.js +14 -0
- package/dist/components/ds-icon/ds-icon.module.js.map +1 -0
- package/dist/components/ds-icon/ds-icon.types.cjs +14 -0
- package/dist/components/ds-icon/ds-icon.types.d.cts +46 -0
- package/dist/components/ds-icon/ds-icon.types.d.cts.map +1 -0
- package/dist/components/ds-icon/ds-icon.types.d.ts +46 -0
- package/dist/components/ds-icon/ds-icon.types.d.ts.map +1 -0
- package/dist/components/ds-icon/ds-icon.types.js +13 -0
- package/dist/components/ds-icon/ds-icon.types.js.map +1 -0
- package/dist/components/ds-icon/index.cjs +2 -0
- package/dist/components/ds-icon/index.d.ts +2 -0
- package/dist/components/ds-icon/index.js +2 -0
- package/dist/components/ds-icon/material-icons.d.cts +6186 -0
- package/dist/components/ds-icon/material-icons.d.cts.map +1 -0
- package/dist/components/ds-icon/material-icons.d.ts +6186 -0
- package/dist/components/ds-icon/material-icons.d.ts.map +1 -0
- package/dist/components/ds-modal/ds-modal.cjs +252 -0
- package/dist/components/ds-modal/ds-modal.d.cts +79 -0
- package/dist/components/ds-modal/ds-modal.d.cts.map +1 -0
- package/dist/components/ds-modal/ds-modal.d.ts +79 -0
- package/dist/components/ds-modal/ds-modal.d.ts.map +1 -0
- package/dist/components/ds-modal/ds-modal.js +251 -0
- package/dist/components/ds-modal/ds-modal.js.map +1 -0
- package/dist/components/ds-modal/ds-modal.module.cjs +31 -0
- package/dist/components/ds-modal/ds-modal.module.js +31 -0
- package/dist/components/ds-modal/ds-modal.module.js.map +1 -0
- package/dist/components/ds-modal/ds-modal.types.d.cts +43 -0
- package/dist/components/ds-modal/ds-modal.types.d.cts.map +1 -0
- package/dist/components/ds-modal/ds-modal.types.d.ts +43 -0
- package/dist/components/ds-modal/ds-modal.types.d.ts.map +1 -0
- package/dist/components/ds-modal/index.cjs +1 -0
- package/dist/components/ds-modal/index.d.ts +2 -0
- package/dist/components/ds-modal/index.js +1 -0
- package/dist/components/ds-number-input/ds-number-input.cjs +158 -0
- package/dist/components/ds-number-input/ds-number-input.d.cts +8 -0
- package/dist/components/ds-number-input/ds-number-input.d.cts.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.d.ts +8 -0
- package/dist/components/ds-number-input/ds-number-input.d.ts.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.js +157 -0
- package/dist/components/ds-number-input/ds-number-input.js.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.module.cjs +14 -0
- package/dist/components/ds-number-input/ds-number-input.module.js +14 -0
- package/dist/components/ds-number-input/ds-number-input.module.js.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.types.d.cts +80 -0
- package/dist/components/ds-number-input/ds-number-input.types.d.cts.map +1 -0
- package/dist/components/ds-number-input/ds-number-input.types.d.ts +80 -0
- package/dist/components/ds-number-input/ds-number-input.types.d.ts.map +1 -0
- package/dist/components/ds-number-input/index.cjs +1 -0
- package/dist/components/ds-number-input/index.d.ts +2 -0
- package/dist/components/ds-number-input/index.js +1 -0
- package/dist/components/ds-panel/ds-panel.cjs +130 -0
- package/dist/components/ds-panel/ds-panel.d.cts +17 -0
- package/dist/components/ds-panel/ds-panel.d.cts.map +1 -0
- package/dist/components/ds-panel/ds-panel.d.ts +17 -0
- package/dist/components/ds-panel/ds-panel.d.ts.map +1 -0
- package/dist/components/ds-panel/ds-panel.js +128 -0
- package/dist/components/ds-panel/ds-panel.js.map +1 -0
- package/dist/components/ds-panel/ds-panel.module.cjs +13 -0
- package/dist/components/ds-panel/ds-panel.module.js +13 -0
- package/dist/components/ds-panel/ds-panel.module.js.map +1 -0
- package/dist/components/ds-panel/ds-panel.types.d.cts +19 -0
- package/dist/components/ds-panel/ds-panel.types.d.cts.map +1 -0
- package/dist/components/ds-panel/ds-panel.types.d.ts +19 -0
- package/dist/components/ds-panel/ds-panel.types.d.ts.map +1 -0
- package/dist/components/ds-panel/index.cjs +1 -0
- package/dist/components/ds-panel/index.d.ts +2 -0
- package/dist/components/ds-panel/index.js +1 -0
- package/dist/components/ds-password-input/ds-password-input.cjs +125 -0
- package/dist/components/ds-password-input/ds-password-input.d.cts +8 -0
- package/dist/components/ds-password-input/ds-password-input.d.cts.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.d.ts +8 -0
- package/dist/components/ds-password-input/ds-password-input.d.ts.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.js +124 -0
- package/dist/components/ds-password-input/ds-password-input.js.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.module.cjs +14 -0
- package/dist/components/ds-password-input/ds-password-input.module.js +14 -0
- package/dist/components/ds-password-input/ds-password-input.module.js.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.types.d.cts +66 -0
- package/dist/components/ds-password-input/ds-password-input.types.d.cts.map +1 -0
- package/dist/components/ds-password-input/ds-password-input.types.d.ts +66 -0
- package/dist/components/ds-password-input/ds-password-input.types.d.ts.map +1 -0
- package/dist/components/ds-password-input/index.cjs +1 -0
- package/dist/components/ds-password-input/index.d.ts +2 -0
- package/dist/components/ds-password-input/index.js +1 -0
- package/dist/components/ds-popover/ds-popover.cjs +64 -0
- package/dist/components/ds-popover/ds-popover.d.cts +8 -0
- package/dist/components/ds-popover/ds-popover.d.cts.map +1 -0
- package/dist/components/ds-popover/ds-popover.d.ts +8 -0
- package/dist/components/ds-popover/ds-popover.d.ts.map +1 -0
- package/dist/components/ds-popover/ds-popover.js +62 -0
- package/dist/components/ds-popover/ds-popover.js.map +1 -0
- package/dist/components/ds-popover/ds-popover.module.cjs +9 -0
- package/dist/components/ds-popover/ds-popover.module.js +9 -0
- package/dist/components/ds-popover/ds-popover.module.js.map +1 -0
- package/dist/components/ds-popover/ds-popover.types.d.cts +28 -0
- package/dist/components/ds-popover/ds-popover.types.d.cts.map +1 -0
- package/dist/components/ds-popover/ds-popover.types.d.ts +28 -0
- package/dist/components/ds-popover/ds-popover.types.d.ts.map +1 -0
- package/dist/components/ds-popover/index.cjs +1 -0
- package/dist/components/ds-popover/index.d.ts +2 -0
- package/dist/components/ds-popover/index.js +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.cjs +255 -0
- package/dist/components/ds-radio-group/ds-radio-group.d.cts +27 -0
- package/dist/components/ds-radio-group/ds-radio-group.d.cts.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.d.ts +27 -0
- package/dist/components/ds-radio-group/ds-radio-group.d.ts.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.js +252 -0
- package/dist/components/ds-radio-group/ds-radio-group.js.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.module.cjs +14 -0
- package/dist/components/ds-radio-group/ds-radio-group.module.js +14 -0
- package/dist/components/ds-radio-group/ds-radio-group.module.js.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.cjs +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.d.cts +87 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.d.cts.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.d.ts +87 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.d.ts.map +1 -0
- package/dist/components/ds-radio-group/ds-radio-group.types.js +1 -0
- package/dist/components/ds-radio-group/index.cjs +2 -0
- package/dist/components/ds-radio-group/index.d.ts +2 -0
- package/dist/components/ds-radio-group/index.js +2 -0
- package/dist/components/ds-select/ds-select.cjs +276 -0
- package/dist/components/ds-select/ds-select.d.cts +21 -0
- package/dist/components/ds-select/ds-select.d.cts.map +1 -0
- package/dist/components/ds-select/ds-select.d.ts +21 -0
- package/dist/components/ds-select/ds-select.d.ts.map +1 -0
- package/dist/components/ds-select/ds-select.js +275 -0
- package/dist/components/ds-select/ds-select.js.map +1 -0
- package/dist/components/ds-select/ds-select.module.cjs +24 -0
- package/dist/components/ds-select/ds-select.module.js +24 -0
- package/dist/components/ds-select/ds-select.module.js.map +1 -0
- package/dist/components/ds-select/ds-select.types.d.cts +74 -0
- package/dist/components/ds-select/ds-select.types.d.cts.map +1 -0
- package/dist/components/ds-select/ds-select.types.d.ts +75 -0
- package/dist/components/ds-select/ds-select.types.d.ts.map +1 -0
- package/dist/components/ds-select/index.cjs +1 -0
- package/dist/components/ds-select/index.d.ts +2 -0
- package/dist/components/ds-select/index.js +1 -0
- package/dist/components/ds-select/select-items-chips.cjs +97 -0
- package/dist/components/ds-select/select-items-chips.js +97 -0
- package/dist/components/ds-select/select-items-chips.js.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.cjs +252 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts +22 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.cts.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts +22 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.d.ts.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.js +251 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.js.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.module.cjs +15 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.module.js +15 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.module.js.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.cjs +16 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.d.cts +65 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.d.cts.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.d.ts +65 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.d.ts.map +1 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.js +16 -0
- package/dist/components/ds-smart-tabs/ds-smart-tabs.types.js.map +1 -0
- package/dist/components/ds-smart-tabs/index.cjs +2 -0
- package/dist/components/ds-smart-tabs/index.d.ts +2 -0
- package/dist/components/ds-smart-tabs/index.js +2 -0
- package/dist/components/ds-spinner/ds-spinner.cjs +122 -0
- package/dist/components/ds-spinner/ds-spinner.d.cts +12 -0
- package/dist/components/ds-spinner/ds-spinner.d.cts.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.d.ts +12 -0
- package/dist/components/ds-spinner/ds-spinner.d.ts.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.js +121 -0
- package/dist/components/ds-spinner/ds-spinner.js.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.module.cjs +11 -0
- package/dist/components/ds-spinner/ds-spinner.module.js +11 -0
- package/dist/components/ds-spinner/ds-spinner.module.js.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.types.cjs +10 -0
- package/dist/components/ds-spinner/ds-spinner.types.d.cts +23 -0
- package/dist/components/ds-spinner/ds-spinner.types.d.cts.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.types.d.ts +23 -0
- package/dist/components/ds-spinner/ds-spinner.types.d.ts.map +1 -0
- package/dist/components/ds-spinner/ds-spinner.types.js +10 -0
- package/dist/components/ds-spinner/ds-spinner.types.js.map +1 -0
- package/dist/components/ds-spinner/index.cjs +2 -0
- package/dist/components/ds-spinner/index.d.ts +2 -0
- package/dist/components/ds-spinner/index.js +2 -0
- package/dist/components/ds-status-badge/ds-status-badge.cjs +79 -0
- package/dist/components/ds-status-badge/ds-status-badge.d.cts +12 -0
- package/dist/components/ds-status-badge/ds-status-badge.d.cts.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.d.ts +12 -0
- package/dist/components/ds-status-badge/ds-status-badge.d.ts.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.js +78 -0
- package/dist/components/ds-status-badge/ds-status-badge.js.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.module.cjs +18 -0
- package/dist/components/ds-status-badge/ds-status-badge.module.js +18 -0
- package/dist/components/ds-status-badge/ds-status-badge.module.js.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.types.d.cts +47 -0
- package/dist/components/ds-status-badge/ds-status-badge.types.d.cts.map +1 -0
- package/dist/components/ds-status-badge/ds-status-badge.types.d.ts +48 -0
- package/dist/components/ds-status-badge/ds-status-badge.types.d.ts.map +1 -0
- package/dist/components/ds-status-badge/index.cjs +1 -0
- package/dist/components/ds-status-badge/index.d.ts +2 -0
- package/dist/components/ds-status-badge/index.js +1 -0
- package/dist/components/ds-stepper/components/ds-step-content.cjs +74 -0
- package/dist/components/ds-stepper/components/ds-step-content.d.cts +19 -0
- package/dist/components/ds-stepper/components/ds-step-content.d.cts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-content.d.ts +19 -0
- package/dist/components/ds-stepper/components/ds-step-content.d.ts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-content.js +73 -0
- package/dist/components/ds-stepper/components/ds-step-content.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-description.cjs +23 -0
- package/dist/components/ds-stepper/components/ds-step-description.js +23 -0
- package/dist/components/ds-stepper/components/ds-step-description.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-label.cjs +23 -0
- package/dist/components/ds-stepper/components/ds-step-label.js +23 -0
- package/dist/components/ds-stepper/components/ds-step-label.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.cjs +33 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.d.cts +10 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.d.cts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.d.ts +10 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.d.ts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.js +33 -0
- package/dist/components/ds-stepper/components/ds-step-next-button.js.map +1 -0
- package/dist/components/ds-stepper/components/ds-step.cjs +126 -0
- package/dist/components/ds-stepper/components/ds-step.d.cts +16 -0
- package/dist/components/ds-stepper/components/ds-step.d.cts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step.d.ts +16 -0
- package/dist/components/ds-stepper/components/ds-step.d.ts.map +1 -0
- package/dist/components/ds-stepper/components/ds-step.js +125 -0
- package/dist/components/ds-stepper/components/ds-step.js.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.cjs +78 -0
- package/dist/components/ds-stepper/ds-stepper.d.cts +15 -0
- package/dist/components/ds-stepper/ds-stepper.d.cts.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.d.ts +15 -0
- package/dist/components/ds-stepper/ds-stepper.d.ts.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.js +77 -0
- package/dist/components/ds-stepper/ds-stepper.js.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.module.cjs +18 -0
- package/dist/components/ds-stepper/ds-stepper.module.js +18 -0
- package/dist/components/ds-stepper/ds-stepper.module.js.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.types.d.cts +13 -0
- package/dist/components/ds-stepper/ds-stepper.types.d.cts.map +1 -0
- package/dist/components/ds-stepper/ds-stepper.types.d.ts +13 -0
- package/dist/components/ds-stepper/ds-stepper.types.d.ts.map +1 -0
- package/dist/components/ds-stepper/hooks/use-stepper.cjs +14 -0
- package/dist/components/ds-stepper/hooks/use-stepper.js +13 -0
- package/dist/components/ds-stepper/hooks/use-stepper.js.map +1 -0
- package/dist/components/ds-stepper/hooks/use-steps.cjs +40 -0
- package/dist/components/ds-stepper/hooks/use-steps.js +39 -0
- package/dist/components/ds-stepper/hooks/use-steps.js.map +1 -0
- package/dist/components/ds-stepper/index.cjs +4 -0
- package/dist/components/ds-stepper/index.d.ts +5 -0
- package/dist/components/ds-stepper/index.js +4 -0
- package/dist/components/ds-system-status/ds-system-status.cjs +67 -0
- package/dist/components/ds-system-status/ds-system-status.d.cts +13 -0
- package/dist/components/ds-system-status/ds-system-status.d.cts.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.d.ts +13 -0
- package/dist/components/ds-system-status/ds-system-status.d.ts.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.js +66 -0
- package/dist/components/ds-system-status/ds-system-status.js.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.module.cjs +17 -0
- package/dist/components/ds-system-status/ds-system-status.module.js +17 -0
- package/dist/components/ds-system-status/ds-system-status.module.js.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.types.cjs +18 -0
- package/dist/components/ds-system-status/ds-system-status.types.d.cts +31 -0
- package/dist/components/ds-system-status/ds-system-status.types.d.cts.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.types.d.ts +31 -0
- package/dist/components/ds-system-status/ds-system-status.types.d.ts.map +1 -0
- package/dist/components/ds-system-status/ds-system-status.types.js +18 -0
- package/dist/components/ds-system-status/ds-system-status.types.js.map +1 -0
- package/dist/components/ds-system-status/index.cjs +2 -0
- package/dist/components/ds-system-status/index.d.ts +2 -0
- package/dist/components/ds-system-status/index.js +2 -0
- package/dist/components/ds-table/components/core-table/core-table.cjs +312 -0
- package/dist/components/ds-table/components/core-table/core-table.js +306 -0
- package/dist/components/ds-table/components/core-table/core-table.js.map +1 -0
- package/dist/components/ds-table/components/core-table/core-table.module.cjs +12 -0
- package/dist/components/ds-table/components/core-table/core-table.module.js +12 -0
- package/dist/components/ds-table/components/core-table/core-table.module.js.map +1 -0
- package/dist/components/ds-table/components/core-table/index.cjs +1 -0
- package/dist/components/ds-table/components/core-table/index.js +1 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.cjs +161 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js +160 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.module.cjs +20 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.module.js +20 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/ds-table-bulk-actions.module.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/index.cjs +1 -0
- package/dist/components/ds-table/components/ds-table-bulk-actions/index.js +1 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.cjs +175 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.d.ts +2 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.js +174 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.module.cjs +13 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.module.js +13 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.module.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.cts +41 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.cts.map +1 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.ts +42 -0
- package/dist/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.ts.map +1 -0
- package/dist/components/ds-table/components/ds-table-cell/index.cjs +1 -0
- package/dist/components/ds-table/components/ds-table-cell/index.d.ts +2 -0
- package/dist/components/ds-table/components/ds-table-cell/index.js +1 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.cjs +104 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.js +103 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.module.cjs +20 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.module.js +20 -0
- package/dist/components/ds-table/components/ds-table-header/ds-table-header.module.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-header/index.cjs +1 -0
- package/dist/components/ds-table/components/ds-table-header/index.js +1 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.cjs +312 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.js +310 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.module.cjs +23 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.module.js +23 -0
- package/dist/components/ds-table/components/ds-table-row/ds-table-row.module.js.map +1 -0
- package/dist/components/ds-table/components/ds-table-row/index.cjs +1 -0
- package/dist/components/ds-table/components/ds-table-row/index.js +1 -0
- package/dist/components/ds-table/context/ds-table-context.cjs +14 -0
- package/dist/components/ds-table/context/ds-table-context.js +13 -0
- package/dist/components/ds-table/context/ds-table-context.js.map +1 -0
- package/dist/components/ds-table/ds-table.cjs +200 -0
- package/dist/components/ds-table/ds-table.d.cts +45 -0
- package/dist/components/ds-table/ds-table.d.cts.map +1 -0
- package/dist/components/ds-table/ds-table.d.ts +45 -0
- package/dist/components/ds-table/ds-table.d.ts.map +1 -0
- package/dist/components/ds-table/ds-table.js +199 -0
- package/dist/components/ds-table/ds-table.js.map +1 -0
- package/dist/components/ds-table/ds-table.module.cjs +25 -0
- package/dist/components/ds-table/ds-table.module.js +25 -0
- package/dist/components/ds-table/ds-table.module.js.map +1 -0
- package/dist/components/ds-table/ds-table.types.d.cts +332 -0
- package/dist/components/ds-table/ds-table.types.d.cts.map +1 -0
- package/dist/components/ds-table/ds-table.types.d.ts +333 -0
- package/dist/components/ds-table/ds-table.types.d.ts.map +1 -0
- package/dist/components/ds-table/hooks/use-drag-and-drop.cjs +142 -0
- package/dist/components/ds-table/hooks/use-drag-and-drop.js +141 -0
- package/dist/components/ds-table/hooks/use-drag-and-drop.js.map +1 -0
- package/dist/components/ds-table/index.cjs +1 -0
- package/dist/components/ds-table/index.d.ts +4 -0
- package/dist/components/ds-table/index.js +1 -0
- package/dist/components/ds-table/styles/shared/ds-table-shared.module.cjs +17 -0
- package/dist/components/ds-table/styles/shared/ds-table-shared.module.js +17 -0
- package/dist/components/ds-table/styles/shared/ds-table-shared.module.js.map +1 -0
- package/dist/components/ds-table/utils/column-styling.cjs +23 -0
- package/dist/components/ds-table/utils/column-styling.js +23 -0
- package/dist/components/ds-table/utils/column-styling.js.map +1 -0
- package/dist/components/ds-table/utils/create-columns-grid-template.cjs +11 -0
- package/dist/components/ds-table/utils/create-columns-grid-template.js +11 -0
- package/dist/components/ds-table/utils/create-columns-grid-template.js.map +1 -0
- package/dist/components/ds-table/utils/merge-refs.cjs +13 -0
- package/dist/components/ds-table/utils/merge-refs.js +13 -0
- package/dist/components/ds-table/utils/merge-refs.js.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.cjs +142 -0
- package/dist/components/ds-text-input/ds-text-input.d.cts +8 -0
- package/dist/components/ds-text-input/ds-text-input.d.cts.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.d.ts +8 -0
- package/dist/components/ds-text-input/ds-text-input.d.ts.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.js +141 -0
- package/dist/components/ds-text-input/ds-text-input.js.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.module.cjs +15 -0
- package/dist/components/ds-text-input/ds-text-input.module.js +15 -0
- package/dist/components/ds-text-input/ds-text-input.module.js.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.types.cjs +6 -0
- package/dist/components/ds-text-input/ds-text-input.types.d.cts +111 -0
- package/dist/components/ds-text-input/ds-text-input.types.d.cts.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.types.d.ts +111 -0
- package/dist/components/ds-text-input/ds-text-input.types.d.ts.map +1 -0
- package/dist/components/ds-text-input/ds-text-input.types.js +6 -0
- package/dist/components/ds-text-input/ds-text-input.types.js.map +1 -0
- package/dist/components/ds-text-input/index.cjs +2 -0
- package/dist/components/ds-text-input/index.d.ts +2 -0
- package/dist/components/ds-text-input/index.js +2 -0
- package/dist/components/ds-textarea/ds-textarea.cjs +78 -0
- package/dist/components/ds-textarea/ds-textarea.d.cts +8 -0
- package/dist/components/ds-textarea/ds-textarea.d.cts.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.d.ts +8 -0
- package/dist/components/ds-textarea/ds-textarea.d.ts.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.js +77 -0
- package/dist/components/ds-textarea/ds-textarea.js.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.module.cjs +6 -0
- package/dist/components/ds-textarea/ds-textarea.module.js +6 -0
- package/dist/components/ds-textarea/ds-textarea.module.js.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.types.d.cts +71 -0
- package/dist/components/ds-textarea/ds-textarea.types.d.cts.map +1 -0
- package/dist/components/ds-textarea/ds-textarea.types.d.ts +71 -0
- package/dist/components/ds-textarea/ds-textarea.types.d.ts.map +1 -0
- package/dist/components/ds-textarea/index.cjs +1 -0
- package/dist/components/ds-textarea/index.d.ts +2 -0
- package/dist/components/ds-textarea/index.js +1 -0
- package/dist/components/ds-toast/ds-toast-context.cjs +85 -0
- package/dist/components/ds-toast/ds-toast-context.d.cts +42 -0
- package/dist/components/ds-toast/ds-toast-context.d.cts.map +1 -0
- package/dist/components/ds-toast/ds-toast-context.d.ts +42 -0
- package/dist/components/ds-toast/ds-toast-context.d.ts.map +1 -0
- package/dist/components/ds-toast/ds-toast-context.js +84 -0
- package/dist/components/ds-toast/ds-toast-context.js.map +1 -0
- package/dist/components/ds-toast/ds-toast.cjs +129 -0
- package/dist/components/ds-toast/ds-toast.js +129 -0
- package/dist/components/ds-toast/ds-toast.js.map +1 -0
- package/dist/components/ds-toast/ds-toast.module.cjs +11 -0
- package/dist/components/ds-toast/ds-toast.module.js +11 -0
- package/dist/components/ds-toast/ds-toast.module.js.map +1 -0
- package/dist/components/ds-toast/ds-toast.types.d.cts +53 -0
- package/dist/components/ds-toast/ds-toast.types.d.cts.map +1 -0
- package/dist/components/ds-toast/ds-toast.types.d.ts +53 -0
- package/dist/components/ds-toast/ds-toast.types.d.ts.map +1 -0
- package/dist/components/ds-toast/index.cjs +1 -0
- package/dist/components/ds-toast/index.d.ts +2 -0
- package/dist/components/ds-toast/index.js +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.cjs +74 -0
- package/dist/components/ds-tooltip/ds-tooltip.d.cts +8 -0
- package/dist/components/ds-tooltip/ds-tooltip.d.cts.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.d.ts +8 -0
- package/dist/components/ds-tooltip/ds-tooltip.d.ts.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.js +72 -0
- package/dist/components/ds-tooltip/ds-tooltip.js.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.module.cjs +10 -0
- package/dist/components/ds-tooltip/ds-tooltip.module.js +10 -0
- package/dist/components/ds-tooltip/ds-tooltip.module.js.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.cts +16 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.cts.map +1 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.ts +16 -0
- package/dist/components/ds-tooltip/ds-tooltip.types.d.ts.map +1 -0
- package/dist/components/ds-tooltip/index.cjs +1 -0
- package/dist/components/ds-tooltip/index.d.ts +2 -0
- package/dist/components/ds-tooltip/index.js +1 -0
- package/dist/components/ds-typography/ds-typography.cjs +65 -0
- package/dist/components/ds-typography/ds-typography.config.cjs +30 -0
- package/dist/components/ds-typography/ds-typography.config.d.cts +29 -0
- package/dist/components/ds-typography/ds-typography.config.d.cts.map +1 -0
- package/dist/components/ds-typography/ds-typography.config.d.ts +29 -0
- package/dist/components/ds-typography/ds-typography.config.d.ts.map +1 -0
- package/dist/components/ds-typography/ds-typography.config.js +30 -0
- package/dist/components/ds-typography/ds-typography.config.js.map +1 -0
- package/dist/components/ds-typography/ds-typography.d.cts +10 -0
- package/dist/components/ds-typography/ds-typography.d.cts.map +1 -0
- package/dist/components/ds-typography/ds-typography.d.ts +10 -0
- package/dist/components/ds-typography/ds-typography.d.ts.map +1 -0
- package/dist/components/ds-typography/ds-typography.js +64 -0
- package/dist/components/ds-typography/ds-typography.js.map +1 -0
- package/dist/components/ds-typography/ds-typography.module.cjs +30 -0
- package/dist/components/ds-typography/ds-typography.module.js +30 -0
- package/dist/components/ds-typography/ds-typography.module.js.map +1 -0
- package/dist/components/ds-typography/ds-typography.types.d.cts +30 -0
- package/dist/components/ds-typography/ds-typography.types.d.cts.map +1 -0
- package/dist/components/ds-typography/ds-typography.types.d.ts +30 -0
- package/dist/components/ds-typography/ds-typography.types.d.ts.map +1 -0
- package/dist/components/ds-typography/index.cjs +1 -0
- package/dist/components/ds-typography/index.d.ts +2 -0
- package/dist/components/ds-typography/index.js +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.cjs +137 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.cts +50 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.cts.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.ts +50 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.d.ts.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.js +136 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.js.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.module.cjs +10 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.module.js +10 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.module.js.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.types.d.cts +70 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.types.d.cts.map +1 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.types.d.ts +70 -0
- package/dist/components/ds-vertical-tabs/ds-vertical-tabs.types.d.ts.map +1 -0
- package/dist/components/ds-vertical-tabs/index.cjs +1 -0
- package/dist/components/ds-vertical-tabs/index.d.ts +2 -0
- package/dist/components/ds-vertical-tabs/index.js +1 -0
- package/dist/index.cjs +136 -5394
- package/dist/index.d.cts +78 -9157
- package/dist/index.d.ts +112 -9157
- package/dist/index.js +83 -5335
- package/dist/index.min.css +1 -0
- package/package.json +10 -3
- package/src/components/ds-drawer/ds-drawer.module.scss +2 -2
- package/src/styles/_grid-variables.scss +13 -0
- package/src/styles/_grid.scss +17 -29
- package/dist/index.css +0 -1
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DsButtonProps } from "./versions/ds-button-legacy/ds-button-legacy.types.cjs";
|
|
2
|
+
import { DsButtonProps as DsButtonProps$1 } from "./versions/ds-button-new/ds-button-new.types.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ds-button/ds-button.types.d.ts
|
|
5
|
+
type DsButtonUnifiedProps = (DsButtonProps & {
|
|
6
|
+
design?: undefined | 'legacy';
|
|
7
|
+
}) | (DsButtonProps$1 & {
|
|
8
|
+
design: 'v1.2';
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { DsButtonUnifiedProps };
|
|
12
|
+
//# sourceMappingURL=ds-button.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-button.types.d.cts","names":[],"sources":["../../../src/components/ds-button/ds-button.types.ts"],"sourcesContent":[],"mappings":";;;;KAGY,oBAAA,IACR;;AADJ,CAAA,CAAA,GAAY,CAER,eAFQ,GAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DsButtonProps } from "./versions/ds-button-legacy/ds-button-legacy.types.js";
|
|
2
|
+
import { DsButtonProps as DsButtonProps$1 } from "./versions/ds-button-new/ds-button-new.types.js";
|
|
3
|
+
|
|
4
|
+
//#region src/components/ds-button/ds-button.types.d.ts
|
|
5
|
+
type DsButtonUnifiedProps = (DsButtonProps & {
|
|
6
|
+
design?: undefined | 'legacy';
|
|
7
|
+
}) | (DsButtonProps$1 & {
|
|
8
|
+
design: 'v1.2';
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { DsButtonUnifiedProps };
|
|
12
|
+
//# sourceMappingURL=ds-button.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-button.types.d.ts","names":[],"sources":["../../../src/components/ds-button/ds-button.types.ts"],"sourcesContent":[],"mappings":";;;;KAGY,oBAAA,IACR;;AADJ,CAAA,CAAA,GAAY,CAER,eAFQ,GAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_ds_button = require('./ds-button.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import ds_button_default from "./ds-button.js";
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_ds_button_legacy_module = require('./ds-button-legacy.module.cjs');
|
|
3
|
+
let react_compiler_runtime = require("react/compiler-runtime");
|
|
4
|
+
let classnames = require("classnames");
|
|
5
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
|
|
8
|
+
//#region src/components/ds-button/versions/ds-button-legacy/ds-button-legacy.tsx
|
|
9
|
+
/**
|
|
10
|
+
* Design system Button component
|
|
11
|
+
*/
|
|
12
|
+
const DsButton = (t0) => {
|
|
13
|
+
const $ = (0, react_compiler_runtime.c)(24);
|
|
14
|
+
let children;
|
|
15
|
+
let className;
|
|
16
|
+
let contentClassName;
|
|
17
|
+
let props;
|
|
18
|
+
let t1;
|
|
19
|
+
let t2;
|
|
20
|
+
let t3;
|
|
21
|
+
let t4;
|
|
22
|
+
if ($[0] !== t0) {
|
|
23
|
+
({schema: t1, variant: t2, size: t3, disabled: t4, className, contentClassName, children, ...props} = t0);
|
|
24
|
+
$[0] = t0;
|
|
25
|
+
$[1] = children;
|
|
26
|
+
$[2] = className;
|
|
27
|
+
$[3] = contentClassName;
|
|
28
|
+
$[4] = props;
|
|
29
|
+
$[5] = t1;
|
|
30
|
+
$[6] = t2;
|
|
31
|
+
$[7] = t3;
|
|
32
|
+
$[8] = t4;
|
|
33
|
+
} else {
|
|
34
|
+
children = $[1];
|
|
35
|
+
className = $[2];
|
|
36
|
+
contentClassName = $[3];
|
|
37
|
+
props = $[4];
|
|
38
|
+
t1 = $[5];
|
|
39
|
+
t2 = $[6];
|
|
40
|
+
t3 = $[7];
|
|
41
|
+
t4 = $[8];
|
|
42
|
+
}
|
|
43
|
+
const schema = t1 === void 0 ? "primary" : t1;
|
|
44
|
+
const variant = t2 === void 0 ? "filled" : t2;
|
|
45
|
+
const size = t3 === void 0 ? "medium" : t3;
|
|
46
|
+
const disabled = t4 === void 0 ? false : t4;
|
|
47
|
+
const t5 = require_ds_button_legacy_module.default[`${schema}-${variant}`];
|
|
48
|
+
const t6 = require_ds_button_legacy_module.default[size];
|
|
49
|
+
let t7;
|
|
50
|
+
if ($[9] !== className || $[10] !== disabled || $[11] !== t5 || $[12] !== t6) {
|
|
51
|
+
t7 = (0, classnames.default)(require_ds_button_legacy_module.default.button, t5, t6, { [require_ds_button_legacy_module.default.disabled]: disabled }, className);
|
|
52
|
+
$[9] = className;
|
|
53
|
+
$[10] = disabled;
|
|
54
|
+
$[11] = t5;
|
|
55
|
+
$[12] = t6;
|
|
56
|
+
$[13] = t7;
|
|
57
|
+
} else t7 = $[13];
|
|
58
|
+
const buttonClass = t7;
|
|
59
|
+
let t8;
|
|
60
|
+
if ($[14] !== contentClassName) {
|
|
61
|
+
t8 = (0, classnames.default)(require_ds_button_legacy_module.default.content, contentClassName);
|
|
62
|
+
$[14] = contentClassName;
|
|
63
|
+
$[15] = t8;
|
|
64
|
+
} else t8 = $[15];
|
|
65
|
+
let t9;
|
|
66
|
+
if ($[16] !== children || $[17] !== t8) {
|
|
67
|
+
t9 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
68
|
+
className: t8,
|
|
69
|
+
children
|
|
70
|
+
});
|
|
71
|
+
$[16] = children;
|
|
72
|
+
$[17] = t8;
|
|
73
|
+
$[18] = t9;
|
|
74
|
+
} else t9 = $[18];
|
|
75
|
+
let t10;
|
|
76
|
+
if ($[19] !== buttonClass || $[20] !== disabled || $[21] !== props || $[22] !== t9) {
|
|
77
|
+
t10 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
78
|
+
type: "button",
|
|
79
|
+
className: buttonClass,
|
|
80
|
+
disabled,
|
|
81
|
+
...props,
|
|
82
|
+
children: t9
|
|
83
|
+
});
|
|
84
|
+
$[19] = buttonClass;
|
|
85
|
+
$[20] = disabled;
|
|
86
|
+
$[21] = props;
|
|
87
|
+
$[22] = t9;
|
|
88
|
+
$[23] = t10;
|
|
89
|
+
} else t10 = $[23];
|
|
90
|
+
return t10;
|
|
91
|
+
};
|
|
92
|
+
var ds_button_legacy_default = DsButton;
|
|
93
|
+
|
|
94
|
+
//#endregion
|
|
95
|
+
exports.default = ds_button_legacy_default;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import ds_button_legacy_module_default from "./ds-button-legacy.module.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import classNames from "classnames";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/ds-button/versions/ds-button-legacy/ds-button-legacy.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Design system Button component
|
|
9
|
+
*/
|
|
10
|
+
const DsButton = (t0) => {
|
|
11
|
+
const $ = c(24);
|
|
12
|
+
let children;
|
|
13
|
+
let className;
|
|
14
|
+
let contentClassName;
|
|
15
|
+
let props;
|
|
16
|
+
let t1;
|
|
17
|
+
let t2;
|
|
18
|
+
let t3;
|
|
19
|
+
let t4;
|
|
20
|
+
if ($[0] !== t0) {
|
|
21
|
+
({schema: t1, variant: t2, size: t3, disabled: t4, className, contentClassName, children, ...props} = t0);
|
|
22
|
+
$[0] = t0;
|
|
23
|
+
$[1] = children;
|
|
24
|
+
$[2] = className;
|
|
25
|
+
$[3] = contentClassName;
|
|
26
|
+
$[4] = props;
|
|
27
|
+
$[5] = t1;
|
|
28
|
+
$[6] = t2;
|
|
29
|
+
$[7] = t3;
|
|
30
|
+
$[8] = t4;
|
|
31
|
+
} else {
|
|
32
|
+
children = $[1];
|
|
33
|
+
className = $[2];
|
|
34
|
+
contentClassName = $[3];
|
|
35
|
+
props = $[4];
|
|
36
|
+
t1 = $[5];
|
|
37
|
+
t2 = $[6];
|
|
38
|
+
t3 = $[7];
|
|
39
|
+
t4 = $[8];
|
|
40
|
+
}
|
|
41
|
+
const schema = t1 === void 0 ? "primary" : t1;
|
|
42
|
+
const variant = t2 === void 0 ? "filled" : t2;
|
|
43
|
+
const size = t3 === void 0 ? "medium" : t3;
|
|
44
|
+
const disabled = t4 === void 0 ? false : t4;
|
|
45
|
+
const t5 = ds_button_legacy_module_default[`${schema}-${variant}`];
|
|
46
|
+
const t6 = ds_button_legacy_module_default[size];
|
|
47
|
+
let t7;
|
|
48
|
+
if ($[9] !== className || $[10] !== disabled || $[11] !== t5 || $[12] !== t6) {
|
|
49
|
+
t7 = classNames(ds_button_legacy_module_default.button, t5, t6, { [ds_button_legacy_module_default.disabled]: disabled }, className);
|
|
50
|
+
$[9] = className;
|
|
51
|
+
$[10] = disabled;
|
|
52
|
+
$[11] = t5;
|
|
53
|
+
$[12] = t6;
|
|
54
|
+
$[13] = t7;
|
|
55
|
+
} else t7 = $[13];
|
|
56
|
+
const buttonClass = t7;
|
|
57
|
+
let t8;
|
|
58
|
+
if ($[14] !== contentClassName) {
|
|
59
|
+
t8 = classNames(ds_button_legacy_module_default.content, contentClassName);
|
|
60
|
+
$[14] = contentClassName;
|
|
61
|
+
$[15] = t8;
|
|
62
|
+
} else t8 = $[15];
|
|
63
|
+
let t9;
|
|
64
|
+
if ($[16] !== children || $[17] !== t8) {
|
|
65
|
+
t9 = /* @__PURE__ */ jsx("span", {
|
|
66
|
+
className: t8,
|
|
67
|
+
children
|
|
68
|
+
});
|
|
69
|
+
$[16] = children;
|
|
70
|
+
$[17] = t8;
|
|
71
|
+
$[18] = t9;
|
|
72
|
+
} else t9 = $[18];
|
|
73
|
+
let t10;
|
|
74
|
+
if ($[19] !== buttonClass || $[20] !== disabled || $[21] !== props || $[22] !== t9) {
|
|
75
|
+
t10 = /* @__PURE__ */ jsx("button", {
|
|
76
|
+
type: "button",
|
|
77
|
+
className: buttonClass,
|
|
78
|
+
disabled,
|
|
79
|
+
...props,
|
|
80
|
+
children: t9
|
|
81
|
+
});
|
|
82
|
+
$[19] = buttonClass;
|
|
83
|
+
$[20] = disabled;
|
|
84
|
+
$[21] = props;
|
|
85
|
+
$[22] = t9;
|
|
86
|
+
$[23] = t10;
|
|
87
|
+
} else t10 = $[23];
|
|
88
|
+
return t10;
|
|
89
|
+
};
|
|
90
|
+
var ds_button_legacy_default = DsButton;
|
|
91
|
+
|
|
92
|
+
//#endregion
|
|
93
|
+
export { ds_button_legacy_default as default };
|
|
94
|
+
//# sourceMappingURL=ds-button-legacy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-button-legacy.js","names":["classNames","React","styles","DsButtonProps","DsButton","FC","t0","$","_c","children","className","contentClassName","props","t1","t2","t3","t4","schema","variant","size","disabled","undefined","t5","t6","t7","button","buttonClass","t8","content","t9","t10"],"sources":["../../../../../src/components/ds-button/versions/ds-button-legacy/ds-button-legacy.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport type React from 'react';\nimport styles from './ds-button-legacy.module.scss';\nimport type { DsButtonProps } from './ds-button-legacy.types';\n\n/**\n * Design system Button component\n */\nconst DsButton: React.FC<DsButtonProps> = ({\n\tschema = 'primary',\n\tvariant = 'filled',\n\tsize = 'medium',\n\tdisabled = false,\n\tclassName,\n\tcontentClassName,\n\tchildren,\n\t...props\n}) => {\n\tconst buttonClass = classNames(\n\t\tstyles.button,\n\t\tstyles[`${schema}-${variant}`],\n\t\tstyles[size],\n\t\t{ [styles.disabled]: disabled },\n\t\tclassName,\n\t);\n\n\treturn (\n\t\t<button type=\"button\" className={buttonClass} disabled={disabled} {...props}>\n\t\t\t<span className={classNames(styles.content, contentClassName)}>{children}</span>\n\t\t</button>\n\t);\n};\n\nexport default DsButton;\n"],"mappings":";;;;;;;;;AAQA,MAAMI,YAAoCE,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;AAAA,KAAAT,EAAA,OAAAD,IAAA;AAAC,GAAA,CAAAW,QAAAJ,IAAAK,SAAAJ,IAAAK,MAAAJ,IAAAK,UAAAJ,IAAAN,WAAAC,kBAAAF,aAAAG,SAAAN;AAS1CC,IAAA,KAAAD;AAAAC,IAAA,KAAAE;AAAAF,IAAA,KAAAG;AAAAH,IAAA,KAAAI;AAAAJ,IAAA,KAAAK;AAAAL,IAAA,KAAAM;AAAAN,IAAA,KAAAO;AAAAP,IAAA,KAAAQ;AAAAR,IAAA,KAAAS;QAAA;AAAAP,aAAAF,EAAA;AAAAG,cAAAH,EAAA;AAAAI,qBAAAJ,EAAA;AAAAK,UAAAL,EAAA;AAAAM,OAAAN,EAAA;AAAAO,OAAAP,EAAA;AAAAQ,OAAAR,EAAA;AAAAS,OAAAT,EAAA;;CARA,MAAAU,SAAAJ,OAAAQ,SAAA,YAAAR;CACA,MAAAK,UAAAJ,OAAAO,SAAA,WAAAP;CACA,MAAAK,OAAAJ,OAAAM,SAAA,WAAAN;CACA,MAAAK,WAAAJ,OAAAK,SAAA,QAAAL;CAQC,MAAAM,KAAApB,gCAAO,GAAGe,OAAM,GAAIC;CACpB,MAAAK,KAAArB,gCAAOiB;CAAK,IAAAK;AAAA,KAAAjB,EAAA,OAAAG,aAAAH,EAAA,QAAAa,YAAAb,EAAA,QAAAe,MAAAf,EAAA,QAAAgB,IAAA;AAHOC,OAAAxB,WACnBE,gCAAMuB,QACNH,IACAC,IACA,GAAGrB,gCAAMkB,WAAYA,UAAU,EAC/BV,UACA;AAAAH,IAAA,KAAAG;AAAAH,IAAA,MAAAa;AAAAb,IAAA,MAAAe;AAAAf,IAAA,MAAAgB;AAAAhB,IAAA,MAAAiB;OAAAA,MAAAjB,EAAA;CAND,MAAAmB,cAAoBF;CAMlB,IAAAG;AAAA,KAAApB,EAAA,QAAAI,kBAAA;AAIiBgB,OAAA3B,WAAWE,gCAAM0B,SAAUjB,iBAAiB;AAAAJ,IAAA,MAAAI;AAAAJ,IAAA,MAAAoB;OAAAA,MAAApB,EAAA;CAAA,IAAAsB;AAAA,KAAAtB,EAAA,QAAAE,YAAAF,EAAA,QAAAoB,IAAA;AAA7DE,OAAA,oBAAA;GAAiB,WAAAF;GAA+ClB;IAAgB;AAAAF,IAAA,MAAAE;AAAAF,IAAA,MAAAoB;AAAApB,IAAA,MAAAsB;OAAAA,MAAAtB,EAAA;CAAA,IAAAuB;AAAA,KAAAvB,EAAA,QAAAmB,eAAAnB,EAAA,QAAAa,YAAAb,EAAA,QAAAK,SAAAL,EAAA,QAAAsB,IAAA;AADjFC,QAAA,oBAAA;GAAa,MAAA;GAAoBJ,WAAAA;GAAuBN;GAAQ,GAAMR;aACrEiB;IACQ;AAAAtB,IAAA,MAAAmB;AAAAnB,IAAA,MAAAa;AAAAb,IAAA,MAAAK;AAAAL,IAAA,MAAAsB;AAAAtB,IAAA,MAAAuB;OAAAA,OAAAvB,EAAA;AAAA,QAFTuB;;AAMF,+BAAe1B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/ds-button/versions/ds-button-legacy/ds-button-legacy.module.scss
|
|
3
|
+
var ds_button_legacy_module_default = {
|
|
4
|
+
"button": "_button_c7rg5_1",
|
|
5
|
+
"content": "_content_c7rg5_1",
|
|
6
|
+
"small": "_small_c7rg5_1",
|
|
7
|
+
"medium": "_medium_c7rg5_1",
|
|
8
|
+
"large": "_large_c7rg5_1",
|
|
9
|
+
"primary-filled": "_primary-filled_c7rg5_1",
|
|
10
|
+
"primary-ghost": "_primary-ghost_c7rg5_1",
|
|
11
|
+
"primary-borderless": "_primary-borderless_c7rg5_1",
|
|
12
|
+
"primary-round": "_primary-round_c7rg5_1",
|
|
13
|
+
"primary-dashed": "_primary-dashed_c7rg5_1",
|
|
14
|
+
"secondary-filled": "_secondary-filled_c7rg5_1",
|
|
15
|
+
"secondary-ghost": "_secondary-ghost_c7rg5_1",
|
|
16
|
+
"secondary-borderless": "_secondary-borderless_c7rg5_1",
|
|
17
|
+
"secondary-round": "_secondary-round_c7rg5_1",
|
|
18
|
+
"secondary-dashed": "_secondary-dashed_c7rg5_1",
|
|
19
|
+
"error-filled": "_error-filled_c7rg5_1",
|
|
20
|
+
"error-ghost": "_error-ghost_c7rg5_1",
|
|
21
|
+
"error-borderless": "_error-borderless_c7rg5_1",
|
|
22
|
+
"error-round": "_error-round_c7rg5_1",
|
|
23
|
+
"error-dashed": "_error-dashed_c7rg5_1"
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.default = ds_button_legacy_module_default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region src/components/ds-button/versions/ds-button-legacy/ds-button-legacy.module.scss
|
|
2
|
+
var ds_button_legacy_module_default = {
|
|
3
|
+
"button": "_button_c7rg5_1",
|
|
4
|
+
"content": "_content_c7rg5_1",
|
|
5
|
+
"small": "_small_c7rg5_1",
|
|
6
|
+
"medium": "_medium_c7rg5_1",
|
|
7
|
+
"large": "_large_c7rg5_1",
|
|
8
|
+
"primary-filled": "_primary-filled_c7rg5_1",
|
|
9
|
+
"primary-ghost": "_primary-ghost_c7rg5_1",
|
|
10
|
+
"primary-borderless": "_primary-borderless_c7rg5_1",
|
|
11
|
+
"primary-round": "_primary-round_c7rg5_1",
|
|
12
|
+
"primary-dashed": "_primary-dashed_c7rg5_1",
|
|
13
|
+
"secondary-filled": "_secondary-filled_c7rg5_1",
|
|
14
|
+
"secondary-ghost": "_secondary-ghost_c7rg5_1",
|
|
15
|
+
"secondary-borderless": "_secondary-borderless_c7rg5_1",
|
|
16
|
+
"secondary-round": "_secondary-round_c7rg5_1",
|
|
17
|
+
"secondary-dashed": "_secondary-dashed_c7rg5_1",
|
|
18
|
+
"error-filled": "_error-filled_c7rg5_1",
|
|
19
|
+
"error-ghost": "_error-ghost_c7rg5_1",
|
|
20
|
+
"error-borderless": "_error-borderless_c7rg5_1",
|
|
21
|
+
"error-round": "_error-round_c7rg5_1",
|
|
22
|
+
"error-dashed": "_error-dashed_c7rg5_1"
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
export { ds_button_legacy_module_default as default };
|
|
27
|
+
//# sourceMappingURL=ds-button-legacy.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-button-legacy.module.js","names":[],"sources":["../../../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/components/ds-button/versions/ds-button-legacy/ds-button-legacy.module.scss","../../../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/styles/_typography.scss","../../../../../file:/home/runner/work/design-system/design-system/packages/design-system/src/styles/_variables.scss"],"sourcesContent":["@use '../../../../styles/typography';\n\n$color-primary-default: var(--action-cta1);\n$color-primary-hover: var(--action-hover-light);\n$color-primary-active: var(--action-active-light);\n$color-primary-disabled: var(--action-disabled);\n\n$color-secondary-default: var(--action-cta3);\n$color-secondary-hover: var(--neutral-4);\n$color-secondary-disabled: var(--action-disabled);\n\n$color-error-default: var(--system-status-error);\n$color-error-hover: var(--utility-error);\n$color-error-active: var(--utility-error);\n$color-error-disabled: var(--action-disabled);\n\n$color-white: var(--white);\n$color-neutral-6: var(--utility-disabled);\n$color-neutral-4: var(--neutral-4);\n\n@mixin button-filled($background, $hover, $active, $disabled) {\n\tbackground: $background;\n\tcolor: $color-white;\n\n\t&:disabled {\n\t\tcolor: $color-neutral-6;\n\t\tbackground: $disabled;\n\t}\n}\n\n@mixin button-ghost($color, $hover, $active, $disabled) {\n\tborder: 2px solid $color;\n\tcolor: $color;\n\n\t&:disabled {\n\t\tcolor: $disabled;\n\t\tborder-color: $disabled;\n\t}\n}\n\n@mixin button-borderless($color, $hover, $active, $disabled) {\n\tcolor: $color;\n\tborder: none;\n\n\t&.content {\n\t\tgap: 4px;\n\t}\n\n\t&:hover {\n\t\tcolor: $hover;\n\t}\n\n\t&:active {\n\t\tcolor: $active;\n\t}\n\n\t&:disabled {\n\t\tcolor: $disabled;\n\t}\n}\n\n@mixin button-round($background, $hover, $active, $disabled) {\n\t@include button-filled($background, $hover, $active, $disabled);\n\tborder-radius: 32px;\n}\n\n.button {\n\t@include typography.regular;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tborder-radius: 4px;\n\twhite-space: nowrap;\n\tcursor: pointer;\n\tborder: none;\n\tpadding: 0;\n\tfont: inherit;\n\tbackground: none;\n\n\t&:disabled {\n\t\tcursor: not-allowed;\n\t}\n\n\t&:not(:disabled) {\n\t\tcursor: pointer;\n\t}\n\n\t.content {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\tgap: 8px;\n\t}\n\n\t&.small {\n\t\t@include typography.p-base;\n\t\tpadding: 6px 12px;\n\n\t\t.content {\n\t\t\tgap: 6px;\n\t\t}\n\t}\n\n\t&.medium {\n\t\t@include typography.p-base;\n\t\t@include typography.medium;\n\t\tpadding: 12px;\n\n\t\t.content {\n\t\t\tgap: 9px;\n\t\t}\n\t}\n\n\t&.large {\n\t\t@include typography.p-base;\n\t\t@include typography.medium;\n\t\tpadding: 14px 12px;\n\t}\n\n\t&.primary-filled {\n\t\t@include button-filled(\n\t\t\t$color-primary-default,\n\t\t\t$color-primary-hover,\n\t\t\t$color-primary-active,\n\t\t\t$color-primary-disabled\n\t\t);\n\t}\n\n\t&.primary-ghost {\n\t\t@include button-ghost(\n\t\t\t$color-primary-default,\n\t\t\t$color-primary-hover,\n\t\t\t$color-primary-active,\n\t\t\t$color-neutral-4\n\t\t);\n\t}\n\n\t&.primary-borderless {\n\t\t@include button-borderless(\n\t\t\t$color-primary-default,\n\t\t\t$color-primary-hover,\n\t\t\t$color-primary-active,\n\t\t\t$color-primary-disabled\n\t\t);\n\t}\n\n\t&.primary-round {\n\t\t@include button-round(\n\t\t\t$color-primary-default,\n\t\t\t$color-primary-hover,\n\t\t\t$color-primary-active,\n\t\t\t$color-primary-disabled\n\t\t);\n\t}\n\n\t&.primary-dashed {\n\t\t@include button-ghost(\n\t\t\t$color-primary-default,\n\t\t\t$color-primary-hover,\n\t\t\t$color-primary-active,\n\t\t\t$color-neutral-4\n\t\t);\n\t\tborder-style: dashed;\n\t}\n\n\t&.secondary-filled {\n\t\t@include button-filled(\n\t\t\t$color-secondary-default,\n\t\t\t$color-secondary-hover,\n\t\t\t$color-secondary-hover,\n\t\t\t$color-secondary-disabled\n\t\t);\n\t}\n\n\t&.secondary-ghost {\n\t\t@include button-ghost(\n\t\t\t$color-secondary-default,\n\t\t\t$color-secondary-hover,\n\t\t\t$color-secondary-hover,\n\t\t\t$color-secondary-disabled\n\t\t);\n\t}\n\n\t&.secondary-borderless {\n\t\t@include button-borderless(\n\t\t\t$color-secondary-default,\n\t\t\t$color-secondary-hover,\n\t\t\t$color-secondary-hover,\n\t\t\t$color-secondary-disabled\n\t\t);\n\t}\n\n\t&.secondary-round {\n\t\t@include button-round(\n\t\t\t$color-secondary-default,\n\t\t\t$color-secondary-hover,\n\t\t\t$color-secondary-hover,\n\t\t\t$color-secondary-disabled\n\t\t);\n\t}\n\n\t&.secondary-dashed {\n\t\t@include button-ghost(\n\t\t\t$color-secondary-default,\n\t\t\t$color-secondary-hover,\n\t\t\t$color-secondary-hover,\n\t\t\t$color-secondary-disabled\n\t\t);\n\t\tborder-style: dashed;\n\t}\n\n\t&.error-filled {\n\t\t@include button-filled(\n\t\t\t$color-error-default,\n\t\t\t$color-error-hover,\n\t\t\t$color-error-active,\n\t\t\t$color-error-disabled\n\t\t);\n\t}\n\n\t&.error-ghost {\n\t\t@include button-ghost(\n\t\t\t$color-error-default,\n\t\t\t$color-error-hover,\n\t\t\t$color-error-active,\n\t\t\t$color-error-disabled\n\t\t);\n\t}\n\n\t&.error-borderless {\n\t\t@include button-borderless(\n\t\t\t$color-error-default,\n\t\t\t$color-error-hover,\n\t\t\t$color-error-active,\n\t\t\t$color-error-disabled\n\t\t);\n\t}\n\n\t&.error-round {\n\t\t@include button-round(\n\t\t\t$color-error-default,\n\t\t\t$color-error-hover,\n\t\t\t$color-error-active,\n\t\t\t$color-error-disabled\n\t\t);\n\t}\n\n\t&.error-dashed {\n\t\t@include button-ghost(\n\t\t\t$color-error-default,\n\t\t\t$color-error-hover,\n\t\t\t$color-error-active,\n\t\t\t$color-error-disabled\n\t\t);\n\t\tborder-style: dashed;\n\t}\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.ts
|
|
4
|
+
declare const buttonSchemas: readonly ["primary", "secondary", "error"];
|
|
5
|
+
type ButtonSchema = (typeof buttonSchemas)[number];
|
|
6
|
+
declare const buttonVariants: readonly ["filled", "ghost", "borderless", "round", "dashed"];
|
|
7
|
+
type ButtonVariant = (typeof buttonVariants)[number];
|
|
8
|
+
declare const buttonSizes: readonly ["large", "medium", "small"];
|
|
9
|
+
type ButtonSize = (typeof buttonSizes)[number];
|
|
10
|
+
interface DsButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
11
|
+
/**
|
|
12
|
+
* Color schema of the button
|
|
13
|
+
* @default 'primary'
|
|
14
|
+
*/
|
|
15
|
+
schema?: ButtonSchema;
|
|
16
|
+
/**
|
|
17
|
+
* Visual variant of the button
|
|
18
|
+
* @default 'filled'
|
|
19
|
+
*/
|
|
20
|
+
variant?: ButtonVariant;
|
|
21
|
+
/**
|
|
22
|
+
* Size of the button
|
|
23
|
+
* @default 'medium'
|
|
24
|
+
*/
|
|
25
|
+
size?: ButtonSize;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the button is disabled
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Class name for the button content
|
|
33
|
+
*/
|
|
34
|
+
contentClassName?: string;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { DsButtonProps };
|
|
38
|
+
//# sourceMappingURL=ds-button-legacy.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-button-legacy.types.d.cts","names":[],"sources":["../../../../../src/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.ts"],"sourcesContent":[],"mappings":";;;cAEa;KACD,YAAA,WAAuB;AADtB,cAGA,cAH0D,EAAA,SAAA,CAAA,QAAA,EAAA,OAAA,EAAA,YAAA,EAAA,OAAA,EAAA,QAAA,CAAA;AAC3D,KAGA,aAAA,GAHY,CAAA,OAGY,cAHY,CAAA,CAAA,MAAA,CAAA;AAEnC,cAGA,WAH8E,EAAA,SAAA,CAAA,OAAA,EAAA,QAAA,EAAA,OAAA,CAAA;AAC/E,KAGA,UAAA,GAHa,CAAA,OAGQ,WAHG,CAAA,CAAA,MAAc,CAAA;AAErC,UAGI,aAAA,SAAsB,KAAA,CAAM,oBAHmB,CAGE,iBAHF,CAAA,CAAA;EACpD;AAEZ;;;EAWW,MAAA,CAAA,EAND,YAMC;EAMH;;;;YANG;;;;;SAMH"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.ts
|
|
4
|
+
declare const buttonSchemas: readonly ["primary", "secondary", "error"];
|
|
5
|
+
type ButtonSchema = (typeof buttonSchemas)[number];
|
|
6
|
+
declare const buttonVariants: readonly ["filled", "ghost", "borderless", "round", "dashed"];
|
|
7
|
+
type ButtonVariant = (typeof buttonVariants)[number];
|
|
8
|
+
declare const buttonSizes: readonly ["large", "medium", "small"];
|
|
9
|
+
type ButtonSize = (typeof buttonSizes)[number];
|
|
10
|
+
interface DsButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
11
|
+
/**
|
|
12
|
+
* Color schema of the button
|
|
13
|
+
* @default 'primary'
|
|
14
|
+
*/
|
|
15
|
+
schema?: ButtonSchema;
|
|
16
|
+
/**
|
|
17
|
+
* Visual variant of the button
|
|
18
|
+
* @default 'filled'
|
|
19
|
+
*/
|
|
20
|
+
variant?: ButtonVariant;
|
|
21
|
+
/**
|
|
22
|
+
* Size of the button
|
|
23
|
+
* @default 'medium'
|
|
24
|
+
*/
|
|
25
|
+
size?: ButtonSize;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the button is disabled
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Class name for the button content
|
|
33
|
+
*/
|
|
34
|
+
contentClassName?: string;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { DsButtonProps };
|
|
38
|
+
//# sourceMappingURL=ds-button-legacy.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-button-legacy.types.d.ts","names":[],"sources":["../../../../../src/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.ts"],"sourcesContent":[],"mappings":";;;cAEa;KACD,YAAA,WAAuB;AADtB,cAGA,cAH0D,EAAA,SAAA,CAAA,QAAA,EAAA,OAAA,EAAA,YAAA,EAAA,OAAA,EAAA,QAAA,CAAA;AAC3D,KAGA,aAAA,GAHY,CAAA,OAGY,cAHY,CAAA,CAAA,MAAA,CAAA;AAEnC,cAGA,WAH8E,EAAA,SAAA,CAAA,OAAA,EAAA,QAAA,EAAA,OAAA,CAAA;AAC/E,KAGA,UAAA,GAHa,CAAA,OAGQ,WAHG,CAAA,CAAA,MAAc,CAAA;AAErC,UAGI,aAAA,SAAsB,KAAA,CAAM,oBAHmB,CAGE,iBAHF,CAAA,CAAA;EACpD;AAEZ;;;EAWW,MAAA,CAAA,EAND,YAMC;EAMH;;;;YANG;;;;;SAMH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const require_ds_button_legacy = require('./ds-button-legacy.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import ds_button_legacy_default from "./ds-button-legacy.js";
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_ds_icon = require('../../../ds-icon/ds-icon.cjs');
|
|
3
|
+
const require_ds_button_new_module = require('./ds-button-new.module.cjs');
|
|
4
|
+
let react_compiler_runtime = require("react/compiler-runtime");
|
|
5
|
+
let classnames = require("classnames");
|
|
6
|
+
classnames = require_rolldown_runtime.__toESM(classnames);
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
let react = require("react");
|
|
9
|
+
|
|
10
|
+
//#region src/components/ds-button/versions/ds-button-new/ds-button-new.tsx
|
|
11
|
+
const isIconOnly = (children) => {
|
|
12
|
+
if (react.Children.count(children) !== 1) return false;
|
|
13
|
+
const onlyChild = react.Children.toArray(children)[0];
|
|
14
|
+
return (0, react.isValidElement)(onlyChild) && onlyChild.type === require_ds_icon.default;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Design system Button component
|
|
18
|
+
*/
|
|
19
|
+
const DsButton = (t0) => {
|
|
20
|
+
const $ = (0, react_compiler_runtime.c)(26);
|
|
21
|
+
let buttonType;
|
|
22
|
+
let children;
|
|
23
|
+
let className;
|
|
24
|
+
let contentClassName;
|
|
25
|
+
let props;
|
|
26
|
+
let t1;
|
|
27
|
+
let t2;
|
|
28
|
+
let t3;
|
|
29
|
+
if ($[0] !== t0) {
|
|
30
|
+
({buttonType, variant: t1, size: t2, disabled: t3, className, contentClassName, children, ...props} = t0);
|
|
31
|
+
$[0] = t0;
|
|
32
|
+
$[1] = buttonType;
|
|
33
|
+
$[2] = children;
|
|
34
|
+
$[3] = className;
|
|
35
|
+
$[4] = contentClassName;
|
|
36
|
+
$[5] = props;
|
|
37
|
+
$[6] = t1;
|
|
38
|
+
$[7] = t2;
|
|
39
|
+
$[8] = t3;
|
|
40
|
+
} else {
|
|
41
|
+
buttonType = $[1];
|
|
42
|
+
children = $[2];
|
|
43
|
+
className = $[3];
|
|
44
|
+
contentClassName = $[4];
|
|
45
|
+
props = $[5];
|
|
46
|
+
t1 = $[6];
|
|
47
|
+
t2 = $[7];
|
|
48
|
+
t3 = $[8];
|
|
49
|
+
}
|
|
50
|
+
const variant = t1 === void 0 ? "filled" : t1;
|
|
51
|
+
const size = t2 === void 0 ? "medium" : t2;
|
|
52
|
+
const disabled = t3 === void 0 ? false : t3;
|
|
53
|
+
const type = buttonType ?? (variant === "ghost" ? "secondary" : "primary");
|
|
54
|
+
let t4;
|
|
55
|
+
if ($[9] !== children || $[10] !== className || $[11] !== disabled || $[12] !== size || $[13] !== type || $[14] !== variant) {
|
|
56
|
+
t4 = (0, classnames.default)(require_ds_button_new_module.default.button, { [require_ds_button_new_module.default.iconButton]: isIconOnly(children) }, require_ds_button_new_module.default[`${type}-${variant}`], require_ds_button_new_module.default[size], { [require_ds_button_new_module.default.disabled]: disabled }, className);
|
|
57
|
+
$[9] = children;
|
|
58
|
+
$[10] = className;
|
|
59
|
+
$[11] = disabled;
|
|
60
|
+
$[12] = size;
|
|
61
|
+
$[13] = type;
|
|
62
|
+
$[14] = variant;
|
|
63
|
+
$[15] = t4;
|
|
64
|
+
} else t4 = $[15];
|
|
65
|
+
const buttonClass = t4;
|
|
66
|
+
let t5;
|
|
67
|
+
if ($[16] !== contentClassName) {
|
|
68
|
+
t5 = (0, classnames.default)(require_ds_button_new_module.default.content, contentClassName);
|
|
69
|
+
$[16] = contentClassName;
|
|
70
|
+
$[17] = t5;
|
|
71
|
+
} else t5 = $[17];
|
|
72
|
+
let t6;
|
|
73
|
+
if ($[18] !== children || $[19] !== t5) {
|
|
74
|
+
t6 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
75
|
+
className: t5,
|
|
76
|
+
children
|
|
77
|
+
});
|
|
78
|
+
$[18] = children;
|
|
79
|
+
$[19] = t5;
|
|
80
|
+
$[20] = t6;
|
|
81
|
+
} else t6 = $[20];
|
|
82
|
+
let t7;
|
|
83
|
+
if ($[21] !== buttonClass || $[22] !== disabled || $[23] !== props || $[24] !== t6) {
|
|
84
|
+
t7 = /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
85
|
+
type: "button",
|
|
86
|
+
className: buttonClass,
|
|
87
|
+
disabled,
|
|
88
|
+
...props,
|
|
89
|
+
children: t6
|
|
90
|
+
});
|
|
91
|
+
$[21] = buttonClass;
|
|
92
|
+
$[22] = disabled;
|
|
93
|
+
$[23] = props;
|
|
94
|
+
$[24] = t6;
|
|
95
|
+
$[25] = t7;
|
|
96
|
+
} else t7 = $[25];
|
|
97
|
+
return t7;
|
|
98
|
+
};
|
|
99
|
+
var ds_button_new_default = DsButton;
|
|
100
|
+
|
|
101
|
+
//#endregion
|
|
102
|
+
exports.default = ds_button_new_default;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import ds_icon_default from "../../../ds-icon/ds-icon.js";
|
|
2
|
+
import ds_button_new_module_default from "./ds-button-new.module.js";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
|
+
import classNames from "classnames";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Children, isValidElement } from "react";
|
|
7
|
+
|
|
8
|
+
//#region src/components/ds-button/versions/ds-button-new/ds-button-new.tsx
|
|
9
|
+
const isIconOnly = (children) => {
|
|
10
|
+
if (Children.count(children) !== 1) return false;
|
|
11
|
+
const onlyChild = Children.toArray(children)[0];
|
|
12
|
+
return isValidElement(onlyChild) && onlyChild.type === ds_icon_default;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Design system Button component
|
|
16
|
+
*/
|
|
17
|
+
const DsButton = (t0) => {
|
|
18
|
+
const $ = c(26);
|
|
19
|
+
let buttonType;
|
|
20
|
+
let children;
|
|
21
|
+
let className;
|
|
22
|
+
let contentClassName;
|
|
23
|
+
let props;
|
|
24
|
+
let t1;
|
|
25
|
+
let t2;
|
|
26
|
+
let t3;
|
|
27
|
+
if ($[0] !== t0) {
|
|
28
|
+
({buttonType, variant: t1, size: t2, disabled: t3, className, contentClassName, children, ...props} = t0);
|
|
29
|
+
$[0] = t0;
|
|
30
|
+
$[1] = buttonType;
|
|
31
|
+
$[2] = children;
|
|
32
|
+
$[3] = className;
|
|
33
|
+
$[4] = contentClassName;
|
|
34
|
+
$[5] = props;
|
|
35
|
+
$[6] = t1;
|
|
36
|
+
$[7] = t2;
|
|
37
|
+
$[8] = t3;
|
|
38
|
+
} else {
|
|
39
|
+
buttonType = $[1];
|
|
40
|
+
children = $[2];
|
|
41
|
+
className = $[3];
|
|
42
|
+
contentClassName = $[4];
|
|
43
|
+
props = $[5];
|
|
44
|
+
t1 = $[6];
|
|
45
|
+
t2 = $[7];
|
|
46
|
+
t3 = $[8];
|
|
47
|
+
}
|
|
48
|
+
const variant = t1 === void 0 ? "filled" : t1;
|
|
49
|
+
const size = t2 === void 0 ? "medium" : t2;
|
|
50
|
+
const disabled = t3 === void 0 ? false : t3;
|
|
51
|
+
const type = buttonType ?? (variant === "ghost" ? "secondary" : "primary");
|
|
52
|
+
let t4;
|
|
53
|
+
if ($[9] !== children || $[10] !== className || $[11] !== disabled || $[12] !== size || $[13] !== type || $[14] !== variant) {
|
|
54
|
+
t4 = classNames(ds_button_new_module_default.button, { [ds_button_new_module_default.iconButton]: isIconOnly(children) }, ds_button_new_module_default[`${type}-${variant}`], ds_button_new_module_default[size], { [ds_button_new_module_default.disabled]: disabled }, className);
|
|
55
|
+
$[9] = children;
|
|
56
|
+
$[10] = className;
|
|
57
|
+
$[11] = disabled;
|
|
58
|
+
$[12] = size;
|
|
59
|
+
$[13] = type;
|
|
60
|
+
$[14] = variant;
|
|
61
|
+
$[15] = t4;
|
|
62
|
+
} else t4 = $[15];
|
|
63
|
+
const buttonClass = t4;
|
|
64
|
+
let t5;
|
|
65
|
+
if ($[16] !== contentClassName) {
|
|
66
|
+
t5 = classNames(ds_button_new_module_default.content, contentClassName);
|
|
67
|
+
$[16] = contentClassName;
|
|
68
|
+
$[17] = t5;
|
|
69
|
+
} else t5 = $[17];
|
|
70
|
+
let t6;
|
|
71
|
+
if ($[18] !== children || $[19] !== t5) {
|
|
72
|
+
t6 = /* @__PURE__ */ jsx("span", {
|
|
73
|
+
className: t5,
|
|
74
|
+
children
|
|
75
|
+
});
|
|
76
|
+
$[18] = children;
|
|
77
|
+
$[19] = t5;
|
|
78
|
+
$[20] = t6;
|
|
79
|
+
} else t6 = $[20];
|
|
80
|
+
let t7;
|
|
81
|
+
if ($[21] !== buttonClass || $[22] !== disabled || $[23] !== props || $[24] !== t6) {
|
|
82
|
+
t7 = /* @__PURE__ */ jsx("button", {
|
|
83
|
+
type: "button",
|
|
84
|
+
className: buttonClass,
|
|
85
|
+
disabled,
|
|
86
|
+
...props,
|
|
87
|
+
children: t6
|
|
88
|
+
});
|
|
89
|
+
$[21] = buttonClass;
|
|
90
|
+
$[22] = disabled;
|
|
91
|
+
$[23] = props;
|
|
92
|
+
$[24] = t6;
|
|
93
|
+
$[25] = t7;
|
|
94
|
+
} else t7 = $[25];
|
|
95
|
+
return t7;
|
|
96
|
+
};
|
|
97
|
+
var ds_button_new_default = DsButton;
|
|
98
|
+
|
|
99
|
+
//#endregion
|
|
100
|
+
export { ds_button_new_default as default };
|
|
101
|
+
//# sourceMappingURL=ds-button-new.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ds-button-new.js","names":["classNames","React","Children","isValidElement","styles","DsButtonProps","DsIcon","isIconOnly","children","ReactNode","count","childArray","toArray","onlyChild","type","DsButton","FC","t0","$","_c","buttonType","className","contentClassName","props","t1","t2","t3","variant","size","disabled","undefined","t4","button","iconButton","buttonClass","t5","content","t6","t7"],"sources":["../../../../../src/components/ds-button/versions/ds-button-new/ds-button-new.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport type React from 'react';\nimport { Children, isValidElement } from 'react';\nimport styles from './ds-button-new.module.scss';\nimport type { DsButtonProps } from './ds-button-new.types';\nimport DsIcon from '../../../ds-icon/ds-icon';\n\nconst isIconOnly = (children: React.ReactNode) => {\n\tif (Children.count(children) !== 1) {\n\t\treturn false;\n\t}\n\n\tconst childArray = Children.toArray(children);\n\tconst onlyChild = childArray[0];\n\n\treturn isValidElement(onlyChild) && onlyChild.type === DsIcon;\n};\n\n/**\n * Design system Button component\n */\nconst DsButton: React.FC<DsButtonProps> = ({\n\tbuttonType,\n\tvariant = 'filled',\n\tsize = 'medium',\n\tdisabled = false,\n\tclassName,\n\tcontentClassName,\n\tchildren,\n\t...props\n}) => {\n\tconst type = buttonType ?? (variant === 'ghost' ? 'secondary' : 'primary');\n\tconst buttonClass = classNames(\n\t\tstyles.button,\n\t\t{ [styles.iconButton]: isIconOnly(children) },\n\t\tstyles[`${type}-${variant}`],\n\t\tstyles[size],\n\t\t{ [styles.disabled]: disabled },\n\t\tclassName,\n\t);\n\n\treturn (\n\t\t<button type=\"button\" className={buttonClass} disabled={disabled} {...props}>\n\t\t\t<span className={classNames(styles.content, contentClassName)}>{children}</span>\n\t\t</button>\n\t);\n};\n\nexport default DsButton;\n"],"mappings":";;;;;;;;AAOA,MAAMO,cAAcC,aAA8B;AACjD,KAAIN,SAASQ,MAAMF,SAAS,KAAK,EAChC,QAAO;CAIR,MAAMK,YADaX,SAASU,QAAQJ,SAAS,CAChB;AAE7B,QAAOL,eAAeU,UAAU,IAAIA,UAAUC,SAASR;;;;;AAMxD,MAAMS,YAAoCE,OAAA;CAAA,MAAAC,IAAAC,EAAA,GAAA;CAAA,IAAAC;CAAA,IAAAZ;CAAA,IAAAa;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;CAAA,IAAAC;AAAA,KAAAR,EAAA,OAAAD,IAAA;AAAC,GAAA,CAAAG,YAAAO,SAAAH,IAAAI,MAAAH,IAAAI,UAAAH,IAAAL,WAAAC,kBAAAd,aAAAe,SAAAN;AAS1CC,IAAA,KAAAD;AAAAC,IAAA,KAAAE;AAAAF,IAAA,KAAAV;AAAAU,IAAA,KAAAG;AAAAH,IAAA,KAAAI;AAAAJ,IAAA,KAAAK;AAAAL,IAAA,KAAAM;AAAAN,IAAA,KAAAO;AAAAP,IAAA,KAAAQ;QAAA;AAAAN,eAAAF,EAAA;AAAAV,aAAAU,EAAA;AAAAG,cAAAH,EAAA;AAAAI,qBAAAJ,EAAA;AAAAK,UAAAL,EAAA;AAAAM,OAAAN,EAAA;AAAAO,OAAAP,EAAA;AAAAQ,OAAAR,EAAA;;CAPA,MAAAS,UAAAH,OAAAM,SAAA,WAAAN;CACA,MAAAI,OAAAH,OAAAK,SAAA,WAAAL;CACA,MAAAI,WAAAH,OAAAI,SAAA,QAAAJ;CAMA,MAAAZ,OAAaM,eAAeO,YAAY,UAAZ,cAAA;CAA+C,IAAAI;AAAA,KAAAb,EAAA,OAAAV,YAAAU,EAAA,QAAAG,aAAAH,EAAA,QAAAW,YAAAX,EAAA,QAAAU,QAAAV,EAAA,QAAAJ,QAAAI,EAAA,QAAAS,SAAA;AACvDI,OAAA/B,WACnBI,6BAAM4B,QACN,GAAG5B,6BAAM6B,aAAc1B,WAAWC,SAAQ,EAAG,EAC7CJ,6BAAO,GAAGU,KAAI,GAAIa,YAClBvB,6BAAOwB,OACP,GAAGxB,6BAAMyB,WAAYA,UAAU,EAC/BR,UACA;AAAAH,IAAA,KAAAV;AAAAU,IAAA,MAAAG;AAAAH,IAAA,MAAAW;AAAAX,IAAA,MAAAU;AAAAV,IAAA,MAAAJ;AAAAI,IAAA,MAAAS;AAAAT,IAAA,MAAAa;OAAAA,MAAAb,EAAA;CAPD,MAAAgB,cAAoBH;CAOlB,IAAAI;AAAA,KAAAjB,EAAA,QAAAI,kBAAA;AAIiBa,OAAAnC,WAAWI,6BAAMgC,SAAUd,iBAAiB;AAAAJ,IAAA,MAAAI;AAAAJ,IAAA,MAAAiB;OAAAA,MAAAjB,EAAA;CAAA,IAAAmB;AAAA,KAAAnB,EAAA,QAAAV,YAAAU,EAAA,QAAAiB,IAAA;AAA7DE,OAAA,oBAAA;GAAiB,WAAAF;GAA+C3B;IAAgB;AAAAU,IAAA,MAAAV;AAAAU,IAAA,MAAAiB;AAAAjB,IAAA,MAAAmB;OAAAA,MAAAnB,EAAA;CAAA,IAAAoB;AAAA,KAAApB,EAAA,QAAAgB,eAAAhB,EAAA,QAAAW,YAAAX,EAAA,QAAAK,SAAAL,EAAA,QAAAmB,IAAA;AADjFC,OAAA,oBAAA;GAAa,MAAA;GAAoBJ,WAAAA;GAAuBL;GAAQ,GAAMN;aACrEc;IACQ;AAAAnB,IAAA,MAAAgB;AAAAhB,IAAA,MAAAW;AAAAX,IAAA,MAAAK;AAAAL,IAAA,MAAAmB;AAAAnB,IAAA,MAAAoB;OAAAA,MAAApB,EAAA;AAAA,QAFToB;;AAMF,4BAAevB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/components/ds-button/versions/ds-button-new/ds-button-new.module.scss
|
|
3
|
+
var ds_button_new_module_default = {
|
|
4
|
+
"button": "_button_1a5ak_1",
|
|
5
|
+
"content": "_content_1a5ak_1",
|
|
6
|
+
"small": "_small_1a5ak_1",
|
|
7
|
+
"medium": "_medium_1a5ak_1",
|
|
8
|
+
"large": "_large_1a5ak_1",
|
|
9
|
+
"iconButton": "_iconButton_1a5ak_1",
|
|
10
|
+
"primary-filled": "_primary-filled_1a5ak_1",
|
|
11
|
+
"secondary-filled": "_secondary-filled_1a5ak_1",
|
|
12
|
+
"tertiary-filled": "_tertiary-filled_1a5ak_1",
|
|
13
|
+
"secondary-ghost": "_secondary-ghost_1a5ak_1",
|
|
14
|
+
"tertiary-ghost": "_tertiary-ghost_1a5ak_1",
|
|
15
|
+
"primary-danger": "_primary-danger_1a5ak_1",
|
|
16
|
+
"secondary-danger": "_secondary-danger_1a5ak_1",
|
|
17
|
+
"tertiary-danger": "_tertiary-danger_1a5ak_1",
|
|
18
|
+
"primary-dark": "_primary-dark_1a5ak_1",
|
|
19
|
+
"secondary-dark": "_secondary-dark_1a5ak_1",
|
|
20
|
+
"secondary-light-dark": "_secondary-light-dark_1a5ak_1",
|
|
21
|
+
"tertiary-dark": "_tertiary-dark_1a5ak_1"
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.default = ds_button_new_module_default;
|