@nomos-ui/form 0.2.1 → 0.3.1

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.
@@ -0,0 +1,45 @@
1
+ import { Control, FieldValues, Path, PathValue } from "react-hook-form";
2
+ import { SwitchProps } from "./switch";
3
+ /**
4
+ * Props for the `FormSwitch` component with type-safe form integration.
5
+ */
6
+ export type FormSwitchProps<TFieldValues extends FieldValues> = {
7
+ /** React Hook Form control instance */
8
+ control: Control<TFieldValues>;
9
+ /** The name of the field (type-safe, must match form schema) */
10
+ name: Path<TFieldValues>;
11
+ /** Default value of the switch */
12
+ defaultValue?: PathValue<TFieldValues, Path<TFieldValues>>;
13
+ } & Omit<SwitchProps, "checked" | "onCheckedChange">;
14
+ /**
15
+ * A form switch component that adds type-safe form functionality to Switch.
16
+ * Designed to integrate with React Hook Form with full TypeScript support.
17
+ *
18
+ * @component
19
+ * @example
20
+ * ```tsx
21
+ * type FormData = {
22
+ * notifications: boolean;
23
+ * darkMode: boolean;
24
+ * };
25
+ *
26
+ * const { control } = useForm<FormData>();
27
+ *
28
+ * <FormSwitch
29
+ * control={control}
30
+ * name="notifications"
31
+ * label="Enable notifications"
32
+ * required
33
+ * />
34
+ *
35
+ * <FormSwitch
36
+ * control={control}
37
+ * name="darkMode"
38
+ * label="Dark mode"
39
+ * labelPosition="start"
40
+ * size="sm"
41
+ * />
42
+ * ```
43
+ */
44
+ export default function FormSwitch<TFieldValues extends FieldValues>({ control, name, defaultValue, required, ...props }: FormSwitchProps<TFieldValues>): import("react/jsx-runtime").JSX.Element;
45
+ //# sourceMappingURL=form-switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-switch.d.ts","sourceRoot":"","sources":["../../src/components/form-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,OAAO,EACP,WAAW,EACX,IAAI,EACJ,SAAS,EACV,MAAM,iBAAiB,CAAC;AACzB,OAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG/C;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,YAAY,SAAS,WAAW,IAAI;IAC9D,uCAAuC;IACvC,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,gEAAgE;IAChE,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IACzB,kCAAkC;IAClC,YAAY,CAAC,EAAE,SAAS,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;CAC5D,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,iBAAiB,CAAC,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,YAAY,SAAS,WAAW,EAAE,EACnE,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,QAAgB,EAChB,GAAG,KAAK,EACT,EAAE,eAAe,CAAC,YAAY,CAAC,2CAqB/B"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = FormSwitch;
7
+ const jsx_runtime_1 = require("react/jsx-runtime");
8
+ const react_hook_form_1 = require("react-hook-form");
9
+ const switch_1 = __importDefault(require("./switch"));
10
+ const form_helpers_1 = require("../utils/helpers/form.helpers");
11
+ /**
12
+ * A form switch component that adds type-safe form functionality to Switch.
13
+ * Designed to integrate with React Hook Form with full TypeScript support.
14
+ *
15
+ * @component
16
+ * @example
17
+ * ```tsx
18
+ * type FormData = {
19
+ * notifications: boolean;
20
+ * darkMode: boolean;
21
+ * };
22
+ *
23
+ * const { control } = useForm<FormData>();
24
+ *
25
+ * <FormSwitch
26
+ * control={control}
27
+ * name="notifications"
28
+ * label="Enable notifications"
29
+ * required
30
+ * />
31
+ *
32
+ * <FormSwitch
33
+ * control={control}
34
+ * name="darkMode"
35
+ * label="Dark mode"
36
+ * labelPosition="start"
37
+ * size="sm"
38
+ * />
39
+ * ```
40
+ */
41
+ function FormSwitch({ control, name, defaultValue, required = false, ...props }) {
42
+ return ((0, jsx_runtime_1.jsx)("div", { className: "w-full", children: (0, jsx_runtime_1.jsx)(react_hook_form_1.Controller, { control: control, name: name, defaultValue: defaultValue, rules: { required: required ? "Required" : false }, render: ({ field: { onChange, value }, formState: { errors } }) => ((0, jsx_runtime_1.jsx)(switch_1.default, { switchProps: { id: `form-switch-${name}` }, checked: !!value, onCheckedChange: onChange, required: required, error: (0, form_helpers_1.getNestedErrorMessage)(errors || {}, name), ...props })) }) }));
43
+ }
44
+ //# sourceMappingURL=form-switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-switch.js","sourceRoot":"","sources":["../../src/components/form-switch.tsx"],"names":[],"mappings":";;;;;AAoDA,6BA2BC;;AA/ED,qDAMyB;AACzB,sDAA+C;AAC/C,gEAAsE;AActE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,SAAwB,UAAU,CAAmC,EACnE,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,QAAQ,GAAG,KAAK,EAChB,GAAG,KAAK,EACsB;IAC9B,OAAO,CACL,gCAAK,SAAS,EAAC,QAAQ,YACrB,uBAAC,4BAAU,IACT,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,EAAE,EAClD,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CACjE,uBAAC,gBAAM,IACL,WAAW,EAAE,EAAE,EAAE,EAAE,eAAe,IAAI,EAAE,EAAE,EAC1C,OAAO,EAAE,CAAC,CAAC,KAAK,EAChB,eAAe,EAAE,QAAQ,EACzB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,IAAA,oCAAqB,EAAC,MAAM,IAAI,EAAE,EAAE,IAAI,CAAW,KACtD,KAAK,GACT,CACH,GACD,GACE,CACP,CAAC;AACJ,CAAC"}
@@ -1,2 +1,24 @@
1
- export {};
1
+ import * as React from "react";
2
+ import * as SwitchPrimitive from "@radix-ui/react-switch";
3
+ export type SwitchProps = {
4
+ className?: string;
5
+ label?: string;
6
+ required?: boolean;
7
+ showRequiredSign?: boolean;
8
+ checked?: boolean;
9
+ onCheckedChange?: (checked: boolean) => void;
10
+ size?: "sm" | "default";
11
+ labelProps?: React.ComponentProps<"label">;
12
+ switchProps?: Omit<React.ComponentProps<typeof SwitchPrimitive.Root>, "checked" | "onCheckedChange">;
13
+ /** Place the label before ("start") or after ("end") the switch. Defaults to "end". */
14
+ labelPosition?: "start" | "end";
15
+ error?: string;
16
+ tip?: string;
17
+ disabled?: boolean;
18
+ };
19
+ /**
20
+ * Switch with an optional label, tip, and error message.
21
+ * Mirrors the Select component's label + error + tip pattern.
22
+ */
23
+ export default function Switch({ className, label, required, showRequiredSign, checked, onCheckedChange, size, labelProps, switchProps, labelPosition, error, tip, disabled, }: SwitchProps): import("react/jsx-runtime").JSX.Element;
2
24
  //# sourceMappingURL=switch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/components/switch.tsx"],"names":[],"mappings":""}
1
+ {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/components/switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAK1D,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAC3C,WAAW,CAAC,EAAE,IAAI,CAChB,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,EACjD,SAAS,GAAG,iBAAiB,CAC9B,CAAC;IACF,uFAAuF;IACvF,aAAa,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,SAAS,EACT,KAAK,EACL,QAAgB,EAChB,gBAAwB,EACxB,OAAO,EACP,eAAe,EACf,IAAgB,EAChB,UAAU,EACV,WAAW,EACX,aAAqB,EACrB,KAAK,EACL,GAAG,EACH,QAAQ,GACT,EAAE,WAAW,2CAkDb"}
@@ -1,3 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = Switch;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const tailwind_merge_1 = require("tailwind-merge");
6
+ const lucide_react_1 = require("lucide-react");
7
+ const switch_1 = require("./shadcn-ui/switch");
8
+ /**
9
+ * Switch with an optional label, tip, and error message.
10
+ * Mirrors the Select component's label + error + tip pattern.
11
+ */
12
+ function Switch({ className, label, required = false, showRequiredSign = false, checked, onCheckedChange, size = "default", labelProps, switchProps, labelPosition = "end", error, tip, disabled, }) {
13
+ const switchId = switchProps?.id ??
14
+ (label ? `switch-${label.toLowerCase().replace(/\s+/g, "-")}` : undefined);
15
+ const switchEl = ((0, jsx_runtime_1.jsx)(switch_1.Switch, { ...switchProps, id: switchId, size: size, checked: checked, onCheckedChange: onCheckedChange, disabled: disabled, "aria-invalid": !!error }));
16
+ const labelEl = label ? ((0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row items-center gap-1", children: [(0, jsx_runtime_1.jsx)("label", { ...labelProps, htmlFor: labelProps?.htmlFor ?? switchId, className: (0, tailwind_merge_1.twMerge)("font-bold cursor-pointer", disabled && "opacity-50 cursor-not-allowed", labelProps?.className), children: label }), required && showRequiredSign && (0, jsx_runtime_1.jsx)(lucide_react_1.AsteriskIcon, { size: 12, color: "red" })] })) : null;
17
+ return ((0, jsx_runtime_1.jsxs)("div", { className: (0, tailwind_merge_1.twMerge)("gap-1 grid w-full", className), children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-row items-center gap-2", children: [labelPosition === "start" && labelEl, switchEl, labelPosition === "end" && labelEl] }), tip && !error && ((0, jsx_runtime_1.jsx)("p", { className: "text-xs text-muted-foreground tip-message", children: tip })), error && ((0, jsx_runtime_1.jsxs)("p", { className: "text-xs text-destructive error-message", children: ["*", error] }))] }));
18
+ }
3
19
  //# sourceMappingURL=switch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"switch.js","sourceRoot":"","sources":["../../src/components/switch.tsx"],"names":[],"mappings":""}
1
+ {"version":3,"file":"switch.js","sourceRoot":"","sources":["../../src/components/switch.tsx"],"names":[],"mappings":";;AA8BA,yBAgEC;;AA5FD,mDAAyC;AACzC,+CAA4C;AAC5C,+CAA4D;AAsB5D;;;GAGG;AACH,SAAwB,MAAM,CAAC,EAC7B,SAAS,EACT,KAAK,EACL,QAAQ,GAAG,KAAK,EAChB,gBAAgB,GAAG,KAAK,EACxB,OAAO,EACP,eAAe,EACf,IAAI,GAAG,SAAS,EAChB,UAAU,EACV,WAAW,EACX,aAAa,GAAG,KAAK,EACrB,KAAK,EACL,GAAG,EACH,QAA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AAC"}
@@ -9,9 +9,13 @@ import ImageInput from "../components/image-input";
9
9
  import FileInput, { FileInputProps } from "../components/file-input";
10
10
  import FormFileInput, { FormFileInputProps } from "../components/form-file-input";
11
11
  import FormDebugInfo from "../components/form-debug-info";
12
- export { FormDebugInfo, FormInput, Input, Select, FormSelect, Textarea, FormTextarea, ImageInput, FormImageInput, FileInput, FormFileInput, };
13
- export type { SelectOption, SelectProps, FormSelectProps, FormFileInputProps, FileInputProps, };
12
+ import Switch, { SwitchProps } from "../components/switch";
13
+ import FormSwitch, { FormSwitchProps } from "../components/form-switch";
14
+ export { FormDebugInfo, FormInput, Input, Select, FormSelect, Textarea, FormTextarea, ImageInput, FormImageInput, FileInput, FormFileInput, Switch, FormSwitch, };
15
+ export type { SelectOption, SelectProps, FormSelectProps, FormFileInputProps, FileInputProps, SwitchProps, FormSwitchProps, };
14
16
  export * from "../components/input";
17
+ export * from "../components/switch";
18
+ export * from "../components/form-switch";
15
19
  export * from "../components/form-input";
16
20
  export * from "../components/file-input";
17
21
  export * from "../components/form-file-input";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exports/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,MAAM,EAAE,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,UAAU,EAAE,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAC5D,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,SAAS,EAAE,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,aAAa,EAAE,EACpB,kBAAkB,EACnB,MAAM,+BAA+B,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AS,EACT,aAAa,EACb,MAAM,EACN,UAAU,GACX,CAAC;AACF,YAAY,EACV,YAAY,EACZ,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,eAAe,GAChB,CAAC;AACF,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC"}
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.FormFileInput = exports.FileInput = exports.FormImageInput = exports.ImageInput = exports.FormTextarea = exports.Textarea = exports.FormSelect = exports.Select = exports.Input = exports.FormInput = exports.FormDebugInfo = void 0;
20
+ exports.FormSwitch = exports.Switch = exports.FormFileInput = exports.FileInput = exports.FormImageInput = exports.ImageInput = exports.FormTextarea = exports.Textarea = exports.FormSelect = exports.Select = exports.Input = exports.FormInput = exports.FormDebugInfo = void 0;
21
21
  const form_input_1 = __importDefault(require("../components/form-input"));
22
22
  exports.FormInput = form_input_1.default;
23
23
  const input_1 = __importDefault(require("../components/input"));
@@ -40,7 +40,13 @@ const form_file_input_1 = __importDefault(require("../components/form-file-input
40
40
  exports.FormFileInput = form_file_input_1.default;
41
41
  const form_debug_info_1 = __importDefault(require("../components/form-debug-info"));
42
42
  exports.FormDebugInfo = form_debug_info_1.default;
43
+ const switch_1 = __importDefault(require("../components/switch"));
44
+ exports.Switch = switch_1.default;
45
+ const form_switch_1 = __importDefault(require("../components/form-switch"));
46
+ exports.FormSwitch = form_switch_1.default;
43
47
  __exportStar(require("../components/input"), exports);
48
+ __exportStar(require("../components/switch"), exports);
49
+ __exportStar(require("../components/form-switch"), exports);
44
50
  __exportStar(require("../components/form-input"), exports);
45
51
  __exportStar(require("../components/file-input"), exports);
46
52
  __exportStar(require("../components/form-file-input"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/exports/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,0EAAiD;AAgB/C,oBAhBK,oBAAS,CAgBL;AAfX,gEAAwC;AAgBtC,gBAhBK,eAAK,CAgBL;AAfP,kEAAyE;AAgBvE,iBAhBK,gBAAM,CAgBL;AAfR,4EAAwE;AAgBtE,qBAhBK,qBAAU,CAgBL;AAfZ,sEAA8C;AAgB5C,mBAhBK,kBAAQ,CAgBL;AAfV,gFAAuD;AAgBrD,uBAhBK,uBAAY,CAgBL;AAfd,sFAA4D;AAiB1D,yBAjBK,0BAAc,CAiBL;AAhBhB,4EAAmD;AAejD,qBAfK,qBAAU,CAeL;AAdZ,0EAAqE;AAgBnE,oBAhBK,oBAAS,CAgBL;AAfX,oFAEuC;AAcrC,wBAhBK,yBAAa,CAgBL;AAbf,oFAA0D;AAGxD,wBAHK,yBAAa,CAGL;AAmBf,sDAAoC;AACpC,2DAAyC;AACzC,2DAAyC;AACzC,gEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/exports/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,0EAAiD;AAkB/C,oBAlBK,oBAAS,CAkBL;AAjBX,gEAAwC;AAkBtC,gBAlBK,eAAK,CAkBL;AAjBP,kEAAyE;AAkBvE,iBAlBK,gBAAM,CAkBL;AAjBR,4EAAwE;AAkBtE,qBAlBK,qBAAU,CAkBL;AAjBZ,sEAA8C;AAkB5C,mBAlBK,kBAAQ,CAkBL;AAjBV,gFAAuD;AAkBrD,uBAlBK,uBAAY,CAkBL;AAjBd,sFAA4D;AAmB1D,yBAnBK,0BAAc,CAmBL;AAlBhB,4EAAmD;AAiBjD,qBAjBK,qBAAU,CAiBL;AAhBZ,0EAAqE;AAkBnE,oBAlBK,oBAAS,CAkBL;AAjBX,oFAEuC;AAgBrC,wBAlBK,yBAAa,CAkBL;AAff,oFAA0D;AAKxD,wBALK,yBAAa,CAKL;AAJf,kEAA2D;AAezD,iBAfK,gBAAM,CAeL;AAdR,4EAAwE;AAetE,qBAfK,qBAAU,CAeL;AAWZ,sDAAoC;AACpC,uDAAqC;AACrC,4DAA0C;AAC1C,2DAAyC;AACzC,2DAAyC;AACzC,gEAA8C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomos-ui/form",
3
- "version": "0.2.1",
3
+ "version": "0.3.1",
4
4
  "description": "The Shadcn library for building robust React forms",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/exports/index.js",