@admin-layout/demo-tailwind-browser 10.0.9-alpha.6 → 10.0.9-alpha.60

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.
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ declare const ThemeShowcase: React.FC;
3
+ export default ThemeShowcase;
4
+ //# sourceMappingURL=ThemeExample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeExample.d.ts","sourceRoot":"","sources":["../../src/components/ThemeExample.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAsc1B,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,436 @@
1
+ import {jsxs,jsx}from'react/jsx-runtime';import {useTheme}from'@admin-layout/tailwind-design-pro';const ThemeShowcase = () => {
2
+ const {
3
+ theme,
4
+ isDarkMode
5
+ } = useTheme();
6
+ // Get text color based on dark mode
7
+ const textColors = isDarkMode ? theme.colors.text.dark : theme.colors.text.light;
8
+ return jsxs("div", {
9
+ className: "w-full max-w-4xl mx-auto space-y-8",
10
+ children: [jsxs("section", {
11
+ className: "space-y-4",
12
+ children: [jsx("h2", {
13
+ className: "text-2xl font-bold",
14
+ style: {
15
+ color: textColors.primary
16
+ },
17
+ children: "Color Palette"
18
+ }), jsxs("div", {
19
+ className: "space-y-4",
20
+ children: [jsxs("div", {
21
+ children: [jsx("h3", {
22
+ className: "mb-2 font-medium",
23
+ style: {
24
+ color: textColors.secondary
25
+ },
26
+ children: "Primary"
27
+ }), jsx("div", {
28
+ className: "grid grid-cols-11 gap-1 h-12",
29
+ children: Object.entries(theme.colors.primary).map(([shade, color]) => jsx("div", {
30
+ className: "rounded flex items-end justify-center p-1",
31
+ style: {
32
+ backgroundColor: color
33
+ },
34
+ children: jsx("span", {
35
+ className: "text-[10px] font-mono",
36
+ style: {
37
+ color: parseInt(shade) > 500 ? '#fff' : '#000',
38
+ opacity: 0.8
39
+ },
40
+ children: shade
41
+ })
42
+ }, `primary-${shade}`))
43
+ })]
44
+ }), jsxs("div", {
45
+ children: [jsx("h3", {
46
+ className: "mb-2 font-medium",
47
+ style: {
48
+ color: textColors.secondary
49
+ },
50
+ children: "Secondary"
51
+ }), jsx("div", {
52
+ className: "grid grid-cols-11 gap-1 h-12",
53
+ children: Object.entries(theme.colors.secondary).map(([shade, color]) => jsx("div", {
54
+ className: "rounded flex items-end justify-center p-1",
55
+ style: {
56
+ backgroundColor: color
57
+ },
58
+ children: jsx("span", {
59
+ className: "text-[10px] font-mono",
60
+ style: {
61
+ color: parseInt(shade) > 500 ? '#fff' : '#000',
62
+ opacity: 0.8
63
+ },
64
+ children: shade
65
+ })
66
+ }, `secondary-${shade}`))
67
+ })]
68
+ }), jsxs("div", {
69
+ children: [jsx("h3", {
70
+ className: "mb-2 font-medium",
71
+ style: {
72
+ color: textColors.secondary
73
+ },
74
+ children: "Accent"
75
+ }), jsx("div", {
76
+ className: "grid grid-cols-11 gap-1 h-12",
77
+ children: Object.entries(theme.colors.accent).map(([shade, color]) => jsx("div", {
78
+ className: "rounded flex items-end justify-center p-1",
79
+ style: {
80
+ backgroundColor: color
81
+ },
82
+ children: jsx("span", {
83
+ className: "text-[10px] font-mono",
84
+ style: {
85
+ color: parseInt(shade) > 500 ? '#fff' : '#000',
86
+ opacity: 0.8
87
+ },
88
+ children: shade
89
+ })
90
+ }, `accent-${shade}`))
91
+ })]
92
+ }), jsxs("div", {
93
+ className: "grid grid-cols-3 gap-4",
94
+ children: [jsxs("div", {
95
+ children: [jsx("h3", {
96
+ className: "mb-2 font-medium",
97
+ style: {
98
+ color: textColors.secondary
99
+ },
100
+ children: "Success"
101
+ }), jsx("div", {
102
+ className: "h-12 rounded flex items-center justify-center",
103
+ style: {
104
+ backgroundColor: theme.colors.success[500]
105
+ },
106
+ children: jsx("span", {
107
+ className: "text-white font-medium",
108
+ children: "Success"
109
+ })
110
+ })]
111
+ }), jsxs("div", {
112
+ children: [jsx("h3", {
113
+ className: "mb-2 font-medium",
114
+ style: {
115
+ color: textColors.secondary
116
+ },
117
+ children: "Warning"
118
+ }), jsx("div", {
119
+ className: "h-12 rounded flex items-center justify-center",
120
+ style: {
121
+ backgroundColor: theme.colors.warning[500]
122
+ },
123
+ children: jsx("span", {
124
+ className: "text-black font-medium",
125
+ children: "Warning"
126
+ })
127
+ })]
128
+ }), jsxs("div", {
129
+ children: [jsx("h3", {
130
+ className: "mb-2 font-medium",
131
+ style: {
132
+ color: textColors.secondary
133
+ },
134
+ children: "Error"
135
+ }), jsx("div", {
136
+ className: "h-12 rounded flex items-center justify-center",
137
+ style: {
138
+ backgroundColor: theme.colors.error[500]
139
+ },
140
+ children: jsx("span", {
141
+ className: "text-white font-medium",
142
+ children: "Error"
143
+ })
144
+ })]
145
+ })]
146
+ })]
147
+ })]
148
+ }), jsxs("section", {
149
+ className: "space-y-4",
150
+ children: [jsx("h2", {
151
+ className: "text-2xl font-bold",
152
+ style: {
153
+ color: textColors.primary
154
+ },
155
+ children: "Typography"
156
+ }), jsxs("div", {
157
+ className: "space-y-6",
158
+ children: [jsxs("div", {
159
+ className: "space-y-3",
160
+ children: [jsx("h1", {
161
+ className: "text-4xl",
162
+ style: {
163
+ fontFamily: theme.fontFamily.sans.join(', '),
164
+ fontWeight: theme.typography.headings.fontWeight,
165
+ lineHeight: theme.typography.headings.lineHeight,
166
+ letterSpacing: theme.typography.headings.letterSpacing,
167
+ color: textColors.primary
168
+ },
169
+ children: "Heading 1"
170
+ }), jsx("h2", {
171
+ className: "text-3xl",
172
+ style: {
173
+ fontFamily: theme.fontFamily.sans.join(', '),
174
+ fontWeight: theme.typography.headings.fontWeight,
175
+ lineHeight: theme.typography.headings.lineHeight,
176
+ letterSpacing: theme.typography.headings.letterSpacing,
177
+ color: textColors.primary
178
+ },
179
+ children: "Heading 2"
180
+ }), jsx("h3", {
181
+ className: "text-2xl",
182
+ style: {
183
+ fontFamily: theme.fontFamily.sans.join(', '),
184
+ fontWeight: theme.typography.headings.fontWeight,
185
+ lineHeight: theme.typography.headings.lineHeight,
186
+ letterSpacing: theme.typography.headings.letterSpacing,
187
+ color: textColors.primary
188
+ },
189
+ children: "Heading 3"
190
+ }), jsx("h4", {
191
+ className: "text-xl",
192
+ style: {
193
+ fontFamily: theme.fontFamily.sans.join(', '),
194
+ fontWeight: theme.typography.headings.fontWeight,
195
+ lineHeight: theme.typography.headings.lineHeight,
196
+ letterSpacing: theme.typography.headings.letterSpacing,
197
+ color: textColors.primary
198
+ },
199
+ children: "Heading 4"
200
+ })]
201
+ }), jsxs("div", {
202
+ className: "space-y-3",
203
+ children: [jsxs("p", {
204
+ className: "text-base",
205
+ style: {
206
+ fontFamily: theme.fontFamily.sans.join(', '),
207
+ fontWeight: theme.typography.body.fontWeight,
208
+ lineHeight: theme.typography.body.lineHeight,
209
+ letterSpacing: theme.typography.body.letterSpacing,
210
+ color: textColors.primary
211
+ },
212
+ children: ["This is regular body text in the ", theme.name, " theme. It demonstrates the default paragraph styling with appropriate line height and letter spacing."]
213
+ }), jsx("p", {
214
+ className: "text-sm",
215
+ style: {
216
+ fontFamily: theme.fontFamily.sans.join(', '),
217
+ fontWeight: theme.typography.body.fontWeight,
218
+ lineHeight: theme.typography.body.lineHeight,
219
+ letterSpacing: theme.typography.body.letterSpacing,
220
+ color: textColors.secondary
221
+ },
222
+ children: "This is smaller text that might be used for secondary information."
223
+ }), jsx("p", {
224
+ className: "text-xs",
225
+ style: {
226
+ fontFamily: theme.fontFamily.sans.join(', '),
227
+ fontWeight: theme.typography.body.fontWeight,
228
+ lineHeight: theme.typography.body.lineHeight,
229
+ letterSpacing: theme.typography.body.letterSpacing,
230
+ color: textColors.tertiary
231
+ },
232
+ children: "This is small text used for captions, hints, or metadata."
233
+ })]
234
+ }), jsxs("div", {
235
+ children: [jsx("h3", {
236
+ className: "mb-2 font-medium",
237
+ style: {
238
+ color: textColors.secondary
239
+ },
240
+ children: "Monospace"
241
+ }), jsxs("code", {
242
+ className: "text-sm block p-3 rounded",
243
+ style: {
244
+ fontFamily: theme.fontFamily.mono.join(', '),
245
+ backgroundColor: isDarkMode ? 'rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.05)',
246
+ color: textColors.primary
247
+ },
248
+ children: ["console.log(\"Hello from the ", theme.name, " theme!\");"]
249
+ })]
250
+ })]
251
+ })]
252
+ }), jsxs("section", {
253
+ className: "space-y-4",
254
+ children: [jsx("h2", {
255
+ className: "text-2xl font-bold",
256
+ style: {
257
+ color: textColors.primary
258
+ },
259
+ children: "Components"
260
+ }), jsxs("div", {
261
+ className: "space-y-6",
262
+ children: [jsxs("div", {
263
+ children: [jsx("h3", {
264
+ className: "mb-4 font-medium",
265
+ style: {
266
+ color: textColors.secondary
267
+ },
268
+ children: "Buttons"
269
+ }), jsxs("div", {
270
+ className: "flex flex-wrap gap-4",
271
+ children: [jsx("button", {
272
+ className: "transition-all hover:scale-105",
273
+ style: {
274
+ backgroundColor: theme.components.buttons.primary.background,
275
+ color: theme.components.buttons.primary.text,
276
+ borderRadius: theme.components.buttons.primary.borderRadius,
277
+ padding: theme.components.buttons.primary.padding,
278
+ fontWeight: theme.components.buttons.primary.fontWeight
279
+ },
280
+ children: "Primary Button"
281
+ }), jsx("button", {
282
+ className: "transition-all hover:scale-105",
283
+ style: {
284
+ backgroundColor: theme.components.buttons.secondary.background,
285
+ color: theme.components.buttons.secondary.text,
286
+ border: theme.components.buttons.secondary.border,
287
+ borderRadius: theme.components.buttons.secondary.borderRadius,
288
+ padding: theme.components.buttons.secondary.padding,
289
+ fontWeight: theme.components.buttons.secondary.fontWeight
290
+ },
291
+ children: "Secondary Button"
292
+ })]
293
+ })]
294
+ }), jsxs("div", {
295
+ children: [jsx("h3", {
296
+ className: "mb-4 font-medium",
297
+ style: {
298
+ color: textColors.secondary
299
+ },
300
+ children: "Cards"
301
+ }), jsxs("div", {
302
+ className: "grid grid-cols-1 md:grid-cols-2 gap-6",
303
+ children: [jsxs("div", {
304
+ style: {
305
+ borderRadius: theme.components.cards.borderRadius,
306
+ padding: theme.components.cards.padding,
307
+ boxShadow: theme.components.cards.shadow,
308
+ border: theme.components.cards.border,
309
+ backgroundColor: isDarkMode ? 'rgba(255, 255, 255, 0.05)' : 'white'
310
+ },
311
+ children: [jsx("h4", {
312
+ className: "text-lg mb-2",
313
+ style: {
314
+ color: textColors.primary,
315
+ fontWeight: theme.typography.headings.fontWeight
316
+ },
317
+ children: "Card Title"
318
+ }), jsxs("p", {
319
+ style: {
320
+ color: textColors.secondary
321
+ },
322
+ children: ["This is an example card component styled according to the ", theme.name, " theme guidelines."]
323
+ })]
324
+ }), jsxs("div", {
325
+ style: {
326
+ borderRadius: theme.components.cards.borderRadius,
327
+ padding: theme.components.cards.padding,
328
+ boxShadow: theme.components.cards.shadow,
329
+ border: theme.components.cards.border,
330
+ backgroundColor: isDarkMode ? 'rgba(255, 255, 255, 0.05)' : 'white'
331
+ },
332
+ children: [jsx("h4", {
333
+ className: "text-lg mb-2",
334
+ style: {
335
+ color: textColors.primary,
336
+ fontWeight: theme.typography.headings.fontWeight
337
+ },
338
+ children: "Featured Content"
339
+ }), jsx("p", {
340
+ style: {
341
+ color: textColors.secondary
342
+ },
343
+ children: "Cards can be used to highlight important content or provide interactive elements."
344
+ }), jsx("button", {
345
+ className: "mt-4 transition-all hover:scale-105",
346
+ style: {
347
+ backgroundColor: theme.components.buttons.primary.background,
348
+ color: theme.components.buttons.primary.text,
349
+ borderRadius: theme.components.buttons.primary.borderRadius,
350
+ padding: '8px 16px',
351
+ // Smaller for card context
352
+ fontWeight: theme.components.buttons.primary.fontWeight
353
+ },
354
+ children: "Learn More"
355
+ })]
356
+ })]
357
+ })]
358
+ }), jsxs("div", {
359
+ children: [jsx("h3", {
360
+ className: "mb-4 font-medium",
361
+ style: {
362
+ color: textColors.secondary
363
+ },
364
+ children: "Form Controls"
365
+ }), jsxs("div", {
366
+ className: "space-y-4 max-w-md",
367
+ children: [jsxs("div", {
368
+ children: [jsx("label", {
369
+ className: "block mb-2 text-sm font-medium",
370
+ style: {
371
+ color: textColors.secondary
372
+ },
373
+ children: "Text Input"
374
+ }), jsx("input", {
375
+ type: "text",
376
+ placeholder: "Enter some text",
377
+ className: "w-full transition-all focus:ring-2 focus:outline-none",
378
+ style: {
379
+ backgroundColor: isDarkMode ? 'rgba(255, 255, 255, 0.05)' : 'white',
380
+ color: textColors.primary,
381
+ borderRadius: theme.components.inputs.borderRadius,
382
+ padding: theme.components.inputs.padding,
383
+ fontSize: theme.components.inputs.fontSize,
384
+ lineHeight: theme.components.inputs.lineHeight,
385
+ border: `1px solid ${isDarkMode ? 'rgba(255, 255, 255, 0.2)' : theme.components.inputs.borderColor}`
386
+ }
387
+ })]
388
+ }), jsxs("div", {
389
+ children: [jsx("label", {
390
+ className: "block mb-2 text-sm font-medium",
391
+ style: {
392
+ color: textColors.secondary
393
+ },
394
+ children: "Select Menu"
395
+ }), jsxs("select", {
396
+ className: "w-full transition-all focus:ring-2 focus:outline-none",
397
+ style: {
398
+ backgroundColor: isDarkMode ? 'rgba(255, 255, 255, 0.05)' : 'white',
399
+ color: textColors.primary,
400
+ borderRadius: theme.components.inputs.borderRadius,
401
+ padding: theme.components.inputs.padding,
402
+ fontSize: theme.components.inputs.fontSize,
403
+ lineHeight: theme.components.inputs.lineHeight,
404
+ border: `1px solid ${isDarkMode ? 'rgba(255, 255, 255, 0.2)' : theme.components.inputs.borderColor}`
405
+ },
406
+ children: [jsx("option", {
407
+ children: "Option 1"
408
+ }), jsx("option", {
409
+ children: "Option 2"
410
+ }), jsx("option", {
411
+ children: "Option 3"
412
+ })]
413
+ })]
414
+ }), jsxs("div", {
415
+ className: "flex items-center",
416
+ children: [jsx("input", {
417
+ type: "checkbox",
418
+ id: "checkbox-example",
419
+ className: "mr-2 h-4 w-4 transition-all",
420
+ style: {
421
+ accentColor: theme.colors.primary[500]
422
+ }
423
+ }), jsx("label", {
424
+ htmlFor: "checkbox-example",
425
+ style: {
426
+ color: textColors.primary
427
+ },
428
+ children: "Checkbox example"
429
+ })]
430
+ })]
431
+ })]
432
+ })]
433
+ })]
434
+ })]
435
+ });
436
+ };export{ThemeShowcase as default};//# sourceMappingURL=ThemeExample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeExample.js","sources":["../../src/components/ThemeExample.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"kGAGM,MAAA,aAAa,GAAa,MAAK;QAC3B;IAEN,KAAoC;IACpC;MAEO;AAwBiC;AACA,EAAA,MAAA,UAAA,GAAA,UAAA,GAAA,KAAA,CAAA,MAAA,CAAA,IAAA,CAAA,IAAA,GAAO,KAAK,CAAA,MAAA,CAAA,IAAA,CAAA,KAAA;AACf,EAAA,OAAAA,IAAA,CAAA,KAAA,EAAA;AAwBG,IAAA,SAAA,EAAA,oCAAA;AACA,IAAA,QAAA,EAAA,CAAAA,IAAA,CAAA,SAAA,EAAA;AACH,MAAA,SAAA,EAAA,WAAA;AAwBG,MAAA,QAAA,EAAA,CAAAC,GAAA,CAAA,IAAA,EAAA;AACA,QAAA,SAAA,EAAA,oBAAA;;;AAmEZ,SAAA;AACA,QAAA,QAAA,EAAA;AACA,OAAA,CAAA,EAAAD,IAAA,CAAA,KAAA,EAAA;;AAEH,QAAA,QAAA,EAAA,CAAAA,IAAA,CAAA,KAAA,EAAA;;AASG,YAAA,SAAA,EAAA,kBAAA;AACA,YAAA,KAAA,EAAA;AACA,cAAA,KAAA,EAAA,UAAA,CAAA;;AAEH,YAAA,QAAA,EAAA;;AASG,YAAA,SAAA,EAAA,8BAAA;AACA,YAAA,QAAA,EAAA,MAAA,CAAA,OAAA,CAAA,KAAA,CAAA,MAAA,CAAA,OAAiB,CAAA,CAAA,GAAC,UAAU,KAAC,CAAA,KAAmBC,GAAA,CAAA,KAAA,EAAA;AAChD,cAAA,SAAA,EAAA;;AAEH,gBAAA,eAAA,EAAA;;AASG,cAAA,QAAA,EA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AA,CAAA,CAAA,CAAA;AACH,WAAA,CAAA;;;;;;;;;AA4CG,cAAA,QAAA,EAAA;AACA,aAAA,CAAA,EAAAA,GAAA,CAAA,KAAA,EAAA;AACA,cAAA,SAAA,EAAA,+CAAe;AACf,cAAA,KAAA,EAAA;;AAGQ,eAAA;;;;;AAmBR,aAAA,CAAA;AACA,WAAA,CAAA,EAAAD,IAAA,CAAA,KAAA,EAAA;AACA,YAAA,QAAA,EAAA,CAAAC,GAAA,CAAA,IAAA,EAAA;AACA,cAAA,SAAA,EAAA,kBAAA;;AAGQ,gBAAA,KAAA,EAAA,UAAA,CAAA;;;;;AA8BhD,cAAE,KAAA,EAAA;AAEF,+BAA6B,EAAA,KAAA,CAAA,MAAA,CAAA,OAAA,CAAA,GAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../src/compute.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU,EAAE,GAsExB,CAAC;AAMF,QAAA,MAAM,aAAa,0CAA4C,CAAC;AAGhE,QAAA,MAAM,cAAc,0CAA6C,CAAC;AAElE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../src/compute.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU,EAAE,GA4GxB,CAAC;AAMF,QAAA,MAAM,aAAa,0CAA4C,CAAC;AAGhE,QAAA,MAAM,cAAc,0CAA6C,CAAC;AAElE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,CAAC"}
package/lib/compute.js CHANGED
@@ -2,9 +2,37 @@ import { ORG_STD_ROUTES } from '@adminide-stack/core/lib/constants/urls.js';
2
2
  import { IMenuPosition } from '@common-stack/core';
3
3
  import { getFilteredMenus, getFilteredRoutes } from '@common-stack/client-react/lib/utils/filteredRoutes.js';
4
4
  const MainRoutes = [{
5
+ // exact: true,
6
+ key: 'home',
7
+ name: 'Home',
8
+ // extraIcons: [
9
+ // `rifi.${IIconRifi.RifiAllCategories}`,
10
+ // `rifi.${IIconRifi.RifiAppartments}`,
11
+ // `rifi.${IIconRifi.RifiArtStudio}`,
12
+ // `rifi.${IIconRifi.RifiBasketballCourt}`,
13
+ // `rifi.${IIconRifi.RifiBeautifulGardens}`,
14
+ // `rifi.${IIconRifi.RifiDocketBoat}`,
15
+ // `rifi.${IIconRifi.RifiFarmHouse}`,
16
+ // `rifi.${IIconRifi.RifiGuestHouse}`,
17
+ // `rifi.${IIconRifi.RifiHomeGym}`,
18
+ // `rifi.${IIconRifi.RifiHomeTheater}`,
19
+ // `rifi.${IIconRifi.RifiHostel}`,
20
+ // `rifi.${IIconRifi.RifiHotel}`,
21
+ // ],
22
+ // extraProps: {
23
+ // keyToMapIconsDescriptionInCategory: 'name',
24
+ // keyToMapIconsInCategory: 'icon',
25
+ // },
26
+ // index: true,
27
+ hideInMenu: true,
28
+ icon: '',
29
+ path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/dashboard/test`,
30
+ componentPath: "@admin-layout/demo-tailwind-browser/lib/pages/Home.js",
31
+ hasComponent: true
32
+ }, {
5
33
  name: 'Exception',
6
34
  key: 'menu.exception',
7
- icon: '',
35
+ icon: 'IoMdSettings',
8
36
  path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/exception`,
9
37
  position: IMenuPosition.Lower,
10
38
  exact: false,
@@ -43,7 +71,7 @@ const MainRoutes = [{
43
71
  }, {
44
72
  name: 'Result',
45
73
  key: 'menu.result',
46
- icon: '',
74
+ icon: 'IoIosClipboard',
47
75
  path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/result`,
48
76
  position: IMenuPosition.Lower,
49
77
  auth: true,
@@ -70,6 +98,16 @@ const MainRoutes = [{
70
98
  priority: 2,
71
99
  componentPath: "@admin-layout/demo-tailwind-browser/lib/components/result/fail/Component.js",
72
100
  hasComponent: true
101
+ }, {
102
+ name: 'Themes',
103
+ key: 'menu.themes',
104
+ path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/themes`,
105
+ auth: true,
106
+ position: IMenuPosition.Lower,
107
+ exact: true,
108
+ priority: 2,
109
+ componentPath: "@admin-layout/demo-tailwind-browser/lib/components/ThemeExample.js",
110
+ hasComponent: true
73
111
  }];
74
112
  // Using '*' to select all routes and menus
75
113
  const selectedAll = '*';
@@ -1 +1 @@
1
- {"version":3,"file":"compute.js","sources":["../src/compute.ts"],"sourcesContent":[null],"names":[],"mappings":"+NAIa,MAAA,UAAU,GAAQ,CAAA;AAC3B,EAAA,IAAA,EAAA,WAAA;AACI,EAAA,GAAA,EAAA,gBAAiB;AACjB,EAAA,IAAA,EAAA,EAAA;AACA,EAAA,IAAA,EAAA,CAAA,EAAA,cAAQ,CAAA,aAAA,CAAA,UAAA,CAAA;AACR,EAAA,SAAA,EAAM,MAAiB,OAAA,qCAA0B,CAAA;AACjD,EAAA,QAAA,EAAA,aAAiB,CAAM,KAAA;SACf;AACR,CAAA,EAAA;AACH,EAAA,IAAA,EAAA,eAAA;AACD,EAAA,GAAA,EAAA,oBAAA;AACI,EAAA,IAAA,EAAA,CAAA,EAAA,cAAqB,CAAA,aAAA,CAAA,cAAA,CAAA;AACrB,EAAA,IAAA,EAAA;AACA,EAAA,SAAA,EAAM,MAAiB,OAAA,yCAA8B,CAAA;AACrD,EAAA,QAAA,EAAI,aAAM,CAAA,KAAA;AACV,EAAA,K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A,CAAA,KAAA;AACD,EAAA,KAAA,EAAA,IAAA;AACI,EAAA,QAAA,EAAI;AACJ,CAAA,EAAA;AACA,EAAA,IAAA,EAAA,MAAM;AACN,EAAA,GAAA,EAAA,kBAAU;AACV,EAAA,IAAA,EAAA,CAAA,EAAA,cAAiB,CAAM;QACvB,IAAQ;AACR,EAAA,SAAA,EAAK,MAAM,OAAA,uCAAA,CAAA;AACX,EAAA,QAAA,EAAA,aAAW,CAAA,KAAA;AACd,EAAA,KAAA,EAAA,IAAA;AACD,EAAA,QAAA,EAAA;AACI,CAAA,EAAA;AACA,EAAA,IAAA,EAAA,QAAuB;AACvB,EAAA,GAAA,EAAA,aAAuB;AACvB,EAAA,IAAA,EAAA,CAAA,EAAA,cAAU,CAAA,aAAA,CAAA,OAAA,CAAA;AACV,EAAA,IAAA,EAAA,IAAA;WACQ,EAAA,MAAe,OAAA,8BAAM,CAAA;AAC7B,EAAA,QAAA,EAAA,aAAW,CAAA,KAAA;AACX,EAAA,KAAA,EAAA,IAAA;AACH,EAAA,QAAA,EAAA;AACD,CAAA;AACI;AACA,MAAA,WAAkB,GAAA,GAAA;AAClB;AACU,gBAAA,CAAA,UAAA,EAAA,WAAA;AACV;oBACuB,GAAA,iBAAM,CAAA,UAAA,EAAA,WAAA"}
@@ -0,0 +1,3 @@
1
+ declare function Home(): import("react/jsx-runtime").JSX.Element;
2
+ export default Home;
3
+ //# sourceMappingURL=Home.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Home.d.ts","sourceRoot":"","sources":["../../src/pages/Home.tsx"],"names":[],"mappings":"AAGA,iBAAS,IAAI,4CAgBZ;AAED,eAAe,IAAI,CAAC"}
@@ -0,0 +1,15 @@
1
+ import {jsx}from'react/jsx-runtime';import React from'react';import {Await}from'@remix-run/react';function Home() {
2
+ return jsx(React.Suspense, {
3
+ fallback: 'Loading...',
4
+ children: jsx(Await, {
5
+ resolve: [
6
+ // loaderData.reservationsQueryLoader
7
+ ],
8
+ children: jsx("div", {
9
+ children: jsx("h1", {
10
+ children: "Home"
11
+ })
12
+ })
13
+ })
14
+ });
15
+ }export{Home as default};//# sourceMappingURL=Home.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Home.js","sources":["../../src/pages/Home.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"kGAGA,SAAS,IAAI,GAAA;AACT,EAAA,OAAAA,GACI,CAAA,KAAM,CAAA;YAIU,EAAqC,YAAA;AACxC,IAAA,QAAA,EAAAA,GAAA,CAAA,KAAA;AASrB,MAAC,OAAA,EAAA;AAED;;;;;;;;;"}
package/lib/routes.json CHANGED
@@ -1,9 +1,20 @@
1
1
  [
2
+ {
3
+ "/o/:orgName/dashboard/test": {
4
+ "key": "home",
5
+ "name": "Home",
6
+ "hideInMenu": true,
7
+ "icon": "",
8
+ "path": "/o/:orgName/dashboard/test",
9
+ "componentPath": "@admin-layout/demo-tailwind-browser/lib/pages/Home.js",
10
+ "hasComponent": true
11
+ }
12
+ },
2
13
  {
3
14
  "/o/:orgName/exception": {
4
15
  "name": "Exception",
5
16
  "key": "menu.exception",
6
- "icon": "",
17
+ "icon": "IoMdSettings",
7
18
  "path": "/o/:orgName/exception",
8
19
  "position": "LOWER",
9
20
  "exact": false,
@@ -54,7 +65,7 @@
54
65
  "/o/:orgName/result": {
55
66
  "name": "Result",
56
67
  "key": "menu.result",
57
- "icon": "",
68
+ "icon": "IoIosClipboard",
58
69
  "path": "/o/:orgName/result",
59
70
  "position": "LOWER",
60
71
  "auth": true,
@@ -88,5 +99,18 @@
88
99
  "componentPath": "@admin-layout/demo-tailwind-browser/lib/components/result/fail/Component.js",
89
100
  "hasComponent": true
90
101
  }
102
+ },
103
+ {
104
+ "/o/:orgName/themes": {
105
+ "name": "Themes",
106
+ "key": "menu.themes",
107
+ "path": "/o/:orgName/themes",
108
+ "auth": true,
109
+ "position": "LOWER",
110
+ "exact": true,
111
+ "priority": 2,
112
+ "componentPath": "@admin-layout/demo-tailwind-browser/lib/components/ThemeExample.js",
113
+ "hasComponent": true
114
+ }
91
115
  }
92
116
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admin-layout/demo-tailwind-browser",
3
- "version": "10.0.9-alpha.6",
3
+ "version": "10.0.9-alpha.60",
4
4
  "description": "Sample core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@admin-layout/assets": "10.0.9-alpha.4",
25
- "@admin-layout/tailwind-design-pro": "10.0.9-alpha.6",
25
+ "@admin-layout/tailwind-design-pro": "10.0.9-alpha.60",
26
26
  "@pubngo-stack/icons": "8.0.7",
27
27
  "@react-icons/all-files": "^4.1.0",
28
28
  "@xstate/react": "^4.1.1",
@@ -50,7 +50,7 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "ed61f7b01cd32ca51f31c764c78db9470aefce49",
53
+ "gitHead": "c881682d1133f7e5ce98003758648b1fddfb8a76",
54
54
  "typescript": {
55
55
  "definition": "lib/index.d.ts"
56
56
  }