lkd-web-kit 0.4.9 → 0.4.11
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/components/MyDateInput/index.cjs +19 -0
- package/dist/components/MyDateInput/index.js +15 -0
- package/dist/form/base/FormDateInput.cjs +17 -0
- package/dist/form/base/FormDateInput.js +13 -0
- package/dist/index.cjs +11 -7
- package/dist/index.d.ts +13 -3
- package/dist/index.js +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,19 @@
|
|
|
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('../MyDatePickerInput/CalendarIcon.cjs');
|
|
8
|
+
|
|
9
|
+
const MyDateInput = (props) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
10
|
+
dates.DateInput,
|
|
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.MyDateInput = MyDateInput;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { DateInput } from '@mantine/dates';
|
|
3
|
+
import CalendarIcon from '../MyDatePickerInput/CalendarIcon.js';
|
|
4
|
+
|
|
5
|
+
const MyDateInput = (props) => /* @__PURE__ */ jsx(
|
|
6
|
+
DateInput,
|
|
7
|
+
{
|
|
8
|
+
leftSection: /* @__PURE__ */ jsx(CalendarIcon, { size: props.size }),
|
|
9
|
+
leftSectionPointerEvents: "none",
|
|
10
|
+
variant: props.readOnly ? "filled" : "default",
|
|
11
|
+
...props
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
export { MyDateInput };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
const index = require('../../components/MyDateInput/index.cjs');
|
|
7
|
+
const withForm = require('../../hocs/withForm.cjs');
|
|
8
|
+
|
|
9
|
+
const FormDateInput = withForm.withForm(({ field, props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
10
|
+
index.MyDateInput,
|
|
11
|
+
{
|
|
12
|
+
...field,
|
|
13
|
+
...props
|
|
14
|
+
}
|
|
15
|
+
));
|
|
16
|
+
|
|
17
|
+
exports.FormDateInput = FormDateInput;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { MyDateInput } from '../../components/MyDateInput/index.js';
|
|
3
|
+
import { withForm } from '../../hocs/withForm.js';
|
|
4
|
+
|
|
5
|
+
const FormDateInput = withForm(({ field, props }) => /* @__PURE__ */ jsx(
|
|
6
|
+
MyDateInput,
|
|
7
|
+
{
|
|
8
|
+
...field,
|
|
9
|
+
...props
|
|
10
|
+
}
|
|
11
|
+
));
|
|
12
|
+
|
|
13
|
+
export { FormDateInput };
|
package/dist/index.cjs
CHANGED
|
@@ -17,10 +17,11 @@ const index$9 = require('./components/MyTimeInput/index.cjs');
|
|
|
17
17
|
const index$a = require('./components/SelectInfinity/index.cjs');
|
|
18
18
|
const index$b = require('./components/MyMultiSelect/index.cjs');
|
|
19
19
|
const index$c = require('./components/MyMonthPickerInput/index.cjs');
|
|
20
|
+
const index$d = require('./components/MyDateInput/index.cjs');
|
|
20
21
|
const httpStatus = require('./consts/http-status.cjs');
|
|
21
22
|
const revalidate = require('./consts/revalidate.cjs');
|
|
22
|
-
const index$
|
|
23
|
-
const index$
|
|
23
|
+
const index$e = require('./contexts/NavigationHistoryContext/index.cjs');
|
|
24
|
+
const index$f = require('./contexts/PageDataContext/index.cjs');
|
|
24
25
|
const Form = require('./form/Form.cjs');
|
|
25
26
|
const FormButtonSubmit = require('./form/FormButtonSubmit.cjs');
|
|
26
27
|
const zodValidator = require('./form/utils/zodValidator.cjs');
|
|
@@ -38,6 +39,7 @@ const FormTextInput = require('./form/base/FormTextInput.cjs');
|
|
|
38
39
|
const FormTimeInput = require('./form/base/FormTimeInput.cjs');
|
|
39
40
|
const FormMultiSelect = require('./form/base/FormMultiSelect.cjs');
|
|
40
41
|
const FormMonthPickerInput = require('./form/base/FormMonthPickerInput.cjs');
|
|
42
|
+
const FormDateInput = require('./form/base/FormDateInput.cjs');
|
|
41
43
|
const withForm = require('./hocs/withForm.cjs');
|
|
42
44
|
const withModalManager = require('./hocs/withModalManager.cjs');
|
|
43
45
|
const useBreakpoint = require('./hooks/useBreakpoint.cjs');
|
|
@@ -75,13 +77,14 @@ exports.MyTimeInput = index$9.MyTimeInput;
|
|
|
75
77
|
exports.InfinitySelect = index$a.InfinitySelect;
|
|
76
78
|
exports.MyMultiSelect = index$b.MyMultiSelect;
|
|
77
79
|
exports.MyMonthPickerInput = index$c.MyMonthPickerInput;
|
|
80
|
+
exports.MyDateInput = index$d.MyDateInput;
|
|
78
81
|
exports.HttpStatus = httpStatus.HttpStatus;
|
|
79
82
|
exports.Revalidate = revalidate.Revalidate;
|
|
80
|
-
exports.NavigationHistoryProvider = index$
|
|
81
|
-
exports.QP_BACK_URL_NAME = index$
|
|
82
|
-
exports.useNavigationHistory = index$
|
|
83
|
-
exports.PageDataProvider = index$
|
|
84
|
-
exports.usePageData = index$
|
|
83
|
+
exports.NavigationHistoryProvider = index$e.NavigationHistoryProvider;
|
|
84
|
+
exports.QP_BACK_URL_NAME = index$e.QP_BACK_URL_NAME;
|
|
85
|
+
exports.useNavigationHistory = index$e.useNavigationHistory;
|
|
86
|
+
exports.PageDataProvider = index$f.PageDataProvider;
|
|
87
|
+
exports.usePageData = index$f.usePageData;
|
|
85
88
|
exports.Form = Form.Form;
|
|
86
89
|
exports.FormButtonSubmit = FormButtonSubmit.FormButtonSubmit;
|
|
87
90
|
exports.zodValidator = zodValidator.zodValidator;
|
|
@@ -101,6 +104,7 @@ exports.numberToTimeInput = FormTimeInput.numberToTimeInput;
|
|
|
101
104
|
exports.timeInputToNumber = FormTimeInput.timeInputToNumber;
|
|
102
105
|
exports.FormMultiSelect = FormMultiSelect.FormMultiSelect;
|
|
103
106
|
exports.FormMonthPickerInput = FormMonthPickerInput.FormMonthPickerInput;
|
|
107
|
+
exports.FormDateInput = FormDateInput.FormDateInput;
|
|
104
108
|
exports.withForm = withForm.withForm;
|
|
105
109
|
exports.withModalManager = withModalManager.withModalManager;
|
|
106
110
|
exports.useBreakpoint = useBreakpoint.useBreakpoint;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { ComboboxStore } from '@mantine/core';
|
|
|
8
8
|
import { ComponentProps } from 'react';
|
|
9
9
|
import { ComponentPropsWithoutRef } from 'react';
|
|
10
10
|
import { ControllerProps } from 'react-hook-form';
|
|
11
|
+
import { DateInputProps } from '@mantine/dates';
|
|
11
12
|
import { DatePickerInputProps } from '@mantine/dates';
|
|
12
13
|
import { DateTimePickerProps } from '@mantine/dates';
|
|
13
14
|
import { default as default_2 } from 'react';
|
|
@@ -116,9 +117,13 @@ export declare const FormCheckbox: FC<CheckboxProps & WithFormProps>;
|
|
|
116
117
|
|
|
117
118
|
export declare type FormCheckboxProps = CheckboxProps & WithFormProps;
|
|
118
119
|
|
|
119
|
-
export declare
|
|
120
|
+
export declare const FormDateInput: FC<WithFormProps & MyDateInputProps>;
|
|
120
121
|
|
|
121
|
-
export declare
|
|
122
|
+
export declare type FormDateInputProps = WithFormProps & MyDateInputProps;
|
|
123
|
+
|
|
124
|
+
export declare const FormDatePickerInput: FC<WithFormProps & MyDatePickerInputProps>;
|
|
125
|
+
|
|
126
|
+
export declare type FormDatePickerInputProps = WithFormProps & MyDatePickerInputProps;
|
|
122
127
|
|
|
123
128
|
export declare const FormDateTimePicker: FC<DateTimePickerProps & WithFormProps>;
|
|
124
129
|
|
|
@@ -333,6 +338,11 @@ export declare interface LayoutProps {
|
|
|
333
338
|
params: Promise<PageParams>;
|
|
334
339
|
}
|
|
335
340
|
|
|
341
|
+
export declare const MyDateInput: (props: MyDateInputProps) => JSX.Element;
|
|
342
|
+
|
|
343
|
+
export declare interface MyDateInputProps extends DateInputProps {
|
|
344
|
+
}
|
|
345
|
+
|
|
336
346
|
export declare const MyDatePickerInput: (props: MyDatePickerInputProps) => JSX.Element;
|
|
337
347
|
|
|
338
348
|
export declare interface MyDatePickerInputProps extends DatePickerInputProps<any> {
|
|
@@ -470,7 +480,7 @@ declare const pxBySize: {
|
|
|
470
480
|
|
|
471
481
|
export declare const QP_BACK_URL_NAME = "backUrl";
|
|
472
482
|
|
|
473
|
-
export declare const queryStringify: (query?: Record<string,
|
|
483
|
+
export declare const queryStringify: (query?: Record<string, any>) => string;
|
|
474
484
|
|
|
475
485
|
export declare enum Revalidate {
|
|
476
486
|
OneHour = 3600,
|
package/dist/index.js
CHANGED
|
@@ -13,6 +13,7 @@ export { MyTimeInput } from './components/MyTimeInput/index.js';
|
|
|
13
13
|
export { InfinitySelect } from './components/SelectInfinity/index.js';
|
|
14
14
|
export { MyMultiSelect } from './components/MyMultiSelect/index.js';
|
|
15
15
|
export { MyMonthPickerInput } from './components/MyMonthPickerInput/index.js';
|
|
16
|
+
export { MyDateInput } from './components/MyDateInput/index.js';
|
|
16
17
|
export { HttpStatus } from './consts/http-status.js';
|
|
17
18
|
export { Revalidate } from './consts/revalidate.js';
|
|
18
19
|
export { NavigationHistoryProvider, QP_BACK_URL_NAME, useNavigationHistory } from './contexts/NavigationHistoryContext/index.js';
|
|
@@ -34,6 +35,7 @@ export { FormTextInput } from './form/base/FormTextInput.js';
|
|
|
34
35
|
export { FormTimeInput, numberToTimeInput, timeInputToNumber } from './form/base/FormTimeInput.js';
|
|
35
36
|
export { FormMultiSelect } from './form/base/FormMultiSelect.js';
|
|
36
37
|
export { FormMonthPickerInput } from './form/base/FormMonthPickerInput.js';
|
|
38
|
+
export { FormDateInput } from './form/base/FormDateInput.js';
|
|
37
39
|
export { withForm } from './hocs/withForm.js';
|
|
38
40
|
export { withModalManager } from './hocs/withModalManager.js';
|
|
39
41
|
export { useBreakpoint } from './hooks/useBreakpoint.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lkd-web-kit",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.11",
|
|
4
4
|
"description": "A template for creating React component libraries with Vite.",
|
|
5
5
|
"author": "LKD",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@tanstack/react-query": "^5.83.0",
|
|
61
61
|
"clsx": "^2.1.1",
|
|
62
62
|
"ky": "^1.8.1",
|
|
63
|
-
"next": "^15.
|
|
63
|
+
"next": "^15.4.1",
|
|
64
64
|
"react": "^19.1.0",
|
|
65
65
|
"react-dom": "^19.1.0",
|
|
66
66
|
"react-hook-form": "^7.60.0",
|