@appcorp/shadcn 1.1.72 → 1.1.74

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.72",
3
+ "version": "1.1.74",
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",
@@ -855,18 +855,22 @@ exports.policyCategories = [
855
855
  {
856
856
  id: "preamble-1",
857
857
  text: "These rules apply to all students enrolled at LGGS, including any future branch.",
858
+ sub: [],
858
859
  },
859
860
  {
860
861
  id: "preamble-2",
861
862
  text: "Management reserves the right to modify, cancel, or amend any rules at any time.",
863
+ sub: [],
862
864
  },
863
865
  {
864
866
  id: "preamble-3",
865
867
  text: "The Managing Body is the final authority on interpretation of all rules, and its decisions are binding on all students.",
868
+ sub: [],
866
869
  },
867
870
  {
868
871
  id: "preamble-4",
869
872
  text: "All rules should be read in conjunction with existing and future rules applicable to the school.",
873
+ sub: [],
870
874
  },
871
875
  ],
872
876
  },
@@ -877,18 +881,22 @@ exports.policyCategories = [
877
881
  {
878
882
  id: "definitions-1",
879
883
  text: '"The School" means Lahore Garrison Grammar School or any of its branches.',
884
+ sub: [],
880
885
  },
881
886
  {
882
887
  id: "definitions-2",
883
888
  text: '"Management" means the managing body comprising duly constituted members.',
889
+ sub: [],
884
890
  },
885
891
  {
886
892
  id: "definitions-3",
887
893
  text: '"Competent Authority" means the Principal, Administrator, or any officer delegated relevant powers.',
894
+ sub: [],
888
895
  },
889
896
  {
890
897
  id: "definitions-4",
891
898
  text: '"Regular Student" means a student enrolled until completion of secondary-level education (Matriculation).',
899
+ sub: [],
892
900
  },
893
901
  ],
894
902
  },
@@ -912,30 +920,37 @@ exports.policyCategories = [
912
920
  {
913
921
  id: "admission-policy-1",
914
922
  text: "Academic session commences in March each year.",
923
+ sub: [],
915
924
  },
916
925
  {
917
926
  id: "admission-policy-2",
918
927
  text: "Admission to Class I–VIII is based on merit and a written examination in English, Maths, Urdu, and Science.",
928
+ sub: [],
919
929
  },
920
930
  {
921
931
  id: "admission-policy-3",
922
932
  text: "Shortlisted students are called for an interview and must be accompanied by a parent / guardian.",
933
+ sub: [],
923
934
  },
924
935
  {
925
936
  id: "admission-policy-4",
926
937
  text: "Admission schedules and interview dates are displayed on school notice boards in mid-November.",
938
+ sub: [],
927
939
  },
928
940
  {
929
941
  id: "admission-policy-5",
930
942
  text: "A student found unsuitable for a class will not be considered for any other class without a fresh registration and test.",
943
+ sub: [],
931
944
  },
932
945
  {
933
946
  id: "admission-policy-6",
934
947
  text: "Change of date of birth is not allowed after admission at any stage.",
948
+ sub: [],
935
949
  },
936
950
  {
937
951
  id: "admission-policy-7",
938
952
  text: "No admission fee is payable if an application for re-admission is submitted within 30 days of withdrawal.",
953
+ sub: [],
939
954
  },
940
955
  ],
941
956
  },
@@ -946,10 +961,23 @@ exports.policyCategories = [
946
961
  {
947
962
  id: "age-criteria-1",
948
963
  text: "Montessori / Play Group: 3 to 3½ years",
964
+ sub: [],
965
+ },
966
+ {
967
+ id: "age-criteria-2",
968
+ text: "Preparatory Classes: 4 to 4½ years",
969
+ sub: [],
970
+ },
971
+ {
972
+ id: "age-criteria-3",
973
+ text: "Class I to V: 5 to 10½ years",
974
+ sub: [],
975
+ },
976
+ {
977
+ id: "age-criteria-4",
978
+ text: "Class VI to VIII: 11 to 13 years",
979
+ sub: [],
949
980
  },
950
- { id: "age-criteria-2", text: "Preparatory Classes: 4 to 4½ years" },
951
- { id: "age-criteria-3", text: "Class I to V: 5 to 10½ years" },
952
- { id: "age-criteria-4", text: "Class VI to VIII: 11 to 13 years" },
953
981
  ],
954
982
  },
955
983
  {
@@ -959,10 +987,12 @@ exports.policyCategories = [
959
987
  {
960
988
  id: "transfer-1",
961
989
  text: "No admission fee is charged when a student qualifies for an inter-branch transfer.",
990
+ sub: [],
962
991
  },
963
992
  {
964
993
  id: "transfer-2",
965
994
  text: "Students of Class IX and X are strongly advised not to seek transfers during the final two years of schooling. The school will not be responsible for any consequences arising from such transfers.",
995
+ sub: [],
966
996
  },
967
997
  ],
968
998
  },
@@ -998,18 +1028,22 @@ exports.policyCategories = [
998
1028
  {
999
1029
  id: "exam-promotion-1",
1000
1030
  text: "30–40% of exam papers for Class III–VIII may include unseen content to assess conceptual understanding and creative writing.",
1031
+ sub: [],
1001
1032
  },
1002
1033
  {
1003
1034
  id: "exam-promotion-2",
1004
1035
  text: "Students must attain at least 50% marks in all core subjects to be eligible for promotion to the next class.",
1036
+ sub: [],
1005
1037
  },
1006
1038
  {
1007
1039
  id: "exam-promotion-3",
1008
1040
  text: "Class VIII students must achieve at least 60% marks in Urdu, English, Science, and Mathematics to opt for science subjects in Class IX.",
1041
+ sub: [],
1009
1042
  },
1010
1043
  {
1011
1044
  id: "exam-promotion-4",
1012
1045
  text: "Decisions of the Principal or Staff Council regarding results, promotion, or demotion are final and binding.",
1046
+ sub: [],
1013
1047
  },
1014
1048
  ],
1015
1049
  },
@@ -1030,6 +1064,7 @@ exports.policyCategories = [
1030
1064
  {
1031
1065
  id: "exam-withhold-2",
1032
1066
  text: "The school is not liable for any loss to a student arising from such withholding due to the student's own failure or lapse.",
1067
+ sub: [],
1033
1068
  },
1034
1069
  ],
1035
1070
  },
@@ -1053,30 +1088,37 @@ exports.policyCategories = [
1053
1088
  {
1054
1089
  id: "fee-rules-1",
1055
1090
  text: "Fee is accepted from the 1st to 15th of each month, 8:00 am – 11:00 am. If the 15th falls on a holiday, fees are accepted on the 16th.",
1091
+ sub: [],
1056
1092
  },
1057
1093
  {
1058
1094
  id: "fee-rules-2",
1059
1095
  text: "A late fine of Rs. 10/day is charged after the 15th until the 15th of the following month. After that, the student's name is struck off the roll.",
1096
+ sub: [],
1060
1097
  },
1061
1098
  {
1062
1099
  id: "fee-rules-3",
1063
1100
  text: "The School reserves the right to review and increase fees by a maximum of 10% per annum without prior notice.",
1101
+ sub: [],
1064
1102
  },
1065
1103
  {
1066
1104
  id: "fee-rules-4",
1067
1105
  text: "July and August fees are payable bi-monthly: July with April, and August with May.",
1106
+ sub: [],
1068
1107
  },
1069
1108
  {
1070
1109
  id: "fee-rules-5",
1071
1110
  text: "Annual / miscellaneous charges (worksheets, photocopies, etc.) are payable at the start of each academic session and are equivalent to one month's fee.",
1111
+ sub: [],
1072
1112
  },
1073
1113
  {
1074
1114
  id: "fee-rules-6",
1075
1115
  text: "Fee concessions or stipends may be granted to deserving students. These are withdrawn if the student fails any subject or exam.",
1116
+ sub: [],
1076
1117
  },
1077
1118
  {
1078
1119
  id: "fee-rules-7",
1079
1120
  text: "Dues once paid are non-refundable and non-transferable.",
1121
+ sub: [],
1080
1122
  },
1081
1123
  ],
1082
1124
  },
@@ -1087,22 +1129,27 @@ exports.policyCategories = [
1087
1129
  {
1088
1130
  id: "withdrawal-1",
1089
1131
  text: "One month's written notice is required before withdrawing a child, or one month's fee must be paid in lieu of notice.",
1132
+ sub: [],
1090
1133
  },
1091
1134
  {
1092
1135
  id: "withdrawal-2",
1093
1136
  text: "No notice is required if withdrawal occurs within one month of the annual result announcement.",
1137
+ sub: [],
1094
1138
  },
1095
1139
  {
1096
1140
  id: "withdrawal-3",
1097
1141
  text: "A student advised to withdraw for disciplinary reasons may be removed immediately at the sole discretion of the school.",
1142
+ sub: [],
1098
1143
  },
1099
1144
  {
1100
1145
  id: "withdrawal-4",
1101
1146
  text: "A student who fails the same class for two consecutive years may be asked to withdraw.",
1147
+ sub: [],
1102
1148
  },
1103
1149
  {
1104
1150
  id: "withdrawal-5",
1105
1151
  text: "School Leaving Certificate is issued only after all dues are cleared.",
1152
+ sub: [],
1106
1153
  },
1107
1154
  ],
1108
1155
  },
@@ -1126,22 +1173,27 @@ exports.policyCategories = [
1126
1173
  {
1127
1174
  id: "leave-rules-1",
1128
1175
  text: "Minimum attendance required: 80%. Students below 80% are ineligible to sit for examinations.",
1176
+ sub: [],
1129
1177
  },
1130
1178
  {
1131
1179
  id: "leave-rules-2",
1132
1180
  text: "Leave applications must be submitted on a prescribed form, signed by the student's father / lawful guardian, on the day of absence.",
1181
+ sub: [],
1133
1182
  },
1134
1183
  {
1135
1184
  id: "leave-rules-3",
1136
1185
  text: "Leave up to 3 days is sanctioned by the class teacher; more than 3 days requires Vice Principal or Principal approval.",
1186
+ sub: [],
1137
1187
  },
1138
1188
  {
1139
1189
  id: "leave-rules-4",
1140
1190
  text: "Medical leave of 4+ days requires a certificate from a registered doctor or hospital.",
1191
+ sub: [],
1141
1192
  },
1142
1193
  {
1143
1194
  id: "leave-rules-5",
1144
1195
  text: "Absence without permission for 6 consecutive school days results in the student's name being struck off the roll. Re-admission (once only) is available within the next 6 days upon repayment of admission fee.",
1196
+ sub: [],
1145
1197
  },
1146
1198
  {
1147
1199
  id: "leave-rules-6",
@@ -1156,6 +1208,7 @@ exports.policyCategories = [
1156
1208
  {
1157
1209
  id: "leave-rules-7",
1158
1210
  text: "A student may not leave school premises once attendance is marked, except with permission from the Principal or Vice Principal.",
1211
+ sub: [],
1159
1212
  },
1160
1213
  ],
1161
1214
  },
@@ -1197,6 +1250,7 @@ exports.policyCategories = [
1197
1250
  {
1198
1251
  id: "disciplinary-measures-2",
1199
1252
  text: "For any dispute, a committee is constituted comprising the Vice Principal, a member nominated by the Principal, a staff member nominated by the student, and a senior staff council member. The committee's decision is final and binding.",
1253
+ sub: [],
1200
1254
  },
1201
1255
  ],
1202
1256
  },
@@ -1220,38 +1274,47 @@ exports.policyCategories = [
1220
1274
  {
1221
1275
  id: "general-rules-1",
1222
1276
  text: "Parents must familiarise themselves fully with all school procedures. Admitting a child constitutes agreement to abide by all rules; no appeal against them will be entertained.",
1277
+ sub: [],
1223
1278
  },
1224
1279
  {
1225
1280
  id: "general-rules-2",
1226
1281
  text: "Students must wear the prescribed school uniform at all times while on campus.",
1282
+ sub: [],
1227
1283
  },
1228
1284
  {
1229
1285
  id: "general-rules-3",
1230
1286
  text: "Mobile phones are strictly prohibited. A student found with a mobile phone will be fined up to Rs. 1,000.",
1287
+ sub: [],
1231
1288
  },
1232
1289
  {
1233
1290
  id: "general-rules-4",
1234
1291
  text: "Late comers are fined Rs. 10/day or may be marked absent. Persistent late-coming may lead to expulsion.",
1292
+ sub: [],
1235
1293
  },
1236
1294
  {
1237
1295
  id: "general-rules-5",
1238
1296
  text: "Private telephone calls for students are not entertained; only emergency messages may be conveyed.",
1297
+ sub: [],
1239
1298
  },
1240
1299
  {
1241
1300
  id: "general-rules-6",
1242
1301
  text: "Sections allotted to students shall not be changed without valid justification.",
1302
+ sub: [],
1243
1303
  },
1244
1304
  {
1245
1305
  id: "general-rules-7",
1246
1306
  text: "The school is not responsible for injuries sustained during sports or co-curricular activities.",
1307
+ sub: [],
1247
1308
  },
1248
1309
  {
1249
1310
  id: "general-rules-8",
1250
1311
  text: "The school is not responsible for any consequences of postal delays.",
1312
+ sub: [],
1251
1313
  },
1252
1314
  {
1253
1315
  id: "general-rules-9",
1254
1316
  text: "Students are required to enrol for the next class and pay the prescribed fee after promotion, failing which their names will not appear on the class roll.",
1317
+ sub: [],
1255
1318
  },
1256
1319
  ],
1257
1320
  },
@@ -1262,14 +1325,17 @@ exports.policyCategories = [
1262
1325
  {
1263
1326
  id: "school-management-1",
1264
1327
  text: "The school management may shift any branch premises to another location without parental consent, with advance notice.",
1328
+ sub: [],
1265
1329
  },
1266
1330
  {
1267
1331
  id: "school-management-2",
1268
1332
  text: "The management reserves the right to make, revise, amend, or introduce any rule as required.",
1333
+ sub: [],
1269
1334
  },
1270
1335
  {
1271
1336
  id: "school-management-3",
1272
1337
  text: "Academic and disciplinary rules are not open to challenge.",
1338
+ sub: [],
1273
1339
  },
1274
1340
  ],
1275
1341
  },
@@ -48,34 +48,62 @@ var utils_1 = require("../../lib/utils");
48
48
  var Navigation = function (_a) {
49
49
  var brandFullName = _a.brandFullName, brandShortName = _a.brandShortName, ctaHref = _a.ctaHref, ctaLabel = _a.ctaLabel, items = _a.items;
50
50
  var _b = (0, react_1.useState)(false), scrolled = _b[0], setScrolled = _b[1];
51
- var _c = (0, react_1.useState)(false), open = _c[0], setOpen = _c[1];
51
+ var _c = (0, react_1.useState)(false), isHome = _c[0], setIsHome = _c[1];
52
+ var _d = (0, react_1.useState)(false), open = _d[0], setOpen = _d[1];
52
53
  (0, react_1.useEffect)(function () {
53
- var isHomePage = window.location.pathname === "/";
54
- if (isHomePage) {
54
+ var home = window.location.pathname === "/";
55
+ setIsHome(home);
56
+ if (home) {
55
57
  var handleScroll_1 = function () { return setScrolled(window.scrollY > 20); };
56
58
  window.addEventListener("scroll", handleScroll_1);
59
+ handleScroll_1();
57
60
  return function () { return window.removeEventListener("scroll", handleScroll_1); };
58
61
  }
62
+ else {
63
+ setScrolled(false);
64
+ }
59
65
  }, []);
60
- return (react_1.default.createElement("div", { className: (0, utils_1.cn)("fixed top-0 z-50 w-full transition-all duration-300", scrolled ? "bg-white/95 shadow-md backdrop-blur-sm" : "bg-transparent") },
66
+ return (react_1.default.createElement("div", { className: (0, utils_1.cn)(isHome
67
+ ? "fixed top-0 z-50 w-full transition-all duration-300"
68
+ : "sticky top-0 z-50 w-full", isHome
69
+ ? scrolled
70
+ ? "bg-white/95 shadow-md backdrop-blur-sm"
71
+ : "bg-transparent"
72
+ : "bg-white shadow-md") },
61
73
  react_1.default.createElement("nav", { className: "container mx-auto flex h-16 items-center justify-between px-4" },
62
74
  react_1.default.createElement(link_1.default, { href: "/", className: "flex items-center gap-2" },
63
75
  react_1.default.createElement("div", { className: "flex h-10 w-10 items-center justify-center rounded-full bg-blue-700" },
64
76
  react_1.default.createElement(lucide_react_1.GraduationCap, { className: "h-6 w-6 text-white" })),
65
77
  react_1.default.createElement("div", null,
66
- react_1.default.createElement("div", { className: (0, utils_1.cn)("text-sm leading-none font-bold", scrolled ? "text-blue-900" : "text-white") }, brandShortName),
67
- react_1.default.createElement("div", { className: (0, utils_1.cn)("text-xs leading-none", scrolled ? "text-blue-600" : "text-blue-100") }, brandFullName))),
78
+ react_1.default.createElement("div", { className: (0, utils_1.cn)("text-sm leading-none font-bold", isHome
79
+ ? scrolled
80
+ ? "text-blue-900"
81
+ : "text-white"
82
+ : "text-blue-900") }, brandShortName),
83
+ react_1.default.createElement("div", { className: (0, utils_1.cn)("text-xs leading-none", isHome
84
+ ? scrolled
85
+ ? "text-blue-600"
86
+ : "text-blue-100"
87
+ : "text-blue-600") }, brandFullName))),
68
88
  react_1.default.createElement("div", { className: "hidden items-center gap-6 lg:flex" },
69
89
  items
70
90
  .filter(function (l) { return l.enable; })
71
91
  .sort(function (a, b) { return a.order - b.order; })
72
- .map(function (link) { return (react_1.default.createElement(link_1.default, { key: "".concat(link.href, "-").concat(link.order), href: link.href, className: (0, utils_1.cn)("text-sm font-medium transition-colors hover:text-blue-400", scrolled ? "text-gray-700" : "text-white") }, link.label)); }),
92
+ .map(function (link) { return (react_1.default.createElement(link_1.default, { key: "".concat(link.href, "-").concat(link.order), href: link.href, className: (0, utils_1.cn)("text-sm font-medium transition-colors hover:text-blue-400", isHome
93
+ ? scrolled
94
+ ? "text-gray-700"
95
+ : "text-white"
96
+ : "text-gray-700") }, link.label)); }),
73
97
  react_1.default.createElement(button_1.Button, { asChild: true, size: "sm", className: "bg-blue-700 hover:bg-blue-800" },
74
98
  react_1.default.createElement(link_1.default, { href: ctaHref }, ctaLabel))),
75
99
  react_1.default.createElement(sheet_1.Sheet, { open: open, onOpenChange: setOpen },
76
100
  react_1.default.createElement(sheet_1.SheetTrigger, { asChild: true, className: "lg:hidden" },
77
101
  react_1.default.createElement(button_1.Button, { variant: "ghost", size: "icon" },
78
- react_1.default.createElement(lucide_react_1.Menu, { className: scrolled ? "text-gray-700" : "text-white" }))),
102
+ react_1.default.createElement(lucide_react_1.Menu, { className: isHome
103
+ ? scrolled
104
+ ? "text-gray-700"
105
+ : "text-white"
106
+ : "text-gray-700" }))),
79
107
  react_1.default.createElement(sheet_1.SheetContent, { side: "right", className: "w-72" },
80
108
  react_1.default.createElement("div", { className: "flex items-center gap-2 py-4" },
81
109
  react_1.default.createElement("div", { className: "flex h-10 w-10 items-center justify-center rounded-full bg-blue-700" },
@@ -89,7 +117,7 @@ var Navigation = function (_a) {
89
117
  .filter(function (l) { return l.enable; })
90
118
  .sort(function (a, b) { return a.order - b.order; })
91
119
  .map(function (link) { return (react_1.default.createElement(link_1.default, { key: "".concat(link.href, "-").concat(link.order), href: link.href, onClick: function () { return setOpen(false); }, className: "rounded-md px-3 py-2 text-sm font-medium text-gray-700 transition-colors hover:bg-blue-50 hover:text-blue-700" }, link.label)); }),
92
- react_1.default.createElement(button_1.Button, { asChild: true, className: "mt-4 bg-blue-700 !text-white hover:bg-blue-800" },
120
+ react_1.default.createElement(button_1.Button, { asChild: true, className: "mt-4 bg-blue-700 text-white hover:bg-blue-800" },
93
121
  react_1.default.createElement(link_1.default, { href: ctaHref, onClick: function () { return setOpen(false); } }, ctaLabel))))))));
94
122
  };
95
123
  exports.Navigation = Navigation;