@robosystems/core 0.3.0
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/LICENSE +21 -0
- package/README.md +252 -0
- package/actions/entity-actions.d.ts +8 -0
- package/actions/entity-actions.js +16 -0
- package/actions/graph-actions.d.ts +3 -0
- package/actions/graph-actions.js +13 -0
- package/auth-components/AppSwitcher.d.ts +6 -0
- package/auth-components/AppSwitcher.js +28 -0
- package/auth-components/AuthGuard.d.ts +7 -0
- package/auth-components/AuthGuard.js +31 -0
- package/auth-components/AuthProvider.d.ts +9 -0
- package/auth-components/AuthProvider.js +565 -0
- package/auth-components/SessionWarningDialog.d.ts +1 -0
- package/auth-components/SessionWarningDialog.js +51 -0
- package/auth-components/SignInForm.d.ts +20 -0
- package/auth-components/SignInForm.js +139 -0
- package/auth-components/SignUpForm.d.ts +15 -0
- package/auth-components/SignUpForm.js +167 -0
- package/auth-components/TurnstileWidget.d.ts +99 -0
- package/auth-components/TurnstileWidget.js +224 -0
- package/auth-components/index.d.ts +6 -0
- package/auth-components/index.js +6 -0
- package/auth-core/cleanup.d.ts +44 -0
- package/auth-core/cleanup.js +157 -0
- package/auth-core/client.d.ts +121 -0
- package/auth-core/client.js +767 -0
- package/auth-core/config.d.ts +19 -0
- package/auth-core/config.js +56 -0
- package/auth-core/hooks.d.ts +19 -0
- package/auth-core/hooks.js +63 -0
- package/auth-core/index.d.ts +6 -0
- package/auth-core/index.js +6 -0
- package/auth-core/sso.d.ts +42 -0
- package/auth-core/sso.js +281 -0
- package/auth-core/token-storage.d.ts +58 -0
- package/auth-core/token-storage.js +177 -0
- package/auth-core/types.d.ts +145 -0
- package/auth-core/types.js +1 -0
- package/components/EntitySelector.d.ts +44 -0
- package/components/EntitySelector.js +64 -0
- package/components/EntitySelectorCore.d.ts +45 -0
- package/components/EntitySelectorCore.js +67 -0
- package/components/GraphSelectorCore.d.ts +21 -0
- package/components/GraphSelectorCore.js +39 -0
- package/components/PageLayout.d.ts +8 -0
- package/components/PageLayout.js +5 -0
- package/components/RepositoryGuard.d.ts +68 -0
- package/components/RepositoryGuard.js +91 -0
- package/components/console/ConsoleContent.d.ts +4 -0
- package/components/console/ConsoleContent.js +612 -0
- package/components/console/ConsoleMarkdown.d.ts +11 -0
- package/components/console/ConsoleMarkdown.js +49 -0
- package/components/console/ProgressiveText.d.ts +6 -0
- package/components/console/ProgressiveText.js +21 -0
- package/components/console/graphAwareConfig.d.ts +70 -0
- package/components/console/graphAwareConfig.js +411 -0
- package/components/console/index.d.ts +6 -0
- package/components/console/index.js +4 -0
- package/components/console/types.d.ts +84 -0
- package/components/console/types.js +1 -0
- package/components/graph-filters.d.ts +75 -0
- package/components/graph-filters.js +111 -0
- package/components/index.d.ts +10 -0
- package/components/index.js +9 -0
- package/components/repositories/ActiveSubscriptions.d.ts +26 -0
- package/components/repositories/ActiveSubscriptions.js +103 -0
- package/components/repositories/BrowseRepositories.d.ts +11 -0
- package/components/repositories/BrowseRepositories.js +184 -0
- package/components/repositories/index.d.ts +2 -0
- package/components/repositories/index.js +2 -0
- package/components/search/SearchContent.d.ts +4 -0
- package/components/search/SearchContent.js +168 -0
- package/components/search/index.d.ts +2 -0
- package/components/search/index.js +1 -0
- package/components/search/types.d.ts +15 -0
- package/components/search/types.js +1 -0
- package/contexts/entity-context.d.ts +28 -0
- package/contexts/entity-context.js +89 -0
- package/contexts/graph-context.d.ts +27 -0
- package/contexts/graph-context.js +128 -0
- package/contexts/index.d.ts +5 -0
- package/contexts/index.js +5 -0
- package/contexts/org-context.d.ts +25 -0
- package/contexts/org-context.js +64 -0
- package/contexts/service-offerings-context.d.ts +45 -0
- package/contexts/service-offerings-context.js +98 -0
- package/contexts/sidebar-context.d.ts +18 -0
- package/contexts/sidebar-context.js +44 -0
- package/hooks/index.d.ts +6 -0
- package/hooks/index.js +6 -0
- package/hooks/use-api-error.d.ts +3 -0
- package/hooks/use-api-error.js +24 -0
- package/hooks/use-media-query.d.ts +1 -0
- package/hooks/use-media-query.js +21 -0
- package/hooks/use-streaming-query.d.ts +22 -0
- package/hooks/use-streaming-query.js +142 -0
- package/hooks/use-toast.d.ts +37 -0
- package/hooks/use-toast.js +117 -0
- package/hooks/use-user-limits.d.ts +12 -0
- package/hooks/use-user-limits.js +73 -0
- package/hooks/use-user.d.ts +11 -0
- package/hooks/use-user.js +39 -0
- package/index.d.ts +29 -0
- package/index.js +77 -0
- package/lib/entity-cookie.d.ts +10 -0
- package/lib/entity-cookie.js +38 -0
- package/lib/graph-cookie.d.ts +11 -0
- package/lib/graph-cookie.js +62 -0
- package/lib/graph-tiers.d.ts +41 -0
- package/lib/graph-tiers.js +107 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/lib/sidebar-cookie.d.ts +11 -0
- package/lib/sidebar-cookie.js +42 -0
- package/library/colors.d.ts +4 -0
- package/library/colors.js +41 -0
- package/library/components/ClassificationPicker.d.ts +8 -0
- package/library/components/ClassificationPicker.js +55 -0
- package/library/components/ElementBrowser.d.ts +11 -0
- package/library/components/ElementBrowser.js +106 -0
- package/library/components/ElementDetail.d.ts +7 -0
- package/library/components/ElementDetail.js +97 -0
- package/library/components/LibraryHierarchy.d.ts +13 -0
- package/library/components/LibraryHierarchy.js +380 -0
- package/library/components/TaxonomySidebar.d.ts +6 -0
- package/library/components/TaxonomySidebar.js +45 -0
- package/library/index.d.ts +8 -0
- package/library/index.js +7 -0
- package/package.json +37 -0
- package/research/CoverageCard.d.ts +12 -0
- package/research/CoverageCard.js +15 -0
- package/research/CoverageGrid.d.ts +6 -0
- package/research/CoverageGrid.js +9 -0
- package/research/CoverageHistory.d.ts +5 -0
- package/research/CoverageHistory.js +7 -0
- package/research/ResearchArticle.d.ts +15 -0
- package/research/ResearchArticle.js +26 -0
- package/research/catalog.d.ts +14 -0
- package/research/catalog.js +42 -0
- package/research/index.d.ts +6 -0
- package/research/index.js +9 -0
- package/research/types.d.ts +38 -0
- package/research/types.js +4 -0
- package/task-monitoring/hooks.d.ts +26 -0
- package/task-monitoring/hooks.js +126 -0
- package/task-monitoring/index.d.ts +5 -0
- package/task-monitoring/index.js +7 -0
- package/task-monitoring/operationErrors.d.ts +82 -0
- package/task-monitoring/operationErrors.js +251 -0
- package/task-monitoring/operationHooks.d.ts +117 -0
- package/task-monitoring/operationHooks.js +536 -0
- package/task-monitoring/operationMonitor.d.ts +78 -0
- package/task-monitoring/operationMonitor.js +200 -0
- package/task-monitoring/operationTypes.d.ts +236 -0
- package/task-monitoring/operationTypes.js +60 -0
- package/task-monitoring/taskMonitor.d.ts +14 -0
- package/task-monitoring/taskMonitor.js +132 -0
- package/task-monitoring/types.d.ts +31 -0
- package/task-monitoring/types.js +1 -0
- package/theme/flowbite-theme.d.ts +758 -0
- package/theme/flowbite-theme.js +765 -0
- package/theme/index.d.ts +1 -0
- package/theme/index.js +1 -0
- package/types/entity.d.ts +19 -0
- package/types/index.d.ts +2 -0
- package/types/index.js +1 -0
- package/types/user.d.ts +6 -0
- package/ui-components/ConfirmModal.d.ts +41 -0
- package/ui-components/ConfirmModal.js +19 -0
- package/ui-components/EmptyState.d.ts +22 -0
- package/ui-components/EmptyState.js +10 -0
- package/ui-components/LoadingState.d.ts +27 -0
- package/ui-components/LoadingState.js +12 -0
- package/ui-components/Logo.d.ts +28 -0
- package/ui-components/Logo.js +95 -0
- package/ui-components/Spinner.d.ts +37 -0
- package/ui-components/Spinner.js +48 -0
- package/ui-components/StatCard.d.ts +21 -0
- package/ui-components/StatCard.js +10 -0
- package/ui-components/api-keys/ApiKeyDisplay.d.ts +13 -0
- package/ui-components/api-keys/ApiKeyDisplay.js +7 -0
- package/ui-components/api-keys/ApiKeyTable.d.ts +9 -0
- package/ui-components/api-keys/ApiKeyTable.js +17 -0
- package/ui-components/api-keys/ApiKeysCard.d.ts +6 -0
- package/ui-components/api-keys/ApiKeysCard.js +97 -0
- package/ui-components/api-keys/CreateApiKeyModal.d.ts +11 -0
- package/ui-components/api-keys/CreateApiKeyModal.js +47 -0
- package/ui-components/api-keys/SecureApiKeyField.d.ts +13 -0
- package/ui-components/api-keys/SecureApiKeyField.js +64 -0
- package/ui-components/api-keys/index.d.ts +5 -0
- package/ui-components/api-keys/index.js +5 -0
- package/ui-components/chat/ChatHeader.d.ts +12 -0
- package/ui-components/chat/ChatHeader.js +5 -0
- package/ui-components/chat/ChatInputArea.d.ts +16 -0
- package/ui-components/chat/ChatInputArea.js +9 -0
- package/ui-components/chat/ChatMessage.d.ts +7 -0
- package/ui-components/chat/ChatMessage.js +24 -0
- package/ui-components/chat/DeepResearchToggle.d.ts +8 -0
- package/ui-components/chat/DeepResearchToggle.js +13 -0
- package/ui-components/chat/index.d.ts +9 -0
- package/ui-components/chat/index.js +8 -0
- package/ui-components/chat/types.d.ts +23 -0
- package/ui-components/chat/types.js +51 -0
- package/ui-components/forms/PasswordRequirements.d.ts +10 -0
- package/ui-components/forms/PasswordRequirements.js +15 -0
- package/ui-components/forms/SettingsCard.d.ts +11 -0
- package/ui-components/forms/SettingsCard.js +5 -0
- package/ui-components/forms/SettingsFormField.d.ts +18 -0
- package/ui-components/forms/SettingsFormField.js +17 -0
- package/ui-components/forms/StatusAlert.d.ts +8 -0
- package/ui-components/forms/StatusAlert.js +7 -0
- package/ui-components/forms/index.d.ts +4 -0
- package/ui-components/forms/index.js +4 -0
- package/ui-components/index.d.ts +13 -0
- package/ui-components/index.js +18 -0
- package/ui-components/layout/CoreNavbar.d.ts +14 -0
- package/ui-components/layout/CoreNavbar.js +53 -0
- package/ui-components/layout/CoreSidebar.d.ts +28 -0
- package/ui-components/layout/CoreSidebar.js +62 -0
- package/ui-components/layout/LandingFooter.d.ts +28 -0
- package/ui-components/layout/LandingFooter.js +34 -0
- package/ui-components/layout/PageContainer.d.ts +8 -0
- package/ui-components/layout/PageContainer.js +17 -0
- package/ui-components/layout/PageHeader.d.ts +23 -0
- package/ui-components/layout/PageHeader.js +12 -0
- package/ui-components/layout/SettingsContainer.d.ts +10 -0
- package/ui-components/layout/SettingsContainer.js +9 -0
- package/ui-components/layout/ThemeToggle.d.ts +4 -0
- package/ui-components/layout/ThemeToggle.js +6 -0
- package/ui-components/layout/index.d.ts +7 -0
- package/ui-components/layout/index.js +7 -0
- package/ui-components/settings/GeneralInformationCard.d.ts +12 -0
- package/ui-components/settings/GeneralInformationCard.js +72 -0
- package/ui-components/settings/PasswordInformationCard.d.ts +10 -0
- package/ui-components/settings/PasswordInformationCard.js +167 -0
- package/ui-components/settings/SettingsPageHeader.d.ts +7 -0
- package/ui-components/settings/SettingsPageHeader.js +6 -0
- package/ui-components/settings/index.d.ts +3 -0
- package/ui-components/settings/index.js +3 -0
- package/ui-components/support/SupportModal.d.ts +15 -0
- package/ui-components/support/SupportModal.js +74 -0
- package/ui-components/support/index.d.ts +2 -0
- package/ui-components/support/index.js +1 -0
- package/ui-components/types/index.d.ts +39 -0
- package/ui-components/types/index.js +1 -0
- package/utils/index.d.ts +31 -0
- package/utils/index.js +38 -0
- package/utils/turnstile-config.d.ts +11 -0
- package/utils/turnstile-config.js +19 -0
|
@@ -0,0 +1,765 @@
|
|
|
1
|
+
import { createTheme, theme } from 'flowbite-react';
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
export const customTheme = createTheme({
|
|
4
|
+
// RoboSystems Theme
|
|
5
|
+
alert: {
|
|
6
|
+
base: 'flex flex-col gap-2 rounded-xl p-4 text-sm backdrop-blur-sm',
|
|
7
|
+
borderAccent: 'border-l-4',
|
|
8
|
+
color: {
|
|
9
|
+
failure: 'border-red-400 bg-red-50 text-red-800 dark:border-red-600 dark:bg-red-900/20 dark:text-red-300',
|
|
10
|
+
success: 'border-green-400 bg-green-50 text-green-800 dark:border-green-600 dark:bg-green-900/20 dark:text-green-300',
|
|
11
|
+
warning: 'border-amber-400 bg-amber-50 text-amber-800 dark:border-amber-600 dark:bg-amber-900/20 dark:text-amber-300',
|
|
12
|
+
info: 'border-primary-400 bg-primary-50 text-primary-800 dark:border-primary-600 dark:bg-primary-900/20 dark:text-primary-300',
|
|
13
|
+
},
|
|
14
|
+
icon: 'mr-3 inline h-5 w-5 shrink-0',
|
|
15
|
+
rounded: 'rounded-xl',
|
|
16
|
+
wrapper: 'flex items-center',
|
|
17
|
+
},
|
|
18
|
+
avatar: {
|
|
19
|
+
root: {
|
|
20
|
+
base: 'flex items-center justify-center space-x-4',
|
|
21
|
+
bordered: 'ring-primary-300 dark:ring-primary-600 ring-2',
|
|
22
|
+
rounded: 'rounded-full',
|
|
23
|
+
color: {
|
|
24
|
+
dark: 'ring-gray-800 dark:ring-gray-800',
|
|
25
|
+
failure: 'ring-red-500 dark:ring-red-700',
|
|
26
|
+
gray: 'ring-gray-500 dark:ring-gray-400',
|
|
27
|
+
info: 'ring-primary-400 dark:ring-primary-600',
|
|
28
|
+
light: 'ring-gray-300 dark:ring-gray-500',
|
|
29
|
+
purple: 'ring-purple-500 dark:ring-purple-600',
|
|
30
|
+
success: 'ring-green-500 dark:ring-green-600',
|
|
31
|
+
warning: 'ring-amber-400 dark:ring-amber-600',
|
|
32
|
+
pink: 'ring-pink-500 dark:ring-pink-800',
|
|
33
|
+
},
|
|
34
|
+
img: {
|
|
35
|
+
base: 'rounded-full',
|
|
36
|
+
off: 'from-primary-100 to-secondary-100 dark:from-primary-900 dark:to-secondary-900 relative overflow-hidden bg-linear-to-br',
|
|
37
|
+
on: '',
|
|
38
|
+
placeholder: 'text-primary-400 dark:text-primary-600 absolute -bottom-1 h-auto w-auto',
|
|
39
|
+
},
|
|
40
|
+
size: {
|
|
41
|
+
xs: 'h-6 w-6',
|
|
42
|
+
sm: 'h-8 w-8',
|
|
43
|
+
md: 'h-10 w-10',
|
|
44
|
+
lg: 'h-20 w-20',
|
|
45
|
+
xl: 'h-36 w-36',
|
|
46
|
+
},
|
|
47
|
+
stacked: 'ring-2 ring-white dark:ring-gray-900',
|
|
48
|
+
statusPosition: {
|
|
49
|
+
'bottom-left': '-bottom-1 -left-1',
|
|
50
|
+
'bottom-center': '-bottom-1',
|
|
51
|
+
'bottom-right': '-right-1 -bottom-1',
|
|
52
|
+
'top-left': '-top-1 -left-1',
|
|
53
|
+
'top-center': '-top-1',
|
|
54
|
+
'top-right': '-top-1 -right-1',
|
|
55
|
+
'center-right': '-right-1',
|
|
56
|
+
center: '',
|
|
57
|
+
'center-left': '-left-1',
|
|
58
|
+
},
|
|
59
|
+
status: {
|
|
60
|
+
away: 'bg-amber-400',
|
|
61
|
+
base: 'absolute h-3.5 w-3.5 rounded-full border-2 border-white dark:border-gray-900',
|
|
62
|
+
busy: 'bg-red-400',
|
|
63
|
+
offline: 'bg-zinc-400',
|
|
64
|
+
online: 'bg-green-400',
|
|
65
|
+
},
|
|
66
|
+
initials: {
|
|
67
|
+
text: 'text-primary-700 dark:text-primary-300 font-medium',
|
|
68
|
+
base: 'from-primary-100 to-secondary-100 dark:from-primary-900 dark:to-secondary-900 relative inline-flex items-center justify-center overflow-hidden rounded-full bg-linear-to-br',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
group: {
|
|
72
|
+
base: 'flex -space-x-4',
|
|
73
|
+
},
|
|
74
|
+
groupCounter: {
|
|
75
|
+
base: 'bg-primary-700 hover:bg-primary-600 dark:bg-primary-600 dark:hover:bg-primary-700 relative flex h-10 w-10 items-center justify-center rounded-full text-xs font-medium text-white ring-2 ring-white dark:ring-gray-900',
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
badge: {
|
|
79
|
+
root: {
|
|
80
|
+
base: 'flex h-fit items-center gap-1 font-semibold backdrop-blur-sm',
|
|
81
|
+
color: {
|
|
82
|
+
primary: 'bg-primary-100 text-primary-800 dark:bg-primary-900/30 dark:text-primary-300',
|
|
83
|
+
secondary: 'bg-secondary-100 text-secondary-800 dark:bg-secondary-900/30 dark:text-secondary-300',
|
|
84
|
+
accent: 'bg-accent-100 text-accent-800 dark:bg-accent-900/30 dark:text-accent-300',
|
|
85
|
+
failure: 'bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300',
|
|
86
|
+
success: 'bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300',
|
|
87
|
+
warning: 'bg-amber-100 text-amber-800 dark:bg-amber-900/30 dark:text-amber-300',
|
|
88
|
+
info: 'bg-primary-100 text-primary-800 dark:bg-primary-900/30 dark:text-primary-300',
|
|
89
|
+
},
|
|
90
|
+
size: {
|
|
91
|
+
xs: 'p-1 text-xs',
|
|
92
|
+
sm: 'p-1.5 text-sm',
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
icon: {
|
|
96
|
+
off: 'rounded-sm px-2 py-0.5',
|
|
97
|
+
on: 'rounded-full p-1.5',
|
|
98
|
+
size: {
|
|
99
|
+
xs: 'h-3 w-3',
|
|
100
|
+
sm: 'h-3.5 w-3.5',
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
breadcrumb: {
|
|
105
|
+
root: {
|
|
106
|
+
base: '',
|
|
107
|
+
list: 'flex items-center',
|
|
108
|
+
},
|
|
109
|
+
item: {
|
|
110
|
+
base: 'group flex items-center',
|
|
111
|
+
chevron: 'mx-1 h-4 w-4 text-gray-400 group-first:hidden md:mx-2',
|
|
112
|
+
href: {
|
|
113
|
+
off: 'flex items-center text-sm font-medium text-gray-500 dark:text-gray-400',
|
|
114
|
+
on: 'text-primary-700 hover:text-primary-900 dark:text-primary-400 dark:hover:text-primary-300 flex items-center text-sm font-medium',
|
|
115
|
+
},
|
|
116
|
+
icon: 'mr-2 h-4 w-4',
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
button: {
|
|
120
|
+
base: 'group flex items-center justify-center p-0.5 text-center font-medium transition-all duration-200 focus:z-10 focus:ring-4',
|
|
121
|
+
fullSized: 'w-full',
|
|
122
|
+
color: {
|
|
123
|
+
primary: 'bg-primary-700 hover:bg-primary-800 focus:ring-primary-300 dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800 text-white',
|
|
124
|
+
secondary: 'bg-secondary-700 hover:bg-secondary-800 focus:ring-secondary-300 dark:bg-secondary-600 dark:hover:bg-secondary-700 dark:focus:ring-secondary-800 text-white',
|
|
125
|
+
accent: 'bg-accent-700 hover:bg-accent-800 focus:ring-accent-300 dark:bg-accent-600 dark:hover:bg-accent-700 dark:focus:ring-accent-800 text-white',
|
|
126
|
+
gray: 'bg-zinc-700 text-white hover:bg-zinc-800 focus:ring-gray-300 dark:bg-zinc-600 dark:hover:bg-zinc-700 dark:focus:ring-gray-800',
|
|
127
|
+
light: 'bg-zinc-50 text-gray-900 hover:bg-zinc-100 focus:ring-gray-300 dark:bg-zinc-800 dark:text-white dark:hover:bg-zinc-700 dark:focus:ring-gray-800',
|
|
128
|
+
dark: 'bg-zinc-900 text-white hover:bg-zinc-950 focus:ring-gray-300 dark:bg-zinc-800 dark:hover:bg-zinc-900 dark:focus:ring-gray-800',
|
|
129
|
+
failure: 'bg-red-700 text-white hover:bg-red-800 focus:ring-red-300 dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-800',
|
|
130
|
+
success: 'bg-green-700 text-white hover:bg-green-800 focus:ring-green-300 dark:bg-green-600 dark:hover:bg-green-700 dark:focus:ring-green-800',
|
|
131
|
+
warning: 'bg-amber-700 text-white hover:bg-amber-800 focus:ring-amber-300 dark:bg-amber-600 dark:hover:bg-amber-700 dark:focus:ring-amber-800',
|
|
132
|
+
},
|
|
133
|
+
// flowbite-react 0.12 reads outline button colors from `outlineColor`
|
|
134
|
+
// (Button.js: `outline ? theme.outlineColor[color] : theme.color[color]`).
|
|
135
|
+
// Keep these keys in sync with `color` above so outline variants of the
|
|
136
|
+
// brand/state colors render (the old `outline.color` shape was never read).
|
|
137
|
+
outlineColor: {
|
|
138
|
+
primary: 'border-primary-500 text-primary-500 hover:bg-primary-500 focus:ring-primary-300 dark:border-primary-500 dark:text-primary-500 dark:hover:bg-primary-500 dark:focus:ring-primary-800 hover:text-white dark:hover:text-white',
|
|
139
|
+
secondary: 'border-secondary-500 text-secondary-500 hover:bg-secondary-500 focus:ring-secondary-300 dark:border-secondary-500 dark:text-secondary-500 dark:hover:bg-secondary-500 dark:focus:ring-secondary-800 hover:text-white dark:hover:text-white',
|
|
140
|
+
accent: 'border-accent-500 text-accent-500 hover:bg-accent-500 focus:ring-accent-300 dark:border-accent-500 dark:text-accent-500 dark:hover:bg-accent-500 dark:focus:ring-accent-800 hover:text-white dark:hover:text-white',
|
|
141
|
+
gray: 'border-gray-500 text-gray-500 hover:bg-zinc-500 hover:text-white focus:ring-gray-300 dark:border-gray-500 dark:text-gray-500 dark:hover:bg-zinc-500 dark:hover:text-white dark:focus:ring-gray-800',
|
|
142
|
+
light: 'border-gray-200 text-gray-900 hover:bg-zinc-100 focus:ring-gray-300 dark:border-gray-600 dark:text-white dark:hover:bg-zinc-700 dark:focus:ring-gray-800',
|
|
143
|
+
dark: 'border-gray-900 text-gray-900 hover:bg-zinc-900 hover:text-white focus:ring-gray-300 dark:border-gray-600 dark:text-white dark:hover:bg-zinc-600 dark:hover:text-white dark:focus:ring-gray-800',
|
|
144
|
+
failure: 'border-red-500 text-red-500 hover:bg-red-500 hover:text-white focus:ring-red-300 dark:border-red-500 dark:text-red-500 dark:hover:bg-red-500 dark:hover:text-white dark:focus:ring-red-800',
|
|
145
|
+
success: 'border-green-500 text-green-500 hover:bg-green-500 hover:text-white focus:ring-green-300 dark:border-green-500 dark:text-green-500 dark:hover:bg-green-500 dark:hover:text-white dark:focus:ring-green-800',
|
|
146
|
+
warning: 'border-amber-500 text-amber-500 hover:bg-amber-500 hover:text-white focus:ring-amber-300 dark:border-amber-500 dark:text-amber-500 dark:hover:bg-amber-500 dark:hover:text-white dark:focus:ring-amber-800',
|
|
147
|
+
},
|
|
148
|
+
pill: 'rounded-full',
|
|
149
|
+
size: {
|
|
150
|
+
xs: 'px-2 py-1 text-xs',
|
|
151
|
+
sm: 'px-3 py-1.5 text-sm',
|
|
152
|
+
md: 'px-4 py-2 text-sm',
|
|
153
|
+
lg: 'px-5 py-2.5 text-base',
|
|
154
|
+
xl: 'px-6 py-3 text-base',
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
card: {
|
|
158
|
+
root: {
|
|
159
|
+
base: twMerge(theme.card.root.base, 'border border-gray-200 bg-white/80 shadow-lg backdrop-blur-sm transition-shadow duration-300 hover:shadow-xl dark:border-gray-700 dark:bg-zinc-950'),
|
|
160
|
+
children: 'flex h-full flex-col justify-center gap-4 p-6',
|
|
161
|
+
horizontal: {
|
|
162
|
+
off: 'flex-col',
|
|
163
|
+
on: 'flex-col md:max-w-xl md:flex-row',
|
|
164
|
+
},
|
|
165
|
+
href: 'hover:bg-zinc-50 dark:hover:bg-zinc-800',
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
checkbox: {
|
|
169
|
+
base: 'focus:ring-primary-500 dark:focus:ring-primary-600 h-4 w-4 rounded-sm border-gray-300 bg-zinc-100 focus:ring-2 dark:border-gray-600 dark:bg-zinc-700 dark:ring-offset-gray-800',
|
|
170
|
+
color: {
|
|
171
|
+
default: 'text-primary-600',
|
|
172
|
+
dark: 'text-gray-600',
|
|
173
|
+
failure: 'text-red-600',
|
|
174
|
+
gray: 'text-gray-600',
|
|
175
|
+
info: 'text-blue-600',
|
|
176
|
+
light: 'text-gray-600',
|
|
177
|
+
purple: 'text-purple-600',
|
|
178
|
+
success: 'text-green-600',
|
|
179
|
+
warning: 'text-amber-600',
|
|
180
|
+
blue: 'text-blue-600',
|
|
181
|
+
cyan: 'text-cyan-600',
|
|
182
|
+
green: 'text-green-600',
|
|
183
|
+
indigo: 'text-indigo-600',
|
|
184
|
+
lime: 'text-lime-600',
|
|
185
|
+
pink: 'text-pink-600',
|
|
186
|
+
red: 'text-red-600',
|
|
187
|
+
teal: 'text-teal-600',
|
|
188
|
+
yellow: 'text-yellow-600',
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
drawer: {
|
|
192
|
+
root: {
|
|
193
|
+
base: 'fixed z-40 overflow-y-auto bg-white p-4 transition-transform dark:bg-zinc-900',
|
|
194
|
+
backdrop: 'fixed inset-0 z-30 bg-zinc-900/50 backdrop-blur-sm dark:bg-zinc-900/80',
|
|
195
|
+
edge: 'bottom-16',
|
|
196
|
+
position: {
|
|
197
|
+
top: {
|
|
198
|
+
on: 'top-0 right-0 left-0 w-full transform-none',
|
|
199
|
+
off: 'top-0 right-0 left-0 w-full -translate-y-full',
|
|
200
|
+
},
|
|
201
|
+
right: {
|
|
202
|
+
on: 'top-0 right-0 h-screen w-80 transform-none',
|
|
203
|
+
off: 'top-0 right-0 h-screen w-80 translate-x-full',
|
|
204
|
+
},
|
|
205
|
+
bottom: {
|
|
206
|
+
on: 'right-0 bottom-0 left-0 w-full transform-none',
|
|
207
|
+
off: 'right-0 bottom-0 left-0 w-full translate-y-full',
|
|
208
|
+
},
|
|
209
|
+
left: {
|
|
210
|
+
on: 'top-0 left-0 h-screen w-80 transform-none',
|
|
211
|
+
off: 'top-0 left-0 h-screen w-80 -translate-x-full',
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
header: {
|
|
216
|
+
inner: {
|
|
217
|
+
closeButton: 'absolute end-2.5 top-2.5 flex h-8 w-8 items-center justify-center rounded-lg bg-transparent text-sm text-gray-400 hover:bg-zinc-200 hover:text-gray-900 dark:hover:bg-zinc-800 dark:hover:text-white',
|
|
218
|
+
closeIcon: 'h-4 w-4',
|
|
219
|
+
titleIcon: 'text-primary-600 dark:text-primary-400 me-2.5 h-5 w-5',
|
|
220
|
+
titleText: 'mb-4 inline-flex items-center text-base font-semibold text-gray-900 dark:text-white',
|
|
221
|
+
},
|
|
222
|
+
collapsed: {
|
|
223
|
+
on: 'hidden',
|
|
224
|
+
off: 'block',
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
items: {
|
|
228
|
+
base: '',
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
dropdown: {
|
|
232
|
+
floating: {
|
|
233
|
+
arrow: {
|
|
234
|
+
base: 'absolute z-10 h-2 w-2 rotate-45',
|
|
235
|
+
style: {
|
|
236
|
+
dark: 'bg-zinc-900 dark:bg-zinc-700',
|
|
237
|
+
light: 'bg-white',
|
|
238
|
+
auto: 'bg-white dark:bg-zinc-700',
|
|
239
|
+
},
|
|
240
|
+
placement: '-m-1',
|
|
241
|
+
},
|
|
242
|
+
animation: 'transition-opacity',
|
|
243
|
+
base: 'z-10 w-fit divide-y divide-gray-100 rounded-xl shadow-lg focus:outline-hidden',
|
|
244
|
+
content: 'py-1 text-sm text-gray-700 dark:text-gray-200',
|
|
245
|
+
divider: 'my-1 h-px bg-zinc-100 dark:bg-zinc-600',
|
|
246
|
+
header: 'block px-4 py-2 text-sm text-gray-700 dark:text-gray-200',
|
|
247
|
+
hidden: 'invisible opacity-0',
|
|
248
|
+
item: {
|
|
249
|
+
container: '',
|
|
250
|
+
base: 'flex cursor-pointer items-center justify-start px-4 py-2 text-sm text-gray-700 hover:bg-zinc-100 dark:text-gray-200 dark:hover:bg-zinc-600',
|
|
251
|
+
icon: 'mr-2 h-4 w-4',
|
|
252
|
+
},
|
|
253
|
+
style: {
|
|
254
|
+
dark: 'bg-zinc-900 text-white dark:bg-zinc-700',
|
|
255
|
+
light: 'border border-gray-200 bg-white text-gray-900',
|
|
256
|
+
auto: 'border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-zinc-700 dark:text-white',
|
|
257
|
+
},
|
|
258
|
+
target: 'w-fit',
|
|
259
|
+
},
|
|
260
|
+
content: 'py-1',
|
|
261
|
+
inlineWrapper: 'flex items-center',
|
|
262
|
+
},
|
|
263
|
+
label: {
|
|
264
|
+
root: {
|
|
265
|
+
base: 'text-sm font-medium',
|
|
266
|
+
disabled: 'opacity-50',
|
|
267
|
+
colors: {
|
|
268
|
+
default: 'text-gray-900 dark:text-white',
|
|
269
|
+
info: 'text-primary-500 dark:text-primary-400',
|
|
270
|
+
failure: 'text-red-700 dark:text-red-500',
|
|
271
|
+
warning: 'text-amber-500 dark:text-amber-400',
|
|
272
|
+
success: 'text-green-600 dark:text-green-400',
|
|
273
|
+
},
|
|
274
|
+
},
|
|
275
|
+
},
|
|
276
|
+
modal: {
|
|
277
|
+
root: {
|
|
278
|
+
base: 'fixed top-0 right-0 left-0 z-50 h-screen overflow-x-hidden overflow-y-auto md:inset-0 md:h-full',
|
|
279
|
+
show: {
|
|
280
|
+
on: 'flex bg-zinc-900/50 backdrop-blur-sm dark:bg-zinc-900/80',
|
|
281
|
+
off: 'hidden',
|
|
282
|
+
},
|
|
283
|
+
sizes: {
|
|
284
|
+
sm: 'max-w-sm',
|
|
285
|
+
md: 'max-w-md',
|
|
286
|
+
lg: 'max-w-lg',
|
|
287
|
+
xl: 'max-w-xl',
|
|
288
|
+
'2xl': 'max-w-2xl',
|
|
289
|
+
'3xl': 'max-w-3xl',
|
|
290
|
+
'4xl': 'max-w-4xl',
|
|
291
|
+
'5xl': 'max-w-5xl',
|
|
292
|
+
'6xl': 'max-w-6xl',
|
|
293
|
+
'7xl': 'max-w-7xl',
|
|
294
|
+
},
|
|
295
|
+
positions: {
|
|
296
|
+
'top-left': 'items-start justify-start',
|
|
297
|
+
'top-center': 'items-start justify-center',
|
|
298
|
+
'top-right': 'items-start justify-end',
|
|
299
|
+
'center-left': 'items-center justify-start',
|
|
300
|
+
center: 'items-center justify-center',
|
|
301
|
+
'center-right': 'items-center justify-end',
|
|
302
|
+
'bottom-right': 'items-end justify-end',
|
|
303
|
+
'bottom-center': 'items-end justify-center',
|
|
304
|
+
'bottom-left': 'items-end justify-start',
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
content: {
|
|
308
|
+
base: 'relative h-full w-full p-4 md:h-auto',
|
|
309
|
+
inner: 'relative flex max-h-[90vh] flex-col rounded-2xl bg-white shadow-2xl dark:bg-zinc-800',
|
|
310
|
+
},
|
|
311
|
+
body: {
|
|
312
|
+
base: 'flex-1 overflow-auto p-6',
|
|
313
|
+
popup: 'pt-0',
|
|
314
|
+
},
|
|
315
|
+
header: {
|
|
316
|
+
base: 'flex items-start justify-between rounded-t-2xl p-5 dark:border-gray-700',
|
|
317
|
+
popup: 'border-b-0 p-2',
|
|
318
|
+
title: 'text-xl font-semibold text-gray-900 dark:text-white',
|
|
319
|
+
close: {
|
|
320
|
+
base: 'ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-zinc-200 hover:text-gray-900 dark:hover:bg-zinc-700 dark:hover:text-white',
|
|
321
|
+
icon: 'h-5 w-5',
|
|
322
|
+
},
|
|
323
|
+
},
|
|
324
|
+
footer: {
|
|
325
|
+
base: 'flex items-center space-x-2 rounded-b-2xl p-6 dark:border-gray-700',
|
|
326
|
+
popup: 'border-t',
|
|
327
|
+
},
|
|
328
|
+
},
|
|
329
|
+
navbar: {
|
|
330
|
+
root: {
|
|
331
|
+
base: 'border-gray-200 bg-white/90 px-2 py-2.5 backdrop-blur-md sm:px-4 dark:border-gray-700 dark:bg-zinc-900/90',
|
|
332
|
+
rounded: {
|
|
333
|
+
on: 'rounded-sm',
|
|
334
|
+
off: '',
|
|
335
|
+
},
|
|
336
|
+
bordered: {
|
|
337
|
+
on: 'border',
|
|
338
|
+
off: '',
|
|
339
|
+
},
|
|
340
|
+
inner: {
|
|
341
|
+
base: 'mx-auto flex flex-wrap items-center justify-between',
|
|
342
|
+
fluid: {
|
|
343
|
+
on: '',
|
|
344
|
+
off: 'container',
|
|
345
|
+
},
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
brand: {
|
|
349
|
+
base: 'flex items-center',
|
|
350
|
+
},
|
|
351
|
+
collapse: {
|
|
352
|
+
base: 'w-full md:block md:w-auto',
|
|
353
|
+
list: 'mt-4 flex flex-col md:mt-0 md:flex-row md:space-x-8 md:text-sm md:font-medium',
|
|
354
|
+
hidden: {
|
|
355
|
+
on: 'hidden',
|
|
356
|
+
off: '',
|
|
357
|
+
},
|
|
358
|
+
},
|
|
359
|
+
link: {
|
|
360
|
+
base: 'block py-2 pr-4 pl-3 md:p-0',
|
|
361
|
+
active: {
|
|
362
|
+
on: 'bg-primary-700 md:text-primary-700 text-white md:bg-transparent dark:text-white',
|
|
363
|
+
off: 'md:hover:text-primary-700 border-b border-gray-100 text-gray-700 hover:bg-zinc-50 md:border-0 md:hover:bg-transparent dark:border-gray-700 dark:text-gray-400 dark:hover:bg-zinc-700 dark:hover:text-white md:dark:hover:bg-transparent md:dark:hover:text-white',
|
|
364
|
+
},
|
|
365
|
+
disabled: {
|
|
366
|
+
on: 'text-gray-400 hover:cursor-not-allowed dark:text-gray-600',
|
|
367
|
+
off: '',
|
|
368
|
+
},
|
|
369
|
+
},
|
|
370
|
+
toggle: {
|
|
371
|
+
base: 'inline-flex items-center rounded-lg p-2 text-sm text-gray-500 hover:bg-zinc-100 focus:ring-2 focus:ring-gray-200 focus:outline-hidden md:hidden dark:text-gray-400 dark:hover:bg-zinc-700 dark:focus:ring-gray-600',
|
|
372
|
+
icon: 'h-6 w-6 shrink-0',
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
progress: {
|
|
376
|
+
base: 'w-full overflow-hidden rounded-full bg-zinc-200 dark:bg-zinc-700',
|
|
377
|
+
label: 'mb-1 flex justify-between font-medium dark:text-white',
|
|
378
|
+
bar: 'text-primary-100 dark:text-primary-100 rounded-full text-center text-xs leading-none font-medium whitespace-nowrap',
|
|
379
|
+
color: {
|
|
380
|
+
dark: 'bg-zinc-600 dark:bg-zinc-300',
|
|
381
|
+
blue: 'bg-primary-600',
|
|
382
|
+
red: 'bg-red-600 dark:bg-red-500',
|
|
383
|
+
green: 'bg-green-600 dark:bg-green-500',
|
|
384
|
+
yellow: 'bg-amber-400 dark:bg-amber-500',
|
|
385
|
+
indigo: 'bg-indigo-600 dark:bg-indigo-500',
|
|
386
|
+
purple: 'bg-purple-600 dark:bg-purple-500',
|
|
387
|
+
cyan: 'bg-cyan-600',
|
|
388
|
+
gray: 'bg-zinc-500',
|
|
389
|
+
lime: 'bg-lime-600',
|
|
390
|
+
pink: 'bg-pink-500',
|
|
391
|
+
teal: 'bg-teal-600',
|
|
392
|
+
},
|
|
393
|
+
size: {
|
|
394
|
+
sm: 'h-1.5',
|
|
395
|
+
md: 'h-2.5',
|
|
396
|
+
lg: 'h-4',
|
|
397
|
+
xl: 'h-6',
|
|
398
|
+
},
|
|
399
|
+
},
|
|
400
|
+
select: {
|
|
401
|
+
base: 'flex',
|
|
402
|
+
addon: 'inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-zinc-50 px-3 text-sm text-gray-500 dark:border-gray-600 dark:bg-zinc-700',
|
|
403
|
+
field: {
|
|
404
|
+
base: 'relative w-full',
|
|
405
|
+
icon: {
|
|
406
|
+
base: 'pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3',
|
|
407
|
+
svg: 'h-5 w-5 text-gray-500 dark:text-gray-400',
|
|
408
|
+
},
|
|
409
|
+
select: {
|
|
410
|
+
base: 'block w-full border disabled:cursor-not-allowed disabled:opacity-50',
|
|
411
|
+
withIcon: {
|
|
412
|
+
on: 'pl-10',
|
|
413
|
+
off: '',
|
|
414
|
+
},
|
|
415
|
+
withAddon: {
|
|
416
|
+
on: 'rounded-r-lg',
|
|
417
|
+
off: 'rounded-lg',
|
|
418
|
+
},
|
|
419
|
+
withShadow: {
|
|
420
|
+
on: 'shadow-xs',
|
|
421
|
+
off: '',
|
|
422
|
+
},
|
|
423
|
+
sizes: {
|
|
424
|
+
sm: 'p-2 sm:text-xs',
|
|
425
|
+
md: 'p-2.5 text-sm',
|
|
426
|
+
lg: 'p-4 sm:text-base',
|
|
427
|
+
},
|
|
428
|
+
colors: {
|
|
429
|
+
gray: 'focus:border-primary-500 focus:ring-primary-500 dark:focus:border-primary-500 dark:focus:ring-primary-500 border-gray-300 bg-zinc-50 text-gray-900 dark:border-gray-600 dark:bg-zinc-700 dark:text-white dark:placeholder-gray-400',
|
|
430
|
+
info: 'border-primary-500 bg-primary-50 text-primary-900 placeholder-primary-700 focus:border-primary-500 focus:ring-primary-500 dark:border-primary-400 dark:bg-primary-100 dark:focus:border-primary-500 dark:focus:ring-primary-500',
|
|
431
|
+
failure: 'border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500',
|
|
432
|
+
warning: 'border-amber-500 bg-amber-50 text-amber-900 placeholder-amber-700 focus:border-amber-500 focus:ring-amber-500 dark:border-amber-400 dark:bg-amber-100 dark:focus:border-amber-500 dark:focus:ring-amber-500',
|
|
433
|
+
success: 'border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500',
|
|
434
|
+
},
|
|
435
|
+
},
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
sidebar: {
|
|
439
|
+
root: {
|
|
440
|
+
base: 'h-full',
|
|
441
|
+
collapsed: {
|
|
442
|
+
on: 'w-16',
|
|
443
|
+
off: 'w-64',
|
|
444
|
+
},
|
|
445
|
+
inner: twMerge(theme.sidebar.root.inner, 'h-full overflow-x-hidden overflow-y-auto rounded-sm bg-white px-3 py-4 dark:bg-zinc-950'),
|
|
446
|
+
},
|
|
447
|
+
collapse: {
|
|
448
|
+
button: twMerge(theme.sidebar.collapse.button, 'group w-full text-gray-900 hover:bg-zinc-100 dark:text-gray-200 dark:hover:bg-zinc-700/50'),
|
|
449
|
+
icon: {
|
|
450
|
+
base: 'h-6 w-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white',
|
|
451
|
+
open: {
|
|
452
|
+
off: '',
|
|
453
|
+
on: 'text-gray-900',
|
|
454
|
+
},
|
|
455
|
+
},
|
|
456
|
+
label: {
|
|
457
|
+
base: 'ml-3 flex-1 text-left whitespace-nowrap',
|
|
458
|
+
icon: {
|
|
459
|
+
base: 'h-6 w-6 transition delay-0 ease-in-out',
|
|
460
|
+
open: {
|
|
461
|
+
on: 'rotate-180',
|
|
462
|
+
off: '',
|
|
463
|
+
},
|
|
464
|
+
},
|
|
465
|
+
},
|
|
466
|
+
list: 'space-y-2 py-2',
|
|
467
|
+
},
|
|
468
|
+
cta: {
|
|
469
|
+
base: 'mt-6 rounded-lg bg-zinc-100 p-4 dark:bg-zinc-800',
|
|
470
|
+
color: {
|
|
471
|
+
blue: 'bg-blue-50 dark:bg-blue-900/20',
|
|
472
|
+
dark: 'bg-zinc-50 dark:bg-zinc-900/20',
|
|
473
|
+
failure: 'bg-red-50 dark:bg-red-900/20',
|
|
474
|
+
gray: 'bg-zinc-50 dark:bg-zinc-900/20',
|
|
475
|
+
green: 'bg-green-50 dark:bg-green-900/20',
|
|
476
|
+
light: 'bg-zinc-50 dark:bg-zinc-800/20',
|
|
477
|
+
red: 'bg-red-50 dark:bg-red-900/20',
|
|
478
|
+
purple: 'bg-purple-50 dark:bg-purple-900/20',
|
|
479
|
+
success: 'bg-green-50 dark:bg-green-900/20',
|
|
480
|
+
yellow: 'bg-yellow-50 dark:bg-yellow-900/20',
|
|
481
|
+
warning: 'bg-amber-50 dark:bg-amber-900/20',
|
|
482
|
+
},
|
|
483
|
+
},
|
|
484
|
+
item: {
|
|
485
|
+
base: twMerge(theme.sidebar.item.base, 'flex items-center justify-center rounded-lg p-2 text-base font-normal text-gray-900 hover:bg-zinc-100 dark:text-gray-200 dark:hover:bg-zinc-700/50'),
|
|
486
|
+
active: 'bg-zinc-100 dark:bg-zinc-800 dark:hover:bg-zinc-800 dark:hover:text-white',
|
|
487
|
+
collapsed: {
|
|
488
|
+
insideCollapse: 'group w-full pl-8 transition duration-75',
|
|
489
|
+
noIcon: 'font-bold',
|
|
490
|
+
},
|
|
491
|
+
content: {
|
|
492
|
+
base: 'flex-1 px-3 whitespace-nowrap',
|
|
493
|
+
},
|
|
494
|
+
icon: {
|
|
495
|
+
base: 'h-6 w-6 shrink-0 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white',
|
|
496
|
+
active: 'text-gray-700 dark:text-gray-100',
|
|
497
|
+
},
|
|
498
|
+
label: '',
|
|
499
|
+
listItem: '',
|
|
500
|
+
},
|
|
501
|
+
items: {
|
|
502
|
+
base: '',
|
|
503
|
+
},
|
|
504
|
+
itemGroup: {
|
|
505
|
+
base: twMerge(theme.sidebar.itemGroup.base, 'mt-4 space-y-2 border-t border-gray-200 pt-4 first:mt-0 first:border-t-0 first:pt-0 dark:border-gray-700'),
|
|
506
|
+
},
|
|
507
|
+
logo: {
|
|
508
|
+
base: 'mb-5 flex items-center pl-2.5',
|
|
509
|
+
collapsed: {
|
|
510
|
+
on: 'hidden',
|
|
511
|
+
off: 'self-center text-xl font-semibold whitespace-nowrap dark:text-white',
|
|
512
|
+
},
|
|
513
|
+
img: 'mr-3 h-6 sm:h-7',
|
|
514
|
+
},
|
|
515
|
+
},
|
|
516
|
+
spinner: {
|
|
517
|
+
base: 'inline animate-spin text-gray-200 dark:text-gray-600',
|
|
518
|
+
color: {
|
|
519
|
+
primary: 'fill-primary-600 dark:fill-primary-500',
|
|
520
|
+
secondary: 'fill-secondary-600 dark:fill-secondary-500',
|
|
521
|
+
accent: 'fill-accent-600 dark:fill-accent-500',
|
|
522
|
+
failure: 'fill-red-600 dark:fill-red-500',
|
|
523
|
+
gray: 'fill-gray-600 dark:fill-gray-500',
|
|
524
|
+
info: 'fill-cyan-600 dark:fill-cyan-500',
|
|
525
|
+
pink: 'fill-pink-600 dark:fill-pink-500',
|
|
526
|
+
purple: 'fill-purple-600 dark:fill-purple-500',
|
|
527
|
+
success: 'fill-green-500 dark:fill-green-400',
|
|
528
|
+
warning: 'fill-amber-400 dark:fill-amber-300',
|
|
529
|
+
},
|
|
530
|
+
light: {
|
|
531
|
+
off: {
|
|
532
|
+
base: 'text-gray-600 dark:text-gray-400',
|
|
533
|
+
color: {
|
|
534
|
+
failure: '',
|
|
535
|
+
gray: '',
|
|
536
|
+
info: '',
|
|
537
|
+
pink: '',
|
|
538
|
+
purple: '',
|
|
539
|
+
success: '',
|
|
540
|
+
warning: '',
|
|
541
|
+
},
|
|
542
|
+
},
|
|
543
|
+
on: {
|
|
544
|
+
base: '',
|
|
545
|
+
color: {
|
|
546
|
+
failure: 'text-red-600 dark:text-red-500',
|
|
547
|
+
gray: 'dark:text-gray-500',
|
|
548
|
+
info: 'text-cyan-600 dark:text-cyan-500',
|
|
549
|
+
pink: 'text-pink-600 dark:text-pink-500',
|
|
550
|
+
purple: 'text-purple-600 dark:text-purple-500',
|
|
551
|
+
success: 'text-green-600 dark:text-green-500',
|
|
552
|
+
warning: 'text-amber-600 dark:text-amber-500',
|
|
553
|
+
},
|
|
554
|
+
},
|
|
555
|
+
},
|
|
556
|
+
size: {
|
|
557
|
+
xs: 'h-3 w-3',
|
|
558
|
+
sm: 'h-4 w-4',
|
|
559
|
+
md: 'h-6 w-6',
|
|
560
|
+
lg: 'h-8 w-8',
|
|
561
|
+
xl: 'h-10 w-10',
|
|
562
|
+
},
|
|
563
|
+
},
|
|
564
|
+
table: {
|
|
565
|
+
root: {
|
|
566
|
+
base: 'w-full text-left text-sm text-gray-500 dark:text-gray-400',
|
|
567
|
+
shadow: 'absolute top-0 left-0 -z-10 h-full w-full rounded-lg bg-white drop-shadow-md dark:bg-zinc-800',
|
|
568
|
+
wrapper: 'relative',
|
|
569
|
+
},
|
|
570
|
+
body: {
|
|
571
|
+
base: 'group/body',
|
|
572
|
+
cell: {
|
|
573
|
+
base: 'p-4',
|
|
574
|
+
},
|
|
575
|
+
},
|
|
576
|
+
head: {
|
|
577
|
+
base: 'group/head text-xs text-gray-700 uppercase dark:text-gray-400',
|
|
578
|
+
cell: {
|
|
579
|
+
base: 'bg-zinc-50 p-4 dark:bg-zinc-700',
|
|
580
|
+
},
|
|
581
|
+
},
|
|
582
|
+
row: {
|
|
583
|
+
base: 'group/row',
|
|
584
|
+
hovered: 'hover:bg-zinc-50 dark:hover:bg-zinc-600',
|
|
585
|
+
striped: 'odd:bg-white even:bg-zinc-50 dark:odd:bg-zinc-800 dark:even:bg-zinc-700',
|
|
586
|
+
},
|
|
587
|
+
},
|
|
588
|
+
tabs: {
|
|
589
|
+
base: 'flex flex-col gap-2',
|
|
590
|
+
tablist: {
|
|
591
|
+
base: 'flex text-center',
|
|
592
|
+
variant: {
|
|
593
|
+
default: 'flex-wrap border-b border-gray-200 dark:border-gray-700',
|
|
594
|
+
underline: '-mb-px flex-wrap border-b border-gray-200 dark:border-gray-700',
|
|
595
|
+
pills: 'flex-wrap space-x-2 text-sm font-medium text-gray-500 dark:text-gray-400',
|
|
596
|
+
fullWidth: 'grid w-full grid-flow-col divide-x divide-gray-200 rounded-none text-sm font-medium shadow dark:divide-gray-700 dark:text-gray-400',
|
|
597
|
+
},
|
|
598
|
+
tabitem: {
|
|
599
|
+
base: 'focus:ring-primary-300 mx-1 flex items-center justify-center rounded-t-lg px-4 py-3 text-sm font-medium first:ml-0 focus:ring-4 focus:outline-none disabled:cursor-not-allowed disabled:text-gray-400 disabled:dark:text-gray-500',
|
|
600
|
+
variant: {
|
|
601
|
+
default: {
|
|
602
|
+
base: 'rounded-t-lg',
|
|
603
|
+
active: {
|
|
604
|
+
on: 'text-primary-600 dark:text-primary-400 bg-white dark:bg-zinc-800',
|
|
605
|
+
off: 'text-gray-500 hover:bg-zinc-50 hover:text-gray-600 dark:text-gray-400 dark:hover:bg-zinc-700 dark:hover:text-gray-300',
|
|
606
|
+
},
|
|
607
|
+
},
|
|
608
|
+
underline: {
|
|
609
|
+
base: 'rounded-t-lg',
|
|
610
|
+
active: {
|
|
611
|
+
on: 'active border-primary-600 text-primary-600 dark:border-primary-400 dark:text-primary-400 rounded-t-lg border-b-2',
|
|
612
|
+
off: 'border-b-2 border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300',
|
|
613
|
+
},
|
|
614
|
+
},
|
|
615
|
+
pills: {
|
|
616
|
+
base: '',
|
|
617
|
+
active: {
|
|
618
|
+
on: 'bg-primary-600 rounded-lg text-white',
|
|
619
|
+
off: 'rounded-lg hover:bg-zinc-100 hover:text-gray-900 dark:hover:bg-zinc-700 dark:hover:text-white',
|
|
620
|
+
},
|
|
621
|
+
},
|
|
622
|
+
fullWidth: {
|
|
623
|
+
base: 'ml-0 flex w-full rounded-none first:ml-0',
|
|
624
|
+
active: {
|
|
625
|
+
on: 'active rounded-none bg-white p-4 text-gray-900 dark:bg-zinc-700 dark:text-white',
|
|
626
|
+
off: 'rounded-none bg-white hover:bg-zinc-50 hover:text-gray-700 dark:bg-zinc-800 dark:hover:bg-zinc-700 dark:hover:text-white',
|
|
627
|
+
},
|
|
628
|
+
},
|
|
629
|
+
},
|
|
630
|
+
icon: 'mr-2 h-5 w-5',
|
|
631
|
+
},
|
|
632
|
+
},
|
|
633
|
+
tabitemcontainer: {
|
|
634
|
+
base: '',
|
|
635
|
+
variant: {
|
|
636
|
+
default: '',
|
|
637
|
+
underline: '',
|
|
638
|
+
pills: '',
|
|
639
|
+
fullWidth: '',
|
|
640
|
+
},
|
|
641
|
+
},
|
|
642
|
+
tabpanel: 'py-3',
|
|
643
|
+
},
|
|
644
|
+
textarea: {
|
|
645
|
+
base: twMerge(theme.textarea.base, 'p-4'),
|
|
646
|
+
colors: {
|
|
647
|
+
gray: twMerge(theme.textarea.colors.gray, 'focus:border-secondary-500 focus:ring-secondary-500 dark:focus:border-secondary-500 dark:focus:ring-secondary-500 text-base sm:text-sm'),
|
|
648
|
+
info: 'border-primary-500 bg-primary-50 text-primary-900 placeholder-primary-700 focus:border-primary-500 focus:ring-primary-500 dark:border-primary-400 dark:bg-primary-100 dark:focus:border-primary-500 dark:focus:ring-primary-500',
|
|
649
|
+
failure: 'border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500',
|
|
650
|
+
warning: 'border-amber-500 bg-amber-50 text-amber-900 placeholder-amber-700 focus:border-amber-500 focus:ring-amber-500 dark:border-amber-400 dark:bg-amber-100 dark:focus:border-amber-500 dark:focus:ring-amber-500',
|
|
651
|
+
success: 'border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500',
|
|
652
|
+
},
|
|
653
|
+
withShadow: {
|
|
654
|
+
on: 'shadow-xs',
|
|
655
|
+
off: '',
|
|
656
|
+
},
|
|
657
|
+
},
|
|
658
|
+
textInput: {
|
|
659
|
+
addon: 'inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-zinc-50 px-3 text-sm text-gray-500 dark:border-gray-600 dark:bg-zinc-700',
|
|
660
|
+
field: {
|
|
661
|
+
base: 'relative w-full',
|
|
662
|
+
icon: {
|
|
663
|
+
base: 'pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3',
|
|
664
|
+
svg: 'h-5 w-5 text-gray-500 dark:text-gray-400',
|
|
665
|
+
},
|
|
666
|
+
rightIcon: {
|
|
667
|
+
base: 'pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3',
|
|
668
|
+
svg: 'h-5 w-5 text-gray-500 dark:text-gray-400',
|
|
669
|
+
},
|
|
670
|
+
input: {
|
|
671
|
+
base: twMerge(theme.textInput.field.input.base, 'block w-full border outline-hidden disabled:cursor-not-allowed disabled:opacity-50'),
|
|
672
|
+
sizes: {
|
|
673
|
+
sm: 'p-2 sm:text-xs',
|
|
674
|
+
md: 'p-2.5 sm:text-sm',
|
|
675
|
+
lg: 'p-4 sm:text-base',
|
|
676
|
+
},
|
|
677
|
+
colors: {
|
|
678
|
+
gray: 'focus:border-primary-500 focus:ring-primary-500 dark:focus:border-primary-500 dark:focus:ring-primary-500 border-gray-300 bg-zinc-50 text-gray-900 dark:border-gray-600 dark:bg-zinc-700 dark:text-white dark:placeholder-gray-400',
|
|
679
|
+
info: 'border-primary-500 bg-primary-50 text-primary-900 placeholder-primary-700 focus:border-primary-500 focus:ring-primary-500 dark:border-primary-400 dark:bg-primary-100 dark:focus:border-primary-500 dark:focus:ring-primary-500',
|
|
680
|
+
failure: 'border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500',
|
|
681
|
+
warning: 'border-amber-500 bg-amber-50 text-amber-900 placeholder-amber-700 focus:border-amber-500 focus:ring-amber-500 dark:border-amber-400 dark:bg-amber-100 dark:focus:border-amber-500 dark:focus:ring-amber-500',
|
|
682
|
+
success: 'border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500',
|
|
683
|
+
},
|
|
684
|
+
withRightIcon: {
|
|
685
|
+
on: 'pr-10',
|
|
686
|
+
off: '',
|
|
687
|
+
},
|
|
688
|
+
withIcon: {
|
|
689
|
+
on: 'pl-10',
|
|
690
|
+
off: '',
|
|
691
|
+
},
|
|
692
|
+
withAddon: {
|
|
693
|
+
on: 'rounded-r-lg',
|
|
694
|
+
off: 'rounded-lg',
|
|
695
|
+
},
|
|
696
|
+
withShadow: {
|
|
697
|
+
on: 'shadow-xs',
|
|
698
|
+
off: '',
|
|
699
|
+
},
|
|
700
|
+
},
|
|
701
|
+
},
|
|
702
|
+
},
|
|
703
|
+
toggleSwitch: {
|
|
704
|
+
root: {
|
|
705
|
+
base: 'group relative flex items-center rounded-lg',
|
|
706
|
+
active: {
|
|
707
|
+
on: 'cursor-pointer',
|
|
708
|
+
off: 'cursor-not-allowed opacity-50',
|
|
709
|
+
},
|
|
710
|
+
label: 'ml-3 text-sm font-medium text-gray-900 dark:text-gray-300',
|
|
711
|
+
},
|
|
712
|
+
toggle: {
|
|
713
|
+
base: 'toggle-bg rounded-full border',
|
|
714
|
+
checked: {
|
|
715
|
+
on: 'after:translate-x-full after:border-white',
|
|
716
|
+
off: 'border-gray-200 bg-zinc-200 dark:border-gray-600 dark:bg-zinc-700',
|
|
717
|
+
color: {
|
|
718
|
+
blue: 'border-primary-600 bg-primary-600',
|
|
719
|
+
dark: 'border-gray-900 bg-zinc-800',
|
|
720
|
+
failure: 'border-red-700 bg-red-700',
|
|
721
|
+
gray: 'border-gray-500 bg-zinc-500',
|
|
722
|
+
green: 'border-green-600 bg-green-600',
|
|
723
|
+
light: 'border-gray-200 bg-zinc-100',
|
|
724
|
+
red: 'border-red-700 bg-red-700',
|
|
725
|
+
purple: 'border-purple-700 bg-purple-700',
|
|
726
|
+
success: 'border-green-500 bg-green-500',
|
|
727
|
+
yellow: 'border-amber-400 bg-amber-400',
|
|
728
|
+
warning: 'border-amber-600 bg-amber-600',
|
|
729
|
+
cyan: 'border-cyan-500 bg-cyan-500',
|
|
730
|
+
lime: 'border-lime-500 bg-lime-500',
|
|
731
|
+
indigo: 'border-indigo-500 bg-indigo-500',
|
|
732
|
+
default: 'border-primary-600 bg-primary-600',
|
|
733
|
+
pink: 'border-pink-600 bg-pink-600',
|
|
734
|
+
teal: 'border-teal-600 bg-teal-600',
|
|
735
|
+
},
|
|
736
|
+
},
|
|
737
|
+
sizes: {
|
|
738
|
+
sm: 'h-5 w-9 after:absolute after:top-[2px] after:left-[2px] after:h-4 after:w-4',
|
|
739
|
+
md: 'h-6 w-11 after:absolute after:top-[2px] after:left-[2px] after:h-5 after:w-5',
|
|
740
|
+
lg: 'h-7 w-14 after:absolute after:top-0.5 after:left-[4px] after:h-6 after:w-6',
|
|
741
|
+
},
|
|
742
|
+
},
|
|
743
|
+
},
|
|
744
|
+
tooltip: {
|
|
745
|
+
target: 'w-fit',
|
|
746
|
+
animation: 'transition-opacity',
|
|
747
|
+
arrow: {
|
|
748
|
+
base: 'absolute z-10 h-2 w-2 rotate-45',
|
|
749
|
+
style: {
|
|
750
|
+
dark: 'bg-zinc-900 dark:bg-zinc-700',
|
|
751
|
+
light: 'bg-white',
|
|
752
|
+
auto: 'bg-white dark:bg-zinc-700',
|
|
753
|
+
},
|
|
754
|
+
placement: '-m-1',
|
|
755
|
+
},
|
|
756
|
+
base: 'absolute z-10 inline-block rounded-lg px-3 py-2 text-sm font-medium shadow-xs',
|
|
757
|
+
hidden: 'invisible opacity-0',
|
|
758
|
+
style: {
|
|
759
|
+
dark: 'bg-zinc-900 text-white dark:bg-zinc-700',
|
|
760
|
+
light: 'border border-gray-200 bg-white text-gray-900',
|
|
761
|
+
auto: 'border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-zinc-700 dark:text-white',
|
|
762
|
+
},
|
|
763
|
+
content: 'relative z-20',
|
|
764
|
+
},
|
|
765
|
+
});
|