@gustavo-valsechi/client 1.3.24 → 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 (211) hide show
  1. package/dist/components/index.d.ts +3 -10
  2. package/dist/components/styles.d.ts +2 -0
  3. package/dist/components/styles.mjs +21 -0
  4. package/dist/components/types/avatar/index.d.ts +2 -0
  5. package/dist/components/types/avatar/index.mjs +88 -0
  6. package/dist/components/types/avatar/styles.d.ts +1 -0
  7. package/dist/components/types/avatar/styles.mjs +61 -0
  8. package/dist/components/types/badge/index.d.ts +2 -0
  9. package/dist/components/types/badge/index.mjs +324 -0
  10. package/dist/components/types/badge/styles.d.ts +1 -0
  11. package/dist/components/types/badge/styles.mjs +39 -0
  12. package/dist/components/types/block/index.d.ts +2 -0
  13. package/dist/components/types/block/index.mjs +3078 -0
  14. package/dist/components/types/block/styles.d.ts +2 -0
  15. package/dist/components/types/block/styles.mjs +32 -0
  16. package/dist/components/types/chart/index.d.ts +2 -0
  17. package/dist/components/types/chart/index.mjs +322 -0
  18. package/dist/components/types/chart/styles.d.ts +1 -0
  19. package/dist/components/types/chart/styles.mjs +10 -0
  20. package/dist/components/types/credit-card/assets/index.d.ts +4 -0
  21. package/dist/components/types/credit-card/assets/index.mjs +23 -0
  22. package/dist/components/types/credit-card/card/index.d.ts +2 -0
  23. package/dist/components/types/credit-card/card/index.mjs +732 -0
  24. package/dist/components/types/credit-card/card/styles.d.ts +1 -0
  25. package/dist/components/types/credit-card/card/styles.mjs +138 -0
  26. package/dist/components/types/credit-card/functions/index.d.ts +2 -0
  27. package/dist/components/types/credit-card/functions/index.mjs +61 -0
  28. package/dist/components/types/credit-card/functions/styles.d.ts +1 -0
  29. package/dist/components/types/credit-card/functions/styles.mjs +43 -0
  30. package/dist/components/types/credit-card/index.d.ts +2 -0
  31. package/dist/components/types/credit-card/index.mjs +853 -0
  32. package/dist/components/types/credit-card/styles.d.ts +1 -0
  33. package/dist/components/types/credit-card/styles.mjs +40 -0
  34. package/dist/components/types/credit-card/tools/index.d.ts +6 -0
  35. package/dist/components/types/credit-card/tools/index.mjs +566 -0
  36. package/dist/components/types/form/index.d.ts +3 -0
  37. package/dist/components/types/form/index.mjs +711 -0
  38. package/dist/components/types/form/styles.d.ts +1 -0
  39. package/dist/components/types/form/styles.mjs +21 -0
  40. package/dist/components/types/form/types/button/index.d.ts +2 -0
  41. package/dist/components/types/form/types/button/index.mjs +165 -0
  42. package/dist/components/types/form/types/button/loading/index.d.ts +1 -0
  43. package/dist/components/types/form/types/button/loading/index.mjs +104 -0
  44. package/dist/components/types/form/types/button/loading/styles.d.ts +1 -0
  45. package/dist/components/types/form/types/button/loading/styles.mjs +94 -0
  46. package/dist/components/types/form/types/button/styles.d.ts +1 -0
  47. package/dist/components/types/form/types/button/styles.mjs +47 -0
  48. package/dist/components/types/form/types/datetime/index.d.ts +2 -0
  49. package/dist/components/types/form/types/datetime/index.mjs +93 -0
  50. package/dist/components/types/form/types/datetime/styles.d.ts +1 -0
  51. package/dist/components/types/form/types/datetime/styles.mjs +46 -0
  52. package/dist/components/types/form/types/file/index.d.ts +2 -0
  53. package/dist/components/types/form/types/file/index.mjs +91 -0
  54. package/dist/components/types/form/types/file/styles.d.ts +1 -0
  55. package/dist/components/types/form/types/file/styles.mjs +33 -0
  56. package/dist/components/types/form/types/index.d.ts +7 -0
  57. package/dist/components/types/form/types/index.mjs +603 -0
  58. package/dist/components/types/form/types/input/index.d.ts +2 -0
  59. package/dist/components/types/form/types/input/index.mjs +113 -0
  60. package/dist/components/types/form/types/input/styles.d.ts +1 -0
  61. package/dist/components/types/form/types/input/styles.mjs +52 -0
  62. package/dist/components/types/form/types/label/index.d.ts +2 -0
  63. package/dist/components/types/form/types/label/index.mjs +19 -0
  64. package/dist/components/types/form/types/label/styles.d.ts +1 -0
  65. package/dist/components/types/form/types/label/styles.mjs +13 -0
  66. package/dist/components/types/form/types/select/index.d.ts +2 -0
  67. package/dist/components/types/form/types/select/index.mjs +125 -0
  68. package/dist/components/types/form/types/select/styles.d.ts +1 -0
  69. package/dist/components/types/form/types/select/styles.mjs +58 -0
  70. package/dist/components/types/form/types/textarea/index.d.ts +2 -0
  71. package/dist/components/types/form/types/textarea/index.mjs +92 -0
  72. package/dist/components/types/form/types/textarea/styles.d.ts +1 -0
  73. package/dist/components/types/form/types/textarea/styles.mjs +45 -0
  74. package/dist/components/types/index.d.ts +11 -0
  75. package/dist/components/{index.js → types/index.mjs} +379 -405
  76. package/dist/components/types/loading/app/index.d.ts +2 -0
  77. package/dist/components/types/loading/app/index.mjs +128 -0
  78. package/dist/components/types/loading/app/styles.d.ts +1 -0
  79. package/dist/components/types/loading/app/styles.mjs +93 -0
  80. package/dist/components/types/loading/bar/index.d.ts +2 -0
  81. package/dist/components/types/loading/bar/index.mjs +33 -0
  82. package/dist/components/types/loading/bar/styles.d.ts +1 -0
  83. package/dist/components/types/loading/bar/styles.mjs +27 -0
  84. package/dist/components/types/loading/index.d.ts +2 -0
  85. package/dist/components/types/loading/index.mjs +156 -0
  86. package/dist/components/types/logo/index.d.ts +2 -0
  87. package/dist/components/types/logo/index.mjs +34 -0
  88. package/dist/components/types/logo/styles.d.ts +1 -0
  89. package/dist/components/types/logo/styles.mjs +25 -0
  90. package/dist/components/types/lottie/animations/index.d.ts +293 -0
  91. package/dist/components/types/lottie/animations/index.mjs +10 -0
  92. package/dist/components/types/lottie/index.d.ts +2 -0
  93. package/dist/components/types/lottie/index.mjs +69 -0
  94. package/dist/components/types/lottie/styles.d.ts +1 -0
  95. package/dist/components/types/lottie/styles.mjs +28 -0
  96. package/dist/components/types/modal/index.d.ts +2 -0
  97. package/dist/components/types/modal/index.mjs +2324 -0
  98. package/dist/components/types/modal/styles.d.ts +1 -0
  99. package/dist/components/types/modal/styles.mjs +135 -0
  100. package/dist/components/types/table/index.d.ts +3 -0
  101. package/dist/{index.js → components/types/table/index.mjs} +1050 -1316
  102. package/dist/components/types/table/modal/actions.d.ts +10 -0
  103. package/dist/components/types/table/modal/actions.mjs +87 -0
  104. package/dist/components/types/table/modal/index.d.ts +2 -0
  105. package/dist/components/types/table/modal/index.mjs +3076 -0
  106. package/dist/components/types/table/modal/styles.d.ts +1 -0
  107. package/dist/components/types/table/modal/styles.mjs +58 -0
  108. package/dist/components/types/table/paginate/index.d.ts +2 -0
  109. package/dist/components/types/table/paginate/index.mjs +96 -0
  110. package/dist/components/types/table/paginate/styles.d.ts +1 -0
  111. package/dist/components/types/table/paginate/styles.mjs +42 -0
  112. package/dist/components/types/table/styles.d.ts +5 -0
  113. package/dist/components/types/table/styles.mjs +268 -0
  114. package/dist/contexts/icon/assets/brands/index.d.ts +2 -0
  115. package/dist/contexts/icon/assets/brands/index.mjs +19 -0
  116. package/dist/contexts/icon/assets/index.d.ts +6 -0
  117. package/dist/contexts/icon/assets/index.mjs +44 -0
  118. package/dist/contexts/icon/assets/regular/index.d.ts +2 -0
  119. package/dist/contexts/icon/assets/regular/index.mjs +19 -0
  120. package/dist/contexts/icon/assets/solid/index.d.ts +2 -0
  121. package/dist/contexts/icon/assets/solid/index.mjs +19 -0
  122. package/dist/contexts/icon/index.d.ts +4 -0
  123. package/dist/contexts/icon/index.mjs +281 -0
  124. package/dist/contexts/icon/styles.d.ts +1 -0
  125. package/dist/contexts/icon/styles.mjs +10 -0
  126. package/dist/contexts/index.d.ts +4 -20
  127. package/dist/contexts/modal/index.d.ts +4 -0
  128. package/dist/contexts/modal/index.mjs +66 -0
  129. package/dist/contexts/modal/styles.d.ts +1 -0
  130. package/dist/contexts/modal/styles.mjs +10 -0
  131. package/dist/contexts/theme/content.d.ts +3 -0
  132. package/dist/contexts/theme/content.mjs +81 -0
  133. package/dist/contexts/theme/index.d.ts +4 -0
  134. package/dist/contexts/theme/index.mjs +201 -0
  135. package/dist/contexts/theme/styles.d.ts +1 -0
  136. package/dist/contexts/theme/styles.mjs +84 -0
  137. package/dist/contexts/tooltip/index.d.ts +6 -0
  138. package/dist/contexts/tooltip/index.mjs +117 -0
  139. package/dist/contexts/tooltip/styles.d.ts +1 -0
  140. package/dist/contexts/tooltip/styles.mjs +46 -0
  141. package/dist/index.d.ts +4 -17
  142. package/dist/interfaces/components/avatar/index.d.ts +6 -0
  143. package/dist/interfaces/components/avatar/index.mjs +1 -0
  144. package/dist/interfaces/components/badge/index.d.ts +3 -0
  145. package/dist/interfaces/components/badge/index.mjs +1 -0
  146. package/dist/interfaces/components/block/index.d.ts +16 -0
  147. package/dist/interfaces/components/block/index.mjs +1 -0
  148. package/dist/interfaces/components/chart/index.d.ts +9 -0
  149. package/dist/interfaces/components/chart/index.mjs +1 -0
  150. package/dist/interfaces/components/credit-card/index.d.ts +16 -0
  151. package/dist/interfaces/components/credit-card/index.mjs +1 -0
  152. package/dist/interfaces/components/form/button/index.d.ts +7 -0
  153. package/dist/interfaces/components/form/button/index.mjs +1 -0
  154. package/dist/interfaces/components/form/datetime/index.d.ts +15 -0
  155. package/dist/interfaces/components/form/datetime/index.mjs +1 -0
  156. package/dist/interfaces/components/form/file/index.d.ts +14 -0
  157. package/dist/interfaces/components/form/file/index.mjs +1 -0
  158. package/dist/interfaces/components/form/index.d.ts +16 -0
  159. package/dist/interfaces/components/form/index.mjs +1 -0
  160. package/dist/interfaces/components/form/input/index.d.ts +17 -0
  161. package/dist/interfaces/components/form/input/index.mjs +1 -0
  162. package/dist/interfaces/components/form/label/index.d.ts +5 -0
  163. package/dist/interfaces/components/form/label/index.mjs +1 -0
  164. package/dist/interfaces/components/form/select/index.d.ts +14 -0
  165. package/dist/interfaces/components/form/select/index.mjs +1 -0
  166. package/dist/interfaces/components/form/textarea/index.d.ts +16 -0
  167. package/dist/interfaces/components/form/textarea/index.mjs +1 -0
  168. package/dist/interfaces/components/index.d.ts +26 -0
  169. package/dist/interfaces/components/index.mjs +1 -0
  170. package/dist/interfaces/components/loading/app/index.d.ts +3 -0
  171. package/dist/interfaces/components/loading/app/index.mjs +1 -0
  172. package/dist/interfaces/components/loading/bar/index.d.ts +7 -0
  173. package/dist/interfaces/components/loading/bar/index.mjs +1 -0
  174. package/dist/interfaces/components/loading/index.d.ts +2 -0
  175. package/dist/interfaces/components/loading/index.mjs +1 -0
  176. package/dist/interfaces/components/logo/index.d.ts +6 -0
  177. package/dist/interfaces/components/logo/index.mjs +1 -0
  178. package/dist/interfaces/components/lottie/index.d.ts +12 -0
  179. package/dist/interfaces/components/lottie/index.mjs +1 -0
  180. package/dist/interfaces/components/modal/index.d.ts +16 -0
  181. package/dist/interfaces/components/modal/index.mjs +1 -0
  182. package/dist/interfaces/components/table/index.d.ts +46 -0
  183. package/dist/interfaces/components/table/index.mjs +1 -0
  184. package/dist/interfaces/components/table/paginate/index.d.ts +7 -0
  185. package/dist/interfaces/components/table/paginate/index.mjs +1 -0
  186. package/dist/interfaces/contexts/icon/index.d.ts +3 -0
  187. package/dist/interfaces/contexts/icon/index.mjs +1 -0
  188. package/dist/interfaces/contexts/index.d.ts +8 -0
  189. package/dist/interfaces/contexts/index.mjs +1 -0
  190. package/dist/interfaces/contexts/modal/index.d.ts +16 -0
  191. package/dist/interfaces/contexts/modal/index.mjs +2 -0
  192. package/dist/interfaces/contexts/theme/index.d.ts +42 -0
  193. package/dist/interfaces/contexts/theme/index.mjs +1 -0
  194. package/dist/interfaces/contexts/tooltip/index.d.ts +3 -0
  195. package/dist/interfaces/contexts/tooltip/index.mjs +1 -0
  196. package/dist/interfaces/index.d.ts +2 -12
  197. package/dist/styled.d.ts +6 -0
  198. package/dist/tsup.config.d.ts +2 -0
  199. package/package.json +13 -7
  200. package/dist/components/index.d.mts +0 -10
  201. package/dist/contexts/index.d.mts +0 -20
  202. package/dist/contexts/index.js +0 -525
  203. package/dist/index-BhaGW0O1.d.ts +0 -601
  204. package/dist/index-BxA8LyyD.d.mts +0 -68
  205. package/dist/index-DDi0w5pw.d.mts +0 -601
  206. package/dist/index-DT7VKE7H.d.ts +0 -68
  207. package/dist/index-Da-DtPS-.d.mts +0 -29
  208. package/dist/index-Da-DtPS-.d.ts +0 -29
  209. package/dist/index.d.mts +0 -17
  210. package/dist/interfaces/index.d.mts +0 -12
  211. package/dist/interfaces/index.js +0 -19
@@ -1,10 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { p as IComponent } from '../index-BhaGW0O1.js';
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-BhaGW0O1.js';
4
- export { M as Modal } from '../index-Da-DtPS-.js';
5
- import 'react';
6
- import 'react-hook-form';
7
-
8
- declare function Component(props: IComponent): react_jsx_runtime.JSX.Element;
9
-
10
- export { Component };
1
+ import { IComponent } from "@interfaces";
2
+ export * from "./types";
3
+ export declare function Component(props: IComponent): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const RowContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ "use client";
3
+
4
+ // components/styles.tsx
5
+ import styled from "styled-components";
6
+ var Container = styled.div`
7
+ display: flex;
8
+ flex-direction: column;
9
+ gap: 1rem;
10
+ `;
11
+ var RowContainer = styled.div`
12
+ display: flex;
13
+ flex-direction: row;
14
+ align-items: stretch;
15
+ gap: 1rem;
16
+ flex-wrap: wrap;
17
+ `;
18
+ export {
19
+ Container,
20
+ RowContainer
21
+ };
@@ -0,0 +1,2 @@
1
+ import { IAvatar } from "@interfaces";
2
+ export declare function Avatar(props: IAvatar): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,88 @@
1
+ "use client";
2
+ "use client";
3
+
4
+ // components/types/avatar/index.tsx
5
+ import { useRef, useState } from "react";
6
+
7
+ // components/types/avatar/styles.tsx
8
+ import styled from "styled-components";
9
+ var Container = styled.div`
10
+ width: ${({ size }) => size || "2.3rem"};
11
+ height: ${({ size }) => size || "2.3rem"};
12
+ border-radius: ${({ size }) => size || "2.3rem"};
13
+ border: 2px solid ${({ theme }) => theme.t1};
14
+ background: ${({ color }) => color};
15
+ display: flex;
16
+ align-items: center;
17
+ justify-content: center;
18
+ cursor: ${({ onClick }) => onClick ? "pointer" : "default"};
19
+ transition: ease .2s;
20
+ position: relative;
21
+ font-size: ${({ width }) => width / 2.5}px;
22
+ font-weight: 500;
23
+ color: ${({ theme }) => theme.primary};
24
+
25
+ span {
26
+ position: relative;
27
+ z-index: 1;
28
+ }
29
+
30
+ &::before {
31
+ content: "";
32
+ position: absolute;
33
+ width: 100%;
34
+ height: 100%;
35
+ transition: ease .2s;
36
+ background: ${({ theme }) => theme.t03};
37
+ border-radius: ${({ size }) => size || "2.3rem"};
38
+ z-index: 0;
39
+ }
40
+
41
+ &::after {
42
+ content: "";
43
+ position: absolute;
44
+ width: 100%;
45
+ height: 100%;
46
+ transition: ease .2s;
47
+ background: ${({ theme }) => theme.t05};
48
+ border-radius: ${({ size }) => size || "2.3rem"};
49
+ z-index: 0;
50
+ }
51
+
52
+ &:hover {
53
+ &::before {
54
+ transform: scale(1.6);
55
+ }
56
+
57
+ &::after {
58
+ transform: scale(1.3);
59
+ }
60
+ }
61
+ `;
62
+
63
+ // components/types/avatar/index.tsx
64
+ import _ from "lodash";
65
+ import { jsx } from "react/jsx-runtime";
66
+ function Avatar(props) {
67
+ const containerRef = useRef({});
68
+ const [color, setColor] = useState("");
69
+ const name = () => {
70
+ const [first, secound] = _.split(props.name, " ") || [];
71
+ if (first && secound) return `${first} ${secound}`;
72
+ if (first) return first;
73
+ return "IZ";
74
+ };
75
+ return /* @__PURE__ */ jsx(
76
+ Container,
77
+ {
78
+ ref: containerRef,
79
+ color,
80
+ width: containerRef.current.offsetWidth,
81
+ ...props,
82
+ children: /* @__PURE__ */ jsx("span", { children: _.upperCase(name()) })
83
+ }
84
+ );
85
+ }
86
+ export {
87
+ Avatar
88
+ };
@@ -0,0 +1 @@
1
+ export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string;
@@ -0,0 +1,61 @@
1
+ "use client";
2
+ "use client";
3
+
4
+ // components/types/avatar/styles.tsx
5
+ import styled from "styled-components";
6
+ var Container = styled.div`
7
+ width: ${({ size }) => size || "2.3rem"};
8
+ height: ${({ size }) => size || "2.3rem"};
9
+ border-radius: ${({ size }) => size || "2.3rem"};
10
+ border: 2px solid ${({ theme }) => theme.t1};
11
+ background: ${({ color }) => color};
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ cursor: ${({ onClick }) => onClick ? "pointer" : "default"};
16
+ transition: ease .2s;
17
+ position: relative;
18
+ font-size: ${({ width }) => width / 2.5}px;
19
+ font-weight: 500;
20
+ color: ${({ theme }) => theme.primary};
21
+
22
+ span {
23
+ position: relative;
24
+ z-index: 1;
25
+ }
26
+
27
+ &::before {
28
+ content: "";
29
+ position: absolute;
30
+ width: 100%;
31
+ height: 100%;
32
+ transition: ease .2s;
33
+ background: ${({ theme }) => theme.t03};
34
+ border-radius: ${({ size }) => size || "2.3rem"};
35
+ z-index: 0;
36
+ }
37
+
38
+ &::after {
39
+ content: "";
40
+ position: absolute;
41
+ width: 100%;
42
+ height: 100%;
43
+ transition: ease .2s;
44
+ background: ${({ theme }) => theme.t05};
45
+ border-radius: ${({ size }) => size || "2.3rem"};
46
+ z-index: 0;
47
+ }
48
+
49
+ &:hover {
50
+ &::before {
51
+ transform: scale(1.6);
52
+ }
53
+
54
+ &::after {
55
+ transform: scale(1.3);
56
+ }
57
+ }
58
+ `;
59
+ export {
60
+ Container
61
+ };
@@ -0,0 +1,2 @@
1
+ import { IBadge } from "@interfaces";
2
+ export declare function Badge(props: IBadge): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,324 @@
1
+ "use client";
2
+ "use client";
3
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
4
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
5
+ }) : x)(function(x) {
6
+ if (typeof require !== "undefined") return require.apply(this, arguments);
7
+ throw Error('Dynamic require of "' + x + '" is not supported');
8
+ });
9
+
10
+ // components/types/badge/styles.tsx
11
+ import styled from "styled-components";
12
+ var Container = styled.div`
13
+ .content {
14
+ display: inline-flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+ height: 1.8rem;
18
+ padding: 0 2rem;
19
+ position: relative;
20
+
21
+ div {
22
+ position: relative;
23
+ z-index: 1;
24
+ color: ${({ theme, color }) => theme[color]};
25
+ font-size: .8rem;
26
+ font-weight: 500;
27
+ text-transform: capitalize;
28
+ }
29
+
30
+ &:before {
31
+ content: "";
32
+ position: absolute;
33
+ top: 0;
34
+ left: 0;
35
+ width: 100%;
36
+ height: 100%;
37
+ border-radius: 5px;
38
+ background: ${({ theme, color }) => theme[color]};
39
+ opacity: .2;
40
+ }
41
+ }
42
+ `;
43
+
44
+ // contexts/icon/index.tsx
45
+ import { createContext as createContext2, useContext as useContext2, useEffect as useEffect2, useState as useState2 } from "react";
46
+
47
+ // contexts/theme/index.tsx
48
+ import { createContext, useContext, useState } from "react";
49
+ import { ThemeProvider } from "styled-components";
50
+
51
+ // contexts/theme/styles.tsx
52
+ import styled2 from "styled-components";
53
+ var Switcher = styled2.div`
54
+ width: 3rem;
55
+ height: 1.5rem;
56
+ border-radius: 1rem;
57
+ border: 2px solid ${({ theme }) => theme.t05};
58
+ overflow: hidden;
59
+ display: flex;
60
+ align-items: center;
61
+ cursor: pointer;
62
+ position: relative;
63
+
64
+ i {
65
+ color: ${({ theme }) => theme.t6};
66
+ position: absolute;
67
+ transform: translateY(-50%);
68
+ font-size: .9rem;
69
+ z-index: 0;
70
+ transition: ease .8s;
71
+
72
+ &:first-child {
73
+ left: .2rem;
74
+ top: 50%;
75
+ opacity: ${(props) => props["data-theme"] === "light" ? 0 : 1};
76
+ }
77
+
78
+ &:last-child {
79
+ right: .2rem;
80
+ top: 50%;
81
+ opacity: ${(props) => props["data-theme"] === "light" ? 1 : 0};
82
+ }
83
+ }
84
+
85
+ .switcher {
86
+ width: 1rem;
87
+ height: 1rem;
88
+ border-radius: 1rem;
89
+ position: relative;
90
+ transition: ease .3s;
91
+ transform: ${(props) => props["data-theme"] === "light" ? "transform: translateX(.2rem)" : "translateX(1.6rem)"};
92
+ z-index: 1;
93
+
94
+ div {
95
+ width: 100%;
96
+ height: 100%;
97
+ background: ${({ theme }) => theme.primary};
98
+ border-radius: 1rem;
99
+ position: relative;
100
+ z-index: 2;
101
+ }
102
+
103
+ &:after {
104
+ content: "";
105
+ position: absolute;
106
+ width: 100%;
107
+ height: 100%;
108
+ border-radius: 1rem;
109
+ transform: scale(1.8);
110
+ background: ${({ theme }) => theme.t05};
111
+ top: 0;
112
+ left: 0;
113
+ z-index: 1;
114
+ }
115
+
116
+ &:before {
117
+ content: "";
118
+ position: absolute;
119
+ width: 100%;
120
+ height: 100%;
121
+ border-radius: 1rem;
122
+ transform: scale(3);
123
+ background: ${({ theme }) => theme.t05};
124
+ top: 0;
125
+ left: 0;
126
+ z-index: 0;
127
+ }
128
+ }
129
+ `;
130
+
131
+ // contexts/theme/content.tsx
132
+ var CommonTheme = {
133
+ secondary: "#5869da",
134
+ tertiary: "#629dfd33",
135
+ positive: "#65c965",
136
+ negative: "#FF334E",
137
+ mobileMaxWidth: "650px",
138
+ mobileMinWidth: "315px"
139
+ };
140
+ var Themes = {
141
+ light: {
142
+ primary: "#ffffff",
143
+ reverse: "#353535",
144
+ tooltip: "#f2f2f2",
145
+ t8: "#000000cc",
146
+ t7: "#000000b3",
147
+ t6: "#00000099",
148
+ t5: "#00000080",
149
+ t4: "#00000066",
150
+ t3: "#0000004d",
151
+ t2: "#00000033",
152
+ t1: "#0000001a",
153
+ t08: "#00000014",
154
+ t05: "#0000000d",
155
+ t03: "#00000007",
156
+ t02: "#00000005",
157
+ t01: "#00000002",
158
+ lgrad: `linear-gradient(
159
+ to right,
160
+ #dadef7 0%,
161
+ #dee2f8 5%,
162
+ #e2e5f9 10%,
163
+ #e6e9fa 20%,
164
+ #eaedfb 30%,
165
+ #eff0fb 60%,
166
+ #f3f4fc 80%,
167
+ #f7f8fd 90%,
168
+ #fbfbfe 100%
169
+ )`,
170
+ maingrad: "linear-gradient(330deg, #b9c0ff7a 0%, #ffffff 100%)",
171
+ ...CommonTheme
172
+ },
173
+ dark: {
174
+ primary: "#333333",
175
+ reverse: "#b45252",
176
+ tooltip: "#3d3d3d",
177
+ t8: "#ffffffcc",
178
+ t7: "#ffffffb3",
179
+ t6: "#ffffff99",
180
+ t5: "#ffffff80",
181
+ t4: "#ffffff66",
182
+ t3: "#ffffff4d",
183
+ t2: "#ffffff33",
184
+ t1: "#ffffff1a",
185
+ t08: "#ffffff14",
186
+ t05: "#ffffff0d",
187
+ t03: "#ffffff07",
188
+ t02: "#ffffff05",
189
+ t01: "#ffffff02",
190
+ lgrad: `linear-gradient(
191
+ to right,
192
+ #3d485c 0%,
193
+ #3c4657 5%,
194
+ #3b4353 10%,
195
+ #3a414e 20%,
196
+ #393f4a 30%,
197
+ #373c45 60%,
198
+ #363a41 80%,
199
+ #35383c 90%,
200
+ #343538 100%
201
+ )`,
202
+ maingrad: "linear-gradient(330deg, #1d1e27 0%, #333333 100%)",
203
+ ...CommonTheme
204
+ }
205
+ };
206
+
207
+ // contexts/theme/index.tsx
208
+ import { jsx, jsxs } from "react/jsx-runtime";
209
+ var ThemeContext = createContext({});
210
+ var useTheme = () => useContext(ThemeContext);
211
+
212
+ // contexts/icon/index.tsx
213
+ import _ from "lodash";
214
+
215
+ // contexts/icon/assets/brands/index.tsx
216
+ var req = __require.context("./", false, /\.svg$/);
217
+ var brands = {};
218
+ req.keys().forEach((key) => {
219
+ const name = key.replace("./", "").replace(".svg", "");
220
+ brands[name] = req(key).default;
221
+ });
222
+
223
+ // contexts/icon/assets/regular/index.tsx
224
+ var req2 = __require.context("./", false, /\.svg$/);
225
+ var regular = {};
226
+ req2.keys().forEach((key) => {
227
+ const name = key.replace("./", "").replace(".svg", "");
228
+ regular[name] = req2(key).default;
229
+ });
230
+
231
+ // contexts/icon/assets/solid/index.tsx
232
+ var req3 = __require.context("./", false, /\.svg$/);
233
+ var solid = {};
234
+ req3.keys().forEach((key) => {
235
+ const name = key.replace("./", "").replace(".svg", "");
236
+ solid[name] = req3(key).default;
237
+ });
238
+
239
+ // contexts/icon/index.tsx
240
+ import { jsx as jsx2 } from "react/jsx-runtime";
241
+ var IconContext = createContext2({});
242
+
243
+ // contexts/tooltip/index.tsx
244
+ import { createContext as createContext3, useContext as useContext3, useEffect as useEffect3, useState as useState3 } from "react";
245
+
246
+ // contexts/tooltip/styles.tsx
247
+ import styled3 from "styled-components";
248
+ var Tooltip = styled3.div`
249
+ position: fixed;
250
+ background: ${({ theme }) => theme.tooltip};
251
+ color: ${({ theme }) => theme.t6};
252
+ font-size: .8rem;
253
+ font-weight: 500;
254
+ text-align: center;
255
+ padding: .3rem .8rem;
256
+ border-radius: 5px;
257
+ transform: translateX(-50%);
258
+ z-index: 10;
259
+ border: 1px solid ${({ theme }) => theme.t05};
260
+
261
+ &::before {
262
+ content: "";
263
+ position: absolute;
264
+ bottom: -9px;
265
+ left: 50%;
266
+ transform: translateX(-50%);
267
+ width: 0;
268
+ height: 0;
269
+ border-left: 8px solid transparent;
270
+ border-right: 8px solid transparent;
271
+ border-top: 8px solid ${({ theme }) => theme.t05};
272
+ }
273
+
274
+ &::after {
275
+ content: "";
276
+ position: absolute;
277
+ bottom: -8px;
278
+ left: 50%;
279
+ transform: translateX(-50%);
280
+ width: 0;
281
+ height: 0;
282
+ border-left: 8px solid transparent;
283
+ border-right: 8px solid transparent;
284
+ border-top: 8px solid ${({ theme }) => theme.tooltip};
285
+ }
286
+ `;
287
+
288
+ // contexts/tooltip/index.tsx
289
+ import _2 from "lodash";
290
+ import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
291
+ var TooltipContext = createContext3({});
292
+
293
+ // contexts/modal/index.tsx
294
+ import { createContext as createContext4, useContext as useContext4, useEffect as useEffect4, useState as useState4 } from "react";
295
+ import { usePathname } from "next/navigation";
296
+
297
+ // contexts/modal/styles.tsx
298
+ import styled4 from "styled-components";
299
+ var Container2 = styled4.div`
300
+
301
+ `;
302
+
303
+ // contexts/modal/index.tsx
304
+ import _3 from "lodash";
305
+ import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
306
+ var ModalContext = createContext4({});
307
+
308
+ // components/types/badge/index.tsx
309
+ import _4 from "lodash";
310
+ import { jsx as jsx5 } from "react/jsx-runtime";
311
+ function Badge(props) {
312
+ const { content } = useTheme();
313
+ const status = {
314
+ ATIVO: "positive",
315
+ DESATIVADO: "negative",
316
+ ESTAVEL: "positive",
317
+ INSTAVEL: "negative",
318
+ REGULAR: "negative"
319
+ };
320
+ return /* @__PURE__ */ jsx5(Container, { color: status[props.value] || content.t3, children: /* @__PURE__ */ jsx5("div", { className: "content", children: /* @__PURE__ */ jsx5("div", { children: _4.lowerCase(props.value) }) }) });
321
+ }
322
+ export {
323
+ Badge
324
+ };
@@ -0,0 +1 @@
1
+ export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", any> & string;
@@ -0,0 +1,39 @@
1
+ "use client";
2
+ "use client";
3
+
4
+ // components/types/badge/styles.tsx
5
+ import styled from "styled-components";
6
+ var Container = styled.div`
7
+ .content {
8
+ display: inline-flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ height: 1.8rem;
12
+ padding: 0 2rem;
13
+ position: relative;
14
+
15
+ div {
16
+ position: relative;
17
+ z-index: 1;
18
+ color: ${({ theme, color }) => theme[color]};
19
+ font-size: .8rem;
20
+ font-weight: 500;
21
+ text-transform: capitalize;
22
+ }
23
+
24
+ &:before {
25
+ content: "";
26
+ position: absolute;
27
+ top: 0;
28
+ left: 0;
29
+ width: 100%;
30
+ height: 100%;
31
+ border-radius: 5px;
32
+ background: ${({ theme, color }) => theme[color]};
33
+ opacity: .2;
34
+ }
35
+ }
36
+ `;
37
+ export {
38
+ Container
39
+ };
@@ -0,0 +1,2 @@
1
+ import { IBlock } from "@interfaces";
2
+ export declare function Block(props: IBlock): import("react/jsx-runtime").JSX.Element;