@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,287 @@
|
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
import { j as C } from "./jsx-runtime-B6kdoens.js";
|
|
3
|
+
import { c as x, P as e } from "./createTheme-C97xvI-s.js";
|
|
4
|
+
import { c as I } from "./clsx-C-FXfxyk.js";
|
|
5
|
+
import { s as N, m as w, c as E } from "./memoTheme-B2qvAi64.js";
|
|
6
|
+
import { a as O, g as $ } from "./generateUtilityClasses-CuEy5gtx.js";
|
|
7
|
+
import { u as T } from "./DefaultPropsProvider-BV4t9fEW.js";
|
|
8
|
+
const b = /* @__PURE__ */ i.createContext(void 0);
|
|
9
|
+
process.env.NODE_ENV !== "production" && (b.displayName = "FormControlContext");
|
|
10
|
+
function _() {
|
|
11
|
+
return i.useContext(b);
|
|
12
|
+
}
|
|
13
|
+
function j(o) {
|
|
14
|
+
return O("MuiSvgIcon", o);
|
|
15
|
+
}
|
|
16
|
+
$("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
17
|
+
const R = (o) => {
|
|
18
|
+
const {
|
|
19
|
+
color: t,
|
|
20
|
+
fontSize: n,
|
|
21
|
+
classes: s
|
|
22
|
+
} = o, r = {
|
|
23
|
+
root: ["root", t !== "inherit" && `color${x(t)}`, `fontSize${x(n)}`]
|
|
24
|
+
};
|
|
25
|
+
return E(r, j, s);
|
|
26
|
+
}, V = N("svg", {
|
|
27
|
+
name: "MuiSvgIcon",
|
|
28
|
+
slot: "Root",
|
|
29
|
+
overridesResolver: (o, t) => {
|
|
30
|
+
const {
|
|
31
|
+
ownerState: n
|
|
32
|
+
} = o;
|
|
33
|
+
return [t.root, n.color !== "inherit" && t[`color${x(n.color)}`], t[`fontSize${x(n.fontSize)}`]];
|
|
34
|
+
}
|
|
35
|
+
})(w(({
|
|
36
|
+
theme: o
|
|
37
|
+
}) => {
|
|
38
|
+
var t, n, s, r, f, u, a, d, l, g, p, S, y, m;
|
|
39
|
+
return {
|
|
40
|
+
userSelect: "none",
|
|
41
|
+
width: "1em",
|
|
42
|
+
height: "1em",
|
|
43
|
+
display: "inline-block",
|
|
44
|
+
flexShrink: 0,
|
|
45
|
+
transition: (r = (t = o.transitions) == null ? void 0 : t.create) == null ? void 0 : r.call(t, "fill", {
|
|
46
|
+
duration: (s = (n = (o.vars ?? o).transitions) == null ? void 0 : n.duration) == null ? void 0 : s.shorter
|
|
47
|
+
}),
|
|
48
|
+
variants: [
|
|
49
|
+
{
|
|
50
|
+
props: (c) => !c.hasSvgAsChild,
|
|
51
|
+
style: {
|
|
52
|
+
// the <svg> will define the property that has `currentColor`
|
|
53
|
+
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
54
|
+
fill: "currentColor"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
props: {
|
|
59
|
+
fontSize: "inherit"
|
|
60
|
+
},
|
|
61
|
+
style: {
|
|
62
|
+
fontSize: "inherit"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
props: {
|
|
67
|
+
fontSize: "small"
|
|
68
|
+
},
|
|
69
|
+
style: {
|
|
70
|
+
fontSize: ((u = (f = o.typography) == null ? void 0 : f.pxToRem) == null ? void 0 : u.call(f, 20)) || "1.25rem"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
props: {
|
|
75
|
+
fontSize: "medium"
|
|
76
|
+
},
|
|
77
|
+
style: {
|
|
78
|
+
fontSize: ((d = (a = o.typography) == null ? void 0 : a.pxToRem) == null ? void 0 : d.call(a, 24)) || "1.5rem"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
props: {
|
|
83
|
+
fontSize: "large"
|
|
84
|
+
},
|
|
85
|
+
style: {
|
|
86
|
+
fontSize: ((g = (l = o.typography) == null ? void 0 : l.pxToRem) == null ? void 0 : g.call(l, 35)) || "2.1875rem"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
// TODO v5 deprecate color prop, v6 remove for sx
|
|
90
|
+
...Object.entries((o.vars ?? o).palette).filter(([, c]) => c && c.main).map(([c]) => {
|
|
91
|
+
var v, z;
|
|
92
|
+
return {
|
|
93
|
+
props: {
|
|
94
|
+
color: c
|
|
95
|
+
},
|
|
96
|
+
style: {
|
|
97
|
+
color: (z = (v = (o.vars ?? o).palette) == null ? void 0 : v[c]) == null ? void 0 : z.main
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
}),
|
|
101
|
+
{
|
|
102
|
+
props: {
|
|
103
|
+
color: "action"
|
|
104
|
+
},
|
|
105
|
+
style: {
|
|
106
|
+
color: (S = (p = (o.vars ?? o).palette) == null ? void 0 : p.action) == null ? void 0 : S.active
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
props: {
|
|
111
|
+
color: "disabled"
|
|
112
|
+
},
|
|
113
|
+
style: {
|
|
114
|
+
color: (m = (y = (o.vars ?? o).palette) == null ? void 0 : y.action) == null ? void 0 : m.disabled
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
props: {
|
|
119
|
+
color: "inherit"
|
|
120
|
+
},
|
|
121
|
+
style: {
|
|
122
|
+
color: void 0
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
};
|
|
127
|
+
})), h = /* @__PURE__ */ i.forwardRef(function(t, n) {
|
|
128
|
+
const s = T({
|
|
129
|
+
props: t,
|
|
130
|
+
name: "MuiSvgIcon"
|
|
131
|
+
}), {
|
|
132
|
+
children: r,
|
|
133
|
+
className: f,
|
|
134
|
+
color: u = "inherit",
|
|
135
|
+
component: a = "svg",
|
|
136
|
+
fontSize: d = "medium",
|
|
137
|
+
htmlColor: l,
|
|
138
|
+
inheritViewBox: g = !1,
|
|
139
|
+
titleAccess: p,
|
|
140
|
+
viewBox: S = "0 0 24 24",
|
|
141
|
+
...y
|
|
142
|
+
} = s, m = /* @__PURE__ */ i.isValidElement(r) && r.type === "svg", c = {
|
|
143
|
+
...s,
|
|
144
|
+
color: u,
|
|
145
|
+
component: a,
|
|
146
|
+
fontSize: d,
|
|
147
|
+
instanceFontSize: t.fontSize,
|
|
148
|
+
inheritViewBox: g,
|
|
149
|
+
viewBox: S,
|
|
150
|
+
hasSvgAsChild: m
|
|
151
|
+
}, v = {};
|
|
152
|
+
g || (v.viewBox = S);
|
|
153
|
+
const z = R(c);
|
|
154
|
+
return /* @__PURE__ */ C.jsxs(V, {
|
|
155
|
+
as: a,
|
|
156
|
+
className: I(z.root, f),
|
|
157
|
+
focusable: "false",
|
|
158
|
+
color: l,
|
|
159
|
+
"aria-hidden": p ? void 0 : !0,
|
|
160
|
+
role: p ? "img" : void 0,
|
|
161
|
+
ref: n,
|
|
162
|
+
...v,
|
|
163
|
+
...y,
|
|
164
|
+
...m && r.props,
|
|
165
|
+
ownerState: c,
|
|
166
|
+
children: [m ? r.props.children : r, p ? /* @__PURE__ */ C.jsx("title", {
|
|
167
|
+
children: p
|
|
168
|
+
}) : null]
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
process.env.NODE_ENV !== "production" && (h.propTypes = {
|
|
172
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
173
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
174
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
175
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
176
|
+
/**
|
|
177
|
+
* Node passed into the SVG element.
|
|
178
|
+
*/
|
|
179
|
+
children: e.node,
|
|
180
|
+
/**
|
|
181
|
+
* Override or extend the styles applied to the component.
|
|
182
|
+
*/
|
|
183
|
+
classes: e.object,
|
|
184
|
+
/**
|
|
185
|
+
* @ignore
|
|
186
|
+
*/
|
|
187
|
+
className: e.string,
|
|
188
|
+
/**
|
|
189
|
+
* The color of the component.
|
|
190
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
191
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
192
|
+
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
|
193
|
+
* @default 'inherit'
|
|
194
|
+
*/
|
|
195
|
+
color: e.oneOfType([e.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
|
|
196
|
+
/**
|
|
197
|
+
* The component used for the root node.
|
|
198
|
+
* Either a string to use a HTML element or a component.
|
|
199
|
+
*/
|
|
200
|
+
component: e.elementType,
|
|
201
|
+
/**
|
|
202
|
+
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
|
203
|
+
* @default 'medium'
|
|
204
|
+
*/
|
|
205
|
+
fontSize: e.oneOfType([e.oneOf(["inherit", "large", "medium", "small"]), e.string]),
|
|
206
|
+
/**
|
|
207
|
+
* Applies a color attribute to the SVG element.
|
|
208
|
+
*/
|
|
209
|
+
htmlColor: e.string,
|
|
210
|
+
/**
|
|
211
|
+
* If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
|
|
212
|
+
* prop will be ignored.
|
|
213
|
+
* Useful when you want to reference a custom `component` and have `SvgIcon` pass that
|
|
214
|
+
* `component`'s viewBox to the root node.
|
|
215
|
+
* @default false
|
|
216
|
+
*/
|
|
217
|
+
inheritViewBox: e.bool,
|
|
218
|
+
/**
|
|
219
|
+
* The shape-rendering attribute. The behavior of the different options is described on the
|
|
220
|
+
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
|
|
221
|
+
* If you are having issues with blurry icons you should investigate this prop.
|
|
222
|
+
*/
|
|
223
|
+
shapeRendering: e.string,
|
|
224
|
+
/**
|
|
225
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
226
|
+
*/
|
|
227
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
228
|
+
/**
|
|
229
|
+
* Provides a human-readable title for the element that contains it.
|
|
230
|
+
* https://www.w3.org/TR/SVG-access/#Equivalent
|
|
231
|
+
*/
|
|
232
|
+
titleAccess: e.string,
|
|
233
|
+
/**
|
|
234
|
+
* Allows you to redefine what the coordinates without units mean inside an SVG element.
|
|
235
|
+
* For example, if the SVG element is 500 (width) by 200 (height),
|
|
236
|
+
* and you pass viewBox="0 0 50 20",
|
|
237
|
+
* this means that the coordinates inside the SVG will go from the top left corner (0,0)
|
|
238
|
+
* to bottom right (50,20) and each unit will be worth 10px.
|
|
239
|
+
* @default '0 0 24 24'
|
|
240
|
+
*/
|
|
241
|
+
viewBox: e.string
|
|
242
|
+
});
|
|
243
|
+
h && (h.muiName = "SvgIcon");
|
|
244
|
+
function k(o, t) {
|
|
245
|
+
function n(s, r) {
|
|
246
|
+
return /* @__PURE__ */ C.jsx(h, {
|
|
247
|
+
"data-testid": `${t}Icon`,
|
|
248
|
+
ref: r,
|
|
249
|
+
...s,
|
|
250
|
+
children: o
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
return process.env.NODE_ENV !== "production" && (n.displayName = `${t}Icon`), n.muiName = h.muiName, /* @__PURE__ */ i.memo(/* @__PURE__ */ i.forwardRef(n));
|
|
254
|
+
}
|
|
255
|
+
function J({
|
|
256
|
+
controlled: o,
|
|
257
|
+
default: t,
|
|
258
|
+
name: n,
|
|
259
|
+
state: s = "value"
|
|
260
|
+
}) {
|
|
261
|
+
const {
|
|
262
|
+
current: r
|
|
263
|
+
} = i.useRef(o !== void 0), [f, u] = i.useState(t), a = r ? o : f;
|
|
264
|
+
if (process.env.NODE_ENV !== "production") {
|
|
265
|
+
i.useEffect(() => {
|
|
266
|
+
r !== (o !== void 0) && console.error([`MUI: A component is changing the ${r ? "" : "un"}controlled ${s} state of ${n} to be ${r ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
267
|
+
`));
|
|
268
|
+
}, [s, n, o]);
|
|
269
|
+
const {
|
|
270
|
+
current: l
|
|
271
|
+
} = i.useRef(t);
|
|
272
|
+
i.useEffect(() => {
|
|
273
|
+
!r && !Object.is(l, t) && console.error([`MUI: A component is changing the default ${s} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
274
|
+
`));
|
|
275
|
+
}, [JSON.stringify(t)]);
|
|
276
|
+
}
|
|
277
|
+
const d = i.useCallback((l) => {
|
|
278
|
+
r || u(l);
|
|
279
|
+
}, []);
|
|
280
|
+
return [a, d];
|
|
281
|
+
}
|
|
282
|
+
export {
|
|
283
|
+
b as F,
|
|
284
|
+
_ as a,
|
|
285
|
+
k as c,
|
|
286
|
+
J as u
|
|
287
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { a as n } from "./createTheme-C97xvI-s.js";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { ThemeContext as m } from "@emotion/react";
|
|
4
|
+
function r(e) {
|
|
5
|
+
return Object.keys(e).length === 0;
|
|
6
|
+
}
|
|
7
|
+
function s(e = null) {
|
|
8
|
+
const t = o.useContext(m);
|
|
9
|
+
return !t || r(t) ? e : t;
|
|
10
|
+
}
|
|
11
|
+
const u = n();
|
|
12
|
+
function f(e = u) {
|
|
13
|
+
return s(e);
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
f as u
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function bytesToSize(bytes: number, decimals?: number): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
function s(t, o = 2) {
|
|
2
|
+
if (t === 0)
|
|
3
|
+
return "0 Bytes";
|
|
4
|
+
const B = 1024, e = o < 0 ? 0 : o, r = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], n = Math.floor(Math.log(t) / Math.log(B));
|
|
5
|
+
return `${parseFloat((t / Math.pow(B, n)).toFixed(e))} ${r[n]}`;
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
s as bytesToSize
|
|
9
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import h, { extend as E } from "dayjs";
|
|
2
|
+
import { default as J } from "dayjs";
|
|
3
|
+
import { c as L, g as $ } from "../_commonjsHelpers-DaMA6jEr.js";
|
|
4
|
+
var b = { exports: {} };
|
|
5
|
+
(function(d, u) {
|
|
6
|
+
(function(e, t) {
|
|
7
|
+
d.exports = t();
|
|
8
|
+
})(L, function() {
|
|
9
|
+
return function(e, t, n) {
|
|
10
|
+
t.prototype.isToday = function() {
|
|
11
|
+
var o = "YYYY-MM-DD", a = n();
|
|
12
|
+
return this.format(o) === a.format(o);
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
});
|
|
16
|
+
})(b);
|
|
17
|
+
var C = b.exports;
|
|
18
|
+
const F = /* @__PURE__ */ $(C);
|
|
19
|
+
var Y = { exports: {} };
|
|
20
|
+
(function(d, u) {
|
|
21
|
+
(function(e, t) {
|
|
22
|
+
d.exports = t();
|
|
23
|
+
})(L, function() {
|
|
24
|
+
return function(e, t, n) {
|
|
25
|
+
e = e || {};
|
|
26
|
+
var o = t.prototype, a = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
27
|
+
function f(r, s, l, x) {
|
|
28
|
+
return o.fromToBase(r, s, l, x);
|
|
29
|
+
}
|
|
30
|
+
n.en.relativeTime = a, o.fromToBase = function(r, s, l, x, j) {
|
|
31
|
+
for (var v, y, M, T = l.$locale().relativeTime || a, g = e.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], N = g.length, p = 0; p < N; p += 1) {
|
|
32
|
+
var i = g[p];
|
|
33
|
+
i.d && (v = x ? n(r).diff(l, i.d, !0) : l.diff(r, i.d, !0));
|
|
34
|
+
var c = (e.rounding || Math.round)(Math.abs(v));
|
|
35
|
+
if (M = v > 0, c <= i.r || !i.r) {
|
|
36
|
+
c <= 1 && p > 0 && (i = g[p - 1]);
|
|
37
|
+
var D = T[i.l];
|
|
38
|
+
j && (c = j("" + c)), y = typeof D == "string" ? D.replace("%d", c) : D(c, s, i.l, M);
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (s) return y;
|
|
43
|
+
var w = M ? T.future : T.past;
|
|
44
|
+
return typeof w == "function" ? w(y) : w.replace("%s", y);
|
|
45
|
+
}, o.to = function(r, s) {
|
|
46
|
+
return f(r, s, this, !0);
|
|
47
|
+
}, o.from = function(r, s) {
|
|
48
|
+
return f(r, s, this);
|
|
49
|
+
};
|
|
50
|
+
var m = function(r) {
|
|
51
|
+
return r.$u ? n.utc() : n();
|
|
52
|
+
};
|
|
53
|
+
o.toNow = function(r) {
|
|
54
|
+
return this.to(m(this), r);
|
|
55
|
+
}, o.fromNow = function(r) {
|
|
56
|
+
return this.from(m(this), r);
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
})(Y);
|
|
61
|
+
var G = Y.exports;
|
|
62
|
+
const k = /* @__PURE__ */ $(G);
|
|
63
|
+
var B = { exports: {} };
|
|
64
|
+
(function(d, u) {
|
|
65
|
+
(function(e, t) {
|
|
66
|
+
d.exports = t();
|
|
67
|
+
})(L, function() {
|
|
68
|
+
return function(e, t, n) {
|
|
69
|
+
n.updateLocale = function(o, a) {
|
|
70
|
+
var f = n.Ls[o];
|
|
71
|
+
if (f) return (a ? Object.keys(a) : []).forEach(function(m) {
|
|
72
|
+
f[m] = a[m];
|
|
73
|
+
}), f;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
})(B);
|
|
78
|
+
var O = B.exports;
|
|
79
|
+
const P = /* @__PURE__ */ $(O);
|
|
80
|
+
E(k);
|
|
81
|
+
E(P);
|
|
82
|
+
h.extend(k);
|
|
83
|
+
h.extend(F);
|
|
84
|
+
h.updateLocale("en", {
|
|
85
|
+
relativeTime: {
|
|
86
|
+
future: "in %s",
|
|
87
|
+
past: "%s ago",
|
|
88
|
+
s: "a few sec",
|
|
89
|
+
m: "a min",
|
|
90
|
+
mm: "%d min",
|
|
91
|
+
h: "an hour",
|
|
92
|
+
hh: "%d hours",
|
|
93
|
+
d: "a day",
|
|
94
|
+
dd: "%d days",
|
|
95
|
+
M: "a month",
|
|
96
|
+
MM: "%d months",
|
|
97
|
+
y: "a year",
|
|
98
|
+
yy: "%d years"
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
const A = (d) => {
|
|
102
|
+
const u = h(d), t = h().diff(u, "day");
|
|
103
|
+
return u.isToday() || t === 0 ? "Today" : t < 6 && t > 0 ? `${t}d ago` : u.format("MMM-DD");
|
|
104
|
+
};
|
|
105
|
+
export {
|
|
106
|
+
J as dayjs,
|
|
107
|
+
A as formatDatePosted
|
|
108
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { formatDatePosted as r } from "./dayjs.js";
|
|
2
|
+
import { bytesToSize as g } from "./bytes-to-size.js";
|
|
3
|
+
import { LogLevel as f, Logger as m, createLogger as p, logger as s } from "./logger.js";
|
|
4
|
+
import { default as L } from "dayjs";
|
|
5
|
+
export {
|
|
6
|
+
f as LogLevel,
|
|
7
|
+
m as Logger,
|
|
8
|
+
g as bytesToSize,
|
|
9
|
+
p as createLogger,
|
|
10
|
+
L as dayjs,
|
|
11
|
+
r as formatDatePosted,
|
|
12
|
+
s as logger
|
|
13
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const LogLevel: {
|
|
2
|
+
readonly NONE: "NONE";
|
|
3
|
+
readonly ERROR: "ERROR";
|
|
4
|
+
readonly WARN: "WARN";
|
|
5
|
+
readonly DEBUG: "DEBUG";
|
|
6
|
+
readonly ALL: "ALL";
|
|
7
|
+
};
|
|
8
|
+
export interface LoggerOptions {
|
|
9
|
+
prefix?: string;
|
|
10
|
+
level?: keyof typeof LogLevel;
|
|
11
|
+
showLevel?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare class Logger {
|
|
14
|
+
protected prefix: string;
|
|
15
|
+
protected level: keyof typeof LogLevel;
|
|
16
|
+
protected showLevel: boolean;
|
|
17
|
+
private levelNumber;
|
|
18
|
+
constructor({ prefix, level, showLevel }: LoggerOptions);
|
|
19
|
+
debug: (...args: unknown[]) => void;
|
|
20
|
+
warn: (...args: unknown[]) => void;
|
|
21
|
+
error: (...args: unknown[]) => void;
|
|
22
|
+
private canWrite;
|
|
23
|
+
private write;
|
|
24
|
+
}
|
|
25
|
+
export declare function createLogger({ prefix, level }?: LoggerOptions): Logger;
|
|
26
|
+
export declare const logger: Logger;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var o = Object.defineProperty;
|
|
2
|
+
var L = (i, e, r) => e in i ? o(i, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[e] = r;
|
|
3
|
+
var s = (i, e, r) => L(i, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
const t = {
|
|
5
|
+
NONE: "NONE",
|
|
6
|
+
ERROR: "ERROR",
|
|
7
|
+
WARN: "WARN",
|
|
8
|
+
DEBUG: "DEBUG",
|
|
9
|
+
ALL: "ALL"
|
|
10
|
+
}, R = {
|
|
11
|
+
NONE: 0,
|
|
12
|
+
ERROR: 1,
|
|
13
|
+
WARN: 2,
|
|
14
|
+
DEBUG: 3,
|
|
15
|
+
ALL: 4
|
|
16
|
+
};
|
|
17
|
+
class h {
|
|
18
|
+
constructor({ prefix: e = "", level: r = t.ALL, showLevel: l = !0 }) {
|
|
19
|
+
s(this, "prefix");
|
|
20
|
+
s(this, "level");
|
|
21
|
+
s(this, "showLevel");
|
|
22
|
+
s(this, "levelNumber");
|
|
23
|
+
s(this, "debug", (...e) => {
|
|
24
|
+
this.canWrite(t.DEBUG) && this.write(t.DEBUG, ...e);
|
|
25
|
+
});
|
|
26
|
+
s(this, "warn", (...e) => {
|
|
27
|
+
this.canWrite(t.WARN) && this.write(t.WARN, ...e);
|
|
28
|
+
});
|
|
29
|
+
s(this, "error", (...e) => {
|
|
30
|
+
this.canWrite(t.ERROR) && this.write(t.ERROR, ...e);
|
|
31
|
+
});
|
|
32
|
+
this.prefix = e, this.level = r, this.levelNumber = R[this.level], this.showLevel = l;
|
|
33
|
+
}
|
|
34
|
+
canWrite(e) {
|
|
35
|
+
return this.levelNumber >= R[e];
|
|
36
|
+
}
|
|
37
|
+
write(e, ...r) {
|
|
38
|
+
let l = this.prefix;
|
|
39
|
+
this.showLevel && (l = `- ${e} ${l}`), e === t.ERROR ? console.error(l, ...r) : console.log(l, ...r);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function n({ prefix: i, level: e } = {}) {
|
|
43
|
+
return new h({ prefix: i, level: e });
|
|
44
|
+
}
|
|
45
|
+
const c = n({ level: t.ALL });
|
|
46
|
+
export {
|
|
47
|
+
t as LogLevel,
|
|
48
|
+
h as Logger,
|
|
49
|
+
n as createLogger,
|
|
50
|
+
c as logger
|
|
51
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@solostylist/ui-kit",
|
|
3
|
+
"publishConfig": {
|
|
4
|
+
"registry": "https://registry.npmjs.org"
|
|
5
|
+
},
|
|
6
|
+
"version": "1.0.0",
|
|
7
|
+
"description": "advanced ui kit for solostylist",
|
|
8
|
+
"private": false,
|
|
9
|
+
"type": "module",
|
|
10
|
+
"main": "dist/main.js",
|
|
11
|
+
"types": "dist/main.d.ts",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"scripts": {
|
|
17
|
+
"dev": "vite",
|
|
18
|
+
"build": "tsc --p ./tsconfig-build.json && vite build",
|
|
19
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
20
|
+
"lint:fix": "eslint --fix . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
21
|
+
"preview": "vite preview",
|
|
22
|
+
"app:publish": "npm run build & npm publish --access public",
|
|
23
|
+
"format:write": "prettier --write \"**/*.{js,jsx,mjs,ts,tsx,mdx}\" --cache",
|
|
24
|
+
"format:check": "prettier --check \"**/*.{js,jsx,mjs,ts,tsx,mdx}\" --cache",
|
|
25
|
+
"prepare": "husky"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@emotion/cache": "^11.13.1",
|
|
29
|
+
"@emotion/react": "^11.13.3",
|
|
30
|
+
"@emotion/styled": "^11.13.0",
|
|
31
|
+
"@mui/lab": "6.0.0-beta.12",
|
|
32
|
+
"@mui/material": "^6.1.4",
|
|
33
|
+
"@mui/utils": "^6.1.4",
|
|
34
|
+
"@phosphor-icons/react": "^2.1.7",
|
|
35
|
+
"@tiptap/extension-link": "^2.6.6",
|
|
36
|
+
"@tiptap/extension-placeholder": "^2.6.6",
|
|
37
|
+
"@tiptap/react": "^2.6.6",
|
|
38
|
+
"@tiptap/starter-kit": "^2.6.6",
|
|
39
|
+
"dayjs": "^1.11.13",
|
|
40
|
+
"i18next": "^23.14.0",
|
|
41
|
+
"i18next-http-backend": "^2.6.1",
|
|
42
|
+
"react": "^18.3.1",
|
|
43
|
+
"react-dom": "^18.3.1",
|
|
44
|
+
"react-dropzone": "^14.3.2",
|
|
45
|
+
"react-i18next": "^15.0.1",
|
|
46
|
+
"uuid": "^11.0.2"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@fontsource/inter": "^5.0.20",
|
|
50
|
+
"@fontsource/plus-jakarta-sans": "^5.0.21",
|
|
51
|
+
"@fontsource/roboto-mono": "^5.0.19",
|
|
52
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
|
|
53
|
+
"@types/node": "^22.7.5",
|
|
54
|
+
"@types/react": "^18.3.11",
|
|
55
|
+
"@types/react-dom": "^18.2.22",
|
|
56
|
+
"@types/react-image-gallery": "^1.2.4",
|
|
57
|
+
"@types/uuid": "^10.0.0",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^8.12.2",
|
|
59
|
+
"@typescript-eslint/parser": "^8.12.2",
|
|
60
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
61
|
+
"eslint": "^9.14.0",
|
|
62
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
63
|
+
"eslint-plugin-react-refresh": "^0.4.6",
|
|
64
|
+
"glob": "^11.0.0",
|
|
65
|
+
"husky": "^9.1.5",
|
|
66
|
+
"lint-staged": "^15.2.10",
|
|
67
|
+
"prettier": "^3.3.3",
|
|
68
|
+
"react": "^18.2.0",
|
|
69
|
+
"react-dom": "^18.2.0",
|
|
70
|
+
"typescript": "^5.6.3",
|
|
71
|
+
"vite": "^5.4.10",
|
|
72
|
+
"vite-plugin-dts": "^4.3.0",
|
|
73
|
+
"vite-plugin-lib-inject-css": "^2.0.1",
|
|
74
|
+
"vite-plugin-static-copy": "^2.0.0"
|
|
75
|
+
},
|
|
76
|
+
"lint-staged": {
|
|
77
|
+
"*.js": [
|
|
78
|
+
"prettier --write \"**/*.{js,jsx,mjs,ts,tsx,mdx}\" --cache",
|
|
79
|
+
"git add"
|
|
80
|
+
],
|
|
81
|
+
"*.jsx": [
|
|
82
|
+
"prettier --write \"**/*.{js,jsx,mjs,ts,tsx,mdx}\" --cache",
|
|
83
|
+
"git add"
|
|
84
|
+
],
|
|
85
|
+
"*.ts": [
|
|
86
|
+
"prettier --write \"**/*.{js,jsx,mjs,ts,tsx,mdx}\" --cache",
|
|
87
|
+
"git add"
|
|
88
|
+
],
|
|
89
|
+
"*.tsx": [
|
|
90
|
+
"prettier --write \"**/*.{js,jsx,mjs,ts,tsx,mdx}\" --cache",
|
|
91
|
+
"git add"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
"husky": {
|
|
95
|
+
"hooks": {
|
|
96
|
+
"pre-commit": "lint-staged"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"dependencies": {
|
|
100
|
+
"react-image-gallery": "^1.3.0"
|
|
101
|
+
},
|
|
102
|
+
"directories": {
|
|
103
|
+
"lib": "lib"
|
|
104
|
+
},
|
|
105
|
+
"keywords": [],
|
|
106
|
+
"author": "Lê Đặng Trường Đạt",
|
|
107
|
+
"license": "ISC"
|
|
108
|
+
}
|