@solidxai/core-ui 0.1.7-beta.1 → 0.1.7-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/auth/AuthLayout.d.ts.map +1 -1
- package/dist/components/auth/AuthLayout.js +41 -26
- package/dist/components/auth/AuthLayout.js.map +1 -1
- package/dist/components/auth/AuthLayout.tsx +87 -88
- package/dist/components/auth/ForgotPasswordThankYou.d.ts.map +1 -1
- package/dist/components/auth/ForgotPasswordThankYou.js +4 -2
- package/dist/components/auth/ForgotPasswordThankYou.js.map +1 -1
- package/dist/components/auth/ForgotPasswordThankYou.tsx +14 -11
- package/dist/components/auth/GoogleAuthChecking.d.ts.map +1 -1
- package/dist/components/auth/GoogleAuthChecking.js +17 -12
- package/dist/components/auth/GoogleAuthChecking.js.map +1 -1
- package/dist/components/auth/GoogleAuthChecking.tsx +8 -5
- package/dist/components/auth/SolidChangeForcePassword.d.ts.map +1 -1
- package/dist/components/auth/SolidChangeForcePassword.js +3 -5
- package/dist/components/auth/SolidChangeForcePassword.js.map +1 -1
- package/dist/components/auth/SolidChangeForcePassword.tsx +41 -34
- package/dist/components/auth/SolidForgotPassword.d.ts.map +1 -1
- package/dist/components/auth/SolidForgotPassword.js +5 -10
- package/dist/components/auth/SolidForgotPassword.js.map +1 -1
- package/dist/components/auth/SolidForgotPassword.tsx +26 -27
- package/dist/components/auth/SolidInitialLoginOtp.d.ts.map +1 -1
- package/dist/components/auth/SolidInitialLoginOtp.js +25 -25
- package/dist/components/auth/SolidInitialLoginOtp.js.map +1 -1
- package/dist/components/auth/SolidInitialLoginOtp.tsx +55 -43
- package/dist/components/auth/SolidInitiateRegisterOtp.d.ts.map +1 -1
- package/dist/components/auth/SolidInitiateRegisterOtp.js +11 -16
- package/dist/components/auth/SolidInitiateRegisterOtp.js.map +1 -1
- package/dist/components/auth/SolidInitiateRegisterOtp.tsx +48 -42
- package/dist/components/auth/SolidLogin.d.ts.map +1 -1
- package/dist/components/auth/SolidLogin.js +34 -35
- package/dist/components/auth/SolidLogin.js.map +1 -1
- package/dist/components/auth/SolidLogin.tsx +90 -115
- package/dist/components/auth/SolidRegister.d.ts.map +1 -1
- package/dist/components/auth/SolidRegister.js +23 -25
- package/dist/components/auth/SolidRegister.js.map +1 -1
- package/dist/components/auth/SolidRegister.tsx +53 -71
- package/dist/components/auth/SolidResetPassword.d.ts.map +1 -1
- package/dist/components/auth/SolidResetPassword.js +5 -15
- package/dist/components/auth/SolidResetPassword.js.map +1 -1
- package/dist/components/auth/SolidResetPassword.tsx +15 -37
- package/dist/components/common/AutoCompleteField.d.ts.map +1 -1
- package/dist/components/common/AutoCompleteField.js +2 -2
- package/dist/components/common/AutoCompleteField.js.map +1 -1
- package/dist/components/common/AutoCompleteField.tsx +4 -6
- package/dist/components/common/BackButton.js +4 -3
- package/dist/components/common/BackButton.js.map +1 -1
- package/dist/components/common/BackButton.tsx +6 -6
- package/dist/components/common/CancelButton.d.ts.map +1 -1
- package/dist/components/common/CancelButton.js +5 -4
- package/dist/components/common/CancelButton.js.map +1 -1
- package/dist/components/common/CancelButton.tsx +10 -6
- package/dist/components/common/CreateButton.d.ts.map +1 -1
- package/dist/components/common/CreateButton.js +2 -2
- package/dist/components/common/CreateButton.js.map +1 -1
- package/dist/components/common/CreateButton.tsx +8 -2
- package/dist/components/common/DownloadProgressToast.d.ts.map +1 -1
- package/dist/components/common/DownloadProgressToast.js +3 -3
- package/dist/components/common/DownloadProgressToast.js.map +1 -1
- package/dist/components/common/DownloadProgressToast.tsx +21 -18
- package/dist/components/common/DropzonePlaceholder.js +2 -2
- package/dist/components/common/DropzonePlaceholder.js.map +1 -1
- package/dist/components/common/DropzonePlaceholder.tsx +3 -3
- package/dist/components/common/DropzoneUpload.js +2 -2
- package/dist/components/common/DropzoneUpload.js.map +1 -1
- package/dist/components/common/DropzoneUpload.tsx +3 -3
- package/dist/components/common/GeneralSettings.d.ts.map +1 -1
- package/dist/components/common/GeneralSettings.js +70 -106
- package/dist/components/common/GeneralSettings.js.map +1 -1
- package/dist/components/common/GeneralSettings.tsx +168 -327
- package/dist/components/common/GlobalToast.d.ts +1 -1
- package/dist/components/common/GlobalToast.d.ts.map +1 -1
- package/dist/components/common/GlobalToast.js +1 -24
- package/dist/components/common/GlobalToast.js.map +1 -1
- package/dist/components/common/GlobalToast.tsx +1 -25
- package/dist/components/common/MultipleSelectAutoCompleteField.d.ts.map +1 -1
- package/dist/components/common/MultipleSelectAutoCompleteField.js +2 -2
- package/dist/components/common/MultipleSelectAutoCompleteField.js.map +1 -1
- package/dist/components/common/MultipleSelectAutoCompleteField.tsx +3 -5
- package/dist/components/common/NotFound.d.ts.map +1 -1
- package/dist/components/common/NotFound.js +3 -3
- package/dist/components/common/NotFound.js.map +1 -1
- package/dist/components/common/NotFound.tsx +8 -15
- package/dist/components/common/SocialMediaLogin.d.ts.map +1 -1
- package/dist/components/common/SocialMediaLogin.js +13 -4
- package/dist/components/common/SocialMediaLogin.js.map +1 -1
- package/dist/components/common/SocialMediaLogin.tsx +58 -45
- package/dist/components/common/SolidAdmin.d.ts.map +1 -1
- package/dist/components/common/SolidAdmin.js +10 -2
- package/dist/components/common/SolidAdmin.js.map +1 -1
- package/dist/components/common/SolidAdmin.tsx +116 -131
- package/dist/components/common/SolidBreadcrumb.d.ts.map +1 -1
- package/dist/components/common/SolidBreadcrumb.js +10 -25
- package/dist/components/common/SolidBreadcrumb.js.map +1 -1
- package/dist/components/common/SolidBreadcrumb.tsx +32 -26
- package/dist/components/common/SolidErrorPage.d.ts.map +1 -1
- package/dist/components/common/SolidErrorPage.js +4 -6
- package/dist/components/common/SolidErrorPage.js.map +1 -1
- package/dist/components/common/SolidErrorPage.tsx +11 -37
- package/dist/components/common/SolidExport.d.ts +1 -1
- package/dist/components/common/SolidExport.d.ts.map +1 -1
- package/dist/components/common/SolidExport.js +182 -221
- package/dist/components/common/SolidExport.js.map +1 -1
- package/dist/components/common/SolidExport.tsx +401 -453
- package/dist/components/common/SolidFieldTooltip.d.ts +1 -1
- package/dist/components/common/SolidFieldTooltip.d.ts.map +1 -1
- package/dist/components/common/SolidFieldTooltip.js +8 -7
- package/dist/components/common/SolidFieldTooltip.js.map +1 -1
- package/dist/components/common/SolidFieldTooltip.tsx +29 -16
- package/dist/components/common/SolidFormHeader.d.ts +1 -1
- package/dist/components/common/SolidFormHeader.d.ts.map +1 -1
- package/dist/components/common/SolidFormHeader.js +7 -5
- package/dist/components/common/SolidFormHeader.js.map +1 -1
- package/dist/components/common/SolidFormHeader.tsx +11 -6
- package/dist/components/common/SolidFormStepper.d.ts.map +1 -1
- package/dist/components/common/SolidFormStepper.js +7 -22
- package/dist/components/common/SolidFormStepper.js.map +1 -1
- package/dist/components/common/SolidFormStepper.tsx +31 -50
- package/dist/components/common/SolidHeaderRequestStatus.d.ts +6 -0
- package/dist/components/common/SolidHeaderRequestStatus.d.ts.map +1 -0
- package/dist/components/common/SolidHeaderRequestStatus.js +9 -0
- package/dist/components/common/SolidHeaderRequestStatus.js.map +1 -0
- package/dist/components/common/SolidHeaderRequestStatus.tsx +16 -0
- package/dist/components/common/SolidModuleHome.d.ts.map +1 -1
- package/dist/components/common/SolidModuleHome.js +3 -3
- package/dist/components/common/SolidModuleHome.js.map +1 -1
- package/dist/components/common/SolidModuleHome.tsx +13 -5
- package/dist/components/common/SolidNotFoundPage.d.ts.map +1 -1
- package/dist/components/common/SolidNotFoundPage.js +4 -5
- package/dist/components/common/SolidNotFoundPage.js.map +1 -1
- package/dist/components/common/SolidNotFoundPage.tsx +11 -29
- package/dist/components/common/SolidPopupContainer.d.ts.map +1 -1
- package/dist/components/common/SolidPopupContainer.js +11 -6
- package/dist/components/common/SolidPopupContainer.js.map +1 -1
- package/dist/components/common/SolidPopupContainer.tsx +28 -29
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.d.ts +11 -0
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.d.ts.map +1 -0
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.js +60 -0
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.js.map +1 -0
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.tsx +76 -0
- package/dist/components/common/SolidSettings/LlmSettings/AnthropicProviderComponent.d.ts.map +1 -1
- package/dist/components/common/SolidSettings/LlmSettings/AnthropicProviderComponent.js +2 -3
- package/dist/components/common/SolidSettings/LlmSettings/AnthropicProviderComponent.js.map +1 -1
- package/dist/components/common/SolidSettings/LlmSettings/AnthropicProviderComponent.tsx +28 -38
- package/dist/components/common/SolidSettings/LlmSettings/OpenAiProviderComponent.d.ts.map +1 -1
- package/dist/components/common/SolidSettings/LlmSettings/OpenAiProviderComponent.js +2 -3
- package/dist/components/common/SolidSettings/LlmSettings/OpenAiProviderComponent.js.map +1 -1
- package/dist/components/common/SolidSettings/LlmSettings/OpenAiProviderComponent.tsx +28 -38
- package/dist/components/common/SolidSettings/SettingDropzoneActivePlaceholder.js +2 -2
- package/dist/components/common/SolidSettings/SettingDropzoneActivePlaceholder.js.map +1 -1
- package/dist/components/common/SolidSettings/SettingDropzoneActivePlaceholder.tsx +3 -3
- package/dist/components/common/SolidSettings/SettingsImageRemoveButton.js +2 -2
- package/dist/components/common/SolidSettings/SettingsImageRemoveButton.js.map +1 -1
- package/dist/components/common/SolidSettings/SettingsImageRemoveButton.tsx +3 -3
- package/dist/components/common/SolidToastProvider.d.ts +2 -0
- package/dist/components/common/SolidToastProvider.d.ts.map +1 -0
- package/dist/components/common/SolidToastProvider.js +45 -0
- package/dist/components/common/SolidToastProvider.js.map +1 -0
- package/dist/components/common/SolidToastProvider.tsx +39 -0
- package/dist/components/common/error.d.ts.map +1 -1
- package/dist/components/common/error.js +4 -2
- package/dist/components/common/error.js.map +1 -1
- package/dist/components/common/error.tsx +9 -15
- package/dist/components/common/solid-export.css +454 -59
- package/dist/components/core/card/CardGrid.d.ts +3 -0
- package/dist/components/core/card/CardGrid.d.ts.map +1 -0
- package/dist/components/core/card/CardGrid.js +42 -0
- package/dist/components/core/card/CardGrid.js.map +1 -0
- package/dist/components/core/card/CardGrid.tsx +83 -0
- package/dist/components/core/card/CardItem.d.ts +13 -0
- package/dist/components/core/card/CardItem.d.ts.map +1 -0
- package/dist/components/core/card/CardItem.js +21 -0
- package/dist/components/core/card/CardItem.js.map +1 -0
- package/dist/components/core/card/CardItem.tsx +91 -0
- package/dist/components/core/card/CardUserViewLayout.d.ts +2 -0
- package/dist/components/core/card/CardUserViewLayout.d.ts.map +1 -0
- package/dist/components/core/card/CardUserViewLayout.js +94 -0
- package/dist/components/core/card/CardUserViewLayout.js.map +1 -0
- package/dist/components/core/card/CardUserViewLayout.tsx +68 -0
- package/dist/components/core/card/SolidCardView.d.ts +8 -0
- package/dist/components/core/card/SolidCardView.d.ts.map +1 -0
- package/dist/components/core/card/SolidCardView.js +365 -0
- package/dist/components/core/card/SolidCardView.js.map +1 -0
- package/dist/components/core/card/SolidCardView.tsx +528 -0
- package/dist/components/core/card/SolidCardViewConfigure.d.ts +2 -0
- package/dist/components/core/card/SolidCardViewConfigure.d.ts.map +1 -0
- package/dist/components/core/card/SolidCardViewConfigure.js +122 -0
- package/dist/components/core/card/SolidCardViewConfigure.js.map +1 -0
- package/dist/components/core/card/SolidCardViewConfigure.tsx +268 -0
- package/dist/components/core/chatter/SolidChatter.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatter.js +25 -21
- package/dist/components/core/chatter/SolidChatter.js.map +1 -1
- package/dist/components/core/chatter/SolidChatter.tsx +85 -67
- package/dist/components/core/chatter/SolidChatterAuditMessage.js +1 -1
- package/dist/components/core/chatter/SolidChatterAuditMessage.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterAuditMessage.tsx +3 -3
- package/dist/components/core/chatter/SolidChatterCustomMessage.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatterCustomMessage.js +2 -1
- package/dist/components/core/chatter/SolidChatterCustomMessage.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterCustomMessage.tsx +3 -6
- package/dist/components/core/chatter/SolidChatterDateDivider.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterDateDivider.tsx +1 -1
- package/dist/components/core/chatter/SolidChatterHeader.d.ts +1 -0
- package/dist/components/core/chatter/SolidChatterHeader.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatterHeader.js +40 -30
- package/dist/components/core/chatter/SolidChatterHeader.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterHeader.tsx +137 -101
- package/dist/components/core/chatter/SolidChatterMessageBox.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatterMessageBox.js +55 -21
- package/dist/components/core/chatter/SolidChatterMessageBox.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterMessageBox.tsx +124 -91
- package/dist/components/core/chatter/SolidMessageComposer.d.ts +6 -3
- package/dist/components/core/chatter/SolidMessageComposer.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidMessageComposer.js +15 -7
- package/dist/components/core/chatter/SolidMessageComposer.js.map +1 -1
- package/dist/components/core/chatter/SolidMessageComposer.tsx +90 -49
- package/dist/components/core/chatter/chatter.module.css +197 -7
- package/dist/components/core/common/FilterComponent.d.ts +2 -8
- package/dist/components/core/common/FilterComponent.d.ts.map +1 -1
- package/dist/components/core/common/FilterComponent.js +27 -49
- package/dist/components/core/common/FilterComponent.js.map +1 -1
- package/dist/components/core/common/FilterComponent.tsx +69 -127
- package/dist/components/core/common/GroupingComponent.d.ts.map +1 -1
- package/dist/components/core/common/GroupingComponent.js +40 -70
- package/dist/components/core/common/GroupingComponent.js.map +1 -1
- package/dist/components/core/common/GroupingComponent.tsx +174 -251
- package/dist/components/core/common/SolidAccountSettings/SolidAccountSettings.d.ts +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidAccountSettings.d.ts.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidAccountSettings.js +12 -32
- package/dist/components/core/common/SolidAccountSettings/SolidAccountSettings.js.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidAccountSettings.module.css +530 -42
- package/dist/components/core/common/SolidAccountSettings/SolidAccountSettings.tsx +71 -86
- package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.d.ts.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.js +75 -48
- package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.js.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.tsx +242 -172
- package/dist/components/core/common/SolidAccountSettings/SolidNotifications.d.ts.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidNotifications.js +44 -55
- package/dist/components/core/common/SolidAccountSettings/SolidNotifications.js.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidNotifications.tsx +108 -125
- package/dist/components/core/common/SolidAccountSettings/SolidPersonalInfo.d.ts.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidPersonalInfo.js +106 -87
- package/dist/components/core/common/SolidAccountSettings/SolidPersonalInfo.js.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidPersonalInfo.tsx +332 -285
- package/dist/components/core/common/SolidAccountSettings/SolidVersionInfo.d.ts.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidVersionInfo.js +12 -13
- package/dist/components/core/common/SolidAccountSettings/SolidVersionInfo.js.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidVersionInfo.tsx +48 -65
- package/dist/components/core/common/SolidCreateButton.d.ts.map +1 -1
- package/dist/components/core/common/SolidCreateButton.js +5 -3
- package/dist/components/core/common/SolidCreateButton.js.map +1 -1
- package/dist/components/core/common/SolidCreateButton.tsx +20 -14
- package/dist/components/core/common/SolidGenericImport/SolidGenericImport.d.ts.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidGenericImport.js +30 -11
- package/dist/components/core/common/SolidGenericImport/SolidGenericImport.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidGenericImport.tsx +91 -43
- package/dist/components/core/common/SolidGenericImport/SolidImport.module.css +574 -27
- package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.d.ts.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.js +14 -9
- package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.tsx +46 -24
- package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.d.ts.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js +24 -25
- package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.tsx +78 -54
- package/dist/components/core/common/SolidGenericImport/SolidImportStepper.d.ts +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportStepper.d.ts.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportStepper.js +15 -125
- package/dist/components/core/common/SolidGenericImport/SolidImportStepper.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportStepper.tsx +35 -213
- package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.d.ts.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.js +16 -31
- package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.tsx +77 -84
- package/dist/components/core/common/SolidGenericImport/SolidImportTransactionStatus.d.ts.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportTransactionStatus.js +11 -13
- package/dist/components/core/common/SolidGenericImport/SolidImportTransactionStatus.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportTransactionStatus.tsx +87 -52
- package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.js +319 -161
- package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.tsx +654 -287
- package/dist/components/core/common/SolidLayoutViews.d.ts.map +1 -1
- package/dist/components/core/common/SolidLayoutViews.js +5 -8
- package/dist/components/core/common/SolidLayoutViews.js.map +1 -1
- package/dist/components/core/common/SolidLayoutViews.tsx +49 -63
- package/dist/components/core/common/SolidListViewOptions.d.ts.map +1 -1
- package/dist/components/core/common/SolidListViewOptions.js +3 -3
- package/dist/components/core/common/SolidListViewOptions.js.map +1 -1
- package/dist/components/core/common/SolidListViewOptions.tsx +7 -6
- package/dist/components/core/common/SolidSaveCustomFilterForm.d.ts.map +1 -1
- package/dist/components/core/common/SolidSaveCustomFilterForm.js +3 -3
- package/dist/components/core/common/SolidSaveCustomFilterForm.js.map +1 -1
- package/dist/components/core/common/SolidSaveCustomFilterForm.tsx +31 -28
- package/dist/components/core/common/SolidSearchBox.d.ts.map +1 -1
- package/dist/components/core/common/SolidSearchBox.js +2 -2
- package/dist/components/core/common/SolidSearchBox.js.map +1 -1
- package/dist/components/core/common/SolidSearchBox.tsx +3 -4
- package/dist/components/core/dashboard/DashboardFilter.d.ts.map +1 -1
- package/dist/components/core/dashboard/DashboardFilter.js +8 -14
- package/dist/components/core/dashboard/DashboardFilter.js.map +1 -1
- package/dist/components/core/dashboard/DashboardFilter.tsx +26 -34
- package/dist/components/core/dashboard/PrimeDataTableWrapper.js +2 -2
- package/dist/components/core/dashboard/PrimeDataTableWrapper.js.map +1 -1
- package/dist/components/core/dashboard/PrimeDataTableWrapper.tsx +3 -3
- package/dist/components/core/dashboard/SolidDashboard.d.ts.map +1 -1
- package/dist/components/core/dashboard/SolidDashboard.js +13 -125
- package/dist/components/core/dashboard/SolidDashboard.js.map +1 -1
- package/dist/components/core/dashboard/SolidDashboard.module.css +3 -3
- package/dist/components/core/dashboard/SolidDashboard.tsx +41 -187
- package/dist/components/core/dashboard/SolidDashboardBody.d.ts.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardBody.js +14 -14
- package/dist/components/core/dashboard/SolidDashboardBody.js.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardBody.tsx +6 -7
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.js +2 -1
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.js.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.tsx +3 -3
- package/dist/components/core/dashboard/SolidDashboardLoading.d.ts.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardLoading.js +5 -2
- package/dist/components/core/dashboard/SolidDashboardLoading.js.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardLoading.tsx +20 -14
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.js +2 -1
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.js.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.tsx +3 -3
- package/dist/components/core/dashboard/SolidDashboardRenderError.d.ts.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardRenderError.js +2 -1
- package/dist/components/core/dashboard/SolidDashboardRenderError.js.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardRenderError.tsx +3 -4
- package/dist/components/core/dashboard/SolidDashboardVariable.d.ts.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardVariable.js +9 -18
- package/dist/components/core/dashboard/SolidDashboardVariable.js.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardVariable.tsx +40 -37
- package/dist/components/core/dashboard/SolidQuestionRenderer.d.ts.map +1 -1
- package/dist/components/core/dashboard/SolidQuestionRenderer.js +16 -11
- package/dist/components/core/dashboard/SolidQuestionRenderer.js.map +1 -1
- package/dist/components/core/dashboard/SolidQuestionRenderer.tsx +30 -11
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.d.ts.map +1 -1
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.js +4 -14
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.js.map +1 -1
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.tsx +24 -27
- package/dist/components/core/extension/solid-core/CustomIcon/StatusIcon.d.ts +1 -2
- package/dist/components/core/extension/solid-core/CustomIcon/StatusIcon.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/CustomIcon/StatusIcon.js +2 -2
- package/dist/components/core/extension/solid-core/CustomIcon/StatusIcon.js.map +1 -1
- package/dist/components/core/extension/solid-core/CustomIcon/StatusIcon.tsx +10 -12
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.js +2 -2
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.js.map +1 -1
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.tsx +3 -3
- package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.d.ts +3 -0
- package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.js +69 -0
- package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.js.map +1 -0
- package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.tsx +139 -0
- package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.js +3 -6
- package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.js.map +1 -1
- package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.tsx +54 -38
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.js +74 -97
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.js.map +1 -1
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.tsx +178 -188
- package/dist/components/core/extension/solid-core/moduleMetadata/list/DeleteModuleRowAction.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/moduleMetadata/list/DeleteModuleRowAction.js +33 -35
- package/dist/components/core/extension/solid-core/moduleMetadata/list/DeleteModuleRowAction.js.map +1 -1
- package/dist/components/core/extension/solid-core/moduleMetadata/list/DeleteModuleRowAction.tsx +123 -110
- package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.js +70 -106
- package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.js.map +1 -1
- package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.tsx +175 -182
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.d.ts +3 -0
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.js +128 -0
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.js.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.tsx +193 -0
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.js +10 -18
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.js.map +1 -1
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.tsx +32 -53
- package/dist/components/core/field/FieldListViewData.d.ts.map +1 -1
- package/dist/components/core/field/FieldListViewData.js +83 -74
- package/dist/components/core/field/FieldListViewData.js.map +1 -1
- package/dist/components/core/field/FieldListViewData.tsx +120 -168
- package/dist/components/core/filter/SEARCH_FILTER_HIERARCHY.md +582 -0
- package/dist/components/core/filter/SolidBooleanFilterElement.d.ts +1 -1
- package/dist/components/core/filter/SolidBooleanFilterElement.d.ts.map +1 -1
- package/dist/components/core/filter/SolidBooleanFilterElement.js +4 -4
- package/dist/components/core/filter/SolidBooleanFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidBooleanFilterElement.tsx +7 -6
- package/dist/components/core/filter/SolidManyToManyFilterElement.d.ts +1 -1
- package/dist/components/core/filter/SolidManyToManyFilterElement.d.ts.map +1 -1
- package/dist/components/core/filter/SolidManyToManyFilterElement.js +5 -9
- package/dist/components/core/filter/SolidManyToManyFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidManyToManyFilterElement.tsx +8 -7
- package/dist/components/core/filter/SolidManyToOneFilterElement.d.ts +1 -1
- package/dist/components/core/filter/SolidManyToOneFilterElement.d.ts.map +1 -1
- package/dist/components/core/filter/SolidManyToOneFilterElement.js +4 -4
- package/dist/components/core/filter/SolidManyToOneFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidManyToOneFilterElement.tsx +7 -6
- package/dist/components/core/filter/SolidOneToManyFilterElement.d.ts +1 -1
- package/dist/components/core/filter/SolidOneToManyFilterElement.d.ts.map +1 -1
- package/dist/components/core/filter/SolidOneToManyFilterElement.js +5 -9
- package/dist/components/core/filter/SolidOneToManyFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidOneToManyFilterElement.tsx +8 -7
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.d.ts +1 -1
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.d.ts.map +1 -1
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.js +4 -4
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.tsx +7 -6
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.d.ts +1 -1
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.d.ts.map +1 -1
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.js +4 -4
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.tsx +7 -6
- package/dist/components/core/filter/SolidVarInputsFilterElement.d.ts +1 -1
- package/dist/components/core/filter/SolidVarInputsFilterElement.d.ts.map +1 -1
- package/dist/components/core/filter/SolidVarInputsFilterElement.js +109 -38
- package/dist/components/core/filter/SolidVarInputsFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidVarInputsFilterElement.tsx +215 -155
- package/dist/components/core/filter/fields/SolidBooleanField.js +3 -3
- package/dist/components/core/filter/fields/SolidBooleanField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidBooleanField.tsx +6 -6
- package/dist/components/core/filter/fields/SolidDateField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidDateField.js +3 -5
- package/dist/components/core/filter/fields/SolidDateField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidDateField.tsx +6 -8
- package/dist/components/core/filter/fields/SolidDatetimeField.js +3 -3
- package/dist/components/core/filter/fields/SolidDatetimeField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidDatetimeField.tsx +5 -5
- package/dist/components/core/filter/fields/SolidExternalIdField.js +5 -5
- package/dist/components/core/filter/fields/SolidExternalIdField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidExternalIdField.tsx +8 -8
- package/dist/components/core/filter/fields/SolidIdField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidIdField.js +11 -4
- package/dist/components/core/filter/fields/SolidIdField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidIdField.tsx +12 -5
- package/dist/components/core/filter/fields/SolidIntField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidIntField.js +3 -5
- package/dist/components/core/filter/fields/SolidIntField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidIntField.tsx +6 -8
- package/dist/components/core/filter/fields/SolidMediaMultipleField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidMediaMultipleField.js +3 -5
- package/dist/components/core/filter/fields/SolidMediaMultipleField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidMediaMultipleField.tsx +6 -8
- package/dist/components/core/filter/fields/SolidMediaSingleField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidMediaSingleField.js +3 -5
- package/dist/components/core/filter/fields/SolidMediaSingleField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidMediaSingleField.tsx +6 -8
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.js +3 -3
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.tsx +5 -5
- package/dist/components/core/filter/fields/SolidSelectionStaticField.js +3 -3
- package/dist/components/core/filter/fields/SolidSelectionStaticField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidSelectionStaticField.tsx +5 -5
- package/dist/components/core/filter/fields/SolidShortTextField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidShortTextField.js +3 -5
- package/dist/components/core/filter/fields/SolidShortTextField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidShortTextField.tsx +6 -8
- package/dist/components/core/filter/fields/SolidTimeField.js +3 -3
- package/dist/components/core/filter/fields/SolidTimeField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidTimeField.tsx +5 -5
- package/dist/components/core/filter/fields/SolidUuidField.js +5 -5
- package/dist/components/core/filter/fields/SolidUuidField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidUuidField.tsx +8 -8
- package/dist/components/core/filter/fields/relations/SolidRelationManyToManyField.js +2 -2
- package/dist/components/core/filter/fields/relations/SolidRelationManyToManyField.js.map +1 -1
- package/dist/components/core/filter/fields/relations/SolidRelationManyToManyField.tsx +4 -4
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.js +3 -3
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.js.map +1 -1
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.tsx +5 -5
- package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.js +2 -2
- package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.js.map +1 -1
- package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.tsx +4 -4
- package/dist/components/core/filter/filterMatchMode.d.ts +17 -0
- package/dist/components/core/filter/filterMatchMode.d.ts.map +1 -0
- package/dist/components/core/filter/filterMatchMode.js +16 -0
- package/dist/components/core/filter/filterMatchMode.js.map +1 -0
- package/dist/components/core/filter/filterMatchMode.ts +18 -0
- package/dist/components/core/form/SolidFormActionHeader.d.ts +1 -1
- package/dist/components/core/form/SolidFormActionHeader.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormActionHeader.js +60 -54
- package/dist/components/core/form/SolidFormActionHeader.js.map +1 -1
- package/dist/components/core/form/SolidFormActionHeader.tsx +356 -331
- package/dist/components/core/form/SolidFormFieldRender.js +2 -2
- package/dist/components/core/form/SolidFormFieldRender.js.map +1 -1
- package/dist/components/core/form/SolidFormFieldRender.tsx +2 -2
- package/dist/components/core/form/SolidFormFooter.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormFooter.js +2 -2
- package/dist/components/core/form/SolidFormFooter.js.map +1 -1
- package/dist/components/core/form/SolidFormFooter.tsx +26 -18
- package/dist/components/core/form/SolidFormUserViewLayout.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormUserViewLayout.js +3 -6
- package/dist/components/core/form/SolidFormUserViewLayout.js.map +1 -1
- package/dist/components/core/form/SolidFormUserViewLayout.tsx +8 -12
- package/dist/components/core/form/SolidFormView.d.ts +0 -3
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +62 -100
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/SolidFormView.tsx +140 -163
- package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.d.ts +3 -1
- package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.js +22 -16
- package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.js.map +1 -1
- package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.tsx +46 -17
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.d.ts +3 -1
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.js +21 -15
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.js.map +1 -1
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.tsx +39 -17
- package/dist/components/core/form/SolidFormViewShimmerLoading.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormViewShimmerLoading.js +5 -2
- package/dist/components/core/form/SolidFormViewShimmerLoading.js.map +1 -1
- package/dist/components/core/form/SolidFormViewShimmerLoading.tsx +40 -37
- package/dist/components/core/form/fields/SolidBooleanField.d.ts +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.js +80 -69
- package/dist/components/core/form/fields/SolidBooleanField.js.map +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.tsx +116 -145
- package/dist/components/core/form/fields/SolidDateField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDateField.js +22 -49
- package/dist/components/core/form/fields/SolidDateField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDateField.tsx +30 -72
- package/dist/components/core/form/fields/SolidDateTimeField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDateTimeField.js +22 -48
- package/dist/components/core/form/fields/SolidDateTimeField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDateTimeField.tsx +33 -69
- package/dist/components/core/form/fields/SolidDecimalField.d.ts +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.js +17 -17
- package/dist/components/core/form/fields/SolidDecimalField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.tsx +21 -24
- package/dist/components/core/form/fields/SolidEmailField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidEmailField.js +11 -15
- package/dist/components/core/form/fields/SolidEmailField.js.map +1 -1
- package/dist/components/core/form/fields/SolidEmailField.tsx +27 -33
- package/dist/components/core/form/fields/SolidIntegerField.d.ts +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.js +12 -9
- package/dist/components/core/form/fields/SolidIntegerField.js.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.tsx +23 -24
- package/dist/components/core/form/fields/SolidJsonField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidJsonField.js +15 -10
- package/dist/components/core/form/fields/SolidJsonField.js.map +1 -1
- package/dist/components/core/form/fields/SolidJsonField.tsx +21 -20
- package/dist/components/core/form/fields/SolidLongTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.js +28 -44
- package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.tsx +90 -119
- package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.js +33 -41
- package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.tsx +96 -94
- package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.js +10 -23
- package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.tsx +94 -91
- package/dist/components/core/form/fields/SolidPasswordField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidPasswordField.js +29 -32
- package/dist/components/core/form/fields/SolidPasswordField.js.map +1 -1
- package/dist/components/core/form/fields/SolidPasswordField.tsx +89 -88
- package/dist/components/core/form/fields/SolidRichTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidRichTextField.js +6 -8
- package/dist/components/core/form/fields/SolidRichTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidRichTextField.tsx +31 -46
- package/dist/components/core/form/fields/SolidSelectionDynamicField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionDynamicField.js +36 -24
- package/dist/components/core/form/fields/SolidSelectionDynamicField.js.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionDynamicField.tsx +56 -61
- package/dist/components/core/form/fields/SolidSelectionStaticField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionStaticField.js +60 -74
- package/dist/components/core/form/fields/SolidSelectionStaticField.js.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionStaticField.tsx +99 -167
- package/dist/components/core/form/fields/SolidShortTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidShortTextField.js +23 -36
- package/dist/components/core/form/fields/SolidShortTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidShortTextField.tsx +54 -119
- package/dist/components/core/form/fields/SolidTimeField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidTimeField.js +14 -14
- package/dist/components/core/form/fields/SolidTimeField.js.map +1 -1
- package/dist/components/core/form/fields/SolidTimeField.tsx +23 -26
- package/dist/components/core/form/fields/fieldEventUtils.d.ts +10 -0
- package/dist/components/core/form/fields/fieldEventUtils.d.ts.map +1 -0
- package/dist/components/core/form/fields/fieldEventUtils.js +11 -0
- package/dist/components/core/form/fields/fieldEventUtils.js.map +1 -0
- package/dist/components/core/form/fields/fieldEventUtils.ts +24 -0
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +19 -12
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +57 -53
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +37 -25
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +52 -34
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +9 -8
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +15 -18
- package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.js +5 -8
- package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.js.map +1 -1
- package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.tsx +20 -13
- package/dist/components/core/form/fields/solidFields.module.css +192 -1
- package/dist/components/core/form/fields/widgets/SolidAiInteractionMetadataFieldFormWidget.d.ts.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidAiInteractionMetadataFieldFormWidget.js +76 -56
- package/dist/components/core/form/fields/widgets/SolidAiInteractionMetadataFieldFormWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidAiInteractionMetadataFieldFormWidget.tsx +106 -120
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js +8 -8
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.tsx +16 -16
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.d.ts.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.tsx +0 -5
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.d.ts.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.js +9 -8
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.tsx +38 -29
- package/dist/components/core/form/fields/widgets/SolidShortTextFieldAvatarWidget.d.ts.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidShortTextFieldAvatarWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidShortTextFieldAvatarWidget.tsx +1 -6
- package/dist/components/core/kanban/KanbanBoard.d.ts +1 -1
- package/dist/components/core/kanban/KanbanBoard.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanBoard.js +38 -8
- package/dist/components/core/kanban/KanbanBoard.js.map +1 -1
- package/dist/components/core/kanban/KanbanBoard.tsx +55 -9
- package/dist/components/core/kanban/KanbanCard.d.ts +7 -0
- package/dist/components/core/kanban/KanbanCard.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanCard.js +22 -162
- package/dist/components/core/kanban/KanbanCard.js.map +1 -1
- package/dist/components/core/kanban/KanbanCard.tsx +64 -222
- package/dist/components/core/kanban/KanbanColumn.d.ts +3 -2
- package/dist/components/core/kanban/KanbanColumn.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanColumn.js +8 -14
- package/dist/components/core/kanban/KanbanColumn.js.map +1 -1
- package/dist/components/core/kanban/KanbanColumn.tsx +59 -80
- package/dist/components/core/kanban/KanbanUserViewLayout.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanUserViewLayout.js +4 -7
- package/dist/components/core/kanban/KanbanUserViewLayout.js.map +1 -1
- package/dist/components/core/kanban/KanbanUserViewLayout.tsx +15 -16
- package/dist/components/core/kanban/SolidKanbanView.d.ts +0 -2
- package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.js +121 -74
- package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.tsx +221 -139
- package/dist/components/core/kanban/SolidKanbanViewConfigure.d.ts +1 -1
- package/dist/components/core/kanban/SolidKanbanViewConfigure.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanViewConfigure.js +111 -52
- package/dist/components/core/kanban/SolidKanbanViewConfigure.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanViewConfigure.tsx +239 -122
- package/dist/components/core/list/ListViewRowActionPopup.d.ts.map +1 -1
- package/dist/components/core/list/ListViewRowActionPopup.js +3 -2
- package/dist/components/core/list/ListViewRowActionPopup.js.map +1 -1
- package/dist/components/core/list/ListViewRowActionPopup.tsx +8 -5
- package/dist/components/core/list/PLAN.md +22 -2
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.d.ts +1 -1
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.d.ts.map +1 -1
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.js +3 -8
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.js.map +1 -1
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.tsx +19 -24
- package/dist/components/core/list/SolidDataTable.d.ts.map +1 -1
- package/dist/components/core/list/SolidDataTable.js +7 -4
- package/dist/components/core/list/SolidDataTable.js.map +1 -1
- package/dist/components/core/list/SolidDataTable.tsx +8 -5
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.d.ts +1 -1
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.d.ts.map +1 -1
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.js +51 -30
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.js.map +1 -1
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.tsx +122 -90
- package/dist/components/core/list/SolidListView.d.ts +5 -12
- package/dist/components/core/list/SolidListView.d.ts.map +1 -1
- package/dist/components/core/list/SolidListView.js +363 -426
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/components/core/list/SolidListView.tsx +713 -899
- package/dist/components/core/list/SolidListViewConfigure.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewConfigure.js +50 -61
- package/dist/components/core/list/SolidListViewConfigure.js.map +1 -1
- package/dist/components/core/list/SolidListViewConfigure.tsx +237 -215
- package/dist/components/core/list/SolidListViewHeaderButton.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewHeaderButton.js +6 -5
- package/dist/components/core/list/SolidListViewHeaderButton.js.map +1 -1
- package/dist/components/core/list/SolidListViewHeaderButton.tsx +9 -7
- package/dist/components/core/list/SolidListViewHeaderContextMenuButton.d.ts +1 -1
- package/dist/components/core/list/SolidListViewHeaderContextMenuButton.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewHeaderContextMenuButton.js +12 -7
- package/dist/components/core/list/SolidListViewHeaderContextMenuButton.js.map +1 -1
- package/dist/components/core/list/SolidListViewHeaderContextMenuButton.tsx +15 -13
- package/dist/components/core/list/SolidListViewRowActionMenuItem.d.ts +2 -0
- package/dist/components/core/list/SolidListViewRowActionMenuItem.d.ts.map +1 -0
- package/dist/components/core/list/SolidListViewRowActionMenuItem.js +42 -0
- package/dist/components/core/list/SolidListViewRowActionMenuItem.js.map +1 -0
- package/dist/components/core/list/SolidListViewRowActionMenuItem.tsx +43 -0
- package/dist/components/core/list/SolidListViewRowActionsMenu.d.ts +2 -0
- package/dist/components/core/list/SolidListViewRowActionsMenu.d.ts.map +1 -0
- package/dist/components/core/list/SolidListViewRowActionsMenu.js +32 -0
- package/dist/components/core/list/SolidListViewRowActionsMenu.js.map +1 -0
- package/dist/components/core/list/SolidListViewRowActionsMenu.tsx +106 -0
- package/dist/components/core/list/SolidListViewShimmerLoading.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewShimmerLoading.js +3 -4
- package/dist/components/core/list/SolidListViewShimmerLoading.js.map +1 -1
- package/dist/components/core/list/SolidListViewShimmerLoading.tsx +4 -72
- package/dist/components/core/list/SolidListViewWrapper.module.css +82 -41
- package/dist/components/core/list/SolidManyToOneFilterElement.d.ts.map +1 -1
- package/dist/components/core/list/SolidManyToOneFilterElement.js +2 -2
- package/dist/components/core/list/SolidManyToOneFilterElement.js.map +1 -1
- package/dist/components/core/list/SolidManyToOneFilterElement.tsx +5 -5
- package/dist/components/core/list/SolidSelectionDynamicFilterElement.d.ts.map +1 -1
- package/dist/components/core/list/SolidSelectionDynamicFilterElement.js +2 -2
- package/dist/components/core/list/SolidSelectionDynamicFilterElement.js.map +1 -1
- package/dist/components/core/list/SolidSelectionDynamicFilterElement.tsx +5 -4
- package/dist/components/core/list/SolidSelectionStaticFilterElement.d.ts.map +1 -1
- package/dist/components/core/list/SolidSelectionStaticFilterElement.js +2 -2
- package/dist/components/core/list/SolidSelectionStaticFilterElement.js.map +1 -1
- package/dist/components/core/list/SolidSelectionStaticFilterElement.tsx +5 -4
- package/dist/components/core/list/SolidTableRowCell.d.ts.map +1 -1
- package/dist/components/core/list/SolidTableRowCell.js +4 -3
- package/dist/components/core/list/SolidTableRowCell.js.map +1 -1
- package/dist/components/core/list/SolidTableRowCell.tsx +11 -8
- package/dist/components/core/list/columns/SolidBooleanColumn.js +2 -2
- package/dist/components/core/list/columns/SolidBooleanColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidBooleanColumn.tsx +2 -2
- package/dist/components/core/list/columns/SolidDateColumn.js +1 -1
- package/dist/components/core/list/columns/SolidDateColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidDateColumn.tsx +1 -1
- package/dist/components/core/list/columns/SolidDatetimeColumn.js +1 -1
- package/dist/components/core/list/columns/SolidDatetimeColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidDatetimeColumn.tsx +1 -1
- package/dist/components/core/list/columns/SolidExternalIdColumn.js +1 -1
- package/dist/components/core/list/columns/SolidExternalIdColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidExternalIdColumn.tsx +1 -1
- package/dist/components/core/list/columns/SolidIdColumn.js +2 -2
- package/dist/components/core/list/columns/SolidIdColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidIdColumn.tsx +3 -3
- package/dist/components/core/list/columns/SolidIntColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidIntColumn.js +2 -2
- package/dist/components/core/list/columns/SolidIntColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidIntColumn.tsx +4 -2
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js +7 -10
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.tsx +13 -18
- package/dist/components/core/list/columns/SolidMediaSingleColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js +4 -4
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.tsx +4 -4
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js +1 -1
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.tsx +1 -1
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.js +1 -1
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.tsx +1 -1
- package/dist/components/core/list/columns/SolidShortTextColumn.js +1 -1
- package/dist/components/core/list/columns/SolidShortTextColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidShortTextColumn.tsx +1 -1
- package/dist/components/core/list/columns/SolidTimeColumn.js +1 -1
- package/dist/components/core/list/columns/SolidTimeColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidTimeColumn.tsx +1 -1
- package/dist/components/core/list/columns/SolidUuidColumn.js +1 -1
- package/dist/components/core/list/columns/SolidUuidColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidUuidColumn.tsx +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToManyColumn.js +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToManyColumn.js.map +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToManyColumn.tsx +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js +5 -7
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js.map +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +9 -11
- package/dist/components/core/list/columns/relations/SolidRelationOneToManyColumn.js +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationOneToManyColumn.js.map +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationOneToManyColumn.tsx +1 -1
- package/dist/components/core/locales/SolidChatterLocaleTabView.d.ts.map +1 -1
- package/dist/components/core/locales/SolidChatterLocaleTabView.js +50 -6
- package/dist/components/core/locales/SolidChatterLocaleTabView.js.map +1 -1
- package/dist/components/core/locales/SolidChatterLocaleTabView.tsx +78 -43
- package/dist/components/core/locales/SolidLocale.d.ts.map +1 -1
- package/dist/components/core/locales/SolidLocale.js +4 -8
- package/dist/components/core/locales/SolidLocale.js.map +1 -1
- package/dist/components/core/locales/SolidLocale.tsx +5 -11
- package/dist/components/core/locales/solid-locale.css +44 -23
- package/dist/components/core/model/CreateModel.d.ts.map +1 -1
- package/dist/components/core/model/CreateModel.js +58 -63
- package/dist/components/core/model/CreateModel.js.map +1 -1
- package/dist/components/core/model/CreateModel.tsx +178 -212
- package/dist/components/core/model/FieldMetaData.d.ts.map +1 -1
- package/dist/components/core/model/FieldMetaData.js +29 -40
- package/dist/components/core/model/FieldMetaData.js.map +1 -1
- package/dist/components/core/model/FieldMetaData.tsx +128 -100
- package/dist/components/core/model/FieldMetaDataForm.d.ts.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.js +521 -270
- package/dist/components/core/model/FieldMetaDataForm.js.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.tsx +1142 -956
- package/dist/components/core/model/FieldSelector.d.ts +5 -1
- package/dist/components/core/model/FieldSelector.d.ts.map +1 -1
- package/dist/components/core/model/FieldSelector.js +52 -30
- package/dist/components/core/model/FieldSelector.js.map +1 -1
- package/dist/components/core/model/FieldSelector.tsx +119 -57
- package/dist/components/core/model/ModelListViewData.d.ts.map +1 -1
- package/dist/components/core/model/ModelListViewData.js +110 -91
- package/dist/components/core/model/ModelListViewData.js.map +1 -1
- package/dist/components/core/model/ModelListViewData.tsx +172 -220
- package/dist/components/core/model/ModelMetaData.d.ts.map +1 -1
- package/dist/components/core/model/ModelMetaData.js +105 -61
- package/dist/components/core/model/ModelMetaData.js.map +1 -1
- package/dist/components/core/model/ModelMetaData.tsx +277 -457
- package/dist/components/core/module/CreateModule.d.ts +1 -1
- package/dist/components/core/module/CreateModule.d.ts.map +1 -1
- package/dist/components/core/module/CreateModule.js +33 -54
- package/dist/components/core/module/CreateModule.js.map +1 -1
- package/dist/components/core/module/CreateModule.tsx +273 -299
- package/dist/components/core/module/ModuleListViewData.d.ts.map +1 -1
- package/dist/components/core/module/ModuleListViewData.js +104 -135
- package/dist/components/core/module/ModuleListViewData.js.map +1 -1
- package/dist/components/core/module/ModuleListViewData.tsx +172 -278
- package/dist/components/core/solid-ai/SolidAiChat.d.ts.map +1 -1
- package/dist/components/core/solid-ai/SolidAiChat.js +25 -20
- package/dist/components/core/solid-ai/SolidAiChat.js.map +1 -1
- package/dist/components/core/solid-ai/SolidAiChat.tsx +80 -31
- package/dist/components/core/solid-ai/SolidAiMainWrapper.d.ts.map +1 -1
- package/dist/components/core/solid-ai/SolidAiMainWrapper.js +5 -2
- package/dist/components/core/solid-ai/SolidAiMainWrapper.js.map +1 -1
- package/dist/components/core/solid-ai/SolidAiMainWrapper.tsx +7 -2
- package/dist/components/core/tree/SolidTreeTable.d.ts +73 -0
- package/dist/components/core/tree/SolidTreeTable.d.ts.map +1 -0
- package/dist/components/core/tree/SolidTreeTable.js +275 -0
- package/dist/components/core/tree/SolidTreeTable.js.map +1 -0
- package/dist/components/core/tree/SolidTreeTable.tsx +522 -0
- package/dist/components/core/tree/SolidTreeView.d.ts.map +1 -1
- package/dist/components/core/tree/SolidTreeView.js +266 -244
- package/dist/components/core/tree/SolidTreeView.js.map +1 -1
- package/dist/components/core/tree/SolidTreeView.tsx +606 -625
- package/dist/components/core/users/CreateUser.d.ts.map +1 -1
- package/dist/components/core/users/CreateUser.js +81 -143
- package/dist/components/core/users/CreateUser.js.map +1 -1
- package/dist/components/core/users/CreateUser.tsx +217 -317
- package/dist/components/core/users/CreateUserRole.d.ts.map +1 -1
- package/dist/components/core/users/CreateUserRole.js +14 -21
- package/dist/components/core/users/CreateUserRole.js.map +1 -1
- package/dist/components/core/users/CreateUserRole.tsx +16 -33
- package/dist/components/core/users/UserListView.d.ts.map +1 -1
- package/dist/components/core/users/UserListView.js +95 -92
- package/dist/components/core/users/UserListView.js.map +1 -1
- package/dist/components/core/users/UserListView.tsx +286 -330
- package/dist/components/layout/AdminLayout.d.ts.map +1 -1
- package/dist/components/layout/AdminLayout.js +4 -12
- package/dist/components/layout/AdminLayout.js.map +1 -1
- package/dist/components/layout/AdminLayout.tsx +22 -31
- package/dist/components/layout/AppConfig.d.ts +2 -2
- package/dist/components/layout/AppConfig.d.ts.map +1 -1
- package/dist/components/layout/AppConfig.js +9 -47
- package/dist/components/layout/AppConfig.js.map +1 -1
- package/dist/components/layout/AppConfig.tsx +10 -98
- package/dist/components/layout/AppSidebar.d.ts.map +1 -1
- package/dist/components/layout/AppSidebar.js +149 -86
- package/dist/components/layout/AppSidebar.js.map +1 -1
- package/dist/components/layout/AppSidebar.tsx +281 -164
- package/dist/components/layout/DashboardHeader.d.ts.map +1 -1
- package/dist/components/layout/DashboardHeader.js +11 -17
- package/dist/components/layout/DashboardHeader.js.map +1 -1
- package/dist/components/layout/DashboardHeader.tsx +40 -35
- package/dist/components/layout/FilterMenu.d.ts.map +1 -1
- package/dist/components/layout/FilterMenu.js +4 -7
- package/dist/components/layout/FilterMenu.js.map +1 -1
- package/dist/components/layout/FilterMenu.tsx +22 -20
- package/dist/components/layout/GlobalSearch.d.ts.map +1 -1
- package/dist/components/layout/GlobalSearch.js +2 -6
- package/dist/components/layout/GlobalSearch.js.map +1 -1
- package/dist/components/layout/GlobalSearch.tsx +7 -13
- package/dist/components/layout/Layout.d.ts.map +1 -1
- package/dist/components/layout/Layout.js +11 -130
- package/dist/components/layout/Layout.js.map +1 -1
- package/dist/components/layout/Layout.tsx +18 -161
- package/dist/components/layout/ListingHeader.d.ts.map +1 -1
- package/dist/components/layout/ListingHeader.js +4 -8
- package/dist/components/layout/ListingHeader.js.map +1 -1
- package/dist/components/layout/ListingHeader.tsx +3 -9
- package/dist/components/layout/SolidAiStudioLayout.d.ts.map +1 -1
- package/dist/components/layout/SolidAiStudioLayout.js +14 -63
- package/dist/components/layout/SolidAiStudioLayout.js.map +1 -1
- package/dist/components/layout/SolidAiStudioLayout.tsx +75 -187
- package/dist/components/layout/UserSidebar.d.ts.map +1 -1
- package/dist/components/layout/UserSidebar.js +5 -4
- package/dist/components/layout/UserSidebar.js.map +1 -1
- package/dist/components/layout/UserSidebar.tsx +6 -5
- package/dist/components/layout/context/layoutcontext.d.ts.map +1 -1
- package/dist/components/layout/context/layoutcontext.js +31 -6
- package/dist/components/layout/context/layoutcontext.js.map +1 -1
- package/dist/components/layout/context/layoutcontext.tsx +31 -2
- package/dist/components/layout/navbar-one.d.ts.map +1 -1
- package/dist/components/layout/navbar-one.js +3 -8
- package/dist/components/layout/navbar-one.js.map +1 -1
- package/dist/components/layout/navbar-one.tsx +24 -15
- package/dist/components/layout/navbar-two-menu.d.ts.map +1 -1
- package/dist/components/layout/navbar-two-menu.js +16 -2
- package/dist/components/layout/navbar-two-menu.js.map +1 -1
- package/dist/components/layout/navbar-two-menu.tsx +50 -13
- package/dist/components/layout/user-profile-menu.d.ts.map +1 -1
- package/dist/components/layout/user-profile-menu.js +74 -59
- package/dist/components/layout/user-profile-menu.js.map +1 -1
- package/dist/components/layout/user-profile-menu.tsx +206 -143
- package/dist/components/shad-cn-ui/SolidAccordion.d.ts +7 -0
- package/dist/components/shad-cn-ui/SolidAccordion.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidAccordion.js +47 -0
- package/dist/components/shad-cn-ui/SolidAccordion.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidAccordion.tsx +41 -0
- package/dist/components/shad-cn-ui/SolidAutocomplete.d.ts +12 -1
- package/dist/components/shad-cn-ui/SolidAutocomplete.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidAutocomplete.js +31 -15
- package/dist/components/shad-cn-ui/SolidAutocomplete.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidAutocomplete.tsx +60 -24
- package/dist/components/shad-cn-ui/SolidButton.d.ts +10 -2
- package/dist/components/shad-cn-ui/SolidButton.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidButton.js +18 -2
- package/dist/components/shad-cn-ui/SolidButton.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidButton.tsx +54 -8
- package/dist/components/shad-cn-ui/SolidCheckbox.d.ts +7 -0
- package/dist/components/shad-cn-ui/SolidCheckbox.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidCheckbox.js +35 -0
- package/dist/components/shad-cn-ui/SolidCheckbox.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidCheckbox.tsx +19 -0
- package/dist/components/shad-cn-ui/SolidCodeEditor.d.ts +12 -0
- package/dist/components/shad-cn-ui/SolidCodeEditor.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidCodeEditor.js +13 -0
- package/dist/components/shad-cn-ui/SolidCodeEditor.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidCodeEditor.tsx +38 -0
- package/dist/components/shad-cn-ui/SolidConfirmDialog.d.ts +14 -0
- package/dist/components/shad-cn-ui/SolidConfirmDialog.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidConfirmDialog.js +8 -0
- package/dist/components/shad-cn-ui/SolidConfirmDialog.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidConfirmDialog.tsx +50 -0
- package/dist/components/shad-cn-ui/SolidDatePicker.d.ts +10 -0
- package/dist/components/shad-cn-ui/SolidDatePicker.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidDatePicker.js +66 -0
- package/dist/components/shad-cn-ui/SolidDatePicker.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidDatePicker.tsx +72 -0
- package/dist/components/shad-cn-ui/SolidDialog.d.ts +40 -0
- package/dist/components/shad-cn-ui/SolidDialog.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidDialog.js +61 -0
- package/dist/components/shad-cn-ui/SolidDialog.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidDialog.tsx +138 -0
- package/dist/components/shad-cn-ui/SolidDivider.d.ts +4 -0
- package/dist/components/shad-cn-ui/SolidDivider.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidDivider.js +6 -0
- package/dist/components/shad-cn-ui/SolidDivider.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidDivider.tsx +5 -0
- package/dist/components/shad-cn-ui/SolidDropdownMenu.d.ts +15 -0
- package/dist/components/shad-cn-ui/SolidDropdownMenu.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidDropdownMenu.js +70 -0
- package/dist/components/shad-cn-ui/SolidDropdownMenu.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidDropdownMenu.tsx +124 -0
- package/dist/components/shad-cn-ui/SolidIcon.d.ts +92 -0
- package/dist/components/shad-cn-ui/SolidIcon.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidIcon.js +149 -0
- package/dist/components/shad-cn-ui/SolidIcon.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidIcon.tsx +223 -0
- package/dist/components/shad-cn-ui/SolidInput.d.ts +1 -1
- package/dist/components/shad-cn-ui/SolidInput.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidInput.js +4 -3
- package/dist/components/shad-cn-ui/SolidInput.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidInput.tsx +6 -4
- package/dist/components/shad-cn-ui/SolidLightbox.d.ts +19 -0
- package/dist/components/shad-cn-ui/SolidLightbox.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidLightbox.js +160 -0
- package/dist/components/shad-cn-ui/SolidLightbox.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidLightbox.tsx +281 -0
- package/dist/components/shad-cn-ui/SolidMessage.d.ts +10 -0
- package/dist/components/shad-cn-ui/SolidMessage.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidMessage.js +13 -0
- package/dist/components/shad-cn-ui/SolidMessage.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidMessage.tsx +20 -0
- package/dist/components/shad-cn-ui/SolidOtpInput.d.ts +12 -0
- package/dist/components/shad-cn-ui/SolidOtpInput.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidOtpInput.js +143 -0
- package/dist/components/shad-cn-ui/SolidOtpInput.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidOtpInput.tsx +149 -0
- package/dist/components/shad-cn-ui/SolidPanel.d.ts +11 -0
- package/dist/components/shad-cn-ui/SolidPanel.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidPanel.js +17 -0
- package/dist/components/shad-cn-ui/SolidPanel.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidPanel.tsx +36 -0
- package/dist/components/shad-cn-ui/SolidPasswordInput.d.ts +7 -0
- package/dist/components/shad-cn-ui/SolidPasswordInput.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidPasswordInput.js +39 -0
- package/dist/components/shad-cn-ui/SolidPasswordInput.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidPasswordInput.tsx +31 -0
- package/dist/components/shad-cn-ui/SolidPopover.d.ts +19 -0
- package/dist/components/shad-cn-ui/SolidPopover.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidPopover.js +110 -0
- package/dist/components/shad-cn-ui/SolidPopover.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidPopover.tsx +149 -0
- package/dist/components/shad-cn-ui/SolidProgressBar.d.ts +10 -0
- package/dist/components/shad-cn-ui/SolidProgressBar.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidProgressBar.js +14 -0
- package/dist/components/shad-cn-ui/SolidProgressBar.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidProgressBar.tsx +29 -0
- package/dist/components/shad-cn-ui/SolidRadioGroup.d.ts +17 -0
- package/dist/components/shad-cn-ui/SolidRadioGroup.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidRadioGroup.js +13 -0
- package/dist/components/shad-cn-ui/SolidRadioGroup.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidRadioGroup.tsx +50 -0
- package/dist/components/shad-cn-ui/SolidRichTextEditor.d.ts +17 -0
- package/dist/components/shad-cn-ui/SolidRichTextEditor.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidRichTextEditor.js +109 -0
- package/dist/components/shad-cn-ui/SolidRichTextEditor.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidRichTextEditor.tsx +146 -0
- package/dist/components/shad-cn-ui/SolidSegmentedControl.d.ts +17 -0
- package/dist/components/shad-cn-ui/SolidSegmentedControl.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidSegmentedControl.js +34 -0
- package/dist/components/shad-cn-ui/SolidSegmentedControl.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidSegmentedControl.tsx +60 -0
- package/dist/components/shad-cn-ui/SolidSelect.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidSelect.js +2 -1
- package/dist/components/shad-cn-ui/SolidSelect.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidSelect.tsx +2 -2
- package/dist/components/shad-cn-ui/SolidSlider.d.ts +12 -0
- package/dist/components/shad-cn-ui/SolidSlider.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidSlider.js +13 -0
- package/dist/components/shad-cn-ui/SolidSlider.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidSlider.tsx +30 -0
- package/dist/components/shad-cn-ui/SolidSpinner.d.ts +8 -0
- package/dist/components/shad-cn-ui/SolidSpinner.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidSpinner.js +14 -0
- package/dist/components/shad-cn-ui/SolidSpinner.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidSpinner.tsx +21 -0
- package/dist/components/shad-cn-ui/SolidSwitch.d.ts +10 -0
- package/dist/components/shad-cn-ui/SolidSwitch.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidSwitch.js +18 -0
- package/dist/components/shad-cn-ui/SolidSwitch.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidSwitch.tsx +34 -0
- package/dist/components/shad-cn-ui/SolidTabs.d.ts +3 -1
- package/dist/components/shad-cn-ui/SolidTabs.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidTabs.js +4 -4
- package/dist/components/shad-cn-ui/SolidTabs.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidTabs.tsx +16 -4
- package/dist/components/shad-cn-ui/SolidTag.d.ts +9 -0
- package/dist/components/shad-cn-ui/SolidTag.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidTag.js +13 -0
- package/dist/components/shad-cn-ui/SolidTag.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidTag.tsx +15 -0
- package/dist/components/shad-cn-ui/SolidTextarea.d.ts +5 -0
- package/dist/components/shad-cn-ui/SolidTextarea.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidTextarea.js +35 -0
- package/dist/components/shad-cn-ui/SolidTextarea.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidTextarea.tsx +11 -0
- package/dist/components/shad-cn-ui/SolidToast.d.ts +13 -0
- package/dist/components/shad-cn-ui/SolidToast.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidToast.js +34 -0
- package/dist/components/shad-cn-ui/SolidToast.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidToast.tsx +55 -0
- package/dist/components/shad-cn-ui/SolidTooltip.d.ts +22 -0
- package/dist/components/shad-cn-ui/SolidTooltip.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidTooltip.js +22 -0
- package/dist/components/shad-cn-ui/SolidTooltip.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidTooltip.tsx +65 -0
- package/dist/components/shad-cn-ui/index.d.ts +26 -0
- package/dist/components/shad-cn-ui/index.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/index.js +26 -0
- package/dist/components/shad-cn-ui/index.js.map +1 -1
- package/dist/components/shad-cn-ui/index.ts +48 -0
- package/dist/helpers/mediaType.d.ts +3 -0
- package/dist/helpers/mediaType.d.ts.map +1 -0
- package/dist/helpers/mediaType.js +19 -0
- package/dist/helpers/mediaType.js.map +1 -0
- package/dist/helpers/mediaType.ts +23 -0
- package/dist/helpers/registry.d.ts +3 -4
- package/dist/helpers/registry.d.ts.map +1 -1
- package/dist/helpers/registry.js +97 -90
- package/dist/helpers/registry.js.map +1 -1
- package/dist/helpers/registry.ts +107 -92
- package/dist/helpers/routePaths.js +1 -1
- package/dist/helpers/routePaths.js.map +1 -1
- package/dist/helpers/routePaths.ts +1 -1
- package/dist/hooks/useSolidAutocompleteField.d.ts +31 -0
- package/dist/hooks/useSolidAutocompleteField.d.ts.map +1 -0
- package/dist/hooks/useSolidAutocompleteField.js +116 -0
- package/dist/hooks/useSolidAutocompleteField.js.map +1 -0
- package/dist/hooks/useSolidAutocompleteField.ts +90 -0
- package/dist/index.d.ts +12 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/index.ts +13 -5
- package/dist/redux/store/defaultStoreConfig.d.ts +35 -34
- package/dist/redux/store/defaultStoreConfig.d.ts.map +1 -1
- package/dist/redux/store/defaultStoreConfig.js +29 -2
- package/dist/redux/store/defaultStoreConfig.js.map +1 -1
- package/dist/redux/store/defaultStoreConfig.ts +30 -32
- package/dist/resources/globals.css +2400 -538
- package/dist/resources/images/SolidXLogo-dark.svg +29 -0
- package/dist/resources/images/SolidXLogo-light.svg +29 -0
- package/dist/resources/shadcn-base.css +2688 -839
- package/dist/resources/solid-responsive.css +36 -80
- package/dist/resources/themes/solid-dark-purple/theme.css +14 -19
- package/dist/resources/themes/solid-light-purple/theme.css +14 -19
- package/dist/routes/AppEventListener.d.ts +1 -1
- package/dist/routes/AppEventListener.d.ts.map +1 -1
- package/dist/routes/AppEventListener.js +3 -1
- package/dist/routes/AppEventListener.js.map +1 -1
- package/dist/routes/AppEventListener.tsx +7 -1
- package/dist/routes/pages/admin/core/CardPage.d.ts +2 -0
- package/dist/routes/pages/admin/core/CardPage.d.ts.map +1 -0
- package/dist/routes/pages/admin/core/CardPage.js +22 -0
- package/dist/routes/pages/admin/core/CardPage.js.map +1 -0
- package/dist/routes/pages/admin/core/CardPage.tsx +10 -0
- package/dist/routes/pages/auth/SsoPage.d.ts.map +1 -1
- package/dist/routes/pages/auth/SsoPage.js +4 -5
- package/dist/routes/pages/auth/SsoPage.js.map +1 -1
- package/dist/routes/pages/auth/SsoPage.tsx +7 -15
- package/dist/routes/pages/studio/StudioLandingPage.js +3 -3
- package/dist/routes/pages/studio/StudioLandingPage.js.map +1 -1
- package/dist/routes/pages/studio/StudioLandingPage.tsx +5 -5
- package/dist/routes/solidRoutes.d.ts.map +1 -1
- package/dist/routes/solidRoutes.js +16 -0
- package/dist/routes/solidRoutes.js.map +1 -1
- package/dist/routes/solidRoutes.tsx +17 -0
- package/dist/routes/types.d.ts +1 -1
- package/dist/routes/types.d.ts.map +1 -1
- package/dist/routes/types.js.map +1 -1
- package/dist/routes/types.ts +5 -1
- package/dist/styles.d.ts +1 -0
- package/dist/styles.d.ts.map +1 -1
- package/dist/styles.js +1 -0
- package/dist/styles.js.map +1 -1
- package/dist/styles.ts +1 -0
- package/dist/types/extension-registry.d.ts +28 -0
- package/dist/types/extension-registry.d.ts.map +1 -0
- package/dist/types/extension-registry.js +26 -0
- package/dist/types/extension-registry.js.map +1 -0
- package/dist/types/extension-registry.ts +32 -0
- package/dist/types/external.d.ts +11 -0
- package/dist/types/layout.d.ts +4 -2
- package/dist/types/solid-core.d.ts +29 -27
- package/package.json +10 -4
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import React from "react";
|
|
25
|
+
import { AlertCircle, AlertTriangle, ArrowDownWideNarrow, ArrowLeft, ArrowRight, ArrowUpWideNarrow, BarChart3, Bell, Bot, Calendar, CalendarMinus, CalendarPlus, Check, CheckCircle2, ChevronsLeft, ChevronsRight, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, CircleHelp, Code, Cog, Columns3, Copy, Download, DownloadCloud, ExternalLink, Eye, EyeOff, File, FilePenLine, FileSpreadsheet, FileText, FileType, Filter, FilterX, History, Image as ImageIcon, Inbox, Info, LayoutGrid, Loader2, Lock, Mail, Menu, MessageSquare, Minus, MoreHorizontal, MoreVertical, Pencil, Plus, Power, RefreshCcw, Save, Search, Send, SlidersHorizontal, Star, Terminal, Trash2, Upload, UploadCloud, User, Users, Wifi, X, XCircle } from "lucide-react";
|
|
26
|
+
var ICON_MAP = {
|
|
27
|
+
"si-android": Bot,
|
|
28
|
+
"si-angle-double-left": ChevronsLeft,
|
|
29
|
+
"si-angle-double-right": ChevronsRight,
|
|
30
|
+
"si-angle-down": ChevronDown,
|
|
31
|
+
"si-angle-left": ChevronLeft,
|
|
32
|
+
"si-angle-right": ChevronRight,
|
|
33
|
+
"si-angle-up": ChevronUp,
|
|
34
|
+
"si-arrow-left": ArrowLeft,
|
|
35
|
+
"si-arrow-right": ArrowRight,
|
|
36
|
+
"si-bars": Menu,
|
|
37
|
+
"si-bell": Bell,
|
|
38
|
+
"si-calendar": Calendar,
|
|
39
|
+
"si-calendar-minus": CalendarMinus,
|
|
40
|
+
"si-calendar-plus": CalendarPlus,
|
|
41
|
+
"si-chart-bar": BarChart3,
|
|
42
|
+
"si-check": Check,
|
|
43
|
+
"si-check-circle": CheckCircle2,
|
|
44
|
+
"si-chevron-down": ChevronDown,
|
|
45
|
+
"si-chevron-left": ChevronLeft,
|
|
46
|
+
"si-chevron-right": ChevronRight,
|
|
47
|
+
"si-chevron-up": ChevronUp,
|
|
48
|
+
"si-clone": Copy,
|
|
49
|
+
"si-cloud-download": DownloadCloud,
|
|
50
|
+
"si-cloud-upload": UploadCloud,
|
|
51
|
+
"si-code": Code,
|
|
52
|
+
"si-cog": Cog,
|
|
53
|
+
"si-comments": MessageSquare,
|
|
54
|
+
"si-copy": Copy,
|
|
55
|
+
"si-download": Download,
|
|
56
|
+
"si-ellipsis-h": MoreHorizontal,
|
|
57
|
+
"si-ellipsis-v": MoreVertical,
|
|
58
|
+
"si-envelope": Mail,
|
|
59
|
+
"si-exclamation-circle": AlertCircle,
|
|
60
|
+
"si-exclamation-triangle": AlertTriangle,
|
|
61
|
+
"si-external-link": ExternalLink,
|
|
62
|
+
"si-eye": Eye,
|
|
63
|
+
"si-eye-slash": EyeOff,
|
|
64
|
+
"si-file": File,
|
|
65
|
+
"si-file-edit": FilePenLine,
|
|
66
|
+
"si-file-excel": FileSpreadsheet,
|
|
67
|
+
"si-file-pdf": FileText,
|
|
68
|
+
"si-file-word": FileType,
|
|
69
|
+
"si-filter": Filter,
|
|
70
|
+
"si-filter-fill": Filter,
|
|
71
|
+
"si-filter-slash": FilterX,
|
|
72
|
+
"si-history": History,
|
|
73
|
+
"si-image": ImageIcon,
|
|
74
|
+
"si-inbox": Inbox,
|
|
75
|
+
"si-info-circle": Info,
|
|
76
|
+
"si-lock": Lock,
|
|
77
|
+
"si-minus": Minus,
|
|
78
|
+
"si-objects-column": Columns3,
|
|
79
|
+
"si-pencil": Pencil,
|
|
80
|
+
"si-plus": Plus,
|
|
81
|
+
"si-power-off": Power,
|
|
82
|
+
"si-refresh": RefreshCcw,
|
|
83
|
+
"si-save": Save,
|
|
84
|
+
"si-search": Search,
|
|
85
|
+
"si-send": Send,
|
|
86
|
+
"si-sliders-h": SlidersHorizontal,
|
|
87
|
+
"si-sort-down-fill": ArrowDownWideNarrow,
|
|
88
|
+
"si-sort-up-fill": ArrowUpWideNarrow,
|
|
89
|
+
"si-spinner": Loader2,
|
|
90
|
+
"si-star": Star,
|
|
91
|
+
"si-terminal": Terminal,
|
|
92
|
+
"si-th-large": LayoutGrid,
|
|
93
|
+
"si-times": X,
|
|
94
|
+
"si-times-circle": XCircle,
|
|
95
|
+
"si-trash": Trash2,
|
|
96
|
+
"si-upload": Upload,
|
|
97
|
+
"si-user": User,
|
|
98
|
+
"si-users": Users,
|
|
99
|
+
"si-wifi": Wifi
|
|
100
|
+
};
|
|
101
|
+
var SPIN_CLASSNAMES = new Set(["pi-spin", "si-spin"]);
|
|
102
|
+
function cx() {
|
|
103
|
+
var parts = [];
|
|
104
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
105
|
+
parts[_i] = arguments[_i];
|
|
106
|
+
}
|
|
107
|
+
return parts.filter(Boolean).join(" ");
|
|
108
|
+
}
|
|
109
|
+
function isSolidIconName(name) {
|
|
110
|
+
return Object.prototype.hasOwnProperty.call(ICON_MAP, name);
|
|
111
|
+
}
|
|
112
|
+
export var ICON_KEYS = Object.keys(ICON_MAP);
|
|
113
|
+
export var SolidIcon = React.forwardRef(function (_a, ref) {
|
|
114
|
+
var _b;
|
|
115
|
+
var name = _a.name, _c = _a.size, size = _c === void 0 ? "1em" : _c, spin = _a.spin, className = _a.className, rest = __rest(_a, ["name", "size", "spin", "className"]);
|
|
116
|
+
var IconComponent = (_b = ICON_MAP[name]) !== null && _b !== void 0 ? _b : CircleHelp;
|
|
117
|
+
return (_jsx(IconComponent, __assign({ ref: ref, size: size, className: cx("solid-icon", spin && "solid-icon--spin", className) }, rest)));
|
|
118
|
+
});
|
|
119
|
+
export function parseSolidIconMeta(value) {
|
|
120
|
+
if (!value)
|
|
121
|
+
return undefined;
|
|
122
|
+
var tokens = value.trim().split(/\s+/).filter(Boolean);
|
|
123
|
+
if (tokens.length === 0)
|
|
124
|
+
return undefined;
|
|
125
|
+
var spin = false;
|
|
126
|
+
var matchedName;
|
|
127
|
+
for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {
|
|
128
|
+
var token = tokens_1[_i];
|
|
129
|
+
if (SPIN_CLASSNAMES.has(token)) {
|
|
130
|
+
spin = true;
|
|
131
|
+
continue;
|
|
132
|
+
}
|
|
133
|
+
if (!token.startsWith("pi-") && !token.startsWith("si-")) {
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
var normalized = token.startsWith("pi-") ? "si-".concat(token.slice(3)) : token;
|
|
137
|
+
if (isSolidIconName(normalized)) {
|
|
138
|
+
matchedName = normalized;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
if (!matchedName)
|
|
142
|
+
return undefined;
|
|
143
|
+
return { name: matchedName, spin: spin };
|
|
144
|
+
}
|
|
145
|
+
export function normalizeSolidIconName(value) {
|
|
146
|
+
var _a;
|
|
147
|
+
return (_a = parseSolidIconMeta(value)) === null || _a === void 0 ? void 0 : _a.name;
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=SolidIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SolidIcon.js","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidIcon.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,SAAS,EACT,IAAI,EACJ,GAAG,EACH,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,WAAW,EACX,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,IAAI,EACJ,GAAG,EACH,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,GAAG,EACH,MAAM,EACN,IAAI,EACJ,WAAW,EACX,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,KAAK,IAAI,SAAS,EAClB,KAAK,EACL,IAAI,EACJ,UAAU,EACV,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,aAAa,EACb,KAAK,EACL,cAAc,EACd,YAAY,EACZ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,UAAU,EACV,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,iBAAiB,EACjB,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,MAAM,EACN,WAAW,EACX,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,CAAC,EACD,OAAO,EACR,MAAM,cAAc,CAAC;AAItB,IAAM,QAAQ,GAAG;IACf,YAAY,EAAE,GAAG;IACjB,sBAAsB,E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AAI,CAAC,WAAW;QAAE,OAAO,SAAS,CAAC;IAEnC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,MAAA,EAAE,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,KAAqB;;IAC1D,OAAO,MAAA,kBAAkB,CAAC,KAAK,CAAC,0CAAE,IAAI,CAAC;AACzC,CAAC","sourcesContent":["import React from \"react\";\nimport type { LucideIcon } from \"lucide-react\";\nimport {\n AlertCircle,\n AlertTriangle,\n ArrowDownWideNarrow,\n ArrowLeft,\n ArrowRight,\n ArrowUpWideNarrow,\n BarChart3,\n Bell,\n Bot,\n Calendar,\n CalendarMinus,\n CalendarPlus,\n Check,\n CheckCircle2,\n ChevronsLeft,\n ChevronsRight,\n ChevronDown,\n ChevronLeft,\n ChevronRight,\n ChevronUp,\n CircleHelp,\n Code,\n Cog,\n Columns3,\n Copy,\n Download,\n DownloadCloud,\n ExternalLink,\n Eye,\n EyeOff,\n File,\n FilePenLine,\n FileSpreadsheet,\n FileText,\n FileType,\n Filter,\n FilterX,\n History,\n Image as ImageIcon,\n Inbox,\n Info,\n LayoutGrid,\n Loader2,\n Lock,\n Mail,\n Menu,\n MessageSquare,\n Minus,\n MoreHorizontal,\n MoreVertical,\n Pencil,\n Plus,\n Power,\n RefreshCcw,\n Save,\n Search,\n Send,\n SlidersHorizontal,\n Star,\n Terminal,\n Trash2,\n Upload,\n UploadCloud,\n User,\n Users,\n Wifi,\n X,\n XCircle\n} from \"lucide-react\";\n\ntype IconComponent = LucideIcon;\n\nconst ICON_MAP = {\n \"si-android\": Bot,\n \"si-angle-double-left\": ChevronsLeft,\n \"si-angle-double-right\": ChevronsRight,\n \"si-angle-down\": ChevronDown,\n \"si-angle-left\": ChevronLeft,\n \"si-angle-right\": ChevronRight,\n \"si-angle-up\": ChevronUp,\n \"si-arrow-left\": ArrowLeft,\n \"si-arrow-right\": ArrowRight,\n \"si-bars\": Menu,\n \"si-bell\": Bell,\n \"si-calendar\": Calendar,\n \"si-calendar-minus\": CalendarMinus,\n \"si-calendar-plus\": CalendarPlus,\n \"si-chart-bar\": BarChart3,\n \"si-check\": Check,\n \"si-check-circle\": CheckCircle2,\n \"si-chevron-down\": ChevronDown,\n \"si-chevron-left\": ChevronLeft,\n \"si-chevron-right\": ChevronRight,\n \"si-chevron-up\": ChevronUp,\n \"si-clone\": Copy,\n \"si-cloud-download\": DownloadCloud,\n \"si-cloud-upload\": UploadCloud,\n \"si-code\": Code,\n \"si-cog\": Cog,\n \"si-comments\": MessageSquare,\n \"si-copy\": Copy,\n \"si-download\": Download,\n \"si-ellipsis-h\": MoreHorizontal,\n \"si-ellipsis-v\": MoreVertical,\n \"si-envelope\": Mail,\n \"si-exclamation-circle\": AlertCircle,\n \"si-exclamation-triangle\": AlertTriangle,\n \"si-external-link\": ExternalLink,\n \"si-eye\": Eye,\n \"si-eye-slash\": EyeOff,\n \"si-file\": File,\n \"si-file-edit\": FilePenLine,\n \"si-file-excel\": FileSpreadsheet,\n \"si-file-pdf\": FileText,\n \"si-file-word\": FileType,\n \"si-filter\": Filter,\n \"si-filter-fill\": Filter,\n \"si-filter-slash\": FilterX,\n \"si-history\": History,\n \"si-image\": ImageIcon,\n \"si-inbox\": Inbox,\n \"si-info-circle\": Info,\n \"si-lock\": Lock,\n \"si-minus\": Minus,\n \"si-objects-column\": Columns3,\n \"si-pencil\": Pencil,\n \"si-plus\": Plus,\n \"si-power-off\": Power,\n \"si-refresh\": RefreshCcw,\n \"si-save\": Save,\n \"si-search\": Search,\n \"si-send\": Send,\n \"si-sliders-h\": SlidersHorizontal,\n \"si-sort-down-fill\": ArrowDownWideNarrow,\n \"si-sort-up-fill\": ArrowUpWideNarrow,\n \"si-spinner\": Loader2,\n \"si-star\": Star,\n \"si-terminal\": Terminal,\n \"si-th-large\": LayoutGrid,\n \"si-times\": X,\n \"si-times-circle\": XCircle,\n \"si-trash\": Trash2,\n \"si-upload\": Upload,\n \"si-user\": User,\n \"si-users\": Users,\n \"si-wifi\": Wifi\n} satisfies Record<string, IconComponent>;\n\nexport type SolidIconName = keyof typeof ICON_MAP;\n\nconst SPIN_CLASSNAMES = new Set([\"pi-spin\", \"si-spin\"]);\n\nfunction cx(...parts: Array<string | false | undefined>) {\n return parts.filter(Boolean).join(\" \");\n}\n\nfunction isSolidIconName(name: string): name is SolidIconName {\n return Object.prototype.hasOwnProperty.call(ICON_MAP, name);\n}\n\nexport interface SolidIconProps extends React.ComponentPropsWithoutRef<\"svg\"> {\n name: SolidIconName;\n size?: number | string;\n spin?: boolean;\n}\n\nexport const ICON_KEYS = Object.keys(ICON_MAP) as SolidIconName[];\n\nexport const SolidIcon = React.forwardRef<SVGSVGElement, SolidIconProps>(\n ({ name, size = \"1em\", spin, className, ...rest }, ref) => {\n const IconComponent = ICON_MAP[name] ?? CircleHelp;\n\n return (\n <IconComponent\n ref={ref}\n size={size}\n className={cx(\"solid-icon\", spin && \"solid-icon--spin\", className)}\n {...rest}\n />\n );\n }\n);\n\nexport type SolidIconMeta = {\n name: SolidIconName;\n spin?: boolean;\n};\n\nexport function parseSolidIconMeta(value?: string | null): SolidIconMeta | undefined {\n if (!value) return undefined;\n const tokens = value.trim().split(/\\s+/).filter(Boolean);\n if (tokens.length === 0) return undefined;\n\n let spin = false;\n let matchedName: SolidIconName | undefined;\n\n for (const token of tokens) {\n if (SPIN_CLASSNAMES.has(token)) {\n spin = true;\n continue;\n }\n\n if (!token.startsWith(\"pi-\") && !token.startsWith(\"si-\")) {\n continue;\n }\n\n const normalized = token.startsWith(\"pi-\") ? `si-${token.slice(3)}` : token;\n if (isSolidIconName(normalized)) {\n matchedName = normalized;\n }\n }\n\n if (!matchedName) return undefined;\n\n return { name: matchedName, spin };\n}\n\nexport function normalizeSolidIconName(value?: string | null): SolidIconName | undefined {\n return parseSolidIconMeta(value)?.name;\n}\n"]}
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { LucideIcon } from "lucide-react";
|
|
3
|
+
import {
|
|
4
|
+
AlertCircle,
|
|
5
|
+
AlertTriangle,
|
|
6
|
+
ArrowDownWideNarrow,
|
|
7
|
+
ArrowLeft,
|
|
8
|
+
ArrowRight,
|
|
9
|
+
ArrowUpWideNarrow,
|
|
10
|
+
BarChart3,
|
|
11
|
+
Bell,
|
|
12
|
+
Bot,
|
|
13
|
+
Calendar,
|
|
14
|
+
CalendarMinus,
|
|
15
|
+
CalendarPlus,
|
|
16
|
+
Check,
|
|
17
|
+
CheckCircle2,
|
|
18
|
+
ChevronsLeft,
|
|
19
|
+
ChevronsRight,
|
|
20
|
+
ChevronDown,
|
|
21
|
+
ChevronLeft,
|
|
22
|
+
ChevronRight,
|
|
23
|
+
ChevronUp,
|
|
24
|
+
CircleHelp,
|
|
25
|
+
Code,
|
|
26
|
+
Cog,
|
|
27
|
+
Columns3,
|
|
28
|
+
Copy,
|
|
29
|
+
Download,
|
|
30
|
+
DownloadCloud,
|
|
31
|
+
ExternalLink,
|
|
32
|
+
Eye,
|
|
33
|
+
EyeOff,
|
|
34
|
+
File,
|
|
35
|
+
FilePenLine,
|
|
36
|
+
FileSpreadsheet,
|
|
37
|
+
FileText,
|
|
38
|
+
FileType,
|
|
39
|
+
Filter,
|
|
40
|
+
FilterX,
|
|
41
|
+
History,
|
|
42
|
+
Image as ImageIcon,
|
|
43
|
+
Inbox,
|
|
44
|
+
Info,
|
|
45
|
+
LayoutGrid,
|
|
46
|
+
Loader2,
|
|
47
|
+
Lock,
|
|
48
|
+
Mail,
|
|
49
|
+
Menu,
|
|
50
|
+
MessageSquare,
|
|
51
|
+
Minus,
|
|
52
|
+
MoreHorizontal,
|
|
53
|
+
MoreVertical,
|
|
54
|
+
Pencil,
|
|
55
|
+
Plus,
|
|
56
|
+
Power,
|
|
57
|
+
RefreshCcw,
|
|
58
|
+
Save,
|
|
59
|
+
Search,
|
|
60
|
+
Send,
|
|
61
|
+
SlidersHorizontal,
|
|
62
|
+
Star,
|
|
63
|
+
Terminal,
|
|
64
|
+
Trash2,
|
|
65
|
+
Upload,
|
|
66
|
+
UploadCloud,
|
|
67
|
+
User,
|
|
68
|
+
Users,
|
|
69
|
+
Wifi,
|
|
70
|
+
X,
|
|
71
|
+
XCircle
|
|
72
|
+
} from "lucide-react";
|
|
73
|
+
|
|
74
|
+
type IconComponent = LucideIcon;
|
|
75
|
+
|
|
76
|
+
const ICON_MAP = {
|
|
77
|
+
"si-android": Bot,
|
|
78
|
+
"si-angle-double-left": ChevronsLeft,
|
|
79
|
+
"si-angle-double-right": ChevronsRight,
|
|
80
|
+
"si-angle-down": ChevronDown,
|
|
81
|
+
"si-angle-left": ChevronLeft,
|
|
82
|
+
"si-angle-right": ChevronRight,
|
|
83
|
+
"si-angle-up": ChevronUp,
|
|
84
|
+
"si-arrow-left": ArrowLeft,
|
|
85
|
+
"si-arrow-right": ArrowRight,
|
|
86
|
+
"si-bars": Menu,
|
|
87
|
+
"si-bell": Bell,
|
|
88
|
+
"si-calendar": Calendar,
|
|
89
|
+
"si-calendar-minus": CalendarMinus,
|
|
90
|
+
"si-calendar-plus": CalendarPlus,
|
|
91
|
+
"si-chart-bar": BarChart3,
|
|
92
|
+
"si-check": Check,
|
|
93
|
+
"si-check-circle": CheckCircle2,
|
|
94
|
+
"si-chevron-down": ChevronDown,
|
|
95
|
+
"si-chevron-left": ChevronLeft,
|
|
96
|
+
"si-chevron-right": ChevronRight,
|
|
97
|
+
"si-chevron-up": ChevronUp,
|
|
98
|
+
"si-clone": Copy,
|
|
99
|
+
"si-cloud-download": DownloadCloud,
|
|
100
|
+
"si-cloud-upload": UploadCloud,
|
|
101
|
+
"si-code": Code,
|
|
102
|
+
"si-cog": Cog,
|
|
103
|
+
"si-comments": MessageSquare,
|
|
104
|
+
"si-copy": Copy,
|
|
105
|
+
"si-download": Download,
|
|
106
|
+
"si-ellipsis-h": MoreHorizontal,
|
|
107
|
+
"si-ellipsis-v": MoreVertical,
|
|
108
|
+
"si-envelope": Mail,
|
|
109
|
+
"si-exclamation-circle": AlertCircle,
|
|
110
|
+
"si-exclamation-triangle": AlertTriangle,
|
|
111
|
+
"si-external-link": ExternalLink,
|
|
112
|
+
"si-eye": Eye,
|
|
113
|
+
"si-eye-slash": EyeOff,
|
|
114
|
+
"si-file": File,
|
|
115
|
+
"si-file-edit": FilePenLine,
|
|
116
|
+
"si-file-excel": FileSpreadsheet,
|
|
117
|
+
"si-file-pdf": FileText,
|
|
118
|
+
"si-file-word": FileType,
|
|
119
|
+
"si-filter": Filter,
|
|
120
|
+
"si-filter-fill": Filter,
|
|
121
|
+
"si-filter-slash": FilterX,
|
|
122
|
+
"si-history": History,
|
|
123
|
+
"si-image": ImageIcon,
|
|
124
|
+
"si-inbox": Inbox,
|
|
125
|
+
"si-info-circle": Info,
|
|
126
|
+
"si-lock": Lock,
|
|
127
|
+
"si-minus": Minus,
|
|
128
|
+
"si-objects-column": Columns3,
|
|
129
|
+
"si-pencil": Pencil,
|
|
130
|
+
"si-plus": Plus,
|
|
131
|
+
"si-power-off": Power,
|
|
132
|
+
"si-refresh": RefreshCcw,
|
|
133
|
+
"si-save": Save,
|
|
134
|
+
"si-search": Search,
|
|
135
|
+
"si-send": Send,
|
|
136
|
+
"si-sliders-h": SlidersHorizontal,
|
|
137
|
+
"si-sort-down-fill": ArrowDownWideNarrow,
|
|
138
|
+
"si-sort-up-fill": ArrowUpWideNarrow,
|
|
139
|
+
"si-spinner": Loader2,
|
|
140
|
+
"si-star": Star,
|
|
141
|
+
"si-terminal": Terminal,
|
|
142
|
+
"si-th-large": LayoutGrid,
|
|
143
|
+
"si-times": X,
|
|
144
|
+
"si-times-circle": XCircle,
|
|
145
|
+
"si-trash": Trash2,
|
|
146
|
+
"si-upload": Upload,
|
|
147
|
+
"si-user": User,
|
|
148
|
+
"si-users": Users,
|
|
149
|
+
"si-wifi": Wifi
|
|
150
|
+
} satisfies Record<string, IconComponent>;
|
|
151
|
+
|
|
152
|
+
export type SolidIconName = keyof typeof ICON_MAP;
|
|
153
|
+
|
|
154
|
+
const SPIN_CLASSNAMES = new Set(["pi-spin", "si-spin"]);
|
|
155
|
+
|
|
156
|
+
function cx(...parts: Array<string | false | undefined>) {
|
|
157
|
+
return parts.filter(Boolean).join(" ");
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function isSolidIconName(name: string): name is SolidIconName {
|
|
161
|
+
return Object.prototype.hasOwnProperty.call(ICON_MAP, name);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export interface SolidIconProps extends React.ComponentPropsWithoutRef<"svg"> {
|
|
165
|
+
name: SolidIconName;
|
|
166
|
+
size?: number | string;
|
|
167
|
+
spin?: boolean;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export const ICON_KEYS = Object.keys(ICON_MAP) as SolidIconName[];
|
|
171
|
+
|
|
172
|
+
export const SolidIcon = React.forwardRef<SVGSVGElement, SolidIconProps>(
|
|
173
|
+
({ name, size = "1em", spin, className, ...rest }, ref) => {
|
|
174
|
+
const IconComponent = ICON_MAP[name] ?? CircleHelp;
|
|
175
|
+
|
|
176
|
+
return (
|
|
177
|
+
<IconComponent
|
|
178
|
+
ref={ref}
|
|
179
|
+
size={size}
|
|
180
|
+
className={cx("solid-icon", spin && "solid-icon--spin", className)}
|
|
181
|
+
{...rest}
|
|
182
|
+
/>
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
);
|
|
186
|
+
|
|
187
|
+
export type SolidIconMeta = {
|
|
188
|
+
name: SolidIconName;
|
|
189
|
+
spin?: boolean;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
export function parseSolidIconMeta(value?: string | null): SolidIconMeta | undefined {
|
|
193
|
+
if (!value) return undefined;
|
|
194
|
+
const tokens = value.trim().split(/\s+/).filter(Boolean);
|
|
195
|
+
if (tokens.length === 0) return undefined;
|
|
196
|
+
|
|
197
|
+
let spin = false;
|
|
198
|
+
let matchedName: SolidIconName | undefined;
|
|
199
|
+
|
|
200
|
+
for (const token of tokens) {
|
|
201
|
+
if (SPIN_CLASSNAMES.has(token)) {
|
|
202
|
+
spin = true;
|
|
203
|
+
continue;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
if (!token.startsWith("pi-") && !token.startsWith("si-")) {
|
|
207
|
+
continue;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
const normalized = token.startsWith("pi-") ? `si-${token.slice(3)}` : token;
|
|
211
|
+
if (isSolidIconName(normalized)) {
|
|
212
|
+
matchedName = normalized;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
if (!matchedName) return undefined;
|
|
217
|
+
|
|
218
|
+
return { name: matchedName, spin };
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export function normalizeSolidIconName(value?: string | null): SolidIconName | undefined {
|
|
222
|
+
return parseSolidIconMeta(value)?.name;
|
|
223
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
type SolidInputProps = React.InputHTMLAttributes<HTMLInputElement>;
|
|
3
|
-
export declare
|
|
3
|
+
export declare const SolidInput: React.ForwardRefExoticComponent<SolidInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
4
4
|
export {};
|
|
5
5
|
//# sourceMappingURL=SolidInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolidInput.d.ts","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,eAAe,GAAG,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AAMnE,
|
|
1
|
+
{"version":3,"file":"SolidInput.d.ts","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,KAAK,eAAe,GAAG,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;AAMnE,eAAO,MAAM,UAAU,0FAKrB,CAAC"}
|
|
@@ -21,6 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import React from "react";
|
|
24
25
|
function cx() {
|
|
25
26
|
var parts = [];
|
|
26
27
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -28,8 +29,8 @@ function cx() {
|
|
|
28
29
|
}
|
|
29
30
|
return parts.filter(Boolean).join(" ");
|
|
30
31
|
}
|
|
31
|
-
export function SolidInput(_a) {
|
|
32
|
+
export var SolidInput = React.forwardRef(function SolidInput(_a, ref) {
|
|
32
33
|
var className = _a.className, props = __rest(_a, ["className"]);
|
|
33
|
-
return _jsx("input", __assign({ className: cx("solid-input", className) }, props));
|
|
34
|
-
}
|
|
34
|
+
return _jsx("input", __assign({ ref: ref, className: cx("solid-input", className) }, props));
|
|
35
|
+
});
|
|
35
36
|
//# sourceMappingURL=SolidInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolidInput.js","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"SolidInput.js","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,SAAS,EAAE;IAAC,eAA2C;SAA3C,UAA2C,EAA3C,qBAA2C,EAA3C,IAA2C;QAA3C,0BAA2C;;IACrD,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,CAAC,IAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAoC,SAAS,UAAU,CAC/F,EAAuB,EACvB,GAAG;IADD,IAAA,SAAS,eAAA,EAAK,KAAK,cAArB,aAAuB,CAAF;IAGrB,OAAO,yBAAO,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,CAAC,aAAa,EAAE,SAAS,CAAC,IAAM,KAAK,EAAI,CAAC;AACjF,CAAC,CAAC,CAAC","sourcesContent":["import React from \"react\";\n\ntype SolidInputProps = React.InputHTMLAttributes<HTMLInputElement>;\n\nfunction cx(...parts: Array<string | false | undefined>) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport const SolidInput = React.forwardRef<HTMLInputElement, SolidInputProps>(function SolidInput(\n { className, ...props },\n ref\n) {\n return <input ref={ref} className={cx(\"solid-input\", className)} {...props} />;\n});\n"]}
|
|
@@ -6,7 +6,9 @@ function cx(...parts: Array<string | false | undefined>) {
|
|
|
6
6
|
return parts.filter(Boolean).join(" ");
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
export const SolidInput = React.forwardRef<HTMLInputElement, SolidInputProps>(function SolidInput(
|
|
10
|
+
{ className, ...props },
|
|
11
|
+
ref
|
|
12
|
+
) {
|
|
13
|
+
return <input ref={ref} className={cx("solid-input", className)} {...props} />;
|
|
14
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Viewer from "viewerjs";
|
|
2
|
+
import "viewerjs/dist/viewer.css";
|
|
3
|
+
type SlideType = "image" | "video" | "audio";
|
|
4
|
+
export interface SolidLightboxSlide {
|
|
5
|
+
src: string;
|
|
6
|
+
type?: SlideType;
|
|
7
|
+
mimeType?: string;
|
|
8
|
+
poster?: string;
|
|
9
|
+
downloadUrl?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface SolidLightboxProps {
|
|
12
|
+
slides: SolidLightboxSlide[];
|
|
13
|
+
open: boolean;
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
viewerOptions?: Viewer.Options;
|
|
16
|
+
}
|
|
17
|
+
export declare const SolidLightbox: ({ slides, open, onClose, viewerOptions, }: SolidLightboxProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=SolidLightbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SolidLightbox.d.ts","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidLightbox.tsx"],"names":[],"mappings":"AAEA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,0BAA0B,CAAC;AAElC,KAAK,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAE7C,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC;CAChC;AAED,eAAO,MAAM,aAAa,8CAKvB,kBAAkB,mDAwMpB,CAAC"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
|
+
import { useEffect, useMemo, useRef, useState } from "react";
|
|
14
|
+
import Viewer from "viewerjs";
|
|
15
|
+
import "viewerjs/dist/viewer.css";
|
|
16
|
+
export var SolidLightbox = function (_a) {
|
|
17
|
+
var slides = _a.slides, open = _a.open, onClose = _a.onClose, viewerOptions = _a.viewerOptions;
|
|
18
|
+
var _b = useState(0), currentIndex = _b[0], setCurrentIndex = _b[1];
|
|
19
|
+
var containerRef = useRef(null);
|
|
20
|
+
var viewerRef = useRef(null);
|
|
21
|
+
var sanitizedSlides = useMemo(function () { return slides.filter(function (slide) { return !!(slide === null || slide === void 0 ? void 0 : slide.src); }); }, [slides]);
|
|
22
|
+
var hasOnlyImages = useMemo(function () { return sanitizedSlides.every(function (slide) { var _a; return ((_a = slide.type) !== null && _a !== void 0 ? _a : "image") === "image"; }); }, [sanitizedSlides]);
|
|
23
|
+
useEffect(function () {
|
|
24
|
+
if (open) {
|
|
25
|
+
setCurrentIndex(0);
|
|
26
|
+
}
|
|
27
|
+
}, [open, sanitizedSlides]);
|
|
28
|
+
useEffect(function () {
|
|
29
|
+
if (!hasOnlyImages || !open) {
|
|
30
|
+
if (viewerRef.current) {
|
|
31
|
+
viewerRef.current.destroy();
|
|
32
|
+
viewerRef.current = null;
|
|
33
|
+
}
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
if (!containerRef.current || sanitizedSlides.length === 0)
|
|
37
|
+
return;
|
|
38
|
+
if (viewerRef.current) {
|
|
39
|
+
viewerRef.current.destroy();
|
|
40
|
+
}
|
|
41
|
+
viewerRef.current = new Viewer(containerRef.current, __assign({ navbar: sanitizedSlides.length > 1, title: false, transition: true, movable: true, scalable: true, rotatable: true, zoomable: true, zIndex: 9999, hidden: function () {
|
|
42
|
+
onClose();
|
|
43
|
+
}, toolbar: {
|
|
44
|
+
prev: 1,
|
|
45
|
+
next: 1,
|
|
46
|
+
zoomIn: 1,
|
|
47
|
+
zoomOut: 1,
|
|
48
|
+
rotateLeft: 1,
|
|
49
|
+
rotateRight: 1,
|
|
50
|
+
reset: 1,
|
|
51
|
+
} }, viewerOptions));
|
|
52
|
+
viewerRef.current.show();
|
|
53
|
+
return function () {
|
|
54
|
+
if (viewerRef.current) {
|
|
55
|
+
viewerRef.current.destroy();
|
|
56
|
+
viewerRef.current = null;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}, [sanitizedSlides, hasOnlyImages, open]);
|
|
60
|
+
if (!open || sanitizedSlides.length === 0) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
if (hasOnlyImages) {
|
|
64
|
+
return (_jsx("div", { ref: containerRef, style: {
|
|
65
|
+
position: "absolute",
|
|
66
|
+
visibility: "hidden",
|
|
67
|
+
width: 0,
|
|
68
|
+
height: 0,
|
|
69
|
+
overflow: "hidden",
|
|
70
|
+
}, children: sanitizedSlides.map(function (slide, index) { return (_jsx("img", { src: slide.src, alt: "preview-".concat(index) }, index)); }) }));
|
|
71
|
+
}
|
|
72
|
+
var handlePrev = function () {
|
|
73
|
+
setCurrentIndex(function (prev) {
|
|
74
|
+
return prev === 0 ? sanitizedSlides.length - 1 : prev - 1;
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
var handleNext = function () {
|
|
78
|
+
setCurrentIndex(function (prev) {
|
|
79
|
+
return prev === sanitizedSlides.length - 1 ? 0 : prev + 1;
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
var currentSlide = sanitizedSlides[currentIndex];
|
|
83
|
+
var showNav = sanitizedSlides.length > 1;
|
|
84
|
+
var renderSlide = function () {
|
|
85
|
+
var _a;
|
|
86
|
+
var mediaType = (_a = currentSlide === null || currentSlide === void 0 ? void 0 : currentSlide.type) !== null && _a !== void 0 ? _a : "image";
|
|
87
|
+
if (mediaType === "video") {
|
|
88
|
+
return (_jsxs("video", { controls: true, autoPlay: true, style: { maxWidth: "90vw", maxHeight: "80vh" }, poster: currentSlide.poster, children: [_jsx("source", { src: currentSlide.src, type: currentSlide.mimeType || "video/mp4" }), "Your browser does not support the video tag."] }, currentSlide.src));
|
|
89
|
+
}
|
|
90
|
+
if (mediaType === "audio") {
|
|
91
|
+
return (_jsxs("div", { style: {
|
|
92
|
+
display: "flex",
|
|
93
|
+
flexDirection: "column",
|
|
94
|
+
alignItems: "center",
|
|
95
|
+
gap: "1rem",
|
|
96
|
+
}, children: [_jsx("div", { style: {
|
|
97
|
+
width: "160px",
|
|
98
|
+
height: "160px",
|
|
99
|
+
borderRadius: "50%",
|
|
100
|
+
background: "rgba(255,255,255,0.08)",
|
|
101
|
+
display: "flex",
|
|
102
|
+
alignItems: "center",
|
|
103
|
+
justifyContent: "center",
|
|
104
|
+
fontSize: "3rem",
|
|
105
|
+
color: "#fff",
|
|
106
|
+
}, children: "\u266A" }), _jsxs("audio", { controls: true, autoPlay: true, preload: "auto", style: { width: "320px" }, children: [_jsx("source", { src: currentSlide.src, type: currentSlide.mimeType || "audio/mpeg" }), "Your browser does not support the audio element."] })] }));
|
|
107
|
+
}
|
|
108
|
+
return (_jsx("img", { src: currentSlide.src, alt: "lightbox-media", style: { maxWidth: "90vw", maxHeight: "80vh", objectFit: "contain" } }, currentSlide.src));
|
|
109
|
+
};
|
|
110
|
+
return (_jsxs("div", { style: overlayStyles, children: [_jsx("button", { style: closeButtonStyles, onClick: onClose, "aria-label": "Close", children: "\u00D7" }), showNav && (_jsxs(_Fragment, { children: [_jsx("button", { style: navButtonStyles("left"), onClick: handlePrev, "aria-label": "Previous", children: "\u2039" }), _jsx("button", { style: navButtonStyles("right"), onClick: handleNext, "aria-label": "Next", children: "\u203A" })] })), _jsx("div", { style: contentStyles, children: renderSlide() })] }));
|
|
111
|
+
};
|
|
112
|
+
var overlayStyles = {
|
|
113
|
+
position: "fixed",
|
|
114
|
+
inset: 0,
|
|
115
|
+
backgroundColor: "rgba(0,0,0,0.85)",
|
|
116
|
+
display: "flex",
|
|
117
|
+
alignItems: "center",
|
|
118
|
+
justifyContent: "center",
|
|
119
|
+
zIndex: 10000,
|
|
120
|
+
};
|
|
121
|
+
var contentStyles = {
|
|
122
|
+
display: "flex",
|
|
123
|
+
alignItems: "center",
|
|
124
|
+
justifyContent: "center",
|
|
125
|
+
width: "100%",
|
|
126
|
+
padding: "16px",
|
|
127
|
+
};
|
|
128
|
+
var closeButtonStyles = {
|
|
129
|
+
position: "absolute",
|
|
130
|
+
top: "16px",
|
|
131
|
+
right: "24px",
|
|
132
|
+
fontSize: "2rem",
|
|
133
|
+
color: "#fff",
|
|
134
|
+
background: "transparent",
|
|
135
|
+
border: "none",
|
|
136
|
+
cursor: "pointer",
|
|
137
|
+
};
|
|
138
|
+
var navButtonStyles = function (direction) {
|
|
139
|
+
var baseStyles = {
|
|
140
|
+
position: "absolute",
|
|
141
|
+
top: "50%",
|
|
142
|
+
transform: "translateY(-50%)",
|
|
143
|
+
fontSize: "2.5rem",
|
|
144
|
+
color: "#fff",
|
|
145
|
+
background: "rgba(0,0,0,0.4)",
|
|
146
|
+
border: "none",
|
|
147
|
+
width: "48px",
|
|
148
|
+
height: "48px",
|
|
149
|
+
borderRadius: "999px",
|
|
150
|
+
cursor: "pointer",
|
|
151
|
+
};
|
|
152
|
+
if (direction === "left") {
|
|
153
|
+
baseStyles.left = "24px";
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
baseStyles.right = "24px";
|
|
157
|
+
}
|
|
158
|
+
return baseStyles;
|
|
159
|
+
};
|
|
160
|
+
//# sourceMappingURL=SolidLightbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SolidLightbox.js","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidLightbox.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,0BAA0B,CAAC;AAmBlC,MAAM,CAAC,IAA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State } from \"react\";\nimport Viewer from \"viewerjs\";\nimport \"viewerjs/dist/viewer.css\";\n\ntype SlideType = \"image\" | \"video\" | \"audio\";\n\nexport interface SolidLightboxSlide {\n src: string;\n type?: SlideType;\n mimeType?: string;\n poster?: string;\n downloadUrl?: string;\n}\n\nexport interface SolidLightboxProps {\n slides: SolidLightboxSlide[];\n open: boolean;\n onClose: () => void;\n viewerOptions?: Viewer.Options;\n}\n\nexport const SolidLightbox = ({\n slides,\n open,\n onClose,\n viewerOptions,\n}: SolidLightboxProps) => {\n const [currentIndex, setCurrentIndex] = useState(0);\n const containerRef = useRef<HTMLDivElement | null>(null);\n const viewerRef = useRef<Viewer | null>(null);\n\n const sanitizedSlides = useMemo(\n () => slides.filter((slide) => !!slide?.src),\n [slides]\n );\n\n const hasOnlyImages = useMemo(\n () => sanitizedSlides.every((slide) => (slide.type ?? \"image\") === \"image\"),\n [sanitizedSlides]\n );\n\n useEffect(() => {\n if (open) {\n setCurrentIndex(0);\n }\n }, [open, sanitizedSlides]);\n\n useEffect(() => {\n if (!hasOnlyImages || !open) {\n if (viewerRef.current) {\n viewerRef.current.destroy();\n viewerRef.current = null;\n }\n return;\n }\n\n if (!containerRef.current || sanitizedSlides.length === 0) return;\n\n if (viewerRef.current) {\n viewerRef.current.destroy();\n }\n\n viewerRef.current = new Viewer(containerRef.current, {\n navbar: sanitizedSlides.length > 1,\n title: false,\n transition: true,\n movable: true,\n scalable: true,\n rotatable: true,\n zoomable: true,\n zIndex: 9999,\n hidden: () => {\n onClose();\n },\n toolbar: {\n prev: 1,\n next: 1,\n zoomIn: 1,\n zoomOut: 1,\n rotateLeft: 1,\n rotateRight: 1,\n reset: 1,\n },\n ...viewerOptions,\n });\n\n viewerRef.current.show();\n\n return () => {\n if (viewerRef.current) {\n viewerRef.current.destroy();\n viewerRef.current = null;\n }\n };\n }, [sanitizedSlides, hasOnlyImages, open]);\n\n if (!open || sanitizedSlides.length === 0) {\n return null;\n }\n\n if (hasOnlyImages) {\n return (\n <div\n ref={containerRef}\n style={{\n position: \"absolute\",\n visibility: \"hidden\",\n width: 0,\n height: 0,\n overflow: \"hidden\",\n }}\n >\n {sanitizedSlides.map((slide, index) => (\n <img key={index} src={slide.src} alt={`preview-${index}`} />\n ))}\n </div>\n );\n }\n\n const handlePrev = () => {\n setCurrentIndex((prev) =>\n prev === 0 ? sanitizedSlides.length - 1 : prev - 1\n );\n };\n\n const handleNext = () => {\n setCurrentIndex((prev) =>\n prev === sanitizedSlides.length - 1 ? 0 : prev + 1\n );\n };\n\n const currentSlide = sanitizedSlides[currentIndex];\n const showNav = sanitizedSlides.length > 1;\n\n const renderSlide = () => {\n const mediaType = currentSlide?.type ?? \"image\";\n if (mediaType === \"video\") {\n return (\n <video\n key={currentSlide.src}\n controls\n autoPlay\n style={{ maxWidth: \"90vw\", maxHeight: \"80vh\" }}\n poster={currentSlide.poster}\n >\n <source\n src={currentSlide.src}\n type={currentSlide.mimeType || \"video/mp4\"}\n />\n Your browser does not support the video tag.\n </video>\n );\n }\n\n if (mediaType === \"audio\") {\n return (\n <div\n style={{\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n gap: \"1rem\",\n }}\n >\n <div\n style={{\n width: \"160px\",\n height: \"160px\",\n borderRadius: \"50%\",\n background: \"rgba(255,255,255,0.08)\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontSize: \"3rem\",\n color: \"#fff\",\n }}\n >\n ♪\n </div>\n <audio controls autoPlay preload=\"auto\" style={{ width: \"320px\" }}>\n <source\n src={currentSlide.src}\n type={currentSlide.mimeType || \"audio/mpeg\"}\n />\n Your browser does not support the audio element.\n </audio>\n </div>\n );\n }\n\n return (\n <img\n key={currentSlide.src}\n src={currentSlide.src}\n alt=\"lightbox-media\"\n style={{ maxWidth: \"90vw\", maxHeight: \"80vh\", objectFit: \"contain\" }}\n />\n );\n };\n\n return (\n <div style={overlayStyles}>\n <button style={closeButtonStyles} onClick={onClose} aria-label=\"Close\">\n ×\n </button>\n {showNav && (\n <>\n <button\n style={navButtonStyles(\"left\")}\n onClick={handlePrev}\n aria-label=\"Previous\"\n >\n ‹\n </button>\n <button\n style={navButtonStyles(\"right\")}\n onClick={handleNext}\n aria-label=\"Next\"\n >\n ›\n </button>\n </>\n )}\n <div style={contentStyles}>{renderSlide()}</div>\n </div>\n );\n};\n\nconst overlayStyles: CSSProperties = {\n position: \"fixed\",\n inset: 0,\n backgroundColor: \"rgba(0,0,0,0.85)\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n zIndex: 10000,\n};\n\nconst contentStyles: CSSProperties = {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n width: \"100%\",\n padding: \"16px\",\n};\n\nconst closeButtonStyles: CSSProperties = {\n position: \"absolute\",\n top: \"16px\",\n right: \"24px\",\n fontSize: \"2rem\",\n color: \"#fff\",\n background: \"transparent\",\n border: \"none\",\n cursor: \"pointer\",\n};\n\nconst navButtonStyles = (direction: \"left\" | \"right\"): CSSProperties => {\n const baseStyles: CSSProperties = {\n position: \"absolute\",\n top: \"50%\",\n transform: \"translateY(-50%)\",\n fontSize: \"2.5rem\",\n color: \"#fff\",\n background: \"rgba(0,0,0,0.4)\",\n border: \"none\",\n width: \"48px\",\n height: \"48px\",\n borderRadius: \"999px\",\n cursor: \"pointer\",\n };\n\n if (direction === \"left\") {\n baseStyles.left = \"24px\";\n } else {\n baseStyles.right = \"24px\";\n }\n\n return baseStyles;\n};\n"]}
|