@gustavo-valsechi/client 1.3.28 → 1.3.30

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 (313) hide show
  1. package/dist/components/index.d.ts +3 -10
  2. package/dist/components/index.js +13 -3070
  3. package/dist/components/index.mjs +11 -3082
  4. package/dist/components/styles.d.ts +2 -0
  5. package/dist/components/styles.js +54 -0
  6. package/dist/components/styles.mjs +19 -0
  7. package/dist/components/types/avatar/index.d.ts +2 -0
  8. package/dist/components/types/avatar/index.js +63 -0
  9. package/dist/components/types/avatar/index.mjs +29 -0
  10. package/dist/components/types/avatar/styles.d.ts +1 -0
  11. package/dist/components/types/avatar/styles.js +93 -0
  12. package/dist/components/types/avatar/styles.mjs +59 -0
  13. package/dist/components/types/badge/index.d.ts +2 -0
  14. package/dist/components/types/badge/index.js +54 -0
  15. package/dist/components/types/badge/index.mjs +20 -0
  16. package/dist/components/types/badge/styles.d.ts +1 -0
  17. package/dist/components/types/badge/styles.js +71 -0
  18. package/dist/components/types/badge/styles.mjs +37 -0
  19. package/dist/components/types/block/index.d.ts +2 -0
  20. package/dist/components/types/block/index.js +44 -0
  21. package/dist/components/types/block/index.mjs +20 -0
  22. package/dist/components/types/block/styles.d.ts +2 -0
  23. package/dist/components/types/block/styles.js +65 -0
  24. package/dist/components/types/block/styles.mjs +30 -0
  25. package/dist/components/types/chart/index.d.ts +2 -0
  26. package/dist/components/types/chart/index.js +80 -0
  27. package/dist/components/types/chart/index.mjs +46 -0
  28. package/dist/components/types/chart/styles.d.ts +1 -0
  29. package/dist/components/types/chart/styles.js +42 -0
  30. package/dist/components/types/chart/styles.mjs +8 -0
  31. package/dist/components/types/credit-card/assets/index.d.ts +4 -0
  32. package/dist/components/types/credit-card/assets/index.js +41 -0
  33. package/dist/components/types/credit-card/assets/index.mjs +21 -0
  34. package/dist/components/types/credit-card/card/index.d.ts +2 -0
  35. package/dist/components/types/credit-card/card/index.js +67 -0
  36. package/dist/components/types/credit-card/card/index.mjs +37 -0
  37. package/dist/components/types/credit-card/card/styles.d.ts +1 -0
  38. package/dist/components/types/credit-card/card/styles.js +170 -0
  39. package/dist/components/types/credit-card/card/styles.mjs +136 -0
  40. package/dist/components/types/credit-card/functions/index.d.ts +2 -0
  41. package/dist/components/types/credit-card/functions/index.js +52 -0
  42. package/dist/components/types/credit-card/functions/index.mjs +22 -0
  43. package/dist/components/types/credit-card/functions/styles.d.ts +1 -0
  44. package/dist/components/types/credit-card/functions/styles.js +75 -0
  45. package/dist/components/types/credit-card/functions/styles.mjs +41 -0
  46. package/dist/components/types/credit-card/index.d.ts +2 -0
  47. package/dist/components/types/credit-card/index.js +70 -0
  48. package/dist/components/types/credit-card/index.mjs +36 -0
  49. package/dist/components/types/credit-card/styles.d.ts +1 -0
  50. package/dist/components/types/credit-card/styles.js +72 -0
  51. package/dist/components/types/credit-card/styles.mjs +38 -0
  52. package/dist/components/types/credit-card/tools/index.d.ts +6 -0
  53. package/dist/components/types/credit-card/tools/index.js +58 -0
  54. package/dist/components/types/credit-card/tools/index.mjs +23 -0
  55. package/dist/components/types/form/index.d.ts +3 -0
  56. package/dist/components/types/form/index.js +111 -0
  57. package/dist/components/types/form/index.mjs +75 -0
  58. package/dist/components/types/form/styles.d.ts +1 -0
  59. package/dist/components/types/form/styles.js +53 -0
  60. package/dist/components/types/form/styles.mjs +19 -0
  61. package/dist/components/types/form/types/button/index.d.ts +2 -0
  62. package/dist/components/types/form/types/button/index.js +58 -0
  63. package/dist/components/types/form/types/button/index.mjs +24 -0
  64. package/dist/components/types/form/types/button/loading/index.d.ts +1 -0
  65. package/dist/components/types/form/types/button/loading/index.js +38 -0
  66. package/dist/components/types/form/types/button/loading/index.mjs +14 -0
  67. package/dist/components/types/form/types/button/loading/styles.d.ts +1 -0
  68. package/dist/components/types/form/types/button/loading/styles.js +126 -0
  69. package/dist/components/types/form/types/button/loading/styles.mjs +92 -0
  70. package/dist/components/types/form/types/button/styles.d.ts +1 -0
  71. package/dist/components/types/form/types/button/styles.js +79 -0
  72. package/dist/components/types/form/types/button/styles.mjs +45 -0
  73. package/dist/components/types/form/types/datetime/index.d.ts +2 -0
  74. package/dist/components/types/form/types/datetime/index.js +72 -0
  75. package/dist/components/types/form/types/datetime/index.mjs +38 -0
  76. package/dist/components/types/form/types/datetime/styles.d.ts +1 -0
  77. package/dist/components/types/form/types/datetime/styles.js +78 -0
  78. package/dist/components/types/form/types/datetime/styles.mjs +44 -0
  79. package/dist/components/types/form/types/file/index.d.ts +2 -0
  80. package/dist/components/types/form/types/file/index.js +71 -0
  81. package/dist/components/types/form/types/file/index.mjs +47 -0
  82. package/dist/components/types/form/types/file/styles.d.ts +1 -0
  83. package/dist/components/types/form/types/file/styles.js +65 -0
  84. package/dist/components/types/form/types/file/styles.mjs +31 -0
  85. package/dist/components/types/form/types/index.d.ts +7 -0
  86. package/dist/components/types/form/types/index.js +35 -0
  87. package/dist/components/types/form/types/index.mjs +8 -0
  88. package/dist/components/types/form/types/input/index.d.ts +2 -0
  89. package/dist/components/types/form/types/input/index.js +84 -0
  90. package/dist/components/types/form/types/input/index.mjs +50 -0
  91. package/dist/components/types/form/types/input/styles.d.ts +1 -0
  92. package/dist/components/types/form/types/input/styles.js +84 -0
  93. package/dist/components/types/form/types/input/styles.mjs +50 -0
  94. package/dist/components/types/form/types/label/index.d.ts +2 -0
  95. package/dist/components/types/form/types/label/index.js +34 -0
  96. package/dist/components/types/form/types/label/index.mjs +10 -0
  97. package/dist/components/types/form/types/label/styles.d.ts +1 -0
  98. package/dist/components/types/form/types/label/styles.js +45 -0
  99. package/dist/components/types/form/types/label/styles.mjs +11 -0
  100. package/dist/components/types/form/types/select/index.d.ts +2 -0
  101. package/dist/components/types/form/types/select/index.js +90 -0
  102. package/dist/components/types/form/types/select/index.mjs +56 -0
  103. package/dist/components/types/form/types/select/styles.d.ts +1 -0
  104. package/dist/components/types/form/types/select/styles.js +90 -0
  105. package/dist/components/types/form/types/select/styles.mjs +56 -0
  106. package/dist/components/types/form/types/textarea/index.d.ts +2 -0
  107. package/dist/components/types/form/types/textarea/index.js +72 -0
  108. package/dist/components/types/form/types/textarea/index.mjs +38 -0
  109. package/dist/components/types/form/types/textarea/styles.d.ts +1 -0
  110. package/dist/components/types/form/types/textarea/styles.js +77 -0
  111. package/dist/components/types/form/types/textarea/styles.mjs +43 -0
  112. package/dist/components/types/index.d.ts +11 -0
  113. package/dist/components/types/index.js +43 -0
  114. package/dist/components/types/index.mjs +12 -0
  115. package/dist/components/types/loading/app/index.d.ts +2 -0
  116. package/dist/components/types/loading/app/index.js +35 -0
  117. package/dist/components/types/loading/app/index.mjs +11 -0
  118. package/dist/components/types/loading/app/styles.d.ts +1 -0
  119. package/dist/components/types/loading/app/styles.js +125 -0
  120. package/dist/components/types/loading/app/styles.mjs +91 -0
  121. package/dist/components/types/loading/bar/index.d.ts +2 -0
  122. package/dist/components/types/loading/bar/index.js +34 -0
  123. package/dist/components/types/loading/bar/index.mjs +10 -0
  124. package/dist/components/types/loading/bar/styles.d.ts +1 -0
  125. package/dist/components/types/loading/bar/styles.js +59 -0
  126. package/dist/components/types/loading/bar/styles.mjs +25 -0
  127. package/dist/components/types/loading/index.d.ts +2 -0
  128. package/dist/components/types/loading/index.js +25 -0
  129. package/dist/components/types/loading/index.mjs +3 -0
  130. package/dist/components/types/logo/index.d.ts +2 -0
  131. package/dist/components/types/logo/index.js +37 -0
  132. package/dist/components/types/logo/index.mjs +13 -0
  133. package/dist/components/types/logo/styles.d.ts +1 -0
  134. package/dist/components/types/logo/styles.js +57 -0
  135. package/dist/components/types/logo/styles.mjs +23 -0
  136. package/dist/components/types/lottie/animations/index.d.ts +293 -0
  137. package/dist/components/types/lottie/animations/index.js +36 -0
  138. package/dist/components/types/lottie/animations/index.mjs +6 -0
  139. package/dist/components/types/lottie/index.d.ts +2 -0
  140. package/dist/components/types/lottie/index.js +72 -0
  141. package/dist/components/types/lottie/index.mjs +38 -0
  142. package/dist/components/types/lottie/styles.d.ts +1 -0
  143. package/dist/components/types/lottie/styles.js +60 -0
  144. package/dist/components/types/lottie/styles.mjs +26 -0
  145. package/dist/components/types/modal/index.d.ts +2 -0
  146. package/dist/components/types/modal/index.js +66 -0
  147. package/dist/components/types/modal/index.mjs +32 -0
  148. package/dist/components/types/modal/styles.d.ts +1 -0
  149. package/dist/components/types/modal/styles.js +167 -0
  150. package/dist/components/types/modal/styles.mjs +133 -0
  151. package/dist/components/types/table/index.d.ts +3 -0
  152. package/dist/components/types/table/index.js +171 -0
  153. package/dist/components/types/table/index.mjs +135 -0
  154. package/dist/components/types/table/modal/actions.d.ts +10 -0
  155. package/dist/components/types/table/modal/actions.js +30 -0
  156. package/dist/components/types/table/modal/actions.mjs +10 -0
  157. package/dist/components/types/table/modal/index.d.ts +2 -0
  158. package/dist/components/types/table/modal/index.js +91 -0
  159. package/dist/components/types/table/modal/index.mjs +61 -0
  160. package/dist/components/types/table/modal/styles.d.ts +1 -0
  161. package/dist/components/types/table/modal/styles.js +90 -0
  162. package/dist/components/types/table/modal/styles.mjs +56 -0
  163. package/dist/components/types/table/paginate/index.d.ts +2 -0
  164. package/dist/components/types/table/paginate/index.js +92 -0
  165. package/dist/components/types/table/paginate/index.mjs +58 -0
  166. package/dist/components/types/table/paginate/styles.d.ts +1 -0
  167. package/dist/components/types/table/paginate/styles.js +74 -0
  168. package/dist/components/types/table/paginate/styles.mjs +40 -0
  169. package/dist/components/types/table/styles.d.ts +5 -0
  170. package/dist/components/types/table/styles.js +300 -0
  171. package/dist/components/types/table/styles.mjs +266 -0
  172. package/dist/contexts/icon/assets/brands/index.d.ts +2 -0
  173. package/dist/contexts/icon/assets/brands/index.js +31 -0
  174. package/dist/contexts/icon/assets/brands/index.mjs +11 -0
  175. package/dist/contexts/icon/assets/index.d.ts +6 -0
  176. package/dist/contexts/icon/assets/index.js +42 -0
  177. package/dist/contexts/icon/assets/index.mjs +12 -0
  178. package/dist/contexts/icon/assets/regular/index.d.ts +2 -0
  179. package/dist/contexts/icon/assets/regular/index.js +31 -0
  180. package/dist/contexts/icon/assets/regular/index.mjs +11 -0
  181. package/dist/contexts/icon/assets/solid/index.d.ts +2 -0
  182. package/dist/contexts/icon/assets/solid/index.js +31 -0
  183. package/dist/contexts/icon/assets/solid/index.mjs +11 -0
  184. package/dist/contexts/icon/index.d.ts +4 -0
  185. package/dist/contexts/icon/index.js +107 -0
  186. package/dist/contexts/icon/index.mjs +72 -0
  187. package/dist/contexts/icon/styles.d.ts +1 -0
  188. package/dist/contexts/icon/styles.js +42 -0
  189. package/dist/contexts/icon/styles.mjs +8 -0
  190. package/dist/contexts/index.d.ts +4 -20
  191. package/dist/contexts/index.js +9 -504
  192. package/dist/contexts/index.mjs +4 -486
  193. package/dist/contexts/modal/index.d.ts +4 -0
  194. package/dist/contexts/modal/index.js +92 -0
  195. package/dist/contexts/modal/index.mjs +57 -0
  196. package/dist/contexts/modal/styles.d.ts +1 -0
  197. package/dist/contexts/modal/styles.js +42 -0
  198. package/dist/contexts/modal/styles.mjs +8 -0
  199. package/dist/contexts/theme/content.d.ts +3 -0
  200. package/dist/contexts/theme/content.js +104 -0
  201. package/dist/contexts/theme/content.mjs +79 -0
  202. package/dist/contexts/theme/index.d.ts +4 -0
  203. package/dist/contexts/theme/index.js +68 -0
  204. package/dist/contexts/theme/index.mjs +43 -0
  205. package/dist/contexts/theme/styles.d.ts +1 -0
  206. package/dist/contexts/theme/styles.js +116 -0
  207. package/dist/contexts/theme/styles.mjs +82 -0
  208. package/dist/contexts/tooltip/index.d.ts +6 -0
  209. package/dist/contexts/tooltip/index.js +107 -0
  210. package/dist/contexts/tooltip/index.mjs +72 -0
  211. package/dist/contexts/tooltip/styles.d.ts +1 -0
  212. package/dist/contexts/tooltip/styles.js +78 -0
  213. package/dist/contexts/tooltip/styles.mjs +44 -0
  214. package/dist/index.d.ts +4 -17
  215. package/dist/index.js +8 -3325
  216. package/dist/index.mjs +4 -3312
  217. package/dist/interfaces/components/avatar/index.d.ts +6 -0
  218. package/dist/interfaces/components/avatar/index.js +17 -0
  219. package/dist/interfaces/components/avatar/index.mjs +1 -0
  220. package/dist/interfaces/components/badge/index.d.ts +3 -0
  221. package/dist/interfaces/components/badge/index.js +17 -0
  222. package/dist/interfaces/components/badge/index.mjs +1 -0
  223. package/dist/interfaces/components/block/index.d.ts +16 -0
  224. package/dist/interfaces/components/block/index.js +17 -0
  225. package/dist/interfaces/components/block/index.mjs +1 -0
  226. package/dist/interfaces/components/chart/index.d.ts +9 -0
  227. package/dist/interfaces/components/chart/index.js +17 -0
  228. package/dist/interfaces/components/chart/index.mjs +1 -0
  229. package/dist/interfaces/components/credit-card/index.d.ts +16 -0
  230. package/dist/interfaces/components/credit-card/index.js +17 -0
  231. package/dist/interfaces/components/credit-card/index.mjs +1 -0
  232. package/dist/interfaces/components/form/button/index.d.ts +7 -0
  233. package/dist/interfaces/components/form/button/index.js +17 -0
  234. package/dist/interfaces/components/form/button/index.mjs +1 -0
  235. package/dist/interfaces/components/form/datetime/index.d.ts +15 -0
  236. package/dist/interfaces/components/form/datetime/index.js +17 -0
  237. package/dist/interfaces/components/form/datetime/index.mjs +1 -0
  238. package/dist/interfaces/components/form/file/index.d.ts +14 -0
  239. package/dist/interfaces/components/form/file/index.js +17 -0
  240. package/dist/interfaces/components/form/file/index.mjs +1 -0
  241. package/dist/interfaces/components/form/index.d.ts +16 -0
  242. package/dist/interfaces/components/form/index.js +35 -0
  243. package/dist/interfaces/components/form/index.mjs +8 -0
  244. package/dist/interfaces/components/form/input/index.d.ts +17 -0
  245. package/dist/interfaces/components/form/input/index.js +17 -0
  246. package/dist/interfaces/components/form/input/index.mjs +1 -0
  247. package/dist/interfaces/components/form/label/index.d.ts +5 -0
  248. package/dist/interfaces/components/form/label/index.js +17 -0
  249. package/dist/interfaces/components/form/label/index.mjs +1 -0
  250. package/dist/interfaces/components/form/select/index.d.ts +14 -0
  251. package/dist/interfaces/components/form/select/index.js +17 -0
  252. package/dist/interfaces/components/form/select/index.mjs +1 -0
  253. package/dist/interfaces/components/form/textarea/index.d.ts +16 -0
  254. package/dist/interfaces/components/form/textarea/index.js +17 -0
  255. package/dist/interfaces/components/form/textarea/index.mjs +1 -0
  256. package/dist/interfaces/components/index.d.ts +26 -0
  257. package/dist/interfaces/components/index.js +43 -0
  258. package/dist/interfaces/components/index.mjs +12 -0
  259. package/dist/interfaces/components/loading/app/index.d.ts +3 -0
  260. package/dist/interfaces/components/loading/app/index.js +17 -0
  261. package/dist/interfaces/components/loading/app/index.mjs +1 -0
  262. package/dist/interfaces/components/loading/bar/index.d.ts +7 -0
  263. package/dist/interfaces/components/loading/bar/index.js +17 -0
  264. package/dist/interfaces/components/loading/bar/index.mjs +1 -0
  265. package/dist/interfaces/components/loading/index.d.ts +2 -0
  266. package/dist/interfaces/components/loading/index.js +25 -0
  267. package/dist/interfaces/components/loading/index.mjs +3 -0
  268. package/dist/interfaces/components/logo/index.d.ts +6 -0
  269. package/dist/interfaces/components/logo/index.js +17 -0
  270. package/dist/interfaces/components/logo/index.mjs +1 -0
  271. package/dist/interfaces/components/lottie/index.d.ts +12 -0
  272. package/dist/interfaces/components/lottie/index.js +17 -0
  273. package/dist/interfaces/components/lottie/index.mjs +1 -0
  274. package/dist/interfaces/components/modal/index.d.ts +16 -0
  275. package/dist/interfaces/components/modal/index.js +17 -0
  276. package/dist/interfaces/components/modal/index.mjs +1 -0
  277. package/dist/interfaces/components/table/index.d.ts +46 -0
  278. package/dist/interfaces/components/table/index.js +23 -0
  279. package/dist/interfaces/components/table/index.mjs +2 -0
  280. package/dist/interfaces/components/table/paginate/index.d.ts +7 -0
  281. package/dist/interfaces/components/table/paginate/index.js +17 -0
  282. package/dist/interfaces/components/table/paginate/index.mjs +1 -0
  283. package/dist/interfaces/contexts/icon/index.d.ts +3 -0
  284. package/dist/interfaces/contexts/icon/index.js +17 -0
  285. package/dist/interfaces/contexts/icon/index.mjs +1 -0
  286. package/dist/interfaces/contexts/index.d.ts +8 -0
  287. package/dist/interfaces/contexts/index.js +29 -0
  288. package/dist/interfaces/contexts/index.mjs +5 -0
  289. package/dist/interfaces/contexts/modal/index.d.ts +16 -0
  290. package/dist/interfaces/contexts/modal/index.js +18 -0
  291. package/dist/interfaces/contexts/modal/index.mjs +2 -0
  292. package/dist/interfaces/contexts/theme/index.d.ts +42 -0
  293. package/dist/interfaces/contexts/theme/index.js +17 -0
  294. package/dist/interfaces/contexts/theme/index.mjs +1 -0
  295. package/dist/interfaces/contexts/tooltip/index.d.ts +3 -0
  296. package/dist/interfaces/contexts/tooltip/index.js +17 -0
  297. package/dist/interfaces/contexts/tooltip/index.mjs +1 -0
  298. package/dist/interfaces/index.d.ts +2 -12
  299. package/dist/interfaces/index.js +8 -2
  300. package/dist/interfaces/index.mjs +2 -0
  301. package/dist/styled.d.ts +6 -0
  302. package/dist/tsup.config.d.ts +2 -0
  303. package/package.json +5 -5
  304. package/dist/components/index.d.mts +0 -10
  305. package/dist/contexts/index.d.mts +0 -20
  306. package/dist/index-BhaGW0O1.d.ts +0 -601
  307. package/dist/index-BxA8LyyD.d.mts +0 -68
  308. package/dist/index-DDi0w5pw.d.mts +0 -601
  309. package/dist/index-DT7VKE7H.d.ts +0 -68
  310. package/dist/index-Da-DtPS-.d.mts +0 -29
  311. package/dist/index-Da-DtPS-.d.ts +0 -29
  312. package/dist/index.d.mts +0 -17
  313. package/dist/interfaces/index.d.mts +0 -12
@@ -0,0 +1,75 @@
1
+ "use client";
2
+ "use client";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import React, { useEffect, useRef } from "react";
5
+ import { Container } from "./styles";
6
+ import { z } from "zod";
7
+ import { useForm } from "react-hook-form";
8
+ import { zodResolver } from "@hookform/resolvers/zod";
9
+ import _ from "lodash";
10
+ import * as Types from "./types";
11
+ export * from "./types";
12
+ function Form(props) {
13
+ const formRef = props.formRef || useRef({});
14
+ const setSchema = () => {
15
+ const schema2 = {};
16
+ _.forEach(props.inputs, (data) => {
17
+ if (!data.validation) return;
18
+ schema2[data.name] = data.validation;
19
+ });
20
+ if (props.validation) return props.validation(z.object(schema2));
21
+ return z.object(schema2);
22
+ };
23
+ const schema = setSchema();
24
+ const {
25
+ register,
26
+ handleSubmit,
27
+ reset,
28
+ formState: { errors }
29
+ } = useForm({
30
+ resolver: zodResolver(schema),
31
+ defaultValues: props.defaultValues,
32
+ mode: "all"
33
+ });
34
+ useEffect(() => {
35
+ if (!props.clearWhen) return;
36
+ reset(void 0, { keepErrors: false });
37
+ }, [props.clearWhen]);
38
+ useEffect(() => {
39
+ var _a;
40
+ if (!props.defaultValues || !((_a = Object.keys(props.defaultValues || {})) == null ? void 0 : _a.length)) return;
41
+ _.forEach(props.defaultValues, (value, key) => {
42
+ const input = _.find(props.inputs, (data) => data.name === key);
43
+ props.defaultValues[key] = input.mask ? input.mask(value) : value;
44
+ });
45
+ reset(props.defaultValues, { keepErrors: false });
46
+ }, [props.defaultValues]);
47
+ const component = (data) => {
48
+ var _a;
49
+ const component2 = Types[_.camelCase(data.type)];
50
+ const TypeComponent = component2 || Types.InputText;
51
+ return /* @__PURE__ */ jsx(
52
+ TypeComponent,
53
+ {
54
+ ..._.omit(data, ["validation"]),
55
+ id: data.name,
56
+ type: component2 ? void 0 : data.type,
57
+ error: (_a = errors[data.name]) == null ? void 0 : _a.message,
58
+ register
59
+ }
60
+ );
61
+ };
62
+ return /* @__PURE__ */ jsxs(Container, { ref: formRef, onSubmit: handleSubmit(props.onSubmit), children: [
63
+ _.map(
64
+ props.inputs,
65
+ (data, index) => /* @__PURE__ */ jsx(React.Fragment, { children: component(data) }, index)
66
+ ),
67
+ _.isArray(props.buttons) && /* @__PURE__ */ jsx("div", { className: "form-buttons", children: _.map(
68
+ props.buttons,
69
+ (data, index) => /* @__PURE__ */ jsx(Types.Button, { ...data }, index)
70
+ ) })
71
+ ] });
72
+ }
73
+ export {
74
+ Form
75
+ };
@@ -0,0 +1 @@
1
+ export declare const Container: any;
@@ -0,0 +1,53 @@
1
+ "use client";
2
+ "use strict";
3
+ "use client";
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __export = (target, all) => {
11
+ for (var name in all)
12
+ __defProp(target, name, { get: all[name], enumerable: true });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from))
17
+ if (!__hasOwnProp.call(to, key) && key !== except)
18
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
+ mod
29
+ ));
30
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
+ var styles_exports = {};
32
+ __export(styles_exports, {
33
+ Container: () => Container
34
+ });
35
+ module.exports = __toCommonJS(styles_exports);
36
+ var import_styled_components = __toESM(require("styled-components"));
37
+ const Container = import_styled_components.default.form`
38
+ width: 100%;
39
+
40
+ .form-buttons {
41
+ width: 100%;
42
+ padding-top: 1rem;
43
+
44
+ button {
45
+ width: 100%;
46
+ margin-top: 1rem;
47
+ }
48
+ }
49
+ `;
50
+ // Annotate the CommonJS export names for ESM import in node:
51
+ 0 && (module.exports = {
52
+ Container
53
+ });
@@ -0,0 +1,19 @@
1
+ "use client";
2
+ "use client";
3
+ import styled from "styled-components";
4
+ const Container = styled.form`
5
+ width: 100%;
6
+
7
+ .form-buttons {
8
+ width: 100%;
9
+ padding-top: 1rem;
10
+
11
+ button {
12
+ width: 100%;
13
+ margin-top: 1rem;
14
+ }
15
+ }
16
+ `;
17
+ export {
18
+ Container
19
+ };
@@ -0,0 +1,2 @@
1
+ import { IButton } from "@interfaces";
2
+ export declare function Button(props: IButton): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,58 @@
1
+ "use client";
2
+ "use strict";
3
+ "use client";
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __export = (target, all) => {
11
+ for (var name in all)
12
+ __defProp(target, name, { get: all[name], enumerable: true });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from))
17
+ if (!__hasOwnProp.call(to, key) && key !== except)
18
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
+ mod
29
+ ));
30
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
+ var button_exports = {};
32
+ __export(button_exports, {
33
+ Button: () => Button
34
+ });
35
+ module.exports = __toCommonJS(button_exports);
36
+ var import_jsx_runtime = require("react/jsx-runtime");
37
+ var import_styles = require("./styles");
38
+ var import_loading = require("./loading");
39
+ var import_lodash = __toESM(require("lodash"));
40
+ function Button(props) {
41
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
42
+ import_styles.Container,
43
+ {
44
+ loading: String(!!props.loading),
45
+ disabled: props.disabled,
46
+ type: props.type || "button",
47
+ ...import_lodash.default.omit(props, ["loading", "type"]),
48
+ children: [
49
+ !!props.loading && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_loading.Loading, {}),
50
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: props.label })
51
+ ]
52
+ }
53
+ );
54
+ }
55
+ // Annotate the CommonJS export names for ESM import in node:
56
+ 0 && (module.exports = {
57
+ Button
58
+ });
@@ -0,0 +1,24 @@
1
+ "use client";
2
+ "use client";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { Container } from "./styles";
5
+ import { Loading } from "./loading";
6
+ import _ from "lodash";
7
+ function Button(props) {
8
+ return /* @__PURE__ */ jsxs(
9
+ Container,
10
+ {
11
+ loading: String(!!props.loading),
12
+ disabled: props.disabled,
13
+ type: props.type || "button",
14
+ ..._.omit(props, ["loading", "type"]),
15
+ children: [
16
+ !!props.loading && /* @__PURE__ */ jsx(Loading, {}),
17
+ /* @__PURE__ */ jsx("span", { children: props.label })
18
+ ]
19
+ }
20
+ );
21
+ }
22
+ export {
23
+ Button
24
+ };
@@ -0,0 +1 @@
1
+ export declare function Loading(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,38 @@
1
+ "use client";
2
+ "use strict";
3
+ "use client";
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+ var loading_exports = {};
22
+ __export(loading_exports, {
23
+ Loading: () => Loading
24
+ });
25
+ module.exports = __toCommonJS(loading_exports);
26
+ var import_jsx_runtime = require("react/jsx-runtime");
27
+ var import_styles = require("./styles");
28
+ function Loading() {
29
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.Container, { children: [
30
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {}),
31
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {}),
32
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {})
33
+ ] });
34
+ }
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
37
+ Loading
38
+ });
@@ -0,0 +1,14 @@
1
+ "use client";
2
+ "use client";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { Container } from "./styles";
5
+ function Loading() {
6
+ return /* @__PURE__ */ jsxs(Container, { children: [
7
+ /* @__PURE__ */ jsx("div", {}),
8
+ /* @__PURE__ */ jsx("div", {}),
9
+ /* @__PURE__ */ jsx("div", {})
10
+ ] });
11
+ }
12
+ export {
13
+ Loading
14
+ };
@@ -0,0 +1 @@
1
+ export declare const Container: any;
@@ -0,0 +1,126 @@
1
+ "use client";
2
+ "use strict";
3
+ "use client";
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __export = (target, all) => {
11
+ for (var name in all)
12
+ __defProp(target, name, { get: all[name], enumerable: true });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from))
17
+ if (!__hasOwnProp.call(to, key) && key !== except)
18
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
+ mod
29
+ ));
30
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
+ var styles_exports = {};
32
+ __export(styles_exports, {
33
+ Container: () => Container
34
+ });
35
+ module.exports = __toCommonJS(styles_exports);
36
+ var import_styled_components = __toESM(require("styled-components"));
37
+ const Container = import_styled_components.default.div`
38
+ display: flex;
39
+ justify-content: space-between;
40
+ align-items: center;
41
+ width: 2rem;
42
+ margin-right: .5rem;
43
+
44
+ div {
45
+ width: .5rem;
46
+ height: .5rem;
47
+ border-radius: 1rem;
48
+ background: rgb(255, 255, 255, 1);
49
+
50
+ &:nth-child(1) {
51
+ animation: blinkOne infinite ease 2s;
52
+ }
53
+
54
+ &:nth-child(2) {
55
+ animation: blinkTwo infinite ease 2s;
56
+ }
57
+
58
+ &:nth-child(3) {
59
+ animation: blinkThree infinite ease 2s;
60
+ }
61
+ }
62
+
63
+ @keyframes blinkOne {
64
+ 0% {
65
+ opacity: 0.8;
66
+ }
67
+ 20% {
68
+ opacity: 0.2;
69
+ }
70
+ 40% {
71
+ opacity: 0.2;
72
+ }
73
+ 60% {
74
+ opacity: 0.2;
75
+ }
76
+ 80% {
77
+ opacity: 0.2;
78
+ }
79
+ 100% {
80
+ opacity: 0.8;
81
+ }
82
+ }
83
+
84
+ @keyframes blinkTwo {
85
+ 0% {
86
+ opacity: 0.2;
87
+ }
88
+ 20% {
89
+ opacity: 0.8;
90
+ }
91
+ 40% {
92
+ opacity: 0.2;
93
+ }
94
+ 60% {
95
+ opacity: 0.2;
96
+ }
97
+ 80% {
98
+ opacity: 0.8;
99
+ }
100
+ 100% {
101
+ opacity: 0.2;
102
+ }
103
+ }
104
+
105
+ @keyframes blinkThree {
106
+ 0% {
107
+ opacity: 0.2;
108
+ }
109
+ 25% {
110
+ opacity: 0.2;
111
+ }
112
+ 50% {
113
+ opacity: 0.8;
114
+ }
115
+ 75% {
116
+ opacity: 0.2;
117
+ }
118
+ 100% {
119
+ opacity: 0.2;
120
+ }
121
+ }
122
+ `;
123
+ // Annotate the CommonJS export names for ESM import in node:
124
+ 0 && (module.exports = {
125
+ Container
126
+ });
@@ -0,0 +1,92 @@
1
+ "use client";
2
+ "use client";
3
+ import styled from "styled-components";
4
+ const Container = styled.div`
5
+ display: flex;
6
+ justify-content: space-between;
7
+ align-items: center;
8
+ width: 2rem;
9
+ margin-right: .5rem;
10
+
11
+ div {
12
+ width: .5rem;
13
+ height: .5rem;
14
+ border-radius: 1rem;
15
+ background: rgb(255, 255, 255, 1);
16
+
17
+ &:nth-child(1) {
18
+ animation: blinkOne infinite ease 2s;
19
+ }
20
+
21
+ &:nth-child(2) {
22
+ animation: blinkTwo infinite ease 2s;
23
+ }
24
+
25
+ &:nth-child(3) {
26
+ animation: blinkThree infinite ease 2s;
27
+ }
28
+ }
29
+
30
+ @keyframes blinkOne {
31
+ 0% {
32
+ opacity: 0.8;
33
+ }
34
+ 20% {
35
+ opacity: 0.2;
36
+ }
37
+ 40% {
38
+ opacity: 0.2;
39
+ }
40
+ 60% {
41
+ opacity: 0.2;
42
+ }
43
+ 80% {
44
+ opacity: 0.2;
45
+ }
46
+ 100% {
47
+ opacity: 0.8;
48
+ }
49
+ }
50
+
51
+ @keyframes blinkTwo {
52
+ 0% {
53
+ opacity: 0.2;
54
+ }
55
+ 20% {
56
+ opacity: 0.8;
57
+ }
58
+ 40% {
59
+ opacity: 0.2;
60
+ }
61
+ 60% {
62
+ opacity: 0.2;
63
+ }
64
+ 80% {
65
+ opacity: 0.8;
66
+ }
67
+ 100% {
68
+ opacity: 0.2;
69
+ }
70
+ }
71
+
72
+ @keyframes blinkThree {
73
+ 0% {
74
+ opacity: 0.2;
75
+ }
76
+ 25% {
77
+ opacity: 0.2;
78
+ }
79
+ 50% {
80
+ opacity: 0.8;
81
+ }
82
+ 75% {
83
+ opacity: 0.2;
84
+ }
85
+ 100% {
86
+ opacity: 0.2;
87
+ }
88
+ }
89
+ `;
90
+ export {
91
+ Container
92
+ };
@@ -0,0 +1 @@
1
+ export declare const Container: any;
@@ -0,0 +1,79 @@
1
+ "use client";
2
+ "use strict";
3
+ "use client";
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __export = (target, all) => {
11
+ for (var name in all)
12
+ __defProp(target, name, { get: all[name], enumerable: true });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from))
17
+ if (!__hasOwnProp.call(to, key) && key !== except)
18
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
+ mod
29
+ ));
30
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
+ var styles_exports = {};
32
+ __export(styles_exports, {
33
+ Container: () => Container
34
+ });
35
+ module.exports = __toCommonJS(styles_exports);
36
+ var import_styled_components = __toESM(require("styled-components"));
37
+ const Container = import_styled_components.default.button`
38
+ border-radius: 5px;
39
+ font-size: .8rem;
40
+ font-weight: 500;
41
+ transition: ease .3s;
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: center;
45
+ color: ${(props) => props.transparent ? props.theme.t6 : props.outline ? props.color || props.theme.secondary : "#fff !important"};
46
+ background: ${(props) => props.transparent ? "transparent" : props.outline ? props.theme.t05 : props.color || props.theme.secondary};
47
+ border: 1px solid ${(props) => props.transparent ? "transparent" : props.outline ? props.theme.t05 : props.color || props.theme.secondary};
48
+ pointer-events: ${(props) => props.loading === "true" ? "none" : "auto"};
49
+ cursor: ${(props) => props.loading === "true" ? "default" : "pointer"};
50
+ opacity: ${(props) => props.loading === "true" ? 0.6 : 1};
51
+ padding: .4rem 2.5rem;
52
+ transition: ease .3s;
53
+
54
+ span {
55
+ text-align: center;
56
+ cursor: ${(props) => props.loading === "true" ? "default" : "pointer"};
57
+ }
58
+
59
+ &:disabled {
60
+ pointer-events: none;
61
+
62
+ &::before {
63
+ opacity: .6;
64
+ }
65
+ }
66
+
67
+ &:hover {
68
+ opacity: .9;
69
+ color: ${(props) => props.transparent ? props.theme.t6 : props.outline ? props.color || props.theme.secondary : "#fff"};
70
+
71
+ &::before {
72
+ background: ${(props) => props.transparent ? "transparent" : props.color || props.theme.secondary};
73
+ }
74
+ }
75
+ `;
76
+ // Annotate the CommonJS export names for ESM import in node:
77
+ 0 && (module.exports = {
78
+ Container
79
+ });
@@ -0,0 +1,45 @@
1
+ "use client";
2
+ "use client";
3
+ import styled from "styled-components";
4
+ const Container = styled.button`
5
+ border-radius: 5px;
6
+ font-size: .8rem;
7
+ font-weight: 500;
8
+ transition: ease .3s;
9
+ display: flex;
10
+ align-items: center;
11
+ justify-content: center;
12
+ color: ${(props) => props.transparent ? props.theme.t6 : props.outline ? props.color || props.theme.secondary : "#fff !important"};
13
+ background: ${(props) => props.transparent ? "transparent" : props.outline ? props.theme.t05 : props.color || props.theme.secondary};
14
+ border: 1px solid ${(props) => props.transparent ? "transparent" : props.outline ? props.theme.t05 : props.color || props.theme.secondary};
15
+ pointer-events: ${(props) => props.loading === "true" ? "none" : "auto"};
16
+ cursor: ${(props) => props.loading === "true" ? "default" : "pointer"};
17
+ opacity: ${(props) => props.loading === "true" ? 0.6 : 1};
18
+ padding: .4rem 2.5rem;
19
+ transition: ease .3s;
20
+
21
+ span {
22
+ text-align: center;
23
+ cursor: ${(props) => props.loading === "true" ? "default" : "pointer"};
24
+ }
25
+
26
+ &:disabled {
27
+ pointer-events: none;
28
+
29
+ &::before {
30
+ opacity: .6;
31
+ }
32
+ }
33
+
34
+ &:hover {
35
+ opacity: .9;
36
+ color: ${(props) => props.transparent ? props.theme.t6 : props.outline ? props.color || props.theme.secondary : "#fff"};
37
+
38
+ &::before {
39
+ background: ${(props) => props.transparent ? "transparent" : props.color || props.theme.secondary};
40
+ }
41
+ }
42
+ `;
43
+ export {
44
+ Container
45
+ };
@@ -0,0 +1,2 @@
1
+ import { IInputDateTime } from "@interfaces";
2
+ export declare function InputDateTime(props: IInputDateTime): import("react/jsx-runtime").JSX.Element;