@admin-layout/demo-tailwind-browser 10.0.9-alpha.9 → 10.1.1-alpha.2

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,7 @@
1
+ import React from 'react';
2
+ /**
3
+ * Example usage of the OTPVerification component
4
+ */
5
+ declare const ExampleUsage: React.FC;
6
+ export default ExampleUsage;
7
+ //# sourceMappingURL=OTPExamples.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OTPExamples.d.ts","sourceRoot":"","sources":["../../src/components/OTPExamples.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B;;GAEG;AACH,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAuEzB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,85 @@
1
+ import {jsxs,jsx}from'react/jsx-runtime';import {OTPVerification}from'@admin-layout/tailwind-ui';/**
2
+ * Example usage of the OTPVerification component
3
+ */
4
+ const ExampleUsage = () => {
5
+ // Verification handlers
6
+ const handleVerificationSuccess = () => {
7
+ console.log('OTP verification successful!');
8
+ // Additional actions on success
9
+ };
10
+ const handleVerificationFailed = () => {
11
+ console.log('OTP verification failed!');
12
+ // Additional actions on failure
13
+ };
14
+ const handleContinue = () => {
15
+ console.log('Continue button clicked after verification');
16
+ // Navigate to dashboard or next step
17
+ };
18
+ const handleResendCode = () => {
19
+ console.log('Resending verification code...');
20
+ // API call to resend verification code
21
+ };
22
+ const handleOtpChange = otp => {
23
+ console.log('OTP changed:', otp);
24
+ // Additional tracking or validation
25
+ };
26
+ return jsxs("div", {
27
+ className: "p-4",
28
+ children: [jsx("h1", {
29
+ className: "text-2xl font-bold mb-6",
30
+ children: "OTP Verification Examples"
31
+ }), jsx("h2", {
32
+ className: "text-xl font-semibold mb-4",
33
+ children: "Basic Usage"
34
+ }), jsx("div", {
35
+ className: "min-h-screen bg-gradient-to-br from-blue-50 to-indigo-50 flex items-center justify-center p-4",
36
+ children: jsx(OTPVerification, {})
37
+ }), jsx("h2", {
38
+ className: "text-xl font-semibold mb-4",
39
+ children: "Custom Configuration"
40
+ }), jsx("div", {
41
+ className: "min-h-screen bg-gradient-to-br from-blue-50 to-indigo-50 flex items-center justify-center p-4",
42
+ children: jsx(OTPVerification, {
43
+ length: 6,
44
+ validCode: "123456",
45
+ title: "Security Verification",
46
+ description: "Enter the 6-digit code sent to your email",
47
+ successMessage: "Great! Your account is now verified",
48
+ errorMessage: "The code you entered is incorrect",
49
+ continueButtonText: "Access Your Account",
50
+ resendCodeText: "Send New Code",
51
+ verificationDelay: 300,
52
+ resetDelay: 1500,
53
+ onVerificationSuccess: handleVerificationSuccess,
54
+ onVerificationFailed: handleVerificationFailed,
55
+ onContinue: handleContinue,
56
+ onResendCode: handleResendCode,
57
+ onOtpChange: handleOtpChange
58
+ })
59
+ }), jsx("h2", {
60
+ className: "text-xl font-semibold mb-4",
61
+ children: "Implementation Notes"
62
+ }), jsxs("div", {
63
+ className: "bg-gray-50 p-4 rounded-lg",
64
+ children: [jsx("h3", {
65
+ className: "font-medium mb-2",
66
+ children: "Features"
67
+ }), jsxs("ul", {
68
+ className: "list-disc list-inside mb-4 space-y-1",
69
+ children: [jsx("li", {
70
+ children: "Customizable OTP length"
71
+ }), jsx("li", {
72
+ children: "Success and error states with visual feedback"
73
+ }), jsx("li", {
74
+ children: "Custom validation"
75
+ }), jsx("li", {
76
+ children: "Animation effects"
77
+ }), jsx("li", {
78
+ children: "Comprehensive event handlers"
79
+ }), jsx("li", {
80
+ children: "Accessible design"
81
+ })]
82
+ })]
83
+ })]
84
+ });
85
+ };export{ExampleUsage as default};//# sourceMappingURL=OTPExamples.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OTPExamples.js","sources":["../../src/components/OTPExamples.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"iGAGA;;AAEG;AACG,MAAA,YAAY,GAAa,MAAK;;QAE1B,yBAAA,GAA4B,MAAK;AACnC,IAAA,OAAA,CAAA,GAAO,CAAC,8BAAI,CAAA;;AAEhB,GAAA;QAEM,wBAAA,GAA2B,MAAK;AAClC,IAAA,OAAA,CAAA,GAAO,CAAC,0BAAI,CAAA;;AAEhB,GAAA;QAEM,cAAA,GAAiB,MAAK;AACxB,IAAA,OAAA,CAAA,GAAO,CAAC,4CAAI,CAAA;;AAEhB,GAAA;QAEM,gBAAA,GAAmB,MAAK;AAC1B,IAAA,OAAA,CAAA,GAAO,CAAC,gCAAI,CAAA;;AAEhB,GAAA;AAEA,EAAA,MAAA,eAAqB,GAAA,GAAI;AACrB,IAAA,OAAA,CAAA,GAAO,CAAC,mBAAoB,CAAA;;AAEhC,GAAA;AAEA,EAAA,OAAAA,IACI,CAAA,KAAA,EAAA;AA2CR,IAAE,SAAA,EAAA,KAAA;AAEF,IAAA,QAAA,EAAA,CAAeC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../src/compute.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU,EAAE,GAkGxB,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,GAsHxB,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
@@ -32,7 +32,7 @@ const MainRoutes = [{
32
32
  }, {
33
33
  name: 'Exception',
34
34
  key: 'menu.exception',
35
- icon: '',
35
+ icon: 'IoMdSettings',
36
36
  path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/exception`,
37
37
  position: IMenuPosition.Lower,
38
38
  exact: false,
@@ -71,7 +71,7 @@ const MainRoutes = [{
71
71
  }, {
72
72
  name: 'Result',
73
73
  key: 'menu.result',
74
- icon: '',
74
+ icon: 'IoIosClipboard',
75
75
  path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/result`,
76
76
  position: IMenuPosition.Lower,
77
77
  auth: true,
@@ -98,6 +98,26 @@ const MainRoutes = [{
98
98
  priority: 2,
99
99
  componentPath: "@admin-layout/demo-tailwind-browser/lib/components/result/fail/Component.js",
100
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
111
+ }, {
112
+ name: 'OTP Example',
113
+ key: 'menu.otp',
114
+ path: `${ORG_STD_ROUTES.ORG_BASE_PATH}/otp-example`,
115
+ auth: true,
116
+ position: IMenuPosition.Lower,
117
+ exact: true,
118
+ priority: 2,
119
+ componentPath: "@admin-layout/demo-tailwind-browser/lib/components/OTPExamples.js",
120
+ hasComponent: true
101
121
  }];
102
122
  // Using '*' to select all routes and menus
103
123
  const selectedAll = '*';
@@ -1 +1 @@
1
- {"version":3,"file":"compute.js","sources":["../src/compute.ts"],"sourcesContent":[null],"names":[],"mappings":"+NAIa,MAAA,UAAU,GAAQ,CAAA;AAC3B;aACmB;AACf,EAAA,IAAA,EAAA,MAAW;AACX,EAAA,SAAA,QAAY,OAAA,iBAAA,CAAA;AACZ;;;;;;;;;;;;;;;;;;;YAmBe,EAAA,IAAA;AACf,EAAA,IAAA,EAAA,EAAA;AACA,EAAA,IAAA,EAAA,CAAA,EAAA,cAAQ,CAAA,aAAA,CAAA,eAAA;AACR,CAAA,EAAA;AACH,EAAA,IAAA,EAAA,WAAA;AACD,EAAA,GAAA,EAAA,gBAAA;AACI,EAAA,IAAA,EAAA,EAAA;AACA,EAAA,IAAA,EAAA,CAAA,EAAG,cAAkB,CAAA,aAAA,CAAA,UAAA,CAAA;AACrB,EAAA,SAAA,QAAQ,OAAA,qCAAA,CAAA;AACR,EAAA,QAAA,EAAI,aAAmB,CAAA,KAAA;AACvB,EAAA,KAAA,EAAA;;AAEA,EAAA,IAAA,EAAA,eAAY;AACf,EAAA,GAAA,EAAA,oBAAA;AACD,EAAA,IAAA,EAAA,CAAA,EAAA,cAAA,CAAA,aAAA,CAAA,cAAA,CAAA;AACI,EAAA,IAAA,EAAA,IAAI;AACJ,EAAA,SAAG,EAAE,MAAoB,OAAA,yC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AAA;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,EAAA;AACI,EAAA,IAAA,EAAA,aAAc;AACd,EAAA,GAAA,EAAA,UAAkB;AAClB,EAAA,IAAA,EAAA,CAAA,EAAA,cAAuB,CAAA,0BAAuB,CAAA;AAC9C,EAAA,IAAA,EAAA,IAAI;AACJ,EAAA,SAAA,EAAA,MAAW,OAAY;UACf,EAAA,aAAe,CAAA,KAAA;AACvB,EAAA,KAAA,EAAA,IAAK;AACL,EAAA,QAAA,EAAA;AACH,CAAA;AACD;AACI,MAAA,WAAmB,GAAA,GAAA;AACnB;AACuB,2BAA4B,EAAA,WAAA;AACnD;AACA,MAAA,cAAc,GAAA,yCAAqC"}
package/lib/routes.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "/o/:orgName/exception": {
15
15
  "name": "Exception",
16
16
  "key": "menu.exception",
17
- "icon": "",
17
+ "icon": "IoMdSettings",
18
18
  "path": "/o/:orgName/exception",
19
19
  "position": "LOWER",
20
20
  "exact": false,
@@ -65,7 +65,7 @@
65
65
  "/o/:orgName/result": {
66
66
  "name": "Result",
67
67
  "key": "menu.result",
68
- "icon": "",
68
+ "icon": "IoIosClipboard",
69
69
  "path": "/o/:orgName/result",
70
70
  "position": "LOWER",
71
71
  "auth": true,
@@ -99,5 +99,31 @@
99
99
  "componentPath": "@admin-layout/demo-tailwind-browser/lib/components/result/fail/Component.js",
100
100
  "hasComponent": true
101
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
+ }
115
+ },
116
+ {
117
+ "/o/:orgName/otp-example": {
118
+ "name": "OTP Example",
119
+ "key": "menu.otp",
120
+ "path": "/o/:orgName/otp-example",
121
+ "auth": true,
122
+ "position": "LOWER",
123
+ "exact": true,
124
+ "priority": 2,
125
+ "componentPath": "@admin-layout/demo-tailwind-browser/lib/components/OTPExamples.js",
126
+ "hasComponent": true
127
+ }
102
128
  }
103
129
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admin-layout/demo-tailwind-browser",
3
- "version": "10.0.9-alpha.9",
3
+ "version": "10.1.1-alpha.2",
4
4
  "description": "Sample core for higher packages to depend on",
5
5
  "license": "ISC",
6
6
  "author": "CDMBase LLC",
@@ -21,11 +21,11 @@
21
21
  "watch": "yarn build:lib:watch"
22
22
  },
23
23
  "dependencies": {
24
- "@admin-layout/assets": "10.0.9-alpha.4",
25
- "@admin-layout/tailwind-design-pro": "10.0.9-alpha.9",
24
+ "@admin-layout/assets": "10.1.1-alpha.0",
25
+ "@admin-layout/tailwind-design-pro": "10.1.1-alpha.2",
26
+ "@admin-layout/tailwind-ui": "10.1.1-alpha.0",
26
27
  "@pubngo-stack/icons": "8.0.7",
27
28
  "@react-icons/all-files": "^4.1.0",
28
- "@xstate/react": "^4.1.1",
29
29
  "marked": "7.0.5",
30
30
  "openai": "^4.52.0"
31
31
  },
@@ -50,8 +50,8 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "5bc5474ea74926799338fe9be773b10858d1948c",
54
53
  "typescript": {
55
54
  "definition": "lib/index.d.ts"
56
- }
55
+ },
56
+ "gitHead": "fe553360450b4cb29784ee960488a07a5b0c5e44"
57
57
  }