@intlayer/design-system 5.5.11 → 5.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (447) hide show
  1. package/README.md +1 -1
  2. package/dist/.vite/manifest.json +126 -570
  3. package/dist/components/Command/index.d.ts +5 -5
  4. package/dist/components/Container/index.cjs +2 -1
  5. package/dist/components/Container/index.cjs.map +1 -1
  6. package/dist/components/Container/index.d.ts +2 -3
  7. package/dist/components/Container/index.d.ts.map +1 -1
  8. package/dist/components/Container/index.mjs +3 -2
  9. package/dist/components/Container/index.mjs.map +1 -1
  10. package/dist/components/ContentEditor/ContentEditorTextArea.cjs +2 -27
  11. package/dist/components/ContentEditor/ContentEditorTextArea.cjs.map +1 -1
  12. package/dist/components/ContentEditor/ContentEditorTextArea.d.ts +1 -1
  13. package/dist/components/ContentEditor/ContentEditorTextArea.d.ts.map +1 -1
  14. package/dist/components/ContentEditor/ContentEditorTextArea.mjs +1 -26
  15. package/dist/components/ContentEditor/ContentEditorTextArea.mjs.map +1 -1
  16. package/dist/components/{IDE/CopyButton.cjs → CopyButton/index.cjs} +6 -5
  17. package/dist/components/CopyButton/index.cjs.map +1 -0
  18. package/dist/components/{IDE/CopyButton.d.ts → CopyButton/index.d.ts} +3 -2
  19. package/dist/components/CopyButton/index.d.ts.map +1 -0
  20. package/dist/components/{IDE/CopyButton.mjs → CopyButton/index.mjs} +6 -5
  21. package/dist/components/CopyButton/index.mjs.map +1 -0
  22. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs +2 -0
  23. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs.map +1 -1
  24. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +2 -0
  25. package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs.map +1 -1
  26. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +9 -28
  27. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
  28. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +8 -27
  29. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
  30. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs +1 -1
  31. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs +1 -1
  32. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +10 -26
  33. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
  34. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +9 -25
  35. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
  36. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs +1 -1
  37. package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs +1 -1
  38. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +2 -2
  39. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +2 -2
  40. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +7 -20
  41. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
  42. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +6 -19
  43. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
  44. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs +2 -2
  45. package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs +2 -2
  46. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs +2 -2
  47. package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs +2 -2
  48. package/dist/components/EditableField/EditableFieldTextArea.cjs +2 -2
  49. package/dist/components/EditableField/EditableFieldTextArea.mjs +2 -2
  50. package/dist/components/Form/elements/FormElementWrapper.cjs +1 -1
  51. package/dist/components/Form/elements/FormElementWrapper.mjs +1 -1
  52. package/dist/components/IDE/Code.cjs +3 -3
  53. package/dist/components/IDE/Code.cjs.map +1 -1
  54. package/dist/components/IDE/Code.d.ts +1 -1
  55. package/dist/components/IDE/Code.d.ts.map +1 -1
  56. package/dist/components/IDE/Code.mjs +3 -3
  57. package/dist/components/IDE/Code.mjs.map +1 -1
  58. package/dist/components/IDE/CodeContext.cjs +2 -2
  59. package/dist/components/IDE/CodeContext.mjs +2 -2
  60. package/dist/components/IDE/CopyCode.cjs +28 -0
  61. package/dist/components/IDE/CopyCode.cjs.map +1 -0
  62. package/dist/components/IDE/CopyCode.d.ts +7 -0
  63. package/dist/components/IDE/CopyCode.d.ts.map +1 -0
  64. package/dist/components/IDE/CopyCode.mjs +28 -0
  65. package/dist/components/IDE/CopyCode.mjs.map +1 -0
  66. package/dist/components/IDE/MonacoCode.cjs +2 -2
  67. package/dist/components/IDE/MonacoCode.cjs.map +1 -1
  68. package/dist/components/IDE/MonacoCode.mjs +1 -1
  69. package/dist/components/IDE/MonacoCode.mjs.map +1 -1
  70. package/dist/components/IDE/code.content.cjs +39 -0
  71. package/dist/components/IDE/code.content.cjs.map +1 -0
  72. package/dist/components/{Auth/ResetPasswordForm/useResetPasswordSchema.content.d.ts → IDE/code.content.d.ts} +23 -56
  73. package/dist/components/IDE/code.content.d.ts.map +1 -0
  74. package/dist/components/IDE/code.content.mjs +40 -0
  75. package/dist/components/IDE/code.content.mjs.map +1 -0
  76. package/dist/components/IDE/copyCode.content.cjs +39 -0
  77. package/dist/components/IDE/copyCode.content.cjs.map +1 -0
  78. package/dist/components/IDE/copyCode.content.d.ts +73 -0
  79. package/dist/components/IDE/copyCode.content.d.ts.map +1 -0
  80. package/dist/components/IDE/copyCode.content.mjs +40 -0
  81. package/dist/components/IDE/copyCode.content.mjs.map +1 -0
  82. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs +2 -2
  83. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +2 -2
  84. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs +2 -2
  85. package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs +2 -2
  86. package/dist/components/Modal/Modal.cjs +3 -3
  87. package/dist/components/Modal/Modal.mjs +3 -3
  88. package/dist/components/Navbar/MobileNavbar.cjs +2 -2
  89. package/dist/components/Navbar/MobileNavbar.mjs +2 -2
  90. package/dist/components/Navbar/index.cjs +3 -3
  91. package/dist/components/Navbar/index.mjs +3 -3
  92. package/dist/components/Pattern/GridPattern.cjs +45 -48
  93. package/dist/components/Pattern/GridPattern.cjs.map +1 -1
  94. package/dist/components/Pattern/GridPattern.d.ts.map +1 -1
  95. package/dist/components/Pattern/GridPattern.mjs +45 -48
  96. package/dist/components/Pattern/GridPattern.mjs.map +1 -1
  97. package/dist/components/Popover/index.cjs +59 -15
  98. package/dist/components/Popover/index.cjs.map +1 -1
  99. package/dist/components/Popover/index.d.ts +32 -6
  100. package/dist/components/Popover/index.d.ts.map +1 -1
  101. package/dist/components/Popover/index.mjs +60 -16
  102. package/dist/components/Popover/index.mjs.map +1 -1
  103. package/dist/components/SocialNetworks/index.cjs +1 -1
  104. package/dist/components/SocialNetworks/index.cjs.map +1 -1
  105. package/dist/components/SocialNetworks/index.mjs +1 -1
  106. package/dist/components/SocialNetworks/index.mjs.map +1 -1
  107. package/dist/components/SwitchSelector/index.cjs +2 -2
  108. package/dist/components/SwitchSelector/index.mjs +2 -2
  109. package/dist/components/TabSelector/TabSelector.cjs +2 -2
  110. package/dist/components/TabSelector/TabSelector.mjs +2 -2
  111. package/dist/components/TextArea/AutocompleteTextArea.cjs +90 -13
  112. package/dist/components/TextArea/AutocompleteTextArea.cjs.map +1 -1
  113. package/dist/components/TextArea/AutocompleteTextArea.d.ts.map +1 -1
  114. package/dist/components/TextArea/AutocompleteTextArea.mjs +92 -15
  115. package/dist/components/TextArea/AutocompleteTextArea.mjs.map +1 -1
  116. package/dist/components/index.cjs +3 -38
  117. package/dist/components/index.cjs.map +1 -1
  118. package/dist/components/index.d.ts +1 -2
  119. package/dist/components/index.d.ts.map +1 -1
  120. package/dist/components/index.mjs +4 -39
  121. package/dist/components/index.mjs.map +1 -1
  122. package/dist/hooks/index.cjs +8 -1
  123. package/dist/hooks/index.cjs.map +1 -1
  124. package/dist/hooks/index.d.ts +2 -0
  125. package/dist/hooks/index.d.ts.map +1 -1
  126. package/dist/hooks/index.mjs +9 -2
  127. package/dist/hooks/index.mjs.map +1 -1
  128. package/dist/hooks/intlayerAPIHooks.cjs +29 -31
  129. package/dist/hooks/intlayerAPIHooks.cjs.map +1 -1
  130. package/dist/hooks/intlayerAPIHooks.d.ts +678 -10
  131. package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
  132. package/dist/hooks/intlayerAPIHooks.mjs +29 -31
  133. package/dist/hooks/intlayerAPIHooks.mjs.map +1 -1
  134. package/dist/hooks/useAsync/useAsync.cjs +0 -1
  135. package/dist/hooks/useAsync/useAsync.cjs.map +1 -1
  136. package/dist/hooks/useAsync/useAsync.d.ts.map +1 -1
  137. package/dist/hooks/useAsync/useAsync.mjs +0 -1
  138. package/dist/hooks/useAsync/useAsync.mjs.map +1 -1
  139. package/dist/hooks/useAuth/index.cjs +9 -0
  140. package/dist/{components/Auth/AuthenticationBarrier → hooks/useAuth}/index.cjs.map +1 -1
  141. package/dist/hooks/useAuth/index.d.ts +4 -0
  142. package/dist/hooks/useAuth/index.d.ts.map +1 -0
  143. package/dist/hooks/useAuth/index.mjs +9 -0
  144. package/dist/{components/Auth/ExternalsLoginButtons → hooks/useAuth}/index.mjs.map +1 -1
  145. package/dist/hooks/useAuth/useAuth.cjs +25 -0
  146. package/dist/hooks/useAuth/useAuth.cjs.map +1 -0
  147. package/dist/{components/Auth/useAuth/index.d.ts → hooks/useAuth/useAuth.d.ts} +3 -13
  148. package/dist/hooks/useAuth/useAuth.d.ts.map +1 -0
  149. package/dist/{components/Auth/useAuth/index.mjs → hooks/useAuth/useAuth.mjs} +2 -8
  150. package/dist/hooks/useAuth/useAuth.mjs.map +1 -0
  151. package/dist/{components/Auth → hooks}/useAuth/useOAuth2.cjs +3 -3
  152. package/dist/hooks/useAuth/useOAuth2.cjs.map +1 -0
  153. package/dist/{components/Auth → hooks}/useAuth/useOAuth2.d.ts +1 -1
  154. package/dist/hooks/useAuth/useOAuth2.d.ts.map +1 -0
  155. package/dist/{components/Auth → hooks}/useAuth/useOAuth2.mjs +4 -4
  156. package/dist/hooks/useAuth/useOAuth2.mjs.map +1 -0
  157. package/dist/{components/Auth → hooks}/useAuth/useSession.cjs +6 -25
  158. package/dist/hooks/useAuth/useSession.cjs.map +1 -0
  159. package/dist/{components/Auth → hooks}/useAuth/useSession.d.ts +3 -3
  160. package/dist/hooks/useAuth/useSession.d.ts.map +1 -0
  161. package/dist/hooks/useAuth/useSession.mjs +47 -0
  162. package/dist/hooks/useAuth/useSession.mjs.map +1 -0
  163. package/dist/hooks/useIntlayerAPI.cjs +5 -4
  164. package/dist/hooks/useIntlayerAPI.cjs.map +1 -1
  165. package/dist/hooks/useIntlayerAPI.mjs +5 -4
  166. package/dist/hooks/useIntlayerAPI.mjs.map +1 -1
  167. package/dist/{components/Auth → hooks}/useUser/index.cjs +7 -5
  168. package/dist/hooks/useUser/index.cjs.map +1 -0
  169. package/dist/hooks/useUser/index.d.ts +8 -0
  170. package/dist/hooks/useUser/index.d.ts.map +1 -0
  171. package/dist/{components/Auth → hooks}/useUser/index.mjs +6 -4
  172. package/dist/hooks/useUser/index.mjs.map +1 -0
  173. package/dist/{schemas-itjzX6bG.js → schemas-BIuxHDyZ.js} +3 -7
  174. package/dist/{schemas-itjzX6bG.js.map → schemas-BIuxHDyZ.js.map} +1 -1
  175. package/dist/{schemas-DlCjM5d_.cjs → schemas-Q6C7ZNs3.cjs} +3 -7
  176. package/dist/{schemas-DlCjM5d_.cjs.map → schemas-Q6C7ZNs3.cjs.map} +1 -1
  177. package/dist/tailwind.css +1 -1
  178. package/package.json +18 -18
  179. package/dist/components/Auth/AuthModal/index.cjs +0 -106
  180. package/dist/components/Auth/AuthModal/index.cjs.map +0 -1
  181. package/dist/components/Auth/AuthModal/index.d.ts +0 -20
  182. package/dist/components/Auth/AuthModal/index.d.ts.map +0 -1
  183. package/dist/components/Auth/AuthModal/index.mjs +0 -106
  184. package/dist/components/Auth/AuthModal/index.mjs.map +0 -1
  185. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs +0 -36
  186. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs.map +0 -1
  187. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.d.ts +0 -5
  188. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.d.ts.map +0 -1
  189. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs +0 -36
  190. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs.map +0 -1
  191. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.cjs +0 -22
  192. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.cjs.map +0 -1
  193. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.d.ts +0 -8
  194. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.d.ts.map +0 -1
  195. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.mjs +0 -22
  196. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.mjs.map +0 -1
  197. package/dist/components/Auth/AuthenticationBarrier/accessValidation.cjs +0 -15
  198. package/dist/components/Auth/AuthenticationBarrier/accessValidation.cjs.map +0 -1
  199. package/dist/components/Auth/AuthenticationBarrier/accessValidation.d.ts +0 -4
  200. package/dist/components/Auth/AuthenticationBarrier/accessValidation.d.ts.map +0 -1
  201. package/dist/components/Auth/AuthenticationBarrier/accessValidation.mjs +0 -15
  202. package/dist/components/Auth/AuthenticationBarrier/accessValidation.mjs.map +0 -1
  203. package/dist/components/Auth/AuthenticationBarrier/index.cjs +0 -7
  204. package/dist/components/Auth/AuthenticationBarrier/index.d.ts +0 -23
  205. package/dist/components/Auth/AuthenticationBarrier/index.d.ts.map +0 -1
  206. package/dist/components/Auth/AuthenticationBarrier/index.mjs +0 -7
  207. package/dist/components/Auth/AuthenticationBarrier/index.mjs.map +0 -1
  208. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs +0 -95
  209. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs.map +0 -1
  210. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts +0 -9
  211. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts.map +0 -1
  212. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs +0 -95
  213. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs.map +0 -1
  214. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.cjs +0 -138
  215. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.cjs.map +0 -1
  216. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.d.ts +0 -278
  217. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.d.ts.map +0 -1
  218. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.mjs +0 -138
  219. package/dist/components/Auth/ChangePasswordForm/changePasswordForm.content.mjs.map +0 -1
  220. package/dist/components/Auth/ChangePasswordForm/index.cjs +0 -7
  221. package/dist/components/Auth/ChangePasswordForm/index.cjs.map +0 -1
  222. package/dist/components/Auth/ChangePasswordForm/index.d.ts +0 -3
  223. package/dist/components/Auth/ChangePasswordForm/index.d.ts.map +0 -1
  224. package/dist/components/Auth/ChangePasswordForm/index.mjs +0 -7
  225. package/dist/components/Auth/ChangePasswordForm/index.mjs.map +0 -1
  226. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.cjs +0 -34
  227. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.cjs.map +0 -1
  228. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.cjs +0 -131
  229. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.cjs.map +0 -1
  230. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.d.ts +0 -271
  231. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.d.ts.map +0 -1
  232. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.mjs +0 -131
  233. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.content.mjs.map +0 -1
  234. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.d.ts +0 -8
  235. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.d.ts.map +0 -1
  236. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.mjs +0 -34
  237. package/dist/components/Auth/ChangePasswordForm/useChangePasswordSchema.mjs.map +0 -1
  238. package/dist/components/Auth/DefineNewPasswordForm/DefineNewPasswordForm.cjs +0 -81
  239. package/dist/components/Auth/DefineNewPasswordForm/DefineNewPasswordForm.cjs.map +0 -1
  240. package/dist/components/Auth/DefineNewPasswordForm/DefineNewPasswordForm.d.ts +0 -9
  241. package/dist/components/Auth/DefineNewPasswordForm/DefineNewPasswordForm.d.ts.map +0 -1
  242. package/dist/components/Auth/DefineNewPasswordForm/DefineNewPasswordForm.mjs +0 -81
  243. package/dist/components/Auth/DefineNewPasswordForm/DefineNewPasswordForm.mjs.map +0 -1
  244. package/dist/components/Auth/DefineNewPasswordForm/defineNewPasswordForm.content.cjs +0 -106
  245. package/dist/components/Auth/DefineNewPasswordForm/defineNewPasswordForm.content.cjs.map +0 -1
  246. package/dist/components/Auth/DefineNewPasswordForm/defineNewPasswordForm.content.d.ts +0 -210
  247. package/dist/components/Auth/DefineNewPasswordForm/defineNewPasswordForm.content.d.ts.map +0 -1
  248. package/dist/components/Auth/DefineNewPasswordForm/defineNewPasswordForm.content.mjs +0 -106
  249. package/dist/components/Auth/DefineNewPasswordForm/defineNewPasswordForm.content.mjs.map +0 -1
  250. package/dist/components/Auth/DefineNewPasswordForm/index.cjs +0 -7
  251. package/dist/components/Auth/DefineNewPasswordForm/index.cjs.map +0 -1
  252. package/dist/components/Auth/DefineNewPasswordForm/index.d.ts +0 -3
  253. package/dist/components/Auth/DefineNewPasswordForm/index.d.ts.map +0 -1
  254. package/dist/components/Auth/DefineNewPasswordForm/index.mjs +0 -7
  255. package/dist/components/Auth/DefineNewPasswordForm/index.mjs.map +0 -1
  256. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.cjs +0 -29
  257. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.cjs.map +0 -1
  258. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.content.cjs +0 -101
  259. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.content.cjs.map +0 -1
  260. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.content.d.ts +0 -205
  261. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.content.d.ts.map +0 -1
  262. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.content.mjs +0 -101
  263. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.content.mjs.map +0 -1
  264. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.d.ts +0 -7
  265. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.d.ts.map +0 -1
  266. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.mjs +0 -29
  267. package/dist/components/Auth/DefineNewPasswordForm/useDefineNewPasswordSchema.mjs.map +0 -1
  268. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +0 -81
  269. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs.map +0 -1
  270. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts +0 -9
  271. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts.map +0 -1
  272. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +0 -81
  273. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs.map +0 -1
  274. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.cjs +0 -15
  275. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.cjs.map +0 -1
  276. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.d.ts +0 -3
  277. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.d.ts.map +0 -1
  278. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.mjs +0 -15
  279. package/dist/components/Auth/ExternalsLoginButtons/assets/GithubLogo.mjs.map +0 -1
  280. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.cjs +0 -23
  281. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.cjs.map +0 -1
  282. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.d.ts +0 -3
  283. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.d.ts.map +0 -1
  284. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.mjs +0 -23
  285. package/dist/components/Auth/ExternalsLoginButtons/assets/GoogleLogo.mjs.map +0 -1
  286. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.cjs +0 -90
  287. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.cjs.map +0 -1
  288. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.d.ts +0 -176
  289. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.d.ts.map +0 -1
  290. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.mjs +0 -90
  291. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.mjs.map +0 -1
  292. package/dist/components/Auth/ExternalsLoginButtons/index.cjs +0 -7
  293. package/dist/components/Auth/ExternalsLoginButtons/index.cjs.map +0 -1
  294. package/dist/components/Auth/ExternalsLoginButtons/index.d.ts +0 -2
  295. package/dist/components/Auth/ExternalsLoginButtons/index.d.ts.map +0 -1
  296. package/dist/components/Auth/ExternalsLoginButtons/index.mjs +0 -7
  297. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs +0 -113
  298. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs.map +0 -1
  299. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts +0 -11
  300. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts.map +0 -1
  301. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs +0 -113
  302. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs.map +0 -1
  303. package/dist/components/Auth/ResetPasswordForm/index.cjs +0 -7
  304. package/dist/components/Auth/ResetPasswordForm/index.cjs.map +0 -1
  305. package/dist/components/Auth/ResetPasswordForm/index.d.ts +0 -3
  306. package/dist/components/Auth/ResetPasswordForm/index.d.ts.map +0 -1
  307. package/dist/components/Auth/ResetPasswordForm/index.mjs +0 -7
  308. package/dist/components/Auth/ResetPasswordForm/index.mjs.map +0 -1
  309. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.cjs +0 -123
  310. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.cjs.map +0 -1
  311. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.d.ts +0 -245
  312. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.d.ts.map +0 -1
  313. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.mjs +0 -123
  314. package/dist/components/Auth/ResetPasswordForm/resetPasswordContent.content.mjs.map +0 -1
  315. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.cjs +0 -15
  316. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.cjs.map +0 -1
  317. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.cjs +0 -56
  318. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.cjs.map +0 -1
  319. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.d.ts.map +0 -1
  320. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.mjs +0 -56
  321. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.content.mjs.map +0 -1
  322. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.d.ts +0 -6
  323. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.d.ts.map +0 -1
  324. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.mjs +0 -15
  325. package/dist/components/Auth/ResetPasswordForm/useResetPasswordSchema.mjs.map +0 -1
  326. package/dist/components/Auth/SignInForm/SignInForm.cjs +0 -105
  327. package/dist/components/Auth/SignInForm/SignInForm.cjs.map +0 -1
  328. package/dist/components/Auth/SignInForm/SignInForm.d.ts +0 -11
  329. package/dist/components/Auth/SignInForm/SignInForm.d.ts.map +0 -1
  330. package/dist/components/Auth/SignInForm/SignInForm.mjs +0 -105
  331. package/dist/components/Auth/SignInForm/SignInForm.mjs.map +0 -1
  332. package/dist/components/Auth/SignInForm/index.cjs +0 -7
  333. package/dist/components/Auth/SignInForm/index.cjs.map +0 -1
  334. package/dist/components/Auth/SignInForm/index.d.ts +0 -3
  335. package/dist/components/Auth/SignInForm/index.d.ts.map +0 -1
  336. package/dist/components/Auth/SignInForm/index.mjs +0 -7
  337. package/dist/components/Auth/SignInForm/index.mjs.map +0 -1
  338. package/dist/components/Auth/SignInForm/signIn.content.cjs +0 -217
  339. package/dist/components/Auth/SignInForm/signIn.content.cjs.map +0 -1
  340. package/dist/components/Auth/SignInForm/signIn.content.d.ts +0 -447
  341. package/dist/components/Auth/SignInForm/signIn.content.d.ts.map +0 -1
  342. package/dist/components/Auth/SignInForm/signIn.content.mjs +0 -217
  343. package/dist/components/Auth/SignInForm/signIn.content.mjs.map +0 -1
  344. package/dist/components/Auth/SignInForm/useSignInSchema.cjs +0 -23
  345. package/dist/components/Auth/SignInForm/useSignInSchema.cjs.map +0 -1
  346. package/dist/components/Auth/SignInForm/useSignInSchema.content.cjs +0 -71
  347. package/dist/components/Auth/SignInForm/useSignInSchema.content.cjs.map +0 -1
  348. package/dist/components/Auth/SignInForm/useSignInSchema.content.d.ts +0 -139
  349. package/dist/components/Auth/SignInForm/useSignInSchema.content.d.ts.map +0 -1
  350. package/dist/components/Auth/SignInForm/useSignInSchema.content.mjs +0 -71
  351. package/dist/components/Auth/SignInForm/useSignInSchema.content.mjs.map +0 -1
  352. package/dist/components/Auth/SignInForm/useSignInSchema.d.ts +0 -7
  353. package/dist/components/Auth/SignInForm/useSignInSchema.d.ts.map +0 -1
  354. package/dist/components/Auth/SignInForm/useSignInSchema.mjs +0 -23
  355. package/dist/components/Auth/SignInForm/useSignInSchema.mjs.map +0 -1
  356. package/dist/components/Auth/SignUpForm/SignUpForm.cjs +0 -98
  357. package/dist/components/Auth/SignUpForm/SignUpForm.cjs.map +0 -1
  358. package/dist/components/Auth/SignUpForm/SignUpForm.d.ts +0 -10
  359. package/dist/components/Auth/SignUpForm/SignUpForm.d.ts.map +0 -1
  360. package/dist/components/Auth/SignUpForm/SignUpForm.mjs +0 -98
  361. package/dist/components/Auth/SignUpForm/SignUpForm.mjs.map +0 -1
  362. package/dist/components/Auth/SignUpForm/index.cjs +0 -7
  363. package/dist/components/Auth/SignUpForm/index.cjs.map +0 -1
  364. package/dist/components/Auth/SignUpForm/index.d.ts +0 -3
  365. package/dist/components/Auth/SignUpForm/index.d.ts.map +0 -1
  366. package/dist/components/Auth/SignUpForm/index.mjs +0 -7
  367. package/dist/components/Auth/SignUpForm/index.mjs.map +0 -1
  368. package/dist/components/Auth/SignUpForm/signUpForm.content.cjs +0 -184
  369. package/dist/components/Auth/SignUpForm/signUpForm.content.cjs.map +0 -1
  370. package/dist/components/Auth/SignUpForm/signUpForm.content.d.ts +0 -380
  371. package/dist/components/Auth/SignUpForm/signUpForm.content.d.ts.map +0 -1
  372. package/dist/components/Auth/SignUpForm/signUpForm.content.mjs +0 -185
  373. package/dist/components/Auth/SignUpForm/signUpForm.content.mjs.map +0 -1
  374. package/dist/components/Auth/SignUpForm/useSignUpSchema.cjs +0 -33
  375. package/dist/components/Auth/SignUpForm/useSignUpSchema.cjs.map +0 -1
  376. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.cjs +0 -116
  377. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.cjs.map +0 -1
  378. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.d.ts +0 -238
  379. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.d.ts.map +0 -1
  380. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.mjs +0 -116
  381. package/dist/components/Auth/SignUpForm/useSignUpSchema.content.mjs.map +0 -1
  382. package/dist/components/Auth/SignUpForm/useSignUpSchema.d.ts +0 -8
  383. package/dist/components/Auth/SignUpForm/useSignUpSchema.d.ts.map +0 -1
  384. package/dist/components/Auth/SignUpForm/useSignUpSchema.mjs +0 -33
  385. package/dist/components/Auth/SignUpForm/useSignUpSchema.mjs.map +0 -1
  386. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.cjs +0 -79
  387. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.cjs.map +0 -1
  388. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.d.ts +0 -10
  389. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.d.ts.map +0 -1
  390. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.mjs +0 -79
  391. package/dist/components/Auth/VerifyEmailForm/VerifyEmailForm.mjs.map +0 -1
  392. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.cjs +0 -8
  393. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.cjs.map +0 -1
  394. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.d.ts +0 -4
  395. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.d.ts.map +0 -1
  396. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.mjs +0 -8
  397. package/dist/components/Auth/VerifyEmailForm/VerifyEmailSchema.mjs.map +0 -1
  398. package/dist/components/Auth/VerifyEmailForm/index.cjs +0 -5
  399. package/dist/components/Auth/VerifyEmailForm/index.cjs.map +0 -1
  400. package/dist/components/Auth/VerifyEmailForm/index.content.cjs +0 -73
  401. package/dist/components/Auth/VerifyEmailForm/index.content.cjs.map +0 -1
  402. package/dist/components/Auth/VerifyEmailForm/index.content.d.ts +0 -143
  403. package/dist/components/Auth/VerifyEmailForm/index.content.d.ts.map +0 -1
  404. package/dist/components/Auth/VerifyEmailForm/index.content.mjs +0 -74
  405. package/dist/components/Auth/VerifyEmailForm/index.content.mjs.map +0 -1
  406. package/dist/components/Auth/VerifyEmailForm/index.d.ts +0 -2
  407. package/dist/components/Auth/VerifyEmailForm/index.d.ts.map +0 -1
  408. package/dist/components/Auth/VerifyEmailForm/index.mjs +0 -5
  409. package/dist/components/Auth/VerifyEmailForm/index.mjs.map +0 -1
  410. package/dist/components/Auth/index.cjs +0 -39
  411. package/dist/components/Auth/index.cjs.map +0 -1
  412. package/dist/components/Auth/index.d.ts +0 -12
  413. package/dist/components/Auth/index.d.ts.map +0 -1
  414. package/dist/components/Auth/index.mjs +0 -39
  415. package/dist/components/Auth/index.mjs.map +0 -1
  416. package/dist/components/Auth/useAuth/index.cjs +0 -31
  417. package/dist/components/Auth/useAuth/index.cjs.map +0 -1
  418. package/dist/components/Auth/useAuth/index.d.ts.map +0 -1
  419. package/dist/components/Auth/useAuth/index.mjs.map +0 -1
  420. package/dist/components/Auth/useAuth/useCSRF.cjs +0 -27
  421. package/dist/components/Auth/useAuth/useCSRF.cjs.map +0 -1
  422. package/dist/components/Auth/useAuth/useCSRF.d.ts +0 -6
  423. package/dist/components/Auth/useAuth/useCSRF.d.ts.map +0 -1
  424. package/dist/components/Auth/useAuth/useCSRF.mjs +0 -27
  425. package/dist/components/Auth/useAuth/useCSRF.mjs.map +0 -1
  426. package/dist/components/Auth/useAuth/useOAuth2.cjs.map +0 -1
  427. package/dist/components/Auth/useAuth/useOAuth2.d.ts.map +0 -1
  428. package/dist/components/Auth/useAuth/useOAuth2.mjs.map +0 -1
  429. package/dist/components/Auth/useAuth/useSession.cjs.map +0 -1
  430. package/dist/components/Auth/useAuth/useSession.d.ts.map +0 -1
  431. package/dist/components/Auth/useAuth/useSession.mjs +0 -66
  432. package/dist/components/Auth/useAuth/useSession.mjs.map +0 -1
  433. package/dist/components/Auth/useUser/index.cjs.map +0 -1
  434. package/dist/components/Auth/useUser/index.d.ts +0 -8
  435. package/dist/components/Auth/useUser/index.d.ts.map +0 -1
  436. package/dist/components/Auth/useUser/index.mjs.map +0 -1
  437. package/dist/components/IDE/CopyButton.cjs.map +0 -1
  438. package/dist/components/IDE/CopyButton.d.ts.map +0 -1
  439. package/dist/components/IDE/CopyButton.mjs.map +0 -1
  440. package/dist/components/ProfileDropDown/index.cjs +0 -25
  441. package/dist/components/ProfileDropDown/index.cjs.map +0 -1
  442. package/dist/components/ProfileDropDown/index.d.ts +0 -6
  443. package/dist/components/ProfileDropDown/index.d.ts.map +0 -1
  444. package/dist/components/ProfileDropDown/index.mjs +0 -25
  445. package/dist/components/ProfileDropDown/index.mjs.map +0 -1
  446. package/dist/hooks/useIntlayerAPI.d.ts +0 -103
  447. package/dist/hooks/useIntlayerAPI.d.ts.map +0 -1
@@ -0,0 +1,40 @@
1
+ import { t } from "intlayer";
2
+ const copyContentContent = {
3
+ key: "code",
4
+ content: {
5
+ title: t({
6
+ en: "Copy code",
7
+ es: "Copiar código",
8
+ pt: "Copiar código",
9
+ fr: "Copier le code",
10
+ de: "Code kopieren",
11
+ it: "Copiare il codice",
12
+ ja: "コードをコピー",
13
+ ko: "코드 복사",
14
+ zh: "复制代码",
15
+ hi: "कोड कॉपी करें",
16
+ "en-GB": "Copy code",
17
+ ru: "Копировать код",
18
+ ar: "نسخ الكود"
19
+ }),
20
+ description: t({
21
+ en: "Copy the code to the clipboard",
22
+ es: "Copiar el código al portapapeles",
23
+ pt: "Copiar o código para a área de transferência",
24
+ fr: "Copier le code dans le presse-papiers",
25
+ de: "Kopieren Sie den Code in die Zwischenablage",
26
+ it: "Copiare il codice nella clipboard",
27
+ ja: "コードをクリップボードにコピー",
28
+ ko: "코드를 클립보드에 복사",
29
+ zh: "复制代码到剪贴板",
30
+ hi: "कोड को क्लिपबोर्ड पर कॉपी करें",
31
+ "en-GB": "Copy the code to the clipboard",
32
+ ru: "Копировать код в буфер обмена",
33
+ ar: "نسخ الكود إلى الحافظة"
34
+ })
35
+ }
36
+ };
37
+ export {
38
+ copyContentContent as default
39
+ };
40
+ //# sourceMappingURL=copyCode.content.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copyCode.content.mjs","sources":["../../../src/components/IDE/copyCode.content.ts"],"sourcesContent":["import { t, type Dictionary } from 'intlayer';\n\nconst copyContentContent = {\n key: 'code',\n content: {\n title: t({\n en: 'Copy code',\n es: 'Copiar código',\n pt: 'Copiar código',\n fr: 'Copier le code',\n de: 'Code kopieren',\n it: 'Copiare il codice',\n ja: 'コードをコピー',\n ko: '코드 복사',\n zh: '复制代码',\n hi: 'कोड कॉपी करें',\n 'en-GB': 'Copy code',\n ru: 'Копировать код',\n ar: 'نسخ الكود',\n }),\n description: t({\n en: 'Copy the code to the clipboard',\n es: 'Copiar el código al portapapeles',\n pt: 'Copiar o código para a área de transferência',\n fr: 'Copier le code dans le presse-papiers',\n de: 'Kopieren Sie den Code in die Zwischenablage',\n it: 'Copiare il codice nella clipboard',\n ja: 'コードをクリップボードにコピー',\n ko: '코드를 클립보드에 복사',\n zh: '复制代码到剪贴板',\n hi: 'कोड को क्लिपबोर्ड पर कॉपी करें',\n 'en-GB': 'Copy the code to the clipboard',\n ru: 'Копировать код в буфер обмена',\n ar: 'نسخ الكود إلى الحافظة',\n }),\n },\n} satisfies Dictionary;\n\nexport default copyContentContent;\n"],"names":[],"mappings":";AAEA,MAAM,qBAAqB;AAAA,EACzB,KAAK;AAAA,EACL,SAAS;AAAA,IACP,OAAO,EAAE;AAAA,MACP,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,SAAS;AAAA,MACT,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA,CACL;AAAA,IACD,aAAa,EAAE;AAAA,MACb,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,SAAS;AAAA,MACT,IAAI;AAAA,MACJ,IAAI;AAAA,IACL,CAAA;AAAA,EAAA;AAEL;"}
@@ -9,10 +9,10 @@ const lucideReact = require("lucide-react");
9
9
  const ReactExports = require("react");
10
10
  const reactIntlayer = require("react-intlayer");
11
11
  require("@intlayer/editor-react");
12
+ require("../Toaster/Toast.cjs");
13
+ require("../../hooks/useAsync/useAsyncStateStore.cjs");
12
14
  require("@intlayer/api");
13
15
  require("@intlayer/config/built");
14
- require("../../hooks/useAsync/useAsyncStateStore.cjs");
15
- require("../Toaster/Toast.cjs");
16
16
  require("deepmerge");
17
17
  const hooks_usePersistedStore = require("../../hooks/usePersistedStore.cjs");
18
18
  require("../../hooks/useScrollBlockage/useScrollBlockageStore.cjs");
@@ -7,10 +7,10 @@ import { Globe, MoveVertical, Check } from "lucide-react";
7
7
  import { useRef, useMemo, useState, useCallback } from "react";
8
8
  import { useDictionary, useLocale } from "react-intlayer";
9
9
  import "@intlayer/editor-react";
10
+ import "../Toaster/Toast.mjs";
11
+ import "../../hooks/useAsync/useAsyncStateStore.mjs";
10
12
  import "@intlayer/api";
11
13
  import "@intlayer/config/built";
12
- import "../../hooks/useAsync/useAsyncStateStore.mjs";
13
- import "../Toaster/Toast.mjs";
14
14
  import "deepmerge";
15
15
  import { usePersistedStore } from "../../hooks/usePersistedStore.mjs";
16
16
  import "../../hooks/useScrollBlockage/useScrollBlockageStore.mjs";
@@ -5,10 +5,10 @@ const jsxRuntime = require("react/jsx-runtime");
5
5
  const ReactExports = require("react");
6
6
  const reactIntlayer = require("react-intlayer");
7
7
  require("@intlayer/editor-react");
8
+ require("../Toaster/Toast.cjs");
9
+ require("../../hooks/useAsync/useAsyncStateStore.cjs");
8
10
  require("@intlayer/api");
9
11
  require("@intlayer/config/built");
10
- require("../../hooks/useAsync/useAsyncStateStore.cjs");
11
- require("../Toaster/Toast.cjs");
12
12
  require("deepmerge");
13
13
  const hooks_usePersistedStore = require("../../hooks/usePersistedStore.cjs");
14
14
  require("../../hooks/useScrollBlockage/useScrollBlockageStore.cjs");
@@ -3,10 +3,10 @@ import { jsx } from "react/jsx-runtime";
3
3
  import { createContext, useContext } from "react";
4
4
  import { useLocale } from "react-intlayer";
5
5
  import "@intlayer/editor-react";
6
+ import "../Toaster/Toast.mjs";
7
+ import "../../hooks/useAsync/useAsyncStateStore.mjs";
6
8
  import "@intlayer/api";
7
9
  import "@intlayer/config/built";
8
- import "../../hooks/useAsync/useAsyncStateStore.mjs";
9
- import "../Toaster/Toast.mjs";
10
10
  import "deepmerge";
11
11
  import { usePersistedStore } from "../../hooks/usePersistedStore.mjs";
12
12
  import "../../hooks/useScrollBlockage/useScrollBlockageStore.mjs";
@@ -7,11 +7,11 @@ const framerMotion = require("framer-motion");
7
7
  const lucideReact = require("lucide-react");
8
8
  const reactDom = require("react-dom");
9
9
  require("@intlayer/editor-react");
10
- require("@intlayer/api");
11
- require("@intlayer/config/built");
10
+ require("../Toaster/Toast.cjs");
12
11
  require("react");
13
12
  require("../../hooks/useAsync/useAsyncStateStore.cjs");
14
- require("../Toaster/Toast.cjs");
13
+ require("@intlayer/api");
14
+ require("@intlayer/config/built");
15
15
  require("deepmerge");
16
16
  const hooks_useGetElementOrWindow = require("../../hooks/useGetElementOrWindow.cjs");
17
17
  const hooks_useScrollBlockage_index = require("../../index-BYzBot7l.cjs");
@@ -5,11 +5,11 @@ import { motion } from "framer-motion";
5
5
  import { X } from "lucide-react";
6
6
  import { createPortal } from "react-dom";
7
7
  import "@intlayer/editor-react";
8
- import "@intlayer/api";
9
- import "@intlayer/config/built";
8
+ import "../Toaster/Toast.mjs";
10
9
  import "react";
11
10
  import "../../hooks/useAsync/useAsyncStateStore.mjs";
12
- import "../Toaster/Toast.mjs";
11
+ import "@intlayer/api";
12
+ import "@intlayer/config/built";
13
13
  import "deepmerge";
14
14
  import { useGetElementOrWindow } from "../../hooks/useGetElementOrWindow.mjs";
15
15
  import { u as useScrollBlockage } from "../../index-BCuMWKyy.js";
@@ -5,10 +5,10 @@ const jsxRuntime = require("react/jsx-runtime");
5
5
  const framerMotion = require("framer-motion");
6
6
  const ReactExports = require("react");
7
7
  require("@intlayer/editor-react");
8
+ require("../Toaster/Toast.cjs");
9
+ require("../../hooks/useAsync/useAsyncStateStore.cjs");
8
10
  require("@intlayer/api");
9
11
  require("@intlayer/config/built");
10
- require("../../hooks/useAsync/useAsyncStateStore.cjs");
11
- require("../Toaster/Toast.cjs");
12
12
  require("deepmerge");
13
13
  const hooks_useScrollBlockage_index = require("../../index-BYzBot7l.cjs");
14
14
  const hooks_useScrollDetection = require("../../hooks/useScrollDetection.cjs");
@@ -3,10 +3,10 @@ import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import { m } from "framer-motion";
4
4
  import { useState, useRef } from "react";
5
5
  import "@intlayer/editor-react";
6
+ import "../Toaster/Toast.mjs";
7
+ import "../../hooks/useAsync/useAsyncStateStore.mjs";
6
8
  import "@intlayer/api";
7
9
  import "@intlayer/config/built";
8
- import "../../hooks/useAsync/useAsyncStateStore.mjs";
9
- import "../Toaster/Toast.mjs";
10
10
  import "deepmerge";
11
11
  import { u as useScrollBlockage } from "../../index-BCuMWKyy.js";
12
12
  import { useScrollDetection } from "../../hooks/useScrollDetection.mjs";
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  const jsxRuntime = require("react/jsx-runtime");
5
5
  require("@intlayer/editor-react");
6
- require("@intlayer/api");
7
- require("@intlayer/config/built");
6
+ require("../Toaster/Toast.cjs");
8
7
  require("react");
9
8
  require("../../hooks/useAsync/useAsyncStateStore.cjs");
10
- require("../Toaster/Toast.cjs");
9
+ require("@intlayer/api");
10
+ require("@intlayer/config/built");
11
11
  const hooks_useDevice = require("../../hooks/useDevice.cjs");
12
12
  require("deepmerge");
13
13
  const hooks_useIsMounted = require("../../hooks/useIsMounted.cjs");
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx, Fragment } from "react/jsx-runtime";
3
3
  import "@intlayer/editor-react";
4
- import "@intlayer/api";
5
- import "@intlayer/config/built";
4
+ import "../Toaster/Toast.mjs";
6
5
  import "react";
7
6
  import "../../hooks/useAsync/useAsyncStateStore.mjs";
8
- import "../Toaster/Toast.mjs";
7
+ import "@intlayer/api";
8
+ import "@intlayer/config/built";
9
9
  import { useDevice } from "../../hooks/useDevice.mjs";
10
10
  import "deepmerge";
11
11
  import { useIsMounted } from "../../hooks/useIsMounted.mjs";
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const ReactExports = require("react");
5
4
  const utils_cn = require("../../utils/cn.cjs");
5
+ const id = "grid-pattern";
6
6
  const GridPattern = ({
7
7
  width = 40,
8
8
  height = 40,
@@ -12,52 +12,49 @@ const GridPattern = ({
12
12
  squares,
13
13
  className,
14
14
  ...props
15
- }) => {
16
- const id = ReactExports.useId();
17
- return /* @__PURE__ */ jsxRuntime.jsxs(
18
- "svg",
19
- {
20
- "aria-hidden": "true",
21
- className: utils_cn.cn(
22
- "fill-neutral/10 stroke-neutral/15 dark:stroke-neutral/30 pointer-events-none absolute inset-0 h-full max-h-full w-full",
23
- className
24
- ),
25
- ...props,
26
- children: [
27
- /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx(
28
- "pattern",
29
- {
30
- id,
31
- width,
32
- height,
33
- patternUnits: "userSpaceOnUse",
34
- x,
35
- y,
36
- children: /* @__PURE__ */ jsxRuntime.jsx(
37
- "path",
38
- {
39
- d: `M.5 ${height}V.5H${width}`,
40
- fill: "none",
41
- strokeDasharray
42
- }
43
- )
44
- }
45
- ) }),
46
- /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "100%", height: "100%", strokeWidth: 0, fill: `url(#${id})` }),
47
- squares && /* @__PURE__ */ jsxRuntime.jsx("svg", { x, y, className: "overflow-visible", children: squares.map(([x2, y2]) => /* @__PURE__ */ jsxRuntime.jsx(
48
- "rect",
49
- {
50
- strokeWidth: "0",
51
- width: width - 1,
52
- height: height - 1,
53
- x: x2 * width + 1,
54
- y: y2 * height + 1
55
- },
56
- `${x2}-${y2}`
57
- )) })
58
- ]
59
- }
60
- );
61
- };
15
+ }) => /* @__PURE__ */ jsxRuntime.jsxs(
16
+ "svg",
17
+ {
18
+ "aria-hidden": "true",
19
+ className: utils_cn.cn(
20
+ "fill-neutral/10 stroke-neutral/15 dark:stroke-neutral/30 pointer-events-none absolute inset-0 h-full max-h-full w-full",
21
+ className
22
+ ),
23
+ ...props,
24
+ children: [
25
+ /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx(
26
+ "pattern",
27
+ {
28
+ id,
29
+ width,
30
+ height,
31
+ patternUnits: "userSpaceOnUse",
32
+ x,
33
+ y,
34
+ children: /* @__PURE__ */ jsxRuntime.jsx(
35
+ "path",
36
+ {
37
+ d: `M.5 ${height}V.5H${width}`,
38
+ fill: "none",
39
+ strokeDasharray
40
+ }
41
+ )
42
+ }
43
+ ) }),
44
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "100%", height: "100%", strokeWidth: 0, fill: `url(#${id})` }),
45
+ squares && /* @__PURE__ */ jsxRuntime.jsx("svg", { x, y, className: "overflow-visible", children: squares.map(([x2, y2]) => /* @__PURE__ */ jsxRuntime.jsx(
46
+ "rect",
47
+ {
48
+ strokeWidth: "0",
49
+ width: width - 1,
50
+ height: height - 1,
51
+ x: x2 * width + 1,
52
+ y: y2 * height + 1
53
+ },
54
+ `${x2}-${y2}`
55
+ )) })
56
+ ]
57
+ }
58
+ );
62
59
  exports.GridPattern = GridPattern;
63
60
  //# sourceMappingURL=GridPattern.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"GridPattern.cjs","sources":["../../../src/components/Pattern/GridPattern.tsx"],"sourcesContent":["import { type FC, type SVGProps, useId } from 'react';\nimport { cn } from '../../utils/cn';\n\ntype GridPatternProps = {\n width?: number;\n height?: number;\n x?: number;\n y?: number;\n squares?: [x: number, y: number][];\n strokeDasharray?: number;\n} & SVGProps<SVGSVGElement>;\n\nexport const GridPattern: FC<GridPatternProps> = ({\n width = 40,\n height = 40,\n x = -1,\n y = -1,\n strokeDasharray = 0,\n squares,\n className,\n ...props\n}) => {\n const id = useId();\n\n return (\n <svg\n aria-hidden=\"true\"\n className={cn(\n 'fill-neutral/10 stroke-neutral/15 dark:stroke-neutral/30 pointer-events-none absolute inset-0 h-full max-h-full w-full',\n className\n )}\n {...props}\n >\n <defs>\n <pattern\n id={id}\n width={width}\n height={height}\n patternUnits=\"userSpaceOnUse\"\n x={x}\n y={y}\n >\n <path\n d={`M.5 ${height}V.5H${width}`}\n fill=\"none\"\n strokeDasharray={strokeDasharray}\n />\n </pattern>\n </defs>\n <rect width=\"100%\" height=\"100%\" strokeWidth={0} fill={`url(#${id})`} />\n {squares && (\n <svg x={x} y={y} className=\"overflow-visible\">\n {squares.map(([x, y]) => (\n <rect\n strokeWidth=\"0\"\n key={`${x}-${y}`}\n width={width - 1}\n height={height - 1}\n x={x * width + 1}\n y={y * height + 1}\n />\n ))}\n </svg>\n )}\n </svg>\n );\n};\n"],"names":["useId","jsxs","cn","jsx","x","y"],"mappings":";;;;;AAYO,MAAM,cAAoC,CAAC;AAAA,EAChD,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,kBAAkB;AAAA,EAClB;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,KAAKA,aAAAA,MAAM;AAGf,SAAAC,2BAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAY;AAAA,MACZ,WAAWC,SAAA;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEJ,UAAA;AAAA,QAAAC,+BAAC,QACC,EAAA,UAAAA,2BAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC;AAAA,YACA;AAAA,YACA;AAAA,YACA,cAAa;AAAA,YACb;AAAA,YACA;AAAA,YAEA,UAAAA,2BAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,GAAG,OAAO,MAAM,OAAO,KAAK;AAAA,gBAC5B,MAAK;AAAA,gBACL;AAAA,cAAA;AAAA,YAAA;AAAA,UACF;AAAA,QAAA,GAEJ;AAAA,QACAA,2BAAAA,IAAC,QAAK,EAAA,OAAM,QAAO,QAAO,QAAO,aAAa,GAAG,MAAM,QAAQ,EAAE,IAAK,CAAA;AAAA,QACrE,WACCA,2BAAA,IAAC,OAAI,EAAA,GAAM,GAAM,WAAU,oBACxB,UAAA,QAAQ,IAAI,CAAC,CAACC,IAAGC,EAAC,MACjBF,2BAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,aAAY;AAAA,YAEZ,OAAO,QAAQ;AAAA,YACf,QAAQ,SAAS;AAAA,YACjB,GAAGC,KAAI,QAAQ;AAAA,YACf,GAAGC,KAAI,SAAS;AAAA,UAAA;AAAA,UAJX,GAAGD,EAAC,IAAIC,EAAC;AAAA,QAAA,CAMjB,EACH,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ;;"}
1
+ {"version":3,"file":"GridPattern.cjs","sources":["../../../src/components/Pattern/GridPattern.tsx"],"sourcesContent":["import type { FC, SVGProps } from 'react';\nimport { cn } from '../../utils/cn';\n\ntype GridPatternProps = {\n width?: number;\n height?: number;\n x?: number;\n y?: number;\n squares?: [x: number, y: number][];\n strokeDasharray?: number;\n} & SVGProps<SVGSVGElement>;\n\nconst id = 'grid-pattern';\n\nexport const GridPattern: FC<GridPatternProps> = ({\n width = 40,\n height = 40,\n x = -1,\n y = -1,\n strokeDasharray = 0,\n squares,\n className,\n ...props\n}) => (\n <svg\n aria-hidden=\"true\"\n className={cn(\n 'fill-neutral/10 stroke-neutral/15 dark:stroke-neutral/30 pointer-events-none absolute inset-0 h-full max-h-full w-full',\n className\n )}\n {...props}\n >\n <defs>\n <pattern\n id={id}\n width={width}\n height={height}\n patternUnits=\"userSpaceOnUse\"\n x={x}\n y={y}\n >\n <path\n d={`M.5 ${height}V.5H${width}`}\n fill=\"none\"\n strokeDasharray={strokeDasharray}\n />\n </pattern>\n </defs>\n <rect width=\"100%\" height=\"100%\" strokeWidth={0} fill={`url(#${id})`} />\n {squares && (\n <svg x={x} y={y} className=\"overflow-visible\">\n {squares.map(([x, y]) => (\n <rect\n strokeWidth=\"0\"\n key={`${x}-${y}`}\n width={width - 1}\n height={height - 1}\n x={x * width + 1}\n y={y * height + 1}\n />\n ))}\n </svg>\n )}\n </svg>\n);\n"],"names":["jsxs","cn","jsx","x","y"],"mappings":";;;;AAYA,MAAM,KAAK;AAEJ,MAAM,cAAoC,CAAC;AAAA,EAChD,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,kBAAkB;AAAA,EAClB;AAAA,EACA;AAAA,EACA,GAAG;AACL,MACEA,2BAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,eAAY;AAAA,IACZ,WAAWC,SAAA;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA,IAEJ,UAAA;AAAA,MAAAC,+BAAC,QACC,EAAA,UAAAA,2BAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,UACA,cAAa;AAAA,UACb;AAAA,UACA;AAAA,UAEA,UAAAA,2BAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,GAAG,OAAO,MAAM,OAAO,KAAK;AAAA,cAC5B,MAAK;AAAA,cACL;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,MAAA,GAEJ;AAAA,MACAA,2BAAAA,IAAC,QAAK,EAAA,OAAM,QAAO,QAAO,QAAO,aAAa,GAAG,MAAM,QAAQ,EAAE,IAAK,CAAA;AAAA,MACrE,WACCA,2BAAA,IAAC,OAAI,EAAA,GAAM,GAAM,WAAU,oBACxB,UAAA,QAAQ,IAAI,CAAC,CAACC,IAAGC,EAAC,MACjBF,2BAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,aAAY;AAAA,UAEZ,OAAO,QAAQ;AAAA,UACf,QAAQ,SAAS;AAAA,UACjB,GAAGC,KAAI,QAAQ;AAAA,UACf,GAAGC,KAAI,SAAS;AAAA,QAAA;AAAA,QAJX,GAAGD,EAAC,IAAIC,EAAC;AAAA,MAAA,CAMjB,EACH,CAAA;AAAA,IAAA;AAAA,EAAA;AAEJ;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"GridPattern.d.ts","sourceRoot":"","sources":["../../../src/components/Pattern/GridPattern.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,QAAQ,EAAS,MAAM,OAAO,CAAC;AAGtD,KAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC;AAE5B,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAsD5C,CAAC"}
1
+ {"version":3,"file":"GridPattern.d.ts","sourceRoot":"","sources":["../../../src/components/Pattern/GridPattern.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG1C,KAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC;AAI5B,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAkD5C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useId } from "react";
3
2
  import { cn } from "../../utils/cn.mjs";
3
+ const id = "grid-pattern";
4
4
  const GridPattern = ({
5
5
  width = 40,
6
6
  height = 40,
@@ -10,53 +10,50 @@ const GridPattern = ({
10
10
  squares,
11
11
  className,
12
12
  ...props
13
- }) => {
14
- const id = useId();
15
- return /* @__PURE__ */ jsxs(
16
- "svg",
17
- {
18
- "aria-hidden": "true",
19
- className: cn(
20
- "fill-neutral/10 stroke-neutral/15 dark:stroke-neutral/30 pointer-events-none absolute inset-0 h-full max-h-full w-full",
21
- className
22
- ),
23
- ...props,
24
- children: [
25
- /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx(
26
- "pattern",
27
- {
28
- id,
29
- width,
30
- height,
31
- patternUnits: "userSpaceOnUse",
32
- x,
33
- y,
34
- children: /* @__PURE__ */ jsx(
35
- "path",
36
- {
37
- d: `M.5 ${height}V.5H${width}`,
38
- fill: "none",
39
- strokeDasharray
40
- }
41
- )
42
- }
43
- ) }),
44
- /* @__PURE__ */ jsx("rect", { width: "100%", height: "100%", strokeWidth: 0, fill: `url(#${id})` }),
45
- squares && /* @__PURE__ */ jsx("svg", { x, y, className: "overflow-visible", children: squares.map(([x2, y2]) => /* @__PURE__ */ jsx(
46
- "rect",
47
- {
48
- strokeWidth: "0",
49
- width: width - 1,
50
- height: height - 1,
51
- x: x2 * width + 1,
52
- y: y2 * height + 1
53
- },
54
- `${x2}-${y2}`
55
- )) })
56
- ]
57
- }
58
- );
59
- };
13
+ }) => /* @__PURE__ */ jsxs(
14
+ "svg",
15
+ {
16
+ "aria-hidden": "true",
17
+ className: cn(
18
+ "fill-neutral/10 stroke-neutral/15 dark:stroke-neutral/30 pointer-events-none absolute inset-0 h-full max-h-full w-full",
19
+ className
20
+ ),
21
+ ...props,
22
+ children: [
23
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx(
24
+ "pattern",
25
+ {
26
+ id,
27
+ width,
28
+ height,
29
+ patternUnits: "userSpaceOnUse",
30
+ x,
31
+ y,
32
+ children: /* @__PURE__ */ jsx(
33
+ "path",
34
+ {
35
+ d: `M.5 ${height}V.5H${width}`,
36
+ fill: "none",
37
+ strokeDasharray
38
+ }
39
+ )
40
+ }
41
+ ) }),
42
+ /* @__PURE__ */ jsx("rect", { width: "100%", height: "100%", strokeWidth: 0, fill: `url(#${id})` }),
43
+ squares && /* @__PURE__ */ jsx("svg", { x, y, className: "overflow-visible", children: squares.map(([x2, y2]) => /* @__PURE__ */ jsx(
44
+ "rect",
45
+ {
46
+ strokeWidth: "0",
47
+ width: width - 1,
48
+ height: height - 1,
49
+ x: x2 * width + 1,
50
+ y: y2 * height + 1
51
+ },
52
+ `${x2}-${y2}`
53
+ )) })
54
+ ]
55
+ }
56
+ );
60
57
  export {
61
58
  GridPattern
62
59
  };
@@ -1 +1 @@
1
- {"version":3,"file":"GridPattern.mjs","sources":["../../../src/components/Pattern/GridPattern.tsx"],"sourcesContent":["import { type FC, type SVGProps, useId } from 'react';\nimport { cn } from '../../utils/cn';\n\ntype GridPatternProps = {\n width?: number;\n height?: number;\n x?: number;\n y?: number;\n squares?: [x: number, y: number][];\n strokeDasharray?: number;\n} & SVGProps<SVGSVGElement>;\n\nexport const GridPattern: FC<GridPatternProps> = ({\n width = 40,\n height = 40,\n x = -1,\n y = -1,\n strokeDasharray = 0,\n squares,\n className,\n ...props\n}) => {\n const id = useId();\n\n return (\n <svg\n aria-hidden=\"true\"\n className={cn(\n 'fill-neutral/10 stroke-neutral/15 dark:stroke-neutral/30 pointer-events-none absolute inset-0 h-full max-h-full w-full',\n className\n )}\n {...props}\n >\n <defs>\n <pattern\n id={id}\n width={width}\n height={height}\n patternUnits=\"userSpaceOnUse\"\n x={x}\n y={y}\n >\n <path\n d={`M.5 ${height}V.5H${width}`}\n fill=\"none\"\n strokeDasharray={strokeDasharray}\n />\n </pattern>\n </defs>\n <rect width=\"100%\" height=\"100%\" strokeWidth={0} fill={`url(#${id})`} />\n {squares && (\n <svg x={x} y={y} className=\"overflow-visible\">\n {squares.map(([x, y]) => (\n <rect\n strokeWidth=\"0\"\n key={`${x}-${y}`}\n width={width - 1}\n height={height - 1}\n x={x * width + 1}\n y={y * height + 1}\n />\n ))}\n </svg>\n )}\n </svg>\n );\n};\n"],"names":["x","y"],"mappings":";;;AAYO,MAAM,cAAoC,CAAC;AAAA,EAChD,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,kBAAkB;AAAA,EAClB;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,KAAK,MAAM;AAGf,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAY;AAAA,MACZ,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEJ,UAAA;AAAA,QAAA,oBAAC,QACC,EAAA,UAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC;AAAA,YACA;AAAA,YACA;AAAA,YACA,cAAa;AAAA,YACb;AAAA,YACA;AAAA,YAEA,UAAA;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,GAAG,OAAO,MAAM,OAAO,KAAK;AAAA,gBAC5B,MAAK;AAAA,gBACL;AAAA,cAAA;AAAA,YAAA;AAAA,UACF;AAAA,QAAA,GAEJ;AAAA,QACA,oBAAC,QAAK,EAAA,OAAM,QAAO,QAAO,QAAO,aAAa,GAAG,MAAM,QAAQ,EAAE,IAAK,CAAA;AAAA,QACrE,WACC,oBAAC,OAAI,EAAA,GAAM,GAAM,WAAU,oBACxB,UAAA,QAAQ,IAAI,CAAC,CAACA,IAAGC,EAAC,MACjB;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,aAAY;AAAA,YAEZ,OAAO,QAAQ;AAAA,YACf,QAAQ,SAAS;AAAA,YACjB,GAAGD,KAAI,QAAQ;AAAA,YACf,GAAGC,KAAI,SAAS;AAAA,UAAA;AAAA,UAJX,GAAGD,EAAC,IAAIC,EAAC;AAAA,QAAA,CAMjB,EACH,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ;AAEJ;"}
1
+ {"version":3,"file":"GridPattern.mjs","sources":["../../../src/components/Pattern/GridPattern.tsx"],"sourcesContent":["import type { FC, SVGProps } from 'react';\nimport { cn } from '../../utils/cn';\n\ntype GridPatternProps = {\n width?: number;\n height?: number;\n x?: number;\n y?: number;\n squares?: [x: number, y: number][];\n strokeDasharray?: number;\n} & SVGProps<SVGSVGElement>;\n\nconst id = 'grid-pattern';\n\nexport const GridPattern: FC<GridPatternProps> = ({\n width = 40,\n height = 40,\n x = -1,\n y = -1,\n strokeDasharray = 0,\n squares,\n className,\n ...props\n}) => (\n <svg\n aria-hidden=\"true\"\n className={cn(\n 'fill-neutral/10 stroke-neutral/15 dark:stroke-neutral/30 pointer-events-none absolute inset-0 h-full max-h-full w-full',\n className\n )}\n {...props}\n >\n <defs>\n <pattern\n id={id}\n width={width}\n height={height}\n patternUnits=\"userSpaceOnUse\"\n x={x}\n y={y}\n >\n <path\n d={`M.5 ${height}V.5H${width}`}\n fill=\"none\"\n strokeDasharray={strokeDasharray}\n />\n </pattern>\n </defs>\n <rect width=\"100%\" height=\"100%\" strokeWidth={0} fill={`url(#${id})`} />\n {squares && (\n <svg x={x} y={y} className=\"overflow-visible\">\n {squares.map(([x, y]) => (\n <rect\n strokeWidth=\"0\"\n key={`${x}-${y}`}\n width={width - 1}\n height={height - 1}\n x={x * width + 1}\n y={y * height + 1}\n />\n ))}\n </svg>\n )}\n </svg>\n);\n"],"names":["x","y"],"mappings":";;AAYA,MAAM,KAAK;AAEJ,MAAM,cAAoC,CAAC;AAAA,EAChD,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,kBAAkB;AAAA,EAClB;AAAA,EACA;AAAA,EACA,GAAG;AACL,MACE;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,eAAY;AAAA,IACZ,WAAW;AAAA,MACT;AAAA,MACA;AAAA,IACF;AAAA,IACC,GAAG;AAAA,IAEJ,UAAA;AAAA,MAAA,oBAAC,QACC,EAAA,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,UACA,cAAa;AAAA,UACb;AAAA,UACA;AAAA,UAEA,UAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,GAAG,OAAO,MAAM,OAAO,KAAK;AAAA,cAC5B,MAAK;AAAA,cACL;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,MAAA,GAEJ;AAAA,MACA,oBAAC,QAAK,EAAA,OAAM,QAAO,QAAO,QAAO,aAAa,GAAG,MAAM,QAAQ,EAAE,IAAK,CAAA;AAAA,MACrE,WACC,oBAAC,OAAI,EAAA,GAAM,GAAM,WAAU,oBACxB,UAAA,QAAQ,IAAI,CAAC,CAACA,IAAGC,EAAC,MACjB;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,aAAY;AAAA,UAEZ,OAAO,QAAQ;AAAA,UACf,QAAQ,SAAS;AAAA,UACjB,GAAGD,KAAI,QAAQ;AAAA,UACf,GAAGC,KAAI,SAAS;AAAA,QAAA;AAAA,QAJX,GAAGD,EAAC,IAAIC,EAAC;AAAA,MAAA,CAMjB,EACH,CAAA;AAAA,IAAA;AAAA,EAAA;AAEJ;"}
@@ -1,25 +1,69 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const Popover = ({ children, content }) => /* @__PURE__ */ jsxRuntime.jsxs(
4
+ const utils_cn = require("../../utils/cn.cjs");
5
+ const components_Container_index = require("../Container/index.cjs");
6
+ const Popover = ({
7
+ children,
8
+ className,
9
+ identifier,
10
+ ...props
11
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
5
12
  "div",
6
13
  {
7
- className: "group relative",
14
+ className: utils_cn.cn("group/popover relative flex cursor-pointer", className),
15
+ "aria-label": `Popover ${identifier}`,
16
+ id: `unrollable-panel-button-${identifier}`,
8
17
  "aria-haspopup": true,
9
- "aria-expanded": false,
10
- "aria-label": "Display the popup by hovering this element",
11
- children: [
12
- children,
13
- /* @__PURE__ */ jsxRuntime.jsx(
14
- "div",
15
- {
16
- className: "bg-card absolute bottom-0 left-5 z-50 translate-y-[150%] rounded-md p-1 text-xs text-opacity-75 opacity-0 ring-2 ring-current transition-all delay-200 duration-200 ease-in-out hover:delay-0 group-hover:opacity-100",
17
- "aria-hidden": true,
18
- children: content
19
- }
20
- )
21
- ]
18
+ ...props,
19
+ children
22
20
  }
23
21
  );
22
+ const Detail = ({
23
+ children,
24
+ isHidden = void 0,
25
+ isOverable = true,
26
+ isFocusable = false,
27
+ xAlign = "start",
28
+ yAlign = "bellow",
29
+ identifier,
30
+ className,
31
+ displayArrow = true,
32
+ ...props
33
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
34
+ components_Container_index.Container,
35
+ {
36
+ transparency: "sm",
37
+ "aria-hidden": isHidden,
38
+ "aria-labelledby": `unrollable-panel-button-${identifier}`,
39
+ id: `unrollable-panel-${identifier}`,
40
+ className: utils_cn.cn(
41
+ "absolute z-[1000] min-w-full ring-neutral ring-1 rounded-md",
42
+ /* Positioning */
43
+ xAlign === "start" && "left-0",
44
+ xAlign === "end" && "right-0",
45
+ yAlign === "bellow" && "top-[calc(100%+1rem)]",
46
+ yAlign === "above" && "bottom-[calc(100%+1rem)]",
47
+ /* Arrow indicator */
48
+ displayArrow && 'before:absolute before:z-[999] before:content-[""] before:w-0 before:h-0',
49
+ /* Horizontal positioning */
50
+ displayArrow && xAlign === "start" && "before:left-2",
51
+ displayArrow && xAlign === "end" && "before:right-2",
52
+ /* Arrow pointing up (when popover is below trigger) */
53
+ displayArrow && yAlign === "bellow" && "before:-top-[10px] before:border-l-[10px] before:border-l-transparent before:border-r-[10px] before:border-r-transparent before:border-b-[10px] before:border-b-neutral",
54
+ /* Arrow pointing down (when popover is above trigger) */
55
+ displayArrow && yAlign === "above" && "before:-bottom-[10px] before:border-l-[10px] before:border-l-transparent before:border-r-[10px] before:border-r-transparent before:border-t-[10px] before:border-t-neutral",
56
+ /* Visibility management */
57
+ "overflow-x-visible transition-all duration-400 ease-in-out opacity-0",
58
+ isHidden !== false ? "invisible" : "delay-800 visible opacity-100",
59
+ isOverable && "group-hover/popover:visible group-hover/popover:opacity-100 group-hover/popover:delay-800",
60
+ isFocusable && "group-focus-within/popover:visible group-focus-within/popover:opacity-100 group-focus-within/popover:delay-800",
61
+ className
62
+ ),
63
+ ...props,
64
+ children
65
+ }
66
+ );
67
+ Popover.Detail = Detail;
24
68
  exports.Popover = Popover;
25
69
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../src/components/Popover/index.tsx"],"sourcesContent":["import type { FC, ReactNode } from 'react';\n\ntype PopoverProps = {\n content: ReactNode | string;\n children: ReactNode;\n};\n\nexport const Popover: FC<PopoverProps> = ({ children, content }) => (\n <div\n className=\"group relative\"\n aria-haspopup={true}\n aria-expanded={false}\n aria-label=\"Display the popup by hovering this element\"\n >\n {children}\n <div\n className=\"bg-card absolute bottom-0 left-5 z-50 translate-y-[150%] rounded-md p-1 text-xs text-opacity-75 opacity-0 ring-2 ring-current transition-all delay-200 duration-200 ease-in-out hover:delay-0 group-hover:opacity-100\"\n aria-hidden={true}\n >\n {content}\n </div>\n </div>\n);\n"],"names":["jsxs","jsx"],"mappings":";;;AAOO,MAAM,UAA4B,CAAC,EAAE,UAAU,QACpD,MAAAA,2BAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAU;AAAA,IACV,iBAAe;AAAA,IACf,iBAAe;AAAA,IACf,cAAW;AAAA,IAEV,UAAA;AAAA,MAAA;AAAA,MACDC,2BAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,eAAa;AAAA,UAEZ,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACH;AAAA,EAAA;AACF;;"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/Popover/index.tsx"],"sourcesContent":["import type { DetailedHTMLProps, FC, HTMLAttributes } from 'react';\nimport { cn } from '../../utils/cn';\nimport { Container } from '../Container';\n\nexport type PopoverProps = DetailedHTMLProps<\n HTMLAttributes<HTMLDivElement>,\n HTMLDivElement\n> & {\n identifier: string;\n};\n\nexport type PopoverType = FC<PopoverProps> & {\n Detail: FC<DetailProps>;\n};\n\n/**\n * Trigger allowing to open a popover menu.\n *\n * Example:\n * ```jsx\n * <Popover identifier=\"popover\">\n * Open popover\n *\n * <Popover.Detail identifier=\"popover\">\n * <div>Content</div>\n * </Popover.Detail>\n * </Popover>\n * ```\n *\n * > Note Popover.Trigger can be replaced by a button. Don't add a button inside the trigger.\n */\nexport const Popover: PopoverType = ({\n children,\n className,\n identifier,\n ...props\n}) => (\n <div\n className={cn('group/popover relative flex cursor-pointer', className)}\n aria-label={`Popover ${identifier}`}\n id={`unrollable-panel-button-${identifier}`}\n aria-haspopup\n {...props}\n >\n {children}\n </div>\n);\n\nexport type DetailProps = HTMLAttributes<HTMLDivElement> & {\n isFocusable?: boolean;\n isHidden?: boolean;\n isOverable?: boolean;\n identifier: string;\n xAlign?: 'start' | 'end';\n yAlign?: 'bellow' | 'above';\n displayArrow?: boolean;\n};\n\n/**\n * Component that opens a popover menu when the trigger is clicked.\n *\n * Example:\n * ```jsx\n * <Popover.Detail identifier=\"popover\">\n * <div>Content</div>\n * </Popover.Detail>\n * ```\n */\nconst Detail: FC<DetailProps> = ({\n children,\n isHidden = undefined,\n isOverable = true,\n isFocusable = false,\n xAlign = 'start',\n yAlign = 'bellow',\n identifier,\n className,\n displayArrow = true,\n ...props\n}) => (\n <Container\n transparency=\"sm\"\n aria-hidden={isHidden}\n aria-labelledby={`unrollable-panel-button-${identifier}`}\n id={`unrollable-panel-${identifier}`}\n className={cn(\n 'absolute z-[1000] min-w-full ring-neutral ring-1 rounded-md',\n\n /* Positioning */\n xAlign === 'start' && 'left-0',\n xAlign === 'end' && 'right-0',\n yAlign === 'bellow' && 'top-[calc(100%+1rem)]',\n yAlign === 'above' && 'bottom-[calc(100%+1rem)]',\n\n /* Arrow indicator */\n displayArrow &&\n 'before:absolute before:z-[999] before:content-[\"\"] before:w-0 before:h-0',\n\n /* Horizontal positioning */\n displayArrow && xAlign === 'start' && 'before:left-2',\n displayArrow && xAlign === 'end' && 'before:right-2',\n\n /* Arrow pointing up (when popover is below trigger) */\n displayArrow &&\n yAlign === 'bellow' &&\n 'before:-top-[10px] before:border-l-[10px] before:border-l-transparent before:border-r-[10px] before:border-r-transparent before:border-b-[10px] before:border-b-neutral',\n\n /* Arrow pointing down (when popover is above trigger) */\n displayArrow &&\n yAlign === 'above' &&\n 'before:-bottom-[10px] before:border-l-[10px] before:border-l-transparent before:border-r-[10px] before:border-r-transparent before:border-t-[10px] before:border-t-neutral',\n\n /* Visibility management */\n 'overflow-x-visible transition-all duration-400 ease-in-out opacity-0',\n isHidden !== false ? 'invisible' : 'delay-800 visible opacity-100',\n isOverable &&\n 'group-hover/popover:visible group-hover/popover:opacity-100 group-hover/popover:delay-800',\n isFocusable &&\n 'group-focus-within/popover:visible group-focus-within/popover:opacity-100 group-focus-within/popover:delay-800',\n className\n )}\n {...props}\n >\n {children}\n </Container>\n);\n\nPopover.Detail = Detail;\n"],"names":["jsx","cn","Container"],"mappings":";;;;;AA+BO,MAAM,UAAuB,CAAC;AAAA,EACnC;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MACEA,2BAAA;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,SAAAA,GAAG,8CAA8C,SAAS;AAAA,IACrE,cAAY,WAAW,UAAU;AAAA,IACjC,IAAI,2BAA2B,UAAU;AAAA,IACzC,iBAAa;AAAA,IACZ,GAAG;AAAA,IAEH;AAAA,EAAA;AACH;AAuBF,MAAM,SAA0B,CAAC;AAAA,EAC/B;AAAA,EACA,WAAW;AAAA,EACX,aAAa;AAAA,EACb,cAAc;AAAA,EACd,SAAS;AAAA,EACT,SAAS;AAAA,EACT;AAAA,EACA;AAAA,EACA,eAAe;AAAA,EACf,GAAG;AACL,MACED,2BAAA;AAAA,EAACE,2BAAA;AAAA,EAAA;AAAA,IACC,cAAa;AAAA,IACb,eAAa;AAAA,IACb,mBAAiB,2BAA2B,UAAU;AAAA,IACtD,IAAI,oBAAoB,UAAU;AAAA,IAClC,WAAWD,SAAA;AAAA,MACT;AAAA;AAAA,MAGA,WAAW,WAAW;AAAA,MACtB,WAAW,SAAS;AAAA,MACpB,WAAW,YAAY;AAAA,MACvB,WAAW,WAAW;AAAA;AAAA,MAGtB,gBACE;AAAA;AAAA,MAGF,gBAAgB,WAAW,WAAW;AAAA,MACtC,gBAAgB,WAAW,SAAS;AAAA;AAAA,MAGpC,gBACE,WAAW,YACX;AAAA;AAAA,MAGF,gBACE,WAAW,WACX;AAAA;AAAA,MAGF;AAAA,MACA,aAAa,QAAQ,cAAc;AAAA,MACnC,cACE;AAAA,MACF,eACE;AAAA,MACF;AAAA,IACF;AAAA,IACC,GAAG;AAAA,IAEH;AAAA,EAAA;AACH;AAGF,QAAQ,SAAS;;"}
@@ -1,8 +1,34 @@
1
- import { FC, ReactNode } from 'react';
2
- type PopoverProps = {
3
- content: ReactNode | string;
4
- children: ReactNode;
1
+ import { DetailedHTMLProps, FC, HTMLAttributes } from 'react';
2
+ export type PopoverProps = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
3
+ identifier: string;
4
+ };
5
+ export type PopoverType = FC<PopoverProps> & {
6
+ Detail: FC<DetailProps>;
7
+ };
8
+ /**
9
+ * Trigger allowing to open a popover menu.
10
+ *
11
+ * Example:
12
+ * ```jsx
13
+ * <Popover identifier="popover">
14
+ * Open popover
15
+ *
16
+ * <Popover.Detail identifier="popover">
17
+ * <div>Content</div>
18
+ * </Popover.Detail>
19
+ * </Popover>
20
+ * ```
21
+ *
22
+ * > Note Popover.Trigger can be replaced by a button. Don't add a button inside the trigger.
23
+ */
24
+ export declare const Popover: PopoverType;
25
+ export type DetailProps = HTMLAttributes<HTMLDivElement> & {
26
+ isFocusable?: boolean;
27
+ isHidden?: boolean;
28
+ isOverable?: boolean;
29
+ identifier: string;
30
+ xAlign?: 'start' | 'end';
31
+ yAlign?: 'bellow' | 'above';
32
+ displayArrow?: boolean;
5
33
  };
6
- export declare const Popover: FC<PopoverProps>;
7
- export {};
8
34
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3C,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,SAAS,GAAG,MAAM,CAAC;IAC5B,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAepC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAInE,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAC1C,cAAc,CAAC,cAAc,CAAC,EAC9B,cAAc,CACf,GAAG;IACF,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,EAAE,CAAC,YAAY,CAAC,GAAG;IAC3C,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,OAAO,EAAE,WAerB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACzD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IACzB,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}