@appcorp/shadcn 1.1.50 → 1.1.52
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/components/nav-projects.js +6 -2
- package/components/ui/chart.d.ts +1 -1
- package/components/ui/resizable.d.ts +1 -1
- package/package.json +2 -2
- package/templates/data/school-v1.d.ts +169 -0
- package/templates/data/school-v1.js +1040 -0
- package/templates/school-v1/footer.d.ts +2 -0
- package/templates/school-v1/footer.js +74 -0
- package/templates/school-v1/index.d.ts +2 -0
- package/templates/school-v1/index.js +36 -0
- package/templates/school-v1/navigation.d.ts +7 -0
- package/templates/school-v1/navigation.js +86 -0
- package/templates/school-v1/sections/about.d.ts +8 -0
- package/templates/school-v1/sections/about.js +69 -0
- package/templates/school-v1/sections/admissions.d.ts +7 -0
- package/templates/school-v1/sections/admissions.js +66 -0
- package/templates/school-v1/sections/contact.d.ts +2 -0
- package/templates/school-v1/sections/contact.js +99 -0
- package/templates/school-v1/sections/faqs.d.ts +5 -0
- package/templates/school-v1/sections/faqs.js +33 -0
- package/templates/school-v1/sections/hero.d.ts +12 -0
- package/templates/school-v1/sections/hero.js +98 -0
- package/templates/school-v1/sections/management.d.ts +5 -0
- package/templates/school-v1/sections/management.js +33 -0
- package/templates/school-v1/sections/news-events.d.ts +2 -0
- package/templates/school-v1/sections/news-events.js +60 -0
- package/templates/school-v1/sections/policies.d.ts +13 -0
- package/templates/school-v1/sections/policies.js +126 -0
- package/templates/school-v1/sections/programs.d.ts +5 -0
- package/templates/school-v1/sections/programs.js +93 -0
- package/templates/school-v1/sections/testimonials.d.ts +5 -0
- package/templates/school-v1/sections/testimonials.js +45 -0
- package/templates/school-v1/sections/why-choose-us.d.ts +6 -0
- package/templates/school-v1/sections/why-choose-us.js +40 -0
|
@@ -11,12 +11,16 @@ var dropdown_menu_1 = require("./ui/dropdown-menu");
|
|
|
11
11
|
var sidebar_1 = require("./sidebar");
|
|
12
12
|
var react_1 = __importDefault(require("react"));
|
|
13
13
|
var NavProjects = function (_a) {
|
|
14
|
+
var _b, _c;
|
|
14
15
|
var apps = _a.apps, offerUrl = _a.offerUrl;
|
|
15
16
|
var isMobile = (0, sidebar_1.useSidebar)().isMobile;
|
|
16
17
|
return (react_1.default.createElement(sidebar_1.SidebarGroup, { className: "group-data-[collapsible=icon]:hidden" },
|
|
17
18
|
react_1.default.createElement(sidebar_1.SidebarGroupLabel, null, "More Apps"),
|
|
18
|
-
react_1.default.createElement(sidebar_1.SidebarMenu, null, apps === null || apps === void 0 ? void 0 :
|
|
19
|
-
|
|
19
|
+
react_1.default.createElement(sidebar_1.SidebarMenu, null, (_c = (_b = apps === null || apps === void 0 ? void 0 : apps.filter(function (_a) {
|
|
20
|
+
var enabled = _a.enabled;
|
|
21
|
+
return enabled;
|
|
22
|
+
})) === null || _b === void 0 ? void 0 : _b.sort(function (a, b) { return a.order - b.order; })) === null || _c === void 0 ? void 0 :
|
|
23
|
+
_c.map(function (item) { return (react_1.default.createElement(sidebar_1.SidebarMenuItem, { key: item.name },
|
|
20
24
|
react_1.default.createElement(sidebar_1.SidebarMenuButton, { asChild: true },
|
|
21
25
|
react_1.default.createElement(link_1.default, { href: item.url },
|
|
22
26
|
react_1.default.createElement(item.icon, null),
|
package/components/ui/chart.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ declare const ChartTooltipContent: React.ForwardRefExoticComponent<Omit<React.Cl
|
|
|
47
47
|
labelClassName?: string;
|
|
48
48
|
color?: string;
|
|
49
49
|
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
-
declare const ChartLegend:
|
|
50
|
+
declare const ChartLegend: React.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React.ReactPortal | null>;
|
|
51
51
|
declare const ChartLegendContent: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
52
52
|
payload?: Array<{
|
|
53
53
|
value?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
3
3
|
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React.JSX.Element;
|
|
4
|
-
declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement | HTMLButtonElement |
|
|
4
|
+
declare const ResizablePanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement | HTMLButtonElement | HTMLObjectElement | HTMLSlotElement | HTMLStyleElement | HTMLTitleElement | HTMLInputElement | HTMLSpanElement | HTMLAnchorElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDivElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadingElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLLinkElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLParagraphElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSourceElement | HTMLTableElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
5
5
|
className?: string;
|
|
6
6
|
collapsedSize?: number | undefined;
|
|
7
7
|
collapsible?: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appcorp/shadcn",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.52",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build:next": "next build",
|
|
6
6
|
"build:storybook": "mv ../.pnp.cjs ../.pnp.cjs.bak 2>/dev/null || true && storybook build -c .storybook -o .out && mv ../.pnp.cjs.bak ../.pnp.cjs 2>/dev/null || true",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@radix-ui/react-switch": "^1",
|
|
66
66
|
"@radix-ui/react-tabs": "^1",
|
|
67
67
|
"@radix-ui/react-toggle": "^1",
|
|
68
|
-
"@react-pakistan/util-functions": "^1.25.
|
|
68
|
+
"@react-pakistan/util-functions": "^1.25.39",
|
|
69
69
|
"@storybook/addon-docs": "^10",
|
|
70
70
|
"@storybook/addon-onboarding": "^10",
|
|
71
71
|
"@storybook/nextjs": "^10",
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import type { LucideIcon } from "lucide-react";
|
|
2
|
+
export interface AdmissionStep {
|
|
3
|
+
icon: LucideIcon;
|
|
4
|
+
step: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
color: string;
|
|
8
|
+
}
|
|
9
|
+
export interface FAQ {
|
|
10
|
+
id: string;
|
|
11
|
+
question: string;
|
|
12
|
+
answer: string;
|
|
13
|
+
icon: LucideIcon;
|
|
14
|
+
category: string;
|
|
15
|
+
}
|
|
16
|
+
export interface HeroSlide {
|
|
17
|
+
id: string;
|
|
18
|
+
badge: string;
|
|
19
|
+
headline: string;
|
|
20
|
+
subheadline: string;
|
|
21
|
+
description: string;
|
|
22
|
+
primaryCta: {
|
|
23
|
+
label: string;
|
|
24
|
+
href: string;
|
|
25
|
+
};
|
|
26
|
+
secondaryCta: {
|
|
27
|
+
label: string;
|
|
28
|
+
href: string;
|
|
29
|
+
};
|
|
30
|
+
gradient: string;
|
|
31
|
+
accentColor: string;
|
|
32
|
+
pattern: string;
|
|
33
|
+
imageUrl: string;
|
|
34
|
+
}
|
|
35
|
+
export interface KeyDate {
|
|
36
|
+
date: string;
|
|
37
|
+
event: string;
|
|
38
|
+
status: "upcoming" | "open" | "closed";
|
|
39
|
+
}
|
|
40
|
+
export interface ManagementMember {
|
|
41
|
+
avatar: string;
|
|
42
|
+
bio: string;
|
|
43
|
+
color: string;
|
|
44
|
+
id: string;
|
|
45
|
+
initials: string;
|
|
46
|
+
name: string;
|
|
47
|
+
qualifications: string;
|
|
48
|
+
socialLinks?: {
|
|
49
|
+
facebook?: string;
|
|
50
|
+
twitter?: string;
|
|
51
|
+
instagram?: string;
|
|
52
|
+
};
|
|
53
|
+
title: string;
|
|
54
|
+
}
|
|
55
|
+
export interface Milestone {
|
|
56
|
+
year: string;
|
|
57
|
+
event: string;
|
|
58
|
+
}
|
|
59
|
+
export interface NavLink {
|
|
60
|
+
href: string;
|
|
61
|
+
label: string;
|
|
62
|
+
}
|
|
63
|
+
export interface NewsArticle {
|
|
64
|
+
id: string;
|
|
65
|
+
category: string;
|
|
66
|
+
categoryColor: string;
|
|
67
|
+
date: string;
|
|
68
|
+
title: string;
|
|
69
|
+
excerpt: string;
|
|
70
|
+
href: string;
|
|
71
|
+
}
|
|
72
|
+
export interface PolicyCategory {
|
|
73
|
+
id: string;
|
|
74
|
+
label: string;
|
|
75
|
+
icon: string;
|
|
76
|
+
colorClass: string;
|
|
77
|
+
bgClass: string;
|
|
78
|
+
borderClass: string;
|
|
79
|
+
badgeClass: string;
|
|
80
|
+
bulletBg: string;
|
|
81
|
+
description: string;
|
|
82
|
+
sections: PolicySection[];
|
|
83
|
+
}
|
|
84
|
+
export interface PolicyPoint {
|
|
85
|
+
text: string;
|
|
86
|
+
sub?: string[];
|
|
87
|
+
}
|
|
88
|
+
export interface PolicySection {
|
|
89
|
+
id: string;
|
|
90
|
+
title: string;
|
|
91
|
+
points: PolicyPoint[];
|
|
92
|
+
}
|
|
93
|
+
export interface Program {
|
|
94
|
+
icon: LucideIcon;
|
|
95
|
+
title: string;
|
|
96
|
+
ages: string;
|
|
97
|
+
color: string;
|
|
98
|
+
lightColor: string;
|
|
99
|
+
textColor: string;
|
|
100
|
+
borderColor: string;
|
|
101
|
+
description: string;
|
|
102
|
+
highlights: string[];
|
|
103
|
+
}
|
|
104
|
+
export interface Testimonial {
|
|
105
|
+
id: string;
|
|
106
|
+
quote: string;
|
|
107
|
+
name: string;
|
|
108
|
+
role: string;
|
|
109
|
+
initials: string;
|
|
110
|
+
gradientFrom: string;
|
|
111
|
+
gradientTo: string;
|
|
112
|
+
}
|
|
113
|
+
export interface UniformSeason {
|
|
114
|
+
season: "Summer" | "Winter";
|
|
115
|
+
variants: UniformVariant[];
|
|
116
|
+
}
|
|
117
|
+
export interface UniformVariant {
|
|
118
|
+
gender: "Boys" | "Girls";
|
|
119
|
+
classes: string;
|
|
120
|
+
items: string[];
|
|
121
|
+
}
|
|
122
|
+
export interface UpcomingEvent {
|
|
123
|
+
date: string;
|
|
124
|
+
month: string;
|
|
125
|
+
title: string;
|
|
126
|
+
time: string;
|
|
127
|
+
type: string;
|
|
128
|
+
}
|
|
129
|
+
export interface WhyUsFeature {
|
|
130
|
+
icon: LucideIcon;
|
|
131
|
+
title: string;
|
|
132
|
+
description: string;
|
|
133
|
+
color: string;
|
|
134
|
+
}
|
|
135
|
+
export declare const admissionSteps: AdmissionStep[];
|
|
136
|
+
export declare const documentsRequired: string[];
|
|
137
|
+
export declare const faqs: FAQ[];
|
|
138
|
+
export declare const heroSlides: HeroSlide[];
|
|
139
|
+
export declare const heroStats: {
|
|
140
|
+
value: string;
|
|
141
|
+
label: string;
|
|
142
|
+
icon: string;
|
|
143
|
+
}[];
|
|
144
|
+
export declare const highlightBadges: string[];
|
|
145
|
+
export declare const keyDates: KeyDate[];
|
|
146
|
+
export declare const managementTeam: ManagementMember[];
|
|
147
|
+
export declare const milestones: Milestone[];
|
|
148
|
+
export declare const navLinks: NavLink[];
|
|
149
|
+
export declare const newsArticles: NewsArticle[];
|
|
150
|
+
export declare const policyCategories: PolicyCategory[];
|
|
151
|
+
export declare const policyHighlights: {
|
|
152
|
+
label: string;
|
|
153
|
+
value: string;
|
|
154
|
+
note: string;
|
|
155
|
+
}[];
|
|
156
|
+
export declare const programs: Program[];
|
|
157
|
+
export declare const testimonials: Testimonial[];
|
|
158
|
+
export declare const uniformData: UniformSeason[];
|
|
159
|
+
export declare const upcomingEvents: UpcomingEvent[];
|
|
160
|
+
export declare const whyUsFeatures: WhyUsFeature[];
|
|
161
|
+
export interface AboutHighlight {
|
|
162
|
+
icon: React.ElementType;
|
|
163
|
+
title: string;
|
|
164
|
+
description: string;
|
|
165
|
+
color: string;
|
|
166
|
+
iconColor: string;
|
|
167
|
+
borderColor: string;
|
|
168
|
+
}
|
|
169
|
+
export declare const aboutHighlights: AboutHighlight[];
|