@solostylist/ui-kit 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/dist/AppAutocomplete/AppAutocomplete.d.ts +10 -0
- package/dist/AppAutocomplete/AppAutocomplete.js +19 -0
- package/dist/AppAutocomplete/index.d.ts +1 -0
- package/dist/AppAutocomplete/index.js +4 -0
- package/dist/AppAutocomplete/package.json +5 -0
- package/dist/AppAvatar/AppAvatar.d.ts +7 -0
- package/dist/AppAvatar/AppAvatar.js +13 -0
- package/dist/AppAvatar/index.d.ts +1 -0
- package/dist/AppAvatar/index.js +4 -0
- package/dist/AppAvatar/package.json +5 -0
- package/dist/AppBox/AppBox.d.ts +7 -0
- package/dist/AppBox/AppBox.js +7 -0
- package/dist/AppBox/index.d.ts +1 -0
- package/dist/AppBox/index.js +4 -0
- package/dist/AppBox/package.json +5 -0
- package/dist/AppBreadcrumbsSeparator/AppBreadcrumbsSeparator.d.ts +3 -0
- package/dist/AppBreadcrumbsSeparator/AppBreadcrumbsSeparator.js +6 -0
- package/dist/AppBreadcrumbsSeparator/index.d.ts +1 -0
- package/dist/AppBreadcrumbsSeparator/index.js +4 -0
- package/dist/AppBreadcrumbsSeparator/package.json +5 -0
- package/dist/AppButton/AppButton.d.ts +9 -0
- package/dist/AppButton/AppButton.js +44 -0
- package/dist/AppButton/index.d.ts +1 -0
- package/dist/AppButton/index.js +4 -0
- package/dist/AppButton/package.json +5 -0
- package/dist/AppButtonLink/AppButtonLink.d.ts +16 -0
- package/dist/AppButtonLink/AppButtonLink.js +36 -0
- package/dist/AppButtonLink/index.d.ts +1 -0
- package/dist/AppButtonLink/index.js +4 -0
- package/dist/AppButtonLink/package.json +5 -0
- package/dist/AppCard/AppCard.d.ts +6 -0
- package/dist/AppCard/AppCard.js +6 -0
- package/dist/AppCard/index.d.ts +1 -0
- package/dist/AppCard/index.js +4 -0
- package/dist/AppCard/package.json +5 -0
- package/dist/AppCardActions/AppCardActions.d.ts +6 -0
- package/dist/AppCardActions/AppCardActions.js +6 -0
- package/dist/AppCardActions/index.d.ts +1 -0
- package/dist/AppCardActions/index.js +4 -0
- package/dist/AppCardActions/package.json +5 -0
- package/dist/AppCardContent/AppCardContent.d.ts +6 -0
- package/dist/AppCardContent/AppCardContent.js +6 -0
- package/dist/AppCardContent/index.d.ts +1 -0
- package/dist/AppCardContent/index.js +4 -0
- package/dist/AppCardContent/package.json +5 -0
- package/dist/AppCardHeader/AppCardHeader.d.ts +10 -0
- package/dist/AppCardHeader/AppCardHeader.js +13 -0
- package/dist/AppCardHeader/index.d.ts +1 -0
- package/dist/AppCardHeader/index.js +4 -0
- package/dist/AppCardHeader/package.json +5 -0
- package/dist/AppCheckbox/AppCheckbox.d.ts +7 -0
- package/dist/AppCheckbox/AppCheckbox.js +16 -0
- package/dist/AppCheckbox/index.d.ts +1 -0
- package/dist/AppCheckbox/index.js +4 -0
- package/dist/AppCheckbox/package.json +5 -0
- package/dist/AppChip/AppChip.d.ts +6 -0
- package/dist/AppChip/AppChip.js +6 -0
- package/dist/AppChip/index.d.ts +1 -0
- package/dist/AppChip/index.js +4 -0
- package/dist/AppChip/package.json +5 -0
- package/dist/AppChips/AppChips.d.ts +7 -0
- package/dist/AppChips/AppChips.js +72 -0
- package/dist/AppChips/index.d.ts +1 -0
- package/dist/AppChips/index.js +4 -0
- package/dist/AppChips/package.json +5 -0
- package/dist/AppDataTable/AppDataTable.d.ts +29 -0
- package/dist/AppDataTable/AppDataTable.js +1178 -0
- package/dist/AppDataTable/index.d.ts +2 -0
- package/dist/AppDataTable/index.js +4 -0
- package/dist/AppDataTable/package.json +5 -0
- package/dist/AppDialog/AppDialog.d.ts +15 -0
- package/dist/AppDialog/AppDialog.js +31 -0
- package/dist/AppDialog/index.d.ts +1 -0
- package/dist/AppDialog/index.js +4 -0
- package/dist/AppDialog/package.json +5 -0
- package/dist/AppDialogConfirm/AppDialogConfirm.d.ts +30 -0
- package/dist/AppDialogConfirm/AppDialogConfirm.js +74 -0
- package/dist/AppDialogConfirm/index.d.ts +2 -0
- package/dist/AppDialogConfirm/index.js +6 -0
- package/dist/AppDialogConfirm/package.json +5 -0
- package/dist/AppDialogMessage/AppDialogMessage.d.ts +27 -0
- package/dist/AppDialogMessage/AppDialogMessage.js +64 -0
- package/dist/AppDialogMessage/index.d.ts +2 -0
- package/dist/AppDialogMessage/index.js +6 -0
- package/dist/AppDialogMessage/package.json +5 -0
- package/dist/AppEmpty/AppEmpty.d.ts +5 -0
- package/dist/AppEmpty/AppEmpty.js +6 -0
- package/dist/AppEmpty/index.d.ts +1 -0
- package/dist/AppEmpty/index.js +4 -0
- package/dist/AppEmpty/package.json +5 -0
- package/dist/AppError/AppError.d.ts +3 -0
- package/dist/AppError/AppError.js +18 -0
- package/dist/AppError/index.d.ts +1 -0
- package/dist/AppError/index.js +4 -0
- package/dist/AppError/package.json +5 -0
- package/dist/AppFileDropzone/AppFileDropzone.d.ts +20 -0
- package/dist/AppFileDropzone/AppFileDropzone.js +166 -0
- package/dist/AppFileDropzone/index.d.ts +2 -0
- package/dist/AppFileDropzone/index.js +4 -0
- package/dist/AppFileDropzone/package.json +5 -0
- package/dist/AppFileIcon/AppFileIcon.d.ts +6 -0
- package/dist/AppFileIcon/AppFileIcon.js +29 -0
- package/dist/AppFileIcon/index.d.ts +1 -0
- package/dist/AppFileIcon/index.js +4 -0
- package/dist/AppFileIcon/package.json +5 -0
- package/dist/AppFormControl/AppFormControl.d.ts +8 -0
- package/dist/AppFormControl/AppFormControl.js +10 -0
- package/dist/AppFormControl/index.d.ts +1 -0
- package/dist/AppFormControl/index.js +4 -0
- package/dist/AppFormControl/package.json +5 -0
- package/dist/AppGallery/AppGallery.d.ts +6 -0
- package/dist/AppGallery/AppGallery.js +1089 -0
- package/dist/AppGallery/index.d.ts +1 -0
- package/dist/AppGallery/index.js +4 -0
- package/dist/AppGallery/package.json +5 -0
- package/dist/AppI18nProvider/AppI18nProvider.d.ts +7 -0
- package/dist/AppI18nProvider/AppI18nProvider.js +20 -0
- package/dist/AppI18nProvider/index.d.ts +1 -0
- package/dist/AppI18nProvider/index.js +4 -0
- package/dist/AppI18nProvider/package.json +5 -0
- package/dist/AppIconButton/AppIconButton.d.ts +8 -0
- package/dist/AppIconButton/AppIconButton.js +6 -0
- package/dist/AppIconButton/index.d.ts +1 -0
- package/dist/AppIconButton/index.js +4 -0
- package/dist/AppIconButton/package.json +5 -0
- package/dist/AppIcons/AppIcons.d.ts +3 -0
- package/dist/AppIcons/AppIcons.js +1081 -0
- package/dist/AppIcons/index.d.ts +1 -0
- package/dist/AppIcons/index.js +4 -0
- package/dist/AppIcons/package.json +5 -0
- package/dist/AppLabel/AppLabel.d.ts +11 -0
- package/dist/AppLabel/AppLabel.js +21 -0
- package/dist/AppLabel/index.d.ts +1 -0
- package/dist/AppLabel/index.js +4 -0
- package/dist/AppLabel/package.json +5 -0
- package/dist/AppLink/AppLink.d.ts +6 -0
- package/dist/AppLink/AppLink.js +6 -0
- package/dist/AppLink/index.d.ts +1 -0
- package/dist/AppLink/index.js +4 -0
- package/dist/AppLink/package.json +5 -0
- package/dist/AppMultiSelect/AppMultiSelect.d.ts +12 -0
- package/dist/AppMultiSelect/AppMultiSelect.js +61 -0
- package/dist/AppMultiSelect/index.d.ts +1 -0
- package/dist/AppMultiSelect/index.js +4 -0
- package/dist/AppMultiSelect/package.json +5 -0
- package/dist/AppNoData/AppNoData.d.ts +5 -0
- package/dist/AppNoData/AppNoData.js +6 -0
- package/dist/AppNoData/index.d.ts +1 -0
- package/dist/AppNoData/index.js +4 -0
- package/dist/AppNoData/package.json +5 -0
- package/dist/AppNoSsr/AppNoSsr.d.ts +8 -0
- package/dist/AppNoSsr/AppNoSsr.js +14 -0
- package/dist/AppNoSsr/index.d.ts +1 -0
- package/dist/AppNoSsr/index.js +4 -0
- package/dist/AppNoSsr/package.json +5 -0
- package/dist/AppOption/AppOption.d.ts +9 -0
- package/dist/AppOption/AppOption.js +6 -0
- package/dist/AppOption/index.d.ts +1 -0
- package/dist/AppOption/index.js +4 -0
- package/dist/AppOption/package.json +5 -0
- package/dist/AppOutlinedInput/AppOutlinedInput.d.ts +10 -0
- package/dist/AppOutlinedInput/AppOutlinedInput.js +40 -0
- package/dist/AppOutlinedInput/index.d.ts +1 -0
- package/dist/AppOutlinedInput/index.js +4 -0
- package/dist/AppOutlinedInput/package.json +5 -0
- package/dist/AppPagination/AppPagination.d.ts +7 -0
- package/dist/AppPagination/AppPagination.js +17 -0
- package/dist/AppPagination/index.d.ts +1 -0
- package/dist/AppPagination/index.js +4 -0
- package/dist/AppPagination/package.json +5 -0
- package/dist/AppRating/AppRating.d.ts +7 -0
- package/dist/AppRating/AppRating.js +7 -0
- package/dist/AppRating/index.d.ts +1 -0
- package/dist/AppRating/index.js +4 -0
- package/dist/AppRating/package.json +5 -0
- package/dist/AppSelect/AppSelect.d.ts +14 -0
- package/dist/AppSelect/AppSelect.js +82 -0
- package/dist/AppSelect/index.d.ts +1 -0
- package/dist/AppSelect/index.js +4 -0
- package/dist/AppSelect/package.json +5 -0
- package/dist/AppSkeleton/AppSkeleton.d.ts +11 -0
- package/dist/AppSkeleton/AppSkeleton.js +34 -0
- package/dist/AppSkeleton/index.d.ts +1 -0
- package/dist/AppSkeleton/index.js +4 -0
- package/dist/AppSkeleton/package.json +5 -0
- package/dist/AppSnackbarMessage/AppSnackbarMessage.d.ts +23 -0
- package/dist/AppSnackbarMessage/AppSnackbarMessage.js +50 -0
- package/dist/AppSnackbarMessage/index.d.ts +2 -0
- package/dist/AppSnackbarMessage/index.js +6 -0
- package/dist/AppSnackbarMessage/package.json +5 -0
- package/dist/AppStack/AppStack.d.ts +6 -0
- package/dist/AppStack/AppStack.js +6 -0
- package/dist/AppStack/index.d.ts +1 -0
- package/dist/AppStack/index.js +4 -0
- package/dist/AppStack/package.json +5 -0
- package/dist/AppTextEditor/AppTextEditor.d.ts +23 -0
- package/dist/AppTextEditor/AppTextEditor.js +80 -0
- package/dist/AppTextEditor/TextEditorToolbar.d.ts +6 -0
- package/dist/AppTextEditor/TextEditorToolbar.js +4479 -0
- package/dist/AppTextEditor/index.d.ts +1 -0
- package/dist/AppTextEditor/index.js +4 -0
- package/dist/AppTextEditor/package.json +5 -0
- package/dist/AppTextTruncation/AppTextTruncation.d.ts +6 -0
- package/dist/AppTextTruncation/AppTextTruncation.js +15 -0
- package/dist/AppTextTruncation/index.d.ts +1 -0
- package/dist/AppTextTruncation/index.js +4 -0
- package/dist/AppTextTruncation/package.json +5 -0
- package/dist/AppThemeProvider/AppThemeProvider.d.ts +9 -0
- package/dist/AppThemeProvider/AppThemeProvider.js +141 -0
- package/dist/AppThemeProvider/index.d.ts +1 -0
- package/dist/AppThemeProvider/index.js +4 -0
- package/dist/AppThemeProvider/package.json +5 -0
- package/dist/AppTip/AppTip.d.ts +6 -0
- package/dist/AppTip/AppTip.js +28 -0
- package/dist/AppTip/index.d.ts +1 -0
- package/dist/AppTip/index.js +4 -0
- package/dist/AppTip/package.json +5 -0
- package/dist/Box-yxuKPTCX.js +60 -0
- package/dist/ButtonBase-p_uz8ITC.js +989 -0
- package/dist/CaretDown-CgrRY9__.js +41 -0
- package/dist/DefaultPropsProvider-BV4t9fEW.js +71 -0
- package/dist/Lightbulb-1rDyOsPk.js +47 -0
- package/dist/Menu-B0R91i07.js +2994 -0
- package/dist/MenuItem-BjjYkRmW.js +262 -0
- package/dist/SSRBase-B9xq2wUG.js +56 -0
- package/dist/Stack-D9qNbbkC.js +198 -0
- package/dist/Typography-BYkXNa-U.js +260 -0
- package/dist/User-Bx-HYRxI.js +41 -0
- package/dist/X-DETrowOy.js +47 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/assets/AppGallery.css +1 -0
- package/dist/assets/AppTextTruncation.css +1 -0
- package/dist/backdropClasses-DDhytLTQ.js +9 -0
- package/dist/clsx-C-FXfxyk.js +236 -0
- package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +17 -0
- package/dist/createTheme-C97xvI-s.js +2789 -0
- package/dist/extendSxProp-CKQgGYDd.js +37 -0
- package/dist/generateUtilityClasses-CuEy5gtx.js +41 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +6 -0
- package/dist/hooks/use-dialog.d.ts +7 -0
- package/dist/hooks/use-dialog.js +12 -0
- package/dist/hooks/use-popover.d.ts +10 -0
- package/dist/hooks/use-popover.js +14 -0
- package/dist/index-Btrukby7.js +88 -0
- package/dist/inputBaseClasses-s6dljKxi.js +9 -0
- package/dist/jsx-runtime-B6kdoens.js +634 -0
- package/dist/listItemIconClasses-CTdclC9V.js +5 -0
- package/dist/main.d.ts +51 -0
- package/dist/main.js +111 -0
- package/dist/memoTheme-B2qvAi64.js +404 -0
- package/dist/outlinedInputClasses-R7dmh7eW.js +13 -0
- package/dist/paperClasses-Bf2rrWVr.js +9 -0
- package/dist/styles/theme/color-schemes.d.ts +7 -0
- package/dist/styles/theme/color-schemes.js +195 -0
- package/dist/styles/theme/colors.d.ts +92 -0
- package/dist/styles/theme/colors.js +94 -0
- package/dist/styles/theme/components/accordion.d.ts +8 -0
- package/dist/styles/theme/components/accordion.js +11 -0
- package/dist/styles/theme/components/alert.d.ts +7 -0
- package/dist/styles/theme/components/alert.js +4 -0
- package/dist/styles/theme/components/autocomplete.d.ts +124 -0
- package/dist/styles/theme/components/autocomplete.js +51 -0
- package/dist/styles/theme/components/avatar.d.ts +18 -0
- package/dist/styles/theme/components/avatar.js +21 -0
- package/dist/styles/theme/components/backdrop.d.ts +9 -0
- package/dist/styles/theme/components/backdrop.js +9 -0
- package/dist/styles/theme/components/button-base.d.ts +5 -0
- package/dist/styles/theme/components/button-base.js +4 -0
- package/dist/styles/theme/components/button-group.d.ts +5 -0
- package/dist/styles/theme/components/button-group.js +4 -0
- package/dist/styles/theme/components/button.d.ts +180 -0
- package/dist/styles/theme/components/button.js +109 -0
- package/dist/styles/theme/components/card-actions.d.ts +7 -0
- package/dist/styles/theme/components/card-actions.js +6 -0
- package/dist/styles/theme/components/card-content.d.ts +10 -0
- package/dist/styles/theme/components/card-content.js +7 -0
- package/dist/styles/theme/components/card-header.d.ts +25 -0
- package/dist/styles/theme/components/card-header.js +20 -0
- package/dist/styles/theme/components/card.d.ts +979 -0
- package/dist/styles/theme/components/card.js +17 -0
- package/dist/styles/theme/components/checkbox.d.ts +18 -0
- package/dist/styles/theme/components/checkbox.js +60 -0
- package/dist/styles/theme/components/chip.d.ts +1092 -0
- package/dist/styles/theme/components/chip.js +106 -0
- package/dist/styles/theme/components/components.d.ts +3206 -0
- package/dist/styles/theme/components/components.js +115 -0
- package/dist/styles/theme/components/dialog-actions.d.ts +7 -0
- package/dist/styles/theme/components/dialog-actions.js +6 -0
- package/dist/styles/theme/components/dialog-content-text.d.ts +8 -0
- package/dist/styles/theme/components/dialog-content-text.js +6 -0
- package/dist/styles/theme/components/dialog-content.d.ts +8 -0
- package/dist/styles/theme/components/dialog-content.js +6 -0
- package/dist/styles/theme/components/dialog-title.d.ts +7 -0
- package/dist/styles/theme/components/dialog-title.js +6 -0
- package/dist/styles/theme/components/filled-input.d.ts +31 -0
- package/dist/styles/theme/components/filled-input.js +21 -0
- package/dist/styles/theme/components/form-control-label.d.ts +15 -0
- package/dist/styles/theme/components/form-control-label.js +7 -0
- package/dist/styles/theme/components/form-group.d.ts +7 -0
- package/dist/styles/theme/components/form-group.js +4 -0
- package/dist/styles/theme/components/form-helper-text.d.ts +8 -0
- package/dist/styles/theme/components/form-helper-text.js +8 -0
- package/dist/styles/theme/components/form-label.d.ts +12 -0
- package/dist/styles/theme/components/form-label.js +9 -0
- package/dist/styles/theme/components/icon-button.d.ts +83 -0
- package/dist/styles/theme/components/icon-button.js +49 -0
- package/dist/styles/theme/components/input-base.d.ts +39 -0
- package/dist/styles/theme/components/input-base.js +34 -0
- package/dist/styles/theme/components/input-label.d.ts +10 -0
- package/dist/styles/theme/components/input-label.js +6 -0
- package/dist/styles/theme/components/input.d.ts +32 -0
- package/dist/styles/theme/components/input.js +22 -0
- package/dist/styles/theme/components/linear-progress.d.ts +8 -0
- package/dist/styles/theme/components/linear-progress.js +6 -0
- package/dist/styles/theme/components/link.d.ts +10 -0
- package/dist/styles/theme/components/link.js +11 -0
- package/dist/styles/theme/components/list-item-avatar.d.ts +7 -0
- package/dist/styles/theme/components/list-item-avatar.js +6 -0
- package/dist/styles/theme/components/list-item-button.d.ts +10 -0
- package/dist/styles/theme/components/list-item-button.js +7 -0
- package/dist/styles/theme/components/list-item-icon.d.ts +9 -0
- package/dist/styles/theme/components/list-item-icon.js +6 -0
- package/dist/styles/theme/components/list-item-text.d.ts +7 -0
- package/dist/styles/theme/components/list-item-text.js +6 -0
- package/dist/styles/theme/components/list-item.d.ts +7 -0
- package/dist/styles/theme/components/list-item.js +6 -0
- package/dist/styles/theme/components/list.d.ts +7 -0
- package/dist/styles/theme/components/list.js +6 -0
- package/dist/styles/theme/components/menu-item.d.ts +17 -0
- package/dist/styles/theme/components/menu-item.js +17 -0
- package/dist/styles/theme/components/menu.d.ts +13 -0
- package/dist/styles/theme/components/menu.js +7 -0
- package/dist/styles/theme/components/outlined-input.d.ts +127 -0
- package/dist/styles/theme/components/outlined-input.js +47 -0
- package/dist/styles/theme/components/paper.d.ts +7 -0
- package/dist/styles/theme/components/paper.js +6 -0
- package/dist/styles/theme/components/popover.d.ts +11 -0
- package/dist/styles/theme/components/popover.js +7 -0
- package/dist/styles/theme/components/radio.d.ts +13 -0
- package/dist/styles/theme/components/radio.js +25 -0
- package/dist/styles/theme/components/select.d.ts +21 -0
- package/dist/styles/theme/components/select.js +18 -0
- package/dist/styles/theme/components/skeleton.d.ts +5 -0
- package/dist/styles/theme/components/skeleton.js +8 -0
- package/dist/styles/theme/components/stack.d.ts +5 -0
- package/dist/styles/theme/components/stack.js +4 -0
- package/dist/styles/theme/components/switch.d.ts +19 -0
- package/dist/styles/theme/components/switch.js +11 -0
- package/dist/styles/theme/components/tab.d.ts +18 -0
- package/dist/styles/theme/components/tab.js +15 -0
- package/dist/styles/theme/components/table-body.d.ts +5 -0
- package/dist/styles/theme/components/table-body.js +10 -0
- package/dist/styles/theme/components/table-cell.d.ts +10 -0
- package/dist/styles/theme/components/table-cell.js +11 -0
- package/dist/styles/theme/components/table-head.d.ts +11 -0
- package/dist/styles/theme/components/table-head.js +15 -0
- package/dist/styles/theme/components/table-pagination.d.ts +28 -0
- package/dist/styles/theme/components/table-pagination.js +93 -0
- package/dist/styles/theme/components/tabs.d.ts +33 -0
- package/dist/styles/theme/components/tabs.js +20 -0
- package/dist/styles/theme/components/timeline-connector.d.ts +7 -0
- package/dist/styles/theme/components/timeline-connector.js +6 -0
- package/dist/styles/theme/components/toggle-button-group.d.ts +23 -0
- package/dist/styles/theme/components/toggle-button-group.js +17 -0
- package/dist/styles/theme/components/toggle-button.d.ts +12 -0
- package/dist/styles/theme/components/toggle-button.js +9 -0
- package/dist/styles/theme/components/tooltip.d.ts +10 -0
- package/dist/styles/theme/components/tooltip.js +7 -0
- package/dist/styles/theme/create-theme.d.ts +8 -0
- package/dist/styles/theme/create-theme.js +22 -0
- package/dist/styles/theme/index.d.ts +1 -0
- package/dist/styles/theme/index.js +4 -0
- package/dist/styles/theme/shadows.d.ts +4 -0
- package/dist/styles/theme/shadows.js +59 -0
- package/dist/styles/theme/typography.d.ts +68 -0
- package/dist/styles/theme/typography.js +31 -0
- package/dist/tableCellClasses-BIg5orIQ.js +9 -0
- package/dist/useControlled-CYUofcJ9.js +287 -0
- package/dist/useEnhancedEffect-CJGo-L3B.js +5 -0
- package/dist/useTheme-DYc4rgBb.js +17 -0
- package/dist/utils/bytes-to-size.d.ts +1 -0
- package/dist/utils/bytes-to-size.js +9 -0
- package/dist/utils/dayjs.d.ts +3 -0
- package/dist/utils/dayjs.js +108 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +13 -0
- package/dist/utils/logger.d.ts +26 -0
- package/dist/utils/logger.js +51 -0
- package/package.json +108 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Breakpoint } from '@mui/material';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
interface AppDialogProps {
|
|
4
|
+
title?: string | React.ReactNode;
|
|
5
|
+
content?: string | React.ReactNode;
|
|
6
|
+
actions?: React.ReactNode;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
open?: boolean;
|
|
9
|
+
maxWidth?: Breakpoint;
|
|
10
|
+
useForm?: boolean;
|
|
11
|
+
onSubmit?: () => void;
|
|
12
|
+
showClose?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const AppDialog: ({ title, content, actions, onClose, open, maxWidth, useForm, onSubmit, showClose, }: AppDialogProps) => React.JSX.Element;
|
|
15
|
+
export default AppDialog;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { j as r } from "../jsx-runtime-B6kdoens.js";
|
|
2
|
+
import { Dialog as p, DialogTitle as j, Stack as h, Typography as t, IconButton as f, DialogContent as m, DialogActions as g } from "@mui/material";
|
|
3
|
+
import { S as u } from "../X-DETrowOy.js";
|
|
4
|
+
const w = ({
|
|
5
|
+
title: i,
|
|
6
|
+
content: s,
|
|
7
|
+
actions: e,
|
|
8
|
+
onClose: n = () => {
|
|
9
|
+
},
|
|
10
|
+
open: a = !1,
|
|
11
|
+
maxWidth: l = "sm",
|
|
12
|
+
useForm: c = !1,
|
|
13
|
+
onSubmit: x = () => {
|
|
14
|
+
},
|
|
15
|
+
showClose: d = !0
|
|
16
|
+
}) => {
|
|
17
|
+
const o = /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
18
|
+
s && /* @__PURE__ */ r.jsx(m, { children: typeof s == "string" ? /* @__PURE__ */ r.jsx(t, { color: "text.secondary", variant: "body2", children: s }) : s }),
|
|
19
|
+
e && /* @__PURE__ */ r.jsx(g, { children: e })
|
|
20
|
+
] });
|
|
21
|
+
return /* @__PURE__ */ r.jsxs(p, { fullWidth: !0, maxWidth: l, onClose: n, open: a, children: [
|
|
22
|
+
i && /* @__PURE__ */ r.jsx(j, { children: /* @__PURE__ */ r.jsxs(h, { direction: "row", spacing: 3, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
23
|
+
typeof i == "string" ? /* @__PURE__ */ r.jsx(t, { variant: "h5", textTransform: "capitalize", children: i }) : /* @__PURE__ */ r.jsx("div", { children: i }),
|
|
24
|
+
d && /* @__PURE__ */ r.jsx(f, { onClick: n, children: /* @__PURE__ */ r.jsx(u, {}) })
|
|
25
|
+
] }) }),
|
|
26
|
+
c ? /* @__PURE__ */ r.jsx("form", { onSubmit: x, children: o }) : o
|
|
27
|
+
] });
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
w as default
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './AppDialog';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Breakpoint } from '@mui/material';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
interface AppDialogConfirmProps {
|
|
4
|
+
title?: string | React.ReactNode;
|
|
5
|
+
content?: string | React.ReactNode;
|
|
6
|
+
onConfirm?: () => void;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
open?: boolean;
|
|
9
|
+
maxWidth?: Breakpoint;
|
|
10
|
+
showClose?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const AppDialogConfirm: ({ title, content, onConfirm, onClose, open, maxWidth, showClose, loading, }: AppDialogConfirmProps) => React.JSX.Element;
|
|
14
|
+
export default AppDialogConfirm;
|
|
15
|
+
export interface DialogConfirmOpenOptions {
|
|
16
|
+
title: string;
|
|
17
|
+
content: string;
|
|
18
|
+
onConfirm: () => void;
|
|
19
|
+
}
|
|
20
|
+
export interface DialogConfirmContextProps {
|
|
21
|
+
handleOpen: (dialogConfirmOptions: DialogConfirmOpenOptions) => void;
|
|
22
|
+
handleClose: () => void;
|
|
23
|
+
open: boolean;
|
|
24
|
+
loading: boolean;
|
|
25
|
+
setLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
26
|
+
}
|
|
27
|
+
export declare const DialogConfirmProvider: ({ children }: {
|
|
28
|
+
children: React.ReactNode;
|
|
29
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare const useDialogConfirm: () => DialogConfirmContextProps;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { j as n } from "../jsx-runtime-B6kdoens.js";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { Dialog as C, DialogTitle as g, Stack as j, IconButton as D, DialogContent as v, DialogActions as y } from "@mui/material";
|
|
4
|
+
import { S as b } from "../X-DETrowOy.js";
|
|
5
|
+
import d from "../AppButton/AppButton.js";
|
|
6
|
+
import { useDialog as k } from "../hooks/use-dialog.js";
|
|
7
|
+
import { T as m } from "../Typography-BYkXNa-U.js";
|
|
8
|
+
const w = ({
|
|
9
|
+
title: e,
|
|
10
|
+
content: o,
|
|
11
|
+
onConfirm: s = () => {
|
|
12
|
+
},
|
|
13
|
+
onClose: i = () => {
|
|
14
|
+
},
|
|
15
|
+
open: t = !1,
|
|
16
|
+
maxWidth: a = "sm",
|
|
17
|
+
showClose: c = !0,
|
|
18
|
+
loading: l = !1
|
|
19
|
+
}) => /* @__PURE__ */ n.jsxs(C, { fullWidth: !0, maxWidth: a, onClose: i, open: t, children: [
|
|
20
|
+
e && /* @__PURE__ */ n.jsx(g, { children: /* @__PURE__ */ n.jsxs(j, { direction: "row", spacing: 3, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
21
|
+
typeof e == "string" ? /* @__PURE__ */ n.jsx(m, { variant: "h5", textTransform: "capitalize", children: e }) : /* @__PURE__ */ n.jsx("div", { children: e }),
|
|
22
|
+
c && /* @__PURE__ */ n.jsx(D, { onClick: i, children: /* @__PURE__ */ n.jsx(b, {}) })
|
|
23
|
+
] }) }),
|
|
24
|
+
o && /* @__PURE__ */ n.jsx(v, { children: typeof o == "string" ? /* @__PURE__ */ n.jsx(m, { color: "text.secondary", variant: "body2", children: o }) : o }),
|
|
25
|
+
/* @__PURE__ */ n.jsx(y, { children: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
26
|
+
/* @__PURE__ */ n.jsx(d, { onClick: i, variant: "outlined", disabled: l, children: "Cancel" }),
|
|
27
|
+
/* @__PURE__ */ n.jsx(d, { onClick: s, disabled: l, children: "Confirm" })
|
|
28
|
+
] }) })
|
|
29
|
+
] }), f = r.createContext(null), I = ({ children: e }) => {
|
|
30
|
+
const o = k(), [s, i] = r.useState(!1), [t, a] = r.useState({
|
|
31
|
+
title: "",
|
|
32
|
+
content: "",
|
|
33
|
+
onConfirm: () => {
|
|
34
|
+
}
|
|
35
|
+
}), c = {
|
|
36
|
+
handleOpen: r.useCallback(
|
|
37
|
+
(p) => {
|
|
38
|
+
const { title: x, content: h, onConfirm: u } = p;
|
|
39
|
+
a({ title: x, content: h, onConfirm: u }), o.handleOpen();
|
|
40
|
+
},
|
|
41
|
+
[o]
|
|
42
|
+
),
|
|
43
|
+
handleClose: o.handleClose,
|
|
44
|
+
open: o.open,
|
|
45
|
+
loading: s,
|
|
46
|
+
setLoading: i
|
|
47
|
+
}, l = () => {
|
|
48
|
+
t.onConfirm();
|
|
49
|
+
};
|
|
50
|
+
return /* @__PURE__ */ n.jsxs(f.Provider, { value: c, children: [
|
|
51
|
+
/* @__PURE__ */ n.jsx(
|
|
52
|
+
w,
|
|
53
|
+
{
|
|
54
|
+
open: o.open,
|
|
55
|
+
title: t == null ? void 0 : t.title,
|
|
56
|
+
content: t == null ? void 0 : t.content,
|
|
57
|
+
onClose: o.handleClose,
|
|
58
|
+
onConfirm: l,
|
|
59
|
+
loading: s
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
e
|
|
63
|
+
] });
|
|
64
|
+
}, O = () => {
|
|
65
|
+
const e = r.useContext(f);
|
|
66
|
+
if (!e)
|
|
67
|
+
throw new Error("useDialogConfirm must be used within a DialogConfirmProvider");
|
|
68
|
+
return e;
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
I as DialogConfirmProvider,
|
|
72
|
+
w as default,
|
|
73
|
+
O as useDialogConfirm
|
|
74
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Breakpoint } from '@mui/material';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
interface AppDialogMessageProps {
|
|
4
|
+
title?: string | React.ReactNode;
|
|
5
|
+
content?: string | React.ReactNode;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
onOk?: () => void;
|
|
8
|
+
open?: boolean;
|
|
9
|
+
maxWidth?: Breakpoint;
|
|
10
|
+
showClose?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const AppDialogMessage: ({ title, content, onClose, onOk, open, maxWidth, showClose, }: AppDialogMessageProps) => React.JSX.Element;
|
|
13
|
+
export default AppDialogMessage;
|
|
14
|
+
export interface DialogMessageOpenOptions {
|
|
15
|
+
title?: string;
|
|
16
|
+
content?: string;
|
|
17
|
+
onOk?: () => void;
|
|
18
|
+
}
|
|
19
|
+
export interface DialogMessageContextProps {
|
|
20
|
+
handleOpen: (dialogMessageOptions: DialogMessageOpenOptions) => void;
|
|
21
|
+
handleClose: () => void;
|
|
22
|
+
open: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const DialogMessageProvider: ({ children }: {
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const useDialogMessage: () => DialogMessageContextProps;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { j as e } from "../jsx-runtime-B6kdoens.js";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { Dialog as x, DialogTitle as u, Stack as m, IconButton as g, DialogContent as j, DialogActions as f } from "@mui/material";
|
|
4
|
+
import { S as C } from "../X-DETrowOy.js";
|
|
5
|
+
import D from "../AppButton/AppButton.js";
|
|
6
|
+
import { useDialog as k } from "../hooks/use-dialog.js";
|
|
7
|
+
import { T as c } from "../Typography-BYkXNa-U.js";
|
|
8
|
+
const v = ({
|
|
9
|
+
title: t,
|
|
10
|
+
content: o,
|
|
11
|
+
onClose: n = () => {
|
|
12
|
+
},
|
|
13
|
+
onOk: r = () => {
|
|
14
|
+
},
|
|
15
|
+
open: i = !1,
|
|
16
|
+
maxWidth: l = "sm",
|
|
17
|
+
showClose: a = !0
|
|
18
|
+
}) => /* @__PURE__ */ e.jsxs(x, { fullWidth: !0, maxWidth: l, onClose: n, open: i, children: [
|
|
19
|
+
t && /* @__PURE__ */ e.jsx(u, { children: /* @__PURE__ */ e.jsxs(m, { direction: "row", spacing: 3, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
20
|
+
typeof t == "string" ? /* @__PURE__ */ e.jsx(c, { variant: "h5", textTransform: "capitalize", children: t }) : /* @__PURE__ */ e.jsx("div", { children: t }),
|
|
21
|
+
a && /* @__PURE__ */ e.jsx(g, { onClick: n, children: /* @__PURE__ */ e.jsx(C, {}) })
|
|
22
|
+
] }) }),
|
|
23
|
+
o && /* @__PURE__ */ e.jsx(j, { children: typeof o == "string" ? /* @__PURE__ */ e.jsx(c, { color: "text.secondary", variant: "body2", children: o }) : o }),
|
|
24
|
+
/* @__PURE__ */ e.jsx(f, { children: /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx(D, { onClick: r, children: "Ok" }) }) })
|
|
25
|
+
] }), d = s.createContext(null), M = ({ children: t }) => {
|
|
26
|
+
const o = k(), [n, r] = s.useState({
|
|
27
|
+
title: "",
|
|
28
|
+
content: "",
|
|
29
|
+
onOk: o.handleClose
|
|
30
|
+
}), i = {
|
|
31
|
+
handleOpen: s.useCallback(
|
|
32
|
+
(l) => {
|
|
33
|
+
const { title: a, content: p, onOk: h = o.handleClose } = l;
|
|
34
|
+
r({ title: a, content: p, onOk: h }), o.handleOpen();
|
|
35
|
+
},
|
|
36
|
+
[o]
|
|
37
|
+
),
|
|
38
|
+
handleClose: o.handleClose,
|
|
39
|
+
open: o.open
|
|
40
|
+
};
|
|
41
|
+
return /* @__PURE__ */ e.jsxs(d.Provider, { value: i, children: [
|
|
42
|
+
/* @__PURE__ */ e.jsx(
|
|
43
|
+
v,
|
|
44
|
+
{
|
|
45
|
+
open: o.open,
|
|
46
|
+
title: n == null ? void 0 : n.title,
|
|
47
|
+
content: n == null ? void 0 : n.content,
|
|
48
|
+
onClose: o.handleClose,
|
|
49
|
+
onOk: n == null ? void 0 : n.onOk
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
t
|
|
53
|
+
] });
|
|
54
|
+
}, P = () => {
|
|
55
|
+
const t = s.useContext(d);
|
|
56
|
+
if (!t)
|
|
57
|
+
throw new Error("useDialogMessage must be used within a DialogMessageProvider");
|
|
58
|
+
return t;
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
M as DialogMessageProvider,
|
|
62
|
+
v as default,
|
|
63
|
+
P as useDialogMessage
|
|
64
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { j as r } from "../jsx-runtime-B6kdoens.js";
|
|
2
|
+
import { Typography as t } from "@mui/material";
|
|
3
|
+
const e = ({ title: o }) => /* @__PURE__ */ r.jsx(t, { variant: "body2", color: "text.secondary", my: 3, children: o || "No data available." });
|
|
4
|
+
export {
|
|
5
|
+
e as default
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './AppEmpty';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { j as r } from "../jsx-runtime-B6kdoens.js";
|
|
2
|
+
import { Stack as t, Box as a, Typography as e } from "@mui/material";
|
|
3
|
+
const s = () => /* @__PURE__ */ r.jsxs(t, { alignItems: "center", gap: 2, children: [
|
|
4
|
+
/* @__PURE__ */ r.jsx(
|
|
5
|
+
a,
|
|
6
|
+
{
|
|
7
|
+
alt: "Internal server error",
|
|
8
|
+
component: "img",
|
|
9
|
+
src: "../assets/error.svg",
|
|
10
|
+
sx: { height: "auto", maxWidth: "100%", width: "100px" }
|
|
11
|
+
}
|
|
12
|
+
),
|
|
13
|
+
/* @__PURE__ */ r.jsx(e, { variant: "h5", children: "500: Internal server error" }),
|
|
14
|
+
/* @__PURE__ */ r.jsx(e, { variant: "body2", children: "We're sorry, but we encountered an error while trying to load the content. Please try again later." })
|
|
15
|
+
] });
|
|
16
|
+
export {
|
|
17
|
+
s as default
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './AppError';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DropzoneOptions, FileWithPath } from 'react-dropzone';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export type CustomFile = File | FileWithPath | {
|
|
4
|
+
name: string;
|
|
5
|
+
size: number;
|
|
6
|
+
};
|
|
7
|
+
interface AppFileDropzoneProps extends DropzoneOptions {
|
|
8
|
+
caption?: string;
|
|
9
|
+
files?: CustomFile[];
|
|
10
|
+
onRemove?: (file: CustomFile) => void;
|
|
11
|
+
onRemoveAll?: () => void;
|
|
12
|
+
onUpload?: () => void;
|
|
13
|
+
label?: string;
|
|
14
|
+
disabledUpload?: boolean;
|
|
15
|
+
error?: string;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
isShowBtnRemoveAll?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const AppFileDropzone: ({ caption, label, error, onRemoveAll, onUpload, onRemove, required, disabledUpload, isShowBtnRemoveAll, ...props }: AppFileDropzoneProps) => React.JSX.Element;
|
|
20
|
+
export default AppFileDropzone;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { j as e } from "../jsx-runtime-B6kdoens.js";
|
|
2
|
+
import { Tooltip as E, IconButton as w } from "@mui/material";
|
|
3
|
+
import t, { forwardRef as M } from "react";
|
|
4
|
+
import { E as Z } from "../SSRBase-B9xq2wUG.js";
|
|
5
|
+
import { S as V } from "../X-DETrowOy.js";
|
|
6
|
+
import { useDropzone as z } from "react-dropzone";
|
|
7
|
+
import F from "../AppAvatar/AppAvatar.js";
|
|
8
|
+
import I from "../AppButton/AppButton.js";
|
|
9
|
+
import O from "../AppFileIcon/AppFileIcon.js";
|
|
10
|
+
import S from "../AppFormControl/AppFormControl.js";
|
|
11
|
+
import { bytesToSize as C } from "../utils/bytes-to-size.js";
|
|
12
|
+
import { S as n } from "../Stack-D9qNbbkC.js";
|
|
13
|
+
import { B as x } from "../Box-yxuKPTCX.js";
|
|
14
|
+
import { T as i } from "../Typography-BYkXNa-U.js";
|
|
15
|
+
const H = /* @__PURE__ */ new Map([
|
|
16
|
+
[
|
|
17
|
+
"bold",
|
|
18
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M196.49,151.51a12,12,0,0,1-17,17L168,157v51a12,12,0,0,1-24,0V157l-11.51,11.52a12,12,0,1,1-17-17l32-32a12,12,0,0,1,17,0ZM160,36A92.08,92.08,0,0,0,79,84.37,68,68,0,1,0,72,220h28a12,12,0,0,0,0-24H72a44,44,0,0,1-1.81-87.95A91.7,91.7,0,0,0,68,128a12,12,0,0,0,24,0,68,68,0,1,1,132.6,21.29,12,12,0,1,0,22.8,7.51A92.06,92.06,0,0,0,160,36Z" }))
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"duotone",
|
|
22
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
|
|
23
|
+
"path",
|
|
24
|
+
{
|
|
25
|
+
d: "M240,128a80,80,0,0,1-80,80H72A56,56,0,1,1,85.92,97.74l0,.1A80,80,0,0,1,240,128Z",
|
|
26
|
+
opacity: "0.2"
|
|
27
|
+
}
|
|
28
|
+
), /* @__PURE__ */ t.createElement("path", { d: "M178.34,165.66,160,147.31V208a8,8,0,0,1-16,0V147.31l-18.34,18.35a8,8,0,0,1-11.32-11.32l32-32a8,8,0,0,1,11.32,0l32,32a8,8,0,0,1-11.32,11.32ZM160,40A88.08,88.08,0,0,0,81.29,88.68,64,64,0,1,0,72,216h40a8,8,0,0,0,0-16H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.12A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,100.8,66,8,8,0,0,0,3.2,15.34,7.9,7.9,0,0,0,3.2-.68A88,88,0,0,0,160,40Z" }))
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
"fill",
|
|
32
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M247.93,124.52C246.11,77.54,207.07,40,160.06,40A88.1,88.1,0,0,0,81.29,88.67h0A87.48,87.48,0,0,0,72,127.73,8.18,8.18,0,0,1,64.57,136,8,8,0,0,1,56,128a103.66,103.66,0,0,1,5.34-32.92,4,4,0,0,0-4.75-5.18A64.09,64.09,0,0,0,8,152c0,35.19,29.75,64,65,64H160A88.09,88.09,0,0,0,247.93,124.52Zm-50.27,9.14a8,8,0,0,1-11.32,0L168,115.31V176a8,8,0,0,1-16,0V115.31l-18.34,18.35a8,8,0,0,1-11.32-11.32l32-32a8,8,0,0,1,11.32,0l32,32A8,8,0,0,1,197.66,133.66Z" }))
|
|
33
|
+
],
|
|
34
|
+
[
|
|
35
|
+
"light",
|
|
36
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M188.24,164.24a6,6,0,0,1-8.48,0L158,142.49V208a6,6,0,0,1-12,0V142.49l-21.76,21.75a6,6,0,0,1-8.48-8.48l32-32a6,6,0,0,1,8.48,0l32,32A6,6,0,0,1,188.24,164.24ZM160,42A86.1,86.1,0,0,0,82.43,90.88,62,62,0,1,0,72,214h40a6,6,0,0,0,0-12H72a50,50,0,0,1,0-100,50.68,50.68,0,0,1,5.91.36A85.54,85.54,0,0,0,74,128a6,6,0,0,0,12,0,74,74,0,1,1,103.6,67.85,6,6,0,0,0,4.8,11A86,86,0,0,0,160,42Z" }))
|
|
37
|
+
],
|
|
38
|
+
[
|
|
39
|
+
"regular",
|
|
40
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M178.34,165.66,160,147.31V208a8,8,0,0,1-16,0V147.31l-18.34,18.35a8,8,0,0,1-11.32-11.32l32-32a8,8,0,0,1,11.32,0l32,32a8,8,0,0,1-11.32,11.32ZM160,40A88.08,88.08,0,0,0,81.29,88.68,64,64,0,1,0,72,216h40a8,8,0,0,0,0-16H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.12A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,100.8,66,8,8,0,0,0,3.2,15.34,7.9,7.9,0,0,0,3.2-.68A88,88,0,0,0,160,40Z" }))
|
|
41
|
+
],
|
|
42
|
+
[
|
|
43
|
+
"thin",
|
|
44
|
+
/* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M186.83,162.83a4,4,0,0,1-5.66,0L156,137.66V208a4,4,0,0,1-8,0V137.66l-25.17,25.17a4,4,0,0,1-5.66-5.66l32-32a4,4,0,0,1,5.66,0l32,32A4,4,0,0,1,186.83,162.83ZM160,44A84.09,84.09,0,0,0,83.61,93.13,60,60,0,1,0,72,212h40a4,4,0,0,0,0-8H72a52,52,0,1,1,8.57-103.27A83.45,83.45,0,0,0,76,128a4,4,0,0,0,8,0,76,76,0,1,1,106.4,69.68,4,4,0,0,0,1.6,7.66,3.92,3.92,0,0,0,1.6-.33A84,84,0,0,0,160,44Z" }))
|
|
45
|
+
]
|
|
46
|
+
]);
|
|
47
|
+
var P = Object.defineProperty, k = Object.defineProperties, D = Object.getOwnPropertyDescriptors, u = Object.getOwnPropertySymbols, B = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable, h = (r, a, l) => a in r ? P(r, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : r[a] = l, T = (r, a) => {
|
|
48
|
+
for (var l in a || (a = {}))
|
|
49
|
+
B.call(a, l) && h(r, l, a[l]);
|
|
50
|
+
if (u)
|
|
51
|
+
for (var l of u(a))
|
|
52
|
+
L.call(a, l) && h(r, l, a[l]);
|
|
53
|
+
return r;
|
|
54
|
+
}, R = (r, a) => k(r, D(a));
|
|
55
|
+
const f = M((r, a) => /* @__PURE__ */ t.createElement(Z, R(T({ ref: a }, r), { weights: H })));
|
|
56
|
+
f.displayName = "CloudArrowUp";
|
|
57
|
+
const l0 = ({
|
|
58
|
+
caption: r,
|
|
59
|
+
label: a = "",
|
|
60
|
+
error: l,
|
|
61
|
+
onRemoveAll: g,
|
|
62
|
+
onUpload: U,
|
|
63
|
+
onRemove: s,
|
|
64
|
+
required: j = !1,
|
|
65
|
+
disabledUpload: _ = !1,
|
|
66
|
+
isShowBtnRemoveAll: A = !1,
|
|
67
|
+
...p
|
|
68
|
+
}) => {
|
|
69
|
+
var m, d;
|
|
70
|
+
const { getRootProps: v, getInputProps: b, isDragActive: c } = z(p);
|
|
71
|
+
return /* @__PURE__ */ e.jsxs(S, { error: l, label: a, required: j, children: [
|
|
72
|
+
/* @__PURE__ */ e.jsx(n, { spacing: 2, mt: "0.5rem", children: /* @__PURE__ */ e.jsxs(
|
|
73
|
+
x,
|
|
74
|
+
{
|
|
75
|
+
sx: {
|
|
76
|
+
alignItems: "center",
|
|
77
|
+
border: "1px dashed var(--mui-palette-divider)",
|
|
78
|
+
borderRadius: 1,
|
|
79
|
+
cursor: "pointer",
|
|
80
|
+
display: "flex",
|
|
81
|
+
flexWrap: "wrap",
|
|
82
|
+
justifyContent: "center",
|
|
83
|
+
outline: "none",
|
|
84
|
+
p: 6,
|
|
85
|
+
...c && {
|
|
86
|
+
bgcolor: "var(--mui-palette-action-selected)",
|
|
87
|
+
opacity: 0.5
|
|
88
|
+
},
|
|
89
|
+
"&:hover": {
|
|
90
|
+
...!c && {
|
|
91
|
+
bgcolor: "var(--mui-palette-action-hover)"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
...v(),
|
|
96
|
+
children: [
|
|
97
|
+
/* @__PURE__ */ e.jsx("input", { ...b() }),
|
|
98
|
+
/* @__PURE__ */ e.jsxs(n, { direction: "row", spacing: 2, sx: { alignItems: "center" }, children: [
|
|
99
|
+
/* @__PURE__ */ e.jsx(
|
|
100
|
+
F,
|
|
101
|
+
{
|
|
102
|
+
sx: {
|
|
103
|
+
"--Avatar-size": "64px",
|
|
104
|
+
"--Icon-fontSize": "var(--icon-fontSize-lg)",
|
|
105
|
+
bgcolor: "var(--mui-palette-background-paper)",
|
|
106
|
+
boxShadow: "var(--mui-shadows-8)",
|
|
107
|
+
color: "var(--mui-palette-text-primary)"
|
|
108
|
+
},
|
|
109
|
+
children: /* @__PURE__ */ e.jsx(f, {})
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
/* @__PURE__ */ e.jsxs(n, { spacing: 1, children: [
|
|
113
|
+
/* @__PURE__ */ e.jsxs(i, { variant: "h6", children: [
|
|
114
|
+
/* @__PURE__ */ e.jsx(i, { component: "span", sx: { textDecoration: "underline" }, variant: "inherit", children: "Click to upload" }),
|
|
115
|
+
" ",
|
|
116
|
+
"or drag and drop your files here"
|
|
117
|
+
] }),
|
|
118
|
+
r ? /* @__PURE__ */ e.jsx(i, { color: "text.secondary", variant: "body2", children: r }) : null
|
|
119
|
+
] })
|
|
120
|
+
] })
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
) }),
|
|
124
|
+
(m = p.files) != null && m.length ? /* @__PURE__ */ e.jsxs(n, { mt: 2, spacing: 2, children: [
|
|
125
|
+
/* @__PURE__ */ e.jsx(n, { component: "ul", spacing: 1, sx: { listStyle: "none", m: 0, p: 0 }, children: (d = p.files) == null ? void 0 : d.map((o) => {
|
|
126
|
+
const y = o.name.split(".").pop();
|
|
127
|
+
return /* @__PURE__ */ e.jsxs(
|
|
128
|
+
n,
|
|
129
|
+
{
|
|
130
|
+
component: "li",
|
|
131
|
+
direction: "row",
|
|
132
|
+
spacing: 2,
|
|
133
|
+
sx: {
|
|
134
|
+
alignItems: "center",
|
|
135
|
+
border: "1px solid var(--mui-palette-divider)",
|
|
136
|
+
borderRadius: 1,
|
|
137
|
+
flex: "1 1 auto",
|
|
138
|
+
p: 1
|
|
139
|
+
},
|
|
140
|
+
children: [
|
|
141
|
+
/* @__PURE__ */ e.jsx(O, { extension: y }),
|
|
142
|
+
/* @__PURE__ */ e.jsxs(x, { sx: { flex: "1 1 auto" }, children: [
|
|
143
|
+
/* @__PURE__ */ e.jsx(i, { variant: "subtitle2", children: o.name }),
|
|
144
|
+
/* @__PURE__ */ e.jsx(i, { color: "text.secondary", variant: "body2", children: C(o.size) })
|
|
145
|
+
] }),
|
|
146
|
+
/* @__PURE__ */ e.jsx(E, { title: "Remove", children: /* @__PURE__ */ e.jsx(
|
|
147
|
+
w,
|
|
148
|
+
{
|
|
149
|
+
onClick: () => {
|
|
150
|
+
s == null || s(o);
|
|
151
|
+
},
|
|
152
|
+
children: /* @__PURE__ */ e.jsx(V, {})
|
|
153
|
+
}
|
|
154
|
+
) })
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
o.size
|
|
158
|
+
);
|
|
159
|
+
}) }),
|
|
160
|
+
/* @__PURE__ */ e.jsx(n, { direction: "row", spacing: 2, sx: { alignItems: "center", justifyContent: "flex-end" }, children: A && /* @__PURE__ */ e.jsx(I, { onClick: g, size: "small", type: "button", variant: "text", children: "Remove all" }) })
|
|
161
|
+
] }) : null
|
|
162
|
+
] });
|
|
163
|
+
};
|
|
164
|
+
export {
|
|
165
|
+
l0 as default
|
|
166
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { j as e } from "../jsx-runtime-B6kdoens.js";
|
|
2
|
+
import { B as i } from "../Box-yxuKPTCX.js";
|
|
3
|
+
const o = {
|
|
4
|
+
jpeg: "/assets/icon-jpg.svg",
|
|
5
|
+
jpg: "/assets/icon-jpg.svg",
|
|
6
|
+
mp4: "/assets/icon-mp4.svg",
|
|
7
|
+
pdf: "/assets/icon-pdf.svg",
|
|
8
|
+
png: "/assets/icon-png.svg",
|
|
9
|
+
svg: "/assets/icon-svg.svg"
|
|
10
|
+
}, p = ({ extension: t }) => {
|
|
11
|
+
let s;
|
|
12
|
+
return t ? s = o[t] ?? "/assets/icon-other.svg" : s = "/assets/icon-other.svg", /* @__PURE__ */ e.jsx(
|
|
13
|
+
i,
|
|
14
|
+
{
|
|
15
|
+
sx: {
|
|
16
|
+
alignItems: "center",
|
|
17
|
+
display: "inline-flex",
|
|
18
|
+
flex: "0 0 auto",
|
|
19
|
+
justifyContent: "center",
|
|
20
|
+
width: "36px",
|
|
21
|
+
height: "36px"
|
|
22
|
+
},
|
|
23
|
+
children: /* @__PURE__ */ e.jsx(i, { alt: "File", component: "img", src: s, sx: { height: "100%", width: "auto" } })
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
p as default
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './AppFileIcon';
|