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 +10 -1
- package/dist/src/components/MyMultiSelect/index.cjs +2 -0
- package/dist/src/components/MyMultiSelect/index.cjs.map +1 -0
- package/dist/src/components/MyMultiSelect/index.mjs +13 -0
- package/dist/src/components/MyMultiSelect/index.mjs.map +1 -0
- package/dist/src/components/NavItems.cjs +1 -1
- package/dist/src/components/NavItems.cjs.map +1 -1
- package/dist/src/components/NavItems.mjs +19 -19
- package/dist/src/components/NavItems.mjs.map +1 -1
- package/dist/src/form/base/FormSelect.cjs.map +1 -1
- package/dist/src/form/base/FormSelect.mjs.map +1 -1
- package/dist/src/index.cjs +1 -1
- package/dist/src/index.mjs +85 -83
- package/dist/src/index.mjs.map +1 -1
- package/package.json +1 -1
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 @@
|
|
|
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"),
|
|
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
|
|
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
|
|
4
|
-
import
|
|
5
|
-
import { usePathname as
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
return /* @__PURE__ */ m(
|
|
9
|
-
if (
|
|
10
|
-
const
|
|
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
|
-
|
|
12
|
+
a,
|
|
13
13
|
{
|
|
14
|
-
active:
|
|
15
|
-
component:
|
|
14
|
+
active: l,
|
|
15
|
+
component: i,
|
|
16
16
|
prefetch: !1,
|
|
17
|
-
href:
|
|
18
|
-
...
|
|
17
|
+
href: t,
|
|
18
|
+
...e
|
|
19
19
|
},
|
|
20
|
-
|
|
20
|
+
e.label
|
|
21
21
|
);
|
|
22
22
|
}
|
|
23
23
|
return /* @__PURE__ */ m(
|
|
24
|
-
|
|
24
|
+
a,
|
|
25
25
|
{
|
|
26
|
-
active:
|
|
26
|
+
active: n,
|
|
27
27
|
component: "button",
|
|
28
|
-
...
|
|
28
|
+
...e
|
|
29
29
|
},
|
|
30
|
-
|
|
30
|
+
e.label
|
|
31
31
|
);
|
|
32
32
|
}) });
|
|
33
33
|
};
|
|
34
34
|
export {
|
|
35
|
-
|
|
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
|
|
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;"}
|
package/dist/src/index.cjs
CHANGED
|
@@ -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"),
|
|
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
|
package/dist/src/index.mjs
CHANGED
|
@@ -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
|
|
8
|
-
import { MyNumberInput as
|
|
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
|
|
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 {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
|
|
67
|
+
qr as KyError,
|
|
67
68
|
n as MyDatePickerInput,
|
|
68
69
|
y as MyDateTimePicker,
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
k as MyMultiSelect,
|
|
71
|
+
s as MyNotifications,
|
|
72
|
+
d as MyNumberInput,
|
|
71
73
|
F as MySelect,
|
|
72
74
|
S as MyTextInput,
|
|
73
|
-
|
|
75
|
+
P as MyTextarea,
|
|
74
76
|
B as MyTimeInput,
|
|
75
77
|
f as NavItems,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
E as NavigationHistoryProvider,
|
|
79
|
+
_ as PageDataProvider,
|
|
80
|
+
A as QP_BACK_URL_NAME,
|
|
81
|
+
R as Revalidate,
|
|
80
82
|
g as SelectInfinity,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
package/dist/src/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|