@appcorp/shadcn 1.1.53 → 1.1.54
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/package.json +1 -1
- package/templates/data/school-v1.d.ts +16 -0
- package/templates/data/school-v1.js +10 -1
- package/templates/school-v1/index.d.ts +11 -12
- package/templates/school-v1/index.js +4 -6
- package/templates/school-v1/sections/policies.d.ts +1 -12
- package/templates/school-v1/sections/policies.js +10 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appcorp/shadcn",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.54",
|
|
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",
|
|
@@ -338,3 +338,19 @@ export declare const policyHighlights: {
|
|
|
338
338
|
value: string;
|
|
339
339
|
note: string;
|
|
340
340
|
}[];
|
|
341
|
+
type PoliciesHighlight = {
|
|
342
|
+
label: string;
|
|
343
|
+
value: string;
|
|
344
|
+
note: string;
|
|
345
|
+
};
|
|
346
|
+
export interface PoliciesData {
|
|
347
|
+
badge: string;
|
|
348
|
+
title: string;
|
|
349
|
+
paragraph: string;
|
|
350
|
+
lead: string;
|
|
351
|
+
highlights: PoliciesHighlight[];
|
|
352
|
+
categories: PolicyCategory[];
|
|
353
|
+
uniforms: UniformSeason[];
|
|
354
|
+
}
|
|
355
|
+
export declare const policiesData: PoliciesData;
|
|
356
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.policyHighlights = exports.policyCategories = exports.uniformData = exports.whysUsData = exports.highlightBadges = exports.whyUsFeatures = exports.testimonialData = exports.testimonials = exports.programsData = exports.programs = exports.managementData = exports.managementTeam = exports.heroData = exports.heroStats = exports.heroSlides = exports.faqsData = exports.faqs = exports.faqsList = exports.contactData = exports.admissionsData = exports.documentsRequired = exports.keyDates = exports.admissionSteps = exports.aboutData = exports.footerData = exports.navigationData = void 0;
|
|
3
|
+
exports.policiesData = exports.policyHighlights = exports.policyCategories = exports.uniformData = exports.whysUsData = exports.highlightBadges = exports.whyUsFeatures = exports.testimonialData = exports.testimonials = exports.programsData = exports.programs = exports.managementData = exports.managementTeam = exports.heroData = exports.heroStats = exports.heroSlides = exports.faqsData = exports.faqs = exports.faqsList = exports.contactData = exports.admissionsData = exports.documentsRequired = exports.keyDates = exports.admissionSteps = exports.aboutData = exports.footerData = exports.navigationData = void 0;
|
|
4
4
|
var lucide_react_1 = require("lucide-react");
|
|
5
5
|
exports.navigationData = {
|
|
6
6
|
brand: {
|
|
@@ -1252,3 +1252,12 @@ exports.policyHighlights = [
|
|
|
1252
1252
|
note: "Continuous without leave",
|
|
1253
1253
|
},
|
|
1254
1254
|
];
|
|
1255
|
+
exports.policiesData = {
|
|
1256
|
+
badge: "School Charter",
|
|
1257
|
+
title: "Rules",
|
|
1258
|
+
paragraph: "Policies",
|
|
1259
|
+
lead: "Everything parents and students need to know about how LGGS operates — presented clearly and concisely.",
|
|
1260
|
+
highlights: exports.policyHighlights,
|
|
1261
|
+
categories: exports.policyCategories,
|
|
1262
|
+
uniforms: exports.uniformData,
|
|
1263
|
+
};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { AboutData, AdmissionsData, ContactData, FAQsData, HeroData, ManagementData, PoliciesData, ProgramsData, TestimonialData, WhyUsData } from "../../templates/data/school-v1";
|
|
2
3
|
export type SchoolV1TemplateProps = {
|
|
3
4
|
overrides?: {
|
|
4
|
-
heroData?:
|
|
5
|
-
aboutData?:
|
|
6
|
-
programsData?:
|
|
7
|
-
whysUsData?:
|
|
8
|
-
admissionsData?:
|
|
9
|
-
testimonialData?:
|
|
10
|
-
managementData?:
|
|
11
|
-
faqsData?:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
uniformData?: any;
|
|
15
|
-
contactData?: any;
|
|
5
|
+
heroData?: HeroData;
|
|
6
|
+
aboutData?: AboutData;
|
|
7
|
+
programsData?: ProgramsData;
|
|
8
|
+
whysUsData?: WhyUsData;
|
|
9
|
+
admissionsData?: AdmissionsData;
|
|
10
|
+
testimonialData?: TestimonialData;
|
|
11
|
+
managementData?: ManagementData;
|
|
12
|
+
faqsData?: FAQsData;
|
|
13
|
+
contactData?: ContactData;
|
|
14
|
+
policiesData?: PoliciesData;
|
|
16
15
|
};
|
|
17
16
|
};
|
|
18
17
|
export declare const SchoolV1Template: React.FC<SchoolV1TemplateProps>;
|
|
@@ -28,7 +28,7 @@ var testimonials_1 = require("./sections/testimonials");
|
|
|
28
28
|
var why_choose_us_1 = require("./sections/why-choose-us");
|
|
29
29
|
var school_v1_1 = require("../../templates/data/school-v1");
|
|
30
30
|
var SchoolV1Template = function (_a) {
|
|
31
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l
|
|
31
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
32
32
|
var overrides = _a.overrides;
|
|
33
33
|
var h = (_b = overrides === null || overrides === void 0 ? void 0 : overrides.heroData) !== null && _b !== void 0 ? _b : school_v1_1.heroData;
|
|
34
34
|
var a = (_c = overrides === null || overrides === void 0 ? void 0 : overrides.aboutData) !== null && _c !== void 0 ? _c : school_v1_1.aboutData;
|
|
@@ -38,10 +38,8 @@ var SchoolV1Template = function (_a) {
|
|
|
38
38
|
var t = (_g = overrides === null || overrides === void 0 ? void 0 : overrides.testimonialData) !== null && _g !== void 0 ? _g : school_v1_1.testimonialData;
|
|
39
39
|
var m = (_h = overrides === null || overrides === void 0 ? void 0 : overrides.managementData) !== null && _h !== void 0 ? _h : school_v1_1.managementData;
|
|
40
40
|
var f = (_j = overrides === null || overrides === void 0 ? void 0 : overrides.faqsData) !== null && _j !== void 0 ? _j : school_v1_1.faqsData;
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var u = (_m = overrides === null || overrides === void 0 ? void 0 : overrides.uniformData) !== null && _m !== void 0 ? _m : school_v1_1.uniformData;
|
|
44
|
-
var c = (_o = overrides === null || overrides === void 0 ? void 0 : overrides.contactData) !== null && _o !== void 0 ? _o : school_v1_1.contactData;
|
|
41
|
+
var c = (_k = overrides === null || overrides === void 0 ? void 0 : overrides.contactData) !== null && _k !== void 0 ? _k : school_v1_1.contactData;
|
|
42
|
+
var po = (_l = overrides === null || overrides === void 0 ? void 0 : overrides.policiesData) !== null && _l !== void 0 ? _l : school_v1_1.policiesData;
|
|
45
43
|
return (react_1.default.createElement("div", null,
|
|
46
44
|
react_1.default.createElement(hero_1.HeroSection, __assign({}, h)),
|
|
47
45
|
react_1.default.createElement(about_1.AboutSection, __assign({}, a)),
|
|
@@ -51,7 +49,7 @@ var SchoolV1Template = function (_a) {
|
|
|
51
49
|
react_1.default.createElement(testimonials_1.TestimonialsSection, __assign({}, t)),
|
|
52
50
|
react_1.default.createElement(management_1.ManagementSection, __assign({}, m)),
|
|
53
51
|
react_1.default.createElement(faqs_1.FAQsSection, __assign({}, f)),
|
|
54
|
-
react_1.default.createElement(policies_1.PoliciesSection, {
|
|
52
|
+
react_1.default.createElement(policies_1.PoliciesSection, __assign({}, po)),
|
|
55
53
|
react_1.default.createElement(contact_1.ContactSection, __assign({}, c))));
|
|
56
54
|
};
|
|
57
55
|
exports.SchoolV1Template = SchoolV1Template;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import type {
|
|
3
|
-
type PoliciesHighlight = {
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
note: string;
|
|
7
|
-
};
|
|
8
|
-
type PoliciesData = {
|
|
9
|
-
policyCategories: PolicyCategory[];
|
|
10
|
-
policyHighlights: PoliciesHighlight[];
|
|
11
|
-
uniformData: UniformSeason[];
|
|
12
|
-
};
|
|
2
|
+
import type { PoliciesData } from "../../data/school-v1";
|
|
13
3
|
export declare const PoliciesSection: FC<PoliciesData>;
|
|
14
|
-
export {};
|
|
@@ -85,23 +85,24 @@ function UniformPanel(_a) {
|
|
|
85
85
|
react_1.default.createElement("p", { className: "rounded-lg border border-amber-200 bg-amber-50 px-4 py-2.5 text-xs text-amber-700" }, "Uniforms for both campuses are available at each campus canteen. Playgroup children may come in private clothes.")));
|
|
86
86
|
}
|
|
87
87
|
var PoliciesSection = function (_a) {
|
|
88
|
-
var
|
|
88
|
+
var badge = _a.badge, categories = _a.categories, highlights = _a.highlights, lead = _a.lead, paragraph = _a.paragraph, title = _a.title, uniforms = _a.uniforms;
|
|
89
89
|
var _b = (0, react_1.useState)("overview"), activeTab = _b[0], setActiveTab = _b[1];
|
|
90
|
-
var active =
|
|
90
|
+
var active = categories.find(function (c) { return c.id === activeTab; });
|
|
91
91
|
var ActiveIcon = categoryIcons[active.icon];
|
|
92
92
|
return (react_1.default.createElement("section", { id: "policies", className: "overflow-hidden bg-gray-50 py-24" },
|
|
93
93
|
react_1.default.createElement("div", { className: "container mx-auto px-4" },
|
|
94
94
|
react_1.default.createElement(framer_motion_1.motion.div, { className: "mb-12 text-center", initial: { opacity: 0, y: 30 }, whileInView: { opacity: 1, y: 0 }, transition: { duration: 0.6 }, viewport: { once: true } },
|
|
95
|
-
react_1.default.createElement(badge_1.Badge, { className: "mb-4 bg-blue-100 text-blue-700 hover:bg-blue-100" },
|
|
95
|
+
react_1.default.createElement(badge_1.Badge, { className: "mb-4 bg-blue-100 text-blue-700 hover:bg-blue-100" }, badge),
|
|
96
96
|
react_1.default.createElement("h2", { className: "mb-5 text-4xl font-bold text-gray-900 md:text-5xl" },
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
title,
|
|
98
|
+
" & ",
|
|
99
|
+
react_1.default.createElement("span", { className: "text-blue-700" }, lead)),
|
|
100
|
+
react_1.default.createElement("p", { className: "mx-auto max-w-2xl text-lg leading-relaxed text-gray-500" }, paragraph)),
|
|
101
|
+
react_1.default.createElement(framer_motion_1.motion.div, { className: "mb-12 grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-6", initial: { opacity: 0, y: 20 }, whileInView: { opacity: 1, y: 0 }, transition: { duration: 0.6, delay: 0.15 }, viewport: { once: true } }, highlights.map(function (h) { return (react_1.default.createElement("div", { key: h.label, className: "rounded-2xl border border-blue-100 bg-white px-3 py-4 text-center shadow-sm" },
|
|
101
102
|
react_1.default.createElement("div", { className: "text-2xl font-bold text-blue-700" }, h.value),
|
|
102
103
|
react_1.default.createElement("div", { className: "mt-0.5 text-xs font-semibold text-gray-800" }, h.label),
|
|
103
104
|
react_1.default.createElement("div", { className: "mt-0.5 text-xs text-gray-400" }, h.note))); })),
|
|
104
|
-
react_1.default.createElement(framer_motion_1.motion.div, { className: "mb-6 flex flex-wrap gap-2", initial: { opacity: 0, y: 16 }, whileInView: { opacity: 1, y: 0 }, transition: { duration: 0.5, delay: 0.2 }, viewport: { once: true } },
|
|
105
|
+
react_1.default.createElement(framer_motion_1.motion.div, { className: "mb-6 flex flex-wrap gap-2", initial: { opacity: 0, y: 16 }, whileInView: { opacity: 1, y: 0 }, transition: { duration: 0.5, delay: 0.2 }, viewport: { once: true } }, categories.map(function (cat) {
|
|
105
106
|
var Icon = categoryIcons[cat.icon];
|
|
106
107
|
var isActive = cat.id === activeTab;
|
|
107
108
|
return (react_1.default.createElement("button", { key: cat.id, onClick: function () { return setActiveTab(cat.id); }, className: "flex items-center gap-2 rounded-full border px-4 py-2 text-sm font-medium transition-all ".concat(isActive
|
|
@@ -121,6 +122,6 @@ var PoliciesSection = function (_a) {
|
|
|
121
122
|
react_1.default.createElement(badge_1.Badge, { className: "ml-auto ".concat(active.badgeClass, " hover:").concat(active.badgeClass) }, activeTab === "uniform"
|
|
122
123
|
? "2 seasons"
|
|
123
124
|
: "".concat(active.sections.length, " section").concat(active.sections.length !== 1 ? "s" : ""))),
|
|
124
|
-
activeTab === "uniform" ? (react_1.default.createElement(UniformPanel, { colorClass: active.colorClass, bgClass: active.bgClass, borderClass: active.borderClass, bulletBg: active.bulletBg, uniformData:
|
|
125
|
+
activeTab === "uniform" ? (react_1.default.createElement(UniformPanel, { colorClass: active.colorClass, bgClass: active.bgClass, borderClass: active.borderClass, bulletBg: active.bulletBg, uniformData: uniforms })) : (react_1.default.createElement("div", { className: "grid grid-cols-1 gap-3 lg:grid-cols-2" }, active.sections.map(function (section) { return (react_1.default.createElement(AccordionItem, { key: section.id, section: section, colorClass: active.colorClass, bgClass: active.bgClass, borderClass: active.borderClass, bulletBg: active.bulletBg })); }))))))));
|
|
125
126
|
};
|
|
126
127
|
exports.PoliciesSection = PoliciesSection;
|