@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,2323 +1,32 @@
1
1
  "use client";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
- }) : x)(function(x) {
11
- if (typeof require !== "undefined") return require.apply(this, arguments);
12
- throw Error('Dynamic require of "' + x + '" is not supported');
13
- });
14
- var __commonJS = (cb, mod) => function __require2() {
15
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16
- };
17
- var __copyProps = (to, from, except, desc) => {
18
- if (from && typeof from === "object" || typeof from === "function") {
19
- for (let key of __getOwnPropNames(from))
20
- if (!__hasOwnProp.call(to, key) && key !== except)
21
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
22
- }
23
- return to;
24
- };
25
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
26
- // If the importer is in node compatibility mode or this is not an ESM
27
- // file that has been converted to a CommonJS file using a Babel-
28
- // compatible transform (i.e. "__esModule" has not been set), then set
29
- // "default" to the CommonJS "module.exports" for node compatibility.
30
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
31
- mod
32
- ));
33
-
34
- // node_modules/credit-card-type/dist/lib/card-types.js
35
- var require_card_types = __commonJS({
36
- "node_modules/credit-card-type/dist/lib/card-types.js"(exports, module) {
37
- "use strict";
38
- var cardTypes = {
39
- visa: {
40
- niceType: "Visa",
41
- type: "visa",
42
- patterns: [4],
43
- gaps: [4, 8, 12],
44
- lengths: [16, 18, 19],
45
- code: {
46
- name: "CVV",
47
- size: 3
48
- }
49
- },
50
- mastercard: {
51
- niceType: "Mastercard",
52
- type: "mastercard",
53
- patterns: [[51, 55], [2221, 2229], [223, 229], [23, 26], [270, 271], 2720],
54
- gaps: [4, 8, 12],
55
- lengths: [16],
56
- code: {
57
- name: "CVC",
58
- size: 3
59
- }
60
- },
61
- "american-express": {
62
- niceType: "American Express",
63
- type: "american-express",
64
- patterns: [34, 37],
65
- gaps: [4, 10],
66
- lengths: [15],
67
- code: {
68
- name: "CID",
69
- size: 4
70
- }
71
- },
72
- "diners-club": {
73
- niceType: "Diners Club",
74
- type: "diners-club",
75
- patterns: [[300, 305], 36, 38, 39],
76
- gaps: [4, 10],
77
- lengths: [14, 16, 19],
78
- code: {
79
- name: "CVV",
80
- size: 3
81
- }
82
- },
83
- discover: {
84
- niceType: "Discover",
85
- type: "discover",
86
- patterns: [6011, [644, 649], 65],
87
- gaps: [4, 8, 12],
88
- lengths: [16, 19],
89
- code: {
90
- name: "CID",
91
- size: 3
92
- }
93
- },
94
- jcb: {
95
- niceType: "JCB",
96
- type: "jcb",
97
- patterns: [2131, 1800, [3528, 3589]],
98
- gaps: [4, 8, 12],
99
- lengths: [16, 17, 18, 19],
100
- code: {
101
- name: "CVV",
102
- size: 3
103
- }
104
- },
105
- unionpay: {
106
- niceType: "UnionPay",
107
- type: "unionpay",
108
- patterns: [
109
- 620,
110
- [624, 626],
111
- [62100, 62182],
112
- [62184, 62187],
113
- [62185, 62197],
114
- [62200, 62205],
115
- [622010, 622999],
116
- 622018,
117
- [622019, 622999],
118
- [62207, 62209],
119
- [622126, 622925],
120
- [623, 626],
121
- 6270,
122
- 6272,
123
- 6276,
124
- [627700, 627779],
125
- [627781, 627799],
126
- [6282, 6289],
127
- 6291,
128
- 6292,
129
- 810,
130
- [8110, 8131],
131
- [8132, 8151],
132
- [8152, 8163],
133
- [8164, 8171]
134
- ],
135
- gaps: [4, 8, 12],
136
- lengths: [14, 15, 16, 17, 18, 19],
137
- code: {
138
- name: "CVN",
139
- size: 3
140
- }
141
- },
142
- maestro: {
143
- niceType: "Maestro",
144
- type: "maestro",
145
- patterns: [
146
- 493698,
147
- [5e5, 504174],
148
- [504176, 506698],
149
- [506779, 508999],
150
- [56, 59],
151
- 63,
152
- 67,
153
- 6
154
- ],
155
- gaps: [4, 8, 12],
156
- lengths: [12, 13, 14, 15, 16, 17, 18, 19],
157
- code: {
158
- name: "CVC",
159
- size: 3
160
- }
161
- },
162
- elo: {
163
- niceType: "Elo",
164
- type: "elo",
165
- patterns: [
166
- 401178,
167
- 401179,
168
- 438935,
169
- 457631,
170
- 457632,
171
- 431274,
172
- 451416,
173
- 457393,
174
- 504175,
175
- [506699, 506778],
176
- [509e3, 509999],
177
- 627780,
178
- 636297,
179
- 636368,
180
- [650031, 650033],
181
- [650035, 650051],
182
- [650405, 650439],
183
- [650485, 650538],
184
- [650541, 650598],
185
- [650700, 650718],
186
- [650720, 650727],
187
- [650901, 650978],
188
- [651652, 651679],
189
- [655e3, 655019],
190
- [655021, 655058]
191
- ],
192
- gaps: [4, 8, 12],
193
- lengths: [16],
194
- code: {
195
- name: "CVE",
196
- size: 3
197
- }
198
- },
199
- mir: {
200
- niceType: "Mir",
201
- type: "mir",
202
- patterns: [[2200, 2204]],
203
- gaps: [4, 8, 12],
204
- lengths: [16, 17, 18, 19],
205
- code: {
206
- name: "CVP2",
207
- size: 3
208
- }
209
- },
210
- hiper: {
211
- niceType: "Hiper",
212
- type: "hiper",
213
- patterns: [637095, 63737423, 63743358, 637568, 637599, 637609, 637612],
214
- gaps: [4, 8, 12],
215
- lengths: [16],
216
- code: {
217
- name: "CVC",
218
- size: 3
219
- }
220
- },
221
- hipercard: {
222
- niceType: "Hipercard",
223
- type: "hipercard",
224
- patterns: [606282],
225
- gaps: [4, 8, 12],
226
- lengths: [16],
227
- code: {
228
- name: "CVC",
229
- size: 3
230
- }
231
- }
232
- };
233
- module.exports = cardTypes;
234
- }
235
- });
236
-
237
- // node_modules/credit-card-type/dist/lib/clone.js
238
- var require_clone = __commonJS({
239
- "node_modules/credit-card-type/dist/lib/clone.js"(exports) {
240
- "use strict";
241
- Object.defineProperty(exports, "__esModule", { value: true });
242
- exports.clone = void 0;
243
- function clone(originalObject) {
244
- if (!originalObject) {
245
- return null;
246
- }
247
- return JSON.parse(JSON.stringify(originalObject));
248
- }
249
- exports.clone = clone;
250
- }
251
- });
252
-
253
- // node_modules/credit-card-type/dist/lib/matches.js
254
- var require_matches = __commonJS({
255
- "node_modules/credit-card-type/dist/lib/matches.js"(exports) {
256
- "use strict";
257
- Object.defineProperty(exports, "__esModule", { value: true });
258
- exports.matches = void 0;
259
- function matchesRange(cardNumber, min, max) {
260
- var maxLengthToCheck = String(min).length;
261
- var substr = cardNumber.substr(0, maxLengthToCheck);
262
- var integerRepresentationOfCardNumber = parseInt(substr, 10);
263
- min = parseInt(String(min).substr(0, substr.length), 10);
264
- max = parseInt(String(max).substr(0, substr.length), 10);
265
- return integerRepresentationOfCardNumber >= min && integerRepresentationOfCardNumber <= max;
266
- }
267
- function matchesPattern(cardNumber, pattern) {
268
- pattern = String(pattern);
269
- return pattern.substring(0, cardNumber.length) === cardNumber.substring(0, pattern.length);
270
- }
271
- function matches(cardNumber, pattern) {
272
- if (Array.isArray(pattern)) {
273
- return matchesRange(cardNumber, pattern[0], pattern[1]);
274
- }
275
- return matchesPattern(cardNumber, pattern);
276
- }
277
- exports.matches = matches;
278
- }
279
- });
280
-
281
- // node_modules/credit-card-type/dist/lib/add-matching-cards-to-results.js
282
- var require_add_matching_cards_to_results = __commonJS({
283
- "node_modules/credit-card-type/dist/lib/add-matching-cards-to-results.js"(exports) {
284
- "use strict";
285
- Object.defineProperty(exports, "__esModule", { value: true });
286
- exports.addMatchingCardsToResults = void 0;
287
- var clone_1 = require_clone();
288
- var matches_1 = require_matches();
289
- function addMatchingCardsToResults(cardNumber, cardConfiguration, results) {
290
- var i, patternLength;
291
- for (i = 0; i < cardConfiguration.patterns.length; i++) {
292
- var pattern = cardConfiguration.patterns[i];
293
- if (!matches_1.matches(cardNumber, pattern)) {
294
- continue;
295
- }
296
- var clonedCardConfiguration = clone_1.clone(cardConfiguration);
297
- if (Array.isArray(pattern)) {
298
- patternLength = String(pattern[0]).length;
299
- } else {
300
- patternLength = String(pattern).length;
301
- }
302
- if (cardNumber.length >= patternLength) {
303
- clonedCardConfiguration.matchStrength = patternLength;
304
- }
305
- results.push(clonedCardConfiguration);
306
- break;
307
- }
308
- }
309
- exports.addMatchingCardsToResults = addMatchingCardsToResults;
310
- }
311
- });
312
-
313
- // node_modules/credit-card-type/dist/lib/is-valid-input-type.js
314
- var require_is_valid_input_type = __commonJS({
315
- "node_modules/credit-card-type/dist/lib/is-valid-input-type.js"(exports) {
316
- "use strict";
317
- Object.defineProperty(exports, "__esModule", { value: true });
318
- exports.isValidInputType = void 0;
319
- function isValidInputType(cardNumber) {
320
- return typeof cardNumber === "string" || cardNumber instanceof String;
321
- }
322
- exports.isValidInputType = isValidInputType;
323
- }
324
- });
325
-
326
- // node_modules/credit-card-type/dist/lib/find-best-match.js
327
- var require_find_best_match = __commonJS({
328
- "node_modules/credit-card-type/dist/lib/find-best-match.js"(exports) {
329
- "use strict";
330
- Object.defineProperty(exports, "__esModule", { value: true });
331
- exports.findBestMatch = void 0;
332
- function hasEnoughResultsToDetermineBestMatch(results) {
333
- var numberOfResultsWithMaxStrengthProperty = results.filter(function(result) {
334
- return result.matchStrength;
335
- }).length;
336
- return numberOfResultsWithMaxStrengthProperty > 0 && numberOfResultsWithMaxStrengthProperty === results.length;
337
- }
338
- function findBestMatch(results) {
339
- if (!hasEnoughResultsToDetermineBestMatch(results)) {
340
- return null;
341
- }
342
- return results.reduce(function(bestMatch, result) {
343
- if (!bestMatch) {
344
- return result;
345
- }
346
- if (Number(bestMatch.matchStrength) < Number(result.matchStrength)) {
347
- return result;
348
- }
349
- return bestMatch;
350
- });
351
- }
352
- exports.findBestMatch = findBestMatch;
353
- }
354
- });
355
-
356
- // node_modules/credit-card-type/dist/index.js
357
- var require_dist = __commonJS({
358
- "node_modules/credit-card-type/dist/index.js"(exports, module) {
359
- "use strict";
360
- var __assign = exports && exports.__assign || function() {
361
- __assign = Object.assign || function(t) {
362
- for (var s, i = 1, n = arguments.length; i < n; i++) {
363
- s = arguments[i];
364
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
365
- t[p] = s[p];
366
- }
367
- return t;
368
- };
369
- return __assign.apply(this, arguments);
370
- };
371
- var cardTypes = require_card_types();
372
- var add_matching_cards_to_results_1 = require_add_matching_cards_to_results();
373
- var is_valid_input_type_1 = require_is_valid_input_type();
374
- var find_best_match_1 = require_find_best_match();
375
- var clone_1 = require_clone();
376
- var customCards = {};
377
- var cardNames = {
378
- VISA: "visa",
379
- MASTERCARD: "mastercard",
380
- AMERICAN_EXPRESS: "american-express",
381
- DINERS_CLUB: "diners-club",
382
- DISCOVER: "discover",
383
- JCB: "jcb",
384
- UNIONPAY: "unionpay",
385
- MAESTRO: "maestro",
386
- ELO: "elo",
387
- MIR: "mir",
388
- HIPER: "hiper",
389
- HIPERCARD: "hipercard"
390
- };
391
- var ORIGINAL_TEST_ORDER = [
392
- cardNames.VISA,
393
- cardNames.MASTERCARD,
394
- cardNames.AMERICAN_EXPRESS,
395
- cardNames.DINERS_CLUB,
396
- cardNames.DISCOVER,
397
- cardNames.JCB,
398
- cardNames.UNIONPAY,
399
- cardNames.MAESTRO,
400
- cardNames.ELO,
401
- cardNames.MIR,
402
- cardNames.HIPER,
403
- cardNames.HIPERCARD
404
- ];
405
- var testOrder = clone_1.clone(ORIGINAL_TEST_ORDER);
406
- function findType(cardType) {
407
- return customCards[cardType] || cardTypes[cardType];
408
- }
409
- function getAllCardTypes() {
410
- return testOrder.map(function(cardType) {
411
- return clone_1.clone(findType(cardType));
412
- });
413
- }
414
- function getCardPosition(name, ignoreErrorForNotExisting) {
415
- if (ignoreErrorForNotExisting === void 0) {
416
- ignoreErrorForNotExisting = false;
417
- }
418
- var position = testOrder.indexOf(name);
419
- if (!ignoreErrorForNotExisting && position === -1) {
420
- throw new Error('"' + name + '" is not a supported card type.');
421
- }
422
- return position;
423
- }
424
- function creditCardType2(cardNumber) {
425
- var results = [];
426
- if (!is_valid_input_type_1.isValidInputType(cardNumber)) {
427
- return results;
428
- }
429
- if (cardNumber.length === 0) {
430
- return getAllCardTypes();
431
- }
432
- testOrder.forEach(function(cardType) {
433
- var cardConfiguration = findType(cardType);
434
- add_matching_cards_to_results_1.addMatchingCardsToResults(cardNumber, cardConfiguration, results);
435
- });
436
- var bestMatch = find_best_match_1.findBestMatch(results);
437
- if (bestMatch) {
438
- return [bestMatch];
439
- }
440
- return results;
441
- }
442
- creditCardType2.getTypeInfo = function(cardType) {
443
- return clone_1.clone(findType(cardType));
444
- };
445
- creditCardType2.removeCard = function(name) {
446
- var position = getCardPosition(name);
447
- testOrder.splice(position, 1);
448
- };
449
- creditCardType2.addCard = function(config) {
450
- var existingCardPosition = getCardPosition(config.type, true);
451
- customCards[config.type] = config;
452
- if (existingCardPosition === -1) {
453
- testOrder.push(config.type);
454
- }
455
- };
456
- creditCardType2.updateCard = function(cardType, updates) {
457
- var originalObject = customCards[cardType] || cardTypes[cardType];
458
- if (!originalObject) {
459
- throw new Error('"' + cardType + "\" is not a recognized type. Use `addCard` instead.'");
460
- }
461
- if (updates.type && originalObject.type !== updates.type) {
462
- throw new Error("Cannot overwrite type parameter.");
463
- }
464
- var clonedCard = clone_1.clone(originalObject);
465
- clonedCard = __assign(__assign({}, clonedCard), updates);
466
- customCards[clonedCard.type] = clonedCard;
467
- };
468
- creditCardType2.changeOrder = function(name, position) {
469
- var currentPosition = getCardPosition(name);
470
- testOrder.splice(currentPosition, 1);
471
- testOrder.splice(position, 0, name);
472
- };
473
- creditCardType2.resetModifications = function() {
474
- testOrder = clone_1.clone(ORIGINAL_TEST_ORDER);
475
- customCards = {};
476
- };
477
- creditCardType2.types = cardNames;
478
- module.exports = creditCardType2;
479
- }
480
- });
481
-
482
- // node_modules/luhn/src/luhn.js
483
- var require_luhn = __commonJS({
484
- "node_modules/luhn/src/luhn.js"(exports, module) {
485
- "use strict";
486
- module.exports = /* @__PURE__ */ (function() {
487
- function validate(cardNumber) {
488
- var trimmed = String(cardNumber).replace(/[\s]/g, ""), length = trimmed.length, odd = false, total = 0, calc, calc2;
489
- if (!/^[0-9]+$/.test(trimmed)) {
490
- return false;
491
- }
492
- for (var i = length; i > 0; i--) {
493
- calc = parseInt(trimmed.charAt(i - 1));
494
- if (!odd) {
495
- total += calc;
496
- } else {
497
- calc2 = calc * 2;
498
- switch (calc2) {
499
- case 10:
500
- calc2 = 1;
501
- break;
502
- case 12:
503
- calc2 = 3;
504
- break;
505
- case 14:
506
- calc2 = 5;
507
- break;
508
- case 16:
509
- calc2 = 7;
510
- break;
511
- case 18:
512
- calc2 = 9;
513
- break;
514
- default:
515
- calc2 = calc2;
516
- }
517
- total += calc2;
518
- }
519
- odd = !odd;
520
- }
521
- return total !== 0 && total % 10 === 0;
522
- }
523
- return {
524
- validate
525
- };
526
- })();
527
- }
528
- });
529
-
530
- // components/types/modal/styles.tsx
531
- import styled from "styled-components";
532
- var Container = styled.div`
533
- width: 100%;
534
- height: 100%;
535
- top: 0;
536
- right: 0;
537
- display: flex !important;
538
- position: fixed;
539
- z-index: ${(props) => props.toggle ? "9" : "-1"};
540
- flex-direction: ${(props) => props.position === "left" ? "row-reverse" : "row"} !important;
541
- transform: ${(props) => props.toggle ? "translateX(0%)" : "translateX(100%)"};
542
- transition: ${(props) => props.toggle ? ".0s ease .0s" : ".3s ease .3s"};
543
-
544
- .iz-modal-back {
545
- width: 100%;
546
- height: 100%;
547
- background: rgb(0, 0, 0, 0.3);
548
- opacity: ${(props) => props.toggle ? "1" : "0"};
549
- transition: ease 0.3s;
550
- position: absolute;
551
- }
552
-
553
- .iz-modal-container {
554
- display: flex;
555
- flex-direction: column;
556
- height: ${(props) => props.position !== "center" ? "100%" : void 0};
557
- width: ${(props) => props.position !== "center" ? "18rem" : void 0};
558
- border-radius: ${(props) => props.position === "center" ? "10px" : void 0};
559
- max-height: ${(props) => props.position === "center" ? "95%" : "100%"};
560
- max-width: ${(props) => props.position === "center" ? "95%" : "100%"};
561
- background: ${({ theme }) => theme.primary};
562
- transform: ${(props) => props.toggle ? props.position === "right" || props.position === "left" ? "translateX(0rem)" : "translateX(-50%) translateY(50%)" : props.position === "right" ? "translateX(18rem)" : props.position === "left" ? "translateX(-18rem)" : "translateX(-50%) translateY(43%)"};
563
- opacity: ${(props) => props.position === "center" && !props.toggle ? "0" : "1"};
564
- transition: ease 0.3s;
565
- position: absolute;
566
-
567
- ${(props) => props.position === "right" ? "right: 0;" : props.position === "left" ? "left: 0;" : "left: 50%; bottom: 50%;"}
568
-
569
- @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
570
- border-radius: ${(props) => props.position === "center" ? "10px 10px 0 0" : void 0};
571
- width: ${(props) => props.position !== "center" ? "18rem" : "100%"};
572
- max-width: 100%;
573
- padding-bottom: 3rem !important;
574
-
575
- transform: ${(props) => props.toggle ? props.position === "right" || props.position === "left" ? "translateX(0rem)" : "translateX(-50%) translateY(0)" : props.position === "right" ? "translateX(18rem)" : props.position === "left" ? "translateX(-18rem)" : "translateX(-50%) translateY(50%)"};
576
-
577
- ${(props) => props.position === "right" ? "right: 0;" : props.position === "left" ? "left: 0;" : "left: 50%; bottom: 0;"}
578
- }
579
-
580
- .iz-modal-header {
581
- padding: 1.5rem 2rem;
582
- display: flex;
583
- align-items: center;
584
- justify-content: space-between;
585
- border-bottom: 1px solid rgb(0, 0, 0, 0.2);
586
-
587
- .iz-modal-title {
588
- color: ${({ theme }) => theme.t6};
589
- font-size: 1rem;
590
- font-weight: 500;
591
-
592
- i {
593
- margin-right: .5rem;
594
- }
595
-
596
- span {
597
- word-break: break-word;
598
- }
599
- }
600
-
601
- .fa-xmark {
602
- color: ${({ theme }) => theme.t6};
603
- margin-left: .5rem;
604
- cursor: pointer;
605
-
606
- &:hover {
607
- color: ${({ theme }) => theme.t8};
608
- }
609
- }
610
- }
611
-
612
- .iz-modal-content {
613
- overflow-x: hidden;
614
- overflow-y: overlay;
615
- position: relative;
616
- height: ${(props) => props.position === "center" ? "initial" : "100%"};
617
-
618
- .iz-modal-close {
619
- position: absolute;
620
- color: ${(props) => props.light ? "rgb(255, 255, 255, 0.6)" : "rgb(0, 0, 0, 0.6)"};
621
- top: ${(props) => props.position === "center" ? "1rem" : "1.5rem"};
622
- right: ${(props) => props.position === "center" ? "1rem" : "1.5rem"};
623
- width: 1rem;
624
- height: 1rem;
625
- cursor: pointer;
626
- z-index: 9;
627
- display: flex;
628
- align-items: center;
629
- justify-content: center;
630
-
631
- @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
632
- display: none;
633
- }
634
-
635
- &:hover {
636
- color: ${(props) => props.light ? "rgb(255, 255, 255, 1)" : "rgb(0, 0, 0, 1)"};
637
- }
638
- }
639
- }
640
-
641
- .iz-modal-buttons {
642
- padding: 1rem 2rem;
643
-
644
- @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
645
- padding: 1rem 2rem 2rem;
646
- }
647
-
648
- button {
649
- width: 100%;
650
- margin-bottom: .5rem;
651
- }
652
-
653
- button:last-child {
654
- margin-bottom: 0;
655
- }
656
- }
657
- }
658
- `;
659
-
660
- // components/index.tsx
661
- import { Fragment } from "react";
662
-
663
- // components/styles.tsx
664
- import styled2 from "styled-components";
665
- var Container2 = styled2.div`
666
- display: flex;
667
- flex-direction: column;
668
- gap: 1rem;
669
- `;
670
- var RowContainer = styled2.div`
671
- display: flex;
672
- flex-direction: row;
673
- align-items: stretch;
674
- gap: 1rem;
675
- flex-wrap: wrap;
676
- `;
677
-
678
- // components/index.tsx
679
- import _19 from "lodash";
680
-
681
- // components/types/table/index.tsx
682
- import { useEffect as useEffect5 } from "react";
683
-
684
- // components/types/table/styles.tsx
685
- import styled3 from "styled-components";
686
- var Container3 = styled3.div`
687
- .iz-table-container {
688
- overflow-x: auto;
689
-
690
- &::-webkit-scrollbar {
691
- width: 0;
692
- height: ${(props) => props.notFound ? "0px" : "5px"};
693
- }
694
-
695
- &::-webkit-scrollbar-track {
696
- background: transparent;
697
- }
698
-
699
- &::-webkit-scrollbar-thumb {
700
- background-color: rgb(255, 255, 255, 0.1);
701
- border-radius: 5px;
702
- }
703
-
704
- table {
705
- font-size: .8rem;
706
- border: 0;
707
- color: ${({ theme }) => theme.t6};
708
- overflow-x: ${(props) => props.notFound ? "auto" : "hidden"};
709
- width: 100%;
710
- border-spacing: 0;
711
-
712
- .iz-table-content {
713
- background: ${({ theme }) => theme.t05};
714
- height: 2.7rem;
715
- padding: 0.8rem 1.3rem;
716
- margin-top: 0.5rem;
717
- white-space: nowrap;
718
- display: flex;
719
- align-items: center;
720
- position: relative;
721
- transition: ease 0.3s;
722
-
723
- &.iz-table-identifier {
724
- padding: .8rem .5rem !important;
725
- }
726
-
727
- &.iz-table-action {
728
- display: flex;
729
- justify-content: flex-end;
730
- padding: .8rem .5rem !important;
731
- position: relative;
732
-
733
- &.left {
734
- justify-content: flex-start;
735
- }
736
-
737
- &.center {
738
- justify-content: center;
739
- }
740
-
741
- .iz-table-actions {
742
- display: flex;
743
- align-items: center;
744
- justify-content: flex-end;
745
- gap: .5rem;
746
- }
747
-
748
- .iz-table-button {
749
- min-width: 1.8rem;
750
- height: 1.8rem;
751
- border-radius: 5px;
752
- border: 1px solid ${({ theme }) => theme.t05};
753
- background: ${({ theme }) => theme.t05};
754
- color: ${({ theme }) => theme.t6};
755
- cursor: pointer;
756
- transition: ease 0.3s, width 1s, position 0s;
757
- display: flex;
758
- align-items: center;
759
- justify-content: center;
760
- gap: .5rem;
761
- font-weight: 500;
762
- text-transform: lowercase;
763
- padding: 0 .5rem;
764
- position: relative;
765
-
766
- &:disabled {
767
- pointer-events: none;
768
- opacity: .6;
769
- }
770
-
771
- &:hover {
772
- opacity: .9;
773
-
774
- &.negative {
775
- color: ${({ theme }) => theme.primary};
776
- background: ${({ theme }) => theme.negative};
777
- }
778
- }
779
- }
780
- }
781
- }
782
-
783
- thead {
784
- tr {
785
- th {
786
- border: none;
787
- padding: 0;
788
- text-transform: uppercase;
789
- font-weight: 500;
790
- letter-spacing: 2px;
791
- position: relative;
792
- height: 2.5rem;
793
-
794
- @media (max-width: ${({ theme }) => theme.mobileMaxWidth}) {
795
- .iz-table-content {
796
- font-size: .7rem;
797
- }
798
- }
799
-
800
- @media (max-width: ${({ theme }) => theme.mobileMaxWidth}) {
801
- display: none;
802
-
803
- &:nth-child(1), &:nth-child(2), &:last-child {
804
- display: table-cell;
805
- }
806
- }
807
-
808
- &:first-child {
809
- .iz-table-content {
810
- border-top-left-radius: 5px;
811
- border-bottom-left-radius: 5px;
812
- }
813
- }
814
-
815
- &:last-child {
816
- .iz-table-content {
817
- border-top-right-radius: 5px;
818
- border-bottom-right-radius: 5px;
819
- }
820
- }
821
- }
822
- }
823
- }
824
-
825
- tbody {
826
- tr {
827
- &:hover {
828
- td {
829
- .iz-table-content {
830
- background: ${({ theme }) => theme.tertiary};
831
- }
832
- }
833
- }
834
-
835
- td {
836
- border: none;
837
- padding: 0;
838
- font-weight: 400;
839
- position: relative;
840
-
841
- @media (max-width: ${({ theme }) => theme.mobileMaxWidth}) {
842
- display: none;
843
-
844
- &:nth-child(1), &:nth-child(2), &:last-child {
845
- display: table-cell;
846
- }
847
- }
848
-
849
- &:first-child {
850
- .iz-table-content {
851
- border-top-left-radius: 5px;
852
- border-bottom-left-radius: 5px;
853
- }
854
- }
855
-
856
- &:last-child {
857
- .iz-table-content {
858
- border-top-right-radius: 5px;
859
- border-bottom-right-radius: 5px;
860
- }
861
- }
862
-
863
- .iz-table-content-elipse {
864
- position: absolute;
865
- left: 0;
866
- right: 0;
867
- white-space: nowrap;
868
- overflow: hidden;
869
- text-overflow: ellipsis;
870
- padding: 0.8rem 1.3rem;
871
- }
872
- }
873
-
874
- &:first-child {
875
- td {
876
- .iz-table-content {
877
- margin-top: 1.5rem;
878
- }
879
- }
880
- }
881
- }
882
- }
883
- }
884
- }
885
-
886
- .iz-table-icon {
887
- width: 1.8rem;
888
- height: 1.8rem;
889
- background: ${({ theme }) => theme.t08};
890
- border-radius: 5px;
891
- display: flex;
892
- align-items: center;
893
- justify-content: center;
894
- overflow: hidden;
895
-
896
- img {
897
- width: 100%;
898
- height: 100%;
899
- object-fit: cover;
900
- }
901
-
902
- i {
903
- font-size: .9rem;
904
- }
905
- }
906
-
907
- .iz-table-not-found {
908
- border-radius: 5px;
909
- background: ${({ theme }) => theme.t05};
910
- display: flex;
911
- flex-direction: column;
912
- align-items: center;
913
- justify-content: center;
914
- margin: 1.5rem 0;
915
- padding: 2.5rem;
916
- width: 100%;
917
-
918
- p {
919
- color: ${({ theme }) => theme.t6};
920
- text-align: center;
921
- }
922
-
923
- p:first-child {
924
- font-size: 1.3rem;
925
- font-weight: 600;
926
- margin-top: 0;
927
- margin-bottom: 0.5rem;
928
-
929
- @media (max-width: ${({ theme }) => theme.mobileMaxWidth}) {
930
- font-size: 1rem;
931
- }
932
- }
933
-
934
- p:last-child {
935
- font-size: 0.8rem;
936
- max-width: 50rem;
937
- margin-top: 0;
938
- margin-bottom: 0;
939
-
940
- @media (max-width: ${({ theme }) => theme.mobileMaxWidth}) {
941
- font-size: 0.7rem;
942
- }
943
- }
944
- }
945
- `;
946
-
947
- // components/types/table/paginate/styles.tsx
948
- import styled4 from "styled-components";
949
- var Container4 = styled4.div`
950
- width: 100%;
951
- display: flex;
952
- align-items: center;
953
- justify-content: center;
954
- margin-top: 1.5rem;
955
-
956
- .paginate {
957
- font-size: .8rem;
958
- font-weight: 500;
959
- height: 1.5rem;
960
- padding: 0 .6rem;
961
- border-radius: 1rem;
962
- transition: ease .3s;
963
- color: ${({ theme }) => theme.t6};
964
- display: flex;
965
- align-items: center;
966
- justify-content: center;
967
- cursor: pointer;
968
-
969
- &[data-current="true"] {
970
- background: ${({ theme }) => theme.tertiary};
971
- color: ${({ theme }) => theme.secondary};
972
-
973
- &:hover {
974
- background: ${({ theme }) => theme.tertiary};
975
- }
976
- }
977
-
978
- &:hover {
979
- background: ${({ theme }) => theme.t05};
980
- }
981
- }
982
- `;
983
-
984
- // components/types/table/paginate/index.tsx
985
- import _ from "lodash";
2
+ "use client";
986
3
  import { jsx, jsxs } from "react/jsx-runtime";
987
-
988
- // contexts/icon/index.tsx
989
- import { createContext as createContext2, useContext as useContext2, useEffect as useEffect2, useState as useState2 } from "react";
990
-
991
- // contexts/theme/index.tsx
992
- import { createContext, useContext, useState } from "react";
993
- import { ThemeProvider } from "styled-components";
994
-
995
- // contexts/theme/styles.tsx
996
- import styled5 from "styled-components";
997
- var Switcher = styled5.div`
998
- width: 3rem;
999
- height: 1.5rem;
1000
- border-radius: 1rem;
1001
- border: 2px solid ${({ theme }) => theme.t05};
1002
- overflow: hidden;
1003
- display: flex;
1004
- align-items: center;
1005
- cursor: pointer;
1006
- position: relative;
1007
-
1008
- i {
1009
- color: ${({ theme }) => theme.t6};
1010
- position: absolute;
1011
- transform: translateY(-50%);
1012
- font-size: .9rem;
1013
- z-index: 0;
1014
- transition: ease .8s;
1015
-
1016
- &:first-child {
1017
- left: .2rem;
1018
- top: 50%;
1019
- opacity: ${(props) => props["data-theme"] === "light" ? 0 : 1};
1020
- }
1021
-
1022
- &:last-child {
1023
- right: .2rem;
1024
- top: 50%;
1025
- opacity: ${(props) => props["data-theme"] === "light" ? 1 : 0};
1026
- }
1027
- }
1028
-
1029
- .switcher {
1030
- width: 1rem;
1031
- height: 1rem;
1032
- border-radius: 1rem;
1033
- position: relative;
1034
- transition: ease .3s;
1035
- transform: ${(props) => props["data-theme"] === "light" ? "transform: translateX(.2rem)" : "translateX(1.6rem)"};
1036
- z-index: 1;
1037
-
1038
- div {
1039
- width: 100%;
1040
- height: 100%;
1041
- background: ${({ theme }) => theme.primary};
1042
- border-radius: 1rem;
1043
- position: relative;
1044
- z-index: 2;
1045
- }
1046
-
1047
- &:after {
1048
- content: "";
1049
- position: absolute;
1050
- width: 100%;
1051
- height: 100%;
1052
- border-radius: 1rem;
1053
- transform: scale(1.8);
1054
- background: ${({ theme }) => theme.t05};
1055
- top: 0;
1056
- left: 0;
1057
- z-index: 1;
1058
- }
1059
-
1060
- &:before {
1061
- content: "";
1062
- position: absolute;
1063
- width: 100%;
1064
- height: 100%;
1065
- border-radius: 1rem;
1066
- transform: scale(3);
1067
- background: ${({ theme }) => theme.t05};
1068
- top: 0;
1069
- left: 0;
1070
- z-index: 0;
1071
- }
1072
- }
1073
- `;
1074
-
1075
- // contexts/theme/content.tsx
1076
- var CommonTheme = {
1077
- secondary: "#5869da",
1078
- tertiary: "#629dfd33",
1079
- positive: "#65c965",
1080
- negative: "#FF334E",
1081
- mobileMaxWidth: "650px",
1082
- mobileMinWidth: "315px"
1083
- };
1084
- var Themes = {
1085
- light: {
1086
- primary: "#ffffff",
1087
- reverse: "#353535",
1088
- tooltip: "#f2f2f2",
1089
- t8: "#000000cc",
1090
- t7: "#000000b3",
1091
- t6: "#00000099",
1092
- t5: "#00000080",
1093
- t4: "#00000066",
1094
- t3: "#0000004d",
1095
- t2: "#00000033",
1096
- t1: "#0000001a",
1097
- t08: "#00000014",
1098
- t05: "#0000000d",
1099
- t03: "#00000007",
1100
- t02: "#00000005",
1101
- t01: "#00000002",
1102
- lgrad: `linear-gradient(
1103
- to right,
1104
- #dadef7 0%,
1105
- #dee2f8 5%,
1106
- #e2e5f9 10%,
1107
- #e6e9fa 20%,
1108
- #eaedfb 30%,
1109
- #eff0fb 60%,
1110
- #f3f4fc 80%,
1111
- #f7f8fd 90%,
1112
- #fbfbfe 100%
1113
- )`,
1114
- maingrad: "linear-gradient(330deg, #b9c0ff7a 0%, #ffffff 100%)",
1115
- ...CommonTheme
1116
- },
1117
- dark: {
1118
- primary: "#333333",
1119
- reverse: "#b45252",
1120
- tooltip: "#3d3d3d",
1121
- t8: "#ffffffcc",
1122
- t7: "#ffffffb3",
1123
- t6: "#ffffff99",
1124
- t5: "#ffffff80",
1125
- t4: "#ffffff66",
1126
- t3: "#ffffff4d",
1127
- t2: "#ffffff33",
1128
- t1: "#ffffff1a",
1129
- t08: "#ffffff14",
1130
- t05: "#ffffff0d",
1131
- t03: "#ffffff07",
1132
- t02: "#ffffff05",
1133
- t01: "#ffffff02",
1134
- lgrad: `linear-gradient(
1135
- to right,
1136
- #3d485c 0%,
1137
- #3c4657 5%,
1138
- #3b4353 10%,
1139
- #3a414e 20%,
1140
- #393f4a 30%,
1141
- #373c45 60%,
1142
- #363a41 80%,
1143
- #35383c 90%,
1144
- #343538 100%
1145
- )`,
1146
- maingrad: "linear-gradient(330deg, #1d1e27 0%, #333333 100%)",
1147
- ...CommonTheme
1148
- }
1149
- };
1150
-
1151
- // contexts/theme/index.tsx
1152
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
1153
- var ThemeContext = createContext({});
1154
-
1155
- // contexts/icon/index.tsx
1156
- import _2 from "lodash";
1157
-
1158
- // contexts/icon/assets/brands/index.tsx
1159
- var req = __require.context("./", false, /\.svg$/);
1160
- var brands = {};
1161
- req.keys().forEach((key) => {
1162
- const name = key.replace("./", "").replace(".svg", "");
1163
- brands[name] = req(key).default;
1164
- });
1165
-
1166
- // contexts/icon/assets/regular/index.tsx
1167
- var req2 = __require.context("./", false, /\.svg$/);
1168
- var regular = {};
1169
- req2.keys().forEach((key) => {
1170
- const name = key.replace("./", "").replace(".svg", "");
1171
- regular[name] = req2(key).default;
1172
- });
1173
-
1174
- // contexts/icon/assets/solid/index.tsx
1175
- var req3 = __require.context("./", false, /\.svg$/);
1176
- var solid = {};
1177
- req3.keys().forEach((key) => {
1178
- const name = key.replace("./", "").replace(".svg", "");
1179
- solid[name] = req3(key).default;
1180
- });
1181
-
1182
- // contexts/icon/index.tsx
1183
- import { jsx as jsx3 } from "react/jsx-runtime";
1184
- var IconContext = createContext2({});
1185
-
1186
- // contexts/tooltip/index.tsx
1187
- import { createContext as createContext3, useContext as useContext3, useEffect as useEffect3, useState as useState3 } from "react";
1188
-
1189
- // contexts/tooltip/styles.tsx
1190
- import styled6 from "styled-components";
1191
- var Tooltip = styled6.div`
1192
- position: fixed;
1193
- background: ${({ theme }) => theme.tooltip};
1194
- color: ${({ theme }) => theme.t6};
1195
- font-size: .8rem;
1196
- font-weight: 500;
1197
- text-align: center;
1198
- padding: .3rem .8rem;
1199
- border-radius: 5px;
1200
- transform: translateX(-50%);
1201
- z-index: 10;
1202
- border: 1px solid ${({ theme }) => theme.t05};
1203
-
1204
- &::before {
1205
- content: "";
1206
- position: absolute;
1207
- bottom: -9px;
1208
- left: 50%;
1209
- transform: translateX(-50%);
1210
- width: 0;
1211
- height: 0;
1212
- border-left: 8px solid transparent;
1213
- border-right: 8px solid transparent;
1214
- border-top: 8px solid ${({ theme }) => theme.t05};
1215
- }
1216
-
1217
- &::after {
1218
- content: "";
1219
- position: absolute;
1220
- bottom: -8px;
1221
- left: 50%;
1222
- transform: translateX(-50%);
1223
- width: 0;
1224
- height: 0;
1225
- border-left: 8px solid transparent;
1226
- border-right: 8px solid transparent;
1227
- border-top: 8px solid ${({ theme }) => theme.tooltip};
1228
- }
1229
- `;
1230
-
1231
- // contexts/tooltip/index.tsx
1232
- import _3 from "lodash";
1233
- import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
1234
- var TooltipContext = createContext3({});
1235
-
1236
- // contexts/modal/index.tsx
1237
- import { createContext as createContext4, useContext as useContext4, useEffect as useEffect4, useState as useState4 } from "react";
1238
- import { usePathname } from "next/navigation";
1239
-
1240
- // contexts/modal/styles.tsx
1241
- import styled7 from "styled-components";
1242
- var Container5 = styled7.div`
1243
-
1244
- `;
1245
-
1246
- // contexts/modal/index.tsx
1247
- import _4 from "lodash";
1248
- import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
1249
- var ModalContext = createContext4({});
1250
-
1251
- // components/types/table/index.tsx
1252
- import _6 from "lodash";
1253
-
1254
- // components/types/table/modal/styles.tsx
1255
- import styled8 from "styled-components";
1256
- var Content = styled8.div`
1257
- padding: 1.5rem;
1258
- display: flex;
1259
- flex-direction: column;
1260
- gap: 1.5rem;
1261
-
1262
- .iz-table-modal-title {
1263
- font-size: 1.2rem;
1264
- font-weight: 500;
1265
- width: 100%;
1266
- display: flex;
1267
- align-items: center;
1268
- justify-content: center;
1269
- color: ${({ theme }) => theme.t6};
1270
- }
1271
-
1272
- .iz-table-modal-content {
1273
- ul {
1274
- li {
1275
- border-bottom: solid 1px ${({ theme }) => theme.t05};
1276
- padding: .8rem 0;
1277
- display: flex;
1278
- align-items: center;
1279
- justify-content: space-between;
1280
- gap: 1rem;
1281
- font-size: .8rem;
1282
- color: ${({ theme }) => theme.t6};
1283
-
1284
- &:last-child {
1285
- border-bottom: none;
1286
- }
1287
-
1288
- .iz-table-modal-column {
1289
- background: ${({ theme }) => theme.t05};
1290
- padding: .5rem .8rem;
1291
- font-weight: 600;
1292
- border-radius: 5px;
1293
- }
1294
-
1295
- .iz-table-modal-row {
1296
- text-align: right;
1297
- }
1298
- }
1299
- }
1300
- }
1301
-
1302
- .iz-table-modal-actions {
1303
- margin-top: 1rem;
1304
- }
1305
- `;
1306
-
1307
- // components/types/table/modal/index.tsx
1308
- import _5 from "lodash";
1309
-
1310
- // components/types/table/modal/actions.tsx
1311
- var actionConfig = {
1312
- "fa-solid fa-pen-to-square": { label: "editar" },
1313
- "fa-solid fa-trash-can": { label: "remover", color: CommonTheme.negative }
1314
- };
1315
-
1316
- // components/types/table/modal/index.tsx
1317
- import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
1318
-
1319
- // components/types/table/index.tsx
1320
- import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
1321
-
1322
- // components/types/loading/bar/styles.tsx
1323
- import styled9 from "styled-components";
1324
- var Container6 = styled9.div`
1325
- border-radius: ${(props) => props.borderRadius || "10px"};
1326
- height: ${(props) => props.height || "100%"};
1327
- width: ${(props) => props.width || "100%"};
1328
- animation: loading infinite 2s;
1329
- margin: ${(props) => props.margin || "0px"};
1330
-
1331
- @keyframes loading {
1332
- 0% {
1333
- background: ${(props) => !props.dark ? "rgb(0, 0, 0, 0.05)" : "rgb(255, 255, 255, 0.05)"};
1334
- }
1335
- 50% {
1336
- background: ${(props) => !props.dark ? "rgb(0, 0, 0, 0.10)" : "rgb(255, 255, 255, 0.15)"};
1337
- }
1338
- 100% {
1339
- background: ${(props) => !props.dark ? "rgb(0, 0, 0, 0.05)" : "rgb(255, 255, 255, 0.05)"};
1340
- }
1341
- }
1342
- `;
1343
-
1344
- // components/types/loading/bar/index.tsx
1345
- import { jsx as jsx8 } from "react/jsx-runtime";
1346
-
1347
- // components/types/loading/app/styles.tsx
1348
- import styled10 from "styled-components";
1349
- var Container7 = styled10.div`
1350
- width: ${({ initialization }) => initialization ? "100vw" : "100%"};
1351
- height: ${({ initialization }) => initialization ? "100vh" : "calc(100vh - 15rem)"};
1352
- display: flex;
1353
- justify-content: center;
1354
- align-items: center;
1355
- position: ${({ initialization }) => initialization ? "absolute" : "relative"};;
1356
- bottom: 0;
1357
- left: 0;
1358
- background: ${({ initialization, theme }) => initialization ? `${theme.maingrad}, ${theme.primary}` : "transparent"};
1359
- z-index: ${({ initialization }) => initialization ? "9" : "0"};
1360
-
1361
- .iz-loading-logo {
1362
- font-size: 4rem;
1363
- opacity: 40%;
1364
- animation: loop 2s infinite;
1365
- position: relative;
1366
-
1367
- &::before {
1368
- content: "";
1369
- position: absolute;
1370
- width: 5rem;
1371
- height: 5rem;
1372
- animation: firstImpact 2s .5s infinite ease;
1373
- background: ${({ theme }) => theme.t05};
1374
- border-radius: 50%;
1375
- z-index: 0;
1376
- opacity: 0;
1377
- }
1378
-
1379
- &::after {
1380
- content: "";
1381
- position: absolute;
1382
- width: 5rem;
1383
- height: 5rem;
1384
- animation: secondImpact 2s .5s infinite ease;
1385
- background: ${({ theme }) => theme.t05};
1386
- border-radius: 50%;
1387
- z-index: 0;
1388
- opacity: 0;
1389
- }
1390
-
1391
- @keyframes loop {
1392
- 0% {
1393
- transform: scale(1);
1394
- }
1395
- 80% {
1396
- transform: scale(1.3);
1397
- }
1398
- 100% {
1399
- transform: scale(1);
1400
- }
1401
- }
1402
-
1403
- @keyframes firstImpact {
1404
- 0% {
1405
- transform: scale(1);
1406
- opacity: 0;
1407
- }
1408
- 10% {
1409
- transform: scale(1.6);
1410
- opacity: 1;
1411
- }
1412
- 100% {
1413
- transform: scale(1.6);
1414
- opacity: 0;
1415
- }
1416
- }
1417
-
1418
- @keyframes secondImpact {
1419
- 0% {
1420
- transform: scale(1);
1421
- opacity: 0;
1422
- }
1423
- 40% {
1424
- transform: scale(1.3);
1425
- opacity: 1;
1426
- }
1427
- 100% {
1428
- transform: scale(1.3);
1429
- opacity: 0;
1430
- }
1431
- }
1432
- }
1433
- `;
1434
-
1435
- // components/types/logo/styles.tsx
1436
- import styled11 from "styled-components";
1437
- var Container8 = styled11.div`
1438
- display: flex;
1439
- align-items: center;
1440
- justify-content: center;
1441
- gap: .3rem;
1442
- font-size: ${(props) => props.size || "2"}rem;
1443
- color: ${(props) => props.theme.t5};
1444
-
1445
- label:first-child {
1446
- font-weight: 900;
1447
- color: ${(props) => props.theme.secondary};
1448
- }
1449
-
1450
- label:last-child {
1451
- font-weight: 600;
1452
- }
1453
- `;
1454
-
1455
- // components/types/logo/index.tsx
1456
- import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
1457
-
1458
- // components/types/loading/app/index.tsx
1459
- import { jsx as jsx10 } from "react/jsx-runtime";
1460
-
1461
- // components/types/badge/styles.tsx
1462
- import styled12 from "styled-components";
1463
- var Container9 = styled12.div`
1464
- .content {
1465
- display: inline-flex;
1466
- align-items: center;
1467
- justify-content: center;
1468
- height: 1.8rem;
1469
- padding: 0 2rem;
1470
- position: relative;
1471
-
1472
- div {
1473
- position: relative;
1474
- z-index: 1;
1475
- color: ${({ theme, color }) => theme[color]};
1476
- font-size: .8rem;
1477
- font-weight: 500;
1478
- text-transform: capitalize;
1479
- }
1480
-
1481
- &:before {
1482
- content: "";
1483
- position: absolute;
1484
- top: 0;
1485
- left: 0;
1486
- width: 100%;
1487
- height: 100%;
1488
- border-radius: 5px;
1489
- background: ${({ theme, color }) => theme[color]};
1490
- opacity: .2;
1491
- }
1492
- }
1493
- `;
1494
-
1495
- // components/types/badge/index.tsx
1496
- import _7 from "lodash";
1497
- import { jsx as jsx11 } from "react/jsx-runtime";
1498
-
1499
- // components/types/form/index.tsx
1500
- import React9, { useEffect as useEffect6, useRef as useRef2 } from "react";
1501
-
1502
- // components/types/form/styles.tsx
1503
- import styled13 from "styled-components";
1504
- var Container10 = styled13.form`
1505
- width: 100%;
1506
-
1507
- .form-buttons {
1508
- width: 100%;
1509
- padding-top: 1rem;
1510
-
1511
- button {
1512
- width: 100%;
1513
- margin-top: 1rem;
1514
- }
1515
- }
1516
- `;
1517
-
1518
- // components/types/form/index.tsx
1519
- import { z } from "zod";
1520
- import { useForm } from "react-hook-form";
1521
- import { zodResolver } from "@hookform/resolvers/zod";
1522
- import _13 from "lodash";
1523
-
1524
- // components/types/form/types/file/index.tsx
1525
- import { useRef } from "react";
1526
-
1527
- // components/types/form/types/file/styles.tsx
1528
- import styled14 from "styled-components";
1529
- var Container11 = styled14.div`
1530
- width: 100%;
1531
- padding-top: .3rem;
1532
-
1533
- .iz-image-content {
1534
- display: flex;
1535
- align-items: center;
1536
- justify-content: center;
1537
- border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
1538
- border-radius: 5px;
1539
- overflow: hidden;
1540
- padding: .5rem 1rem;
1541
- width: 100%;
1542
- font-size: .8rem;
1543
- background: ${(props) => props.disabled ? "${({ theme }) => theme.t2}" : "${({ theme }) => theme.primary}"};
1544
- opacity: ${(props) => props.disabled ? ".7" : "1"};
1545
- color: ${({ theme }) => theme.t6};
1546
- cursor: pointer;
1547
- }
1548
-
1549
- .iz-input-error {
1550
- color: ${({ theme }) => theme.negative};
1551
- font-size: .7rem;
1552
- }
1553
- `;
1554
-
1555
- // components/types/form/types/label/styles.tsx
1556
- import styled15 from "styled-components";
1557
- var Container12 = styled15.label`
1558
- font-size: .8rem;
1559
- font-weight: 500;
1560
- color: ${({ theme }) => theme.t6};
1561
- `;
1562
-
1563
- // components/types/form/types/label/index.tsx
1564
- import { jsx as jsx12 } from "react/jsx-runtime";
1565
-
1566
- // components/types/form/types/file/index.tsx
1567
- import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
1568
-
1569
- // components/types/form/types/input/index.tsx
1570
- import { useState as useState5 } from "react";
1571
-
1572
- // components/types/form/types/input/styles.tsx
1573
- import styled16 from "styled-components";
1574
- var Container13 = styled16.div`
1575
- width: 100%;
1576
- padding-top: .3rem;
1577
-
1578
- .iz-input-content {
1579
- display: flex;
1580
- align-items: center;
1581
- justify-content: center;
1582
- border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
1583
- border-radius: 5px;
1584
- overflow: hidden;
1585
- padding-right: ${({ password }) => password ? ".6rem" : "0rem"};
1586
- background-color: ${({ theme }) => theme.primary};
1587
-
1588
- input {
1589
- border: 0;
1590
- padding: .5rem 1rem;
1591
- width: 100%;
1592
- font-size: .8rem;
1593
- background-color: ${({ theme }) => theme.primary};
1594
- color: ${({ theme }) => theme.t6};
1595
-
1596
- &:disabled {
1597
- background-color: ${({ theme }) => theme.t2};
1598
- color: ${({ theme }) => theme.t6};
1599
- opacity: .7;
1600
- }
1601
-
1602
- &:focus-visible {
1603
- outline: none;
1604
- }
1605
- }
1606
-
1607
- i {
1608
- color: ${({ theme }) => theme.t3};
1609
- cursor: pointer;
1610
- }
1611
- }
1612
-
1613
- .iz-input-error {
1614
- color: ${({ theme }) => theme.negative};
1615
- font-size: .7rem;
1616
- }
1617
- `;
1618
-
1619
- // components/types/form/types/input/index.tsx
1620
- import _8 from "lodash";
1621
- import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
1622
-
1623
- // components/types/form/types/select/index.tsx
1624
- import { useState as useState6 } from "react";
1625
-
1626
- // components/types/form/types/select/styles.tsx
1627
- import styled17 from "styled-components";
1628
- var Container14 = styled17.div`
1629
- width: 100%;
1630
- padding-top: .3rem;
1631
-
1632
- .iz-input-content {
1633
- display: flex;
1634
- align-items: center;
1635
- justify-content: center;
1636
- border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
1637
- border-radius: 5px;
1638
- overflow: hidden;
1639
- position: relative;
1640
- cursor: pointer;
1641
-
1642
- select {
1643
- border: 0;
1644
- padding: .5rem 2.3rem .5rem 1rem;
1645
- width: 100%;
1646
- font-size: .8rem;
1647
- appearance: none;
1648
- cursor: pointer;
1649
- background-color: ${({ theme }) => theme.primary};
1650
- color: ${({ theme }) => theme.t6};
1651
-
1652
- &:disabled {
1653
- background-color: ${({ theme }) => theme.t2};
1654
- color: ${({ theme }) => theme.t6};
1655
- opacity: .7;
1656
- }
1657
-
1658
- &:focus-visible {
1659
- outline: none;
1660
- }
1661
- }
1662
-
1663
- i {
1664
- position: absolute;
1665
- top: 50%;
1666
- right: .8rem;
1667
- transform: translateY(-50%);
1668
- font-size: .8rem;
1669
- color: ${({ theme }) => theme.t6};
1670
- }
1671
- }
1672
-
1673
- .iz-input-error {
1674
- color: ${({ theme }) => theme.negative};
1675
- font-size: .7rem;
1676
- }
1677
- `;
1678
-
1679
- // components/types/form/types/select/index.tsx
1680
- import _9 from "lodash";
1681
- import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
1682
-
1683
- // components/types/form/types/button/styles.tsx
1684
- import styled18 from "styled-components";
1685
- var Container15 = styled18.button`
1686
- border-radius: 5px;
1687
- font-size: .8rem;
1688
- font-weight: 500;
1689
- transition: ease .3s;
1690
- display: flex;
1691
- align-items: center;
1692
- justify-content: center;
1693
- color: ${(props) => props.transparent ? props.theme.t6 : props.outline ? props.color || props.theme.secondary : "#fff !important"};
1694
- background: ${(props) => props.transparent ? "transparent" : props.outline ? props.theme.t05 : props.color || props.theme.secondary};
1695
- border: 1px solid ${(props) => props.transparent ? "transparent" : props.outline ? props.theme.t05 : props.color || props.theme.secondary};
1696
- pointer-events: ${(props) => props.loading === "true" ? "none" : "auto"};
1697
- cursor: ${(props) => props.loading === "true" ? "default" : "pointer"};
1698
- opacity: ${(props) => props.loading === "true" ? 0.6 : 1};
1699
- padding: .4rem 2.5rem;
1700
- transition: ease .3s;
1701
-
1702
- span {
1703
- text-align: center;
1704
- cursor: ${(props) => props.loading === "true" ? "default" : "pointer"};
1705
- }
1706
-
1707
- &:disabled {
1708
- pointer-events: none;
1709
-
1710
- &::before {
1711
- opacity: .6;
1712
- }
1713
- }
1714
-
1715
- &:hover {
1716
- opacity: .9;
1717
- color: ${(props) => props.transparent ? props.theme.t6 : props.outline ? props.color || props.theme.secondary : "#fff"};
1718
-
1719
- &::before {
1720
- background: ${(props) => props.transparent ? "transparent" : props.color || props.theme.secondary};
1721
- }
1722
- }
1723
- `;
1724
-
1725
- // components/types/form/types/button/loading/styles.tsx
1726
- import styled19 from "styled-components";
1727
- var Container16 = styled19.div`
1728
- display: flex;
1729
- justify-content: space-between;
1730
- align-items: center;
1731
- width: 2rem;
1732
- margin-right: .5rem;
1733
-
1734
- div {
1735
- width: .5rem;
1736
- height: .5rem;
1737
- border-radius: 1rem;
1738
- background: rgb(255, 255, 255, 1);
1739
-
1740
- &:nth-child(1) {
1741
- animation: blinkOne infinite ease 2s;
1742
- }
1743
-
1744
- &:nth-child(2) {
1745
- animation: blinkTwo infinite ease 2s;
1746
- }
1747
-
1748
- &:nth-child(3) {
1749
- animation: blinkThree infinite ease 2s;
1750
- }
1751
- }
1752
-
1753
- @keyframes blinkOne {
1754
- 0% {
1755
- opacity: 0.8;
1756
- }
1757
- 20% {
1758
- opacity: 0.2;
1759
- }
1760
- 40% {
1761
- opacity: 0.2;
1762
- }
1763
- 60% {
1764
- opacity: 0.2;
1765
- }
1766
- 80% {
1767
- opacity: 0.2;
1768
- }
1769
- 100% {
1770
- opacity: 0.8;
1771
- }
1772
- }
1773
-
1774
- @keyframes blinkTwo {
1775
- 0% {
1776
- opacity: 0.2;
1777
- }
1778
- 20% {
1779
- opacity: 0.8;
1780
- }
1781
- 40% {
1782
- opacity: 0.2;
1783
- }
1784
- 60% {
1785
- opacity: 0.2;
1786
- }
1787
- 80% {
1788
- opacity: 0.8;
1789
- }
1790
- 100% {
1791
- opacity: 0.2;
1792
- }
1793
- }
1794
-
1795
- @keyframes blinkThree {
1796
- 0% {
1797
- opacity: 0.2;
1798
- }
1799
- 25% {
1800
- opacity: 0.2;
1801
- }
1802
- 50% {
1803
- opacity: 0.8;
1804
- }
1805
- 75% {
1806
- opacity: 0.2;
1807
- }
1808
- 100% {
1809
- opacity: 0.2;
1810
- }
1811
- }
1812
- `;
1813
-
1814
- // components/types/form/types/button/loading/index.tsx
1815
- import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
1816
- function Loading() {
1817
- return /* @__PURE__ */ jsxs11(Container16, { children: [
1818
- /* @__PURE__ */ jsx16("div", {}),
1819
- /* @__PURE__ */ jsx16("div", {}),
1820
- /* @__PURE__ */ jsx16("div", {})
1821
- ] });
1822
- }
1823
-
1824
- // components/types/form/types/button/index.tsx
1825
- import _10 from "lodash";
1826
- import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
1827
- function Button(props) {
1828
- return /* @__PURE__ */ jsxs12(
1829
- Container15,
1830
- {
1831
- loading: String(!!props.loading),
1832
- disabled: props.disabled,
1833
- type: props.type || "button",
1834
- ..._10.omit(props, ["loading", "type"]),
1835
- children: [
1836
- !!props.loading && /* @__PURE__ */ jsx17(Loading, {}),
1837
- /* @__PURE__ */ jsx17("span", { children: props.label })
1838
- ]
1839
- }
1840
- );
1841
- }
1842
-
1843
- // components/types/form/types/datetime/styles.tsx
1844
- import styled20 from "styled-components";
1845
- var Container17 = styled20.div`
1846
- width: 100%;
1847
- padding-top: .3rem;
1848
-
1849
- .iz-input-content {
1850
- display: flex;
1851
- align-items: center;
1852
- justify-content: center;
1853
- border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
1854
- border-radius: 5px;
1855
- overflow: hidden;
1856
-
1857
- input {
1858
- border: 0;
1859
- padding: .5rem 1rem;
1860
- width: 100%;
1861
- font-size: .8rem;
1862
- background-color: ${({ theme }) => theme.primary};
1863
- color: ${({ theme }) => theme.t6};
1864
- color-scheme: ${(props) => props.theme || "light"};
1865
-
1866
- &:disabled {
1867
- background-color: ${({ theme }) => theme.t2};
1868
- color: ${({ theme }) => theme.t6};
1869
- opacity: .7;
1870
- }
1871
-
1872
- &:focus-visible {
1873
- outline: none;
1874
- }
1875
- }
1876
- }
1877
-
1878
- .iz-input-error {
1879
- color: ${({ theme }) => theme.negative};
1880
- font-size: .7rem;
1881
- }
1882
- `;
1883
-
1884
- // components/types/form/types/datetime/index.tsx
1885
- import _11 from "lodash";
1886
- import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
1887
-
1888
- // components/types/form/types/textarea/styles.tsx
1889
- import styled21 from "styled-components";
1890
- var Container18 = styled21.div`
1891
- width: 100%;
1892
- padding-top: .3rem;
1893
-
1894
- .iz-input-content {
1895
- display: flex;
1896
- align-items: center;
1897
- justify-content: center;
1898
- border: 1px solid ${({ error, theme }) => error ? theme.negative : theme.t2};
1899
- border-radius: 5px;
1900
- overflow: hidden;
1901
-
1902
- textarea {
1903
- border: 0;
1904
- padding: .5rem 1rem;
1905
- width: 100%;
1906
- font-size: .8rem;
1907
- background-color: ${({ theme }) => theme.primary};
1908
- color: ${({ theme }) => theme.t6};
1909
-
1910
- &:disabled {
1911
- background-color: ${({ theme }) => theme.t2};
1912
- color: ${({ theme }) => theme.t6};
1913
- opacity: .7;
1914
- }
1915
-
1916
- &:focus-visible {
1917
- outline: none;
1918
- }
1919
- }
1920
- }
1921
-
1922
- .iz-input-error {
1923
- color: ${({ theme }) => theme.negative};
1924
- font-size: .7rem;
1925
- }
1926
- `;
1927
-
1928
- // components/types/form/types/textarea/index.tsx
1929
- import _12 from "lodash";
1930
- import { jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
1931
-
1932
- // components/types/form/index.tsx
1933
- import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
1934
-
1935
- // components/types/chart/styles.tsx
1936
- import styled22 from "styled-components";
1937
- var Container19 = styled22.div`
1938
-
1939
- `;
1940
-
1941
- // components/types/chart/index.tsx
1942
- import dynamic from "next/dynamic";
1943
- import _14 from "lodash";
1944
- import { jsx as jsx21 } from "react/jsx-runtime";
1945
- var ApexChart = dynamic(() => import("react-apexcharts").then((mod) => mod.default), { ssr: false });
1946
-
1947
- // components/types/avatar/index.tsx
1948
- import { useRef as useRef3, useState as useState7 } from "react";
1949
-
1950
- // components/types/avatar/styles.tsx
1951
- import styled23 from "styled-components";
1952
- var Container20 = styled23.div`
1953
- width: ${({ size }) => size || "2.3rem"};
1954
- height: ${({ size }) => size || "2.3rem"};
1955
- border-radius: ${({ size }) => size || "2.3rem"};
1956
- border: 2px solid ${({ theme }) => theme.t1};
1957
- background: ${({ color }) => color};
1958
- display: flex;
1959
- align-items: center;
1960
- justify-content: center;
1961
- cursor: ${({ onClick }) => onClick ? "pointer" : "default"};
1962
- transition: ease .2s;
1963
- position: relative;
1964
- font-size: ${({ width }) => width / 2.5}px;
1965
- font-weight: 500;
1966
- color: ${({ theme }) => theme.primary};
1967
-
1968
- span {
1969
- position: relative;
1970
- z-index: 1;
1971
- }
1972
-
1973
- &::before {
1974
- content: "";
1975
- position: absolute;
1976
- width: 100%;
1977
- height: 100%;
1978
- transition: ease .2s;
1979
- background: ${({ theme }) => theme.t03};
1980
- border-radius: ${({ size }) => size || "2.3rem"};
1981
- z-index: 0;
1982
- }
1983
-
1984
- &::after {
1985
- content: "";
1986
- position: absolute;
1987
- width: 100%;
1988
- height: 100%;
1989
- transition: ease .2s;
1990
- background: ${({ theme }) => theme.t05};
1991
- border-radius: ${({ size }) => size || "2.3rem"};
1992
- z-index: 0;
1993
- }
1994
-
1995
- &:hover {
1996
- &::before {
1997
- transform: scale(1.6);
1998
- }
1999
-
2000
- &::after {
2001
- transform: scale(1.3);
2002
- }
2003
- }
2004
- `;
2005
-
2006
- // components/types/avatar/index.tsx
2007
- import _15 from "lodash";
2008
- import { jsx as jsx22 } from "react/jsx-runtime";
2009
-
2010
- // components/types/lottie/styles.tsx
2011
- import styled24 from "styled-components";
2012
- var Container21 = styled24.div`
2013
- display: flex;
2014
- align-items: center;
2015
- justify-content: center;
2016
- gap: .3rem;
2017
-
2018
- label {
2019
- font-size: ${(props) => props.size || "2"}rem;
2020
- color: ${(props) => props.theme.t5};
2021
- }
2022
-
2023
- label:first-child {
2024
- font-weight: 900;
2025
- color: ${(props) => props.theme.secondary};
2026
- }
2027
-
2028
- label:last-child {
2029
- font-weight: 600;
2030
- }
2031
- `;
2032
-
2033
- // components/types/lottie/index.tsx
2034
- import LottieReact from "react-lottie";
2035
- import { jsx as jsx23 } from "react/jsx-runtime";
2036
-
2037
- // components/types/credit-card/styles.tsx
2038
- import styled25 from "styled-components";
2039
- var Container22 = styled25.div`
2040
- border-radius: 8px 8px 0 0;
2041
- transition: .2s ease .2s background, .2s ease .2s padding;
2042
- position: relative;
2043
- display: flex;
2044
- gap: .5rem;
2045
- height: 11rem;
2046
- pointer-events: all;
2047
-
2048
- @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
2049
- width: 100%;
2050
- }
2051
-
2052
- &:hover {
2053
- .iz-credit-card-function-container {
2054
- margin-left: 0;
2055
-
2056
- .iz-credit-card-function {
2057
- transform: translateX(0);
2058
- opacity: 1;
2059
- }
2060
-
2061
- .iz-credit-card-function:nth-child(1) {
2062
- transition: .3s ease transform, .2s ease .1s opacity, ease .3s color;
2063
- }
2064
-
2065
- .iz-credit-card-function:nth-child(2) {
2066
- transition: .3s ease .1s transform, .2s ease .2s opacity, ease .3s color;
2067
- }
2068
- }
2069
- }
2070
- `;
2071
-
2072
- // components/types/credit-card/card/index.tsx
2073
- import { useEffect as useEffect8, useRef as useRef4 } from "react";
2074
-
2075
- // components/types/credit-card/card/styles.tsx
2076
- import styled26 from "styled-components";
2077
- var Container23 = styled26.div`
2078
- height: 11rem;
2079
- width: 20rem;
2080
- border-radius: 8px;
2081
- background: ${({ theme }) => theme.t05};
2082
- padding: 1.5rem;
2083
- display: inline-flex;
2084
- justify-content: space-between;
2085
- gap: 1rem;
2086
- white-space: nowrap;
2087
- position: relative;
2088
- z-index: 0;
2089
- backdrop-filter: blur(5px);
2090
-
2091
- @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
2092
- width: 100%;
2093
- height: 10rem;
2094
- }
2095
-
2096
- @media(max-width: ${({ theme }) => theme.mobileMinWidth}) {
2097
- height: 9rem;
2098
- }
2099
-
2100
- .iz-credit-card-left {
2101
- display: flex;
2102
- flex-direction: column;
2103
- justify-content: space-between;
2104
- gap: 1rem;
2105
- width: 100%;
2106
-
2107
- .iz-credit-card-top {
2108
- div {
2109
- width: 2.5rem;
2110
- height: 1.5rem;
2111
- background-size: contain;
2112
- background-repeat: no-repeat;
2113
- }
2114
- }
2115
-
2116
- .iz-credit-card-bottom {
2117
- display: flex;
2118
- flex-direction: column;
2119
- gap: .8rem;
2120
-
2121
- .iz-credit-card-elipse {
2122
- position: absolute;
2123
- left: 0;
2124
- right: 0;
2125
- white-space: nowrap;
2126
- overflow: hidden;
2127
- text-overflow: ellipsis;
2128
- }
2129
-
2130
- .iz-credit-card-number {
2131
- font-size: 1.1rem;
2132
- font-weight: 600;
2133
- color: ${({ theme }) => theme.t6};
2134
- position: relative;
2135
- height: 1.1rem;
2136
-
2137
- @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
2138
- font-size: .9rem;
2139
- height: .9rem;
2140
- }
2141
-
2142
- @media(max-width: ${({ theme }) => theme.mobileMinWidth}) {
2143
- font-size: .7rem;
2144
- height: .7rem;
2145
- }
2146
- }
2147
-
2148
- .iz-credit-card-name {
2149
- font-size: .9rem;
2150
- font-weight: 500;
2151
- position: relative;
2152
- text-transform: uppercase;
2153
- color: ${({ theme }) => theme.t5};
2154
- height: .9rem;
2155
-
2156
- @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
2157
- font-size: .7rem;
2158
- height: .7rem;
2159
- }
2160
-
2161
- @media(max-width: ${({ theme }) => theme.mobileMinWidth}) {
2162
- font-size: .5rem;
2163
- height: .5rem;
2164
- }
2165
- }
2166
- }
2167
- }
2168
-
2169
- .iz-credit-card-right {
2170
- display: flex;
2171
- flex-direction: column;
2172
- justify-content: space-between;
2173
- align-items: flex-end;
2174
- gap: 1rem;
2175
-
2176
- .iz-credit-card-top {
2177
- display: flex;
2178
- justify-content: end;
2179
-
2180
- div {
2181
- width: 2.5rem;
2182
- height: 2.5rem;
2183
- background-size: contain;
2184
- background-repeat: no-repeat;
2185
- }
2186
- }
2187
-
2188
- .iz-credit-card-bottom {
2189
- display: flex;
2190
- flex-direction: column;
2191
- text-align: right;
2192
-
2193
- span:first-child {
2194
- font-size: .6rem;
2195
- font-weight: 600;
2196
- color: ${({ theme }) => theme.t3};
2197
- }
2198
-
2199
- span:last-child {
2200
- font-size: .8rem;
2201
- font-weight: 600;
2202
- color: ${({ theme }) => theme.t5};
2203
- }
2204
- }
2205
- }
2206
- `;
2207
-
2208
- // components/types/credit-card/tools/index.tsx
2209
- var import_credit_card_type = __toESM(require_dist());
2210
- var import_luhn = __toESM(require_luhn());
2211
- import _16 from "lodash";
2212
- var validateLuhn = import_luhn.default.validate;
2213
-
2214
- // components/types/credit-card/card/index.tsx
2215
- import _17 from "lodash";
2216
- import { jsx as jsx24, jsxs as jsxs16 } from "react/jsx-runtime";
2217
-
2218
- // components/types/credit-card/functions/styles.tsx
2219
- import styled27 from "styled-components";
2220
- var Container24 = styled27.div`
2221
- display: flex;
2222
- flex-direction: column;
2223
- gap: .5rem;
2224
- margin-left: -2.5rem;
2225
- transition: ease .3s;
2226
- width: 2rem;
2227
-
2228
- .iz-credit-card-function {
2229
- width: 2rem;
2230
- height: 2rem;
2231
- display: flex;
2232
- align-items: center;
2233
- justify-content: center;
2234
- border-radius: 5px;
2235
- background: ${({ theme }) => theme.t05};
2236
- color: ${({ theme }) => theme.t6};
2237
- font-size: .85rem;
2238
- transform: translateX(-2rem);
2239
- opacity: 0;
2240
- cursor: pointer;
2241
-
2242
- &:hover {
2243
- color: ${({ theme }) => theme.t8};
2244
- }
2245
- }
2246
-
2247
- .iz-credit-card-function:nth-child(1) {
2248
- transition: 5s ease transform, ease .2s opacity, ease .3s color;
2249
- }
2250
-
2251
- .iz-credit-card-function:nth-child(2) {
2252
- transition: .3s ease .1s transform, ease .2s opacity, ease .3s color;
2253
- }
2254
- `;
2255
-
2256
- // components/types/credit-card/functions/index.tsx
2257
- import _18 from "lodash";
2258
- import { jsx as jsx25 } from "react/jsx-runtime";
2259
-
2260
- // components/types/credit-card/index.tsx
2261
- import { jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
2262
-
2263
- // components/types/block/styles.tsx
2264
- import styled28 from "styled-components";
2265
- var Container25 = styled28.div`
2266
- display: flex;
2267
- flex-direction: column;
2268
- gap: 1rem;
2269
- padding: 1.3rem 1.5rem;
2270
- border-radius: 5px;
2271
- background: ${({ theme }) => theme.t05};
2272
- flex: 1 1 20rem;
2273
-
2274
- header {
2275
- display: flex;
2276
- align-items: center;
2277
- gap: .5rem;
2278
- font-size: .9rem;
2279
- font-weight: 600;
2280
- color: ${({ theme }) => theme.t6};
2281
- }
2282
- `;
2283
- var Content2 = styled28.div`
2284
- font-size: 1.5rem;
2285
- font-weight: 500;
2286
- color: ${({ theme }) => theme.t7};
2287
- `;
2288
-
2289
- // components/types/block/index.tsx
2290
- import { jsx as jsx27, jsxs as jsxs18 } from "react/jsx-runtime";
2291
-
2292
- // components/index.tsx
2293
- import { jsx as jsx28 } from "react/jsx-runtime";
2294
-
2295
- // components/types/modal/index.tsx
2296
- import _20 from "lodash";
2297
- import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
2298
- function Modal2(props) {
4
+ import { Container } from "./styles";
5
+ import { Button } from "../..";
6
+ import _ from "lodash";
7
+ function Modal(props) {
2299
8
  var _a, _b, _c;
2300
- return /* @__PURE__ */ jsxs19(Container, { ...props, position: props.position || "center", children: [
2301
- /* @__PURE__ */ jsx29("div", { className: "iz-modal-back", onClick: props.onClose }),
2302
- /* @__PURE__ */ jsxs19("div", { className: "iz-modal-container", children: [
2303
- (!!props.title || !!props.header) && /* @__PURE__ */ jsxs19("div", { className: "iz-modal-header", children: [
2304
- /* @__PURE__ */ jsxs19("div", { className: "iz-modal-title", children: [
2305
- ((_a = props.header) == null ? void 0 : _a.icon) && /* @__PURE__ */ jsx29("i", { "aria-hidden": true, className: (_b = props.header) == null ? void 0 : _b.icon }),
2306
- /* @__PURE__ */ jsx29("span", { children: props.title || ((_c = props.header) == null ? void 0 : _c.title) })
9
+ return /* @__PURE__ */ jsxs(Container, { ...props, position: props.position || "center", children: [
10
+ /* @__PURE__ */ jsx("div", { className: "iz-modal-back", onClick: props.onClose }),
11
+ /* @__PURE__ */ jsxs("div", { className: "iz-modal-container", children: [
12
+ (!!props.title || !!props.header) && /* @__PURE__ */ jsxs("div", { className: "iz-modal-header", children: [
13
+ /* @__PURE__ */ jsxs("div", { className: "iz-modal-title", children: [
14
+ ((_a = props.header) == null ? void 0 : _a.icon) && /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: (_b = props.header) == null ? void 0 : _b.icon }),
15
+ /* @__PURE__ */ jsx("span", { children: props.title || ((_c = props.header) == null ? void 0 : _c.title) })
2307
16
  ] }),
2308
- /* @__PURE__ */ jsx29("i", { "aria-hidden": true, className: "fa-solid fa-xmark", onClick: props.onClose })
17
+ /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-xmark", onClick: props.onClose })
2309
18
  ] }),
2310
- /* @__PURE__ */ jsxs19("div", { className: "iz-modal-content", children: [
2311
- props.onClose && !props.title && !props.header && !props.noCloseIcon && /* @__PURE__ */ jsx29("div", { className: "iz-modal-close", onClick: props.onClose, children: /* @__PURE__ */ jsx29("i", { "aria-hidden": true, className: "fa-solid fa-xmark" }) }),
19
+ /* @__PURE__ */ jsxs("div", { className: "iz-modal-content", children: [
20
+ props.onClose && !props.title && !props.header && !props.noCloseIcon && /* @__PURE__ */ jsx("div", { className: "iz-modal-close", onClick: props.onClose, children: /* @__PURE__ */ jsx("i", { "aria-hidden": true, className: "fa-solid fa-xmark" }) }),
2312
21
  props.children
2313
22
  ] }),
2314
- props.buttons && /* @__PURE__ */ jsx29("div", { className: "iz-modal-buttons", children: _20.map(
23
+ props.buttons && /* @__PURE__ */ jsx("div", { className: "iz-modal-buttons", children: _.map(
2315
24
  props.buttons,
2316
- (button, index) => /* @__PURE__ */ jsx29(Button, { ...button }, index)
25
+ (button, index) => /* @__PURE__ */ jsx(Button, { ...button }, index)
2317
26
  ) })
2318
27
  ] })
2319
28
  ] });
2320
29
  }
2321
30
  export {
2322
- Modal2 as Modal
31
+ Modal
2323
32
  };