@intlayer/design-system 2.0.13 → 3.0.1
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/.vite/manifest.json +1798 -369
- package/dist/Form-Cbu7ff1e.js +278 -0
- package/dist/Form-Cbu7ff1e.js.map +1 -0
- package/dist/Form-wWTTkxTp.cjs +277 -0
- package/dist/Form-wWTTkxTp.cjs.map +1 -0
- package/dist/components/Accordion/Accordion.cjs +64 -0
- package/dist/components/Accordion/Accordion.cjs.map +1 -0
- package/dist/components/Accordion/Accordion.d.ts +17 -1
- package/dist/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion/Accordion.mjs +64 -0
- package/dist/components/Accordion/Accordion.mjs.map +1 -0
- package/dist/components/Accordion/index.cjs +5 -0
- package/dist/components/Accordion/index.cjs.map +1 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/index.d.ts.map +1 -0
- package/dist/components/Accordion/index.mjs +5 -0
- package/dist/components/Accordion/index.mjs.map +1 -0
- package/dist/components/Auth/AuthModal/index.cjs +157 -0
- package/dist/components/Auth/AuthModal/index.cjs.map +1 -0
- package/dist/components/Auth/AuthModal/index.d.ts +21 -0
- package/dist/components/Auth/AuthModal/index.d.ts.map +1 -0
- package/dist/components/Auth/AuthModal/index.mjs +157 -0
- package/dist/components/Auth/AuthModal/index.mjs.map +1 -0
- package/dist/components/Auth/AuthProvider/index.cjs +71 -0
- package/dist/components/Auth/AuthProvider/index.cjs.map +1 -0
- package/dist/components/Auth/AuthProvider/index.d.ts +30 -0
- package/dist/components/Auth/AuthProvider/index.d.ts.map +1 -0
- package/dist/components/Auth/AuthProvider/index.mjs +71 -0
- package/dist/components/Auth/AuthProvider/index.mjs.map +1 -0
- package/dist/components/Auth/AuthProvider/useCSRF.cjs +22 -0
- package/dist/components/Auth/AuthProvider/useCSRF.cjs.map +1 -0
- package/dist/components/Auth/AuthProvider/useCSRF.d.ts +5 -0
- package/dist/components/Auth/AuthProvider/useCSRF.d.ts.map +1 -0
- package/dist/components/Auth/AuthProvider/useCSRF.mjs +22 -0
- package/dist/components/Auth/AuthProvider/useCSRF.mjs.map +1 -0
- package/dist/components/Auth/AuthProvider/useOAuth2.cjs +26 -0
- package/dist/components/Auth/AuthProvider/useOAuth2.cjs.map +1 -0
- package/dist/components/Auth/AuthProvider/useOAuth2.d.ts +4 -0
- package/dist/components/Auth/AuthProvider/useOAuth2.d.ts.map +1 -0
- package/dist/components/Auth/AuthProvider/useOAuth2.mjs +26 -0
- package/dist/components/Auth/AuthProvider/useOAuth2.mjs.map +1 -0
- package/dist/components/Auth/AuthProvider/useSession.cjs +67 -0
- package/dist/components/Auth/AuthProvider/useSession.cjs.map +1 -0
- package/dist/components/Auth/AuthProvider/useSession.d.ts +9 -0
- package/dist/components/Auth/AuthProvider/useSession.d.ts.map +1 -0
- package/dist/components/Auth/AuthProvider/useSession.mjs +67 -0
- package/dist/components/Auth/AuthProvider/useSession.mjs.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs +36 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.d.ts +6 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.d.ts.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs +36 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.cjs +22 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.cjs.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.d.ts +9 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.d.ts.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.mjs +22 -0
- package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.mjs.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.cjs +15 -0
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.cjs.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.d.ts +5 -0
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.d.ts.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.mjs +15 -0
- package/dist/components/Auth/AuthenticationBarrier/accessValidation.mjs.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/index.cjs +7 -0
- package/dist/components/Auth/AuthenticationBarrier/index.cjs.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/index.d.ts +24 -0
- package/dist/components/Auth/AuthenticationBarrier/index.d.ts.map +1 -0
- package/dist/components/Auth/AuthenticationBarrier/index.mjs +7 -0
- package/dist/components/Auth/AuthenticationBarrier/index.mjs.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs +91 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts +11 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs +91 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.cjs +66 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.cjs.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.d.ts +25 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.d.ts.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.mjs +66 -0
- package/dist/components/Auth/ChangePasswordForm/ChangePasswordSchema.mjs.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/index.cjs +7 -0
- package/dist/components/Auth/ChangePasswordForm/index.cjs.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/index.content.cjs +67 -0
- package/dist/components/Auth/ChangePasswordForm/index.content.cjs.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/index.content.d.ts +23 -0
- package/dist/components/Auth/ChangePasswordForm/index.content.d.ts.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/index.content.mjs +67 -0
- package/dist/components/Auth/ChangePasswordForm/index.content.mjs.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/index.d.ts +3 -0
- package/dist/components/Auth/ChangePasswordForm/index.d.ts.map +1 -0
- package/dist/components/Auth/ChangePasswordForm/index.mjs +7 -0
- package/dist/components/Auth/ChangePasswordForm/index.mjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +61 -0
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts +6 -0
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +61 -0
- package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.cjs +15 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.cjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.d.ts +4 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.d.ts.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.mjs +15 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.mjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.cjs +23 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.cjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.d.ts +4 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.d.ts.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.mjs +23 -0
- package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.mjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.cjs +36 -0
- package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.cjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.d.ts +12 -0
- package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.d.ts.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.mjs +36 -0
- package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.mjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/index.cjs +7 -0
- package/dist/components/Auth/ExternalsLoginButtons/index.cjs.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/index.d.ts +2 -0
- package/dist/components/Auth/ExternalsLoginButtons/index.d.ts.map +1 -0
- package/dist/components/Auth/ExternalsLoginButtons/index.mjs +7 -0
- package/dist/components/Auth/ExternalsLoginButtons/index.mjs.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs +110 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts +12 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs +110 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.cjs +29 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.cjs.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.d.ts +11 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.d.ts.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.mjs +29 -0
- package/dist/components/Auth/ResetPasswordForm/ResetPasswordSchema.mjs.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/index.cjs +7 -0
- package/dist/components/Auth/ResetPasswordForm/index.cjs.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/index.content.cjs +50 -0
- package/dist/components/Auth/ResetPasswordForm/index.content.cjs.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/index.content.d.ts +18 -0
- package/dist/components/Auth/ResetPasswordForm/index.content.d.ts.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/index.content.mjs +50 -0
- package/dist/components/Auth/ResetPasswordForm/index.content.mjs.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/index.d.ts +3 -0
- package/dist/components/Auth/ResetPasswordForm/index.d.ts.map +1 -0
- package/dist/components/Auth/ResetPasswordForm/index.mjs +7 -0
- package/dist/components/Auth/ResetPasswordForm/index.mjs.map +1 -0
- package/dist/components/Auth/SignInForm/SignInForm.cjs +94 -0
- package/dist/components/Auth/SignInForm/SignInForm.cjs.map +1 -0
- package/dist/components/Auth/SignInForm/SignInForm.d.ts +12 -0
- package/dist/components/Auth/SignInForm/SignInForm.d.ts.map +1 -0
- package/dist/components/Auth/SignInForm/SignInForm.mjs +94 -0
- package/dist/components/Auth/SignInForm/SignInForm.mjs.map +1 -0
- package/dist/components/Auth/SignInForm/SignInSchema.cjs +38 -0
- package/dist/components/Auth/SignInForm/SignInSchema.cjs.map +1 -0
- package/dist/components/Auth/SignInForm/SignInSchema.d.ts +14 -0
- package/dist/components/Auth/SignInForm/SignInSchema.d.ts.map +1 -0
- package/dist/components/Auth/SignInForm/SignInSchema.mjs +38 -0
- package/dist/components/Auth/SignInForm/SignInSchema.mjs.map +1 -0
- package/dist/components/Auth/SignInForm/index.cjs +7 -0
- package/dist/components/Auth/SignInForm/index.cjs.map +1 -0
- package/dist/components/Auth/SignInForm/index.content.cjs +84 -0
- package/dist/components/Auth/SignInForm/index.content.cjs.map +1 -0
- package/dist/components/Auth/SignInForm/index.content.d.ts +28 -0
- package/dist/components/Auth/SignInForm/index.content.d.ts.map +1 -0
- package/dist/components/Auth/SignInForm/index.content.mjs +84 -0
- package/dist/components/Auth/SignInForm/index.content.mjs.map +1 -0
- package/dist/components/Auth/SignInForm/index.d.ts +3 -0
- package/dist/components/Auth/SignInForm/index.d.ts.map +1 -0
- package/dist/components/Auth/SignInForm/index.mjs +7 -0
- package/dist/components/Auth/SignInForm/index.mjs.map +1 -0
- package/dist/components/Auth/SignUpForm/SignUpForm.cjs +96 -0
- package/dist/components/Auth/SignUpForm/SignUpForm.cjs.map +1 -0
- package/dist/components/Auth/SignUpForm/SignUpForm.d.ts +11 -0
- package/dist/components/Auth/SignUpForm/SignUpForm.d.ts.map +1 -0
- package/dist/components/Auth/SignUpForm/SignUpForm.mjs +96 -0
- package/dist/components/Auth/SignUpForm/SignUpForm.mjs.map +1 -0
- package/dist/components/Auth/SignUpForm/SignUpSchema.cjs +61 -0
- package/dist/components/Auth/SignUpForm/SignUpSchema.cjs.map +1 -0
- package/dist/components/Auth/SignUpForm/SignUpSchema.d.ts +25 -0
- package/dist/components/Auth/SignUpForm/SignUpSchema.d.ts.map +1 -0
- package/dist/components/Auth/SignUpForm/SignUpSchema.mjs +61 -0
- package/dist/components/Auth/SignUpForm/SignUpSchema.mjs.map +1 -0
- package/dist/components/Auth/SignUpForm/index.cjs +7 -0
- package/dist/components/Auth/SignUpForm/index.cjs.map +1 -0
- package/dist/components/Auth/SignUpForm/index.content.cjs +72 -0
- package/dist/components/Auth/SignUpForm/index.content.cjs.map +1 -0
- package/dist/components/Auth/SignUpForm/index.content.d.ts +24 -0
- package/dist/components/Auth/SignUpForm/index.content.d.ts.map +1 -0
- package/dist/components/Auth/SignUpForm/index.content.mjs +72 -0
- package/dist/components/Auth/SignUpForm/index.content.mjs.map +1 -0
- package/dist/components/Auth/SignUpForm/index.d.ts +3 -0
- package/dist/components/Auth/SignUpForm/index.d.ts.map +1 -0
- package/dist/components/Auth/SignUpForm/index.mjs +7 -0
- package/dist/components/Auth/SignUpForm/index.mjs.map +1 -0
- package/dist/components/Auth/index.cjs +35 -0
- package/dist/components/Auth/index.cjs.map +1 -0
- package/dist/components/Auth/index.d.ts +10 -0
- package/dist/components/Auth/index.d.ts.map +1 -0
- package/dist/components/Auth/index.mjs +35 -0
- package/dist/components/Auth/index.mjs.map +1 -0
- package/dist/components/Auth/useUser/index.cjs +31 -0
- package/dist/components/Auth/useUser/index.cjs.map +1 -0
- package/dist/components/Auth/useUser/index.d.ts +8 -0
- package/dist/components/Auth/useUser/index.d.ts.map +1 -0
- package/dist/components/Auth/useUser/index.mjs +31 -0
- package/dist/components/Auth/useUser/index.mjs.map +1 -0
- package/dist/components/Avatar/index.cjs +63 -0
- package/dist/components/Avatar/index.cjs.map +1 -0
- package/dist/components/Avatar/index.d.ts +2 -1
- package/dist/components/Avatar/index.d.ts.map +1 -0
- package/dist/components/Avatar/index.mjs +63 -0
- package/dist/components/Avatar/index.mjs.map +1 -0
- package/dist/components/Badge/index.cjs +42 -0
- package/dist/components/Badge/index.cjs.map +1 -0
- package/dist/components/Badge/index.d.ts +10 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Badge/index.mjs +42 -0
- package/dist/components/Badge/index.mjs.map +1 -0
- package/dist/components/Breadcrumb/index.cjs +52 -0
- package/dist/components/Breadcrumb/index.cjs.map +1 -0
- package/dist/components/Breadcrumb/index.d.ts +14 -0
- package/dist/components/Breadcrumb/index.d.ts.map +1 -0
- package/dist/components/Breadcrumb/index.mjs +52 -0
- package/dist/components/Breadcrumb/index.mjs.map +1 -0
- package/dist/components/Button/Button.cjs +155 -0
- package/dist/components/Button/Button.cjs.map +1 -0
- package/dist/components/Button/Button.d.ts +27 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/Button.mjs +155 -0
- package/dist/components/Button/Button.mjs.map +1 -0
- package/dist/components/Button/index.cjs +5 -0
- package/dist/components/Button/index.cjs.map +1 -0
- package/dist/components/Button/index.d.ts +2 -22
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Button/index.mjs +5 -0
- package/dist/components/Button/index.mjs.map +1 -0
- package/dist/components/Command/index.cjs +121 -0
- package/dist/components/Command/index.cjs.map +1 -0
- package/dist/components/Command/index.d.ts +136 -0
- package/dist/components/Command/index.d.ts.map +1 -0
- package/dist/components/Command/index.mjs +121 -0
- package/dist/components/Command/index.mjs.map +1 -0
- package/dist/components/Container/index.cjs +101 -0
- package/dist/components/Container/index.cjs.map +1 -0
- package/dist/components/Container/index.d.ts +15 -20
- package/dist/components/Container/index.d.ts.map +1 -0
- package/dist/components/Container/index.mjs +101 -0
- package/dist/components/Container/index.mjs.map +1 -0
- package/dist/components/ContentEditor/ContentEditor.cjs +62 -0
- package/dist/components/ContentEditor/ContentEditor.cjs.map +1 -0
- package/dist/components/ContentEditor/ContentEditor.d.ts +3 -2
- package/dist/components/ContentEditor/ContentEditor.d.ts.map +1 -0
- package/dist/components/ContentEditor/ContentEditor.mjs +62 -0
- package/dist/components/ContentEditor/ContentEditor.mjs.map +1 -0
- package/dist/components/ContentEditor/ContentEditorTextArea.cjs +68 -0
- package/dist/components/ContentEditor/ContentEditorTextArea.cjs.map +1 -0
- package/dist/components/ContentEditor/ContentEditorTextArea.d.ts +9 -0
- package/dist/components/ContentEditor/ContentEditorTextArea.d.ts.map +1 -0
- package/dist/components/ContentEditor/ContentEditorTextArea.mjs +68 -0
- package/dist/components/ContentEditor/ContentEditorTextArea.mjs.map +1 -0
- package/dist/components/ContentEditor/index.cjs +5 -0
- package/dist/components/ContentEditor/index.cjs.map +1 -0
- package/dist/components/ContentEditor/index.d.ts +1 -0
- package/dist/components/ContentEditor/index.d.ts.map +1 -0
- package/dist/components/ContentEditor/index.mjs +5 -0
- package/dist/components/ContentEditor/index.mjs.map +1 -0
- package/dist/components/ContentSelector/ContentSelector.cjs +21 -0
- package/dist/components/ContentSelector/ContentSelector.cjs.map +1 -0
- package/dist/components/ContentSelector/ContentSelector.d.ts +1 -1
- package/dist/components/ContentSelector/ContentSelector.d.ts.map +1 -0
- package/dist/components/ContentSelector/ContentSelector.mjs +21 -0
- package/dist/components/ContentSelector/ContentSelector.mjs.map +1 -0
- package/dist/components/ContentSelector/index.cjs +5 -0
- package/dist/components/ContentSelector/index.cjs.map +1 -0
- package/dist/components/ContentSelector/index.d.ts +1 -0
- package/dist/components/ContentSelector/index.d.ts.map +1 -0
- package/dist/components/ContentSelector/index.mjs +5 -0
- package/dist/components/ContentSelector/index.mjs.map +1 -0
- package/dist/components/CopyToClipboard/index.cjs +45 -0
- package/dist/components/CopyToClipboard/index.cjs.map +1 -0
- package/dist/components/CopyToClipboard/index.d.ts +8 -0
- package/dist/components/CopyToClipboard/index.d.ts.map +1 -0
- package/dist/components/CopyToClipboard/index.mjs +45 -0
- package/dist/components/CopyToClipboard/index.mjs.map +1 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.cjs +35 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.cjs.map +1 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.d.ts +5 -7
- package/dist/components/DictionaryEditor/DictionaryEditor.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.mjs +35 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.mjs.map +1 -0
- package/dist/components/DictionaryEditor/ItemLayout.cjs +54 -0
- package/dist/components/DictionaryEditor/ItemLayout.cjs.map +1 -0
- package/dist/components/DictionaryEditor/ItemLayout.d.ts +1 -4
- package/dist/components/DictionaryEditor/ItemLayout.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/ItemLayout.mjs +54 -0
- package/dist/components/DictionaryEditor/ItemLayout.mjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.d.ts +3 -2
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.mjs +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.mjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.cjs +8 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.cjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.d.ts +3 -2
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.mjs +8 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.mjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts +3 -2
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.mjs +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.mjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs +47 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.d.ts +3 -2
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs +47 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.mjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.cjs +7 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.cjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.d.ts +3 -2
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.mjs +7 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.mjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.cjs +10 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.cjs.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts +6 -5
- package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.mjs +10 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.mjs.map +1 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs +29 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.map +1 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts +6 -4
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs +29 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs.map +1 -0
- package/dist/components/DictionaryEditor/index.cjs +9 -0
- package/dist/components/DictionaryEditor/index.cjs.map +1 -0
- package/dist/components/DictionaryEditor/index.d.ts +3 -0
- package/dist/components/DictionaryEditor/index.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/index.mjs +9 -0
- package/dist/components/DictionaryEditor/index.mjs.map +1 -0
- package/dist/components/DictionaryEditor/useEditedContentStore.cjs +492 -0
- package/dist/components/DictionaryEditor/useEditedContentStore.cjs.map +1 -0
- package/dist/components/DictionaryEditor/useEditedContentStore.d.ts +28 -0
- package/dist/components/DictionaryEditor/useEditedContentStore.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/useEditedContentStore.mjs +492 -0
- package/dist/components/DictionaryEditor/useEditedContentStore.mjs.map +1 -0
- package/dist/components/DictionaryEditor/useEditionPanelStore.cjs +15 -0
- package/dist/components/DictionaryEditor/useEditionPanelStore.cjs.map +1 -0
- package/dist/components/DictionaryEditor/useEditionPanelStore.d.ts +16 -0
- package/dist/components/DictionaryEditor/useEditionPanelStore.d.ts.map +1 -0
- package/dist/components/DictionaryEditor/useEditionPanelStore.mjs +15 -0
- package/dist/components/DictionaryEditor/useEditionPanelStore.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs +54 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts +8 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs +54 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.cjs +20 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.d.ts +8 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.mjs +20 -0
- package/dist/components/DictionaryFieldEditor/DictionariesSelector/dictionariesSelector.content.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +111 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.d.ts +4 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +111 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs +129 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +49 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs +129 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.cjs +40 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.d.ts +14 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.mjs +40 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +195 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts +9 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +195 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.cjs +85 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.d.ts +20 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.mjs +85 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs +149 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +53 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs +149 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +128 -0
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts +10 -0
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +128 -0
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs +129 -0
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts +10 -0
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs +129 -0
- package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs +298 -0
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.d.ts +11 -0
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs +298 -0
- package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/EnumKeyInput.cjs +71 -0
- package/dist/components/DictionaryFieldEditor/EnumKeyInput.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/EnumKeyInput.d.ts +20 -0
- package/dist/components/DictionaryFieldEditor/EnumKeyInput.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/EnumKeyInput.mjs +71 -0
- package/dist/components/DictionaryFieldEditor/EnumKeyInput.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.cjs +22 -0
- package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.d.ts +11 -0
- package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.mjs +22 -0
- package/dist/components/DictionaryFieldEditor/KeyPathBreadcrumb.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +298 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts +11 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +298 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs +79 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts +31 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs +79 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs +99 -0
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts +11 -0
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs +99 -0
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +129 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts +9 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +129 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveFormSchema.cjs +8 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveFormSchema.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveFormSchema.d.ts +5 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveFormSchema.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveFormSchema.mjs +8 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveFormSchema.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs +67 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +27 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs +67 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs +32 -0
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts +12 -0
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs +32 -0
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/editorView.content.cjs +41 -0
- package/dist/components/DictionaryFieldEditor/editorView.content.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/editorView.content.d.ts +17 -0
- package/dist/components/DictionaryFieldEditor/editorView.content.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/editorView.content.mjs +41 -0
- package/dist/components/DictionaryFieldEditor/editorView.content.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/getIsEditableSection.cjs +38 -0
- package/dist/components/DictionaryFieldEditor/getIsEditableSection.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/getIsEditableSection.d.ts +4 -0
- package/dist/components/DictionaryFieldEditor/getIsEditableSection.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/getIsEditableSection.mjs +38 -0
- package/dist/components/DictionaryFieldEditor/getIsEditableSection.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/index.cjs +9 -0
- package/dist/components/DictionaryFieldEditor/index.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/index.d.ts +4 -0
- package/dist/components/DictionaryFieldEditor/index.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/index.mjs +9 -0
- package/dist/components/DictionaryFieldEditor/index.mjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs +40 -0
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs.map +1 -0
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts +12 -0
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts.map +1 -0
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs +40 -0
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs.map +1 -0
- package/dist/components/DropDown/index.cjs +77 -0
- package/dist/components/DropDown/index.cjs.map +1 -0
- package/dist/components/DropDown/index.d.ts +21 -2
- package/dist/components/DropDown/index.d.ts.map +1 -0
- package/dist/components/DropDown/index.mjs +77 -0
- package/dist/components/DropDown/index.mjs.map +1 -0
- package/dist/components/DropDown/types.cjs +2 -0
- package/dist/components/DropDown/types.cjs.map +1 -0
- package/dist/components/DropDown/types.d.ts +11 -6
- package/dist/components/DropDown/types.d.ts.map +1 -0
- package/dist/components/DropDown/types.mjs +2 -0
- package/dist/components/DropDown/types.mjs.map +1 -0
- package/dist/components/EditableField/EditableFieldInput.cjs +28 -0
- package/dist/components/EditableField/EditableFieldInput.cjs.map +1 -0
- package/dist/components/EditableField/EditableFieldInput.d.ts +10 -0
- package/dist/components/EditableField/EditableFieldInput.d.ts.map +1 -0
- package/dist/components/EditableField/EditableFieldInput.mjs +28 -0
- package/dist/components/EditableField/EditableFieldInput.mjs.map +1 -0
- package/dist/components/EditableField/EditableFieldLayout.cjs +121 -0
- package/dist/components/EditableField/EditableFieldLayout.cjs.map +1 -0
- package/dist/components/EditableField/EditableFieldLayout.d.ts +12 -0
- package/dist/components/EditableField/EditableFieldLayout.d.ts.map +1 -0
- package/dist/components/EditableField/EditableFieldLayout.mjs +121 -0
- package/dist/components/EditableField/EditableFieldLayout.mjs.map +1 -0
- package/dist/components/EditableField/EditableFieldTextArea.cjs +29 -0
- package/dist/components/EditableField/EditableFieldTextArea.cjs.map +1 -0
- package/dist/components/EditableField/EditableFieldTextArea.d.ts +5 -0
- package/dist/components/EditableField/EditableFieldTextArea.d.ts.map +1 -0
- package/dist/components/EditableField/EditableFieldTextArea.mjs +29 -0
- package/dist/components/EditableField/EditableFieldTextArea.mjs.map +1 -0
- package/dist/components/EditableField/index.cjs +7 -0
- package/dist/components/EditableField/index.cjs.map +1 -0
- package/dist/components/EditableField/index.d.ts +3 -0
- package/dist/components/EditableField/index.d.ts.map +1 -0
- package/dist/components/EditableField/index.mjs +7 -0
- package/dist/components/EditableField/index.mjs.map +1 -0
- package/dist/components/Flags/Flag.cjs +369 -0
- package/dist/components/Flags/Flag.cjs.map +1 -0
- package/dist/components/Flags/Flag.d.ts +9 -0
- package/dist/components/Flags/Flag.d.ts.map +1 -0
- package/dist/components/Flags/Flag.mjs +369 -0
- package/dist/components/Flags/Flag.mjs.map +1 -0
- package/dist/components/Flags/index.cjs +5 -0
- package/dist/components/Flags/index.cjs.map +1 -0
- package/dist/components/Flags/index.d.ts +2 -0
- package/dist/components/Flags/index.d.ts.map +1 -0
- package/dist/components/Flags/index.mjs +5 -0
- package/dist/components/Flags/index.mjs.map +1 -0
- package/dist/components/Footer/index.cjs +23 -0
- package/dist/components/Footer/index.cjs.map +1 -0
- package/dist/components/Footer/index.d.ts +3 -2
- package/dist/components/Footer/index.d.ts.map +1 -0
- package/dist/components/Footer/index.mjs +23 -0
- package/dist/components/Footer/index.mjs.map +1 -0
- package/dist/components/Form/Form.cjs +14 -0
- package/dist/components/Form/Form.cjs.map +1 -0
- package/dist/components/Form/Form.d.ts +54 -0
- package/dist/components/Form/Form.d.ts.map +1 -0
- package/dist/components/Form/Form.mjs +14 -0
- package/dist/components/Form/Form.mjs.map +1 -0
- package/dist/components/Form/FormBase.cjs +72 -0
- package/dist/components/Form/FormBase.cjs.map +1 -0
- package/dist/components/Form/FormBase.d.ts +21 -0
- package/dist/components/Form/FormBase.d.ts.map +1 -0
- package/dist/components/Form/FormBase.mjs +72 -0
- package/dist/components/Form/FormBase.mjs.map +1 -0
- package/dist/components/Form/FormControl.cjs +23 -0
- package/dist/components/Form/FormControl.cjs.map +1 -0
- package/dist/components/Form/FormControl.d.ts +2 -0
- package/dist/components/Form/FormControl.d.ts.map +1 -0
- package/dist/components/Form/FormControl.mjs +23 -0
- package/dist/components/Form/FormControl.mjs.map +1 -0
- package/dist/components/Form/FormDescription.cjs +21 -0
- package/dist/components/Form/FormDescription.cjs.map +1 -0
- package/dist/components/Form/FormDescription.d.ts +4 -0
- package/dist/components/Form/FormDescription.d.ts.map +1 -0
- package/dist/components/Form/FormDescription.mjs +21 -0
- package/dist/components/Form/FormDescription.mjs.map +1 -0
- package/dist/components/Form/FormField.cjs +42 -0
- package/dist/components/Form/FormField.cjs.map +1 -0
- package/dist/components/Form/FormField.d.ts +16 -0
- package/dist/components/Form/FormField.d.ts.map +1 -0
- package/dist/components/Form/FormField.mjs +42 -0
- package/dist/components/Form/FormField.mjs.map +1 -0
- package/dist/components/Form/FormItem.cjs +22 -0
- package/dist/components/Form/FormItem.cjs.map +1 -0
- package/dist/components/Form/FormItem.d.ts +9 -0
- package/dist/components/Form/FormItem.d.ts.map +1 -0
- package/dist/components/Form/FormItem.mjs +22 -0
- package/dist/components/Form/FormItem.mjs.map +1 -0
- package/dist/components/Form/FormLabel.cjs +23 -0
- package/dist/components/Form/FormLabel.cjs.map +1 -0
- package/dist/components/Form/FormLabel.d.ts +2 -0
- package/dist/components/Form/FormLabel.d.ts.map +1 -0
- package/dist/components/Form/FormLabel.mjs +23 -0
- package/dist/components/Form/FormLabel.mjs.map +1 -0
- package/dist/components/Form/FormMessage.cjs +27 -0
- package/dist/components/Form/FormMessage.cjs.map +1 -0
- package/dist/components/Form/FormMessage.d.ts +4 -0
- package/dist/components/Form/FormMessage.d.ts.map +1 -0
- package/dist/components/Form/FormMessage.mjs +27 -0
- package/dist/components/Form/FormMessage.mjs.map +1 -0
- package/dist/components/Form/elements/EditableFieldInputElement.cjs +7 -0
- package/dist/components/Form/elements/EditableFieldInputElement.cjs.map +1 -0
- package/dist/components/Form/elements/EditableFieldInputElement.d.ts +14 -0
- package/dist/components/Form/elements/EditableFieldInputElement.d.ts.map +1 -0
- package/dist/components/Form/elements/EditableFieldInputElement.mjs +7 -0
- package/dist/components/Form/elements/EditableFieldInputElement.mjs.map +1 -0
- package/dist/components/Form/elements/EditableFieldTextAreaElement.cjs +7 -0
- package/dist/components/Form/elements/EditableFieldTextAreaElement.cjs.map +1 -0
- package/dist/components/Form/elements/EditableFieldTextAreaElement.d.ts +14 -0
- package/dist/components/Form/elements/EditableFieldTextAreaElement.d.ts.map +1 -0
- package/dist/components/Form/elements/EditableFieldTextAreaElement.mjs +7 -0
- package/dist/components/Form/elements/EditableFieldTextAreaElement.mjs.map +1 -0
- package/dist/components/Form/elements/FormElement.cjs +11 -0
- package/dist/components/Form/elements/FormElement.cjs.map +1 -0
- package/dist/components/Form/elements/FormElement.d.ts +21 -0
- package/dist/components/Form/elements/FormElement.d.ts.map +1 -0
- package/dist/components/Form/elements/FormElement.mjs +11 -0
- package/dist/components/Form/elements/FormElement.mjs.map +1 -0
- package/dist/components/Form/elements/FormElementWrapper.cjs +37 -0
- package/dist/components/Form/elements/FormElementWrapper.cjs.map +1 -0
- package/dist/components/Form/elements/FormElementWrapper.d.ts +10 -0
- package/dist/components/Form/elements/FormElementWrapper.d.ts.map +1 -0
- package/dist/components/Form/elements/FormElementWrapper.mjs +37 -0
- package/dist/components/Form/elements/FormElementWrapper.mjs.map +1 -0
- package/dist/components/Form/elements/InputElement.cjs +8 -0
- package/dist/components/Form/elements/InputElement.cjs.map +1 -0
- package/dist/components/Form/elements/InputElement.d.ts +10 -0
- package/dist/components/Form/elements/InputElement.d.ts.map +1 -0
- package/dist/components/Form/elements/InputElement.mjs +8 -0
- package/dist/components/Form/elements/InputElement.mjs.map +1 -0
- package/dist/components/Form/elements/InputPasswordElement.cjs +8 -0
- package/dist/components/Form/elements/InputPasswordElement.cjs.map +1 -0
- package/dist/components/Form/elements/InputPasswordElement.d.ts +11 -0
- package/dist/components/Form/elements/InputPasswordElement.d.ts.map +1 -0
- package/dist/components/Form/elements/InputPasswordElement.mjs +8 -0
- package/dist/components/Form/elements/InputPasswordElement.mjs.map +1 -0
- package/dist/components/Form/elements/MultiselectElement.cjs +9 -0
- package/dist/components/Form/elements/MultiselectElement.cjs.map +1 -0
- package/dist/components/Form/elements/MultiselectElement.d.ts +14 -0
- package/dist/components/Form/elements/MultiselectElement.d.ts.map +1 -0
- package/dist/components/Form/elements/MultiselectElement.mjs +9 -0
- package/dist/components/Form/elements/MultiselectElement.mjs.map +1 -0
- package/dist/components/Form/elements/SelectElement.cjs +9 -0
- package/dist/components/Form/elements/SelectElement.cjs.map +1 -0
- package/dist/components/Form/elements/SelectElement.d.ts +14 -0
- package/dist/components/Form/elements/SelectElement.d.ts.map +1 -0
- package/dist/components/Form/elements/SelectElement.mjs +9 -0
- package/dist/components/Form/elements/SelectElement.mjs.map +1 -0
- package/dist/components/Form/elements/SwitchSelectorElement.cjs +9 -0
- package/dist/components/Form/elements/SwitchSelectorElement.cjs.map +1 -0
- package/dist/components/Form/elements/SwitchSelectorElement.d.ts +14 -0
- package/dist/components/Form/elements/SwitchSelectorElement.d.ts.map +1 -0
- package/dist/components/Form/elements/SwitchSelectorElement.mjs +9 -0
- package/dist/components/Form/elements/SwitchSelectorElement.mjs.map +1 -0
- package/dist/components/Form/elements/TextAreaElement.cjs +7 -0
- package/dist/components/Form/elements/TextAreaElement.cjs.map +1 -0
- package/dist/components/Form/elements/TextAreaElement.d.ts +10 -0
- package/dist/components/Form/elements/TextAreaElement.d.ts.map +1 -0
- package/dist/components/Form/elements/TextAreaElement.mjs +7 -0
- package/dist/components/Form/elements/TextAreaElement.mjs.map +1 -0
- package/dist/components/Form/elements/index.cjs +10 -0
- package/dist/components/Form/elements/index.cjs.map +1 -0
- package/dist/components/Form/elements/index.d.ts +7 -0
- package/dist/components/Form/elements/index.d.ts.map +1 -0
- package/dist/components/Form/elements/index.mjs +10 -0
- package/dist/components/Form/elements/index.mjs.map +1 -0
- package/dist/components/Form/index.cjs +9 -0
- package/dist/components/Form/index.cjs.map +1 -0
- package/dist/components/Form/index.d.ts +4 -0
- package/dist/components/Form/index.d.ts.map +1 -0
- package/dist/components/Form/index.mjs +9 -0
- package/dist/components/Form/index.mjs.map +1 -0
- package/dist/components/Form/layout/FormItemLayout.cjs +7 -0
- package/dist/components/Form/layout/FormItemLayout.cjs.map +1 -0
- package/dist/components/Form/layout/FormItemLayout.d.ts +11 -0
- package/dist/components/Form/layout/FormItemLayout.d.ts.map +1 -0
- package/dist/components/Form/layout/FormItemLayout.mjs +7 -0
- package/dist/components/Form/layout/FormItemLayout.mjs.map +1 -0
- package/dist/components/Form/layout/FormLabelLayout.cjs +22 -0
- package/dist/components/Form/layout/FormLabelLayout.cjs.map +1 -0
- package/dist/components/Form/layout/FormLabelLayout.d.ts +11 -0
- package/dist/components/Form/layout/FormLabelLayout.d.ts.map +1 -0
- package/dist/components/Form/layout/FormLabelLayout.mjs +22 -0
- package/dist/components/Form/layout/FormLabelLayout.mjs.map +1 -0
- package/dist/components/Form/layout/RequiredStar.cjs +6 -0
- package/dist/components/Form/layout/RequiredStar.cjs.map +1 -0
- package/dist/components/Form/layout/RequiredStar.d.ts +8 -0
- package/dist/components/Form/layout/RequiredStar.d.ts.map +1 -0
- package/dist/components/Form/layout/RequiredStar.mjs +6 -0
- package/dist/components/Form/layout/RequiredStar.mjs.map +1 -0
- package/dist/components/Form/layout/index.cjs +7 -0
- package/dist/components/Form/layout/index.cjs.map +1 -0
- package/dist/components/Form/layout/index.d.ts +3 -0
- package/dist/components/Form/layout/index.d.ts.map +1 -0
- package/dist/components/Form/layout/index.mjs +7 -0
- package/dist/components/Form/layout/index.mjs.map +1 -0
- package/dist/components/Headers/SectionScroller.cjs +29 -0
- package/dist/components/Headers/SectionScroller.cjs.map +1 -0
- package/dist/components/Headers/SectionScroller.d.ts +1 -0
- package/dist/components/Headers/SectionScroller.d.ts.map +1 -0
- package/dist/components/Headers/SectionScroller.mjs +29 -0
- package/dist/components/Headers/SectionScroller.mjs.map +1 -0
- package/dist/components/Headers/index.cjs +122 -0
- package/dist/components/Headers/index.cjs.map +1 -0
- package/dist/components/Headers/index.d.ts +11 -6
- package/dist/components/Headers/index.d.ts.map +1 -0
- package/dist/components/Headers/index.mjs +122 -0
- package/dist/components/Headers/index.mjs.map +1 -0
- package/dist/components/IDE/CodeRender.cjs +627 -0
- package/dist/components/IDE/CodeRender.cjs.map +1 -0
- package/dist/components/IDE/CodeRender.d.ts +1 -0
- package/dist/components/IDE/CodeRender.d.ts.map +1 -0
- package/dist/components/IDE/CodeRender.mjs +605 -0
- package/dist/components/IDE/CodeRender.mjs.map +1 -0
- package/dist/components/IDE/FileList.cjs +24 -0
- package/dist/components/IDE/FileList.cjs.map +1 -0
- package/dist/components/IDE/FileList.d.ts +7 -0
- package/dist/components/IDE/FileList.d.ts.map +1 -0
- package/dist/components/IDE/FileList.mjs +24 -0
- package/dist/components/IDE/FileList.mjs.map +1 -0
- package/dist/components/IDE/FileTree.cjs +105 -0
- package/dist/components/IDE/FileTree.cjs.map +1 -0
- package/dist/components/IDE/FileTree.d.ts +1 -0
- package/dist/components/IDE/FileTree.d.ts.map +1 -0
- package/dist/components/IDE/FileTree.mjs +105 -0
- package/dist/components/IDE/FileTree.mjs.map +1 -0
- package/dist/components/IDE/IDE.cjs +89 -0
- package/dist/components/IDE/IDE.cjs.map +1 -0
- package/dist/components/IDE/IDE.d.ts +1 -0
- package/dist/components/IDE/IDE.d.ts.map +1 -0
- package/dist/components/IDE/IDE.mjs +89 -0
- package/dist/components/IDE/IDE.mjs.map +1 -0
- package/dist/components/IDE/MarkDownRender.cjs +26 -0
- package/dist/components/IDE/MarkDownRender.cjs.map +1 -0
- package/dist/components/IDE/MarkDownRender.d.ts +1 -0
- package/dist/components/IDE/MarkDownRender.d.ts.map +1 -0
- package/dist/components/IDE/MarkDownRender.mjs +26 -0
- package/dist/components/IDE/MarkDownRender.mjs.map +1 -0
- package/dist/components/IDE/createFileTree.cjs +25 -0
- package/dist/components/IDE/createFileTree.cjs.map +1 -0
- package/dist/components/IDE/createFileTree.d.ts +1 -0
- package/dist/components/IDE/createFileTree.d.ts.map +1 -0
- package/dist/components/IDE/createFileTree.mjs +25 -0
- package/dist/components/IDE/createFileTree.mjs.map +1 -0
- package/dist/components/IDE/index.cjs +9 -0
- package/dist/components/IDE/index.cjs.map +1 -0
- package/dist/components/IDE/index.d.ts +2 -0
- package/dist/components/IDE/index.d.ts.map +1 -0
- package/dist/components/IDE/index.mjs +9 -0
- package/dist/components/IDE/index.mjs.map +1 -0
- package/dist/components/InformationTag/index.cjs +14 -0
- package/dist/components/InformationTag/index.cjs.map +1 -0
- package/dist/components/InformationTag/index.d.ts +6 -0
- package/dist/components/InformationTag/index.d.ts.map +1 -0
- package/dist/components/InformationTag/index.mjs +14 -0
- package/dist/components/InformationTag/index.mjs.map +1 -0
- package/dist/components/Input/Input.cjs +46 -0
- package/dist/components/Input/Input.cjs.map +1 -0
- package/dist/components/Input/Input.d.ts +12 -0
- package/dist/components/Input/Input.d.ts.map +1 -0
- package/dist/components/Input/Input.mjs +46 -0
- package/dist/components/Input/Input.mjs.map +1 -0
- package/dist/components/Input/InputPassword.cjs +47 -0
- package/dist/components/Input/InputPassword.cjs.map +1 -0
- package/dist/components/Input/InputPassword.d.ts +6 -0
- package/dist/components/Input/InputPassword.d.ts.map +1 -0
- package/dist/components/Input/InputPassword.mjs +47 -0
- package/dist/components/Input/InputPassword.mjs.map +1 -0
- package/dist/components/Input/index.cjs +8 -0
- package/dist/components/Input/index.cjs.map +1 -0
- package/dist/components/Input/index.d.ts +3 -0
- package/dist/components/Input/index.d.ts.map +1 -0
- package/dist/components/Input/index.mjs +8 -0
- package/dist/components/Input/index.mjs.map +1 -0
- package/dist/components/Label/index.cjs +16 -0
- package/dist/components/Label/index.cjs.map +1 -0
- package/dist/components/Label/index.d.ts +4 -0
- package/dist/components/Label/index.d.ts.map +1 -0
- package/dist/components/Label/index.mjs +16 -0
- package/dist/components/Label/index.mjs.map +1 -0
- package/dist/components/Link/Link.cjs +67 -0
- package/dist/components/Link/Link.cjs.map +1 -0
- package/dist/components/Link/Link.d.ts +14 -0
- package/dist/components/Link/Link.d.ts.map +1 -0
- package/dist/components/Link/Link.mjs +67 -0
- package/dist/components/Link/Link.mjs.map +1 -0
- package/dist/components/Link/index.cjs +5 -0
- package/dist/components/Link/index.cjs.map +1 -0
- package/dist/components/Link/index.d.ts +2 -0
- package/dist/components/Link/index.d.ts.map +1 -0
- package/dist/components/Link/index.mjs +5 -0
- package/dist/components/Link/index.mjs.map +1 -0
- package/dist/components/Loader/index.cjs +20 -0
- package/dist/components/Loader/index.cjs.map +1 -0
- package/dist/components/Loader/index.d.ts +21 -0
- package/dist/components/Loader/index.d.ts.map +1 -0
- package/dist/components/Loader/index.mjs +20 -0
- package/dist/components/Loader/index.mjs.map +1 -0
- package/dist/components/Loader/spinner.cjs +75 -0
- package/dist/components/Loader/spinner.cjs.map +1 -0
- package/dist/components/Loader/spinner.d.ts +1 -0
- package/dist/components/Loader/spinner.d.ts.map +1 -0
- package/dist/components/Loader/spinner.mjs +75 -0
- package/dist/components/Loader/spinner.mjs.map +1 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs +76 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs.map +1 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts +3 -2
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts.map +1 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs +76 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs.map +1 -0
- package/dist/components/LocaleSwitcherDropDown/index.cjs +5 -0
- package/dist/components/LocaleSwitcherDropDown/index.cjs.map +1 -0
- package/dist/components/LocaleSwitcherDropDown/index.d.ts +1 -0
- package/dist/components/LocaleSwitcherDropDown/index.d.ts.map +1 -0
- package/dist/components/LocaleSwitcherDropDown/index.mjs +5 -0
- package/dist/components/LocaleSwitcherDropDown/index.mjs.map +1 -0
- package/dist/components/Logo/LogoCircle.cjs +28 -0
- package/dist/components/Logo/LogoCircle.cjs.map +1 -0
- package/dist/components/Logo/LogoCircle.d.ts +1 -0
- package/dist/components/Logo/LogoCircle.d.ts.map +1 -0
- package/dist/components/Logo/LogoCircle.mjs +28 -0
- package/dist/components/Logo/LogoCircle.mjs.map +1 -0
- package/dist/components/Logo/LogoNoFrame.cjs +111 -0
- package/dist/components/Logo/LogoNoFrame.cjs.map +1 -0
- package/dist/components/Logo/LogoNoFrame.d.ts +1 -0
- package/dist/components/Logo/LogoNoFrame.d.ts.map +1 -0
- package/dist/components/Logo/LogoNoFrame.mjs +111 -0
- package/dist/components/Logo/LogoNoFrame.mjs.map +1 -0
- package/dist/components/Logo/LogoSquare.cjs +28 -0
- package/dist/components/Logo/LogoSquare.cjs.map +1 -0
- package/dist/components/Logo/LogoSquare.d.ts +1 -0
- package/dist/components/Logo/LogoSquare.d.ts.map +1 -0
- package/dist/components/Logo/LogoSquare.mjs +28 -0
- package/dist/components/Logo/LogoSquare.mjs.map +1 -0
- package/dist/components/Logo/LogoSquircle.cjs +65 -0
- package/dist/components/Logo/LogoSquircle.cjs.map +1 -0
- package/dist/components/Logo/LogoSquircle.d.ts +1 -0
- package/dist/components/Logo/LogoSquircle.d.ts.map +1 -0
- package/dist/components/Logo/LogoSquircle.mjs +65 -0
- package/dist/components/Logo/LogoSquircle.mjs.map +1 -0
- package/dist/components/Logo/LogoTextOnly.cjs +102 -0
- package/dist/components/Logo/LogoTextOnly.cjs.map +1 -0
- package/dist/components/Logo/LogoTextOnly.d.ts +1 -0
- package/dist/components/Logo/LogoTextOnly.d.ts.map +1 -0
- package/dist/components/Logo/LogoTextOnly.mjs +102 -0
- package/dist/components/Logo/LogoTextOnly.mjs.map +1 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.cjs +115 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.cjs.map +1 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.d.ts +1 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.d.ts.map +1 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.mjs +115 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.mjs.map +1 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.cjs +114 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.cjs.map +1 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.d.ts +1 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.d.ts.map +1 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.mjs +114 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.mjs.map +1 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.cjs +68 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.cjs.map +1 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.d.ts +1 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.d.ts.map +1 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.mjs +68 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.mjs.map +1 -0
- package/dist/components/Logo/LogoWithTextCircle.cjs +202 -0
- package/dist/components/Logo/LogoWithTextCircle.cjs.map +1 -0
- package/dist/components/Logo/LogoWithTextCircle.d.ts +1 -0
- package/dist/components/Logo/LogoWithTextCircle.d.ts.map +1 -0
- package/dist/components/Logo/LogoWithTextCircle.mjs +202 -0
- package/dist/components/Logo/LogoWithTextCircle.mjs.map +1 -0
- package/dist/components/Logo/LogoWithTextNoFrame.cjs +114 -0
- package/dist/components/Logo/LogoWithTextNoFrame.cjs.map +1 -0
- package/dist/components/Logo/LogoWithTextNoFrame.d.ts +1 -0
- package/dist/components/Logo/LogoWithTextNoFrame.d.ts.map +1 -0
- package/dist/components/Logo/LogoWithTextNoFrame.mjs +114 -0
- package/dist/components/Logo/LogoWithTextNoFrame.mjs.map +1 -0
- package/dist/components/Logo/LogoWithTextSquircle.cjs +68 -0
- package/dist/components/Logo/LogoWithTextSquircle.cjs.map +1 -0
- package/dist/components/Logo/LogoWithTextSquircle.d.ts +1 -0
- package/dist/components/Logo/LogoWithTextSquircle.d.ts.map +1 -0
- package/dist/components/Logo/LogoWithTextSquircle.mjs +68 -0
- package/dist/components/Logo/LogoWithTextSquircle.mjs.map +1 -0
- package/dist/components/Logo/index.cjs +67 -0
- package/dist/components/Logo/index.cjs.map +1 -0
- package/dist/components/Logo/index.d.ts +1 -0
- package/dist/components/Logo/index.d.ts.map +1 -0
- package/dist/components/Logo/index.mjs +67 -0
- package/dist/components/Logo/index.mjs.map +1 -0
- package/dist/components/MarkDownRender/index.cjs +104 -0
- package/dist/components/MarkDownRender/index.cjs.map +1 -0
- package/dist/components/MarkDownRender/index.d.ts +1 -0
- package/dist/components/MarkDownRender/index.d.ts.map +1 -0
- package/dist/components/MarkDownRender/index.mjs +104 -0
- package/dist/components/MarkDownRender/index.mjs.map +1 -0
- package/dist/components/MaxHeightSmoother/index.cjs +42 -0
- package/dist/components/MaxHeightSmoother/index.cjs.map +1 -0
- package/dist/components/MaxHeightSmoother/index.d.ts +1 -0
- package/dist/components/MaxHeightSmoother/index.d.ts.map +1 -0
- package/dist/components/MaxHeightSmoother/index.mjs +42 -0
- package/dist/components/MaxHeightSmoother/index.mjs.map +1 -0
- package/dist/components/MaxWidthSmoother/index.cjs +36 -0
- package/dist/components/MaxWidthSmoother/index.cjs.map +1 -0
- package/dist/components/MaxWidthSmoother/index.d.ts +4 -4
- package/dist/components/MaxWidthSmoother/index.d.ts.map +1 -0
- package/dist/components/MaxWidthSmoother/index.mjs +36 -0
- package/dist/components/MaxWidthSmoother/index.mjs.map +1 -0
- package/dist/components/Modal/Modal.cjs +119 -0
- package/dist/components/Modal/Modal.cjs.map +1 -0
- package/dist/components/Modal/Modal.d.ts +24 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -0
- package/dist/components/Modal/Modal.mjs +119 -0
- package/dist/components/Modal/Modal.mjs.map +1 -0
- package/dist/components/Modal/index.cjs +5 -0
- package/dist/components/Modal/index.cjs.map +1 -0
- package/dist/components/Modal/index.d.ts +2 -9
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/Modal/index.mjs +5 -0
- package/dist/components/Modal/index.mjs.map +1 -0
- package/dist/components/Navbar/Burger.cjs +60 -0
- package/dist/components/Navbar/Burger.cjs.map +1 -0
- package/dist/components/Navbar/Burger.d.ts +2 -1
- package/dist/components/Navbar/Burger.d.ts.map +1 -0
- package/dist/components/Navbar/Burger.mjs +60 -0
- package/dist/components/Navbar/Burger.mjs.map +1 -0
- package/dist/components/Navbar/DesktopNavbar.cjs +44 -0
- package/dist/components/Navbar/DesktopNavbar.cjs.map +1 -0
- package/dist/components/Navbar/DesktopNavbar.d.ts +1 -0
- package/dist/components/Navbar/DesktopNavbar.d.ts.map +1 -0
- package/dist/components/Navbar/DesktopNavbar.mjs +44 -0
- package/dist/components/Navbar/DesktopNavbar.mjs.map +1 -0
- package/dist/components/Navbar/MobileNavbar.cjs +170 -0
- package/dist/components/Navbar/MobileNavbar.cjs.map +1 -0
- package/dist/components/Navbar/MobileNavbar.d.ts +2 -0
- package/dist/components/Navbar/MobileNavbar.d.ts.map +1 -0
- package/dist/components/Navbar/MobileNavbar.mjs +170 -0
- package/dist/components/Navbar/MobileNavbar.mjs.map +1 -0
- package/dist/components/Navbar/index.cjs +53 -0
- package/dist/components/Navbar/index.cjs.map +1 -0
- package/dist/components/Navbar/index.d.ts +2 -0
- package/dist/components/Navbar/index.d.ts.map +1 -0
- package/dist/components/Navbar/index.mjs +53 -0
- package/dist/components/Navbar/index.mjs.map +1 -0
- package/dist/components/Navbar/useNavigation.cjs +57 -0
- package/dist/components/Navbar/useNavigation.cjs.map +1 -0
- package/dist/components/Navbar/useNavigation.d.ts +1 -0
- package/dist/components/Navbar/useNavigation.d.ts.map +1 -0
- package/dist/components/Navbar/useNavigation.mjs +57 -0
- package/dist/components/Navbar/useNavigation.mjs.map +1 -0
- package/dist/components/Pattern/DotPattern.cjs +47 -0
- package/dist/components/Pattern/DotPattern.cjs.map +1 -0
- package/dist/components/Pattern/DotPattern.d.ts +14 -0
- package/dist/components/Pattern/DotPattern.d.ts.map +1 -0
- package/dist/components/Pattern/DotPattern.mjs +47 -0
- package/dist/components/Pattern/DotPattern.mjs.map +1 -0
- package/dist/components/Pattern/GridPattern.cjs +63 -0
- package/dist/components/Pattern/GridPattern.cjs.map +1 -0
- package/dist/components/Pattern/GridPattern.d.ts +13 -0
- package/dist/components/Pattern/GridPattern.d.ts.map +1 -0
- package/dist/components/Pattern/GridPattern.mjs +63 -0
- package/dist/components/Pattern/GridPattern.mjs.map +1 -0
- package/dist/components/Pattern/SpotLight.cjs +73 -0
- package/dist/components/Pattern/SpotLight.cjs.map +1 -0
- package/dist/components/Pattern/SpotLight.d.ts +13 -0
- package/dist/components/Pattern/SpotLight.d.ts.map +1 -0
- package/dist/components/Pattern/SpotLight.mjs +73 -0
- package/dist/components/Pattern/SpotLight.mjs.map +1 -0
- package/dist/components/Pattern/index.cjs +9 -0
- package/dist/components/Pattern/index.cjs.map +1 -0
- package/dist/components/Pattern/index.d.ts +4 -0
- package/dist/components/Pattern/index.d.ts.map +1 -0
- package/dist/components/Pattern/index.mjs +9 -0
- package/dist/components/Pattern/index.mjs.map +1 -0
- package/dist/components/Popover/index.cjs +25 -0
- package/dist/components/Popover/index.cjs.map +1 -0
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/Popover/index.d.ts.map +1 -0
- package/dist/components/Popover/index.mjs +25 -0
- package/dist/components/Popover/index.mjs.map +1 -0
- package/dist/components/PressableSpan/PressableSpan.cjs +90 -0
- package/dist/components/PressableSpan/PressableSpan.cjs.map +1 -0
- package/dist/components/PressableSpan/PressableSpan.d.ts +11 -0
- package/dist/components/PressableSpan/PressableSpan.d.ts.map +1 -0
- package/dist/components/PressableSpan/PressableSpan.mjs +90 -0
- package/dist/components/PressableSpan/PressableSpan.mjs.map +1 -0
- package/dist/components/PressableSpan/index.cjs +5 -0
- package/dist/components/PressableSpan/index.cjs.map +1 -0
- package/dist/components/PressableSpan/index.d.ts +2 -0
- package/dist/components/PressableSpan/index.d.ts.map +1 -0
- package/dist/components/PressableSpan/index.mjs +5 -0
- package/dist/components/PressableSpan/index.mjs.map +1 -0
- package/dist/components/ProfileDropDown/index.cjs +25 -0
- package/dist/components/ProfileDropDown/index.cjs.map +1 -0
- package/dist/components/ProfileDropDown/index.d.ts +1 -0
- package/dist/components/ProfileDropDown/index.d.ts.map +1 -0
- package/dist/components/ProfileDropDown/index.mjs +25 -0
- package/dist/components/ProfileDropDown/index.mjs.map +1 -0
- package/dist/components/RightDrawer/RightDrawer.cjs +89 -0
- package/dist/components/RightDrawer/RightDrawer.cjs.map +1 -0
- package/dist/components/RightDrawer/RightDrawer.d.ts +1 -0
- package/dist/components/RightDrawer/RightDrawer.d.ts.map +1 -0
- package/dist/components/RightDrawer/RightDrawer.mjs +89 -0
- package/dist/components/RightDrawer/RightDrawer.mjs.map +1 -0
- package/dist/components/RightDrawer/index.cjs +8 -0
- package/dist/components/RightDrawer/index.cjs.map +1 -0
- package/dist/components/RightDrawer/index.d.ts +1 -0
- package/dist/components/RightDrawer/index.d.ts.map +1 -0
- package/dist/components/RightDrawer/index.mjs +8 -0
- package/dist/components/RightDrawer/index.mjs.map +1 -0
- package/dist/components/RightDrawer/useRightDrawerStore.cjs +18 -0
- package/dist/components/RightDrawer/useRightDrawerStore.cjs.map +1 -0
- package/dist/components/RightDrawer/useRightDrawerStore.d.ts +1 -0
- package/dist/components/RightDrawer/useRightDrawerStore.d.ts.map +1 -0
- package/dist/components/RightDrawer/useRightDrawerStore.mjs +18 -0
- package/dist/components/RightDrawer/useRightDrawerStore.mjs.map +1 -0
- package/dist/components/Select/Multiselect.cjs +334 -0
- package/dist/components/Select/Multiselect.cjs.map +1 -0
- package/dist/components/Select/Multiselect.d.ts +97 -0
- package/dist/components/Select/Multiselect.d.ts.map +1 -0
- package/dist/components/Select/Multiselect.mjs +334 -0
- package/dist/components/Select/Multiselect.mjs.map +1 -0
- package/dist/components/Select/Select.cjs +152 -0
- package/dist/components/Select/Select.cjs.map +1 -0
- package/dist/components/Select/Select.d.ts +42 -0
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/Select.mjs +135 -0
- package/dist/components/Select/Select.mjs.map +1 -0
- package/dist/components/Select/index.cjs +10 -0
- package/dist/components/Select/index.cjs.map +1 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Select/index.mjs +10 -0
- package/dist/components/Select/index.mjs.map +1 -0
- package/dist/components/SwitchSelector/index.cjs +143 -0
- package/dist/components/SwitchSelector/index.cjs.map +1 -0
- package/dist/components/SwitchSelector/index.d.ts +41 -0
- package/dist/components/SwitchSelector/index.d.ts.map +1 -0
- package/dist/components/SwitchSelector/index.mjs +143 -0
- package/dist/components/SwitchSelector/index.mjs.map +1 -0
- package/dist/components/TabSelector/TabSelector.cjs +108 -0
- package/dist/components/TabSelector/TabSelector.cjs.map +1 -0
- package/dist/components/TabSelector/TabSelector.d.ts +35 -0
- package/dist/components/TabSelector/TabSelector.d.ts.map +1 -0
- package/dist/components/TabSelector/TabSelector.mjs +108 -0
- package/dist/components/TabSelector/TabSelector.mjs.map +1 -0
- package/dist/components/TabSelector/index.cjs +5 -0
- package/dist/components/TabSelector/index.cjs.map +1 -0
- package/dist/components/TabSelector/index.d.ts +2 -0
- package/dist/components/TabSelector/index.d.ts.map +1 -0
- package/dist/components/TabSelector/index.mjs +5 -0
- package/dist/components/TabSelector/index.mjs.map +1 -0
- package/dist/components/TextArea/AutoSizeTextArea.cjs +54 -0
- package/dist/components/TextArea/AutoSizeTextArea.cjs.map +1 -0
- package/dist/components/TextArea/AutoSizeTextArea.d.ts +8 -0
- package/dist/components/TextArea/AutoSizeTextArea.d.ts.map +1 -0
- package/dist/components/TextArea/AutoSizeTextArea.mjs +54 -0
- package/dist/components/TextArea/AutoSizeTextArea.mjs.map +1 -0
- package/dist/components/TextArea/TextArea.cjs +27 -0
- package/dist/components/TextArea/TextArea.cjs.map +1 -0
- package/dist/components/TextArea/TextArea.d.ts +9 -0
- package/dist/components/TextArea/TextArea.d.ts.map +1 -0
- package/dist/components/TextArea/TextArea.mjs +27 -0
- package/dist/components/TextArea/TextArea.mjs.map +1 -0
- package/dist/components/TextArea/index.cjs +7 -0
- package/dist/components/TextArea/index.cjs.map +1 -0
- package/dist/components/TextArea/index.d.ts +3 -0
- package/dist/components/TextArea/index.d.ts.map +1 -0
- package/dist/components/TextArea/index.mjs +7 -0
- package/dist/components/TextArea/index.mjs.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs +89 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.d.ts +1 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.d.ts.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs +89 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.cjs +84 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.cjs.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.d.ts +1 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.d.ts.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.mjs +84 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.mjs.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/index.cjs +9 -0
- package/dist/components/ThemeSwitcherDropDown/index.cjs.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/index.d.ts +1 -0
- package/dist/components/ThemeSwitcherDropDown/index.d.ts.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/index.mjs +9 -0
- package/dist/components/ThemeSwitcherDropDown/index.mjs.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/types.cjs +10 -0
- package/dist/components/ThemeSwitcherDropDown/types.cjs.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/types.d.ts +1 -0
- package/dist/components/ThemeSwitcherDropDown/types.d.ts.map +1 -0
- package/dist/components/ThemeSwitcherDropDown/types.mjs +10 -0
- package/dist/components/ThemeSwitcherDropDown/types.mjs.map +1 -0
- package/dist/components/Toaster/Toast.cjs +117 -0
- package/dist/components/Toaster/Toast.cjs.map +1 -0
- package/dist/components/Toaster/Toast.d.ts +16 -0
- package/dist/components/Toaster/Toast.d.ts.map +1 -0
- package/dist/components/Toaster/Toast.mjs +100 -0
- package/dist/components/Toaster/Toast.mjs.map +1 -0
- package/dist/components/Toaster/Toaster.cjs +22 -0
- package/dist/components/Toaster/Toaster.cjs.map +1 -0
- package/dist/components/Toaster/Toaster.d.ts +2 -0
- package/dist/components/Toaster/Toaster.d.ts.map +1 -0
- package/dist/components/Toaster/Toaster.mjs +22 -0
- package/dist/components/Toaster/Toaster.mjs.map +1 -0
- package/dist/components/Toaster/index.cjs +17 -0
- package/dist/components/Toaster/index.cjs.map +1 -0
- package/dist/components/Toaster/index.d.ts +4 -0
- package/dist/components/Toaster/index.d.ts.map +1 -0
- package/dist/components/Toaster/index.mjs +17 -0
- package/dist/components/Toaster/index.mjs.map +1 -0
- package/dist/components/Toaster/useToast.cjs +124 -0
- package/dist/components/Toaster/useToast.cjs.map +1 -0
- package/dist/components/Toaster/useToast.d.ts +49 -0
- package/dist/components/Toaster/useToast.d.ts.map +1 -0
- package/dist/components/Toaster/useToast.mjs +124 -0
- package/dist/components/Toaster/useToast.mjs.map +1 -0
- package/dist/components/WithResizer/index.cjs +91 -0
- package/dist/components/WithResizer/index.cjs.map +1 -0
- package/dist/components/WithResizer/index.d.ts +1 -0
- package/dist/components/WithResizer/index.d.ts.map +1 -0
- package/dist/components/WithResizer/index.mjs +91 -0
- package/dist/components/WithResizer/index.mjs.map +1 -0
- package/dist/components/index.cjs +172 -0
- package/dist/components/index.cjs.map +1 -0
- package/dist/components/index.d.ts +21 -2
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.mjs +172 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/hooks/index.cjs +58 -0
- package/dist/hooks/index.cjs.map +1 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.mjs +58 -0
- package/dist/hooks/index.mjs.map +1 -0
- package/dist/hooks/intlayerAPIHooks.cjs +244 -0
- package/dist/hooks/intlayerAPIHooks.cjs.map +1 -0
- package/dist/hooks/intlayerAPIHooks.d.ts +56 -0
- package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -0
- package/dist/hooks/intlayerAPIHooks.mjs +244 -0
- package/dist/hooks/intlayerAPIHooks.mjs.map +1 -0
- package/dist/hooks/useAsync/index.cjs +5 -0
- package/dist/hooks/useAsync/index.cjs.map +1 -0
- package/dist/hooks/useAsync/index.d.ts +2 -0
- package/dist/hooks/useAsync/index.d.ts.map +1 -0
- package/dist/hooks/useAsync/index.mjs +5 -0
- package/dist/hooks/useAsync/index.mjs.map +1 -0
- package/dist/hooks/useAsync/useAsync.cjs +275 -0
- package/dist/hooks/useAsync/useAsync.cjs.map +1 -0
- package/dist/hooks/useAsync/useAsync.d.ts +93 -0
- package/dist/hooks/useAsync/useAsync.d.ts.map +1 -0
- package/dist/hooks/useAsync/useAsync.mjs +275 -0
- package/dist/hooks/useAsync/useAsync.mjs.map +1 -0
- package/dist/hooks/useAsync/useAsyncStateStore.cjs +168 -0
- package/dist/hooks/useAsync/useAsyncStateStore.cjs.map +1 -0
- package/dist/hooks/useAsync/useAsyncStateStore.d.ts +34 -0
- package/dist/hooks/useAsync/useAsyncStateStore.d.ts.map +1 -0
- package/dist/hooks/useAsync/useAsyncStateStore.mjs +168 -0
- package/dist/hooks/useAsync/useAsyncStateStore.mjs.map +1 -0
- package/dist/hooks/useAsync/useAsyncWrapper.cjs +10 -0
- package/dist/hooks/useAsync/useAsyncWrapper.cjs.map +1 -0
- package/dist/hooks/useAsync/useAsyncWrapper.d.ts +38 -0
- package/dist/hooks/useAsync/useAsyncWrapper.d.ts.map +1 -0
- package/dist/hooks/useAsync/useAsyncWrapper.mjs +10 -0
- package/dist/hooks/useAsync/useAsyncWrapper.mjs.map +1 -0
- package/dist/hooks/useDevice.cjs +61 -0
- package/dist/hooks/useDevice.cjs.map +1 -0
- package/dist/hooks/useDevice.d.ts +1 -0
- package/dist/hooks/useDevice.d.ts.map +1 -0
- package/dist/hooks/useDevice.mjs +61 -0
- package/dist/hooks/useDevice.mjs.map +1 -0
- package/dist/hooks/useGetAllDictionaries.cjs +32 -0
- package/dist/hooks/useGetAllDictionaries.cjs.map +1 -0
- package/dist/hooks/useGetAllDictionaries.d.ts +9 -0
- package/dist/hooks/useGetAllDictionaries.d.ts.map +1 -0
- package/dist/hooks/useGetAllDictionaries.mjs +32 -0
- package/dist/hooks/useGetAllDictionaries.mjs.map +1 -0
- package/dist/hooks/useGetElementOrWindow.cjs +13 -0
- package/dist/hooks/useGetElementOrWindow.cjs.map +1 -0
- package/dist/hooks/useGetElementOrWindow.d.ts +1 -0
- package/dist/hooks/useGetElementOrWindow.d.ts.map +1 -0
- package/dist/hooks/useGetElementOrWindow.mjs +13 -0
- package/dist/hooks/useGetElementOrWindow.mjs.map +1 -0
- package/dist/hooks/useIntlayerAPI.cjs +27 -0
- package/dist/hooks/useIntlayerAPI.cjs.map +1 -0
- package/dist/hooks/useIntlayerAPI.d.ts +59 -0
- package/dist/hooks/useIntlayerAPI.d.ts.map +1 -0
- package/dist/hooks/useIntlayerAPI.mjs +27 -0
- package/dist/hooks/useIntlayerAPI.mjs.map +1 -0
- package/dist/hooks/useIsMounted.cjs +13 -0
- package/dist/hooks/useIsMounted.cjs.map +1 -0
- package/dist/hooks/useIsMounted.d.ts +1 -0
- package/dist/hooks/useIsMounted.d.ts.map +1 -0
- package/dist/hooks/useIsMounted.mjs +13 -0
- package/dist/hooks/useIsMounted.mjs.map +1 -0
- package/dist/hooks/useItemSelector.cjs +89 -0
- package/dist/hooks/useItemSelector.cjs.map +1 -0
- package/dist/hooks/useItemSelector.d.ts +11 -0
- package/dist/hooks/useItemSelector.d.ts.map +1 -0
- package/dist/hooks/useItemSelector.mjs +89 -0
- package/dist/hooks/useItemSelector.mjs.map +1 -0
- package/dist/hooks/useScrollBlockage/index.cjs +27 -0
- package/dist/hooks/useScrollBlockage/index.cjs.map +1 -0
- package/dist/hooks/useScrollBlockage/index.d.ts +1 -0
- package/dist/hooks/useScrollBlockage/index.d.ts.map +1 -0
- package/dist/hooks/useScrollBlockage/index.mjs +27 -0
- package/dist/hooks/useScrollBlockage/index.mjs.map +1 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.cjs +63 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.cjs.map +1 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.d.ts +1 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.d.ts.map +1 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.mjs +63 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.mjs.map +1 -0
- package/dist/hooks/useScrollDetection.cjs +71 -0
- package/dist/hooks/useScrollDetection.cjs.map +1 -0
- package/dist/hooks/useScrollDetection.d.ts +1 -0
- package/dist/hooks/useScrollDetection.d.ts.map +1 -0
- package/dist/hooks/useScrollDetection.mjs +71 -0
- package/dist/hooks/useScrollDetection.mjs.map +1 -0
- package/dist/index-BZQDMSxb.cjs +200 -0
- package/dist/index-BZQDMSxb.cjs.map +1 -0
- package/dist/index-pLq_417z.js +201 -0
- package/dist/index-pLq_417z.js.map +1 -0
- package/dist/jsx-runtime-BgSF1HG2.js +939 -0
- package/dist/jsx-runtime-BgSF1HG2.js.map +1 -0
- package/dist/jsx-runtime-DvCoRj5u.cjs +938 -0
- package/dist/jsx-runtime-DvCoRj5u.cjs.map +1 -0
- package/dist/libs/index.cjs +6 -0
- package/dist/libs/index.cjs.map +1 -0
- package/dist/libs/index.d.ts +2 -0
- package/dist/libs/index.d.ts.map +1 -0
- package/dist/libs/index.mjs +6 -0
- package/dist/libs/index.mjs.map +1 -0
- package/dist/libs/intlayer-api/auth.cjs +129 -0
- package/dist/libs/intlayer-api/auth.cjs.map +1 -0
- package/dist/libs/intlayer-api/auth.d.ts +34 -0
- package/dist/libs/intlayer-api/auth.d.ts.map +1 -0
- package/dist/libs/intlayer-api/auth.mjs +129 -0
- package/dist/libs/intlayer-api/auth.mjs.map +1 -0
- package/dist/libs/intlayer-api/dictionary.cjs +78 -0
- package/dist/libs/intlayer-api/dictionary.cjs.map +1 -0
- package/dist/libs/intlayer-api/dictionary.d.ts +22 -0
- package/dist/libs/intlayer-api/dictionary.d.ts.map +1 -0
- package/dist/libs/intlayer-api/dictionary.mjs +78 -0
- package/dist/libs/intlayer-api/dictionary.mjs.map +1 -0
- package/dist/libs/intlayer-api/fetcher.cjs +72 -0
- package/dist/libs/intlayer-api/fetcher.cjs.map +1 -0
- package/dist/libs/intlayer-api/fetcher.d.ts +70 -0
- package/dist/libs/intlayer-api/fetcher.d.ts.map +1 -0
- package/dist/libs/intlayer-api/fetcher.mjs +72 -0
- package/dist/libs/intlayer-api/fetcher.mjs.map +1 -0
- package/dist/libs/intlayer-api/index.cjs +18 -0
- package/dist/libs/intlayer-api/index.cjs.map +1 -0
- package/dist/libs/intlayer-api/index.d.ts +119 -0
- package/dist/libs/intlayer-api/index.d.ts.map +1 -0
- package/dist/libs/intlayer-api/index.mjs +18 -0
- package/dist/libs/intlayer-api/index.mjs.map +1 -0
- package/dist/libs/intlayer-api/organization.cjs +95 -0
- package/dist/libs/intlayer-api/organization.cjs.map +1 -0
- package/dist/libs/intlayer-api/organization.d.ts +26 -0
- package/dist/libs/intlayer-api/organization.d.ts.map +1 -0
- package/dist/libs/intlayer-api/organization.mjs +95 -0
- package/dist/libs/intlayer-api/organization.mjs.map +1 -0
- package/dist/libs/intlayer-api/project.cjs +110 -0
- package/dist/libs/intlayer-api/project.cjs.map +1 -0
- package/dist/libs/intlayer-api/project.d.ts +28 -0
- package/dist/libs/intlayer-api/project.d.ts.map +1 -0
- package/dist/libs/intlayer-api/project.mjs +110 -0
- package/dist/libs/intlayer-api/project.mjs.map +1 -0
- package/dist/libs/intlayer-api/user.cjs +70 -0
- package/dist/libs/intlayer-api/user.cjs.map +1 -0
- package/dist/libs/intlayer-api/user.d.ts +22 -0
- package/dist/libs/intlayer-api/user.d.ts.map +1 -0
- package/dist/libs/intlayer-api/user.mjs +70 -0
- package/dist/libs/intlayer-api/user.mjs.map +1 -0
- package/dist/tailwind.css +1 -0
- package/dist/utils/camelCase.cjs +15 -0
- package/dist/utils/camelCase.cjs.map +1 -0
- package/dist/utils/camelCase.d.ts +3 -0
- package/dist/utils/camelCase.d.ts.map +1 -0
- package/dist/utils/camelCase.mjs +15 -0
- package/dist/utils/camelCase.mjs.map +1 -0
- package/dist/utils/capitalize.cjs +10 -0
- package/dist/utils/capitalize.cjs.map +1 -0
- package/dist/utils/capitalize.d.ts +1 -0
- package/dist/utils/capitalize.d.ts.map +1 -0
- package/dist/utils/capitalize.mjs +10 -0
- package/dist/utils/capitalize.mjs.map +1 -0
- package/dist/utils/cn.cjs +7 -0
- package/dist/utils/cn.cjs.map +1 -0
- package/dist/utils/cn.d.ts +1 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/cn.mjs +7 -0
- package/dist/utils/cn.mjs.map +1 -0
- package/dist/utils/dictionary.cjs +122 -0
- package/dist/utils/dictionary.cjs.map +1 -0
- package/dist/utils/dictionary.d.ts +7 -0
- package/dist/utils/dictionary.d.ts.map +1 -0
- package/dist/utils/dictionary.mjs +122 -0
- package/dist/utils/dictionary.mjs.map +1 -0
- package/dist/utils/isElementAtTopAndNotCovered.cjs +17 -0
- package/dist/utils/isElementAtTopAndNotCovered.cjs.map +1 -0
- package/dist/utils/isElementAtTopAndNotCovered.d.ts +2 -0
- package/dist/utils/isElementAtTopAndNotCovered.d.ts.map +1 -0
- package/dist/utils/isElementAtTopAndNotCovered.mjs +17 -0
- package/dist/utils/isElementAtTopAndNotCovered.mjs.map +1 -0
- package/dist/utils/object.cjs +22 -0
- package/dist/utils/object.cjs.map +1 -0
- package/dist/utils/object.d.ts +18 -0
- package/dist/utils/object.d.ts.map +1 -0
- package/dist/utils/object.mjs +22 -0
- package/dist/utils/object.mjs.map +1 -0
- package/dist/zod-BV4nCGJE.js +47 -0
- package/dist/zod-BV4nCGJE.js.map +1 -0
- package/dist/zod-DSrtTSD_.cjs +46 -0
- package/dist/zod-DSrtTSD_.cjs.map +1 -0
- package/package.json +76 -34
- package/dist/MarkDownRender-7oiSvDiM.cjs +0 -14
- package/dist/MarkDownRender-JEDIcxQT.js +0 -316
- package/dist/StringWrapper-CW70GPXq.js +0 -28
- package/dist/StringWrapper-DUDqtkwz.cjs +0 -1
- package/dist/check-BLEiR8OY.js +0 -12
- package/dist/check-rhNgx2ZQ.cjs +0 -6
- package/dist/chevron-right-D3LPoNy5.js +0 -14
- package/dist/chevron-right-bKrhRS9t.cjs +0 -6
- package/dist/components/Accordion/Accordion.cjs.js +0 -8
- package/dist/components/Accordion/Accordion.es.js +0 -48
- package/dist/components/Accordion/index.cjs.js +0 -1
- package/dist/components/Accordion/index.es.js +0 -5
- package/dist/components/Avatar/index.cjs.js +0 -6
- package/dist/components/Avatar/index.es.js +0 -71
- package/dist/components/Button/index.cjs.js +0 -6
- package/dist/components/Button/index.es.js +0 -306
- package/dist/components/Container/index.cjs.js +0 -7
- package/dist/components/Container/index.es.js +0 -152
- package/dist/components/ContentEditor/ContentEditor.cjs.js +0 -5
- package/dist/components/ContentEditor/ContentEditor.es.js +0 -75
- package/dist/components/ContentEditor/index.cjs.js +0 -1
- package/dist/components/ContentEditor/index.es.js +0 -5
- package/dist/components/ContentSelector/ContentSelector.cjs.js +0 -1
- package/dist/components/ContentSelector/ContentSelector.es.js +0 -14
- package/dist/components/ContentSelector/index.cjs.js +0 -1
- package/dist/components/ContentSelector/index.es.js +0 -5
- package/dist/components/DictionaryEditor/DictionaryEditor.cjs.js +0 -1
- package/dist/components/DictionaryEditor/DictionaryEditor.es.js +0 -25
- package/dist/components/DictionaryEditor/ItemLayout.cjs.js +0 -1
- package/dist/components/DictionaryEditor/ItemLayout.es.js +0 -81
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs.js +0 -1
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.es.js +0 -10
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.cjs.js +0 -1
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.es.js +0 -9
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs.js +0 -1
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.es.js +0 -9
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs.js +0 -1
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.es.js +0 -9
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.cjs.js +0 -1
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.es.js +0 -7
- package/dist/components/DictionaryEditor/NodeWrapper/index.cjs.js +0 -1
- package/dist/components/DictionaryEditor/NodeWrapper/index.es.js +0 -11
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.js +0 -1
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.es.js +0 -40
- package/dist/components/DictionaryEditor/index.cjs.js +0 -1
- package/dist/components/DictionaryEditor/index.es.js +0 -5
- package/dist/components/DropDown/index.cjs.js +0 -5
- package/dist/components/DropDown/index.es.js +0 -50
- package/dist/components/DropDown/types.cjs.js +0 -1
- package/dist/components/DropDown/types.es.js +0 -1
- package/dist/components/Footer/index.cjs.js +0 -1
- package/dist/components/Footer/index.es.js +0 -71
- package/dist/components/Headers/SectionScroller.cjs.js +0 -1
- package/dist/components/Headers/SectionScroller.es.js +0 -20
- package/dist/components/Headers/index.cjs.js +0 -1
- package/dist/components/Headers/index.es.js +0 -103
- package/dist/components/IDE/CodeRender.cjs.js +0 -26
- package/dist/components/IDE/CodeRender.es.js +0 -22872
- package/dist/components/IDE/FileTree.cjs.js +0 -1
- package/dist/components/IDE/FileTree.es.js +0 -112
- package/dist/components/IDE/IDE.cjs.js +0 -1
- package/dist/components/IDE/IDE.es.js +0 -187
- package/dist/components/IDE/MarkDownRender.cjs.js +0 -1
- package/dist/components/IDE/MarkDownRender.es.js +0 -7
- package/dist/components/IDE/createFileTree.cjs.js +0 -1
- package/dist/components/IDE/createFileTree.es.js +0 -25
- package/dist/components/IDE/index.cjs.js +0 -1
- package/dist/components/IDE/index.es.js +0 -7
- package/dist/components/Loader/index.cjs.js +0 -1
- package/dist/components/Loader/index.es.js +0 -23
- package/dist/components/Loader/spinner.cjs.js +0 -1
- package/dist/components/Loader/spinner.es.js +0 -22
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs.js +0 -6
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.es.js +0 -571
- package/dist/components/LocaleSwitcherDropDown/index.cjs.js +0 -1
- package/dist/components/LocaleSwitcherDropDown/index.es.js +0 -5
- package/dist/components/Logo/LogoCircle.cjs.js +0 -1
- package/dist/components/Logo/LogoCircle.es.js +0 -12
- package/dist/components/Logo/LogoNoFrame.cjs.js +0 -1
- package/dist/components/Logo/LogoNoFrame.es.js +0 -28
- package/dist/components/Logo/LogoSquare.cjs.js +0 -1
- package/dist/components/Logo/LogoSquare.es.js +0 -12
- package/dist/components/Logo/LogoSquircle.cjs.js +0 -1
- package/dist/components/Logo/LogoSquircle.es.js +0 -17
- package/dist/components/Logo/LogoTextOnly.cjs.js +0 -1
- package/dist/components/Logo/LogoTextOnly.es.js +0 -28
- package/dist/components/Logo/LogoWithTextBelowCircle.cjs.js +0 -1
- package/dist/components/Logo/LogoWithTextBelowCircle.es.js +0 -30
- package/dist/components/Logo/LogoWithTextBelowNoFrame.cjs.js +0 -1
- package/dist/components/Logo/LogoWithTextBelowNoFrame.es.js +0 -28
- package/dist/components/Logo/LogoWithTextBelowSquircle.cjs.js +0 -1
- package/dist/components/Logo/LogoWithTextBelowSquircle.es.js +0 -17
- package/dist/components/Logo/LogoWithTextCircle.cjs.js +0 -1
- package/dist/components/Logo/LogoWithTextCircle.es.js +0 -51
- package/dist/components/Logo/LogoWithTextNoFrame.cjs.js +0 -1
- package/dist/components/Logo/LogoWithTextNoFrame.es.js +0 -28
- package/dist/components/Logo/LogoWithTextSquircle.cjs.js +0 -1
- package/dist/components/Logo/LogoWithTextSquircle.es.js +0 -17
- package/dist/components/Logo/index.cjs.js +0 -1
- package/dist/components/Logo/index.es.js +0 -65
- package/dist/components/MarkDownRender/index.cjs.js +0 -1
- package/dist/components/MarkDownRender/index.es.js +0 -106
- package/dist/components/MaxHeightSmoother/index.cjs.js +0 -6
- package/dist/components/MaxHeightSmoother/index.es.js +0 -52
- package/dist/components/MaxWidthSmoother/index.cjs.js +0 -6
- package/dist/components/MaxWidthSmoother/index.es.js +0 -39
- package/dist/components/Modal/index.cjs.js +0 -1
- package/dist/components/Modal/index.es.js +0 -64
- package/dist/components/Navbar/Burger.cjs.js +0 -1
- package/dist/components/Navbar/Burger.es.js +0 -84
- package/dist/components/Navbar/DesktopNavbar.cjs.js +0 -7
- package/dist/components/Navbar/DesktopNavbar.es.js +0 -76
- package/dist/components/Navbar/MobileNavbar.cjs.js +0 -9
- package/dist/components/Navbar/MobileNavbar.es.js +0 -199
- package/dist/components/Navbar/index.cjs.js +0 -1
- package/dist/components/Navbar/index.es.js +0 -25
- package/dist/components/Navbar/useNavigation.cjs.js +0 -1
- package/dist/components/Navbar/useNavigation.es.js +0 -39
- package/dist/components/Popover/index.cjs.js +0 -1
- package/dist/components/Popover/index.es.js +0 -52
- package/dist/components/PressableDiv/PressableDiv.cjs.js +0 -1
- package/dist/components/PressableDiv/PressableDiv.d.ts +0 -10
- package/dist/components/PressableDiv/PressableDiv.es.js +0 -63
- package/dist/components/PressableDiv/index.cjs.js +0 -1
- package/dist/components/PressableDiv/index.d.ts +0 -1
- package/dist/components/PressableDiv/index.es.js +0 -5
- package/dist/components/ProfileDropDown/index.cjs.js +0 -6
- package/dist/components/ProfileDropDown/index.es.js +0 -37
- package/dist/components/RedirectionButton/RedirectionButton.cjs.js +0 -1
- package/dist/components/RedirectionButton/RedirectionButton.d.ts +0 -8
- package/dist/components/RedirectionButton/RedirectionButton.es.js +0 -34
- package/dist/components/RedirectionButton/index.cjs.js +0 -1
- package/dist/components/RedirectionButton/index.d.ts +0 -1
- package/dist/components/RedirectionButton/index.es.js +0 -5
- package/dist/components/RightDrawer/RightDrawer.cjs.js +0 -8
- package/dist/components/RightDrawer/RightDrawer.es.js +0 -124
- package/dist/components/RightDrawer/index.cjs.js +0 -1
- package/dist/components/RightDrawer/index.es.js +0 -8
- package/dist/components/RightDrawer/useRightDrawerStore.cjs.js +0 -1
- package/dist/components/RightDrawer/useRightDrawerStore.es.js +0 -15
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs.js +0 -1
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.es.js +0 -69
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.cjs.js +0 -1
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.es.js +0 -65
- package/dist/components/ThemeSwitcherDropDown/index.cjs.js +0 -1
- package/dist/components/ThemeSwitcherDropDown/index.es.js +0 -9
- package/dist/components/ThemeSwitcherDropDown/types.cjs.js +0 -1
- package/dist/components/ThemeSwitcherDropDown/types.es.js +0 -5
- package/dist/components/WithResizer/index.cjs.js +0 -1
- package/dist/components/WithResizer/index.es.js +0 -82
- package/dist/components/index.cjs.js +0 -1
- package/dist/components/index.es.js +0 -65
- package/dist/createLucideIcon-DlZEiEGq.js +0 -80
- package/dist/createLucideIcon-ZOnO-fn6.cjs +0 -21
- package/dist/hooks/index.cjs.js +0 -1
- package/dist/hooks/index.es.js +0 -13
- package/dist/hooks/useDevice.cjs.js +0 -1
- package/dist/hooks/useDevice.es.js +0 -48
- package/dist/hooks/useGetElementOrWindow.cjs.js +0 -1
- package/dist/hooks/useGetElementOrWindow.es.js +0 -11
- package/dist/hooks/useIsMounted.cjs.js +0 -1
- package/dist/hooks/useIsMounted.es.js +0 -11
- package/dist/hooks/useScrollBlockage/index.cjs.js +0 -1
- package/dist/hooks/useScrollBlockage/index.es.js +0 -24
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.cjs.js +0 -1
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.es.js +0 -40
- package/dist/hooks/useScrollDetection.cjs.js +0 -1
- package/dist/hooks/useScrollDetection.es.js +0 -41
- package/dist/index-CJEkIqT6.cjs +0 -1
- package/dist/index-DBWNacRP.js +0 -133
- package/dist/intlayer-editor/src/client/renderContentEditor.d.ts +0 -13
- package/dist/jsx-runtime-D6agescH.cjs +0 -30
- package/dist/jsx-runtime-Tw_Kw2GZ.js +0 -638
- package/dist/localeList-CaRF-907.js +0 -300
- package/dist/localeList-DlUgKn8J.cjs +0 -1
- package/dist/motion-minimal-BFpJTMRN.js +0 -788
- package/dist/motion-minimal-CwdK8lup.cjs +0 -1
- package/dist/styled-components.browser.esm-D6kkzXl4.js +0 -1085
- package/dist/styled-components.browser.esm-GqWwDlfY.cjs +0 -58
- package/dist/sun-BQYZHcpc.cjs +0 -16
- package/dist/sun-BrKC5Qwg.js +0 -49
- package/dist/utils/capitalize.cjs.js +0 -1
- package/dist/utils/capitalize.es.js +0 -5
- package/dist/utils/cn.cjs.js +0 -1
- package/dist/utils/cn.es.js +0 -2338
- package/dist/x-BKwnSvvj.js +0 -15
- package/dist/x-DIXoN4xe.cjs +0 -6
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { KeyPath, DictionaryValue } from '@intlayer/core';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
|
|
4
|
+
export declare const traceKeys: string[];
|
|
5
|
+
export type TextEditorProps = {
|
|
6
|
+
dictionaryKey: string;
|
|
7
|
+
keyPath: KeyPath[];
|
|
8
|
+
section: DictionaryValue;
|
|
9
|
+
};
|
|
10
|
+
export declare const TextEditor: FC<TextEditorProps>;
|
|
11
|
+
//# sourceMappingURL=TextEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/DictionaryFieldEditor/EditorView/TextEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,EAKL,KAAK,OAAO,EACZ,KAAK,eAAe,EAErB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAIL,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AAcf,eAAO,MAAM,SAAS,EAAE,MAAM,EAAmC,CAAC;AAsClE,MAAM,MAAM,eAAe,GAAG;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC;AAsNF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAwE1C,CAAC"}
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as jsxRuntimeExports } from "../../../jsx-runtime-BgSF1HG2.js";
|
|
3
|
+
import { getConfiguration } from "@intlayer/config/client";
|
|
4
|
+
import { NodeType, getLocaleName } from "@intlayer/core";
|
|
5
|
+
import { X, Plus } from "lucide-react";
|
|
6
|
+
import { createElement } from "react";
|
|
7
|
+
import { useDictionary } from "react-intlayer";
|
|
8
|
+
import { getSectionType } from "../../../utils/dictionary.mjs";
|
|
9
|
+
import { renameKey } from "../../../utils/object.mjs";
|
|
10
|
+
import { Button } from "../../Button/Button.mjs";
|
|
11
|
+
import { ContentEditorTextArea } from "../../ContentEditor/ContentEditorTextArea.mjs";
|
|
12
|
+
import { useEditedContentStore } from "../../DictionaryEditor/useEditedContentStore.mjs";
|
|
13
|
+
import { useEditionPanelStore } from "../../DictionaryEditor/useEditionPanelStore.mjs";
|
|
14
|
+
import "clsx";
|
|
15
|
+
import "tailwind-merge";
|
|
16
|
+
import { EnumKeyInput } from "../EnumKeyInput.mjs";
|
|
17
|
+
import { getIsEditableSection } from "../getIsEditableSection.mjs";
|
|
18
|
+
import { navigationViewContent } from "../NavigationView/navigationViewNode.content.mjs";
|
|
19
|
+
const traceKeys = ["filePath", "id", "nodeType"];
|
|
20
|
+
const createReactElement = (element) => {
|
|
21
|
+
if (typeof element === "string") {
|
|
22
|
+
return element;
|
|
23
|
+
}
|
|
24
|
+
const convertChildrenAsArray = (element2) => {
|
|
25
|
+
if (element2?.props && typeof element2.props.children === "object") {
|
|
26
|
+
const childrenResult = [];
|
|
27
|
+
const { children } = element2.props;
|
|
28
|
+
Object.keys(children).forEach(
|
|
29
|
+
(key) => childrenResult.push(createReactElement(children[key]))
|
|
30
|
+
);
|
|
31
|
+
return {
|
|
32
|
+
...element2,
|
|
33
|
+
props: { ...element2.props, children: childrenResult }
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
...element2,
|
|
38
|
+
props: { ...element2.props, children: element2.props.children }
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
const fixedElement = convertChildrenAsArray(element);
|
|
42
|
+
const { type, props } = fixedElement;
|
|
43
|
+
return createElement(type ?? "div", props, ...props.children);
|
|
44
|
+
};
|
|
45
|
+
const TranslationTextEditor = ({
|
|
46
|
+
section,
|
|
47
|
+
keyPath,
|
|
48
|
+
dictionaryKey
|
|
49
|
+
}) => {
|
|
50
|
+
const { locales } = getConfiguration().internationalization;
|
|
51
|
+
const addEditedContent = useEditedContentStore((s) => s.addEditedContent);
|
|
52
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("table", { className: "w-full gap-2", children: locales.map((translationKey) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
53
|
+
"tr",
|
|
54
|
+
{
|
|
55
|
+
className: "border-text dark:border-text-dark w-full border-t-[1.5px]",
|
|
56
|
+
lang: translationKey,
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "border-text dark:border-text-dark border-r-[1.5px] p-2", children: getLocaleName(translationKey) }),
|
|
59
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "w-full p-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
60
|
+
ContentEditorTextArea,
|
|
61
|
+
{
|
|
62
|
+
variant: "default",
|
|
63
|
+
"aria-label": "Edit field",
|
|
64
|
+
onContentChange: (newValue) => addEditedContent(dictionaryKey, newValue, [
|
|
65
|
+
...keyPath,
|
|
66
|
+
{
|
|
67
|
+
type: NodeType.Translation,
|
|
68
|
+
key: translationKey
|
|
69
|
+
}
|
|
70
|
+
]),
|
|
71
|
+
children: section[NodeType.Translation][translationKey]
|
|
72
|
+
}
|
|
73
|
+
) })
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
translationKey
|
|
77
|
+
)) });
|
|
78
|
+
};
|
|
79
|
+
const EnumerationTextEditor = ({
|
|
80
|
+
section,
|
|
81
|
+
keyPath,
|
|
82
|
+
dictionaryKey
|
|
83
|
+
}) => {
|
|
84
|
+
const addEditedContent = useEditedContentStore((s) => s.addEditedContent);
|
|
85
|
+
const { addNewEnumeration } = useDictionary(navigationViewContent);
|
|
86
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("table", { className: "w-full table-fixed gap-2", children: [
|
|
87
|
+
Object.keys(
|
|
88
|
+
section[NodeType.Enumeration]
|
|
89
|
+
).map((enumKey) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
90
|
+
"tr",
|
|
91
|
+
{
|
|
92
|
+
className: "border-text dark:border-text-dark w-full border-y-[1.5px]",
|
|
93
|
+
children: [
|
|
94
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "border-text dark:border-text-dark w-44 border-r-[1.5px] p-2", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-1", children: [
|
|
95
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
96
|
+
Button,
|
|
97
|
+
{
|
|
98
|
+
label: "Remove",
|
|
99
|
+
variant: "hoverable",
|
|
100
|
+
size: "icon-md",
|
|
101
|
+
color: "text",
|
|
102
|
+
Icon: X,
|
|
103
|
+
className: "w-16",
|
|
104
|
+
onClick: () => addEditedContent(dictionaryKey, void 0, [
|
|
105
|
+
...keyPath,
|
|
106
|
+
{
|
|
107
|
+
type: NodeType.Enumeration,
|
|
108
|
+
key: enumKey
|
|
109
|
+
}
|
|
110
|
+
])
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
114
|
+
EnumKeyInput,
|
|
115
|
+
{
|
|
116
|
+
value: enumKey,
|
|
117
|
+
onChange: (value) => {
|
|
118
|
+
const preValueContent = section[NodeType.Enumeration];
|
|
119
|
+
const newValueContent = renameKey(
|
|
120
|
+
preValueContent,
|
|
121
|
+
enumKey,
|
|
122
|
+
value
|
|
123
|
+
);
|
|
124
|
+
const newValue = {
|
|
125
|
+
...section,
|
|
126
|
+
[NodeType.Enumeration]: newValueContent
|
|
127
|
+
};
|
|
128
|
+
addEditedContent(dictionaryKey, newValue, keyPath);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
] }) }),
|
|
133
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "w-full p-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
134
|
+
ContentEditorTextArea,
|
|
135
|
+
{
|
|
136
|
+
variant: "default",
|
|
137
|
+
"aria-label": "Edit field",
|
|
138
|
+
onContentChange: (newValue) => addEditedContent(dictionaryKey, newValue, [
|
|
139
|
+
...keyPath,
|
|
140
|
+
{
|
|
141
|
+
type: NodeType.Enumeration,
|
|
142
|
+
key: enumKey
|
|
143
|
+
}
|
|
144
|
+
]),
|
|
145
|
+
children: section[NodeType.Enumeration][enumKey]
|
|
146
|
+
}
|
|
147
|
+
) })
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
enumKey
|
|
151
|
+
)),
|
|
152
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
153
|
+
Button,
|
|
154
|
+
{
|
|
155
|
+
label: addNewEnumeration.label.value,
|
|
156
|
+
variant: "hoverable",
|
|
157
|
+
color: "neutral",
|
|
158
|
+
textAlign: "left",
|
|
159
|
+
onClick: () => addEditedContent(
|
|
160
|
+
dictionaryKey,
|
|
161
|
+
"",
|
|
162
|
+
[...keyPath, { type: NodeType.Enumeration, key: "unknown" }],
|
|
163
|
+
false
|
|
164
|
+
),
|
|
165
|
+
Icon: Plus,
|
|
166
|
+
className: "m-2",
|
|
167
|
+
children: addNewEnumeration.text
|
|
168
|
+
}
|
|
169
|
+
)
|
|
170
|
+
] });
|
|
171
|
+
};
|
|
172
|
+
const ArrayTextEditor = ({
|
|
173
|
+
section,
|
|
174
|
+
keyPath,
|
|
175
|
+
dictionaryKey
|
|
176
|
+
}) => {
|
|
177
|
+
const addEditedContent = useEditedContentStore((s) => s.addEditedContent);
|
|
178
|
+
useEditionPanelStore(
|
|
179
|
+
(s) => s.setFocusedContentKeyPath
|
|
180
|
+
);
|
|
181
|
+
const { addNewElement } = useDictionary(navigationViewContent);
|
|
182
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("table", { className: "w-full gap-2", children: [
|
|
183
|
+
section.map((subSection, index) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
184
|
+
"tr",
|
|
185
|
+
{
|
|
186
|
+
className: "border-text dark:border-text-dark w-full border-t-[1.5px]",
|
|
187
|
+
children: [
|
|
188
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "border-text dark:border-text-dark border-r-[1.5px] p-2", children: index }),
|
|
189
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("td", { className: "w-full p-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
190
|
+
ContentEditorTextArea,
|
|
191
|
+
{
|
|
192
|
+
variant: "default",
|
|
193
|
+
"aria-label": "Edit field",
|
|
194
|
+
onContentChange: (newValue) => {
|
|
195
|
+
addEditedContent(dictionaryKey, newValue, [
|
|
196
|
+
...keyPath,
|
|
197
|
+
{
|
|
198
|
+
type: NodeType.Array,
|
|
199
|
+
key: index
|
|
200
|
+
}
|
|
201
|
+
]);
|
|
202
|
+
},
|
|
203
|
+
children: subSection
|
|
204
|
+
}
|
|
205
|
+
) })
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
JSON.stringify(subSection)
|
|
209
|
+
)),
|
|
210
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
211
|
+
Button,
|
|
212
|
+
{
|
|
213
|
+
label: addNewElement.label.value,
|
|
214
|
+
variant: "hoverable",
|
|
215
|
+
color: "neutral",
|
|
216
|
+
textAlign: "left",
|
|
217
|
+
onClick: () => {
|
|
218
|
+
const newKeyPath = [
|
|
219
|
+
...keyPath,
|
|
220
|
+
{
|
|
221
|
+
type: NodeType.Array,
|
|
222
|
+
key: section.length
|
|
223
|
+
}
|
|
224
|
+
];
|
|
225
|
+
addEditedContent(dictionaryKey, "", newKeyPath, false);
|
|
226
|
+
},
|
|
227
|
+
Icon: Plus,
|
|
228
|
+
children: addNewElement.text
|
|
229
|
+
}
|
|
230
|
+
)
|
|
231
|
+
] });
|
|
232
|
+
};
|
|
233
|
+
const TextEditor = ({
|
|
234
|
+
section,
|
|
235
|
+
keyPath,
|
|
236
|
+
dictionaryKey
|
|
237
|
+
}) => {
|
|
238
|
+
const addEditedContent = useEditedContentStore((s) => s.addEditedContent);
|
|
239
|
+
const { tsxNotEditable } = useDictionary(navigationViewContent);
|
|
240
|
+
const nodeType = getSectionType(section);
|
|
241
|
+
const isEditableSection = getIsEditableSection(section);
|
|
242
|
+
if (!isEditableSection) return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
|
|
243
|
+
if (typeof section === "object") {
|
|
244
|
+
if (nodeType === NodeType.ReactNode) {
|
|
245
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
246
|
+
createReactElement(section),
|
|
247
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-neutral dark:text-neutral-dark text-xs", children: tsxNotEditable })
|
|
248
|
+
] });
|
|
249
|
+
}
|
|
250
|
+
if (nodeType === NodeType.Translation) {
|
|
251
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
252
|
+
TranslationTextEditor,
|
|
253
|
+
{
|
|
254
|
+
dictionaryKey,
|
|
255
|
+
keyPath,
|
|
256
|
+
section
|
|
257
|
+
}
|
|
258
|
+
);
|
|
259
|
+
}
|
|
260
|
+
if (nodeType === NodeType.Enumeration) {
|
|
261
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
262
|
+
EnumerationTextEditor,
|
|
263
|
+
{
|
|
264
|
+
dictionaryKey,
|
|
265
|
+
keyPath,
|
|
266
|
+
section
|
|
267
|
+
}
|
|
268
|
+
);
|
|
269
|
+
}
|
|
270
|
+
if (nodeType === NodeType.Array) {
|
|
271
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
272
|
+
ArrayTextEditor,
|
|
273
|
+
{
|
|
274
|
+
dictionaryKey,
|
|
275
|
+
keyPath,
|
|
276
|
+
section
|
|
277
|
+
}
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
if (nodeType === NodeType.Text) {
|
|
282
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "border-text dark:border-text-dark w-full border-t-[1.5px] p-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
283
|
+
ContentEditorTextArea,
|
|
284
|
+
{
|
|
285
|
+
variant: "default",
|
|
286
|
+
"aria-label": "Edit field",
|
|
287
|
+
onContentChange: (newValue) => addEditedContent(dictionaryKey, newValue, keyPath),
|
|
288
|
+
children: section
|
|
289
|
+
}
|
|
290
|
+
) });
|
|
291
|
+
}
|
|
292
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: "Error loading section" });
|
|
293
|
+
};
|
|
294
|
+
export {
|
|
295
|
+
TextEditor,
|
|
296
|
+
traceKeys
|
|
297
|
+
};
|
|
298
|
+
//# sourceMappingURL=TextEditor.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextEditor.mjs","sources":["../../../../src/components/DictionaryFieldEditor/EditorView/TextEditor.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n'use client';\n\nimport { getConfiguration } from '@intlayer/config/client';\nimport {\n type EnumerationContent,\n type TranslationContent,\n type RecursiveDictionaryValue,\n NodeType,\n type KeyPath,\n type DictionaryValue,\n getLocaleName,\n} from '@intlayer/core';\nimport { Plus, X } from 'lucide-react';\nimport {\n createElement,\n type ReactElement,\n type ReactNode,\n type FC,\n} from 'react';\nimport { useDictionary } from 'react-intlayer';\nimport { getSectionType } from '../../../utils/dictionary';\nimport { renameKey } from '../../../utils/object';\nimport { Button } from '../../Button';\nimport { ContentEditorTextArea } from '../../ContentEditor/ContentEditorTextArea';\nimport {\n useEditedContentStore,\n useEditionPanelStore,\n} from '../../DictionaryEditor';\nimport { EnumKeyInput } from '../EnumKeyInput';\nimport { getIsEditableSection } from '../getIsEditableSection';\nimport { navigationViewContent } from '../NavigationView/navigationViewNode.content';\n\nexport const traceKeys: string[] = ['filePath', 'id', 'nodeType'];\n\nconst createReactElement = (element: ReactElement) => {\n if (typeof element === 'string') {\n // If it's a string, simply return it (used for text content)\n return element;\n }\n\n const convertChildrenAsArray = (element: ReactElement): ReactElement => {\n if (element?.props && typeof element.props.children === 'object') {\n const childrenResult: ReactNode[] = [];\n const { children } = element.props;\n\n // Create the children elements recursively, if any\n Object.keys(children).forEach((key) =>\n childrenResult.push(createReactElement(children[key]))\n );\n\n return {\n ...element,\n props: { ...element.props, children: childrenResult },\n };\n }\n\n return {\n ...element,\n props: { ...element.props, children: element.props.children },\n };\n };\n\n const fixedElement = convertChildrenAsArray(element);\n\n const { type, props } = fixedElement;\n\n // Create and return the React element\n return createElement(type ?? 'div', props, ...props.children);\n};\n\nexport type TextEditorProps = {\n dictionaryKey: string;\n keyPath: KeyPath[];\n section: DictionaryValue;\n};\n\nconst TranslationTextEditor: FC<TextEditorProps> = ({\n section,\n keyPath,\n dictionaryKey,\n}: TextEditorProps) => {\n const { locales } = getConfiguration().internationalization;\n const addEditedContent = useEditedContentStore((s) => s.addEditedContent);\n\n return (\n <table className=\"w-full gap-2\">\n {locales.map((translationKey) => (\n <tr\n key={translationKey}\n className=\"border-text dark:border-text-dark w-full border-t-[1.5px]\"\n lang={translationKey}\n >\n <td className=\"border-text dark:border-text-dark border-r-[1.5px] p-2\">\n {getLocaleName(translationKey)}\n </td>\n <td className=\"w-full p-2\">\n <ContentEditorTextArea\n variant=\"default\"\n aria-label=\"Edit field\"\n onContentChange={(newValue) =>\n addEditedContent(dictionaryKey, newValue, [\n ...keyPath,\n {\n type: NodeType.Translation,\n key: translationKey,\n },\n ])\n }\n >\n {\n (section as TranslationContent<string>)[NodeType.Translation][\n translationKey\n ] as string\n }\n </ContentEditorTextArea>\n </td>\n </tr>\n ))}\n </table>\n );\n};\n\nconst EnumerationTextEditor: FC<TextEditorProps> = ({\n section,\n keyPath,\n dictionaryKey,\n}) => {\n const addEditedContent = useEditedContentStore((s) => s.addEditedContent);\n const { addNewEnumeration } = useDictionary(navigationViewContent);\n\n return (\n <table className=\"w-full table-fixed gap-2\">\n {Object.keys(\n (section as EnumerationContent<DictionaryValue>)[NodeType.Enumeration]\n ).map((enumKey) => (\n <tr\n key={enumKey}\n className=\"border-text dark:border-text-dark w-full border-y-[1.5px]\"\n >\n <td className=\"border-text dark:border-text-dark w-44 border-r-[1.5px] p-2\">\n <div className=\"flex gap-1\">\n <Button\n label=\"Remove\"\n variant=\"hoverable\"\n size=\"icon-md\"\n color=\"text\"\n Icon={X}\n className=\"w-16\"\n onClick={() =>\n addEditedContent(dictionaryKey, undefined, [\n ...keyPath,\n {\n type: NodeType.Enumeration,\n key: enumKey,\n },\n ])\n }\n />\n <EnumKeyInput\n value={enumKey}\n onChange={(value) => {\n const preValueContent = (\n section as EnumerationContent<string>\n )[NodeType.Enumeration];\n const newValueContent = renameKey(\n preValueContent,\n enumKey as keyof typeof preValueContent,\n value\n );\n const newValue = {\n ...(section as EnumerationContent<string>),\n [NodeType.Enumeration]: newValueContent,\n };\n\n addEditedContent(dictionaryKey, newValue, keyPath);\n }}\n />\n </div>\n </td>\n <td className=\"w-full p-2\">\n <ContentEditorTextArea\n variant=\"default\"\n aria-label=\"Edit field\"\n onContentChange={(newValue) =>\n addEditedContent(dictionaryKey, newValue, [\n ...keyPath,\n {\n type: NodeType.Enumeration,\n key: enumKey,\n },\n ])\n }\n >\n {\n (section as EnumerationContent<string>)[NodeType.Enumeration][\n enumKey as any\n ] as string\n }\n </ContentEditorTextArea>\n </td>\n </tr>\n ))}\n <Button\n label={addNewEnumeration.label.value}\n variant=\"hoverable\"\n color=\"neutral\"\n textAlign=\"left\"\n onClick={() =>\n addEditedContent(\n dictionaryKey,\n '',\n [...keyPath, { type: NodeType.Enumeration, key: 'unknown' }],\n false\n )\n }\n Icon={Plus}\n className=\"m-2\"\n >\n {addNewEnumeration.text}\n </Button>\n </table>\n );\n};\n\nconst ArrayTextEditor: FC<TextEditorProps> = ({\n section,\n keyPath,\n dictionaryKey,\n}) => {\n const addEditedContent = useEditedContentStore((s) => s.addEditedContent);\n const setFocusedContentKeyPath = useEditionPanelStore(\n (s) => s.setFocusedContentKeyPath\n );\n const { addNewElement } = useDictionary(navigationViewContent);\n\n return (\n <table className=\"w-full gap-2\">\n {(section as DictionaryValue[]).map((subSection, index) => (\n <tr\n key={JSON.stringify(subSection)}\n className=\"border-text dark:border-text-dark w-full border-t-[1.5px]\"\n >\n <td className=\"border-text dark:border-text-dark border-r-[1.5px] p-2\">\n {index}\n </td>\n <td className=\"w-full p-2\">\n <ContentEditorTextArea\n variant=\"default\"\n aria-label=\"Edit field\"\n onContentChange={(newValue) => {\n addEditedContent(dictionaryKey, newValue, [\n ...keyPath,\n {\n type: NodeType.Array,\n key: index,\n },\n ]);\n }}\n >\n {subSection as string}\n </ContentEditorTextArea>\n </td>\n </tr>\n ))}\n\n <Button\n label={addNewElement.label.value}\n variant=\"hoverable\"\n color=\"neutral\"\n textAlign=\"left\"\n onClick={() => {\n const newKeyPath: KeyPath[] = [\n ...keyPath,\n {\n type: NodeType.Array,\n key: (section as DictionaryValue[]).length,\n },\n ];\n addEditedContent(dictionaryKey, '', newKeyPath, false);\n }}\n Icon={Plus}\n >\n {addNewElement.text}\n </Button>\n </table>\n );\n};\n\nexport const TextEditor: FC<TextEditorProps> = ({\n section,\n keyPath,\n dictionaryKey,\n}) => {\n const addEditedContent = useEditedContentStore((s) => s.addEditedContent);\n const { tsxNotEditable } = useDictionary(navigationViewContent);\n const nodeType = getSectionType(section);\n const isEditableSection = getIsEditableSection(section);\n\n if (!isEditableSection) return <></>;\n\n if (typeof section === 'object') {\n if (nodeType === NodeType.ReactNode) {\n return (\n <>\n {createReactElement(section as unknown as ReactElement)}\n <span className=\"text-neutral dark:text-neutral-dark text-xs\">\n {tsxNotEditable}\n </span>\n </>\n );\n }\n\n if (nodeType === NodeType.Translation) {\n return (\n <TranslationTextEditor\n dictionaryKey={dictionaryKey}\n keyPath={keyPath}\n section={section}\n />\n );\n }\n\n if (nodeType === NodeType.Enumeration) {\n return (\n <EnumerationTextEditor\n dictionaryKey={dictionaryKey}\n keyPath={keyPath}\n section={section}\n />\n );\n }\n\n if (nodeType === NodeType.Array) {\n return (\n <ArrayTextEditor\n dictionaryKey={dictionaryKey}\n keyPath={keyPath}\n section={section}\n />\n );\n }\n }\n\n if (nodeType === NodeType.Text) {\n return (\n <div className=\"border-text dark:border-text-dark w-full border-t-[1.5px] p-2\">\n <ContentEditorTextArea\n variant=\"default\"\n aria-label=\"Edit field\"\n onContentChange={(newValue) =>\n addEditedContent(dictionaryKey, newValue, keyPath)\n }\n >\n {section as string}\n </ContentEditorTextArea>\n </div>\n );\n }\n\n return <>Error loading section</>;\n};\n"],"names":["element","jsxs","jsx","Fragment"],"mappings":";;;;;;;;;;;;;;;;;;AAiCO,MAAM,YAAsB,CAAC,YAAY,MAAM,UAAU;AAEhE,MAAM,qBAAqB,CAAC,YAA0B;AAChD,MAAA,OAAO,YAAY,UAAU;AAExB,WAAA;AAAA,EACT;AAEM,QAAA,yBAAyB,CAACA,aAAwC;AACtE,QAAIA,UAAS,SAAS,OAAOA,SAAQ,MAAM,aAAa,UAAU;AAChE,YAAM,iBAA8B,CAAA;AAC9B,YAAA,EAAE,SAAS,IAAIA,SAAQ;AAGtB,aAAA,KAAK,QAAQ,EAAE;AAAA,QAAQ,CAAC,QAC7B,eAAe,KAAK,mBAAmB,SAAS,GAAG,CAAC,CAAC;AAAA,MAAA;AAGhD,aAAA;AAAA,QACL,GAAGA;AAAAA,QACH,OAAO,EAAE,GAAGA,SAAQ,OAAO,UAAU,eAAe;AAAA,MAAA;AAAA,IAExD;AAEO,WAAA;AAAA,MACL,GAAGA;AAAAA,MACH,OAAO,EAAE,GAAGA,SAAQ,OAAO,UAAUA,SAAQ,MAAM,SAAS;AAAA,IAAA;AAAA,EAC9D;AAGI,QAAA,eAAe,uBAAuB,OAAO;AAE7C,QAAA,EAAE,MAAM,MAAU,IAAA;AAGxB,SAAO,cAAc,QAAQ,OAAO,OAAO,GAAG,MAAM,QAAQ;AAC9D;AAQA,MAAM,wBAA6C,CAAC;AAAA,EAClD;AAAA,EACA;AAAA,EACA;AACF,MAAuB;AACrB,QAAM,EAAE,QAAA,IAAY,iBAAA,EAAmB;AACvC,QAAM,mBAAmB,sBAAsB,CAAC,MAAM,EAAE,gBAAgB;AAExE,+CACG,SAAM,EAAA,WAAU,gBACd,UAAQ,QAAA,IAAI,CAAC,mBACZC,kCAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MAEC,WAAU;AAAA,MACV,MAAM;AAAA,MAEN,UAAA;AAAA,QAAAC,sCAAC,MAAG,EAAA,WAAU,0DACX,UAAA,cAAc,cAAc,GAC/B;AAAA,QACAA,kCAAAA,IAAC,MAAG,EAAA,WAAU,cACZ,UAAAA,kCAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,cAAW;AAAA,YACX,iBAAiB,CAAC,aAChB,iBAAiB,eAAe,UAAU;AAAA,cACxC,GAAG;AAAA,cACH;AAAA,gBACE,MAAM,SAAS;AAAA,gBACf,KAAK;AAAA,cACP;AAAA,YAAA,CACD;AAAA,YAIA,UAAuC,QAAA,SAAS,WAAW,EAC1D,cACF;AAAA,UAAA;AAAA,QAAA,GAGN;AAAA,MAAA;AAAA,IAAA;AAAA,IA3BK;AAAA,EA6BR,CAAA,EACH,CAAA;AAEJ;AAEA,MAAM,wBAA6C,CAAC;AAAA,EAClD;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,mBAAmB,sBAAsB,CAAC,MAAM,EAAE,gBAAgB;AACxE,QAAM,EAAE,kBAAA,IAAsB,cAAc,qBAAqB;AAG/D,SAAAD,kCAAA,KAAC,SAAM,EAAA,WAAU,4BACd,UAAA;AAAA,IAAO,OAAA;AAAA,MACL,QAAgD,SAAS,WAAW;AAAA,IAAA,EACrE,IAAI,CAAC,YACLA,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QAEC,WAAU;AAAA,QAEV,UAAA;AAAA,UAAAC,kCAAAA,IAAC,QAAG,WAAU,+DACZ,UAACD,kCAAA,KAAA,OAAA,EAAI,WAAU,cACb,UAAA;AAAA,YAAAC,kCAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,OAAM;AAAA,gBACN,SAAQ;AAAA,gBACR,MAAK;AAAA,gBACL,OAAM;AAAA,gBACN,MAAM;AAAA,gBACN,WAAU;AAAA,gBACV,SAAS,MACP,iBAAiB,eAAe,QAAW;AAAA,kBACzC,GAAG;AAAA,kBACH;AAAA,oBACE,MAAM,SAAS;AAAA,oBACf,KAAK;AAAA,kBACP;AAAA,gBAAA,CACD;AAAA,cAAA;AAAA,YAEL;AAAA,YACAA,kCAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,OAAO;AAAA,gBACP,UAAU,CAAC,UAAU;AACb,wBAAA,kBACJ,QACA,SAAS,WAAW;AACtB,wBAAM,kBAAkB;AAAA,oBACtB;AAAA,oBACA;AAAA,oBACA;AAAA,kBAAA;AAEF,wBAAM,WAAW;AAAA,oBACf,GAAI;AAAA,oBACJ,CAAC,SAAS,WAAW,GAAG;AAAA,kBAAA;AAGT,mCAAA,eAAe,UAAU,OAAO;AAAA,gBACnD;AAAA,cAAA;AAAA,YACF;AAAA,UAAA,EAAA,CACF,EACF,CAAA;AAAA,UACAA,kCAAAA,IAAC,MAAG,EAAA,WAAU,cACZ,UAAAA,kCAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,SAAQ;AAAA,cACR,cAAW;AAAA,cACX,iBAAiB,CAAC,aAChB,iBAAiB,eAAe,UAAU;AAAA,gBACxC,GAAG;AAAA,gBACH;AAAA,kBACE,MAAM,SAAS;AAAA,kBACf,KAAK;AAAA,gBACP;AAAA,cAAA,CACD;AAAA,cAIA,UAAuC,QAAA,SAAS,WAAW,EAC1D,OACF;AAAA,YAAA;AAAA,UAAA,GAGN;AAAA,QAAA;AAAA,MAAA;AAAA,MA/DK;AAAA,IAAA,CAiER;AAAA,IACDA,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,OAAO,kBAAkB,MAAM;AAAA,QAC/B,SAAQ;AAAA,QACR,OAAM;AAAA,QACN,WAAU;AAAA,QACV,SAAS,MACP;AAAA,UACE;AAAA,UACA;AAAA,UACA,CAAC,GAAG,SAAS,EAAE,MAAM,SAAS,aAAa,KAAK,WAAW;AAAA,UAC3D;AAAA,QACF;AAAA,QAEF,MAAM;AAAA,QACN,WAAU;AAAA,QAET,UAAkB,kBAAA;AAAA,MAAA;AAAA,IACrB;AAAA,EACF,EAAA,CAAA;AAEJ;AAEA,MAAM,kBAAuC,CAAC;AAAA,EAC5C;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,mBAAmB,sBAAsB,CAAC,MAAM,EAAE,gBAAgB;AACvC;AAAA,IAC/B,CAAC,MAAM,EAAE;AAAA,EACX;AACA,QAAM,EAAE,cAAA,IAAkB,cAAc,qBAAqB;AAG3D,SAAAD,kCAAA,KAAC,SAAM,EAAA,WAAU,gBACb,UAAA;AAAA,IAA8B,QAAA,IAAI,CAAC,YAAY,UAC/CA,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QAEC,WAAU;AAAA,QAEV,UAAA;AAAA,UAACC,kCAAA,IAAA,MAAA,EAAG,WAAU,0DACX,UACH,OAAA;AAAA,UACAA,kCAAAA,IAAC,MAAG,EAAA,WAAU,cACZ,UAAAA,kCAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,SAAQ;AAAA,cACR,cAAW;AAAA,cACX,iBAAiB,CAAC,aAAa;AAC7B,iCAAiB,eAAe,UAAU;AAAA,kBACxC,GAAG;AAAA,kBACH;AAAA,oBACE,MAAM,SAAS;AAAA,oBACf,KAAK;AAAA,kBACP;AAAA,gBAAA,CACD;AAAA,cACH;AAAA,cAEC,UAAA;AAAA,YAAA;AAAA,UAAA,GAEL;AAAA,QAAA;AAAA,MAAA;AAAA,MAtBK,KAAK,UAAU,UAAU;AAAA,IAAA,CAwBjC;AAAA,IAEDA,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,OAAO,cAAc,MAAM;AAAA,QAC3B,SAAQ;AAAA,QACR,OAAM;AAAA,QACN,WAAU;AAAA,QACV,SAAS,MAAM;AACb,gBAAM,aAAwB;AAAA,YAC5B,GAAG;AAAA,YACH;AAAA,cACE,MAAM,SAAS;AAAA,cACf,KAAM,QAA8B;AAAA,YACtC;AAAA,UAAA;AAEe,2BAAA,eAAe,IAAI,YAAY,KAAK;AAAA,QACvD;AAAA,QACA,MAAM;AAAA,QAEL,UAAc,cAAA;AAAA,MAAA;AAAA,IACjB;AAAA,EACF,EAAA,CAAA;AAEJ;AAEO,MAAM,aAAkC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,mBAAmB,sBAAsB,CAAC,MAAM,EAAE,gBAAgB;AACxE,QAAM,EAAE,eAAA,IAAmB,cAAc,qBAAqB;AACxD,QAAA,WAAW,eAAe,OAAO;AACjC,QAAA,oBAAoB,qBAAqB,OAAO;AAElD,MAAA,CAAC,kBAAmB,QAASA,kCAAA,IAAAC,kBAAA,UAAA,CAAA,CAAA;AAE7B,MAAA,OAAO,YAAY,UAAU;AAC3B,QAAA,aAAa,SAAS,WAAW;AACnC,aAEKF,kCAAA,KAAAE,4BAAA,EAAA,UAAA;AAAA,QAAA,mBAAmB,OAAkC;AAAA,QACrDD,kCAAA,IAAA,QAAA,EAAK,WAAU,+CACb,UACH,gBAAA;AAAA,MACF,EAAA,CAAA;AAAA,IAEJ;AAEI,QAAA,aAAa,SAAS,aAAa;AAEnC,aAAAA,kCAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,QAAA;AAAA,MAAA;AAAA,IAGN;AAEI,QAAA,aAAa,SAAS,aAAa;AAEnC,aAAAA,kCAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,QAAA;AAAA,MAAA;AAAA,IAGN;AAEI,QAAA,aAAa,SAAS,OAAO;AAE7B,aAAAA,kCAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,QAAA;AAAA,MAAA;AAAA,IAGN;AAAA,EACF;AAEI,MAAA,aAAa,SAAS,MAAM;AAE5B,WAAAA,kCAAAA,IAAC,OAAI,EAAA,WAAU,iEACb,UAAAA,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,cAAW;AAAA,QACX,iBAAiB,CAAC,aAChB,iBAAiB,eAAe,UAAU,OAAO;AAAA,QAGlD,UAAA;AAAA,MAAA;AAAA,IAEL,EAAA,CAAA;AAAA,EAEJ;AAEA,6EAAS,UAAqB,wBAAA,CAAA;AAChC;"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
|
+
const jsxRuntime = require("../../jsx-runtime-DvCoRj5u.cjs");
|
|
5
|
+
const require$$0 = require("react");
|
|
6
|
+
const components_Input_Input = require("../Input/Input.cjs");
|
|
7
|
+
require("../Input/InputPassword.cjs");
|
|
8
|
+
require("../Select/Multiselect.cjs");
|
|
9
|
+
const components_Select_Select = require("../Select/Select.cjs");
|
|
10
|
+
const extractInitialState = (value) => {
|
|
11
|
+
let comparator;
|
|
12
|
+
let numberValue;
|
|
13
|
+
if (typeof value === "number" || !isNaN(Number(value))) {
|
|
14
|
+
comparator = "=";
|
|
15
|
+
numberValue = value.toString();
|
|
16
|
+
} else if (typeof value === "string") {
|
|
17
|
+
const comparators = ["<=", ">=", "<", ">", "="];
|
|
18
|
+
const matchedComparator = comparators.find(
|
|
19
|
+
(comp) => value.startsWith(comp)
|
|
20
|
+
);
|
|
21
|
+
if (matchedComparator) {
|
|
22
|
+
comparator = matchedComparator;
|
|
23
|
+
numberValue = value.slice(matchedComparator.length);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return { comparator, numberValue };
|
|
27
|
+
};
|
|
28
|
+
const EnumKeyInput = ({ value, onChange }) => {
|
|
29
|
+
const { comparator: initialComparator, numberValue: initialNumberValue } = require$$0.useMemo(() => extractInitialState(value), [value]);
|
|
30
|
+
const [comparator, setComparator] = require$$0.useState(
|
|
31
|
+
initialComparator ?? null
|
|
32
|
+
);
|
|
33
|
+
const [numberValue, setNumberValue] = require$$0.useState(
|
|
34
|
+
initialNumberValue ?? null
|
|
35
|
+
);
|
|
36
|
+
require$$0.useEffect(() => {
|
|
37
|
+
if (comparator && numberValue && (comparator !== initialComparator || numberValue !== initialNumberValue)) {
|
|
38
|
+
const newValue = `${comparator}${numberValue}`;
|
|
39
|
+
onChange(newValue);
|
|
40
|
+
}
|
|
41
|
+
}, [
|
|
42
|
+
comparator,
|
|
43
|
+
initialComparator,
|
|
44
|
+
initialNumberValue,
|
|
45
|
+
numberValue,
|
|
46
|
+
onChange
|
|
47
|
+
]);
|
|
48
|
+
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs("div", { className: "flex gap-1", children: [
|
|
49
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(components_Select_Select.Select, { onValueChange: setComparator, defaultValue: initialComparator, children: [
|
|
50
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_Select_Select.Select.Trigger, { className: "w-20", children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_Select_Select.Select.Value, { placeholder: "Select a comparator" }) }),
|
|
51
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsxs(components_Select_Select.Select.Content, { children: [
|
|
52
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_Select_Select.Select.Item, { value: "<", children: `<` }),
|
|
53
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_Select_Select.Select.Item, { value: "<=", children: `<=` }),
|
|
54
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_Select_Select.Select.Item, { value: "=", children: `=` }),
|
|
55
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_Select_Select.Select.Item, { value: ">=", children: `>=` }),
|
|
56
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_Select_Select.Select.Item, { value: ">", children: `>` })
|
|
57
|
+
] })
|
|
58
|
+
] }),
|
|
59
|
+
/* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
|
|
60
|
+
components_Input_Input.Input,
|
|
61
|
+
{
|
|
62
|
+
type: "number",
|
|
63
|
+
defaultValue: numberValue ?? void 0,
|
|
64
|
+
onChange: (e) => setNumberValue(e.target.value),
|
|
65
|
+
className: "w-full"
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
] });
|
|
69
|
+
};
|
|
70
|
+
exports.EnumKeyInput = EnumKeyInput;
|
|
71
|
+
//# sourceMappingURL=EnumKeyInput.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnumKeyInput.cjs","sources":["../../../src/components/DictionaryFieldEditor/EnumKeyInput.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect, useMemo, useState, type FC } from 'react';\nimport { Input } from '../Input';\nimport { Select } from '../Select';\n\nconst extractInitialState = (\n value: string | number\n): { comparator: string | undefined; numberValue: string | undefined } => {\n let comparator;\n let numberValue;\n\n if (typeof value === 'number' || !isNaN(Number(value))) {\n // If value is a number or numeric string, set comparator to '=' and numberValue accordingly\n comparator = '=';\n numberValue = value.toString();\n } else if (typeof value === 'string') {\n // Define possible comparators\n const comparators = ['<=', '>=', '<', '>', '='];\n // Find the comparator that matches the start of the string\n const matchedComparator = comparators.find((comp) =>\n value.startsWith(comp)\n );\n if (matchedComparator) {\n comparator = matchedComparator;\n numberValue = value.slice(matchedComparator.length);\n }\n }\n\n return { comparator, numberValue };\n};\n\ntype EnumKeyInputProps = {\n value: string | number;\n onChange: (value: string) => void;\n};\n\n/**\n * Example of values:\n * - `<1`\n * - `>-44.3`\n * - `=999`\n * - `<=1`\n * - `>=1`\n * - 88\n * - `-1`\n *\n */\nexport const EnumKeyInput: FC<EnumKeyInputProps> = ({ value, onChange }) => {\n const { comparator: initialComparator, numberValue: initialNumberValue } =\n useMemo(() => extractInitialState(value), [value]);\n const [comparator, setComparator] = useState<string | null>(\n initialComparator ?? null\n );\n const [numberValue, setNumberValue] = useState<string | null>(\n initialNumberValue ?? null\n );\n\n useEffect(() => {\n if (\n comparator &&\n numberValue &&\n (comparator !== initialComparator || numberValue !== initialNumberValue)\n ) {\n const newValue = `${comparator}${numberValue}`;\n\n onChange(newValue);\n }\n }, [\n comparator,\n initialComparator,\n initialNumberValue,\n numberValue,\n onChange,\n ]);\n\n return (\n <div className=\"flex gap-1\">\n <Select onValueChange={setComparator} defaultValue={initialComparator}>\n <Select.Trigger className=\"w-20\">\n <Select.Value placeholder=\"Select a comparator\" />\n </Select.Trigger>\n <Select.Content>\n <Select.Item value=\"<\">{`<`}</Select.Item>\n <Select.Item value=\"<=\">{`<=`}</Select.Item>\n <Select.Item value=\"=\">{`=`}</Select.Item>\n <Select.Item value=\">=\">{`>=`}</Select.Item>\n <Select.Item value=\">\">{`>`}</Select.Item>\n </Select.Content>\n </Select>\n <Input\n type=\"number\"\n defaultValue={numberValue ?? undefined}\n onChange={(e) => setNumberValue(e.target.value)}\n className=\"w-full\"\n />\n </div>\n );\n};\n"],"names":["useMemo","useState","useEffect","jsxs","Select","jsx","Input"],"mappings":";;;;;;;;;AAMA,MAAM,sBAAsB,CAC1B,UACwE;AACpE,MAAA;AACA,MAAA;AAEA,MAAA,OAAO,UAAU,YAAY,CAAC,MAAM,OAAO,KAAK,CAAC,GAAG;AAEzC,iBAAA;AACb,kBAAc,MAAM;EAAS,WACpB,OAAO,UAAU,UAAU;AAEpC,UAAM,cAAc,CAAC,MAAM,MAAM,KAAK,KAAK,GAAG;AAE9C,UAAM,oBAAoB,YAAY;AAAA,MAAK,CAAC,SAC1C,MAAM,WAAW,IAAI;AAAA,IAAA;AAEvB,QAAI,mBAAmB;AACR,mBAAA;AACC,oBAAA,MAAM,MAAM,kBAAkB,MAAM;AAAA,IACpD;AAAA,EACF;AAEO,SAAA,EAAE,YAAY;AACvB;AAkBO,MAAM,eAAsC,CAAC,EAAE,OAAO,eAAe;AAC1E,QAAM,EAAE,YAAY,mBAAmB,aAAa,mBAAmB,IACrEA,mBAAQ,MAAM,oBAAoB,KAAK,GAAG,CAAC,KAAK,CAAC;AAC7C,QAAA,CAAC,YAAY,aAAa,IAAIC,WAAA;AAAA,IAClC,qBAAqB;AAAA,EAAA;AAEjB,QAAA,CAAC,aAAa,cAAc,IAAIA,WAAA;AAAA,IACpC,sBAAsB;AAAA,EAAA;AAGxBC,aAAAA,UAAU,MAAM;AACd,QACE,cACA,gBACC,eAAe,qBAAqB,gBAAgB,qBACrD;AACA,YAAM,WAAW,GAAG,UAAU,GAAG,WAAW;AAE5C,eAAS,QAAQ;AAAA,IACnB;AAAA,EAAA,GACC;AAAA,IACD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,CACD;AAGC,SAAAC,2BAAA,kBAAA,KAAC,OAAI,EAAA,WAAU,cACb,UAAA;AAAA,IAAAA,2BAAA,kBAAA,KAACC,yBAAO,QAAA,EAAA,eAAe,eAAe,cAAc,mBAClD,UAAA;AAAA,MAACC,2BAAAA,kBAAAA,IAAAD,yBAAAA,OAAO,SAAP,EAAe,WAAU,QACxB,UAACC,iDAAAD,yBAAAA,OAAO,OAAP,EAAa,aAAY,sBAAA,CAAsB,EAClD,CAAA;AAAA,MACAD,2BAAAA,kBAAAA,KAACC,yBAAO,OAAA,SAAP,EACC,UAAA;AAAA,QAAAC,iDAACD,yBAAAA,OAAO,MAAP,EAAY,OAAM,KAAK,UAAI,KAAA;AAAA,yDAC3BA,yBAAAA,OAAO,MAAP,EAAY,OAAM,MAAM,UAAK,MAAA;AAAA,yDAC7BA,yBAAAA,OAAO,MAAP,EAAY,OAAM,KAAK,UAAI,KAAA;AAAA,yDAC3BA,yBAAAA,OAAO,MAAP,EAAY,OAAM,MAAM,UAAK,MAAA;AAAA,yDAC7BA,yBAAAA,OAAO,MAAP,EAAY,OAAM,KAAK,UAAI,KAAA;AAAA,MAAA,GAC9B;AAAA,IAAA,GACF;AAAA,IACAC,2BAAA,kBAAA;AAAA,MAACC,uBAAA;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,cAAc,eAAe;AAAA,QAC7B,UAAU,CAAC,MAAM,eAAe,EAAE,OAAO,KAAK;AAAA,QAC9C,WAAU;AAAA,MAAA;AAAA,IACZ;AAAA,EACF,EAAA,CAAA;AAEJ;;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
type EnumKeyInputProps = {
|
|
4
|
+
value: string | number;
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Example of values:
|
|
9
|
+
* - `<1`
|
|
10
|
+
* - `>-44.3`
|
|
11
|
+
* - `=999`
|
|
12
|
+
* - `<=1`
|
|
13
|
+
* - `>=1`
|
|
14
|
+
* - 88
|
|
15
|
+
* - `-1`
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export declare const EnumKeyInput: FC<EnumKeyInputProps>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=EnumKeyInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnumKeyInput.d.ts","sourceRoot":"","sources":["../../../src/components/DictionaryFieldEditor/EnumKeyInput.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAgC,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AA8B9D,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAkD9C,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as jsxRuntimeExports } from "../../jsx-runtime-BgSF1HG2.js";
|
|
3
|
+
import { useMemo, useState, useEffect } from "react";
|
|
4
|
+
import { Input } from "../Input/Input.mjs";
|
|
5
|
+
import "../Input/InputPassword.mjs";
|
|
6
|
+
import "../Select/Multiselect.mjs";
|
|
7
|
+
import { Select } from "../Select/Select.mjs";
|
|
8
|
+
const extractInitialState = (value) => {
|
|
9
|
+
let comparator;
|
|
10
|
+
let numberValue;
|
|
11
|
+
if (typeof value === "number" || !isNaN(Number(value))) {
|
|
12
|
+
comparator = "=";
|
|
13
|
+
numberValue = value.toString();
|
|
14
|
+
} else if (typeof value === "string") {
|
|
15
|
+
const comparators = ["<=", ">=", "<", ">", "="];
|
|
16
|
+
const matchedComparator = comparators.find(
|
|
17
|
+
(comp) => value.startsWith(comp)
|
|
18
|
+
);
|
|
19
|
+
if (matchedComparator) {
|
|
20
|
+
comparator = matchedComparator;
|
|
21
|
+
numberValue = value.slice(matchedComparator.length);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return { comparator, numberValue };
|
|
25
|
+
};
|
|
26
|
+
const EnumKeyInput = ({ value, onChange }) => {
|
|
27
|
+
const { comparator: initialComparator, numberValue: initialNumberValue } = useMemo(() => extractInitialState(value), [value]);
|
|
28
|
+
const [comparator, setComparator] = useState(
|
|
29
|
+
initialComparator ?? null
|
|
30
|
+
);
|
|
31
|
+
const [numberValue, setNumberValue] = useState(
|
|
32
|
+
initialNumberValue ?? null
|
|
33
|
+
);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
if (comparator && numberValue && (comparator !== initialComparator || numberValue !== initialNumberValue)) {
|
|
36
|
+
const newValue = `${comparator}${numberValue}`;
|
|
37
|
+
onChange(newValue);
|
|
38
|
+
}
|
|
39
|
+
}, [
|
|
40
|
+
comparator,
|
|
41
|
+
initialComparator,
|
|
42
|
+
initialNumberValue,
|
|
43
|
+
numberValue,
|
|
44
|
+
onChange
|
|
45
|
+
]);
|
|
46
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-1", children: [
|
|
47
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Select, { onValueChange: setComparator, defaultValue: initialComparator, children: [
|
|
48
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Trigger, { className: "w-20", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Select.Value, { placeholder: "Select a comparator" }) }),
|
|
49
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Select.Content, { children: [
|
|
50
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, { value: "<", children: `<` }),
|
|
51
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, { value: "<=", children: `<=` }),
|
|
52
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, { value: "=", children: `=` }),
|
|
53
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, { value: ">=", children: `>=` }),
|
|
54
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Select.Item, { value: ">", children: `>` })
|
|
55
|
+
] })
|
|
56
|
+
] }),
|
|
57
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
58
|
+
Input,
|
|
59
|
+
{
|
|
60
|
+
type: "number",
|
|
61
|
+
defaultValue: numberValue ?? void 0,
|
|
62
|
+
onChange: (e) => setNumberValue(e.target.value),
|
|
63
|
+
className: "w-full"
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] });
|
|
67
|
+
};
|
|
68
|
+
export {
|
|
69
|
+
EnumKeyInput
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=EnumKeyInput.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EnumKeyInput.mjs","sources":["../../../src/components/DictionaryFieldEditor/EnumKeyInput.tsx"],"sourcesContent":["'use client';\n\nimport { useEffect, useMemo, useState, type FC } from 'react';\nimport { Input } from '../Input';\nimport { Select } from '../Select';\n\nconst extractInitialState = (\n value: string | number\n): { comparator: string | undefined; numberValue: string | undefined } => {\n let comparator;\n let numberValue;\n\n if (typeof value === 'number' || !isNaN(Number(value))) {\n // If value is a number or numeric string, set comparator to '=' and numberValue accordingly\n comparator = '=';\n numberValue = value.toString();\n } else if (typeof value === 'string') {\n // Define possible comparators\n const comparators = ['<=', '>=', '<', '>', '='];\n // Find the comparator that matches the start of the string\n const matchedComparator = comparators.find((comp) =>\n value.startsWith(comp)\n );\n if (matchedComparator) {\n comparator = matchedComparator;\n numberValue = value.slice(matchedComparator.length);\n }\n }\n\n return { comparator, numberValue };\n};\n\ntype EnumKeyInputProps = {\n value: string | number;\n onChange: (value: string) => void;\n};\n\n/**\n * Example of values:\n * - `<1`\n * - `>-44.3`\n * - `=999`\n * - `<=1`\n * - `>=1`\n * - 88\n * - `-1`\n *\n */\nexport const EnumKeyInput: FC<EnumKeyInputProps> = ({ value, onChange }) => {\n const { comparator: initialComparator, numberValue: initialNumberValue } =\n useMemo(() => extractInitialState(value), [value]);\n const [comparator, setComparator] = useState<string | null>(\n initialComparator ?? null\n );\n const [numberValue, setNumberValue] = useState<string | null>(\n initialNumberValue ?? null\n );\n\n useEffect(() => {\n if (\n comparator &&\n numberValue &&\n (comparator !== initialComparator || numberValue !== initialNumberValue)\n ) {\n const newValue = `${comparator}${numberValue}`;\n\n onChange(newValue);\n }\n }, [\n comparator,\n initialComparator,\n initialNumberValue,\n numberValue,\n onChange,\n ]);\n\n return (\n <div className=\"flex gap-1\">\n <Select onValueChange={setComparator} defaultValue={initialComparator}>\n <Select.Trigger className=\"w-20\">\n <Select.Value placeholder=\"Select a comparator\" />\n </Select.Trigger>\n <Select.Content>\n <Select.Item value=\"<\">{`<`}</Select.Item>\n <Select.Item value=\"<=\">{`<=`}</Select.Item>\n <Select.Item value=\"=\">{`=`}</Select.Item>\n <Select.Item value=\">=\">{`>=`}</Select.Item>\n <Select.Item value=\">\">{`>`}</Select.Item>\n </Select.Content>\n </Select>\n <Input\n type=\"number\"\n defaultValue={numberValue ?? undefined}\n onChange={(e) => setNumberValue(e.target.value)}\n className=\"w-full\"\n />\n </div>\n );\n};\n"],"names":["jsxs","jsx"],"mappings":";;;;;;;AAMA,MAAM,sBAAsB,CAC1B,UACwE;AACpE,MAAA;AACA,MAAA;AAEA,MAAA,OAAO,UAAU,YAAY,CAAC,MAAM,OAAO,KAAK,CAAC,GAAG;AAEzC,iBAAA;AACb,kBAAc,MAAM;EAAS,WACpB,OAAO,UAAU,UAAU;AAEpC,UAAM,cAAc,CAAC,MAAM,MAAM,KAAK,KAAK,GAAG;AAE9C,UAAM,oBAAoB,YAAY;AAAA,MAAK,CAAC,SAC1C,MAAM,WAAW,IAAI;AAAA,IAAA;AAEvB,QAAI,mBAAmB;AACR,mBAAA;AACC,oBAAA,MAAM,MAAM,kBAAkB,MAAM;AAAA,IACpD;AAAA,EACF;AAEO,SAAA,EAAE,YAAY;AACvB;AAkBO,MAAM,eAAsC,CAAC,EAAE,OAAO,eAAe;AAC1E,QAAM,EAAE,YAAY,mBAAmB,aAAa,mBAAmB,IACrE,QAAQ,MAAM,oBAAoB,KAAK,GAAG,CAAC,KAAK,CAAC;AAC7C,QAAA,CAAC,YAAY,aAAa,IAAI;AAAA,IAClC,qBAAqB;AAAA,EAAA;AAEjB,QAAA,CAAC,aAAa,cAAc,IAAI;AAAA,IACpC,sBAAsB;AAAA,EAAA;AAGxB,YAAU,MAAM;AACd,QACE,cACA,gBACC,eAAe,qBAAqB,gBAAgB,qBACrD;AACA,YAAM,WAAW,GAAG,UAAU,GAAG,WAAW;AAE5C,eAAS,QAAQ;AAAA,IACnB;AAAA,EAAA,GACC;AAAA,IACD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,CACD;AAGC,SAAAA,kCAAA,KAAC,OAAI,EAAA,WAAU,cACb,UAAA;AAAA,IAAAA,kCAAA,KAAC,QAAO,EAAA,eAAe,eAAe,cAAc,mBAClD,UAAA;AAAA,MAACC,kCAAAA,IAAA,OAAO,SAAP,EAAe,WAAU,QACxB,UAACA,sCAAA,OAAO,OAAP,EAAa,aAAY,sBAAA,CAAsB,EAClD,CAAA;AAAA,MACAD,kCAAAA,KAAC,OAAO,SAAP,EACC,UAAA;AAAA,QAAAC,sCAAC,OAAO,MAAP,EAAY,OAAM,KAAK,UAAI,KAAA;AAAA,8CAC3B,OAAO,MAAP,EAAY,OAAM,MAAM,UAAK,MAAA;AAAA,8CAC7B,OAAO,MAAP,EAAY,OAAM,KAAK,UAAI,KAAA;AAAA,8CAC3B,OAAO,MAAP,EAAY,OAAM,MAAM,UAAK,MAAA;AAAA,8CAC7B,OAAO,MAAP,EAAY,OAAM,KAAK,UAAI,KAAA;AAAA,MAAA,GAC9B;AAAA,IAAA,GACF;AAAA,IACAA,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,cAAc,eAAe;AAAA,QAC7B,UAAU,CAAC,MAAM,eAAe,EAAE,OAAO,KAAK;AAAA,QAC9C,WAAU;AAAA,MAAA;AAAA,IACZ;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("../../jsx-runtime-DvCoRj5u.cjs");
|
|
4
|
+
const components_Breadcrumb_index = require("../Breadcrumb/index.cjs");
|
|
5
|
+
const KeyPathBreadcrumb = ({
|
|
6
|
+
keyPath,
|
|
7
|
+
dictionaryKey,
|
|
8
|
+
onClickKeyPath
|
|
9
|
+
}) => {
|
|
10
|
+
const formattedKeyPath = [
|
|
11
|
+
{ text: dictionaryKey, onClick: () => onClickKeyPath([]) },
|
|
12
|
+
...keyPath.map((el, index) => ({
|
|
13
|
+
onClick: () => onClickKeyPath(
|
|
14
|
+
keyPath.slice(0, index + 1)
|
|
15
|
+
),
|
|
16
|
+
text: el.key.toString()
|
|
17
|
+
}))
|
|
18
|
+
];
|
|
19
|
+
return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(components_Breadcrumb_index.Breadcrumb, { links: formattedKeyPath });
|
|
20
|
+
};
|
|
21
|
+
exports.KeyPathBreadcrumb = KeyPathBreadcrumb;
|
|
22
|
+
//# sourceMappingURL=KeyPathBreadcrumb.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyPathBreadcrumb.cjs","sources":["../../../src/components/DictionaryFieldEditor/KeyPathBreadcrumb.tsx"],"sourcesContent":["import type { KeyPath } from '@intlayer/core';\nimport type { FC } from 'react';\nimport { Breadcrumb, type BreadcrumbLink } from '../Breadcrumb';\n\ntype KeyPathBreadcrumbProps = {\n dictionaryKey: string;\n keyPath: KeyPath[];\n onClickKeyPath: (keyPath: KeyPath[]) => void;\n};\n\nexport const KeyPathBreadcrumb: FC<KeyPathBreadcrumbProps> = ({\n keyPath,\n dictionaryKey,\n onClickKeyPath,\n}) => {\n const formattedKeyPath: BreadcrumbLink[] = [\n { text: dictionaryKey, onClick: () => onClickKeyPath([]) },\n ...keyPath.map((el, index) => ({\n onClick: () =>\n onClickKeyPath(\n keyPath\n // With keyPath = [{type: NodeType.Object, key: '0'}, {type: NodeType.Array, key: '0'}, {type: NodeType.Object, key: '1'}]\n // If index is 0 -> onFocusKeyPath([{type: NodeType.Object, key: '0'}])\n // If index is 1 -> onFocusKeyPath([{type: NodeType.Object, key: '0'}, {type: NodeType.Array, key: '0'}])\n .slice(0, index + 1)\n ),\n text: el.key.toString(),\n })),\n ];\n\n return <Breadcrumb links={formattedKeyPath} />;\n};\n"],"names":["jsx","Breadcrumb"],"mappings":";;;;AAUO,MAAM,oBAAgD,CAAC;AAAA,EAC5D;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,mBAAqC;AAAA,IACzC,EAAE,MAAM,eAAe,SAAS,MAAM,eAAe,CAAE,CAAA,EAAE;AAAA,IACzD,GAAG,QAAQ,IAAI,CAAC,IAAI,WAAW;AAAA,MAC7B,SAAS,MACP;AAAA,QACE,QAIG,MAAM,GAAG,QAAQ,CAAC;AAAA,MACvB;AAAA,MACF,MAAM,GAAG,IAAI,SAAS;AAAA,IAAA,EACtB;AAAA,EAAA;AAGG,SAAAA,2BAAA,kBAAA,IAACC,4BAAW,YAAA,EAAA,OAAO,iBAAkB,CAAA;AAC9C;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { KeyPath } from '@intlayer/core';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
|
|
4
|
+
type KeyPathBreadcrumbProps = {
|
|
5
|
+
dictionaryKey: string;
|
|
6
|
+
keyPath: KeyPath[];
|
|
7
|
+
onClickKeyPath: (keyPath: KeyPath[]) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const KeyPathBreadcrumb: FC<KeyPathBreadcrumbProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=KeyPathBreadcrumb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyPathBreadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/DictionaryFieldEditor/KeyPathBreadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,KAAK,sBAAsB,GAAG;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAqBxD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from "../../jsx-runtime-BgSF1HG2.js";
|
|
2
|
+
import { Breadcrumb } from "../Breadcrumb/index.mjs";
|
|
3
|
+
const KeyPathBreadcrumb = ({
|
|
4
|
+
keyPath,
|
|
5
|
+
dictionaryKey,
|
|
6
|
+
onClickKeyPath
|
|
7
|
+
}) => {
|
|
8
|
+
const formattedKeyPath = [
|
|
9
|
+
{ text: dictionaryKey, onClick: () => onClickKeyPath([]) },
|
|
10
|
+
...keyPath.map((el, index) => ({
|
|
11
|
+
onClick: () => onClickKeyPath(
|
|
12
|
+
keyPath.slice(0, index + 1)
|
|
13
|
+
),
|
|
14
|
+
text: el.key.toString()
|
|
15
|
+
}))
|
|
16
|
+
];
|
|
17
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { links: formattedKeyPath });
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
KeyPathBreadcrumb
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=KeyPathBreadcrumb.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KeyPathBreadcrumb.mjs","sources":["../../../src/components/DictionaryFieldEditor/KeyPathBreadcrumb.tsx"],"sourcesContent":["import type { KeyPath } from '@intlayer/core';\nimport type { FC } from 'react';\nimport { Breadcrumb, type BreadcrumbLink } from '../Breadcrumb';\n\ntype KeyPathBreadcrumbProps = {\n dictionaryKey: string;\n keyPath: KeyPath[];\n onClickKeyPath: (keyPath: KeyPath[]) => void;\n};\n\nexport const KeyPathBreadcrumb: FC<KeyPathBreadcrumbProps> = ({\n keyPath,\n dictionaryKey,\n onClickKeyPath,\n}) => {\n const formattedKeyPath: BreadcrumbLink[] = [\n { text: dictionaryKey, onClick: () => onClickKeyPath([]) },\n ...keyPath.map((el, index) => ({\n onClick: () =>\n onClickKeyPath(\n keyPath\n // With keyPath = [{type: NodeType.Object, key: '0'}, {type: NodeType.Array, key: '0'}, {type: NodeType.Object, key: '1'}]\n // If index is 0 -> onFocusKeyPath([{type: NodeType.Object, key: '0'}])\n // If index is 1 -> onFocusKeyPath([{type: NodeType.Object, key: '0'}, {type: NodeType.Array, key: '0'}])\n .slice(0, index + 1)\n ),\n text: el.key.toString(),\n })),\n ];\n\n return <Breadcrumb links={formattedKeyPath} />;\n};\n"],"names":["jsx"],"mappings":";;AAUO,MAAM,oBAAgD,CAAC;AAAA,EAC5D;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,mBAAqC;AAAA,IACzC,EAAE,MAAM,eAAe,SAAS,MAAM,eAAe,CAAE,CAAA,EAAE;AAAA,IACzD,GAAG,QAAQ,IAAI,CAAC,IAAI,WAAW;AAAA,MAC7B,SAAS,MACP;AAAA,QACE,QAIG,MAAM,GAAG,QAAQ,CAAC;AAAA,MACvB;AAAA,MACF,MAAM,GAAG,IAAI,SAAS;AAAA,IAAA,EACtB;AAAA,EAAA;AAGG,SAAAA,kCAAA,IAAC,YAAW,EAAA,OAAO,iBAAkB,CAAA;AAC9C;"}
|