nucleus-core-ts 0.8.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/LICENSE +48 -0
- package/README.md +177 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.js +1 -0
- package/dist/dist/index-0yyw12k6.d.ts +8 -0
- package/dist/dist/index-tv67j5qd.d.ts +488 -0
- package/dist/dist/index.d.ts +40 -0
- package/dist/fe/components/AbstractAnimatedBackground/index.d.ts +7 -0
- package/dist/fe/components/AuthorizationPage/components/AuthorizationPage.d.ts +3 -0
- package/dist/fe/components/AuthorizationPage/components/ClaimList.d.ts +3 -0
- package/dist/fe/components/AuthorizationPage/components/RoleClaimEditor.d.ts +3 -0
- package/dist/fe/components/AuthorizationPage/components/RoleList.d.ts +3 -0
- package/dist/fe/components/AuthorizationPage/index.d.ts +9 -0
- package/dist/fe/components/AuthorizationPage/store/index.d.ts +47 -0
- package/dist/fe/components/AuthorizationPage/theme/index.d.ts +82 -0
- package/dist/fe/components/AuthorizationPage/types/index.d.ts +64 -0
- package/dist/fe/components/Button/components/Button.d.ts +3 -0
- package/dist/fe/components/Button/components/ButtonSpinner.d.ts +3 -0
- package/dist/fe/components/Button/index.d.ts +6 -0
- package/dist/fe/components/Button/theme/index.d.ts +183 -0
- package/dist/fe/components/Button/types/index.d.ts +24 -0
- package/dist/fe/components/Button/utils/cn.d.ts +3 -0
- package/dist/fe/components/Captcha/components/Captcha.d.ts +4 -0
- package/dist/fe/components/Captcha/index.d.ts +4 -0
- package/dist/fe/components/Captcha/theme.d.ts +53 -0
- package/dist/fe/components/Captcha/types.d.ts +60 -0
- package/dist/fe/components/ChangePasswordPage/components/ChangePasswordForm.d.ts +4 -0
- package/dist/fe/components/ChangePasswordPage/components/ChangePasswordHeader.d.ts +4 -0
- package/dist/fe/components/ChangePasswordPage/components/ChangePasswordPage.d.ts +4 -0
- package/dist/fe/components/ChangePasswordPage/index.d.ts +7 -0
- package/dist/fe/components/ChangePasswordPage/store/index.d.ts +16 -0
- package/dist/fe/components/ChangePasswordPage/theme/index.d.ts +48 -0
- package/dist/fe/components/ChangePasswordPage/types/index.d.ts +56 -0
- package/dist/fe/components/Checkbox/components/Checkbox.d.ts +3 -0
- package/dist/fe/components/Checkbox/components/CheckboxIcon.d.ts +3 -0
- package/dist/fe/components/Checkbox/components/SwitchTrack.d.ts +3 -0
- package/dist/fe/components/Checkbox/index.d.ts +7 -0
- package/dist/fe/components/Checkbox/theme/index.d.ts +218 -0
- package/dist/fe/components/Checkbox/types/index.d.ts +39 -0
- package/dist/fe/components/Checkbox/utils/cn.d.ts +3 -0
- package/dist/fe/components/DataTable/DataTable.d.ts +3 -0
- package/dist/fe/components/DataTable/components/ActionCell.d.ts +10 -0
- package/dist/fe/components/DataTable/components/DataCell.d.ts +18 -0
- package/dist/fe/components/DataTable/components/EditableCell.d.ts +14 -0
- package/dist/fe/components/DataTable/components/EmptyState.d.ts +8 -0
- package/dist/fe/components/DataTable/components/HeaderCell.d.ts +16 -0
- package/dist/fe/components/DataTable/components/InfiniteScrollTrigger.d.ts +11 -0
- package/dist/fe/components/DataTable/components/LoadingSpinner.d.ts +7 -0
- package/dist/fe/components/DataTable/components/ResizeHandle.d.ts +9 -0
- package/dist/fe/components/DataTable/components/SelectionCell.d.ts +9 -0
- package/dist/fe/components/DataTable/components/SkeletonRow.d.ts +9 -0
- package/dist/fe/components/DataTable/components/SkeletonTable.d.ts +10 -0
- package/dist/fe/components/DataTable/components/SortIcon.d.ts +9 -0
- package/dist/fe/components/DataTable/components/TableHeader.d.ts +20 -0
- package/dist/fe/components/DataTable/components/TableRow.d.ts +20 -0
- package/dist/fe/components/DataTable/components/index.d.ts +15 -0
- package/dist/fe/components/DataTable/hooks/index.d.ts +3 -0
- package/dist/fe/components/DataTable/hooks/useAutoFitColumn.d.ts +8 -0
- package/dist/fe/components/DataTable/hooks/useResizeColumn.d.ts +12 -0
- package/dist/fe/components/DataTable/index.d.ts +6 -0
- package/dist/fe/components/DataTable/store/index.d.ts +52 -0
- package/dist/fe/components/DataTable/theme/index.d.ts +131 -0
- package/dist/fe/components/DataTable/types/index.d.ts +151 -0
- package/dist/fe/components/DataTable/utils/cn.d.ts +3 -0
- package/dist/fe/components/DatePicker/components/CalendarGrid.d.ts +3 -0
- package/dist/fe/components/DatePicker/components/CalendarHeader.d.ts +3 -0
- package/dist/fe/components/DatePicker/components/DatePicker.d.ts +3 -0
- package/dist/fe/components/DatePicker/components/MonthYearSelector.d.ts +10 -0
- package/dist/fe/components/DatePicker/index.d.ts +10 -0
- package/dist/fe/components/DatePicker/locales/index.d.ts +5 -0
- package/dist/fe/components/DatePicker/theme/index.d.ts +312 -0
- package/dist/fe/components/DatePicker/types/index.d.ts +88 -0
- package/dist/fe/components/DatePicker/utils/cn.d.ts +3 -0
- package/dist/fe/components/DatePicker/utils/date.d.ts +21 -0
- package/dist/fe/components/DevicesPage/components/DeviceCard.d.ts +4 -0
- package/dist/fe/components/DevicesPage/components/DevicesHeader.d.ts +4 -0
- package/dist/fe/components/DevicesPage/components/DevicesPage.d.ts +4 -0
- package/dist/fe/components/DevicesPage/index.d.ts +8 -0
- package/dist/fe/components/DevicesPage/store/index.d.ts +20 -0
- package/dist/fe/components/DevicesPage/theme/index.d.ts +92 -0
- package/dist/fe/components/DevicesPage/types/index.d.ts +147 -0
- package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordForm.d.ts +4 -0
- package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordHeader.d.ts +4 -0
- package/dist/fe/components/ForgotPasswordPage/components/ForgotPasswordPage.d.ts +4 -0
- package/dist/fe/components/ForgotPasswordPage/index.d.ts +7 -0
- package/dist/fe/components/ForgotPasswordPage/store/index.d.ts +14 -0
- package/dist/fe/components/ForgotPasswordPage/theme/index.d.ts +48 -0
- package/dist/fe/components/ForgotPasswordPage/types/index.d.ts +48 -0
- package/dist/fe/components/FormBuilder/components/FormBuilder.d.ts +3 -0
- package/dist/fe/components/FormBuilder/components/FormField.d.ts +3 -0
- package/dist/fe/components/FormBuilder/hooks/useFormBuilder.d.ts +3 -0
- package/dist/fe/components/FormBuilder/index.d.ts +6 -0
- package/dist/fe/components/FormBuilder/theme/index.d.ts +136 -0
- package/dist/fe/components/FormBuilder/types/index.d.ts +150 -0
- package/dist/fe/components/FormBuilder/utils/cn.d.ts +3 -0
- package/dist/fe/components/FormBuilder/utils/fieldMapping.d.ts +12 -0
- package/dist/fe/components/FormBuilder/utils/validation.d.ts +11 -0
- package/dist/fe/components/LoginPage/components/LoginForm.d.ts +4 -0
- package/dist/fe/components/LoginPage/components/LoginHeader.d.ts +4 -0
- package/dist/fe/components/LoginPage/components/LoginPage.d.ts +4 -0
- package/dist/fe/components/LoginPage/index.d.ts +8 -0
- package/dist/fe/components/LoginPage/store/index.d.ts +22 -0
- package/dist/fe/components/LoginPage/theme/index.d.ts +55 -0
- package/dist/fe/components/LoginPage/types/index.d.ts +129 -0
- package/dist/fe/components/MagicLinkVerifyPage/components/MagicLinkVerifyPage.d.ts +4 -0
- package/dist/fe/components/MagicLinkVerifyPage/index.d.ts +5 -0
- package/dist/fe/components/MagicLinkVerifyPage/store.d.ts +15 -0
- package/dist/fe/components/MagicLinkVerifyPage/theme.d.ts +37 -0
- package/dist/fe/components/MagicLinkVerifyPage/types.d.ts +35 -0
- package/dist/fe/components/NucleusEntityShowcase.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/components/FloatingLabel.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/components/InputIcons.d.ts +15 -0
- package/dist/fe/components/NucleusTextInput/components/NucleusTextInput.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/components/PasswordStrengthIndicator.d.ts +15 -0
- package/dist/fe/components/NucleusTextInput/components/TypewriterText.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/index.d.ts +11 -0
- package/dist/fe/components/NucleusTextInput/theme/index.d.ts +108 -0
- package/dist/fe/components/NucleusTextInput/types/index.d.ts +65 -0
- package/dist/fe/components/NucleusTextInput/utils/cn.d.ts +3 -0
- package/dist/fe/components/NucleusTextInput/utils/format.d.ts +8 -0
- package/dist/fe/components/NucleusTextInput/utils/validation.d.ts +23 -0
- package/dist/fe/components/ProfilePage/components/AddressCard.d.ts +4 -0
- package/dist/fe/components/ProfilePage/components/PhoneCard.d.ts +4 -0
- package/dist/fe/components/ProfilePage/components/ProfileHeader.d.ts +4 -0
- package/dist/fe/components/ProfilePage/components/ProfilePage.d.ts +4 -0
- package/dist/fe/components/ProfilePage/index.d.ts +10 -0
- package/dist/fe/components/ProfilePage/store/index.d.ts +37 -0
- package/dist/fe/components/ProfilePage/theme/index.d.ts +101 -0
- package/dist/fe/components/ProfilePage/types/index.d.ts +150 -0
- package/dist/fe/components/RangePicker/components/RangePicker.d.ts +3 -0
- package/dist/fe/components/RangePicker/components/RangeThumb.d.ts +3 -0
- package/dist/fe/components/RangePicker/components/RangeTooltip.d.ts +3 -0
- package/dist/fe/components/RangePicker/components/RangeTrack.d.ts +3 -0
- package/dist/fe/components/RangePicker/index.d.ts +8 -0
- package/dist/fe/components/RangePicker/theme/index.d.ts +90 -0
- package/dist/fe/components/RangePicker/types/index.d.ts +66 -0
- package/dist/fe/components/RangePicker/utils/cn.d.ts +3 -0
- package/dist/fe/components/RegisterPage/components/PasswordStrengthIndicator.d.ts +14 -0
- package/dist/fe/components/RegisterPage/components/RegisterForm.d.ts +4 -0
- package/dist/fe/components/RegisterPage/components/RegisterHeader.d.ts +4 -0
- package/dist/fe/components/RegisterPage/components/RegisterPage.d.ts +4 -0
- package/dist/fe/components/RegisterPage/index.d.ts +9 -0
- package/dist/fe/components/RegisterPage/store/index.d.ts +19 -0
- package/dist/fe/components/RegisterPage/theme/index.d.ts +81 -0
- package/dist/fe/components/RegisterPage/types/index.d.ts +141 -0
- package/dist/fe/components/ResetPasswordPage/components/ResetPasswordForm.d.ts +4 -0
- package/dist/fe/components/ResetPasswordPage/components/ResetPasswordHeader.d.ts +4 -0
- package/dist/fe/components/ResetPasswordPage/components/ResetPasswordPage.d.ts +4 -0
- package/dist/fe/components/ResetPasswordPage/index.d.ts +7 -0
- package/dist/fe/components/ResetPasswordPage/store/index.d.ts +15 -0
- package/dist/fe/components/ResetPasswordPage/theme/index.d.ts +56 -0
- package/dist/fe/components/ResetPasswordPage/types/index.d.ts +50 -0
- package/dist/fe/components/SearchBox/components/SearchBox.d.ts +3 -0
- package/dist/fe/components/SearchBox/components/SearchBoxDropdown.d.ts +3 -0
- package/dist/fe/components/SearchBox/index.d.ts +8 -0
- package/dist/fe/components/SearchBox/theme/index.d.ts +141 -0
- package/dist/fe/components/SearchBox/types/index.d.ts +47 -0
- package/dist/fe/components/SearchBox/utils/cn.d.ts +3 -0
- package/dist/fe/components/SearchBox/utils/debounce.d.ts +5 -0
- package/dist/fe/components/SearchBox/utils/sanitize.d.ts +9 -0
- package/dist/fe/components/SelectBox/components/SelectBox.d.ts +3 -0
- package/dist/fe/components/SelectBox/components/SelectDropdown.d.ts +6 -0
- package/dist/fe/components/SelectBox/components/SelectOptionItem.d.ts +3 -0
- package/dist/fe/components/SelectBox/components/SelectTrigger.d.ts +5 -0
- package/dist/fe/components/SelectBox/index.d.ts +8 -0
- package/dist/fe/components/SelectBox/theme/index.d.ts +100 -0
- package/dist/fe/components/SelectBox/types/index.d.ts +66 -0
- package/dist/fe/components/SelectBox/utils/cn.d.ts +3 -0
- package/dist/fe/components/SetPasswordPage/components/PasswordStrengthIndicator.d.ts +14 -0
- package/dist/fe/components/SetPasswordPage/components/SetPasswordForm.d.ts +4 -0
- package/dist/fe/components/SetPasswordPage/components/SetPasswordHeader.d.ts +4 -0
- package/dist/fe/components/SetPasswordPage/components/SetPasswordPage.d.ts +4 -0
- package/dist/fe/components/SetPasswordPage/index.d.ts +9 -0
- package/dist/fe/components/SetPasswordPage/store/index.d.ts +16 -0
- package/dist/fe/components/SetPasswordPage/theme/index.d.ts +95 -0
- package/dist/fe/components/SetPasswordPage/types/index.d.ts +137 -0
- package/dist/fe/components/UsersPage/components/InviteUserModal.d.ts +10 -0
- package/dist/fe/components/UsersPage/components/Pagination.d.ts +13 -0
- package/dist/fe/components/UsersPage/components/RoleAssignmentModal.d.ts +12 -0
- package/dist/fe/components/UsersPage/components/StatsCards.d.ts +10 -0
- package/dist/fe/components/UsersPage/components/UserDetailDrawer.d.ts +24 -0
- package/dist/fe/components/UsersPage/components/UserFilters.d.ts +18 -0
- package/dist/fe/components/UsersPage/components/UserListItem.d.ts +11 -0
- package/dist/fe/components/UsersPage/components/UserListSkeleton.d.ts +7 -0
- package/dist/fe/components/UsersPage/components/UsersPage.d.ts +8 -0
- package/dist/fe/components/UsersPage/index.d.ts +13 -0
- package/dist/fe/components/UsersPage/store/index.d.ts +51 -0
- package/dist/fe/components/UsersPage/theme/index.d.ts +180 -0
- package/dist/fe/components/UsersPage/types/index.d.ts +73 -0
- package/dist/fe/components/VerifyEmailPage/components/VerifyEmailPage.d.ts +4 -0
- package/dist/fe/components/VerifyEmailPage/index.d.ts +5 -0
- package/dist/fe/components/VerifyEmailPage/store/index.d.ts +18 -0
- package/dist/fe/components/VerifyEmailPage/theme/index.d.ts +49 -0
- package/dist/fe/components/VerifyEmailPage/types/index.d.ts +84 -0
- package/dist/fe/hooks/useNucleusEntity.d.ts +3 -0
- package/dist/fe/index.d.ts +42 -0
- package/dist/fe/index.js +1 -0
- package/dist/fe/types/index.d.ts +233 -0
- package/dist/fe/utils/cn.d.ts +3 -0
- package/dist/fe/utils/columnUtils.d.ts +63 -0
- package/dist/fe/utils/endpointKeys.d.ts +9 -0
- package/dist/index-0yyw12k6.js +1 -0
- package/dist/index-tv67j5qd.js +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -0
- package/dist/nucleus.config.d.ts +95 -0
- package/dist/public/components/CTA.d.ts +2 -0
- package/dist/public/components/Capabilities.d.ts +9 -0
- package/dist/public/components/Features.d.ts +9 -0
- package/dist/public/components/Footer.d.ts +2 -0
- package/dist/public/components/Hero.d.ts +2 -0
- package/dist/public/components/Managers.d.ts +7 -0
- package/dist/public/components/Nav.d.ts +2 -0
- package/dist/public/components/Stack.d.ts +7 -0
- package/dist/public/components/docs/Docs.d.ts +2 -0
- package/dist/public/components/docs/DocsContent.d.ts +19 -0
- package/dist/public/components/docs/DocsRightSidebar.d.ts +9 -0
- package/dist/public/components/docs/DocsSidebar.d.ts +8 -0
- package/dist/public/components/docs/content/authentication.d.ts +3 -0
- package/dist/public/components/docs/content/gettingStarted.d.ts +3 -0
- package/dist/public/components/docs/docsData.d.ts +18 -0
- package/dist/public/components/docs/index.d.ts +7 -0
- package/dist/public/components/index.d.ts +10 -0
- package/dist/public/index.d.ts +3 -0
- package/dist/public/store.d.ts +20 -0
- package/dist/scripts/build.d.ts +7 -0
- package/dist/scripts/generate-schema.d.ts +3 -0
- package/dist/scripts/generate-system-tables-types.d.ts +2 -0
- package/dist/scripts/generate-types-schema.d.ts +7 -0
- package/dist/scripts/publish.d.ts +7 -0
- package/dist/scripts/version.d.ts +7 -0
- package/dist/src/Client/ApiCaller/client.d.ts +5 -0
- package/dist/src/Client/ApiCaller/examples/usage.example.d.ts +8 -0
- package/dist/src/Client/ApiCaller/generator.d.ts +10 -0
- package/dist/src/Client/ApiCaller/index.d.ts +7 -0
- package/dist/src/Client/ApiCaller/server.d.ts +4 -0
- package/dist/src/Client/ApiCaller/system-tables.d.ts +1215 -0
- package/dist/src/Client/ApiCaller/types.d.ts +907 -0
- package/dist/src/Client/Proxy/httpProxy.d.ts +5 -0
- package/dist/src/Client/Proxy/index.d.ts +6 -0
- package/dist/src/Client/Proxy/index.js +1 -0
- package/dist/src/Client/Proxy/server.d.ts +5 -0
- package/dist/src/Client/Proxy/types.d.ts +69 -0
- package/dist/src/Client/Proxy/utils.d.ts +12 -0
- package/dist/src/Client/Proxy/wsProxy.d.ts +20 -0
- package/dist/src/Client/ServerFetch/index.d.ts +19 -0
- package/dist/src/Client/ServerFetch/types.d.ts +34 -0
- package/dist/src/Client/index.d.ts +4 -0
- package/dist/src/ElysiaPlugin/index.d.ts +12 -0
- package/dist/src/ElysiaPlugin/publicRoutes.d.ts +9 -0
- package/dist/src/ElysiaPlugin/routes/auth/captcha/index.d.ts +46 -0
- package/dist/src/ElysiaPlugin/routes/auth/emailVerification/index.d.ts +38 -0
- package/dist/src/ElysiaPlugin/routes/auth/index.d.ts +68 -0
- package/dist/src/ElysiaPlugin/routes/auth/invite/index.d.ts +43 -0
- package/dist/src/ElysiaPlugin/routes/auth/login/index.d.ts +68 -0
- package/dist/src/ElysiaPlugin/routes/auth/login/types.d.ts +22 -0
- package/dist/src/ElysiaPlugin/routes/auth/login/utils.d.ts +19 -0
- package/dist/src/ElysiaPlugin/routes/auth/logout/index.d.ts +33 -0
- package/dist/src/ElysiaPlugin/routes/auth/logout/types.d.ts +6 -0
- package/dist/src/ElysiaPlugin/routes/auth/logout/utils.d.ts +2 -0
- package/dist/src/ElysiaPlugin/routes/auth/magicLink/index.d.ts +41 -0
- package/dist/src/ElysiaPlugin/routes/auth/magicLink/types.d.ts +23 -0
- package/dist/src/ElysiaPlugin/routes/auth/magicLink/utils.d.ts +4 -0
- package/dist/src/ElysiaPlugin/routes/auth/me/index.d.ts +40 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordChange/index.d.ts +33 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordChange/types.d.ts +12 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordChange/utils.d.ts +2 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordReset/index.d.ts +36 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordReset/types.d.ts +16 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordReset/utils.d.ts +3 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordSet/index.d.ts +33 -0
- package/dist/src/ElysiaPlugin/routes/auth/passwordSet/types.d.ts +9 -0
- package/dist/src/ElysiaPlugin/routes/auth/refresh/index.d.ts +39 -0
- package/dist/src/ElysiaPlugin/routes/auth/refresh/types.d.ts +9 -0
- package/dist/src/ElysiaPlugin/routes/auth/refresh/utils.d.ts +2 -0
- package/dist/src/ElysiaPlugin/routes/auth/register/index.d.ts +47 -0
- package/dist/src/ElysiaPlugin/routes/auth/register/types.d.ts +18 -0
- package/dist/src/ElysiaPlugin/routes/auth/register/utils.d.ts +8 -0
- package/dist/src/ElysiaPlugin/routes/auth/sessions/index.d.ts +33 -0
- package/dist/src/ElysiaPlugin/routes/auth/sessions/types.d.ts +67 -0
- package/dist/src/ElysiaPlugin/routes/auth/sessions/utils.d.ts +36 -0
- package/dist/src/ElysiaPlugin/routes/auth/types.d.ts +153 -0
- package/dist/src/ElysiaPlugin/routes/entity/index.d.ts +5 -0
- package/dist/src/ElysiaPlugin/routes/entity/types.d.ts +50 -0
- package/dist/src/ElysiaPlugin/routes/entity/utils.d.ts +11 -0
- package/dist/src/ElysiaPlugin/routes/index.d.ts +5 -0
- package/dist/src/ElysiaPlugin/routes/monitoring/index.d.ts +58 -0
- package/dist/src/ElysiaPlugin/routes/storage/cdn.d.ts +51 -0
- package/dist/src/ElysiaPlugin/routes/storage/helpers.d.ts +53 -0
- package/dist/src/ElysiaPlugin/routes/storage/index.d.ts +3 -0
- package/dist/src/ElysiaPlugin/routes/verification/index.d.ts +39 -0
- package/dist/src/ElysiaPlugin/swagger.d.ts +28 -0
- package/dist/src/ElysiaPlugin/utils.d.ts +70 -0
- package/dist/src/Managers/Dapr/clients/binding-client.d.ts +15 -0
- package/dist/src/Managers/Dapr/clients/config-client.d.ts +27 -0
- package/dist/src/Managers/Dapr/clients/crypto-client.d.ts +27 -0
- package/dist/src/Managers/Dapr/clients/invoke-client.d.ts +32 -0
- package/dist/src/Managers/Dapr/clients/lock-client.d.ts +23 -0
- package/dist/src/Managers/Dapr/clients/pubsub-client.d.ts +23 -0
- package/dist/src/Managers/Dapr/clients/secret-client.d.ts +19 -0
- package/dist/src/Managers/Dapr/clients/state-client.d.ts +55 -0
- package/dist/src/Managers/Dapr/clients/workflow-client.d.ts +39 -0
- package/dist/src/Managers/Dapr/connection-manager.d.ts +51 -0
- package/dist/src/Managers/Dapr/constants.d.ts +49 -0
- package/dist/src/Managers/Dapr/dapr-manager.d.ts +160 -0
- package/dist/src/Managers/Dapr/error-handling.d.ts +29 -0
- package/dist/src/Managers/Dapr/index.d.ts +102 -0
- package/dist/src/Managers/Dapr/types.d.ts +121 -0
- package/dist/src/Managers/Dapr/utils.d.ts +44 -0
- package/dist/src/Managers/File/atomic.d.ts +64 -0
- package/dist/src/Managers/File/core.d.ts +188 -0
- package/dist/src/Managers/File/index.d.ts +18 -0
- package/dist/src/Managers/File/permissions.d.ts +72 -0
- package/dist/src/Managers/File/streaming.d.ts +30 -0
- package/dist/src/Managers/File/types.d.ts +146 -0
- package/dist/src/Managers/File/utils.d.ts +112 -0
- package/dist/src/Managers/Postgre/index.d.ts +25 -0
- package/dist/src/Managers/Redis/index.d.ts +33 -0
- package/dist/src/Managers/index.d.ts +5 -0
- package/dist/src/Services/Auth/Fingerprint/Generate/index.d.ts +3 -0
- package/dist/src/Services/Auth/Fingerprint/Validate/index.d.ts +3 -0
- package/dist/src/Services/Auth/Fingerprint/index.d.ts +5 -0
- package/dist/src/Services/Auth/Fingerprint/types.d.ts +20 -0
- package/dist/src/Services/Auth/Fingerprint/utils.d.ts +3 -0
- package/dist/src/Services/Auth/JWT/Decode/index.d.ts +3 -0
- package/dist/src/Services/Auth/JWT/Sign/index.d.ts +3 -0
- package/dist/src/Services/Auth/JWT/Verify/index.d.ts +3 -0
- package/dist/src/Services/Auth/JWT/index.d.ts +5 -0
- package/dist/src/Services/Auth/JWT/types.d.ts +38 -0
- package/dist/src/Services/Auth/JWT/utils.d.ts +10 -0
- package/dist/src/Services/Auth/Password/Generate/index.d.ts +3 -0
- package/dist/src/Services/Auth/Password/Validate/index.d.ts +3 -0
- package/dist/src/Services/Auth/Password/index.d.ts +2 -0
- package/dist/src/Services/Auth/Password/types.d.ts +16 -0
- package/dist/src/Services/Auth/RefreshToken/Delete/index.d.ts +3 -0
- package/dist/src/Services/Auth/RefreshToken/Generate/index.d.ts +11 -0
- package/dist/src/Services/Auth/RefreshToken/Read/index.d.ts +11 -0
- package/dist/src/Services/Auth/RefreshToken/Validate/index.d.ts +11 -0
- package/dist/src/Services/Auth/RefreshToken/index.d.ts +5 -0
- package/dist/src/Services/Auth/RefreshToken/types.d.ts +27 -0
- package/dist/src/Services/Auth/RefreshToken/utils.d.ts +6 -0
- package/dist/src/Services/Auth/Session/Issue/index.d.ts +9 -0
- package/dist/src/Services/Auth/Session/index.d.ts +2 -0
- package/dist/src/Services/Auth/Session/types.d.ts +13 -0
- package/dist/src/Services/Auth/SessionStore/Delete/index.d.ts +3 -0
- package/dist/src/Services/Auth/SessionStore/Generate/index.d.ts +11 -0
- package/dist/src/Services/Auth/SessionStore/Read/index.d.ts +3 -0
- package/dist/src/Services/Auth/SessionStore/Update/index.d.ts +24 -0
- package/dist/src/Services/Auth/SessionStore/Validate/index.d.ts +3 -0
- package/dist/src/Services/Auth/SessionStore/index.d.ts +7 -0
- package/dist/src/Services/Auth/SessionStore/types.d.ts +59 -0
- package/dist/src/Services/Auth/SessionStore/utils.d.ts +6 -0
- package/dist/src/Services/Auth/index.d.ts +7 -0
- package/dist/src/Services/Authorization/ClaimSeeder/index.d.ts +6 -0
- package/dist/src/Services/Authorization/GodminSetup/index.d.ts +10 -0
- package/dist/src/Services/Authorization/Middleware/index.d.ts +21 -0
- package/dist/src/Services/Authorization/index.d.ts +5 -0
- package/dist/src/Services/Authorization/types.d.ts +68 -0
- package/dist/src/Services/Captcha/index.d.ts +15 -0
- package/dist/src/Services/Captcha/types.d.ts +69 -0
- package/dist/src/Services/Gmail/index.d.ts +62 -0
- package/dist/src/Services/Logger/Logger.d.ts +77 -0
- package/dist/src/Services/Logger/index.d.ts +5 -0
- package/dist/src/Services/Logger/transports.d.ts +54 -0
- package/dist/src/Services/Logger/types.d.ts +88 -0
- package/dist/src/Services/Logger/utils.d.ts +8 -0
- package/dist/src/Services/Monitoring/AlertService.d.ts +29 -0
- package/dist/src/Services/Monitoring/collectors/ApplicationCollector.d.ts +30 -0
- package/dist/src/Services/Monitoring/collectors/SystemCollector.d.ts +13 -0
- package/dist/src/Services/Monitoring/collectors/index.d.ts +3 -0
- package/dist/src/Services/Monitoring/index.d.ts +109 -0
- package/dist/src/Services/Monitoring/types.d.ts +163 -0
- package/dist/src/Services/Notification/index.d.ts +31 -0
- package/dist/src/Services/Notification/types.d.ts +59 -0
- package/dist/src/Services/RateLimiter/index.d.ts +99 -0
- package/dist/src/Services/Verification/index.d.ts +23 -0
- package/dist/src/Services/Verification/types.d.ts +135 -0
- package/dist/src/Services/index.d.ts +10 -0
- package/dist/src/types.d.ts +588 -0
- package/package.json +99 -0
- package/public/components/CTA.tsx +25 -0
- package/public/components/Capabilities.tsx +69 -0
- package/public/components/Features.tsx +107 -0
- package/public/components/Footer.tsx +60 -0
- package/public/components/Hero.tsx +53 -0
- package/public/components/Managers.tsx +60 -0
- package/public/components/Nav.tsx +107 -0
- package/public/components/Stack.tsx +36 -0
- package/public/components/docs/Docs.tsx +62 -0
- package/public/components/docs/DocsContent.tsx +203 -0
- package/public/components/docs/DocsRightSidebar.tsx +53 -0
- package/public/components/docs/DocsSidebar.tsx +62 -0
- package/public/components/docs/content/authentication.ts +1670 -0
- package/public/components/docs/content/gettingStarted.ts +627 -0
- package/public/components/docs/docsData.ts +36 -0
- package/public/components/docs/index.ts +6 -0
- package/public/components/index.ts +9 -0
- package/public/docs.css +633 -0
- package/public/index.html +81 -0
- package/public/index.tsx +52 -0
- package/public/store.ts +79 -0
- package/public/styles.css +877 -0
- package/schemas/bckp/config.nucleus.json +1488 -0
- package/schemas/bckp/nucleus.tables.schema.json +24 -0
- package/schemas/bckp/table.schema.json +472 -0
- package/schemas/config.nucleus.json +1010 -0
- package/schemas/nucleus.tables.schema.json +19 -0
- package/schemas/table.schema.json +498 -0
- package/scripts/build.ts +197 -0
- package/scripts/generate-schema.ts +556 -0
- package/scripts/generate-system-tables-types.ts +18 -0
- package/scripts/generate-types-schema.ts +962 -0
- package/scripts/publish.ts +210 -0
- package/scripts/version.ts +125 -0
- package/src/system.tables.json +1590 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
export declare const formBuilderTheme: {
|
|
2
|
+
readonly container: {
|
|
3
|
+
readonly base: "w-full";
|
|
4
|
+
};
|
|
5
|
+
readonly form: {
|
|
6
|
+
readonly base: "w-full";
|
|
7
|
+
readonly layout: {
|
|
8
|
+
readonly vertical: "flex flex-col";
|
|
9
|
+
readonly horizontal: "flex flex-row flex-wrap";
|
|
10
|
+
readonly inline: "flex flex-row flex-wrap items-end";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
readonly fields: {
|
|
14
|
+
readonly base: "grid w-full";
|
|
15
|
+
readonly columns: {
|
|
16
|
+
readonly 1: "grid-cols-1";
|
|
17
|
+
readonly 2: "grid-cols-1 sm:grid-cols-2";
|
|
18
|
+
readonly 3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3";
|
|
19
|
+
readonly 4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4";
|
|
20
|
+
readonly 6: "grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-6";
|
|
21
|
+
readonly 12: "grid-cols-1 sm:grid-cols-2 md:grid-cols-4 lg:grid-cols-6 xl:grid-cols-12";
|
|
22
|
+
};
|
|
23
|
+
readonly gap: {
|
|
24
|
+
readonly sm: "gap-3";
|
|
25
|
+
readonly md: "gap-4";
|
|
26
|
+
readonly lg: "gap-6";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly field: {
|
|
30
|
+
readonly container: {
|
|
31
|
+
readonly base: "flex flex-col";
|
|
32
|
+
readonly span: {
|
|
33
|
+
readonly 1: "col-span-1";
|
|
34
|
+
readonly 2: "col-span-1 sm:col-span-2";
|
|
35
|
+
readonly 3: "col-span-1 sm:col-span-2 lg:col-span-3";
|
|
36
|
+
readonly 4: "col-span-1 sm:col-span-2 lg:col-span-4";
|
|
37
|
+
readonly 6: "col-span-1 sm:col-span-2 md:col-span-3 lg:col-span-6";
|
|
38
|
+
readonly 12: "col-span-full";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
readonly label: {
|
|
42
|
+
readonly base: "mb-1.5 text-sm font-medium";
|
|
43
|
+
readonly color: {
|
|
44
|
+
readonly light: "text-zinc-700";
|
|
45
|
+
readonly dark: "dark:text-zinc-300";
|
|
46
|
+
};
|
|
47
|
+
readonly required: "after:content-['*'] after:ml-0.5 after:text-red-500";
|
|
48
|
+
readonly disabled: "opacity-50 cursor-not-allowed";
|
|
49
|
+
};
|
|
50
|
+
readonly error: {
|
|
51
|
+
readonly base: "mt-1 text-xs";
|
|
52
|
+
readonly color: {
|
|
53
|
+
readonly light: "text-red-500";
|
|
54
|
+
readonly dark: "dark:text-red-400";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
readonly helper: {
|
|
58
|
+
readonly base: "mt-1 text-xs";
|
|
59
|
+
readonly color: {
|
|
60
|
+
readonly light: "text-zinc-500";
|
|
61
|
+
readonly dark: "dark:text-zinc-400";
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
readonly actions: {
|
|
66
|
+
readonly base: "flex items-center mt-6";
|
|
67
|
+
readonly gap: {
|
|
68
|
+
readonly sm: "gap-2";
|
|
69
|
+
readonly md: "gap-3";
|
|
70
|
+
readonly lg: "gap-4";
|
|
71
|
+
};
|
|
72
|
+
readonly alignment: {
|
|
73
|
+
readonly left: "justify-start";
|
|
74
|
+
readonly center: "justify-center";
|
|
75
|
+
readonly right: "justify-end";
|
|
76
|
+
readonly between: "justify-between";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
readonly header: {
|
|
80
|
+
readonly base: "mb-6";
|
|
81
|
+
readonly title: {
|
|
82
|
+
readonly base: "text-xl font-semibold";
|
|
83
|
+
readonly color: {
|
|
84
|
+
readonly light: "text-zinc-900";
|
|
85
|
+
readonly dark: "dark:text-white";
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly description: {
|
|
89
|
+
readonly base: "mt-1 text-sm";
|
|
90
|
+
readonly color: {
|
|
91
|
+
readonly light: "text-zinc-500";
|
|
92
|
+
readonly dark: "dark:text-zinc-400";
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
readonly divider: {
|
|
97
|
+
readonly base: "w-full h-px my-4";
|
|
98
|
+
readonly color: {
|
|
99
|
+
readonly light: "bg-zinc-200";
|
|
100
|
+
readonly dark: "dark:bg-zinc-700";
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
readonly section: {
|
|
104
|
+
readonly base: "mb-6";
|
|
105
|
+
readonly title: {
|
|
106
|
+
readonly base: "text-sm font-medium uppercase tracking-wider mb-3";
|
|
107
|
+
readonly color: {
|
|
108
|
+
readonly light: "text-zinc-500";
|
|
109
|
+
readonly dark: "dark:text-zinc-400";
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
readonly animation: {
|
|
114
|
+
readonly field: {
|
|
115
|
+
readonly enter: {
|
|
116
|
+
readonly duration: 0.3;
|
|
117
|
+
readonly ease: "power2.out";
|
|
118
|
+
readonly stagger: 0.05;
|
|
119
|
+
};
|
|
120
|
+
readonly exit: {
|
|
121
|
+
readonly duration: 0.2;
|
|
122
|
+
readonly ease: "power2.in";
|
|
123
|
+
};
|
|
124
|
+
readonly error: {
|
|
125
|
+
readonly duration: 0.4;
|
|
126
|
+
readonly ease: "elastic.out(1, 0.5)";
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
readonly submit: {
|
|
130
|
+
readonly duration: 0.2;
|
|
131
|
+
readonly ease: "power2.out";
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
export type FormBuilderTheme = typeof formBuilderTheme;
|
|
136
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { LocaleKey } from "../../DatePicker/types";
|
|
3
|
+
import type { SelectOption } from "../../SelectBox/types";
|
|
4
|
+
export type FormMode = "add" | "edit";
|
|
5
|
+
export type FormSize = "sm" | "md" | "lg";
|
|
6
|
+
export type FormLayout = "vertical" | "horizontal" | "inline";
|
|
7
|
+
export type ColumnType = "integer" | "smallint" | "bigint" | "serial" | "smallserial" | "bigserial" | "real" | "doublePrecision" | "numeric" | "decimal" | "text" | "varchar" | "char" | "uuid" | "boolean" | "date" | "time" | "timestamp" | "timestamptz" | "interval" | "json" | "jsonb" | "bytea" | "inet" | "cidr" | "macaddr" | "macaddr8" | "bit" | "bitVarying" | "point" | "line" | "lseg" | "box" | "path" | "polygon" | "circle" | "tsvector" | "tsquery" | "xml" | "money" | "vector" | "geometry" | "geography" | "customType";
|
|
8
|
+
export type ValidationFormat = "email" | "url" | "uuid" | "date" | "datetime" | "time" | "uri" | "ipv4" | "ipv6";
|
|
9
|
+
export interface ColumnValidation {
|
|
10
|
+
minLength?: number;
|
|
11
|
+
maxLength?: number;
|
|
12
|
+
min?: number;
|
|
13
|
+
max?: number;
|
|
14
|
+
pattern?: string;
|
|
15
|
+
format?: ValidationFormat;
|
|
16
|
+
customMessage?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ColumnReference {
|
|
19
|
+
table: string;
|
|
20
|
+
column?: string;
|
|
21
|
+
onDelete?: "cascade" | "restrict" | "no action" | "set null" | "set default";
|
|
22
|
+
onUpdate?: "cascade" | "restrict" | "no action" | "set null" | "set default";
|
|
23
|
+
}
|
|
24
|
+
export interface ColumnEnum {
|
|
25
|
+
name: string;
|
|
26
|
+
values: string[];
|
|
27
|
+
}
|
|
28
|
+
export interface NucleusColumn {
|
|
29
|
+
name: string;
|
|
30
|
+
type: ColumnType;
|
|
31
|
+
length?: number;
|
|
32
|
+
precision?: number;
|
|
33
|
+
scale?: number;
|
|
34
|
+
nullable?: boolean;
|
|
35
|
+
notNull?: boolean;
|
|
36
|
+
unique?: boolean;
|
|
37
|
+
primaryKey?: boolean;
|
|
38
|
+
default?: unknown;
|
|
39
|
+
defaultRaw?: string;
|
|
40
|
+
references?: ColumnReference;
|
|
41
|
+
enumValues?: string[];
|
|
42
|
+
enum?: ColumnEnum;
|
|
43
|
+
validation?: ColumnValidation;
|
|
44
|
+
comment?: string;
|
|
45
|
+
generatedAlwaysAs?: string;
|
|
46
|
+
generatedAlwaysAsIdentity?: boolean;
|
|
47
|
+
generatedByDefaultAsIdentity?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface FormFieldConfig<T = unknown> {
|
|
50
|
+
name?: string;
|
|
51
|
+
label?: string;
|
|
52
|
+
placeholder?: string;
|
|
53
|
+
helperText?: string;
|
|
54
|
+
required?: boolean;
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
readOnly?: boolean;
|
|
57
|
+
hidden?: boolean;
|
|
58
|
+
order?: number;
|
|
59
|
+
span?: 1 | 2 | 3 | 4 | 6 | 12;
|
|
60
|
+
options?: SelectOption<T>[];
|
|
61
|
+
fetchOptions?: () => Promise<SelectOption<T>[]>;
|
|
62
|
+
defaultValue?: T;
|
|
63
|
+
transform?: (value: T) => T;
|
|
64
|
+
render?: (props: FormFieldRenderProps<T>) => ReactNode;
|
|
65
|
+
dependsOn?: string[];
|
|
66
|
+
showWhen?: (values: Record<string, unknown>) => boolean;
|
|
67
|
+
}
|
|
68
|
+
export interface FormFieldRenderProps<T = unknown> {
|
|
69
|
+
value: T;
|
|
70
|
+
onChange: (value: T) => void;
|
|
71
|
+
error?: string;
|
|
72
|
+
disabled?: boolean;
|
|
73
|
+
readOnly?: boolean;
|
|
74
|
+
}
|
|
75
|
+
export interface FormBuilderProps<T extends Record<string, unknown>> {
|
|
76
|
+
columns: NucleusColumn[];
|
|
77
|
+
mode: FormMode;
|
|
78
|
+
initialValues?: Partial<T>;
|
|
79
|
+
onSubmit: (values: T) => void | Promise<void>;
|
|
80
|
+
onCancel?: () => void;
|
|
81
|
+
fieldConfigs?: Partial<Record<keyof T, FormFieldConfig>>;
|
|
82
|
+
excludeFields?: (keyof T)[];
|
|
83
|
+
includeFields?: (keyof T)[];
|
|
84
|
+
layout?: FormLayout;
|
|
85
|
+
size?: FormSize;
|
|
86
|
+
columns_grid?: 1 | 2 | 3 | 4 | 6 | 12;
|
|
87
|
+
gap?: "sm" | "md" | "lg";
|
|
88
|
+
submitText?: string;
|
|
89
|
+
cancelText?: string;
|
|
90
|
+
loading?: boolean;
|
|
91
|
+
disabled?: boolean;
|
|
92
|
+
showRequiredIndicator?: boolean;
|
|
93
|
+
locale?: LocaleKey;
|
|
94
|
+
className?: string;
|
|
95
|
+
formClassName?: string;
|
|
96
|
+
fieldsClassName?: string;
|
|
97
|
+
actionsClassName?: string;
|
|
98
|
+
renderHeader?: () => ReactNode;
|
|
99
|
+
renderFooter?: (props: FormFooterRenderProps) => ReactNode;
|
|
100
|
+
renderField?: (column: NucleusColumn, config: FormFieldConfig, defaultRender: () => ReactNode) => ReactNode;
|
|
101
|
+
}
|
|
102
|
+
export interface FormFooterRenderProps {
|
|
103
|
+
isSubmitting: boolean;
|
|
104
|
+
isValid: boolean;
|
|
105
|
+
isDirty: boolean;
|
|
106
|
+
reset: () => void;
|
|
107
|
+
submit: () => void;
|
|
108
|
+
}
|
|
109
|
+
export interface FormFieldProps<T = unknown> {
|
|
110
|
+
column: NucleusColumn;
|
|
111
|
+
config: FormFieldConfig<T>;
|
|
112
|
+
value: T;
|
|
113
|
+
onChange: (value: T) => void;
|
|
114
|
+
error?: string;
|
|
115
|
+
size?: FormSize;
|
|
116
|
+
locale?: LocaleKey;
|
|
117
|
+
disabled?: boolean;
|
|
118
|
+
readOnly?: boolean;
|
|
119
|
+
}
|
|
120
|
+
export interface FormState<T extends Record<string, unknown>> {
|
|
121
|
+
values: Partial<T>;
|
|
122
|
+
errors: Partial<Record<keyof T, string>>;
|
|
123
|
+
touched: Partial<Record<keyof T, boolean>>;
|
|
124
|
+
isSubmitting: boolean;
|
|
125
|
+
isDirty: boolean;
|
|
126
|
+
}
|
|
127
|
+
export interface UseFormBuilderOptions<T extends Record<string, unknown>> {
|
|
128
|
+
columns: NucleusColumn[];
|
|
129
|
+
initialValues?: Partial<T>;
|
|
130
|
+
fieldConfigs?: Partial<Record<keyof T, FormFieldConfig>>;
|
|
131
|
+
onSubmit: (values: T) => void | Promise<void>;
|
|
132
|
+
validate?: (values: Partial<T>) => Partial<Record<keyof T, string>>;
|
|
133
|
+
}
|
|
134
|
+
export interface UseFormBuilderReturn<T extends Record<string, unknown>> {
|
|
135
|
+
state: FormState<T>;
|
|
136
|
+
setValue: (name: keyof T, value: unknown) => void;
|
|
137
|
+
setValues: (values: Partial<T>) => void;
|
|
138
|
+
setError: (name: keyof T, error: string) => void;
|
|
139
|
+
setErrors: (errors: Partial<Record<keyof T, string>>) => void;
|
|
140
|
+
setTouched: (name: keyof T, touched: boolean) => void;
|
|
141
|
+
reset: () => void;
|
|
142
|
+
submit: () => Promise<void>;
|
|
143
|
+
validate: () => boolean;
|
|
144
|
+
getFieldProps: (name: keyof T) => {
|
|
145
|
+
value: unknown;
|
|
146
|
+
onChange: (value: unknown) => void;
|
|
147
|
+
error?: string;
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { NucleusColumn, ValidationFormat } from "../types";
|
|
2
|
+
export type InputTypeMapping = "text" | "number" | "email" | "password" | "url" | "tel" | "textarea" | "select" | "checkbox" | "date" | "datetime" | "time" | "json" | "hidden";
|
|
3
|
+
export interface FieldMapping {
|
|
4
|
+
inputType: InputTypeMapping;
|
|
5
|
+
validationType?: ValidationFormat;
|
|
6
|
+
}
|
|
7
|
+
export declare function getFieldMapping(column: NucleusColumn): FieldMapping;
|
|
8
|
+
export declare function getInputTypeFromFormat(format: ValidationFormat): InputTypeMapping;
|
|
9
|
+
export declare function shouldExcludeField(column: NucleusColumn): boolean;
|
|
10
|
+
export declare function getDefaultValue(column: NucleusColumn): unknown;
|
|
11
|
+
export declare function formatLabel(name: string): string;
|
|
12
|
+
//# sourceMappingURL=fieldMapping.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { NucleusColumn } from "../types";
|
|
2
|
+
export interface ValidationError {
|
|
3
|
+
field: string;
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function validateField(column: NucleusColumn, value: unknown, isRequired: boolean): string | undefined;
|
|
7
|
+
export declare function validateForm<T extends Record<string, unknown>>(columns: NucleusColumn[], values: Partial<T>, fieldConfigs?: Partial<Record<keyof T, {
|
|
8
|
+
required?: boolean;
|
|
9
|
+
}>>): Partial<Record<keyof T, string>>;
|
|
10
|
+
export declare function isFormValid<T extends Record<string, unknown>>(errors: Partial<Record<keyof T, string>>): boolean;
|
|
11
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { LoginFormProps } from "../types";
|
|
3
|
+
export declare function LoginForm({ loginAction, captchaGenerateAction, captchaConfig, showRememberMe, showForgotPassword, showSignUp, forgotPasswordHref, signUpHref, onForgotPassword, onSignUp, onSuccess, }: LoginFormProps): ReactElement;
|
|
4
|
+
//# sourceMappingURL=LoginForm.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { LoginPageProps } from "../types";
|
|
3
|
+
export declare function LoginPage({ variant: _variant, logo, title, subtitle, loggedInTitle, showRememberMe, showForgotPassword, showSignUp, forgotPasswordHref, signUpHref, loginAction, meAction, logoutAction, captchaGenerateAction, config, onForgotPassword, onSignUp, onSuccess, onLogout, showBackground, className, }: LoginPageProps): ReactElement;
|
|
4
|
+
//# sourceMappingURL=LoginPage.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { LoginForm } from "./components/LoginForm";
|
|
2
|
+
export { LoginHeader } from "./components/LoginHeader";
|
|
3
|
+
export { LoginPage } from "./components/LoginPage";
|
|
4
|
+
export { useLoginStore } from "./store";
|
|
5
|
+
export type { LoginPageTheme } from "./theme";
|
|
6
|
+
export { extendLoginPageTheme, loginPageTheme } from "./theme";
|
|
7
|
+
export type { LoginAction, LoginFeatureConfig, LoginFormData, LoginFormProps, LoginHeaderProps, LoginPageConfig, LoginPageProps, LoginPageVariant, LoginState, LogoutAction, MeAction, } from "./types";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { LoginState } from "../types";
|
|
2
|
+
type LoginMethods = {
|
|
3
|
+
[key: string]: unknown;
|
|
4
|
+
setEmail: (email: string) => void;
|
|
5
|
+
setPassword: (password: string) => void;
|
|
6
|
+
setRememberMe: (value: boolean) => void;
|
|
7
|
+
setLoading: (value: boolean) => void;
|
|
8
|
+
setError: (error: string | null) => void;
|
|
9
|
+
setCaptchaId: (id: string | null) => void;
|
|
10
|
+
setCaptchaAnswer: (answer: string) => void;
|
|
11
|
+
setAuthenticated: (isAuthenticated: boolean, user?: {
|
|
12
|
+
id: string;
|
|
13
|
+
email: string;
|
|
14
|
+
} | null) => void;
|
|
15
|
+
reset: () => void;
|
|
16
|
+
};
|
|
17
|
+
type LoginStoreState = LoginState & {
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
export declare const useLoginStore: () => import("h-state").StoreType<LoginStoreState, LoginMethods>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export type LoginPageTheme = {
|
|
2
|
+
container: {
|
|
3
|
+
base: string;
|
|
4
|
+
wrapper: string;
|
|
5
|
+
};
|
|
6
|
+
card: {
|
|
7
|
+
base: string;
|
|
8
|
+
padding: string;
|
|
9
|
+
background: string;
|
|
10
|
+
border: string;
|
|
11
|
+
shadow: string;
|
|
12
|
+
rounded: string;
|
|
13
|
+
};
|
|
14
|
+
header: {
|
|
15
|
+
container: string;
|
|
16
|
+
logoWrapper: string;
|
|
17
|
+
title: string;
|
|
18
|
+
subtitle: string;
|
|
19
|
+
};
|
|
20
|
+
form: {
|
|
21
|
+
container: string;
|
|
22
|
+
spacing: string;
|
|
23
|
+
};
|
|
24
|
+
input: {
|
|
25
|
+
wrapper: string;
|
|
26
|
+
};
|
|
27
|
+
checkbox: {
|
|
28
|
+
wrapper: string;
|
|
29
|
+
label: string;
|
|
30
|
+
};
|
|
31
|
+
links: {
|
|
32
|
+
container: string;
|
|
33
|
+
forgotPassword: string;
|
|
34
|
+
signUp: {
|
|
35
|
+
wrapper: string;
|
|
36
|
+
text: string;
|
|
37
|
+
link: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
button: {
|
|
41
|
+
wrapper: string;
|
|
42
|
+
};
|
|
43
|
+
error: {
|
|
44
|
+
container: string;
|
|
45
|
+
text: string;
|
|
46
|
+
};
|
|
47
|
+
divider: {
|
|
48
|
+
container: string;
|
|
49
|
+
line: string;
|
|
50
|
+
text: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export declare const loginPageTheme: LoginPageTheme;
|
|
54
|
+
export declare function extendLoginPageTheme(overrides: Partial<LoginPageTheme>): LoginPageTheme;
|
|
55
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import type { CaptchaAction, CaptchaChallenge, CaptchaConfig } from "../../Captcha";
|
|
2
|
+
export type LoginPageVariant = "default" | "minimal" | "split";
|
|
3
|
+
export type LoginFormData = {
|
|
4
|
+
email: string;
|
|
5
|
+
password: string;
|
|
6
|
+
rememberMe: boolean;
|
|
7
|
+
captchaId?: string;
|
|
8
|
+
captchaAnswer?: string;
|
|
9
|
+
};
|
|
10
|
+
export type LoginAction<TData = unknown, TError = unknown> = {
|
|
11
|
+
start: (config: {
|
|
12
|
+
payload: {
|
|
13
|
+
email: string;
|
|
14
|
+
password: string;
|
|
15
|
+
rememberMe?: boolean;
|
|
16
|
+
captchaId?: string;
|
|
17
|
+
captchaAnswer?: string;
|
|
18
|
+
};
|
|
19
|
+
onAfterHandle?: (data: TData) => void;
|
|
20
|
+
onErrorHandle?: (error: TError, code?: number | null) => void;
|
|
21
|
+
}) => void;
|
|
22
|
+
state: {
|
|
23
|
+
isPending: boolean;
|
|
24
|
+
data: TData | null;
|
|
25
|
+
error: TError | null;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export type MeAction<TData = unknown, TError = unknown> = {
|
|
29
|
+
start: (config: {
|
|
30
|
+
payload: undefined;
|
|
31
|
+
onAfterHandle?: (data: TData) => void;
|
|
32
|
+
onErrorHandle?: (error: TError, code?: number | null) => void;
|
|
33
|
+
}) => void;
|
|
34
|
+
state: {
|
|
35
|
+
isPending: boolean;
|
|
36
|
+
data: TData | null;
|
|
37
|
+
error: TError | null;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export type LogoutAction<TData = unknown, TError = unknown> = {
|
|
41
|
+
start: (config: {
|
|
42
|
+
payload: undefined;
|
|
43
|
+
onAfterHandle?: (data: TData) => void;
|
|
44
|
+
onErrorHandle?: (error: TError, code?: number | null) => void;
|
|
45
|
+
}) => void;
|
|
46
|
+
state: {
|
|
47
|
+
isPending: boolean;
|
|
48
|
+
data: TData | null;
|
|
49
|
+
error: TError | null;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export type LoginFeatureConfig = {
|
|
53
|
+
redirectUrl?: string;
|
|
54
|
+
captcha?: CaptchaConfig;
|
|
55
|
+
};
|
|
56
|
+
export type LoginPageConfig = {
|
|
57
|
+
variant?: LoginPageVariant;
|
|
58
|
+
logo?: React.ReactNode;
|
|
59
|
+
title?: string;
|
|
60
|
+
subtitle?: string;
|
|
61
|
+
loggedInTitle?: string;
|
|
62
|
+
loggedInSubtitle?: string;
|
|
63
|
+
showRememberMe?: boolean;
|
|
64
|
+
showForgotPassword?: boolean;
|
|
65
|
+
showSignUp?: boolean;
|
|
66
|
+
forgotPasswordHref?: string;
|
|
67
|
+
signUpHref?: string;
|
|
68
|
+
loginAction: LoginAction;
|
|
69
|
+
meAction?: MeAction;
|
|
70
|
+
logoutAction?: LogoutAction;
|
|
71
|
+
captchaGenerateAction?: CaptchaAction<CaptchaChallenge>;
|
|
72
|
+
config?: {
|
|
73
|
+
login?: LoginFeatureConfig;
|
|
74
|
+
};
|
|
75
|
+
onForgotPassword?: () => void;
|
|
76
|
+
onSignUp?: () => void;
|
|
77
|
+
onSuccess?: () => void;
|
|
78
|
+
onLogout?: () => void;
|
|
79
|
+
showBackground?: boolean;
|
|
80
|
+
className?: string;
|
|
81
|
+
};
|
|
82
|
+
export type LoginPageProps = LoginPageConfig;
|
|
83
|
+
export type LoginFormProps = {
|
|
84
|
+
loginAction: LoginAction;
|
|
85
|
+
captchaGenerateAction?: CaptchaAction<CaptchaChallenge>;
|
|
86
|
+
captchaConfig?: CaptchaConfig;
|
|
87
|
+
showRememberMe?: boolean;
|
|
88
|
+
showForgotPassword?: boolean;
|
|
89
|
+
showSignUp?: boolean;
|
|
90
|
+
forgotPasswordHref?: string;
|
|
91
|
+
signUpHref?: string;
|
|
92
|
+
onForgotPassword?: () => void;
|
|
93
|
+
onSignUp?: () => void;
|
|
94
|
+
onSuccess?: () => void;
|
|
95
|
+
};
|
|
96
|
+
export type LoginHeaderProps = {
|
|
97
|
+
logo?: React.ReactNode;
|
|
98
|
+
title?: string;
|
|
99
|
+
subtitle?: string;
|
|
100
|
+
};
|
|
101
|
+
export type LoginState = {
|
|
102
|
+
email: string;
|
|
103
|
+
password: string;
|
|
104
|
+
rememberMe: boolean;
|
|
105
|
+
isLoading: boolean;
|
|
106
|
+
error: string | null;
|
|
107
|
+
captchaId: string | null;
|
|
108
|
+
captchaAnswer: string;
|
|
109
|
+
isAuthenticated: boolean;
|
|
110
|
+
user: {
|
|
111
|
+
id: string;
|
|
112
|
+
email: string;
|
|
113
|
+
} | null;
|
|
114
|
+
};
|
|
115
|
+
export type LoginActions = {
|
|
116
|
+
setEmail: (email: string) => void;
|
|
117
|
+
setPassword: (password: string) => void;
|
|
118
|
+
setRememberMe: (value: boolean) => void;
|
|
119
|
+
setLoading: (value: boolean) => void;
|
|
120
|
+
setError: (error: string | null) => void;
|
|
121
|
+
setCaptchaId: (id: string | null) => void;
|
|
122
|
+
setCaptchaAnswer: (answer: string) => void;
|
|
123
|
+
setAuthenticated: (isAuthenticated: boolean, user?: {
|
|
124
|
+
id: string;
|
|
125
|
+
email: string;
|
|
126
|
+
} | null) => void;
|
|
127
|
+
reset: () => void;
|
|
128
|
+
};
|
|
129
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { MagicLinkVerifyPageConfig } from "../types";
|
|
3
|
+
export declare function MagicLinkVerifyPage({ token, verifyAction, onSuccess, onError, onBackToLogin, backToLoginHref, redirectDelay, className, texts, }: MagicLinkVerifyPageConfig): ReactElement;
|
|
4
|
+
//# sourceMappingURL=MagicLinkVerifyPage.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { MagicLinkVerifyPage } from "./components/MagicLinkVerifyPage";
|
|
2
|
+
export { useMagicLinkVerifyStore } from "./store";
|
|
3
|
+
export { magicLinkVerifyPageTheme } from "./theme";
|
|
4
|
+
export type { MagicLinkVerifyAction, MagicLinkVerifyError, MagicLinkVerifyPageConfig, } from "./types";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type MagicLinkVerifyStep = "verifying" | "success" | "error";
|
|
2
|
+
type MagicLinkVerifyState = {
|
|
3
|
+
[key: string]: unknown;
|
|
4
|
+
step: MagicLinkVerifyStep;
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
|
+
type MagicLinkVerifyMethods = {
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
setStep: (step: MagicLinkVerifyStep) => void;
|
|
10
|
+
setMessage: (message: string) => void;
|
|
11
|
+
reset: () => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const useMagicLinkVerifyStore: () => import("h-state").StoreType<MagicLinkVerifyState, MagicLinkVerifyMethods>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const magicLinkVerifyPageTheme: {
|
|
2
|
+
container: {
|
|
3
|
+
base: string;
|
|
4
|
+
};
|
|
5
|
+
card: {
|
|
6
|
+
base: string;
|
|
7
|
+
background: string;
|
|
8
|
+
border: string;
|
|
9
|
+
shadow: string;
|
|
10
|
+
rounded: string;
|
|
11
|
+
};
|
|
12
|
+
content: {
|
|
13
|
+
wrapper: string;
|
|
14
|
+
};
|
|
15
|
+
states: {
|
|
16
|
+
verifying: {
|
|
17
|
+
spinner: string;
|
|
18
|
+
title: string;
|
|
19
|
+
subtitle: string;
|
|
20
|
+
};
|
|
21
|
+
success: {
|
|
22
|
+
iconWrapper: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
title: string;
|
|
25
|
+
subtitle: string;
|
|
26
|
+
redirectText: string;
|
|
27
|
+
};
|
|
28
|
+
error: {
|
|
29
|
+
iconWrapper: string;
|
|
30
|
+
icon: string;
|
|
31
|
+
title: string;
|
|
32
|
+
subtitle: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
backButton: string;
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { BaseErrorResponse, LoginSuccess } from "../../../src/Client/ApiCaller/types";
|
|
2
|
+
export type MagicLinkVerifyAction = {
|
|
3
|
+
start: (config: {
|
|
4
|
+
payload: {
|
|
5
|
+
token: string;
|
|
6
|
+
};
|
|
7
|
+
onAfterHandle?: (data: LoginSuccess) => void;
|
|
8
|
+
onErrorHandle?: (error: MagicLinkVerifyError, code?: number | null) => void;
|
|
9
|
+
}) => void;
|
|
10
|
+
state: {
|
|
11
|
+
isPending: boolean;
|
|
12
|
+
data: LoginSuccess | null;
|
|
13
|
+
error: MagicLinkVerifyError | null;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type MagicLinkVerifyError = BaseErrorResponse;
|
|
17
|
+
export interface MagicLinkVerifyPageConfig {
|
|
18
|
+
token: string | null;
|
|
19
|
+
verifyAction: MagicLinkVerifyAction;
|
|
20
|
+
onSuccess?: (data: LoginSuccess) => void;
|
|
21
|
+
onError?: () => void;
|
|
22
|
+
onBackToLogin?: () => void;
|
|
23
|
+
backToLoginHref?: string;
|
|
24
|
+
redirectDelay?: number;
|
|
25
|
+
className?: string;
|
|
26
|
+
texts?: {
|
|
27
|
+
verifyingTitle?: string;
|
|
28
|
+
verifyingSubtitle?: string;
|
|
29
|
+
successTitle?: string;
|
|
30
|
+
successSubtitle?: string;
|
|
31
|
+
errorTitle?: string;
|
|
32
|
+
backToLogin?: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { NucleusEntityShowcaseProps } from "../types";
|
|
2
|
+
export declare function NucleusEntityShowcase<T extends Record<string, unknown> = Record<string, unknown>>({ entity, apiActions, title, description, pageSize, searchable, searchFields: _searchFields, filterable, sortable, selectable, showAdd, showEdit, showDelete, showBulkAdd: _showBulkAdd, showBulkDelete, columnConfigs, fieldConfigs, excludeColumns, excludeFields, onRowClick, renderHeader, renderToolbar, className, }: NucleusEntityShowcaseProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=NucleusEntityShowcase.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { FloatingLabelProps } from "../types";
|
|
2
|
+
export declare function FloatingLabel({ label, isFloated, isFocused, hasError, isDisabled, hasLeftIcon, className, }: FloatingLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=FloatingLabel.d.ts.map
|