@appcorp/shadcn 1.1.59 → 1.1.60

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.59",
3
+ "version": "1.1.60",
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,10 +65,10 @@
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.39",
69
- "@storybook/addon-docs": "^10",
70
- "@storybook/addon-onboarding": "^10",
71
- "@storybook/nextjs": "^10",
68
+ "@react-pakistan/util-functions": "^1.25.66",
69
+ "@storybook/addon-docs": "^10.3.5",
70
+ "@storybook/addon-onboarding": "^10.3.5",
71
+ "@storybook/nextjs": "^10.3.5",
72
72
  "@tabler/icons-react": "^3",
73
73
  "@tailwindcss/postcss": "^4",
74
74
  "@tanstack/react-table": "^8",
@@ -96,7 +96,7 @@
96
96
  "eslint-config-next": "^16",
97
97
  "eslint-config-prettier": "^10",
98
98
  "eslint-plugin-react-hooks": "^4",
99
- "eslint-plugin-storybook": "^10",
99
+ "eslint-plugin-storybook": "^10.3.5",
100
100
  "husky": "^9",
101
101
  "input-otp": "^1",
102
102
  "jest": "^30",
@@ -123,7 +123,7 @@
123
123
  "recharts": "3",
124
124
  "rimraf": "^6",
125
125
  "sonner": "^2",
126
- "storybook": "^10",
126
+ "storybook": "^10.3.5",
127
127
  "tailwind-merge": "^3",
128
128
  "tailwindcss": "^4",
129
129
  "ts-node": "^10",
@@ -1,67 +1,16 @@
1
1
  import type { LucideIcon } from "lucide-react";
2
- export type NavLink = {
3
- href: string;
4
- label: string;
5
- enable: boolean;
6
- order: number;
7
- };
8
- export type NavigationData = {
9
- brand: {
10
- shortName: string;
11
- fullName: string;
12
- };
13
- navLinks: NavLink[];
14
- applyNow: {
15
- label: string;
16
- href: string;
17
- };
18
- };
19
- export declare const navigationData: NavigationData;
20
- export type FooterData = {
21
- brand: {
22
- shortName: string;
23
- fullName: string;
24
- tagline?: string;
25
- description: string;
26
- };
27
- socialLinks: Array<{
28
- name: "facebook" | "twitter" | "instagram" | "youtube";
29
- href: string;
30
- aria?: string;
31
- enable: boolean;
32
- order: number;
33
- }>;
34
- quickLinks: Array<{
35
- href: string;
36
- label: string;
37
- enable: boolean;
38
- order: number;
39
- }>;
40
- programs: string[];
41
- contact: {
42
- address: string;
43
- phone: {
44
- label: string;
45
- href: string;
46
- };
47
- email: {
48
- label: string;
49
- href: string;
50
- };
51
- };
52
- partners?: Array<{
53
- label: string;
54
- href: string;
2
+ export type AboutData = {
3
+ badge?: string;
4
+ heading: string;
5
+ headingHighlight?: string;
6
+ lead: string;
7
+ paragraphs: Array<{
8
+ id: string;
9
+ content: string;
55
10
  }>;
56
- };
57
- export declare const footerData: FooterData;
58
- export type AboutValue = {
59
- icon: "Star" | "Heart" | "Target" | "Eye";
60
- title: string;
61
- description: string;
62
- color: string;
63
- iconColor: string;
64
- borderColor: string;
11
+ values: AboutValue[];
12
+ stats: AboutStat[];
13
+ milestones: AboutMilestone[];
65
14
  };
66
15
  export type AboutMilestone = {
67
16
  year: string;
@@ -72,17 +21,14 @@ export type AboutStat = {
72
21
  label: string;
73
22
  color: string;
74
23
  };
75
- export type AboutData = {
76
- badge?: string;
77
- heading: string;
78
- headingHighlight?: string;
79
- lead: string;
80
- paragraphs: string[];
81
- values: AboutValue[];
82
- stats: AboutStat[];
83
- milestones: AboutMilestone[];
24
+ export type AboutValue = {
25
+ icon: "Star" | "Heart" | "Target" | "Eye";
26
+ title: string;
27
+ description: string;
28
+ color: string;
29
+ iconColor: string;
30
+ borderColor: string;
84
31
  };
85
- export declare const aboutData: AboutData;
86
32
  export interface AdmissionStep {
87
33
  icon: LucideIcon;
88
34
  step: string;
@@ -97,53 +43,25 @@ export type AdmissionStepSerializable = {
97
43
  description: string;
98
44
  color: string;
99
45
  };
100
- export interface KeyDate {
101
- date: string;
102
- event: string;
103
- status: "upcoming" | "open" | "closed";
104
- }
105
- export declare const admissionSteps: AdmissionStep[];
106
- export declare const keyDates: KeyDate[];
107
- export declare const documentsRequired: string[];
108
- export type AdmissionsCTA = {
109
- downloadLabel: string;
110
- phone: {
111
- label: string;
112
- href: string;
113
- };
114
- email: {
115
- label: string;
116
- href: string;
117
- };
118
- };
119
46
  export type AdmissionsData = {
47
+ admissionSteps: AdmissionStepSerializable[];
120
48
  badge?: string;
49
+ ctaDownloadLabel: string;
50
+ ctaEmailHref: string;
51
+ ctaEmailLabel: string;
52
+ ctaPhoneHref: string;
53
+ ctaPhoneLabel: string;
54
+ documentsRequired: Array<{
55
+ id: string;
56
+ content: string;
57
+ }>;
58
+ documentsTitle?: string;
121
59
  heading: string;
122
60
  headingHighlight?: string;
61
+ keyDates: KeyDate[];
62
+ keyDatesTitle?: string;
123
63
  lead: string;
124
64
  stepsTitle?: string;
125
- keyDatesTitle?: string;
126
- documentsTitle?: string;
127
- cta: AdmissionsCTA;
128
- admissionSteps: AdmissionStepSerializable[];
129
- keyDates: KeyDate[];
130
- documentsRequired: string[];
131
- };
132
- export declare const admissionsData: AdmissionsData;
133
- export type ContactIcon = "MapPin" | "Phone" | "Mail" | "Clock";
134
- export type SocialIcon = "Facebook" | "Instagram" | "Twitter";
135
- export type ContactDetail = {
136
- icon: ContactIcon;
137
- label: string;
138
- value: string;
139
- href: string | null;
140
- color: string;
141
- bg: string;
142
- };
143
- export type SocialLink = {
144
- icon: SocialIcon;
145
- href: string;
146
- label: string;
147
65
  };
148
66
  export type ContactData = {
149
67
  badge: string;
@@ -168,14 +86,15 @@ export type ContactData = {
168
86
  };
169
87
  };
170
88
  };
171
- export declare const contactData: ContactData;
172
- export interface FAQ {
173
- id: string;
174
- question: string;
175
- answer: string;
176
- icon: LucideIcon;
177
- category: string;
178
- }
89
+ export type ContactDetail = {
90
+ icon: ContactIcon;
91
+ label: string;
92
+ value: string;
93
+ href: string | null;
94
+ color: string;
95
+ bg: string;
96
+ };
97
+ export type ContactIcon = "MapPin" | "Phone" | "Mail" | "Clock";
179
98
  export type FAQSerializable = {
180
99
  id: string;
181
100
  question: string;
@@ -184,45 +103,72 @@ export type FAQSerializable = {
184
103
  category: string;
185
104
  };
186
105
  export type FAQsData = {
187
- badge?: string;
106
+ badge: string;
188
107
  heading?: string;
189
108
  headingHighlight?: string;
109
+ items: FAQSerializable[];
190
110
  lead?: string;
191
- faqs: FAQSerializable[];
192
111
  };
193
- export declare const faqsList: FAQ[];
194
- export declare const faqs: FAQSerializable[];
195
- export declare const faqsData: FAQsData;
112
+ export type FooterData = {
113
+ brandShortName: string;
114
+ brandFullName: string;
115
+ brandDescription: string;
116
+ socialLinks: Array<{
117
+ name: "facebook" | "twitter" | "instagram" | "youtube";
118
+ href: string;
119
+ aria?: string;
120
+ enable: boolean;
121
+ order: number;
122
+ }>;
123
+ quickLinks: Array<{
124
+ href: string;
125
+ label: string;
126
+ enable: boolean;
127
+ order: number;
128
+ }>;
129
+ programs: Array<{
130
+ label: string;
131
+ id: string;
132
+ }>;
133
+ address: string;
134
+ phoneLabel: string;
135
+ phoneHref: string;
136
+ emailLabel: string;
137
+ emailHref: string;
138
+ partnerLabel?: string;
139
+ partnerHref?: string;
140
+ };
141
+ export type HeroData = {
142
+ slides: HeroSlide[];
143
+ stats: typeof heroStats;
144
+ };
196
145
  export interface HeroSlide {
197
146
  id: string;
198
147
  badge: string;
199
148
  headline: string;
200
149
  subheadline: string;
201
150
  description: string;
202
- primaryCta: {
203
- label: string;
204
- href: string;
205
- };
206
- secondaryCta: {
207
- label: string;
208
- href: string;
209
- };
151
+ primaryCtaLabel: string;
152
+ primaryCtaHref: string;
153
+ secondaryCtaLabel: string;
154
+ secondaryCtaHref: string;
210
155
  gradient: string;
211
156
  accentColor: string;
212
157
  pattern: string;
213
158
  imageUrl: string;
214
159
  }
215
- export declare const heroSlides: HeroSlide[];
216
- export declare const heroStats: {
217
- value: string;
218
- label: string;
219
- icon: string;
220
- }[];
221
- export type HeroData = {
222
- slides: HeroSlide[];
223
- stats: typeof heroStats;
224
- };
225
- export declare const heroData: HeroData;
160
+ export interface KeyDate {
161
+ date: string;
162
+ event: string;
163
+ status: "upcoming" | "open" | "closed";
164
+ }
165
+ export interface ManagementData {
166
+ badge?: string;
167
+ heading: string;
168
+ headingHighlight?: string;
169
+ lead: string;
170
+ team: ManagementMember[];
171
+ }
226
172
  export interface ManagementMember {
227
173
  avatar: string;
228
174
  bio: string;
@@ -231,22 +177,43 @@ export interface ManagementMember {
231
177
  initials: string;
232
178
  name: string;
233
179
  qualifications: string;
234
- socialLinks?: {
235
- facebook?: string;
236
- twitter?: string;
237
- instagram?: string;
238
- };
239
180
  title: string;
240
181
  }
241
- export interface ManagementData {
242
- badge?: string;
243
- heading: string;
244
- headingHighlight?: string;
245
- lead: string;
246
- team: ManagementMember[];
182
+ export type NavLink = {
183
+ href: string;
184
+ label: string;
185
+ enable: boolean;
186
+ order: number;
187
+ };
188
+ export type NavigationData = {
189
+ brandShortName: string;
190
+ brandFullName: string;
191
+ items: NavLink[];
192
+ ctaLabel: string;
193
+ ctaHref: string;
194
+ };
195
+ export interface PolicyCategory {
196
+ id: string;
197
+ label: string;
198
+ icon: string;
199
+ colorClass: string;
200
+ bgClass: string;
201
+ borderClass: string;
202
+ badgeClass: string;
203
+ bulletBg: string;
204
+ description: string;
205
+ sections: PolicySection[];
206
+ }
207
+ export interface PolicyPoint {
208
+ text: string;
209
+ sub?: string[];
210
+ id: string;
211
+ }
212
+ export interface PolicySection {
213
+ id: string;
214
+ title: string;
215
+ points: PolicyPoint[];
247
216
  }
248
- export declare const managementTeam: ManagementMember[];
249
- export declare const managementData: ManagementData;
250
217
  export interface Program {
251
218
  ages: string;
252
219
  borderColor: string;
@@ -258,14 +225,12 @@ export interface Program {
258
225
  textColor: string;
259
226
  title: string;
260
227
  }
261
- export declare const programs: Program[];
262
228
  export interface ProgramsData {
263
229
  badge: string;
264
230
  title: string;
265
231
  lead: string;
266
232
  programs: Program[];
267
233
  }
268
- export declare const programsData: ProgramsData;
269
234
  export interface Testimonial {
270
235
  id: string;
271
236
  quote: string;
@@ -275,82 +240,96 @@ export interface Testimonial {
275
240
  gradientFrom: string;
276
241
  gradientTo: string;
277
242
  }
278
- export declare const testimonials: Testimonial[];
279
243
  export type TestimonialData = {
280
244
  badge: string;
281
245
  heading: string;
282
246
  headingHighlight?: string;
283
- lead: string;
284
247
  items: Testimonial[];
248
+ lead: string;
249
+ };
250
+ export interface UniformSeason {
251
+ season: "Summer" | "Winter";
252
+ variants: UniformVariant[];
253
+ }
254
+ export interface UniformVariant {
255
+ gender: "Boys" | "Girls";
256
+ classes: string;
257
+ items: string[];
258
+ }
259
+ export type PoliciesHighlight = {
260
+ label: string;
261
+ value: string;
262
+ note: string;
263
+ };
264
+ export interface PoliciesData {
265
+ badge: string;
266
+ title: string;
267
+ paragraph: string;
268
+ lead: string;
269
+ highlights: PoliciesHighlight[];
270
+ categories: PolicyCategory[];
271
+ uniforms: UniformSeason[];
272
+ }
273
+ export type SocialIcon = "Facebook" | "Instagram" | "Twitter";
274
+ export type SocialLink = {
275
+ icon: SocialIcon;
276
+ href: string;
277
+ label: string;
285
278
  };
286
- export declare const testimonialData: TestimonialData;
287
279
  export interface WhyUsFeature {
288
280
  icon: string;
289
281
  title: string;
290
282
  description: string;
291
283
  color: string;
292
284
  }
293
- export declare const whyUsFeatures: WhyUsFeature[];
294
- export declare const highlightBadges: string[];
295
285
  export interface WhyUsData {
296
286
  badge: string;
297
287
  title: string;
298
288
  lead: string;
299
289
  paragraph: string;
300
290
  features: WhyUsFeature[];
301
- highlights: string[];
302
- }
303
- export declare const whysUsData: WhyUsData;
304
- export interface UniformVariant {
305
- gender: "Boys" | "Girls";
306
- classes: string;
307
- items: string[];
308
- }
309
- export interface UniformSeason {
310
- season: "Summer" | "Winter";
311
- variants: UniformVariant[];
312
- }
313
- export declare const uniformData: UniformSeason[];
314
- export interface PolicyPoint {
315
- text: string;
316
- sub?: string[];
317
- }
318
- export interface PolicySection {
319
- id: string;
320
- title: string;
321
- points: PolicyPoint[];
291
+ highlights: Array<{
292
+ content: string;
293
+ id: string;
294
+ }>;
322
295
  }
323
- export interface PolicyCategory {
296
+ export declare const navigationData: NavigationData;
297
+ export declare const footerData: FooterData;
298
+ export declare const aboutData: AboutData;
299
+ export declare const admissionSteps: AdmissionStep[];
300
+ export declare const keyDates: KeyDate[];
301
+ export declare const documentsRequired: {
324
302
  id: string;
303
+ content: string;
304
+ }[];
305
+ export declare const admissionsData: AdmissionsData;
306
+ export declare const contactData: ContactData;
307
+ export declare const faqs: FAQSerializable[];
308
+ export declare const faqsData: FAQsData;
309
+ export declare const heroSlides: HeroSlide[];
310
+ export declare const heroStats: {
311
+ value: string;
325
312
  label: string;
326
313
  icon: string;
327
- colorClass: string;
328
- bgClass: string;
329
- borderClass: string;
330
- badgeClass: string;
331
- bulletBg: string;
332
- description: string;
333
- sections: PolicySection[];
334
- }
314
+ }[];
315
+ export declare const heroData: HeroData;
316
+ export declare const managementTeam: ManagementMember[];
317
+ export declare const managementData: ManagementData;
318
+ export declare const programs: Program[];
319
+ export declare const programsData: ProgramsData;
320
+ export declare const testimonials: Testimonial[];
321
+ export declare const testimonialData: TestimonialData;
322
+ export declare const whyUsFeatures: WhyUsFeature[];
323
+ export declare const highlightBadges: {
324
+ content: string;
325
+ id: string;
326
+ }[];
327
+ export declare const whysUsData: WhyUsData;
328
+ export declare const uniformData: UniformSeason[];
335
329
  export declare const policyCategories: PolicyCategory[];
336
330
  export declare const policyHighlights: {
337
331
  label: string;
338
332
  value: string;
339
333
  note: string;
340
334
  }[];
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
335
  export declare const policiesData: PoliciesData;
356
- export {};