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