lkd-web-kit 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -27,6 +27,7 @@ import { MantineColorShade } from '@mantine/core';
27
27
  import { MantineThemeColors } from '@mantine/core';
28
28
  import { MantineThemeOverride } from '@mantine/core';
29
29
  import { ModalProps } from '@mantine/core';
30
+ import { MonthPickerInputProps } from '@mantine/dates';
30
31
  import { MouseEvent as MouseEvent_2 } from 'react';
31
32
  import { MultiSelectProps } from '@mantine/core';
32
33
  import { NormalizedOptions } from 'ky';
@@ -125,6 +126,10 @@ export declare type FormFieldProps<T = unknown> = Parameters<ControllerProps['re
125
126
  };
126
127
  };
127
128
 
129
+ export declare const FormMonthPickerInput: FC<MyMonthPickerInputProps & WithFormProps>;
130
+
131
+ export declare type FormMonthPickerInputProps = WithFormProps & MyMonthPickerInputProps;
132
+
128
133
  export declare const FormMultiSelect: FC<MyMultiSelectProps & WithFormProps>;
129
134
 
130
135
  export declare type FormMultiSelectProps = MyMultiSelectProps & WithFormProps;
@@ -295,6 +300,11 @@ export declare interface MyDateTimePickerProps extends DateTimePickerProps {
295
300
 
296
301
  export declare const myDefaultTheme: MantineThemeOverride;
297
302
 
303
+ export declare const MyMonthPickerInput: (props: MyMonthPickerInputProps) => JSX.Element;
304
+
305
+ export declare interface MyMonthPickerInputProps extends MonthPickerInputProps<any> {
306
+ }
307
+
298
308
  export declare const MyMultiSelect: (props: MyMultiSelectProps) => JSX.Element;
299
309
 
300
310
  export declare interface MyMultiSelectProps extends MultiSelectProps {
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("@mantine/dates"),i=require("../MyDatePickerInput/CalendarIcon.cjs"),r=e=>t.jsx(n.MonthPickerInput,{leftSection:t.jsx(i,{size:e.size}),variant:e.readOnly?"filled":"default",...e});exports.MyMonthPickerInput=r;
2
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../../../../src/components/MyMonthPickerInput/index.tsx"],"sourcesContent":["import {\r\n DateTimePicker,\r\n DateTimePickerProps,\r\n MonthPickerInput,\r\n MonthPickerInputProps,\r\n} from '@mantine/dates';\r\nimport CalendarIcon from '../MyDatePickerInput/CalendarIcon';\r\n\r\nexport interface MyMonthPickerInputProps extends MonthPickerInputProps<any> {}\r\n\r\nexport const MyMonthPickerInput = (props: MyMonthPickerInputProps) => (\r\n <MonthPickerInput\r\n leftSection={<CalendarIcon size={props.size} />}\r\n variant={props.readOnly ? 'filled' : 'default'}\r\n {...props}\r\n />\r\n);\r\n"],"names":["MyMonthPickerInput","props","jsx","MonthPickerInput","CalendarIcon"],"mappings":"oMAUaA,EAAsBC,GACjCC,EAAA,IAACC,EAAA,iBAAA,CACC,YAAaD,EAAA,IAACE,EAAa,CAAA,KAAMH,EAAM,KAAM,EAC7C,QAASA,EAAM,SAAW,SAAW,UACpC,GAAGA,CAAA,CACN"}
@@ -0,0 +1,15 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { MonthPickerInput as i } from "@mantine/dates";
3
+ import n from "../MyDatePickerInput/CalendarIcon.mjs";
4
+ const f = (t) => /* @__PURE__ */ e(
5
+ i,
6
+ {
7
+ leftSection: /* @__PURE__ */ e(n, { size: t.size }),
8
+ variant: t.readOnly ? "filled" : "default",
9
+ ...t
10
+ }
11
+ );
12
+ export {
13
+ f as MyMonthPickerInput
14
+ };
15
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../src/components/MyMonthPickerInput/index.tsx"],"sourcesContent":["import {\r\n DateTimePicker,\r\n DateTimePickerProps,\r\n MonthPickerInput,\r\n MonthPickerInputProps,\r\n} from '@mantine/dates';\r\nimport CalendarIcon from '../MyDatePickerInput/CalendarIcon';\r\n\r\nexport interface MyMonthPickerInputProps extends MonthPickerInputProps<any> {}\r\n\r\nexport const MyMonthPickerInput = (props: MyMonthPickerInputProps) => (\r\n <MonthPickerInput\r\n leftSection={<CalendarIcon size={props.size} />}\r\n variant={props.readOnly ? 'filled' : 'default'}\r\n {...props}\r\n />\r\n);\r\n"],"names":["MyMonthPickerInput","props","jsx","MonthPickerInput","CalendarIcon"],"mappings":";;;AAUa,MAAAA,IAAqB,CAACC,MACjC,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,aAAa,gBAAAD,EAACE,GAAa,EAAA,MAAMH,EAAM,MAAM;AAAA,IAC7C,SAASA,EAAM,WAAW,WAAW;AAAA,IACpC,GAAGA;AAAA,EAAA;AACN;"}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),o=require("../../components/MyMonthPickerInput/index.cjs"),n=require("../../hocs/withForm.cjs"),i=n.withForm(({field:t,props:e})=>r.jsx(o.MyMonthPickerInput,{...t,...e}));exports.FormMonthPickerInput=i;
2
+ //# sourceMappingURL=FormMonthPickerInput.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormMonthPickerInput.cjs","sources":["../../../../src/form/base/FormMonthPickerInput.tsx"],"sourcesContent":["import { MyMonthPickerInput, MyMonthPickerInputProps } from 'src/components';\r\nimport { WithFormProps, withForm } from 'src/hocs';\r\n\r\nexport type FormMonthPickerInputProps = WithFormProps & MyMonthPickerInputProps;\r\n\r\nexport const FormMonthPickerInput = withForm<MyMonthPickerInputProps>(({ field, props }) => (\r\n <MyMonthPickerInput\r\n {...field}\r\n {...props}\r\n />\r\n));\r\n"],"names":["FormMonthPickerInput","withForm","field","props","jsx","MyMonthPickerInput"],"mappings":"qNAKaA,EAAuBC,EAAAA,SAAkC,CAAC,CAAE,MAAAC,EAAO,MAAAC,CAC9E,IAAAC,EAAA,IAACC,EAAA,mBAAA,CACE,GAAGH,EACH,GAAGC,CAAA,CACN,CACD"}
@@ -0,0 +1,14 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { MyMonthPickerInput as m } from "../../components/MyMonthPickerInput/index.mjs";
3
+ import { withForm as i } from "../../hocs/withForm.mjs";
4
+ const e = i(({ field: o, props: r }) => /* @__PURE__ */ t(
5
+ m,
6
+ {
7
+ ...o,
8
+ ...r
9
+ }
10
+ ));
11
+ export {
12
+ e as FormMonthPickerInput
13
+ };
14
+ //# sourceMappingURL=FormMonthPickerInput.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormMonthPickerInput.mjs","sources":["../../../../src/form/base/FormMonthPickerInput.tsx"],"sourcesContent":["import { MyMonthPickerInput, MyMonthPickerInputProps } from 'src/components';\r\nimport { WithFormProps, withForm } from 'src/hocs';\r\n\r\nexport type FormMonthPickerInputProps = WithFormProps & MyMonthPickerInputProps;\r\n\r\nexport const FormMonthPickerInput = withForm<MyMonthPickerInputProps>(({ field, props }) => (\r\n <MyMonthPickerInput\r\n {...field}\r\n {...props}\r\n />\r\n));\r\n"],"names":["FormMonthPickerInput","withForm","field","props","jsx","MyMonthPickerInput"],"mappings":";;;AAKO,MAAMA,IAAuBC,EAAkC,CAAC,EAAE,OAAAC,GAAO,OAAAC,EAC9E,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"),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;
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"),p=require("./components/MyTextarea/index.cjs"),q=require("./components/MyTextInput/index.cjs"),F=require("./components/MyTimeInput/index.cjs"),I=require("./components/SelectInfinity/index.cjs"),M=require("./components/MyMultiSelect/index.cjs"),P=require("./components/MyMonthPickerInput/index.cjs"),x=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"),h=require("./form/FormButtonSubmit.cjs"),f=require("./form/utils/zodValidator.cjs"),k=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"),D=require("./form/base/FormNumberInput.cjs"),v=require("./form/base/FormRadioGroup.cjs"),$=require("./form/base/FormSelect.cjs"),R=require("./form/base/FormSelectInfinity.cjs"),w=require("./form/base/FormTextarea.cjs"),H=require("./form/base/FormTextInput.cjs"),r=require("./form/base/FormTimeInput.cjs"),E=require("./form/base/FormMultiSelect.cjs"),O=require("./form/base/FormMonthPickerInput.cjs"),C=require("./hocs/withForm.cjs"),A=require("./hocs/withModalManager.cjs"),J=require("./hooks/useBreakpoint.cjs"),_=require("./hooks/useFetchNextPageOnScroll.cjs"),U=require("./hooks/useOnScrollProgress.cjs"),K=require("./hooks/useUpdateSearchParams.cjs"),L=require("./mantine/breakpoints-with-px.cjs"),z=require("./mantine/to-tailwind-colors.cjs"),G=require("./mantine/my-default-theme.cjs"),V=require("./utils/formatBytes.cjs"),o=require("./utils/ky/addBodyJsonHook.cjs"),W=require("./utils/ky/parseJson.cjs"),i=require("./utils/array/groupBy.cjs"),Q=require("./utils/array/shuffleArray.cjs"),j=require("./utils/newHref.cjs"),X=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=p.MyTextarea;exports.MyTextInput=q.MyTextInput;exports.MyTimeInput=F.MyTimeInput;exports.SelectInfinity=I.SelectInfinity;exports.MyMultiSelect=M.MyMultiSelect;exports.MyMonthPickerInput=P.MyMonthPickerInput;exports.HttpStatus=x.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=h.FormButtonSubmit;exports.zodValidator=f.zodValidator;exports.nullableButRequired=k.nullableButRequired;exports.optionalButRequired=B.optionalButRequired;exports.FormCheckbox=b.FormCheckbox;exports.FormDatePickerInput=N.FormDatePickerInput;exports.FormDateTimePicker=g.FormDateTimePicker;exports.FormNumberInput=D.FormNumberInput;exports.FormRadioGroup=v.FormRadioGroup;exports.FormSelect=$.FormSelect;exports.FormSelectInfinity=R.FormSelectInfinity;exports.FormTextarea=w.FormTextarea;exports.FormTextInput=H.FormTextInput;exports.FormTimeInput=r.FormTimeInput;exports.numberToTimeInput=r.numberToTimeInput;exports.timeInputToNumber=r.timeInputToNumber;exports.FormMultiSelect=E.FormMultiSelect;exports.FormMonthPickerInput=O.FormMonthPickerInput;exports.withForm=C.withForm;exports.withModalManager=A.withModalManager;exports.useBreakpoint=J.useBreakpoint;exports.useFetchNextPageOnScroll=_.useFetchNextPageOnScroll;exports.useOnScrollProgress=U.useOnScrollProgress;exports.useUpdateSearchParams=K.useUpdateSearchParams;exports.breakpointsWithPx=L.breakpointsWithPx;exports.toTailwindColors=z.toTailwindColors;exports.myDefaultTheme=G.myDefaultTheme;exports.formatBytes=V.formatBytes;exports.KyError=o.KyError;exports.addBodyJsonHook=o.addBodyJsonHook;exports.parseJSON=W.parseJSON;exports.groupBy=i.groupBy;exports.indexBy=i.indexBy;exports.shuffleArray=Q.shuffleArray;exports.newHref=j.newHref;exports.isInfinityEmpty=X.isInfinityEmpty;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -5,106 +5,110 @@ 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
7
  import { MyNotifications as s } from "./components/MyNotifications/index.mjs";
8
- import { MyNumberInput as d } from "./components/MyNumberInput/index.mjs";
9
- import { MySelect as F } from "./components/MySelect/index.mjs";
8
+ import { MyNumberInput as I } from "./components/MyNumberInput/index.mjs";
9
+ import { MySelect as d } from "./components/MySelect/index.mjs";
10
10
  import { MyTextarea as P } from "./components/MyTextarea/index.mjs";
11
11
  import { MyTextInput as T } from "./components/MyTextInput/index.mjs";
12
- import { MyTimeInput as B } from "./components/MyTimeInput/index.mjs";
13
- import { SelectInfinity as g } from "./components/SelectInfinity/index.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 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";
12
+ import { MyTimeInput as k } from "./components/MyTimeInput/index.mjs";
13
+ import { SelectInfinity as B } from "./components/SelectInfinity/index.mjs";
14
+ import { MyMultiSelect as g } from "./components/MyMultiSelect/index.mjs";
15
+ import { MyMonthPickerInput as v } from "./components/MyMonthPickerInput/index.mjs";
16
+ import { HttpStatus as R } from "./consts/http-status.mjs";
17
+ import { Revalidate as E } from "./consts/revalidate.mjs";
18
+ import { NavigationHistoryProvider as C, QP_BACK_URL_NAME as O, useNavigationHistory as _ } from "./contexts/NavigationHistoryContext/index.mjs";
19
+ import { PageDataProvider as J, usePageData as K } from "./contexts/PageDataContext/index.mjs";
20
+ import { Form as U } from "./form/Form.mjs";
21
+ import { FormButtonSubmit as G } from "./form/FormButtonSubmit.mjs";
22
+ import { zodValidator as V } from "./form/utils/zodValidator.mjs";
23
+ import { nullableButRequired as j } from "./form/utils/nullable-but-required.mjs";
24
+ import { optionalButRequired as Y } from "./form/utils/optional-but-required.mjs";
25
+ import { FormCheckbox as $ } from "./form/base/FormCheckbox.mjs";
26
+ import { FormDatePickerInput as or } from "./form/base/FormDatePickerInput.mjs";
27
+ import { FormDateTimePicker as tr } from "./form/base/FormDateTimePicker.mjs";
28
+ import { FormNumberInput as pr } from "./form/base/FormNumberInput.mjs";
29
+ import { FormRadioGroup as xr } from "./form/base/FormRadioGroup.mjs";
30
+ import { FormSelect as ar } from "./form/base/FormSelect.mjs";
31
+ import { FormSelectInfinity as ur } from "./form/base/FormSelectInfinity.mjs";
32
+ import { FormTextarea as lr } from "./form/base/FormTextarea.mjs";
33
+ import { FormTextInput as cr } from "./form/base/FormTextInput.mjs";
34
+ import { FormTimeInput as Mr, numberToTimeInput as dr, timeInputToNumber as Fr } from "./form/base/FormTimeInput.mjs";
35
+ import { FormMultiSelect as Sr } from "./form/base/FormMultiSelect.mjs";
36
+ import { FormMonthPickerInput as hr } from "./form/base/FormMonthPickerInput.mjs";
37
+ import { withForm as Nr } from "./hocs/withForm.mjs";
38
+ import { withModalManager as br } from "./hocs/withModalManager.mjs";
39
+ import { useBreakpoint as Dr } from "./hooks/useBreakpoint.mjs";
40
+ import { useFetchNextPageOnScroll as Hr } from "./hooks/useFetchNextPageOnScroll.mjs";
41
+ import { useOnScrollProgress as wr } from "./hooks/useOnScrollProgress.mjs";
42
+ import { useUpdateSearchParams as Ar } from "./hooks/useUpdateSearchParams.mjs";
43
+ import { breakpointsWithPx as Or } from "./mantine/breakpoints-with-px.mjs";
44
+ import { toTailwindColors as qr } from "./mantine/to-tailwind-colors.mjs";
45
+ import { myDefaultTheme as Kr } from "./mantine/my-default-theme.mjs";
46
+ import { formatBytes as Ur } from "./utils/formatBytes.mjs";
47
+ import { KyError as Gr, addBodyJsonHook as Qr } from "./utils/ky/addBodyJsonHook.mjs";
48
+ import { parseJSON as Wr } from "./utils/ky/parseJson.mjs";
49
+ import { groupBy as Xr, indexBy as Yr } from "./utils/array/groupBy.mjs";
50
+ import { shuffleArray as $r } from "./utils/array/shuffleArray.mjs";
51
+ import { newHref as oo } from "./utils/newHref.mjs";
52
+ import { isInfinityEmpty as to } from "./utils/isInfinityEmpty.mjs";
51
53
  export {
52
54
  e as EmptyState,
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,
55
+ U as Form,
56
+ G as FormButtonSubmit,
57
+ $ as FormCheckbox,
58
+ or as FormDatePickerInput,
59
+ tr as FormDateTimePicker,
60
+ hr as FormMonthPickerInput,
61
+ Sr as FormMultiSelect,
62
+ pr as FormNumberInput,
63
+ xr as FormRadioGroup,
64
+ ar as FormSelect,
65
+ ur as FormSelectInfinity,
66
+ cr as FormTextInput,
67
+ lr as FormTextarea,
68
+ Mr as FormTimeInput,
69
+ R as HttpStatus,
67
70
  i as Icon,
68
71
  m as InfinityLoader,
69
- Kr as KyError,
72
+ Gr as KyError,
70
73
  n as MyDatePickerInput,
71
74
  y as MyDateTimePicker,
72
- k as MyMultiSelect,
75
+ v as MyMonthPickerInput,
76
+ g as MyMultiSelect,
73
77
  s as MyNotifications,
74
- d as MyNumberInput,
75
- F as MySelect,
78
+ I as MyNumberInput,
79
+ d as MySelect,
76
80
  T as MyTextInput,
77
81
  P as MyTextarea,
78
- B as MyTimeInput,
82
+ k as MyTimeInput,
79
83
  f as NavItems,
80
- E as NavigationHistoryProvider,
81
- _ as PageDataProvider,
82
- A as QP_BACK_URL_NAME,
83
- R as Revalidate,
84
- g as SelectInfinity,
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,
84
+ C as NavigationHistoryProvider,
85
+ J as PageDataProvider,
86
+ O as QP_BACK_URL_NAME,
87
+ E as Revalidate,
88
+ B as SelectInfinity,
89
+ Qr as addBodyJsonHook,
90
+ Or as breakpointsWithPx,
91
+ Ur as formatBytes,
92
+ Xr as groupBy,
93
+ Yr as indexBy,
94
+ to as isInfinityEmpty,
95
+ Kr as myDefaultTheme,
96
+ oo as newHref,
97
+ j as nullableButRequired,
94
98
  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
99
+ Y as optionalButRequired,
100
+ Wr as parseJSON,
101
+ $r as shuffleArray,
102
+ Fr as timeInputToNumber,
103
+ qr as toTailwindColors,
104
+ Dr as useBreakpoint,
105
+ Hr as useFetchNextPageOnScroll,
106
+ _ as useNavigationHistory,
107
+ wr as useOnScrollProgress,
108
+ K as usePageData,
109
+ Ar as useUpdateSearchParams,
110
+ Nr as withForm,
111
+ br as withModalManager,
112
+ V as zodValidator
109
113
  };
110
114
  //# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@mantine/core"),t=require("./breakpoints-with-px.cjs"),o={breakpoints:t.breakpointsWithPx,cursorType:"pointer",components:{Notification:e.Notification.extend({defaultProps:{withBorder:!0}}),AppShell:e.AppShell.extend({defaultProps:{padding:0}}),Select:e.Select.extend({defaultProps:{allowDeselect:!1,withCheckIcon:!1,clearable:!0}}),Menu:e.Menu.extend({defaultProps:{position:"bottom-end"}}),Tooltip:e.Tooltip.extend({defaultProps:{multiline:!0,w:300}}),Portal:e.Portal.extend({defaultProps:{reuseTargetNode:!0}})}};exports.myDefaultTheme=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@mantine/core"),t=require("./breakpoints-with-px.cjs"),o={breakpoints:t.breakpointsWithPx,cursorType:"pointer",components:{Notification:e.Notification.extend({defaultProps:{withBorder:!0}}),AppShell:e.AppShell.extend({defaultProps:{padding:0}}),Select:e.Select.extend({defaultProps:{allowDeselect:!1,withCheckIcon:!1,clearable:!0}}),Menu:e.Menu.extend({defaultProps:{position:"bottom-end"}}),Tooltip:e.Tooltip.extend({defaultProps:{multiline:!0,w:300}})}};exports.myDefaultTheme=o;
2
2
  //# sourceMappingURL=my-default-theme.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"my-default-theme.cjs","sources":["../../../src/mantine/my-default-theme.ts"],"sourcesContent":["import {\r\n AppShell,\r\n MantineTheme,\r\n Menu,\r\n Select,\r\n Tooltip,\r\n Notification,\r\n MantineThemeOverride,\r\n Portal,\r\n} from '@mantine/core';\r\nimport { breakpointsWithPx } from './breakpoints-with-px';\r\n\r\nexport const myDefaultTheme: MantineThemeOverride = {\r\n breakpoints: breakpointsWithPx,\r\n cursorType: 'pointer',\r\n components: {\r\n Notification: Notification.extend({\r\n defaultProps: {\r\n withBorder: true,\r\n },\r\n }),\r\n AppShell: AppShell.extend({\r\n defaultProps: {\r\n padding: 0,\r\n },\r\n }),\r\n Select: Select.extend({\r\n defaultProps: {\r\n allowDeselect: false,\r\n withCheckIcon: false,\r\n clearable: true,\r\n },\r\n }),\r\n Menu: Menu.extend({\r\n defaultProps: {\r\n position: 'bottom-end',\r\n },\r\n }),\r\n Tooltip: Tooltip.extend({\r\n defaultProps: {\r\n multiline: true,\r\n w: 300,\r\n },\r\n }),\r\n // borrar en v8\r\n Portal: Portal.extend({\r\n defaultProps: {\r\n reuseTargetNode: true,\r\n },\r\n }),\r\n },\r\n};\r\n"],"names":["myDefaultTheme","breakpointsWithPx","Notification","AppShell","Select","Menu","Tooltip","Portal"],"mappings":"wJAYaA,EAAuC,CAClD,YAAaC,EAAA,kBACb,WAAY,UACZ,WAAY,CACV,aAAcC,eAAa,OAAO,CAChC,aAAc,CACZ,WAAY,EAAA,CACd,CACD,EACD,SAAUC,WAAS,OAAO,CACxB,aAAc,CACZ,QAAS,CAAA,CACX,CACD,EACD,OAAQC,SAAO,OAAO,CACpB,aAAc,CACZ,cAAe,GACf,cAAe,GACf,UAAW,EAAA,CACb,CACD,EACD,KAAMC,OAAK,OAAO,CAChB,aAAc,CACZ,SAAU,YAAA,CACZ,CACD,EACD,QAASC,UAAQ,OAAO,CACtB,aAAc,CACZ,UAAW,GACX,EAAG,GAAA,CACL,CACD,EAED,OAAQC,SAAO,OAAO,CACpB,aAAc,CACZ,gBAAiB,EAAA,CAEpB,CAAA,CAAA,CAEL"}
1
+ {"version":3,"file":"my-default-theme.cjs","sources":["../../../src/mantine/my-default-theme.ts"],"sourcesContent":["import {\r\n AppShell,\r\n MantineTheme,\r\n Menu,\r\n Select,\r\n Tooltip,\r\n Notification,\r\n MantineThemeOverride,\r\n Portal,\r\n} from '@mantine/core';\r\nimport { breakpointsWithPx } from './breakpoints-with-px';\r\n\r\nexport const myDefaultTheme: MantineThemeOverride = {\r\n breakpoints: breakpointsWithPx,\r\n cursorType: 'pointer',\r\n components: {\r\n Notification: Notification.extend({\r\n defaultProps: {\r\n withBorder: true,\r\n },\r\n }),\r\n AppShell: AppShell.extend({\r\n defaultProps: {\r\n padding: 0,\r\n },\r\n }),\r\n Select: Select.extend({\r\n defaultProps: {\r\n allowDeselect: false,\r\n withCheckIcon: false,\r\n clearable: true,\r\n },\r\n }),\r\n Menu: Menu.extend({\r\n defaultProps: {\r\n position: 'bottom-end',\r\n },\r\n }),\r\n Tooltip: Tooltip.extend({\r\n defaultProps: {\r\n multiline: true,\r\n w: 300,\r\n },\r\n }),\r\n },\r\n};\r\n"],"names":["myDefaultTheme","breakpointsWithPx","Notification","AppShell","Select","Menu","Tooltip"],"mappings":"wJAYaA,EAAuC,CAClD,YAAaC,EAAA,kBACb,WAAY,UACZ,WAAY,CACV,aAAcC,eAAa,OAAO,CAChC,aAAc,CACZ,WAAY,EAAA,CACd,CACD,EACD,SAAUC,WAAS,OAAO,CACxB,aAAc,CACZ,QAAS,CAAA,CACX,CACD,EACD,OAAQC,SAAO,OAAO,CACpB,aAAc,CACZ,cAAe,GACf,cAAe,GACf,UAAW,EAAA,CACb,CACD,EACD,KAAMC,OAAK,OAAO,CAChB,aAAc,CACZ,SAAU,YAAA,CACZ,CACD,EACD,QAASC,UAAQ,OAAO,CACtB,aAAc,CACZ,UAAW,GACX,EAAG,GAAA,CAEN,CAAA,CAAA,CAEL"}
@@ -1,10 +1,10 @@
1
- import { Portal as e, Tooltip as t, Menu as o, Select as r, AppShell as l, Notification as p } from "@mantine/core";
2
- import { breakpointsWithPx as i } from "./breakpoints-with-px.mjs";
3
- const d = {
4
- breakpoints: i,
1
+ import { Tooltip as e, Menu as t, Select as o, AppShell as l, Notification as i } from "@mantine/core";
2
+ import { breakpointsWithPx as p } from "./breakpoints-with-px.mjs";
3
+ const a = {
4
+ breakpoints: p,
5
5
  cursorType: "pointer",
6
6
  components: {
7
- Notification: p.extend({
7
+ Notification: i.extend({
8
8
  defaultProps: {
9
9
  withBorder: !0
10
10
  }
@@ -14,33 +14,27 @@ const d = {
14
14
  padding: 0
15
15
  }
16
16
  }),
17
- Select: r.extend({
17
+ Select: o.extend({
18
18
  defaultProps: {
19
19
  allowDeselect: !1,
20
20
  withCheckIcon: !1,
21
21
  clearable: !0
22
22
  }
23
23
  }),
24
- Menu: o.extend({
24
+ Menu: t.extend({
25
25
  defaultProps: {
26
26
  position: "bottom-end"
27
27
  }
28
28
  }),
29
- Tooltip: t.extend({
29
+ Tooltip: e.extend({
30
30
  defaultProps: {
31
31
  multiline: !0,
32
32
  w: 300
33
33
  }
34
- }),
35
- // borrar en v8
36
- Portal: e.extend({
37
- defaultProps: {
38
- reuseTargetNode: !0
39
- }
40
34
  })
41
35
  }
42
36
  };
43
37
  export {
44
- d as myDefaultTheme
38
+ a as myDefaultTheme
45
39
  };
46
40
  //# sourceMappingURL=my-default-theme.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"my-default-theme.mjs","sources":["../../../src/mantine/my-default-theme.ts"],"sourcesContent":["import {\r\n AppShell,\r\n MantineTheme,\r\n Menu,\r\n Select,\r\n Tooltip,\r\n Notification,\r\n MantineThemeOverride,\r\n Portal,\r\n} from '@mantine/core';\r\nimport { breakpointsWithPx } from './breakpoints-with-px';\r\n\r\nexport const myDefaultTheme: MantineThemeOverride = {\r\n breakpoints: breakpointsWithPx,\r\n cursorType: 'pointer',\r\n components: {\r\n Notification: Notification.extend({\r\n defaultProps: {\r\n withBorder: true,\r\n },\r\n }),\r\n AppShell: AppShell.extend({\r\n defaultProps: {\r\n padding: 0,\r\n },\r\n }),\r\n Select: Select.extend({\r\n defaultProps: {\r\n allowDeselect: false,\r\n withCheckIcon: false,\r\n clearable: true,\r\n },\r\n }),\r\n Menu: Menu.extend({\r\n defaultProps: {\r\n position: 'bottom-end',\r\n },\r\n }),\r\n Tooltip: Tooltip.extend({\r\n defaultProps: {\r\n multiline: true,\r\n w: 300,\r\n },\r\n }),\r\n // borrar en v8\r\n Portal: Portal.extend({\r\n defaultProps: {\r\n reuseTargetNode: true,\r\n },\r\n }),\r\n },\r\n};\r\n"],"names":["myDefaultTheme","breakpointsWithPx","Notification","AppShell","Select","Menu","Tooltip","Portal"],"mappings":";;AAYO,MAAMA,IAAuC;AAAA,EAClD,aAAaC;AAAA,EACb,YAAY;AAAA,EACZ,YAAY;AAAA,IACV,cAAcC,EAAa,OAAO;AAAA,MAChC,cAAc;AAAA,QACZ,YAAY;AAAA,MAAA;AAAA,IACd,CACD;AAAA,IACD,UAAUC,EAAS,OAAO;AAAA,MACxB,cAAc;AAAA,QACZ,SAAS;AAAA,MAAA;AAAA,IACX,CACD;AAAA,IACD,QAAQC,EAAO,OAAO;AAAA,MACpB,cAAc;AAAA,QACZ,eAAe;AAAA,QACf,eAAe;AAAA,QACf,WAAW;AAAA,MAAA;AAAA,IACb,CACD;AAAA,IACD,MAAMC,EAAK,OAAO;AAAA,MAChB,cAAc;AAAA,QACZ,UAAU;AAAA,MAAA;AAAA,IACZ,CACD;AAAA,IACD,SAASC,EAAQ,OAAO;AAAA,MACtB,cAAc;AAAA,QACZ,WAAW;AAAA,QACX,GAAG;AAAA,MAAA;AAAA,IACL,CACD;AAAA;AAAA,IAED,QAAQC,EAAO,OAAO;AAAA,MACpB,cAAc;AAAA,QACZ,iBAAiB;AAAA,MAAA;AAAA,IAEpB,CAAA;AAAA,EAAA;AAEL;"}
1
+ {"version":3,"file":"my-default-theme.mjs","sources":["../../../src/mantine/my-default-theme.ts"],"sourcesContent":["import {\r\n AppShell,\r\n MantineTheme,\r\n Menu,\r\n Select,\r\n Tooltip,\r\n Notification,\r\n MantineThemeOverride,\r\n Portal,\r\n} from '@mantine/core';\r\nimport { breakpointsWithPx } from './breakpoints-with-px';\r\n\r\nexport const myDefaultTheme: MantineThemeOverride = {\r\n breakpoints: breakpointsWithPx,\r\n cursorType: 'pointer',\r\n components: {\r\n Notification: Notification.extend({\r\n defaultProps: {\r\n withBorder: true,\r\n },\r\n }),\r\n AppShell: AppShell.extend({\r\n defaultProps: {\r\n padding: 0,\r\n },\r\n }),\r\n Select: Select.extend({\r\n defaultProps: {\r\n allowDeselect: false,\r\n withCheckIcon: false,\r\n clearable: true,\r\n },\r\n }),\r\n Menu: Menu.extend({\r\n defaultProps: {\r\n position: 'bottom-end',\r\n },\r\n }),\r\n Tooltip: Tooltip.extend({\r\n defaultProps: {\r\n multiline: true,\r\n w: 300,\r\n },\r\n }),\r\n },\r\n};\r\n"],"names":["myDefaultTheme","breakpointsWithPx","Notification","AppShell","Select","Menu","Tooltip"],"mappings":";;AAYO,MAAMA,IAAuC;AAAA,EAClD,aAAaC;AAAA,EACb,YAAY;AAAA,EACZ,YAAY;AAAA,IACV,cAAcC,EAAa,OAAO;AAAA,MAChC,cAAc;AAAA,QACZ,YAAY;AAAA,MAAA;AAAA,IACd,CACD;AAAA,IACD,UAAUC,EAAS,OAAO;AAAA,MACxB,cAAc;AAAA,QACZ,SAAS;AAAA,MAAA;AAAA,IACX,CACD;AAAA,IACD,QAAQC,EAAO,OAAO;AAAA,MACpB,cAAc;AAAA,QACZ,eAAe;AAAA,QACf,eAAe;AAAA,QACf,WAAW;AAAA,MAAA;AAAA,IACb,CACD;AAAA,IACD,MAAMC,EAAK,OAAO;AAAA,MAChB,cAAc;AAAA,QACZ,UAAU;AAAA,MAAA;AAAA,IACZ,CACD;AAAA,IACD,SAASC,EAAQ,OAAO;AAAA,MACtB,cAAc;AAAA,QACZ,WAAW;AAAA,QACX,GAAG;AAAA,MAAA;AAAA,IAEN,CAAA;AAAA,EAAA;AAEL;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkd-web-kit",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "A template for creating React component libraries with Vite.",
5
5
  "author": "LKD",
6
6
  "license": "MIT",