@admin-layout/tailwind-design-pro 12.2.4-alpha.90 → 12.2.4-alpha.92
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/lib/components/Layout/BasicLayout/index.js +1 -1
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js +30 -22
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +20 -17
- package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js +8 -14
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js.map +1 -1
- package/lib/components/SettingDrawer/components/CheckBoxTheme.js +1 -1
- package/lib/components/SettingDrawer/components/DeviceTabs.js +2 -2
- package/lib/components/SettingDrawer/components/DeviceTabs.js.map +1 -1
- package/lib/components/SettingDrawer/components/InvitationSettings.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/InvitationSettings.js +6 -2
- package/lib/components/SettingDrawer/components/InvitationSettings.js.map +1 -1
- package/lib/components/SettingDrawer/components/LayoutChange.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/LayoutChange.js +7 -10
- package/lib/components/SettingDrawer/components/LayoutChange.js.map +1 -1
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js +5 -5
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js.map +1 -1
- package/lib/components/SettingDrawer/components/NavigationsModes.js +2 -2
- package/lib/components/SettingDrawer/components/RegionalSettings.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/RegionalSettings.js +39 -96
- package/lib/components/SettingDrawer/components/RegionalSettings.js.map +1 -1
- package/lib/components/SettingDrawer/components/SettingsActions.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/SettingsActions.js +27 -25
- package/lib/components/SettingDrawer/components/SettingsActions.js.map +1 -1
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js +4 -3
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js.map +1 -1
- package/lib/components/SettingDrawer/components/Switch.js +2 -2
- package/lib/components/SettingDrawer/components/ThemeSelector.js +1 -1
- package/lib/components/SettingDrawer/components/WebFontsSelector.js +1 -1
- package/package.json +2 -2
|
@@ -281,7 +281,7 @@ function NavigationModes({
|
|
|
281
281
|
return React.createElement("div", {
|
|
282
282
|
className: "space-y-8"
|
|
283
283
|
}, React.createElement("section", null, React.createElement("h3", {
|
|
284
|
-
className: "text-sm font-
|
|
284
|
+
className: "text-sm font-semibold text-foreground mb-3"
|
|
285
285
|
}, deviceType === 'mobile' ? 'Mobile Navigation Mode' : 'Desktop Navigation Mode'), React.createElement("div", {
|
|
286
286
|
className: "flex flex-row gap-4"
|
|
287
287
|
}, navigationModes.map((mode, index) => React.createElement("div", {
|
|
@@ -300,7 +300,7 @@ function NavigationModes({
|
|
|
300
300
|
}, React.createElement("path", {
|
|
301
301
|
d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
|
|
302
302
|
}))))))), React.createElement("section", null, React.createElement("h3", {
|
|
303
|
-
className: "text-sm font-
|
|
303
|
+
className: "text-sm font-semibold text-foreground mb-3"
|
|
304
304
|
}, deviceType === 'mobile' ? 'Mobile Menu Type' : 'Desktop Menu Type'), React.createElement("div", {
|
|
305
305
|
className: "flex flex-row gap-4"
|
|
306
306
|
}, menuTypes.map((type, index) => React.createElement("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegionalSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/RegionalSettings.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAMxD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"RegionalSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/RegionalSettings.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAMxD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,sBAAsB,qBAkhB7D"}
|
|
@@ -9,9 +9,6 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
9
9
|
routePattern,
|
|
10
10
|
applyToAllRoutes = false
|
|
11
11
|
} = props;
|
|
12
|
-
const {
|
|
13
|
-
navTheme
|
|
14
|
-
} = settings || {};
|
|
15
12
|
const currentRoute = routePattern || location?.pathname || '/';
|
|
16
13
|
const [isHeaderExpanded, setIsHeaderExpanded] = React.useState(false);
|
|
17
14
|
const [isBackgroundExpanded, setIsBackgroundExpanded] = React.useState(true);
|
|
@@ -76,14 +73,11 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
76
73
|
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
77
74
|
className: "mb-4"
|
|
78
75
|
}, React.createElement("p", {
|
|
79
|
-
className: "font-medium mb-2"
|
|
80
|
-
style: {
|
|
81
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
82
|
-
}
|
|
76
|
+
className: "text-sm font-medium mb-2 text-foreground"
|
|
83
77
|
}, t('background_type')), React.createElement("div", {
|
|
84
|
-
className: "flex mb-3 rounded-lg overflow-hidden border border-
|
|
78
|
+
className: "flex mb-3 rounded-lg overflow-hidden border border-border divide-x divide-border bg-muted"
|
|
85
79
|
}, React.createElement("button", {
|
|
86
|
-
className: `flex-1 py-2 px-3 text-sm font-medium transition-colors duration-200 flex items-center justify-center ${background?.type === 'color' ? 'bg-
|
|
80
|
+
className: `flex-1 py-2 px-3 text-sm font-medium transition-colors duration-200 flex items-center justify-center ${background?.type === 'color' ? 'bg-primary text-primary-foreground' : 'bg-background text-muted-foreground hover:bg-muted hover:text-foreground'}`,
|
|
87
81
|
onClick: () => handleBackgroundChange('type', 'color')
|
|
88
82
|
}, React.createElement("span", {
|
|
89
83
|
className: "mr-1"
|
|
@@ -104,7 +98,7 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
104
98
|
}), React.createElement("path", {
|
|
105
99
|
d: "M12 8v8M8 12h8"
|
|
106
100
|
}))), t('color')), React.createElement("button", {
|
|
107
|
-
className: `flex-1 py-2 px-3 text-sm font-medium transition-colors duration-200 flex items-center justify-center ${background?.type === 'image' ? 'bg-
|
|
101
|
+
className: `flex-1 py-2 px-3 text-sm font-medium transition-colors duration-200 flex items-center justify-center ${background?.type === 'image' ? 'bg-primary text-primary-foreground' : 'bg-background text-muted-foreground hover:bg-muted hover:text-foreground'}`,
|
|
108
102
|
onClick: () => handleBackgroundChange('type', 'image')
|
|
109
103
|
}, React.createElement("span", {
|
|
110
104
|
className: "mr-1"
|
|
@@ -132,7 +126,7 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
132
126
|
}), React.createElement("polyline", {
|
|
133
127
|
points: "21 15 16 10 5 21"
|
|
134
128
|
}))), t('image')), React.createElement("button", {
|
|
135
|
-
className: `flex-1 py-2 px-3 text-sm font-medium transition-colors duration-200 flex items-center justify-center ${background?.type === 'video' ? 'bg-
|
|
129
|
+
className: `flex-1 py-2 px-3 text-sm font-medium transition-colors duration-200 flex items-center justify-center ${background?.type === 'video' ? 'bg-primary text-primary-foreground' : 'bg-background text-muted-foreground hover:bg-muted hover:text-foreground'}`,
|
|
136
130
|
onClick: () => handleBackgroundChange('type', 'video')
|
|
137
131
|
}, React.createElement("span", {
|
|
138
132
|
className: "mr-1"
|
|
@@ -158,14 +152,11 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
158
152
|
}))), t('video')))), background?.type === 'color' && React.createElement("div", {
|
|
159
153
|
className: "mb-4"
|
|
160
154
|
}, React.createElement("p", {
|
|
161
|
-
className: "mb-2"
|
|
162
|
-
style: {
|
|
163
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
164
|
-
}
|
|
155
|
+
className: "text-sm font-medium mb-2 text-foreground"
|
|
165
156
|
}, t('background_color')), React.createElement("div", {
|
|
166
157
|
className: "flex items-center"
|
|
167
158
|
}, React.createElement("div", {
|
|
168
|
-
className: "w-12 h-12 rounded-lg border border-
|
|
159
|
+
className: "w-12 h-12 rounded-lg border border-input mr-3 flex-shrink-0 shadow-sm",
|
|
169
160
|
style: {
|
|
170
161
|
backgroundColor: background?.color === 'inherit' ? '#ffffff' : background?.color || '#ffffff'
|
|
171
162
|
}
|
|
@@ -180,7 +171,7 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
180
171
|
className: "flex flex-wrap gap-2 mt-3"
|
|
181
172
|
}, ['#ffffff', '#f2f2f2', '#e6e6e6', '#1890ff', '#52c41a', '#faad14', '#f5222d', '#722ed1'].map(color => React.createElement("button", {
|
|
182
173
|
key: color,
|
|
183
|
-
className: `w-8 h-8 rounded-full border ${color === (background?.color || '#ffffff') ? 'border-
|
|
174
|
+
className: `w-8 h-8 rounded-full border ${color === (background?.color || '#ffffff') ? 'border-primary border-2' : 'border-border'}`,
|
|
184
175
|
style: {
|
|
185
176
|
backgroundColor: color
|
|
186
177
|
},
|
|
@@ -191,17 +182,15 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
191
182
|
}, React.createElement("div", {
|
|
192
183
|
className: "flex items-center mb-1"
|
|
193
184
|
}, React.createElement("p", {
|
|
194
|
-
|
|
195
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
196
|
-
}
|
|
185
|
+
className: "text-sm text-foreground"
|
|
197
186
|
}, t('image_url'))), React.createElement("input", {
|
|
198
187
|
type: "text",
|
|
199
188
|
placeholder: t('image_url'),
|
|
200
189
|
value: background?.image || '',
|
|
201
190
|
onChange: e => handleBackgroundChange('image', e.target.value),
|
|
202
|
-
className: "w-full p-1 text-sm border border-
|
|
191
|
+
className: "w-full p-1 text-sm border border-input rounded"
|
|
203
192
|
}), background?.image && React.createElement("div", {
|
|
204
|
-
className: "mt-2 p-1 border border-
|
|
193
|
+
className: "mt-2 p-1 border border-input rounded"
|
|
205
194
|
}, React.createElement("img", {
|
|
206
195
|
src: background?.image,
|
|
207
196
|
alt: "Background preview",
|
|
@@ -215,31 +204,27 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
215
204
|
}, React.createElement("div", {
|
|
216
205
|
className: "flex items-center mb-1"
|
|
217
206
|
}, React.createElement("p", {
|
|
218
|
-
|
|
219
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
220
|
-
}
|
|
207
|
+
className: "text-sm text-foreground"
|
|
221
208
|
}, t('video_url'))), React.createElement("input", {
|
|
222
209
|
type: "text",
|
|
223
210
|
placeholder: t('video_url'),
|
|
224
211
|
value: background?.video || '',
|
|
225
212
|
onChange: e => handleBackgroundChange('video', e.target.value),
|
|
226
|
-
className: "w-full p-1 text-sm border border-
|
|
213
|
+
className: "w-full p-1 text-sm border border-input rounded"
|
|
227
214
|
}), React.createElement("div", {
|
|
228
215
|
className: "flex items-center mt-3 mb-1"
|
|
229
216
|
}, React.createElement("p", {
|
|
230
|
-
|
|
231
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
232
|
-
}
|
|
217
|
+
className: "text-sm text-foreground"
|
|
233
218
|
}, t('video_thumbnail'))), React.createElement("input", {
|
|
234
219
|
type: "text",
|
|
235
220
|
placeholder: t('video_thumbnail'),
|
|
236
221
|
value: background?.videoThumbnail || '',
|
|
237
222
|
onChange: e => handleBackgroundChange('videoThumbnail', e.target.value),
|
|
238
|
-
className: "w-full p-1 text-sm border border-
|
|
223
|
+
className: "w-full p-1 text-sm border border-input rounded"
|
|
239
224
|
}), React.createElement("div", {
|
|
240
225
|
className: "flex flex-wrap gap-2 mt-3"
|
|
241
226
|
}, !background?.video && background?.videoThumbnail && React.createElement("div", {
|
|
242
|
-
className: "mt-2 p-1 border border-
|
|
227
|
+
className: "mt-2 p-1 border border-input rounded w-full"
|
|
243
228
|
}, React.createElement("img", {
|
|
244
229
|
src: background?.videoThumbnail,
|
|
245
230
|
alt: "Video thumbnail preview",
|
|
@@ -257,9 +242,7 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
257
242
|
}, React.createElement("div", {
|
|
258
243
|
className: "flex items-center"
|
|
259
244
|
}, React.createElement("p", {
|
|
260
|
-
|
|
261
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
262
|
-
}
|
|
245
|
+
className: "text-sm text-foreground"
|
|
263
246
|
}, t('show_header')), React.createElement("div", {
|
|
264
247
|
className: "flex-grow"
|
|
265
248
|
}), React.createElement(Switch, {
|
|
@@ -268,9 +251,7 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
268
251
|
})), React.createElement("div", {
|
|
269
252
|
className: "flex items-center"
|
|
270
253
|
}, React.createElement("p", {
|
|
271
|
-
|
|
272
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
273
|
-
}
|
|
254
|
+
className: "text-sm text-foreground"
|
|
274
255
|
}, t('fixed_header')), React.createElement("div", {
|
|
275
256
|
className: "flex-grow"
|
|
276
257
|
}), React.createElement(Switch, {
|
|
@@ -279,9 +260,7 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
279
260
|
})), React.createElement("div", {
|
|
280
261
|
className: "flex items-center"
|
|
281
262
|
}, React.createElement("p", {
|
|
282
|
-
|
|
283
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
284
|
-
}
|
|
263
|
+
className: "text-sm text-foreground"
|
|
285
264
|
}, t('show_logo')), React.createElement("div", {
|
|
286
265
|
className: "flex-grow"
|
|
287
266
|
}), React.createElement(Switch, {
|
|
@@ -290,9 +269,7 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
290
269
|
})), React.createElement("div", {
|
|
291
270
|
className: "flex items-center"
|
|
292
271
|
}, React.createElement("p", {
|
|
293
|
-
|
|
294
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
295
|
-
}
|
|
272
|
+
className: "text-sm text-foreground"
|
|
296
273
|
}, t('show_search_slot')), React.createElement("div", {
|
|
297
274
|
className: "flex-grow"
|
|
298
275
|
}), React.createElement(Switch, {
|
|
@@ -301,9 +278,7 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
301
278
|
})), React.createElement("div", {
|
|
302
279
|
className: "flex items-center"
|
|
303
280
|
}, React.createElement("p", {
|
|
304
|
-
|
|
305
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
306
|
-
}
|
|
281
|
+
className: "text-sm text-foreground"
|
|
307
282
|
}, t('show_right_content')), React.createElement("div", {
|
|
308
283
|
className: "flex-grow"
|
|
309
284
|
}), React.createElement(Switch, {
|
|
@@ -312,9 +287,7 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
312
287
|
})), React.createElement("div", {
|
|
313
288
|
className: "flex items-center"
|
|
314
289
|
}, React.createElement("p", {
|
|
315
|
-
|
|
316
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
317
|
-
}
|
|
290
|
+
className: "text-sm text-foreground"
|
|
318
291
|
}, t('show_menu_toggle')), React.createElement("div", {
|
|
319
292
|
className: "flex-grow"
|
|
320
293
|
}), React.createElement(Switch, {
|
|
@@ -323,9 +296,7 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
323
296
|
})), React.createElement("div", {
|
|
324
297
|
className: "flex items-center"
|
|
325
298
|
}, React.createElement("p", {
|
|
326
|
-
|
|
327
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
328
|
-
}
|
|
299
|
+
className: "text-sm text-foreground"
|
|
329
300
|
}, t('show_back_button')), React.createElement("div", {
|
|
330
301
|
className: "flex-grow"
|
|
331
302
|
}), React.createElement(Switch, {
|
|
@@ -334,9 +305,7 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
334
305
|
})), React.createElement("div", {
|
|
335
306
|
className: "flex items-center"
|
|
336
307
|
}, React.createElement("p", {
|
|
337
|
-
|
|
338
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
339
|
-
}
|
|
308
|
+
className: "text-sm text-foreground"
|
|
340
309
|
}, t('show_page_title')), React.createElement("div", {
|
|
341
310
|
className: "flex-grow"
|
|
342
311
|
}), React.createElement(Switch, {
|
|
@@ -345,9 +314,7 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
345
314
|
})), React.createElement("div", {
|
|
346
315
|
className: "flex items-center"
|
|
347
316
|
}, React.createElement("p", {
|
|
348
|
-
|
|
349
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
350
|
-
}
|
|
317
|
+
className: "text-sm text-foreground"
|
|
351
318
|
}, t('show_action_buttons')), React.createElement("div", {
|
|
352
319
|
className: "flex-grow"
|
|
353
320
|
}), React.createElement(Switch, {
|
|
@@ -362,9 +329,7 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
362
329
|
}, React.createElement("div", {
|
|
363
330
|
className: "flex items-center"
|
|
364
331
|
}, React.createElement("p", {
|
|
365
|
-
|
|
366
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
367
|
-
}
|
|
332
|
+
className: "text-sm text-foreground"
|
|
368
333
|
}, t('search_bar')), React.createElement("div", {
|
|
369
334
|
className: "flex-grow"
|
|
370
335
|
}), React.createElement(Switch, {
|
|
@@ -373,9 +338,7 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
373
338
|
})), React.createElement("div", {
|
|
374
339
|
className: "flex items-center"
|
|
375
340
|
}, React.createElement("p", {
|
|
376
|
-
|
|
377
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
378
|
-
}
|
|
341
|
+
className: "text-sm text-foreground"
|
|
379
342
|
}, t('search_bar_on_scroll')), React.createElement("div", {
|
|
380
343
|
className: "flex-grow"
|
|
381
344
|
}), React.createElement(Switch, {
|
|
@@ -384,9 +347,7 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
384
347
|
})), React.createElement("div", {
|
|
385
348
|
className: "flex items-center"
|
|
386
349
|
}, React.createElement("p", {
|
|
387
|
-
|
|
388
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
389
|
-
}
|
|
350
|
+
className: "text-sm text-foreground"
|
|
390
351
|
}, t('search_bar_overlay')), React.createElement("div", {
|
|
391
352
|
className: "flex-grow"
|
|
392
353
|
}), React.createElement(Switch, {
|
|
@@ -397,14 +358,9 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
397
358
|
}, React.createElement("div", {
|
|
398
359
|
className: "flex items-center justify-between mb-2"
|
|
399
360
|
}, React.createElement("p", {
|
|
400
|
-
|
|
401
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
402
|
-
}
|
|
361
|
+
className: "text-sm text-foreground"
|
|
403
362
|
}, t('scroll_threshold')), React.createElement("span", {
|
|
404
|
-
className: "text-sm"
|
|
405
|
-
style: {
|
|
406
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
407
|
-
}
|
|
363
|
+
className: "text-sm text-foreground"
|
|
408
364
|
}, header?.scrollThreshold || scrollThresholdConfig.DEFAULT, "px")), React.createElement("div", {
|
|
409
365
|
className: "relative"
|
|
410
366
|
}, React.createElement("input", {
|
|
@@ -414,7 +370,7 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
414
370
|
step: scrollThresholdConfig.STEP,
|
|
415
371
|
value: header?.scrollThreshold || scrollThresholdConfig.DEFAULT,
|
|
416
372
|
onChange: e => handleHeaderChange('scrollThreshold', parseInt(e.target.value)),
|
|
417
|
-
className: "w-full h-2 bg-
|
|
373
|
+
className: "w-full h-2 bg-muted rounded-lg appearance-none cursor-pointer accent-primary"
|
|
418
374
|
}), React.createElement("div", {
|
|
419
375
|
className: "flex justify-between text-xs mt-2"
|
|
420
376
|
}, React.createElement("span", null, scrollThresholdConfig.MIN, "px"), React.createElement("span", null, scrollThresholdConfig.MAX / 2, "px"), React.createElement("span", null, scrollThresholdConfig.MAX, "px")))));
|
|
@@ -435,15 +391,13 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
435
391
|
strokeWidth: 2,
|
|
436
392
|
d: "M19 9l-7 7-7-7"
|
|
437
393
|
})), React.createElement("p", {
|
|
438
|
-
|
|
439
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
440
|
-
}
|
|
394
|
+
className: "text-sm font-semibold text-foreground"
|
|
441
395
|
}, t('background')))), React.createElement("div", {
|
|
442
396
|
className: `grid transition-all duration-300 ease-in-out ${isBackgroundExpanded ? 'grid-rows-[1fr]' : 'grid-rows-[0fr]'}`
|
|
443
397
|
}, React.createElement("div", {
|
|
444
398
|
className: "overflow-hidden"
|
|
445
399
|
}, React.createElement("div", {
|
|
446
|
-
className: "ml-4 mb-4 border-l
|
|
400
|
+
className: "ml-4 mb-4 border-l border-border pl-4"
|
|
447
401
|
}, React.createElement("div", {
|
|
448
402
|
className: "mb-4"
|
|
449
403
|
}, renderBackgroundSettings()))))), React.createElement("div", null, React.createElement("div", {
|
|
@@ -462,32 +416,25 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
462
416
|
strokeWidth: 2,
|
|
463
417
|
d: "M19 9l-7 7-7-7"
|
|
464
418
|
})), React.createElement("p", {
|
|
465
|
-
|
|
466
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
467
|
-
}
|
|
419
|
+
className: "text-sm font-semibold text-foreground"
|
|
468
420
|
}, t('header')))), React.createElement("div", {
|
|
469
421
|
className: `grid transition-all duration-300 ease-in-out ${isHeaderExpanded ? 'grid-rows-[1fr]' : 'grid-rows-[0fr]'}`
|
|
470
422
|
}, React.createElement("div", {
|
|
471
423
|
className: "overflow-hidden"
|
|
472
424
|
}, React.createElement("div", {
|
|
473
|
-
className: "ml-4 mb-4 border-l
|
|
425
|
+
className: "ml-4 mb-4 border-l border-border pl-4"
|
|
474
426
|
}, React.createElement("div", {
|
|
475
427
|
className: "mb-4"
|
|
476
428
|
}, renderHeaderSettings()), React.createElement("div", {
|
|
477
429
|
className: "mt-6 mb-4"
|
|
478
430
|
}, React.createElement("p", {
|
|
479
|
-
className: "font-medium mb-2"
|
|
480
|
-
style: {
|
|
481
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
482
|
-
}
|
|
431
|
+
className: "text-sm font-medium mb-2 text-foreground"
|
|
483
432
|
}, t('search_bar')), React.createElement("div", {
|
|
484
433
|
className: "pl-4 space-y-2"
|
|
485
434
|
}, renderSearchBarSettings())))))), React.createElement("div", {
|
|
486
435
|
className: "flex items-center mb-2"
|
|
487
436
|
}, React.createElement("p", {
|
|
488
|
-
|
|
489
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
490
|
-
}
|
|
437
|
+
className: "text-sm text-foreground"
|
|
491
438
|
}, t('footer')), React.createElement("div", {
|
|
492
439
|
className: "flex-grow"
|
|
493
440
|
}), React.createElement(Switch, {
|
|
@@ -496,9 +443,7 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
496
443
|
})), React.createElement("div", {
|
|
497
444
|
className: "flex items-center mb-2"
|
|
498
445
|
}, React.createElement("p", {
|
|
499
|
-
|
|
500
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
501
|
-
}
|
|
446
|
+
className: "text-sm text-foreground"
|
|
502
447
|
}, t('menu')), React.createElement("div", {
|
|
503
448
|
className: "flex-grow"
|
|
504
449
|
}), React.createElement(Switch, {
|
|
@@ -507,9 +452,7 @@ import*as React from'react';import {useTranslation}from'react-i18next';import {S
|
|
|
507
452
|
})), React.createElement("div", {
|
|
508
453
|
className: "flex items-center mb-2"
|
|
509
454
|
}, React.createElement("p", {
|
|
510
|
-
|
|
511
|
-
color: navTheme === 'dark' ? '#ffff' : 'black'
|
|
512
|
-
}
|
|
455
|
+
className: "text-sm text-foreground"
|
|
513
456
|
}, t('menu_header')), React.createElement("div", {
|
|
514
457
|
className: "flex-grow"
|
|
515
458
|
}), React.createElement(Switch, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegionalSettings.js","sources":["../../../../src/components/SettingDrawer/components/RegionalSettings.tsx"],"sourcesContent":[null],"names":[],"mappings":"uaASM,SAAU,gBAAgB,CAAC,KAA6B,EAAA;QAC1D;AACA,IAAA;
|
|
1
|
+
{"version":3,"file":"RegionalSettings.js","sources":["../../../../src/components/SettingDrawer/components/RegionalSettings.tsx"],"sourcesContent":[null],"names":[],"mappings":"uaASM,SAAU,gBAAgB,CAAC,KAA6B,EAAA;QAC1D;AACA,IAAA;MACA,cAAM,CAAA,UAAe,CAAA;AACrB,EAAA,MAAA;AACA,IAAA,QAAO;AACP,IAAA,aAAO;AACP,IAAA,QAAO;AACP,IAAA,YAAQ;IACR,gBAAM,GAAA;MACN,KAAM;QAEN,YAAA,GAAA,YAAA,IAAA,QAAA,EAAA,QAAA,IAAwD,GAAA;QACxD,CAAA,gBAAoB,EAAG,4BAAwC,CAAA,QAAA,CAAA,KAAwB,CAAA;AACnF,EAAA,MAAA,CAAA,oBAAe,EAAA,uBAAe,CAAA,GAAmB,KAAI,CAAA,QAAA,CAAA,IAAgB,CAAC;AACtE,EAAA,MAAA,CAAA,mBAAO,EAAe,sBAAsB,CAAA,GAAA,KAAA,CAAA,QAAkB,CAAA,SAAA,CAAA;AAClE,EAAA,MAAE,CAAA,eAAA,EAAA,kBAAA,CAAA,GAAA,KAAA,CAAA,QAAA,CAAA,SAAA,CAAA;QAEF;IACA;AACI,GAAA,GAAA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A;eAKL,EAAA;YACI,CAAA,aAAA,CAAA,GAAA,EAAA;eACA,EAAA;AACA,KAAA,EAAA,CAAA,CAAA,aAAA,CAAA,CAAA,EAAA,KAAA,CAAC,aACG,CAAA,KAAO,EAAA;AAM3B,MAAC,SAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsActions.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/SettingsActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,oBAAoB;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;
|
|
1
|
+
{"version":3,"file":"SettingsActions.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/SettingsActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,oBAAoB;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAOD,wBAAgB,eAAe,CAAC,EAC5B,UAAU,EACV,MAAM,EACN,cAAc,EACd,MAAM,EACN,SAAS,EACT,cAAc,EACd,OAAO,GACV,EAAE,oBAAoB,qBAwCtB"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import React__default from'react';import clsx from'clsx';import {icons}from'../../../icons.js';
|
|
1
|
+
import React__default from'react';import clsx from'clsx';import {icons}from'../../../icons.js';const BASE_BUTTON = 'inline-flex w-full items-center justify-center gap-2 rounded-md px-3 py-2 text-sm font-medium transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2';
|
|
2
|
+
const OUTLINE_BUTTON = 'border border-border bg-background text-foreground hover:bg-muted';
|
|
3
|
+
function SettingsActions({
|
|
2
4
|
hasChanges,
|
|
3
5
|
copied,
|
|
4
6
|
copiedModified,
|
|
@@ -12,31 +14,31 @@ import React__default from'react';import clsx from'clsx';import {icons}from'../.
|
|
|
12
14
|
CheckIcon
|
|
13
15
|
} = icons;
|
|
14
16
|
return React__default.createElement("div", {
|
|
15
|
-
className: "
|
|
17
|
+
className: "mt-8 rounded-lg border border-dashed border-border p-4"
|
|
16
18
|
}, React__default.createElement("p", {
|
|
17
|
-
className: "
|
|
18
|
-
}, "
|
|
19
|
-
className: "
|
|
19
|
+
className: "mb-3 text-xs text-muted-foreground"
|
|
20
|
+
}, "Shown in development only \u2014 settings must be applied manually."), React__default.createElement("div", {
|
|
21
|
+
className: "space-y-2"
|
|
20
22
|
}, React__default.createElement("button", {
|
|
21
23
|
disabled: !hasChanges,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}, copied ? React__default.createElement(
|
|
28
|
-
className: "
|
|
29
|
-
})
|
|
30
|
-
className: "
|
|
31
|
-
}), React__default.createElement("span", null,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}, copiedModified ? React__default.createElement(
|
|
35
|
-
className: "
|
|
36
|
-
})
|
|
37
|
-
className: "
|
|
38
|
-
}), React__default.createElement("span", null,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
},
|
|
24
|
+
onClick: onSave,
|
|
25
|
+
className: clsx(BASE_BUTTON, 'bg-primary text-primary-foreground hover:opacity-90', 'disabled:cursor-not-allowed disabled:bg-muted disabled:text-muted-foreground disabled:hover:opacity-100')
|
|
26
|
+
}, hasChanges ? 'Save Settings' : 'No Changes'), React__default.createElement("button", {
|
|
27
|
+
onClick: onCopyAll,
|
|
28
|
+
className: clsx(BASE_BUTTON, OUTLINE_BUTTON, copied && 'bg-muted')
|
|
29
|
+
}, copied ? React__default.createElement(CheckIcon, {
|
|
30
|
+
className: "h-4 w-4"
|
|
31
|
+
}) : React__default.createElement(CopyIcon, {
|
|
32
|
+
className: "h-4 w-4"
|
|
33
|
+
}), React__default.createElement("span", null, copied ? 'Copied' : 'Copy All')), React__default.createElement("button", {
|
|
34
|
+
onClick: onCopyModified,
|
|
35
|
+
className: clsx(BASE_BUTTON, OUTLINE_BUTTON, copiedModified && 'bg-muted')
|
|
36
|
+
}, copiedModified ? React__default.createElement(CheckIcon, {
|
|
37
|
+
className: "h-4 w-4"
|
|
38
|
+
}) : React__default.createElement(CopyIcon, {
|
|
39
|
+
className: "h-4 w-4"
|
|
40
|
+
}), React__default.createElement("span", null, copiedModified ? 'Copied' : 'Copy Modified')), React__default.createElement("button", {
|
|
41
|
+
onClick: onReset,
|
|
42
|
+
className: clsx(BASE_BUTTON, 'text-destructive hover:bg-muted')
|
|
43
|
+
}, "Reset All")));
|
|
42
44
|
}export{SettingsActions};//# sourceMappingURL=SettingsActions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsActions.js","sources":["../../../../src/components/SettingDrawer/components/SettingsActions.tsx"],"sourcesContent":[null],"names":["React"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SettingsActions.js","sources":["../../../../src/components/SettingDrawer/components/SettingsActions.tsx"],"sourcesContent":[null],"names":["React"],"mappings":"+FAcA,MAAM,WAAW,GACb,6MAA6M;AAEjN,MAAM,cAAc,GAAG,mEAAmE;SAE1E,eAAe,CAAC;AAS5B,EAAA,UAAQ;AAER,EAAA,MAAA;gBAEQ;QAGA;AACI,EAAA,SAAA;AAYA,EAAA,cAAA;AACK,EAAA;;AAIL,EAAA,MAAA;AAIK,IAAA,QAAA;;AAIL,GAAA,GAAA,KAAA;AAMhB,EAAC,OAAAA,cAAA,CAAA,aAAA,CAAA,KAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsDrawerHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/SettingsDrawerHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,wBAAgB,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"SettingsDrawerHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/SettingsDrawerHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,wBAAgB,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,qBAiBxE"}
|
|
@@ -10,13 +10,14 @@ import React__default from'react';import {useTranslation}from'react-i18next';imp
|
|
|
10
10
|
return React__default.createElement("div", {
|
|
11
11
|
className: "flex flex-row items-center"
|
|
12
12
|
}, React__default.createElement("p", {
|
|
13
|
-
className: "
|
|
13
|
+
className: "mb-0 text-lg font-semibold text-foreground"
|
|
14
14
|
}, t('setting')), React__default.createElement("div", {
|
|
15
15
|
className: "flex-grow"
|
|
16
16
|
}), React__default.createElement("button", {
|
|
17
17
|
onClick: onClose,
|
|
18
|
-
|
|
18
|
+
"aria-label": t('setting'),
|
|
19
|
+
className: "flex h-9 w-9 cursor-pointer items-center justify-center rounded-lg border-none bg-transparent text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
19
20
|
}, React__default.createElement(CloseIcon, {
|
|
20
|
-
fontSize: '
|
|
21
|
+
fontSize: '22px'
|
|
21
22
|
})));
|
|
22
23
|
}export{SettingsDrawerHeader};//# sourceMappingURL=SettingsDrawerHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingsDrawerHeader.js","sources":["../../../../src/components/SettingDrawer/components/SettingsDrawerHeader.tsx"],"sourcesContent":[null],"names":[],"mappings":"mHAIM,SAAU,oBAAoB,CAAC;;AAEjC,CAAA,EAAA;AAEA,EAAA,MAAA;;oBAGQ,CAAA,UAAA,CAAA;
|
|
1
|
+
{"version":3,"file":"SettingsDrawerHeader.js","sources":["../../../../src/components/SettingDrawer/components/SettingsDrawerHeader.tsx"],"sourcesContent":[null],"names":[],"mappings":"mHAIM,SAAU,oBAAoB,CAAC;;AAEjC,CAAA,EAAA;AAEA,EAAA,MAAA;;oBAGQ,CAAA,UAAA,CAAA;QACA;;AASZ,GAAC,GAAA,KAAA;;;;;;;;;;;;;;"}
|
|
@@ -10,11 +10,11 @@ import*as React from'react';function Switch({
|
|
|
10
10
|
type: "button",
|
|
11
11
|
role: "switch",
|
|
12
12
|
"aria-checked": value,
|
|
13
|
-
className: `relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-
|
|
13
|
+
className: `relative inline-flex h-6 w-11 shrink-0 items-center rounded-full transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ${value ? 'bg-primary' : 'bg-gray-300 dark:bg-gray-600'} ${className}`,
|
|
14
14
|
onClick: handleClick
|
|
15
15
|
}, React.createElement("span", {
|
|
16
16
|
className: "sr-only"
|
|
17
17
|
}, "Toggle switch"), React.createElement("span", {
|
|
18
|
-
className: `inline-block h-4 w-4 transform rounded-full bg-
|
|
18
|
+
className: `inline-block h-4 w-4 transform rounded-full bg-background shadow transition-transform ${value ? 'translate-x-6' : 'translate-x-1'}`
|
|
19
19
|
}));
|
|
20
20
|
}export{Switch};//# sourceMappingURL=Switch.js.map
|
|
@@ -8,7 +8,7 @@ import*as React from'react';function ThemeSelector({
|
|
|
8
8
|
}, React.createElement("select", {
|
|
9
9
|
value: value,
|
|
10
10
|
onChange: e => onChange(e.target.value),
|
|
11
|
-
className: "w-full rounded-md border border-
|
|
11
|
+
className: "w-full rounded-md border border-input bg-background py-2 pl-3 pr-10 text-left text-foreground shadow-sm transition-colors focus:border-ring focus:outline-none focus:ring-1 focus:ring-ring"
|
|
12
12
|
}, options.map(option => React.createElement("option", {
|
|
13
13
|
key: option.key,
|
|
14
14
|
value: option.key
|
|
@@ -8,7 +8,7 @@ import*as React from'react';const WebFontsSelector = ({
|
|
|
8
8
|
}, React.createElement("select", {
|
|
9
9
|
value: value,
|
|
10
10
|
onChange: e => onChange(e.target.value),
|
|
11
|
-
className: "w-full rounded-md border border-
|
|
11
|
+
className: "w-full rounded-md border border-input bg-background py-2 pl-3 pr-10 text-left text-foreground shadow-sm transition-colors focus:border-ring focus:outline-none focus:ring-1 focus:ring-ring",
|
|
12
12
|
style: {
|
|
13
13
|
fontFamily: value
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admin-layout/tailwind-design-pro",
|
|
3
|
-
"version": "12.2.4-alpha.
|
|
3
|
+
"version": "12.2.4-alpha.92",
|
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "5e14195d953a1d35cedccfd9d2a2a267f43ce4bf",
|
|
56
56
|
"typescript": {
|
|
57
57
|
"definition": "lib/index.d.ts"
|
|
58
58
|
}
|