@intlayer/design-system 3.1.0 → 3.2.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.
Files changed (320) hide show
  1. package/dist/.vite/manifest.json +481 -455
  2. package/dist/TabSelector-BmkzVPXl.js +660 -0
  3. package/dist/TabSelector-BmkzVPXl.js.map +1 -0
  4. package/dist/TabSelector-o_NRBvPQ.cjs +659 -0
  5. package/dist/TabSelector-o_NRBvPQ.cjs.map +1 -0
  6. package/dist/components/Auth/AuthModal/index.cjs +17 -62
  7. package/dist/components/Auth/AuthModal/index.cjs.map +1 -1
  8. package/dist/components/Auth/AuthModal/index.d.ts.map +1 -1
  9. package/dist/components/Auth/AuthModal/index.mjs +17 -62
  10. package/dist/components/Auth/AuthModal/index.mjs.map +1 -1
  11. package/dist/components/Auth/AuthProvider/index.cjs.map +1 -1
  12. package/dist/components/Auth/AuthProvider/index.d.ts +3 -3
  13. package/dist/components/Auth/AuthProvider/index.d.ts.map +1 -1
  14. package/dist/components/Auth/AuthProvider/index.mjs.map +1 -1
  15. package/dist/components/Auth/AuthProvider/useSession.cjs +7 -8
  16. package/dist/components/Auth/AuthProvider/useSession.cjs.map +1 -1
  17. package/dist/components/Auth/AuthProvider/useSession.d.ts.map +1 -1
  18. package/dist/components/Auth/AuthProvider/useSession.mjs +7 -8
  19. package/dist/components/Auth/AuthProvider/useSession.mjs.map +1 -1
  20. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs +2 -2
  21. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs.map +1 -1
  22. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs +1 -1
  23. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs.map +1 -1
  24. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.cjs.map +1 -1
  25. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.d.ts +2 -2
  26. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.d.ts.map +1 -1
  27. package/dist/components/Auth/AuthenticationBarrier/AuthenticationBarrierServer.mjs.map +1 -1
  28. package/dist/components/Auth/AuthenticationBarrier/accessValidation.cjs.map +1 -1
  29. package/dist/components/Auth/AuthenticationBarrier/accessValidation.d.ts +1 -1
  30. package/dist/components/Auth/AuthenticationBarrier/accessValidation.d.ts.map +1 -1
  31. package/dist/components/Auth/AuthenticationBarrier/accessValidation.mjs.map +1 -1
  32. package/dist/components/Auth/AuthenticationBarrier/index.d.ts +3 -3
  33. package/dist/components/Auth/AuthenticationBarrier/index.d.ts.map +1 -1
  34. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs +1 -0
  35. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.cjs.map +1 -1
  36. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts +1 -1
  37. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.d.ts.map +1 -1
  38. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs +1 -0
  39. package/dist/components/Auth/ChangePasswordForm/ChangePasswordForm.mjs.map +1 -1
  40. package/dist/components/Auth/ChangePasswordForm/index.content.d.ts +10 -10
  41. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs +3 -2
  42. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.cjs.map +1 -1
  43. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.d.ts.map +1 -1
  44. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs +3 -2
  45. package/dist/components/Auth/ExternalsLoginButtons/ExternalsLoginButtons.mjs.map +1 -1
  46. package/dist/components/Auth/ExternalsLoginButtons/externalsLoginButtons.content.d.ts +5 -5
  47. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs +1 -0
  48. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.cjs.map +1 -1
  49. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts +1 -1
  50. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.d.ts.map +1 -1
  51. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs +1 -0
  52. package/dist/components/Auth/ResetPasswordForm/ResetPasswordForm.mjs.map +1 -1
  53. package/dist/components/Auth/ResetPasswordForm/index.content.d.ts +7 -7
  54. package/dist/components/Auth/SignInForm/SignInForm.cjs +4 -3
  55. package/dist/components/Auth/SignInForm/SignInForm.cjs.map +1 -1
  56. package/dist/components/Auth/SignInForm/SignInForm.d.ts +1 -1
  57. package/dist/components/Auth/SignInForm/SignInForm.d.ts.map +1 -1
  58. package/dist/components/Auth/SignInForm/SignInForm.mjs +4 -3
  59. package/dist/components/Auth/SignInForm/SignInForm.mjs.map +1 -1
  60. package/dist/components/Auth/SignInForm/index.content.d.ts +13 -13
  61. package/dist/components/Auth/SignUpForm/SignUpForm.cjs +3 -3
  62. package/dist/components/Auth/SignUpForm/SignUpForm.cjs.map +1 -1
  63. package/dist/components/Auth/SignUpForm/SignUpForm.d.ts +1 -1
  64. package/dist/components/Auth/SignUpForm/SignUpForm.d.ts.map +1 -1
  65. package/dist/components/Auth/SignUpForm/SignUpForm.mjs +3 -3
  66. package/dist/components/Auth/SignUpForm/SignUpForm.mjs.map +1 -1
  67. package/dist/components/Auth/SignUpForm/index.content.d.ts +11 -11
  68. package/dist/components/Auth/index.cjs +2 -4
  69. package/dist/components/Auth/index.cjs.map +1 -1
  70. package/dist/components/Auth/index.d.ts +1 -1
  71. package/dist/components/Auth/index.d.ts.map +1 -1
  72. package/dist/components/Auth/index.mjs +1 -3
  73. package/dist/components/Auth/useAuth/index.cjs +39 -0
  74. package/dist/components/Auth/useAuth/index.cjs.map +1 -0
  75. package/dist/components/Auth/useAuth/index.d.ts +24 -0
  76. package/dist/components/Auth/useAuth/index.d.ts.map +1 -0
  77. package/dist/components/Auth/useAuth/index.mjs +39 -0
  78. package/dist/components/Auth/useAuth/index.mjs.map +1 -0
  79. package/dist/components/Auth/useAuth/useCSRF.cjs +22 -0
  80. package/dist/components/Auth/useAuth/useCSRF.cjs.map +1 -0
  81. package/dist/components/Auth/useAuth/useCSRF.d.ts +5 -0
  82. package/dist/components/Auth/useAuth/useCSRF.d.ts.map +1 -0
  83. package/dist/components/Auth/useAuth/useCSRF.mjs +22 -0
  84. package/dist/components/Auth/useAuth/useCSRF.mjs.map +1 -0
  85. package/dist/components/Auth/useAuth/useOAuth2.cjs +26 -0
  86. package/dist/components/Auth/useAuth/useOAuth2.cjs.map +1 -0
  87. package/dist/components/Auth/useAuth/useOAuth2.d.ts +4 -0
  88. package/dist/components/Auth/useAuth/useOAuth2.d.ts.map +1 -0
  89. package/dist/components/Auth/useAuth/useOAuth2.mjs +26 -0
  90. package/dist/components/Auth/useAuth/useOAuth2.mjs.map +1 -0
  91. package/dist/components/Auth/useAuth/useSession.cjs +60 -0
  92. package/dist/components/Auth/useAuth/useSession.cjs.map +1 -0
  93. package/dist/components/Auth/useAuth/useSession.d.ts +8 -0
  94. package/dist/components/Auth/useAuth/useSession.d.ts.map +1 -0
  95. package/dist/components/Auth/useAuth/useSession.mjs +60 -0
  96. package/dist/components/Auth/useAuth/useSession.mjs.map +1 -0
  97. package/dist/components/Auth/useUser/index.cjs +3 -3
  98. package/dist/components/Auth/useUser/index.cjs.map +1 -1
  99. package/dist/components/Auth/useUser/index.d.ts.map +1 -1
  100. package/dist/components/Auth/useUser/index.mjs +3 -3
  101. package/dist/components/Auth/useUser/index.mjs.map +1 -1
  102. package/dist/components/Badge/index.d.ts +1 -1
  103. package/dist/components/Button/Button.cjs.map +1 -1
  104. package/dist/components/Button/Button.d.ts +1 -2
  105. package/dist/components/Button/Button.d.ts.map +1 -1
  106. package/dist/components/Button/Button.mjs.map +1 -1
  107. package/dist/components/Command/index.d.ts +2 -2
  108. package/dist/components/Command/index.d.ts.map +1 -1
  109. package/dist/components/Container/index.cjs +1 -0
  110. package/dist/components/Container/index.cjs.map +1 -1
  111. package/dist/components/Container/index.d.ts +8 -8
  112. package/dist/components/Container/index.d.ts.map +1 -1
  113. package/dist/components/Container/index.mjs +1 -0
  114. package/dist/components/Container/index.mjs.map +1 -1
  115. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs +4 -17
  116. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.map +1 -1
  117. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts.map +1 -1
  118. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs +4 -17
  119. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.mjs.map +1 -1
  120. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs +0 -21
  121. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.cjs.map +1 -1
  122. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.d.ts +0 -9
  123. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.d.ts.map +1 -1
  124. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs +0 -21
  125. package/dist/components/DictionaryEditor/validDictionaryChangeButtons.content.mjs.map +1 -1
  126. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs +3 -2
  127. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.cjs.map +1 -1
  128. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs +3 -2
  129. package/dist/components/DictionaryFieldEditor/DictionariesSelector/DictionariesSelector.mjs.map +1 -1
  130. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +7 -24
  131. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
  132. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.d.ts.map +1 -1
  133. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +6 -23
  134. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
  135. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs +0 -42
  136. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs.map +1 -1
  137. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +0 -18
  138. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts.map +1 -1
  139. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs +0 -42
  140. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs.map +1 -1
  141. package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryFormSchema.d.ts +2 -2
  142. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +4 -36
  143. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
  144. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.d.ts.map +1 -1
  145. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +3 -35
  146. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
  147. package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsSchema.d.ts +4 -4
  148. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs +0 -47
  149. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs.map +1 -1
  150. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +0 -19
  151. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
  152. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs +0 -47
  153. package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map +1 -1
  154. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +3 -2
  155. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -1
  156. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +3 -2
  157. package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
  158. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs +3 -2
  159. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.cjs.map +1 -1
  160. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs +3 -2
  161. package/dist/components/DictionaryFieldEditor/EditorView/EditorView.mjs.map +1 -1
  162. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.cjs +2 -2
  163. package/dist/components/DictionaryFieldEditor/EditorView/TextEditor.mjs +2 -2
  164. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +2 -2
  165. package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +2 -2
  166. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs +2 -2
  167. package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs +2 -2
  168. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +4 -17
  169. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
  170. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -1
  171. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +4 -17
  172. package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
  173. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs +0 -21
  174. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs.map +1 -1
  175. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +0 -9
  176. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts.map +1 -1
  177. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs +0 -21
  178. package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs.map +1 -1
  179. package/dist/components/Form/FormBase.cjs +4 -1
  180. package/dist/components/Form/FormBase.cjs.map +1 -1
  181. package/dist/components/Form/FormBase.d.ts +1 -1
  182. package/dist/components/Form/FormBase.d.ts.map +1 -1
  183. package/dist/components/Form/FormBase.mjs +4 -1
  184. package/dist/components/Form/FormBase.mjs.map +1 -1
  185. package/dist/components/Input/Checkbox.d.ts +1 -1
  186. package/dist/components/Input/Input.cjs +8 -2
  187. package/dist/components/Input/Input.cjs.map +1 -1
  188. package/dist/components/Input/Input.d.ts +1 -0
  189. package/dist/components/Input/Input.d.ts.map +1 -1
  190. package/dist/components/Input/Input.mjs +8 -2
  191. package/dist/components/Input/Input.mjs.map +1 -1
  192. package/dist/components/Link/Link.d.ts +1 -1
  193. package/dist/components/Modal/Modal.cjs +3 -1
  194. package/dist/components/Modal/Modal.cjs.map +1 -1
  195. package/dist/components/Modal/Modal.mjs +3 -1
  196. package/dist/components/Modal/Modal.mjs.map +1 -1
  197. package/dist/components/Navbar/MobileNavbar.cjs +3 -1
  198. package/dist/components/Navbar/MobileNavbar.cjs.map +1 -1
  199. package/dist/components/Navbar/MobileNavbar.mjs +3 -1
  200. package/dist/components/Navbar/MobileNavbar.mjs.map +1 -1
  201. package/dist/components/Navbar/index.cjs +3 -1
  202. package/dist/components/Navbar/index.cjs.map +1 -1
  203. package/dist/components/Navbar/index.mjs +3 -1
  204. package/dist/components/Navbar/index.mjs.map +1 -1
  205. package/dist/components/Select/Multiselect.d.ts +1 -1
  206. package/dist/components/Select/Multiselect.d.ts.map +1 -1
  207. package/dist/components/SwitchSelector/index.cjs +3 -1
  208. package/dist/components/SwitchSelector/index.cjs.map +1 -1
  209. package/dist/components/SwitchSelector/index.d.ts +1 -1
  210. package/dist/components/SwitchSelector/index.mjs +3 -1
  211. package/dist/components/SwitchSelector/index.mjs.map +1 -1
  212. package/dist/components/TabSelector/TabSelector.cjs +13 -10
  213. package/dist/components/TabSelector/TabSelector.cjs.map +1 -1
  214. package/dist/components/TabSelector/TabSelector.d.ts +1 -1
  215. package/dist/components/TabSelector/TabSelector.d.ts.map +1 -1
  216. package/dist/components/TabSelector/TabSelector.mjs +13 -10
  217. package/dist/components/TabSelector/TabSelector.mjs.map +1 -1
  218. package/dist/components/Tag/index.cjs +79 -0
  219. package/dist/components/Tag/index.cjs.map +1 -0
  220. package/dist/components/Tag/index.d.ts +12 -0
  221. package/dist/components/Tag/index.d.ts.map +1 -0
  222. package/dist/components/Tag/index.mjs +79 -0
  223. package/dist/components/Tag/index.mjs.map +1 -0
  224. package/dist/components/Toaster/Toast.d.ts +1 -1
  225. package/dist/components/index.cjs +4 -4
  226. package/dist/components/index.d.ts +1 -0
  227. package/dist/components/index.d.ts.map +1 -1
  228. package/dist/components/index.mjs +3 -3
  229. package/dist/components/index.mjs.map +1 -1
  230. package/dist/hooks/index.cjs +4 -1
  231. package/dist/hooks/index.cjs.map +1 -1
  232. package/dist/hooks/index.d.ts +1 -0
  233. package/dist/hooks/index.d.ts.map +1 -1
  234. package/dist/hooks/index.mjs +5 -2
  235. package/dist/hooks/index.mjs.map +1 -1
  236. package/dist/hooks/intlayerAPIHooks.cjs +257 -126
  237. package/dist/hooks/intlayerAPIHooks.cjs.map +1 -1
  238. package/dist/hooks/intlayerAPIHooks.d.ts +43 -38
  239. package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
  240. package/dist/hooks/intlayerAPIHooks.mjs +258 -127
  241. package/dist/hooks/intlayerAPIHooks.mjs.map +1 -1
  242. package/dist/hooks/useAsync/useAsync.cjs +142 -104
  243. package/dist/hooks/useAsync/useAsync.cjs.map +1 -1
  244. package/dist/hooks/useAsync/useAsync.d.ts +0 -2
  245. package/dist/hooks/useAsync/useAsync.d.ts.map +1 -1
  246. package/dist/hooks/useAsync/useAsync.mjs +143 -105
  247. package/dist/hooks/useAsync/useAsync.mjs.map +1 -1
  248. package/dist/hooks/useAsync/useAsyncStateStore.cjs +50 -112
  249. package/dist/hooks/useAsync/useAsyncStateStore.cjs.map +1 -1
  250. package/dist/hooks/useAsync/useAsyncStateStore.d.ts +3 -9
  251. package/dist/hooks/useAsync/useAsyncStateStore.d.ts.map +1 -1
  252. package/dist/hooks/useAsync/useAsyncStateStore.mjs +50 -112
  253. package/dist/hooks/useAsync/useAsyncStateStore.mjs.map +1 -1
  254. package/dist/hooks/useAsync/useProxyState.d.ts +3 -0
  255. package/dist/hooks/useAsync/useProxyState.d.ts.map +1 -0
  256. package/dist/hooks/useIntlayerAPI.cjs +6 -5
  257. package/dist/hooks/useIntlayerAPI.cjs.map +1 -1
  258. package/dist/hooks/useIntlayerAPI.d.ts +51 -45
  259. package/dist/hooks/useIntlayerAPI.d.ts.map +1 -1
  260. package/dist/hooks/useIntlayerAPI.mjs +5 -4
  261. package/dist/hooks/useIntlayerAPI.mjs.map +1 -1
  262. package/dist/hooks/useItemSelector.cjs +11 -2
  263. package/dist/hooks/useItemSelector.cjs.map +1 -1
  264. package/dist/hooks/useItemSelector.d.ts +3 -2
  265. package/dist/hooks/useItemSelector.d.ts.map +1 -1
  266. package/dist/hooks/useItemSelector.mjs +11 -2
  267. package/dist/hooks/useItemSelector.mjs.map +1 -1
  268. package/dist/hooks/usePersistedStore.cjs +22 -0
  269. package/dist/hooks/usePersistedStore.cjs.map +1 -0
  270. package/dist/hooks/usePersistedStore.d.ts +2 -0
  271. package/dist/hooks/usePersistedStore.d.ts.map +1 -0
  272. package/dist/hooks/usePersistedStore.mjs +22 -0
  273. package/dist/hooks/usePersistedStore.mjs.map +1 -0
  274. package/dist/hooks/usePersistenceStore.cjs +22 -0
  275. package/dist/hooks/usePersistenceStore.cjs.map +1 -0
  276. package/dist/hooks/usePersistenceStore.d.ts +2 -0
  277. package/dist/hooks/usePersistenceStore.d.ts.map +1 -0
  278. package/dist/hooks/usePersistenceStore.mjs +22 -0
  279. package/dist/hooks/usePersistenceStore.mjs.map +1 -0
  280. package/dist/libs/intlayer-api/auth.cjs +14 -2
  281. package/dist/libs/intlayer-api/auth.cjs.map +1 -1
  282. package/dist/libs/intlayer-api/auth.d.ts +7 -3
  283. package/dist/libs/intlayer-api/auth.d.ts.map +1 -1
  284. package/dist/libs/intlayer-api/auth.mjs +14 -2
  285. package/dist/libs/intlayer-api/auth.mjs.map +1 -1
  286. package/dist/libs/intlayer-api/fetcher.cjs +7 -1
  287. package/dist/libs/intlayer-api/fetcher.cjs.map +1 -1
  288. package/dist/libs/intlayer-api/fetcher.d.ts.map +1 -1
  289. package/dist/libs/intlayer-api/fetcher.mjs +7 -1
  290. package/dist/libs/intlayer-api/fetcher.mjs.map +1 -1
  291. package/dist/libs/intlayer-api/index.cjs +3 -1
  292. package/dist/libs/intlayer-api/index.cjs.map +1 -1
  293. package/dist/libs/intlayer-api/index.d.ts +12 -2
  294. package/dist/libs/intlayer-api/index.d.ts.map +1 -1
  295. package/dist/libs/intlayer-api/index.mjs +3 -1
  296. package/dist/libs/intlayer-api/index.mjs.map +1 -1
  297. package/dist/libs/intlayer-api/stripe.cjs +22 -0
  298. package/dist/libs/intlayer-api/stripe.cjs.map +1 -0
  299. package/dist/libs/intlayer-api/stripe.d.ts +6 -0
  300. package/dist/libs/intlayer-api/stripe.d.ts.map +1 -0
  301. package/dist/libs/intlayer-api/stripe.mjs +22 -0
  302. package/dist/libs/intlayer-api/stripe.mjs.map +1 -0
  303. package/dist/stripe-BsI0lJWz.js +22 -0
  304. package/dist/stripe-BsI0lJWz.js.map +1 -0
  305. package/dist/stripe-C-u5RvGh.js +22 -0
  306. package/dist/stripe-C-u5RvGh.js.map +1 -0
  307. package/dist/stripe-CF_E65Vu.js +22 -0
  308. package/dist/stripe-CF_E65Vu.js.map +1 -0
  309. package/dist/stripe-CpGvfq6T.cjs +21 -0
  310. package/dist/stripe-CpGvfq6T.cjs.map +1 -0
  311. package/dist/stripe-DEv4DjAL.cjs +21 -0
  312. package/dist/stripe-DEv4DjAL.cjs.map +1 -0
  313. package/dist/stripe-DuG0uaEn.cjs +21 -0
  314. package/dist/stripe-DuG0uaEn.cjs.map +1 -0
  315. package/dist/tailwind.css +1 -1
  316. package/dist/useProxyState-D5GLrY2y.js +20 -0
  317. package/dist/useProxyState-D5GLrY2y.js.map +1 -0
  318. package/dist/useProxyState-DewdF3no.cjs +19 -0
  319. package/dist/useProxyState-DewdF3no.cjs.map +1 -0
  320. package/package.json +15 -11
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../src/components/SwitchSelector/index.tsx"],"sourcesContent":["'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { useRef, type ReactNode, type HTMLAttributes, useState } from 'react';\nimport { useItemSelector } from '../../hooks';\nimport { cn } from '../../utils/cn';\n\nexport type SwitchSelectorChoice<T = boolean> = {\n content: ReactNode;\n value: T;\n} & HTMLAttributes<HTMLButtonElement>;\nexport type SwitchSelectorChoices<T> = SwitchSelectorChoice<T>[];\n\nconst defaultChoices: SwitchSelectorChoices<boolean> = [\n { content: 'Off', value: false },\n { content: 'On', value: true },\n];\n\ntype SwitchSelectorProps<T = boolean> = {\n choices?: SwitchSelectorChoices<T>;\n value?: T;\n defaultValue?: T;\n onChange?: (choice: T) => void;\n className?: string;\n} & VariantProps<typeof switchSelectorVariant> &\n VariantProps<typeof choiceVariant>;\n\nconst switchSelectorVariant = cva(\n 'flex flex-row gap-2 rounded-full w-fit border-[1.5px] p-[1.5px]',\n {\n variants: {\n color: {\n primary:\n 'border-primary text-primary dark:border-primary-dark dark:text-primary-dark',\n secondary:\n 'border-secondary text-secondary dark:border-secondary-dark dark:text-secondary-dark',\n destructive:\n 'border-destructive bg-destructive text-destructive dark:border-destructive-dark dark:bg-destructive-dark',\n neutral:\n 'border-neutral text-neutral dark:border-neutral-dark dark:text-neutral-dark',\n light: 'border-white text-white',\n dark: 'border-neutral-800 text-neutral-800',\n text: 'border-text text-text dark:border-text-dark dark:text-text-dark',\n },\n },\n defaultVariants: {\n color: 'primary',\n },\n }\n);\n\nconst choiceVariant = cva(\n 'z-1 text-sm font-medium transition-all duration-300 ease-in-out aria-selected:cursor-default aria-selected:text-text-dark motion-reduce:transition-none dark:aria-selected:text-text',\n {\n variants: {\n size: {\n sm: 'py-1 px-2 text-xs',\n md: 'p-2 text-sm',\n lg: 'p-4 text-base',\n },\n },\n defaultVariants: {\n size: 'md',\n },\n }\n);\n\nconst indicatorVariant = cva(\n 'absolute top-0 z-[-1] h-full w-auto rounded-full transition-[left,width] duration-300 ease-in-out motion-reduce:transition-none',\n {\n variants: {\n color: {\n primary:\n 'bg-primary aria-selected:text-text dark:bg-primary-dark dark:aria-selected:text-text-dark',\n secondary:\n 'bg-secondary aria-selected:text-text dark:bg-secondary-dark dark:aria-selected:text-text-dark',\n destructive:\n 'bg-destructive aria-selected:text-text dark:bg-destructive-dark dark:aria-selected:text-text-dark',\n neutral:\n 'bg-neutral aria-selected:text-white dark:bg-neutral-dark dark:aria-selected:text-text',\n light: 'bg-white aria-selected:text-black',\n dark: 'bg-neutral-800 aria-selected:text-white',\n text: 'bg-text aria-selected:text-text-dark dark:bg-text-dark dark:aria-selected:text-text',\n },\n },\n }\n);\n\n/**\n *\n * Component that allows the user to select one of the provided choices.\n *\n * Example:\n * ```jsx\n * <SwitchSelector\n * choices={[\n * { content: 'Option 1', value: 'option1' },\n * { content: 'Option 2', value: 'option2' },\n * { content: 'Option 3', value: 'option3' },\n * ]}\n * value=\"option1\"\n * onChange={(choice) => console.log(choice)}\n * />\n * ```\n */\nexport const SwitchSelector = <T,>({\n choices = defaultChoices as SwitchSelectorChoices<T>,\n value,\n defaultValue,\n onChange,\n color = 'primary',\n size = 'md',\n className,\n}: SwitchSelectorProps<T>) => {\n const [valueState, setValue] = useState<T>(\n value ?? defaultValue ?? choices[0].value\n );\n const optionsRefs = useRef<HTMLButtonElement[]>([]);\n const indicatorRef = useRef<HTMLDivElement | null>(null);\n const { choiceIndicatorPosition } = useItemSelector(optionsRefs);\n\n const handleChange = (newValue: T) => {\n setValue(newValue);\n onChange?.(newValue);\n };\n\n return (\n <div\n className={switchSelectorVariant({\n color,\n className,\n })}\n role=\"tablist\"\n >\n <div className=\"relative flex size-full flex-row items-center justify-center\">\n {choices.map((choice, index) => {\n const { content, value, ...buttonProps } = choice;\n\n const isKeyOfKey =\n typeof value === 'string' || typeof value === 'number';\n\n const isSelected = value === valueState;\n\n return (\n <button\n {...buttonProps}\n className={cn(\n choiceVariant({\n size,\n })\n )}\n key={isKeyOfKey ? value : index}\n role=\"tab\"\n onClick={() => handleChange(value)}\n aria-selected={isSelected}\n disabled={isSelected}\n ref={(el) => {\n optionsRefs.current[index] = el!;\n }}\n >\n {content}\n </button>\n );\n })}\n {choiceIndicatorPosition && (\n <div\n className={cn(\n indicatorVariant({\n color,\n })\n )}\n style={choiceIndicatorPosition}\n ref={indicatorRef}\n />\n )}\n </div>\n </div>\n );\n};\n"],"names":["jsx","jsxs","value"],"mappings":";;;;;;;;;;;;;;;;AAaA,MAAM,iBAAiD;AAAA,EACrD,EAAE,SAAS,OAAO,OAAO,MAAM;AAAA,EAC/B,EAAE,SAAS,MAAM,OAAO,KAAK;AAC/B;AAWA,MAAM,wBAAwB;AAAA,EAC5B;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,OAAO;AAAA,IACT;AAAA,EACF;AACF;AAEA,MAAM,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MACN;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAEA,MAAM,mBAAmB;AAAA,EACvB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;AAmBO,MAAM,iBAAiB,CAAK;AAAA,EACjC,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,OAAO;AAAA,EACP;AACF,MAA8B;AACtB,QAAA,CAAC,YAAY,QAAQ,IAAI;AAAA,IAC7B,SAAS,gBAAgB,QAAQ,CAAC,EAAE;AAAA,EAAA;AAEhC,QAAA,cAAc,OAA4B,CAAA,CAAE;AAC5C,QAAA,eAAe,OAA8B,IAAI;AACvD,QAAM,EAAE,wBAAA,IAA4B,gBAAgB,WAAW;AAEzD,QAAA,eAAe,CAAC,aAAgB;AACpC,aAAS,QAAQ;AACjB,eAAW,QAAQ;AAAA,EAAA;AAInB,SAAAA,kCAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,sBAAsB;AAAA,QAC/B;AAAA,QACA;AAAA,MAAA,CACD;AAAA,MACD,MAAK;AAAA,MAEL,UAAAC,kCAAA,KAAC,OAAI,EAAA,WAAU,gEACZ,UAAA;AAAA,QAAQ,QAAA,IAAI,CAAC,QAAQ,UAAU;AAC9B,gBAAM,EAAE,SAAS,OAAAC,QAAO,GAAG,YAAgB,IAAA;AAE3C,gBAAM,aACJ,OAAOA,WAAU,YAAY,OAAOA,WAAU;AAEhD,gBAAM,aAAaA,WAAU;AAG3B,iBAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACE,GAAG;AAAA,cACJ,WAAW;AAAA,gBACT,cAAc;AAAA,kBACZ;AAAA,gBAAA,CACD;AAAA,cACH;AAAA,cACA,KAAK,aAAaA,SAAQ;AAAA,cAC1B,MAAK;AAAA,cACL,SAAS,MAAM,aAAaA,MAAK;AAAA,cACjC,iBAAe;AAAA,cACf,UAAU;AAAA,cACV,KAAK,CAAC,OAAO;AACC,4BAAA,QAAQ,KAAK,IAAI;AAAA,cAC/B;AAAA,YAAA;AAAA,YAEC;AAAA,UAAA;AAAA,QACH,CAEH;AAAA,QACA,2BACCF,kCAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAW;AAAA,cACT,iBAAiB;AAAA,gBACf;AAAA,cAAA,CACD;AAAA,YACH;AAAA,YACA,OAAO;AAAA,YACP,KAAK;AAAA,UAAA;AAAA,QACP;AAAA,MAAA,GAEJ;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../src/components/SwitchSelector/index.tsx"],"sourcesContent":["'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { useRef, type ReactNode, type HTMLAttributes, useState } from 'react';\nimport { useItemSelector } from '../../hooks';\nimport { cn } from '../../utils/cn';\n\nexport type SwitchSelectorChoice<T = boolean> = {\n content: ReactNode;\n value: T;\n} & HTMLAttributes<HTMLButtonElement>;\nexport type SwitchSelectorChoices<T> = SwitchSelectorChoice<T>[];\n\nconst defaultChoices: SwitchSelectorChoices<boolean> = [\n { content: 'Off', value: false },\n { content: 'On', value: true },\n];\n\ntype SwitchSelectorProps<T = boolean> = {\n choices?: SwitchSelectorChoices<T>;\n value?: T;\n defaultValue?: T;\n onChange?: (choice: T) => void;\n className?: string;\n} & VariantProps<typeof switchSelectorVariant> &\n VariantProps<typeof choiceVariant>;\n\nconst switchSelectorVariant = cva(\n 'flex flex-row gap-2 rounded-full w-fit border-[1.5px] p-[1.5px]',\n {\n variants: {\n color: {\n primary:\n 'border-primary text-primary dark:border-primary-dark dark:text-primary-dark',\n secondary:\n 'border-secondary text-secondary dark:border-secondary-dark dark:text-secondary-dark',\n destructive:\n 'border-destructive bg-destructive text-destructive dark:border-destructive-dark dark:bg-destructive-dark',\n neutral:\n 'border-neutral text-neutral dark:border-neutral-dark dark:text-neutral-dark',\n light: 'border-white text-white',\n dark: 'border-neutral-800 text-neutral-800',\n text: 'border-text text-text dark:border-text-dark dark:text-text-dark',\n },\n },\n defaultVariants: {\n color: 'primary',\n },\n }\n);\n\nconst choiceVariant = cva(\n 'z-1 text-sm font-medium transition-all duration-300 ease-in-out aria-selected:cursor-default aria-selected:text-text-dark motion-reduce:transition-none dark:aria-selected:text-text',\n {\n variants: {\n size: {\n sm: 'py-1 px-2 text-xs',\n md: 'p-2 text-sm',\n lg: 'p-4 text-base',\n },\n },\n defaultVariants: {\n size: 'md',\n },\n }\n);\n\nconst indicatorVariant = cva(\n 'absolute top-0 z-[-1] h-full w-auto rounded-full transition-[left,width] duration-300 ease-in-out motion-reduce:transition-none',\n {\n variants: {\n color: {\n primary:\n 'bg-primary aria-selected:text-text dark:bg-primary-dark dark:aria-selected:text-text-dark',\n secondary:\n 'bg-secondary aria-selected:text-text dark:bg-secondary-dark dark:aria-selected:text-text-dark',\n destructive:\n 'bg-destructive aria-selected:text-text dark:bg-destructive-dark dark:aria-selected:text-text-dark',\n neutral:\n 'bg-neutral aria-selected:text-white dark:bg-neutral-dark dark:aria-selected:text-text',\n light: 'bg-white aria-selected:text-black',\n dark: 'bg-neutral-800 aria-selected:text-white',\n text: 'bg-text aria-selected:text-text-dark dark:bg-text-dark dark:aria-selected:text-text',\n },\n },\n }\n);\n\n/**\n *\n * Component that allows the user to select one of the provided choices.\n *\n * Example:\n * ```jsx\n * <SwitchSelector\n * choices={[\n * { content: 'Option 1', value: 'option1' },\n * { content: 'Option 2', value: 'option2' },\n * { content: 'Option 3', value: 'option3' },\n * ]}\n * value=\"option1\"\n * onChange={(choice) => console.log(choice)}\n * />\n * ```\n */\nexport const SwitchSelector = <T,>({\n choices = defaultChoices as SwitchSelectorChoices<T>,\n value,\n defaultValue,\n onChange,\n color = 'primary',\n size = 'md',\n className,\n}: SwitchSelectorProps<T>) => {\n const [valueState, setValue] = useState<T>(\n value ?? defaultValue ?? choices[0].value\n );\n const optionsRefs = useRef<HTMLButtonElement[]>([]);\n const indicatorRef = useRef<HTMLDivElement | null>(null);\n const { choiceIndicatorPosition } = useItemSelector(optionsRefs);\n\n const handleChange = (newValue: T) => {\n setValue(newValue);\n onChange?.(newValue);\n };\n\n return (\n <div\n className={switchSelectorVariant({\n color,\n className,\n })}\n role=\"tablist\"\n >\n <div className=\"relative flex size-full flex-row items-center justify-center\">\n {choices.map((choice, index) => {\n const { content, value, ...buttonProps } = choice;\n\n const isKeyOfKey =\n typeof value === 'string' || typeof value === 'number';\n\n const isSelected = value === valueState;\n\n return (\n <button\n {...buttonProps}\n className={cn(\n choiceVariant({\n size,\n })\n )}\n key={isKeyOfKey ? value : index}\n role=\"tab\"\n onClick={() => handleChange(value)}\n aria-selected={isSelected}\n disabled={isSelected}\n ref={(el) => {\n optionsRefs.current[index] = el!;\n }}\n >\n {content}\n </button>\n );\n })}\n {choiceIndicatorPosition && (\n <div\n className={cn(\n indicatorVariant({\n color,\n })\n )}\n style={choiceIndicatorPosition}\n ref={indicatorRef}\n />\n )}\n </div>\n </div>\n );\n};\n"],"names":["jsx","jsxs","value"],"mappings":";;;;;;;;;;;;;;;;;;AAaA,MAAM,iBAAiD;AAAA,EACrD,EAAE,SAAS,OAAO,OAAO,MAAM;AAAA,EAC/B,EAAE,SAAS,MAAM,OAAO,KAAK;AAC/B;AAWA,MAAM,wBAAwB;AAAA,EAC5B;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,OAAO;AAAA,IACT;AAAA,EACF;AACF;AAEA,MAAM,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MACN;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAEA,MAAM,mBAAmB;AAAA,EACvB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;AAmBO,MAAM,iBAAiB,CAAK;AAAA,EACjC,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,OAAO;AAAA,EACP;AACF,MAA8B;AACtB,QAAA,CAAC,YAAY,QAAQ,IAAI;AAAA,IAC7B,SAAS,gBAAgB,QAAQ,CAAC,EAAE;AAAA,EAAA;AAEhC,QAAA,cAAc,OAA4B,CAAA,CAAE;AAC5C,QAAA,eAAe,OAA8B,IAAI;AACvD,QAAM,EAAE,wBAAA,IAA4B,gBAAgB,WAAW;AAEzD,QAAA,eAAe,CAAC,aAAgB;AACpC,aAAS,QAAQ;AACjB,eAAW,QAAQ;AAAA,EAAA;AAInB,SAAAA,kCAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,sBAAsB;AAAA,QAC/B;AAAA,QACA;AAAA,MAAA,CACD;AAAA,MACD,MAAK;AAAA,MAEL,UAAAC,kCAAA,KAAC,OAAI,EAAA,WAAU,gEACZ,UAAA;AAAA,QAAQ,QAAA,IAAI,CAAC,QAAQ,UAAU;AAC9B,gBAAM,EAAE,SAAS,OAAAC,QAAO,GAAG,YAAgB,IAAA;AAE3C,gBAAM,aACJ,OAAOA,WAAU,YAAY,OAAOA,WAAU;AAEhD,gBAAM,aAAaA,WAAU;AAG3B,iBAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACE,GAAG;AAAA,cACJ,WAAW;AAAA,gBACT,cAAc;AAAA,kBACZ;AAAA,gBAAA,CACD;AAAA,cACH;AAAA,cACA,KAAK,aAAaA,SAAQ;AAAA,cAC1B,MAAK;AAAA,cACL,SAAS,MAAM,aAAaA,MAAK;AAAA,cACjC,iBAAe;AAAA,cACf,UAAU;AAAA,cACV,KAAK,CAAC,OAAO;AACC,4BAAA,QAAQ,KAAK,IAAI;AAAA,cAC/B;AAAA,YAAA;AAAA,YAEC;AAAA,UAAA;AAAA,QACH,CAEH;AAAA,QACA,2BACCF,kCAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAW;AAAA,cACT,iBAAiB;AAAA,gBACf;AAAA,cAAA,CACD;AAAA,YACH;AAAA,YACA,OAAO;AAAA,YACP,KAAK;AAAA,UAAA;AAAA,QACP;AAAA,MAAA,GAEJ;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -6,12 +6,14 @@ const classVarianceAuthority = require("class-variance-authority");
6
6
  const require$$0 = require("react");
7
7
  require("../../hooks/useScrollBlockage/useScrollBlockageStore.cjs");
8
8
  require("../../hooks/useAsync/useAsyncStateStore.cjs");
9
- require("../Auth/AuthProvider/index.cjs");
10
9
  require("../../libs/intlayer-api/auth.cjs");
11
10
  require("../../libs/intlayer-api/dictionary.cjs");
12
11
  require("../../libs/intlayer-api/organization.cjs");
13
12
  require("../../libs/intlayer-api/project.cjs");
13
+ require("../../libs/intlayer-api/stripe.cjs");
14
14
  require("../../libs/intlayer-api/user.cjs");
15
+ require("@intlayer/config/client");
16
+ require("../Toaster/Toast.cjs");
15
17
  const hooks_useItemSelector = require("../../hooks/useItemSelector.cjs");
16
18
  require("@intlayer/dictionaries-entry");
17
19
  require("deepmerge");
@@ -36,17 +38,17 @@ const tabSelectorVariant = classVarianceAuthority.cva(
36
38
  }
37
39
  );
38
40
  const indicatorVariant = classVarianceAuthority.cva(
39
- "absolute top-0 z-[-1] h-full w-auto rounded-lg opacity-10 transition-[left,width] duration-300 ease-in-out motion-reduce:transition-none",
41
+ "absolute top-0 z-[-1] h-full w-auto rounded-lg transition-[left,width] duration-300 ease-in-out motion-reduce:transition-none",
40
42
  {
41
43
  variants: {
42
44
  color: {
43
- primary: "bg-primary aria-selected:text-text dark:bg-primary-dark dark:aria-selected:text-text-dark",
44
- secondary: "bg-secondary aria-selected:text-text dark:bg-secondary-dark dark:aria-selected:text-text-dark",
45
- destructive: "bg-destructive aria-selected:text-text dark:bg-destructive-dark dark:aria-selected:text-text-dark",
46
- neutral: "bg-neutral aria-selected:text-white dark:bg-neutral-dark dark:aria-selected:text-text",
47
- light: "bg-white aria-selected:text-black",
48
- dark: "bg-neutral-800 aria-selected:text-white",
49
- text: "bg-text aria-selected:text-text-dark dark:bg-text-dark dark:aria-selected:text-text"
45
+ primary: "bg-primary/10 aria-selected:text-text dark:bg-primary-dark/10 dark:aria-selected:text-text-dark",
46
+ secondary: "bg-secondary/10 aria-selected:text-text dark:bg-secondary-dark/10 dark:aria-selected:text-text-dark",
47
+ destructive: "bg-destructive/10 aria-selected:text-text dark:bg-destructive-dark/10 dark:aria-selected:text-text-dark",
48
+ neutral: "bg-neutral/10 aria-selected:text-white dark:bg-neutral-dark/10 dark:aria-selected:text-text",
49
+ light: "bg-white/10 aria-selected:text-black",
50
+ dark: "bg-neutral-800/10 aria-selected:text-white",
51
+ text: "bg-text/10 aria-selected:text-text-dark dark:bg-text-dark/10 dark:aria-selected:text-text"
50
52
  }
51
53
  }
52
54
  }
@@ -100,7 +102,8 @@ const TabSelector = ({
100
102
  }),
101
103
  style: choiceIndicatorPosition,
102
104
  ref: indicatorRef
103
- }
105
+ },
106
+ `${selectedChoice}${JSON.stringify(tabs.map((tab) => tab.key))}`
104
107
  )
105
108
  ]
106
109
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TabSelector.cjs","sources":["../../../src/components/TabSelector/TabSelector.tsx"],"sourcesContent":["'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport {\n useRef,\n type HTMLAttributes,\n type ReactElement,\n cloneElement,\n} from 'react';\nimport { useItemSelector } from '../../hooks';\nimport { cn } from '../../utils/cn';\n\nconst tabSelectorVariant = cva(\n 'relative flex size-full flex-row items-center gap-2',\n {\n variants: {\n color: {\n primary:\n 'border-primary text-primary dark:border-primary-dark dark:text-primary-dark',\n secondary:\n 'border-secondary text-secondary dark:border-secondary-dark dark:text-secondary-dark',\n destructive:\n 'border-destructive bg-destructive text-destructive dark:border-destructive-dark dark:bg-destructive-dark',\n neutral:\n 'border-neutral text-neutral dark:border-neutral-dark dark:text-neutral-dark',\n light: 'border-white text-white',\n dark: 'border-neutral-800 text-neutral-800',\n text: 'border-text text-text dark:border-text-dark dark:text-text-dark',\n },\n },\n defaultVariants: {\n color: 'primary',\n },\n }\n);\n\nconst indicatorVariant = cva(\n 'absolute top-0 z-[-1] h-full w-auto rounded-lg opacity-10 transition-[left,width] duration-300 ease-in-out motion-reduce:transition-none',\n {\n variants: {\n color: {\n primary:\n 'bg-primary aria-selected:text-text dark:bg-primary-dark dark:aria-selected:text-text-dark',\n secondary:\n 'bg-secondary aria-selected:text-text dark:bg-secondary-dark dark:aria-selected:text-text-dark',\n destructive:\n 'bg-destructive aria-selected:text-text dark:bg-destructive-dark dark:aria-selected:text-text-dark',\n neutral:\n 'bg-neutral aria-selected:text-white dark:bg-neutral-dark dark:aria-selected:text-text',\n light: 'bg-white aria-selected:text-black',\n dark: 'bg-neutral-800 aria-selected:text-white',\n text: 'bg-text aria-selected:text-text-dark dark:bg-text-dark dark:aria-selected:text-text',\n },\n },\n }\n);\n\nexport type TabProps = HTMLAttributes<HTMLElement> & {\n key: string | number;\n};\n\ntype TabSelectorProps<T extends TabProps> = {\n tabs: ReactElement<T>[];\n selectedChoice: T['key'];\n onTabClick?: (choice: T['key']) => void;\n hoverable?: boolean;\n} & HTMLAttributes<HTMLElement> &\n VariantProps<typeof tabSelectorVariant>;\n\n/**\n *\n * Component that allows the user to select one of the provided choices.\n *\n * Example:\n * ```jsx\n * <TabSelector\n * selectedChoice=\"option1\"\n * onTabClick={(choice) => console.log(choice)}\n * hoverable={true}\n * >\n * <Button key=\"option1\"/>\n * <Button key=\"option2\"/>\n * <Button key=\"option3\"/>\n * </TabSelector>\n * ```\n */\nexport const TabSelector = <T extends TabProps>({\n tabs,\n selectedChoice,\n onTabClick,\n color = 'primary',\n hoverable = false,\n className,\n}: TabSelectorProps<T>) => {\n const optionsRefs = useRef<HTMLElement[]>([]);\n const indicatorRef = useRef<HTMLDivElement | null>(null);\n const { choiceIndicatorPosition } = useItemSelector(\n optionsRefs,\n undefined,\n hoverable\n );\n\n return (\n <div\n className={cn(\n tabSelectorVariant({\n color,\n }),\n className\n )}\n aria-orientation=\"horizontal\"\n aria-multiselectable=\"false\"\n role=\"tablist\"\n >\n {tabs.map((Tab, index) => {\n const key = Tab.key!;\n\n const isSelected = selectedChoice === key;\n\n return cloneElement(Tab, {\n key: key ?? index,\n role: 'tab',\n onClick: () => onTabClick?.(key),\n 'aria-selected': isSelected,\n ref: (el: HTMLElement) => {\n optionsRefs.current[index] = el!;\n },\n } as unknown as T);\n })}\n {choiceIndicatorPosition && (\n <div\n className={indicatorVariant({\n color,\n })}\n style={choiceIndicatorPosition}\n ref={indicatorRef}\n />\n )}\n </div>\n );\n};\n"],"names":["cva","useRef","useItemSelector","jsxs","cn","cloneElement","jsx"],"mappings":";;;;;;;;;;;;;;;;;;AAYA,MAAM,qBAAqBA,uBAAA;AAAA,EACzB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,OAAO;AAAA,IACT;AAAA,EACF;AACF;AAEA,MAAM,mBAAmBA,uBAAA;AAAA,EACvB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;AA+BO,MAAM,cAAc,CAAqB;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ;AACF,MAA2B;AACnB,QAAA,cAAcC,kBAAsB,CAAA,CAAE;AACtC,QAAA,eAAeA,kBAA8B,IAAI;AACjD,QAAA,EAAE,4BAA4BC,sBAAA;AAAA,IAClC;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAIA,SAAAC,2BAAA,kBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,SAAA;AAAA,QACT,mBAAmB;AAAA,UACjB;AAAA,QAAA,CACD;AAAA,QACD;AAAA,MACF;AAAA,MACA,oBAAiB;AAAA,MACjB,wBAAqB;AAAA,MACrB,MAAK;AAAA,MAEJ,UAAA;AAAA,QAAK,KAAA,IAAI,CAAC,KAAK,UAAU;AACxB,gBAAM,MAAM,IAAI;AAEhB,gBAAM,aAAa,mBAAmB;AAEtC,iBAAOC,WAAAA,aAAa,KAAK;AAAA,YACvB,KAAK,OAAO;AAAA,YACZ,MAAM;AAAA,YACN,SAAS,MAAM,aAAa,GAAG;AAAA,YAC/B,iBAAiB;AAAA,YACjB,KAAK,CAAC,OAAoB;AACZ,0BAAA,QAAQ,KAAK,IAAI;AAAA,YAC/B;AAAA,UAAA,CACe;AAAA,QAAA,CAClB;AAAA,QACA,2BACCC,2BAAA,kBAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAW,iBAAiB;AAAA,cAC1B;AAAA,YAAA,CACD;AAAA,YACD,OAAO;AAAA,YACP,KAAK;AAAA,UAAA;AAAA,QACP;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;;"}
1
+ {"version":3,"file":"TabSelector.cjs","sources":["../../../src/components/TabSelector/TabSelector.tsx"],"sourcesContent":["'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport {\n useRef,\n type HTMLAttributes,\n type ReactElement,\n cloneElement,\n} from 'react';\nimport { useItemSelector } from '../../hooks';\nimport { cn } from '../../utils/cn';\n\nconst tabSelectorVariant = cva(\n 'relative flex size-full flex-row items-center gap-2',\n {\n variants: {\n color: {\n primary:\n 'border-primary text-primary dark:border-primary-dark dark:text-primary-dark',\n secondary:\n 'border-secondary text-secondary dark:border-secondary-dark dark:text-secondary-dark',\n destructive:\n 'border-destructive bg-destructive text-destructive dark:border-destructive-dark dark:bg-destructive-dark',\n neutral:\n 'border-neutral text-neutral dark:border-neutral-dark dark:text-neutral-dark',\n light: 'border-white text-white',\n dark: 'border-neutral-800 text-neutral-800',\n text: 'border-text text-text dark:border-text-dark dark:text-text-dark',\n },\n },\n defaultVariants: {\n color: 'primary',\n },\n }\n);\n\nconst indicatorVariant = cva(\n 'absolute top-0 z-[-1] h-full w-auto rounded-lg transition-[left,width] duration-300 ease-in-out motion-reduce:transition-none',\n {\n variants: {\n color: {\n primary:\n 'bg-primary/10 aria-selected:text-text dark:bg-primary-dark/10 dark:aria-selected:text-text-dark',\n secondary:\n 'bg-secondary/10 aria-selected:text-text dark:bg-secondary-dark/10 dark:aria-selected:text-text-dark',\n destructive:\n 'bg-destructive/10 aria-selected:text-text dark:bg-destructive-dark/10 dark:aria-selected:text-text-dark',\n neutral:\n 'bg-neutral/10 aria-selected:text-white dark:bg-neutral-dark/10 dark:aria-selected:text-text',\n light: 'bg-white/10 aria-selected:text-black',\n dark: 'bg-neutral-800/10 aria-selected:text-white',\n text: 'bg-text/10 aria-selected:text-text-dark dark:bg-text-dark/10 dark:aria-selected:text-text',\n },\n },\n }\n);\n\nexport type TabProps = HTMLAttributes<HTMLElement> & {\n key: string | number;\n};\n\ntype TabSelectorProps<T extends TabProps> = {\n tabs: ReactElement<T>[];\n selectedChoice: T['key'];\n onTabClick?: (choice: T['key']) => void;\n hoverable?: boolean;\n} & HTMLAttributes<HTMLElement> &\n VariantProps<typeof tabSelectorVariant>;\n\n/**\n *\n * Component that allows the user to select one of the provided choices.\n *\n * Example:\n * ```jsx\n * <TabSelector\n * selectedChoice=\"option1\"\n * onTabClick={(choice) => console.log(choice)}\n * hoverable={true}\n * >\n * <Button key=\"option1\"/>\n * <Button key=\"option2\"/>\n * <Button key=\"option3\"/>\n * </TabSelector>\n * ```\n */\nexport const TabSelector = <T extends TabProps>({\n tabs,\n selectedChoice,\n onTabClick,\n color = 'primary',\n hoverable = false,\n className,\n}: TabSelectorProps<T>) => {\n const optionsRefs = useRef<HTMLElement[]>([]);\n const indicatorRef = useRef<HTMLDivElement | null>(null);\n const { choiceIndicatorPosition } = useItemSelector(\n optionsRefs,\n undefined,\n hoverable\n );\n\n return (\n <div\n className={cn(\n tabSelectorVariant({\n color,\n }),\n className\n )}\n aria-orientation=\"horizontal\"\n aria-multiselectable=\"false\"\n role=\"tablist\"\n >\n {tabs.map((Tab, index) => {\n const key = Tab.key!;\n\n const isSelected = selectedChoice === key;\n\n return cloneElement(Tab, {\n key: key ?? index,\n role: 'tab',\n onClick: () => onTabClick?.(key),\n 'aria-selected': isSelected,\n ref: (el: HTMLElement) => {\n optionsRefs.current[index] = el!;\n },\n } as unknown as T);\n })}\n {choiceIndicatorPosition && (\n <div\n className={indicatorVariant({\n color,\n })}\n style={choiceIndicatorPosition}\n ref={indicatorRef}\n key={`${selectedChoice}${JSON.stringify(tabs.map((tab) => tab.key))}`}\n />\n )}\n </div>\n );\n};\n"],"names":["cva","useRef","useItemSelector","jsxs","cn","cloneElement","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;AAYA,MAAM,qBAAqBA,uBAAA;AAAA,EACzB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,OAAO;AAAA,IACT;AAAA,EACF;AACF;AAEA,MAAM,mBAAmBA,uBAAA;AAAA,EACvB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;AA+BO,MAAM,cAAc,CAAqB;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ;AACF,MAA2B;AACnB,QAAA,cAAcC,kBAAsB,CAAA,CAAE;AACtC,QAAA,eAAeA,kBAA8B,IAAI;AACjD,QAAA,EAAE,4BAA4BC,sBAAA;AAAA,IAClC;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAIA,SAAAC,2BAAA,kBAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,SAAA;AAAA,QACT,mBAAmB;AAAA,UACjB;AAAA,QAAA,CACD;AAAA,QACD;AAAA,MACF;AAAA,MACA,oBAAiB;AAAA,MACjB,wBAAqB;AAAA,MACrB,MAAK;AAAA,MAEJ,UAAA;AAAA,QAAK,KAAA,IAAI,CAAC,KAAK,UAAU;AACxB,gBAAM,MAAM,IAAI;AAEhB,gBAAM,aAAa,mBAAmB;AAEtC,iBAAOC,WAAAA,aAAa,KAAK;AAAA,YACvB,KAAK,OAAO;AAAA,YACZ,MAAM;AAAA,YACN,SAAS,MAAM,aAAa,GAAG;AAAA,YAC/B,iBAAiB;AAAA,YACjB,KAAK,CAAC,OAAoB;AACZ,0BAAA,QAAQ,KAAK,IAAI;AAAA,YAC/B;AAAA,UAAA,CACe;AAAA,QAAA,CAClB;AAAA,QACA,2BACCC,2BAAA,kBAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAW,iBAAiB;AAAA,cAC1B;AAAA,YAAA,CACD;AAAA,YACD,OAAO;AAAA,YACP,KAAK;AAAA,UAAA;AAAA,UACA,GAAG,cAAc,GAAG,KAAK,UAAU,KAAK,IAAI,CAAC,QAAQ,IAAI,GAAG,CAAC,CAAC;AAAA,QACrE;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;;"}
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import { HTMLAttributes, ReactElement } from 'react';
3
3
  declare const tabSelectorVariant: (props?: ({
4
- color?: "text" | "dark" | "light" | "primary" | "secondary" | "destructive" | "neutral" | null | undefined;
4
+ color?: "text" | "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  export type TabProps = HTMLAttributes<HTMLElement> & {
7
7
  key: string | number;
@@ -1 +1 @@
1
- {"version":3,"file":"TabSelector.d.ts","sourceRoot":"","sources":["../../../src/components/TabSelector/TabSelector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AAIf,QAAA,MAAM,kBAAkB;;8EAsBvB,CAAC;AAuBF,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG;IACnD,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACtB,CAAC;AAEF,KAAK,gBAAgB,CAAC,CAAC,SAAS,QAAQ,IAAI;IAC1C,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IACxB,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;IACzB,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,cAAc,CAAC,WAAW,CAAC,GAC7B,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE1C;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,QAAQ,sEAO3C,gBAAgB,CAAC,CAAC,CAAC,4CA+CrB,CAAC"}
1
+ {"version":3,"file":"TabSelector.d.ts","sourceRoot":"","sources":["../../../src/components/TabSelector/TabSelector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EAElB,MAAM,OAAO,CAAC;AAIf,QAAA,MAAM,kBAAkB;;8EAsBvB,CAAC;AAuBF,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG;IACnD,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACtB,CAAC;AAEF,KAAK,gBAAgB,CAAC,CAAC,SAAS,QAAQ,IAAI;IAC1C,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IACxB,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;IACzB,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,GAAG,cAAc,CAAC,WAAW,CAAC,GAC7B,YAAY,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE1C;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,QAAQ,sEAO3C,gBAAgB,CAAC,CAAC,CAAC,4CAgDrB,CAAC"}
@@ -4,12 +4,14 @@ import { cva } from "class-variance-authority";
4
4
  import { useRef, cloneElement } from "react";
5
5
  import "../../hooks/useScrollBlockage/useScrollBlockageStore.mjs";
6
6
  import "../../hooks/useAsync/useAsyncStateStore.mjs";
7
- import "../Auth/AuthProvider/index.mjs";
8
7
  import "../../libs/intlayer-api/auth.mjs";
9
8
  import "../../libs/intlayer-api/dictionary.mjs";
10
9
  import "../../libs/intlayer-api/organization.mjs";
11
10
  import "../../libs/intlayer-api/project.mjs";
11
+ import "../../libs/intlayer-api/stripe.mjs";
12
12
  import "../../libs/intlayer-api/user.mjs";
13
+ import "@intlayer/config/client";
14
+ import "../Toaster/Toast.mjs";
13
15
  import { useItemSelector } from "../../hooks/useItemSelector.mjs";
14
16
  import "@intlayer/dictionaries-entry";
15
17
  import "deepmerge";
@@ -34,17 +36,17 @@ const tabSelectorVariant = cva(
34
36
  }
35
37
  );
36
38
  const indicatorVariant = cva(
37
- "absolute top-0 z-[-1] h-full w-auto rounded-lg opacity-10 transition-[left,width] duration-300 ease-in-out motion-reduce:transition-none",
39
+ "absolute top-0 z-[-1] h-full w-auto rounded-lg transition-[left,width] duration-300 ease-in-out motion-reduce:transition-none",
38
40
  {
39
41
  variants: {
40
42
  color: {
41
- primary: "bg-primary aria-selected:text-text dark:bg-primary-dark dark:aria-selected:text-text-dark",
42
- secondary: "bg-secondary aria-selected:text-text dark:bg-secondary-dark dark:aria-selected:text-text-dark",
43
- destructive: "bg-destructive aria-selected:text-text dark:bg-destructive-dark dark:aria-selected:text-text-dark",
44
- neutral: "bg-neutral aria-selected:text-white dark:bg-neutral-dark dark:aria-selected:text-text",
45
- light: "bg-white aria-selected:text-black",
46
- dark: "bg-neutral-800 aria-selected:text-white",
47
- text: "bg-text aria-selected:text-text-dark dark:bg-text-dark dark:aria-selected:text-text"
43
+ primary: "bg-primary/10 aria-selected:text-text dark:bg-primary-dark/10 dark:aria-selected:text-text-dark",
44
+ secondary: "bg-secondary/10 aria-selected:text-text dark:bg-secondary-dark/10 dark:aria-selected:text-text-dark",
45
+ destructive: "bg-destructive/10 aria-selected:text-text dark:bg-destructive-dark/10 dark:aria-selected:text-text-dark",
46
+ neutral: "bg-neutral/10 aria-selected:text-white dark:bg-neutral-dark/10 dark:aria-selected:text-text",
47
+ light: "bg-white/10 aria-selected:text-black",
48
+ dark: "bg-neutral-800/10 aria-selected:text-white",
49
+ text: "bg-text/10 aria-selected:text-text-dark dark:bg-text-dark/10 dark:aria-selected:text-text"
48
50
  }
49
51
  }
50
52
  }
@@ -98,7 +100,8 @@ const TabSelector = ({
98
100
  }),
99
101
  style: choiceIndicatorPosition,
100
102
  ref: indicatorRef
101
- }
103
+ },
104
+ `${selectedChoice}${JSON.stringify(tabs.map((tab) => tab.key))}`
102
105
  )
103
106
  ]
104
107
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TabSelector.mjs","sources":["../../../src/components/TabSelector/TabSelector.tsx"],"sourcesContent":["'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport {\n useRef,\n type HTMLAttributes,\n type ReactElement,\n cloneElement,\n} from 'react';\nimport { useItemSelector } from '../../hooks';\nimport { cn } from '../../utils/cn';\n\nconst tabSelectorVariant = cva(\n 'relative flex size-full flex-row items-center gap-2',\n {\n variants: {\n color: {\n primary:\n 'border-primary text-primary dark:border-primary-dark dark:text-primary-dark',\n secondary:\n 'border-secondary text-secondary dark:border-secondary-dark dark:text-secondary-dark',\n destructive:\n 'border-destructive bg-destructive text-destructive dark:border-destructive-dark dark:bg-destructive-dark',\n neutral:\n 'border-neutral text-neutral dark:border-neutral-dark dark:text-neutral-dark',\n light: 'border-white text-white',\n dark: 'border-neutral-800 text-neutral-800',\n text: 'border-text text-text dark:border-text-dark dark:text-text-dark',\n },\n },\n defaultVariants: {\n color: 'primary',\n },\n }\n);\n\nconst indicatorVariant = cva(\n 'absolute top-0 z-[-1] h-full w-auto rounded-lg opacity-10 transition-[left,width] duration-300 ease-in-out motion-reduce:transition-none',\n {\n variants: {\n color: {\n primary:\n 'bg-primary aria-selected:text-text dark:bg-primary-dark dark:aria-selected:text-text-dark',\n secondary:\n 'bg-secondary aria-selected:text-text dark:bg-secondary-dark dark:aria-selected:text-text-dark',\n destructive:\n 'bg-destructive aria-selected:text-text dark:bg-destructive-dark dark:aria-selected:text-text-dark',\n neutral:\n 'bg-neutral aria-selected:text-white dark:bg-neutral-dark dark:aria-selected:text-text',\n light: 'bg-white aria-selected:text-black',\n dark: 'bg-neutral-800 aria-selected:text-white',\n text: 'bg-text aria-selected:text-text-dark dark:bg-text-dark dark:aria-selected:text-text',\n },\n },\n }\n);\n\nexport type TabProps = HTMLAttributes<HTMLElement> & {\n key: string | number;\n};\n\ntype TabSelectorProps<T extends TabProps> = {\n tabs: ReactElement<T>[];\n selectedChoice: T['key'];\n onTabClick?: (choice: T['key']) => void;\n hoverable?: boolean;\n} & HTMLAttributes<HTMLElement> &\n VariantProps<typeof tabSelectorVariant>;\n\n/**\n *\n * Component that allows the user to select one of the provided choices.\n *\n * Example:\n * ```jsx\n * <TabSelector\n * selectedChoice=\"option1\"\n * onTabClick={(choice) => console.log(choice)}\n * hoverable={true}\n * >\n * <Button key=\"option1\"/>\n * <Button key=\"option2\"/>\n * <Button key=\"option3\"/>\n * </TabSelector>\n * ```\n */\nexport const TabSelector = <T extends TabProps>({\n tabs,\n selectedChoice,\n onTabClick,\n color = 'primary',\n hoverable = false,\n className,\n}: TabSelectorProps<T>) => {\n const optionsRefs = useRef<HTMLElement[]>([]);\n const indicatorRef = useRef<HTMLDivElement | null>(null);\n const { choiceIndicatorPosition } = useItemSelector(\n optionsRefs,\n undefined,\n hoverable\n );\n\n return (\n <div\n className={cn(\n tabSelectorVariant({\n color,\n }),\n className\n )}\n aria-orientation=\"horizontal\"\n aria-multiselectable=\"false\"\n role=\"tablist\"\n >\n {tabs.map((Tab, index) => {\n const key = Tab.key!;\n\n const isSelected = selectedChoice === key;\n\n return cloneElement(Tab, {\n key: key ?? index,\n role: 'tab',\n onClick: () => onTabClick?.(key),\n 'aria-selected': isSelected,\n ref: (el: HTMLElement) => {\n optionsRefs.current[index] = el!;\n },\n } as unknown as T);\n })}\n {choiceIndicatorPosition && (\n <div\n className={indicatorVariant({\n color,\n })}\n style={choiceIndicatorPosition}\n ref={indicatorRef}\n />\n )}\n </div>\n );\n};\n"],"names":["jsxs","jsx"],"mappings":";;;;;;;;;;;;;;;;AAYA,MAAM,qBAAqB;AAAA,EACzB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,OAAO;AAAA,IACT;AAAA,EACF;AACF;AAEA,MAAM,mBAAmB;AAAA,EACvB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;AA+BO,MAAM,cAAc,CAAqB;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ;AACF,MAA2B;AACnB,QAAA,cAAc,OAAsB,CAAA,CAAE;AACtC,QAAA,eAAe,OAA8B,IAAI;AACjD,QAAA,EAAE,4BAA4B;AAAA,IAClC;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAIA,SAAAA,kCAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT,mBAAmB;AAAA,UACjB;AAAA,QAAA,CACD;AAAA,QACD;AAAA,MACF;AAAA,MACA,oBAAiB;AAAA,MACjB,wBAAqB;AAAA,MACrB,MAAK;AAAA,MAEJ,UAAA;AAAA,QAAK,KAAA,IAAI,CAAC,KAAK,UAAU;AACxB,gBAAM,MAAM,IAAI;AAEhB,gBAAM,aAAa,mBAAmB;AAEtC,iBAAO,aAAa,KAAK;AAAA,YACvB,KAAK,OAAO;AAAA,YACZ,MAAM;AAAA,YACN,SAAS,MAAM,aAAa,GAAG;AAAA,YAC/B,iBAAiB;AAAA,YACjB,KAAK,CAAC,OAAoB;AACZ,0BAAA,QAAQ,KAAK,IAAI;AAAA,YAC/B;AAAA,UAAA,CACe;AAAA,QAAA,CAClB;AAAA,QACA,2BACCC,kCAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAW,iBAAiB;AAAA,cAC1B;AAAA,YAAA,CACD;AAAA,YACD,OAAO;AAAA,YACP,KAAK;AAAA,UAAA;AAAA,QACP;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;"}
1
+ {"version":3,"file":"TabSelector.mjs","sources":["../../../src/components/TabSelector/TabSelector.tsx"],"sourcesContent":["'use client';\n\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport {\n useRef,\n type HTMLAttributes,\n type ReactElement,\n cloneElement,\n} from 'react';\nimport { useItemSelector } from '../../hooks';\nimport { cn } from '../../utils/cn';\n\nconst tabSelectorVariant = cva(\n 'relative flex size-full flex-row items-center gap-2',\n {\n variants: {\n color: {\n primary:\n 'border-primary text-primary dark:border-primary-dark dark:text-primary-dark',\n secondary:\n 'border-secondary text-secondary dark:border-secondary-dark dark:text-secondary-dark',\n destructive:\n 'border-destructive bg-destructive text-destructive dark:border-destructive-dark dark:bg-destructive-dark',\n neutral:\n 'border-neutral text-neutral dark:border-neutral-dark dark:text-neutral-dark',\n light: 'border-white text-white',\n dark: 'border-neutral-800 text-neutral-800',\n text: 'border-text text-text dark:border-text-dark dark:text-text-dark',\n },\n },\n defaultVariants: {\n color: 'primary',\n },\n }\n);\n\nconst indicatorVariant = cva(\n 'absolute top-0 z-[-1] h-full w-auto rounded-lg transition-[left,width] duration-300 ease-in-out motion-reduce:transition-none',\n {\n variants: {\n color: {\n primary:\n 'bg-primary/10 aria-selected:text-text dark:bg-primary-dark/10 dark:aria-selected:text-text-dark',\n secondary:\n 'bg-secondary/10 aria-selected:text-text dark:bg-secondary-dark/10 dark:aria-selected:text-text-dark',\n destructive:\n 'bg-destructive/10 aria-selected:text-text dark:bg-destructive-dark/10 dark:aria-selected:text-text-dark',\n neutral:\n 'bg-neutral/10 aria-selected:text-white dark:bg-neutral-dark/10 dark:aria-selected:text-text',\n light: 'bg-white/10 aria-selected:text-black',\n dark: 'bg-neutral-800/10 aria-selected:text-white',\n text: 'bg-text/10 aria-selected:text-text-dark dark:bg-text-dark/10 dark:aria-selected:text-text',\n },\n },\n }\n);\n\nexport type TabProps = HTMLAttributes<HTMLElement> & {\n key: string | number;\n};\n\ntype TabSelectorProps<T extends TabProps> = {\n tabs: ReactElement<T>[];\n selectedChoice: T['key'];\n onTabClick?: (choice: T['key']) => void;\n hoverable?: boolean;\n} & HTMLAttributes<HTMLElement> &\n VariantProps<typeof tabSelectorVariant>;\n\n/**\n *\n * Component that allows the user to select one of the provided choices.\n *\n * Example:\n * ```jsx\n * <TabSelector\n * selectedChoice=\"option1\"\n * onTabClick={(choice) => console.log(choice)}\n * hoverable={true}\n * >\n * <Button key=\"option1\"/>\n * <Button key=\"option2\"/>\n * <Button key=\"option3\"/>\n * </TabSelector>\n * ```\n */\nexport const TabSelector = <T extends TabProps>({\n tabs,\n selectedChoice,\n onTabClick,\n color = 'primary',\n hoverable = false,\n className,\n}: TabSelectorProps<T>) => {\n const optionsRefs = useRef<HTMLElement[]>([]);\n const indicatorRef = useRef<HTMLDivElement | null>(null);\n const { choiceIndicatorPosition } = useItemSelector(\n optionsRefs,\n undefined,\n hoverable\n );\n\n return (\n <div\n className={cn(\n tabSelectorVariant({\n color,\n }),\n className\n )}\n aria-orientation=\"horizontal\"\n aria-multiselectable=\"false\"\n role=\"tablist\"\n >\n {tabs.map((Tab, index) => {\n const key = Tab.key!;\n\n const isSelected = selectedChoice === key;\n\n return cloneElement(Tab, {\n key: key ?? index,\n role: 'tab',\n onClick: () => onTabClick?.(key),\n 'aria-selected': isSelected,\n ref: (el: HTMLElement) => {\n optionsRefs.current[index] = el!;\n },\n } as unknown as T);\n })}\n {choiceIndicatorPosition && (\n <div\n className={indicatorVariant({\n color,\n })}\n style={choiceIndicatorPosition}\n ref={indicatorRef}\n key={`${selectedChoice}${JSON.stringify(tabs.map((tab) => tab.key))}`}\n />\n )}\n </div>\n );\n};\n"],"names":["jsxs","jsx"],"mappings":";;;;;;;;;;;;;;;;;;AAYA,MAAM,qBAAqB;AAAA,EACzB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,OAAO;AAAA,IACT;AAAA,EACF;AACF;AAEA,MAAM,mBAAmB;AAAA,EACvB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,OAAO;AAAA,QACL,SACE;AAAA,QACF,WACE;AAAA,QACF,aACE;AAAA,QACF,SACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;AA+BO,MAAM,cAAc,CAAqB;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ;AACF,MAA2B;AACnB,QAAA,cAAc,OAAsB,CAAA,CAAE;AACtC,QAAA,eAAe,OAA8B,IAAI;AACjD,QAAA,EAAE,4BAA4B;AAAA,IAClC;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAIA,SAAAA,kCAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,QACT,mBAAmB;AAAA,UACjB;AAAA,QAAA,CACD;AAAA,QACD;AAAA,MACF;AAAA,MACA,oBAAiB;AAAA,MACjB,wBAAqB;AAAA,MACrB,MAAK;AAAA,MAEJ,UAAA;AAAA,QAAK,KAAA,IAAI,CAAC,KAAK,UAAU;AACxB,gBAAM,MAAM,IAAI;AAEhB,gBAAM,aAAa,mBAAmB;AAEtC,iBAAO,aAAa,KAAK;AAAA,YACvB,KAAK,OAAO;AAAA,YACZ,MAAM;AAAA,YACN,SAAS,MAAM,aAAa,GAAG;AAAA,YAC/B,iBAAiB;AAAA,YACjB,KAAK,CAAC,OAAoB;AACZ,0BAAA,QAAQ,KAAK,IAAI;AAAA,YAC/B;AAAA,UAAA,CACe;AAAA,QAAA,CAClB;AAAA,QACA,2BACCC,kCAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAW,iBAAiB;AAAA,cAC1B;AAAA,YAAA,CACD;AAAA,YACD,OAAO;AAAA,YACP,KAAK;AAAA,UAAA;AAAA,UACA,GAAG,cAAc,GAAG,KAAK,UAAU,KAAK,IAAI,CAAC,QAAQ,IAAI,GAAG,CAAC,CAAC;AAAA,QACrE;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;"}
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("../../jsx-runtime-DvCoRj5u.cjs");
4
+ const classVarianceAuthority = require("class-variance-authority");
5
+ const require$$0 = require("react");
6
+ const containerVariants = classVarianceAuthority.cva("backdrop-blur w-fit", {
7
+ variants: {
8
+ roundedSize: {
9
+ none: "rounded-none",
10
+ sm: "rounded-sm",
11
+ md: "rounded-md",
12
+ lg: "rounded-lg",
13
+ xl: "rounded-xl",
14
+ "2xl": "rounded-2xl",
15
+ "3xl": "rounded-3xl",
16
+ full: "rounded-full"
17
+ },
18
+ color: {
19
+ success: "bg-success/10 dark:bg-success-dark/10 border-success dark:border-success-dark text-success dark:text-success-dark",
20
+ error: "bg-error/10 dark:bg-error-dark/10 border-error dark:border-error-dark text-error dark:text-error-dark",
21
+ warning: "bg-warning/10 dark:bg-warning-dark/10 border-warning dark:border-warning-dark text-warning dark:text-warning-dark",
22
+ neutral: "bg-neutral/10 dark:bg-neutral-dark/10 border-neutral dark:border-neutral-dark text-neutral dark:text-neutral-dark",
23
+ info: "bg-info/10 dark:bg-info-dark/10 border-info dark:border-info-dark text-info dark:text-info-dark",
24
+ text: "bg-text/10 dark:bg-text-dark/10 border-text dark:border-text-dark text-text dark:text-text-dark"
25
+ },
26
+ size: {
27
+ sm: "py-0.5 px-2 text-sm border-[1.5px]",
28
+ md: "py-1 px-2 text-base border-2",
29
+ lg: "py-2 px-3 text-lg border-2",
30
+ xl: "py-4 px-5 text-xl border-2"
31
+ },
32
+ border: {
33
+ none: "",
34
+ with: "border-text dark:border-text-dark border-[1.5px]"
35
+ },
36
+ background: {
37
+ none: "bg-none",
38
+ with: ""
39
+ }
40
+ },
41
+ defaultVariants: {
42
+ roundedSize: "full",
43
+ border: "none",
44
+ color: "text",
45
+ size: "md"
46
+ }
47
+ });
48
+ const Tag = require$$0.forwardRef(
49
+ ({
50
+ children,
51
+ color,
52
+ roundedSize,
53
+ size,
54
+ border,
55
+ background,
56
+ className,
57
+ ...props
58
+ }, ref) => {
59
+ return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(
60
+ "div",
61
+ {
62
+ ref,
63
+ className: containerVariants({
64
+ color,
65
+ roundedSize,
66
+ size,
67
+ border,
68
+ background,
69
+ className
70
+ }),
71
+ ...props,
72
+ children
73
+ }
74
+ );
75
+ }
76
+ );
77
+ Tag.displayName = "Tag";
78
+ exports.Tag = Tag;
79
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/components/Tag/index.tsx"],"sourcesContent":["import { cva, VariantProps } from 'class-variance-authority';\nimport { forwardRef, HTMLAttributes, PropsWithChildren } from 'react';\n\ntype TagProps = PropsWithChildren<VariantProps<typeof containerVariants>> &\n HTMLAttributes<HTMLDivElement>;\n\nconst containerVariants = cva('backdrop-blur w-fit', {\n variants: {\n roundedSize: {\n none: 'rounded-none',\n sm: 'rounded-sm',\n md: 'rounded-md',\n lg: 'rounded-lg',\n xl: 'rounded-xl',\n '2xl': 'rounded-2xl',\n '3xl': 'rounded-3xl',\n full: 'rounded-full',\n },\n color: {\n success:\n 'bg-success/10 dark:bg-success-dark/10 border-success dark:border-success-dark text-success dark:text-success-dark',\n error:\n 'bg-error/10 dark:bg-error-dark/10 border-error dark:border-error-dark text-error dark:text-error-dark',\n warning:\n 'bg-warning/10 dark:bg-warning-dark/10 border-warning dark:border-warning-dark text-warning dark:text-warning-dark',\n neutral:\n 'bg-neutral/10 dark:bg-neutral-dark/10 border-neutral dark:border-neutral-dark text-neutral dark:text-neutral-dark',\n info: 'bg-info/10 dark:bg-info-dark/10 border-info dark:border-info-dark text-info dark:text-info-dark',\n text: 'bg-text/10 dark:bg-text-dark/10 border-text dark:border-text-dark text-text dark:text-text-dark',\n },\n size: {\n sm: 'py-0.5 px-2 text-sm border-[1.5px]',\n md: 'py-1 px-2 text-base border-2',\n lg: 'py-2 px-3 text-lg border-2',\n xl: 'py-4 px-5 text-xl border-2',\n },\n border: {\n none: '',\n with: 'border-text dark:border-text-dark border-[1.5px]',\n },\n background: {\n none: 'bg-none',\n with: '',\n },\n },\n\n defaultVariants: {\n roundedSize: 'full',\n border: 'none',\n color: 'text',\n size: 'md',\n },\n});\n\nexport const Tag = forwardRef<HTMLDivElement, TagProps>(\n (\n {\n children,\n color,\n roundedSize,\n size,\n border,\n background,\n className,\n ...props\n },\n ref\n ) => {\n return (\n <div\n ref={ref}\n className={containerVariants({\n color,\n roundedSize,\n size,\n border,\n background,\n className,\n })}\n {...props}\n >\n {children}\n </div>\n );\n }\n);\n\nTag.displayName = 'Tag';\n"],"names":["cva","forwardRef","jsx"],"mappings":";;;;;AAMA,MAAM,oBAAoBA,2BAAI,uBAAuB;AAAA,EACnD,UAAU;AAAA,IACR,aAAa;AAAA,MACX,MAAM;AAAA,MACN,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,OAAO;AAAA,MACP,MAAM;AAAA,IACR;AAAA,IACA,OAAO;AAAA,MACL,SACE;AAAA,MACF,OACE;AAAA,MACF,SACE;AAAA,MACF,SACE;AAAA,MACF,MAAM;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,MACN,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,aAAa;AAAA,IACb,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AACF,CAAC;AAEM,MAAM,MAAMC,WAAA;AAAA,EACjB,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,KAEL,QACG;AAED,WAAAC,2BAAA,kBAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,kBAAkB;AAAA,UAC3B;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QAAA,CACD;AAAA,QACA,GAAG;AAAA,QAEH;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACF;AAEA,IAAI,cAAc;;"}
@@ -0,0 +1,12 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import { HTMLAttributes } from 'react';
3
+ export declare const Tag: import('react').ForwardRefExoticComponent<VariantProps<(props?: ({
4
+ roundedSize?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | null | undefined;
5
+ color?: "error" | "success" | "text" | "neutral" | "info" | "warning" | null | undefined;
6
+ size?: "sm" | "md" | "lg" | "xl" | null | undefined;
7
+ border?: "none" | "with" | null | undefined;
8
+ background?: "none" | "with" | null | undefined;
9
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string> & {
10
+ children?: import('react').ReactNode | undefined;
11
+ } & HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAc,cAAc,EAAqB,MAAM,OAAO,CAAC;AAqDtE,eAAO,MAAM,GAAG;;;;;;;;mFA+Bf,CAAC"}
@@ -0,0 +1,79 @@
1
+ import { j as jsxRuntimeExports } from "../../jsx-runtime-BgSF1HG2.js";
2
+ import { cva } from "class-variance-authority";
3
+ import { forwardRef } from "react";
4
+ const containerVariants = cva("backdrop-blur w-fit", {
5
+ variants: {
6
+ roundedSize: {
7
+ none: "rounded-none",
8
+ sm: "rounded-sm",
9
+ md: "rounded-md",
10
+ lg: "rounded-lg",
11
+ xl: "rounded-xl",
12
+ "2xl": "rounded-2xl",
13
+ "3xl": "rounded-3xl",
14
+ full: "rounded-full"
15
+ },
16
+ color: {
17
+ success: "bg-success/10 dark:bg-success-dark/10 border-success dark:border-success-dark text-success dark:text-success-dark",
18
+ error: "bg-error/10 dark:bg-error-dark/10 border-error dark:border-error-dark text-error dark:text-error-dark",
19
+ warning: "bg-warning/10 dark:bg-warning-dark/10 border-warning dark:border-warning-dark text-warning dark:text-warning-dark",
20
+ neutral: "bg-neutral/10 dark:bg-neutral-dark/10 border-neutral dark:border-neutral-dark text-neutral dark:text-neutral-dark",
21
+ info: "bg-info/10 dark:bg-info-dark/10 border-info dark:border-info-dark text-info dark:text-info-dark",
22
+ text: "bg-text/10 dark:bg-text-dark/10 border-text dark:border-text-dark text-text dark:text-text-dark"
23
+ },
24
+ size: {
25
+ sm: "py-0.5 px-2 text-sm border-[1.5px]",
26
+ md: "py-1 px-2 text-base border-2",
27
+ lg: "py-2 px-3 text-lg border-2",
28
+ xl: "py-4 px-5 text-xl border-2"
29
+ },
30
+ border: {
31
+ none: "",
32
+ with: "border-text dark:border-text-dark border-[1.5px]"
33
+ },
34
+ background: {
35
+ none: "bg-none",
36
+ with: ""
37
+ }
38
+ },
39
+ defaultVariants: {
40
+ roundedSize: "full",
41
+ border: "none",
42
+ color: "text",
43
+ size: "md"
44
+ }
45
+ });
46
+ const Tag = forwardRef(
47
+ ({
48
+ children,
49
+ color,
50
+ roundedSize,
51
+ size,
52
+ border,
53
+ background,
54
+ className,
55
+ ...props
56
+ }, ref) => {
57
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
58
+ "div",
59
+ {
60
+ ref,
61
+ className: containerVariants({
62
+ color,
63
+ roundedSize,
64
+ size,
65
+ border,
66
+ background,
67
+ className
68
+ }),
69
+ ...props,
70
+ children
71
+ }
72
+ );
73
+ }
74
+ );
75
+ Tag.displayName = "Tag";
76
+ export {
77
+ Tag
78
+ };
79
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../src/components/Tag/index.tsx"],"sourcesContent":["import { cva, VariantProps } from 'class-variance-authority';\nimport { forwardRef, HTMLAttributes, PropsWithChildren } from 'react';\n\ntype TagProps = PropsWithChildren<VariantProps<typeof containerVariants>> &\n HTMLAttributes<HTMLDivElement>;\n\nconst containerVariants = cva('backdrop-blur w-fit', {\n variants: {\n roundedSize: {\n none: 'rounded-none',\n sm: 'rounded-sm',\n md: 'rounded-md',\n lg: 'rounded-lg',\n xl: 'rounded-xl',\n '2xl': 'rounded-2xl',\n '3xl': 'rounded-3xl',\n full: 'rounded-full',\n },\n color: {\n success:\n 'bg-success/10 dark:bg-success-dark/10 border-success dark:border-success-dark text-success dark:text-success-dark',\n error:\n 'bg-error/10 dark:bg-error-dark/10 border-error dark:border-error-dark text-error dark:text-error-dark',\n warning:\n 'bg-warning/10 dark:bg-warning-dark/10 border-warning dark:border-warning-dark text-warning dark:text-warning-dark',\n neutral:\n 'bg-neutral/10 dark:bg-neutral-dark/10 border-neutral dark:border-neutral-dark text-neutral dark:text-neutral-dark',\n info: 'bg-info/10 dark:bg-info-dark/10 border-info dark:border-info-dark text-info dark:text-info-dark',\n text: 'bg-text/10 dark:bg-text-dark/10 border-text dark:border-text-dark text-text dark:text-text-dark',\n },\n size: {\n sm: 'py-0.5 px-2 text-sm border-[1.5px]',\n md: 'py-1 px-2 text-base border-2',\n lg: 'py-2 px-3 text-lg border-2',\n xl: 'py-4 px-5 text-xl border-2',\n },\n border: {\n none: '',\n with: 'border-text dark:border-text-dark border-[1.5px]',\n },\n background: {\n none: 'bg-none',\n with: '',\n },\n },\n\n defaultVariants: {\n roundedSize: 'full',\n border: 'none',\n color: 'text',\n size: 'md',\n },\n});\n\nexport const Tag = forwardRef<HTMLDivElement, TagProps>(\n (\n {\n children,\n color,\n roundedSize,\n size,\n border,\n background,\n className,\n ...props\n },\n ref\n ) => {\n return (\n <div\n ref={ref}\n className={containerVariants({\n color,\n roundedSize,\n size,\n border,\n background,\n className,\n })}\n {...props}\n >\n {children}\n </div>\n );\n }\n);\n\nTag.displayName = 'Tag';\n"],"names":["jsx"],"mappings":";;;AAMA,MAAM,oBAAoB,IAAI,uBAAuB;AAAA,EACnD,UAAU;AAAA,IACR,aAAa;AAAA,MACX,MAAM;AAAA,MACN,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,OAAO;AAAA,MACP,MAAM;AAAA,IACR;AAAA,IACA,OAAO;AAAA,MACL,SACE;AAAA,MACF,OACE;AAAA,MACF,SACE;AAAA,MACF,SACE;AAAA,MACF,MAAM;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,MACN,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,aAAa;AAAA,IACb,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AACF,CAAC;AAEM,MAAM,MAAM;AAAA,EACjB,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,KAEL,QACG;AAED,WAAAA,kCAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW,kBAAkB;AAAA,UAC3B;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QAAA,CACD;AAAA,QACA,GAAG;AAAA,QAEH;AAAA,MAAA;AAAA,IAAA;AAAA,EAGP;AACF;AAEA,IAAI,cAAc;"}
@@ -4,7 +4,7 @@ import * as ToastPrimitives from '@radix-ui/react-toast';
4
4
  declare const ToastProvider: import('react').FC<ToastPrimitives.ToastProviderProps>;
5
5
  declare const ToastViewport: import('react').ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & import('react').RefAttributes<HTMLOListElement>, "ref"> & import('react').RefAttributes<HTMLOListElement>>;
6
6
  declare const Toast: import('react').ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & import('react').RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
7
- variant?: "success" | "error" | "default" | null | undefined;
7
+ variant?: "default" | "error" | "success" | null | undefined;
8
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string> & import('react').RefAttributes<HTMLLIElement>>;
9
9
  declare const ToastAction: import('react').ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
10
10
  declare const ToastClose: import('react').ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
@@ -54,7 +54,7 @@ const components_Auth_ChangePasswordForm_ChangePasswordSchema = require("./Auth/
54
54
  const components_Auth_ResetPasswordForm_ResetPasswordForm = require("./Auth/ResetPasswordForm/ResetPasswordForm.cjs");
55
55
  const components_Auth_ResetPasswordForm_ResetPasswordSchema = require("./Auth/ResetPasswordForm/ResetPasswordSchema.cjs");
56
56
  const components_Auth_AuthModal_index = require("./Auth/AuthModal/index.cjs");
57
- const components_Auth_AuthProvider_index = require("./Auth/AuthProvider/index.cjs");
57
+ const components_Auth_useAuth_index = require("./Auth/useAuth/index.cjs");
58
58
  const components_Auth_AuthenticationBarrier_AuthenticationBarrierServer = require("./Auth/AuthenticationBarrier/AuthenticationBarrierServer.cjs");
59
59
  const components_Auth_AuthenticationBarrier_AuthenticationBarrierClient = require("./Auth/AuthenticationBarrier/AuthenticationBarrierClient.cjs");
60
60
  const components_Auth_useUser_index = require("./Auth/useUser/index.cjs");
@@ -73,6 +73,7 @@ const components_Pattern_SpotLight = require("./Pattern/SpotLight.cjs");
73
73
  const components_CopyToClipboard_index = require("./CopyToClipboard/index.cjs");
74
74
  const components_EditableField_EditableFieldInput = require("./EditableField/EditableFieldInput.cjs");
75
75
  const components_EditableField_EditableFieldTextArea = require("./EditableField/EditableFieldTextArea.cjs");
76
+ const components_Tag_index = require("./Tag/index.cjs");
76
77
  exports.MaxHeightSmoother = components_MaxHeightSmoother_index.MaxHeightSmoother;
77
78
  exports.MaxWidthSmoother = components_MaxWidthSmoother_index.MaxWidthSmoother;
78
79
  exports.RightDrawer = components_RightDrawer_RightDrawer.RightDrawer;
@@ -136,9 +137,7 @@ exports.getChangePasswordSchema = components_Auth_ChangePasswordForm_ChangePassw
136
137
  exports.ResetPasswordForm = components_Auth_ResetPasswordForm_ResetPasswordForm.ResetPasswordForm;
137
138
  exports.getResetPasswordSchema = components_Auth_ResetPasswordForm_ResetPasswordSchema.getResetPasswordSchema;
138
139
  exports.AuthModal = components_Auth_AuthModal_index.AuthModal;
139
- exports.AuthContext = components_Auth_AuthProvider_index.AuthContext;
140
- exports.AuthProvider = components_Auth_AuthProvider_index.AuthProvider;
141
- exports.useAuth = components_Auth_AuthProvider_index.useAuth;
140
+ exports.useAuth = components_Auth_useAuth_index.useAuth;
142
141
  exports.AuthenticationBarrierServer = components_Auth_AuthenticationBarrier_AuthenticationBarrierServer.AuthenticationBarrierServer;
143
142
  exports.AuthenticationBarrierClient = components_Auth_AuthenticationBarrier_AuthenticationBarrierClient.AuthenticationBarrierClient;
144
143
  exports.useUser = components_Auth_useUser_index.useUser;
@@ -170,4 +169,5 @@ exports.Spotlight = components_Pattern_SpotLight.Spotlight;
170
169
  exports.CopyToClipboard = components_CopyToClipboard_index.CopyToClipboard;
171
170
  exports.EditableFieldInput = components_EditableField_EditableFieldInput.EditableFieldInput;
172
171
  exports.EditableFieldTextArea = components_EditableField_EditableFieldTextArea.EditableFieldTextArea;
172
+ exports.Tag = components_Tag_index.Tag;
173
173
  //# sourceMappingURL=index.cjs.map
@@ -39,4 +39,5 @@ export * from './Command';
39
39
  export * from './Pattern';
40
40
  export * from './CopyToClipboard';
41
41
  export * from './EditableField';
42
+ export * from './Tag';
42
43
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,OAAO,CAAC"}
@@ -52,7 +52,7 @@ import { getChangePasswordSchema } from "./Auth/ChangePasswordForm/ChangePasswor
52
52
  import { ResetPasswordForm } from "./Auth/ResetPasswordForm/ResetPasswordForm.mjs";
53
53
  import { getResetPasswordSchema } from "./Auth/ResetPasswordForm/ResetPasswordSchema.mjs";
54
54
  import { AuthModal } from "./Auth/AuthModal/index.mjs";
55
- import { AuthContext, AuthProvider, useAuth } from "./Auth/AuthProvider/index.mjs";
55
+ import { useAuth } from "./Auth/useAuth/index.mjs";
56
56
  import { AuthenticationBarrierServer } from "./Auth/AuthenticationBarrier/AuthenticationBarrierServer.mjs";
57
57
  import { AuthenticationBarrierClient } from "./Auth/AuthenticationBarrier/AuthenticationBarrierClient.mjs";
58
58
  import { useUser } from "./Auth/useUser/index.mjs";
@@ -71,10 +71,9 @@ import { Spotlight } from "./Pattern/SpotLight.mjs";
71
71
  import { CopyToClipboard } from "./CopyToClipboard/index.mjs";
72
72
  import { EditableFieldInput } from "./EditableField/EditableFieldInput.mjs";
73
73
  import { EditableFieldTextArea } from "./EditableField/EditableFieldTextArea.mjs";
74
+ import { Tag } from "./Tag/index.mjs";
74
75
  export {
75
- AuthContext,
76
76
  AuthModal,
77
- AuthProvider,
78
77
  AuthenticationBarrierClient,
79
78
  AuthenticationBarrierServer,
80
79
  Avatar,
@@ -142,6 +141,7 @@ export {
142
141
  Spotlight,
143
142
  SwitchSelector,
144
143
  TabSelector,
144
+ Tag,
145
145
  Toast,
146
146
  ToastAction,
147
147
  ToastClose,
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -9,6 +9,7 @@ const hooks_useAsync_useAsync = require("./useAsync/useAsync.cjs");
9
9
  const hooks_intlayerAPIHooks = require("./intlayerAPIHooks.cjs");
10
10
  const hooks_useItemSelector = require("./useItemSelector.cjs");
11
11
  const hooks_useGetAllDictionaries = require("./useGetAllDictionaries.cjs");
12
+ const hooks_usePersistedStore = require("./usePersistedStore.cjs");
12
13
  exports.useDevice = hooks_useDevice.useDevice;
13
14
  exports.useGetElementOrWindow = hooks_useGetElementOrWindow.useGetElementOrWindow;
14
15
  exports.useScrollBlockage = hooks_useScrollBlockage_index.useScrollBlockage;
@@ -21,8 +22,8 @@ exports.useAddOrganization = hooks_intlayerAPIHooks.useAddOrganization;
21
22
  exports.useAddOrganizationMember = hooks_intlayerAPIHooks.useAddOrganizationMember;
22
23
  exports.useAddProject = hooks_intlayerAPIHooks.useAddProject;
23
24
  exports.useAskResetPassword = hooks_intlayerAPIHooks.useAskResetPassword;
24
- exports.useAsyncWithAuth = hooks_intlayerAPIHooks.useAsyncWithAuth;
25
25
  exports.useChangePassword = hooks_intlayerAPIHooks.useChangePassword;
26
+ exports.useCheckIfUserHasPassword = hooks_intlayerAPIHooks.useCheckIfUserHasPassword;
26
27
  exports.useCreateUser = hooks_intlayerAPIHooks.useCreateUser;
27
28
  exports.useDeleteAccessKey = hooks_intlayerAPIHooks.useDeleteAccessKey;
28
29
  exports.useDeleteDictionary = hooks_intlayerAPIHooks.useDeleteDictionary;
@@ -34,6 +35,7 @@ exports.useGetDictionariesKeys = hooks_intlayerAPIHooks.useGetDictionariesKeys;
34
35
  exports.useGetDictionary = hooks_intlayerAPIHooks.useGetDictionary;
35
36
  exports.useGetOrganizations = hooks_intlayerAPIHooks.useGetOrganizations;
36
37
  exports.useGetProjects = hooks_intlayerAPIHooks.useGetProjects;
38
+ exports.useGetSubscription = hooks_intlayerAPIHooks.useGetSubscription;
37
39
  exports.useGetUserByAccount = hooks_intlayerAPIHooks.useGetUserByAccount;
38
40
  exports.useGetUsers = hooks_intlayerAPIHooks.useGetUsers;
39
41
  exports.useLogin = hooks_intlayerAPIHooks.useLogin;
@@ -55,4 +57,5 @@ exports.useUpdateUser = hooks_intlayerAPIHooks.useUpdateUser;
55
57
  exports.useVerifyEmail = hooks_intlayerAPIHooks.useVerifyEmail;
56
58
  exports.useItemSelector = hooks_useItemSelector.useItemSelector;
57
59
  exports.useGetAllDictionaries = hooks_useGetAllDictionaries.useGetAllDictionaries;
60
+ exports.usePersistedStore = hooks_usePersistedStore.usePersistedStore;
58
61
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -7,4 +7,5 @@ export * from './useAsync';
7
7
  export * from './intlayerAPIHooks';
8
8
  export * from './useItemSelector';
9
9
  export * from './useGetAllDictionaries';
10
+ export * from './usePersistedStore';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC"}
@@ -4,9 +4,10 @@ import { useScrollBlockage } from "./useScrollBlockage/index.mjs";
4
4
  import { useIsMounted } from "./useIsMounted.mjs";
5
5
  import { useScrollDetection } from "./useScrollDetection.mjs";
6
6
  import { useAsync } from "./useAsync/useAsync.mjs";
7
- import { useAddDictionary, useAddNewAccessKey, useAddOrganization, useAddOrganizationMember, useAddProject, useAskResetPassword, useAsyncWithAuth, useChangePassword, useCreateUser, useDeleteAccessKey, useDeleteDictionary, useDeleteOrganization, useDeleteProject, useDeleteUser, useGetDictionaries, useGetDictionariesKeys, useGetDictionary, useGetOrganizations, useGetProjects, useGetUserByAccount, useGetUsers, useLogin, useLogout, usePushDictionaries, useRefreshAccessKey, useRegister, useResetPassword, useSelectOrganization, useSelectProject, useUnselectOrganization, useUnselectProject, useUpdateDictionary, useUpdateOrganization, useUpdateOrganizationMembers, useUpdateProject, useUpdateProjectMembers, useUpdateUser, useVerifyEmail } from "./intlayerAPIHooks.mjs";
7
+ import { useAddDictionary, useAddNewAccessKey, useAddOrganization, useAddOrganizationMember, useAddProject, useAskResetPassword, useChangePassword, useCheckIfUserHasPassword, useCreateUser, useDeleteAccessKey, useDeleteDictionary, useDeleteOrganization, useDeleteProject, useDeleteUser, useGetDictionaries, useGetDictionariesKeys, useGetDictionary, useGetOrganizations, useGetProjects, useGetSubscription, useGetUserByAccount, useGetUsers, useLogin, useLogout, usePushDictionaries, useRefreshAccessKey, useRegister, useResetPassword, useSelectOrganization, useSelectProject, useUnselectOrganization, useUnselectProject, useUpdateDictionary, useUpdateOrganization, useUpdateOrganizationMembers, useUpdateProject, useUpdateProjectMembers, useUpdateUser, useVerifyEmail } from "./intlayerAPIHooks.mjs";
8
8
  import { useItemSelector } from "./useItemSelector.mjs";
9
9
  import { useGetAllDictionaries } from "./useGetAllDictionaries.mjs";
10
+ import { usePersistedStore } from "./usePersistedStore.mjs";
10
11
  export {
11
12
  useAddDictionary,
12
13
  useAddNewAccessKey,
@@ -15,8 +16,8 @@ export {
15
16
  useAddProject,
16
17
  useAskResetPassword,
17
18
  useAsync,
18
- useAsyncWithAuth,
19
19
  useChangePassword,
20
+ useCheckIfUserHasPassword,
20
21
  useCreateUser,
21
22
  useDeleteAccessKey,
22
23
  useDeleteDictionary,
@@ -31,12 +32,14 @@ export {
31
32
  useGetElementOrWindow,
32
33
  useGetOrganizations,
33
34
  useGetProjects,
35
+ useGetSubscription,
34
36
  useGetUserByAccount,
35
37
  useGetUsers,
36
38
  useIsMounted,
37
39
  useItemSelector,
38
40
  useLogin,
39
41
  useLogout,
42
+ usePersistedStore,
40
43
  usePushDictionaries,
41
44
  useRefreshAccessKey,
42
45
  useRegister,
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}