lkd-web-kit 0.1.5 → 0.1.6
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 -5
- package/dist/src/index.cjs +1 -1
- package/dist/src/index.mjs +57 -56
- package/dist/src/mantine/my-default-theme.cjs +1 -1
- package/dist/src/mantine/my-default-theme.cjs.map +1 -1
- package/dist/src/mantine/my-default-theme.mjs +14 -8
- package/dist/src/mantine/my-default-theme.mjs.map +1 -1
- package/dist/src/utils/ky/addBodyJsonHook.cjs +1 -1
- package/dist/src/utils/ky/addBodyJsonHook.cjs.map +1 -1
- package/dist/src/utils/ky/addBodyJsonHook.mjs +10 -3
- package/dist/src/utils/ky/addBodyJsonHook.mjs.map +1 -1
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { InfiniteData } from '@tanstack/react-query';
|
|
|
20
20
|
import { InfiniteQueryHookResult } from 'react-query-kit';
|
|
21
21
|
import { InputBaseProps } from '@mantine/core';
|
|
22
22
|
import { JSX } from 'react/jsx-runtime';
|
|
23
|
+
import { KyRequest } from 'ky';
|
|
23
24
|
import { KyResponse } from 'ky';
|
|
24
25
|
import { LoaderProps } from '@mantine/core';
|
|
25
26
|
import { MantineColorShade } from '@mantine/core';
|
|
@@ -27,6 +28,7 @@ import { MantineThemeColors } from '@mantine/core';
|
|
|
27
28
|
import { MantineThemeOverride } from '@mantine/core';
|
|
28
29
|
import { ModalProps } from '@mantine/core';
|
|
29
30
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
31
|
+
import { NormalizedOptions } from 'ky';
|
|
30
32
|
import { NotificationsProps } from '@mantine/notifications';
|
|
31
33
|
import { NumberInputProps } from '@mantine/core';
|
|
32
34
|
import { RadioGroupProps } from '@mantine/core';
|
|
@@ -253,11 +255,16 @@ export declare const isInfinityEmpty: (data: InfiniteData<{
|
|
|
253
255
|
data: unknown[];
|
|
254
256
|
}> | undefined) => boolean;
|
|
255
257
|
|
|
256
|
-
export declare
|
|
257
|
-
response:
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
258
|
+
export declare class KyError<T = unknown> extends HTTPError<T> {
|
|
259
|
+
response: KyResponseWithBody<T>;
|
|
260
|
+
request: KyRequest;
|
|
261
|
+
options: NormalizedOptions;
|
|
262
|
+
constructor(response: KyResponse<T>, request: KyRequest, options: NormalizedOptions, bodyJson: T);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
declare interface KyResponseWithBody<T> extends KyResponse<T> {
|
|
266
|
+
bodyJson?: T;
|
|
267
|
+
}
|
|
261
268
|
|
|
262
269
|
export declare interface LayoutProps {
|
|
263
270
|
children: React.ReactNode;
|
package/dist/src/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
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"),p=require("./components/MyNotifications/index.cjs"),l=require("./components/MyNumberInput/index.cjs"),y=require("./components/MySelect/index.cjs"),d=require("./components/MyTextarea/index.cjs"),q=require("./components/MyTextInput/index.cjs"),I=require("./components/MyTimeInput/index.cjs"),F=require("./components/SelectInfinity/index.cjs"),x=require("./consts/http-status.cjs"),P=require("./consts/revalidate.cjs"),e=require("./contexts/NavigationHistoryContext/index.cjs"),t=require("./contexts/PageDataContext/index.cjs"),T=require("./form/Form.cjs"),S=require("./form/FormButtonSubmit.cjs"),f=require("./form/utils/zodValidator.cjs"),h=require("./form/utils/nullableInput.cjs"),M=require("./form/utils/optionalInput.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"),B=require("./form/base/FormRadioGroup.cjs"),D=require("./form/base/FormSelect.cjs"),v=require("./form/base/FormSelectInfinity.cjs"),w=require("./form/base/FormTextArea.cjs"),H=require("./form/base/FormTextInput.cjs"),r=require("./form/base/FormTimeInput.cjs"),$=require("./hocs/withForm.cjs"),E=require("./hocs/withModalManager.cjs"),O=require("./hooks/useBreakpoint.cjs"),A=require("./hooks/useFetchNextPageOnScroll.cjs"),C=require("./hooks/useOnScrollProgress.cjs"),R=require("./hooks/useUpdateSearchParams.cjs"),J=require("./mantine/breakpoints-with-px.cjs"),_=require("./mantine/to-tailwind-colors.cjs"),U=require("./mantine/my-default-theme.cjs"),K=require("./utils/formatBytes.cjs"),o=require("./utils/ky/addBodyJsonHook.cjs"),L=require("./utils/ky/parseJson.cjs"),i=require("./utils/array/groupBy.cjs"),z=require("./utils/array/shuffleArray.cjs"),G=require("./utils/newHref.cjs"),V=require("./utils/isInfinityEmpty.cjs");exports.EmptyState=n.EmptyState;exports.InfinityLoader=u.InfinityLoader;exports.NavItems=a.NavItems;exports.Icon=s.Icon;exports.MyDatePickerInput=c.MyDatePickerInput;exports.MyDateTimePicker=m.MyDateTimePicker;exports.MyNotifications=p.MyNotifications;exports.MyNumberInput=l.MyNumberInput;exports.MySelect=y.MySelect;exports.MyTextarea=d.MyTextarea;exports.MyTextInput=q.MyTextInput;exports.MyTimeInput=I.MyTimeInput;exports.SelectInfinity=F.SelectInfinity;exports.HttpStatus=x.HttpStatus;exports.Revalidate=P.Revalidate;exports.NavigationHistoryProvider=e.NavigationHistoryProvider;exports.QP_BACK_URL_NAME=e.QP_BACK_URL_NAME;exports.useNavigationHistory=e.useNavigationHistory;exports.PageDataProvider=t.PageDataProvider;exports.usePageData=t.usePageData;exports.Form=T.Form;exports.FormButtonSubmit=S.FormButtonSubmit;exports.zodValidator=f.zodValidator;exports.nullableInput=h.nullableInput;exports.optionalInput=M.optionalInput;exports.FormCheckbox=b.FormCheckbox;exports.FormDatePickerInput=N.FormDatePickerInput;exports.FormDateTimePicker=g.FormDateTimePicker;exports.FormNumberInput=k.FormNumberInput;exports.FormRadioGroup=B.FormRadioGroup;exports.FormSelect=D.FormSelect;exports.FormSelectInfinity=v.FormSelectInfinity;exports.FormTextarea=w.FormTextarea;exports.FormTextInput=H.FormTextInput;exports.FormTimeInput=r.FormTimeInput;exports.numberToTimeInput=r.numberToTimeInput;exports.timeInputToNumber=r.timeInputToNumber;exports.withForm=$.withForm;exports.withModalManager=E.withModalManager;exports.useBreakpoint=O.useBreakpoint;exports.useFetchNextPageOnScroll=A.useFetchNextPageOnScroll;exports.useOnScrollProgress=C.useOnScrollProgress;exports.useUpdateSearchParams=R.useUpdateSearchParams;exports.breakpointsWithPx=J.breakpointsWithPx;exports.toTailwindColors=_.toTailwindColors;exports.myDefaultTheme=U.myDefaultTheme;exports.formatBytes=K.formatBytes;exports.KyError=o.KyError;exports.addBodyJsonHook=o.addBodyJsonHook;exports.parseJSON=L.parseJSON;exports.groupBy=i.groupBy;exports.indexBy=i.indexBy;exports.shuffleArray=z.shuffleArray;exports.newHref=G.newHref;exports.isInfinityEmpty=V.isInfinityEmpty;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/src/index.mjs
CHANGED
|
@@ -13,56 +13,57 @@ import { MyTimeInput as b } from "./components/MyTimeInput/index.mjs";
|
|
|
13
13
|
import { SelectInfinity as h } from "./components/SelectInfinity/index.mjs";
|
|
14
14
|
import { HttpStatus as B } from "./consts/http-status.mjs";
|
|
15
15
|
import { Revalidate as v } from "./consts/revalidate.mjs";
|
|
16
|
-
import { NavigationHistoryProvider as w, QP_BACK_URL_NAME as
|
|
16
|
+
import { NavigationHistoryProvider as w, QP_BACK_URL_NAME as E, useNavigationHistory as A } from "./contexts/NavigationHistoryContext/index.mjs";
|
|
17
17
|
import { PageDataProvider as O, usePageData as R } from "./contexts/PageDataContext/index.mjs";
|
|
18
18
|
import { Form as J } from "./form/Form.mjs";
|
|
19
|
-
import { FormButtonSubmit as
|
|
20
|
-
import { zodValidator as
|
|
19
|
+
import { FormButtonSubmit as L } from "./form/FormButtonSubmit.mjs";
|
|
20
|
+
import { zodValidator as z } from "./form/utils/zodValidator.mjs";
|
|
21
21
|
import { nullableInput as Q } from "./form/utils/nullableInput.mjs";
|
|
22
22
|
import { optionalInput as W } from "./form/utils/optionalInput.mjs";
|
|
23
23
|
import { FormCheckbox as q } from "./form/base/FormCheckbox.mjs";
|
|
24
24
|
import { FormDatePickerInput as Y } from "./form/base/FormDatePickerInput.mjs";
|
|
25
25
|
import { FormDateTimePicker as $ } from "./form/base/FormDateTimePicker.mjs";
|
|
26
|
-
import { FormNumberInput as
|
|
27
|
-
import { FormRadioGroup as
|
|
28
|
-
import { FormSelect as
|
|
29
|
-
import { FormSelectInfinity as
|
|
30
|
-
import { FormTextarea as
|
|
31
|
-
import { FormTextInput as
|
|
32
|
-
import { FormTimeInput as
|
|
33
|
-
import { withForm as
|
|
34
|
-
import { withModalManager as
|
|
35
|
-
import { useBreakpoint as
|
|
36
|
-
import { useFetchNextPageOnScroll as
|
|
37
|
-
import { useOnScrollProgress as
|
|
38
|
-
import { useUpdateSearchParams as
|
|
39
|
-
import { breakpointsWithPx as
|
|
40
|
-
import { toTailwindColors as
|
|
41
|
-
import { myDefaultTheme as
|
|
42
|
-
import { formatBytes as
|
|
43
|
-
import { addBodyJsonHook as
|
|
44
|
-
import { parseJSON as
|
|
45
|
-
import { groupBy as
|
|
46
|
-
import { shuffleArray as
|
|
47
|
-
import { newHref as
|
|
48
|
-
import { isInfinityEmpty as
|
|
26
|
+
import { FormNumberInput as or } from "./form/base/FormNumberInput.mjs";
|
|
27
|
+
import { FormRadioGroup as tr } from "./form/base/FormRadioGroup.mjs";
|
|
28
|
+
import { FormSelect as pr } from "./form/base/FormSelect.mjs";
|
|
29
|
+
import { FormSelectInfinity as xr } from "./form/base/FormSelectInfinity.mjs";
|
|
30
|
+
import { FormTextarea as ir } from "./form/base/FormTextArea.mjs";
|
|
31
|
+
import { FormTextInput as ur } from "./form/base/FormTextInput.mjs";
|
|
32
|
+
import { FormTimeInput as sr, numberToTimeInput as lr, timeInputToNumber as Ir } from "./form/base/FormTimeInput.mjs";
|
|
33
|
+
import { withForm as dr } from "./hocs/withForm.mjs";
|
|
34
|
+
import { withModalManager as Pr } from "./hocs/withModalManager.mjs";
|
|
35
|
+
import { useBreakpoint as Mr } from "./hooks/useBreakpoint.mjs";
|
|
36
|
+
import { useFetchNextPageOnScroll as Nr } from "./hooks/useFetchNextPageOnScroll.mjs";
|
|
37
|
+
import { useOnScrollProgress as gr } from "./hooks/useOnScrollProgress.mjs";
|
|
38
|
+
import { useUpdateSearchParams as kr } from "./hooks/useUpdateSearchParams.mjs";
|
|
39
|
+
import { breakpointsWithPx as Dr } from "./mantine/breakpoints-with-px.mjs";
|
|
40
|
+
import { toTailwindColors as Hr } from "./mantine/to-tailwind-colors.mjs";
|
|
41
|
+
import { myDefaultTheme as Er } from "./mantine/my-default-theme.mjs";
|
|
42
|
+
import { formatBytes as Cr } from "./utils/formatBytes.mjs";
|
|
43
|
+
import { KyError as Rr, addBodyJsonHook as _r } from "./utils/ky/addBodyJsonHook.mjs";
|
|
44
|
+
import { parseJSON as Kr } from "./utils/ky/parseJson.mjs";
|
|
45
|
+
import { groupBy as Ur, indexBy as zr } from "./utils/array/groupBy.mjs";
|
|
46
|
+
import { shuffleArray as Qr } from "./utils/array/shuffleArray.mjs";
|
|
47
|
+
import { newHref as Wr } from "./utils/newHref.mjs";
|
|
48
|
+
import { isInfinityEmpty as qr } from "./utils/isInfinityEmpty.mjs";
|
|
49
49
|
export {
|
|
50
50
|
e as EmptyState,
|
|
51
51
|
J as Form,
|
|
52
|
-
|
|
52
|
+
L as FormButtonSubmit,
|
|
53
53
|
q as FormCheckbox,
|
|
54
54
|
Y as FormDatePickerInput,
|
|
55
55
|
$ as FormDateTimePicker,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
or as FormNumberInput,
|
|
57
|
+
tr as FormRadioGroup,
|
|
58
|
+
pr as FormSelect,
|
|
59
|
+
xr as FormSelectInfinity,
|
|
60
|
+
ur as FormTextInput,
|
|
61
|
+
ir as FormTextarea,
|
|
62
|
+
sr as FormTimeInput,
|
|
63
63
|
B as HttpStatus,
|
|
64
64
|
a as Icon,
|
|
65
65
|
m as InfinityLoader,
|
|
66
|
+
Rr as KyError,
|
|
66
67
|
n as MyDatePickerInput,
|
|
67
68
|
y as MyDateTimePicker,
|
|
68
69
|
l as MyNotifications,
|
|
@@ -74,32 +75,32 @@ export {
|
|
|
74
75
|
f as NavItems,
|
|
75
76
|
w as NavigationHistoryProvider,
|
|
76
77
|
O as PageDataProvider,
|
|
77
|
-
|
|
78
|
+
E as QP_BACK_URL_NAME,
|
|
78
79
|
v as Revalidate,
|
|
79
80
|
h as SelectInfinity,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
81
|
+
_r as addBodyJsonHook,
|
|
82
|
+
Dr as breakpointsWithPx,
|
|
83
|
+
Cr as formatBytes,
|
|
84
|
+
Ur as groupBy,
|
|
85
|
+
zr as indexBy,
|
|
86
|
+
qr as isInfinityEmpty,
|
|
87
|
+
Er as myDefaultTheme,
|
|
88
|
+
Wr as newHref,
|
|
88
89
|
Q as nullableInput,
|
|
89
|
-
|
|
90
|
+
lr as numberToTimeInput,
|
|
90
91
|
W as optionalInput,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
92
|
+
Kr as parseJSON,
|
|
93
|
+
Qr as shuffleArray,
|
|
94
|
+
Ir as timeInputToNumber,
|
|
95
|
+
Hr as toTailwindColors,
|
|
96
|
+
Mr as useBreakpoint,
|
|
97
|
+
Nr as useFetchNextPageOnScroll,
|
|
98
|
+
A as useNavigationHistory,
|
|
99
|
+
gr as useOnScrollProgress,
|
|
99
100
|
R as usePageData,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
kr as useUpdateSearchParams,
|
|
102
|
+
dr as withForm,
|
|
103
|
+
Pr as withModalManager,
|
|
104
|
+
z as zodValidator
|
|
104
105
|
};
|
|
105
106
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -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}}),Menu:e.Menu.extend({defaultProps:{position:"bottom-end"}}),Tooltip:e.Tooltip.extend({defaultProps:{multiline:!0,w:300}})}};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}}),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;
|
|
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} 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 },\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":"
|
|
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 },\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,EAAA,CACjB,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,34 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { breakpointsWithPx as
|
|
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
3
|
const d = {
|
|
4
|
-
breakpoints:
|
|
4
|
+
breakpoints: i,
|
|
5
5
|
cursorType: "pointer",
|
|
6
6
|
components: {
|
|
7
|
-
Notification:
|
|
7
|
+
Notification: p.extend({
|
|
8
8
|
defaultProps: {
|
|
9
9
|
withBorder: !0
|
|
10
10
|
}
|
|
11
11
|
}),
|
|
12
|
-
AppShell:
|
|
12
|
+
AppShell: l.extend({
|
|
13
13
|
defaultProps: {
|
|
14
14
|
padding: 0
|
|
15
15
|
}
|
|
16
16
|
}),
|
|
17
|
-
Select:
|
|
17
|
+
Select: r.extend({
|
|
18
18
|
defaultProps: {
|
|
19
19
|
allowDeselect: !1
|
|
20
20
|
}
|
|
21
21
|
}),
|
|
22
|
-
Menu:
|
|
22
|
+
Menu: o.extend({
|
|
23
23
|
defaultProps: {
|
|
24
24
|
position: "bottom-end"
|
|
25
25
|
}
|
|
26
26
|
}),
|
|
27
|
-
Tooltip:
|
|
27
|
+
Tooltip: t.extend({
|
|
28
28
|
defaultProps: {
|
|
29
29
|
multiline: !0,
|
|
30
30
|
w: 300
|
|
31
31
|
}
|
|
32
|
+
}),
|
|
33
|
+
// borrar en v8
|
|
34
|
+
Portal: e.extend({
|
|
35
|
+
defaultProps: {
|
|
36
|
+
reuseTargetNode: !0
|
|
37
|
+
}
|
|
32
38
|
})
|
|
33
39
|
}
|
|
34
40
|
};
|
|
@@ -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} 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 },\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":";;
|
|
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 },\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,MAAA;AAAA,IACjB,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,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("ky"),d=require("./parseJson.cjs");class a extends t.HTTPError{constructor(s,e,r,n){super(s,e,r),this.response.bodyJson=n}}const y=async o=>(o.response.bodyJson=await d.parseJSON(o.response),o);exports.KyError=a;exports.addBodyJsonHook=y;
|
|
2
2
|
//# sourceMappingURL=addBodyJsonHook.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addBodyJsonHook.cjs","sources":["../../../../src/utils/ky/addBodyJsonHook.ts"],"sourcesContent":["import { BeforeErrorHook, HTTPError } from 'ky';\r\nimport { parseJSON } from './parseJson';\r\n\r\nexport
|
|
1
|
+
{"version":3,"file":"addBodyJsonHook.cjs","sources":["../../../../src/utils/ky/addBodyJsonHook.ts"],"sourcesContent":["import { BeforeErrorHook, HTTPError, KyRequest, KyResponse, NormalizedOptions } from 'ky';\r\nimport { parseJSON } from './parseJson';\r\n\r\ninterface KyResponseWithBody<T> extends KyResponse<T> {\r\n bodyJson?: T;\r\n}\r\n\r\nexport class KyError<T = unknown> extends HTTPError<T> {\r\n declare response: KyResponseWithBody<T>;\r\n declare request: KyRequest;\r\n declare options: NormalizedOptions;\r\n\r\n constructor(\r\n response: KyResponse<T>,\r\n request: KyRequest,\r\n options: NormalizedOptions,\r\n bodyJson: T,\r\n ) {\r\n super(response, request, options);\r\n this.response.bodyJson = bodyJson;\r\n }\r\n}\r\n\r\nexport const addBodyJsonHook: BeforeErrorHook = async (error: KyError<unknown>) => {\r\n error.response.bodyJson = await parseJSON(error.response);\r\n return error;\r\n};\r\n"],"names":["KyError","HTTPError","response","request","options","bodyJson","addBodyJsonHook","error","parseJSON"],"mappings":"mIAOO,MAAMA,UAA6BC,EAAAA,SAAa,CAKrD,YACEC,EACAC,EACAC,EACAC,EACA,CACM,MAAAH,EAAUC,EAASC,CAAO,EAChC,KAAK,SAAS,SAAWC,CAAA,CAE7B,CAEa,MAAAC,EAAmC,MAAOC,IACrDA,EAAM,SAAS,SAAW,MAAMC,EAAAA,UAAUD,EAAM,QAAQ,EACjDA"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { HTTPError as t } from "ky";
|
|
2
|
+
import { parseJSON as p } from "./parseJson.mjs";
|
|
3
|
+
class c extends t {
|
|
4
|
+
constructor(s, r, n, e) {
|
|
5
|
+
super(s, r, n), this.response.bodyJson = e;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
const y = async (o) => (o.response.bodyJson = await p(o.response), o);
|
|
3
9
|
export {
|
|
4
|
-
|
|
10
|
+
c as KyError,
|
|
11
|
+
y as addBodyJsonHook
|
|
5
12
|
};
|
|
6
13
|
//# sourceMappingURL=addBodyJsonHook.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addBodyJsonHook.mjs","sources":["../../../../src/utils/ky/addBodyJsonHook.ts"],"sourcesContent":["import { BeforeErrorHook, HTTPError } from 'ky';\r\nimport { parseJSON } from './parseJson';\r\n\r\nexport
|
|
1
|
+
{"version":3,"file":"addBodyJsonHook.mjs","sources":["../../../../src/utils/ky/addBodyJsonHook.ts"],"sourcesContent":["import { BeforeErrorHook, HTTPError, KyRequest, KyResponse, NormalizedOptions } from 'ky';\r\nimport { parseJSON } from './parseJson';\r\n\r\ninterface KyResponseWithBody<T> extends KyResponse<T> {\r\n bodyJson?: T;\r\n}\r\n\r\nexport class KyError<T = unknown> extends HTTPError<T> {\r\n declare response: KyResponseWithBody<T>;\r\n declare request: KyRequest;\r\n declare options: NormalizedOptions;\r\n\r\n constructor(\r\n response: KyResponse<T>,\r\n request: KyRequest,\r\n options: NormalizedOptions,\r\n bodyJson: T,\r\n ) {\r\n super(response, request, options);\r\n this.response.bodyJson = bodyJson;\r\n }\r\n}\r\n\r\nexport const addBodyJsonHook: BeforeErrorHook = async (error: KyError<unknown>) => {\r\n error.response.bodyJson = await parseJSON(error.response);\r\n return error;\r\n};\r\n"],"names":["KyError","HTTPError","response","request","options","bodyJson","addBodyJsonHook","error","parseJSON"],"mappings":";;AAOO,MAAMA,UAA6BC,EAAa;AAAA,EAKrD,YACEC,GACAC,GACAC,GACAC,GACA;AACM,UAAAH,GAAUC,GAASC,CAAO,GAChC,KAAK,SAAS,WAAWC;AAAA,EAAA;AAE7B;AAEa,MAAAC,IAAmC,OAAOC,OACrDA,EAAM,SAAS,WAAW,MAAMC,EAAUD,EAAM,QAAQ,GACjDA;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lkd-web-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "A template for creating React component libraries with Vite.",
|
|
5
5
|
"author": "LKD",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,19 +55,19 @@
|
|
|
55
55
|
"vitest": "^3.1.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@mantine/core": "^7.17.
|
|
59
|
-
"@mantine/dates": "^7.17.
|
|
60
|
-
"@mantine/hooks": "^7.17.
|
|
61
|
-
"@mantine/notifications": "^7.17.
|
|
62
|
-
"@tanstack/react-query": "^5.
|
|
58
|
+
"@mantine/core": "^7.17.5",
|
|
59
|
+
"@mantine/dates": "^7.17.5",
|
|
60
|
+
"@mantine/hooks": "^7.17.5",
|
|
61
|
+
"@mantine/notifications": "^7.17.5",
|
|
62
|
+
"@tanstack/react-query": "^5.74.4",
|
|
63
63
|
"clsx": "^2.1.1",
|
|
64
|
-
"ky": "^1.8.
|
|
65
|
-
"next": "^15.3.
|
|
64
|
+
"ky": "^1.8.1",
|
|
65
|
+
"next": "^15.3.1",
|
|
66
66
|
"query-string": "^9.1.1",
|
|
67
67
|
"react": "^19.1.0",
|
|
68
68
|
"react-dom": "^19.1.0",
|
|
69
|
-
"react-hook-form": "^7.
|
|
69
|
+
"react-hook-form": "^7.56.1",
|
|
70
70
|
"react-query-kit": "^3.3.1",
|
|
71
|
-
"zod": "^3.24.
|
|
71
|
+
"zod": "^3.24.3"
|
|
72
72
|
}
|
|
73
73
|
}
|