lkd-web-kit 0.1.6 → 0.1.8

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/dist/index.d.ts CHANGED
@@ -471,7 +471,7 @@ export declare const useUpdateSearchParams: () => {
471
471
  searchParams: ReadonlyURLSearchParams;
472
472
  };
473
473
 
474
- export declare const withForm: <P extends unknown>(WrappedComponent: React.ComponentType<FormFieldProps<P>>, getControllerProps?: (props: P) => Omit<Partial<ControllerProps>, "render">) => FC<P & WithFormProps>;
474
+ export declare const withForm: <P extends unknown>(WrappedComponent: React.ComponentType<FormFieldProps<P>>, getControllerProps?: (fieldProps: P) => Omit<Partial<ControllerProps>, "render">) => FC<P & WithFormProps>;
475
475
 
476
476
  export declare interface WithFormProps {
477
477
  name?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"nullableInput.cjs","sources":["../../../../src/form/utils/nullableInput.ts"],"sourcesContent":["import { ZodTypeAny, z } from \"zod\";\r\n\r\nexport const nullableInput = <T extends ZodTypeAny>(\r\n schema: T,\r\n message = \"Campo requerido\"\r\n) => {\r\n return schema.nullable().transform((val, ctx) => {\r\n if (val === null) {\r\n ctx.addIssue({\r\n code: z.ZodIssueCode.custom,\r\n fatal: true,\r\n message\r\n });\r\n\r\n return z.NEVER;\r\n }\r\n\r\n return val;\r\n });\r\n};\r\n"],"names":["nullableInput","schema","message","val","ctx","z"],"mappings":"uGAEaA,EAAgB,CAC3BC,EACAC,EAAU,oBAEHD,EAAO,SAAS,EAAE,UAAU,CAACE,EAAKC,IACnCD,IAAQ,MACVC,EAAI,SAAS,CACX,KAAMC,EAAAA,EAAE,aAAa,OACrB,MAAO,GACP,QAAAH,CAAA,CACD,EAEMG,EAAE,EAAA,OAGJF,CACR"}
1
+ {"version":3,"file":"nullableInput.cjs","sources":["../../../../src/form/utils/nullableInput.ts"],"sourcesContent":["import { ZodTypeAny, z } from 'zod';\r\n\r\nexport const nullableInput = <T extends ZodTypeAny>(schema: T, message = 'Campo requerido') => {\r\n return schema.nullable().transform((val, ctx) => {\r\n if (val === null) {\r\n ctx.addIssue({\r\n code: z.ZodIssueCode.custom,\r\n fatal: true,\r\n message,\r\n });\r\n\r\n return z.NEVER;\r\n }\r\n\r\n return val;\r\n });\r\n};\r\n"],"names":["nullableInput","schema","message","val","ctx","z"],"mappings":"uGAEaA,EAAgB,CAAuBC,EAAWC,EAAU,oBAChED,EAAO,SAAS,EAAE,UAAU,CAACE,EAAKC,IACnCD,IAAQ,MACVC,EAAI,SAAS,CACX,KAAMC,EAAAA,EAAE,aAAa,OACrB,MAAO,GACP,QAAAH,CAAA,CACD,EAEMG,EAAE,EAAA,OAGJF,CACR"}
@@ -1 +1 @@
1
- {"version":3,"file":"nullableInput.mjs","sources":["../../../../src/form/utils/nullableInput.ts"],"sourcesContent":["import { ZodTypeAny, z } from \"zod\";\r\n\r\nexport const nullableInput = <T extends ZodTypeAny>(\r\n schema: T,\r\n message = \"Campo requerido\"\r\n) => {\r\n return schema.nullable().transform((val, ctx) => {\r\n if (val === null) {\r\n ctx.addIssue({\r\n code: z.ZodIssueCode.custom,\r\n fatal: true,\r\n message\r\n });\r\n\r\n return z.NEVER;\r\n }\r\n\r\n return val;\r\n });\r\n};\r\n"],"names":["nullableInput","schema","message","val","ctx","z"],"mappings":";AAEO,MAAMA,IAAgB,CAC3BC,GACAC,IAAU,sBAEHD,EAAO,SAAS,EAAE,UAAU,CAACE,GAAKC,MACnCD,MAAQ,QACVC,EAAI,SAAS;AAAA,EACX,MAAMC,EAAE,aAAa;AAAA,EACrB,OAAO;AAAA,EACP,SAAAH;AAAA,CACD,GAEMG,EAAE,SAGJF,CACR;"}
1
+ {"version":3,"file":"nullableInput.mjs","sources":["../../../../src/form/utils/nullableInput.ts"],"sourcesContent":["import { ZodTypeAny, z } from 'zod';\r\n\r\nexport const nullableInput = <T extends ZodTypeAny>(schema: T, message = 'Campo requerido') => {\r\n return schema.nullable().transform((val, ctx) => {\r\n if (val === null) {\r\n ctx.addIssue({\r\n code: z.ZodIssueCode.custom,\r\n fatal: true,\r\n message,\r\n });\r\n\r\n return z.NEVER;\r\n }\r\n\r\n return val;\r\n });\r\n};\r\n"],"names":["nullableInput","schema","message","val","ctx","z"],"mappings":";AAEO,MAAMA,IAAgB,CAAuBC,GAAWC,IAAU,sBAChED,EAAO,SAAS,EAAE,UAAU,CAACE,GAAKC,MACnCD,MAAQ,QACVC,EAAI,SAAS;AAAA,EACX,MAAMC,EAAE,aAAa;AAAA,EACrB,OAAO;AAAA,EACP,SAAAH;AAAA,CACD,GAEMG,EAAE,SAGJF,CACR;"}
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),b=require("react-hook-form"),f=require("../form/utils/zodValidator.cjs"),h=(i,a)=>{const r=e=>{const{validate:l,name:d="",placeholder:s,label:c,description:n,...u}=e;return o.jsx(b.Controller,{name:d,defaultValue:"",rules:{validate:l&&!e.disabled?f.zodValidator(l):void 0},disabled:e.disabled,...a?.(e),render:t=>{const{fieldState:{isTouched:v,error:m}}=t,F={...t,props:{...e,validate:void 0},field:{...t.field,label:c,placeholder:s,description:n,error:m?.message},...u};return o.jsx(i,{...F})}})};return r.displayName=`WithForm(${i.displayName})`,r};exports.withForm=h;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),b=require("react-hook-form"),f=require("../form/utils/zodValidator.cjs"),v=(i,a)=>{const r=e=>{const{validate:l,name:d="",placeholder:s,label:n,description:c,...u}=e;return o.jsx(b.Controller,{name:d,defaultValue:"",rules:{validate:l&&!e.disabled?f.zodValidator(l):void 0},disabled:e.disabled,...a?.(e),render:t=>{const{fieldState:{error:m}}=t,F={...t,props:{...e,validate:void 0},field:{...t.field,label:n,placeholder:s,description:c,error:m?.message},...u};return o.jsx(i,{...F})}})};return r.displayName=`WithForm(${i.displayName})`,r};exports.withForm=v;
2
2
  //# sourceMappingURL=withForm.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"withForm.cjs","sources":["../../../src/hocs/withForm.tsx"],"sourcesContent":["'use client';\r\nimport { Controller, ControllerProps } from 'react-hook-form';\r\nimport { ZodTypeAny } from 'zod';\r\nimport { zodValidator } from '../form';\r\n\r\nexport interface WithFormProps {\r\n name?: string;\r\n label?: React.ReactNode;\r\n placeholder?: string;\r\n description?: React.ReactNode;\r\n validate?: ZodTypeAny;\r\n disabled?: boolean;\r\n}\r\n\r\nexport type FormFieldProps<T = unknown> = Parameters<ControllerProps['render']>[0] & {\r\n props: T;\r\n field: {\r\n label?: React.ReactNode;\r\n placeholder?: string;\r\n description?: React.ReactNode;\r\n error?: string;\r\n };\r\n};\r\n\r\nexport const withForm = <P extends unknown>(\r\n WrappedComponent: React.ComponentType<FormFieldProps<P>>,\r\n getControllerProps?: (props: P) => Omit<Partial<ControllerProps>, 'render'>,\r\n) => {\r\n const FormField: React.FC<P & WithFormProps> = (props) => {\r\n const { validate, name = '', placeholder, label, description, ...withFormRestProps } = props;\r\n\r\n return (\r\n <Controller\r\n name={name}\r\n defaultValue={''}\r\n rules={{\r\n validate: validate && !props.disabled ? zodValidator(validate) : undefined,\r\n }}\r\n disabled={props.disabled}\r\n {...getControllerProps?.(props)}\r\n render={(renderProps) => {\r\n const {\r\n fieldState: { isTouched, error },\r\n } = renderProps;\r\n\r\n const fieldProps = {\r\n ...renderProps,\r\n props: {\r\n ...props,\r\n validate: undefined,\r\n },\r\n field: {\r\n ...renderProps.field,\r\n label,\r\n placeholder,\r\n description,\r\n error: error?.message,\r\n },\r\n ...withFormRestProps,\r\n } as FormFieldProps<P>;\r\n\r\n return <WrappedComponent {...fieldProps} />;\r\n }}\r\n />\r\n );\r\n };\r\n\r\n FormField.displayName = `WithForm(${WrappedComponent.displayName})`;\r\n\r\n return FormField;\r\n};\r\n"],"names":["withForm","WrappedComponent","getControllerProps","FormField","props","validate","name","placeholder","label","description","withFormRestProps","jsx","Controller","zodValidator","renderProps","isTouched","error","fieldProps"],"mappings":"2MAwBaA,EAAW,CACtBC,EACAC,IACG,CACG,MAAAC,EAA0CC,GAAU,CAClD,KAAA,CAAE,SAAAC,EAAU,KAAAC,EAAO,GAAI,YAAAC,EAAa,MAAAC,EAAO,YAAAC,EAAa,GAAGC,CAAA,EAAsBN,EAGrF,OAAAO,EAAA,IAACC,EAAA,WAAA,CACC,KAAAN,EACA,aAAc,GACd,MAAO,CACL,SAAUD,GAAY,CAACD,EAAM,SAAWS,EAAAA,aAAaR,CAAQ,EAAI,MACnE,EACA,SAAUD,EAAM,SACf,GAAGF,IAAqBE,CAAK,EAC9B,OAASU,GAAgB,CACjB,KAAA,CACJ,WAAY,CAAE,UAAAC,EAAW,MAAAC,CAAM,CAAA,EAC7BF,EAEEG,EAAa,CACjB,GAAGH,EACH,MAAO,CACL,GAAGV,EACH,SAAU,MACZ,EACA,MAAO,CACL,GAAGU,EAAY,MACf,MAAAN,EACA,YAAAD,EACA,YAAAE,EACA,MAAOO,GAAO,OAChB,EACA,GAAGN,CACL,EAEO,OAAAC,MAACV,EAAkB,CAAA,GAAGgB,CAAY,CAAA,CAAA,CAC3C,CACF,CAEJ,EAEU,OAAAd,EAAA,YAAc,YAAYF,EAAiB,WAAW,IAEzDE,CACT"}
1
+ {"version":3,"file":"withForm.cjs","sources":["../../../src/hocs/withForm.tsx"],"sourcesContent":["'use client';\r\nimport { Controller, ControllerProps } from 'react-hook-form';\r\nimport { ZodTypeAny } from 'zod';\r\nimport { zodValidator } from '../form';\r\n\r\nexport interface WithFormProps {\r\n name?: string;\r\n label?: React.ReactNode;\r\n placeholder?: string;\r\n description?: React.ReactNode;\r\n validate?: ZodTypeAny;\r\n disabled?: boolean;\r\n}\r\n\r\nexport type FormFieldProps<T = unknown> = Parameters<ControllerProps['render']>[0] & {\r\n props: T;\r\n field: {\r\n label?: React.ReactNode;\r\n placeholder?: string;\r\n description?: React.ReactNode;\r\n error?: string;\r\n };\r\n};\r\n\r\nexport const withForm = <P extends unknown>(\r\n WrappedComponent: React.ComponentType<FormFieldProps<P>>,\r\n getControllerProps?: (fieldProps: P) => Omit<Partial<ControllerProps>, 'render'>,\r\n) => {\r\n const FormField: React.FC<P & WithFormProps> = (props) => {\r\n const { validate, name = '', placeholder, label, description, ...withFormRestProps } = props;\r\n\r\n return (\r\n <Controller\r\n name={name}\r\n defaultValue={''}\r\n rules={{\r\n validate: validate && !props.disabled ? zodValidator(validate) : undefined,\r\n }}\r\n disabled={props.disabled}\r\n {...getControllerProps?.(props)}\r\n render={(renderProps) => {\r\n const {\r\n fieldState: { error },\r\n } = renderProps;\r\n\r\n const fieldProps = {\r\n ...renderProps,\r\n props: {\r\n ...props,\r\n validate: undefined,\r\n },\r\n field: {\r\n ...renderProps.field,\r\n label,\r\n placeholder,\r\n description,\r\n error: error?.message,\r\n },\r\n ...withFormRestProps,\r\n } as FormFieldProps<P>;\r\n\r\n return <WrappedComponent {...fieldProps} />;\r\n }}\r\n />\r\n );\r\n };\r\n\r\n FormField.displayName = `WithForm(${WrappedComponent.displayName})`;\r\n\r\n return FormField;\r\n};\r\n"],"names":["withForm","WrappedComponent","getControllerProps","FormField","props","validate","name","placeholder","label","description","withFormRestProps","jsx","Controller","zodValidator","renderProps","error","fieldProps"],"mappings":"2MAwBaA,EAAW,CACtBC,EACAC,IACG,CACG,MAAAC,EAA0CC,GAAU,CAClD,KAAA,CAAE,SAAAC,EAAU,KAAAC,EAAO,GAAI,YAAAC,EAAa,MAAAC,EAAO,YAAAC,EAAa,GAAGC,CAAA,EAAsBN,EAGrF,OAAAO,EAAA,IAACC,EAAA,WAAA,CACC,KAAAN,EACA,aAAc,GACd,MAAO,CACL,SAAUD,GAAY,CAACD,EAAM,SAAWS,EAAAA,aAAaR,CAAQ,EAAI,MACnE,EACA,SAAUD,EAAM,SACf,GAAGF,IAAqBE,CAAK,EAC9B,OAASU,GAAgB,CACjB,KAAA,CACJ,WAAY,CAAE,MAAAC,CAAM,CAAA,EAClBD,EAEEE,EAAa,CACjB,GAAGF,EACH,MAAO,CACL,GAAGV,EACH,SAAU,MACZ,EACA,MAAO,CACL,GAAGU,EAAY,MACf,MAAAN,EACA,YAAAD,EACA,YAAAE,EACA,MAAOM,GAAO,OAChB,EACA,GAAGL,CACL,EAEO,OAAAC,MAACV,EAAkB,CAAA,GAAGe,CAAY,CAAA,CAAA,CAC3C,CACF,CAEJ,EAEU,OAAAb,EAAA,YAAc,YAAYF,EAAiB,WAAW,IAEzDE,CACT"}
@@ -1,23 +1,23 @@
1
1
  "use client";
2
- import { jsx as d } from "react/jsx-runtime";
3
- import { Controller as h } from "react-hook-form";
4
- import { zodValidator as v } from "../form/utils/zodValidator.mjs";
5
- const y = (t, o) => {
2
+ import { jsx as a } from "react/jsx-runtime";
3
+ import { Controller as v } from "react-hook-form";
4
+ import { zodValidator as F } from "../form/utils/zodValidator.mjs";
5
+ const x = (t, d) => {
6
6
  const l = (e) => {
7
- const { validate: r, name: a = "", placeholder: s, label: m, description: c, ...n } = e;
8
- return /* @__PURE__ */ d(
9
- h,
7
+ const { validate: r, name: o = "", placeholder: s, label: m, description: n, ...c } = e;
8
+ return /* @__PURE__ */ a(
9
+ v,
10
10
  {
11
- name: a,
11
+ name: o,
12
12
  defaultValue: "",
13
13
  rules: {
14
- validate: r && !e.disabled ? v(r) : void 0
14
+ validate: r && !e.disabled ? F(r) : void 0
15
15
  },
16
16
  disabled: e.disabled,
17
- ...o?.(e),
17
+ ...d?.(e),
18
18
  render: (i) => {
19
19
  const {
20
- fieldState: { isTouched: F, error: f }
20
+ fieldState: { error: f }
21
21
  } = i, u = {
22
22
  ...i,
23
23
  props: {
@@ -28,12 +28,12 @@ const y = (t, o) => {
28
28
  ...i.field,
29
29
  label: m,
30
30
  placeholder: s,
31
- description: c,
31
+ description: n,
32
32
  error: f?.message
33
33
  },
34
- ...n
34
+ ...c
35
35
  };
36
- return /* @__PURE__ */ d(t, { ...u });
36
+ return /* @__PURE__ */ a(t, { ...u });
37
37
  }
38
38
  }
39
39
  );
@@ -41,6 +41,6 @@ const y = (t, o) => {
41
41
  return l.displayName = `WithForm(${t.displayName})`, l;
42
42
  };
43
43
  export {
44
- y as withForm
44
+ x as withForm
45
45
  };
46
46
  //# sourceMappingURL=withForm.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"withForm.mjs","sources":["../../../src/hocs/withForm.tsx"],"sourcesContent":["'use client';\r\nimport { Controller, ControllerProps } from 'react-hook-form';\r\nimport { ZodTypeAny } from 'zod';\r\nimport { zodValidator } from '../form';\r\n\r\nexport interface WithFormProps {\r\n name?: string;\r\n label?: React.ReactNode;\r\n placeholder?: string;\r\n description?: React.ReactNode;\r\n validate?: ZodTypeAny;\r\n disabled?: boolean;\r\n}\r\n\r\nexport type FormFieldProps<T = unknown> = Parameters<ControllerProps['render']>[0] & {\r\n props: T;\r\n field: {\r\n label?: React.ReactNode;\r\n placeholder?: string;\r\n description?: React.ReactNode;\r\n error?: string;\r\n };\r\n};\r\n\r\nexport const withForm = <P extends unknown>(\r\n WrappedComponent: React.ComponentType<FormFieldProps<P>>,\r\n getControllerProps?: (props: P) => Omit<Partial<ControllerProps>, 'render'>,\r\n) => {\r\n const FormField: React.FC<P & WithFormProps> = (props) => {\r\n const { validate, name = '', placeholder, label, description, ...withFormRestProps } = props;\r\n\r\n return (\r\n <Controller\r\n name={name}\r\n defaultValue={''}\r\n rules={{\r\n validate: validate && !props.disabled ? zodValidator(validate) : undefined,\r\n }}\r\n disabled={props.disabled}\r\n {...getControllerProps?.(props)}\r\n render={(renderProps) => {\r\n const {\r\n fieldState: { isTouched, error },\r\n } = renderProps;\r\n\r\n const fieldProps = {\r\n ...renderProps,\r\n props: {\r\n ...props,\r\n validate: undefined,\r\n },\r\n field: {\r\n ...renderProps.field,\r\n label,\r\n placeholder,\r\n description,\r\n error: error?.message,\r\n },\r\n ...withFormRestProps,\r\n } as FormFieldProps<P>;\r\n\r\n return <WrappedComponent {...fieldProps} />;\r\n }}\r\n />\r\n );\r\n };\r\n\r\n FormField.displayName = `WithForm(${WrappedComponent.displayName})`;\r\n\r\n return FormField;\r\n};\r\n"],"names":["withForm","WrappedComponent","getControllerProps","FormField","props","validate","name","placeholder","label","description","withFormRestProps","jsx","Controller","zodValidator","renderProps","isTouched","error","fieldProps"],"mappings":";;;;AAwBa,MAAAA,IAAW,CACtBC,GACAC,MACG;AACG,QAAAC,IAAyC,CAACC,MAAU;AAClD,UAAA,EAAE,UAAAC,GAAU,MAAAC,IAAO,IAAI,aAAAC,GAAa,OAAAC,GAAO,aAAAC,GAAa,GAAGC,EAAA,IAAsBN;AAGrF,WAAA,gBAAAO;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAAN;AAAA,QACA,cAAc;AAAA,QACd,OAAO;AAAA,UACL,UAAUD,KAAY,CAACD,EAAM,WAAWS,EAAaR,CAAQ,IAAI;AAAA,QACnE;AAAA,QACA,UAAUD,EAAM;AAAA,QACf,GAAGF,IAAqBE,CAAK;AAAA,QAC9B,QAAQ,CAACU,MAAgB;AACjB,gBAAA;AAAA,YACJ,YAAY,EAAE,WAAAC,GAAW,OAAAC,EAAM;AAAA,UAAA,IAC7BF,GAEEG,IAAa;AAAA,YACjB,GAAGH;AAAA,YACH,OAAO;AAAA,cACL,GAAGV;AAAA,cACH,UAAU;AAAA,YACZ;AAAA,YACA,OAAO;AAAA,cACL,GAAGU,EAAY;AAAA,cACf,OAAAN;AAAA,cACA,aAAAD;AAAA,cACA,aAAAE;AAAA,cACA,OAAOO,GAAO;AAAA,YAChB;AAAA,YACA,GAAGN;AAAA,UACL;AAEO,iBAAA,gBAAAC,EAACV,GAAkB,EAAA,GAAGgB,EAAY,CAAA;AAAA,QAAA;AAAA,MAC3C;AAAA,IACF;AAAA,EAEJ;AAEU,SAAAd,EAAA,cAAc,YAAYF,EAAiB,WAAW,KAEzDE;AACT;"}
1
+ {"version":3,"file":"withForm.mjs","sources":["../../../src/hocs/withForm.tsx"],"sourcesContent":["'use client';\r\nimport { Controller, ControllerProps } from 'react-hook-form';\r\nimport { ZodTypeAny } from 'zod';\r\nimport { zodValidator } from '../form';\r\n\r\nexport interface WithFormProps {\r\n name?: string;\r\n label?: React.ReactNode;\r\n placeholder?: string;\r\n description?: React.ReactNode;\r\n validate?: ZodTypeAny;\r\n disabled?: boolean;\r\n}\r\n\r\nexport type FormFieldProps<T = unknown> = Parameters<ControllerProps['render']>[0] & {\r\n props: T;\r\n field: {\r\n label?: React.ReactNode;\r\n placeholder?: string;\r\n description?: React.ReactNode;\r\n error?: string;\r\n };\r\n};\r\n\r\nexport const withForm = <P extends unknown>(\r\n WrappedComponent: React.ComponentType<FormFieldProps<P>>,\r\n getControllerProps?: (fieldProps: P) => Omit<Partial<ControllerProps>, 'render'>,\r\n) => {\r\n const FormField: React.FC<P & WithFormProps> = (props) => {\r\n const { validate, name = '', placeholder, label, description, ...withFormRestProps } = props;\r\n\r\n return (\r\n <Controller\r\n name={name}\r\n defaultValue={''}\r\n rules={{\r\n validate: validate && !props.disabled ? zodValidator(validate) : undefined,\r\n }}\r\n disabled={props.disabled}\r\n {...getControllerProps?.(props)}\r\n render={(renderProps) => {\r\n const {\r\n fieldState: { error },\r\n } = renderProps;\r\n\r\n const fieldProps = {\r\n ...renderProps,\r\n props: {\r\n ...props,\r\n validate: undefined,\r\n },\r\n field: {\r\n ...renderProps.field,\r\n label,\r\n placeholder,\r\n description,\r\n error: error?.message,\r\n },\r\n ...withFormRestProps,\r\n } as FormFieldProps<P>;\r\n\r\n return <WrappedComponent {...fieldProps} />;\r\n }}\r\n />\r\n );\r\n };\r\n\r\n FormField.displayName = `WithForm(${WrappedComponent.displayName})`;\r\n\r\n return FormField;\r\n};\r\n"],"names":["withForm","WrappedComponent","getControllerProps","FormField","props","validate","name","placeholder","label","description","withFormRestProps","jsx","Controller","zodValidator","renderProps","error","fieldProps"],"mappings":";;;;AAwBa,MAAAA,IAAW,CACtBC,GACAC,MACG;AACG,QAAAC,IAAyC,CAACC,MAAU;AAClD,UAAA,EAAE,UAAAC,GAAU,MAAAC,IAAO,IAAI,aAAAC,GAAa,OAAAC,GAAO,aAAAC,GAAa,GAAGC,EAAA,IAAsBN;AAGrF,WAAA,gBAAAO;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAAN;AAAA,QACA,cAAc;AAAA,QACd,OAAO;AAAA,UACL,UAAUD,KAAY,CAACD,EAAM,WAAWS,EAAaR,CAAQ,IAAI;AAAA,QACnE;AAAA,QACA,UAAUD,EAAM;AAAA,QACf,GAAGF,IAAqBE,CAAK;AAAA,QAC9B,QAAQ,CAACU,MAAgB;AACjB,gBAAA;AAAA,YACJ,YAAY,EAAE,OAAAC,EAAM;AAAA,UAAA,IAClBD,GAEEE,IAAa;AAAA,YACjB,GAAGF;AAAA,YACH,OAAO;AAAA,cACL,GAAGV;AAAA,cACH,UAAU;AAAA,YACZ;AAAA,YACA,OAAO;AAAA,cACL,GAAGU,EAAY;AAAA,cACf,OAAAN;AAAA,cACA,aAAAD;AAAA,cACA,aAAAE;AAAA,cACA,OAAOM,GAAO;AAAA,YAChB;AAAA,YACA,GAAGL;AAAA,UACL;AAEO,iBAAA,gBAAAC,EAACV,GAAkB,EAAA,GAAGe,EAAY,CAAA;AAAA,QAAA;AAAA,MAC3C;AAAA,IACF;AAAA,EAEJ;AAEU,SAAAb,EAAA,cAAc,YAAYF,EAAiB,WAAW,KAEzDE;AACT;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@mantine/core"),t=require("./breakpoints-with-px.cjs"),o={breakpoints:t.breakpointsWithPx,cursorType:"pointer",components:{Notification:e.Notification.extend({defaultProps:{withBorder:!0}}),AppShell:e.AppShell.extend({defaultProps:{padding:0}}),Select:e.Select.extend({defaultProps:{allowDeselect:!1}}),Menu:e.Menu.extend({defaultProps:{position:"bottom-end"}}),Tooltip:e.Tooltip.extend({defaultProps:{multiline:!0,w:300}}),Portal:e.Portal.extend({defaultProps:{reuseTargetNode:!0}})}};exports.myDefaultTheme=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@mantine/core"),t=require("./breakpoints-with-px.cjs"),o={breakpoints:t.breakpointsWithPx,cursorType:"pointer",components:{Notification:e.Notification.extend({defaultProps:{withBorder:!0}}),AppShell:e.AppShell.extend({defaultProps:{padding:0}}),Select:e.Select.extend({defaultProps:{allowDeselect:!1,withCheckIcon:!1,clearable:!0}}),Menu:e.Menu.extend({defaultProps:{position:"bottom-end"}}),Tooltip:e.Tooltip.extend({defaultProps:{multiline:!0,w:300}}),Portal:e.Portal.extend({defaultProps:{reuseTargetNode:!0}})}};exports.myDefaultTheme=o;
2
2
  //# sourceMappingURL=my-default-theme.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"my-default-theme.cjs","sources":["../../../src/mantine/my-default-theme.ts"],"sourcesContent":["import {\r\n AppShell,\r\n MantineTheme,\r\n Menu,\r\n Select,\r\n Tooltip,\r\n Notification,\r\n MantineThemeOverride,\r\n Portal,\r\n} from '@mantine/core';\r\nimport { breakpointsWithPx } from './breakpoints-with-px';\r\n\r\nexport const myDefaultTheme: MantineThemeOverride = {\r\n breakpoints: breakpointsWithPx,\r\n cursorType: 'pointer',\r\n components: {\r\n Notification: Notification.extend({\r\n defaultProps: {\r\n withBorder: true,\r\n },\r\n }),\r\n AppShell: AppShell.extend({\r\n defaultProps: {\r\n padding: 0,\r\n },\r\n }),\r\n Select: Select.extend({\r\n defaultProps: {\r\n allowDeselect: false,\r\n },\r\n }),\r\n Menu: Menu.extend({\r\n defaultProps: {\r\n position: 'bottom-end',\r\n },\r\n }),\r\n Tooltip: Tooltip.extend({\r\n defaultProps: {\r\n multiline: true,\r\n w: 300,\r\n },\r\n }),\r\n // borrar en v8\r\n Portal: Portal.extend({\r\n defaultProps: {\r\n reuseTargetNode: true,\r\n },\r\n }),\r\n },\r\n};\r\n"],"names":["myDefaultTheme","breakpointsWithPx","Notification","AppShell","Select","Menu","Tooltip","Portal"],"mappings":"wJAYaA,EAAuC,CAClD,YAAaC,EAAA,kBACb,WAAY,UACZ,WAAY,CACV,aAAcC,eAAa,OAAO,CAChC,aAAc,CACZ,WAAY,EAAA,CACd,CACD,EACD,SAAUC,WAAS,OAAO,CACxB,aAAc,CACZ,QAAS,CAAA,CACX,CACD,EACD,OAAQC,SAAO,OAAO,CACpB,aAAc,CACZ,cAAe,EAAA,CACjB,CACD,EACD,KAAMC,OAAK,OAAO,CAChB,aAAc,CACZ,SAAU,YAAA,CACZ,CACD,EACD,QAASC,UAAQ,OAAO,CACtB,aAAc,CACZ,UAAW,GACX,EAAG,GAAA,CACL,CACD,EAED,OAAQC,SAAO,OAAO,CACpB,aAAc,CACZ,gBAAiB,EAAA,CAEpB,CAAA,CAAA,CAEL"}
1
+ {"version":3,"file":"my-default-theme.cjs","sources":["../../../src/mantine/my-default-theme.ts"],"sourcesContent":["import {\r\n AppShell,\r\n MantineTheme,\r\n Menu,\r\n Select,\r\n Tooltip,\r\n Notification,\r\n MantineThemeOverride,\r\n Portal,\r\n} from '@mantine/core';\r\nimport { breakpointsWithPx } from './breakpoints-with-px';\r\n\r\nexport const myDefaultTheme: MantineThemeOverride = {\r\n breakpoints: breakpointsWithPx,\r\n cursorType: 'pointer',\r\n components: {\r\n Notification: Notification.extend({\r\n defaultProps: {\r\n withBorder: true,\r\n },\r\n }),\r\n AppShell: AppShell.extend({\r\n defaultProps: {\r\n padding: 0,\r\n },\r\n }),\r\n Select: Select.extend({\r\n defaultProps: {\r\n allowDeselect: false,\r\n withCheckIcon: false,\r\n clearable: true,\r\n },\r\n }),\r\n Menu: Menu.extend({\r\n defaultProps: {\r\n position: 'bottom-end',\r\n },\r\n }),\r\n Tooltip: Tooltip.extend({\r\n defaultProps: {\r\n multiline: true,\r\n w: 300,\r\n },\r\n }),\r\n // borrar en v8\r\n Portal: Portal.extend({\r\n defaultProps: {\r\n reuseTargetNode: true,\r\n },\r\n }),\r\n },\r\n};\r\n"],"names":["myDefaultTheme","breakpointsWithPx","Notification","AppShell","Select","Menu","Tooltip","Portal"],"mappings":"wJAYaA,EAAuC,CAClD,YAAaC,EAAA,kBACb,WAAY,UACZ,WAAY,CACV,aAAcC,eAAa,OAAO,CAChC,aAAc,CACZ,WAAY,EAAA,CACd,CACD,EACD,SAAUC,WAAS,OAAO,CACxB,aAAc,CACZ,QAAS,CAAA,CACX,CACD,EACD,OAAQC,SAAO,OAAO,CACpB,aAAc,CACZ,cAAe,GACf,cAAe,GACf,UAAW,EAAA,CACb,CACD,EACD,KAAMC,OAAK,OAAO,CAChB,aAAc,CACZ,SAAU,YAAA,CACZ,CACD,EACD,QAASC,UAAQ,OAAO,CACtB,aAAc,CACZ,UAAW,GACX,EAAG,GAAA,CACL,CACD,EAED,OAAQC,SAAO,OAAO,CACpB,aAAc,CACZ,gBAAiB,EAAA,CAEpB,CAAA,CAAA,CAEL"}
@@ -16,7 +16,9 @@ const d = {
16
16
  }),
17
17
  Select: r.extend({
18
18
  defaultProps: {
19
- allowDeselect: !1
19
+ allowDeselect: !1,
20
+ withCheckIcon: !1,
21
+ clearable: !0
20
22
  }
21
23
  }),
22
24
  Menu: o.extend({
@@ -1 +1 @@
1
- {"version":3,"file":"my-default-theme.mjs","sources":["../../../src/mantine/my-default-theme.ts"],"sourcesContent":["import {\r\n AppShell,\r\n MantineTheme,\r\n Menu,\r\n Select,\r\n Tooltip,\r\n Notification,\r\n MantineThemeOverride,\r\n Portal,\r\n} from '@mantine/core';\r\nimport { breakpointsWithPx } from './breakpoints-with-px';\r\n\r\nexport const myDefaultTheme: MantineThemeOverride = {\r\n breakpoints: breakpointsWithPx,\r\n cursorType: 'pointer',\r\n components: {\r\n Notification: Notification.extend({\r\n defaultProps: {\r\n withBorder: true,\r\n },\r\n }),\r\n AppShell: AppShell.extend({\r\n defaultProps: {\r\n padding: 0,\r\n },\r\n }),\r\n Select: Select.extend({\r\n defaultProps: {\r\n allowDeselect: false,\r\n },\r\n }),\r\n Menu: Menu.extend({\r\n defaultProps: {\r\n position: 'bottom-end',\r\n },\r\n }),\r\n Tooltip: Tooltip.extend({\r\n defaultProps: {\r\n multiline: true,\r\n w: 300,\r\n },\r\n }),\r\n // borrar en v8\r\n Portal: Portal.extend({\r\n defaultProps: {\r\n reuseTargetNode: true,\r\n },\r\n }),\r\n },\r\n};\r\n"],"names":["myDefaultTheme","breakpointsWithPx","Notification","AppShell","Select","Menu","Tooltip","Portal"],"mappings":";;AAYO,MAAMA,IAAuC;AAAA,EAClD,aAAaC;AAAA,EACb,YAAY;AAAA,EACZ,YAAY;AAAA,IACV,cAAcC,EAAa,OAAO;AAAA,MAChC,cAAc;AAAA,QACZ,YAAY;AAAA,MAAA;AAAA,IACd,CACD;AAAA,IACD,UAAUC,EAAS,OAAO;AAAA,MACxB,cAAc;AAAA,QACZ,SAAS;AAAA,MAAA;AAAA,IACX,CACD;AAAA,IACD,QAAQC,EAAO,OAAO;AAAA,MACpB,cAAc;AAAA,QACZ,eAAe;AAAA,MAAA;AAAA,IACjB,CACD;AAAA,IACD,MAAMC,EAAK,OAAO;AAAA,MAChB,cAAc;AAAA,QACZ,UAAU;AAAA,MAAA;AAAA,IACZ,CACD;AAAA,IACD,SAASC,EAAQ,OAAO;AAAA,MACtB,cAAc;AAAA,QACZ,WAAW;AAAA,QACX,GAAG;AAAA,MAAA;AAAA,IACL,CACD;AAAA;AAAA,IAED,QAAQC,EAAO,OAAO;AAAA,MACpB,cAAc;AAAA,QACZ,iBAAiB;AAAA,MAAA;AAAA,IAEpB,CAAA;AAAA,EAAA;AAEL;"}
1
+ {"version":3,"file":"my-default-theme.mjs","sources":["../../../src/mantine/my-default-theme.ts"],"sourcesContent":["import {\r\n AppShell,\r\n MantineTheme,\r\n Menu,\r\n Select,\r\n Tooltip,\r\n Notification,\r\n MantineThemeOverride,\r\n Portal,\r\n} from '@mantine/core';\r\nimport { breakpointsWithPx } from './breakpoints-with-px';\r\n\r\nexport const myDefaultTheme: MantineThemeOverride = {\r\n breakpoints: breakpointsWithPx,\r\n cursorType: 'pointer',\r\n components: {\r\n Notification: Notification.extend({\r\n defaultProps: {\r\n withBorder: true,\r\n },\r\n }),\r\n AppShell: AppShell.extend({\r\n defaultProps: {\r\n padding: 0,\r\n },\r\n }),\r\n Select: Select.extend({\r\n defaultProps: {\r\n allowDeselect: false,\r\n withCheckIcon: false,\r\n clearable: true,\r\n },\r\n }),\r\n Menu: Menu.extend({\r\n defaultProps: {\r\n position: 'bottom-end',\r\n },\r\n }),\r\n Tooltip: Tooltip.extend({\r\n defaultProps: {\r\n multiline: true,\r\n w: 300,\r\n },\r\n }),\r\n // borrar en v8\r\n Portal: Portal.extend({\r\n defaultProps: {\r\n reuseTargetNode: true,\r\n },\r\n }),\r\n },\r\n};\r\n"],"names":["myDefaultTheme","breakpointsWithPx","Notification","AppShell","Select","Menu","Tooltip","Portal"],"mappings":";;AAYO,MAAMA,IAAuC;AAAA,EAClD,aAAaC;AAAA,EACb,YAAY;AAAA,EACZ,YAAY;AAAA,IACV,cAAcC,EAAa,OAAO;AAAA,MAChC,cAAc;AAAA,QACZ,YAAY;AAAA,MAAA;AAAA,IACd,CACD;AAAA,IACD,UAAUC,EAAS,OAAO;AAAA,MACxB,cAAc;AAAA,QACZ,SAAS;AAAA,MAAA;AAAA,IACX,CACD;AAAA,IACD,QAAQC,EAAO,OAAO;AAAA,MACpB,cAAc;AAAA,QACZ,eAAe;AAAA,QACf,eAAe;AAAA,QACf,WAAW;AAAA,MAAA;AAAA,IACb,CACD;AAAA,IACD,MAAMC,EAAK,OAAO;AAAA,MAChB,cAAc;AAAA,QACZ,UAAU;AAAA,MAAA;AAAA,IACZ,CACD;AAAA,IACD,SAASC,EAAQ,OAAO;AAAA,MACtB,cAAc;AAAA,QACZ,WAAW;AAAA,QACX,GAAG;AAAA,MAAA;AAAA,IACL,CACD;AAAA;AAAA,IAED,QAAQC,EAAO,OAAO;AAAA,MACpB,cAAc;AAAA,QACZ,iBAAiB;AAAA,MAAA;AAAA,IAEpB,CAAA;AAAA,EAAA;AAEL;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkd-web-kit",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "A template for creating React component libraries with Vite.",
5
5
  "author": "LKD",
6
6
  "license": "MIT",
@@ -55,18 +55,18 @@
55
55
  "vitest": "^3.1.1"
56
56
  },
57
57
  "peerDependencies": {
58
- "@mantine/core": "^7.17.5",
59
- "@mantine/dates": "^7.17.5",
60
- "@mantine/hooks": "^7.17.5",
61
- "@mantine/notifications": "^7.17.5",
62
- "@tanstack/react-query": "^5.74.4",
58
+ "@mantine/core": "^7.17.7",
59
+ "@mantine/dates": "^7.17.7",
60
+ "@mantine/hooks": "^7.17.7",
61
+ "@mantine/notifications": "^7.17.7",
62
+ "@tanstack/react-query": "^5.75.2",
63
63
  "clsx": "^2.1.1",
64
64
  "ky": "^1.8.1",
65
65
  "next": "^15.3.1",
66
- "query-string": "^9.1.1",
66
+ "query-string": "^9.1.2",
67
67
  "react": "^19.1.0",
68
68
  "react-dom": "^19.1.0",
69
- "react-hook-form": "^7.56.1",
69
+ "react-hook-form": "^7.56.2",
70
70
  "react-query-kit": "^3.3.1",
71
71
  "zod": "^3.24.3"
72
72
  }