infinity-forge 0.31.2 → 0.31.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (423) hide show
  1. package/dist/index.d.ts +3 -3
  2. package/dist/index.js +3 -3
  3. package/dist/sites/components/brands-carousel/index.d.ts +1 -1
  4. package/dist/sites/components/brands-carousel/index.js +3 -3
  5. package/dist/sites/components/brands-carousel/interfaces.d.ts +1 -1
  6. package/dist/sites/components/brands-carousel/styles.d.ts +0 -1
  7. package/dist/sites/components/carousel/component.d.ts +1 -1
  8. package/dist/sites/components/carousel/component.js +1 -1
  9. package/dist/sites/components/carousel/index.d.ts +1 -1
  10. package/dist/sites/components/carousel/index.js +1 -1
  11. package/dist/sites/components/carousel/interfaces.d.ts +1 -1
  12. package/dist/sites/components/carousel/versions/index.d.ts +1 -1
  13. package/dist/sites/components/carousel/versions/index.js +1 -1
  14. package/dist/sites/components/carousel/versions/version-01/component-01.d.ts +1 -1
  15. package/dist/sites/components/carousel/versions/version-01/component-01.js +1 -1
  16. package/dist/sites/components/counter/component.d.ts +1 -1
  17. package/dist/sites/components/counter/component.js +1 -1
  18. package/dist/sites/components/counter/index.d.ts +1 -1
  19. package/dist/sites/components/counter/index.js +1 -1
  20. package/dist/sites/components/counter/interfaces.d.ts +1 -1
  21. package/dist/sites/components/counter/versions/index.d.ts +1 -1
  22. package/dist/sites/components/counter/versions/index.js +1 -1
  23. package/dist/sites/components/counter/versions/version-01/box/index.d.ts +1 -1
  24. package/dist/sites/components/counter/versions/version-01/box/index.js +2 -2
  25. package/dist/sites/components/counter/versions/version-01/box/styles.d.ts +0 -1
  26. package/dist/sites/components/counter/versions/version-01/component.d.ts +1 -1
  27. package/dist/sites/components/counter/versions/version-01/component.js +3 -3
  28. package/dist/sites/components/counter/versions/version-01/styles.d.ts +0 -1
  29. package/dist/sites/components/head/component.d.ts +1 -1
  30. package/dist/sites/components/head/index.d.ts +2 -2
  31. package/dist/sites/components/head/index.js +2 -2
  32. package/dist/sites/components/header-link/component.d.ts +1 -1
  33. package/dist/sites/components/header-link/component.js +1 -1
  34. package/dist/sites/components/header-link/index.d.ts +1 -1
  35. package/dist/sites/components/header-link/index.js +1 -1
  36. package/dist/sites/components/header-link/interfaces.d.ts +1 -1
  37. package/dist/sites/components/header-link/versions/index.d.ts +1 -1
  38. package/dist/sites/components/header-link/versions/index.js +1 -1
  39. package/dist/sites/components/header-link/versions/version-01/component.js +2 -2
  40. package/dist/sites/components/header-link/versions/version-01/component.stories.d.ts +1 -1
  41. package/dist/sites/components/header-link/versions/version-01/component.stories.js +2 -2
  42. package/dist/sites/components/header-link/versions/version-01/styles.d.ts +0 -1
  43. package/dist/sites/components/index.d.ts +6 -6
  44. package/dist/sites/components/index.js +6 -6
  45. package/dist/sites/components/mvv/component.d.ts +1 -1
  46. package/dist/sites/components/mvv/component.js +1 -1
  47. package/dist/sites/components/mvv/index.d.ts +1 -1
  48. package/dist/sites/components/mvv/index.js +1 -1
  49. package/dist/sites/components/mvv/interfaces.d.ts +1 -1
  50. package/dist/sites/components/mvv/versions/index.d.ts +1 -1
  51. package/dist/sites/components/mvv/versions/index.js +1 -1
  52. package/dist/sites/components/mvv/versions/version-01/component.d.ts +1 -1
  53. package/dist/sites/components/mvv/versions/version-01/component.js +2 -2
  54. package/dist/sites/components/mvv/versions/version-01/styles.d.ts +0 -1
  55. package/dist/sites/context/configs/context.d.ts +1 -1
  56. package/dist/sites/context/configs/context.js +3 -3
  57. package/dist/sites/context/configs/index.d.ts +2 -2
  58. package/dist/sites/context/configs/index.js +2 -2
  59. package/dist/sites/context/configs/interfaces.d.ts +0 -1
  60. package/dist/sites/context/configs/scripts/acept-cookies/index.js +2 -2
  61. package/dist/sites/context/configs/scripts/acept-cookies/styles.d.ts +0 -1
  62. package/dist/sites/context/configs/scripts/acept-ratedr/index.js +2 -2
  63. package/dist/sites/context/configs/scripts/acept-ratedr/styles.d.ts +0 -1
  64. package/dist/sites/context/configs/scripts/component.d.ts +1 -1
  65. package/dist/sites/context/configs/scripts/component.js +4 -4
  66. package/dist/sites/context/configs/scripts/index.d.ts +5 -5
  67. package/dist/sites/context/configs/scripts/index.js +5 -5
  68. package/dist/sites/context/configs/scripts/interfaces.d.ts +1 -1
  69. package/dist/sites/context/configs/scripts/whatsapp-fixed/index.js +1 -1
  70. package/dist/sites/context/configs/scripts/whatsapp-fixed/styles.d.ts +0 -1
  71. package/dist/sites/context/index.d.ts +1 -1
  72. package/dist/sites/context/index.js +1 -1
  73. package/dist/sites/hook/index.d.ts +3 -3
  74. package/dist/sites/hook/index.js +3 -3
  75. package/dist/sites/index.d.ts +4 -4
  76. package/dist/sites/index.js +4 -4
  77. package/dist/sites/interfaces/api-data/index.d.ts +1 -1
  78. package/dist/sites/interfaces/api-data/index.js +1 -1
  79. package/dist/sites/interfaces/index.d.ts +2 -2
  80. package/dist/sites/interfaces/index.js +2 -2
  81. package/dist/sites/utils/index.d.ts +1 -1
  82. package/dist/sites/utils/index.js +1 -1
  83. package/dist/system/container/admin/auth/container.js +0 -11
  84. package/dist/system/container/admin/auth/index.d.ts +0 -2
  85. package/dist/system/container/admin/auth/index.js +0 -19
  86. package/dist/system/container/admin/index.d.ts +0 -3
  87. package/dist/system/container/admin/index.js +0 -20
  88. package/dist/system/container/admin/menu/container.js +0 -11
  89. package/dist/system/container/admin/menu/index.d.ts +0 -2
  90. package/dist/system/container/admin/menu/index.js +0 -19
  91. package/dist/system/container/admin/users/container.js +0 -12
  92. package/dist/system/container/admin/users/index.d.ts +0 -2
  93. package/dist/system/container/admin/users/index.js +0 -19
  94. package/dist/system/container/index.d.ts +0 -4
  95. package/dist/system/container/index.js +0 -21
  96. package/dist/system/container/main.d.ts +0 -4
  97. package/dist/system/container/main.js +0 -14
  98. package/dist/system/container/types.js +0 -19
  99. package/dist/system/index.d.ts +5 -5
  100. package/dist/system/index.js +5 -5
  101. package/dist/system/infra/http/axios-http-client.js +1 -0
  102. package/dist/system/infra/http/axios-http-client.js.map +1 -1
  103. package/dist/system/presentation/components/data/avatar/index.js +2 -2
  104. package/dist/system/presentation/components/data/chat/card-message/index.d.ts +1 -1
  105. package/dist/system/presentation/components/data/chat/card-message/index.js +3 -3
  106. package/dist/system/presentation/components/data/chat/card-message/styles.d.ts +0 -1
  107. package/dist/system/presentation/components/data/chat/index.d.ts +1 -1
  108. package/dist/system/presentation/components/data/chat/index.js +5 -5
  109. package/dist/system/presentation/components/data/chat/interfaces.d.ts +1 -1
  110. package/dist/system/presentation/components/data/chat/loader/index.js +1 -1
  111. package/dist/system/presentation/components/data/chat/loader/styles.d.ts +0 -1
  112. package/dist/system/presentation/components/data/chat/styles.d.ts +0 -1
  113. package/dist/system/presentation/components/data/highlight-text/index.d.ts +1 -1
  114. package/dist/system/presentation/components/data/highlight-text/index.js +2 -2
  115. package/dist/system/presentation/components/data/highlight-text/styles.d.ts +0 -1
  116. package/dist/system/presentation/components/data/index.d.ts +9 -9
  117. package/dist/system/presentation/components/data/index.js +9 -9
  118. package/dist/system/presentation/components/data/input-search/index.d.ts +1 -1
  119. package/dist/system/presentation/components/data/input-search/index.js +3 -3
  120. package/dist/system/presentation/components/data/input-search/styles.d.ts +0 -1
  121. package/dist/system/presentation/components/data/logo/index.js +2 -2
  122. package/dist/system/presentation/components/data/logo/styles.d.ts +0 -1
  123. package/dist/system/presentation/components/data/overlay/index.d.ts +1 -1
  124. package/dist/system/presentation/components/data/overlay/index.js +2 -2
  125. package/dist/system/presentation/components/data/overlay/styles.d.ts +0 -1
  126. package/dist/system/presentation/components/data/page-wrapper/index.d.ts +1 -1
  127. package/dist/system/presentation/components/data/page-wrapper/index.js +2 -2
  128. package/dist/system/presentation/components/data/page-wrapper/interfaces.d.ts +1 -1
  129. package/dist/system/presentation/components/data/page-wrapper/styles.d.ts +0 -1
  130. package/dist/system/presentation/components/data/popover/index.d.ts +1 -1
  131. package/dist/system/presentation/components/data/sign-up/index.js +3 -3
  132. package/dist/system/presentation/components/data/sign-up/styles.d.ts +0 -1
  133. package/dist/system/presentation/components/index.d.ts +3 -3
  134. package/dist/system/presentation/components/index.js +3 -3
  135. package/dist/system/presentation/components/layout/component.d.ts +1 -1
  136. package/dist/system/presentation/components/layout/component.js +2 -2
  137. package/dist/system/presentation/components/layout/header/components/index.d.ts +2 -2
  138. package/dist/system/presentation/components/layout/header/components/index.js +2 -2
  139. package/dist/system/presentation/components/layout/header/components/menu-right/index.js +6 -6
  140. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.d.ts +1 -1
  141. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.js +3 -3
  142. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +3 -3
  143. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/interfaces.d.ts +1 -1
  144. package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/styles.d.ts +0 -1
  145. package/dist/system/presentation/components/layout/header/components/menu-right/messages/index.js +3 -3
  146. package/dist/system/presentation/components/layout/header/components/menu-right/messages/styles.d.ts +0 -1
  147. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/index.d.ts +1 -1
  148. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/index.js +2 -2
  149. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/card/styles.d.ts +0 -1
  150. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/index.js +5 -5
  151. package/dist/system/presentation/components/layout/header/components/menu-right/notifications/styles.d.ts +0 -1
  152. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +3 -3
  153. package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/styles.d.ts +0 -1
  154. package/dist/system/presentation/components/layout/header/components/menu-right/profile/index.js +4 -4
  155. package/dist/system/presentation/components/layout/header/components/menu-right/profile/styles.d.ts +0 -1
  156. package/dist/system/presentation/components/layout/header/components/menu-right/settings/index.js +3 -3
  157. package/dist/system/presentation/components/layout/header/components/menu-right/settings/styles.d.ts +0 -1
  158. package/dist/system/presentation/components/layout/header/components/menu-right/styles.d.ts +0 -1
  159. package/dist/system/presentation/components/layout/header/components/search-modal/index.js +4 -4
  160. package/dist/system/presentation/components/layout/header/components/search-modal/search-list/index.js +3 -3
  161. package/dist/system/presentation/components/layout/header/components/search-modal/search-list/styles.d.ts +0 -1
  162. package/dist/system/presentation/components/layout/header/components/search-modal/styles.d.ts +0 -1
  163. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/index.js +2 -2
  164. package/dist/system/presentation/components/layout/header/components/search-modal/trigger/styles.d.ts +0 -1
  165. package/dist/system/presentation/components/layout/header/index.js +1 -1
  166. package/dist/system/presentation/components/layout/header/version-01/index.js +4 -4
  167. package/dist/system/presentation/components/layout/header/version-01/styles.d.ts +0 -1
  168. package/dist/system/presentation/components/layout/index.d.ts +3 -3
  169. package/dist/system/presentation/components/layout/index.js +3 -3
  170. package/dist/system/presentation/components/layout/menu/components/index.d.ts +2 -2
  171. package/dist/system/presentation/components/layout/menu/components/index.js +2 -2
  172. package/dist/system/presentation/components/layout/menu/components/menu/index.js +3 -3
  173. package/dist/system/presentation/components/layout/menu/components/menu/styles.d.ts +0 -1
  174. package/dist/system/presentation/components/layout/menu/components/select-workspace/index.js +4 -4
  175. package/dist/system/presentation/components/layout/menu/components/select-workspace/styles.d.ts +0 -1
  176. package/dist/system/presentation/components/layout/menu/index.js +1 -1
  177. package/dist/system/presentation/components/layout/menu/version-01/index.d.ts +1 -1
  178. package/dist/system/presentation/components/layout/menu/version-01/index.js +2 -2
  179. package/dist/system/presentation/components/layout/menu/version-01/styles.d.ts +0 -1
  180. package/dist/system/presentation/components/layout/styles.d.ts +0 -1
  181. package/dist/system/presentation/components/pages/index.d.ts +2 -2
  182. package/dist/system/presentation/components/pages/index.js +2 -2
  183. package/dist/system/presentation/components/pages/menus/index.d.ts +1 -1
  184. package/dist/system/presentation/components/pages/menus/index.js +1 -1
  185. package/dist/system/presentation/components/pages/menus/page.js +3 -3
  186. package/dist/system/presentation/components/pages/menus/table/columns.d.ts +2 -2
  187. package/dist/system/presentation/components/pages/menus/table/columns.js +1 -1
  188. package/dist/system/presentation/components/pages/menus/table/create.d.ts +2 -2
  189. package/dist/system/presentation/components/pages/menus/table/create.js +2 -2
  190. package/dist/system/presentation/components/pages/menus/table/delete.js +2 -2
  191. package/dist/system/presentation/components/pages/menus/table/edit.d.ts +2 -2
  192. package/dist/system/presentation/components/pages/menus/table/edit.js +2 -2
  193. package/dist/system/presentation/components/pages/menus/table/icon/index.js +1 -1
  194. package/dist/system/presentation/components/pages/menus/table/icon/style.d.ts +0 -1
  195. package/dist/system/presentation/components/pages/menus/table/index.d.ts +4 -4
  196. package/dist/system/presentation/components/pages/menus/table/index.js +4 -4
  197. package/dist/system/presentation/components/pages/users/index.d.ts +1 -1
  198. package/dist/system/presentation/components/pages/users/index.js +1 -1
  199. package/dist/system/presentation/components/pages/users/page.js +3 -3
  200. package/dist/system/presentation/components/pages/users/table/columns.d.ts +2 -2
  201. package/dist/system/presentation/components/pages/users/table/create.d.ts +2 -2
  202. package/dist/system/presentation/components/pages/users/table/create.js +2 -2
  203. package/dist/system/presentation/components/pages/users/table/delete.js +2 -2
  204. package/dist/system/presentation/components/pages/users/table/edit.d.ts +2 -2
  205. package/dist/system/presentation/components/pages/users/table/edit.js +2 -2
  206. package/dist/system/presentation/components/pages/users/table/index.d.ts +4 -4
  207. package/dist/system/presentation/components/pages/users/table/index.js +4 -4
  208. package/dist/system/presentation/configs/index.d.ts +2 -2
  209. package/dist/system/presentation/configs/index.js +2 -2
  210. package/dist/system/presentation/context/auth/authenticated/index.js +1 -1
  211. package/dist/system/presentation/context/auth/context.d.ts +1 -1
  212. package/dist/system/presentation/context/auth/context.js +4 -1
  213. package/dist/system/presentation/context/auth/context.js.map +1 -1
  214. package/dist/system/presentation/context/auth/index.d.ts +5 -5
  215. package/dist/system/presentation/context/auth/index.js +5 -5
  216. package/dist/system/presentation/context/auth/interfaces.d.ts +1 -1
  217. package/dist/system/presentation/context/auth/login/index.js +3 -3
  218. package/dist/system/presentation/context/auth/login/styles.d.ts +0 -1
  219. package/dist/system/presentation/context/auth/private-page/index.js +3 -3
  220. package/dist/system/presentation/context/auth/unauthenticated/index.js +1 -1
  221. package/dist/system/presentation/context/container.js +3 -3
  222. package/dist/system/presentation/context/index.d.ts +3 -3
  223. package/dist/system/presentation/context/index.js +3 -3
  224. package/dist/system/presentation/context/system-configs/context.d.ts +1 -1
  225. package/dist/system/presentation/context/system-configs/context.js +1 -1
  226. package/dist/system/presentation/context/system-configs/index.d.ts +2 -2
  227. package/dist/system/presentation/context/system-configs/index.js +2 -2
  228. package/dist/system/presentation/hooks/index.d.ts +3 -3
  229. package/dist/system/presentation/hooks/index.js +3 -3
  230. package/dist/system/presentation/hooks/menu/index.d.ts +1 -1
  231. package/dist/system/presentation/hooks/menu/index.js +1 -1
  232. package/dist/system/presentation/hooks/menu/use-load-menu.d.ts +1 -1
  233. package/dist/system/presentation/hooks/menu/use-load-menu.js +1 -1
  234. package/dist/system/presentation/hooks/notifications/index.d.ts +2 -2
  235. package/dist/system/presentation/hooks/notifications/index.js +2 -2
  236. package/dist/system/presentation/hooks/notifications/use-load-all/index.js +1 -1
  237. package/dist/system/presentation/hooks/notifications/use-load-no-read/index.d.ts +2 -2
  238. package/dist/system/presentation/hooks/notifications/use-load-no-read/index.js +1 -1
  239. package/dist/system/presentation/hooks/ui/index.d.ts +2 -2
  240. package/dist/system/presentation/hooks/ui/index.js +2 -2
  241. package/dist/system/presentation/hooks/ui/use-table/component.d.ts +0 -8
  242. package/dist/system/presentation/hooks/ui/use-table/component.js +0 -26
  243. package/dist/system/presentation/hooks/ui/use-table/components/index.d.ts +1 -1
  244. package/dist/system/presentation/hooks/ui/use-table/components/index.js +1 -1
  245. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.d.ts +0 -5
  246. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js +0 -107
  247. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/index.js.map +1 -1
  248. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/styles.js +1 -1
  249. package/dist/system/presentation/hooks/ui/use-table/components/table/actions/styles.js.map +1 -1
  250. package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.d.ts +0 -4
  251. package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +0 -107
  252. package/dist/system/presentation/hooks/ui/use-table/components/table/create/styles.d.ts +0 -1
  253. package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.d.ts +0 -4
  254. package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.js +0 -35
  255. package/dist/system/presentation/hooks/ui/use-table/components/table/export/styles.d.ts +0 -1
  256. package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.d.ts +0 -4
  257. package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.js +0 -128
  258. package/dist/system/presentation/hooks/ui/use-table/components/table/filters/styles.d.ts +0 -1
  259. package/dist/system/presentation/hooks/ui/use-table/components/table/index.d.ts +1 -1
  260. package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +18 -14
  261. package/dist/system/presentation/hooks/ui/use-table/components/table/index.js.map +1 -1
  262. package/dist/system/presentation/hooks/ui/use-table/components/table/interfaces.d.ts +2 -2
  263. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +1 -1
  264. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +3 -3
  265. package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/styles.d.ts +0 -1
  266. package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js +2 -2
  267. package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/styles.d.ts +0 -1
  268. package/dist/system/presentation/hooks/ui/use-table/components/table/styles.d.ts +0 -1
  269. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.d.ts +0 -2
  270. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +0 -50
  271. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/interfaces.d.ts +0 -6
  272. package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/styles.d.ts +0 -1
  273. package/dist/system/presentation/hooks/ui/use-table/index.d.ts +0 -4
  274. package/dist/system/presentation/hooks/ui/use-table/index.js +0 -21
  275. package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +0 -80
  276. package/dist/system/presentation/hooks/ui/use-table/query/get-query-arguments-table.d.ts +0 -2
  277. package/dist/system/presentation/hooks/ui/use-table/query/hook.d.ts +0 -5
  278. package/dist/system/presentation/hooks/ui/use-table/query/hook.js +0 -50
  279. package/dist/system/presentation/hooks/ui/use-table/query/index.d.ts +0 -2
  280. package/dist/system/presentation/hooks/ui/use-table/query/index.js +0 -19
  281. package/dist/system/presentation/index.d.ts +5 -5
  282. package/dist/system/presentation/index.js +5 -5
  283. package/dist/system/presentation/utils/index.d.ts +0 -1
  284. package/dist/system/presentation/utils/index.js +0 -18
  285. package/dist/system/presentation/utils/use-query/index.d.ts +0 -1
  286. package/dist/system/presentation/utils/use-query/index.js +0 -18
  287. package/dist/tsconfig.tsbuildinfo +1 -0
  288. package/dist/ui/components/accordion/index..d.ts +1 -1
  289. package/dist/ui/components/accordion/index..js +2 -2
  290. package/dist/ui/components/accordion/styles.d.ts +0 -1
  291. package/dist/ui/components/breadcrumb/index.d.ts +1 -1
  292. package/dist/ui/components/breadcrumb/index.js +2 -2
  293. package/dist/ui/components/breadcrumb/styles.d.ts +0 -1
  294. package/dist/ui/components/button/component.d.ts +1 -1
  295. package/dist/ui/components/button/component.js +2 -2
  296. package/dist/ui/components/button/index.d.ts +2 -2
  297. package/dist/ui/components/button/index.js +2 -2
  298. package/dist/ui/components/button/interfaces.d.ts +1 -1
  299. package/dist/ui/components/button/styles.d.ts +0 -1
  300. package/dist/ui/components/container/index.d.ts +1 -1
  301. package/dist/ui/components/error-boundary/component.d.ts +1 -1
  302. package/dist/ui/components/error-boundary/component.js +1 -1
  303. package/dist/ui/components/error-boundary/error-body.d.ts +1 -1
  304. package/dist/ui/components/error-boundary/index.d.ts +2 -2
  305. package/dist/ui/components/error-boundary/index.js +2 -2
  306. package/dist/ui/components/form/checkbox/index.js +0 -56
  307. package/dist/ui/components/form/checkbox/styles.d.ts +0 -1
  308. package/dist/ui/components/form/handler/component.d.ts +0 -2
  309. package/dist/ui/components/form/handler/component.js +0 -25
  310. package/dist/ui/components/form/handler/custom-submit/index.d.ts +0 -16
  311. package/dist/ui/components/form/handler/custom-submit/index.js +0 -22
  312. package/dist/ui/components/form/handler/dynamic_form_handler/component.d.ts +0 -2
  313. package/dist/ui/components/form/handler/dynamic_form_handler/component.js +0 -113
  314. package/dist/ui/components/form/handler/dynamic_form_handler/index.d.ts +0 -2
  315. package/dist/ui/components/form/handler/dynamic_form_handler/index.js +0 -19
  316. package/dist/ui/components/form/handler/dynamic_form_handler/interfaces.d.ts +0 -27
  317. package/dist/ui/components/form/handler/dynamic_form_handler/styles.d.ts +0 -1
  318. package/dist/ui/components/form/handler/form-handler/index.d.ts +0 -2
  319. package/dist/ui/components/form/handler/form-handler/index.js +0 -201
  320. package/dist/ui/components/form/handler/index.d.ts +0 -5
  321. package/dist/ui/components/form/handler/index.js +0 -22
  322. package/dist/ui/components/form/handler/interfaces.d.ts +0 -31
  323. package/dist/ui/components/form/handler/styles.d.ts +0 -1
  324. package/dist/ui/components/form/index.d.ts +0 -14
  325. package/dist/ui/components/form/index.js +0 -31
  326. package/dist/ui/components/form/input/index.d.ts +0 -2
  327. package/dist/ui/components/form/input/index.js +0 -41
  328. package/dist/ui/components/form/input-control/error/index.js +0 -34
  329. package/dist/ui/components/form/input-control/error/styles.d.ts +0 -1
  330. package/dist/ui/components/form/input-control/index.d.ts +0 -2
  331. package/dist/ui/components/form/input-control/index.js +0 -41
  332. package/dist/ui/components/form/input-control/label/index.js +0 -34
  333. package/dist/ui/components/form/input-control/label/styles.d.ts +0 -1
  334. package/dist/ui/components/form/input-control/loader-input/index.js +0 -34
  335. package/dist/ui/components/form/input-control/loader-input/styles.d.ts +0 -1
  336. package/dist/ui/components/form/input-control/styles.d.ts +0 -1
  337. package/dist/ui/components/form/input-cpf-cnpj/index.d.ts +0 -2
  338. package/dist/ui/components/form/input-cpf-cnpj/index.js +0 -55
  339. package/dist/ui/components/form/input-currency/index.d.ts +0 -2
  340. package/dist/ui/components/form/input-currency/index.js +0 -27
  341. package/dist/ui/components/form/input-date/index.d.ts +0 -4
  342. package/dist/ui/components/form/input-date/index.js +0 -47
  343. package/dist/ui/components/form/input-date/styles.d.ts +0 -1
  344. package/dist/ui/components/form/input-file/file-card/index.d.ts +0 -5
  345. package/dist/ui/components/form/input-file/file-card/index.js +0 -65
  346. package/dist/ui/components/form/input-file/file-card/styles.d.ts +0 -1
  347. package/dist/ui/components/form/input-file/index.d.ts +0 -2
  348. package/dist/ui/components/form/input-file/index.js +0 -104
  349. package/dist/ui/components/form/input-file/styles.d.ts +0 -1
  350. package/dist/ui/components/form/input-mask/index.d.ts +0 -5
  351. package/dist/ui/components/form/input-mask/index.js +0 -35
  352. package/dist/ui/components/form/input-password/index.d.ts +0 -2
  353. package/dist/ui/components/form/input-password/index.js +0 -55
  354. package/dist/ui/components/form/input-password/styles.d.ts +0 -1
  355. package/dist/ui/components/form/input-switch/index.d.ts +0 -2
  356. package/dist/ui/components/form/input-switch/index.js +0 -24
  357. package/dist/ui/components/form/interfaces.d.ts +0 -23
  358. package/dist/ui/components/form/radio/index.js +0 -64
  359. package/dist/ui/components/form/radio/styles.d.ts +0 -1
  360. package/dist/ui/components/form/select/index.d.ts +0 -2
  361. package/dist/ui/components/form/select/index.js +0 -85
  362. package/dist/ui/components/form/select/interfaces.d.ts +0 -32
  363. package/dist/ui/components/form/select/styles.d.ts +0 -1
  364. package/dist/ui/components/form/textarea/index.d.ts +0 -2
  365. package/dist/ui/components/form/textarea/index.js +0 -29
  366. package/dist/ui/components/index.d.ts +10 -10
  367. package/dist/ui/components/index.js +10 -10
  368. package/dist/ui/components/loader-circle/index.d.ts +0 -2
  369. package/dist/ui/components/loading-screen/index.d.ts +1 -1
  370. package/dist/ui/components/loading-screen/index.js +3 -3
  371. package/dist/ui/components/loading-screen/styles.d.ts +0 -1
  372. package/dist/ui/components/menu-mobile/components/nav-links/index.d.ts +1 -1
  373. package/dist/ui/components/menu-mobile/components/nav-links/index.js +2 -2
  374. package/dist/ui/components/menu-mobile/components/nav-links/interfaces.d.ts +1 -1
  375. package/dist/ui/components/menu-mobile/components/nav-links/styles.d.ts +0 -1
  376. package/dist/ui/components/menu-mobile/index.d.ts +1 -1
  377. package/dist/ui/components/menu-mobile/index.js +4 -4
  378. package/dist/ui/components/menu-mobile/styles.d.ts +0 -1
  379. package/dist/ui/components/menu-mobile/top/index.d.ts +1 -1
  380. package/dist/ui/components/menu-mobile/top/index.js +2 -2
  381. package/dist/ui/components/menu-mobile/top/interfaces.d.ts +1 -1
  382. package/dist/ui/components/menu-mobile/top/styles.d.ts +0 -1
  383. package/dist/ui/components/next-image/index.d.ts +1 -1
  384. package/dist/ui/components/next-image/index.js +3 -3
  385. package/dist/ui/components/next-image/styles.d.ts +0 -1
  386. package/dist/ui/components/sidebar/index.d.ts +1 -1
  387. package/dist/ui/components/sidebar/index.js +1 -1
  388. package/dist/ui/components/sidebar/styles.d.ts +0 -1
  389. package/dist/ui/contexts/index.d.ts +3 -3
  390. package/dist/ui/contexts/index.js +3 -3
  391. package/dist/ui/contexts/theme/context.d.ts +1 -1
  392. package/dist/ui/contexts/theme/context.js +1 -1
  393. package/dist/ui/contexts/theme/index.d.ts +2 -2
  394. package/dist/ui/contexts/theme/index.js +2 -2
  395. package/dist/ui/contexts/toast/index.d.ts +1 -1
  396. package/dist/ui/contexts/toast/styles.d.ts +0 -1
  397. package/dist/ui/contexts/toast/toast-item/index.d.ts +1 -1
  398. package/dist/ui/contexts/toast/toast-item/index.js +2 -2
  399. package/dist/ui/contexts/toast/toast-item/styles.d.ts +0 -1
  400. package/dist/ui/icons/render/Globe.d.ts +1 -1
  401. package/dist/ui/icons/render/LongArrowRight.d.ts +1 -1
  402. package/dist/ui/index.d.ts +5 -5
  403. package/dist/ui/index.js +5 -5
  404. package/dist/ui/utils/buffer/index.d.ts +1 -1
  405. package/dist/ui/utils/buffer/index.js +1 -1
  406. package/dist/ui/utils/facebook/index.d.ts +1 -1
  407. package/dist/ui/utils/facebook/index.js +1 -1
  408. package/dist/ui/utils/file/index.d.ts +2 -2
  409. package/dist/ui/utils/file/index.js +2 -2
  410. package/dist/ui/utils/file/load-file.d.ts +1 -1
  411. package/dist/ui/utils/file/load-file.js +2 -2
  412. package/dist/ui/utils/file/upload-file.d.ts +1 -1
  413. package/dist/ui/utils/file/upload-file.js +6 -6
  414. package/dist/ui/utils/file/upload-file.js.map +1 -1
  415. package/dist/ui/utils/index.d.ts +7 -7
  416. package/dist/ui/utils/index.js +7 -7
  417. package/dist/ui/utils/libs/index.d.ts +1 -1
  418. package/dist/ui/utils/libs/index.js +1 -1
  419. package/dist/ui/utils/libs/next/index.d.ts +2 -2
  420. package/dist/ui/utils/libs/next/index.js +2 -2
  421. package/dist/ui/utils/validations/index.d.ts +2 -2
  422. package/dist/ui/utils/validations/index.js +2 -2
  423. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- import { AccordionProps } from './interfaces.js';
1
+ import { AccordionProps } from './interfaces';
2
2
  export declare function Accordion({ title, openIcon, closeIcon, children }: AccordionProps): import("react/jsx-runtime").JSX.Element;
@@ -26,8 +26,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.Accordion = void 0;
27
27
  var jsx_runtime_1 = require("react/jsx-runtime");
28
28
  var react_1 = require("react");
29
- var ui_1 = require("../../../ui/index.js");
30
- var S = __importStar(require("./styles.js"));
29
+ var ui_1 = require("@/ui");
30
+ var S = __importStar(require("./styles"));
31
31
  function Accordion(_a) {
32
32
  var title = _a.title, openIcon = _a.openIcon, closeIcon = _a.closeIcon, children = _a.children;
33
33
  var _b = (0, react_1.useState)(false), isOpen = _b[0], setIsOpen = _b[1];
@@ -1,3 +1,2 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const Accordion: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
@@ -1,2 +1,2 @@
1
- import { IBreadcrumbProps } from './interfaces.js';
1
+ import { IBreadcrumbProps } from './interfaces';
2
2
  export declare function Breadcrumb({ links }: IBreadcrumbProps): import("react/jsx-runtime").JSX.Element;
@@ -30,9 +30,9 @@ exports.Breadcrumb = void 0;
30
30
  var jsx_runtime_1 = require("react/jsx-runtime");
31
31
  var link_1 = __importDefault(require("next/link"));
32
32
  var router_1 = require("next/router");
33
- var S = __importStar(require("./styles.js"));
33
+ var S = __importStar(require("./styles"));
34
34
  var react_1 = require("react");
35
- var icons_1 = require("../../../ui/icons/index.js");
35
+ var icons_1 = require("@/ui/icons");
36
36
  function Breadcrumb(_a) {
37
37
  var _b, _c;
38
38
  var links = _a.links;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const Breadcrumb: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -1,2 +1,2 @@
1
- import { ButtonProps } from './interfaces.js';
1
+ import { ButtonProps } from './interfaces';
2
2
  export declare function Button({ text, href, type, loading, svg, target, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -51,8 +51,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
51
51
  exports.Button = void 0;
52
52
  var jsx_runtime_1 = require("react/jsx-runtime");
53
53
  var link_1 = __importDefault(require("next/link"));
54
- var ui_1 = require("../../../ui/index.js");
55
- var S = __importStar(require("./styles.js"));
54
+ var ui_1 = require("@/ui");
55
+ var S = __importStar(require("./styles"));
56
56
  function Button(_a) {
57
57
  var text = _a.text, href = _a.href, type = _a.type, loading = _a.loading, svg = _a.svg, target = _a.target, props = __rest(_a, ["text", "href", "type", "loading", "svg", "target"]);
58
58
  var contentButton = ((0, jsx_runtime_1.jsxs)("div", { className: 'button-icon', children: [svg && svg && (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: svg }), loading ? (0, jsx_runtime_1.jsx)(ui_1.LoaderCircle, { size: 30, color: '#fff' }) : (0, jsx_runtime_1.jsx)("span", { children: text })] }));
@@ -1,2 +1,2 @@
1
- export * from "./component.js";
2
- export * from "./interfaces.js";
1
+ export * from "./component";
2
+ export * from "./interfaces";
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./component.js"), exports);
18
- __exportStar(require("./interfaces.js"), exports);
17
+ __exportStar(require("./component"), exports);
18
+ __exportStar(require("./interfaces"), exports);
19
19
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { IconsNames } from '../../../ui/index.js';
2
+ import { IconsNames } from '@/ui';
3
3
  export interface ButtonProps extends React.ButtonHTMLAttributes<any> {
4
4
  text?: string;
5
5
  href?: string;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  interface ButtonProps {
4
3
  $loading?: boolean;
5
4
  }
@@ -1,2 +1,2 @@
1
- import { IContainerProps } from './interfaces.js';
1
+ import { IContainerProps } from './interfaces';
2
2
  export declare function Container({ children }: IContainerProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { IErrorBoundary } from './interfaces.js';
1
+ import { IErrorBoundary } from './interfaces';
2
2
  export declare function Error({ name, children }: IErrorBoundary): import("react/jsx-runtime").JSX.Element;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Error = void 0;
4
4
  var jsx_runtime_1 = require("react/jsx-runtime");
5
5
  var react_error_boundary_1 = require("react-error-boundary");
6
- var error_body_1 = require("./error-body.js");
6
+ var error_body_1 = require("./error-body");
7
7
  function Error(_a) {
8
8
  var name = _a.name, children = _a.children;
9
9
  return (0, jsx_runtime_1.jsx)(react_error_boundary_1.ErrorBoundary, { FallbackComponent: function () { return (0, error_body_1.ErrorBoundaryComponent)({ name: name }); }, children: children });
@@ -1,2 +1,2 @@
1
- import { IErrorBoundaryComponentProps } from './interfaces.js';
1
+ import { IErrorBoundaryComponentProps } from './interfaces';
2
2
  export declare const ErrorBoundaryComponent: ({ name }: IErrorBoundaryComponentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
- export * from './component.js';
2
- export * from './interfaces.js';
1
+ export * from './component';
2
+ export * from './interfaces';
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./component.js"), exports);
18
- __exportStar(require("./interfaces.js"), exports);
17
+ __exportStar(require("./component"), exports);
18
+ __exportStar(require("./interfaces"), exports);
19
19
  //# sourceMappingURL=index.js.map
@@ -1,56 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
- Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.InputCheckbox = void 0;
38
- var jsx_runtime_1 = require("react/jsx-runtime");
39
- var react_1 = require("react");
40
- var formik_1 = require("formik");
41
- var input_control_1 = require("../input-control/index.js");
42
- var S = __importStar(require("./styles.js"));
43
- function InputCheckbox(props) {
44
- var _a = (0, formik_1.useField)({ name: props.name }), field = _a[0], _ = _a[1], helpers = _a[2];
45
- (0, react_1.useEffect)(function () {
46
- if (field.value === undefined) {
47
- helpers.setValue(['']);
48
- }
49
- }, [field.value]);
50
- return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props, { name: props.name, children: (0, jsx_runtime_1.jsx)(S.InputCheckbox, { children: (0, jsx_runtime_1.jsx)("div", { className: 'list-radios', children: props.options.map(function (option, index) {
51
- var _a;
52
- return ((0, jsx_runtime_1.jsxs)("label", { htmlFor: props.name + index, children: [(0, jsx_runtime_1.jsx)("input", __assign({ id: props.name + index }, field, { checked: (_a = field === null || field === void 0 ? void 0 : field.value) === null || _a === void 0 ? void 0 : _a.find(function (v) { return v === option.value; }), type: 'checkbox', value: option.value })), (0, jsx_runtime_1.jsx)("span", { dangerouslySetInnerHTML: { __html: option.label } })] }, option.value));
53
- }) }) }) })));
54
- }
55
- exports.InputCheckbox = InputCheckbox;
56
- //# sourceMappingURL=index.js.map
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const InputCheckbox: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -1,2 +0,0 @@
1
- import { IFormHandler } from './interfaces.js';
2
- export declare function FormHandler(props: IFormHandler): import("react/jsx-runtime").JSX.Element;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.FormHandler = void 0;
18
- var jsx_runtime_1 = require("react/jsx-runtime");
19
- var formik_1 = require("formik");
20
- var form_handler_1 = __importDefault(require("./form-handler/index.js"));
21
- function FormHandler(props) {
22
- return ((0, jsx_runtime_1.jsx)(formik_1.Formik, { initialValues: props.initialData || {}, onSubmit: function () { }, children: (0, jsx_runtime_1.jsx)(form_handler_1.default, __assign({}, props, { children: props.children })) }));
23
- }
24
- exports.FormHandler = FormHandler;
25
- //# sourceMappingURL=component.js.map
@@ -1,16 +0,0 @@
1
- import { Dispatch, SetStateAction } from 'react';
2
- import { ButtonProps } from '../../../../../ui/index.js';
3
- export type ICustomSubmitProps = {
4
- props: ButtonProps;
5
- action: (data: any, setStateForm: Dispatch<SetStateAction<{
6
- state: string;
7
- message: string;
8
- }>>) => void;
9
- };
10
- export declare function CustomSubmitButton({ props, action, stateForm, onSubmit, }: {
11
- onSubmit: (action: any) => void;
12
- stateForm: {
13
- state: string;
14
- message: string;
15
- };
16
- } & ICustomSubmitProps): import("react/jsx-runtime").JSX.Element;
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.CustomSubmitButton = void 0;
15
- var jsx_runtime_1 = require("react/jsx-runtime");
16
- var ui_1 = require("../../../../../ui/index.js");
17
- function CustomSubmitButton(_a) {
18
- var props = _a.props, action = _a.action, stateForm = _a.stateForm, onSubmit = _a.onSubmit;
19
- return (0, jsx_runtime_1.jsx)(ui_1.Button, __assign({}, props, { type: 'button', onClick: function () { return onSubmit(action); }, loading: stateForm.state === 'loading' }));
20
- }
21
- exports.CustomSubmitButton = CustomSubmitButton;
22
- //# sourceMappingURL=index.js.map
@@ -1,2 +0,0 @@
1
- import { DynamicFormHandlerProps } from './interfaces.js';
2
- export declare function DynamicFormHandler(props: DynamicFormHandlerProps): import("react/jsx-runtime").JSX.Element;
@@ -1,113 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
- return new (P || (P = Promise))(function (resolve, reject) {
39
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
- step((generator = generator.apply(thisArg, _arguments || [])).next());
43
- });
44
- };
45
- var __generator = (this && this.__generator) || function (thisArg, body) {
46
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
47
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
48
- function verb(n) { return function (v) { return step([n, v]); }; }
49
- function step(op) {
50
- if (f) throw new TypeError("Generator is already executing.");
51
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
52
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
53
- if (y = 0, t) op = [op[0] & 2, t.value];
54
- switch (op[0]) {
55
- case 0: case 1: t = op; break;
56
- case 4: _.label++; return { value: op[1], done: false };
57
- case 5: _.label++; y = op[1]; op = [0]; continue;
58
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
59
- default:
60
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
61
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
62
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
63
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
64
- if (t[2]) _.ops.pop();
65
- _.trys.pop(); continue;
66
- }
67
- op = body.call(thisArg, _);
68
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
69
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
70
- }
71
- };
72
- Object.defineProperty(exports, "__esModule", { value: true });
73
- exports.DynamicFormHandler = void 0;
74
- var jsx_runtime_1 = require("react/jsx-runtime");
75
- var component_1 = require("../component.js");
76
- var loader_circle_1 = require("../../../../../ui/components/loader-circle/index.js");
77
- var swr_1 = __importStar(require("swr"));
78
- var Inputs = __importStar(require("../../index.js"));
79
- var S = __importStar(require("./styles.js"));
80
- function DynamicFormHandler(props) {
81
- var _this = this;
82
- var queryKEY = props.getDetails && props.getDetails.key && props.getDetails.key(props.tableItem);
83
- function fetcher() {
84
- return __awaiter(this, void 0, void 0, function () {
85
- var _a;
86
- return __generator(this, function (_b) {
87
- return [2 /*return*/, (_a = props === null || props === void 0 ? void 0 : props.getDetails) === null || _a === void 0 ? void 0 : _a.fetcher(props.tableItem)];
88
- });
89
- });
90
- }
91
- var _a = (0, swr_1.default)(queryKEY && queryKEY, fetcher), data = _a.data, isLoading = _a.isLoading, isValidating = _a.isValidating;
92
- if ((isLoading || isValidating) && props.getDetails) {
93
- return (0, jsx_runtime_1.jsx)(loader_circle_1.LoaderCircle, { size: 30, color: '#000' });
94
- }
95
- return ((0, jsx_runtime_1.jsxs)(S.DynamiFormHandler, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'header', children: [props.title && (0, jsx_runtime_1.jsx)("h3", { className: 'font-24-bold', children: props.title }), props.subtitle && (0, jsx_runtime_1.jsx)("span", { className: 'font-18-regular', children: props.subtitle })] }), (0, jsx_runtime_1.jsx)(component_1.FormHandler, __assign({}, props, { cleanFieldsOnSubmit: false, onSucess: function (data) { return __awaiter(_this, void 0, void 0, function () {
96
- return __generator(this, function (_a) {
97
- switch (_a.label) {
98
- case 0: return [4 /*yield*/, props.onSucess(data, undefined, props.tableItem)];
99
- case 1:
100
- _a.sent();
101
- queryKEY && (0, swr_1.mutate)(queryKEY);
102
- return [2 /*return*/];
103
- }
104
- });
105
- }); }, initialData: __assign(__assign({}, data), (props.initialData || {})), children: props.inputs.map(function (row, index) {
106
- return ((0, jsx_runtime_1.jsx)("div", { style: { display: 'grid', gap: 15, gridTemplateColumns: "repeat(".concat(row.length, ", 1fr)") }, children: row.map(function (input) {
107
- var Element = Inputs[input.InputComponent];
108
- return (0, jsx_runtime_1.jsx)(Element, __assign({}, input), input.name);
109
- }) }, index));
110
- }) }))] }));
111
- }
112
- exports.DynamicFormHandler = DynamicFormHandler;
113
- //# sourceMappingURL=component.js.map
@@ -1,2 +0,0 @@
1
- export * from "./component.js";
2
- export * from "./interfaces.js";
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./component.js"), exports);
18
- __exportStar(require("./interfaces.js"), exports);
19
- //# sourceMappingURL=index.js.map
@@ -1,27 +0,0 @@
1
- import { IconsNames } from '../../../../../ui/icons/index.js';
2
- import { IFormHandler } from '../interfaces.js';
3
- import { ISelectProps } from '../../select/interfaces.js';
4
- import * as Inputs from '../../index.js';
5
- type InputProps<T = any> = {
6
- name: keyof T;
7
- InputComponent: keyof typeof Inputs;
8
- } & Partial<Omit<ISelectProps, 'name'>>;
9
- export type DynamicFormHandlerProps<T = any> = Partial<IFormHandler> & {
10
- button?: {
11
- text?: string;
12
- icon?: IconsNames;
13
- };
14
- tableItem?: any;
15
- title?: string;
16
- subtitle?: string;
17
- inputs?: InputProps<T>[][];
18
- getDetails?: {
19
- key: (params: {
20
- [key in keyof T]: T[key];
21
- }) => string;
22
- fetcher: (params: {
23
- [key in keyof T]: T[key];
24
- }) => Promise<any>;
25
- };
26
- };
27
- export {};
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react/experimental" />
3
2
  export declare const DynamiFormHandler: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
3
  ref?: import("react").Ref<HTMLDivElement>;
5
4
  }, never>>;
@@ -1,2 +0,0 @@
1
- import { IFormHandler } from '../interfaces.js';
2
- export default function FormElement({ button, schema, children, onSucess, customSubmit, onChangeForm, customAction, cleanFieldsOnSubmit, }: IFormHandler): import("react/jsx-runtime").JSX.Element;