lkd-web-kit 0.2.1 → 0.2.2

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
@@ -28,6 +28,7 @@ import { MantineThemeColors } from '@mantine/core';
28
28
  import { MantineThemeOverride } from '@mantine/core';
29
29
  import { ModalProps } from '@mantine/core';
30
30
  import { MouseEvent as MouseEvent_2 } from 'react';
31
+ import { MultiSelectProps } from '@mantine/core';
31
32
  import { NormalizedOptions } from 'ky';
32
33
  import { NotificationsProps } from '@mantine/notifications';
33
34
  import { NumberInputProps } from '@mantine/core';
@@ -116,6 +117,8 @@ export declare type FormFieldProps<T = unknown> = Parameters<ControllerProps['re
116
117
  };
117
118
  };
118
119
 
120
+ export declare type FormMultiSelectProps = MyMultiSelectProps & WithFormProps;
121
+
119
122
  export declare const FormNumberInput: FC<MyNumberInputProps & WithFormProps>;
120
123
 
121
124
  export declare type FormNumberInputProps = MyNumberInputProps & WithFormProps;
@@ -282,6 +285,11 @@ export declare interface MyDateTimePickerProps extends DateTimePickerProps {
282
285
 
283
286
  export declare const myDefaultTheme: MantineThemeOverride;
284
287
 
288
+ export declare const MyMultiSelect: (props: MyMultiSelectProps) => JSX.Element;
289
+
290
+ export declare interface MyMultiSelectProps extends MultiSelectProps {
291
+ }
292
+
285
293
  export declare interface MyNotificationPrpos extends NotificationsProps {
286
294
  }
287
295
 
@@ -330,7 +338,7 @@ declare interface NavigationHistoryProviderProps {
330
338
  children: ReactNode;
331
339
  }
332
340
 
333
- export declare const NavItems: ({ items }: NavItemsProps) => JSX.Element;
341
+ export declare const NavItems: ({ items, activeStrategy }: NavItemsProps) => JSX.Element;
334
342
 
335
343
  export declare interface NavItemsProps {
336
344
  items: {
@@ -344,6 +352,7 @@ export declare interface NavItemsProps {
344
352
  href?: string;
345
353
  isActive?: boolean;
346
354
  }[];
355
+ activeStrategy?: 'equals' | 'includes';
347
356
  }
348
357
 
349
358
  export declare const newHref: <T extends TParams, S extends TSearchParams = TSearchParams>(fn: string | ((args: Args<T, S>) => string)) => (args?: Args<T, S>) => string;
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("@mantine/core"),i=e=>t.jsx(l.MultiSelect,{variant:e.readOnly?"filled":"default",...e});exports.MyMultiSelect=i;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../../src/components/MyMultiSelect/index.tsx"],"sourcesContent":["import { SelectProps, MultiSelect, MultiSelectProps } from '@mantine/core';\r\n\r\nexport interface MyMultiSelectProps extends MultiSelectProps {}\r\n\r\nexport const MyMultiSelect = (props: MyMultiSelectProps) => (\r\n <MultiSelect\r\n variant={props.readOnly ? 'filled' : 'default'}\r\n {...props}\r\n />\r\n);\r\n"],"names":["MyMultiSelect","props","jsx","MultiSelect"],"mappings":"gJAIaA,EAAiBC,GAC5BC,EAAA,IAACC,EAAA,YAAA,CACC,QAASF,EAAM,SAAW,SAAW,UACpC,GAAGA,CAAA,CACN"}
@@ -0,0 +1,13 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { MultiSelect as l } from "@mantine/core";
3
+ const o = (t) => /* @__PURE__ */ e(
4
+ l,
5
+ {
6
+ variant: t.readOnly ? "filled" : "default",
7
+ ...t
8
+ }
9
+ );
10
+ export {
11
+ o as MyMultiSelect
12
+ };
13
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../src/components/MyMultiSelect/index.tsx"],"sourcesContent":["import { SelectProps, MultiSelect, MultiSelectProps } from '@mantine/core';\r\n\r\nexport interface MyMultiSelectProps extends MultiSelectProps {}\r\n\r\nexport const MyMultiSelect = (props: MyMultiSelectProps) => (\r\n <MultiSelect\r\n variant={props.readOnly ? 'filled' : 'default'}\r\n {...props}\r\n />\r\n);\r\n"],"names":["MyMultiSelect","props","jsx","MultiSelect"],"mappings":";;AAIa,MAAAA,IAAgB,CAACC,MAC5B,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,SAASF,EAAM,WAAW,WAAW;AAAA,IACpC,GAAGA;AAAA,EAAA;AACN;"}
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),c=require("@mantine/core"),r=require("next/link"),i=require("next/navigation"),l=e=>e&&e.__esModule?e:{default:e},m=l(r),d=({items:e})=>{const o=i.usePathname();return a.jsx(c.Stack,{gap:0,children:e.map(({href:n,isActive:u,...t})=>{if(n){const s=u??n.includes(o);return a.jsx(c.NavLink,{active:s,component:m.default,prefetch:!1,href:n,...t},t.label)}return a.jsx(c.NavLink,{active:u,component:"button",...t},t.label)})})};exports.NavItems=d;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),u=require("@mantine/core"),i=require("next/link"),r=require("next/navigation"),d=e=>e&&e.__esModule?e:{default:e},m=d(i),b=({items:e,activeStrategy:o="includes"})=>{const c=r.usePathname();return a.jsx(u.Stack,{gap:0,children:e.map(({href:t,isActive:s,...n})=>{if(t){const l=s??(o==="equals"?t===c:t.includes(c));return a.jsx(u.NavLink,{active:l,component:m.default,prefetch:!1,href:t,...n},n.label)}return a.jsx(u.NavLink,{active:s,component:"button",...n},n.label)})})};exports.NavItems=b;
2
2
  //# sourceMappingURL=NavItems.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavItems.cjs","sources":["../../../src/components/NavItems.tsx"],"sourcesContent":["'use client';\r\nimport { NavLink, Stack } from '@mantine/core';\r\nimport Link from 'next/link';\r\nimport { usePathname } from 'next/navigation';\r\nimport { MouseEvent, ReactNode } from 'react';\r\n\r\nexport interface NavItemsProps {\r\n items: {\r\n leftSection?: ReactNode;\r\n rightSection?: ReactNode;\r\n onClick?: (e: MouseEvent<Element>) => void;\r\n disabled?: boolean;\r\n className?: string;\r\n children?: ReactNode;\r\n label: string;\r\n\r\n // custom props\r\n href?: string;\r\n isActive?: boolean;\r\n }[];\r\n}\r\n\r\nexport const NavItems = ({ items }: NavItemsProps) => {\r\n const pathname = usePathname();\r\n\r\n return (\r\n <Stack gap={0}>\r\n {items.map(({ href, isActive, ...navLinkProps }) => {\r\n if (href) {\r\n const active = isActive ?? href.includes(pathname);\r\n return (\r\n <NavLink\r\n active={active}\r\n key={navLinkProps.label}\r\n component={Link}\r\n prefetch={false}\r\n href={href}\r\n {...navLinkProps}\r\n />\r\n );\r\n }\r\n\r\n return (\r\n <NavLink\r\n key={navLinkProps.label}\r\n active={isActive}\r\n component=\"button\"\r\n {...navLinkProps}\r\n />\r\n );\r\n })}\r\n </Stack>\r\n );\r\n};\r\n"],"names":["NavItems","items","pathname","usePathname","jsx","Stack","href","isActive","navLinkProps","active","NavLink","Link"],"mappings":"2PAsBaA,EAAW,CAAC,CAAE,MAAAC,KAA2B,CACpD,MAAMC,EAAWC,EAAAA,YAAY,EAE7B,OACGC,EAAA,IAAAC,EAAA,MAAA,CAAM,IAAK,EACT,SAAMJ,EAAA,IAAI,CAAC,CAAE,KAAAK,EAAM,SAAAC,EAAU,GAAGC,CAAA,IAAmB,CAClD,GAAIF,EAAM,CACR,MAAMG,EAASF,GAAYD,EAAK,SAASJ,CAAQ,EAE/C,OAAAE,EAAA,IAACM,EAAA,QAAA,CACC,OAAAD,EAEA,UAAWE,EAAA,QACX,SAAU,GACV,KAAAL,EACC,GAAGE,CAAA,EAJCA,EAAa,KAKpB,CAAA,CAKF,OAAAJ,EAAA,IAACM,EAAA,QAAA,CAEC,OAAQH,EACR,UAAU,SACT,GAAGC,CAAA,EAHCA,EAAa,KAIpB,CAEH,CAAA,EACH,CAEJ"}
1
+ {"version":3,"file":"NavItems.cjs","sources":["../../../src/components/NavItems.tsx"],"sourcesContent":["'use client';\r\nimport { NavLink, Stack } from '@mantine/core';\r\nimport Link from 'next/link';\r\nimport { usePathname } from 'next/navigation';\r\nimport path from 'path';\r\nimport { MouseEvent, ReactNode } from 'react';\r\n\r\nexport interface NavItemsProps {\r\n items: {\r\n leftSection?: ReactNode;\r\n rightSection?: ReactNode;\r\n onClick?: (e: MouseEvent<Element>) => void;\r\n disabled?: boolean;\r\n className?: string;\r\n children?: ReactNode;\r\n label: string;\r\n\r\n // custom props\r\n href?: string;\r\n isActive?: boolean;\r\n }[];\r\n activeStrategy?: 'equals' | 'includes';\r\n}\r\n\r\nexport const NavItems = ({ items, activeStrategy = 'includes' }: NavItemsProps) => {\r\n const pathname = usePathname();\r\n\r\n return (\r\n <Stack gap={0}>\r\n {items.map(({ href, isActive, ...navLinkProps }) => {\r\n if (href) {\r\n const active =\r\n isActive ?? (activeStrategy === 'equals' ? href === pathname : href.includes(pathname));\r\n return (\r\n <NavLink\r\n active={active}\r\n key={navLinkProps.label}\r\n component={Link}\r\n prefetch={false}\r\n href={href}\r\n {...navLinkProps}\r\n />\r\n );\r\n }\r\n\r\n return (\r\n <NavLink\r\n key={navLinkProps.label}\r\n active={isActive}\r\n component=\"button\"\r\n {...navLinkProps}\r\n />\r\n );\r\n })}\r\n </Stack>\r\n );\r\n};\r\n"],"names":["NavItems","items","activeStrategy","pathname","usePathname","jsx","Stack","href","isActive","navLinkProps","active","NavLink","Link"],"mappings":"2PAwBaA,EAAW,CAAC,CAAE,MAAAC,EAAO,eAAAC,EAAiB,cAAgC,CACjF,MAAMC,EAAWC,EAAAA,YAAY,EAE7B,OACGC,EAAA,IAAAC,EAAA,MAAA,CAAM,IAAK,EACT,SAAML,EAAA,IAAI,CAAC,CAAE,KAAAM,EAAM,SAAAC,EAAU,GAAGC,CAAA,IAAmB,CAClD,GAAIF,EAAM,CACF,MAAAG,EACJF,IAAaN,IAAmB,SAAWK,IAASJ,EAAWI,EAAK,SAASJ,CAAQ,GAErF,OAAAE,EAAA,IAACM,EAAA,QAAA,CACC,OAAAD,EAEA,UAAWE,EAAA,QACX,SAAU,GACV,KAAAL,EACC,GAAGE,CAAA,EAJCA,EAAa,KAKpB,CAAA,CAKF,OAAAJ,EAAA,IAACM,EAAA,QAAA,CAEC,OAAQH,EACR,UAAU,SACT,GAAGC,CAAA,EAHCA,EAAa,KAIpB,CAEH,CAAA,EACH,CAEJ"}
@@ -1,37 +1,37 @@
1
1
  "use client";
2
2
  import { jsx as m } from "react/jsx-runtime";
3
- import { Stack as l, NavLink as n } from "@mantine/core";
4
- import p from "next/link";
5
- import { usePathname as i } from "next/navigation";
6
- const d = ({ items: r }) => {
7
- const a = i();
8
- return /* @__PURE__ */ m(l, { gap: 0, children: r.map(({ href: e, isActive: o, ...t }) => {
9
- if (e) {
10
- const c = o ?? e.includes(a);
3
+ import { Stack as u, NavLink as a } from "@mantine/core";
4
+ import i from "next/link";
5
+ import { usePathname as p } from "next/navigation";
6
+ const x = ({ items: c, activeStrategy: r = "includes" }) => {
7
+ const o = p();
8
+ return /* @__PURE__ */ m(u, { gap: 0, children: c.map(({ href: t, isActive: n, ...e }) => {
9
+ if (t) {
10
+ const l = n ?? (r === "equals" ? t === o : t.includes(o));
11
11
  return /* @__PURE__ */ m(
12
- n,
12
+ a,
13
13
  {
14
- active: c,
15
- component: p,
14
+ active: l,
15
+ component: i,
16
16
  prefetch: !1,
17
- href: e,
18
- ...t
17
+ href: t,
18
+ ...e
19
19
  },
20
- t.label
20
+ e.label
21
21
  );
22
22
  }
23
23
  return /* @__PURE__ */ m(
24
- n,
24
+ a,
25
25
  {
26
- active: o,
26
+ active: n,
27
27
  component: "button",
28
- ...t
28
+ ...e
29
29
  },
30
- t.label
30
+ e.label
31
31
  );
32
32
  }) });
33
33
  };
34
34
  export {
35
- d as NavItems
35
+ x as NavItems
36
36
  };
37
37
  //# sourceMappingURL=NavItems.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavItems.mjs","sources":["../../../src/components/NavItems.tsx"],"sourcesContent":["'use client';\r\nimport { NavLink, Stack } from '@mantine/core';\r\nimport Link from 'next/link';\r\nimport { usePathname } from 'next/navigation';\r\nimport { MouseEvent, ReactNode } from 'react';\r\n\r\nexport interface NavItemsProps {\r\n items: {\r\n leftSection?: ReactNode;\r\n rightSection?: ReactNode;\r\n onClick?: (e: MouseEvent<Element>) => void;\r\n disabled?: boolean;\r\n className?: string;\r\n children?: ReactNode;\r\n label: string;\r\n\r\n // custom props\r\n href?: string;\r\n isActive?: boolean;\r\n }[];\r\n}\r\n\r\nexport const NavItems = ({ items }: NavItemsProps) => {\r\n const pathname = usePathname();\r\n\r\n return (\r\n <Stack gap={0}>\r\n {items.map(({ href, isActive, ...navLinkProps }) => {\r\n if (href) {\r\n const active = isActive ?? href.includes(pathname);\r\n return (\r\n <NavLink\r\n active={active}\r\n key={navLinkProps.label}\r\n component={Link}\r\n prefetch={false}\r\n href={href}\r\n {...navLinkProps}\r\n />\r\n );\r\n }\r\n\r\n return (\r\n <NavLink\r\n key={navLinkProps.label}\r\n active={isActive}\r\n component=\"button\"\r\n {...navLinkProps}\r\n />\r\n );\r\n })}\r\n </Stack>\r\n );\r\n};\r\n"],"names":["NavItems","items","pathname","usePathname","jsx","Stack","href","isActive","navLinkProps","active","NavLink","Link"],"mappings":";;;;;AAsBO,MAAMA,IAAW,CAAC,EAAE,OAAAC,QAA2B;AACpD,QAAMC,IAAWC,EAAY;AAE7B,SACG,gBAAAC,EAAAC,GAAA,EAAM,KAAK,GACT,UAAMJ,EAAA,IAAI,CAAC,EAAE,MAAAK,GAAM,UAAAC,GAAU,GAAGC,EAAA,MAAmB;AAClD,QAAIF,GAAM;AACR,YAAMG,IAASF,KAAYD,EAAK,SAASJ,CAAQ;AAE/C,aAAA,gBAAAE;AAAA,QAACM;AAAA,QAAA;AAAA,UACC,QAAAD;AAAA,UAEA,WAAWE;AAAA,UACX,UAAU;AAAA,UACV,MAAAL;AAAA,UACC,GAAGE;AAAA,QAAA;AAAA,QAJCA,EAAa;AAAA,MAKpB;AAAA,IAAA;AAKF,WAAA,gBAAAJ;AAAA,MAACM;AAAA,MAAA;AAAA,QAEC,QAAQH;AAAA,QACR,WAAU;AAAA,QACT,GAAGC;AAAA,MAAA;AAAA,MAHCA,EAAa;AAAA,IAIpB;AAAA,EAEH,CAAA,GACH;AAEJ;"}
1
+ {"version":3,"file":"NavItems.mjs","sources":["../../../src/components/NavItems.tsx"],"sourcesContent":["'use client';\r\nimport { NavLink, Stack } from '@mantine/core';\r\nimport Link from 'next/link';\r\nimport { usePathname } from 'next/navigation';\r\nimport path from 'path';\r\nimport { MouseEvent, ReactNode } from 'react';\r\n\r\nexport interface NavItemsProps {\r\n items: {\r\n leftSection?: ReactNode;\r\n rightSection?: ReactNode;\r\n onClick?: (e: MouseEvent<Element>) => void;\r\n disabled?: boolean;\r\n className?: string;\r\n children?: ReactNode;\r\n label: string;\r\n\r\n // custom props\r\n href?: string;\r\n isActive?: boolean;\r\n }[];\r\n activeStrategy?: 'equals' | 'includes';\r\n}\r\n\r\nexport const NavItems = ({ items, activeStrategy = 'includes' }: NavItemsProps) => {\r\n const pathname = usePathname();\r\n\r\n return (\r\n <Stack gap={0}>\r\n {items.map(({ href, isActive, ...navLinkProps }) => {\r\n if (href) {\r\n const active =\r\n isActive ?? (activeStrategy === 'equals' ? href === pathname : href.includes(pathname));\r\n return (\r\n <NavLink\r\n active={active}\r\n key={navLinkProps.label}\r\n component={Link}\r\n prefetch={false}\r\n href={href}\r\n {...navLinkProps}\r\n />\r\n );\r\n }\r\n\r\n return (\r\n <NavLink\r\n key={navLinkProps.label}\r\n active={isActive}\r\n component=\"button\"\r\n {...navLinkProps}\r\n />\r\n );\r\n })}\r\n </Stack>\r\n );\r\n};\r\n"],"names":["NavItems","items","activeStrategy","pathname","usePathname","jsx","Stack","href","isActive","navLinkProps","active","NavLink","Link"],"mappings":";;;;;AAwBO,MAAMA,IAAW,CAAC,EAAE,OAAAC,GAAO,gBAAAC,IAAiB,iBAAgC;AACjF,QAAMC,IAAWC,EAAY;AAE7B,SACG,gBAAAC,EAAAC,GAAA,EAAM,KAAK,GACT,UAAML,EAAA,IAAI,CAAC,EAAE,MAAAM,GAAM,UAAAC,GAAU,GAAGC,EAAA,MAAmB;AAClD,QAAIF,GAAM;AACF,YAAAG,IACJF,MAAaN,MAAmB,WAAWK,MAASJ,IAAWI,EAAK,SAASJ,CAAQ;AAErF,aAAA,gBAAAE;AAAA,QAACM;AAAA,QAAA;AAAA,UACC,QAAAD;AAAA,UAEA,WAAWE;AAAA,UACX,UAAU;AAAA,UACV,MAAAL;AAAA,UACC,GAAGE;AAAA,QAAA;AAAA,QAJCA,EAAa;AAAA,MAKpB;AAAA,IAAA;AAKF,WAAA,gBAAAJ;AAAA,MAACM;AAAA,MAAA;AAAA,QAEC,QAAQH;AAAA,QACR,WAAU;AAAA,QACT,GAAGC;AAAA,MAAA;AAAA,MAHCA,EAAa;AAAA,IAIpB;AAAA,EAEH,CAAA,GACH;AAEJ;"}
@@ -1 +1 @@
1
- {"version":3,"file":"FormSelect.cjs","sources":["../../../../src/form/base/FormSelect.tsx"],"sourcesContent":["import { MySelectProps, MySelect } from 'src/components';\r\nimport { WithFormProps, withForm } from 'src/hocs';\r\n\r\nexport type FormSelectProps = MySelectProps & WithFormProps;\r\n\r\nexport const FormSelect = withForm<FormSelectProps>(({ field, props }) => (\r\n <MySelect\r\n {...field}\r\n {...props}\r\n />\r\n));\r\n"],"names":["FormSelect","withForm","field","props","jsx","MySelect"],"mappings":"2MAKaA,EAAaC,EAAAA,SAA0B,CAAC,CAAE,MAAAC,EAAO,MAAAC,CAC5D,IAAAC,EAAA,IAACC,EAAA,SAAA,CACE,GAAGH,EACH,GAAGC,CAAA,CACN,CACD"}
1
+ {"version":3,"file":"FormSelect.cjs","sources":["../../../../src/form/base/FormSelect.tsx"],"sourcesContent":["import { MySelectProps, MyMultiSelect, MySelect } from 'src/components';\r\nimport { WithFormProps, withForm } from 'src/hocs';\r\n\r\nexport type FormSelectProps = MySelectProps & WithFormProps;\r\n\r\nexport const FormSelect = withForm<FormSelectProps>(({ field, props }) => (\r\n <MySelect\r\n {...field}\r\n {...props}\r\n />\r\n));\r\n"],"names":["FormSelect","withForm","field","props","jsx","MySelect"],"mappings":"2MAKaA,EAAaC,EAAAA,SAA0B,CAAC,CAAE,MAAAC,EAAO,MAAAC,CAC5D,IAAAC,EAAA,IAACC,EAAA,SAAA,CACE,GAAGH,EACH,GAAGC,CAAA,CACN,CACD"}
@@ -1 +1 @@
1
- {"version":3,"file":"FormSelect.mjs","sources":["../../../../src/form/base/FormSelect.tsx"],"sourcesContent":["import { MySelectProps, MySelect } from 'src/components';\r\nimport { WithFormProps, withForm } from 'src/hocs';\r\n\r\nexport type FormSelectProps = MySelectProps & WithFormProps;\r\n\r\nexport const FormSelect = withForm<FormSelectProps>(({ field, props }) => (\r\n <MySelect\r\n {...field}\r\n {...props}\r\n />\r\n));\r\n"],"names":["FormSelect","withForm","field","props","jsx","MySelect"],"mappings":";;;AAKO,MAAMA,IAAaC,EAA0B,CAAC,EAAE,OAAAC,GAAO,OAAAC,EAC5D,MAAA,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACE,GAAGH;AAAA,IACH,GAAGC;AAAA,EAAA;AACN,CACD;"}
1
+ {"version":3,"file":"FormSelect.mjs","sources":["../../../../src/form/base/FormSelect.tsx"],"sourcesContent":["import { MySelectProps, MyMultiSelect, MySelect } from 'src/components';\r\nimport { WithFormProps, withForm } from 'src/hocs';\r\n\r\nexport type FormSelectProps = MySelectProps & WithFormProps;\r\n\r\nexport const FormSelect = withForm<FormSelectProps>(({ field, props }) => (\r\n <MySelect\r\n {...field}\r\n {...props}\r\n />\r\n));\r\n"],"names":["FormSelect","withForm","field","props","jsx","MySelect"],"mappings":";;;AAKO,MAAMA,IAAaC,EAA0B,CAAC,EAAE,OAAAC,GAAO,OAAAC,EAC5D,MAAA,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACE,GAAGH;AAAA,IACH,GAAGC;AAAA,EAAA;AACN,CACD;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./components/EmptyState/index.cjs"),u=require("./components/InfinityLoader/index.cjs"),a=require("./components/NavItems.cjs"),s=require("./components/Icon.cjs"),c=require("./components/MyDatePickerInput/index.cjs"),m=require("./components/MyDateTimePicker/index.cjs"),d=require("./components/MyNotifications/index.cjs"),l=require("./components/MyNumberInput/index.cjs"),y=require("./components/MySelect/index.cjs"),p=require("./components/MyTextarea/index.cjs"),q=require("./components/MyTextInput/index.cjs"),F=require("./components/MyTimeInput/index.cjs"),I=require("./components/SelectInfinity/index.cjs"),x=require("./consts/http-status.cjs"),P=require("./consts/revalidate.cjs"),e=require("./contexts/NavigationHistoryContext/index.cjs"),t=require("./contexts/PageDataContext/index.cjs"),T=require("./form/Form.cjs"),S=require("./form/FormButtonSubmit.cjs"),f=require("./form/utils/zodValidator.cjs"),h=require("./form/utils/nullable-but-required.cjs"),B=require("./form/utils/optional-but-required.cjs"),M=require("./form/base/FormCheckbox.cjs"),b=require("./form/base/FormDatePickerInput.cjs"),N=require("./form/base/FormDateTimePicker.cjs"),g=require("./form/base/FormNumberInput.cjs"),k=require("./form/base/FormRadioGroup.cjs"),D=require("./form/base/FormSelect.cjs"),v=require("./form/base/FormSelectInfinity.cjs"),R=require("./form/base/FormTextarea.cjs"),w=require("./form/base/FormTextInput.cjs"),r=require("./form/base/FormTimeInput.cjs"),H=require("./hocs/withForm.cjs"),$=require("./hocs/withModalManager.cjs"),E=require("./hooks/useBreakpoint.cjs"),O=require("./hooks/useFetchNextPageOnScroll.cjs"),C=require("./hooks/useOnScrollProgress.cjs"),A=require("./hooks/useUpdateSearchParams.cjs"),J=require("./mantine/breakpoints-with-px.cjs"),_=require("./mantine/to-tailwind-colors.cjs"),U=require("./mantine/my-default-theme.cjs"),K=require("./utils/formatBytes.cjs"),o=require("./utils/ky/addBodyJsonHook.cjs"),L=require("./utils/ky/parseJson.cjs"),i=require("./utils/array/groupBy.cjs"),z=require("./utils/array/shuffleArray.cjs"),G=require("./utils/newHref.cjs"),V=require("./utils/isInfinityEmpty.cjs");exports.EmptyState=n.EmptyState;exports.InfinityLoader=u.InfinityLoader;exports.NavItems=a.NavItems;exports.Icon=s.Icon;exports.MyDatePickerInput=c.MyDatePickerInput;exports.MyDateTimePicker=m.MyDateTimePicker;exports.MyNotifications=d.MyNotifications;exports.MyNumberInput=l.MyNumberInput;exports.MySelect=y.MySelect;exports.MyTextarea=p.MyTextarea;exports.MyTextInput=q.MyTextInput;exports.MyTimeInput=F.MyTimeInput;exports.SelectInfinity=I.SelectInfinity;exports.HttpStatus=x.HttpStatus;exports.Revalidate=P.Revalidate;exports.NavigationHistoryProvider=e.NavigationHistoryProvider;exports.QP_BACK_URL_NAME=e.QP_BACK_URL_NAME;exports.useNavigationHistory=e.useNavigationHistory;exports.PageDataProvider=t.PageDataProvider;exports.usePageData=t.usePageData;exports.Form=T.Form;exports.FormButtonSubmit=S.FormButtonSubmit;exports.zodValidator=f.zodValidator;exports.nullableButRequired=h.nullableButRequired;exports.optionalButRequired=B.optionalButRequired;exports.FormCheckbox=M.FormCheckbox;exports.FormDatePickerInput=b.FormDatePickerInput;exports.FormDateTimePicker=N.FormDateTimePicker;exports.FormNumberInput=g.FormNumberInput;exports.FormRadioGroup=k.FormRadioGroup;exports.FormSelect=D.FormSelect;exports.FormSelectInfinity=v.FormSelectInfinity;exports.FormTextarea=R.FormTextarea;exports.FormTextInput=w.FormTextInput;exports.FormTimeInput=r.FormTimeInput;exports.numberToTimeInput=r.numberToTimeInput;exports.timeInputToNumber=r.timeInputToNumber;exports.withForm=H.withForm;exports.withModalManager=$.withModalManager;exports.useBreakpoint=E.useBreakpoint;exports.useFetchNextPageOnScroll=O.useFetchNextPageOnScroll;exports.useOnScrollProgress=C.useOnScrollProgress;exports.useUpdateSearchParams=A.useUpdateSearchParams;exports.breakpointsWithPx=J.breakpointsWithPx;exports.toTailwindColors=_.toTailwindColors;exports.myDefaultTheme=U.myDefaultTheme;exports.formatBytes=K.formatBytes;exports.KyError=o.KyError;exports.addBodyJsonHook=o.addBodyJsonHook;exports.parseJSON=L.parseJSON;exports.groupBy=i.groupBy;exports.indexBy=i.indexBy;exports.shuffleArray=z.shuffleArray;exports.newHref=G.newHref;exports.isInfinityEmpty=V.isInfinityEmpty;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./components/EmptyState/index.cjs"),u=require("./components/InfinityLoader/index.cjs"),a=require("./components/NavItems.cjs"),s=require("./components/Icon.cjs"),c=require("./components/MyDatePickerInput/index.cjs"),m=require("./components/MyDateTimePicker/index.cjs"),l=require("./components/MyNotifications/index.cjs"),d=require("./components/MyNumberInput/index.cjs"),y=require("./components/MySelect/index.cjs"),q=require("./components/MyTextarea/index.cjs"),p=require("./components/MyTextInput/index.cjs"),F=require("./components/MyTimeInput/index.cjs"),I=require("./components/SelectInfinity/index.cjs"),x=require("./components/MyMultiSelect/index.cjs"),P=require("./consts/http-status.cjs"),S=require("./consts/revalidate.cjs"),e=require("./contexts/NavigationHistoryContext/index.cjs"),t=require("./contexts/PageDataContext/index.cjs"),T=require("./form/Form.cjs"),M=require("./form/FormButtonSubmit.cjs"),f=require("./form/utils/zodValidator.cjs"),h=require("./form/utils/nullable-but-required.cjs"),B=require("./form/utils/optional-but-required.cjs"),b=require("./form/base/FormCheckbox.cjs"),N=require("./form/base/FormDatePickerInput.cjs"),g=require("./form/base/FormDateTimePicker.cjs"),k=require("./form/base/FormNumberInput.cjs"),D=require("./form/base/FormRadioGroup.cjs"),v=require("./form/base/FormSelect.cjs"),R=require("./form/base/FormSelectInfinity.cjs"),$=require("./form/base/FormTextarea.cjs"),w=require("./form/base/FormTextInput.cjs"),r=require("./form/base/FormTimeInput.cjs"),H=require("./hocs/withForm.cjs"),E=require("./hocs/withModalManager.cjs"),O=require("./hooks/useBreakpoint.cjs"),C=require("./hooks/useFetchNextPageOnScroll.cjs"),A=require("./hooks/useOnScrollProgress.cjs"),J=require("./hooks/useUpdateSearchParams.cjs"),_=require("./mantine/breakpoints-with-px.cjs"),U=require("./mantine/to-tailwind-colors.cjs"),K=require("./mantine/my-default-theme.cjs"),L=require("./utils/formatBytes.cjs"),o=require("./utils/ky/addBodyJsonHook.cjs"),z=require("./utils/ky/parseJson.cjs"),i=require("./utils/array/groupBy.cjs"),G=require("./utils/array/shuffleArray.cjs"),V=require("./utils/newHref.cjs"),W=require("./utils/isInfinityEmpty.cjs");exports.EmptyState=n.EmptyState;exports.InfinityLoader=u.InfinityLoader;exports.NavItems=a.NavItems;exports.Icon=s.Icon;exports.MyDatePickerInput=c.MyDatePickerInput;exports.MyDateTimePicker=m.MyDateTimePicker;exports.MyNotifications=l.MyNotifications;exports.MyNumberInput=d.MyNumberInput;exports.MySelect=y.MySelect;exports.MyTextarea=q.MyTextarea;exports.MyTextInput=p.MyTextInput;exports.MyTimeInput=F.MyTimeInput;exports.SelectInfinity=I.SelectInfinity;exports.MyMultiSelect=x.MyMultiSelect;exports.HttpStatus=P.HttpStatus;exports.Revalidate=S.Revalidate;exports.NavigationHistoryProvider=e.NavigationHistoryProvider;exports.QP_BACK_URL_NAME=e.QP_BACK_URL_NAME;exports.useNavigationHistory=e.useNavigationHistory;exports.PageDataProvider=t.PageDataProvider;exports.usePageData=t.usePageData;exports.Form=T.Form;exports.FormButtonSubmit=M.FormButtonSubmit;exports.zodValidator=f.zodValidator;exports.nullableButRequired=h.nullableButRequired;exports.optionalButRequired=B.optionalButRequired;exports.FormCheckbox=b.FormCheckbox;exports.FormDatePickerInput=N.FormDatePickerInput;exports.FormDateTimePicker=g.FormDateTimePicker;exports.FormNumberInput=k.FormNumberInput;exports.FormRadioGroup=D.FormRadioGroup;exports.FormSelect=v.FormSelect;exports.FormSelectInfinity=R.FormSelectInfinity;exports.FormTextarea=$.FormTextarea;exports.FormTextInput=w.FormTextInput;exports.FormTimeInput=r.FormTimeInput;exports.numberToTimeInput=r.numberToTimeInput;exports.timeInputToNumber=r.timeInputToNumber;exports.withForm=H.withForm;exports.withModalManager=E.withModalManager;exports.useBreakpoint=O.useBreakpoint;exports.useFetchNextPageOnScroll=C.useFetchNextPageOnScroll;exports.useOnScrollProgress=A.useOnScrollProgress;exports.useUpdateSearchParams=J.useUpdateSearchParams;exports.breakpointsWithPx=_.breakpointsWithPx;exports.toTailwindColors=U.toTailwindColors;exports.myDefaultTheme=K.myDefaultTheme;exports.formatBytes=L.formatBytes;exports.KyError=o.KyError;exports.addBodyJsonHook=o.addBodyJsonHook;exports.parseJSON=z.parseJSON;exports.groupBy=i.groupBy;exports.indexBy=i.indexBy;exports.shuffleArray=G.shuffleArray;exports.newHref=V.newHref;exports.isInfinityEmpty=W.isInfinityEmpty;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -4,103 +4,105 @@ import { NavItems as f } from "./components/NavItems.mjs";
4
4
  import { Icon as a } from "./components/Icon.mjs";
5
5
  import { MyDatePickerInput as n } from "./components/MyDatePickerInput/index.mjs";
6
6
  import { MyDateTimePicker as y } from "./components/MyDateTimePicker/index.mjs";
7
- import { MyNotifications as l } from "./components/MyNotifications/index.mjs";
8
- import { MyNumberInput as I } from "./components/MyNumberInput/index.mjs";
7
+ import { MyNotifications as s } from "./components/MyNotifications/index.mjs";
8
+ import { MyNumberInput as d } from "./components/MyNumberInput/index.mjs";
9
9
  import { MySelect as F } from "./components/MySelect/index.mjs";
10
- import { MyTextarea as T } from "./components/MyTextarea/index.mjs";
10
+ import { MyTextarea as P } from "./components/MyTextarea/index.mjs";
11
11
  import { MyTextInput as S } from "./components/MyTextInput/index.mjs";
12
12
  import { MyTimeInput as B } from "./components/MyTimeInput/index.mjs";
13
13
  import { SelectInfinity as g } from "./components/SelectInfinity/index.mjs";
14
- import { HttpStatus as k } from "./consts/http-status.mjs";
15
- import { Revalidate as v } from "./consts/revalidate.mjs";
16
- import { NavigationHistoryProvider as R, QP_BACK_URL_NAME as w, useNavigationHistory as E } from "./contexts/NavigationHistoryContext/index.mjs";
17
- import { PageDataProvider as C, usePageData as O } from "./contexts/PageDataContext/index.mjs";
18
- import { Form as q } from "./form/Form.mjs";
19
- import { FormButtonSubmit as K } from "./form/FormButtonSubmit.mjs";
20
- import { zodValidator as U } from "./form/utils/zodValidator.mjs";
21
- import { nullableButRequired as G } from "./form/utils/nullable-but-required.mjs";
22
- import { optionalButRequired as V } from "./form/utils/optional-but-required.mjs";
23
- import { FormCheckbox as j } from "./form/base/FormCheckbox.mjs";
24
- import { FormDatePickerInput as Y } from "./form/base/FormDatePickerInput.mjs";
25
- import { FormDateTimePicker as $ } from "./form/base/FormDateTimePicker.mjs";
26
- import { FormNumberInput as or } from "./form/base/FormNumberInput.mjs";
27
- import { FormRadioGroup as tr } from "./form/base/FormRadioGroup.mjs";
28
- import { FormSelect as pr } from "./form/base/FormSelect.mjs";
29
- import { FormSelectInfinity as xr } from "./form/base/FormSelectInfinity.mjs";
30
- import { FormTextarea as ir } from "./form/base/FormTextarea.mjs";
31
- import { FormTextInput as ur } from "./form/base/FormTextInput.mjs";
32
- import { FormTimeInput as sr, numberToTimeInput as lr, timeInputToNumber as dr } from "./form/base/FormTimeInput.mjs";
33
- import { withForm as cr } from "./hocs/withForm.mjs";
34
- import { withModalManager as Pr } from "./hocs/withModalManager.mjs";
35
- import { useBreakpoint as Mr } from "./hooks/useBreakpoint.mjs";
36
- import { useFetchNextPageOnScroll as Nr } from "./hooks/useFetchNextPageOnScroll.mjs";
37
- import { useOnScrollProgress as br } from "./hooks/useOnScrollProgress.mjs";
38
- import { useUpdateSearchParams as hr } from "./hooks/useUpdateSearchParams.mjs";
39
- import { breakpointsWithPx as Dr } from "./mantine/breakpoints-with-px.mjs";
40
- import { toTailwindColors as Hr } from "./mantine/to-tailwind-colors.mjs";
41
- import { myDefaultTheme as wr } from "./mantine/my-default-theme.mjs";
42
- import { formatBytes as Ar } from "./utils/formatBytes.mjs";
43
- import { KyError as Or, addBodyJsonHook as _r } from "./utils/ky/addBodyJsonHook.mjs";
44
- import { parseJSON as Jr } from "./utils/ky/parseJson.mjs";
45
- import { groupBy as Lr, indexBy as Ur } from "./utils/array/groupBy.mjs";
46
- import { shuffleArray as Gr } from "./utils/array/shuffleArray.mjs";
47
- import { newHref as Vr } from "./utils/newHref.mjs";
48
- import { isInfinityEmpty as jr } from "./utils/isInfinityEmpty.mjs";
14
+ import { MyMultiSelect as k } from "./components/MyMultiSelect/index.mjs";
15
+ import { HttpStatus as v } from "./consts/http-status.mjs";
16
+ import { Revalidate as R } from "./consts/revalidate.mjs";
17
+ import { NavigationHistoryProvider as E, QP_BACK_URL_NAME as A, useNavigationHistory as C } from "./contexts/NavigationHistoryContext/index.mjs";
18
+ import { PageDataProvider as _, usePageData as q } from "./contexts/PageDataContext/index.mjs";
19
+ import { Form as K } from "./form/Form.mjs";
20
+ import { FormButtonSubmit as U } from "./form/FormButtonSubmit.mjs";
21
+ import { zodValidator as G } from "./form/utils/zodValidator.mjs";
22
+ import { nullableButRequired as V } from "./form/utils/nullable-but-required.mjs";
23
+ import { optionalButRequired as j } from "./form/utils/optional-but-required.mjs";
24
+ import { FormCheckbox as Y } from "./form/base/FormCheckbox.mjs";
25
+ import { FormDatePickerInput as $ } from "./form/base/FormDatePickerInput.mjs";
26
+ import { FormDateTimePicker as or } from "./form/base/FormDateTimePicker.mjs";
27
+ import { FormNumberInput as tr } from "./form/base/FormNumberInput.mjs";
28
+ import { FormRadioGroup as pr } from "./form/base/FormRadioGroup.mjs";
29
+ import { FormSelect as xr } from "./form/base/FormSelect.mjs";
30
+ import { FormSelectInfinity as ir } from "./form/base/FormSelectInfinity.mjs";
31
+ import { FormTextarea as ur } from "./form/base/FormTextarea.mjs";
32
+ import { FormTextInput as lr } from "./form/base/FormTextInput.mjs";
33
+ import { FormTimeInput as cr, numberToTimeInput as dr, timeInputToNumber as Ir } from "./form/base/FormTimeInput.mjs";
34
+ import { withForm as Mr } from "./hocs/withForm.mjs";
35
+ import { withModalManager as Tr } from "./hocs/withModalManager.mjs";
36
+ import { useBreakpoint as Nr } from "./hooks/useBreakpoint.mjs";
37
+ import { useFetchNextPageOnScroll as br } from "./hooks/useFetchNextPageOnScroll.mjs";
38
+ import { useOnScrollProgress as hr } from "./hooks/useOnScrollProgress.mjs";
39
+ import { useUpdateSearchParams as Dr } from "./hooks/useUpdateSearchParams.mjs";
40
+ import { breakpointsWithPx as Hr } from "./mantine/breakpoints-with-px.mjs";
41
+ import { toTailwindColors as wr } from "./mantine/to-tailwind-colors.mjs";
42
+ import { myDefaultTheme as Ar } from "./mantine/my-default-theme.mjs";
43
+ import { formatBytes as Or } from "./utils/formatBytes.mjs";
44
+ import { KyError as qr, addBodyJsonHook as Jr } from "./utils/ky/addBodyJsonHook.mjs";
45
+ import { parseJSON as Lr } from "./utils/ky/parseJson.mjs";
46
+ import { groupBy as zr, indexBy as Gr } from "./utils/array/groupBy.mjs";
47
+ import { shuffleArray as Vr } from "./utils/array/shuffleArray.mjs";
48
+ import { newHref as jr } from "./utils/newHref.mjs";
49
+ import { isInfinityEmpty as Yr } from "./utils/isInfinityEmpty.mjs";
49
50
  export {
50
51
  e as EmptyState,
51
- q as Form,
52
- K as FormButtonSubmit,
53
- j as FormCheckbox,
54
- Y as FormDatePickerInput,
55
- $ as FormDateTimePicker,
56
- or as FormNumberInput,
57
- tr as FormRadioGroup,
58
- pr as FormSelect,
59
- xr as FormSelectInfinity,
60
- ur as FormTextInput,
61
- ir as FormTextarea,
62
- sr as FormTimeInput,
63
- k as HttpStatus,
52
+ K as Form,
53
+ U as FormButtonSubmit,
54
+ Y as FormCheckbox,
55
+ $ as FormDatePickerInput,
56
+ or as FormDateTimePicker,
57
+ tr as FormNumberInput,
58
+ pr as FormRadioGroup,
59
+ xr as FormSelect,
60
+ ir as FormSelectInfinity,
61
+ lr as FormTextInput,
62
+ ur as FormTextarea,
63
+ cr as FormTimeInput,
64
+ v as HttpStatus,
64
65
  a as Icon,
65
66
  m as InfinityLoader,
66
- Or as KyError,
67
+ qr as KyError,
67
68
  n as MyDatePickerInput,
68
69
  y as MyDateTimePicker,
69
- l as MyNotifications,
70
- I as MyNumberInput,
70
+ k as MyMultiSelect,
71
+ s as MyNotifications,
72
+ d as MyNumberInput,
71
73
  F as MySelect,
72
74
  S as MyTextInput,
73
- T as MyTextarea,
75
+ P as MyTextarea,
74
76
  B as MyTimeInput,
75
77
  f as NavItems,
76
- R as NavigationHistoryProvider,
77
- C as PageDataProvider,
78
- w as QP_BACK_URL_NAME,
79
- v as Revalidate,
78
+ E as NavigationHistoryProvider,
79
+ _ as PageDataProvider,
80
+ A as QP_BACK_URL_NAME,
81
+ R as Revalidate,
80
82
  g as SelectInfinity,
81
- _r as addBodyJsonHook,
82
- Dr as breakpointsWithPx,
83
- Ar as formatBytes,
84
- Lr as groupBy,
85
- Ur as indexBy,
86
- jr as isInfinityEmpty,
87
- wr as myDefaultTheme,
88
- Vr as newHref,
89
- G as nullableButRequired,
90
- lr as numberToTimeInput,
91
- V as optionalButRequired,
92
- Jr as parseJSON,
93
- Gr as shuffleArray,
94
- dr as timeInputToNumber,
95
- Hr as toTailwindColors,
96
- Mr as useBreakpoint,
97
- Nr as useFetchNextPageOnScroll,
98
- E as useNavigationHistory,
99
- br as useOnScrollProgress,
100
- O as usePageData,
101
- hr as useUpdateSearchParams,
102
- cr as withForm,
103
- Pr as withModalManager,
104
- U as zodValidator
83
+ Jr as addBodyJsonHook,
84
+ Hr as breakpointsWithPx,
85
+ Or as formatBytes,
86
+ zr as groupBy,
87
+ Gr as indexBy,
88
+ Yr as isInfinityEmpty,
89
+ Ar as myDefaultTheme,
90
+ jr as newHref,
91
+ V as nullableButRequired,
92
+ dr as numberToTimeInput,
93
+ j as optionalButRequired,
94
+ Lr as parseJSON,
95
+ Vr as shuffleArray,
96
+ Ir as timeInputToNumber,
97
+ wr as toTailwindColors,
98
+ Nr as useBreakpoint,
99
+ br as useFetchNextPageOnScroll,
100
+ C as useNavigationHistory,
101
+ hr as useOnScrollProgress,
102
+ q as usePageData,
103
+ Dr as useUpdateSearchParams,
104
+ Mr as withForm,
105
+ Tr as withModalManager,
106
+ G as zodValidator
105
107
  };
106
108
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkd-web-kit",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "A template for creating React component libraries with Vite.",
5
5
  "author": "LKD",
6
6
  "license": "MIT",