@greatapps/common 1.1.133 → 1.1.135

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 (395) hide show
  1. package/dist/MMQ4R4NB-B36VHW65.mjs +61 -0
  2. package/dist/MMQ4R4NB-B36VHW65.mjs.map +1 -0
  3. package/dist/V4HPSUGU-6BOE4IPH.mjs +51 -0
  4. package/dist/V4HPSUGU-6BOE4IPH.mjs.map +1 -0
  5. package/dist/account-management.action-7QQCACDJ.mjs +40 -0
  6. package/dist/account.service-XTZDEIPS.mjs +9 -0
  7. package/dist/{modules/auth/services/auth.service.mjs → chunk-7MBVHKTC.mjs} +46 -13
  8. package/dist/chunk-7MBVHKTC.mjs.map +1 -0
  9. package/dist/{modules/users/services/user.service.mjs → chunk-B2W2HK7C.mjs} +13 -8
  10. package/dist/chunk-B2W2HK7C.mjs.map +1 -0
  11. package/dist/{modules/auth/actions/validate-session.action.mjs → chunk-EC3T7NF6.mjs} +8 -4
  12. package/dist/chunk-EC3T7NF6.mjs.map +1 -0
  13. package/dist/chunk-EKZZ2RWJ.mjs +12701 -0
  14. package/dist/chunk-EKZZ2RWJ.mjs.map +1 -0
  15. package/dist/chunk-ICUZDG2N.mjs +283 -0
  16. package/dist/chunk-ICUZDG2N.mjs.map +1 -0
  17. package/dist/{utils/safeServerAction.mjs → chunk-JW4XRHLX.mjs} +7 -2
  18. package/dist/chunk-JW4XRHLX.mjs.map +1 -0
  19. package/dist/chunk-QEFMNBSY.mjs +165 -0
  20. package/dist/chunk-QEFMNBSY.mjs.map +1 -0
  21. package/dist/{infra/api/client.mjs → chunk-RV7ECGIH.mjs} +12 -7
  22. package/dist/chunk-RV7ECGIH.mjs.map +1 -0
  23. package/dist/chunk-S53NE5H4.mjs +2928 -0
  24. package/dist/chunk-S53NE5H4.mjs.map +1 -0
  25. package/dist/{modules/whitelabel/services/whitelabel.service.mjs → chunk-UEWT6VFS.mjs} +57 -9
  26. package/dist/chunk-UEWT6VFS.mjs.map +1 -0
  27. package/dist/chunk-XY4LNPBR.mjs +16 -0
  28. package/dist/chunk-XY4LNPBR.mjs.map +1 -0
  29. package/dist/{modules/accounts/services/account.service.mjs → chunk-Z3Q2LLBS.mjs} +64 -9
  30. package/dist/chunk-Z3Q2LLBS.mjs.map +1 -0
  31. package/dist/find-user-by-id.action-BUFTU3ZY.mjs +11 -0
  32. package/dist/index.mjs +9584 -258
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/modern-4YXF5ES3.mjs +426 -0
  35. package/dist/modern-4YXF5ES3.mjs.map +1 -0
  36. package/dist/server.mjs +140 -36
  37. package/dist/server.mjs.map +1 -1
  38. package/dist/user.service-VDR4JKHO.mjs +8 -0
  39. package/dist/validate-session.action-K7RWN2GE.mjs +11 -0
  40. package/dist/{modules/auth/actions/verify-two-factor.action.mjs → verify-two-factor.action-V6JQATK2.mjs} +12 -4
  41. package/dist/verify-two-factor.action-V6JQATK2.mjs.map +1 -0
  42. package/package.json +1 -1
  43. package/src/index.ts +0 -1
  44. package/dist/components/account/AccountModals.mjs +0 -18
  45. package/dist/components/account/AccountModals.mjs.map +0 -1
  46. package/dist/components/account/ConfigurationsMyAccountModal.mjs +0 -132
  47. package/dist/components/account/ConfigurationsMyAccountModal.mjs.map +0 -1
  48. package/dist/components/account/ConfirmDeleteAccountModal.mjs +0 -45
  49. package/dist/components/account/ConfirmDeleteAccountModal.mjs.map +0 -1
  50. package/dist/components/account/ConfirmGlobalPreferencesModal.mjs +0 -45
  51. package/dist/components/account/ConfirmGlobalPreferencesModal.mjs.map +0 -1
  52. package/dist/components/account/DeleteAccountModal.mjs +0 -123
  53. package/dist/components/account/DeleteAccountModal.mjs.map +0 -1
  54. package/dist/components/account/DisableTwoFactorAuthModal.mjs +0 -67
  55. package/dist/components/account/DisableTwoFactorAuthModal.mjs.map +0 -1
  56. package/dist/components/account/IsntPossibleDeleteAccountModal.mjs +0 -42
  57. package/dist/components/account/IsntPossibleDeleteAccountModal.mjs.map +0 -1
  58. package/dist/components/account/TwoFactorAuthModal.mjs +0 -190
  59. package/dist/components/account/TwoFactorAuthModal.mjs.map +0 -1
  60. package/dist/components/account/constants.mjs +0 -29
  61. package/dist/components/account/constants.mjs.map +0 -1
  62. package/dist/components/account/hooks/useChangeEmailForm.mjs +0 -53
  63. package/dist/components/account/hooks/useChangeEmailForm.mjs.map +0 -1
  64. package/dist/components/account/hooks/useChangePasswordForm.mjs +0 -47
  65. package/dist/components/account/hooks/useChangePasswordForm.mjs.map +0 -1
  66. package/dist/components/account/hooks/useChangePhoneForm.mjs +0 -64
  67. package/dist/components/account/hooks/useChangePhoneForm.mjs.map +0 -1
  68. package/dist/components/account/hooks/useConfigurationsModal.mjs +0 -33
  69. package/dist/components/account/hooks/useConfigurationsModal.mjs.map +0 -1
  70. package/dist/components/account/hooks/useDisableTwoFactorAuthForm.mjs +0 -54
  71. package/dist/components/account/hooks/useDisableTwoFactorAuthForm.mjs.map +0 -1
  72. package/dist/components/account/hooks/useOtpVerification.mjs +0 -94
  73. package/dist/components/account/hooks/useOtpVerification.mjs.map +0 -1
  74. package/dist/components/account/hooks/useTwoFactorAuthForm.mjs +0 -80
  75. package/dist/components/account/hooks/useTwoFactorAuthForm.mjs.map +0 -1
  76. package/dist/components/account/sections/ChangeEmailModal.mjs +0 -180
  77. package/dist/components/account/sections/ChangeEmailModal.mjs.map +0 -1
  78. package/dist/components/account/sections/ChangePasswordSection.mjs +0 -64
  79. package/dist/components/account/sections/ChangePasswordSection.mjs.map +0 -1
  80. package/dist/components/account/sections/ChangePhoneModal.mjs +0 -182
  81. package/dist/components/account/sections/ChangePhoneModal.mjs.map +0 -1
  82. package/dist/components/account/sections/MyProfileSection.mjs +0 -303
  83. package/dist/components/account/sections/MyProfileSection.mjs.map +0 -1
  84. package/dist/components/account/sections/PreferencesSection.mjs +0 -250
  85. package/dist/components/account/sections/PreferencesSection.mjs.map +0 -1
  86. package/dist/components/account/sections/SecuritySection.mjs +0 -147
  87. package/dist/components/account/sections/SecuritySection.mjs.map +0 -1
  88. package/dist/components/handlers/SearchParamsHandler.mjs +0 -24
  89. package/dist/components/handlers/SearchParamsHandler.mjs.map +0 -1
  90. package/dist/components/layouts/AppMobileNavBar.mjs +0 -115
  91. package/dist/components/layouts/AppMobileNavBar.mjs.map +0 -1
  92. package/dist/components/layouts/AppNavBar.mjs +0 -49
  93. package/dist/components/layouts/AppNavBar.mjs.map +0 -1
  94. package/dist/components/layouts/MainLayout.mjs +0 -60
  95. package/dist/components/layouts/MainLayout.mjs.map +0 -1
  96. package/dist/components/layouts/MdSideBarNavigation.mjs +0 -54
  97. package/dist/components/layouts/MdSideBarNavigation.mjs.map +0 -1
  98. package/dist/components/layouts/NavBar.mjs +0 -132
  99. package/dist/components/layouts/NavBar.mjs.map +0 -1
  100. package/dist/components/layouts/NavBarItem.mjs +0 -23
  101. package/dist/components/layouts/NavBarItem.mjs.map +0 -1
  102. package/dist/components/layouts/NotificationsPopover.mjs +0 -97
  103. package/dist/components/layouts/NotificationsPopover.mjs.map +0 -1
  104. package/dist/components/layouts/ProfilePopover.mjs +0 -150
  105. package/dist/components/layouts/ProfilePopover.mjs.map +0 -1
  106. package/dist/components/layouts/SideBarNavigation.mjs +0 -22
  107. package/dist/components/layouts/SideBarNavigation.mjs.map +0 -1
  108. package/dist/components/layouts/UsersSelectorPopover.mjs +0 -236
  109. package/dist/components/layouts/UsersSelectorPopover.mjs.map +0 -1
  110. package/dist/components/modals/ModalManager.mjs +0 -19
  111. package/dist/components/modals/ModalManager.mjs.map +0 -1
  112. package/dist/components/modals/Modals.mjs +0 -20
  113. package/dist/components/modals/Modals.mjs.map +0 -1
  114. package/dist/components/navigation/AppNavigation.mjs +0 -30
  115. package/dist/components/navigation/AppNavigation.mjs.map +0 -1
  116. package/dist/components/navigation/AppNavigationContext.mjs +0 -13
  117. package/dist/components/navigation/AppNavigationContext.mjs.map +0 -1
  118. package/dist/components/navigation/NavItem.mjs +0 -35
  119. package/dist/components/navigation/NavItem.mjs.map +0 -1
  120. package/dist/components/navigation/NavItemsContext.mjs +0 -16
  121. package/dist/components/navigation/NavItemsContext.mjs.map +0 -1
  122. package/dist/components/navigation/ProjectSelectorPopover.mjs +0 -128
  123. package/dist/components/navigation/ProjectSelectorPopover.mjs.map +0 -1
  124. package/dist/components/navigation/shells/DesktopShell.mjs +0 -11
  125. package/dist/components/navigation/shells/DesktopShell.mjs.map +0 -1
  126. package/dist/components/navigation/shells/MdShell.mjs +0 -11
  127. package/dist/components/navigation/shells/MdShell.mjs.map +0 -1
  128. package/dist/components/navigation/shells/MobileShell.mjs +0 -27
  129. package/dist/components/navigation/shells/MobileShell.mjs.map +0 -1
  130. package/dist/components/navigation/shells/TabsMobileShell.mjs +0 -59
  131. package/dist/components/navigation/shells/TabsMobileShell.mjs.map +0 -1
  132. package/dist/components/navigation/subcomponents/CreditsCard.mjs +0 -30
  133. package/dist/components/navigation/subcomponents/CreditsCard.mjs.map +0 -1
  134. package/dist/components/navigation/subcomponents/NavItems.mjs +0 -25
  135. package/dist/components/navigation/subcomponents/NavItems.mjs.map +0 -1
  136. package/dist/components/navigation/subcomponents/PlanCard.mjs +0 -25
  137. package/dist/components/navigation/subcomponents/PlanCard.mjs.map +0 -1
  138. package/dist/components/navigation/subcomponents/ProjectSelector.mjs +0 -130
  139. package/dist/components/navigation/subcomponents/ProjectSelector.mjs.map +0 -1
  140. package/dist/components/navigation/types.mjs +0 -1
  141. package/dist/components/pages/notifications/Notifications.mjs +0 -156
  142. package/dist/components/pages/notifications/Notifications.mjs.map +0 -1
  143. package/dist/components/ui/buttons/Button.mjs +0 -52
  144. package/dist/components/ui/buttons/Button.mjs.map +0 -1
  145. package/dist/components/ui/buttons/CancelButton.mjs +0 -17
  146. package/dist/components/ui/buttons/CancelButton.mjs.map +0 -1
  147. package/dist/components/ui/buttons/CopyButton.mjs +0 -42
  148. package/dist/components/ui/buttons/CopyButton.mjs.map +0 -1
  149. package/dist/components/ui/data-display/Accordion.mjs +0 -76
  150. package/dist/components/ui/data-display/Accordion.mjs.map +0 -1
  151. package/dist/components/ui/data-display/Badge.mjs +0 -42
  152. package/dist/components/ui/data-display/Badge.mjs.map +0 -1
  153. package/dist/components/ui/data-display/Card.mjs +0 -92
  154. package/dist/components/ui/data-display/Card.mjs.map +0 -1
  155. package/dist/components/ui/data-display/Pagination.mjs +0 -118
  156. package/dist/components/ui/data-display/Pagination.mjs.map +0 -1
  157. package/dist/components/ui/data-display/ScrollArea.mjs +0 -62
  158. package/dist/components/ui/data-display/ScrollArea.mjs.map +0 -1
  159. package/dist/components/ui/data-display/Separator.mjs +0 -28
  160. package/dist/components/ui/data-display/Separator.mjs.map +0 -1
  161. package/dist/components/ui/data-display/Table.mjs +0 -116
  162. package/dist/components/ui/data-display/Table.mjs.map +0 -1
  163. package/dist/components/ui/data-display/Tabs.mjs +0 -69
  164. package/dist/components/ui/data-display/Tabs.mjs.map +0 -1
  165. package/dist/components/ui/data-display/UserAvatar.mjs +0 -49
  166. package/dist/components/ui/data-display/UserAvatar.mjs.map +0 -1
  167. package/dist/components/ui/feedback/CircularProgress.mjs +0 -71
  168. package/dist/components/ui/feedback/CircularProgress.mjs.map +0 -1
  169. package/dist/components/ui/feedback/DefaultCircularProgress.mjs +0 -50
  170. package/dist/components/ui/feedback/DefaultCircularProgress.mjs.map +0 -1
  171. package/dist/components/ui/feedback/LoadingOverlay.mjs +0 -19
  172. package/dist/components/ui/feedback/LoadingOverlay.mjs.map +0 -1
  173. package/dist/components/ui/feedback/Progress.mjs +0 -37
  174. package/dist/components/ui/feedback/Progress.mjs.map +0 -1
  175. package/dist/components/ui/feedback/Toast.mjs +0 -77
  176. package/dist/components/ui/feedback/Toast.mjs.map +0 -1
  177. package/dist/components/ui/form/Calendar.mjs +0 -204
  178. package/dist/components/ui/form/Calendar.mjs.map +0 -1
  179. package/dist/components/ui/form/Checkbox.mjs +0 -33
  180. package/dist/components/ui/form/Checkbox.mjs.map +0 -1
  181. package/dist/components/ui/form/ComboboxField.mjs +0 -130
  182. package/dist/components/ui/form/ComboboxField.mjs.map +0 -1
  183. package/dist/components/ui/form/DatePicker.mjs +0 -82
  184. package/dist/components/ui/form/DatePicker.mjs.map +0 -1
  185. package/dist/components/ui/form/DateRangePicker.mjs +0 -92
  186. package/dist/components/ui/form/DateRangePicker.mjs.map +0 -1
  187. package/dist/components/ui/form/FormField.mjs +0 -103
  188. package/dist/components/ui/form/FormField.mjs.map +0 -1
  189. package/dist/components/ui/form/Input.mjs +0 -21
  190. package/dist/components/ui/form/Input.mjs.map +0 -1
  191. package/dist/components/ui/form/InputOtp.mjs +0 -70
  192. package/dist/components/ui/form/InputOtp.mjs.map +0 -1
  193. package/dist/components/ui/form/PhoneInput.mjs +0 -78
  194. package/dist/components/ui/form/PhoneInput.mjs.map +0 -1
  195. package/dist/components/ui/form/RadioGroup.mjs +0 -37
  196. package/dist/components/ui/form/RadioGroup.mjs.map +0 -1
  197. package/dist/components/ui/form/Select.mjs +0 -179
  198. package/dist/components/ui/form/Select.mjs.map +0 -1
  199. package/dist/components/ui/form/SelectField.mjs +0 -80
  200. package/dist/components/ui/form/SelectField.mjs.map +0 -1
  201. package/dist/components/ui/form/Switch.mjs +0 -33
  202. package/dist/components/ui/form/Switch.mjs.map +0 -1
  203. package/dist/components/ui/form/SwitchOptionFieldWithIcon.mjs +0 -40
  204. package/dist/components/ui/form/SwitchOptionFieldWithIcon.mjs.map +0 -1
  205. package/dist/components/ui/form/TextAreaField.mjs +0 -56
  206. package/dist/components/ui/form/TextAreaField.mjs.map +0 -1
  207. package/dist/components/ui/form/Textarea.mjs +0 -20
  208. package/dist/components/ui/form/Textarea.mjs.map +0 -1
  209. package/dist/components/ui/overlay/Command.mjs +0 -178
  210. package/dist/components/ui/overlay/Command.mjs.map +0 -1
  211. package/dist/components/ui/overlay/Dialog.mjs +0 -142
  212. package/dist/components/ui/overlay/Dialog.mjs.map +0 -1
  213. package/dist/components/ui/overlay/Popover.mjs +0 -46
  214. package/dist/components/ui/overlay/Popover.mjs.map +0 -1
  215. package/dist/components/ui/overlay/Sheet.mjs +0 -142
  216. package/dist/components/ui/overlay/Sheet.mjs.map +0 -1
  217. package/dist/components/ui/overlay/Tooltip.mjs +0 -57
  218. package/dist/components/ui/overlay/Tooltip.mjs.map +0 -1
  219. package/dist/components/widgets/notifications/NotificationCard.mjs +0 -54
  220. package/dist/components/widgets/notifications/NotificationCard.mjs.map +0 -1
  221. package/dist/enums/AccountSectionType.mjs +0 -11
  222. package/dist/enums/AccountSectionType.mjs.map +0 -1
  223. package/dist/hooks/copy-to-clipboard.hook.mjs +0 -52
  224. package/dist/hooks/copy-to-clipboard.hook.mjs.map +0 -1
  225. package/dist/hooks/useCountdownTimer.mjs +0 -29
  226. package/dist/hooks/useCountdownTimer.mjs.map +0 -1
  227. package/dist/hooks/useDebounce.mjs +0 -19
  228. package/dist/hooks/useDebounce.mjs.map +0 -1
  229. package/dist/hooks/useDebounceState.mjs +0 -12
  230. package/dist/hooks/useDebounceState.mjs.map +0 -1
  231. package/dist/hooks/useDebouncedEffect.mjs +0 -44
  232. package/dist/hooks/useDebouncedEffect.mjs.map +0 -1
  233. package/dist/hooks/useIsMobile.mjs +0 -18
  234. package/dist/hooks/useIsMobile.mjs.map +0 -1
  235. package/dist/hooks/usePasswordVisibility.mjs +0 -13
  236. package/dist/hooks/usePasswordVisibility.mjs.map +0 -1
  237. package/dist/infra/api/client.mjs.map +0 -1
  238. package/dist/infra/api/types.mjs +0 -31
  239. package/dist/infra/api/types.mjs.map +0 -1
  240. package/dist/infra/utils/client-info.mjs +0 -27
  241. package/dist/infra/utils/client-info.mjs.map +0 -1
  242. package/dist/infra/utils/clsx.mjs +0 -9
  243. package/dist/infra/utils/clsx.mjs.map +0 -1
  244. package/dist/infra/utils/params.mjs +0 -21
  245. package/dist/infra/utils/params.mjs.map +0 -1
  246. package/dist/infra/utils/parser.mjs +0 -24
  247. package/dist/infra/utils/parser.mjs.map +0 -1
  248. package/dist/infra/utils/percentage.mjs +0 -20
  249. package/dist/infra/utils/percentage.mjs.map +0 -1
  250. package/dist/middlewares/chain.mjs +0 -37
  251. package/dist/middlewares/chain.mjs.map +0 -1
  252. package/dist/middlewares/create-auth-middleware.mjs +0 -28
  253. package/dist/middlewares/create-auth-middleware.mjs.map +0 -1
  254. package/dist/middlewares/types.mjs +0 -11
  255. package/dist/middlewares/types.mjs.map +0 -1
  256. package/dist/modules/accounts/actions/account-management.action.mjs +0 -82
  257. package/dist/modules/accounts/actions/account-management.action.mjs.map +0 -1
  258. package/dist/modules/accounts/actions/find-current-account.action.mjs +0 -10
  259. package/dist/modules/accounts/actions/find-current-account.action.mjs.map +0 -1
  260. package/dist/modules/accounts/actions/list-currencies.action.mjs +0 -10
  261. package/dist/modules/accounts/actions/list-currencies.action.mjs.map +0 -1
  262. package/dist/modules/accounts/actions/list-timezones.action.mjs +0 -10
  263. package/dist/modules/accounts/actions/list-timezones.action.mjs.map +0 -1
  264. package/dist/modules/accounts/hooks/current-account.hook.mjs +0 -24
  265. package/dist/modules/accounts/hooks/current-account.hook.mjs.map +0 -1
  266. package/dist/modules/accounts/hooks/useAccountManagement.mjs +0 -71
  267. package/dist/modules/accounts/hooks/useAccountManagement.mjs.map +0 -1
  268. package/dist/modules/accounts/hooks/useCurrencies.mjs +0 -17
  269. package/dist/modules/accounts/hooks/useCurrencies.mjs.map +0 -1
  270. package/dist/modules/accounts/hooks/useTimezones.mjs +0 -17
  271. package/dist/modules/accounts/hooks/useTimezones.mjs.map +0 -1
  272. package/dist/modules/accounts/services/account.service.mjs.map +0 -1
  273. package/dist/modules/accounts/services/currency.service.mjs +0 -24
  274. package/dist/modules/accounts/services/currency.service.mjs.map +0 -1
  275. package/dist/modules/accounts/services/timezone.service.mjs +0 -65
  276. package/dist/modules/accounts/services/timezone.service.mjs.map +0 -1
  277. package/dist/modules/accounts/services/two-factor.service.mjs +0 -77
  278. package/dist/modules/accounts/services/two-factor.service.mjs.map +0 -1
  279. package/dist/modules/accounts/types.mjs +0 -1
  280. package/dist/modules/auth/actions/login.action.mjs +0 -14
  281. package/dist/modules/auth/actions/login.action.mjs.map +0 -1
  282. package/dist/modules/auth/actions/logout.action.mjs +0 -14
  283. package/dist/modules/auth/actions/logout.action.mjs.map +0 -1
  284. package/dist/modules/auth/actions/register.action.mjs +0 -14
  285. package/dist/modules/auth/actions/register.action.mjs.map +0 -1
  286. package/dist/modules/auth/actions/validate-session.action.mjs.map +0 -1
  287. package/dist/modules/auth/actions/verify-two-factor.action.mjs.map +0 -1
  288. package/dist/modules/auth/hooks/login.hook.mjs +0 -18
  289. package/dist/modules/auth/hooks/login.hook.mjs.map +0 -1
  290. package/dist/modules/auth/hooks/logout.hook.mjs +0 -13
  291. package/dist/modules/auth/hooks/logout.hook.mjs.map +0 -1
  292. package/dist/modules/auth/hooks/register.hook.mjs +0 -13
  293. package/dist/modules/auth/hooks/register.hook.mjs.map +0 -1
  294. package/dist/modules/auth/hooks/useUserQuery.mjs +0 -63
  295. package/dist/modules/auth/hooks/useUserQuery.mjs.map +0 -1
  296. package/dist/modules/auth/schema.mjs +0 -1
  297. package/dist/modules/auth/services/auth.service.mjs.map +0 -1
  298. package/dist/modules/auth/utils/get-user-context.mjs +0 -24
  299. package/dist/modules/auth/utils/get-user-context.mjs.map +0 -1
  300. package/dist/modules/ia-credits/actions/list-ia-credits.action.mjs +0 -10
  301. package/dist/modules/ia-credits/actions/list-ia-credits.action.mjs.map +0 -1
  302. package/dist/modules/ia-credits/hooks/ia-credits.hook.mjs +0 -76
  303. package/dist/modules/ia-credits/hooks/ia-credits.hook.mjs.map +0 -1
  304. package/dist/modules/ia-credits/services/ia-credits.service.mjs +0 -31
  305. package/dist/modules/ia-credits/services/ia-credits.service.mjs.map +0 -1
  306. package/dist/modules/ia-credits/types.mjs +0 -25
  307. package/dist/modules/ia-credits/types.mjs.map +0 -1
  308. package/dist/modules/projects/actions/add-project-user.action.mjs +0 -10
  309. package/dist/modules/projects/actions/add-project-user.action.mjs.map +0 -1
  310. package/dist/modules/projects/actions/list-available-users.action.mjs +0 -10
  311. package/dist/modules/projects/actions/list-available-users.action.mjs.map +0 -1
  312. package/dist/modules/projects/actions/list-project-users.action.mjs +0 -10
  313. package/dist/modules/projects/actions/list-project-users.action.mjs.map +0 -1
  314. package/dist/modules/projects/actions/remove-project-user.action.mjs +0 -10
  315. package/dist/modules/projects/actions/remove-project-user.action.mjs.map +0 -1
  316. package/dist/modules/projects/hooks/list-available-users.hook.mjs +0 -34
  317. package/dist/modules/projects/hooks/list-available-users.hook.mjs.map +0 -1
  318. package/dist/modules/projects/hooks/list-project-users.hook.mjs +0 -34
  319. package/dist/modules/projects/hooks/list-project-users.hook.mjs.map +0 -1
  320. package/dist/modules/projects/services/project-users.service.mjs +0 -78
  321. package/dist/modules/projects/services/project-users.service.mjs.map +0 -1
  322. package/dist/modules/projects/types.mjs +0 -22
  323. package/dist/modules/projects/types.mjs.map +0 -1
  324. package/dist/modules/subscriptions/actions/list-subscriptions.action.mjs +0 -10
  325. package/dist/modules/subscriptions/actions/list-subscriptions.action.mjs.map +0 -1
  326. package/dist/modules/subscriptions/constants/addons.constants.mjs +0 -12
  327. package/dist/modules/subscriptions/constants/addons.constants.mjs.map +0 -1
  328. package/dist/modules/subscriptions/hooks/find-active-subscription.hook.mjs +0 -20
  329. package/dist/modules/subscriptions/hooks/find-active-subscription.hook.mjs.map +0 -1
  330. package/dist/modules/subscriptions/hooks/list-subscriptions.hook.mjs +0 -18
  331. package/dist/modules/subscriptions/hooks/list-subscriptions.hook.mjs.map +0 -1
  332. package/dist/modules/subscriptions/services/subscriptions.service.mjs +0 -32
  333. package/dist/modules/subscriptions/services/subscriptions.service.mjs.map +0 -1
  334. package/dist/modules/subscriptions/types.mjs +0 -57
  335. package/dist/modules/subscriptions/types.mjs.map +0 -1
  336. package/dist/modules/users/action/find-user-by-id.action.mjs +0 -10
  337. package/dist/modules/users/action/find-user-by-id.action.mjs.map +0 -1
  338. package/dist/modules/users/action/list-messages.action.mjs +0 -13
  339. package/dist/modules/users/action/list-messages.action.mjs.map +0 -1
  340. package/dist/modules/users/action/mark-all-messages-as-read.action.mjs +0 -10
  341. package/dist/modules/users/action/mark-all-messages-as-read.action.mjs.map +0 -1
  342. package/dist/modules/users/action/mark-message-as-read.action.mjs +0 -10
  343. package/dist/modules/users/action/mark-message-as-read.action.mjs.map +0 -1
  344. package/dist/modules/users/hooks/messages.hook.mjs +0 -57
  345. package/dist/modules/users/hooks/messages.hook.mjs.map +0 -1
  346. package/dist/modules/users/schema/messages.schema.mjs +0 -21
  347. package/dist/modules/users/schema/messages.schema.mjs.map +0 -1
  348. package/dist/modules/users/schema.mjs +0 -11
  349. package/dist/modules/users/schema.mjs.map +0 -1
  350. package/dist/modules/users/services/messages.service.mjs +0 -35
  351. package/dist/modules/users/services/messages.service.mjs.map +0 -1
  352. package/dist/modules/users/services/user.service.mjs.map +0 -1
  353. package/dist/modules/whitelabel/actions/find-whitelabel-styles.action.mjs +0 -15
  354. package/dist/modules/whitelabel/actions/find-whitelabel-styles.action.mjs.map +0 -1
  355. package/dist/modules/whitelabel/actions/find-whitelabel.action.mjs +0 -21
  356. package/dist/modules/whitelabel/actions/find-whitelabel.action.mjs.map +0 -1
  357. package/dist/modules/whitelabel/schema.mjs +0 -1
  358. package/dist/modules/whitelabel/services/whitelabel-styles.service.mjs +0 -76
  359. package/dist/modules/whitelabel/services/whitelabel-styles.service.mjs.map +0 -1
  360. package/dist/modules/whitelabel/services/whitelabel.service.mjs.map +0 -1
  361. package/dist/modules/whitelabel/styles-schema.mjs +0 -1
  362. package/dist/providers/auth.provider.mjs +0 -94
  363. package/dist/providers/auth.provider.mjs.map +0 -1
  364. package/dist/providers/query.provider.mjs +0 -99
  365. package/dist/providers/query.provider.mjs.map +0 -1
  366. package/dist/providers/whitelabel.provider.mjs +0 -31
  367. package/dist/providers/whitelabel.provider.mjs.map +0 -1
  368. package/dist/store/useAccountModals.mjs +0 -18
  369. package/dist/store/useAccountModals.mjs.map +0 -1
  370. package/dist/store/useMdSidebarStore.mjs +0 -11
  371. package/dist/store/useMdSidebarStore.mjs.map +0 -1
  372. package/dist/store/useMobileNavbarSheet.mjs +0 -14
  373. package/dist/store/useMobileNavbarSheet.mjs.map +0 -1
  374. package/dist/store/useModalManager.mjs +0 -75
  375. package/dist/store/useModalManager.mjs.map +0 -1
  376. package/dist/utils/browser/clipboard.mjs +0 -36
  377. package/dist/utils/browser/clipboard.mjs.map +0 -1
  378. package/dist/utils/file/index.mjs +0 -9
  379. package/dist/utils/file/index.mjs.map +0 -1
  380. package/dist/utils/format/masks.mjs +0 -56
  381. package/dist/utils/format/masks.mjs.map +0 -1
  382. package/dist/utils/intl/locales.mjs +0 -12
  383. package/dist/utils/intl/locales.mjs.map +0 -1
  384. package/dist/utils/safeServerAction.mjs.map +0 -1
  385. package/dist/utils/validators/account.mjs +0 -26
  386. package/dist/utils/validators/account.mjs.map +0 -1
  387. package/dist/utils/validators/common.mjs +0 -47
  388. package/dist/utils/validators/common.mjs.map +0 -1
  389. package/dist/utils/withAction.mjs +0 -13
  390. package/dist/utils/withAction.mjs.map +0 -1
  391. /package/dist/{components/navigation/types.mjs.map → account-management.action-7QQCACDJ.mjs.map} +0 -0
  392. /package/dist/{modules/accounts/types.mjs.map → account.service-XTZDEIPS.mjs.map} +0 -0
  393. /package/dist/{modules/auth/schema.mjs.map → find-user-by-id.action-BUFTU3ZY.mjs.map} +0 -0
  394. /package/dist/{modules/whitelabel/schema.mjs.map → user.service-VDR4JKHO.mjs.map} +0 -0
  395. /package/dist/{modules/whitelabel/styles-schema.mjs.map → validate-session.action-K7RWN2GE.mjs.map} +0 -0
@@ -1,116 +0,0 @@
1
- "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import { cn } from "../../../infra/utils/clsx";
4
- function Table({ className, ...props }) {
5
- return /* @__PURE__ */ jsx(
6
- "div",
7
- {
8
- "data-slot": "table-container",
9
- className: "relative w-full overflow-x-auto",
10
- children: /* @__PURE__ */ jsx(
11
- "table",
12
- {
13
- "data-slot": "table",
14
- className: cn("w-full caption-bottom text-sm", className),
15
- ...props
16
- }
17
- )
18
- }
19
- );
20
- }
21
- function TableHeader({ className, ...props }) {
22
- return /* @__PURE__ */ jsx(
23
- "thead",
24
- {
25
- "data-slot": "table-header",
26
- className: cn("[&_tr]:border-b", className),
27
- ...props
28
- }
29
- );
30
- }
31
- function TableBody({ className, ...props }) {
32
- return /* @__PURE__ */ jsx(
33
- "tbody",
34
- {
35
- "data-slot": "table-body",
36
- className: cn("[&_tr:last-child]:border-0", className),
37
- ...props
38
- }
39
- );
40
- }
41
- function TableFooter({ className, ...props }) {
42
- return /* @__PURE__ */ jsx(
43
- "tfoot",
44
- {
45
- "data-slot": "table-footer",
46
- className: cn(
47
- "bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
48
- className
49
- ),
50
- ...props
51
- }
52
- );
53
- }
54
- function TableRow({ className, ...props }) {
55
- return /* @__PURE__ */ jsx(
56
- "tr",
57
- {
58
- "data-slot": "table-row",
59
- className: cn(
60
- "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
61
- className
62
- ),
63
- ...props
64
- }
65
- );
66
- }
67
- function TableHead({ className, ...props }) {
68
- return /* @__PURE__ */ jsx(
69
- "th",
70
- {
71
- "data-slot": "table-head",
72
- className: cn(
73
- "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
74
- className
75
- ),
76
- ...props
77
- }
78
- );
79
- }
80
- function TableCell({ className, ...props }) {
81
- return /* @__PURE__ */ jsx(
82
- "td",
83
- {
84
- "data-slot": "table-cell",
85
- className: cn(
86
- "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
87
- className
88
- ),
89
- ...props
90
- }
91
- );
92
- }
93
- function TableCaption({
94
- className,
95
- ...props
96
- }) {
97
- return /* @__PURE__ */ jsx(
98
- "caption",
99
- {
100
- "data-slot": "table-caption",
101
- className: cn("text-muted-foreground mt-4 text-sm", className),
102
- ...props
103
- }
104
- );
105
- }
106
- export {
107
- Table,
108
- TableBody,
109
- TableCaption,
110
- TableCell,
111
- TableFooter,
112
- TableHead,
113
- TableHeader,
114
- TableRow
115
- };
116
- //# sourceMappingURL=Table.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/ui/data-display/Table.tsx"],"sourcesContent":["'use client';\n\n\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"../../../infra/utils/clsx\"\n\nfunction Table({ className, ...props }: React.ComponentProps<\"table\">) {\n return (\n <div\n data-slot=\"table-container\"\n className=\"relative w-full overflow-x-auto\"\n >\n <table\n data-slot=\"table\"\n className={cn(\"w-full caption-bottom text-sm\", className)}\n {...props}\n />\n </div>\n )\n}\n\nfunction TableHeader({ className, ...props }: React.ComponentProps<\"thead\">) {\n return (\n <thead\n data-slot=\"table-header\"\n className={cn(\"[&_tr]:border-b\", className)}\n {...props}\n />\n )\n}\n\nfunction TableBody({ className, ...props }: React.ComponentProps<\"tbody\">) {\n return (\n <tbody\n data-slot=\"table-body\"\n className={cn(\"[&_tr:last-child]:border-0\", className)}\n {...props}\n />\n )\n}\n\nfunction TableFooter({ className, ...props }: React.ComponentProps<\"tfoot\">) {\n return (\n <tfoot\n data-slot=\"table-footer\"\n className={cn(\n \"bg-muted/50 border-t font-medium [&>tr]:last:border-b-0\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction TableRow({ className, ...props }: React.ComponentProps<\"tr\">) {\n return (\n <tr\n data-slot=\"table-row\"\n className={cn(\n \"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction TableHead({ className, ...props }: React.ComponentProps<\"th\">) {\n return (\n <th\n data-slot=\"table-head\"\n className={cn(\n \"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction TableCell({ className, ...props }: React.ComponentProps<\"td\">) {\n return (\n <td\n data-slot=\"table-cell\"\n className={cn(\n \"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction TableCaption({\n className,\n ...props\n}: React.ComponentProps<\"caption\">) {\n return (\n <caption\n data-slot=\"table-caption\"\n className={cn(\"text-muted-foreground mt-4 text-sm\", className)}\n {...props}\n />\n )\n}\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n}\n"],"mappings":";AAaM;AARN,SAAS,UAAU;AAEnB,SAAS,MAAM,EAAE,WAAW,GAAG,MAAM,GAAkC;AACrE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAU;AAAA,MAEV;AAAA,QAAC;AAAA;AAAA,UACC,aAAU;AAAA,UACV,WAAW,GAAG,iCAAiC,SAAS;AAAA,UACvD,GAAG;AAAA;AAAA,MACN;AAAA;AAAA,EACF;AAEJ;AAEA,SAAS,YAAY,EAAE,WAAW,GAAG,MAAM,GAAkC;AAC3E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,mBAAmB,SAAS;AAAA,MACzC,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,SAAS,UAAU,EAAE,WAAW,GAAG,MAAM,GAAkC;AACzE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,8BAA8B,SAAS;AAAA,MACpD,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,SAAS,YAAY,EAAE,WAAW,GAAG,MAAM,GAAkC;AAC3E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,SAAS,SAAS,EAAE,WAAW,GAAG,MAAM,GAA+B;AACrE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,SAAS,UAAU,EAAE,WAAW,GAAG,MAAM,GAA+B;AACtE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,SAAS,UAAU,EAAE,WAAW,GAAG,MAAM,GAA+B;AACtE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,SAAS,aAAa;AAAA,EACpB;AAAA,EACA,GAAG;AACL,GAAoC;AAClC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,sCAAsC,SAAS;AAAA,MAC5D,GAAG;AAAA;AAAA,EACN;AAEJ;","names":[]}
@@ -1,69 +0,0 @@
1
- "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import * as TabsPrimitive from "@radix-ui/react-tabs";
4
- import { cn } from "../../../infra/utils/clsx";
5
- function Tabs({
6
- className,
7
- ...props
8
- }) {
9
- return /* @__PURE__ */ jsx(
10
- TabsPrimitive.Root,
11
- {
12
- "data-slot": "tabs",
13
- className: cn("flex flex-col gap-2", className),
14
- ...props
15
- }
16
- );
17
- }
18
- function TabsList({
19
- className,
20
- ...props
21
- }) {
22
- return /* @__PURE__ */ jsx(
23
- TabsPrimitive.List,
24
- {
25
- "data-slot": "tabs-list",
26
- className: cn(
27
- "inline-flex w-full items-center justify-start border-b border-gray-200",
28
- className
29
- ),
30
- ...props
31
- }
32
- );
33
- }
34
- function TabsTrigger({
35
- className,
36
- ...props
37
- }) {
38
- return /* @__PURE__ */ jsx(
39
- TabsPrimitive.Trigger,
40
- {
41
- "data-slot": "tabs-trigger",
42
- className: cn(
43
- "inline-flex items-center justify-center whitespace-nowrap px-4 py-3 text-sm font-medium text-gray-500 transition-all border-b-2 border-transparent hover:text-gray-900 cursor-pointer data-[state=active]:text-gray-950 data-[state=active]:border-gray-950 disabled:pointer-events-none disabled:opacity-50",
44
- className
45
- ),
46
- ...props
47
- }
48
- );
49
- }
50
- function TabsContent({
51
- className,
52
- ...props
53
- }) {
54
- return /* @__PURE__ */ jsx(
55
- TabsPrimitive.Content,
56
- {
57
- "data-slot": "tabs-content",
58
- className: cn("flex-1 outline-none", className),
59
- ...props
60
- }
61
- );
62
- }
63
- export {
64
- Tabs,
65
- TabsContent,
66
- TabsList,
67
- TabsTrigger
68
- };
69
- //# sourceMappingURL=Tabs.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/ui/data-display/Tabs.tsx"],"sourcesContent":["'use client';\n\n\"use client\"\n\nimport * as React from \"react\"\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\"\nimport { cn } from \"../../../infra/utils/clsx\"\n\nfunction Tabs({\n className,\n ...props\n}: React.ComponentProps<typeof TabsPrimitive.Root>) {\n return (\n <TabsPrimitive.Root\n data-slot=\"tabs\"\n className={cn(\"flex flex-col gap-2\", className)}\n {...props}\n />\n )\n}\n\nfunction TabsList({\n className,\n ...props\n}: React.ComponentProps<typeof TabsPrimitive.List>) {\n return (\n <TabsPrimitive.List\n data-slot=\"tabs-list\"\n className={cn(\n \"inline-flex w-full items-center justify-start border-b border-gray-200\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction TabsTrigger({\n className,\n ...props\n}: React.ComponentProps<typeof TabsPrimitive.Trigger>) {\n return (\n <TabsPrimitive.Trigger\n data-slot=\"tabs-trigger\"\n className={cn(\n \"inline-flex items-center justify-center whitespace-nowrap px-4 py-3 text-sm font-medium text-gray-500 transition-all border-b-2 border-transparent hover:text-gray-900 cursor-pointer data-[state=active]:text-gray-950 data-[state=active]:border-gray-950 disabled:pointer-events-none disabled:opacity-50\",\n className\n )}\n {...props}\n />\n )\n}\n\nfunction TabsContent({\n className,\n ...props\n}: React.ComponentProps<typeof TabsPrimitive.Content>) {\n return (\n <TabsPrimitive.Content\n data-slot=\"tabs-content\"\n className={cn(\"flex-1 outline-none\", className)}\n {...props}\n />\n )\n}\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent }\n"],"mappings":";AAaI;AARJ,YAAY,mBAAmB;AAC/B,SAAS,UAAU;AAEnB,SAAS,KAAK;AAAA,EACZ;AAAA,EACA,GAAG;AACL,GAAoD;AAClD,SACE;AAAA,IAAC,cAAc;AAAA,IAAd;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,uBAAuB,SAAS;AAAA,MAC7C,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,SAAS,SAAS;AAAA,EAChB;AAAA,EACA,GAAG;AACL,GAAoD;AAClD,SACE;AAAA,IAAC,cAAc;AAAA,IAAd;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,SAAS,YAAY;AAAA,EACnB;AAAA,EACA,GAAG;AACL,GAAuD;AACrD,SACE;AAAA,IAAC,cAAc;AAAA,IAAd;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,SAAS,YAAY;AAAA,EACnB;AAAA,EACA,GAAG;AACL,GAAuD;AACrD,SACE;AAAA,IAAC,cAAc;AAAA,IAAd;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,uBAAuB,SAAS;AAAA,MAC7C,GAAG;AAAA;AAAA,EACN;AAEJ;","names":[]}
@@ -1,49 +0,0 @@
1
- "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import Image from "next/image";
4
- import { cn } from "../../../infra/utils/clsx";
5
- function getInitials(name, maxLength = 2) {
6
- return name.split(" ").map((n) => n[0]).join("").slice(0, maxLength).toUpperCase();
7
- }
8
- const STORAGE_URL = process.env.NEXT_PUBLIC_STORAGE_URL || "";
9
- function UserAvatar({
10
- photo,
11
- name,
12
- initials,
13
- size = 32,
14
- shape = "circle",
15
- className
16
- }) {
17
- const shapeClass = shape === "circle" ? "rounded-full" : "rounded-lg";
18
- const displayInitials = initials || (name ? getInitials(name) : "?");
19
- const photoUrl = STORAGE_URL && photo ? `${STORAGE_URL}/${photo}` : photo;
20
- if (photoUrl) {
21
- return /* @__PURE__ */ jsx(
22
- Image,
23
- {
24
- alt: name || "imagem do usuario",
25
- src: photoUrl,
26
- width: size,
27
- height: size,
28
- className: cn("object-cover shrink-0", shapeClass, className),
29
- style: { width: size, height: size }
30
- }
31
- );
32
- }
33
- return /* @__PURE__ */ jsx(
34
- "div",
35
- {
36
- className: cn(
37
- "flex items-center justify-center shrink-0 bg-gray-100",
38
- shapeClass,
39
- className
40
- ),
41
- style: { width: size, height: size },
42
- children: /* @__PURE__ */ jsx("span", { className: "text-xs font-semibold text-gray-700", children: displayInitials })
43
- }
44
- );
45
- }
46
- export {
47
- UserAvatar
48
- };
49
- //# sourceMappingURL=UserAvatar.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/ui/data-display/UserAvatar.tsx"],"sourcesContent":["'use client';\n\n\"use client\"\r\n\r\nimport Image from 'next/image';\r\nimport { cn } from '../../../infra/utils/clsx';\r\n\r\nfunction getInitials(name: string, maxLength: number = 2): string {\r\n return name\r\n .split(' ')\r\n .map((n) => n[0])\r\n .join('')\r\n .slice(0, maxLength)\r\n .toUpperCase();\r\n}\r\n\r\nconst STORAGE_URL = process.env.NEXT_PUBLIC_STORAGE_URL || '';\r\n\r\ninterface UserAvatarProps {\r\n photo?: string | null;\r\n name?: string;\r\n initials?: string;\r\n size?: number;\r\n shape?: 'circle' | 'square';\r\n className?: string;\r\n}\r\n\r\nfunction UserAvatar({\r\n photo,\r\n name,\r\n initials,\r\n size = 32,\r\n shape = 'circle',\r\n className,\r\n}: UserAvatarProps) {\r\n const shapeClass = shape === 'circle' ? 'rounded-full' : 'rounded-lg';\r\n const displayInitials = initials || (name ? getInitials(name) : '?');\r\n\r\n const photoUrl = STORAGE_URL && photo ? `${STORAGE_URL}/${photo}` : photo;\r\n\r\n if (photoUrl) {\r\n return (\r\n <Image\r\n alt={name || 'imagem do usuario'}\r\n src={photoUrl}\r\n width={size}\r\n height={size}\r\n className={cn('object-cover shrink-0', shapeClass, className)}\r\n style={{ width: size, height: size }}\r\n />\r\n );\r\n }\r\n\r\n return (\r\n <div\r\n className={cn(\r\n 'flex items-center justify-center shrink-0 bg-gray-100',\r\n shapeClass,\r\n className\r\n )}\r\n style={{ width: size, height: size }}\r\n >\r\n <span className=\"text-xs font-semibold text-gray-700\">{displayInitials}</span>\r\n </div>\r\n );\r\n}\r\n\r\nexport { UserAvatar };\r\nexport type { UserAvatarProps };\r\n"],"mappings":";AA0CM;AAtCN,OAAO,WAAW;AAClB,SAAS,UAAU;AAEnB,SAAS,YAAY,MAAc,YAAoB,GAAW;AAChE,SAAO,KACJ,MAAM,GAAG,EACT,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,EACf,KAAK,EAAE,EACP,MAAM,GAAG,SAAS,EAClB,YAAY;AACjB;AAEA,MAAM,cAAc,QAAQ,IAAI,2BAA2B;AAW3D,SAAS,WAAW;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP,QAAQ;AAAA,EACR;AACF,GAAoB;AAClB,QAAM,aAAa,UAAU,WAAW,iBAAiB;AACzD,QAAM,kBAAkB,aAAa,OAAO,YAAY,IAAI,IAAI;AAEhE,QAAM,WAAW,eAAe,QAAQ,GAAG,WAAW,IAAI,KAAK,KAAK;AAEpE,MAAI,UAAU;AACZ,WACE;AAAA,MAAC;AAAA;AAAA,QACC,KAAK,QAAQ;AAAA,QACb,KAAK;AAAA,QACL,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,WAAW,GAAG,yBAAyB,YAAY,SAAS;AAAA,QAC5D,OAAO,EAAE,OAAO,MAAM,QAAQ,KAAK;AAAA;AAAA,IACrC;AAAA,EAEJ;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,OAAO,EAAE,OAAO,MAAM,QAAQ,KAAK;AAAA,MAEnC,8BAAC,UAAK,WAAU,uCAAuC,2BAAgB;AAAA;AAAA,EACzE;AAEJ;","names":[]}
@@ -1,71 +0,0 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
- import {
3
- calculateRadius,
4
- calculateCircumference,
5
- calculatePercentage,
6
- calculateCircularProgressOffset
7
- } from "../../../infra/utils/percentage";
8
- function CircularProgress({
9
- current,
10
- total,
11
- size = 62,
12
- strokeWidth = 3,
13
- children
14
- }) {
15
- const radius = calculateRadius(size, strokeWidth);
16
- const circumference = calculateCircumference(radius);
17
- const percentage = calculatePercentage(current, total);
18
- const offset = calculateCircularProgressOffset(percentage, circumference);
19
- return /* @__PURE__ */ jsxs(
20
- "div",
21
- {
22
- className: "relative flex items-center justify-center",
23
- style: { width: size, height: size },
24
- role: "progressbar",
25
- "aria-valuenow": current,
26
- "aria-valuemin": 0,
27
- "aria-valuemax": total,
28
- "aria-label": "Progresso",
29
- children: [
30
- /* @__PURE__ */ jsxs("svg", { width: size, height: size, className: "absolute", children: [
31
- /* @__PURE__ */ jsx(
32
- "circle",
33
- {
34
- cx: size / 2,
35
- cy: size / 2,
36
- r: radius,
37
- stroke: "var(--color-gray-50)",
38
- strokeWidth,
39
- fill: "white"
40
- }
41
- ),
42
- /* @__PURE__ */ jsx(
43
- "circle",
44
- {
45
- cx: size / 2,
46
- cy: size / 2,
47
- r: radius,
48
- stroke: "var(--color-gray-950)",
49
- strokeWidth,
50
- fill: "none",
51
- strokeDasharray: circumference,
52
- strokeDashoffset: offset,
53
- strokeLinecap: "round",
54
- transform: `rotate(-90 ${size / 2} ${size / 2})`,
55
- className: "transition-all duration-300 ease-in-out"
56
- }
57
- )
58
- ] }),
59
- /* @__PURE__ */ jsx("div", { className: "relative z-10 flex items-center justify-center w-[50px] h-[50px] rounded-full bg-gray-50 paragraph-small-semibold", children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
60
- /* @__PURE__ */ jsx("span", { className: "text-gray-600", children: current }),
61
- /* @__PURE__ */ jsx("span", { className: "text-gray-500", children: "/" }),
62
- /* @__PURE__ */ jsx("span", { className: "text-gray-600", children: total })
63
- ] }) })
64
- ]
65
- }
66
- );
67
- }
68
- export {
69
- CircularProgress as default
70
- };
71
- //# sourceMappingURL=CircularProgress.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/ui/feedback/CircularProgress.tsx"],"sourcesContent":["import { ReactNode } from \"react\";\nimport {\n calculateRadius,\n calculateCircumference,\n calculatePercentage,\n calculateCircularProgressOffset,\n} from \"../../../infra/utils/percentage\";\n\ninterface CircularProgressProps {\n current: number;\n total: number;\n size?: number;\n strokeWidth?: number;\n children?: ReactNode;\n}\n\nexport default function CircularProgress({\n current,\n total,\n size = 62,\n strokeWidth = 3,\n children,\n}: CircularProgressProps) {\n const radius = calculateRadius(size, strokeWidth);\n const circumference = calculateCircumference(radius);\n const percentage = calculatePercentage(current, total);\n const offset = calculateCircularProgressOffset(percentage, circumference);\n\n return (\n <div\n className=\"relative flex items-center justify-center\"\n style={{ width: size, height: size }}\n role=\"progressbar\"\n aria-valuenow={current}\n aria-valuemin={0}\n aria-valuemax={total}\n aria-label=\"Progresso\"\n >\n <svg width={size} height={size} className=\"absolute\">\n <circle\n cx={size / 2}\n cy={size / 2}\n r={radius}\n stroke=\"var(--color-gray-50)\"\n strokeWidth={strokeWidth}\n fill=\"white\"\n />\n\n <circle\n cx={size / 2}\n cy={size / 2}\n r={radius}\n stroke=\"var(--color-gray-950)\"\n strokeWidth={strokeWidth}\n fill=\"none\"\n strokeDasharray={circumference}\n strokeDashoffset={offset}\n strokeLinecap=\"round\"\n transform={`rotate(-90 ${size / 2} ${size / 2})`}\n className=\"transition-all duration-300 ease-in-out\"\n />\n </svg>\n\n <div className=\"relative z-10 flex items-center justify-center w-[50px] h-[50px] rounded-full bg-gray-50 paragraph-small-semibold\">\n {children ?? (\n <>\n <span className=\"text-gray-600\">{current}</span>\n <span className=\"text-gray-500\">/</span>\n <span className=\"text-gray-600\">{total}</span>\n </>\n )}\n </div>\n </div>\n );\n}\n"],"mappings":"AAsCM,SA2BI,UA1BF,KADF;AArCN;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAUQ,SAAR,iBAAkC;AAAA,EACvC;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP,cAAc;AAAA,EACd;AACF,GAA0B;AACxB,QAAM,SAAS,gBAAgB,MAAM,WAAW;AAChD,QAAM,gBAAgB,uBAAuB,MAAM;AACnD,QAAM,aAAa,oBAAoB,SAAS,KAAK;AACrD,QAAM,SAAS,gCAAgC,YAAY,aAAa;AAExE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,OAAO,EAAE,OAAO,MAAM,QAAQ,KAAK;AAAA,MACnC,MAAK;AAAA,MACL,iBAAe;AAAA,MACf,iBAAe;AAAA,MACf,iBAAe;AAAA,MACf,cAAW;AAAA,MAEX;AAAA,6BAAC,SAAI,OAAO,MAAM,QAAQ,MAAM,WAAU,YACxC;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,IAAI,OAAO;AAAA,cACX,IAAI,OAAO;AAAA,cACX,GAAG;AAAA,cACH,QAAO;AAAA,cACP;AAAA,cACA,MAAK;AAAA;AAAA,UACP;AAAA,UAEA;AAAA,YAAC;AAAA;AAAA,cACC,IAAI,OAAO;AAAA,cACX,IAAI,OAAO;AAAA,cACX,GAAG;AAAA,cACH,QAAO;AAAA,cACP;AAAA,cACA,MAAK;AAAA,cACL,iBAAiB;AAAA,cACjB,kBAAkB;AAAA,cAClB,eAAc;AAAA,cACd,WAAW,cAAc,OAAO,CAAC,IAAI,OAAO,CAAC;AAAA,cAC7C,WAAU;AAAA;AAAA,UACZ;AAAA,WACF;AAAA,QAEA,oBAAC,SAAI,WAAU,qHACZ,sBACC,iCACE;AAAA,8BAAC,UAAK,WAAU,iBAAiB,mBAAQ;AAAA,UACzC,oBAAC,UAAK,WAAU,iBAAgB,eAAC;AAAA,UACjC,oBAAC,UAAK,WAAU,iBAAiB,iBAAM;AAAA,WACzC,GAEJ;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -1,50 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import {
3
- calculateRadius,
4
- calculateCircumference,
5
- calculatePercentage,
6
- calculateCircularProgressOffset
7
- } from "../../../infra/utils/percentage";
8
- function DefaultCircularProgress({
9
- current,
10
- total,
11
- size = 62,
12
- strokeWidth = 3
13
- }) {
14
- const radius = calculateRadius(size, strokeWidth);
15
- const circumference = calculateCircumference(radius);
16
- const percentage = calculatePercentage(current, total);
17
- const offset = calculateCircularProgressOffset(percentage, circumference);
18
- return /* @__PURE__ */ jsx(
19
- "div",
20
- {
21
- className: "relative flex items-center justify-center",
22
- style: { width: size, height: size },
23
- role: "progressbar",
24
- "aria-valuenow": current,
25
- "aria-valuemin": 0,
26
- "aria-valuemax": total,
27
- "aria-label": "Progresso de exporta\xE7\xE3o",
28
- children: /* @__PURE__ */ jsx("svg", { width: size, height: size, className: "absolute", children: /* @__PURE__ */ jsx(
29
- "circle",
30
- {
31
- cx: size / 2,
32
- cy: size / 2,
33
- r: radius,
34
- stroke: "var(--color-pages-300)",
35
- strokeWidth,
36
- fill: "none",
37
- strokeDasharray: circumference,
38
- strokeDashoffset: offset,
39
- strokeLinecap: "round",
40
- transform: `rotate(-90 ${size / 2} ${size / 2})`,
41
- className: "transition-all duration-300 ease-in-out"
42
- }
43
- ) })
44
- }
45
- );
46
- }
47
- export {
48
- DefaultCircularProgress as default
49
- };
50
- //# sourceMappingURL=DefaultCircularProgress.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/ui/feedback/DefaultCircularProgress.tsx"],"sourcesContent":["import {\n calculateRadius,\n calculateCircumference,\n calculatePercentage,\n calculateCircularProgressOffset,\n} from \"../../../infra/utils/percentage\";\n\ninterface CircularProgressProps {\n current: number;\n total: number;\n size?: number;\n strokeWidth?: number;\n}\n\nexport default function DefaultCircularProgress({\n current,\n total,\n size = 62,\n strokeWidth = 3,\n}: CircularProgressProps) {\n const radius = calculateRadius(size, strokeWidth);\n const circumference = calculateCircumference(radius);\n const percentage = calculatePercentage(current, total);\n const offset = calculateCircularProgressOffset(percentage, circumference);\n\n return (\n <div\n className=\"relative flex items-center justify-center\"\n style={{ width: size, height: size }}\n role=\"progressbar\"\n aria-valuenow={current}\n aria-valuemin={0}\n aria-valuemax={total}\n aria-label=\"Progresso de exportação\"\n >\n <svg width={size} height={size} className=\"absolute\">\n <circle\n cx={size / 2}\n cy={size / 2}\n r={radius}\n stroke=\"var(--color-pages-300)\"\n strokeWidth={strokeWidth}\n fill=\"none\"\n strokeDasharray={circumference}\n strokeDashoffset={offset}\n strokeLinecap=\"round\"\n transform={`rotate(-90 ${size / 2} ${size / 2})`}\n className=\"transition-all duration-300 ease-in-out\"\n />\n </svg>\n </div>\n );\n}\n"],"mappings":"AAoCQ;AApCR;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AASQ,SAAR,wBAAyC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP,cAAc;AAChB,GAA0B;AACxB,QAAM,SAAS,gBAAgB,MAAM,WAAW;AAChD,QAAM,gBAAgB,uBAAuB,MAAM;AACnD,QAAM,aAAa,oBAAoB,SAAS,KAAK;AACrD,QAAM,SAAS,gCAAgC,YAAY,aAAa;AAExE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV,OAAO,EAAE,OAAO,MAAM,QAAQ,KAAK;AAAA,MACnC,MAAK;AAAA,MACL,iBAAe;AAAA,MACf,iBAAe;AAAA,MACf,iBAAe;AAAA,MACf,cAAW;AAAA,MAEX,8BAAC,SAAI,OAAO,MAAM,QAAQ,MAAM,WAAU,YACxC;AAAA,QAAC;AAAA;AAAA,UACC,IAAI,OAAO;AAAA,UACX,IAAI,OAAO;AAAA,UACX,GAAG;AAAA,UACH,QAAO;AAAA,UACP;AAAA,UACA,MAAK;AAAA,UACL,iBAAiB;AAAA,UACjB,kBAAkB;AAAA,UAClB,eAAc;AAAA,UACd,WAAW,cAAc,OAAO,CAAC,IAAI,OAAO,CAAC;AAAA,UAC7C,WAAU;AAAA;AAAA,MACZ,GACF;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -1,19 +0,0 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import Image from "next/image";
4
- function LoadingOverlay({ isLoading, message, icon }) {
5
- if (!isLoading) return null;
6
- const defaultIcon = /* @__PURE__ */ jsx(Image, { src: "/icons/great-icon.svg", alt: "Great Icon", width: 20, height: 20 });
7
- return /* @__PURE__ */ jsx("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-[2px]", children: /* @__PURE__ */ jsxs("div", { className: "bg-white rounded-2xl shadow-xl px-16 py-12 flex flex-col items-center gap-6 min-w-[380px]", children: [
8
- /* @__PURE__ */ jsxs("div", { className: "relative flex items-center justify-center w-20 h-20", children: [
9
- /* @__PURE__ */ jsx("div", { className: "absolute inset-0 border-[5px] border-gray-100 rounded-full" }),
10
- /* @__PURE__ */ jsx("div", { className: "absolute inset-0 border-[5px] border-transparent border-t-black rounded-full animate-spin" }),
11
- /* @__PURE__ */ jsx("div", { className: "relative z-20 flex items-center justify-center w-14 h-14 bg-gray-100 rounded-full", children: icon ?? defaultIcon })
12
- ] }),
13
- /* @__PURE__ */ jsx("span", { className: "font-bold text-gray-900 text-lg", children: message })
14
- ] }) });
15
- }
16
- export {
17
- LoadingOverlay
18
- };
19
- //# sourceMappingURL=LoadingOverlay.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/ui/feedback/LoadingOverlay.tsx"],"sourcesContent":["'use client';\n\nimport Image from 'next/image';\nimport { ReactNode } from 'react';\n\ninterface LoadingOverlayProps {\n isLoading: boolean;\n message?: string;\n icon?: ReactNode;\n}\n\nexport function LoadingOverlay({ isLoading, message, icon }: LoadingOverlayProps) {\n if (!isLoading) return null;\n\n const defaultIcon = <Image src=\"/icons/great-icon.svg\" alt=\"Great Icon\" width={20} height={20} />;\n\n return (\n <div className=\"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-[2px]\">\n <div className=\"bg-white rounded-2xl shadow-xl px-16 py-12 flex flex-col items-center gap-6 min-w-[380px]\">\n <div className=\"relative flex items-center justify-center w-20 h-20\">\n <div className=\"absolute inset-0 border-[5px] border-gray-100 rounded-full\" />\n <div className=\"absolute inset-0 border-[5px] border-transparent border-t-black rounded-full animate-spin\" />\n <div className=\"relative z-20 flex items-center justify-center w-14 h-14 bg-gray-100 rounded-full\">\n {icon ?? defaultIcon}\n </div>\n </div>\n <span className=\"font-bold text-gray-900 text-lg\">{message}</span>\n </div>\n </div>\n );\n}\n"],"mappings":";AAcsB,cAKd,YALc;AAZtB,OAAO,WAAW;AASX,SAAS,eAAe,EAAE,WAAW,SAAS,KAAK,GAAwB;AAChF,MAAI,CAAC,UAAW,QAAO;AAEvB,QAAM,cAAc,oBAAC,SAAM,KAAI,yBAAwB,KAAI,cAAa,OAAO,IAAI,QAAQ,IAAI;AAE/F,SACE,oBAAC,SAAI,WAAU,uFACb,+BAAC,SAAI,WAAU,6FACb;AAAA,yBAAC,SAAI,WAAU,uDACb;AAAA,0BAAC,SAAI,WAAU,8DAA6D;AAAA,MAC5E,oBAAC,SAAI,WAAU,6FAA4F;AAAA,MAC3G,oBAAC,SAAI,WAAU,qFACZ,kBAAQ,aACX;AAAA,OACF;AAAA,IACA,oBAAC,UAAK,WAAU,mCAAmC,mBAAQ;AAAA,KAC7D,GACF;AAEJ;","names":[]}
@@ -1,37 +0,0 @@
1
- "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import * as ProgressPrimitive from "@radix-ui/react-progress";
4
- import { cn } from "../../../infra/utils/clsx";
5
- function Progress({
6
- className,
7
- value,
8
- indicatorColor,
9
- ...props
10
- }) {
11
- return /* @__PURE__ */ jsx(
12
- ProgressPrimitive.Root,
13
- {
14
- "data-slot": "progress",
15
- className: cn(
16
- "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
17
- className
18
- ),
19
- ...props,
20
- children: /* @__PURE__ */ jsx(
21
- ProgressPrimitive.Indicator,
22
- {
23
- "data-slot": "progress-indicator",
24
- className: cn(
25
- "bg-primary h-full w-full flex-1 transition-all rounded-full",
26
- indicatorColor
27
- ),
28
- style: { transform: `translateX(-${100 - (value || 0)}%)` }
29
- }
30
- )
31
- }
32
- );
33
- }
34
- export {
35
- Progress
36
- };
37
- //# sourceMappingURL=Progress.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/ui/feedback/Progress.tsx"],"sourcesContent":["'use client';\n\n\"use client\"\n\nimport * as React from \"react\"\nimport * as ProgressPrimitive from \"@radix-ui/react-progress\"\nimport { cn } from \"../../../infra/utils/clsx\"\n\ninterface ProgressProps extends React.ComponentProps<typeof ProgressPrimitive.Root> {\n indicatorColor?: string\n}\n\nfunction Progress({\n className,\n value,\n indicatorColor,\n ...props\n}: ProgressProps) {\n return (\n <ProgressPrimitive.Root\n data-slot=\"progress\"\n className={cn(\n \"bg-primary/20 relative h-2 w-full overflow-hidden rounded-full\",\n className\n )}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className={cn(\n \"bg-primary h-full w-full flex-1 transition-all rounded-full\",\n indicatorColor\n )}\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n )\n}\n\nexport { Progress }\n"],"mappings":";AA2BM;AAtBN,YAAY,uBAAuB;AACnC,SAAS,UAAU;AAMnB,SAAS,SAAS;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAkB;AAChB,SACE;AAAA,IAAC,kBAAkB;AAAA,IAAlB;AAAA,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEJ;AAAA,QAAC,kBAAkB;AAAA,QAAlB;AAAA,UACC,aAAU;AAAA,UACV,WAAW;AAAA,YACT;AAAA,YACA;AAAA,UACF;AAAA,UACA,OAAO,EAAE,WAAW,eAAe,OAAO,SAAS,EAAE,KAAK;AAAA;AAAA,MAC5D;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -1,77 +0,0 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { cva } from "class-variance-authority";
4
- import { CheckCircle, XCircle, AlertCircle, Info, Circle, X } from "lucide-react";
5
- import { toast } from "sonner";
6
- import { cn } from "../../../infra/utils/clsx";
7
- import { Button } from "../buttons/Button";
8
- const toastVariants = cva(
9
- "w-full bg-white rounded-lg p-4 shadow-lg backdrop-blur-sm transition-all",
10
- {
11
- variants: {
12
- variant: {
13
- success: "",
14
- error: "",
15
- warning: "",
16
- info: "",
17
- default: ""
18
- }
19
- },
20
- defaultVariants: {
21
- variant: "default"
22
- }
23
- }
24
- );
25
- const toastIconContainerVariants = cva(
26
- "size-10 rounded-lg flex items-center justify-center shrink-0",
27
- {
28
- variants: {
29
- variant: {
30
- success: "bg-green-50 text-green-500",
31
- error: "bg-red-50 text-red-500",
32
- warning: "bg-yellow-50 text-yellow-400",
33
- info: "bg-pages-50 text-pages-500",
34
- default: "bg-gray-50 text-gray-950"
35
- }
36
- },
37
- defaultVariants: {
38
- variant: "default"
39
- }
40
- }
41
- );
42
- const TOAST_ICONS = {
43
- success: CheckCircle,
44
- error: XCircle,
45
- warning: AlertCircle,
46
- info: Info,
47
- default: Circle
48
- };
49
- function Toast({
50
- variant = "default",
51
- message,
52
- icon,
53
- children,
54
- className,
55
- toastId
56
- }) {
57
- const Icon = variant ? TOAST_ICONS[variant] : null;
58
- return /* @__PURE__ */ jsx("div", { "data-slot": "toast", className: cn(toastVariants({ variant }), className, "md:min-w-[310px] lg:min-w-[310px]"), children: children ? children : /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 flex-1 min-w-0", children: [
59
- /* @__PURE__ */ jsx("div", { className: cn(toastIconContainerVariants({ variant })), children: icon || Icon && /* @__PURE__ */ jsx(Icon, { size: 16 }) }),
60
- /* @__PURE__ */ jsx("span", { className: "w-full text-gray-600 paragraph-small-medium", children: message }),
61
- /* @__PURE__ */ jsx(
62
- Button,
63
- {
64
- variant: "ghost",
65
- className: "size-8 rounded-full",
66
- onClick: () => toastId && toast.dismiss(toastId),
67
- children: /* @__PURE__ */ jsx(X, { size: 18 })
68
- }
69
- )
70
- ] }) });
71
- }
72
- export {
73
- Toast,
74
- toastIconContainerVariants,
75
- toastVariants
76
- };
77
- //# sourceMappingURL=Toast.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/components/ui/feedback/Toast.tsx"],"sourcesContent":["'use client';\n\n\"use client\"\n\nimport * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { CheckCircle, XCircle, AlertCircle, Info, Circle, X } from \"lucide-react\"\nimport { toast } from \"sonner\"\nimport { cn } from \"../../../infra/utils/clsx\"\nimport { Button } from \"../buttons/Button\"\n\nconst toastVariants = cva(\n \"w-full bg-white rounded-lg p-4 shadow-lg backdrop-blur-sm transition-all\",\n {\n variants: {\n variant: {\n success: \"\",\n error: \"\",\n warning: \"\",\n info: \"\",\n default: \"\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nconst toastIconContainerVariants = cva(\n \"size-10 rounded-lg flex items-center justify-center shrink-0\",\n {\n variants: {\n variant: {\n success: \"bg-green-50 text-green-500\",\n error: \"bg-red-50 text-red-500\",\n warning: \"bg-yellow-50 text-yellow-400\",\n info: \"bg-pages-50 text-pages-500\",\n default: \"bg-gray-50 text-gray-950\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nconst TOAST_ICONS = {\n success: CheckCircle,\n error: XCircle,\n warning: AlertCircle,\n info: Info,\n default: Circle,\n} as const\n\ninterface ToastProps extends VariantProps<typeof toastIconContainerVariants> {\n message?: React.ReactNode\n icon?: React.ReactNode\n children?: React.ReactNode\n className?: string\n toastId?: string | number\n}\n\nfunction Toast({\n variant = \"default\",\n message,\n icon,\n children,\n className,\n toastId,\n}: ToastProps) {\n const Icon = variant ? TOAST_ICONS[variant] : null\n\n return (\n <div data-slot=\"toast\" className={cn(toastVariants({ variant }), className, \"md:min-w-[310px] lg:min-w-[310px]\")}>\n {children ? (\n children\n ) : (\n <div className=\"flex items-center gap-3 flex-1 min-w-0\">\n <div className={cn(toastIconContainerVariants({ variant }))}>\n {icon || (Icon && <Icon size={16} />)}\n </div>\n\n <span className=\"w-full text-gray-600 paragraph-small-medium\">\n {message}\n </span>\n <Button\n variant={\"ghost\"}\n className=\"size-8 rounded-full\"\n onClick={() => toastId && toast.dismiss(toastId)}\n >\n <X size={18} />\n </Button>\n </div>\n )}\n </div>\n )\n}\n\nexport { Toast, toastVariants, toastIconContainerVariants }\nexport type { ToastProps }\n"],"mappings":";AA8EQ,SAEsB,KAFtB;AAzER,SAAS,WAA8B;AACvC,SAAS,aAAa,SAAS,aAAa,MAAM,QAAQ,SAAS;AACnE,SAAS,aAAa;AACtB,SAAS,UAAU;AACnB,SAAS,cAAc;AAEvB,MAAM,gBAAgB;AAAA,EACpB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,OAAO;AAAA,QACP,SAAS;AAAA,QACT,MAAM;AAAA,QACN,SAAS;AAAA,MACX;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,IACX;AAAA,EACF;AACF;AAEA,MAAM,6BAA6B;AAAA,EACjC;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,OAAO;AAAA,QACP,SAAS;AAAA,QACT,MAAM;AAAA,QACN,SAAS;AAAA,MACX;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,IACX;AAAA,EACF;AACF;AAEA,MAAM,cAAc;AAAA,EAClB,SAAS;AAAA,EACT,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,SAAS;AACX;AAUA,SAAS,MAAM;AAAA,EACb,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAe;AACb,QAAM,OAAO,UAAU,YAAY,OAAO,IAAI;AAE9C,SACE,oBAAC,SAAI,aAAU,SAAQ,WAAW,GAAG,cAAc,EAAE,QAAQ,CAAC,GAAG,WAAW,mCAAmC,GAC5G,qBACC,WAEA,qBAAC,SAAI,WAAU,0CACb;AAAA,wBAAC,SAAI,WAAW,GAAG,2BAA2B,EAAE,QAAQ,CAAC,CAAC,GACvD,kBAAS,QAAQ,oBAAC,QAAK,MAAM,IAAI,GACpC;AAAA,IAEA,oBAAC,UAAK,WAAU,+CACb,mBACH;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC,SAAS;AAAA,QACT,WAAU;AAAA,QACV,SAAS,MAAM,WAAW,MAAM,QAAQ,OAAO;AAAA,QAE/C,8BAAC,KAAE,MAAM,IAAI;AAAA;AAAA,IACf;AAAA,KACF,GAEJ;AAEJ;","names":[]}