@appcorp/shadcn 1.1.60 → 1.1.62

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/shadcn",
3
- "version": "1.1.60",
3
+ "version": "1.1.62",
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.66",
68
+ "@react-pakistan/util-functions": "^1.25.69",
69
69
  "@storybook/addon-docs": "^10.3.5",
70
70
  "@storybook/addon-onboarding": "^10.3.5",
71
71
  "@storybook/nextjs": "^10.3.5",
@@ -72,18 +72,16 @@ export type ContactData = {
72
72
  socialLinks: SocialLink[];
73
73
  mapEmbedSrc: string;
74
74
  mapOpenLink: string;
75
- cta: {
76
- title: string;
77
- lead: string;
78
- bullets: string[];
79
- primary: {
80
- label: string;
81
- href?: string;
82
- };
83
- secondary: {
84
- label: string;
85
- href?: string;
86
- };
75
+ ctaTitle: string;
76
+ ctaLead: string;
77
+ ctaBullets: string[];
78
+ ctaPrimary: {
79
+ label: string;
80
+ href?: string;
81
+ };
82
+ ctaSecondary: {
83
+ label: string;
84
+ href?: string;
87
85
  };
88
86
  };
89
87
  export type ContactDetail = {
@@ -110,15 +108,19 @@ export type FAQsData = {
110
108
  lead?: string;
111
109
  };
112
110
  export type FooterData = {
113
- brandShortName: string;
114
- brandFullName: string;
111
+ address: string;
115
112
  brandDescription: string;
116
- socialLinks: Array<{
117
- name: "facebook" | "twitter" | "instagram" | "youtube";
118
- href: string;
119
- aria?: string;
120
- enable: boolean;
121
- order: number;
113
+ brandFullName: string;
114
+ brandShortName: string;
115
+ emailHref: string;
116
+ emailLabel: string;
117
+ partnerLabel?: string;
118
+ partnerHref?: string;
119
+ phoneHref: string;
120
+ phoneLabel: string;
121
+ programs: Array<{
122
+ label: string;
123
+ id: string;
122
124
  }>;
123
125
  quickLinks: Array<{
124
126
  href: string;
@@ -126,17 +128,13 @@ export type FooterData = {
126
128
  enable: boolean;
127
129
  order: number;
128
130
  }>;
129
- programs: Array<{
130
- label: string;
131
- id: string;
131
+ socialLinks: Array<{
132
+ name: "facebook" | "twitter" | "instagram" | "youtube";
133
+ href: string;
134
+ aria?: string;
135
+ enable: boolean;
136
+ order: number;
132
137
  }>;
133
- address: string;
134
- phoneLabel: string;
135
- phoneHref: string;
136
- emailLabel: string;
137
- emailHref: string;
138
- partnerLabel?: string;
139
- partnerHref?: string;
140
138
  };
141
139
  export type HeroData = {
142
140
  slides: HeroSlide[];
@@ -293,18 +293,16 @@ exports.contactData = {
293
293
  ],
294
294
  mapEmbedSrc: "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d13608.254854601666!2d74.24767285761207!3d31.494932487606487!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3919025657a33827%3A0x4c94438286d20882!2sLahore%20Garrison%20Grammar%20School%20(Boys%20Campus)!5e0!3m2!1sen!2s!4v1772957143271!5m2!1sen!2s",
295
295
  mapOpenLink: "https://maps.google.com/?q=Lahore+Garrison+Grammar+School+Awan+Town+Multan+Road+Lahore",
296
- cta: {
297
- title: "Book a Campus Tour",
298
- lead: "There is no better way to experience LGGS than visiting in person. Walk our campus, meet our teachers, and see the warm, nurturing environment your child will call home.",
299
- bullets: [
300
- "Meet our Principal and faculty",
301
- "Tour both campuses",
302
- "Ask your questions in person",
303
- "Receive the full prospectus",
304
- ],
305
- primary: { label: "Book a Visit" },
306
- secondary: { label: "Call Us Now", href: "tel:+924235961207" },
307
- },
296
+ ctaTitle: "Book a Campus Tour",
297
+ ctaLead: "There is no better way to experience LGGS than visiting in person. Walk our campus, meet our teachers, and see the warm, nurturing environment your child will call home.",
298
+ ctaBullets: [
299
+ "Meet our Principal and faculty",
300
+ "Tour both campuses",
301
+ "Ask your questions in person",
302
+ "Receive the full prospectus",
303
+ ],
304
+ ctaPrimary: { label: "Book a Visit" },
305
+ ctaSecondary: { label: "Call Us Now", href: "tel:+924235961207" },
308
306
  };
309
307
  // FAQs
310
308
  exports.faqs = [
@@ -21,7 +21,7 @@ var iconMap = {
21
21
  Twitter: lucide_react_1.Twitter,
22
22
  };
23
23
  var ContactSection = function (_a) {
24
- var heading = _a.heading, headingHighlight = _a.headingHighlight, lead = _a.lead, badge = _a.badge, contactDetails = _a.contactDetails, socialLinks = _a.socialLinks, cta = _a.cta, mapEmbedSrc = _a.mapEmbedSrc, mapOpenLink = _a.mapOpenLink;
24
+ var badge = _a.badge, contactDetails = _a.contactDetails, ctaBullets = _a.ctaBullets, ctaLead = _a.ctaLead, ctaPrimary = _a.ctaPrimary, ctaSecondary = _a.ctaSecondary, ctaTitle = _a.ctaTitle, heading = _a.heading, headingHighlight = _a.headingHighlight, lead = _a.lead, mapEmbedSrc = _a.mapEmbedSrc, mapOpenLink = _a.mapOpenLink, socialLinks = _a.socialLinks;
25
25
  return (react_1.default.createElement("section", { id: "contact", className: "overflow-hidden bg-white py-24" },
26
26
  react_1.default.createElement("div", { className: "container mx-auto px-4" },
27
27
  react_1.default.createElement(framer_motion_1.motion.div, { className: "mb-16 text-center", initial: { opacity: 0, y: 30 }, whileInView: { opacity: 1, y: 0 }, transition: { duration: 0.6 }, viewport: { once: true } },
@@ -53,14 +53,14 @@ var ContactSection = function (_a) {
53
53
  react_1.default.createElement(link_1.default, { href: mapOpenLink, className: "text-xs font-medium text-blue-700 hover:underline" }, "Open in Google Maps")))),
54
54
  react_1.default.createElement(framer_motion_1.motion.div, { className: "flex flex-col justify-between rounded-3xl bg-linear-to-br from-blue-800 via-blue-700 to-blue-600 p-8 text-white", initial: { opacity: 0, x: 30 }, whileInView: { opacity: 1, x: 0 }, transition: { duration: 0.5, delay: 0.1 }, viewport: { once: true } },
55
55
  react_1.default.createElement("div", null,
56
- react_1.default.createElement("h3", { className: "mb-4 text-2xl font-bold" }, cta.title),
57
- react_1.default.createElement("p", { className: "mb-6 leading-relaxed text-blue-200" }, cta.lead),
58
- react_1.default.createElement("ul", { className: "mb-8 space-y-2" }, cta.bullets.map(function (item) { return (react_1.default.createElement("li", { key: item, className: "flex items-center gap-2 text-sm text-blue-100" },
56
+ react_1.default.createElement("h3", { className: "mb-4 text-2xl font-bold" }, ctaTitle),
57
+ react_1.default.createElement("p", { className: "mb-6 leading-relaxed text-blue-200" }, ctaLead),
58
+ react_1.default.createElement("ul", { className: "mb-8 space-y-2" }, ctaBullets.map(function (item) { return (react_1.default.createElement("li", { key: item, className: "flex items-center gap-2 text-sm text-blue-100" },
59
59
  react_1.default.createElement("span", { className: "h-1.5 w-1.5 shrink-0 rounded-full bg-yellow-400" }),
60
60
  item)); }))),
61
61
  react_1.default.createElement("div", { className: "flex flex-col gap-3 sm:flex-row" },
62
- react_1.default.createElement(button_1.Button, { className: "flex-1 bg-yellow-400 font-bold text-blue-900 hover:bg-yellow-300" }, cta.primary.label),
62
+ react_1.default.createElement(button_1.Button, { className: "flex-1 bg-yellow-400 font-bold text-blue-900 hover:bg-yellow-300" }, ctaPrimary.label),
63
63
  react_1.default.createElement(button_1.Button, { asChild: true, variant: "outline", className: "flex-1 border-white/40 bg-white/10 text-white hover:bg-white/20" },
64
- react_1.default.createElement(link_1.default, { href: cta.secondary.href || "#" }, cta.secondary.label))))))));
64
+ react_1.default.createElement(link_1.default, { href: ctaSecondary.href || "#" }, ctaSecondary.label))))))));
65
65
  };
66
66
  exports.ContactSection = ContactSection;