@appcorp/shadcn 1.1.56 → 1.1.58

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.
@@ -5,6 +5,8 @@ interface EnhancedCheckboxProps extends React.ComponentPropsWithoutRef<typeof Ch
5
5
  info?: string;
6
6
  label?: string;
7
7
  testId?: string;
8
+ id?: string;
9
+ onCheckedChange?: (checked: boolean) => void;
8
10
  }
9
11
  declare const EnhancedCheckbox: React.ForwardRefExoticComponent<EnhancedCheckboxProps & React.RefAttributes<HTMLButtonElement>>;
10
12
  export { EnhancedCheckbox };
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ export type EnhancedRadioOption = {
3
+ label: string;
4
+ value: string;
5
+ };
6
+ export type EnhancedRadioProps = {
7
+ label?: string;
8
+ name: string;
9
+ value: string;
10
+ options: EnhancedRadioOption[];
11
+ onValueChange: (value: string) => void;
12
+ className?: string;
13
+ };
14
+ export declare const EnhancedRadio: ({ className, label, name, onValueChange, options, value, }: EnhancedRadioProps) => React.JSX.Element;
@@ -0,0 +1,23 @@
1
+ "use client";
2
+ "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.EnhancedRadio = void 0;
8
+ var react_1 = __importDefault(require("react"));
9
+ var enhanced_label_1 = require("./enhanced-label");
10
+ var radio_group_1 = require("./ui/radio-group");
11
+ var utils_1 = require("../lib/utils");
12
+ var EnhancedRadio = function (_a) {
13
+ var className = _a.className, label = _a.label, name = _a.name, onValueChange = _a.onValueChange, options = _a.options, value = _a.value;
14
+ return (react_1.default.createElement("div", { className: (0, utils_1.cn)("w-full space-y-2", className) },
15
+ label ? react_1.default.createElement(enhanced_label_1.EnhancedLabel, null, label) : null,
16
+ react_1.default.createElement(radio_group_1.RadioGroup, { value: value, onValueChange: onValueChange }, options.map(function (option) {
17
+ var id = "".concat(name, "-").concat(option.value);
18
+ return (react_1.default.createElement("div", { key: option.value, className: "flex items-center space-x-2" },
19
+ react_1.default.createElement(radio_group_1.RadioGroupItem, { id: id, value: option.value }),
20
+ react_1.default.createElement(enhanced_label_1.EnhancedLabel, { htmlFor: id }, option.label)));
21
+ }))));
22
+ };
23
+ exports.EnhancedRadio = EnhancedRadio;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/shadcn",
3
- "version": "1.1.56",
3
+ "version": "1.1.58",
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",
@@ -248,15 +248,15 @@ export interface ManagementData {
248
248
  export declare const managementTeam: ManagementMember[];
249
249
  export declare const managementData: ManagementData;
250
250
  export interface Program {
251
- icon: string;
252
- title: string;
253
251
  ages: string;
254
- color: string;
255
- lightColor: string;
256
- textColor: string;
257
252
  borderColor: string;
253
+ color: string;
258
254
  description: string;
259
255
  highlights: string[];
256
+ icon: string;
257
+ lightColor: string;
258
+ textColor: string;
259
+ title: string;
260
260
  }
261
261
  export declare const programs: Program[];
262
262
  export interface ProgramsData {
@@ -27,6 +27,7 @@ var programs_1 = require("./sections/programs");
27
27
  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
+ var navigation_1 = require("./navigation");
30
31
  var SchoolV1Template = function (_a) {
31
32
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
32
33
  var overrides = _a.overrides;
@@ -41,6 +42,7 @@ var SchoolV1Template = function (_a) {
41
42
  var c = (_k = overrides === null || overrides === void 0 ? void 0 : overrides.contactData) !== null && _k !== void 0 ? _k : school_v1_1.contactData;
42
43
  var po = (_l = overrides === null || overrides === void 0 ? void 0 : overrides.policiesData) !== null && _l !== void 0 ? _l : school_v1_1.policiesData;
43
44
  return (react_1.default.createElement("div", null,
45
+ react_1.default.createElement(navigation_1.Navigation, __assign({}, school_v1_1.navigationData)),
44
46
  react_1.default.createElement(hero_1.HeroSection, __assign({}, h)),
45
47
  react_1.default.createElement(about_1.AboutSection, __assign({}, a)),
46
48
  react_1.default.createElement(programs_1.ProgramsSection, __assign({}, p)),
@@ -10,7 +10,7 @@ var badge_1 = require("../../../components/ui/badge");
10
10
  var lucide_react_1 = require("lucide-react");
11
11
  var react_1 = __importDefault(require("react"));
12
12
  var WhyChooseUsSection = function (_a) {
13
- var badge = _a.badge, highlights = _a.highlights, lead = _a.lead, paragraph = _a.paragraph, title = _a.title, features = _a.features;
13
+ var badge = _a.badge, features = _a.features, highlights = _a.highlights, lead = _a.lead, paragraph = _a.paragraph, title = _a.title;
14
14
  var _b = [features.slice(0, 2), features.slice(2)], firstTwo = _b[0], rest = _b[1];
15
15
  var iconMap = {
16
16
  award: lucide_react_1.Award,