@gustavo-valsechi/client 1.3.23 → 1.3.25

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 (217) hide show
  1. package/dist/components/index.d.ts +3 -10
  2. package/dist/components/index.mjs +3082 -11
  3. package/dist/components/styles.d.ts +2 -0
  4. package/dist/components/styles.mjs +21 -0
  5. package/dist/components/types/avatar/index.d.ts +2 -0
  6. package/dist/components/types/avatar/index.mjs +88 -0
  7. package/dist/components/types/avatar/styles.d.ts +1 -0
  8. package/dist/components/types/avatar/styles.mjs +61 -0
  9. package/dist/components/types/badge/index.d.ts +2 -0
  10. package/dist/components/types/badge/index.mjs +324 -0
  11. package/dist/components/types/badge/styles.d.ts +1 -0
  12. package/dist/components/types/badge/styles.mjs +39 -0
  13. package/dist/components/types/block/index.d.ts +2 -0
  14. package/dist/components/types/block/index.mjs +3078 -0
  15. package/dist/components/types/block/styles.d.ts +2 -0
  16. package/dist/components/types/block/styles.mjs +32 -0
  17. package/dist/components/types/chart/index.d.ts +2 -0
  18. package/dist/components/types/chart/index.mjs +322 -0
  19. package/dist/components/types/chart/styles.d.ts +1 -0
  20. package/dist/components/types/chart/styles.mjs +10 -0
  21. package/dist/components/types/credit-card/assets/index.d.ts +4 -0
  22. package/dist/components/types/credit-card/assets/index.mjs +23 -0
  23. package/dist/components/types/credit-card/card/index.d.ts +2 -0
  24. package/dist/components/types/credit-card/card/index.mjs +732 -0
  25. package/dist/components/types/credit-card/card/styles.d.ts +1 -0
  26. package/dist/components/types/credit-card/card/styles.mjs +138 -0
  27. package/dist/components/types/credit-card/functions/index.d.ts +2 -0
  28. package/dist/components/types/credit-card/functions/index.mjs +61 -0
  29. package/dist/components/types/credit-card/functions/styles.d.ts +1 -0
  30. package/dist/components/types/credit-card/functions/styles.mjs +43 -0
  31. package/dist/components/types/credit-card/index.d.ts +2 -0
  32. package/dist/components/types/credit-card/index.mjs +853 -0
  33. package/dist/components/types/credit-card/styles.d.ts +1 -0
  34. package/dist/components/types/credit-card/styles.mjs +40 -0
  35. package/dist/components/types/credit-card/tools/index.d.ts +6 -0
  36. package/dist/components/types/credit-card/tools/index.mjs +566 -0
  37. package/dist/components/types/form/index.d.ts +3 -0
  38. package/dist/components/types/form/index.mjs +711 -0
  39. package/dist/components/types/form/styles.d.ts +1 -0
  40. package/dist/components/types/form/styles.mjs +21 -0
  41. package/dist/components/types/form/types/button/index.d.ts +2 -0
  42. package/dist/components/types/form/types/button/index.mjs +165 -0
  43. package/dist/components/types/form/types/button/loading/index.d.ts +1 -0
  44. package/dist/components/types/form/types/button/loading/index.mjs +104 -0
  45. package/dist/components/types/form/types/button/loading/styles.d.ts +1 -0
  46. package/dist/components/types/form/types/button/loading/styles.mjs +94 -0
  47. package/dist/components/types/form/types/button/styles.d.ts +1 -0
  48. package/dist/components/types/form/types/button/styles.mjs +47 -0
  49. package/dist/components/types/form/types/datetime/index.d.ts +2 -0
  50. package/dist/components/types/form/types/datetime/index.mjs +93 -0
  51. package/dist/components/types/form/types/datetime/styles.d.ts +1 -0
  52. package/dist/components/types/form/types/datetime/styles.mjs +46 -0
  53. package/dist/components/types/form/types/file/index.d.ts +2 -0
  54. package/dist/components/types/form/types/file/index.mjs +91 -0
  55. package/dist/components/types/form/types/file/styles.d.ts +1 -0
  56. package/dist/components/types/form/types/file/styles.mjs +33 -0
  57. package/dist/components/types/form/types/index.d.ts +7 -0
  58. package/dist/components/types/form/types/index.mjs +603 -0
  59. package/dist/components/types/form/types/input/index.d.ts +2 -0
  60. package/dist/components/types/form/types/input/index.mjs +113 -0
  61. package/dist/components/types/form/types/input/styles.d.ts +1 -0
  62. package/dist/components/types/form/types/input/styles.mjs +52 -0
  63. package/dist/components/types/form/types/label/index.d.ts +2 -0
  64. package/dist/components/types/form/types/label/index.mjs +19 -0
  65. package/dist/components/types/form/types/label/styles.d.ts +1 -0
  66. package/dist/components/types/form/types/label/styles.mjs +13 -0
  67. package/dist/components/types/form/types/select/index.d.ts +2 -0
  68. package/dist/components/types/form/types/select/index.mjs +125 -0
  69. package/dist/components/types/form/types/select/styles.d.ts +1 -0
  70. package/dist/components/types/form/types/select/styles.mjs +58 -0
  71. package/dist/components/types/form/types/textarea/index.d.ts +2 -0
  72. package/dist/components/types/form/types/textarea/index.mjs +92 -0
  73. package/dist/components/types/form/types/textarea/styles.d.ts +1 -0
  74. package/dist/components/types/form/types/textarea/styles.mjs +45 -0
  75. package/dist/components/types/index.d.ts +11 -0
  76. package/dist/components/types/index.mjs +3094 -0
  77. package/dist/components/types/loading/app/index.d.ts +2 -0
  78. package/dist/components/types/loading/app/index.mjs +128 -0
  79. package/dist/components/types/loading/app/styles.d.ts +1 -0
  80. package/dist/components/types/loading/app/styles.mjs +93 -0
  81. package/dist/components/types/loading/bar/index.d.ts +2 -0
  82. package/dist/components/types/loading/bar/index.mjs +33 -0
  83. package/dist/components/types/loading/bar/styles.d.ts +1 -0
  84. package/dist/components/types/loading/bar/styles.mjs +27 -0
  85. package/dist/components/types/loading/index.d.ts +2 -0
  86. package/dist/components/types/loading/index.mjs +156 -0
  87. package/dist/components/types/logo/index.d.ts +2 -0
  88. package/dist/components/types/logo/index.mjs +34 -0
  89. package/dist/components/types/logo/styles.d.ts +1 -0
  90. package/dist/components/types/logo/styles.mjs +25 -0
  91. package/dist/components/types/lottie/animations/index.d.ts +293 -0
  92. package/dist/components/types/lottie/animations/index.mjs +10 -0
  93. package/dist/components/types/lottie/index.d.ts +2 -0
  94. package/dist/components/types/lottie/index.mjs +69 -0
  95. package/dist/components/types/lottie/styles.d.ts +1 -0
  96. package/dist/components/types/lottie/styles.mjs +28 -0
  97. package/dist/components/types/modal/index.d.ts +2 -0
  98. package/dist/components/types/modal/index.mjs +2324 -0
  99. package/dist/components/types/modal/styles.d.ts +1 -0
  100. package/dist/components/types/modal/styles.mjs +135 -0
  101. package/dist/components/types/table/index.d.ts +3 -0
  102. package/dist/components/types/table/index.mjs +3079 -0
  103. package/dist/components/types/table/modal/actions.d.ts +10 -0
  104. package/dist/components/types/table/modal/actions.mjs +87 -0
  105. package/dist/components/types/table/modal/index.d.ts +2 -0
  106. package/dist/components/types/table/modal/index.mjs +3076 -0
  107. package/dist/components/types/table/modal/styles.d.ts +1 -0
  108. package/dist/components/types/table/modal/styles.mjs +58 -0
  109. package/dist/components/types/table/paginate/index.d.ts +2 -0
  110. package/dist/components/types/table/paginate/index.mjs +96 -0
  111. package/dist/components/types/table/paginate/styles.d.ts +1 -0
  112. package/dist/components/types/table/paginate/styles.mjs +42 -0
  113. package/dist/components/types/table/styles.d.ts +5 -0
  114. package/dist/components/types/table/styles.mjs +268 -0
  115. package/dist/contexts/icon/assets/brands/index.d.ts +2 -0
  116. package/dist/contexts/icon/assets/brands/index.mjs +19 -0
  117. package/dist/contexts/icon/assets/index.d.ts +6 -0
  118. package/dist/contexts/icon/assets/index.mjs +44 -0
  119. package/dist/contexts/icon/assets/regular/index.d.ts +2 -0
  120. package/dist/contexts/icon/assets/regular/index.mjs +19 -0
  121. package/dist/contexts/icon/assets/solid/index.d.ts +2 -0
  122. package/dist/contexts/icon/assets/solid/index.mjs +19 -0
  123. package/dist/contexts/icon/index.d.ts +4 -0
  124. package/dist/contexts/icon/index.mjs +281 -0
  125. package/dist/contexts/icon/styles.d.ts +1 -0
  126. package/dist/contexts/icon/styles.mjs +10 -0
  127. package/dist/contexts/index.d.ts +4 -20
  128. package/dist/contexts/index.mjs +486 -4
  129. package/dist/contexts/modal/index.d.ts +4 -0
  130. package/dist/contexts/modal/index.mjs +66 -0
  131. package/dist/contexts/modal/styles.d.ts +1 -0
  132. package/dist/contexts/modal/styles.mjs +10 -0
  133. package/dist/contexts/theme/content.d.ts +3 -0
  134. package/dist/contexts/theme/content.mjs +81 -0
  135. package/dist/contexts/theme/index.d.ts +4 -0
  136. package/dist/contexts/theme/index.mjs +201 -0
  137. package/dist/contexts/theme/styles.d.ts +1 -0
  138. package/dist/contexts/theme/styles.mjs +84 -0
  139. package/dist/contexts/tooltip/index.d.ts +6 -0
  140. package/dist/contexts/tooltip/index.mjs +117 -0
  141. package/dist/contexts/tooltip/styles.d.ts +1 -0
  142. package/dist/contexts/tooltip/styles.mjs +46 -0
  143. package/dist/index.d.ts +4 -17
  144. package/dist/index.mjs +3312 -4
  145. package/dist/interfaces/components/avatar/index.d.ts +6 -0
  146. package/dist/interfaces/components/avatar/index.mjs +1 -0
  147. package/dist/interfaces/components/badge/index.d.ts +3 -0
  148. package/dist/interfaces/components/badge/index.mjs +1 -0
  149. package/dist/interfaces/components/block/index.d.ts +16 -0
  150. package/dist/interfaces/components/block/index.mjs +1 -0
  151. package/dist/interfaces/components/chart/index.d.ts +9 -0
  152. package/dist/interfaces/components/chart/index.mjs +1 -0
  153. package/dist/interfaces/components/credit-card/index.d.ts +16 -0
  154. package/dist/interfaces/components/credit-card/index.mjs +1 -0
  155. package/dist/interfaces/components/form/button/index.d.ts +7 -0
  156. package/dist/interfaces/components/form/button/index.mjs +1 -0
  157. package/dist/interfaces/components/form/datetime/index.d.ts +15 -0
  158. package/dist/interfaces/components/form/datetime/index.mjs +1 -0
  159. package/dist/interfaces/components/form/file/index.d.ts +14 -0
  160. package/dist/interfaces/components/form/file/index.mjs +1 -0
  161. package/dist/interfaces/components/form/index.d.ts +16 -0
  162. package/dist/interfaces/components/form/index.mjs +1 -0
  163. package/dist/interfaces/components/form/input/index.d.ts +17 -0
  164. package/dist/interfaces/components/form/input/index.mjs +1 -0
  165. package/dist/interfaces/components/form/label/index.d.ts +5 -0
  166. package/dist/interfaces/components/form/label/index.mjs +1 -0
  167. package/dist/interfaces/components/form/select/index.d.ts +14 -0
  168. package/dist/interfaces/components/form/select/index.mjs +1 -0
  169. package/dist/interfaces/components/form/textarea/index.d.ts +16 -0
  170. package/dist/interfaces/components/form/textarea/index.mjs +1 -0
  171. package/dist/interfaces/components/index.d.ts +26 -0
  172. package/dist/interfaces/components/index.mjs +1 -0
  173. package/dist/interfaces/components/loading/app/index.d.ts +3 -0
  174. package/dist/interfaces/components/loading/app/index.mjs +1 -0
  175. package/dist/interfaces/components/loading/bar/index.d.ts +7 -0
  176. package/dist/interfaces/components/loading/bar/index.mjs +1 -0
  177. package/dist/interfaces/components/loading/index.d.ts +2 -0
  178. package/dist/interfaces/components/loading/index.mjs +1 -0
  179. package/dist/interfaces/components/logo/index.d.ts +6 -0
  180. package/dist/interfaces/components/logo/index.mjs +1 -0
  181. package/dist/interfaces/components/lottie/index.d.ts +12 -0
  182. package/dist/interfaces/components/lottie/index.mjs +1 -0
  183. package/dist/interfaces/components/modal/index.d.ts +16 -0
  184. package/dist/interfaces/components/modal/index.mjs +1 -0
  185. package/dist/interfaces/components/table/index.d.ts +46 -0
  186. package/dist/interfaces/components/table/index.mjs +1 -0
  187. package/dist/interfaces/components/table/paginate/index.d.ts +7 -0
  188. package/dist/interfaces/components/table/paginate/index.mjs +1 -0
  189. package/dist/interfaces/contexts/icon/index.d.ts +3 -0
  190. package/dist/interfaces/contexts/icon/index.mjs +1 -0
  191. package/dist/interfaces/contexts/index.d.ts +8 -0
  192. package/dist/interfaces/contexts/index.mjs +1 -0
  193. package/dist/interfaces/contexts/modal/index.d.ts +16 -0
  194. package/dist/interfaces/contexts/modal/index.mjs +2 -0
  195. package/dist/interfaces/contexts/theme/index.d.ts +42 -0
  196. package/dist/interfaces/contexts/theme/index.mjs +1 -0
  197. package/dist/interfaces/contexts/tooltip/index.d.ts +3 -0
  198. package/dist/interfaces/contexts/tooltip/index.mjs +1 -0
  199. package/dist/interfaces/index.d.ts +2 -12
  200. package/dist/interfaces/index.mjs +0 -2
  201. package/dist/styled.d.ts +6 -0
  202. package/dist/tsup.config.d.ts +2 -0
  203. package/package.json +13 -7
  204. package/dist/components/index.d.mts +0 -10
  205. package/dist/components/index.js +0 -63
  206. package/dist/contexts/index.d.mts +0 -20
  207. package/dist/contexts/index.js +0 -30
  208. package/dist/index-BhaGW0O1.d.ts +0 -601
  209. package/dist/index-BxA8LyyD.d.mts +0 -68
  210. package/dist/index-DDi0w5pw.d.mts +0 -601
  211. package/dist/index-DT7VKE7H.d.ts +0 -68
  212. package/dist/index-Da-DtPS-.d.mts +0 -29
  213. package/dist/index-Da-DtPS-.d.ts +0 -29
  214. package/dist/index.d.mts +0 -17
  215. package/dist/index.js +0 -28
  216. package/dist/interfaces/index.d.mts +0 -12
  217. package/dist/interfaces/index.js +0 -25
@@ -0,0 +1,6 @@
1
+ export interface IAvatar {
2
+ name?: string;
3
+ size?: string;
4
+ color?: string;
5
+ onClick?: Function;
6
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,3 @@
1
+ export interface IBadge {
2
+ value: string;
3
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { IComponentContent } from "@interfaces";
3
+ interface IBase {
4
+ icon?: string;
5
+ label?: string;
6
+ }
7
+ export type IBlock = (IBase & {
8
+ component: IComponentContent;
9
+ content?: never;
10
+ children?: never;
11
+ }) | (IBase & {
12
+ children: React.ReactNode;
13
+ component?: never;
14
+ content?: never;
15
+ });
16
+ export {};
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,9 @@
1
+ export interface IChart {
2
+ content: Array<any>;
3
+ yAxis: Array<any>;
4
+ xAxis: Array<any>;
5
+ min?: number;
6
+ max?: number;
7
+ colors?: Array<string>;
8
+ height?: number;
9
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,16 @@
1
+ export interface ICreditCard {
2
+ cvc?: string;
3
+ name: string;
4
+ number: string;
5
+ expiry: string;
6
+ onEdit?: () => any;
7
+ onConfig?: () => any;
8
+ onRemove?: () => any;
9
+ focused?: "name" | "number" | "expiry" | "cvc" | "" | undefined;
10
+ functions?: Array<{
11
+ icon: string;
12
+ label: string;
13
+ function?: () => any;
14
+ hide?: boolean;
15
+ }>;
16
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,7 @@
1
+ export interface IButton {
2
+ loading?: boolean;
3
+ disabled?: boolean;
4
+ type?: string;
5
+ onClick?: () => void;
6
+ label: string;
7
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,15 @@
1
+ import { UseFormRegister } from "react-hook-form";
2
+ export interface IInputDateTime {
3
+ className?: string;
4
+ label?: string;
5
+ name: string;
6
+ value: string;
7
+ mask?: (value: string) => void;
8
+ onFocus: (value: any) => void;
9
+ onChange: (event: any) => void;
10
+ maxLength?: number;
11
+ error: string;
12
+ disabled?: boolean;
13
+ required?: boolean;
14
+ register?: UseFormRegister<any>;
15
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,14 @@
1
+ import { UseFormRegister } from "react-hook-form";
2
+ export interface IInputFile {
3
+ className?: string;
4
+ label?: string;
5
+ name: string;
6
+ value: string;
7
+ onPreview?: (url: any) => void;
8
+ onChange: (event: any) => void;
9
+ disabled?: boolean;
10
+ error: string;
11
+ onFocus: (value: string) => void;
12
+ required?: boolean;
13
+ register?: UseFormRegister<any>;
14
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,16 @@
1
+ export * from "./file";
2
+ export * from "./label";
3
+ export * from "./input";
4
+ export * from "./select";
5
+ export * from "./button";
6
+ export * from "./datetime";
7
+ export * from "./textarea";
8
+ export interface IForm {
9
+ defaultValues?: any;
10
+ validation?: any;
11
+ formRef?: any;
12
+ onSubmit: (values: any, actions?: any) => void;
13
+ clearWhen?: boolean;
14
+ inputs: Array<any>;
15
+ buttons?: Array<any>;
16
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,17 @@
1
+ import { UseFormRegister } from "react-hook-form";
2
+ export interface IInputText {
3
+ className?: string;
4
+ label?: string;
5
+ id?: string;
6
+ name?: string;
7
+ type?: string;
8
+ value?: string;
9
+ mask?: (value: string) => void;
10
+ onChange?: (event: any) => void;
11
+ maxLength?: number;
12
+ error?: string;
13
+ disabled?: boolean;
14
+ onFocus?: (value: any) => void;
15
+ required?: boolean;
16
+ register?: UseFormRegister<any>;
17
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ export interface IInputLabel {
3
+ className?: string;
4
+ children: React.ReactNode;
5
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,14 @@
1
+ import { UseFormRegister } from "react-hook-form";
2
+ export interface IInputSelect {
3
+ className?: string;
4
+ label?: string;
5
+ name: string;
6
+ value?: string;
7
+ onChange?: (event: any) => void;
8
+ options: Array<any>;
9
+ error: string;
10
+ disabled?: boolean;
11
+ onFocus: (value: any) => void;
12
+ required?: boolean;
13
+ register?: UseFormRegister<any>;
14
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,16 @@
1
+ import { UseFormRegister } from "react-hook-form";
2
+ export interface IInputTextarea {
3
+ className?: string;
4
+ label?: string;
5
+ name: string;
6
+ value: string;
7
+ mask?: (value: string) => void;
8
+ onChange: (event: any) => void;
9
+ maxLength?: number;
10
+ rows?: number;
11
+ error: string;
12
+ disabled?: boolean;
13
+ onFocus: (value: string) => void;
14
+ required?: boolean;
15
+ register?: UseFormRegister<any>;
16
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import * as Types from "@components/types";
3
+ export * from "./table";
4
+ export * from "./loading";
5
+ export * from "./modal";
6
+ export * from "./badge";
7
+ export * from "./logo";
8
+ export * from "./form";
9
+ export * from "./chart";
10
+ export * from "./avatar";
11
+ export * from "./lottie";
12
+ export * from "./credit-card";
13
+ export * from "./block";
14
+ export type IComponentMap = typeof Types;
15
+ export type IComponentConfigMap = {
16
+ [K in keyof IComponentMap]: {
17
+ type: K;
18
+ props?: React.ComponentProps<IComponentMap[K]>;
19
+ };
20
+ };
21
+ export type IComponentConfig = IComponentConfigMap[keyof IComponentMap];
22
+ export type IComponentContent = Array<IComponentConfig | Array<IComponentConfig>>;
23
+ export interface IComponent {
24
+ className?: string;
25
+ content: IComponentContent;
26
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,3 @@
1
+ export interface ILoadingApp {
2
+ initialization?: boolean;
3
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,7 @@
1
+ export interface ILoadingBar {
2
+ borderRadius?: string;
3
+ height?: string;
4
+ width?: string;
5
+ margin?: string;
6
+ dark?: boolean;
7
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,2 @@
1
+ export * from "./bar";
2
+ export * from "./app";
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,6 @@
1
+ export interface ILogo {
2
+ opacity?: string | number;
3
+ size?: string | number;
4
+ onlyPrefix?: boolean;
5
+ className?: string;
6
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,12 @@
1
+ import animations from "@components/types/lottie/animations";
2
+ interface IBase {
3
+ size?: number;
4
+ }
5
+ export type ILottie = (IBase & {
6
+ src: string;
7
+ animation?: never;
8
+ }) | (IBase & {
9
+ animation: keyof typeof animations;
10
+ src?: never;
11
+ });
12
+ export {};
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { IButton } from "@interfaces";
3
+ export interface IModal {
4
+ toggle: boolean;
5
+ onClose?: () => void;
6
+ title?: string;
7
+ header?: {
8
+ title: string;
9
+ icon: string;
10
+ };
11
+ buttons?: Array<IButton>;
12
+ children?: React.ReactNode;
13
+ position?: "center" | "right" | "left";
14
+ noCloseIcon?: boolean;
15
+ content?: any;
16
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,46 @@
1
+ import React from "react";
2
+ export * from "./paginate";
3
+ export interface ITableAction {
4
+ disabled?: boolean;
5
+ position?: string;
6
+ function: (data?: any) => any;
7
+ icon?: string;
8
+ label?: string;
9
+ tooltip?: string;
10
+ }
11
+ export interface ITableColumn {
12
+ name?: string;
13
+ style?: object;
14
+ action?: ITableAction;
15
+ }
16
+ export interface ITableRow {
17
+ actions?: Array<ITableAction>;
18
+ image?: any;
19
+ icon?: any;
20
+ style?: any;
21
+ mask?: any;
22
+ custom?: (data: any) => React.ReactNode;
23
+ name?: string;
24
+ }
25
+ export interface ITable {
26
+ content: Array<any>;
27
+ loading?: boolean | {
28
+ is?: boolean;
29
+ items?: Array<any>;
30
+ };
31
+ options: Array<{
32
+ column: ITableColumn | string;
33
+ row: ITableRow | string;
34
+ }>;
35
+ notFound?: {
36
+ title: string;
37
+ message: string;
38
+ };
39
+ paginate?: {
40
+ total: number;
41
+ page: {
42
+ value: number;
43
+ set: (value: number) => any;
44
+ };
45
+ };
46
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,7 @@
1
+ export interface IPaginate {
2
+ total: number;
3
+ page: {
4
+ value: number;
5
+ set: (value: number) => void;
6
+ };
7
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,3 @@
1
+ import { IBaseProvider } from "../..";
2
+ export interface IIconProvider extends IBaseProvider {
3
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ export * from "./icon";
3
+ export * from "./theme";
4
+ export * from "./tooltip";
5
+ export * from "./modal";
6
+ export interface IBaseProvider {
7
+ children: React.ReactNode;
8
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,16 @@
1
+ import { Modal } from "@components";
2
+ import { IModal, IBaseProvider } from "../..";
3
+ export interface IModalProvider extends IBaseProvider {
4
+ }
5
+ export interface IModalConfig {
6
+ component: typeof Modal;
7
+ name: string;
8
+ props?: IModal;
9
+ type?: "fixed" | "dinamic";
10
+ }
11
+ export interface IModalContext {
12
+ value: Array<IModalConfig>;
13
+ add: (value: IModalConfig) => void;
14
+ remove: (modalName: string) => void;
15
+ setProps: (modalName: string, props: IModal) => void;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ "use client";
@@ -0,0 +1,42 @@
1
+ import { IBaseProvider } from "../..";
2
+ export interface IThemeProvider extends IBaseProvider {
3
+ theme?: string;
4
+ }
5
+ export interface ICommonTheme {
6
+ secondary: string;
7
+ tertiary: string;
8
+ positive: string;
9
+ negative: string;
10
+ mobileMaxWidth: string;
11
+ mobileMinWidth: string;
12
+ }
13
+ export interface IThemeContent extends ICommonTheme {
14
+ primary: string;
15
+ reverse: string;
16
+ tooltip: string;
17
+ t8: string;
18
+ t7: string;
19
+ t6: string;
20
+ t5: string;
21
+ t4: string;
22
+ t3: string;
23
+ t2: string;
24
+ t1: string;
25
+ t08: string;
26
+ t05: string;
27
+ t03: string;
28
+ t02: string;
29
+ t01: string;
30
+ lgrad: string;
31
+ maingrad: string;
32
+ }
33
+ export interface ITheme {
34
+ light: IThemeContent;
35
+ dark: IThemeContent;
36
+ }
37
+ export interface IThemeContext {
38
+ theme: keyof ITheme;
39
+ setTheme: (theme: keyof ITheme) => void;
40
+ content: IThemeContent;
41
+ Switcher: any;
42
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -0,0 +1,3 @@
1
+ import { IBaseProvider } from "../..";
2
+ export interface ITooltipProvider extends IBaseProvider {
3
+ }
@@ -0,0 +1 @@
1
+ "use client";
@@ -1,12 +1,2 @@
1
- export { N as IAvatar, x as IBadge, R as IBlock, M as IChart, p as IComponent, n as IComponentConfig, m as IComponentConfigMap, o as IComponentContent, l as IComponentMap, Q as ICreditCard, z as IForm, J as IInputDateTime, D as IInputFile, E as IInputLabel, H as IInputSelect, G as IInputText, K as IInputTextarea, w as ILoadingApp, v as ILoadingBar, y as ILogo, O as ILottie, u as IPaginate, t as ITable, q as ITableAction, r as ITableColumn, s as ITableRow } from '../index-BhaGW0O1.js';
2
- import { a as IBaseProvider } from '../index-DT7VKE7H.js';
3
- export { d as ICommonTheme, b as IIconProvider, h as IModalConfig, i as IModalContext, g as IModalProvider, e as ITheme, I as IThemeContent, f as IThemeContext, c as IThemeProvider } from '../index-DT7VKE7H.js';
4
- export { a as IButton, I as IModal } from '../index-Da-DtPS-.js';
5
- import 'react';
6
- import 'react/jsx-runtime';
7
- import 'react-hook-form';
8
-
9
- interface ITooltipProvider extends IBaseProvider {
10
- }
11
-
12
- export { IBaseProvider, type ITooltipProvider };
1
+ export * from "./components";
2
+ export * from "./contexts";
@@ -1,3 +1 @@
1
1
  "use client";
2
- export * from "./components";
3
- export * from "./contexts";
@@ -0,0 +1,6 @@
1
+ import "styled-components";
2
+ import { IThemeContent } from "@interfaces";
3
+ declare module "styled-components" {
4
+ interface DefaultTheme extends IThemeContent {
5
+ }
6
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("tsup").Options | import("tsup").Options[] | ((overrideOptions: import("tsup").Options) => import("tsup").Options | import("tsup").Options[] | Promise<import("tsup").Options | import("tsup").Options[]>);
2
+ export default _default;
package/package.json CHANGED
@@ -1,13 +1,18 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.3.23",
3
+ "version": "1.3.25",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
- "files": ["dist"],
7
+ "files": [
8
+ "dist"
9
+ ],
8
10
  "license": "UNLICENSED",
9
11
  "scripts": {
10
- "build": "npx rimraf node_modules/.cache && tsup"
12
+ "clean": "rimraf dist && rimraf node_modules/.cache",
13
+ "build:types": "tsc -p tsconfig.json",
14
+ "build:js": "tsup",
15
+ "build": "npm run clean && npm run build:js && npm run build:types"
11
16
  },
12
17
  "peerDependencies": {
13
18
  "react": "18.3.1",
@@ -42,6 +47,7 @@
42
47
  "raw-loader": "4.0.2",
43
48
  "react": "18.3.1",
44
49
  "react-dom": "18.3.1",
50
+ "rimraf": "6.1.0",
45
51
  "styled-components": "6.1.12",
46
52
  "typescript": "5.5.4"
47
53
  },
@@ -50,19 +56,19 @@
50
56
  },
51
57
  "exports": {
52
58
  ".": {
53
- "import": "./dist/index.js",
59
+ "import": "./dist/index.mjs",
54
60
  "types": "./dist/index.d.ts"
55
61
  },
56
62
  "./components": {
57
- "import": "./dist/components/index.js",
63
+ "import": "./dist/components/index.mjs",
58
64
  "types": "./dist/components/index.d.ts"
59
65
  },
60
66
  "./contexts": {
61
- "import": "./dist/contexts/index.js",
67
+ "import": "./dist/contexts/index.mjs",
62
68
  "types": "./dist/contexts/index.d.ts"
63
69
  },
64
70
  "./interfaces": {
65
- "import": "./dist/interfaces/index.js",
71
+ "import": "./dist/interfaces/index.mjs",
66
72
  "types": "./dist/interfaces/index.d.ts"
67
73
  }
68
74
  }
@@ -1,10 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { p as IComponent } from '../index-DDi0w5pw.mjs';
3
- export { A as Avatar, B as Badge, k as Block, f as Button, C as Chart, j as CreditCard, F as Form, g as InputDateTime, I as InputFile, c as InputLabel, e as InputSelect, d as InputText, h as InputTextarea, a as LoadingApp, L as LoadingBar, b as Logo, i as Lottie, P as Paginate, T as Table } from '../index-DDi0w5pw.mjs';
4
- export { M as Modal } from '../index-Da-DtPS-.mjs';
5
- import 'react';
6
- import 'react-hook-form';
7
-
8
- declare function Component(props: IComponent): react_jsx_runtime.JSX.Element;
9
-
10
- export { Component };