lkd-web-kit 0.3.17 → 0.3.18
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 +5 -12
- package/dist/index.mjs +1 -1
- package/dist/index48.mjs +1 -8
- package/package.json +2 -10
- package/dist/index.cjs +0 -118
- package/dist/index10.cjs +0 -16
- package/dist/index11.cjs +0 -16
- package/dist/index12.cjs +0 -16
- package/dist/index13.cjs +0 -16
- package/dist/index14.cjs +0 -118
- package/dist/index15.cjs +0 -16
- package/dist/index16.cjs +0 -19
- package/dist/index17.cjs +0 -70
- package/dist/index18.cjs +0 -14
- package/dist/index19.cjs +0 -66
- package/dist/index2.cjs +0 -43
- package/dist/index20.cjs +0 -21
- package/dist/index21.cjs +0 -30
- package/dist/index22.cjs +0 -24
- package/dist/index23.cjs +0 -15
- package/dist/index24.cjs +0 -16
- package/dist/index25.cjs +0 -16
- package/dist/index26.cjs +0 -18
- package/dist/index27.cjs +0 -17
- package/dist/index28.cjs +0 -17
- package/dist/index29.cjs +0 -17
- package/dist/index3.cjs +0 -46
- package/dist/index30.cjs +0 -17
- package/dist/index31.cjs +0 -17
- package/dist/index32.cjs +0 -17
- package/dist/index33.cjs +0 -17
- package/dist/index34.cjs +0 -17
- package/dist/index35.cjs +0 -29
- package/dist/index36.cjs +0 -17
- package/dist/index37.cjs +0 -17
- package/dist/index38.cjs +0 -51
- package/dist/index39.cjs +0 -38
- package/dist/index4.cjs +0 -40
- package/dist/index40.cjs +0 -15
- package/dist/index41.cjs +0 -23
- package/dist/index42.cjs +0 -39
- package/dist/index43.cjs +0 -24
- package/dist/index44.cjs +0 -14
- package/dist/index45.cjs +0 -19
- package/dist/index46.cjs +0 -43
- package/dist/index47.cjs +0 -14
- package/dist/index48.cjs +0 -20
- package/dist/index49.cjs +0 -11
- package/dist/index5.cjs +0 -54
- package/dist/index50.cjs +0 -45
- package/dist/index51.cjs +0 -19
- package/dist/index52.cjs +0 -24
- package/dist/index53.cjs +0 -7
- package/dist/index54.cjs +0 -65
- package/dist/index6.cjs +0 -19
- package/dist/index7.cjs +0 -19
- package/dist/index8.cjs +0 -17
- package/dist/index9.cjs +0 -16
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ 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';
|
|
24
23
|
import { KyResponse } from 'ky';
|
|
25
24
|
import { LoaderProps } from '@mantine/core';
|
|
26
25
|
import { MantineColorShade } from '@mantine/core';
|
|
@@ -30,7 +29,6 @@ import { ModalProps } from '@mantine/core';
|
|
|
30
29
|
import { MonthPickerInputProps } from '@mantine/dates';
|
|
31
30
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
32
31
|
import { MultiSelectProps } from '@mantine/core';
|
|
33
|
-
import { NormalizedOptions } from 'ky';
|
|
34
32
|
import { NotificationsProps } from '@mantine/notifications';
|
|
35
33
|
import { NumberInputProps } from '@mantine/core';
|
|
36
34
|
import { RadioGroupProps } from '@mantine/core';
|
|
@@ -275,16 +273,11 @@ export declare const isInfinityEmpty: (data: InfiniteData<{
|
|
|
275
273
|
data: unknown[];
|
|
276
274
|
}> | undefined) => boolean;
|
|
277
275
|
|
|
278
|
-
export declare
|
|
279
|
-
response:
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
declare interface KyResponseWithBody<T> extends KyResponse<T> {
|
|
286
|
-
bodyJson?: T;
|
|
287
|
-
}
|
|
276
|
+
export declare type KyError<T> = HTTPError<T> & {
|
|
277
|
+
response: {
|
|
278
|
+
bodyJson?: T;
|
|
279
|
+
};
|
|
280
|
+
};
|
|
288
281
|
|
|
289
282
|
export declare interface LayoutProps {
|
|
290
283
|
children: React.ReactNode;
|
package/dist/index.mjs
CHANGED
|
@@ -44,7 +44,7 @@ export { breakpointsWithPx } from './index44.mjs';
|
|
|
44
44
|
export { toTailwindColors } from './index45.mjs';
|
|
45
45
|
export { myDefaultTheme } from './index46.mjs';
|
|
46
46
|
export { formatBytes } from './index47.mjs';
|
|
47
|
-
export {
|
|
47
|
+
export { addBodyJsonHook } from './index48.mjs';
|
|
48
48
|
export { parseJSON } from './index49.mjs';
|
|
49
49
|
export { groupBy, indexBy } from './index50.mjs';
|
|
50
50
|
export { shuffleArray } from './index51.mjs';
|
package/dist/index48.mjs
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import { HTTPError } from 'ky';
|
|
2
1
|
import { parseJSON } from './index49.mjs';
|
|
3
2
|
|
|
4
|
-
class KyError extends HTTPError {
|
|
5
|
-
constructor(response, request, options, bodyJson) {
|
|
6
|
-
super(response, request, options);
|
|
7
|
-
this.response.bodyJson = bodyJson;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
3
|
const addBodyJsonHook = async (error) => {
|
|
11
4
|
error.response.bodyJson = await parseJSON(error.response);
|
|
12
5
|
return error;
|
|
13
6
|
};
|
|
14
7
|
|
|
15
|
-
export {
|
|
8
|
+
export { addBodyJsonHook };
|
package/package.json
CHANGED
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lkd-web-kit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.18",
|
|
4
4
|
"description": "A template for creating React component libraries with Vite.",
|
|
5
5
|
"author": "LKD",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"main": "./dist/index.
|
|
8
|
-
"module": "./dist/index.mjs",
|
|
7
|
+
"main": "./dist/index.mjs",
|
|
9
8
|
"types": "./dist/index.d.ts",
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"types": "./dist/index.d.ts",
|
|
13
|
-
"import": "./dist/index.mjs",
|
|
14
|
-
"require": "./dist/index.cjs"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
9
|
"sideEffects": false,
|
|
18
10
|
"files": [
|
|
19
11
|
"dist"
|
package/dist/index.cjs
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const index = require('./index2.cjs');
|
|
6
|
-
const index$1 = require('./index3.cjs');
|
|
7
|
-
const NavItems = require('./index4.cjs');
|
|
8
|
-
const Icon = require('./index5.cjs');
|
|
9
|
-
const index$2 = require('./index6.cjs');
|
|
10
|
-
const index$3 = require('./index7.cjs');
|
|
11
|
-
const index$4 = require('./index8.cjs');
|
|
12
|
-
const index$5 = require('./index9.cjs');
|
|
13
|
-
const index$6 = require('./index10.cjs');
|
|
14
|
-
const index$7 = require('./index11.cjs');
|
|
15
|
-
const index$8 = require('./index12.cjs');
|
|
16
|
-
const index$9 = require('./index13.cjs');
|
|
17
|
-
const index$a = require('./index14.cjs');
|
|
18
|
-
const index$b = require('./index15.cjs');
|
|
19
|
-
const index$c = require('./index16.cjs');
|
|
20
|
-
const httpStatus = require('./index17.cjs');
|
|
21
|
-
const revalidate = require('./index18.cjs');
|
|
22
|
-
const index$d = require('./index19.cjs');
|
|
23
|
-
const index$e = require('./index20.cjs');
|
|
24
|
-
const Form = require('./index21.cjs');
|
|
25
|
-
const FormButtonSubmit = require('./index22.cjs');
|
|
26
|
-
const zodValidator = require('./index23.cjs');
|
|
27
|
-
const nullableButRequired = require('./index24.cjs');
|
|
28
|
-
const optionalButRequired = require('./index25.cjs');
|
|
29
|
-
const FormCheckbox = require('./index26.cjs');
|
|
30
|
-
const FormDatePickerInput = require('./index27.cjs');
|
|
31
|
-
const FormDateTimePicker = require('./index28.cjs');
|
|
32
|
-
const FormNumberInput = require('./index29.cjs');
|
|
33
|
-
const FormRadioGroup = require('./index30.cjs');
|
|
34
|
-
const FormSelect = require('./index31.cjs');
|
|
35
|
-
const FormSelectInfinity = require('./index32.cjs');
|
|
36
|
-
const FormTextarea = require('./index33.cjs');
|
|
37
|
-
const FormTextInput = require('./index34.cjs');
|
|
38
|
-
const FormTimeInput = require('./index35.cjs');
|
|
39
|
-
const FormMultiSelect = require('./index36.cjs');
|
|
40
|
-
const FormMonthPickerInput = require('./index37.cjs');
|
|
41
|
-
const withForm = require('./index38.cjs');
|
|
42
|
-
const withModalManager = require('./index39.cjs');
|
|
43
|
-
const useBreakpoint = require('./index40.cjs');
|
|
44
|
-
const useFetchNextPageOnScroll = require('./index41.cjs');
|
|
45
|
-
const useOnScrollProgress = require('./index42.cjs');
|
|
46
|
-
const useUpdateSearchParams = require('./index43.cjs');
|
|
47
|
-
const breakpointsWithPx = require('./index44.cjs');
|
|
48
|
-
const toTailwindColors = require('./index45.cjs');
|
|
49
|
-
const myDefaultTheme = require('./index46.cjs');
|
|
50
|
-
const formatBytes = require('./index47.cjs');
|
|
51
|
-
const addBodyJsonHook = require('./index48.cjs');
|
|
52
|
-
const parseJson = require('./index49.cjs');
|
|
53
|
-
const groupBy = require('./index50.cjs');
|
|
54
|
-
const shuffleArray = require('./index51.cjs');
|
|
55
|
-
const newHref = require('./index52.cjs');
|
|
56
|
-
const isInfinityEmpty = require('./index53.cjs');
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
exports.EmptyState = index.EmptyState;
|
|
61
|
-
exports.InfinityLoader = index$1.InfinityLoader;
|
|
62
|
-
exports.NavItems = NavItems.NavItems;
|
|
63
|
-
exports.Icon = Icon.Icon;
|
|
64
|
-
exports.MyDatePickerInput = index$2.MyDatePickerInput;
|
|
65
|
-
exports.MyDateTimePicker = index$3.MyDateTimePicker;
|
|
66
|
-
exports.MyNotifications = index$4.MyNotifications;
|
|
67
|
-
exports.MyNumberInput = index$5.MyNumberInput;
|
|
68
|
-
exports.MySelect = index$6.MySelect;
|
|
69
|
-
exports.MyTextarea = index$7.MyTextarea;
|
|
70
|
-
exports.MyTextInput = index$8.MyTextInput;
|
|
71
|
-
exports.MyTimeInput = index$9.MyTimeInput;
|
|
72
|
-
exports.SelectInfinity = index$a.SelectInfinity;
|
|
73
|
-
exports.MyMultiSelect = index$b.MyMultiSelect;
|
|
74
|
-
exports.MyMonthPickerInput = index$c.MyMonthPickerInput;
|
|
75
|
-
exports.HttpStatus = httpStatus.HttpStatus;
|
|
76
|
-
exports.Revalidate = revalidate.Revalidate;
|
|
77
|
-
exports.NavigationHistoryProvider = index$d.NavigationHistoryProvider;
|
|
78
|
-
exports.QP_BACK_URL_NAME = index$d.QP_BACK_URL_NAME;
|
|
79
|
-
exports.useNavigationHistory = index$d.useNavigationHistory;
|
|
80
|
-
exports.PageDataProvider = index$e.PageDataProvider;
|
|
81
|
-
exports.usePageData = index$e.usePageData;
|
|
82
|
-
exports.Form = Form.Form;
|
|
83
|
-
exports.FormButtonSubmit = FormButtonSubmit.FormButtonSubmit;
|
|
84
|
-
exports.zodValidator = zodValidator.zodValidator;
|
|
85
|
-
exports.nullableButRequired = nullableButRequired.nullableButRequired;
|
|
86
|
-
exports.optionalButRequired = optionalButRequired.optionalButRequired;
|
|
87
|
-
exports.FormCheckbox = FormCheckbox.FormCheckbox;
|
|
88
|
-
exports.FormDatePickerInput = FormDatePickerInput.FormDatePickerInput;
|
|
89
|
-
exports.FormDateTimePicker = FormDateTimePicker.FormDateTimePicker;
|
|
90
|
-
exports.FormNumberInput = FormNumberInput.FormNumberInput;
|
|
91
|
-
exports.FormRadioGroup = FormRadioGroup.FormRadioGroup;
|
|
92
|
-
exports.FormSelect = FormSelect.FormSelect;
|
|
93
|
-
exports.FormSelectInfinity = FormSelectInfinity.FormSelectInfinity;
|
|
94
|
-
exports.FormTextarea = FormTextarea.FormTextarea;
|
|
95
|
-
exports.FormTextInput = FormTextInput.FormTextInput;
|
|
96
|
-
exports.FormTimeInput = FormTimeInput.FormTimeInput;
|
|
97
|
-
exports.numberToTimeInput = FormTimeInput.numberToTimeInput;
|
|
98
|
-
exports.timeInputToNumber = FormTimeInput.timeInputToNumber;
|
|
99
|
-
exports.FormMultiSelect = FormMultiSelect.FormMultiSelect;
|
|
100
|
-
exports.FormMonthPickerInput = FormMonthPickerInput.FormMonthPickerInput;
|
|
101
|
-
exports.withForm = withForm.withForm;
|
|
102
|
-
exports.withModalManager = withModalManager.withModalManager;
|
|
103
|
-
exports.useBreakpoint = useBreakpoint.useBreakpoint;
|
|
104
|
-
exports.useFetchNextPageOnScroll = useFetchNextPageOnScroll.useFetchNextPageOnScroll;
|
|
105
|
-
exports.useOnScrollProgress = useOnScrollProgress.useOnScrollProgress;
|
|
106
|
-
exports.useUpdateSearchParams = useUpdateSearchParams.useUpdateSearchParams;
|
|
107
|
-
exports.breakpointsWithPx = breakpointsWithPx.breakpointsWithPx;
|
|
108
|
-
exports.toTailwindColors = toTailwindColors.toTailwindColors;
|
|
109
|
-
exports.myDefaultTheme = myDefaultTheme.myDefaultTheme;
|
|
110
|
-
exports.formatBytes = formatBytes.formatBytes;
|
|
111
|
-
exports.KyError = addBodyJsonHook.KyError;
|
|
112
|
-
exports.addBodyJsonHook = addBodyJsonHook.addBodyJsonHook;
|
|
113
|
-
exports.parseJSON = parseJson.parseJSON;
|
|
114
|
-
exports.groupBy = groupBy.groupBy;
|
|
115
|
-
exports.indexBy = groupBy.indexBy;
|
|
116
|
-
exports.shuffleArray = shuffleArray.shuffleArray;
|
|
117
|
-
exports.newHref = newHref.newHref;
|
|
118
|
-
exports.isInfinityEmpty = isInfinityEmpty.isInfinityEmpty;
|
package/dist/index10.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
const core = require('@mantine/core');
|
|
7
|
-
|
|
8
|
-
const MySelect = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
|
-
core.Select,
|
|
10
|
-
{
|
|
11
|
-
variant: props.readOnly ? "filled" : "default",
|
|
12
|
-
...props
|
|
13
|
-
}
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
exports.MySelect = MySelect;
|
package/dist/index11.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
const core = require('@mantine/core');
|
|
7
|
-
|
|
8
|
-
const MyTextarea = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
|
-
core.Textarea,
|
|
10
|
-
{
|
|
11
|
-
variant: props.readOnly ? "filled" : "default",
|
|
12
|
-
...props
|
|
13
|
-
}
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
exports.MyTextarea = MyTextarea;
|
package/dist/index12.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
const core = require('@mantine/core');
|
|
7
|
-
|
|
8
|
-
const MyTextInput = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
|
-
core.TextInput,
|
|
10
|
-
{
|
|
11
|
-
variant: props.readOnly ? "filled" : "default",
|
|
12
|
-
...props
|
|
13
|
-
}
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
exports.MyTextInput = MyTextInput;
|
package/dist/index13.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
const core = require('@mantine/core');
|
|
7
|
-
|
|
8
|
-
const MyTimeInput = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
|
-
core.TextInput,
|
|
10
|
-
{
|
|
11
|
-
variant: props.readOnly ? "filled" : "default",
|
|
12
|
-
...props
|
|
13
|
-
}
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
exports.MyTimeInput = MyTimeInput;
|
package/dist/index14.cjs
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
-
|
|
6
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
const core = require('@mantine/core');
|
|
8
|
-
const react = require('react');
|
|
9
|
-
const useFetchNextPageOnScroll = require('./index41.cjs');
|
|
10
|
-
const index = require('./index3.cjs');
|
|
11
|
-
|
|
12
|
-
function SelectInfinity({
|
|
13
|
-
value,
|
|
14
|
-
onChange,
|
|
15
|
-
data = [],
|
|
16
|
-
searchValue,
|
|
17
|
-
onSearchChange,
|
|
18
|
-
renderOption,
|
|
19
|
-
onOptionSubmit,
|
|
20
|
-
nothingFoundMessage,
|
|
21
|
-
infinity,
|
|
22
|
-
placeholder,
|
|
23
|
-
...props
|
|
24
|
-
}) {
|
|
25
|
-
const combobox = core.useCombobox({
|
|
26
|
-
onDropdownClose: () => {
|
|
27
|
-
combobox.resetSelectedOption();
|
|
28
|
-
combobox.focusTarget();
|
|
29
|
-
onSearchChange?.("");
|
|
30
|
-
},
|
|
31
|
-
onDropdownOpen: () => {
|
|
32
|
-
combobox.focusSearchInput();
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
const options = data.map((i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
36
|
-
core.Combobox.Option,
|
|
37
|
-
{
|
|
38
|
-
value: i.value,
|
|
39
|
-
children: renderOption ? renderOption({ option: i }) : i.label
|
|
40
|
-
},
|
|
41
|
-
i.value
|
|
42
|
-
));
|
|
43
|
-
const selectedOption = data.find((i) => i.value === value);
|
|
44
|
-
const scrollRef = react.useRef(null);
|
|
45
|
-
useFetchNextPageOnScroll.useFetchNextPageOnScroll({ infinity, scrollRef });
|
|
46
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
47
|
-
core.Combobox,
|
|
48
|
-
{
|
|
49
|
-
store: combobox,
|
|
50
|
-
middlewares: {
|
|
51
|
-
shift: {
|
|
52
|
-
crossAxis: true
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
onOptionSubmit: (val) => {
|
|
56
|
-
onChange?.(val);
|
|
57
|
-
onOptionSubmit?.(val);
|
|
58
|
-
combobox.closeDropdown();
|
|
59
|
-
},
|
|
60
|
-
children: [
|
|
61
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Combobox.Target, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
62
|
-
core.InputBase,
|
|
63
|
-
{
|
|
64
|
-
component: "button",
|
|
65
|
-
type: "button",
|
|
66
|
-
pointer: true,
|
|
67
|
-
rightSection: /* @__PURE__ */ jsxRuntime.jsx(core.Combobox.Chevron, {}),
|
|
68
|
-
onClick: () => combobox.toggleDropdown(),
|
|
69
|
-
rightSectionPointerEvents: "none",
|
|
70
|
-
...props,
|
|
71
|
-
children: selectedOption?.label || /* @__PURE__ */ jsxRuntime.jsx(core.Input.Placeholder, { children: placeholder })
|
|
72
|
-
}
|
|
73
|
-
) }),
|
|
74
|
-
/* @__PURE__ */ jsxRuntime.jsxs(core.Combobox.Dropdown, { children: [
|
|
75
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
76
|
-
core.Combobox.Search,
|
|
77
|
-
{
|
|
78
|
-
value: searchValue,
|
|
79
|
-
onChange: (event) => onSearchChange?.(event.currentTarget.value),
|
|
80
|
-
placeholder: "Escribe para buscar"
|
|
81
|
-
}
|
|
82
|
-
),
|
|
83
|
-
/* @__PURE__ */ jsxRuntime.jsx(core.Combobox.Options, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
84
|
-
core.ScrollArea.Autosize,
|
|
85
|
-
{
|
|
86
|
-
mah: 200,
|
|
87
|
-
type: "scroll",
|
|
88
|
-
viewportRef: scrollRef,
|
|
89
|
-
children: [
|
|
90
|
-
options.length > 0 ? options : !infinity.isFetching ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
91
|
-
core.Combobox.Empty,
|
|
92
|
-
{
|
|
93
|
-
onClick: () => combobox.closeDropdown(),
|
|
94
|
-
className: "min-h-6",
|
|
95
|
-
children: nothingFoundMessage ?? "Sin resultados"
|
|
96
|
-
}
|
|
97
|
-
) : null,
|
|
98
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
99
|
-
index.InfinityLoader,
|
|
100
|
-
{
|
|
101
|
-
className: "text-sm",
|
|
102
|
-
infinity,
|
|
103
|
-
loaderProps: {
|
|
104
|
-
size: "sm",
|
|
105
|
-
className: "mt-1 mb-2"
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
)
|
|
109
|
-
]
|
|
110
|
-
}
|
|
111
|
-
) })
|
|
112
|
-
] })
|
|
113
|
-
]
|
|
114
|
-
}
|
|
115
|
-
);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
exports.SelectInfinity = SelectInfinity;
|
package/dist/index15.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
const core = require('@mantine/core');
|
|
7
|
-
|
|
8
|
-
const MyMultiSelect = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
|
-
core.MultiSelect,
|
|
10
|
-
{
|
|
11
|
-
variant: props.readOnly ? "filled" : "default",
|
|
12
|
-
...props
|
|
13
|
-
}
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
exports.MyMultiSelect = MyMultiSelect;
|
package/dist/index16.cjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
const dates = require('@mantine/dates');
|
|
7
|
-
const CalendarIcon = require('./index54.cjs');
|
|
8
|
-
|
|
9
|
-
const MyMonthPickerInput = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
10
|
-
dates.MonthPickerInput,
|
|
11
|
-
{
|
|
12
|
-
leftSection: /* @__PURE__ */ jsxRuntime.jsx(CalendarIcon, { size: props.size }),
|
|
13
|
-
leftSectionPointerEvents: "none",
|
|
14
|
-
variant: props.readOnly ? "filled" : "default",
|
|
15
|
-
...props
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
exports.MyMonthPickerInput = MyMonthPickerInput;
|
package/dist/index17.cjs
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
var HttpStatus = /* @__PURE__ */ ((HttpStatus2) => {
|
|
6
|
-
HttpStatus2[HttpStatus2["Continue"] = 100] = "Continue";
|
|
7
|
-
HttpStatus2[HttpStatus2["SwitchingProtocols"] = 101] = "SwitchingProtocols";
|
|
8
|
-
HttpStatus2[HttpStatus2["Processing"] = 102] = "Processing";
|
|
9
|
-
HttpStatus2[HttpStatus2["EarlyHints"] = 103] = "EarlyHints";
|
|
10
|
-
HttpStatus2[HttpStatus2["Ok"] = 200] = "Ok";
|
|
11
|
-
HttpStatus2[HttpStatus2["Created"] = 201] = "Created";
|
|
12
|
-
HttpStatus2[HttpStatus2["Accepted"] = 202] = "Accepted";
|
|
13
|
-
HttpStatus2[HttpStatus2["NonAuthoritativeInformation"] = 203] = "NonAuthoritativeInformation";
|
|
14
|
-
HttpStatus2[HttpStatus2["NoContent"] = 204] = "NoContent";
|
|
15
|
-
HttpStatus2[HttpStatus2["ResetContent"] = 205] = "ResetContent";
|
|
16
|
-
HttpStatus2[HttpStatus2["PartialContent"] = 206] = "PartialContent";
|
|
17
|
-
HttpStatus2[HttpStatus2["MultiStatus"] = 207] = "MultiStatus";
|
|
18
|
-
HttpStatus2[HttpStatus2["AlreadyReported"] = 208] = "AlreadyReported";
|
|
19
|
-
HttpStatus2[HttpStatus2["ImUsed"] = 226] = "ImUsed";
|
|
20
|
-
HttpStatus2[HttpStatus2["MultipleChoices"] = 300] = "MultipleChoices";
|
|
21
|
-
HttpStatus2[HttpStatus2["MovedPermanently"] = 301] = "MovedPermanently";
|
|
22
|
-
HttpStatus2[HttpStatus2["Found"] = 302] = "Found";
|
|
23
|
-
HttpStatus2[HttpStatus2["SeeOther"] = 303] = "SeeOther";
|
|
24
|
-
HttpStatus2[HttpStatus2["NotModified"] = 304] = "NotModified";
|
|
25
|
-
HttpStatus2[HttpStatus2["UseProxy"] = 305] = "UseProxy";
|
|
26
|
-
HttpStatus2[HttpStatus2["TemporaryRedirect"] = 307] = "TemporaryRedirect";
|
|
27
|
-
HttpStatus2[HttpStatus2["PermanentRedirect"] = 308] = "PermanentRedirect";
|
|
28
|
-
HttpStatus2[HttpStatus2["BadRequest"] = 400] = "BadRequest";
|
|
29
|
-
HttpStatus2[HttpStatus2["Unauthorized"] = 401] = "Unauthorized";
|
|
30
|
-
HttpStatus2[HttpStatus2["PaymentRequired"] = 402] = "PaymentRequired";
|
|
31
|
-
HttpStatus2[HttpStatus2["Forbidden"] = 403] = "Forbidden";
|
|
32
|
-
HttpStatus2[HttpStatus2["NotFound"] = 404] = "NotFound";
|
|
33
|
-
HttpStatus2[HttpStatus2["MethodNotAllowed"] = 405] = "MethodNotAllowed";
|
|
34
|
-
HttpStatus2[HttpStatus2["NotAcceptable"] = 406] = "NotAcceptable";
|
|
35
|
-
HttpStatus2[HttpStatus2["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
|
|
36
|
-
HttpStatus2[HttpStatus2["RequestTimeout"] = 408] = "RequestTimeout";
|
|
37
|
-
HttpStatus2[HttpStatus2["Conflict"] = 409] = "Conflict";
|
|
38
|
-
HttpStatus2[HttpStatus2["Gone"] = 410] = "Gone";
|
|
39
|
-
HttpStatus2[HttpStatus2["LengthRequired"] = 411] = "LengthRequired";
|
|
40
|
-
HttpStatus2[HttpStatus2["PreconditionFailed"] = 412] = "PreconditionFailed";
|
|
41
|
-
HttpStatus2[HttpStatus2["PayloadTooLarge"] = 413] = "PayloadTooLarge";
|
|
42
|
-
HttpStatus2[HttpStatus2["UriTooLong"] = 414] = "UriTooLong";
|
|
43
|
-
HttpStatus2[HttpStatus2["UnsupportedMediaType"] = 415] = "UnsupportedMediaType";
|
|
44
|
-
HttpStatus2[HttpStatus2["RangeNotSatisfiable"] = 416] = "RangeNotSatisfiable";
|
|
45
|
-
HttpStatus2[HttpStatus2["ExpectationFailed"] = 417] = "ExpectationFailed";
|
|
46
|
-
HttpStatus2[HttpStatus2["MisdirectedRequest"] = 421] = "MisdirectedRequest";
|
|
47
|
-
HttpStatus2[HttpStatus2["UnprocessableEntity"] = 422] = "UnprocessableEntity";
|
|
48
|
-
HttpStatus2[HttpStatus2["Locked"] = 423] = "Locked";
|
|
49
|
-
HttpStatus2[HttpStatus2["FailedDependency"] = 424] = "FailedDependency";
|
|
50
|
-
HttpStatus2[HttpStatus2["TooEarly"] = 425] = "TooEarly";
|
|
51
|
-
HttpStatus2[HttpStatus2["UpgradeRequired"] = 426] = "UpgradeRequired";
|
|
52
|
-
HttpStatus2[HttpStatus2["PreconditionRequired"] = 428] = "PreconditionRequired";
|
|
53
|
-
HttpStatus2[HttpStatus2["TooManyRequests"] = 429] = "TooManyRequests";
|
|
54
|
-
HttpStatus2[HttpStatus2["RequestHeaderFieldsTooLarge"] = 431] = "RequestHeaderFieldsTooLarge";
|
|
55
|
-
HttpStatus2[HttpStatus2["UnavailableForLegalReasons"] = 451] = "UnavailableForLegalReasons";
|
|
56
|
-
HttpStatus2[HttpStatus2["InternalServerError"] = 500] = "InternalServerError";
|
|
57
|
-
HttpStatus2[HttpStatus2["NotImplemented"] = 501] = "NotImplemented";
|
|
58
|
-
HttpStatus2[HttpStatus2["BadGateway"] = 502] = "BadGateway";
|
|
59
|
-
HttpStatus2[HttpStatus2["ServiceUnavailable"] = 503] = "ServiceUnavailable";
|
|
60
|
-
HttpStatus2[HttpStatus2["GatewayTimeout"] = 504] = "GatewayTimeout";
|
|
61
|
-
HttpStatus2[HttpStatus2["HttpVersionNotSupported"] = 505] = "HttpVersionNotSupported";
|
|
62
|
-
HttpStatus2[HttpStatus2["VariantAlsoNegotiates"] = 506] = "VariantAlsoNegotiates";
|
|
63
|
-
HttpStatus2[HttpStatus2["InsufficientStorage"] = 507] = "InsufficientStorage";
|
|
64
|
-
HttpStatus2[HttpStatus2["LoopDetected"] = 508] = "LoopDetected";
|
|
65
|
-
HttpStatus2[HttpStatus2["NotExtended"] = 510] = "NotExtended";
|
|
66
|
-
HttpStatus2[HttpStatus2["NetworkAuthenticationRequired"] = 511] = "NetworkAuthenticationRequired";
|
|
67
|
-
return HttpStatus2;
|
|
68
|
-
})(HttpStatus || {});
|
|
69
|
-
|
|
70
|
-
exports.HttpStatus = HttpStatus;
|
package/dist/index18.cjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
var Revalidate = /* @__PURE__ */ ((Revalidate2) => {
|
|
6
|
-
Revalidate2[Revalidate2["OneHour"] = 3600] = "OneHour";
|
|
7
|
-
Revalidate2[Revalidate2["OneDay"] = 86400] = "OneDay";
|
|
8
|
-
Revalidate2[Revalidate2["OneWeek"] = 604800] = "OneWeek";
|
|
9
|
-
Revalidate2[Revalidate2["OneMonth"] = 2592e3] = "OneMonth";
|
|
10
|
-
Revalidate2[Revalidate2["OneYear"] = 31536e3] = "OneYear";
|
|
11
|
-
return Revalidate2;
|
|
12
|
-
})(Revalidate || {});
|
|
13
|
-
|
|
14
|
-
exports.Revalidate = Revalidate;
|
package/dist/index19.cjs
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
-
|
|
6
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
const navigation = require('next/navigation');
|
|
8
|
-
const react = require('react');
|
|
9
|
-
|
|
10
|
-
const NavigationHistoryContext = react.createContext(null);
|
|
11
|
-
function NavigationHistoryProvider({ children }) {
|
|
12
|
-
const pathname = navigation.usePathname();
|
|
13
|
-
const searchParams = navigation.useSearchParams();
|
|
14
|
-
const [history, setHistory] = react.useState([]);
|
|
15
|
-
react.useEffect(() => {
|
|
16
|
-
const fullPath = searchParams?.size ? `${pathname}?${searchParams.toString()}` : pathname;
|
|
17
|
-
if (fullPath) {
|
|
18
|
-
setHistory((prev) => {
|
|
19
|
-
if (prev.length > 0 && prev[prev.length - 1] === fullPath) {
|
|
20
|
-
return prev;
|
|
21
|
-
}
|
|
22
|
-
return [...prev, fullPath];
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
}, [pathname, searchParams]);
|
|
26
|
-
return /* @__PURE__ */ jsxRuntime.jsx(NavigationHistoryContext.Provider, { value: { history }, children });
|
|
27
|
-
}
|
|
28
|
-
const QP_BACK_URL_NAME = "backUrl";
|
|
29
|
-
function useNavigationHistory() {
|
|
30
|
-
const context = react.useContext(NavigationHistoryContext);
|
|
31
|
-
const router = navigation.useRouter();
|
|
32
|
-
if (!context) {
|
|
33
|
-
throw new Error("useNavigationHistory debe usarse dentro de un NavigationHistoryProvider");
|
|
34
|
-
}
|
|
35
|
-
const searchParams = navigation.useSearchParams();
|
|
36
|
-
const { history } = context;
|
|
37
|
-
const goBack = (fallback) => {
|
|
38
|
-
const returnUrl = searchParams.get(QP_BACK_URL_NAME);
|
|
39
|
-
if (returnUrl) {
|
|
40
|
-
router.push(returnUrl);
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
if (history.length <= 1) {
|
|
44
|
-
router.push(fallback ?? "/");
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
const previousRoute = history[history.length - 2];
|
|
48
|
-
const currentRoute = history[history.length - 1];
|
|
49
|
-
if (history.length >= 3 && history[history.length - 3] === currentRoute) {
|
|
50
|
-
router.push(fallback ?? "/");
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
router.push(previousRoute ?? "/");
|
|
54
|
-
};
|
|
55
|
-
return {
|
|
56
|
-
history,
|
|
57
|
-
goBack,
|
|
58
|
-
currentRoute: history.length > 0 ? history[history.length - 1] : null,
|
|
59
|
-
hasPreviousRoute: history.length > 1,
|
|
60
|
-
getPreviousRoute: () => history.length >= 2 ? history[history.length - 2] : null
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
exports.NavigationHistoryProvider = NavigationHistoryProvider;
|
|
65
|
-
exports.QP_BACK_URL_NAME = QP_BACK_URL_NAME;
|
|
66
|
-
exports.useNavigationHistory = useNavigationHistory;
|
package/dist/index2.cjs
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
-
|
|
5
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
const clsx = require('clsx');
|
|
7
|
-
const Icon = require('./index5.cjs');
|
|
8
|
-
|
|
9
|
-
const pxBySize = {
|
|
10
|
-
sm: 48,
|
|
11
|
-
md: 60,
|
|
12
|
-
lg: 84
|
|
13
|
-
};
|
|
14
|
-
const EmptyState = ({
|
|
15
|
-
label,
|
|
16
|
-
action,
|
|
17
|
-
icon,
|
|
18
|
-
className,
|
|
19
|
-
size = "md",
|
|
20
|
-
...props
|
|
21
|
-
}) => {
|
|
22
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
23
|
-
"div",
|
|
24
|
-
{
|
|
25
|
-
className: clsx("justfiy-center flex flex-col items-center gap-1", className),
|
|
26
|
-
...props,
|
|
27
|
-
children: [
|
|
28
|
-
icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
29
|
-
Icon.Icon,
|
|
30
|
-
{
|
|
31
|
-
i: icon,
|
|
32
|
-
size: pxBySize[size],
|
|
33
|
-
className: "text-gray-2"
|
|
34
|
-
}
|
|
35
|
-
),
|
|
36
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-gray-6 text-sm font-semibold", children: label }),
|
|
37
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { children: action })
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
exports.EmptyState = EmptyState;
|
package/dist/index20.cjs
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
-
|
|
6
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
const react = require('react');
|
|
8
|
-
|
|
9
|
-
const PageData = react.createContext(void 0);
|
|
10
|
-
const PageDataProvider = ({
|
|
11
|
-
value,
|
|
12
|
-
children
|
|
13
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(PageData.Provider, { value, children });
|
|
14
|
-
const usePageData = () => {
|
|
15
|
-
const data = react.useContext(PageData);
|
|
16
|
-
if (data === void 0) throw new Error("Out of context: usePageData");
|
|
17
|
-
return data;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
exports.PageDataProvider = PageDataProvider;
|
|
21
|
-
exports.usePageData = usePageData;
|