eai-frontend-components 2.0.14 → 2.0.16
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.
- package/dist/components/ui/accordion.d.ts +8 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion.js +13 -0
- package/dist/components/ui/alert-dialog.d.ts +25 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +27 -0
- package/dist/components/ui/alert.d.ts +9 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.js +22 -0
- package/dist/components/ui/avatar.d.ts +7 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +11 -0
- package/dist/components/ui/badge.d.ts +10 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +26 -0
- package/dist/components/ui/breadcrumb.d.ts +20 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.js +23 -0
- package/dist/components/ui/button.d.ts +12 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +33 -0
- package/dist/components/ui/calendar.d.ts +9 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +70 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +16 -0
- package/dist/components/ui/carousel.d.ts +19 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/carousel.js +98 -0
- package/dist/components/ui/chart.d.ts +63 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/chart.js +132 -0
- package/dist/components/ui/checkbox.d.ts +5 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +8 -0
- package/dist/components/ui/collapsible.d.ts +6 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +5 -0
- package/dist/components/ui/command.d.ts +81 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/command.js +28 -0
- package/dist/components/ui/context-menu.d.ts +28 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/context-menu.js +33 -0
- package/dist/components/ui/custom/date-picker.d.ts +12 -0
- package/dist/components/ui/custom/date-picker.d.ts.map +1 -0
- package/dist/components/ui/custom/date-picker.js +35 -0
- package/dist/components/ui/custom/form/checkbox.d.ts +13 -0
- package/dist/components/ui/custom/form/checkbox.d.ts.map +1 -0
- package/dist/components/ui/custom/form/checkbox.js +15 -0
- package/dist/components/ui/custom/form/color.d.ts +15 -0
- package/dist/components/ui/custom/form/color.d.ts.map +1 -0
- package/dist/components/ui/custom/form/color.js +40 -0
- package/dist/components/ui/custom/form/combobox.d.ts +37 -0
- package/dist/components/ui/custom/form/combobox.d.ts.map +1 -0
- package/dist/components/ui/custom/form/combobox.js +82 -0
- package/dist/components/ui/custom/form/cpf-cnpj.d.ts +16 -0
- package/dist/components/ui/custom/form/cpf-cnpj.d.ts.map +1 -0
- package/dist/components/ui/custom/form/cpf-cnpj.js +32 -0
- package/dist/components/ui/custom/form/currency.d.ts +14 -0
- package/dist/components/ui/custom/form/currency.d.ts.map +1 -0
- package/dist/components/ui/custom/form/currency.js +15 -0
- package/dist/components/ui/custom/form/date-range.d.ts +16 -0
- package/dist/components/ui/custom/form/date-range.d.ts.map +1 -0
- package/dist/components/ui/custom/form/date-range.js +24 -0
- package/dist/components/ui/custom/form/date.d.ts +16 -0
- package/dist/components/ui/custom/form/date.d.ts.map +1 -0
- package/dist/components/ui/custom/form/date.js +35 -0
- package/dist/components/ui/custom/form/decimal.d.ts +14 -0
- package/dist/components/ui/custom/form/decimal.d.ts.map +1 -0
- package/dist/components/ui/custom/form/decimal.js +15 -0
- package/dist/components/ui/custom/form/file.d.ts +15 -0
- package/dist/components/ui/custom/form/file.d.ts.map +1 -0
- package/dist/components/ui/custom/form/file.js +18 -0
- package/dist/components/ui/custom/form/form-help-text.d.ts +3 -0
- package/dist/components/ui/custom/form/form-help-text.d.ts.map +1 -0
- package/dist/components/ui/custom/form/form-help-text.js +7 -0
- package/dist/components/ui/custom/form/form-label.d.ts +7 -0
- package/dist/components/ui/custom/form/form-label.d.ts.map +1 -0
- package/dist/components/ui/custom/form/form-label.js +9 -0
- package/dist/components/ui/custom/form/form-message.d.ts +5 -0
- package/dist/components/ui/custom/form/form-message.d.ts.map +1 -0
- package/dist/components/ui/custom/form/form-message.js +5 -0
- package/dist/components/ui/custom/form/ghost.d.ts +8 -0
- package/dist/components/ui/custom/form/ghost.d.ts.map +1 -0
- package/dist/components/ui/custom/form/ghost.js +8 -0
- package/dist/components/ui/custom/form/input.d.ts +18 -0
- package/dist/components/ui/custom/form/input.d.ts.map +1 -0
- package/dist/components/ui/custom/form/input.js +14 -0
- package/dist/components/ui/custom/form/mask.d.ts +19 -0
- package/dist/components/ui/custom/form/mask.d.ts.map +1 -0
- package/dist/components/ui/custom/form/mask.js +19 -0
- package/dist/components/ui/custom/form/multi-select.d.ts +26 -0
- package/dist/components/ui/custom/form/multi-select.d.ts.map +1 -0
- package/dist/components/ui/custom/form/multi-select.js +66 -0
- package/dist/components/ui/custom/form/password.d.ts +16 -0
- package/dist/components/ui/custom/form/password.d.ts.map +1 -0
- package/dist/components/ui/custom/form/password.js +14 -0
- package/dist/components/ui/custom/form/percent.d.ts +14 -0
- package/dist/components/ui/custom/form/percent.d.ts.map +1 -0
- package/dist/components/ui/custom/form/percent.js +15 -0
- package/dist/components/ui/custom/form/phone.d.ts +16 -0
- package/dist/components/ui/custom/form/phone.d.ts.map +1 -0
- package/dist/components/ui/custom/form/phone.js +23 -0
- package/dist/components/ui/custom/form/radio-group.d.ts +23 -0
- package/dist/components/ui/custom/form/radio-group.d.ts.map +1 -0
- package/dist/components/ui/custom/form/radio-group.js +15 -0
- package/dist/components/ui/custom/form/select.d.ts +20 -0
- package/dist/components/ui/custom/form/select.d.ts.map +1 -0
- package/dist/components/ui/custom/form/select.js +12 -0
- package/dist/components/ui/custom/form/step-new-form.d.ts +10 -0
- package/dist/components/ui/custom/form/step-new-form.d.ts.map +1 -0
- package/dist/components/ui/custom/form/step-new-form.js +13 -0
- package/dist/components/ui/custom/form/switch.d.ts +13 -0
- package/dist/components/ui/custom/form/switch.d.ts.map +1 -0
- package/dist/components/ui/custom/form/switch.js +16 -0
- package/dist/components/ui/custom/form/text.d.ts +18 -0
- package/dist/components/ui/custom/form/text.d.ts.map +1 -0
- package/dist/components/ui/custom/form/text.js +14 -0
- package/dist/components/ui/custom/form/textarea.d.ts +16 -0
- package/dist/components/ui/custom/form/textarea.d.ts.map +1 -0
- package/dist/components/ui/custom/form/textarea.js +19 -0
- package/dist/components/ui/custom/form/utils.d.ts +18 -0
- package/dist/components/ui/custom/form/utils.d.ts.map +1 -0
- package/dist/components/ui/custom/form/utils.js +88 -0
- package/dist/components/ui/custom/header.d.ts +11 -0
- package/dist/components/ui/custom/header.d.ts.map +1 -0
- package/dist/components/ui/custom/header.js +74 -0
- package/dist/components/ui/custom/label.d.ts +13 -0
- package/dist/components/ui/custom/label.d.ts.map +1 -0
- package/dist/components/ui/custom/label.js +20 -0
- package/dist/components/ui/custom/not-found.d.ts +3 -0
- package/dist/components/ui/custom/not-found.d.ts.map +1 -0
- package/dist/components/ui/custom/not-found.js +9 -0
- package/dist/components/ui/custom/sidebar/module-switcher.d.ts +9 -0
- package/dist/components/ui/custom/sidebar/module-switcher.d.ts.map +1 -0
- package/dist/components/ui/custom/sidebar/module-switcher.js +20 -0
- package/dist/components/ui/custom/sidebar/nav-footer.d.ts +7 -0
- package/dist/components/ui/custom/sidebar/nav-footer.d.ts.map +1 -0
- package/dist/components/ui/custom/sidebar/nav-footer.js +13 -0
- package/dist/components/ui/custom/sidebar/nav-main.d.ts +7 -0
- package/dist/components/ui/custom/sidebar/nav-main.d.ts.map +1 -0
- package/dist/components/ui/custom/sidebar/nav-main.js +27 -0
- package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts +9 -0
- package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts.map +1 -0
- package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.js +18 -0
- package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts +10 -0
- package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts.map +1 -0
- package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.js +10 -0
- package/dist/components/ui/custom/sidebar/nav-user.d.ts +9 -0
- package/dist/components/ui/custom/sidebar/nav-user.d.ts.map +1 -0
- package/dist/components/ui/custom/sidebar/nav-user.js +24 -0
- package/dist/components/ui/custom/sidebar/sidebar-button.d.ts +9 -0
- package/dist/components/ui/custom/sidebar/sidebar-button.d.ts.map +1 -0
- package/dist/components/ui/custom/sidebar/sidebar-button.js +7 -0
- package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts +12 -0
- package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts.map +1 -0
- package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.js +5 -0
- package/dist/components/ui/custom/sidebar/sidebar-item.d.ts +9 -0
- package/dist/components/ui/custom/sidebar/sidebar-item.d.ts.map +1 -0
- package/dist/components/ui/custom/sidebar/sidebar-item.js +7 -0
- package/dist/components/ui/custom/sidebar/types/sidebar.d.ts +29 -0
- package/dist/components/ui/custom/sidebar/types/sidebar.d.ts.map +1 -0
- package/dist/components/ui/custom/sidebar/types/sidebar.js +5 -0
- package/dist/components/ui/custom/table/data-table-export.d.ts +8 -0
- package/dist/components/ui/custom/table/data-table-export.d.ts.map +1 -0
- package/dist/components/ui/custom/table/data-table-export.js +65 -0
- package/dist/components/ui/custom/table/data-table-footer.d.ts +25 -0
- package/dist/components/ui/custom/table/data-table-footer.d.ts.map +1 -0
- package/dist/components/ui/custom/table/data-table-footer.js +39 -0
- package/dist/components/ui/custom/table/data-table-header.d.ts +9 -0
- package/dist/components/ui/custom/table/data-table-header.d.ts.map +1 -0
- package/dist/components/ui/custom/table/data-table-header.js +11 -0
- package/dist/components/ui/custom/table/data-table-rows.d.ts +13 -0
- package/dist/components/ui/custom/table/data-table-rows.d.ts.map +1 -0
- package/dist/components/ui/custom/table/data-table-rows.js +25 -0
- package/dist/components/ui/custom/table/data-table.d.ts +35 -0
- package/dist/components/ui/custom/table/data-table.d.ts.map +1 -0
- package/dist/components/ui/custom/table/data-table.js +99 -0
- package/dist/components/ui/custom/table/types/data-table.d.ts +29 -0
- package/dist/components/ui/custom/table/types/data-table.d.ts.map +1 -0
- package/dist/components/ui/custom/table/types/data-table.js +1 -0
- package/dist/components/ui/custom/theme-provider.d.ts +24 -0
- package/dist/components/ui/custom/theme-provider.d.ts.map +1 -0
- package/dist/components/ui/custom/theme-provider.js +79 -0
- package/dist/components/ui/dateRangePicker.d.ts +3 -0
- package/dist/components/ui/dateRangePicker.d.ts.map +1 -0
- package/dist/components/ui/dateRangePicker.js +15 -0
- package/dist/components/ui/dialog.d.ts +23 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +23 -0
- package/dist/components/ui/drawer.d.ts +23 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/drawer.js +22 -0
- package/dist/components/ui/dropdown-menu.d.ts +28 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +32 -0
- package/dist/components/ui/form.d.ts +24 -0
- package/dist/components/ui/form.d.ts.map +1 -0
- package/dist/components/ui/form.js +60 -0
- package/dist/components/ui/hover-card.d.ts +7 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/hover-card.js +9 -0
- package/dist/components/ui/input.d.ts +24 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +71 -0
- package/dist/components/ui/label.d.ts +6 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +9 -0
- package/dist/components/ui/masks.d.ts +17 -0
- package/dist/components/ui/masks.d.ts.map +1 -0
- package/dist/components/ui/masks.js +25 -0
- package/dist/components/ui/pagination.d.ts +30 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/pagination.js +23 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +11 -0
- package/dist/components/ui/progress.d.ts +5 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/progress.js +7 -0
- package/dist/components/ui/radio-group.d.ts +6 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +14 -0
- package/dist/components/ui/scroll-area.d.ts +6 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.js +11 -0
- package/dist/components/ui/select.d.ts +14 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +24 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +7 -0
- package/dist/components/ui/sheet.d.ts +26 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +37 -0
- package/dist/components/ui/sidebar.d.ts +67 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/sidebar.js +221 -0
- package/dist/components/ui/skeleton.d.ts +3 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +6 -0
- package/dist/components/ui/slider.d.ts +5 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +7 -0
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +7 -0
- package/dist/components/ui/table.d.ts +11 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +20 -0
- package/dist/components/ui/tabs.d.ts +8 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +12 -0
- package/dist/components/ui/textarea.d.ts +4 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +14 -0
- package/dist/components/ui/toast.d.ts +16 -0
- package/dist/components/ui/toast.d.ts.map +1 -0
- package/dist/components/ui/toast.js +34 -0
- package/dist/components/ui/toaster.d.ts +2 -0
- package/dist/components/ui/toaster.d.ts.map +1 -0
- package/dist/components/ui/toaster.js +21 -0
- package/dist/components/ui/tooltip.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +10 -0
- package/dist/components/ui/use-calendar.d.ts +7 -0
- package/dist/components/ui/use-calendar.d.ts.map +1 -0
- package/dist/components/ui/use-calendar.js +23 -0
- package/dist/components/ui/use-toast.d.ts +46 -0
- package/dist/components/ui/use-toast.d.ts.map +1 -0
- package/dist/components/ui/use-toast.js +125 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +15 -0
- package/dist/index.d.ts +13 -13
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +10 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/lib/help/date-utils.d.ts +7 -0
- package/dist/lib/help/date-utils.d.ts.map +1 -0
- package/dist/lib/help/date-utils.js +34 -0
- package/dist/lib/help/format.d.ts +22 -0
- package/dist/lib/help/format.d.ts.map +1 -0
- package/dist/lib/help/format.js +140 -0
- package/dist/lib/help/theme.d.ts +291 -0
- package/dist/lib/help/theme.d.ts.map +1 -0
- package/dist/lib/help/theme.js +340 -0
- package/dist/lib/help/uuid.d.ts +2 -0
- package/dist/lib/help/uuid.d.ts.map +1 -0
- package/dist/lib/help/uuid.js +4 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +5 -0
- 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 @@
|
|
|
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 @@
|
|
|
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"}
|
package/package.json
CHANGED