@gustavo-valsechi/client 1.3.29 → 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 (201) hide show
  1. package/dist/components/index.js +14 -3070
  2. package/dist/components/index.mjs +12 -3082
  3. package/dist/components/styles.js +3 -4
  4. package/dist/components/styles.mjs +3 -4
  5. package/dist/components/types/avatar/index.js +4 -62
  6. package/dist/components/types/avatar/index.mjs +3 -61
  7. package/dist/components/types/avatar/styles.js +2 -3
  8. package/dist/components/types/avatar/styles.mjs +2 -3
  9. package/dist/components/types/badge/index.js +5 -304
  10. package/dist/components/types/badge/index.mjs +5 -308
  11. package/dist/components/types/badge/styles.js +2 -3
  12. package/dist/components/types/badge/styles.mjs +2 -3
  13. package/dist/components/types/block/index.js +9 -3046
  14. package/dist/components/types/block/index.mjs +9 -3066
  15. package/dist/components/types/block/styles.js +3 -4
  16. package/dist/components/types/block/styles.mjs +3 -4
  17. package/dist/components/types/chart/index.js +13 -284
  18. package/dist/components/types/chart/index.mjs +13 -288
  19. package/dist/components/types/chart/styles.js +2 -3
  20. package/dist/components/types/chart/styles.mjs +2 -2
  21. package/dist/components/types/credit-card/assets/index.js +2 -3
  22. package/dist/components/types/credit-card/assets/index.mjs +2 -2
  23. package/dist/components/types/credit-card/card/index.js +9 -681
  24. package/dist/components/types/credit-card/card/index.mjs +7 -701
  25. package/dist/components/types/credit-card/card/styles.js +2 -3
  26. package/dist/components/types/credit-card/card/styles.mjs +2 -3
  27. package/dist/components/types/credit-card/functions/index.js +4 -44
  28. package/dist/components/types/credit-card/functions/index.mjs +3 -41
  29. package/dist/components/types/credit-card/functions/styles.js +2 -3
  30. package/dist/components/types/credit-card/functions/styles.mjs +2 -3
  31. package/dist/components/types/credit-card/index.js +7 -803
  32. package/dist/components/types/credit-card/index.mjs +7 -823
  33. package/dist/components/types/credit-card/styles.js +2 -3
  34. package/dist/components/types/credit-card/styles.mjs +2 -3
  35. package/dist/components/types/credit-card/tools/index.js +7 -527
  36. package/dist/components/types/credit-card/tools/index.mjs +8 -550
  37. package/dist/components/types/form/index.js +24 -659
  38. package/dist/components/types/form/index.mjs +20 -655
  39. package/dist/components/types/form/styles.js +2 -3
  40. package/dist/components/types/form/styles.mjs +2 -3
  41. package/dist/components/types/form/types/button/index.js +7 -149
  42. package/dist/components/types/form/types/button/index.mjs +6 -146
  43. package/dist/components/types/form/types/button/loading/index.js +3 -104
  44. package/dist/components/types/form/types/button/loading/index.mjs +2 -91
  45. package/dist/components/types/form/types/button/loading/styles.js +2 -3
  46. package/dist/components/types/form/types/button/loading/styles.mjs +2 -3
  47. package/dist/components/types/form/types/button/styles.js +2 -3
  48. package/dist/components/types/form/types/button/styles.mjs +2 -3
  49. package/dist/components/types/form/types/datetime/index.js +7 -63
  50. package/dist/components/types/form/types/datetime/index.mjs +6 -60
  51. package/dist/components/types/form/types/datetime/styles.js +2 -3
  52. package/dist/components/types/form/types/datetime/styles.mjs +2 -3
  53. package/dist/components/types/form/types/file/index.js +9 -62
  54. package/dist/components/types/form/types/file/index.mjs +7 -50
  55. package/dist/components/types/form/types/file/styles.js +2 -3
  56. package/dist/components/types/form/types/file/styles.mjs +2 -3
  57. package/dist/components/types/form/types/index.js +16 -625
  58. package/dist/components/types/form/types/index.mjs +8 -601
  59. package/dist/components/types/form/types/input/index.js +10 -72
  60. package/dist/components/types/form/types/input/index.mjs +7 -69
  61. package/dist/components/types/form/types/input/styles.js +2 -3
  62. package/dist/components/types/form/types/input/styles.mjs +2 -3
  63. package/dist/components/types/form/types/label/index.js +3 -23
  64. package/dist/components/types/form/types/label/index.mjs +2 -10
  65. package/dist/components/types/form/types/label/styles.js +2 -3
  66. package/dist/components/types/form/types/label/styles.mjs +2 -3
  67. package/dist/components/types/form/types/select/index.js +11 -79
  68. package/dist/components/types/form/types/select/index.mjs +8 -76
  69. package/dist/components/types/form/types/select/styles.js +2 -3
  70. package/dist/components/types/form/types/select/styles.mjs +2 -3
  71. package/dist/components/types/form/types/textarea/index.js +7 -62
  72. package/dist/components/types/form/types/textarea/index.mjs +6 -59
  73. package/dist/components/types/form/types/textarea/styles.js +2 -3
  74. package/dist/components/types/form/types/textarea/styles.mjs +2 -3
  75. package/dist/components/types/index.js +24 -3072
  76. package/dist/components/types/index.mjs +12 -3093
  77. package/dist/components/types/loading/app/index.js +4 -132
  78. package/dist/components/types/loading/app/index.mjs +5 -121
  79. package/dist/components/types/loading/app/styles.js +2 -3
  80. package/dist/components/types/loading/app/styles.mjs +2 -3
  81. package/dist/components/types/loading/bar/index.js +3 -37
  82. package/dist/components/types/loading/bar/index.mjs +2 -24
  83. package/dist/components/types/loading/bar/styles.js +2 -3
  84. package/dist/components/types/loading/bar/styles.mjs +2 -3
  85. package/dist/components/types/loading/index.js +6 -173
  86. package/dist/components/types/loading/index.mjs +3 -154
  87. package/dist/components/types/logo/index.js +3 -35
  88. package/dist/components/types/logo/index.mjs +2 -22
  89. package/dist/components/types/logo/styles.js +2 -3
  90. package/dist/components/types/logo/styles.mjs +2 -3
  91. package/dist/components/types/lottie/animations/index.js +13 -8
  92. package/dist/components/types/lottie/animations/index.mjs +3 -5
  93. package/dist/components/types/lottie/index.js +7 -39
  94. package/dist/components/types/lottie/index.mjs +6 -36
  95. package/dist/components/types/lottie/styles.js +2 -3
  96. package/dist/components/types/lottie/styles.mjs +2 -3
  97. package/dist/components/types/modal/index.js +18 -2283
  98. package/dist/components/types/modal/index.mjs +18 -2309
  99. package/dist/components/types/modal/styles.js +2 -3
  100. package/dist/components/types/modal/styles.mjs +2 -3
  101. package/dist/components/types/table/index.js +45 -2955
  102. package/dist/components/types/table/index.mjs +40 -2983
  103. package/dist/components/types/table/modal/actions.js +4 -82
  104. package/dist/components/types/table/modal/actions.mjs +3 -78
  105. package/dist/components/types/table/modal/index.js +22 -3006
  106. package/dist/components/types/table/modal/index.mjs +19 -3033
  107. package/dist/components/types/table/modal/styles.js +2 -3
  108. package/dist/components/types/table/modal/styles.mjs +2 -3
  109. package/dist/components/types/table/paginate/index.js +4 -43
  110. package/dist/components/types/table/paginate/index.mjs +3 -40
  111. package/dist/components/types/table/paginate/styles.js +2 -3
  112. package/dist/components/types/table/paginate/styles.mjs +2 -3
  113. package/dist/components/types/table/styles.js +2 -3
  114. package/dist/components/types/table/styles.mjs +2 -3
  115. package/dist/contexts/icon/assets/brands/index.js +3 -4
  116. package/dist/contexts/icon/assets/brands/index.mjs +3 -10
  117. package/dist/contexts/icon/assets/index.js +17 -34
  118. package/dist/contexts/icon/assets/index.mjs +7 -38
  119. package/dist/contexts/icon/assets/regular/index.js +3 -4
  120. package/dist/contexts/icon/assets/regular/index.mjs +3 -10
  121. package/dist/contexts/icon/assets/solid/index.js +3 -4
  122. package/dist/contexts/icon/assets/solid/index.mjs +3 -10
  123. package/dist/contexts/icon/index.js +15 -217
  124. package/dist/contexts/icon/index.mjs +15 -223
  125. package/dist/contexts/icon/styles.js +2 -3
  126. package/dist/contexts/icon/styles.mjs +2 -2
  127. package/dist/contexts/index.js +10 -504
  128. package/dist/contexts/index.mjs +5 -486
  129. package/dist/contexts/modal/index.js +8 -16
  130. package/dist/contexts/modal/index.mjs +7 -15
  131. package/dist/contexts/modal/styles.js +2 -3
  132. package/dist/contexts/modal/styles.mjs +2 -2
  133. package/dist/contexts/theme/content.js +3 -4
  134. package/dist/contexts/theme/content.mjs +3 -3
  135. package/dist/contexts/theme/index.js +11 -178
  136. package/dist/contexts/theme/index.mjs +7 -164
  137. package/dist/contexts/theme/styles.js +2 -3
  138. package/dist/contexts/theme/styles.mjs +2 -2
  139. package/dist/contexts/tooltip/index.js +7 -51
  140. package/dist/contexts/tooltip/index.mjs +6 -50
  141. package/dist/contexts/tooltip/styles.js +2 -3
  142. package/dist/contexts/tooltip/styles.mjs +2 -2
  143. package/dist/index.js +9 -3325
  144. package/dist/index.mjs +5 -3312
  145. package/dist/interfaces/components/avatar/index.js +1 -2
  146. package/dist/interfaces/components/avatar/index.mjs +1 -0
  147. package/dist/interfaces/components/badge/index.js +1 -2
  148. package/dist/interfaces/components/badge/index.mjs +1 -0
  149. package/dist/interfaces/components/block/index.js +1 -2
  150. package/dist/interfaces/components/block/index.mjs +1 -0
  151. package/dist/interfaces/components/chart/index.js +1 -2
  152. package/dist/interfaces/components/chart/index.mjs +1 -0
  153. package/dist/interfaces/components/credit-card/index.js +1 -2
  154. package/dist/interfaces/components/credit-card/index.mjs +1 -0
  155. package/dist/interfaces/components/form/button/index.js +1 -2
  156. package/dist/interfaces/components/form/button/index.mjs +1 -0
  157. package/dist/interfaces/components/form/datetime/index.js +1 -2
  158. package/dist/interfaces/components/form/datetime/index.mjs +1 -0
  159. package/dist/interfaces/components/form/file/index.js +1 -2
  160. package/dist/interfaces/components/form/file/index.mjs +1 -0
  161. package/dist/interfaces/components/form/index.js +19 -2
  162. package/dist/interfaces/components/form/index.mjs +8 -0
  163. package/dist/interfaces/components/form/input/index.js +1 -2
  164. package/dist/interfaces/components/form/input/index.mjs +1 -0
  165. package/dist/interfaces/components/form/label/index.js +1 -2
  166. package/dist/interfaces/components/form/label/index.mjs +1 -0
  167. package/dist/interfaces/components/form/select/index.js +1 -2
  168. package/dist/interfaces/components/form/select/index.mjs +1 -0
  169. package/dist/interfaces/components/form/textarea/index.js +1 -2
  170. package/dist/interfaces/components/form/textarea/index.mjs +1 -0
  171. package/dist/interfaces/components/index.js +27 -2
  172. package/dist/interfaces/components/index.mjs +12 -0
  173. package/dist/interfaces/components/loading/app/index.js +1 -2
  174. package/dist/interfaces/components/loading/app/index.mjs +1 -0
  175. package/dist/interfaces/components/loading/bar/index.js +1 -2
  176. package/dist/interfaces/components/loading/bar/index.mjs +1 -0
  177. package/dist/interfaces/components/loading/index.js +9 -2
  178. package/dist/interfaces/components/loading/index.mjs +3 -0
  179. package/dist/interfaces/components/logo/index.js +1 -2
  180. package/dist/interfaces/components/logo/index.mjs +1 -0
  181. package/dist/interfaces/components/lottie/index.js +1 -2
  182. package/dist/interfaces/components/lottie/index.mjs +1 -0
  183. package/dist/interfaces/components/modal/index.js +1 -2
  184. package/dist/interfaces/components/modal/index.mjs +1 -0
  185. package/dist/interfaces/components/table/index.js +7 -2
  186. package/dist/interfaces/components/table/index.mjs +2 -0
  187. package/dist/interfaces/components/table/paginate/index.js +1 -2
  188. package/dist/interfaces/components/table/paginate/index.mjs +1 -0
  189. package/dist/interfaces/contexts/icon/index.js +1 -2
  190. package/dist/interfaces/contexts/icon/index.mjs +1 -0
  191. package/dist/interfaces/contexts/index.js +13 -2
  192. package/dist/interfaces/contexts/index.mjs +5 -0
  193. package/dist/interfaces/contexts/modal/index.js +1 -2
  194. package/dist/interfaces/contexts/modal/index.mjs +1 -0
  195. package/dist/interfaces/contexts/theme/index.js +1 -2
  196. package/dist/interfaces/contexts/theme/index.mjs +1 -0
  197. package/dist/interfaces/contexts/tooltip/index.js +1 -2
  198. package/dist/interfaces/contexts/tooltip/index.mjs +1 -0
  199. package/dist/interfaces/index.js +9 -2
  200. package/dist/interfaces/index.mjs +3 -0
  201. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  "use strict";
2
3
  "use client";
3
4
  var __create = Object.create;
@@ -27,8 +28,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
28
  mod
28
29
  ));
29
30
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
-
31
- // components/types/block/styles.tsx
32
31
  var styles_exports = {};
33
32
  __export(styles_exports, {
34
33
  Container: () => Container,
@@ -36,7 +35,7 @@ __export(styles_exports, {
36
35
  });
37
36
  module.exports = __toCommonJS(styles_exports);
38
37
  var import_styled_components = __toESM(require("styled-components"));
39
- var Container = import_styled_components.default.div`
38
+ const Container = import_styled_components.default.div`
40
39
  display: flex;
41
40
  flex-direction: column;
42
41
  gap: 1rem;
@@ -54,7 +53,7 @@ var Container = import_styled_components.default.div`
54
53
  color: ${({ theme }) => theme.t6};
55
54
  }
56
55
  `;
57
- var Content = import_styled_components.default.div`
56
+ const Content = import_styled_components.default.div`
58
57
  font-size: 1.5rem;
59
58
  font-weight: 500;
60
59
  color: ${({ theme }) => theme.t7};
@@ -1,8 +1,7 @@
1
1
  "use client";
2
-
3
- // components/types/block/styles.tsx
2
+ "use client";
4
3
  import styled from "styled-components";
5
- var Container = styled.div`
4
+ const Container = styled.div`
6
5
  display: flex;
7
6
  flex-direction: column;
8
7
  gap: 1rem;
@@ -20,7 +19,7 @@ var Container = styled.div`
20
19
  color: ${({ theme }) => theme.t6};
21
20
  }
22
21
  `;
23
- var Content = styled.div`
22
+ const Content = styled.div`
24
23
  font-size: 1.5rem;
25
24
  font-weight: 500;
26
25
  color: ${({ theme }) => theme.t7};
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  "use strict";
2
3
  "use client";
3
4
  var __create = Object.create;
@@ -27,298 +28,26 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
28
  mod
28
29
  ));
29
30
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
-
31
- // components/types/chart/index.tsx
32
31
  var chart_exports = {};
33
32
  __export(chart_exports, {
34
33
  Chart: () => Chart
35
34
  });
36
35
  module.exports = __toCommonJS(chart_exports);
37
-
38
- // components/types/chart/styles.tsx
39
- var import_styled_components = __toESM(require("styled-components"));
40
- var Container = import_styled_components.default.div`
41
-
42
- `;
43
-
44
- // contexts/icon/index.tsx
45
- var import_react2 = require("react");
46
-
47
- // contexts/theme/index.tsx
48
- var import_react = require("react");
49
- var import_styled_components3 = require("styled-components");
50
-
51
- // contexts/theme/styles.tsx
52
- var import_styled_components2 = __toESM(require("styled-components"));
53
- var Switcher = import_styled_components2.default.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
36
  var import_jsx_runtime = require("react/jsx-runtime");
209
- var ThemeContext = (0, import_react.createContext)({});
210
- var useTheme = () => (0, import_react.useContext)(ThemeContext);
211
-
212
- // contexts/icon/index.tsx
213
- var import_lodash = __toESM(require("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
- var import_jsx_runtime2 = require("react/jsx-runtime");
241
- var IconContext = (0, import_react2.createContext)({});
242
-
243
- // contexts/tooltip/index.tsx
244
- var import_react3 = require("react");
245
-
246
- // contexts/tooltip/styles.tsx
247
- var import_styled_components4 = __toESM(require("styled-components"));
248
- var Tooltip = import_styled_components4.default.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
- var import_lodash2 = __toESM(require("lodash"));
290
- var import_jsx_runtime3 = require("react/jsx-runtime");
291
- var TooltipContext = (0, import_react3.createContext)({});
292
-
293
- // contexts/modal/index.tsx
294
- var import_react4 = require("react");
295
- var import_navigation = require("next/navigation");
296
-
297
- // contexts/modal/styles.tsx
298
- var import_styled_components5 = __toESM(require("styled-components"));
299
- var Container2 = import_styled_components5.default.div`
300
-
301
- `;
302
-
303
- // contexts/modal/index.tsx
304
- var import_lodash3 = __toESM(require("lodash"));
305
- var import_jsx_runtime4 = require("react/jsx-runtime");
306
- var ModalContext = (0, import_react4.createContext)({});
307
-
308
- // components/types/chart/index.tsx
37
+ var import_styles = require("./styles");
38
+ var import_contexts = require("@contexts");
309
39
  var import_dynamic = __toESM(require("next/dynamic"));
310
- var import_lodash4 = __toESM(require("lodash"));
311
- var import_jsx_runtime5 = require("react/jsx-runtime");
312
- var ApexChart = (0, import_dynamic.default)(() => import("react-apexcharts").then((mod) => mod.default), { ssr: false });
40
+ var import_lodash = __toESM(require("lodash"));
41
+ const ApexChart = (0, import_dynamic.default)(() => import("react-apexcharts").then((mod) => mod.default), { ssr: false });
313
42
  function Chart(props) {
314
- const { content: themeContent } = useTheme();
43
+ const { content: themeContent } = (0, import_contexts.useTheme)();
315
44
  const monitor = props.content || [];
316
- const series = import_lodash4.default.map(props.yAxis, (value, key) => ({
45
+ const series = import_lodash.default.map(props.yAxis, (value, key) => ({
317
46
  name: key || "",
318
- data: import_lodash4.default.map(monitor, (data) => import_lodash4.default.isFunction(value) ? value(data) : 0)
47
+ data: import_lodash.default.map(monitor, (data) => import_lodash.default.isFunction(value) ? value(data) : 0)
319
48
  }));
320
49
  const options = {
321
- colors: import_lodash4.default.map(props.colors || [], (value) => themeContent[value] || value || themeContent.secondary),
50
+ colors: import_lodash.default.map(props.colors || [], (value) => themeContent[value] || value || themeContent.secondary),
322
51
  dataLabels: { enabled: false },
323
52
  stroke: { curve: "smooth", width: 2 },
324
53
  fill: { gradient: { opacityFrom: 0.9, opacityTo: 0.8 } },
@@ -327,14 +56,14 @@ function Chart(props) {
327
56
  yaxis: {
328
57
  min: props.min,
329
58
  max: props.max,
330
- labels: { style: { colors: import_lodash4.default.map(monitor, () => themeContent.t6) } }
59
+ labels: { style: { colors: import_lodash.default.map(monitor, () => themeContent.t6) } }
331
60
  },
332
61
  xaxis: {
333
- categories: import_lodash4.default.map(monitor, (data) => import_lodash4.default.isFunction(props.xAxis) ? props.xAxis(data) : ""),
334
- labels: { style: { colors: import_lodash4.default.map(monitor, () => themeContent.t6) } }
62
+ categories: import_lodash.default.map(monitor, (data) => import_lodash.default.isFunction(props.xAxis) ? props.xAxis(data) : ""),
63
+ labels: { style: { colors: import_lodash.default.map(monitor, () => themeContent.t6) } }
335
64
  }
336
65
  };
337
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Container, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
66
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.Container, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
338
67
  ApexChart,
339
68
  {
340
69
  options,
@@ -1,295 +1,20 @@
1
1
  "use client";
2
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
3
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
4
- }) : x)(function(x) {
5
- if (typeof require !== "undefined") return require.apply(this, arguments);
6
- throw Error('Dynamic require of "' + x + '" is not supported');
7
- });
8
-
9
- // components/types/chart/styles.tsx
10
- import styled from "styled-components";
11
- var Container = styled.div`
12
-
13
- `;
14
-
15
- // contexts/icon/index.tsx
16
- import { createContext as createContext2, useContext as useContext2, useEffect as useEffect2, useState as useState2 } from "react";
17
-
18
- // contexts/theme/index.tsx
19
- import { createContext, useContext, useState } from "react";
20
- import { ThemeProvider } from "styled-components";
21
-
22
- // contexts/theme/styles.tsx
23
- import styled2 from "styled-components";
24
- var Switcher = styled2.div`
25
- width: 3rem;
26
- height: 1.5rem;
27
- border-radius: 1rem;
28
- border: 2px solid ${({ theme }) => theme.t05};
29
- overflow: hidden;
30
- display: flex;
31
- align-items: center;
32
- cursor: pointer;
33
- position: relative;
34
-
35
- i {
36
- color: ${({ theme }) => theme.t6};
37
- position: absolute;
38
- transform: translateY(-50%);
39
- font-size: .9rem;
40
- z-index: 0;
41
- transition: ease .8s;
42
-
43
- &:first-child {
44
- left: .2rem;
45
- top: 50%;
46
- opacity: ${(props) => props["data-theme"] === "light" ? 0 : 1};
47
- }
48
-
49
- &:last-child {
50
- right: .2rem;
51
- top: 50%;
52
- opacity: ${(props) => props["data-theme"] === "light" ? 1 : 0};
53
- }
54
- }
55
-
56
- .switcher {
57
- width: 1rem;
58
- height: 1rem;
59
- border-radius: 1rem;
60
- position: relative;
61
- transition: ease .3s;
62
- transform: ${(props) => props["data-theme"] === "light" ? "transform: translateX(.2rem)" : "translateX(1.6rem)"};
63
- z-index: 1;
64
-
65
- div {
66
- width: 100%;
67
- height: 100%;
68
- background: ${({ theme }) => theme.primary};
69
- border-radius: 1rem;
70
- position: relative;
71
- z-index: 2;
72
- }
73
-
74
- &:after {
75
- content: "";
76
- position: absolute;
77
- width: 100%;
78
- height: 100%;
79
- border-radius: 1rem;
80
- transform: scale(1.8);
81
- background: ${({ theme }) => theme.t05};
82
- top: 0;
83
- left: 0;
84
- z-index: 1;
85
- }
86
-
87
- &:before {
88
- content: "";
89
- position: absolute;
90
- width: 100%;
91
- height: 100%;
92
- border-radius: 1rem;
93
- transform: scale(3);
94
- background: ${({ theme }) => theme.t05};
95
- top: 0;
96
- left: 0;
97
- z-index: 0;
98
- }
99
- }
100
- `;
101
-
102
- // contexts/theme/content.tsx
103
- var CommonTheme = {
104
- secondary: "#5869da",
105
- tertiary: "#629dfd33",
106
- positive: "#65c965",
107
- negative: "#FF334E",
108
- mobileMaxWidth: "650px",
109
- mobileMinWidth: "315px"
110
- };
111
- var Themes = {
112
- light: {
113
- primary: "#ffffff",
114
- reverse: "#353535",
115
- tooltip: "#f2f2f2",
116
- t8: "#000000cc",
117
- t7: "#000000b3",
118
- t6: "#00000099",
119
- t5: "#00000080",
120
- t4: "#00000066",
121
- t3: "#0000004d",
122
- t2: "#00000033",
123
- t1: "#0000001a",
124
- t08: "#00000014",
125
- t05: "#0000000d",
126
- t03: "#00000007",
127
- t02: "#00000005",
128
- t01: "#00000002",
129
- lgrad: `linear-gradient(
130
- to right,
131
- #dadef7 0%,
132
- #dee2f8 5%,
133
- #e2e5f9 10%,
134
- #e6e9fa 20%,
135
- #eaedfb 30%,
136
- #eff0fb 60%,
137
- #f3f4fc 80%,
138
- #f7f8fd 90%,
139
- #fbfbfe 100%
140
- )`,
141
- maingrad: "linear-gradient(330deg, #b9c0ff7a 0%, #ffffff 100%)",
142
- ...CommonTheme
143
- },
144
- dark: {
145
- primary: "#333333",
146
- reverse: "#b45252",
147
- tooltip: "#3d3d3d",
148
- t8: "#ffffffcc",
149
- t7: "#ffffffb3",
150
- t6: "#ffffff99",
151
- t5: "#ffffff80",
152
- t4: "#ffffff66",
153
- t3: "#ffffff4d",
154
- t2: "#ffffff33",
155
- t1: "#ffffff1a",
156
- t08: "#ffffff14",
157
- t05: "#ffffff0d",
158
- t03: "#ffffff07",
159
- t02: "#ffffff05",
160
- t01: "#ffffff02",
161
- lgrad: `linear-gradient(
162
- to right,
163
- #3d485c 0%,
164
- #3c4657 5%,
165
- #3b4353 10%,
166
- #3a414e 20%,
167
- #393f4a 30%,
168
- #373c45 60%,
169
- #363a41 80%,
170
- #35383c 90%,
171
- #343538 100%
172
- )`,
173
- maingrad: "linear-gradient(330deg, #1d1e27 0%, #333333 100%)",
174
- ...CommonTheme
175
- }
176
- };
177
-
178
- // contexts/theme/index.tsx
179
- import { jsx, jsxs } from "react/jsx-runtime";
180
- var ThemeContext = createContext({});
181
- var useTheme = () => useContext(ThemeContext);
182
-
183
- // contexts/icon/index.tsx
184
- import _ from "lodash";
185
-
186
- // contexts/icon/assets/brands/index.tsx
187
- var req = __require.context("./", false, /\.svg$/);
188
- var brands = {};
189
- req.keys().forEach((key) => {
190
- const name = key.replace("./", "").replace(".svg", "");
191
- brands[name] = req(key).default;
192
- });
193
-
194
- // contexts/icon/assets/regular/index.tsx
195
- var req2 = __require.context("./", false, /\.svg$/);
196
- var regular = {};
197
- req2.keys().forEach((key) => {
198
- const name = key.replace("./", "").replace(".svg", "");
199
- regular[name] = req2(key).default;
200
- });
201
-
202
- // contexts/icon/assets/solid/index.tsx
203
- var req3 = __require.context("./", false, /\.svg$/);
204
- var solid = {};
205
- req3.keys().forEach((key) => {
206
- const name = key.replace("./", "").replace(".svg", "");
207
- solid[name] = req3(key).default;
208
- });
209
-
210
- // contexts/icon/index.tsx
211
- import { jsx as jsx2 } from "react/jsx-runtime";
212
- var IconContext = createContext2({});
213
-
214
- // contexts/tooltip/index.tsx
215
- import { createContext as createContext3, useContext as useContext3, useEffect as useEffect3, useState as useState3 } from "react";
216
-
217
- // contexts/tooltip/styles.tsx
218
- import styled3 from "styled-components";
219
- var Tooltip = styled3.div`
220
- position: fixed;
221
- background: ${({ theme }) => theme.tooltip};
222
- color: ${({ theme }) => theme.t6};
223
- font-size: .8rem;
224
- font-weight: 500;
225
- text-align: center;
226
- padding: .3rem .8rem;
227
- border-radius: 5px;
228
- transform: translateX(-50%);
229
- z-index: 10;
230
- border: 1px solid ${({ theme }) => theme.t05};
231
-
232
- &::before {
233
- content: "";
234
- position: absolute;
235
- bottom: -9px;
236
- left: 50%;
237
- transform: translateX(-50%);
238
- width: 0;
239
- height: 0;
240
- border-left: 8px solid transparent;
241
- border-right: 8px solid transparent;
242
- border-top: 8px solid ${({ theme }) => theme.t05};
243
- }
244
-
245
- &::after {
246
- content: "";
247
- position: absolute;
248
- bottom: -8px;
249
- left: 50%;
250
- transform: translateX(-50%);
251
- width: 0;
252
- height: 0;
253
- border-left: 8px solid transparent;
254
- border-right: 8px solid transparent;
255
- border-top: 8px solid ${({ theme }) => theme.tooltip};
256
- }
257
- `;
258
-
259
- // contexts/tooltip/index.tsx
260
- import _2 from "lodash";
261
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
262
- var TooltipContext = createContext3({});
263
-
264
- // contexts/modal/index.tsx
265
- import { createContext as createContext4, useContext as useContext4, useEffect as useEffect4, useState as useState4 } from "react";
266
- import { usePathname } from "next/navigation";
267
-
268
- // contexts/modal/styles.tsx
269
- import styled4 from "styled-components";
270
- var Container2 = styled4.div`
271
-
272
- `;
273
-
274
- // contexts/modal/index.tsx
275
- import _3 from "lodash";
276
- import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
277
- var ModalContext = createContext4({});
278
-
279
- // components/types/chart/index.tsx
2
+ "use client";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import { Container } from "./styles";
5
+ import { useTheme } from "@contexts";
280
6
  import dynamic from "next/dynamic";
281
- import _4 from "lodash";
282
- import { jsx as jsx5 } from "react/jsx-runtime";
283
- var ApexChart = dynamic(() => import("react-apexcharts").then((mod) => mod.default), { ssr: false });
7
+ import _ from "lodash";
8
+ const ApexChart = dynamic(() => import("react-apexcharts").then((mod) => mod.default), { ssr: false });
284
9
  function Chart(props) {
285
10
  const { content: themeContent } = useTheme();
286
11
  const monitor = props.content || [];
287
- const series = _4.map(props.yAxis, (value, key) => ({
12
+ const series = _.map(props.yAxis, (value, key) => ({
288
13
  name: key || "",
289
- data: _4.map(monitor, (data) => _4.isFunction(value) ? value(data) : 0)
14
+ data: _.map(monitor, (data) => _.isFunction(value) ? value(data) : 0)
290
15
  }));
291
16
  const options = {
292
- colors: _4.map(props.colors || [], (value) => themeContent[value] || value || themeContent.secondary),
17
+ colors: _.map(props.colors || [], (value) => themeContent[value] || value || themeContent.secondary),
293
18
  dataLabels: { enabled: false },
294
19
  stroke: { curve: "smooth", width: 2 },
295
20
  fill: { gradient: { opacityFrom: 0.9, opacityTo: 0.8 } },
@@ -298,14 +23,14 @@ function Chart(props) {
298
23
  yaxis: {
299
24
  min: props.min,
300
25
  max: props.max,
301
- labels: { style: { colors: _4.map(monitor, () => themeContent.t6) } }
26
+ labels: { style: { colors: _.map(monitor, () => themeContent.t6) } }
302
27
  },
303
28
  xaxis: {
304
- categories: _4.map(monitor, (data) => _4.isFunction(props.xAxis) ? props.xAxis(data) : ""),
305
- labels: { style: { colors: _4.map(monitor, () => themeContent.t6) } }
29
+ categories: _.map(monitor, (data) => _.isFunction(props.xAxis) ? props.xAxis(data) : ""),
30
+ labels: { style: { colors: _.map(monitor, () => themeContent.t6) } }
306
31
  }
307
32
  };
308
- return /* @__PURE__ */ jsx5(Container, { children: /* @__PURE__ */ jsx5(
33
+ return /* @__PURE__ */ jsx(Container, { children: /* @__PURE__ */ jsx(
309
34
  ApexChart,
310
35
  {
311
36
  options,