lkd-web-kit 0.2.2 → 0.2.4

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
@@ -117,6 +117,8 @@ export declare type FormFieldProps<T = unknown> = Parameters<ControllerProps['re
117
117
  };
118
118
  };
119
119
 
120
+ export declare const FormMultiSelect: FC<MyMultiSelectProps & WithFormProps>;
121
+
120
122
  export declare type FormMultiSelectProps = MyMultiSelectProps & WithFormProps;
121
123
 
122
124
  export declare const FormNumberInput: FC<MyNumberInputProps & WithFormProps>;
@@ -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,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"),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;
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
@@ -1,14 +1,14 @@
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 a } from "./components/Icon.mjs";
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
7
  import { MyNotifications as s } from "./components/MyNotifications/index.mjs";
8
8
  import { MyNumberInput as d } from "./components/MyNumberInput/index.mjs";
9
9
  import { MySelect as F } from "./components/MySelect/index.mjs";
10
10
  import { MyTextarea as P } from "./components/MyTextarea/index.mjs";
11
- import { MyTextInput as S } from "./components/MyTextInput/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
14
  import { MyMultiSelect as k } from "./components/MyMultiSelect/index.mjs";
@@ -27,26 +27,27 @@ import { FormDateTimePicker as or } from "./form/base/FormDateTimePicker.mjs";
27
27
  import { FormNumberInput as tr } from "./form/base/FormNumberInput.mjs";
28
28
  import { FormRadioGroup as pr } from "./form/base/FormRadioGroup.mjs";
29
29
  import { FormSelect as xr } from "./form/base/FormSelect.mjs";
30
- import { FormSelectInfinity as ir } from "./form/base/FormSelectInfinity.mjs";
30
+ import { FormSelectInfinity as ar } from "./form/base/FormSelectInfinity.mjs";
31
31
  import { FormTextarea as ur } from "./form/base/FormTextarea.mjs";
32
32
  import { FormTextInput as lr } from "./form/base/FormTextInput.mjs";
33
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";
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";
50
51
  export {
51
52
  e as EmptyState,
52
53
  K as Form,
@@ -54,24 +55,25 @@ export {
54
55
  Y as FormCheckbox,
55
56
  $ as FormDatePickerInput,
56
57
  or as FormDateTimePicker,
58
+ Mr as FormMultiSelect,
57
59
  tr as FormNumberInput,
58
60
  pr as FormRadioGroup,
59
61
  xr as FormSelect,
60
- ir as FormSelectInfinity,
62
+ ar as FormSelectInfinity,
61
63
  lr as FormTextInput,
62
64
  ur as FormTextarea,
63
65
  cr as FormTimeInput,
64
66
  v as HttpStatus,
65
- a as Icon,
67
+ i as Icon,
66
68
  m as InfinityLoader,
67
- qr as KyError,
69
+ Kr as KyError,
68
70
  n as MyDatePickerInput,
69
71
  y as MyDateTimePicker,
70
72
  k as MyMultiSelect,
71
73
  s as MyNotifications,
72
74
  d as MyNumberInput,
73
75
  F as MySelect,
74
- S as MyTextInput,
76
+ T as MyTextInput,
75
77
  P as MyTextarea,
76
78
  B as MyTimeInput,
77
79
  f as NavItems,
@@ -80,29 +82,29 @@ export {
80
82
  A as QP_BACK_URL_NAME,
81
83
  R as Revalidate,
82
84
  g as SelectInfinity,
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,
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,
91
93
  V as nullableButRequired,
92
94
  dr as numberToTimeInput,
93
95
  j as optionalButRequired,
94
- Lr as parseJSON,
95
- Vr as shuffleArray,
96
+ zr as parseJSON,
97
+ jr as shuffleArray,
96
98
  Ir as timeInputToNumber,
97
- wr as toTailwindColors,
98
- Nr as useBreakpoint,
99
- br as useFetchNextPageOnScroll,
99
+ Ar as toTailwindColors,
100
+ br as useBreakpoint,
101
+ hr as useFetchNextPageOnScroll,
100
102
  C as useNavigationHistory,
101
- hr as useOnScrollProgress,
103
+ Dr as useOnScrollProgress,
102
104
  q as usePageData,
103
- Dr as useUpdateSearchParams,
104
- Mr as withForm,
105
- Tr as withModalManager,
105
+ Hr as useUpdateSearchParams,
106
+ Sr as withForm,
107
+ Nr as withModalManager,
106
108
  G as zodValidator
107
109
  };
108
110
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lkd-web-kit",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "A template for creating React component libraries with Vite.",
5
5
  "author": "LKD",
6
6
  "license": "MIT",