eai-frontend-components 2.0.14 → 2.0.15

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 (298) hide show
  1. package/dist/components/ui/accordion.d.ts +8 -0
  2. package/dist/components/ui/accordion.d.ts.map +1 -0
  3. package/dist/components/ui/accordion.js +13 -0
  4. package/dist/components/ui/alert-dialog.d.ts +25 -0
  5. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  6. package/dist/components/ui/alert-dialog.js +27 -0
  7. package/dist/components/ui/alert.d.ts +9 -0
  8. package/dist/components/ui/alert.d.ts.map +1 -0
  9. package/dist/components/ui/alert.js +22 -0
  10. package/dist/components/ui/avatar.d.ts +7 -0
  11. package/dist/components/ui/avatar.d.ts.map +1 -0
  12. package/dist/components/ui/avatar.js +11 -0
  13. package/dist/components/ui/badge.d.ts +10 -0
  14. package/dist/components/ui/badge.d.ts.map +1 -0
  15. package/dist/components/ui/badge.js +26 -0
  16. package/dist/components/ui/breadcrumb.d.ts +20 -0
  17. package/dist/components/ui/breadcrumb.d.ts.map +1 -0
  18. package/dist/components/ui/breadcrumb.js +23 -0
  19. package/dist/components/ui/button.d.ts +12 -0
  20. package/dist/components/ui/button.d.ts.map +1 -0
  21. package/dist/components/ui/button.js +33 -0
  22. package/dist/components/ui/calendar.d.ts +9 -0
  23. package/dist/components/ui/calendar.d.ts.map +1 -0
  24. package/dist/components/ui/calendar.js +70 -0
  25. package/dist/components/ui/card.d.ts +9 -0
  26. package/dist/components/ui/card.d.ts.map +1 -0
  27. package/dist/components/ui/card.js +16 -0
  28. package/dist/components/ui/carousel.d.ts +19 -0
  29. package/dist/components/ui/carousel.d.ts.map +1 -0
  30. package/dist/components/ui/carousel.js +98 -0
  31. package/dist/components/ui/chart.d.ts +63 -0
  32. package/dist/components/ui/chart.d.ts.map +1 -0
  33. package/dist/components/ui/chart.js +132 -0
  34. package/dist/components/ui/checkbox.d.ts +5 -0
  35. package/dist/components/ui/checkbox.d.ts.map +1 -0
  36. package/dist/components/ui/checkbox.js +8 -0
  37. package/dist/components/ui/collapsible.d.ts +6 -0
  38. package/dist/components/ui/collapsible.d.ts.map +1 -0
  39. package/dist/components/ui/collapsible.js +5 -0
  40. package/dist/components/ui/command.d.ts +81 -0
  41. package/dist/components/ui/command.d.ts.map +1 -0
  42. package/dist/components/ui/command.js +28 -0
  43. package/dist/components/ui/context-menu.d.ts +28 -0
  44. package/dist/components/ui/context-menu.d.ts.map +1 -0
  45. package/dist/components/ui/context-menu.js +33 -0
  46. package/dist/components/ui/custom/date-picker.d.ts +12 -0
  47. package/dist/components/ui/custom/date-picker.d.ts.map +1 -0
  48. package/dist/components/ui/custom/date-picker.js +35 -0
  49. package/dist/components/ui/custom/form/checkbox.d.ts +13 -0
  50. package/dist/components/ui/custom/form/checkbox.d.ts.map +1 -0
  51. package/dist/components/ui/custom/form/checkbox.js +15 -0
  52. package/dist/components/ui/custom/form/color.d.ts +15 -0
  53. package/dist/components/ui/custom/form/color.d.ts.map +1 -0
  54. package/dist/components/ui/custom/form/color.js +40 -0
  55. package/dist/components/ui/custom/form/combobox.d.ts +37 -0
  56. package/dist/components/ui/custom/form/combobox.d.ts.map +1 -0
  57. package/dist/components/ui/custom/form/combobox.js +82 -0
  58. package/dist/components/ui/custom/form/cpf-cnpj.d.ts +16 -0
  59. package/dist/components/ui/custom/form/cpf-cnpj.d.ts.map +1 -0
  60. package/dist/components/ui/custom/form/cpf-cnpj.js +32 -0
  61. package/dist/components/ui/custom/form/currency.d.ts +14 -0
  62. package/dist/components/ui/custom/form/currency.d.ts.map +1 -0
  63. package/dist/components/ui/custom/form/currency.js +15 -0
  64. package/dist/components/ui/custom/form/date-range.d.ts +16 -0
  65. package/dist/components/ui/custom/form/date-range.d.ts.map +1 -0
  66. package/dist/components/ui/custom/form/date-range.js +24 -0
  67. package/dist/components/ui/custom/form/date.d.ts +16 -0
  68. package/dist/components/ui/custom/form/date.d.ts.map +1 -0
  69. package/dist/components/ui/custom/form/date.js +35 -0
  70. package/dist/components/ui/custom/form/decimal.d.ts +14 -0
  71. package/dist/components/ui/custom/form/decimal.d.ts.map +1 -0
  72. package/dist/components/ui/custom/form/decimal.js +15 -0
  73. package/dist/components/ui/custom/form/file.d.ts +15 -0
  74. package/dist/components/ui/custom/form/file.d.ts.map +1 -0
  75. package/dist/components/ui/custom/form/file.js +18 -0
  76. package/dist/components/ui/custom/form/form-help-text.d.ts +3 -0
  77. package/dist/components/ui/custom/form/form-help-text.d.ts.map +1 -0
  78. package/dist/components/ui/custom/form/form-help-text.js +7 -0
  79. package/dist/components/ui/custom/form/form-label.d.ts +7 -0
  80. package/dist/components/ui/custom/form/form-label.d.ts.map +1 -0
  81. package/dist/components/ui/custom/form/form-label.js +9 -0
  82. package/dist/components/ui/custom/form/form-message.d.ts +5 -0
  83. package/dist/components/ui/custom/form/form-message.d.ts.map +1 -0
  84. package/dist/components/ui/custom/form/form-message.js +5 -0
  85. package/dist/components/ui/custom/form/ghost.d.ts +8 -0
  86. package/dist/components/ui/custom/form/ghost.d.ts.map +1 -0
  87. package/dist/components/ui/custom/form/ghost.js +8 -0
  88. package/dist/components/ui/custom/form/input.d.ts +18 -0
  89. package/dist/components/ui/custom/form/input.d.ts.map +1 -0
  90. package/dist/components/ui/custom/form/input.js +14 -0
  91. package/dist/components/ui/custom/form/mask.d.ts +19 -0
  92. package/dist/components/ui/custom/form/mask.d.ts.map +1 -0
  93. package/dist/components/ui/custom/form/mask.js +19 -0
  94. package/dist/components/ui/custom/form/multi-select.d.ts +26 -0
  95. package/dist/components/ui/custom/form/multi-select.d.ts.map +1 -0
  96. package/dist/components/ui/custom/form/multi-select.js +66 -0
  97. package/dist/components/ui/custom/form/password.d.ts +16 -0
  98. package/dist/components/ui/custom/form/password.d.ts.map +1 -0
  99. package/dist/components/ui/custom/form/password.js +14 -0
  100. package/dist/components/ui/custom/form/percent.d.ts +14 -0
  101. package/dist/components/ui/custom/form/percent.d.ts.map +1 -0
  102. package/dist/components/ui/custom/form/percent.js +15 -0
  103. package/dist/components/ui/custom/form/phone.d.ts +16 -0
  104. package/dist/components/ui/custom/form/phone.d.ts.map +1 -0
  105. package/dist/components/ui/custom/form/phone.js +23 -0
  106. package/dist/components/ui/custom/form/radio-group.d.ts +23 -0
  107. package/dist/components/ui/custom/form/radio-group.d.ts.map +1 -0
  108. package/dist/components/ui/custom/form/radio-group.js +15 -0
  109. package/dist/components/ui/custom/form/select.d.ts +20 -0
  110. package/dist/components/ui/custom/form/select.d.ts.map +1 -0
  111. package/dist/components/ui/custom/form/select.js +12 -0
  112. package/dist/components/ui/custom/form/step-new-form.d.ts +10 -0
  113. package/dist/components/ui/custom/form/step-new-form.d.ts.map +1 -0
  114. package/dist/components/ui/custom/form/step-new-form.js +13 -0
  115. package/dist/components/ui/custom/form/switch.d.ts +13 -0
  116. package/dist/components/ui/custom/form/switch.d.ts.map +1 -0
  117. package/dist/components/ui/custom/form/switch.js +16 -0
  118. package/dist/components/ui/custom/form/text.d.ts +18 -0
  119. package/dist/components/ui/custom/form/text.d.ts.map +1 -0
  120. package/dist/components/ui/custom/form/text.js +14 -0
  121. package/dist/components/ui/custom/form/textarea.d.ts +16 -0
  122. package/dist/components/ui/custom/form/textarea.d.ts.map +1 -0
  123. package/dist/components/ui/custom/form/textarea.js +19 -0
  124. package/dist/components/ui/custom/form/utils.d.ts +18 -0
  125. package/dist/components/ui/custom/form/utils.d.ts.map +1 -0
  126. package/dist/components/ui/custom/form/utils.js +88 -0
  127. package/dist/components/ui/custom/header.d.ts +11 -0
  128. package/dist/components/ui/custom/header.d.ts.map +1 -0
  129. package/dist/components/ui/custom/header.js +74 -0
  130. package/dist/components/ui/custom/label.d.ts +13 -0
  131. package/dist/components/ui/custom/label.d.ts.map +1 -0
  132. package/dist/components/ui/custom/label.js +20 -0
  133. package/dist/components/ui/custom/not-found.d.ts +3 -0
  134. package/dist/components/ui/custom/not-found.d.ts.map +1 -0
  135. package/dist/components/ui/custom/not-found.js +9 -0
  136. package/dist/components/ui/custom/sidebar/module-switcher.d.ts +9 -0
  137. package/dist/components/ui/custom/sidebar/module-switcher.d.ts.map +1 -0
  138. package/dist/components/ui/custom/sidebar/module-switcher.js +20 -0
  139. package/dist/components/ui/custom/sidebar/nav-footer.d.ts +7 -0
  140. package/dist/components/ui/custom/sidebar/nav-footer.d.ts.map +1 -0
  141. package/dist/components/ui/custom/sidebar/nav-footer.js +13 -0
  142. package/dist/components/ui/custom/sidebar/nav-main.d.ts +7 -0
  143. package/dist/components/ui/custom/sidebar/nav-main.d.ts.map +1 -0
  144. package/dist/components/ui/custom/sidebar/nav-main.js +27 -0
  145. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts +9 -0
  146. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts.map +1 -0
  147. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.js +18 -0
  148. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts +10 -0
  149. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts.map +1 -0
  150. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.js +10 -0
  151. package/dist/components/ui/custom/sidebar/nav-user.d.ts +9 -0
  152. package/dist/components/ui/custom/sidebar/nav-user.d.ts.map +1 -0
  153. package/dist/components/ui/custom/sidebar/nav-user.js +24 -0
  154. package/dist/components/ui/custom/sidebar/sidebar-button.d.ts +9 -0
  155. package/dist/components/ui/custom/sidebar/sidebar-button.d.ts.map +1 -0
  156. package/dist/components/ui/custom/sidebar/sidebar-button.js +7 -0
  157. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts +12 -0
  158. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts.map +1 -0
  159. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.js +5 -0
  160. package/dist/components/ui/custom/sidebar/sidebar-item.d.ts +9 -0
  161. package/dist/components/ui/custom/sidebar/sidebar-item.d.ts.map +1 -0
  162. package/dist/components/ui/custom/sidebar/sidebar-item.js +7 -0
  163. package/dist/components/ui/custom/sidebar/types/sidebar.d.ts +29 -0
  164. package/dist/components/ui/custom/sidebar/types/sidebar.d.ts.map +1 -0
  165. package/dist/components/ui/custom/sidebar/types/sidebar.js +5 -0
  166. package/dist/components/ui/custom/table/data-table-export.d.ts +8 -0
  167. package/dist/components/ui/custom/table/data-table-export.d.ts.map +1 -0
  168. package/dist/components/ui/custom/table/data-table-export.js +65 -0
  169. package/dist/components/ui/custom/table/data-table-footer.d.ts +25 -0
  170. package/dist/components/ui/custom/table/data-table-footer.d.ts.map +1 -0
  171. package/dist/components/ui/custom/table/data-table-footer.js +39 -0
  172. package/dist/components/ui/custom/table/data-table-header.d.ts +9 -0
  173. package/dist/components/ui/custom/table/data-table-header.d.ts.map +1 -0
  174. package/dist/components/ui/custom/table/data-table-header.js +11 -0
  175. package/dist/components/ui/custom/table/data-table-rows.d.ts +13 -0
  176. package/dist/components/ui/custom/table/data-table-rows.d.ts.map +1 -0
  177. package/dist/components/ui/custom/table/data-table-rows.js +25 -0
  178. package/dist/components/ui/custom/table/data-table.d.ts +35 -0
  179. package/dist/components/ui/custom/table/data-table.d.ts.map +1 -0
  180. package/dist/components/ui/custom/table/data-table.js +99 -0
  181. package/dist/components/ui/custom/table/types/data-table.d.ts +29 -0
  182. package/dist/components/ui/custom/table/types/data-table.d.ts.map +1 -0
  183. package/dist/components/ui/custom/table/types/data-table.js +1 -0
  184. package/dist/components/ui/custom/theme-provider.d.ts +24 -0
  185. package/dist/components/ui/custom/theme-provider.d.ts.map +1 -0
  186. package/dist/components/ui/custom/theme-provider.js +79 -0
  187. package/dist/components/ui/dateRangePicker.d.ts +3 -0
  188. package/dist/components/ui/dateRangePicker.d.ts.map +1 -0
  189. package/dist/components/ui/dateRangePicker.js +15 -0
  190. package/dist/components/ui/dialog.d.ts +23 -0
  191. package/dist/components/ui/dialog.d.ts.map +1 -0
  192. package/dist/components/ui/dialog.js +23 -0
  193. package/dist/components/ui/drawer.d.ts +23 -0
  194. package/dist/components/ui/drawer.d.ts.map +1 -0
  195. package/dist/components/ui/drawer.js +22 -0
  196. package/dist/components/ui/dropdown-menu.d.ts +28 -0
  197. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  198. package/dist/components/ui/dropdown-menu.js +32 -0
  199. package/dist/components/ui/form.d.ts +24 -0
  200. package/dist/components/ui/form.d.ts.map +1 -0
  201. package/dist/components/ui/form.js +60 -0
  202. package/dist/components/ui/hover-card.d.ts +7 -0
  203. package/dist/components/ui/hover-card.d.ts.map +1 -0
  204. package/dist/components/ui/hover-card.js +9 -0
  205. package/dist/components/ui/input.d.ts +24 -0
  206. package/dist/components/ui/input.d.ts.map +1 -0
  207. package/dist/components/ui/input.js +71 -0
  208. package/dist/components/ui/label.d.ts +6 -0
  209. package/dist/components/ui/label.d.ts.map +1 -0
  210. package/dist/components/ui/label.js +9 -0
  211. package/dist/components/ui/masks.d.ts +17 -0
  212. package/dist/components/ui/masks.d.ts.map +1 -0
  213. package/dist/components/ui/masks.js +25 -0
  214. package/dist/components/ui/pagination.d.ts +30 -0
  215. package/dist/components/ui/pagination.d.ts.map +1 -0
  216. package/dist/components/ui/pagination.js +23 -0
  217. package/dist/components/ui/popover.d.ts +7 -0
  218. package/dist/components/ui/popover.d.ts.map +1 -0
  219. package/dist/components/ui/popover.js +11 -0
  220. package/dist/components/ui/progress.d.ts +5 -0
  221. package/dist/components/ui/progress.d.ts.map +1 -0
  222. package/dist/components/ui/progress.js +7 -0
  223. package/dist/components/ui/radio-group.d.ts +6 -0
  224. package/dist/components/ui/radio-group.d.ts.map +1 -0
  225. package/dist/components/ui/radio-group.js +14 -0
  226. package/dist/components/ui/scroll-area.d.ts +6 -0
  227. package/dist/components/ui/scroll-area.d.ts.map +1 -0
  228. package/dist/components/ui/scroll-area.js +11 -0
  229. package/dist/components/ui/select.d.ts +14 -0
  230. package/dist/components/ui/select.d.ts.map +1 -0
  231. package/dist/components/ui/select.js +24 -0
  232. package/dist/components/ui/separator.d.ts +5 -0
  233. package/dist/components/ui/separator.d.ts.map +1 -0
  234. package/dist/components/ui/separator.js +7 -0
  235. package/dist/components/ui/sheet.d.ts +26 -0
  236. package/dist/components/ui/sheet.d.ts.map +1 -0
  237. package/dist/components/ui/sheet.js +37 -0
  238. package/dist/components/ui/sidebar.d.ts +67 -0
  239. package/dist/components/ui/sidebar.d.ts.map +1 -0
  240. package/dist/components/ui/sidebar.js +221 -0
  241. package/dist/components/ui/skeleton.d.ts +3 -0
  242. package/dist/components/ui/skeleton.d.ts.map +1 -0
  243. package/dist/components/ui/skeleton.js +6 -0
  244. package/dist/components/ui/slider.d.ts +5 -0
  245. package/dist/components/ui/slider.d.ts.map +1 -0
  246. package/dist/components/ui/slider.js +7 -0
  247. package/dist/components/ui/switch.d.ts +5 -0
  248. package/dist/components/ui/switch.d.ts.map +1 -0
  249. package/dist/components/ui/switch.js +7 -0
  250. package/dist/components/ui/table.d.ts +11 -0
  251. package/dist/components/ui/table.d.ts.map +1 -0
  252. package/dist/components/ui/table.js +20 -0
  253. package/dist/components/ui/tabs.d.ts +8 -0
  254. package/dist/components/ui/tabs.d.ts.map +1 -0
  255. package/dist/components/ui/tabs.js +12 -0
  256. package/dist/components/ui/textarea.d.ts +4 -0
  257. package/dist/components/ui/textarea.d.ts.map +1 -0
  258. package/dist/components/ui/textarea.js +14 -0
  259. package/dist/components/ui/toast.d.ts +16 -0
  260. package/dist/components/ui/toast.d.ts.map +1 -0
  261. package/dist/components/ui/toast.js +34 -0
  262. package/dist/components/ui/toaster.d.ts +2 -0
  263. package/dist/components/ui/toaster.d.ts.map +1 -0
  264. package/dist/components/ui/toaster.js +21 -0
  265. package/dist/components/ui/tooltip.d.ts +8 -0
  266. package/dist/components/ui/tooltip.d.ts.map +1 -0
  267. package/dist/components/ui/tooltip.js +10 -0
  268. package/dist/components/ui/use-calendar.d.ts +7 -0
  269. package/dist/components/ui/use-calendar.d.ts.map +1 -0
  270. package/dist/components/ui/use-calendar.js +23 -0
  271. package/dist/components/ui/use-toast.d.ts +46 -0
  272. package/dist/components/ui/use-toast.d.ts.map +1 -0
  273. package/dist/components/ui/use-toast.js +125 -0
  274. package/dist/hooks/use-mobile.d.ts +2 -0
  275. package/dist/hooks/use-mobile.d.ts.map +1 -0
  276. package/dist/hooks/use-mobile.js +15 -0
  277. package/dist/index.d.ts +7 -7
  278. package/dist/index.d.ts.map +1 -0
  279. package/dist/index.esm.js +4 -4
  280. package/dist/index.esm.js.map +1 -1
  281. package/dist/index.js +4 -4
  282. package/dist/index.js.map +1 -1
  283. package/dist/lib/help/date-utils.d.ts +7 -0
  284. package/dist/lib/help/date-utils.d.ts.map +1 -0
  285. package/dist/lib/help/date-utils.js +34 -0
  286. package/dist/lib/help/format.d.ts +22 -0
  287. package/dist/lib/help/format.d.ts.map +1 -0
  288. package/dist/lib/help/format.js +140 -0
  289. package/dist/lib/help/theme.d.ts +291 -0
  290. package/dist/lib/help/theme.d.ts.map +1 -0
  291. package/dist/lib/help/theme.js +340 -0
  292. package/dist/lib/help/uuid.d.ts +2 -0
  293. package/dist/lib/help/uuid.d.ts.map +1 -0
  294. package/dist/lib/help/uuid.js +4 -0
  295. package/dist/lib/utils.d.ts +3 -0
  296. package/dist/lib/utils.d.ts.map +1 -0
  297. package/dist/lib/utils.js +5 -0
  298. package/package.json +1 -1
@@ -0,0 +1,340 @@
1
+ // Retorna todas as cores do Tailwind CSS das variações 50 a 950
2
+ export function getTailwindColorShades() {
3
+ // Paleta padrão do Tailwind v3.3.0
4
+ // Fonte: https://github.com/tailwindlabs/tailwindcss/blob/master/src/public/colors.js
5
+ return {
6
+ slate: {
7
+ 50: '#f8fafc',
8
+ 100: '#f1f5f9',
9
+ 200: '#e2e8f0',
10
+ 300: '#cbd5e1',
11
+ 400: '#94a3b8',
12
+ 500: '#64748b',
13
+ 600: '#475569',
14
+ 700: '#334155',
15
+ 800: '#1e293b',
16
+ 900: '#0f172a',
17
+ 950: '#020617',
18
+ },
19
+ gray: {
20
+ 50: '#f9fafb',
21
+ 100: '#f3f4f6',
22
+ 200: '#e5e7eb',
23
+ 300: '#d1d5db',
24
+ 400: '#9ca3af',
25
+ 500: '#6b7280',
26
+ 600: '#4b5563',
27
+ 700: '#374151',
28
+ 800: '#1f2937',
29
+ 900: '#111827',
30
+ 950: '#030712',
31
+ },
32
+ zinc: {
33
+ 50: '#fafafa',
34
+ 100: '#f4f4f5',
35
+ 200: '#e4e4e7',
36
+ 300: '#d4d4d8',
37
+ 400: '#a1a1aa',
38
+ 500: '#71717a',
39
+ 600: '#52525b',
40
+ 700: '#3f3f46',
41
+ 800: '#27272a',
42
+ 900: '#18181b',
43
+ 950: '#09090b',
44
+ },
45
+ neutral: {
46
+ 50: '#fafafa',
47
+ 100: '#f5f5f5',
48
+ 200: '#e5e5e5',
49
+ 300: '#d4d4d4',
50
+ 400: '#a3a3a3',
51
+ 500: '#737373',
52
+ 600: '#525252',
53
+ 700: '#404040',
54
+ 800: '#262626',
55
+ 900: '#171717',
56
+ 950: '#0a0a0a',
57
+ },
58
+ stone: {
59
+ 50: '#fafaf9',
60
+ 100: '#f5f5f4',
61
+ 200: '#e7e5e4',
62
+ 300: '#d6d3d1',
63
+ 400: '#a8a29e',
64
+ 500: '#78716c',
65
+ 600: '#57534e',
66
+ 700: '#44403c',
67
+ 800: '#292524',
68
+ 900: '#1c1917',
69
+ 950: '#0c0a09',
70
+ },
71
+ red: {
72
+ 50: '#fef2f2',
73
+ 100: '#fee2e2',
74
+ 200: '#fecaca',
75
+ 300: '#fca5a5',
76
+ 400: '#f87171',
77
+ 500: '#ef4444',
78
+ 600: '#dc2626',
79
+ 700: '#b91c1c',
80
+ 800: '#991b1b',
81
+ 900: '#7f1d1d',
82
+ 950: '#450a0a',
83
+ },
84
+ orange: {
85
+ 50: '#fff7ed',
86
+ 100: '#ffedd5',
87
+ 200: '#fed7aa',
88
+ 300: '#fdba74',
89
+ 400: '#fb923c',
90
+ 500: '#f97316',
91
+ 600: '#ea580c',
92
+ 700: '#c2410c',
93
+ 800: '#9a3412',
94
+ 900: '#7c2d12',
95
+ 950: '#431407',
96
+ },
97
+ amber: {
98
+ 50: '#fffbeb',
99
+ 100: '#fef3c7',
100
+ 200: '#fde68a',
101
+ 300: '#fcd34d',
102
+ 400: '#fbbf24',
103
+ 500: '#f59e42',
104
+ 600: '#d97706',
105
+ 700: '#b45309',
106
+ 800: '#92400e',
107
+ 900: '#78350f',
108
+ 950: '#451a03',
109
+ },
110
+ yellow: {
111
+ 50: '#fefce8',
112
+ 100: '#fef9c3',
113
+ 200: '#fef08a',
114
+ 300: '#fde047',
115
+ 400: '#facc15',
116
+ 500: '#eab308',
117
+ 600: '#ca8a04',
118
+ 700: '#a16207',
119
+ 800: '#854d0e',
120
+ 900: '#713f12',
121
+ 950: '#422006',
122
+ },
123
+ lime: {
124
+ 50: '#f7fee7',
125
+ 100: '#ecfccb',
126
+ 200: '#d9f99d',
127
+ 300: '#bef264',
128
+ 400: '#a3e635',
129
+ 500: '#84cc16',
130
+ 600: '#65a30d',
131
+ 700: '#4d7c0f',
132
+ 800: '#3f6212',
133
+ 900: '#365314',
134
+ 950: '#1a2e05',
135
+ },
136
+ green: {
137
+ 50: '#f0fdf4',
138
+ 100: '#dcfce7',
139
+ 200: '#bbf7d0',
140
+ 300: '#86efac',
141
+ 400: '#4ade80',
142
+ 500: '#22c55e',
143
+ 600: '#16a34a',
144
+ 700: '#15803d',
145
+ 800: '#166534',
146
+ 900: '#14532d',
147
+ 950: '#052e16',
148
+ },
149
+ emerald: {
150
+ 50: '#ecfdf5',
151
+ 100: '#d1fae5',
152
+ 200: '#a7f3d0',
153
+ 300: '#6ee7b7',
154
+ 400: '#34d399',
155
+ 500: '#10b981',
156
+ 600: '#059669',
157
+ 700: '#047857',
158
+ 800: '#065f46',
159
+ 900: '#064e3b',
160
+ 950: '#022c22',
161
+ },
162
+ teal: {
163
+ 50: '#f0fdfa',
164
+ 100: '#ccfbf1',
165
+ 200: '#99f6e4',
166
+ 300: '#5eead4',
167
+ 400: '#2dd4bf',
168
+ 500: '#14b8a6',
169
+ 600: '#0d9488',
170
+ 700: '#0f766e',
171
+ 800: '#115e59',
172
+ 900: '#134e4a',
173
+ 950: '#042f2e',
174
+ },
175
+ cyan: {
176
+ 50: '#ecfeff',
177
+ 100: '#cffafe',
178
+ 200: '#a5f3fc',
179
+ 300: '#67e8f9',
180
+ 400: '#22d3ee',
181
+ 500: '#06b6d4',
182
+ 600: '#0891b2',
183
+ 700: '#0e7490',
184
+ 800: '#155e75',
185
+ 900: '#164e63',
186
+ 950: '#083344',
187
+ },
188
+ sky: {
189
+ 50: '#f0f9ff',
190
+ 100: '#e0f2fe',
191
+ 200: '#bae6fd',
192
+ 300: '#7dd3fc',
193
+ 400: '#38bdf8',
194
+ 500: '#0ea5e9',
195
+ 600: '#0284c7',
196
+ 700: '#0369a1',
197
+ 800: '#075985',
198
+ 900: '#0e3a5e',
199
+ 950: '#082f49',
200
+ },
201
+ blue: {
202
+ 50: '#eff6ff',
203
+ 100: '#dbeafe',
204
+ 200: '#bfdbfe',
205
+ 300: '#93c5fd',
206
+ 400: '#60a5fa',
207
+ 500: '#3b82f6',
208
+ 600: '#2563eb',
209
+ 700: '#1d4ed8',
210
+ 800: '#1e40af',
211
+ 900: '#1e3a8a',
212
+ 950: '#172554',
213
+ },
214
+ indigo: {
215
+ 50: '#eef2ff',
216
+ 100: '#e0e7ff',
217
+ 200: '#c7d2fe',
218
+ 300: '#a5b4fc',
219
+ 400: '#818cf8',
220
+ 500: '#6366f1',
221
+ 600: '#4f46e5',
222
+ 700: '#4338ca',
223
+ 800: '#3730a3',
224
+ 900: '#312e81',
225
+ 950: '#1e1b4b',
226
+ },
227
+ violet: {
228
+ 50: '#f5f3ff',
229
+ 100: '#ede9fe',
230
+ 200: '#ddd6fe',
231
+ 300: '#c4b5fd',
232
+ 400: '#a78bfa',
233
+ 500: '#8b5cf6',
234
+ 600: '#7c3aed',
235
+ 700: '#6d28d9',
236
+ 800: '#5b21b6',
237
+ 900: '#4c1d95',
238
+ 950: '#2e1065',
239
+ },
240
+ purple: {
241
+ 50: '#faf5ff',
242
+ 100: '#f3e8ff',
243
+ 200: '#e9d5ff',
244
+ 300: '#d8b4fe',
245
+ 400: '#c084fc',
246
+ 500: '#a855f7',
247
+ 600: '#9333ea',
248
+ 700: '#7e22ce',
249
+ 800: '#6d19a8',
250
+ 900: '#581c87',
251
+ 950: '#3b0764',
252
+ },
253
+ fuchsia: {
254
+ 50: '#fdf4ff',
255
+ 100: '#fae8ff',
256
+ 200: '#f5d0fe',
257
+ 300: '#f0abfc',
258
+ 400: '#e879f9',
259
+ 500: '#d946ef',
260
+ 600: '#c026d3',
261
+ 700: '#a21caf',
262
+ 800: '#86198f',
263
+ 900: '#701a75',
264
+ 950: '#4a044e',
265
+ },
266
+ pink: {
267
+ 50: '#fdf2f8',
268
+ 100: '#fce7f3',
269
+ 200: '#fbcfe8',
270
+ 300: '#f9a8d4',
271
+ 400: '#f472b6',
272
+ 500: '#ec4899',
273
+ 600: '#db2777',
274
+ 700: '#be185d',
275
+ 800: '#9d174d',
276
+ 900: '#831843',
277
+ 950: '#500724',
278
+ },
279
+ rose: {
280
+ 50: '#fff1f2',
281
+ 100: '#ffe4e6',
282
+ 200: '#fecdd3',
283
+ 300: '#fda4af',
284
+ 400: '#fb7185',
285
+ 500: '#f43f5e',
286
+ 600: '#e11d48',
287
+ 700: '#be123c',
288
+ 800: '#9f1239',
289
+ 900: '#881337',
290
+ 950: '#4c0519',
291
+ },
292
+ };
293
+ }
294
+ export const replaceThemeTailwindColors = (theme, tailwindColor) => {
295
+ const colorShades = getTailwindColorShades();
296
+ const isValidColor = (color) => color in colorShades;
297
+ const colorPallete = isValidColor(tailwindColor) ? colorShades[tailwindColor] : colorShades.violet;
298
+ const el = document.createElement('style');
299
+ el.id = 'theme-variables';
300
+ el.setAttribute('type', 'text/css');
301
+ el.textContent = ':root {';
302
+ if (theme === 'light') {
303
+ el.textContent += `--sidebar-background: ${colorPallete[50]};\n`;
304
+ el.textContent += `--sidebar-accent: ${colorPallete[200]};\n`;
305
+ el.textContent += `--sidebar-ring: ${colorPallete[300]};\n`;
306
+ el.textContent += `--sidebar-border: ${colorPallete[100]};\n`;
307
+ el.textContent += `--sidebar-scrollbar-thumb: ${colorPallete[200]};\n`;
308
+ }
309
+ if (theme === 'light' || theme === 'dark-side') {
310
+ el.textContent += `--background-elevated: ${colorPallete[200]};\n`;
311
+ el.textContent += `--background-primary-hover: ${colorPallete[100]};\n`;
312
+ el.textContent += `--background-subtle: ${colorPallete[50]};\n`;
313
+ el.textContent += `--accent: ${colorPallete[200]};\n`;
314
+ el.textContent += `--datatable-background: ${colorPallete[50]};\n`;
315
+ el.textContent += `--datatable-accent: ${colorPallete[50]};\n`;
316
+ el.textContent += `--scrollbar-thumb: ${colorPallete[200]};\n`;
317
+ }
318
+ if (theme === 'dark-side' || theme === 'dark') {
319
+ // Verificar essa propriedade
320
+ el.textContent += `--sidebar-accent: ${colorPallete[950]};\n`;
321
+ }
322
+ el.textContent += `--background-primary: ${colorPallete[900]};\n`;
323
+ el.textContent += `--background-primary-hover: ${colorPallete[950]};\n`;
324
+ el.textContent += `--primary: ${colorPallete[900]};\n`;
325
+ el.textContent += `--primary-950: ${colorPallete[950]};\n`;
326
+ el.textContent += `--primary-900: ${colorPallete[900]};\n`;
327
+ el.textContent += `--primary-800: ${colorPallete[800]};\n`;
328
+ el.textContent += `--primary-700: ${colorPallete[700]};\n`;
329
+ el.textContent += `--primary-600: ${colorPallete[600]};\n`;
330
+ el.textContent += `--primary-500: ${colorPallete[500]};\n`;
331
+ el.textContent += `--primary-400: ${colorPallete[400]};\n`;
332
+ el.textContent += `--primary-300: ${colorPallete[300]};\n`;
333
+ el.textContent += `--primary-200: ${colorPallete[200]};\n`;
334
+ el.textContent += `--primary-100: ${colorPallete[100]};\n`;
335
+ el.textContent += `--primary-50: ${colorPallete[50]};\n`;
336
+ el.textContent += `--chart-primary: ${colorPallete[800]};\n`;
337
+ el.textContent += `--chart-secondary: ${colorPallete[200]};\n`;
338
+ el.textContent += '}';
339
+ return el;
340
+ };
@@ -0,0 +1,2 @@
1
+ export declare function isUUIDv4(str: string): boolean;
2
+ //# sourceMappingURL=uuid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uuid.d.ts","sourceRoot":"","sources":["../../../src/lib/help/uuid.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAG7C"}
@@ -0,0 +1,4 @@
1
+ export function isUUIDv4(str) {
2
+ const uuidV4Regex = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
3
+ return uuidV4Regex.test(str);
4
+ }
@@ -0,0 +1,3 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
3
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
@@ -0,0 +1,5 @@
1
+ import { clsx } from 'clsx';
2
+ import { twMerge } from 'tailwind-merge';
3
+ export function cn(...inputs) {
4
+ return twMerge(clsx(inputs));
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eai-frontend-components",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "description": "Biblioteca de componentes UI reutilizáveis baseada em shadcn/ui e Radix UI para projetos EAI.",
5
5
  "private": false,
6
6
  "publishConfig": {