@admin-layout/demo-tailwind-browser 10.1.1-alpha.9 → 11.2.1-alpha.1
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/OTPExamples.d.ts.map +1 -1
- package/lib/components/OTPExamples.js +32 -28
- package/lib/components/OTPExamples.js.map +1 -1
- package/lib/components/ThemeShowCase/FeaturesSection.d.ts +2 -0
- package/lib/components/ThemeShowCase/FeaturesSection.d.ts.map +1 -0
- package/lib/components/ThemeShowCase/FeaturesSection.js +64 -0
- package/lib/components/ThemeShowCase/FeaturesSection.js.map +1 -0
- package/lib/components/ThemeShowCase/HeroSection.d.ts +2 -0
- package/lib/components/ThemeShowCase/HeroSection.d.ts.map +1 -0
- package/lib/components/ThemeShowCase/HeroSection.js +94 -0
- package/lib/components/ThemeShowCase/HeroSection.js.map +1 -0
- package/lib/components/ThemeShowCase/ThemeShowcase.d.ts +2 -0
- package/lib/components/ThemeShowCase/ThemeShowcase.d.ts.map +1 -0
- package/lib/components/ThemeShowCase/ThemeShowcase.js +242 -0
- package/lib/components/ThemeShowCase/ThemeShowcase.js.map +1 -0
- package/lib/components/ThemeShowCase/index.d.ts +3 -0
- package/lib/components/ThemeShowCase/index.d.ts.map +1 -0
- package/lib/components/ThemeShowCase/index.js +6 -0
- package/lib/components/ThemeShowCase/index.js.map +1 -0
- package/lib/components/exception/403/Component.d.ts.map +1 -1
- package/lib/components/exception/403/Component.js +7 -17
- package/lib/components/exception/403/Component.js.map +1 -1
- package/lib/components/exception/404/Component.d.ts.map +1 -1
- package/lib/components/exception/404/Component.js +7 -17
- package/lib/components/exception/404/Component.js.map +1 -1
- package/lib/components/exception/500/Component.d.ts.map +1 -1
- package/lib/components/exception/500/Component.js +7 -17
- package/lib/components/exception/500/Component.js.map +1 -1
- package/lib/components/exception/exception.js.map +1 -1
- package/lib/components/result/fail/Component.d.ts.map +1 -1
- package/lib/components/result/fail/Component.js +17 -26
- package/lib/components/result/fail/Component.js.map +1 -1
- package/lib/components/result/result.js.map +1 -1
- package/lib/components/result/success/Component.d.ts.map +1 -1
- package/lib/components/result/success/Component.js +12 -21
- package/lib/components/result/success/Component.js.map +1 -1
- package/lib/compute.d.ts.map +1 -1
- package/lib/compute.js +111 -11
- package/lib/compute.js.map +1 -1
- package/lib/fills/HeaderNoticeFill.d.ts +3 -0
- package/lib/fills/HeaderNoticeFill.d.ts.map +1 -0
- package/lib/fills/HeaderNoticeFill.js +15 -0
- package/lib/fills/HeaderNoticeFill.js.map +1 -0
- package/lib/module.d.ts.map +1 -1
- package/lib/module.js +5 -1
- package/lib/module.js.map +1 -1
- package/lib/pages/Home.js.map +1 -1
- package/lib/routes.json +145 -15
- package/package.json +5 -5
- package/lib/components/ThemeExample.d.ts +0 -4
- package/lib/components/ThemeExample.d.ts.map +0 -1
- package/lib/components/ThemeExample.js +0 -436
- package/lib/components/ThemeExample.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OTPExamples.d.ts","sourceRoot":"","sources":["../../src/components/OTPExamples.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"OTPExamples.d.ts","sourceRoot":"","sources":["../../src/components/OTPExamples.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;GAEG;AACH,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EA2EzB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {jsxs,jsx}from'react/jsx-runtime';import {OTPVerification}from'@admin-layout/tailwind-ui';/**
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import {OTPVerification}from'@admin-layout/tailwind-ui';import {Card,CardHeader,CardTitle,CardContent}from'@admin-layout/tailwind-ui/shardui/card.js';/**
|
|
2
2
|
* Example usage of the OTPVerification component
|
|
3
3
|
*/
|
|
4
4
|
const ExampleUsage = () => {
|
|
@@ -24,21 +24,21 @@ const ExampleUsage = () => {
|
|
|
24
24
|
// Additional tracking or validation
|
|
25
25
|
};
|
|
26
26
|
return jsxs("div", {
|
|
27
|
-
className: "p-4",
|
|
27
|
+
className: "p-4 bg-background text-foreground",
|
|
28
28
|
children: [jsx("h1", {
|
|
29
|
-
className: "text-2xl font-bold mb-6",
|
|
29
|
+
className: "text-2xl font-bold mb-6 text-foreground",
|
|
30
30
|
children: "OTP Verification Examples"
|
|
31
31
|
}), jsx("h2", {
|
|
32
|
-
className: "text-xl font-semibold mb-4",
|
|
32
|
+
className: "text-xl font-semibold mb-4 text-foreground",
|
|
33
33
|
children: "Basic Usage"
|
|
34
34
|
}), jsx("div", {
|
|
35
|
-
className: "min-h-screen bg-gradient-
|
|
35
|
+
className: "min-h-screen bg-gradient-secondary flex items-center justify-center p-4",
|
|
36
36
|
children: jsx(OTPVerification, {})
|
|
37
37
|
}), jsx("h2", {
|
|
38
|
-
className: "text-xl font-semibold mb-4",
|
|
38
|
+
className: "text-xl font-semibold mb-4 text-foreground",
|
|
39
39
|
children: "Custom Configuration"
|
|
40
40
|
}), jsx("div", {
|
|
41
|
-
className: "min-h-screen bg-gradient-
|
|
41
|
+
className: "min-h-screen bg-gradient-secondary flex items-center justify-center p-4",
|
|
42
42
|
children: jsx(OTPVerification, {
|
|
43
43
|
length: 6,
|
|
44
44
|
validCode: "123456",
|
|
@@ -57,28 +57,32 @@ const ExampleUsage = () => {
|
|
|
57
57
|
onOtpChange: handleOtpChange
|
|
58
58
|
})
|
|
59
59
|
}), jsx("h2", {
|
|
60
|
-
className: "text-xl font-semibold mb-4",
|
|
60
|
+
className: "text-xl font-semibold mb-4 text-foreground",
|
|
61
61
|
children: "Implementation Notes"
|
|
62
|
-
}), jsxs(
|
|
63
|
-
className: "
|
|
64
|
-
children: [jsx(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
children: "
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
62
|
+
}), jsxs(Card, {
|
|
63
|
+
className: "themed-card",
|
|
64
|
+
children: [jsx(CardHeader, {
|
|
65
|
+
children: jsx(CardTitle, {
|
|
66
|
+
className: "text-foreground",
|
|
67
|
+
children: "Features"
|
|
68
|
+
})
|
|
69
|
+
}), jsx(CardContent, {
|
|
70
|
+
children: jsxs("ul", {
|
|
71
|
+
className: "list-disc list-inside mb-4 space-y-1 text-muted-foreground",
|
|
72
|
+
children: [jsx("li", {
|
|
73
|
+
children: "Customizable OTP length"
|
|
74
|
+
}), jsx("li", {
|
|
75
|
+
children: "Success and error states with visual feedback"
|
|
76
|
+
}), jsx("li", {
|
|
77
|
+
children: "Custom validation"
|
|
78
|
+
}), jsx("li", {
|
|
79
|
+
children: "Animation effects"
|
|
80
|
+
}), jsx("li", {
|
|
81
|
+
children: "Comprehensive event handlers"
|
|
82
|
+
}), jsx("li", {
|
|
83
|
+
children: "Accessible design"
|
|
84
|
+
})]
|
|
85
|
+
})
|
|
82
86
|
})]
|
|
83
87
|
})]
|
|
84
88
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OTPExamples.js","sources":["../../src/components/OTPExamples.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"OTPExamples.js","sources":["../../src/components/OTPExamples.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"+LAIA;;AAEG;AACH,MAAM,YAAY,GAAa,MAAK;;QAEhC,yBAAM,GAAyB,MAAM;AACjC,IAAA,OAAA,CAAA,GAAO,CAAC,8BAAI,CAAA;;AAEhB,EAAA,CAAA;QAEA,wBAAM,GAAwB,MAAM;AAChC,IAAA,OAAA,CAAA,GAAO,CAAC,0BAAI,CAAA;;AAEhB,EAAA,CAAA;QAEA,cAAM,GAAc,MAAM;AACtB,IAAA,OAAA,CAAA,GAAO,CAAC,4CAAI,CAAA;;AAEhB,EAAA,CAAA;QAEA,gBAAM,GAAgB,MAAM;AACxB,IAAA,OAAA,CAAA,GAAO,CAAC,gCAAI,CAAA;;AAEhB,EAAA,CAAA;AAEA,EAAA,MAAA,eAAM,GAAe,GAAI;AACrB,IAAA,OAAA,CAAA,GAAO,CAAC,mBAAkB,CAAE;;AAEhC,EAAA,CAAA;AAEA,EAAA,OAAAA,IACI,CAAA,KAAA,EAAA;AA+CR,IAAE,SAAA,EAAA,mCAAA;AAEF,IAAA,QAAA,EAAA,CAAeC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeaturesSection.d.ts","sourceRoot":"","sources":["../../../src/components/ThemeShowCase/FeaturesSection.tsx"],"names":[],"mappings":"AAoCA,wBAAgB,eAAe,4CAgC9B"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import {jsx,jsxs}from'react/jsx-runtime';import {Palette,Zap,Code,Shield,Smartphone,Globe}from'lucide-react';import {Card,CardHeader,CardTitle,CardContent}from'@admin-layout/tailwind-ui/shardui/card.js';const features = [{
|
|
2
|
+
icon: Palette,
|
|
3
|
+
title: 'Multiple Themes',
|
|
4
|
+
description: 'Choose from Airbnb, Slack, GitHub, Spotify, and more professionally designed themes.'
|
|
5
|
+
}, {
|
|
6
|
+
icon: Zap,
|
|
7
|
+
title: 'Instant Switching',
|
|
8
|
+
description: 'Change themes instantly with CSS custom properties. No page reload required.'
|
|
9
|
+
}, {
|
|
10
|
+
icon: Code,
|
|
11
|
+
title: 'Developer Friendly',
|
|
12
|
+
description: 'Built with Tailwind CSS best practices. Easy to customize and extend.'
|
|
13
|
+
}, {
|
|
14
|
+
icon: Shield,
|
|
15
|
+
title: 'Production Ready',
|
|
16
|
+
description: 'Optimized for performance with minimal bundle size and fast loading.'
|
|
17
|
+
}, {
|
|
18
|
+
icon: Smartphone,
|
|
19
|
+
title: 'Responsive Design',
|
|
20
|
+
description: 'All themes are fully responsive and work perfectly on mobile devices.'
|
|
21
|
+
}, {
|
|
22
|
+
icon: Globe,
|
|
23
|
+
title: 'Modern Standards',
|
|
24
|
+
description: 'Built with modern web standards and accessibility in mind.'
|
|
25
|
+
}];
|
|
26
|
+
function FeaturesSection() {
|
|
27
|
+
return jsx("section", {
|
|
28
|
+
className: "py-20 px-4",
|
|
29
|
+
children: jsxs("div", {
|
|
30
|
+
className: "container mx-auto",
|
|
31
|
+
children: [jsxs("div", {
|
|
32
|
+
className: "text-center max-w-3xl mx-auto mb-16",
|
|
33
|
+
children: [jsx("h2", {
|
|
34
|
+
className: "text-3xl md:text-4xl font-bold mb-4",
|
|
35
|
+
children: "Why Choose Our Theme System?"
|
|
36
|
+
}), jsx("p", {
|
|
37
|
+
className: "text-lg text-muted-foreground",
|
|
38
|
+
children: "Built with the latest technologies and best practices for modern web development."
|
|
39
|
+
})]
|
|
40
|
+
}), jsx("div", {
|
|
41
|
+
className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",
|
|
42
|
+
children: features.map((feature, index) => jsxs(Card, {
|
|
43
|
+
className: "group hover:shadow-lg transition-all duration-200 border-border/50",
|
|
44
|
+
children: [jsxs(CardHeader, {
|
|
45
|
+
children: [jsx("div", {
|
|
46
|
+
className: "h-12 w-12 rounded-lg bg-gradient-primary flex items-center justify-center mb-4 group-hover:scale-110 transition-transform duration-200",
|
|
47
|
+
children: jsx(feature.icon, {
|
|
48
|
+
className: "h-6 w-6 text-primary-foreground"
|
|
49
|
+
})
|
|
50
|
+
}), jsx(CardTitle, {
|
|
51
|
+
className: "text-xl",
|
|
52
|
+
children: feature.title
|
|
53
|
+
})]
|
|
54
|
+
}), jsx(CardContent, {
|
|
55
|
+
children: jsx("p", {
|
|
56
|
+
className: "text-muted-foreground",
|
|
57
|
+
children: feature.description
|
|
58
|
+
})
|
|
59
|
+
})]
|
|
60
|
+
}, index))
|
|
61
|
+
})]
|
|
62
|
+
})
|
|
63
|
+
});
|
|
64
|
+
}export{FeaturesSection};//# sourceMappingURL=FeaturesSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeaturesSection.js","sources":["../../../src/components/ThemeShowCase/FeaturesSection.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":"2MAGA,MAAM,QAAQ,GAAG,CAAA;AACb,EAAA,IAAA,EAAA,OAAA;AACI,EAAA,KAAA,EAAA,iBAAa;AACb,EAAA,WAAK,EAAE;AACP,CAAA,EAAA;AACH,EAAA,IAAA,EAAA,GAAA;AACD,EAAA,KAAA,EAAA,mBAAA;AACI,EAAA,aAAM;AACN,CAAA,EAAA;AACA,EAAA,IAAA,EAAA,IAAA;AACH,EAAA,KAAA,EAAA,oBAAA;AACD,EAAA,WAAA,EAAA;AACI,CAAA,EAAA;AACA,EAAA,IAAA,EAAA;AACA,EAAA,KAAA,EAAA,kBAAa;AAChB,EAAA,WAAA,EAAA;AACD,CAAA,EAAA;AACI,EAAA,IAAA,EAAA,UAAM;AACN,EAAA,KAAA,EAAA,mBAAO;AACP,EAAA,WAAA,EAAA;AACH,CAAA,EAAA;AACD,EAAA,IAAA,EAAA,KAAA;AACI,EAAA,KAAA,EAAA,kBAAgB;AAChB,EAAA,WAAK,EAAE;AACP,CAAA,CAAA;AACH,SAAA,eAAA,GAAA;AACD,EAAA,OAAAA,GAAA,CAAA,SAAA,EAAA;AACI,IAAA,WAAM,YAAK;AACX,IAAA,QAAA,MAAO,CAAA,KAAA,EAAA;AACP,MAAA,SAAA,EAAA,mBAAa;AAChB,MAAA,QAAA,EAAA,CAAAC,IAAA,CAAA,KAAA,EAAA;QACH,SAAA,EAAA,qCAAA;AAEF,gBAAgB,EAAA,CAAAD,GAAA,CAAA,IAAA,EAAA;UACZ,gDACmC;AA8BvC,UAAC,QAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeroSection.d.ts","sourceRoot":"","sources":["../../../src/components/ThemeShowCase/HeroSection.tsx"],"names":[],"mappings":"AAQA,wBAAgB,WAAW,4CAkE1B"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import {jsx,jsxs}from'react/jsx-runtime';import {ArrowRight,Star,Users,Zap}from'lucide-react';import {Button}from'@admin-layout/tailwind-ui/shardui/button.js';import {Badge}from'@admin-layout/tailwind-ui/shardui/badge.js';import {Card,CardContent}from'@admin-layout/tailwind-ui/shardui/card.js';import {LanguageMenuDropdown}from'@admin-layout/tailwind-ui/components/LanguageMenuDropdown/LanguageMenuDropdown.js';import config from'@app/cde-webconfig.json';function HeroSection() {
|
|
2
|
+
return jsx("section", {
|
|
3
|
+
className: "py-20 px-4 bg-gradient-secondary",
|
|
4
|
+
children: jsxs("div", {
|
|
5
|
+
className: "container mx-auto text-center",
|
|
6
|
+
children: [jsxs("div", {
|
|
7
|
+
className: "max-w-4xl mx-auto space-y-8",
|
|
8
|
+
children: [jsx(Badge, {
|
|
9
|
+
variant: "secondary",
|
|
10
|
+
className: "mb-4",
|
|
11
|
+
children: "\u2728 Multi-Theme Website Template"
|
|
12
|
+
}), jsxs("h1", {
|
|
13
|
+
className: "text-4xl md:text-6xl font-bold tracking-tight",
|
|
14
|
+
children: ["Beautiful Themes for", jsx("span", {
|
|
15
|
+
className: "bg-gradient-brand bg-clip-text text-transparent block",
|
|
16
|
+
children: "Every Brand"
|
|
17
|
+
})]
|
|
18
|
+
}), jsx("p", {
|
|
19
|
+
className: "text-xl text-muted-foreground max-w-2xl mx-auto",
|
|
20
|
+
children: "Experience seamless theme switching with our professionally crafted design system. From Airbnb's warmth to Spotify's energy, find the perfect look for your brand."
|
|
21
|
+
}), jsxs("div", {
|
|
22
|
+
className: "flex flex-col sm:flex-row gap-4 justify-center",
|
|
23
|
+
children: [jsxs(Button, {
|
|
24
|
+
size: "lg",
|
|
25
|
+
className: "gap-2",
|
|
26
|
+
children: ["Get Started ", jsx(ArrowRight, {
|
|
27
|
+
className: "h-4 w-4"
|
|
28
|
+
})]
|
|
29
|
+
}), jsx(Button, {
|
|
30
|
+
size: "lg",
|
|
31
|
+
variant: "outline",
|
|
32
|
+
children: "View Themes"
|
|
33
|
+
}), jsx(LanguageMenuDropdown, {
|
|
34
|
+
i18nConfig: config
|
|
35
|
+
})]
|
|
36
|
+
})]
|
|
37
|
+
}), jsxs("div", {
|
|
38
|
+
className: "grid grid-cols-1 md:grid-cols-3 gap-6 mt-20 max-w-3xl mx-auto",
|
|
39
|
+
children: [jsx(Card, {
|
|
40
|
+
className: "border-none bg-background/50 backdrop-blur",
|
|
41
|
+
children: jsxs(CardContent, {
|
|
42
|
+
className: "p-6 text-center",
|
|
43
|
+
children: [jsx("div", {
|
|
44
|
+
className: "h-12 w-12 rounded-full bg-gradient-primary mx-auto mb-4 flex items-center justify-center",
|
|
45
|
+
children: jsx(Star, {
|
|
46
|
+
className: "h-6 w-6 text-primary-foreground"
|
|
47
|
+
})
|
|
48
|
+
}), jsx("h3", {
|
|
49
|
+
className: "text-2xl font-bold",
|
|
50
|
+
children: "5"
|
|
51
|
+
}), jsx("p", {
|
|
52
|
+
className: "text-muted-foreground",
|
|
53
|
+
children: "Premium Themes"
|
|
54
|
+
})]
|
|
55
|
+
})
|
|
56
|
+
}), jsx(Card, {
|
|
57
|
+
className: "border-none bg-background/50 backdrop-blur",
|
|
58
|
+
children: jsxs(CardContent, {
|
|
59
|
+
className: "p-6 text-center",
|
|
60
|
+
children: [jsx("div", {
|
|
61
|
+
className: "h-12 w-12 rounded-full bg-gradient-primary mx-auto mb-4 flex items-center justify-center",
|
|
62
|
+
children: jsx(Users, {
|
|
63
|
+
className: "h-6 w-6 text-primary-foreground"
|
|
64
|
+
})
|
|
65
|
+
}), jsx("h3", {
|
|
66
|
+
className: "text-2xl font-bold",
|
|
67
|
+
children: "10K+"
|
|
68
|
+
}), jsx("p", {
|
|
69
|
+
className: "text-muted-foreground",
|
|
70
|
+
children: "Happy Users"
|
|
71
|
+
})]
|
|
72
|
+
})
|
|
73
|
+
}), jsx(Card, {
|
|
74
|
+
className: "border-none bg-background/50 backdrop-blur",
|
|
75
|
+
children: jsxs(CardContent, {
|
|
76
|
+
className: "p-6 text-center",
|
|
77
|
+
children: [jsx("div", {
|
|
78
|
+
className: "h-12 w-12 rounded-full bg-gradient-primary mx-auto mb-4 flex items-center justify-center",
|
|
79
|
+
children: jsx(Zap, {
|
|
80
|
+
className: "h-6 w-6 text-primary-foreground"
|
|
81
|
+
})
|
|
82
|
+
}), jsx("h3", {
|
|
83
|
+
className: "text-2xl font-bold",
|
|
84
|
+
children: "0.1s"
|
|
85
|
+
}), jsx("p", {
|
|
86
|
+
className: "text-muted-foreground",
|
|
87
|
+
children: "Theme Switch"
|
|
88
|
+
})]
|
|
89
|
+
})
|
|
90
|
+
})]
|
|
91
|
+
})]
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
}export{HeroSection};//# sourceMappingURL=HeroSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeroSection.js","sources":["../../../src/components/ThemeShowCase/HeroSection.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"idAQgB,WAAW,GAAA;SACvBA,GACI,CAAA,SAAA,EAAA;AAgER,IAAC,SAAA,EAAA,kCAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeShowcase.d.ts","sourceRoot":"","sources":["../../../src/components/ThemeShowCase/ThemeShowcase.tsx"],"names":[],"mappings":"AAwCA,wBAAgB,aAAa,4CAmL5B"}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import {jsx,jsxs}from'react/jsx-runtime';import {Sun,Moon,Eye,Palette,Code,Check}from'lucide-react';import {Button,Badge,Card,CardHeader,CardTitle,CardContent,Label,Input}from'@admin-layout/tailwind-ui/shardui/index.js';import {useTheme}from'@admin-layout/tailwind-ui';const themeData = {
|
|
2
|
+
airbnb: {
|
|
3
|
+
name: 'Airbnb',
|
|
4
|
+
description: 'Warm and welcoming design inspired by the travel platform',
|
|
5
|
+
color: '#FF5A5F',
|
|
6
|
+
features: ['Coral primary color', 'Friendly typography', 'Warm shadows', 'Travel-focused UI']
|
|
7
|
+
},
|
|
8
|
+
slack: {
|
|
9
|
+
name: 'Slack',
|
|
10
|
+
description: 'Professional workspace theme with purple accents',
|
|
11
|
+
color: '#4A154B',
|
|
12
|
+
features: ['Purple brand colors', 'Clean workspace UI', 'Professional feel', 'Team collaboration']
|
|
13
|
+
},
|
|
14
|
+
github: {
|
|
15
|
+
name: 'GitHub',
|
|
16
|
+
description: 'Developer-focused theme with clean aesthetics',
|
|
17
|
+
color: '#24292F',
|
|
18
|
+
features: ['Monospace friendly', 'Clean borders', 'Developer tools', 'Code-focused design']
|
|
19
|
+
},
|
|
20
|
+
spotify: {
|
|
21
|
+
name: 'Spotify',
|
|
22
|
+
description: 'Dark theme with vibrant green accents for music lovers',
|
|
23
|
+
color: '#1DB954',
|
|
24
|
+
features: ['Dark background', 'Vibrant green', 'Music player UI', 'Entertainment focus']
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
function ThemeShowcase() {
|
|
28
|
+
const {
|
|
29
|
+
theme,
|
|
30
|
+
mode,
|
|
31
|
+
setTheme,
|
|
32
|
+
toggleMode
|
|
33
|
+
} = useTheme();
|
|
34
|
+
const handleThemeChange = selectedTheme => {
|
|
35
|
+
setTheme(selectedTheme);
|
|
36
|
+
};
|
|
37
|
+
return jsx("section", {
|
|
38
|
+
className: "py-20 px-4 bg-muted/30",
|
|
39
|
+
children: jsxs("div", {
|
|
40
|
+
className: "container mx-auto",
|
|
41
|
+
children: [jsxs("div", {
|
|
42
|
+
className: "text-center max-w-3xl mx-auto mb-16",
|
|
43
|
+
children: [jsx("h2", {
|
|
44
|
+
className: "text-3xl md:text-4xl font-bold mb-4",
|
|
45
|
+
children: "Explore Our Themes"
|
|
46
|
+
}), jsx("p", {
|
|
47
|
+
className: "text-lg text-muted-foreground",
|
|
48
|
+
children: "Each theme is carefully crafted to match the brand aesthetic and user experience of popular platforms. Click to preview any theme instantly."
|
|
49
|
+
}), jsxs("div", {
|
|
50
|
+
className: "flex items-center justify-center gap-4 mt-8",
|
|
51
|
+
children: [jsxs(Button, {
|
|
52
|
+
variant: "outline",
|
|
53
|
+
size: "sm",
|
|
54
|
+
onClick: toggleMode,
|
|
55
|
+
className: "gap-2",
|
|
56
|
+
children: [mode === 'dark' ? jsx(Sun, {
|
|
57
|
+
className: "h-4 w-4"
|
|
58
|
+
}) : jsx(Moon, {
|
|
59
|
+
className: "h-4 w-4"
|
|
60
|
+
}), "Switch to ", mode === 'dark' ? 'Light' : 'Dark', " Mode"]
|
|
61
|
+
}), jsxs(Badge, {
|
|
62
|
+
variant: "secondary",
|
|
63
|
+
className: "gap-1",
|
|
64
|
+
children: [jsx(Eye, {
|
|
65
|
+
className: "h-3 w-3"
|
|
66
|
+
}), "Currently: ", mode.toLocaleUpperCase(), " Mode"]
|
|
67
|
+
})]
|
|
68
|
+
})]
|
|
69
|
+
}), jsxs("div", {
|
|
70
|
+
className: "grid grid-cols-1 lg:grid-cols-3 gap-6 mb-16",
|
|
71
|
+
children: [jsxs(Card, {
|
|
72
|
+
className: "themed-card",
|
|
73
|
+
children: [jsx(CardHeader, {
|
|
74
|
+
children: jsxs(CardTitle, {
|
|
75
|
+
className: "flex items-center gap-2",
|
|
76
|
+
children: [jsx(Palette, {
|
|
77
|
+
className: "h-5 w-5"
|
|
78
|
+
}), "Themed Components"]
|
|
79
|
+
})
|
|
80
|
+
}), jsxs(CardContent, {
|
|
81
|
+
className: "space-y-4",
|
|
82
|
+
children: [jsxs("div", {
|
|
83
|
+
className: "space-y-2",
|
|
84
|
+
children: [jsx(Label, {
|
|
85
|
+
htmlFor: "demo-input",
|
|
86
|
+
children: "Sample Input"
|
|
87
|
+
}), jsx(Input, {
|
|
88
|
+
id: "demo-input",
|
|
89
|
+
placeholder: "Type something...",
|
|
90
|
+
className: "themed-input focus-themed"
|
|
91
|
+
})]
|
|
92
|
+
}), jsx(Button, {
|
|
93
|
+
className: "themed-button w-full interactive-hover",
|
|
94
|
+
children: "Themed Button"
|
|
95
|
+
}), jsxs("div", {
|
|
96
|
+
className: "grid grid-cols-2 gap-2",
|
|
97
|
+
children: [jsx(Badge, {
|
|
98
|
+
className: "bg-success text-white",
|
|
99
|
+
children: "Success"
|
|
100
|
+
}), jsx(Badge, {
|
|
101
|
+
className: "bg-warning text-black",
|
|
102
|
+
children: "Warning"
|
|
103
|
+
})]
|
|
104
|
+
})]
|
|
105
|
+
})]
|
|
106
|
+
}), jsxs(Card, {
|
|
107
|
+
className: "themed-card",
|
|
108
|
+
children: [jsx(CardHeader, {
|
|
109
|
+
children: jsxs(CardTitle, {
|
|
110
|
+
className: "flex items-center gap-2",
|
|
111
|
+
children: [jsx(Code, {
|
|
112
|
+
className: "h-5 w-5"
|
|
113
|
+
}), "Design Tokens"]
|
|
114
|
+
})
|
|
115
|
+
}), jsxs(CardContent, {
|
|
116
|
+
className: "space-y-4",
|
|
117
|
+
children: [jsxs("div", {
|
|
118
|
+
className: "space-y-2",
|
|
119
|
+
children: [jsxs("div", {
|
|
120
|
+
className: "themed-code",
|
|
121
|
+
children: ["--primary:", ' ', theme === 'airbnb' ? '0 100% 60%' : theme === 'slack' ? '289 100% 32%' : theme === 'github' ? '213 13% 13%' : '141 76% 48%']
|
|
122
|
+
}), jsxs("div", {
|
|
123
|
+
className: "themed-code",
|
|
124
|
+
children: ["--radius: ", theme === 'spotify' ? '1rem' : theme === 'github' ? '0.25rem' : '0.5rem']
|
|
125
|
+
})]
|
|
126
|
+
}), jsxs("div", {
|
|
127
|
+
className: "grid grid-cols-4 gap-2",
|
|
128
|
+
children: [jsx("div", {
|
|
129
|
+
className: "h-8 bg-primary rounded-themed"
|
|
130
|
+
}), jsx("div", {
|
|
131
|
+
className: "h-8 bg-secondary rounded-themed"
|
|
132
|
+
}), jsx("div", {
|
|
133
|
+
className: "h-8 bg-accent rounded-themed"
|
|
134
|
+
}), jsx("div", {
|
|
135
|
+
className: "h-8 bg-muted rounded-themed"
|
|
136
|
+
})]
|
|
137
|
+
})]
|
|
138
|
+
})]
|
|
139
|
+
}), jsxs(Card, {
|
|
140
|
+
className: "themed-card",
|
|
141
|
+
children: [jsx(CardHeader, {
|
|
142
|
+
children: jsxs(CardTitle, {
|
|
143
|
+
className: "flex items-center gap-2",
|
|
144
|
+
children: [jsx(Eye, {
|
|
145
|
+
className: "h-5 w-5"
|
|
146
|
+
}), "Visual Effects"]
|
|
147
|
+
})
|
|
148
|
+
}), jsxs(CardContent, {
|
|
149
|
+
className: "space-y-4",
|
|
150
|
+
children: [jsx("div", {
|
|
151
|
+
className: "p-4 bg-gradient-primary rounded-themed-lg text-primary-foreground",
|
|
152
|
+
children: jsx("p", {
|
|
153
|
+
className: "text-sm font-medium",
|
|
154
|
+
children: "Primary Gradient"
|
|
155
|
+
})
|
|
156
|
+
}), jsxs("div", {
|
|
157
|
+
className: "grid grid-cols-2 gap-2",
|
|
158
|
+
children: [jsx("div", {
|
|
159
|
+
className: "h-12 shadow-themed-sm bg-card rounded-themed"
|
|
160
|
+
}), jsx("div", {
|
|
161
|
+
className: "h-12 shadow-themed-lg bg-card rounded-themed"
|
|
162
|
+
})]
|
|
163
|
+
}), jsx("p", {
|
|
164
|
+
className: "text-xs text-muted-foreground",
|
|
165
|
+
children: "Shadows and effects adapt to each theme"
|
|
166
|
+
})]
|
|
167
|
+
})]
|
|
168
|
+
})]
|
|
169
|
+
}), jsx("div", {
|
|
170
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-8 max-w-6xl mx-auto",
|
|
171
|
+
children: Object.entries(themeData).map(([key, themeInfo]) => {
|
|
172
|
+
const isActive = theme === key;
|
|
173
|
+
return jsxs(Card, {
|
|
174
|
+
className: `group cursor-pointer transition-all duration-200 hover:shadow-lg `,
|
|
175
|
+
children: [jsxs(CardHeader, {
|
|
176
|
+
children: [jsxs("div", {
|
|
177
|
+
className: "flex items-center justify-between",
|
|
178
|
+
children: [jsxs("div", {
|
|
179
|
+
className: "flex items-center gap-3",
|
|
180
|
+
children: [jsx("div", {
|
|
181
|
+
className: "h-8 w-8 rounded-full border-2 border-white shadow-sm",
|
|
182
|
+
style: {
|
|
183
|
+
backgroundColor: themeInfo.color
|
|
184
|
+
}
|
|
185
|
+
}), jsx(CardTitle, {
|
|
186
|
+
className: "text-xl",
|
|
187
|
+
children: themeInfo.name
|
|
188
|
+
})]
|
|
189
|
+
}), isActive && jsxs(Badge, {
|
|
190
|
+
variant: "default",
|
|
191
|
+
className: "gap-1",
|
|
192
|
+
children: [jsx(Check, {
|
|
193
|
+
className: "h-3 w-3"
|
|
194
|
+
}), "Active"]
|
|
195
|
+
})]
|
|
196
|
+
}), jsx("p", {
|
|
197
|
+
className: "text-muted-foreground",
|
|
198
|
+
children: themeInfo.description
|
|
199
|
+
})]
|
|
200
|
+
}), jsx(CardContent, {
|
|
201
|
+
children: jsxs("div", {
|
|
202
|
+
className: "space-y-4",
|
|
203
|
+
children: [jsx("div", {
|
|
204
|
+
className: "grid grid-cols-2 gap-2",
|
|
205
|
+
children: themeInfo.features.map((feature, index) => jsxs("div", {
|
|
206
|
+
className: "flex items-center gap-2 text-sm",
|
|
207
|
+
children: [jsx(Check, {
|
|
208
|
+
className: "h-3 w-3 text-success"
|
|
209
|
+
}), jsx("span", {
|
|
210
|
+
children: feature
|
|
211
|
+
})]
|
|
212
|
+
}, index))
|
|
213
|
+
}), jsx("div", {
|
|
214
|
+
className: "pt-2",
|
|
215
|
+
children: jsxs(Button, {
|
|
216
|
+
variant: isActive ? 'default' : 'outline',
|
|
217
|
+
className: "w-full",
|
|
218
|
+
onClick: e => {
|
|
219
|
+
e.stopPropagation();
|
|
220
|
+
handleThemeChange(key);
|
|
221
|
+
},
|
|
222
|
+
children: [isActive ? 'Currently Active' : 'Apply Theme', "Apply Theme"]
|
|
223
|
+
})
|
|
224
|
+
})]
|
|
225
|
+
})
|
|
226
|
+
})]
|
|
227
|
+
}, key);
|
|
228
|
+
})
|
|
229
|
+
}), jsxs("div", {
|
|
230
|
+
className: "text-center mt-12",
|
|
231
|
+
children: [jsx("p", {
|
|
232
|
+
className: "text-muted-foreground mb-6",
|
|
233
|
+
children: "Want to see all themes? Open the settings drawer to explore more options."
|
|
234
|
+
}), jsx(Button, {
|
|
235
|
+
variant: "outline",
|
|
236
|
+
size: "lg",
|
|
237
|
+
children: "View All Themes"
|
|
238
|
+
})]
|
|
239
|
+
})]
|
|
240
|
+
})
|
|
241
|
+
});
|
|
242
|
+
}export{ThemeShowcase};//# sourceMappingURL=ThemeShowcase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeShowcase.js","sources":["../../../src/components/ThemeShowCase/ThemeShowcase.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":"6QAaA,MAAM,SAAS,GAAG;AACd,EAAA,MAAA,EAAM;AACF,IAAA,IAAA,EAAA,QAAM;AACN,IAAA,WAAA,EAAA,2DAAa;AACb,IAAA,KAAA,EAAA,SAAO;YACP,EAAA,CAAA,qBAAW,EAAA,qCAA8C,EAAA,mBAAgB;AAC5E,GAAA;AACD,EAAA,KAAA,EAAK;AACD,IAAA,IAAA,EAAA,OAAM;AACN,IAAA,WAAA,EAAA,kDAAa;AACb,IAAA,KAAA,EAAA,SAAO;YACP,EAAA,CAAA,qBAAW,EAAA,yCAA6C,EAAA,oBAAqB;AAChF,GAAA;AACD,EAAA,MAAA,EAAM;AACF,IAAA,IAAA,EAAA,QAAM;AACN,IAAA,WAAA,EAAA,+CAAa;AACb,IAAA,KAAA,EAAA,SAAO;YACP,EAAA,CAAA,oBAAW,EAAA,kCAAuC,EAAA,qBAAmB;AACxE,GAAA;AACD,EAAA,OAAA,EAAO;AACH,IAAA,IAAA,EAAA,SAAM;AACN,IAAA,WAAA,EAAA,wDAAa;AACb,IAAA,KAAA,EAAA,SAAO;YACP,EAAA,CAAA,iBAAW,EAAA,kCAAoC,EAAA,qBAAmB;AACrE;CACJ;SAEe,aAAa,GAAA;AACzB,EAAA,MAAA;AAEA,IAAA,KAAA;QACI;AACJ,IAAA,QAAE;AAEF,IAAA;AA6DoC,GAAA,GAAA,QAAA,EAAA;;AAEA,IAAA,QAAA,CAAA,aAAA,CAAA;;AAEA,EAAA,OAAAA,GAAA,CAAA,SAAA,EAAA;AACA,IAAA,SAAA,EAAA,wBAAA;AAqChB,IAAA,QAAA,EAAAC,IAAA,CAAA,KAAA,EAAA;AAEA,MAAA,SAAA,EAAA,mBACI;;wDAyCwB;AACJ,QAAA,QAAA,EAAA,CAAAD,GAAA,CAAA,IAAA,EAAA;AAU5B,UAAA,SAAA,EAAC,qCAGU;AAW/B,UAAC,QAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ThemeShowCase/index.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,KAAK,+CAQV,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import {HeroSection}from'./HeroSection.js';import {FeaturesSection}from'./FeaturesSection.js';import {ThemeShowcase}from'./ThemeShowcase.js';const Index = () => {
|
|
2
|
+
return jsxs("div", {
|
|
3
|
+
className: "min-h-screen bg-background",
|
|
4
|
+
children: [jsx(HeroSection, {}), jsx(FeaturesSection, {}), jsx(ThemeShowcase, {})]
|
|
5
|
+
});
|
|
6
|
+
};export{Index as default};//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/ThemeShowCase/index.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"sLAIA,MAAM,KAAK,GAAG,MAAK;AACf,EAAA,OAAAA,IACI,CAAA,KAAA,EAAA;AAMR,IAAE,SAAA,EAAA,4BAAA;AAEF,IAAA,QAAA,EAAA,CAAeC,IAAK,WAAC,EAAA,EAAA,CAAA,EAAAA,GAAA,CAAA,eAAA,EAAA,EAAA,CAAA,EAAAA,GAAA,CAAA,aAAA,EAAA,EAAA,CAAA;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../../src/components/exception/403/Component.tsx"],"names":[],"mappings":"AAIA,iBAAS,SAAS,
|
|
1
|
+
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../../src/components/exception/403/Component.tsx"],"names":[],"mappings":"AAIA,iBAAS,SAAS,4CAiBjB;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -1,36 +1,26 @@
|
|
|
1
|
-
import {jsx,jsxs}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {
|
|
1
|
+
import {jsx,jsxs}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {Button}from'@admin-layout/tailwind-ui/shardui/button.js';function Component() {
|
|
2
2
|
const {
|
|
3
3
|
t
|
|
4
4
|
} = useTranslation();
|
|
5
|
-
const {
|
|
6
|
-
settings: layoutSettings,
|
|
7
|
-
setSettings
|
|
8
|
-
} = useLayoutSettings();
|
|
9
5
|
return jsx("div", {
|
|
10
|
-
className: "w-full h-screen min-h-full bg-
|
|
6
|
+
className: "w-full h-screen min-h-full bg-background text-foreground themed-card flex flex-col items-center justify-center p-6",
|
|
11
7
|
children: jsxs("div", {
|
|
12
8
|
className: "flex flex-col items-center justify-center space-y-4",
|
|
13
9
|
children: [jsx("div", {
|
|
14
|
-
className: "text-8xl font-bold",
|
|
15
|
-
style: {
|
|
16
|
-
color: layoutSettings?.primaryColor
|
|
17
|
-
},
|
|
10
|
+
className: "text-8xl font-bold text-primary",
|
|
18
11
|
children: jsx("span", {
|
|
19
12
|
children: "403"
|
|
20
13
|
})
|
|
21
14
|
}), jsx("h1", {
|
|
22
|
-
className: "text-2xl font-bold text-
|
|
15
|
+
className: "text-2xl font-bold text-foreground",
|
|
23
16
|
children: "403"
|
|
24
17
|
}), jsx("p", {
|
|
25
|
-
className: "text-
|
|
18
|
+
className: "text-muted-foreground",
|
|
26
19
|
children: t('not_authorized')
|
|
27
20
|
}), jsx("div", {
|
|
28
21
|
className: "mt-4",
|
|
29
|
-
children: jsx(
|
|
30
|
-
className: "
|
|
31
|
-
style: {
|
|
32
|
-
backgroundColor: layoutSettings?.primaryColor
|
|
33
|
-
},
|
|
22
|
+
children: jsx(Button, {
|
|
23
|
+
className: "themed-button",
|
|
34
24
|
children: t('back_home')
|
|
35
25
|
})
|
|
36
26
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Component.js","sources":["../../../../src/components/exception/403/Component.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Component.js","sources":["../../../../src/components/exception/403/Component.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"qJAIA,SAAS,SAAS,GAAA;AACd,EAAA,MAAA;IAEA;AAcJ,GAAC,GAAA,cAAA,EAAA;AAED,EAAA,OAAAA,GAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../../src/components/exception/404/Component.tsx"],"names":[],"mappings":"AAIA,iBAAS,SAAS,
|
|
1
|
+
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../../src/components/exception/404/Component.tsx"],"names":[],"mappings":"AAIA,iBAAS,SAAS,4CAiBjB;AAED,eAAe,SAAS,CAAC"}
|