lkd-web-kit 0.0.18 → 0.1.0
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 +106 -1
- package/dist/lkd-web-kit.css +1 -0
- package/dist/src/components/EmptyState/index.cjs +2 -0
- package/dist/src/components/EmptyState/index.cjs.map +1 -0
- package/dist/{components → src/components}/EmptyState/index.mjs +13 -13
- package/dist/src/components/EmptyState/index.mjs.map +1 -0
- package/dist/src/components/Icon.cjs.map +1 -0
- package/dist/src/components/Icon.mjs.map +1 -0
- package/dist/src/components/InfinityLoader/index.cjs.map +1 -0
- package/dist/src/components/InfinityLoader/index.mjs.map +1 -0
- package/dist/src/components/MyDatePickerInput/CalendarIcon.cjs +2 -0
- package/dist/src/components/MyDatePickerInput/CalendarIcon.cjs.map +1 -0
- package/dist/src/components/MyDatePickerInput/CalendarIcon.mjs +62 -0
- package/dist/src/components/MyDatePickerInput/CalendarIcon.mjs.map +1 -0
- package/dist/src/components/MyDatePickerInput/index.cjs +2 -0
- package/dist/src/components/MyDatePickerInput/index.cjs.map +1 -0
- package/dist/src/components/MyDatePickerInput/index.mjs +15 -0
- package/dist/src/components/MyDatePickerInput/index.mjs.map +1 -0
- package/dist/src/components/MyDateTimePicker/index.cjs +2 -0
- package/dist/src/components/MyDateTimePicker/index.cjs.map +1 -0
- package/dist/src/components/MyDateTimePicker/index.mjs +15 -0
- package/dist/src/components/MyDateTimePicker/index.mjs.map +1 -0
- package/dist/src/components/MyNotifications/index.cjs +2 -0
- package/dist/src/components/MyNotifications/index.cjs.map +1 -0
- package/dist/src/components/MyNotifications/index.mjs +14 -0
- package/dist/src/components/MyNotifications/index.mjs.map +1 -0
- package/dist/src/components/MyNumberInput/index.cjs +2 -0
- package/dist/src/components/MyNumberInput/index.cjs.map +1 -0
- package/dist/src/components/MyNumberInput/index.mjs +13 -0
- package/dist/src/components/MyNumberInput/index.mjs.map +1 -0
- package/dist/src/components/MySelect/index.cjs +2 -0
- package/dist/src/components/MySelect/index.cjs.map +1 -0
- package/dist/src/components/MySelect/index.mjs +13 -0
- package/dist/src/components/MySelect/index.mjs.map +1 -0
- package/dist/src/components/MyTextInput/index.cjs +2 -0
- package/dist/src/components/MyTextInput/index.cjs.map +1 -0
- package/dist/src/components/MyTextInput/index.mjs +13 -0
- package/dist/src/components/MyTextInput/index.mjs.map +1 -0
- package/dist/src/components/MyTextarea/index.cjs +2 -0
- package/dist/src/components/MyTextarea/index.cjs.map +1 -0
- package/dist/src/components/MyTextarea/index.mjs +13 -0
- package/dist/src/components/MyTextarea/index.mjs.map +1 -0
- package/dist/src/components/MyTimeInput/index.cjs +2 -0
- package/dist/src/components/MyTimeInput/index.cjs.map +1 -0
- package/dist/src/components/MyTimeInput/index.mjs +13 -0
- package/dist/src/components/MyTimeInput/index.mjs.map +1 -0
- package/dist/src/components/NavItems.cjs.map +1 -0
- package/dist/src/components/NavItems.mjs.map +1 -0
- package/dist/src/components/SelectInfinity/index.cjs.map +1 -0
- package/dist/src/components/SelectInfinity/index.mjs.map +1 -0
- package/dist/src/consts/http-status.cjs.map +1 -0
- package/dist/src/consts/http-status.mjs.map +1 -0
- package/dist/src/consts/revalidate.cjs.map +1 -0
- package/dist/src/consts/revalidate.mjs.map +1 -0
- package/dist/src/contexts/NavigationHistoryContext/index.cjs.map +1 -0
- package/dist/{contexts → src/contexts}/NavigationHistoryContext/index.mjs +4 -4
- package/dist/src/contexts/NavigationHistoryContext/index.mjs.map +1 -0
- package/dist/src/contexts/PageDataContext/index.cjs.map +1 -0
- package/dist/src/contexts/PageDataContext/index.mjs.map +1 -0
- package/dist/src/form/Form.cjs.map +1 -0
- package/dist/src/form/Form.mjs.map +1 -0
- package/dist/src/form/FormButtonSubmit.cjs.map +1 -0
- package/dist/src/form/FormButtonSubmit.mjs.map +1 -0
- package/dist/src/form/base/FormCheckbox.cjs +2 -0
- package/dist/src/form/base/FormCheckbox.cjs.map +1 -0
- package/dist/src/form/base/FormCheckbox.mjs +15 -0
- package/dist/src/form/base/FormCheckbox.mjs.map +1 -0
- package/dist/src/form/base/FormDatePickerInput.cjs +2 -0
- package/dist/src/form/base/FormDatePickerInput.cjs.map +1 -0
- package/dist/src/form/base/FormDatePickerInput.mjs +14 -0
- package/dist/src/form/base/FormDatePickerInput.mjs.map +1 -0
- package/dist/src/form/base/FormDateTimePicker.cjs +2 -0
- package/dist/src/form/base/FormDateTimePicker.cjs.map +1 -0
- package/dist/src/form/base/FormDateTimePicker.mjs +14 -0
- package/dist/src/form/base/FormDateTimePicker.mjs.map +1 -0
- package/dist/src/form/base/FormNumberInput.cjs +2 -0
- package/dist/src/form/base/FormNumberInput.cjs.map +1 -0
- package/dist/src/form/base/FormNumberInput.mjs +14 -0
- package/dist/src/form/base/FormNumberInput.mjs.map +1 -0
- package/dist/src/form/base/FormRadioGroup.cjs +2 -0
- package/dist/src/form/base/FormRadioGroup.cjs.map +1 -0
- package/dist/src/form/base/FormRadioGroup.mjs +14 -0
- package/dist/src/form/base/FormRadioGroup.mjs.map +1 -0
- package/dist/src/form/base/FormSelect.cjs +2 -0
- package/dist/src/form/base/FormSelect.cjs.map +1 -0
- package/dist/src/form/base/FormSelect.mjs +14 -0
- package/dist/src/form/base/FormSelect.mjs.map +1 -0
- package/dist/src/form/base/FormSelectInfinity.cjs +2 -0
- package/dist/src/form/base/FormSelectInfinity.cjs.map +1 -0
- package/dist/src/form/base/FormSelectInfinity.mjs +14 -0
- package/dist/src/form/base/FormSelectInfinity.mjs.map +1 -0
- package/dist/src/form/base/FormTextArea.cjs +2 -0
- package/dist/src/form/base/FormTextArea.cjs.map +1 -0
- package/dist/src/form/base/FormTextArea.mjs +14 -0
- package/dist/src/form/base/FormTextArea.mjs.map +1 -0
- package/dist/src/form/base/FormTextInput.cjs +2 -0
- package/dist/src/form/base/FormTextInput.cjs.map +1 -0
- package/dist/src/form/base/FormTextInput.mjs +14 -0
- package/dist/src/form/base/FormTextInput.mjs.map +1 -0
- package/dist/src/form/base/FormTimeInput.cjs +2 -0
- package/dist/src/form/base/FormTimeInput.cjs.map +1 -0
- package/dist/src/form/base/FormTimeInput.mjs +22 -0
- package/dist/src/form/base/FormTimeInput.mjs.map +1 -0
- package/dist/src/form/utils/nullableInput.cjs.map +1 -0
- package/dist/src/form/utils/nullableInput.mjs.map +1 -0
- package/dist/src/form/utils/zodValidator.cjs.map +1 -0
- package/dist/src/form/utils/zodValidator.mjs.map +1 -0
- package/dist/src/hocs/withForm.cjs +2 -0
- package/dist/src/hocs/withForm.cjs.map +1 -0
- package/dist/{hocs → src/hocs}/withForm.mjs +12 -14
- package/dist/src/hocs/withForm.mjs.map +1 -0
- package/dist/src/hocs/withModalManager.cjs.map +1 -0
- package/dist/src/hocs/withModalManager.mjs.map +1 -0
- package/dist/src/hooks/useBreakpoint.cjs +2 -0
- package/dist/src/hooks/useBreakpoint.cjs.map +1 -0
- package/dist/src/hooks/useBreakpoint.mjs +9 -0
- package/dist/src/hooks/useBreakpoint.mjs.map +1 -0
- package/dist/src/hooks/useFetchNextPageOnScroll.cjs.map +1 -0
- package/dist/src/hooks/useFetchNextPageOnScroll.mjs.map +1 -0
- package/dist/src/hooks/useOnScrollProgress.cjs.map +1 -0
- package/dist/src/hooks/useOnScrollProgress.mjs.map +1 -0
- package/dist/src/hooks/useUpdateSearchParams.cjs +2 -0
- package/dist/src/hooks/useUpdateSearchParams.cjs.map +1 -0
- package/dist/src/hooks/useUpdateSearchParams.mjs +19 -0
- package/dist/src/hooks/useUpdateSearchParams.mjs.map +1 -0
- package/dist/src/index.cjs +2 -0
- package/dist/src/index.mjs +103 -0
- package/dist/src/index.mjs.map +1 -0
- package/dist/{mantine/breakpointsWithPx.cjs → src/mantine/breakpoints-with-px.cjs} +1 -1
- package/dist/src/mantine/breakpoints-with-px.cjs.map +1 -0
- package/dist/{mantine/breakpointsWithPx.mjs → src/mantine/breakpoints-with-px.mjs} +1 -1
- package/dist/src/mantine/breakpoints-with-px.mjs.map +1 -0
- package/dist/src/mantine/my-default-theme.cjs +2 -0
- package/dist/src/mantine/my-default-theme.cjs.map +1 -0
- package/dist/src/mantine/my-default-theme.mjs +38 -0
- package/dist/src/mantine/my-default-theme.mjs.map +1 -0
- package/dist/{mantine/toTailwindColors.cjs → src/mantine/to-tailwind-colors.cjs} +1 -1
- package/dist/src/mantine/to-tailwind-colors.cjs.map +1 -0
- package/dist/{mantine/toTailwindColors.mjs → src/mantine/to-tailwind-colors.mjs} +1 -1
- package/dist/src/mantine/to-tailwind-colors.mjs.map +1 -0
- package/dist/src/utils/array/groupBy.cjs.map +1 -0
- package/dist/src/utils/array/groupBy.mjs.map +1 -0
- package/dist/src/utils/array/shuffleArray.cjs.map +1 -0
- package/dist/src/utils/array/shuffleArray.mjs.map +1 -0
- package/dist/src/utils/formatBytes.cjs.map +1 -0
- package/dist/src/utils/formatBytes.mjs.map +1 -0
- package/dist/src/utils/isInfinityEmpty.cjs.map +1 -0
- package/dist/src/utils/isInfinityEmpty.mjs.map +1 -0
- package/dist/src/utils/ky/addBodyJsonHook.cjs.map +1 -0
- package/dist/src/utils/ky/addBodyJsonHook.mjs.map +1 -0
- package/dist/src/utils/ky/parseJson.cjs.map +1 -0
- package/dist/src/utils/ky/parseJson.mjs.map +1 -0
- package/dist/src/utils/newHref.cjs.map +1 -0
- package/dist/src/utils/newHref.mjs.map +1 -0
- package/package.json +10 -5
- package/dist/components/EmptyState/index.cjs +0 -2
- package/dist/components/EmptyState/index.cjs.map +0 -1
- package/dist/components/EmptyState/index.mjs.map +0 -1
- package/dist/components/Icon.cjs.map +0 -1
- package/dist/components/Icon.mjs.map +0 -1
- package/dist/components/InfinityLoader/index.cjs.map +0 -1
- package/dist/components/InfinityLoader/index.mjs.map +0 -1
- package/dist/components/NavItems.cjs.map +0 -1
- package/dist/components/NavItems.mjs.map +0 -1
- package/dist/components/SelectInfinity/index.cjs.map +0 -1
- package/dist/components/SelectInfinity/index.mjs.map +0 -1
- package/dist/consts/http-status.cjs.map +0 -1
- package/dist/consts/http-status.mjs.map +0 -1
- package/dist/consts/revalidate.cjs.map +0 -1
- package/dist/consts/revalidate.mjs.map +0 -1
- package/dist/contexts/NavigationHistoryContext/index.cjs.map +0 -1
- package/dist/contexts/NavigationHistoryContext/index.mjs.map +0 -1
- package/dist/contexts/PageDataContext/index.cjs.map +0 -1
- package/dist/contexts/PageDataContext/index.mjs.map +0 -1
- package/dist/form/Form.cjs.map +0 -1
- package/dist/form/Form.mjs.map +0 -1
- package/dist/form/FormButtonSubmit.cjs.map +0 -1
- package/dist/form/FormButtonSubmit.mjs.map +0 -1
- package/dist/form/utils/nullableInput.cjs.map +0 -1
- package/dist/form/utils/nullableInput.mjs.map +0 -1
- package/dist/form/utils/zodValidator.cjs.map +0 -1
- package/dist/form/utils/zodValidator.mjs.map +0 -1
- package/dist/hocs/withForm.cjs +0 -2
- package/dist/hocs/withForm.cjs.map +0 -1
- package/dist/hocs/withForm.mjs.map +0 -1
- package/dist/hocs/withModalManager.cjs.map +0 -1
- package/dist/hocs/withModalManager.mjs.map +0 -1
- package/dist/hooks/useFetchNextPageOnScroll.cjs.map +0 -1
- package/dist/hooks/useFetchNextPageOnScroll.mjs.map +0 -1
- package/dist/hooks/useOnScrollProgress.cjs.map +0 -1
- package/dist/hooks/useOnScrollProgress.mjs.map +0 -1
- package/dist/index.cjs +0 -2
- package/dist/index.mjs +0 -61
- package/dist/index.mjs.map +0 -1
- package/dist/mantine/breakpointsWithPx.cjs.map +0 -1
- package/dist/mantine/breakpointsWithPx.mjs.map +0 -1
- package/dist/mantine/toTailwindColors.cjs.map +0 -1
- package/dist/mantine/toTailwindColors.mjs.map +0 -1
- package/dist/utils/array/groupBy.cjs.map +0 -1
- package/dist/utils/array/groupBy.mjs.map +0 -1
- package/dist/utils/array/shuffleArray.cjs.map +0 -1
- package/dist/utils/array/shuffleArray.mjs.map +0 -1
- package/dist/utils/formatBytes.cjs.map +0 -1
- package/dist/utils/formatBytes.mjs.map +0 -1
- package/dist/utils/isInfinityEmpty.cjs.map +0 -1
- package/dist/utils/isInfinityEmpty.mjs.map +0 -1
- package/dist/utils/ky/addBodyJsonHook.cjs.map +0 -1
- package/dist/utils/ky/addBodyJsonHook.mjs.map +0 -1
- package/dist/utils/ky/parseJson.cjs.map +0 -1
- package/dist/utils/ky/parseJson.mjs.map +0 -1
- package/dist/utils/newHref.cjs.map +0 -1
- package/dist/utils/newHref.mjs.map +0 -1
- /package/dist/{components → src/components}/Icon.cjs +0 -0
- /package/dist/{components → src/components}/Icon.mjs +0 -0
- /package/dist/{components → src/components}/InfinityLoader/index.cjs +0 -0
- /package/dist/{components → src/components}/InfinityLoader/index.mjs +0 -0
- /package/dist/{components → src/components}/NavItems.cjs +0 -0
- /package/dist/{components → src/components}/NavItems.mjs +0 -0
- /package/dist/{components → src/components}/SelectInfinity/index.cjs +0 -0
- /package/dist/{components → src/components}/SelectInfinity/index.mjs +0 -0
- /package/dist/{consts → src/consts}/http-status.cjs +0 -0
- /package/dist/{consts → src/consts}/http-status.mjs +0 -0
- /package/dist/{consts → src/consts}/revalidate.cjs +0 -0
- /package/dist/{consts → src/consts}/revalidate.mjs +0 -0
- /package/dist/{contexts → src/contexts}/NavigationHistoryContext/index.cjs +0 -0
- /package/dist/{contexts → src/contexts}/PageDataContext/index.cjs +0 -0
- /package/dist/{contexts → src/contexts}/PageDataContext/index.mjs +0 -0
- /package/dist/{form → src/form}/Form.cjs +0 -0
- /package/dist/{form → src/form}/Form.mjs +0 -0
- /package/dist/{form → src/form}/FormButtonSubmit.cjs +0 -0
- /package/dist/{form → src/form}/FormButtonSubmit.mjs +0 -0
- /package/dist/{form → src/form}/utils/nullableInput.cjs +0 -0
- /package/dist/{form → src/form}/utils/nullableInput.mjs +0 -0
- /package/dist/{form → src/form}/utils/zodValidator.cjs +0 -0
- /package/dist/{form → src/form}/utils/zodValidator.mjs +0 -0
- /package/dist/{hocs → src/hocs}/withModalManager.cjs +0 -0
- /package/dist/{hocs → src/hocs}/withModalManager.mjs +0 -0
- /package/dist/{hooks → src/hooks}/useFetchNextPageOnScroll.cjs +0 -0
- /package/dist/{hooks → src/hooks}/useFetchNextPageOnScroll.mjs +0 -0
- /package/dist/{hooks → src/hooks}/useOnScrollProgress.cjs +0 -0
- /package/dist/{hooks → src/hooks}/useOnScrollProgress.mjs +0 -0
- /package/dist/{index.cjs.map → src/index.cjs.map} +0 -0
- /package/dist/{utils → src/utils}/array/groupBy.cjs +0 -0
- /package/dist/{utils → src/utils}/array/groupBy.mjs +0 -0
- /package/dist/{utils → src/utils}/array/shuffleArray.cjs +0 -0
- /package/dist/{utils → src/utils}/array/shuffleArray.mjs +0 -0
- /package/dist/{utils → src/utils}/formatBytes.cjs +0 -0
- /package/dist/{utils → src/utils}/formatBytes.mjs +0 -0
- /package/dist/{utils → src/utils}/isInfinityEmpty.cjs +0 -0
- /package/dist/{utils → src/utils}/isInfinityEmpty.mjs +0 -0
- /package/dist/{utils → src/utils}/ky/addBodyJsonHook.cjs +0 -0
- /package/dist/{utils → src/utils}/ky/addBodyJsonHook.mjs +0 -0
- /package/dist/{utils → src/utils}/ky/parseJson.cjs +0 -0
- /package/dist/{utils → src/utils}/ky/parseJson.mjs +0 -0
- /package/dist/{utils → src/utils}/newHref.cjs +0 -0
- /package/dist/{utils → src/utils}/newHref.mjs +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -2,10 +2,13 @@ import { BeforeErrorHook } from 'ky';
|
|
|
2
2
|
import { BoxProps } from '@mantine/core';
|
|
3
3
|
import { ButtonProps } from '@mantine/core';
|
|
4
4
|
import { CenterProps } from '@mantine/core';
|
|
5
|
+
import { CheckboxProps } from '@mantine/core';
|
|
5
6
|
import { ComboboxItem } from '@mantine/core';
|
|
6
7
|
import { ComponentProps } from 'react';
|
|
7
8
|
import { ComponentPropsWithoutRef } from 'react';
|
|
8
9
|
import { ControllerProps } from 'react-hook-form';
|
|
10
|
+
import { DatePickerInputProps } from '@mantine/dates';
|
|
11
|
+
import { DateTimePickerProps } from '@mantine/dates';
|
|
9
12
|
import { default as default_2 } from 'react';
|
|
10
13
|
import { DefaultMantineColor } from '@mantine/core';
|
|
11
14
|
import { Dispatch } from 'react';
|
|
@@ -21,13 +24,22 @@ import { KyResponse } from 'ky';
|
|
|
21
24
|
import { LoaderProps } from '@mantine/core';
|
|
22
25
|
import { MantineColorShade } from '@mantine/core';
|
|
23
26
|
import { MantineThemeColors } from '@mantine/core';
|
|
27
|
+
import { MantineThemeOverride } from '@mantine/core';
|
|
24
28
|
import { ModalProps } from '@mantine/core';
|
|
25
29
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
30
|
+
import { NotificationsProps } from '@mantine/notifications';
|
|
31
|
+
import { NumberInputProps } from '@mantine/core';
|
|
32
|
+
import { RadioGroupProps } from '@mantine/core';
|
|
26
33
|
import { ReactNode } from 'react';
|
|
34
|
+
import { ReadonlyURLSearchParams } from 'next/navigation';
|
|
27
35
|
import { RefObject } from 'react';
|
|
36
|
+
import { SelectProps } from '@mantine/core';
|
|
28
37
|
import { SetStateAction } from 'react';
|
|
29
38
|
import { SubmitErrorHandler } from 'react-hook-form';
|
|
30
39
|
import { SubmitHandler } from 'react-hook-form';
|
|
40
|
+
import { TextareaProps } from '@mantine/core';
|
|
41
|
+
import { TextInputProps } from '@mantine/core';
|
|
42
|
+
import { TimeInputProps } from '@mantine/dates';
|
|
31
43
|
import { UseFormReturn } from 'react-hook-form';
|
|
32
44
|
import { z } from 'zod';
|
|
33
45
|
import { ZodTypeAny } from 'zod';
|
|
@@ -65,7 +77,7 @@ export declare type DeepPartial<T> = {
|
|
|
65
77
|
export declare interface EmptyProps extends ComponentProps<'div'> {
|
|
66
78
|
label: ReactNode;
|
|
67
79
|
action?: ReactNode;
|
|
68
|
-
icon
|
|
80
|
+
icon?: IconFC;
|
|
69
81
|
size?: keyof typeof pxBySize;
|
|
70
82
|
}
|
|
71
83
|
|
|
@@ -80,6 +92,18 @@ export declare const FormButtonSubmit: (props: FormButtonSubmitProps) => JSX.Ele
|
|
|
80
92
|
export declare interface FormButtonSubmitProps extends ButtonProps, ElementProps<'button', keyof ButtonProps> {
|
|
81
93
|
}
|
|
82
94
|
|
|
95
|
+
export declare const FormCheckbox: FC<CheckboxProps & WithFormProps>;
|
|
96
|
+
|
|
97
|
+
export declare type FormCheckboxProps = CheckboxProps & WithFormProps;
|
|
98
|
+
|
|
99
|
+
export declare type FormDatePickerInput = WithFormProps & MyDatePickerInputProps;
|
|
100
|
+
|
|
101
|
+
export declare const FormDatePickerInput: FC<MyDatePickerInputProps & WithFormProps>;
|
|
102
|
+
|
|
103
|
+
export declare const FormDateTimePicker: FC<DateTimePickerProps & WithFormProps>;
|
|
104
|
+
|
|
105
|
+
export declare type FormDateTimePickerProps = WithFormProps & MyDateTimePickerProps;
|
|
106
|
+
|
|
83
107
|
export declare type FormFieldProps<T = unknown> = Parameters<ControllerProps['render']>[0] & {
|
|
84
108
|
props: T;
|
|
85
109
|
field: {
|
|
@@ -90,12 +114,40 @@ export declare type FormFieldProps<T = unknown> = Parameters<ControllerProps['re
|
|
|
90
114
|
};
|
|
91
115
|
};
|
|
92
116
|
|
|
117
|
+
export declare const FormNumberInput: FC<MyNumberInputProps & WithFormProps>;
|
|
118
|
+
|
|
119
|
+
export declare type FormNumberInputProps = MyNumberInputProps & WithFormProps;
|
|
120
|
+
|
|
93
121
|
declare interface FormProps<T extends FieldValues> extends BoxProps, ElementProps<'form', 'onSubmit'> {
|
|
94
122
|
methods: UseFormReturn<T, any, any>;
|
|
95
123
|
onSubmit?: SubmitHandler<T>;
|
|
96
124
|
onSubmitError?: SubmitErrorHandler<any>;
|
|
97
125
|
}
|
|
98
126
|
|
|
127
|
+
export declare const FormRadioGroup: FC<RadioGroupProps & WithFormProps>;
|
|
128
|
+
|
|
129
|
+
export declare type FormRadioGroupProps = RadioGroupProps & WithFormProps;
|
|
130
|
+
|
|
131
|
+
export declare const FormSelect: FC<MySelectProps & WithFormProps>;
|
|
132
|
+
|
|
133
|
+
export declare const FormSelectInfinity: FC<SelectInfinityProps & WithFormProps>;
|
|
134
|
+
|
|
135
|
+
export declare type FormSelectInfinityProps = SelectInfinityProps & WithFormProps;
|
|
136
|
+
|
|
137
|
+
export declare type FormSelectProps = MySelectProps & WithFormProps;
|
|
138
|
+
|
|
139
|
+
export declare type FormTextarea = MyTextareaProps & WithFormProps;
|
|
140
|
+
|
|
141
|
+
export declare const FormTextarea: FC<TextareaProps & WithFormProps>;
|
|
142
|
+
|
|
143
|
+
export declare const FormTextInput: FC<WithFormProps & MyTextInputProps>;
|
|
144
|
+
|
|
145
|
+
export declare type FormTextInputProps = WithFormProps & MyTextInputProps;
|
|
146
|
+
|
|
147
|
+
export declare type FormTimeInput = MyTimeInputProps & WithFormProps;
|
|
148
|
+
|
|
149
|
+
export declare const FormTimeInput: FC<TimeInputProps & WithFormProps>;
|
|
150
|
+
|
|
99
151
|
export declare const groupBy: <T extends any>(arr: T[], getKey: (item: T) => string | string[] | null) => Record<string, T[] | undefined>;
|
|
100
152
|
|
|
101
153
|
export declare type GroupByResult<T> = Record<string, T[] | undefined>;
|
|
@@ -211,6 +263,48 @@ export declare interface LayoutProps {
|
|
|
211
263
|
params: Promise<PageParams>;
|
|
212
264
|
}
|
|
213
265
|
|
|
266
|
+
export declare const MyDatePickerInput: (props: MyDatePickerInputProps) => JSX.Element;
|
|
267
|
+
|
|
268
|
+
export declare interface MyDatePickerInputProps extends DatePickerInputProps<any> {
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export declare const MyDateTimePicker: (props: MyDateTimePickerProps) => JSX.Element;
|
|
272
|
+
|
|
273
|
+
export declare interface MyDateTimePickerProps extends DateTimePickerProps {
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export declare const myDefaultTheme: MantineThemeOverride;
|
|
277
|
+
|
|
278
|
+
export declare interface MyNotificationPrpos extends NotificationsProps {
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export declare const MyNotifications: (props: MyNotificationPrpos) => JSX.Element;
|
|
282
|
+
|
|
283
|
+
export declare const MyNumberInput: (props: MyNumberInputProps) => JSX.Element;
|
|
284
|
+
|
|
285
|
+
export declare interface MyNumberInputProps extends NumberInputProps {
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export declare const MySelect: (props: MySelectProps) => JSX.Element;
|
|
289
|
+
|
|
290
|
+
export declare interface MySelectProps extends SelectProps {
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export declare const MyTextarea: (props: MyTextareaProps) => JSX.Element;
|
|
294
|
+
|
|
295
|
+
export declare interface MyTextareaProps extends TextareaProps {
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export declare const MyTextInput: (props: MyTextInputProps) => JSX.Element;
|
|
299
|
+
|
|
300
|
+
export declare interface MyTextInputProps extends TextInputProps {
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export declare const MyTimeInput: (props: MyTimeInputProps) => JSX.Element;
|
|
304
|
+
|
|
305
|
+
export declare interface MyTimeInputProps extends TimeInputProps {
|
|
306
|
+
}
|
|
307
|
+
|
|
214
308
|
declare interface NavigationHistoryHook {
|
|
215
309
|
history: string[];
|
|
216
310
|
goBack: (fallback?: string) => void;
|
|
@@ -249,6 +343,8 @@ export declare const newHref: <T extends TParams, S extends TSearchParams = TSea
|
|
|
249
343
|
|
|
250
344
|
export declare const nullableInput: <T extends ZodTypeAny>(schema: T, message?: string) => z.ZodEffects<z.ZodNullable<T>, (T["_output"] & undefined) | (T["_output"] & {}), T["_input"] | null>;
|
|
251
345
|
|
|
346
|
+
export declare const numberToTimeInput: (number: number) => string;
|
|
347
|
+
|
|
252
348
|
export declare const PageDataProvider: ({ value, children }: PageDataProviderProps) => JSX.Element;
|
|
253
349
|
|
|
254
350
|
declare interface PageDataProviderProps {
|
|
@@ -334,6 +430,8 @@ declare const stylesBySize: {
|
|
|
334
430
|
};
|
|
335
431
|
};
|
|
336
432
|
|
|
433
|
+
export declare const timeInputToNumber: (timeInput: string) => number;
|
|
434
|
+
|
|
337
435
|
export declare const toTailwindColors: (colors: MantineThemeColors) => Record<DefaultMantineColor, Record<MantineColorShade, string>>;
|
|
338
436
|
|
|
339
437
|
export declare type TParams = Record<string, any> | unknown;
|
|
@@ -342,6 +440,8 @@ export declare type TSearchParams = {
|
|
|
342
440
|
[x: string]: any;
|
|
343
441
|
};
|
|
344
442
|
|
|
443
|
+
export declare const useBreakpoint: (breakpoint: keyof typeof breakpointsWithPx) => boolean;
|
|
444
|
+
|
|
345
445
|
export declare const useFetchNextPageOnScroll: (infinity: InfiniteQueryHookResult<InfiniteData<{
|
|
346
446
|
data: unknown[];
|
|
347
447
|
}, number>, Error>, elementRef?: RefObject<HTMLElement | null>) => void;
|
|
@@ -356,6 +456,11 @@ export declare const useOnScrollProgress: (triggerPercentage: number, callback:
|
|
|
356
456
|
|
|
357
457
|
export declare const usePageData: <T>() => T;
|
|
358
458
|
|
|
459
|
+
export declare const useUpdateSearchParams: () => {
|
|
460
|
+
updateSearchParams: (newSearchparams: Record<string, string | number | null>) => void;
|
|
461
|
+
searchParams: ReadonlyURLSearchParams;
|
|
462
|
+
};
|
|
463
|
+
|
|
359
464
|
export declare const withForm: <P extends unknown>(WrappedComponent: React.ComponentType<FormFieldProps<P>>, getControllerProps?: (props: P) => Omit<Partial<ControllerProps>, "render">) => FC<P & WithFormProps>;
|
|
360
465
|
|
|
361
466
|
export declare interface WithFormProps {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.m_b37d9ac7{width:calc(100% - var(--mantine-spacing-md) * 2);position:fixed;z-index:var(--notifications-z-index);max-width:var(--notifications-container-width)}.m_b37d9ac7:where([data-position=top-center]){top:var(--mantine-spacing-md);left:50%;transform:translate(-50%)}.m_b37d9ac7:where([data-position=top-left]){top:var(--mantine-spacing-md);left:var(--mantine-spacing-md)}.m_b37d9ac7:where([data-position=top-right]){top:var(--mantine-spacing-md);right:var(--mantine-spacing-md)}.m_b37d9ac7:where([data-position=bottom-center]){bottom:var(--mantine-spacing-md);left:50%;transform:translate(-50%)}.m_b37d9ac7:where([data-position=bottom-left]){bottom:var(--mantine-spacing-md);left:var(--mantine-spacing-md)}.m_b37d9ac7:where([data-position=bottom-right]){bottom:var(--mantine-spacing-md);right:var(--mantine-spacing-md)}.m_5ed0edd0+.m_5ed0edd0{margin-top:var(--mantine-spacing-md)}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),i=require("clsx"),a=require("../Icon.cjs"),o=e=>e&&e.__esModule?e:{default:e},d=o(i),u={sm:48,md:60,lg:84},m=({label:e,action:c,icon:s,className:l,size:r="md",...n})=>t.jsxs("div",{className:d.default("justfiy-center flex flex-col items-center gap-1",l),...n,children:[s&&t.jsx(a.Icon,{i:s,size:u[r],className:"text-gray-2"}),t.jsx("p",{className:"text-gray-6 text-sm font-semibold",children:e}),t.jsx("div",{children:c})]});exports.EmptyState=m;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/EmptyState/index.tsx"],"sourcesContent":["import clsx from 'clsx';\r\nimport { ComponentProps, ReactNode } from 'react';\r\nimport { IconFC, Icon } from '../Icon';\r\n\r\nexport interface EmptyProps extends ComponentProps<'div'> {\r\n label: ReactNode;\r\n action?: ReactNode;\r\n icon?: IconFC;\r\n size?: keyof typeof pxBySize;\r\n}\r\n\r\nconst pxBySize = {\r\n sm: 48,\r\n md: 60,\r\n lg: 84,\r\n};\r\n\r\nexport const EmptyState = ({\r\n label,\r\n action,\r\n icon,\r\n className,\r\n size = 'md',\r\n ...props\r\n}: EmptyProps) => {\r\n return (\r\n <div\r\n className={clsx('justfiy-center flex flex-col items-center gap-1', className)}\r\n {...props}\r\n >\r\n {icon && (\r\n <Icon\r\n i={icon}\r\n size={pxBySize[size]}\r\n className=\"text-gray-2\"\r\n />\r\n )}\r\n <p className=\"text-gray-6 text-sm font-semibold\">{label}</p>\r\n <div>{action}</div>\r\n </div>\r\n );\r\n};\r\n"],"names":["pxBySize","EmptyState","label","action","icon","className","size","props","jsxs","clsx","jsx","Icon"],"mappings":"0MAWMA,EAAW,CACf,GAAI,GACJ,GAAI,GACJ,GAAI,EACN,EAEaC,EAAa,CAAC,CACzB,MAAAC,EACA,OAAAC,EACA,KAAAC,EACA,UAAAC,EACA,KAAAC,EAAO,KACP,GAAGC,CACL,IAEIC,EAAA,KAAC,MAAA,CACC,UAAWC,EAAAA,QAAK,kDAAmDJ,CAAS,EAC3E,GAAGE,EAEH,SAAA,CACCH,GAAAM,EAAA,IAACC,EAAA,KAAA,CACC,EAAGP,EACH,KAAMJ,EAASM,CAAI,EACnB,UAAU,aAAA,CACZ,EAEDI,EAAA,IAAA,IAAA,CAAE,UAAU,oCAAqC,SAAMR,EAAA,EACxDQ,EAAAA,IAAC,OAAK,SAAOP,CAAA,CAAA,CAAA,CAAA,CACf"}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import o from "clsx";
|
|
3
3
|
import { Icon as a } from "../Icon.mjs";
|
|
4
|
-
const
|
|
4
|
+
const x = {
|
|
5
5
|
sm: 48,
|
|
6
6
|
md: 60,
|
|
7
7
|
lg: 84
|
|
8
8
|
}, f = ({
|
|
9
|
-
label:
|
|
10
|
-
action:
|
|
11
|
-
icon:
|
|
9
|
+
label: s,
|
|
10
|
+
action: m,
|
|
11
|
+
icon: t,
|
|
12
12
|
className: r,
|
|
13
13
|
size: i = "md",
|
|
14
14
|
...c
|
|
15
|
-
}) => /* @__PURE__ */
|
|
15
|
+
}) => /* @__PURE__ */ l(
|
|
16
16
|
"div",
|
|
17
17
|
{
|
|
18
|
-
className:
|
|
18
|
+
className: o("justfiy-center flex flex-col items-center gap-1", r),
|
|
19
19
|
...c,
|
|
20
20
|
children: [
|
|
21
|
-
/* @__PURE__ */ e(
|
|
21
|
+
t && /* @__PURE__ */ e(
|
|
22
22
|
a,
|
|
23
23
|
{
|
|
24
|
-
i:
|
|
25
|
-
size:
|
|
24
|
+
i: t,
|
|
25
|
+
size: x[i],
|
|
26
26
|
className: "text-gray-2"
|
|
27
27
|
}
|
|
28
28
|
),
|
|
29
|
-
/* @__PURE__ */ e("p", { className: "text-gray-6 text-sm font-semibold", children:
|
|
30
|
-
/* @__PURE__ */ e("div", { children:
|
|
29
|
+
/* @__PURE__ */ e("p", { className: "text-gray-6 text-sm font-semibold", children: s }),
|
|
30
|
+
/* @__PURE__ */ e("div", { children: m })
|
|
31
31
|
]
|
|
32
32
|
}
|
|
33
33
|
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../src/components/EmptyState/index.tsx"],"sourcesContent":["import clsx from 'clsx';\r\nimport { ComponentProps, ReactNode } from 'react';\r\nimport { IconFC, Icon } from '../Icon';\r\n\r\nexport interface EmptyProps extends ComponentProps<'div'> {\r\n label: ReactNode;\r\n action?: ReactNode;\r\n icon?: IconFC;\r\n size?: keyof typeof pxBySize;\r\n}\r\n\r\nconst pxBySize = {\r\n sm: 48,\r\n md: 60,\r\n lg: 84,\r\n};\r\n\r\nexport const EmptyState = ({\r\n label,\r\n action,\r\n icon,\r\n className,\r\n size = 'md',\r\n ...props\r\n}: EmptyProps) => {\r\n return (\r\n <div\r\n className={clsx('justfiy-center flex flex-col items-center gap-1', className)}\r\n {...props}\r\n >\r\n {icon && (\r\n <Icon\r\n i={icon}\r\n size={pxBySize[size]}\r\n className=\"text-gray-2\"\r\n />\r\n )}\r\n <p className=\"text-gray-6 text-sm font-semibold\">{label}</p>\r\n <div>{action}</div>\r\n </div>\r\n );\r\n};\r\n"],"names":["pxBySize","EmptyState","label","action","icon","className","size","props","jsxs","clsx","jsx","Icon"],"mappings":";;;AAWA,MAAMA,IAAW;AAAA,EACf,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GAEaC,IAAa,CAAC;AAAA,EACzB,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,WAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,GAAGC;AACL,MAEI,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAK,mDAAmDJ,CAAS;AAAA,IAC3E,GAAGE;AAAA,IAEH,UAAA;AAAA,MACCH,KAAA,gBAAAM;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,GAAGP;AAAA,UACH,MAAMJ,EAASM,CAAI;AAAA,UACnB,WAAU;AAAA,QAAA;AAAA,MACZ;AAAA,MAED,gBAAAI,EAAA,KAAA,EAAE,WAAU,qCAAqC,UAAMR,GAAA;AAAA,MACxD,gBAAAQ,EAAC,SAAK,UAAOP,EAAA,CAAA;AAAA,IAAA;AAAA,EAAA;AACf;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.cjs","sources":["../../../src/components/Icon.tsx"],"sourcesContent":["'use client';\r\nimport clsx from 'clsx';\r\nimport React, { ComponentPropsWithoutRef } from 'react';\r\n\r\nexport type IconFC = React.FC<ComponentPropsWithoutRef<'svg'>>;\r\nexport interface IconProps extends ComponentPropsWithoutRef<'svg'> {\r\n i: IconFC;\r\n /**\r\n * @property xs: 16px\r\n * @property sm: 20px\r\n * @property md: 24px\r\n * @property lg: 28px\r\n * @property xl: 32px\r\n * @property 2xl: 40px\r\n */\r\n size?: keyof typeof stylesBySize | number;\r\n}\r\n\r\nexport const Icon = ({ i: I, size = 'md', style, rotate, className, ...rest }: IconProps) => {\r\n /* \r\n Para que no haya colisiones de ids al renderizar el icono en varios lados, le pasamos este id a la prop idprefix.\r\n Esta prop es agregada gracias al archivo svgr-dynamic-ids.js que se encuentra en la raíz del proyecto.\r\n */\r\n\r\n return (\r\n <I\r\n {...(typeof size === 'number'\r\n ? {\r\n height: size,\r\n width: size,\r\n }\r\n : stylesBySize[size])}\r\n viewBox=\"0 0 24 24\"\r\n style={{\r\n ...style,\r\n transform: `rotate(${rotate}deg)`,\r\n }}\r\n className={clsx('shrink-0', className)}\r\n {...rest}\r\n />\r\n );\r\n};\r\n\r\nconst stylesBySize = {\r\n xs: {\r\n height: 16,\r\n width: 16,\r\n },\r\n sm: {\r\n height: 20,\r\n width: 20,\r\n },\r\n md: {\r\n height: 24,\r\n width: 24,\r\n },\r\n lg: {\r\n height: 28,\r\n width: 28,\r\n },\r\n xl: {\r\n height: 32,\r\n width: 32,\r\n },\r\n ['2xl']: {\r\n height: 40,\r\n width: 40,\r\n },\r\n};\r\n"],"names":["Icon","I","size","style","rotate","className","rest","jsx","stylesBySize","clsx"],"mappings":"8LAkBaA,EAAO,CAAC,CAAE,EAAGC,EAAG,KAAAC,EAAO,KAAM,MAAAC,EAAO,OAAAC,EAAQ,UAAAC,EAAW,GAAGC,CAAA,IAOnEC,EAAA,IAACN,EAAA,CACE,GAAI,OAAOC,GAAS,SACjB,CACE,OAAQA,EACR,MAAOA,CAAA,EAETM,EAAaN,CAAI,EACrB,QAAQ,YACR,MAAO,CACL,GAAGC,EACH,UAAW,UAAUC,CAAM,MAC7B,EACA,UAAWK,EAAAA,QAAK,WAAYJ,CAAS,EACpC,GAAGC,CAAA,CACN,EAIEE,EAAe,CACnB,GAAI,CACF,OAAQ,GACR,MAAO,EACT,EACA,GAAI,CACF,OAAQ,GACR,MAAO,EACT,EACA,GAAI,CACF,OAAQ,GACR,MAAO,EACT,EACA,GAAI,CACF,OAAQ,GACR,MAAO,EACT,EACA,GAAI,CACF,OAAQ,GACR,MAAO,EACT,EACC,MAAQ,CACP,OAAQ,GACR,MAAO,EAAA,CAEX"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.mjs","sources":["../../../src/components/Icon.tsx"],"sourcesContent":["'use client';\r\nimport clsx from 'clsx';\r\nimport React, { ComponentPropsWithoutRef } from 'react';\r\n\r\nexport type IconFC = React.FC<ComponentPropsWithoutRef<'svg'>>;\r\nexport interface IconProps extends ComponentPropsWithoutRef<'svg'> {\r\n i: IconFC;\r\n /**\r\n * @property xs: 16px\r\n * @property sm: 20px\r\n * @property md: 24px\r\n * @property lg: 28px\r\n * @property xl: 32px\r\n * @property 2xl: 40px\r\n */\r\n size?: keyof typeof stylesBySize | number;\r\n}\r\n\r\nexport const Icon = ({ i: I, size = 'md', style, rotate, className, ...rest }: IconProps) => {\r\n /* \r\n Para que no haya colisiones de ids al renderizar el icono en varios lados, le pasamos este id a la prop idprefix.\r\n Esta prop es agregada gracias al archivo svgr-dynamic-ids.js que se encuentra en la raíz del proyecto.\r\n */\r\n\r\n return (\r\n <I\r\n {...(typeof size === 'number'\r\n ? {\r\n height: size,\r\n width: size,\r\n }\r\n : stylesBySize[size])}\r\n viewBox=\"0 0 24 24\"\r\n style={{\r\n ...style,\r\n transform: `rotate(${rotate}deg)`,\r\n }}\r\n className={clsx('shrink-0', className)}\r\n {...rest}\r\n />\r\n );\r\n};\r\n\r\nconst stylesBySize = {\r\n xs: {\r\n height: 16,\r\n width: 16,\r\n },\r\n sm: {\r\n height: 20,\r\n width: 20,\r\n },\r\n md: {\r\n height: 24,\r\n width: 24,\r\n },\r\n lg: {\r\n height: 28,\r\n width: 28,\r\n },\r\n xl: {\r\n height: 32,\r\n width: 32,\r\n },\r\n ['2xl']: {\r\n height: 40,\r\n width: 40,\r\n },\r\n};\r\n"],"names":["Icon","I","size","style","rotate","className","rest","jsx","stylesBySize","clsx"],"mappings":";;;AAkBO,MAAMA,IAAO,CAAC,EAAE,GAAGC,GAAG,MAAAC,IAAO,MAAM,OAAAC,GAAO,QAAAC,GAAQ,WAAAC,GAAW,GAAGC,EAAA,MAOnE,gBAAAC;AAAA,EAACN;AAAA,EAAA;AAAA,IACE,GAAI,OAAOC,KAAS,WACjB;AAAA,MACE,QAAQA;AAAA,MACR,OAAOA;AAAA,IAAA,IAETM,EAAaN,CAAI;AAAA,IACrB,SAAQ;AAAA,IACR,OAAO;AAAA,MACL,GAAGC;AAAA,MACH,WAAW,UAAUC,CAAM;AAAA,IAC7B;AAAA,IACA,WAAWK,EAAK,YAAYJ,CAAS;AAAA,IACpC,GAAGC;AAAA,EAAA;AACN,GAIEE,IAAe;AAAA,EACnB,IAAI;AAAA,IACF,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,IAAI;AAAA,IACF,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,IAAI;AAAA,IACF,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,IAAI;AAAA,IACF,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACA,IAAI;AAAA,IACF,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAAA,EACC,OAAQ;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,EAAA;AAEX;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/InfinityLoader/index.tsx"],"sourcesContent":["import { Center, CenterProps, Loader, LoaderProps } from '@mantine/core';\r\nimport { InfiniteData } from '@tanstack/react-query';\r\nimport { InfiniteQueryHookResult } from 'react-query-kit';\r\n\r\nexport interface InfinityLoaderProps extends CenterProps {\r\n infinity: InfiniteQueryHookResult<InfiniteData<{ data: unknown[] }>, unknown>;\r\n loaderProps?: LoaderProps;\r\n}\r\n\r\nexport const InfinityLoader = ({ infinity, loaderProps, ...props }: InfinityLoaderProps) => {\r\n return (\r\n <Center {...props}>\r\n {infinity.isFetching ? (\r\n <Loader {...loaderProps} />\r\n ) : (\r\n !infinity.hasNextPage &&\r\n (infinity.data?.pages.length ?? 0) > 1 && <p>No hay más resultados</p>\r\n )}\r\n </Center>\r\n );\r\n};\r\n"],"names":["InfinityLoader","infinity","loaderProps","props","jsx","Center","Loader"],"mappings":"gJASaA,EAAiB,CAAC,CAAE,SAAAC,EAAU,YAAAC,EAAa,GAAGC,KAEvDC,EAAA,IAACC,UAAQ,GAAGF,EACT,WAAS,WACRC,EAAA,IAACE,EAAQ,OAAA,CAAA,GAAGJ,CAAa,CAAA,EAEzB,CAACD,EAAS,cACTA,EAAS,MAAM,MAAM,QAAU,GAAK,GAAKG,EAAAA,IAAC,IAAE,CAAA,SAAA,uBAAA,CAAqB,CAEtE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../src/components/InfinityLoader/index.tsx"],"sourcesContent":["import { Center, CenterProps, Loader, LoaderProps } from '@mantine/core';\r\nimport { InfiniteData } from '@tanstack/react-query';\r\nimport { InfiniteQueryHookResult } from 'react-query-kit';\r\n\r\nexport interface InfinityLoaderProps extends CenterProps {\r\n infinity: InfiniteQueryHookResult<InfiniteData<{ data: unknown[] }>, unknown>;\r\n loaderProps?: LoaderProps;\r\n}\r\n\r\nexport const InfinityLoader = ({ infinity, loaderProps, ...props }: InfinityLoaderProps) => {\r\n return (\r\n <Center {...props}>\r\n {infinity.isFetching ? (\r\n <Loader {...loaderProps} />\r\n ) : (\r\n !infinity.hasNextPage &&\r\n (infinity.data?.pages.length ?? 0) > 1 && <p>No hay más resultados</p>\r\n )}\r\n </Center>\r\n );\r\n};\r\n"],"names":["InfinityLoader","infinity","loaderProps","props","jsx","Center","Loader"],"mappings":";;AASO,MAAMA,IAAiB,CAAC,EAAE,UAAAC,GAAU,aAAAC,GAAa,GAAGC,QAEvD,gBAAAC,EAACC,KAAQ,GAAGF,GACT,YAAS,aACR,gBAAAC,EAACE,GAAQ,EAAA,GAAGJ,EAAa,CAAA,IAEzB,CAACD,EAAS,gBACTA,EAAS,MAAM,MAAM,UAAU,KAAK,KAAK,gBAAAG,EAAC,KAAE,EAAA,UAAA,wBAAA,CAAqB,EAEtE,CAAA;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const l=require("react/jsx-runtime"),C=e=>l.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:e.size==="sm"?20:24,height:e.size==="sm"?20:24,children:[l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 5.5C5.66848 5.5 5.35054 5.6317 5.11612 5.86612C4.8817 6.10054 4.75 6.41848 4.75 6.75V18.75C4.75 19.0815 4.8817 19.3995 5.11612 19.6339C5.35054 19.8683 5.66848 20 6 20H18C18.3315 20 18.6495 19.8683 18.8839 19.6339C19.1183 19.3995 19.25 19.0815 19.25 18.75V6.75C19.25 6.41848 19.1183 6.10054 18.8839 5.86612C18.6495 5.6317 18.3315 5.5 18 5.5H6ZM4.05546 4.80546C4.57118 4.28973 5.27065 4 6 4H18C18.7293 4 19.4288 4.28973 19.9445 4.80546C20.4603 5.32118 20.75 6.02065 20.75 6.75V18.75C20.75 19.4793 20.4603 20.1788 19.9445 20.6945C19.4288 21.2103 18.7293 21.5 18 21.5H6C5.27065 21.5 4.57118 21.2103 4.05546 20.6945C3.53973 20.1788 3.25 19.4793 3.25 18.75V6.75C3.25 6.02065 3.53973 5.32118 4.05546 4.80546Z",fill:"black"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16 2C16.4142 2 16.75 2.33579 16.75 2.75V6.75C16.75 7.16421 16.4142 7.5 16 7.5C15.5858 7.5 15.25 7.16421 15.25 6.75V2.75C15.25 2.33579 15.5858 2 16 2Z",fill:"black"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 2C8.41421 2 8.75 2.33579 8.75 2.75V6.75C8.75 7.16421 8.41421 7.5 8 7.5C7.58579 7.5 7.25 7.16421 7.25 6.75V2.75C7.25 2.33579 7.58579 2 8 2Z",fill:"black"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.25 10.75C3.25 10.3358 3.58579 10 4 10H20C20.4142 10 20.75 10.3358 20.75 10.75C20.75 11.1642 20.4142 11.5 20 11.5H4C3.58579 11.5 3.25 11.1642 3.25 10.75Z",fill:"black"}),l.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 14.3929C7 14.0378 7.28782 13.75 7.64286 13.75H9.35714C9.71218 13.75 10 14.0378 10 14.3929V16.1071C10 16.4622 9.71218 16.75 9.35714 16.75H7.64286C7.28782 16.75 7 16.4622 7 16.1071V14.3929Z",fill:"black"})]});module.exports=C;
|
|
2
|
+
//# sourceMappingURL=CalendarIcon.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalendarIcon.cjs","sources":["../../../../src/components/MyDatePickerInput/CalendarIcon.tsx"],"sourcesContent":["import { MantineSize } from '@mantine/core';\r\nimport { ComponentProps } from 'react';\r\n\r\ninterface CalendarIconProps {\r\n size?: MantineSize;\r\n}\r\n\r\nconst CalendarIcon = (props: CalendarIconProps) => {\r\n return (\r\n <svg\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width={props.size === 'sm' ? 20 : 24}\r\n height={props.size === 'sm' ? 20 : 24}\r\n >\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M6 5.5C5.66848 5.5 5.35054 5.6317 5.11612 5.86612C4.8817 6.10054 4.75 6.41848 4.75 6.75V18.75C4.75 19.0815 4.8817 19.3995 5.11612 19.6339C5.35054 19.8683 5.66848 20 6 20H18C18.3315 20 18.6495 19.8683 18.8839 19.6339C19.1183 19.3995 19.25 19.0815 19.25 18.75V6.75C19.25 6.41848 19.1183 6.10054 18.8839 5.86612C18.6495 5.6317 18.3315 5.5 18 5.5H6ZM4.05546 4.80546C4.57118 4.28973 5.27065 4 6 4H18C18.7293 4 19.4288 4.28973 19.9445 4.80546C20.4603 5.32118 20.75 6.02065 20.75 6.75V18.75C20.75 19.4793 20.4603 20.1788 19.9445 20.6945C19.4288 21.2103 18.7293 21.5 18 21.5H6C5.27065 21.5 4.57118 21.2103 4.05546 20.6945C3.53973 20.1788 3.25 19.4793 3.25 18.75V6.75C3.25 6.02065 3.53973 5.32118 4.05546 4.80546Z\"\r\n fill=\"black\"\r\n />\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M16 2C16.4142 2 16.75 2.33579 16.75 2.75V6.75C16.75 7.16421 16.4142 7.5 16 7.5C15.5858 7.5 15.25 7.16421 15.25 6.75V2.75C15.25 2.33579 15.5858 2 16 2Z\"\r\n fill=\"black\"\r\n />\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M8 2C8.41421 2 8.75 2.33579 8.75 2.75V6.75C8.75 7.16421 8.41421 7.5 8 7.5C7.58579 7.5 7.25 7.16421 7.25 6.75V2.75C7.25 2.33579 7.58579 2 8 2Z\"\r\n fill=\"black\"\r\n />\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M3.25 10.75C3.25 10.3358 3.58579 10 4 10H20C20.4142 10 20.75 10.3358 20.75 10.75C20.75 11.1642 20.4142 11.5 20 11.5H4C3.58579 11.5 3.25 11.1642 3.25 10.75Z\"\r\n fill=\"black\"\r\n />\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M7 14.3929C7 14.0378 7.28782 13.75 7.64286 13.75H9.35714C9.71218 13.75 10 14.0378 10 14.3929V16.1071C10 16.4622 9.71218 16.75 9.35714 16.75H7.64286C7.28782 16.75 7 16.4622 7 16.1071V14.3929Z\"\r\n fill=\"black\"\r\n />\r\n </svg>\r\n );\r\n};\r\n\r\nexport default CalendarIcon;\r\n"],"names":["CalendarIcon","props","jsxs","jsx"],"mappings":"kDAOMA,EAAgBC,GAElBC,EAAA,KAAC,MAAA,CACC,QAAQ,YACR,KAAK,OACL,MAAM,6BACN,MAAOD,EAAM,OAAS,KAAO,GAAK,GAClC,OAAQA,EAAM,OAAS,KAAO,GAAK,GAEnC,SAAA,CAAAE,EAAA,IAAC,OAAA,CACC,YAAU,UACV,YAAU,UACV,EAAE,msBACF,KAAK,OAAA,CACP,EACAA,EAAA,IAAC,OAAA,CACC,YAAU,UACV,YAAU,UACV,EAAE,yJACF,KAAK,OAAA,CACP,EACAA,EAAA,IAAC,OAAA,CACC,YAAU,UACV,YAAU,UACV,EAAE,gJACF,KAAK,OAAA,CACP,EACAA,EAAA,IAAC,OAAA,CACC,YAAU,UACV,YAAU,UACV,EAAE,8JACF,KAAK,OAAA,CACP,EACAA,EAAA,IAAC,OAAA,CACC,YAAU,UACV,YAAU,UACV,EAAE,iMACF,KAAK,OAAA,CAAA,CACP,CAAA,CACF"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsxs as C, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
const i = (e) => /* @__PURE__ */ C(
|
|
3
|
+
"svg",
|
|
4
|
+
{
|
|
5
|
+
viewBox: "0 0 24 24",
|
|
6
|
+
fill: "none",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: e.size === "sm" ? 20 : 24,
|
|
9
|
+
height: e.size === "sm" ? 20 : 24,
|
|
10
|
+
children: [
|
|
11
|
+
/* @__PURE__ */ l(
|
|
12
|
+
"path",
|
|
13
|
+
{
|
|
14
|
+
"fill-rule": "evenodd",
|
|
15
|
+
"clip-rule": "evenodd",
|
|
16
|
+
d: "M6 5.5C5.66848 5.5 5.35054 5.6317 5.11612 5.86612C4.8817 6.10054 4.75 6.41848 4.75 6.75V18.75C4.75 19.0815 4.8817 19.3995 5.11612 19.6339C5.35054 19.8683 5.66848 20 6 20H18C18.3315 20 18.6495 19.8683 18.8839 19.6339C19.1183 19.3995 19.25 19.0815 19.25 18.75V6.75C19.25 6.41848 19.1183 6.10054 18.8839 5.86612C18.6495 5.6317 18.3315 5.5 18 5.5H6ZM4.05546 4.80546C4.57118 4.28973 5.27065 4 6 4H18C18.7293 4 19.4288 4.28973 19.9445 4.80546C20.4603 5.32118 20.75 6.02065 20.75 6.75V18.75C20.75 19.4793 20.4603 20.1788 19.9445 20.6945C19.4288 21.2103 18.7293 21.5 18 21.5H6C5.27065 21.5 4.57118 21.2103 4.05546 20.6945C3.53973 20.1788 3.25 19.4793 3.25 18.75V6.75C3.25 6.02065 3.53973 5.32118 4.05546 4.80546Z",
|
|
17
|
+
fill: "black"
|
|
18
|
+
}
|
|
19
|
+
),
|
|
20
|
+
/* @__PURE__ */ l(
|
|
21
|
+
"path",
|
|
22
|
+
{
|
|
23
|
+
"fill-rule": "evenodd",
|
|
24
|
+
"clip-rule": "evenodd",
|
|
25
|
+
d: "M16 2C16.4142 2 16.75 2.33579 16.75 2.75V6.75C16.75 7.16421 16.4142 7.5 16 7.5C15.5858 7.5 15.25 7.16421 15.25 6.75V2.75C15.25 2.33579 15.5858 2 16 2Z",
|
|
26
|
+
fill: "black"
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
/* @__PURE__ */ l(
|
|
30
|
+
"path",
|
|
31
|
+
{
|
|
32
|
+
"fill-rule": "evenodd",
|
|
33
|
+
"clip-rule": "evenodd",
|
|
34
|
+
d: "M8 2C8.41421 2 8.75 2.33579 8.75 2.75V6.75C8.75 7.16421 8.41421 7.5 8 7.5C7.58579 7.5 7.25 7.16421 7.25 6.75V2.75C7.25 2.33579 7.58579 2 8 2Z",
|
|
35
|
+
fill: "black"
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ l(
|
|
39
|
+
"path",
|
|
40
|
+
{
|
|
41
|
+
"fill-rule": "evenodd",
|
|
42
|
+
"clip-rule": "evenodd",
|
|
43
|
+
d: "M3.25 10.75C3.25 10.3358 3.58579 10 4 10H20C20.4142 10 20.75 10.3358 20.75 10.75C20.75 11.1642 20.4142 11.5 20 11.5H4C3.58579 11.5 3.25 11.1642 3.25 10.75Z",
|
|
44
|
+
fill: "black"
|
|
45
|
+
}
|
|
46
|
+
),
|
|
47
|
+
/* @__PURE__ */ l(
|
|
48
|
+
"path",
|
|
49
|
+
{
|
|
50
|
+
"fill-rule": "evenodd",
|
|
51
|
+
"clip-rule": "evenodd",
|
|
52
|
+
d: "M7 14.3929C7 14.0378 7.28782 13.75 7.64286 13.75H9.35714C9.71218 13.75 10 14.0378 10 14.3929V16.1071C10 16.4622 9.71218 16.75 9.35714 16.75H7.64286C7.28782 16.75 7 16.4622 7 16.1071V14.3929Z",
|
|
53
|
+
fill: "black"
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
export {
|
|
60
|
+
i as default
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=CalendarIcon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalendarIcon.mjs","sources":["../../../../src/components/MyDatePickerInput/CalendarIcon.tsx"],"sourcesContent":["import { MantineSize } from '@mantine/core';\r\nimport { ComponentProps } from 'react';\r\n\r\ninterface CalendarIconProps {\r\n size?: MantineSize;\r\n}\r\n\r\nconst CalendarIcon = (props: CalendarIconProps) => {\r\n return (\r\n <svg\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width={props.size === 'sm' ? 20 : 24}\r\n height={props.size === 'sm' ? 20 : 24}\r\n >\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M6 5.5C5.66848 5.5 5.35054 5.6317 5.11612 5.86612C4.8817 6.10054 4.75 6.41848 4.75 6.75V18.75C4.75 19.0815 4.8817 19.3995 5.11612 19.6339C5.35054 19.8683 5.66848 20 6 20H18C18.3315 20 18.6495 19.8683 18.8839 19.6339C19.1183 19.3995 19.25 19.0815 19.25 18.75V6.75C19.25 6.41848 19.1183 6.10054 18.8839 5.86612C18.6495 5.6317 18.3315 5.5 18 5.5H6ZM4.05546 4.80546C4.57118 4.28973 5.27065 4 6 4H18C18.7293 4 19.4288 4.28973 19.9445 4.80546C20.4603 5.32118 20.75 6.02065 20.75 6.75V18.75C20.75 19.4793 20.4603 20.1788 19.9445 20.6945C19.4288 21.2103 18.7293 21.5 18 21.5H6C5.27065 21.5 4.57118 21.2103 4.05546 20.6945C3.53973 20.1788 3.25 19.4793 3.25 18.75V6.75C3.25 6.02065 3.53973 5.32118 4.05546 4.80546Z\"\r\n fill=\"black\"\r\n />\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M16 2C16.4142 2 16.75 2.33579 16.75 2.75V6.75C16.75 7.16421 16.4142 7.5 16 7.5C15.5858 7.5 15.25 7.16421 15.25 6.75V2.75C15.25 2.33579 15.5858 2 16 2Z\"\r\n fill=\"black\"\r\n />\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M8 2C8.41421 2 8.75 2.33579 8.75 2.75V6.75C8.75 7.16421 8.41421 7.5 8 7.5C7.58579 7.5 7.25 7.16421 7.25 6.75V2.75C7.25 2.33579 7.58579 2 8 2Z\"\r\n fill=\"black\"\r\n />\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M3.25 10.75C3.25 10.3358 3.58579 10 4 10H20C20.4142 10 20.75 10.3358 20.75 10.75C20.75 11.1642 20.4142 11.5 20 11.5H4C3.58579 11.5 3.25 11.1642 3.25 10.75Z\"\r\n fill=\"black\"\r\n />\r\n <path\r\n fill-rule=\"evenodd\"\r\n clip-rule=\"evenodd\"\r\n d=\"M7 14.3929C7 14.0378 7.28782 13.75 7.64286 13.75H9.35714C9.71218 13.75 10 14.0378 10 14.3929V16.1071C10 16.4622 9.71218 16.75 9.35714 16.75H7.64286C7.28782 16.75 7 16.4622 7 16.1071V14.3929Z\"\r\n fill=\"black\"\r\n />\r\n </svg>\r\n );\r\n};\r\n\r\nexport default CalendarIcon;\r\n"],"names":["CalendarIcon","props","jsxs","jsx"],"mappings":";AAOM,MAAAA,IAAe,CAACC,MAElB,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,SAAQ;AAAA,IACR,MAAK;AAAA,IACL,OAAM;AAAA,IACN,OAAOD,EAAM,SAAS,OAAO,KAAK;AAAA,IAClC,QAAQA,EAAM,SAAS,OAAO,KAAK;AAAA,IAEnC,UAAA;AAAA,MAAA,gBAAAE;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,aAAU;AAAA,UACV,aAAU;AAAA,UACV,GAAE;AAAA,UACF,MAAK;AAAA,QAAA;AAAA,MACP;AAAA,MACA,gBAAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,aAAU;AAAA,UACV,aAAU;AAAA,UACV,GAAE;AAAA,UACF,MAAK;AAAA,QAAA;AAAA,MACP;AAAA,MACA,gBAAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,aAAU;AAAA,UACV,aAAU;AAAA,UACV,GAAE;AAAA,UACF,MAAK;AAAA,QAAA;AAAA,MACP;AAAA,MACA,gBAAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,aAAU;AAAA,UACV,aAAU;AAAA,UACV,GAAE;AAAA,UACF,MAAK;AAAA,QAAA;AAAA,MACP;AAAA,MACA,gBAAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,aAAU;AAAA,UACV,aAAU;AAAA,UACV,GAAE;AAAA,UACF,MAAK;AAAA,QAAA;AAAA,MAAA;AAAA,IACP;AAAA,EAAA;AACF;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),i=require("@mantine/dates"),n=require("./CalendarIcon.cjs"),r=e=>t.jsx(i.DatePickerInput,{leftSection:t.jsx(n,{size:e.size}),variant:e.readOnly?"filled":"default",...e});exports.MyDatePickerInput=r;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/MyDatePickerInput/index.tsx"],"sourcesContent":["import { DatePickerInputProps, DatePickerInput } from '@mantine/dates';\r\nimport CalendarIcon from './CalendarIcon';\r\n\r\nexport interface MyDatePickerInputProps extends DatePickerInputProps<any> {}\r\n\r\nexport const MyDatePickerInput = (props: MyDatePickerInputProps) => (\r\n <DatePickerInput\r\n leftSection={<CalendarIcon size={props.size} />}\r\n variant={props.readOnly ? 'filled' : 'default'}\r\n {...props}\r\n />\r\n);\r\n"],"names":["MyDatePickerInput","props","jsx","DatePickerInput","CalendarIcon"],"mappings":"iLAKaA,EAAqBC,GAChCC,EAAA,IAACC,EAAA,gBAAA,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 t } from "react/jsx-runtime";
|
|
2
|
+
import { DatePickerInput as i } from "@mantine/dates";
|
|
3
|
+
import r from "./CalendarIcon.mjs";
|
|
4
|
+
const f = (e) => /* @__PURE__ */ t(
|
|
5
|
+
i,
|
|
6
|
+
{
|
|
7
|
+
leftSection: /* @__PURE__ */ t(r, { size: e.size }),
|
|
8
|
+
variant: e.readOnly ? "filled" : "default",
|
|
9
|
+
...e
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
export {
|
|
13
|
+
f as MyDatePickerInput
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../src/components/MyDatePickerInput/index.tsx"],"sourcesContent":["import { DatePickerInputProps, DatePickerInput } from '@mantine/dates';\r\nimport CalendarIcon from './CalendarIcon';\r\n\r\nexport interface MyDatePickerInputProps extends DatePickerInputProps<any> {}\r\n\r\nexport const MyDatePickerInput = (props: MyDatePickerInputProps) => (\r\n <DatePickerInput\r\n leftSection={<CalendarIcon size={props.size} />}\r\n variant={props.readOnly ? 'filled' : 'default'}\r\n {...props}\r\n />\r\n);\r\n"],"names":["MyDatePickerInput","props","jsx","DatePickerInput","CalendarIcon"],"mappings":";;;AAKa,MAAAA,IAAoB,CAACC,MAChC,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 t=require("react/jsx-runtime"),i=require("@mantine/dates"),r=require("../MyDatePickerInput/CalendarIcon.cjs"),a=e=>t.jsx(i.DateTimePicker,{leftSection:t.jsx(r,{size:e.size}),variant:e.readOnly?"filled":"default",...e});exports.MyDateTimePicker=a;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/MyDateTimePicker/index.tsx"],"sourcesContent":["import { DateTimePicker, DateTimePickerProps } from '@mantine/dates';\r\nimport CalendarIcon from '../MyDatePickerInput/CalendarIcon';\r\n\r\nexport interface MyDateTimePickerProps extends DateTimePickerProps {}\r\n\r\nexport const MyDateTimePicker = (props: MyDateTimePickerProps) => (\r\n <DateTimePicker\r\n leftSection={<CalendarIcon size={props.size} />}\r\n variant={props.readOnly ? 'filled' : 'default'}\r\n {...props}\r\n />\r\n);\r\n"],"names":["MyDateTimePicker","props","jsx","DateTimePicker","CalendarIcon"],"mappings":"oMAKaA,EAAoBC,GAC/BC,EAAA,IAACC,EAAA,eAAA,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 i } from "react/jsx-runtime";
|
|
2
|
+
import { DateTimePicker as t } from "@mantine/dates";
|
|
3
|
+
import r from "../MyDatePickerInput/CalendarIcon.mjs";
|
|
4
|
+
const f = (e) => /* @__PURE__ */ i(
|
|
5
|
+
t,
|
|
6
|
+
{
|
|
7
|
+
leftSection: /* @__PURE__ */ i(r, { size: e.size }),
|
|
8
|
+
variant: e.readOnly ? "filled" : "default",
|
|
9
|
+
...e
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
export {
|
|
13
|
+
f as MyDateTimePicker
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../src/components/MyDateTimePicker/index.tsx"],"sourcesContent":["import { DateTimePicker, DateTimePickerProps } from '@mantine/dates';\r\nimport CalendarIcon from '../MyDatePickerInput/CalendarIcon';\r\n\r\nexport interface MyDateTimePickerProps extends DateTimePickerProps {}\r\n\r\nexport const MyDateTimePicker = (props: MyDateTimePickerProps) => (\r\n <DateTimePicker\r\n leftSection={<CalendarIcon size={props.size} />}\r\n variant={props.readOnly ? 'filled' : 'default'}\r\n {...props}\r\n />\r\n);\r\n"],"names":["MyDateTimePicker","props","jsx","DateTimePicker","CalendarIcon"],"mappings":";;;AAKa,MAAAA,IAAmB,CAACC,MAC/B,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 t=require("react/jsx-runtime"),o=require("@mantine/notifications");;/* empty css */const e=i=>t.jsx(o.Notifications,{position:"top-center",...i});exports.MyNotifications=e;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/MyNotifications/index.tsx"],"sourcesContent":["import { Notifications, NotificationsProps } from '@mantine/notifications';\r\nimport '@mantine/notifications/styles.css';\r\n\r\nexport interface MyNotificationPrpos extends NotificationsProps {}\r\n\r\nexport const MyNotifications = (props: MyNotificationPrpos) => (\r\n <Notifications\r\n position=\"top-center\"\r\n {...props}\r\n />\r\n);\r\n"],"names":["MyNotifications","props","jsx","Notifications"],"mappings":"gOAKa,MAAAA,EAAmBC,GAC9BC,EAAA,IAACC,EAAA,cAAA,CACC,SAAS,aACR,GAAGF,CAAA,CACN"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Notifications as i } from "@mantine/notifications";
|
|
3
|
+
/* empty css */
|
|
4
|
+
const n = (o) => /* @__PURE__ */ t(
|
|
5
|
+
i,
|
|
6
|
+
{
|
|
7
|
+
position: "top-center",
|
|
8
|
+
...o
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
export {
|
|
12
|
+
n as MyNotifications
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../src/components/MyNotifications/index.tsx"],"sourcesContent":["import { Notifications, NotificationsProps } from '@mantine/notifications';\r\nimport '@mantine/notifications/styles.css';\r\n\r\nexport interface MyNotificationPrpos extends NotificationsProps {}\r\n\r\nexport const MyNotifications = (props: MyNotificationPrpos) => (\r\n <Notifications\r\n position=\"top-center\"\r\n {...props}\r\n />\r\n);\r\n"],"names":["MyNotifications","props","jsx","Notifications"],"mappings":";;;AAKa,MAAAA,IAAkB,CAACC,MAC9B,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,UAAS;AAAA,IACR,GAAGF;AAAA,EAAA;AACN;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/MyNumberInput/index.tsx"],"sourcesContent":["import { NumberInput, NumberInputProps } from '@mantine/core';\r\n\r\nexport interface MyNumberInputProps extends NumberInputProps {}\r\n\r\nexport const MyNumberInput = (props: MyNumberInputProps) => (\r\n <NumberInput\r\n variant={props.readOnly ? 'filled' : 'default'}\r\n {...props}\r\n />\r\n);\r\n"],"names":["MyNumberInput","props","jsx","NumberInput"],"mappings":"gJAIaA,EAAiBC,GAC5BC,EAAA,IAACC,EAAA,YAAA,CACC,QAASF,EAAM,SAAW,SAAW,UACpC,GAAGA,CAAA,CACN"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { NumberInput as e } from "@mantine/core";
|
|
3
|
+
const o = (r) => /* @__PURE__ */ t(
|
|
4
|
+
e,
|
|
5
|
+
{
|
|
6
|
+
variant: r.readOnly ? "filled" : "default",
|
|
7
|
+
...r
|
|
8
|
+
}
|
|
9
|
+
);
|
|
10
|
+
export {
|
|
11
|
+
o as MyNumberInput
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../src/components/MyNumberInput/index.tsx"],"sourcesContent":["import { NumberInput, NumberInputProps } from '@mantine/core';\r\n\r\nexport interface MyNumberInputProps extends NumberInputProps {}\r\n\r\nexport const MyNumberInput = (props: MyNumberInputProps) => (\r\n <NumberInput\r\n variant={props.readOnly ? 'filled' : 'default'}\r\n {...props}\r\n />\r\n);\r\n"],"names":["MyNumberInput","props","jsx","NumberInput"],"mappings":";;AAIa,MAAAA,IAAgB,CAACC,MAC5B,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,SAASF,EAAM,WAAW,WAAW;AAAA,IACpC,GAAGA;AAAA,EAAA;AACN;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/MySelect/index.tsx"],"sourcesContent":["import { Select, SelectProps } from '@mantine/core';\r\n\r\nexport interface MySelectProps extends SelectProps {}\r\n\r\nexport const MySelect = (props: MySelectProps) => (\r\n <Select\r\n variant={props.readOnly ? 'filled' : 'default'}\r\n {...props}\r\n />\r\n);\r\n"],"names":["MySelect","props","jsx","Select"],"mappings":"gJAIaA,EAAYC,GACvBC,EAAA,IAACC,EAAA,OAAA,CACC,QAASF,EAAM,SAAW,SAAW,UACpC,GAAGA,CAAA,CACN"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Select as l } from "@mantine/core";
|
|
3
|
+
const a = (e) => /* @__PURE__ */ t(
|
|
4
|
+
l,
|
|
5
|
+
{
|
|
6
|
+
variant: e.readOnly ? "filled" : "default",
|
|
7
|
+
...e
|
|
8
|
+
}
|
|
9
|
+
);
|
|
10
|
+
export {
|
|
11
|
+
a as MySelect
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../src/components/MySelect/index.tsx"],"sourcesContent":["import { Select, SelectProps } from '@mantine/core';\r\n\r\nexport interface MySelectProps extends SelectProps {}\r\n\r\nexport const MySelect = (props: MySelectProps) => (\r\n <Select\r\n variant={props.readOnly ? 'filled' : 'default'}\r\n {...props}\r\n />\r\n);\r\n"],"names":["MySelect","props","jsx","Select"],"mappings":";;AAIa,MAAAA,IAAW,CAACC,MACvB,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,SAASF,EAAM,WAAW,WAAW;AAAA,IACpC,GAAGA;AAAA,EAAA;AACN;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/MyTextInput/index.tsx"],"sourcesContent":["import { TextInput, TextInputProps } from '@mantine/core';\r\n\r\nexport interface MyTextInputProps extends TextInputProps {}\r\n\r\nexport const MyTextInput = (props: MyTextInputProps) => (\r\n <TextInput\r\n variant={props.readOnly ? 'filled' : 'default'}\r\n {...props}\r\n />\r\n);\r\n"],"names":["MyTextInput","props","jsx","TextInput"],"mappings":"gJAIaA,EAAeC,GAC1BC,EAAA,IAACC,EAAA,UAAA,CACC,QAASF,EAAM,SAAW,SAAW,UACpC,GAAGA,CAAA,CACN"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { TextInput as r } from "@mantine/core";
|
|
3
|
+
const a = (t) => /* @__PURE__ */ e(
|
|
4
|
+
r,
|
|
5
|
+
{
|
|
6
|
+
variant: t.readOnly ? "filled" : "default",
|
|
7
|
+
...t
|
|
8
|
+
}
|
|
9
|
+
);
|
|
10
|
+
export {
|
|
11
|
+
a as MyTextInput
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../src/components/MyTextInput/index.tsx"],"sourcesContent":["import { TextInput, TextInputProps } from '@mantine/core';\r\n\r\nexport interface MyTextInputProps extends TextInputProps {}\r\n\r\nexport const MyTextInput = (props: MyTextInputProps) => (\r\n <TextInput\r\n variant={props.readOnly ? 'filled' : 'default'}\r\n {...props}\r\n />\r\n);\r\n"],"names":["MyTextInput","props","jsx","TextInput"],"mappings":";;AAIa,MAAAA,IAAc,CAACC,MAC1B,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,SAASF,EAAM,WAAW,WAAW;AAAA,IACpC,GAAGA;AAAA,EAAA;AACN;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/MyTextarea/index.tsx"],"sourcesContent":["import { Textarea, TextareaProps } from '@mantine/core';\r\n\r\nexport interface MyTextareaProps extends TextareaProps {}\r\n\r\nexport const MyTextarea = (props: MyTextareaProps) => (\r\n <Textarea\r\n variant={props.readOnly ? 'filled' : 'default'}\r\n {...props}\r\n />\r\n);\r\n"],"names":["MyTextarea","props","jsx","Textarea"],"mappings":"gJAIaA,EAAcC,GACzBC,EAAA,IAACC,EAAA,SAAA,CACC,QAASF,EAAM,SAAW,SAAW,UACpC,GAAGA,CAAA,CACN"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Textarea as r } from "@mantine/core";
|
|
3
|
+
const f = (a) => /* @__PURE__ */ e(
|
|
4
|
+
r,
|
|
5
|
+
{
|
|
6
|
+
variant: a.readOnly ? "filled" : "default",
|
|
7
|
+
...a
|
|
8
|
+
}
|
|
9
|
+
);
|
|
10
|
+
export {
|
|
11
|
+
f as MyTextarea
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../src/components/MyTextarea/index.tsx"],"sourcesContent":["import { Textarea, TextareaProps } from '@mantine/core';\r\n\r\nexport interface MyTextareaProps extends TextareaProps {}\r\n\r\nexport const MyTextarea = (props: MyTextareaProps) => (\r\n <Textarea\r\n variant={props.readOnly ? 'filled' : 'default'}\r\n {...props}\r\n />\r\n);\r\n"],"names":["MyTextarea","props","jsx","Textarea"],"mappings":";;AAIa,MAAAA,IAAa,CAACC,MACzB,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,SAASF,EAAM,WAAW,WAAW;AAAA,IACpC,GAAGA;AAAA,EAAA;AACN;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/MyTimeInput/index.tsx"],"sourcesContent":["import { TextInput } from '@mantine/core';\r\nimport { TimeInputProps } from '@mantine/dates';\r\n\r\nexport interface MyTimeInputProps extends TimeInputProps {}\r\n\r\nexport const MyTimeInput = (props: MyTimeInputProps) => (\r\n <TextInput\r\n variant={props.readOnly ? 'filled' : 'default'}\r\n {...props}\r\n />\r\n);\r\n"],"names":["MyTimeInput","props","jsx","TextInput"],"mappings":"gJAKaA,EAAeC,GAC1BC,EAAA,IAACC,EAAA,UAAA,CACC,QAASF,EAAM,SAAW,SAAW,UACpC,GAAGA,CAAA,CACN"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { TextInput as r } from "@mantine/core";
|
|
3
|
+
const n = (t) => /* @__PURE__ */ e(
|
|
4
|
+
r,
|
|
5
|
+
{
|
|
6
|
+
variant: t.readOnly ? "filled" : "default",
|
|
7
|
+
...t
|
|
8
|
+
}
|
|
9
|
+
);
|
|
10
|
+
export {
|
|
11
|
+
n as MyTimeInput
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../src/components/MyTimeInput/index.tsx"],"sourcesContent":["import { TextInput } from '@mantine/core';\r\nimport { TimeInputProps } from '@mantine/dates';\r\n\r\nexport interface MyTimeInputProps extends TimeInputProps {}\r\n\r\nexport const MyTimeInput = (props: MyTimeInputProps) => (\r\n <TextInput\r\n variant={props.readOnly ? 'filled' : 'default'}\r\n {...props}\r\n />\r\n);\r\n"],"names":["MyTimeInput","props","jsx","TextInput"],"mappings":";;AAKa,MAAAA,IAAc,CAACC,MAC1B,gBAAAC;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,SAASF,EAAM,WAAW,WAAW;AAAA,IACpC,GAAGA;AAAA,EAAA;AACN;"}
|