lkd-web-kit 0.2.1 → 0.2.3
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 +12 -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/FormMultiSelect.cjs +2 -0
- package/dist/src/form/base/FormMultiSelect.cjs.map +1 -0
- package/dist/src/form/base/FormMultiSelect.mjs +14 -0
- package/dist/src/form/base/FormMultiSelect.mjs.map +1 -0
- 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 +91 -87
- 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,10 @@ export declare type FormFieldProps<T = unknown> = Parameters<ControllerProps['re
|
|
|
116
117
|
};
|
|
117
118
|
};
|
|
118
119
|
|
|
120
|
+
export declare const FormMultiSelect: FC<MyMultiSelectProps & WithFormProps>;
|
|
121
|
+
|
|
122
|
+
export declare type FormMultiSelectProps = MyMultiSelectProps & WithFormProps;
|
|
123
|
+
|
|
119
124
|
export declare const FormNumberInput: FC<MyNumberInputProps & WithFormProps>;
|
|
120
125
|
|
|
121
126
|
export declare type FormNumberInputProps = MyNumberInputProps & WithFormProps;
|
|
@@ -282,6 +287,11 @@ export declare interface MyDateTimePickerProps extends DateTimePickerProps {
|
|
|
282
287
|
|
|
283
288
|
export declare const myDefaultTheme: MantineThemeOverride;
|
|
284
289
|
|
|
290
|
+
export declare const MyMultiSelect: (props: MyMultiSelectProps) => JSX.Element;
|
|
291
|
+
|
|
292
|
+
export declare interface MyMultiSelectProps extends MultiSelectProps {
|
|
293
|
+
}
|
|
294
|
+
|
|
285
295
|
export declare interface MyNotificationPrpos extends NotificationsProps {
|
|
286
296
|
}
|
|
287
297
|
|
|
@@ -330,7 +340,7 @@ declare interface NavigationHistoryProviderProps {
|
|
|
330
340
|
children: ReactNode;
|
|
331
341
|
}
|
|
332
342
|
|
|
333
|
-
export declare const NavItems: ({ items }: NavItemsProps) => JSX.Element;
|
|
343
|
+
export declare const NavItems: ({ items, activeStrategy }: NavItemsProps) => JSX.Element;
|
|
334
344
|
|
|
335
345
|
export declare interface NavItemsProps {
|
|
336
346
|
items: {
|
|
@@ -344,6 +354,7 @@ export declare interface NavItemsProps {
|
|
|
344
354
|
href?: string;
|
|
345
355
|
isActive?: boolean;
|
|
346
356
|
}[];
|
|
357
|
+
activeStrategy?: 'equals' | 'includes';
|
|
347
358
|
}
|
|
348
359
|
|
|
349
360
|
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;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("../../components/MyMultiSelect/index.cjs"),o=require("../../hocs/withForm.cjs"),u=o.withForm(({field:e,props:t})=>r.jsx(i.MyMultiSelect,{...e,...t}));exports.FormMultiSelect=u;
|
|
2
|
+
//# sourceMappingURL=FormMultiSelect.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormMultiSelect.cjs","sources":["../../../../src/form/base/FormMultiSelect.tsx"],"sourcesContent":["import { MultiSelect, MultiSelectProps } from '@mantine/core';\r\nimport { MyMultiSelect, MyMultiSelectProps } from 'src/components';\r\nimport { WithFormProps, withForm } from 'src/hocs';\r\n\r\nexport type FormMultiSelectProps = MyMultiSelectProps & WithFormProps;\r\n\r\nexport const FormMultiSelect = withForm<FormMultiSelectProps>(({ field, props }) => (\r\n <MyMultiSelect\r\n {...field}\r\n {...props}\r\n />\r\n));\r\n"],"names":["FormMultiSelect","withForm","field","props","jsx","MyMultiSelect"],"mappings":"gNAMaA,EAAkBC,EAAAA,SAA+B,CAAC,CAAE,MAAAC,EAAO,MAAAC,CACtE,IAAAC,EAAA,IAACC,EAAA,cAAA,CACE,GAAGH,EACH,GAAGC,CAAA,CACN,CACD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { MyMultiSelect as m } from "../../components/MyMultiSelect/index.mjs";
|
|
3
|
+
import { withForm as i } from "../../hocs/withForm.mjs";
|
|
4
|
+
const c = i(({ field: o, props: t }) => /* @__PURE__ */ r(
|
|
5
|
+
m,
|
|
6
|
+
{
|
|
7
|
+
...o,
|
|
8
|
+
...t
|
|
9
|
+
}
|
|
10
|
+
));
|
|
11
|
+
export {
|
|
12
|
+
c as FormMultiSelect
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=FormMultiSelect.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormMultiSelect.mjs","sources":["../../../../src/form/base/FormMultiSelect.tsx"],"sourcesContent":["import { MultiSelect, MultiSelectProps } from '@mantine/core';\r\nimport { MyMultiSelect, MyMultiSelectProps } from 'src/components';\r\nimport { WithFormProps, withForm } from 'src/hocs';\r\n\r\nexport type FormMultiSelectProps = MyMultiSelectProps & WithFormProps;\r\n\r\nexport const FormMultiSelect = withForm<FormMultiSelectProps>(({ field, props }) => (\r\n <MyMultiSelect\r\n {...field}\r\n {...props}\r\n />\r\n));\r\n"],"names":["FormMultiSelect","withForm","field","props","jsx","MyMultiSelect"],"mappings":";;;AAMO,MAAMA,IAAkBC,EAA+B,CAAC,EAAE,OAAAC,GAAO,OAAAC,EACtE,MAAA,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACE,GAAGH;AAAA,IACH,GAAGC;AAAA,EAAA;AACN,CACD;"}
|
|
@@ -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"),S=require("./components/MyMultiSelect/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"),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("./form/base/FormMultiSelect.cjs"),E=require("./hocs/withForm.cjs"),O=require("./hocs/withModalManager.cjs"),C=require("./hooks/useBreakpoint.cjs"),A=require("./hooks/useFetchNextPageOnScroll.cjs"),J=require("./hooks/useOnScrollProgress.cjs"),_=require("./hooks/useUpdateSearchParams.cjs"),U=require("./mantine/breakpoints-with-px.cjs"),K=require("./mantine/to-tailwind-colors.cjs"),L=require("./mantine/my-default-theme.cjs"),z=require("./utils/formatBytes.cjs"),o=require("./utils/ky/addBodyJsonHook.cjs"),G=require("./utils/ky/parseJson.cjs"),i=require("./utils/array/groupBy.cjs"),V=require("./utils/array/shuffleArray.cjs"),W=require("./utils/newHref.cjs"),Q=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=S.MyMultiSelect;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=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.FormMultiSelect=H.FormMultiSelect;exports.withForm=E.withForm;exports.withModalManager=O.withModalManager;exports.useBreakpoint=C.useBreakpoint;exports.useFetchNextPageOnScroll=A.useFetchNextPageOnScroll;exports.useOnScrollProgress=J.useOnScrollProgress;exports.useUpdateSearchParams=_.useUpdateSearchParams;exports.breakpointsWithPx=U.breakpointsWithPx;exports.toTailwindColors=K.toTailwindColors;exports.myDefaultTheme=L.myDefaultTheme;exports.formatBytes=z.formatBytes;exports.KyError=o.KyError;exports.addBodyJsonHook=o.addBodyJsonHook;exports.parseJSON=G.parseJSON;exports.groupBy=i.groupBy;exports.indexBy=i.indexBy;exports.shuffleArray=V.shuffleArray;exports.newHref=W.newHref;exports.isInfinityEmpty=Q.isInfinityEmpty;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/src/index.mjs
CHANGED
|
@@ -1,106 +1,110 @@
|
|
|
1
1
|
import { EmptyState as e } from "./components/EmptyState/index.mjs";
|
|
2
2
|
import { InfinityLoader as m } from "./components/InfinityLoader/index.mjs";
|
|
3
3
|
import { NavItems as f } from "./components/NavItems.mjs";
|
|
4
|
-
import { Icon as
|
|
4
|
+
import { Icon as i } 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
|
|
11
|
-
import { MyTextInput as
|
|
10
|
+
import { MyTextarea as P } from "./components/MyTextarea/index.mjs";
|
|
11
|
+
import { MyTextInput as T } 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 ar } 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 { FormMultiSelect as Mr } from "./form/base/FormMultiSelect.mjs";
|
|
35
|
+
import { withForm as Sr } from "./hocs/withForm.mjs";
|
|
36
|
+
import { withModalManager as Nr } from "./hocs/withModalManager.mjs";
|
|
37
|
+
import { useBreakpoint as br } from "./hooks/useBreakpoint.mjs";
|
|
38
|
+
import { useFetchNextPageOnScroll as hr } from "./hooks/useFetchNextPageOnScroll.mjs";
|
|
39
|
+
import { useOnScrollProgress as Dr } from "./hooks/useOnScrollProgress.mjs";
|
|
40
|
+
import { useUpdateSearchParams as Hr } from "./hooks/useUpdateSearchParams.mjs";
|
|
41
|
+
import { breakpointsWithPx as wr } from "./mantine/breakpoints-with-px.mjs";
|
|
42
|
+
import { toTailwindColors as Ar } from "./mantine/to-tailwind-colors.mjs";
|
|
43
|
+
import { myDefaultTheme as Or } from "./mantine/my-default-theme.mjs";
|
|
44
|
+
import { formatBytes as qr } from "./utils/formatBytes.mjs";
|
|
45
|
+
import { KyError as Kr, addBodyJsonHook as Lr } from "./utils/ky/addBodyJsonHook.mjs";
|
|
46
|
+
import { parseJSON as zr } from "./utils/ky/parseJson.mjs";
|
|
47
|
+
import { groupBy as Qr, indexBy as Vr } from "./utils/array/groupBy.mjs";
|
|
48
|
+
import { shuffleArray as jr } from "./utils/array/shuffleArray.mjs";
|
|
49
|
+
import { newHref as Yr } from "./utils/newHref.mjs";
|
|
50
|
+
import { isInfinityEmpty as $r } from "./utils/isInfinityEmpty.mjs";
|
|
49
51
|
export {
|
|
50
52
|
e as EmptyState,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
tr as
|
|
58
|
-
pr as
|
|
59
|
-
xr as
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
53
|
+
K as Form,
|
|
54
|
+
U as FormButtonSubmit,
|
|
55
|
+
Y as FormCheckbox,
|
|
56
|
+
$ as FormDatePickerInput,
|
|
57
|
+
or as FormDateTimePicker,
|
|
58
|
+
Mr as FormMultiSelect,
|
|
59
|
+
tr as FormNumberInput,
|
|
60
|
+
pr as FormRadioGroup,
|
|
61
|
+
xr as FormSelect,
|
|
62
|
+
ar as FormSelectInfinity,
|
|
63
|
+
lr as FormTextInput,
|
|
64
|
+
ur as FormTextarea,
|
|
65
|
+
cr as FormTimeInput,
|
|
66
|
+
v as HttpStatus,
|
|
67
|
+
i as Icon,
|
|
65
68
|
m as InfinityLoader,
|
|
66
|
-
|
|
69
|
+
Kr as KyError,
|
|
67
70
|
n as MyDatePickerInput,
|
|
68
71
|
y as MyDateTimePicker,
|
|
69
|
-
|
|
70
|
-
|
|
72
|
+
k as MyMultiSelect,
|
|
73
|
+
s as MyNotifications,
|
|
74
|
+
d as MyNumberInput,
|
|
71
75
|
F as MySelect,
|
|
72
|
-
|
|
73
|
-
|
|
76
|
+
T as MyTextInput,
|
|
77
|
+
P as MyTextarea,
|
|
74
78
|
B as MyTimeInput,
|
|
75
79
|
f as NavItems,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
E as NavigationHistoryProvider,
|
|
81
|
+
_ as PageDataProvider,
|
|
82
|
+
A as QP_BACK_URL_NAME,
|
|
83
|
+
R as Revalidate,
|
|
80
84
|
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
|
-
|
|
85
|
+
Lr as addBodyJsonHook,
|
|
86
|
+
wr as breakpointsWithPx,
|
|
87
|
+
qr as formatBytes,
|
|
88
|
+
Qr as groupBy,
|
|
89
|
+
Vr as indexBy,
|
|
90
|
+
$r as isInfinityEmpty,
|
|
91
|
+
Or as myDefaultTheme,
|
|
92
|
+
Yr as newHref,
|
|
93
|
+
V as nullableButRequired,
|
|
94
|
+
dr as numberToTimeInput,
|
|
95
|
+
j as optionalButRequired,
|
|
96
|
+
zr as parseJSON,
|
|
97
|
+
jr as shuffleArray,
|
|
98
|
+
Ir as timeInputToNumber,
|
|
99
|
+
Ar as toTailwindColors,
|
|
100
|
+
br as useBreakpoint,
|
|
101
|
+
hr as useFetchNextPageOnScroll,
|
|
102
|
+
C as useNavigationHistory,
|
|
103
|
+
Dr as useOnScrollProgress,
|
|
104
|
+
q as usePageData,
|
|
105
|
+
Hr as useUpdateSearchParams,
|
|
106
|
+
Sr as withForm,
|
|
107
|
+
Nr as withModalManager,
|
|
108
|
+
G as zodValidator
|
|
105
109
|
};
|
|
106
110
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|