@llmnative/react 0.1.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 +201 -0
- package/README.md +375 -0
- package/bin/cli.js +99 -0
- package/dist/index.css +1 -0
- package/dist/index.js +838 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +12161 -0
- package/dist/index.mjs.map +1 -0
- package/dist/types/src/App.d.ts +64 -0
- package/dist/types/src/Config.d.ts +65 -0
- package/dist/types/src/Global.d.ts +12 -0
- package/dist/types/src/Head.d.ts +193 -0
- package/dist/types/src/Theme.d.ts +335 -0
- package/dist/types/src/auth.d.ts +27 -0
- package/dist/types/src/components/Component.d.ts +55 -0
- package/dist/types/src/components/FormEnhancer.d.ts +26 -0
- package/dist/types/src/components/Template.d.ts +18 -0
- package/dist/types/src/components/blocks/Brand.d.ts +14 -0
- package/dist/types/src/components/blocks/Breadcrumbs.d.ts +8 -0
- package/dist/types/src/components/blocks/Carousel.d.ts +19 -0
- package/dist/types/src/components/blocks/Dropdown.d.ts +64 -0
- package/dist/types/src/components/blocks/Menu.d.ts +24 -0
- package/dist/types/src/components/blocks/Notifications.d.ts +15 -0
- package/dist/types/src/components/blocks/Search.d.ts +7 -0
- package/dist/types/src/components/index.d.ts +52 -0
- package/dist/types/src/components/types.d.ts +11 -0
- package/dist/types/src/components/ui/Alert.d.ts +13 -0
- package/dist/types/src/components/ui/Badge.d.ts +27 -0
- package/dist/types/src/components/ui/Buttons.d.ts +57 -0
- package/dist/types/src/components/ui/Card.d.ts +15 -0
- package/dist/types/src/components/ui/Code.d.ts +25 -0
- package/dist/types/src/components/ui/Gallery.d.ts +55 -0
- package/dist/types/src/components/ui/GridSystem.d.ts +21 -0
- package/dist/types/src/components/ui/Icon.d.ts +13 -0
- package/dist/types/src/components/ui/Image.d.ts +19 -0
- package/dist/types/src/components/ui/ImageAvatar.d.ts +16 -0
- package/dist/types/src/components/ui/LayoutBuilder.d.ts +19 -0
- package/dist/types/src/components/ui/Loader.d.ts +11 -0
- package/dist/types/src/components/ui/Modal.d.ts +39 -0
- package/dist/types/src/components/ui/Pagination.d.ts +18 -0
- package/dist/types/src/components/ui/Percentage.d.ts +19 -0
- package/dist/types/src/components/ui/Repeat.d.ts +18 -0
- package/dist/types/src/components/ui/Tab.d.ts +20 -0
- package/dist/types/src/components/ui/TabDynamic.d.ts +20 -0
- package/dist/types/src/components/ui/Table.d.ts +43 -0
- package/dist/types/src/components/ui/fields/AssistantAI.d.ts +23 -0
- package/dist/types/src/components/ui/fields/Command.d.ts +15 -0
- package/dist/types/src/components/ui/fields/Crop.d.ts +27 -0
- package/dist/types/src/components/ui/fields/ImageUrl.d.ts +7 -0
- package/dist/types/src/components/ui/fields/Input.d.ts +62 -0
- package/dist/types/src/components/ui/fields/Prompt.d.ts +31 -0
- package/dist/types/src/components/ui/fields/Select.d.ts +38 -0
- package/dist/types/src/components/ui/fields/Upload.d.ts +25 -0
- package/dist/types/src/components/ui/fields/UploadCSV.d.ts +26 -0
- package/dist/types/src/components/ui/useRecordSelection.d.ts +20 -0
- package/dist/types/src/components/ui/useStableRecordKey.d.ts +5 -0
- package/dist/types/src/components/widgets/Form.d.ts +129 -0
- package/dist/types/src/components/widgets/Grid.d.ts +6 -0
- package/dist/types/src/components/widgets/ImageEditor.d.ts +14 -0
- package/dist/types/src/components/widgets/MarkdownReader.d.ts +14 -0
- package/dist/types/src/components/widgets/Prompt.d.ts +31 -0
- package/dist/types/src/components/widgets/TabDynamic.d.ts +20 -0
- package/dist/types/src/components/widgets/grid-core/GridArray.d.ts +5 -0
- package/dist/types/src/components/widgets/grid-core/GridCore.d.ts +5 -0
- package/dist/types/src/components/widgets/grid-core/GridDB.d.ts +5 -0
- package/dist/types/src/components/widgets/grid-core/GridGalleryView.d.ts +5 -0
- package/dist/types/src/components/widgets/grid-core/GridTableView.d.ts +5 -0
- package/dist/types/src/components/widgets/grid-core/index.d.ts +7 -0
- package/dist/types/src/components/widgets/grid-core/resolveGridPathFromUrl.d.ts +1 -0
- package/dist/types/src/components/widgets/grid-core/types.d.ts +227 -0
- package/dist/types/src/components/widgets/grid-core/useGridActions.d.ts +49 -0
- package/dist/types/src/components/widgets/grid-core/useGridColumns.d.ts +10 -0
- package/dist/types/src/components/widgets/grid-core/useGridDBRecords.d.ts +10 -0
- package/dist/types/src/components/widgets/grid-core/useGridPreparedRecords.d.ts +10 -0
- package/dist/types/src/components/widgets/grid-core/useGridSelection.d.ts +13 -0
- package/dist/types/src/components/widgets/grid-core/utils.d.ts +14 -0
- package/dist/types/src/conf/Prompt.d.ts +84 -0
- package/dist/types/src/constant.d.ts +96 -0
- package/dist/types/src/index.d.ts +56 -0
- package/dist/types/src/libs/cache.d.ts +9 -0
- package/dist/types/src/libs/cn.d.ts +2 -0
- package/dist/types/src/libs/converter.d.ts +28 -0
- package/dist/types/src/libs/database.d.ts +3 -0
- package/dist/types/src/libs/email.d.ts +16 -0
- package/dist/types/src/libs/fetch.d.ts +9 -0
- package/dist/types/src/libs/imageBuilder.d.ts +112 -0
- package/dist/types/src/libs/index.d.ts +14 -0
- package/dist/types/src/libs/locale.d.ts +24 -0
- package/dist/types/src/libs/log.d.ts +2 -0
- package/dist/types/src/libs/order.d.ts +14 -0
- package/dist/types/src/libs/path.d.ts +26 -0
- package/dist/types/src/libs/sanitizer.d.ts +38 -0
- package/dist/types/src/libs/seo.d.ts +8 -0
- package/dist/types/src/libs/storage.d.ts +2 -0
- package/dist/types/src/libs/utils.d.ts +57 -0
- package/dist/types/src/motion.d.ts +38 -0
- package/dist/types/src/pages/Blog.d.ts +3 -0
- package/dist/types/src/pages/BlogPost.d.ts +16 -0
- package/dist/types/src/pages/Helper.d.ts +8 -0
- package/dist/types/src/pages/NotFound.d.ts +3 -0
- package/dist/types/src/pages/Users.d.ts +3 -0
- package/dist/types/src/pages/index.d.ts +3 -0
- package/dist/types/src/providers/ProviderConfiguration.d.ts +12 -0
- package/dist/types/src/providers/ai/index.d.ts +134 -0
- package/dist/types/src/providers/auth/AuthProvider.d.ts +22 -0
- package/dist/types/src/providers/auth/AuthProviderContext.d.ts +12 -0
- package/dist/types/src/providers/auth/dropbox/DropboxAuthProvider.d.ts +16 -0
- package/dist/types/src/providers/auth/google/GoogleAuth.d.ts +44 -0
- package/dist/types/src/providers/auth/google/GoogleAuthProvider.d.ts +12 -0
- package/dist/types/src/providers/auth/google/apis/auth.d.ts +4 -0
- package/dist/types/src/providers/auth/google/auth.d.ts +3 -0
- package/dist/types/src/providers/data/DataProvider.d.ts +58 -0
- package/dist/types/src/providers/data/DataProviderContext.d.ts +12 -0
- package/dist/types/src/providers/data/firebase.d.ts +21 -0
- package/dist/types/src/providers/data/mock.d.ts +20 -0
- package/dist/types/src/providers/data/supabase.d.ts +19 -0
- package/dist/types/src/providers/email/EmailProvider.d.ts +10 -0
- package/dist/types/src/providers/email/EmailProviderContext.d.ts +12 -0
- package/dist/types/src/providers/email/google/GmailEmailProvider.d.ts +7 -0
- package/dist/types/src/providers/email/google/apis/email.d.ts +7 -0
- package/dist/types/src/providers/email/google/email.d.ts +13 -0
- package/dist/types/src/providers/firebase-init.d.ts +10 -0
- package/dist/types/src/providers/icon/IconProvider.d.ts +10 -0
- package/dist/types/src/providers/icon/IconProviderContext.d.ts +48 -0
- package/dist/types/src/providers/icon/LucideIconProvider.d.ts +5 -0
- package/dist/types/src/providers/icon/PhosphorIconProvider.d.ts +10 -0
- package/dist/types/src/providers/icon/index.d.ts +6 -0
- package/dist/types/src/providers/manifest.d.ts +42 -0
- package/dist/types/src/providers/scrape/index.d.ts +10 -0
- package/dist/types/src/providers/seo/google/keyword.d.ts +14 -0
- package/dist/types/src/providers/seo/google/trend.d.ts +25 -0
- package/dist/types/src/providers/storage/StorageProvider.d.ts +7 -0
- package/dist/types/src/providers/storage/StorageProviderContext.d.ts +12 -0
- package/dist/types/src/providers/storage/dropbox.d.ts +48 -0
- package/dist/types/src/providers/storage/firebase.d.ts +13 -0
- package/dist/types/src/providers/storage/supabase.d.ts +19 -0
- package/dist/types/src/types/Block.d.ts +4 -0
- package/dist/types/src/types/FormFields.d.ts +33 -0
- package/dist/types/src/types/Layout.d.ts +9 -0
- package/dist/types/src/types/Section.d.ts +4 -0
- package/dist/types/themes/cyber.d.ts +7 -0
- package/dist/types/themes/default.d.ts +7 -0
- package/dist/types/themes/flat.d.ts +7 -0
- package/package.json +126 -0
- package/scripts/cli/create-section.js +65 -0
- package/scripts/cli/setup-devtools.js +85 -0
- package/scripts/cli/setup-project.js +484 -0
- package/themes/cyber.ts +405 -0
- package/themes/default.ts +405 -0
- package/themes/flat.ts +405 -0
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
import type { Theme, ThemeDefinition, ThemePresetConfig } from '../src/Theme';
|
|
2
|
+
import type { MotionRegistry } from '../src/motion';
|
|
3
|
+
|
|
4
|
+
export const preset: ThemePresetConfig = {
|
|
5
|
+
mode: 'light',
|
|
6
|
+
radius: 0.5,
|
|
7
|
+
colors: {
|
|
8
|
+
background: '0 0% 100%',
|
|
9
|
+
foreground: '222.2 84% 4.9%',
|
|
10
|
+
card: '0 0% 100%',
|
|
11
|
+
cardForeground: '222.2 84% 4.9%',
|
|
12
|
+
popover: '0 0% 100%',
|
|
13
|
+
popoverForeground: '222.2 84% 4.9%',
|
|
14
|
+
primary: '221.2 83.2% 53.3%',
|
|
15
|
+
primaryForeground: '210 40% 98%',
|
|
16
|
+
secondary: '210 40% 96.1%',
|
|
17
|
+
secondaryForeground: '222.2 47.4% 11.2%',
|
|
18
|
+
muted: '210 40% 96.1%',
|
|
19
|
+
mutedForeground: '215.4 16.3% 46.9%',
|
|
20
|
+
accent: '210 40% 96.1%',
|
|
21
|
+
accentForeground: '222.2 47.4% 11.2%',
|
|
22
|
+
destructive: '0 84.2% 60.2%',
|
|
23
|
+
destructiveForeground:'210 40% 98%',
|
|
24
|
+
success: '142.1 76.2% 36.3%',
|
|
25
|
+
successForeground: '0 0% 100%',
|
|
26
|
+
warning: '32.1 94.6% 43.7%',
|
|
27
|
+
warningForeground: '0 0% 100%',
|
|
28
|
+
info: '198.6 88.7% 48.4%',
|
|
29
|
+
infoForeground: '0 0% 100%',
|
|
30
|
+
border: '214.3 31.8% 91.4%',
|
|
31
|
+
input: '214.3 31.8% 91.4%',
|
|
32
|
+
ring: '221.2 83.2% 53.3%',
|
|
33
|
+
},
|
|
34
|
+
dark: {
|
|
35
|
+
background: '222.2 84% 4.9%',
|
|
36
|
+
foreground: '210 40% 98%',
|
|
37
|
+
card: '222.2 84% 4.9%',
|
|
38
|
+
cardForeground: '210 40% 98%',
|
|
39
|
+
popover: '222.2 84% 4.9%',
|
|
40
|
+
popoverForeground: '210 40% 98%',
|
|
41
|
+
primary: '217.2 91.2% 59.8%',
|
|
42
|
+
primaryForeground: '222.2 47.4% 11.2%',
|
|
43
|
+
secondary: '217.2 32.6% 17.5%',
|
|
44
|
+
secondaryForeground: '210 40% 98%',
|
|
45
|
+
muted: '217.2 32.6% 17.5%',
|
|
46
|
+
mutedForeground: '215 20.2% 65.1%',
|
|
47
|
+
accent: '217.2 32.6% 17.5%',
|
|
48
|
+
accentForeground: '210 40% 98%',
|
|
49
|
+
destructive: '0 62.8% 30.6%',
|
|
50
|
+
destructiveForeground:'210 40% 98%',
|
|
51
|
+
success: '142.1 70.6% 45.3%',
|
|
52
|
+
successForeground: '0 0% 100%',
|
|
53
|
+
warning: '32.1 94.6% 55%',
|
|
54
|
+
warningForeground: '0 0% 100%',
|
|
55
|
+
info: '198.6 88.7% 60%',
|
|
56
|
+
infoForeground: '0 0% 100%',
|
|
57
|
+
border: '217.2 32.6% 17.5%',
|
|
58
|
+
input: '217.2 32.6% 17.5%',
|
|
59
|
+
ring: '224.3 76.3% 48%',
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export const motion: MotionRegistry = {
|
|
64
|
+
none: {
|
|
65
|
+
from: {},
|
|
66
|
+
to: {},
|
|
67
|
+
transition: { duration: 0, easing: 'linear', properties: ['opacity', 'transform', 'box-shadow'] },
|
|
68
|
+
reducedMotion: 'always',
|
|
69
|
+
},
|
|
70
|
+
fade: {
|
|
71
|
+
from: { opacity: 0 },
|
|
72
|
+
to: { opacity: 1 },
|
|
73
|
+
transition: { duration: 160, easing: 'cubic-bezier(0.2, 0, 0, 1)', properties: ['opacity'] },
|
|
74
|
+
reducedMotion: 'respect-user',
|
|
75
|
+
},
|
|
76
|
+
fadeUp: {
|
|
77
|
+
from: { opacity: 0, transform: 'translateY(8px)' },
|
|
78
|
+
to: { opacity: 1, transform: 'translateY(0)' },
|
|
79
|
+
transition: { duration: 160, easing: 'cubic-bezier(0.2, 0, 0, 1)', properties: ['opacity', 'transform'] },
|
|
80
|
+
reducedMotion: 'respect-user',
|
|
81
|
+
},
|
|
82
|
+
fadeDown: {
|
|
83
|
+
from: { opacity: 0, transform: 'translateY(-8px)' },
|
|
84
|
+
to: { opacity: 1, transform: 'translateY(0)' },
|
|
85
|
+
transition: { duration: 140, easing: 'cubic-bezier(0.2, 0, 0, 1)', properties: ['opacity', 'transform', 'visibility'] },
|
|
86
|
+
reducedMotion: 'respect-user',
|
|
87
|
+
},
|
|
88
|
+
slideFromRight: {
|
|
89
|
+
from: { opacity: 0, transform: 'translateX(100%)' },
|
|
90
|
+
to: { opacity: 1, transform: 'translateX(0)' },
|
|
91
|
+
transition: { duration: 220, easing: 'cubic-bezier(0.16, 1, 0.3, 1)', properties: ['opacity', 'transform'] },
|
|
92
|
+
reducedMotion: 'respect-user',
|
|
93
|
+
},
|
|
94
|
+
slideFromLeft: {
|
|
95
|
+
from: { opacity: 0, transform: 'translateX(-100%)' },
|
|
96
|
+
to: { opacity: 1, transform: 'translateX(0)' },
|
|
97
|
+
transition: { duration: 220, easing: 'cubic-bezier(0.16, 1, 0.3, 1)', properties: ['opacity', 'transform'] },
|
|
98
|
+
reducedMotion: 'respect-user',
|
|
99
|
+
},
|
|
100
|
+
slideFromTop: {
|
|
101
|
+
from: { opacity: 0, transform: 'translateY(-100%)' },
|
|
102
|
+
to: { opacity: 1, transform: 'translateY(0)' },
|
|
103
|
+
transition: { duration: 220, easing: 'cubic-bezier(0.16, 1, 0.3, 1)', properties: ['opacity', 'transform'] },
|
|
104
|
+
reducedMotion: 'respect-user',
|
|
105
|
+
},
|
|
106
|
+
slideFromBottom: {
|
|
107
|
+
from: { opacity: 0, transform: 'translateY(100%)' },
|
|
108
|
+
to: { opacity: 1, transform: 'translateY(0)' },
|
|
109
|
+
transition: { duration: 220, easing: 'cubic-bezier(0.16, 1, 0.3, 1)', properties: ['opacity', 'transform'] },
|
|
110
|
+
reducedMotion: 'respect-user',
|
|
111
|
+
},
|
|
112
|
+
press: {
|
|
113
|
+
from: {},
|
|
114
|
+
to: { transform: 'scale(0.98)' },
|
|
115
|
+
transition: { duration: 100, easing: 'cubic-bezier(0.2, 0, 0, 1)', properties: ['transform', 'box-shadow'] },
|
|
116
|
+
reducedMotion: 'respect-user',
|
|
117
|
+
},
|
|
118
|
+
imageZoom: {
|
|
119
|
+
from: { transform: 'scale(1)' },
|
|
120
|
+
to: { transform: 'scale(1.06)' },
|
|
121
|
+
transition: { duration: 300, easing: 'cubic-bezier(0.2, 0, 0, 1)', properties: ['transform'] },
|
|
122
|
+
reducedMotion: 'respect-user',
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export const components: Theme = {
|
|
127
|
+
Grid: {
|
|
128
|
+
Card: {
|
|
129
|
+
wrapClass: '',
|
|
130
|
+
className: '',
|
|
131
|
+
headerClass: 'flex justify-between',
|
|
132
|
+
bodyClass: 'p-0',
|
|
133
|
+
footerClass: '',
|
|
134
|
+
showArrow: false,
|
|
135
|
+
showLoader: false,
|
|
136
|
+
},
|
|
137
|
+
Table: {
|
|
138
|
+
wrapClass: '',
|
|
139
|
+
className: 'table-striped',
|
|
140
|
+
headerClass: '',
|
|
141
|
+
bodyClass: '',
|
|
142
|
+
footerClass: '',
|
|
143
|
+
scrollClass: 'fixed-table-container',
|
|
144
|
+
selectedClass: 'table-info',
|
|
145
|
+
},
|
|
146
|
+
Gallery: {
|
|
147
|
+
wrapClass: '',
|
|
148
|
+
className: '',
|
|
149
|
+
scrollClass: '',
|
|
150
|
+
headerClass: '',
|
|
151
|
+
bodyClass: '',
|
|
152
|
+
footerClass: '',
|
|
153
|
+
selectedClass: 'bg-primary/20',
|
|
154
|
+
gutterSize: 1,
|
|
155
|
+
rowCols: 4,
|
|
156
|
+
},
|
|
157
|
+
Modal: {
|
|
158
|
+
mode: 'form',
|
|
159
|
+
size: 'lg',
|
|
160
|
+
position: 'center',
|
|
161
|
+
wrapClass: '',
|
|
162
|
+
className: '',
|
|
163
|
+
headerClass: '',
|
|
164
|
+
titleClass: '',
|
|
165
|
+
subTitleClass: 'pr-1 text-muted-foreground',
|
|
166
|
+
bodyClass: '',
|
|
167
|
+
footerClass: '',
|
|
168
|
+
iconExpand: 'fullscreen',
|
|
169
|
+
iconCollapse: 'fullscreen-exit',
|
|
170
|
+
motion: {
|
|
171
|
+
center: 'fade',
|
|
172
|
+
top: 'slideFromTop',
|
|
173
|
+
left: 'slideFromLeft',
|
|
174
|
+
right: 'slideFromRight',
|
|
175
|
+
bottom: 'slideFromBottom',
|
|
176
|
+
backdrop: 'fade',
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
i18n: {
|
|
180
|
+
headerAdd: 'Aggiungi',
|
|
181
|
+
headerEdit: 'Modifica',
|
|
182
|
+
buttonAdd: 'Aggiungi',
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
Table: {
|
|
186
|
+
wrapClass: 'bootstrap-table',
|
|
187
|
+
className: 'table-striped',
|
|
188
|
+
headerClass: '',
|
|
189
|
+
bodyClass: '',
|
|
190
|
+
footerClass: '',
|
|
191
|
+
scrollClass: 'fixed-table-container',
|
|
192
|
+
selectedClass: 'table-info',
|
|
193
|
+
},
|
|
194
|
+
Gallery: {
|
|
195
|
+
wrapClass: '',
|
|
196
|
+
className: '',
|
|
197
|
+
scrollClass: '',
|
|
198
|
+
headerClass: '',
|
|
199
|
+
bodyClass: '',
|
|
200
|
+
footerClass: '',
|
|
201
|
+
selectedClass: 'bg-primary/20',
|
|
202
|
+
gutterSize: 4,
|
|
203
|
+
rowCols: 2,
|
|
204
|
+
},
|
|
205
|
+
Pagination: {
|
|
206
|
+
wrapClass: '',
|
|
207
|
+
className: '',
|
|
208
|
+
stickyClass: 'fixed-bottom mx-5',
|
|
209
|
+
scrollToTop: false,
|
|
210
|
+
scrollBehavior: 'auto',
|
|
211
|
+
maxItems: 5,
|
|
212
|
+
sticky: true,
|
|
213
|
+
align: 'end',
|
|
214
|
+
},
|
|
215
|
+
Carousel: {
|
|
216
|
+
showIndicators: true,
|
|
217
|
+
showControls: true,
|
|
218
|
+
showCaption: true,
|
|
219
|
+
layoutDark: false,
|
|
220
|
+
autoPlay: true,
|
|
221
|
+
},
|
|
222
|
+
Card: {
|
|
223
|
+
wrapClass: '',
|
|
224
|
+
className: '',
|
|
225
|
+
headerClass: 'flex justify-between bg-white/[.15] font-normal',
|
|
226
|
+
bodyClass: 'flex flex-col',
|
|
227
|
+
footerClass: '',
|
|
228
|
+
showLoader: false,
|
|
229
|
+
showArrow: false,
|
|
230
|
+
},
|
|
231
|
+
Loader: {
|
|
232
|
+
wrapClass: '',
|
|
233
|
+
className: '',
|
|
234
|
+
icon: 'custom-loader',
|
|
235
|
+
title: 'Loading..',
|
|
236
|
+
description: '',
|
|
237
|
+
},
|
|
238
|
+
ActionButton: {
|
|
239
|
+
className: 'btn-primary',
|
|
240
|
+
badgeClass: 'rounded-full bg-destructive text-destructive-foreground',
|
|
241
|
+
motion: {
|
|
242
|
+
press: 'press',
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
LoadingButton: {
|
|
246
|
+
className: 'btn-primary',
|
|
247
|
+
badgeClass: 'rounded-full bg-destructive text-destructive-foreground',
|
|
248
|
+
motion: {
|
|
249
|
+
press: 'press',
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
LinkButton: {
|
|
253
|
+
className: 'btn-outline-secondary',
|
|
254
|
+
},
|
|
255
|
+
Alert: {
|
|
256
|
+
className: '',
|
|
257
|
+
},
|
|
258
|
+
Badge: {
|
|
259
|
+
className: '',
|
|
260
|
+
},
|
|
261
|
+
Modal: {
|
|
262
|
+
size: 'lg',
|
|
263
|
+
position: 'center',
|
|
264
|
+
wrapClass: '',
|
|
265
|
+
className: '',
|
|
266
|
+
headerClass: '',
|
|
267
|
+
titleClass: '',
|
|
268
|
+
subTitleClass: 'pr-1 text-muted-foreground',
|
|
269
|
+
bodyClass: '',
|
|
270
|
+
footerClass: '',
|
|
271
|
+
iconExpand: 'fullscreen',
|
|
272
|
+
iconCollapse: 'fullscreen-exit',
|
|
273
|
+
motion: {
|
|
274
|
+
center: 'fade',
|
|
275
|
+
top: 'slideFromTop',
|
|
276
|
+
left: 'slideFromLeft',
|
|
277
|
+
right: 'slideFromRight',
|
|
278
|
+
bottom: 'slideFromBottom',
|
|
279
|
+
backdrop: 'fade',
|
|
280
|
+
},
|
|
281
|
+
},
|
|
282
|
+
Dropdown: {
|
|
283
|
+
wrapClass: '',
|
|
284
|
+
className: '',
|
|
285
|
+
buttonClass: 'btn btn-outline-primary',
|
|
286
|
+
badgeClass: '',
|
|
287
|
+
menuClass: '',
|
|
288
|
+
menuHeaderClass: '',
|
|
289
|
+
menuItemClass: '',
|
|
290
|
+
menuDividerClass: '',
|
|
291
|
+
headerClass: '',
|
|
292
|
+
footerClass: '',
|
|
293
|
+
Menu: {
|
|
294
|
+
wrapClass: '',
|
|
295
|
+
className: 'list-none p-0 m-0',
|
|
296
|
+
headerClass: '',
|
|
297
|
+
itemClass: '',
|
|
298
|
+
linkClass: 'flex items-center gap-2 rounded-sm px-2 py-1.5 text-sm hover:bg-accent',
|
|
299
|
+
iconClass: 'text-muted-foreground',
|
|
300
|
+
textClass: '',
|
|
301
|
+
badgeClass: '',
|
|
302
|
+
arrowClass: '',
|
|
303
|
+
submenuClass: '',
|
|
304
|
+
},
|
|
305
|
+
motion: {
|
|
306
|
+
open: 'fadeDown',
|
|
307
|
+
close: 'fadeDown',
|
|
308
|
+
press: 'press',
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
Notifications: {
|
|
312
|
+
wrapClass: 'menu-item',
|
|
313
|
+
Dropdown: {
|
|
314
|
+
className: '',
|
|
315
|
+
buttonClass: 'btn btn-link',
|
|
316
|
+
menuClass: 'mt-1 fs-11px w-300px pt-1',
|
|
317
|
+
},
|
|
318
|
+
},
|
|
319
|
+
Select: {
|
|
320
|
+
wrapClass: '',
|
|
321
|
+
className: '',
|
|
322
|
+
},
|
|
323
|
+
Autocomplete: {
|
|
324
|
+
wrapClass: '',
|
|
325
|
+
className: '',
|
|
326
|
+
},
|
|
327
|
+
Form: {
|
|
328
|
+
wrapClass: '',
|
|
329
|
+
buttonSaveClass: 'btn-outline-primary',
|
|
330
|
+
buttonDeleteClass: 'btn-outline-danger',
|
|
331
|
+
buttonBackClass: 'btn-link',
|
|
332
|
+
Card: {
|
|
333
|
+
headerClass: '',
|
|
334
|
+
bodyClass: '',
|
|
335
|
+
footerClass: 'text-right',
|
|
336
|
+
},
|
|
337
|
+
i18n: {
|
|
338
|
+
headerAdd: 'Aggiungi',
|
|
339
|
+
headerEdit: 'Modifica',
|
|
340
|
+
headerNewRecord: 'Nuovo Record',
|
|
341
|
+
buttonSave: 'Salva',
|
|
342
|
+
buttonDelete: 'Elimina',
|
|
343
|
+
buttonBack: 'Indietro',
|
|
344
|
+
noticeRequiredFields: 'Per favore, compila tutti i campi obbligatori',
|
|
345
|
+
},
|
|
346
|
+
},
|
|
347
|
+
Menu: {
|
|
348
|
+
wrapClass: 'flex-1 overflow-auto p-4',
|
|
349
|
+
className: 'navbar-nav flex-col mb-auto',
|
|
350
|
+
headerClass: '',
|
|
351
|
+
itemClass: 'nav-item',
|
|
352
|
+
linkClass: 'nav-link',
|
|
353
|
+
iconClass: 'mr-1',
|
|
354
|
+
textClass: 'flex-grow-1',
|
|
355
|
+
badgeClass: 'ml-1',
|
|
356
|
+
arrowClass: '',
|
|
357
|
+
submenuClass: 'nav flex-col ml-4',
|
|
358
|
+
},
|
|
359
|
+
Brand: {
|
|
360
|
+
wrapClass: '',
|
|
361
|
+
className: 'brand',
|
|
362
|
+
logoClass: 'navbar-brand',
|
|
363
|
+
labelClass: 'navbar-text',
|
|
364
|
+
},
|
|
365
|
+
SignIn: {
|
|
366
|
+
className: 'flex items-center',
|
|
367
|
+
avatarClass: 'avatar rounded-full mx-2',
|
|
368
|
+
},
|
|
369
|
+
Image: {
|
|
370
|
+
wrapClass: '',
|
|
371
|
+
className: '',
|
|
372
|
+
motion: {
|
|
373
|
+
enter: 'fade',
|
|
374
|
+
hover: false,
|
|
375
|
+
},
|
|
376
|
+
},
|
|
377
|
+
ImageAvatar: {
|
|
378
|
+
wrapClass: '',
|
|
379
|
+
className: '',
|
|
380
|
+
motion: { enter: 'fade', hover: false },
|
|
381
|
+
},
|
|
382
|
+
Percentage: {
|
|
383
|
+
wrapClass: '',
|
|
384
|
+
className: '',
|
|
385
|
+
},
|
|
386
|
+
Tab: {
|
|
387
|
+
wrapClass: '',
|
|
388
|
+
className: '',
|
|
389
|
+
motion: {
|
|
390
|
+
enter: 'fadeUp',
|
|
391
|
+
},
|
|
392
|
+
},
|
|
393
|
+
Code: {
|
|
394
|
+
wrapClass: '',
|
|
395
|
+
className: '',
|
|
396
|
+
},
|
|
397
|
+
Prompt: {
|
|
398
|
+
wrapClass: '',
|
|
399
|
+
className: '',
|
|
400
|
+
},
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
const definition: ThemeDefinition = { preset, motion, components };
|
|
404
|
+
|
|
405
|
+
export default definition;
|