@gustavo-valsechi/client 1.3.28 → 1.3.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/dist/components/index.d.ts +3 -10
  2. package/dist/components/index.js +0 -1
  3. package/dist/components/index.mjs +0 -1
  4. package/dist/components/styles.d.ts +2 -0
  5. package/dist/components/styles.js +55 -0
  6. package/dist/components/styles.mjs +20 -0
  7. package/dist/components/types/avatar/index.d.ts +2 -0
  8. package/dist/components/types/avatar/index.js +121 -0
  9. package/dist/components/types/avatar/index.mjs +87 -0
  10. package/dist/components/types/avatar/styles.d.ts +1 -0
  11. package/dist/components/types/avatar/styles.js +94 -0
  12. package/dist/components/types/avatar/styles.mjs +60 -0
  13. package/dist/components/types/badge/index.d.ts +2 -0
  14. package/dist/components/types/badge/index.js +353 -0
  15. package/dist/components/types/badge/index.mjs +323 -0
  16. package/dist/components/types/badge/styles.d.ts +1 -0
  17. package/dist/components/types/badge/styles.js +72 -0
  18. package/dist/components/types/badge/styles.mjs +38 -0
  19. package/dist/components/types/block/index.d.ts +2 -0
  20. package/dist/components/types/block/index.js +3081 -0
  21. package/dist/components/types/block/index.mjs +3077 -0
  22. package/dist/components/types/block/styles.d.ts +2 -0
  23. package/dist/components/types/block/styles.js +66 -0
  24. package/dist/components/types/block/styles.mjs +31 -0
  25. package/dist/components/types/chart/index.d.ts +2 -0
  26. package/dist/components/types/chart/index.js +351 -0
  27. package/dist/components/types/chart/index.mjs +321 -0
  28. package/dist/components/types/chart/styles.d.ts +1 -0
  29. package/dist/components/types/chart/styles.js +43 -0
  30. package/dist/components/types/chart/styles.mjs +8 -0
  31. package/dist/components/types/credit-card/assets/index.d.ts +4 -0
  32. package/dist/components/types/credit-card/assets/index.js +42 -0
  33. package/dist/components/types/credit-card/assets/index.mjs +21 -0
  34. package/dist/components/types/credit-card/card/index.d.ts +2 -0
  35. package/dist/components/types/credit-card/card/index.js +739 -0
  36. package/dist/components/types/credit-card/card/index.mjs +731 -0
  37. package/dist/components/types/credit-card/card/styles.d.ts +1 -0
  38. package/dist/components/types/credit-card/card/styles.js +171 -0
  39. package/dist/components/types/credit-card/card/styles.mjs +137 -0
  40. package/dist/components/types/credit-card/functions/index.d.ts +2 -0
  41. package/dist/components/types/credit-card/functions/index.js +92 -0
  42. package/dist/components/types/credit-card/functions/index.mjs +60 -0
  43. package/dist/components/types/credit-card/functions/styles.d.ts +1 -0
  44. package/dist/components/types/credit-card/functions/styles.js +76 -0
  45. package/dist/components/types/credit-card/functions/styles.mjs +42 -0
  46. package/dist/components/types/credit-card/index.d.ts +2 -0
  47. package/dist/components/types/credit-card/index.js +866 -0
  48. package/dist/components/types/credit-card/index.mjs +852 -0
  49. package/dist/components/types/credit-card/styles.d.ts +1 -0
  50. package/dist/components/types/credit-card/styles.js +73 -0
  51. package/dist/components/types/credit-card/styles.mjs +39 -0
  52. package/dist/components/types/credit-card/tools/index.d.ts +6 -0
  53. package/dist/components/types/credit-card/tools/index.js +578 -0
  54. package/dist/components/types/credit-card/tools/index.mjs +565 -0
  55. package/dist/components/types/form/index.d.ts +3 -0
  56. package/dist/components/types/form/index.js +746 -0
  57. package/dist/components/types/form/index.mjs +710 -0
  58. package/dist/components/types/form/styles.d.ts +1 -0
  59. package/dist/components/types/form/styles.js +54 -0
  60. package/dist/components/types/form/styles.mjs +20 -0
  61. package/dist/components/types/form/types/button/index.d.ts +2 -0
  62. package/dist/components/types/form/types/button/index.js +200 -0
  63. package/dist/components/types/form/types/button/index.mjs +164 -0
  64. package/dist/components/types/form/types/button/loading/index.d.ts +1 -0
  65. package/dist/components/types/form/types/button/loading/index.js +139 -0
  66. package/dist/components/types/form/types/button/loading/index.mjs +103 -0
  67. package/dist/components/types/form/types/button/loading/styles.d.ts +1 -0
  68. package/dist/components/types/form/types/button/loading/styles.js +127 -0
  69. package/dist/components/types/form/types/button/loading/styles.mjs +93 -0
  70. package/dist/components/types/form/types/button/styles.d.ts +1 -0
  71. package/dist/components/types/form/types/button/styles.js +80 -0
  72. package/dist/components/types/form/types/button/styles.mjs +46 -0
  73. package/dist/components/types/form/types/datetime/index.d.ts +2 -0
  74. package/dist/components/types/form/types/datetime/index.js +128 -0
  75. package/dist/components/types/form/types/datetime/index.mjs +92 -0
  76. package/dist/components/types/form/types/datetime/styles.d.ts +1 -0
  77. package/dist/components/types/form/types/datetime/styles.js +79 -0
  78. package/dist/components/types/form/types/datetime/styles.mjs +45 -0
  79. package/dist/components/types/form/types/file/index.d.ts +2 -0
  80. package/dist/components/types/form/types/file/index.js +124 -0
  81. package/dist/components/types/form/types/file/index.mjs +90 -0
  82. package/dist/components/types/form/types/file/styles.d.ts +1 -0
  83. package/dist/components/types/form/types/file/styles.js +66 -0
  84. package/dist/components/types/form/types/file/styles.mjs +32 -0
  85. package/dist/components/types/form/types/index.d.ts +7 -0
  86. package/dist/components/types/form/types/index.js +644 -0
  87. package/dist/components/types/form/types/index.mjs +601 -0
  88. package/dist/components/types/form/types/input/index.d.ts +2 -0
  89. package/dist/components/types/form/types/input/index.js +146 -0
  90. package/dist/components/types/form/types/input/index.mjs +112 -0
  91. package/dist/components/types/form/types/input/styles.d.ts +1 -0
  92. package/dist/components/types/form/types/input/styles.js +85 -0
  93. package/dist/components/types/form/types/input/styles.mjs +51 -0
  94. package/dist/components/types/form/types/label/index.d.ts +2 -0
  95. package/dist/components/types/form/types/label/index.js +54 -0
  96. package/dist/components/types/form/types/label/index.mjs +18 -0
  97. package/dist/components/types/form/types/label/styles.d.ts +1 -0
  98. package/dist/components/types/form/types/label/styles.js +46 -0
  99. package/dist/components/types/form/types/label/styles.mjs +12 -0
  100. package/dist/components/types/form/types/select/index.d.ts +2 -0
  101. package/dist/components/types/form/types/select/index.js +158 -0
  102. package/dist/components/types/form/types/select/index.mjs +124 -0
  103. package/dist/components/types/form/types/select/styles.d.ts +1 -0
  104. package/dist/components/types/form/types/select/styles.js +91 -0
  105. package/dist/components/types/form/types/select/styles.mjs +57 -0
  106. package/dist/components/types/form/types/textarea/index.d.ts +2 -0
  107. package/dist/components/types/form/types/textarea/index.js +127 -0
  108. package/dist/components/types/form/types/textarea/index.mjs +91 -0
  109. package/dist/components/types/form/types/textarea/styles.d.ts +1 -0
  110. package/dist/components/types/form/types/textarea/styles.js +78 -0
  111. package/dist/components/types/form/types/textarea/styles.mjs +44 -0
  112. package/dist/components/types/index.d.ts +11 -0
  113. package/dist/components/types/index.js +3091 -0
  114. package/dist/components/types/index.mjs +3093 -0
  115. package/dist/components/types/loading/app/index.d.ts +2 -0
  116. package/dist/components/types/loading/app/index.js +163 -0
  117. package/dist/components/types/loading/app/index.mjs +127 -0
  118. package/dist/components/types/loading/app/styles.d.ts +1 -0
  119. package/dist/components/types/loading/app/styles.js +126 -0
  120. package/dist/components/types/loading/app/styles.mjs +92 -0
  121. package/dist/components/types/loading/bar/index.d.ts +2 -0
  122. package/dist/components/types/loading/bar/index.js +68 -0
  123. package/dist/components/types/loading/bar/index.mjs +32 -0
  124. package/dist/components/types/loading/bar/styles.d.ts +1 -0
  125. package/dist/components/types/loading/bar/styles.js +60 -0
  126. package/dist/components/types/loading/bar/styles.mjs +26 -0
  127. package/dist/components/types/loading/index.d.ts +2 -0
  128. package/dist/components/types/loading/index.js +192 -0
  129. package/dist/components/types/loading/index.mjs +154 -0
  130. package/dist/components/types/logo/index.d.ts +2 -0
  131. package/dist/components/types/logo/index.js +69 -0
  132. package/dist/components/types/logo/index.mjs +33 -0
  133. package/dist/components/types/logo/styles.d.ts +1 -0
  134. package/dist/components/types/logo/styles.js +58 -0
  135. package/dist/components/types/logo/styles.mjs +24 -0
  136. package/dist/components/types/lottie/animations/index.d.ts +293 -0
  137. package/dist/components/types/lottie/animations/index.js +31 -0
  138. package/dist/components/types/lottie/animations/index.mjs +8 -0
  139. package/dist/components/types/lottie/index.d.ts +2 -0
  140. package/dist/components/types/lottie/index.js +104 -0
  141. package/dist/components/types/lottie/index.mjs +68 -0
  142. package/dist/components/types/lottie/styles.d.ts +1 -0
  143. package/dist/components/types/lottie/styles.js +61 -0
  144. package/dist/components/types/lottie/styles.mjs +27 -0
  145. package/dist/components/types/modal/index.d.ts +2 -0
  146. package/dist/components/types/modal/index.js +2331 -0
  147. package/dist/components/types/modal/index.mjs +2323 -0
  148. package/dist/components/types/modal/styles.d.ts +1 -0
  149. package/dist/components/types/modal/styles.js +168 -0
  150. package/dist/components/types/modal/styles.mjs +134 -0
  151. package/dist/components/types/table/index.d.ts +3 -0
  152. package/dist/components/types/table/index.js +3081 -0
  153. package/dist/components/types/table/index.mjs +3078 -0
  154. package/dist/components/types/table/modal/actions.d.ts +10 -0
  155. package/dist/components/types/table/modal/actions.js +108 -0
  156. package/dist/components/types/table/modal/actions.mjs +85 -0
  157. package/dist/components/types/table/modal/index.d.ts +2 -0
  158. package/dist/components/types/table/modal/index.js +3075 -0
  159. package/dist/components/types/table/modal/index.mjs +3075 -0
  160. package/dist/components/types/table/modal/styles.d.ts +1 -0
  161. package/dist/components/types/table/modal/styles.js +91 -0
  162. package/dist/components/types/table/modal/styles.mjs +57 -0
  163. package/dist/components/types/table/paginate/index.d.ts +2 -0
  164. package/dist/components/types/table/paginate/index.js +131 -0
  165. package/dist/components/types/table/paginate/index.mjs +95 -0
  166. package/dist/components/types/table/paginate/styles.d.ts +1 -0
  167. package/dist/components/types/table/paginate/styles.js +75 -0
  168. package/dist/components/types/table/paginate/styles.mjs +41 -0
  169. package/dist/components/types/table/styles.d.ts +5 -0
  170. package/dist/components/types/table/styles.js +301 -0
  171. package/dist/components/types/table/styles.mjs +267 -0
  172. package/dist/contexts/icon/assets/brands/index.d.ts +2 -0
  173. package/dist/contexts/icon/assets/brands/index.js +32 -0
  174. package/dist/contexts/icon/assets/brands/index.mjs +18 -0
  175. package/dist/contexts/icon/assets/index.d.ts +6 -0
  176. package/dist/contexts/icon/assets/index.js +59 -0
  177. package/dist/contexts/icon/assets/index.mjs +43 -0
  178. package/dist/contexts/icon/assets/regular/index.d.ts +2 -0
  179. package/dist/contexts/icon/assets/regular/index.js +32 -0
  180. package/dist/contexts/icon/assets/regular/index.mjs +18 -0
  181. package/dist/contexts/icon/assets/solid/index.d.ts +2 -0
  182. package/dist/contexts/icon/assets/solid/index.js +32 -0
  183. package/dist/contexts/icon/assets/solid/index.mjs +18 -0
  184. package/dist/contexts/icon/index.d.ts +4 -0
  185. package/dist/contexts/icon/index.js +309 -0
  186. package/dist/contexts/icon/index.mjs +280 -0
  187. package/dist/contexts/icon/styles.d.ts +1 -0
  188. package/dist/contexts/icon/styles.js +43 -0
  189. package/dist/contexts/icon/styles.mjs +8 -0
  190. package/dist/contexts/index.d.ts +4 -20
  191. package/dist/contexts/index.js +0 -1
  192. package/dist/contexts/index.mjs +0 -1
  193. package/dist/contexts/modal/index.d.ts +4 -0
  194. package/dist/contexts/modal/index.js +100 -0
  195. package/dist/contexts/modal/index.mjs +65 -0
  196. package/dist/contexts/modal/styles.d.ts +1 -0
  197. package/dist/contexts/modal/styles.js +43 -0
  198. package/dist/contexts/modal/styles.mjs +8 -0
  199. package/dist/contexts/theme/content.d.ts +3 -0
  200. package/dist/contexts/theme/content.js +105 -0
  201. package/dist/contexts/theme/content.mjs +79 -0
  202. package/dist/contexts/theme/index.d.ts +4 -0
  203. package/dist/contexts/theme/index.js +235 -0
  204. package/dist/contexts/theme/index.mjs +200 -0
  205. package/dist/contexts/theme/styles.d.ts +1 -0
  206. package/dist/contexts/theme/styles.js +117 -0
  207. package/dist/contexts/theme/styles.mjs +82 -0
  208. package/dist/contexts/tooltip/index.d.ts +6 -0
  209. package/dist/contexts/tooltip/index.js +151 -0
  210. package/dist/contexts/tooltip/index.mjs +116 -0
  211. package/dist/contexts/tooltip/styles.d.ts +1 -0
  212. package/dist/contexts/tooltip/styles.js +79 -0
  213. package/dist/contexts/tooltip/styles.mjs +44 -0
  214. package/dist/index.d.ts +4 -17
  215. package/dist/index.js +0 -1
  216. package/dist/index.mjs +0 -1
  217. package/dist/interfaces/components/avatar/index.d.ts +6 -0
  218. package/dist/interfaces/components/avatar/index.js +18 -0
  219. package/dist/interfaces/components/avatar/index.mjs +0 -0
  220. package/dist/interfaces/components/badge/index.d.ts +3 -0
  221. package/dist/interfaces/components/badge/index.js +18 -0
  222. package/dist/interfaces/components/badge/index.mjs +0 -0
  223. package/dist/interfaces/components/block/index.d.ts +16 -0
  224. package/dist/interfaces/components/block/index.js +18 -0
  225. package/dist/interfaces/components/block/index.mjs +0 -0
  226. package/dist/interfaces/components/chart/index.d.ts +9 -0
  227. package/dist/interfaces/components/chart/index.js +18 -0
  228. package/dist/interfaces/components/chart/index.mjs +0 -0
  229. package/dist/interfaces/components/credit-card/index.d.ts +16 -0
  230. package/dist/interfaces/components/credit-card/index.js +18 -0
  231. package/dist/interfaces/components/credit-card/index.mjs +0 -0
  232. package/dist/interfaces/components/form/button/index.d.ts +7 -0
  233. package/dist/interfaces/components/form/button/index.js +18 -0
  234. package/dist/interfaces/components/form/button/index.mjs +0 -0
  235. package/dist/interfaces/components/form/datetime/index.d.ts +15 -0
  236. package/dist/interfaces/components/form/datetime/index.js +18 -0
  237. package/dist/interfaces/components/form/datetime/index.mjs +0 -0
  238. package/dist/interfaces/components/form/file/index.d.ts +14 -0
  239. package/dist/interfaces/components/form/file/index.js +18 -0
  240. package/dist/interfaces/components/form/file/index.mjs +0 -0
  241. package/dist/interfaces/components/form/index.d.ts +16 -0
  242. package/dist/interfaces/components/form/index.js +18 -0
  243. package/dist/interfaces/components/form/index.mjs +0 -0
  244. package/dist/interfaces/components/form/input/index.d.ts +17 -0
  245. package/dist/interfaces/components/form/input/index.js +18 -0
  246. package/dist/interfaces/components/form/input/index.mjs +0 -0
  247. package/dist/interfaces/components/form/label/index.d.ts +5 -0
  248. package/dist/interfaces/components/form/label/index.js +18 -0
  249. package/dist/interfaces/components/form/label/index.mjs +0 -0
  250. package/dist/interfaces/components/form/select/index.d.ts +14 -0
  251. package/dist/interfaces/components/form/select/index.js +18 -0
  252. package/dist/interfaces/components/form/select/index.mjs +0 -0
  253. package/dist/interfaces/components/form/textarea/index.d.ts +16 -0
  254. package/dist/interfaces/components/form/textarea/index.js +18 -0
  255. package/dist/interfaces/components/form/textarea/index.mjs +0 -0
  256. package/dist/interfaces/components/index.d.ts +26 -0
  257. package/dist/interfaces/components/index.js +18 -0
  258. package/dist/interfaces/components/index.mjs +0 -0
  259. package/dist/interfaces/components/loading/app/index.d.ts +3 -0
  260. package/dist/interfaces/components/loading/app/index.js +18 -0
  261. package/dist/interfaces/components/loading/app/index.mjs +0 -0
  262. package/dist/interfaces/components/loading/bar/index.d.ts +7 -0
  263. package/dist/interfaces/components/loading/bar/index.js +18 -0
  264. package/dist/interfaces/components/loading/bar/index.mjs +0 -0
  265. package/dist/interfaces/components/loading/index.d.ts +2 -0
  266. package/dist/interfaces/components/loading/index.js +18 -0
  267. package/dist/interfaces/components/loading/index.mjs +0 -0
  268. package/dist/interfaces/components/logo/index.d.ts +6 -0
  269. package/dist/interfaces/components/logo/index.js +18 -0
  270. package/dist/interfaces/components/logo/index.mjs +0 -0
  271. package/dist/interfaces/components/lottie/index.d.ts +12 -0
  272. package/dist/interfaces/components/lottie/index.js +18 -0
  273. package/dist/interfaces/components/lottie/index.mjs +0 -0
  274. package/dist/interfaces/components/modal/index.d.ts +16 -0
  275. package/dist/interfaces/components/modal/index.js +18 -0
  276. package/dist/interfaces/components/modal/index.mjs +0 -0
  277. package/dist/interfaces/components/table/index.d.ts +46 -0
  278. package/dist/interfaces/components/table/index.js +18 -0
  279. package/dist/interfaces/components/table/index.mjs +0 -0
  280. package/dist/interfaces/components/table/paginate/index.d.ts +7 -0
  281. package/dist/interfaces/components/table/paginate/index.js +18 -0
  282. package/dist/interfaces/components/table/paginate/index.mjs +0 -0
  283. package/dist/interfaces/contexts/icon/index.d.ts +3 -0
  284. package/dist/interfaces/contexts/icon/index.js +18 -0
  285. package/dist/interfaces/contexts/icon/index.mjs +0 -0
  286. package/dist/interfaces/contexts/index.d.ts +8 -0
  287. package/dist/interfaces/contexts/index.js +18 -0
  288. package/dist/interfaces/contexts/index.mjs +0 -0
  289. package/dist/interfaces/contexts/modal/index.d.ts +16 -0
  290. package/dist/interfaces/contexts/modal/index.js +19 -0
  291. package/dist/interfaces/contexts/modal/index.mjs +1 -0
  292. package/dist/interfaces/contexts/theme/index.d.ts +42 -0
  293. package/dist/interfaces/contexts/theme/index.js +18 -0
  294. package/dist/interfaces/contexts/theme/index.mjs +0 -0
  295. package/dist/interfaces/contexts/tooltip/index.d.ts +3 -0
  296. package/dist/interfaces/contexts/tooltip/index.js +18 -0
  297. package/dist/interfaces/contexts/tooltip/index.mjs +0 -0
  298. package/dist/interfaces/index.d.ts +2 -12
  299. package/dist/interfaces/index.js +0 -1
  300. package/dist/interfaces/index.mjs +0 -1
  301. package/dist/styled.d.ts +6 -0
  302. package/dist/tsup.config.d.ts +2 -0
  303. package/package.json +5 -5
  304. package/dist/components/index.d.mts +0 -10
  305. package/dist/contexts/index.d.mts +0 -20
  306. package/dist/index-BhaGW0O1.d.ts +0 -601
  307. package/dist/index-BxA8LyyD.d.mts +0 -68
  308. package/dist/index-DDi0w5pw.d.mts +0 -601
  309. package/dist/index-DT7VKE7H.d.ts +0 -68
  310. package/dist/index-Da-DtPS-.d.mts +0 -29
  311. package/dist/index-Da-DtPS-.d.ts +0 -29
  312. package/dist/index.d.mts +0 -17
  313. package/dist/interfaces/index.d.mts +0 -12
@@ -0,0 +1,117 @@
1
+ "use strict";
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 __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // contexts/theme/styles.tsx
31
+ var styles_exports = {};
32
+ __export(styles_exports, {
33
+ Switcher: () => Switcher
34
+ });
35
+ module.exports = __toCommonJS(styles_exports);
36
+ var import_styled_components = __toESM(require("styled-components"));
37
+ var Switcher = import_styled_components.default.div`
38
+ width: 3rem;
39
+ height: 1.5rem;
40
+ border-radius: 1rem;
41
+ border: 2px solid ${({ theme }) => theme.t05};
42
+ overflow: hidden;
43
+ display: flex;
44
+ align-items: center;
45
+ cursor: pointer;
46
+ position: relative;
47
+
48
+ i {
49
+ color: ${({ theme }) => theme.t6};
50
+ position: absolute;
51
+ transform: translateY(-50%);
52
+ font-size: .9rem;
53
+ z-index: 0;
54
+ transition: ease .8s;
55
+
56
+ &:first-child {
57
+ left: .2rem;
58
+ top: 50%;
59
+ opacity: ${(props) => props["data-theme"] === "light" ? 0 : 1};
60
+ }
61
+
62
+ &:last-child {
63
+ right: .2rem;
64
+ top: 50%;
65
+ opacity: ${(props) => props["data-theme"] === "light" ? 1 : 0};
66
+ }
67
+ }
68
+
69
+ .switcher {
70
+ width: 1rem;
71
+ height: 1rem;
72
+ border-radius: 1rem;
73
+ position: relative;
74
+ transition: ease .3s;
75
+ transform: ${(props) => props["data-theme"] === "light" ? "transform: translateX(.2rem)" : "translateX(1.6rem)"};
76
+ z-index: 1;
77
+
78
+ div {
79
+ width: 100%;
80
+ height: 100%;
81
+ background: ${({ theme }) => theme.primary};
82
+ border-radius: 1rem;
83
+ position: relative;
84
+ z-index: 2;
85
+ }
86
+
87
+ &:after {
88
+ content: "";
89
+ position: absolute;
90
+ width: 100%;
91
+ height: 100%;
92
+ border-radius: 1rem;
93
+ transform: scale(1.8);
94
+ background: ${({ theme }) => theme.t05};
95
+ top: 0;
96
+ left: 0;
97
+ z-index: 1;
98
+ }
99
+
100
+ &:before {
101
+ content: "";
102
+ position: absolute;
103
+ width: 100%;
104
+ height: 100%;
105
+ border-radius: 1rem;
106
+ transform: scale(3);
107
+ background: ${({ theme }) => theme.t05};
108
+ top: 0;
109
+ left: 0;
110
+ z-index: 0;
111
+ }
112
+ }
113
+ `;
114
+ // Annotate the CommonJS export names for ESM import in node:
115
+ 0 && (module.exports = {
116
+ Switcher
117
+ });
@@ -0,0 +1,82 @@
1
+ // contexts/theme/styles.tsx
2
+ import styled from "styled-components";
3
+ var Switcher = styled.div`
4
+ width: 3rem;
5
+ height: 1.5rem;
6
+ border-radius: 1rem;
7
+ border: 2px solid ${({ theme }) => theme.t05};
8
+ overflow: hidden;
9
+ display: flex;
10
+ align-items: center;
11
+ cursor: pointer;
12
+ position: relative;
13
+
14
+ i {
15
+ color: ${({ theme }) => theme.t6};
16
+ position: absolute;
17
+ transform: translateY(-50%);
18
+ font-size: .9rem;
19
+ z-index: 0;
20
+ transition: ease .8s;
21
+
22
+ &:first-child {
23
+ left: .2rem;
24
+ top: 50%;
25
+ opacity: ${(props) => props["data-theme"] === "light" ? 0 : 1};
26
+ }
27
+
28
+ &:last-child {
29
+ right: .2rem;
30
+ top: 50%;
31
+ opacity: ${(props) => props["data-theme"] === "light" ? 1 : 0};
32
+ }
33
+ }
34
+
35
+ .switcher {
36
+ width: 1rem;
37
+ height: 1rem;
38
+ border-radius: 1rem;
39
+ position: relative;
40
+ transition: ease .3s;
41
+ transform: ${(props) => props["data-theme"] === "light" ? "transform: translateX(.2rem)" : "translateX(1.6rem)"};
42
+ z-index: 1;
43
+
44
+ div {
45
+ width: 100%;
46
+ height: 100%;
47
+ background: ${({ theme }) => theme.primary};
48
+ border-radius: 1rem;
49
+ position: relative;
50
+ z-index: 2;
51
+ }
52
+
53
+ &:after {
54
+ content: "";
55
+ position: absolute;
56
+ width: 100%;
57
+ height: 100%;
58
+ border-radius: 1rem;
59
+ transform: scale(1.8);
60
+ background: ${({ theme }) => theme.t05};
61
+ top: 0;
62
+ left: 0;
63
+ z-index: 1;
64
+ }
65
+
66
+ &:before {
67
+ content: "";
68
+ position: absolute;
69
+ width: 100%;
70
+ height: 100%;
71
+ border-radius: 1rem;
72
+ transform: scale(3);
73
+ background: ${({ theme }) => theme.t05};
74
+ top: 0;
75
+ left: 0;
76
+ z-index: 0;
77
+ }
78
+ }
79
+ `;
80
+ export {
81
+ Switcher
82
+ };
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ declare const TooltipProviderContainer: ({ children }: {
3
+ children: React.ReactNode;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ declare const useTooltip: () => any;
6
+ export { TooltipProviderContainer as TooltipProvider, useTooltip };
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+ "use client";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from))
16
+ if (!__hasOwnProp.call(to, key) && key !== except)
17
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
+ }
19
+ return to;
20
+ };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+
31
+ // contexts/tooltip/index.tsx
32
+ var tooltip_exports = {};
33
+ __export(tooltip_exports, {
34
+ TooltipProvider: () => TooltipProviderContainer,
35
+ useTooltip: () => useTooltip
36
+ });
37
+ module.exports = __toCommonJS(tooltip_exports);
38
+ var import_react = require("react");
39
+
40
+ // contexts/tooltip/styles.tsx
41
+ var import_styled_components = __toESM(require("styled-components"));
42
+ var Tooltip = import_styled_components.default.div`
43
+ position: fixed;
44
+ background: ${({ theme }) => theme.tooltip};
45
+ color: ${({ theme }) => theme.t6};
46
+ font-size: .8rem;
47
+ font-weight: 500;
48
+ text-align: center;
49
+ padding: .3rem .8rem;
50
+ border-radius: 5px;
51
+ transform: translateX(-50%);
52
+ z-index: 10;
53
+ border: 1px solid ${({ theme }) => theme.t05};
54
+
55
+ &::before {
56
+ content: "";
57
+ position: absolute;
58
+ bottom: -9px;
59
+ left: 50%;
60
+ transform: translateX(-50%);
61
+ width: 0;
62
+ height: 0;
63
+ border-left: 8px solid transparent;
64
+ border-right: 8px solid transparent;
65
+ border-top: 8px solid ${({ theme }) => theme.t05};
66
+ }
67
+
68
+ &::after {
69
+ content: "";
70
+ position: absolute;
71
+ bottom: -8px;
72
+ left: 50%;
73
+ transform: translateX(-50%);
74
+ width: 0;
75
+ height: 0;
76
+ border-left: 8px solid transparent;
77
+ border-right: 8px solid transparent;
78
+ border-top: 8px solid ${({ theme }) => theme.tooltip};
79
+ }
80
+ `;
81
+
82
+ // contexts/tooltip/index.tsx
83
+ var import_lodash = __toESM(require("lodash"));
84
+ var import_jsx_runtime = require("react/jsx-runtime");
85
+ var TooltipContext = (0, import_react.createContext)({});
86
+ var TooltipProviderContainer = ({ children }) => {
87
+ const [tooltips, setTooltips] = (0, import_react.useState)([]);
88
+ const getContent = (target) => {
89
+ var _a;
90
+ const rect = target.getBoundingClientRect();
91
+ return {
92
+ top: rect.top + window.scrollY - (target.offsetHeight + 8),
93
+ left: rect.left + window.scrollX + target.offsetWidth / 2,
94
+ content: ((_a = target.dataset) == null ? void 0 : _a.tooltip) || ""
95
+ };
96
+ };
97
+ (0, import_react.useEffect)(() => {
98
+ const processElement = (element) => {
99
+ element.addEventListener("mouseenter", (event) => {
100
+ const target = event == null ? void 0 : event.target;
101
+ if (!target) return;
102
+ setTooltips(import_lodash.default.concat(tooltips, [getContent(target)]));
103
+ });
104
+ element.addEventListener("mouseleave", (event) => {
105
+ const target = event == null ? void 0 : event.target;
106
+ if (!target) return;
107
+ setTooltips(import_lodash.default.filter(tooltips, (data) => JSON.stringify(data) === JSON.stringify(getContent(target))));
108
+ });
109
+ };
110
+ document.querySelectorAll("[data-tooltip]").forEach((el) => processElement(el));
111
+ const observer = new MutationObserver((mutations) => {
112
+ mutations.forEach((mutation) => {
113
+ mutation.addedNodes.forEach((node) => {
114
+ if (node.nodeType === 1) {
115
+ const el = node;
116
+ if (el.getAttribute("data-tooltip")) processElement(el);
117
+ el.querySelectorAll("[data-tooltip]").forEach((child) => processElement(child));
118
+ }
119
+ });
120
+ });
121
+ });
122
+ observer.observe(document.body, {
123
+ childList: true,
124
+ subtree: true
125
+ });
126
+ return () => observer.disconnect();
127
+ }, []);
128
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TooltipContext.Provider, { value: {}, children: [
129
+ import_lodash.default.map(
130
+ tooltips,
131
+ (data, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
132
+ Tooltip,
133
+ {
134
+ style: {
135
+ top: data.top,
136
+ left: data.left
137
+ },
138
+ children: data.content
139
+ },
140
+ index
141
+ )
142
+ ),
143
+ children
144
+ ] });
145
+ };
146
+ var useTooltip = () => (0, import_react.useContext)(TooltipContext);
147
+ // Annotate the CommonJS export names for ESM import in node:
148
+ 0 && (module.exports = {
149
+ TooltipProvider,
150
+ useTooltip
151
+ });
@@ -0,0 +1,116 @@
1
+ "use client";
2
+
3
+ // contexts/tooltip/index.tsx
4
+ import { createContext, useContext, useEffect, useState } from "react";
5
+
6
+ // contexts/tooltip/styles.tsx
7
+ import styled from "styled-components";
8
+ var Tooltip = styled.div`
9
+ position: fixed;
10
+ background: ${({ theme }) => theme.tooltip};
11
+ color: ${({ theme }) => theme.t6};
12
+ font-size: .8rem;
13
+ font-weight: 500;
14
+ text-align: center;
15
+ padding: .3rem .8rem;
16
+ border-radius: 5px;
17
+ transform: translateX(-50%);
18
+ z-index: 10;
19
+ border: 1px solid ${({ theme }) => theme.t05};
20
+
21
+ &::before {
22
+ content: "";
23
+ position: absolute;
24
+ bottom: -9px;
25
+ left: 50%;
26
+ transform: translateX(-50%);
27
+ width: 0;
28
+ height: 0;
29
+ border-left: 8px solid transparent;
30
+ border-right: 8px solid transparent;
31
+ border-top: 8px solid ${({ theme }) => theme.t05};
32
+ }
33
+
34
+ &::after {
35
+ content: "";
36
+ position: absolute;
37
+ bottom: -8px;
38
+ left: 50%;
39
+ transform: translateX(-50%);
40
+ width: 0;
41
+ height: 0;
42
+ border-left: 8px solid transparent;
43
+ border-right: 8px solid transparent;
44
+ border-top: 8px solid ${({ theme }) => theme.tooltip};
45
+ }
46
+ `;
47
+
48
+ // contexts/tooltip/index.tsx
49
+ import _ from "lodash";
50
+ import { jsx, jsxs } from "react/jsx-runtime";
51
+ var TooltipContext = createContext({});
52
+ var TooltipProviderContainer = ({ children }) => {
53
+ const [tooltips, setTooltips] = useState([]);
54
+ const getContent = (target) => {
55
+ var _a;
56
+ const rect = target.getBoundingClientRect();
57
+ return {
58
+ top: rect.top + window.scrollY - (target.offsetHeight + 8),
59
+ left: rect.left + window.scrollX + target.offsetWidth / 2,
60
+ content: ((_a = target.dataset) == null ? void 0 : _a.tooltip) || ""
61
+ };
62
+ };
63
+ useEffect(() => {
64
+ const processElement = (element) => {
65
+ element.addEventListener("mouseenter", (event) => {
66
+ const target = event == null ? void 0 : event.target;
67
+ if (!target) return;
68
+ setTooltips(_.concat(tooltips, [getContent(target)]));
69
+ });
70
+ element.addEventListener("mouseleave", (event) => {
71
+ const target = event == null ? void 0 : event.target;
72
+ if (!target) return;
73
+ setTooltips(_.filter(tooltips, (data) => JSON.stringify(data) === JSON.stringify(getContent(target))));
74
+ });
75
+ };
76
+ document.querySelectorAll("[data-tooltip]").forEach((el) => processElement(el));
77
+ const observer = new MutationObserver((mutations) => {
78
+ mutations.forEach((mutation) => {
79
+ mutation.addedNodes.forEach((node) => {
80
+ if (node.nodeType === 1) {
81
+ const el = node;
82
+ if (el.getAttribute("data-tooltip")) processElement(el);
83
+ el.querySelectorAll("[data-tooltip]").forEach((child) => processElement(child));
84
+ }
85
+ });
86
+ });
87
+ });
88
+ observer.observe(document.body, {
89
+ childList: true,
90
+ subtree: true
91
+ });
92
+ return () => observer.disconnect();
93
+ }, []);
94
+ return /* @__PURE__ */ jsxs(TooltipContext.Provider, { value: {}, children: [
95
+ _.map(
96
+ tooltips,
97
+ (data, index) => /* @__PURE__ */ jsx(
98
+ Tooltip,
99
+ {
100
+ style: {
101
+ top: data.top,
102
+ left: data.left
103
+ },
104
+ children: data.content
105
+ },
106
+ index
107
+ )
108
+ ),
109
+ children
110
+ ] });
111
+ };
112
+ var useTooltip = () => useContext(TooltipContext);
113
+ export {
114
+ TooltipProviderContainer as TooltipProvider,
115
+ useTooltip
116
+ };
@@ -0,0 +1 @@
1
+ export declare const Tooltip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,79 @@
1
+ "use strict";
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 __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // contexts/tooltip/styles.tsx
31
+ var styles_exports = {};
32
+ __export(styles_exports, {
33
+ Tooltip: () => Tooltip
34
+ });
35
+ module.exports = __toCommonJS(styles_exports);
36
+ var import_styled_components = __toESM(require("styled-components"));
37
+ var Tooltip = import_styled_components.default.div`
38
+ position: fixed;
39
+ background: ${({ theme }) => theme.tooltip};
40
+ color: ${({ theme }) => theme.t6};
41
+ font-size: .8rem;
42
+ font-weight: 500;
43
+ text-align: center;
44
+ padding: .3rem .8rem;
45
+ border-radius: 5px;
46
+ transform: translateX(-50%);
47
+ z-index: 10;
48
+ border: 1px solid ${({ theme }) => theme.t05};
49
+
50
+ &::before {
51
+ content: "";
52
+ position: absolute;
53
+ bottom: -9px;
54
+ left: 50%;
55
+ transform: translateX(-50%);
56
+ width: 0;
57
+ height: 0;
58
+ border-left: 8px solid transparent;
59
+ border-right: 8px solid transparent;
60
+ border-top: 8px solid ${({ theme }) => theme.t05};
61
+ }
62
+
63
+ &::after {
64
+ content: "";
65
+ position: absolute;
66
+ bottom: -8px;
67
+ left: 50%;
68
+ transform: translateX(-50%);
69
+ width: 0;
70
+ height: 0;
71
+ border-left: 8px solid transparent;
72
+ border-right: 8px solid transparent;
73
+ border-top: 8px solid ${({ theme }) => theme.tooltip};
74
+ }
75
+ `;
76
+ // Annotate the CommonJS export names for ESM import in node:
77
+ 0 && (module.exports = {
78
+ Tooltip
79
+ });
@@ -0,0 +1,44 @@
1
+ // contexts/tooltip/styles.tsx
2
+ import styled from "styled-components";
3
+ var Tooltip = styled.div`
4
+ position: fixed;
5
+ background: ${({ theme }) => theme.tooltip};
6
+ color: ${({ theme }) => theme.t6};
7
+ font-size: .8rem;
8
+ font-weight: 500;
9
+ text-align: center;
10
+ padding: .3rem .8rem;
11
+ border-radius: 5px;
12
+ transform: translateX(-50%);
13
+ z-index: 10;
14
+ border: 1px solid ${({ theme }) => theme.t05};
15
+
16
+ &::before {
17
+ content: "";
18
+ position: absolute;
19
+ bottom: -9px;
20
+ left: 50%;
21
+ transform: translateX(-50%);
22
+ width: 0;
23
+ height: 0;
24
+ border-left: 8px solid transparent;
25
+ border-right: 8px solid transparent;
26
+ border-top: 8px solid ${({ theme }) => theme.t05};
27
+ }
28
+
29
+ &::after {
30
+ content: "";
31
+ position: absolute;
32
+ bottom: -8px;
33
+ left: 50%;
34
+ transform: translateX(-50%);
35
+ width: 0;
36
+ height: 0;
37
+ border-left: 8px solid transparent;
38
+ border-right: 8px solid transparent;
39
+ border-top: 8px solid ${({ theme }) => theme.tooltip};
40
+ }
41
+ `;
42
+ export {
43
+ Tooltip
44
+ };
package/dist/index.d.ts CHANGED
@@ -1,17 +1,4 @@
1
- import { I as IThemeContent } from './index-DT7VKE7H.js';
2
- export { a as IBaseProvider, d as ICommonTheme, b as IIconProvider, h as IModalConfig, i as IModalContext, g as IModalProvider, e as ITheme, f as IThemeContext, c as IThemeProvider } from './index-DT7VKE7H.js';
3
- export { Component } from './components/index.js';
4
- export { IconProvider, ModalProvider, ThemeProvider, TooltipProvider, useIcon, useModal, useTheme, useTooltip } from './contexts/index.js';
5
- export { A as Avatar, B as Badge, k as Block, f as Button, C as Chart, j as CreditCard, F as Form, N as IAvatar, x as IBadge, R as IBlock, M as IChart, p as IComponent, n as IComponentConfig, m as IComponentConfigMap, o as IComponentContent, l as IComponentMap, Q as ICreditCard, z as IForm, J as IInputDateTime, D as IInputFile, E as IInputLabel, H as IInputSelect, G as IInputText, K as IInputTextarea, w as ILoadingApp, v as ILoadingBar, y as ILogo, O as ILottie, u as IPaginate, t as ITable, q as ITableAction, r as ITableColumn, s as ITableRow, g as InputDateTime, I as InputFile, c as InputLabel, e as InputSelect, d as InputText, h as InputTextarea, a as LoadingApp, L as LoadingBar, b as Logo, i as Lottie, P as Paginate, T as Table } from './index-BhaGW0O1.js';
6
- export { a as IButton, I as IModal, M as Modal } from './index-Da-DtPS-.js';
7
- export { ITooltipProvider } from './interfaces/index.js';
8
- import 'react';
9
- import 'react/jsx-runtime';
10
- import 'react-hook-form';
11
-
12
- declare module "styled-components" {
13
- interface DefaultTheme extends IThemeContent {
14
- }
15
- }
16
-
17
- export { IThemeContent };
1
+ import "./styled";
2
+ export * from "./components";
3
+ export * from "./contexts";
4
+ export * from "./interfaces";
package/dist/index.js CHANGED
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  "use strict";
3
2
  var __create = Object.create;
4
3
  var __defProp = Object.defineProperty;
package/dist/index.mjs CHANGED
@@ -1,4 +1,3 @@
1
- "use client";
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -0,0 +1,6 @@
1
+ export interface IAvatar {
2
+ name?: string;
3
+ size?: string;
4
+ color?: string;
5
+ onClick?: Function;
6
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // interfaces/components/avatar/index.tsx
17
+ var avatar_exports = {};
18
+ module.exports = __toCommonJS(avatar_exports);
File without changes
@@ -0,0 +1,3 @@
1
+ export interface IBadge {
2
+ value: string;
3
+ }