lkd-web-kit 0.8.0 → 0.8.2
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/_virtual/_rolldown/runtime.cjs +23 -0
- package/dist/components/EmptyState/index.cjs +38 -52
- package/dist/components/EmptyState/index.js +37 -48
- package/dist/components/Icon.cjs +46 -50
- package/dist/components/Icon.js +44 -46
- package/dist/components/InfinityLoadMoreButton/index.cjs +30 -42
- package/dist/components/InfinityLoadMoreButton/index.js +28 -38
- package/dist/components/InfinitySelect/index.cjs +126 -168
- package/dist/components/InfinitySelect/index.js +125 -164
- package/dist/components/MyCheckboxGroup/index.cjs +14 -22
- package/dist/components/MyCheckboxGroup/index.js +13 -18
- package/dist/components/MyDateInput/index.cjs +12 -18
- package/dist/components/MyDateInput/index.js +11 -14
- package/dist/components/MyDatePickerInput/CalendarIcon.cjs +45 -64
- package/dist/components/MyDatePickerInput/CalendarIcon.js +43 -61
- package/dist/components/MyDatePickerInput/index.cjs +12 -18
- package/dist/components/MyDatePickerInput/index.js +11 -14
- package/dist/components/MyDateTimePicker/index.cjs +12 -18
- package/dist/components/MyDateTimePicker/index.js +11 -14
- package/dist/components/MyMonthPickerInput/index.cjs +12 -18
- package/dist/components/MyMonthPickerInput/index.js +11 -14
- package/dist/components/MyMultiSelect/index.cjs +9 -9
- package/dist/components/MyMultiSelect/index.js +8 -5
- package/dist/components/MyNotifications/index.cjs +11 -17
- package/dist/components/MyNotifications/index.js +10 -13
- package/dist/components/MyNumberInput/index.cjs +9 -15
- package/dist/components/MyNumberInput/index.js +8 -11
- package/dist/components/MyRadioGroup/index.cjs +14 -22
- package/dist/components/MyRadioGroup/index.js +13 -18
- package/dist/components/MySelect/index.cjs +9 -15
- package/dist/components/MySelect/index.js +8 -11
- package/dist/components/MyTextInput/index.cjs +9 -15
- package/dist/components/MyTextInput/index.js +8 -11
- package/dist/components/MyTextarea/index.cjs +9 -15
- package/dist/components/MyTextarea/index.js +8 -11
- package/dist/components/MyTimeInput/index.cjs +9 -15
- package/dist/components/MyTimeInput/index.js +8 -11
- package/dist/components/NavItems.cjs +28 -38
- package/dist/components/NavItems.js +26 -34
- package/dist/consts/http-status.cjs +66 -69
- package/dist/consts/http-status.js +66 -65
- package/dist/consts/revalidate.cjs +10 -13
- package/dist/consts/revalidate.js +10 -9
- package/dist/contexts/NavigationHistoryContext/hook.cjs +41 -42
- package/dist/contexts/NavigationHistoryContext/hook.js +40 -38
- package/dist/contexts/NavigationHistoryContext/index.cjs +31 -28
- package/dist/contexts/NavigationHistoryContext/index.js +30 -24
- package/dist/contexts/PageDataContext/index.cjs +15 -18
- package/dist/contexts/PageDataContext/index.js +14 -14
- package/dist/form/Form.cjs +19 -28
- package/dist/form/Form.js +18 -24
- package/dist/form/FormSubmitButton.cjs +15 -27
- package/dist/form/FormSubmitButton.js +14 -23
- package/dist/form/base/FormCheckbox.cjs +15 -23
- package/dist/form/base/FormCheckbox.js +14 -19
- package/dist/form/base/FormCheckboxGroup.cjs +10 -16
- package/dist/form/base/FormCheckboxGroup.js +9 -12
- package/dist/form/base/FormDateInput.cjs +10 -16
- package/dist/form/base/FormDateInput.js +9 -12
- package/dist/form/base/FormDatePickerInput.cjs +10 -16
- package/dist/form/base/FormDatePickerInput.js +9 -12
- package/dist/form/base/FormDateTimePicker.cjs +10 -16
- package/dist/form/base/FormDateTimePicker.js +9 -12
- package/dist/form/base/FormMonthPickerInput.cjs +10 -16
- package/dist/form/base/FormMonthPickerInput.js +9 -12
- package/dist/form/base/FormMultiSelect.cjs +10 -10
- package/dist/form/base/FormMultiSelect.js +9 -6
- package/dist/form/base/FormNumberInput.cjs +12 -12
- package/dist/form/base/FormNumberInput.js +10 -8
- package/dist/form/base/FormRadioGroup.cjs +10 -16
- package/dist/form/base/FormRadioGroup.js +9 -12
- package/dist/form/base/FormSelect.cjs +10 -16
- package/dist/form/base/FormSelect.js +9 -12
- package/dist/form/base/FormSelectInfinity.cjs +15 -21
- package/dist/form/base/FormSelectInfinity.js +14 -17
- package/dist/form/base/FormTextInput.cjs +10 -16
- package/dist/form/base/FormTextInput.js +9 -12
- package/dist/form/base/FormTextarea.cjs +10 -10
- package/dist/form/base/FormTextarea.js +9 -6
- package/dist/form/base/FormTimeInput.cjs +18 -24
- package/dist/form/base/FormTimeInput.js +17 -20
- package/dist/form/utils/nullable-but-required.cjs +14 -17
- package/dist/form/utils/nullable-but-required.js +13 -13
- package/dist/form/utils/optional-but-required.cjs +14 -17
- package/dist/form/utils/optional-but-required.js +13 -13
- package/dist/form/utils/zodValidator.cjs +9 -13
- package/dist/form/utils/zodValidator.js +9 -9
- package/dist/hocs/withController.cjs +43 -54
- package/dist/hocs/withController.js +42 -50
- package/dist/hocs/withModalManager.cjs +29 -35
- package/dist/hocs/withModalManager.js +28 -31
- package/dist/hooks/useBreakpoint.cjs +8 -12
- package/dist/hooks/useBreakpoint.js +7 -8
- package/dist/hooks/useFetchNextPageOnScroll.cjs +13 -21
- package/dist/hooks/useFetchNextPageOnScroll.js +13 -17
- package/dist/hooks/useOnScrollProgress.cjs +33 -37
- package/dist/hooks/useOnScrollProgress.js +32 -33
- package/dist/hooks/useUpdateSearchParams.cjs +22 -22
- package/dist/hooks/useUpdateSearchParams.js +21 -18
- package/dist/hooks/useZodConfig.cjs +14 -19
- package/dist/hooks/useZodConfig.js +12 -15
- package/dist/index.cjs +130 -136
- package/dist/index.d.ts +13 -13
- package/dist/index.js +62 -61
- package/dist/mantine/breakpoints-with-px.cjs +9 -12
- package/dist/mantine/breakpoints-with-px.js +9 -8
- package/dist/mantine/my-default-theme.cjs +23 -42
- package/dist/mantine/my-default-theme.js +22 -38
- package/dist/mantine/to-tailwind-colors.cjs +9 -18
- package/dist/mantine/to-tailwind-colors.js +9 -14
- package/dist/utils/array/groupBy.cjs +30 -40
- package/dist/utils/array/groupBy.js +30 -36
- package/dist/utils/array/shuffleArray.cjs +11 -17
- package/dist/utils/array/shuffleArray.js +11 -13
- package/dist/utils/formatBytes.cjs +12 -11
- package/dist/utils/formatBytes.js +12 -7
- package/dist/utils/isInfinityEmpty.cjs +3 -6
- package/dist/utils/isInfinityEmpty.js +3 -2
- package/dist/utils/ky/addBodyJsonHook.cjs +9 -14
- package/dist/utils/ky/addBodyJsonHook.js +8 -10
- package/dist/utils/ky/parseJson.cjs +6 -9
- package/dist/utils/ky/parseJson.js +6 -5
- package/dist/utils/new-route.cjs +30 -39
- package/dist/utils/new-route.js +30 -35
- package/dist/utils/query-stringify.cjs +5 -8
- package/dist/utils/query-stringify.js +5 -4
- package/dist/utils/virtual-styles.cjs +21 -26
- package/dist/utils/virtual-styles.js +21 -22
- package/package.json +20 -19
- package/dist/node_modules/@mantine/notifications/styles.css +0 -42
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.cjs +0 -74
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +0 -45
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.cjs +0 -886
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -872
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.cjs +0 -75
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -68
package/dist/index.cjs
CHANGED
|
@@ -1,136 +1,130 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
const
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
exports.
|
|
70
|
-
exports.
|
|
71
|
-
exports.
|
|
72
|
-
exports.
|
|
73
|
-
exports.
|
|
74
|
-
exports.
|
|
75
|
-
exports.
|
|
76
|
-
exports.
|
|
77
|
-
exports.
|
|
78
|
-
exports.
|
|
79
|
-
exports.
|
|
80
|
-
exports.
|
|
81
|
-
exports.
|
|
82
|
-
exports.
|
|
83
|
-
exports.
|
|
84
|
-
exports.
|
|
85
|
-
exports.
|
|
86
|
-
exports.
|
|
87
|
-
exports.
|
|
88
|
-
exports.
|
|
89
|
-
exports.
|
|
90
|
-
exports.
|
|
91
|
-
exports.
|
|
92
|
-
exports.
|
|
93
|
-
exports.
|
|
94
|
-
exports.
|
|
95
|
-
exports.
|
|
96
|
-
exports.
|
|
97
|
-
exports.
|
|
98
|
-
exports.
|
|
99
|
-
exports.
|
|
100
|
-
exports.
|
|
101
|
-
exports.
|
|
102
|
-
exports.
|
|
103
|
-
exports.
|
|
104
|
-
exports.
|
|
105
|
-
exports.
|
|
106
|
-
exports.
|
|
107
|
-
exports.
|
|
108
|
-
exports.
|
|
109
|
-
exports.
|
|
110
|
-
exports.
|
|
111
|
-
exports.
|
|
112
|
-
exports.
|
|
113
|
-
exports.
|
|
114
|
-
exports.
|
|
115
|
-
exports.
|
|
116
|
-
exports.
|
|
117
|
-
exports.
|
|
118
|
-
exports.
|
|
119
|
-
exports.
|
|
120
|
-
exports.
|
|
121
|
-
exports.
|
|
122
|
-
exports.
|
|
123
|
-
exports.
|
|
124
|
-
exports.
|
|
125
|
-
exports.
|
|
126
|
-
exports.
|
|
127
|
-
exports.
|
|
128
|
-
exports.
|
|
129
|
-
exports.
|
|
130
|
-
exports.
|
|
131
|
-
exports.isInfinityEmpty = isInfinityEmpty.isInfinityEmpty;
|
|
132
|
-
exports.queryStringify = queryStringify.queryStringify;
|
|
133
|
-
exports.createNewRoute = newRoute.createNewRoute;
|
|
134
|
-
exports.newRoute = newRoute.newRoute;
|
|
135
|
-
exports.getVirtualContainerProps = virtualStyles.getVirtualContainerProps;
|
|
136
|
-
exports.getVirtualItemProps = virtualStyles.getVirtualItemProps;
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_Icon = require("./components/Icon.cjs");
|
|
3
|
+
const require_index = require("./components/EmptyState/index.cjs");
|
|
4
|
+
const require_NavItems = require("./components/NavItems.cjs");
|
|
5
|
+
const require_index$1 = require("./components/InfinityLoadMoreButton/index.cjs");
|
|
6
|
+
const require_index$2 = require("./components/MyDatePickerInput/index.cjs");
|
|
7
|
+
const require_index$3 = require("./components/MyDateTimePicker/index.cjs");
|
|
8
|
+
const require_index$4 = require("./components/MyNotifications/index.cjs");
|
|
9
|
+
const require_index$5 = require("./components/MyNumberInput/index.cjs");
|
|
10
|
+
const require_index$6 = require("./components/MySelect/index.cjs");
|
|
11
|
+
const require_index$7 = require("./components/MyTextarea/index.cjs");
|
|
12
|
+
const require_index$8 = require("./components/MyTextInput/index.cjs");
|
|
13
|
+
const require_index$9 = require("./components/MyTimeInput/index.cjs");
|
|
14
|
+
const require_virtual_styles = require("./utils/virtual-styles.cjs");
|
|
15
|
+
const require_index$10 = require("./components/InfinitySelect/index.cjs");
|
|
16
|
+
const require_index$11 = require("./components/MyMultiSelect/index.cjs");
|
|
17
|
+
const require_index$12 = require("./components/MyMonthPickerInput/index.cjs");
|
|
18
|
+
const require_index$13 = require("./components/MyDateInput/index.cjs");
|
|
19
|
+
const require_index$14 = require("./components/MyCheckboxGroup/index.cjs");
|
|
20
|
+
const require_index$15 = require("./components/MyRadioGroup/index.cjs");
|
|
21
|
+
const require_http_status = require("./consts/http-status.cjs");
|
|
22
|
+
const require_revalidate = require("./consts/revalidate.cjs");
|
|
23
|
+
const require_index$16 = require("./contexts/NavigationHistoryContext/index.cjs");
|
|
24
|
+
const require_hook = require("./contexts/NavigationHistoryContext/hook.cjs");
|
|
25
|
+
const require_index$17 = require("./contexts/PageDataContext/index.cjs");
|
|
26
|
+
const require_withController = require("./hocs/withController.cjs");
|
|
27
|
+
const require_withModalManager = require("./hocs/withModalManager.cjs");
|
|
28
|
+
const require_FormCheckbox = require("./form/base/FormCheckbox.cjs");
|
|
29
|
+
const require_FormCheckboxGroup = require("./form/base/FormCheckboxGroup.cjs");
|
|
30
|
+
const require_FormDateInput = require("./form/base/FormDateInput.cjs");
|
|
31
|
+
const require_FormDatePickerInput = require("./form/base/FormDatePickerInput.cjs");
|
|
32
|
+
const require_FormDateTimePicker = require("./form/base/FormDateTimePicker.cjs");
|
|
33
|
+
const require_FormMonthPickerInput = require("./form/base/FormMonthPickerInput.cjs");
|
|
34
|
+
const require_FormMultiSelect = require("./form/base/FormMultiSelect.cjs");
|
|
35
|
+
const require_FormNumberInput = require("./form/base/FormNumberInput.cjs");
|
|
36
|
+
const require_FormRadioGroup = require("./form/base/FormRadioGroup.cjs");
|
|
37
|
+
const require_FormSelect = require("./form/base/FormSelect.cjs");
|
|
38
|
+
const require_FormSelectInfinity = require("./form/base/FormSelectInfinity.cjs");
|
|
39
|
+
const require_FormTextarea = require("./form/base/FormTextarea.cjs");
|
|
40
|
+
const require_FormTextInput = require("./form/base/FormTextInput.cjs");
|
|
41
|
+
const require_FormTimeInput = require("./form/base/FormTimeInput.cjs");
|
|
42
|
+
const require_Form = require("./form/Form.cjs");
|
|
43
|
+
const require_FormSubmitButton = require("./form/FormSubmitButton.cjs");
|
|
44
|
+
const require_nullable_but_required = require("./form/utils/nullable-but-required.cjs");
|
|
45
|
+
const require_optional_but_required = require("./form/utils/optional-but-required.cjs");
|
|
46
|
+
const require_zodValidator = require("./form/utils/zodValidator.cjs");
|
|
47
|
+
const require_breakpoints_with_px = require("./mantine/breakpoints-with-px.cjs");
|
|
48
|
+
const require_useBreakpoint = require("./hooks/useBreakpoint.cjs");
|
|
49
|
+
const require_useOnScrollProgress = require("./hooks/useOnScrollProgress.cjs");
|
|
50
|
+
const require_useFetchNextPageOnScroll = require("./hooks/useFetchNextPageOnScroll.cjs");
|
|
51
|
+
const require_useUpdateSearchParams = require("./hooks/useUpdateSearchParams.cjs");
|
|
52
|
+
const require_useZodConfig = require("./hooks/useZodConfig.cjs");
|
|
53
|
+
const require_to_tailwind_colors = require("./mantine/to-tailwind-colors.cjs");
|
|
54
|
+
const require_my_default_theme = require("./mantine/my-default-theme.cjs");
|
|
55
|
+
const require_formatBytes = require("./utils/formatBytes.cjs");
|
|
56
|
+
const require_addBodyJsonHook = require("./utils/ky/addBodyJsonHook.cjs");
|
|
57
|
+
const require_parseJson = require("./utils/ky/parseJson.cjs");
|
|
58
|
+
const require_groupBy = require("./utils/array/groupBy.cjs");
|
|
59
|
+
const require_shuffleArray = require("./utils/array/shuffleArray.cjs");
|
|
60
|
+
const require_isInfinityEmpty = require("./utils/isInfinityEmpty.cjs");
|
|
61
|
+
const require_query_stringify = require("./utils/query-stringify.cjs");
|
|
62
|
+
const require_new_route = require("./utils/new-route.cjs");
|
|
63
|
+
exports.EmptyState = require_index.EmptyState;
|
|
64
|
+
exports.Form = require_Form.Form;
|
|
65
|
+
exports.FormCheckbox = require_FormCheckbox.FormCheckbox;
|
|
66
|
+
exports.FormCheckboxGroup = require_FormCheckboxGroup.FormCheckboxGroup;
|
|
67
|
+
exports.FormDateInput = require_FormDateInput.FormDateInput;
|
|
68
|
+
exports.FormDatePickerInput = require_FormDatePickerInput.FormDatePickerInput;
|
|
69
|
+
exports.FormDateTimePicker = require_FormDateTimePicker.FormDateTimePicker;
|
|
70
|
+
exports.FormInfinitySelect = require_FormSelectInfinity.FormInfinitySelect;
|
|
71
|
+
exports.FormMonthPickerInput = require_FormMonthPickerInput.FormMonthPickerInput;
|
|
72
|
+
exports.FormMultiSelect = require_FormMultiSelect.FormMultiSelect;
|
|
73
|
+
exports.FormNumberInput = require_FormNumberInput.FormNumberInput;
|
|
74
|
+
exports.FormRadioGroup = require_FormRadioGroup.FormRadioGroup;
|
|
75
|
+
exports.FormSelect = require_FormSelect.FormSelect;
|
|
76
|
+
exports.FormSubmitButton = require_FormSubmitButton.FormSubmitButton;
|
|
77
|
+
exports.FormTextInput = require_FormTextInput.FormTextInput;
|
|
78
|
+
exports.FormTextarea = require_FormTextarea.FormTextarea;
|
|
79
|
+
exports.FormTimeInput = require_FormTimeInput.FormTimeInput;
|
|
80
|
+
exports.HttpStatus = require_http_status.HttpStatus;
|
|
81
|
+
exports.Icon = require_Icon.Icon;
|
|
82
|
+
exports.InfinityLoadMoreButton = require_index$1.InfinityLoadMoreButton;
|
|
83
|
+
exports.InfinitySelect = require_index$10.InfinitySelect;
|
|
84
|
+
exports.MyCheckboxGroup = require_index$14.MyCheckboxGroup;
|
|
85
|
+
exports.MyDateInput = require_index$13.MyDateInput;
|
|
86
|
+
exports.MyDatePickerInput = require_index$2.MyDatePickerInput;
|
|
87
|
+
exports.MyDateTimePicker = require_index$3.MyDateTimePicker;
|
|
88
|
+
exports.MyMonthPickerInput = require_index$12.MyMonthPickerInput;
|
|
89
|
+
exports.MyMultiSelect = require_index$11.MyMultiSelect;
|
|
90
|
+
exports.MyNotifications = require_index$4.MyNotifications;
|
|
91
|
+
exports.MyNumberInput = require_index$5.MyNumberInput;
|
|
92
|
+
exports.MyRadioGroup = require_index$15.MyRadioGroup;
|
|
93
|
+
exports.MySelect = require_index$6.MySelect;
|
|
94
|
+
exports.MyTextInput = require_index$8.MyTextInput;
|
|
95
|
+
exports.MyTextarea = require_index$7.MyTextarea;
|
|
96
|
+
exports.MyTimeInput = require_index$9.MyTimeInput;
|
|
97
|
+
exports.NavItems = require_NavItems.NavItems;
|
|
98
|
+
exports.NavigationHistoryProvider = require_index$16.NavigationHistoryProvider;
|
|
99
|
+
exports.PageDataProvider = require_index$17.PageDataProvider;
|
|
100
|
+
exports.QP_BACK_URL_NAME = require_hook.QP_BACK_URL_NAME;
|
|
101
|
+
exports.Revalidate = require_revalidate.Revalidate;
|
|
102
|
+
exports.addBodyJsonHook = require_addBodyJsonHook.addBodyJsonHook;
|
|
103
|
+
exports.breakpointsWithPx = require_breakpoints_with_px.breakpointsWithPx;
|
|
104
|
+
exports.createNewRoute = require_new_route.createNewRoute;
|
|
105
|
+
exports.formatBytes = require_formatBytes.formatBytes;
|
|
106
|
+
exports.getVirtualContainerProps = require_virtual_styles.getVirtualContainerProps;
|
|
107
|
+
exports.getVirtualItemProps = require_virtual_styles.getVirtualItemProps;
|
|
108
|
+
exports.groupBy = require_groupBy.groupBy;
|
|
109
|
+
exports.indexBy = require_groupBy.indexBy;
|
|
110
|
+
exports.isInfinityEmpty = require_isInfinityEmpty.isInfinityEmpty;
|
|
111
|
+
exports.myDefaultTheme = require_my_default_theme.myDefaultTheme;
|
|
112
|
+
exports.newRoute = require_new_route.newRoute;
|
|
113
|
+
exports.nullableButRequired = require_nullable_but_required.nullableButRequired;
|
|
114
|
+
exports.numberToTimeInput = require_FormTimeInput.numberToTimeInput;
|
|
115
|
+
exports.optionalButRequired = require_optional_but_required.optionalButRequired;
|
|
116
|
+
exports.parseJSON = require_parseJson.parseJSON;
|
|
117
|
+
exports.queryStringify = require_query_stringify.queryStringify;
|
|
118
|
+
exports.shuffleArray = require_shuffleArray.shuffleArray;
|
|
119
|
+
exports.timeInputToNumber = require_FormTimeInput.timeInputToNumber;
|
|
120
|
+
exports.toTailwindColors = require_to_tailwind_colors.toTailwindColors;
|
|
121
|
+
exports.useBreakpoint = require_useBreakpoint.useBreakpoint;
|
|
122
|
+
exports.useFetchNextPageOnScroll = require_useFetchNextPageOnScroll.useFetchNextPageOnScroll;
|
|
123
|
+
exports.useNavigationHistory = require_hook.useNavigationHistory;
|
|
124
|
+
exports.useOnScrollProgress = require_useOnScrollProgress.useOnScrollProgress;
|
|
125
|
+
exports.usePageData = require_index$17.usePageData;
|
|
126
|
+
exports.useUpdateSearchParams = require_useUpdateSearchParams.useUpdateSearchParams;
|
|
127
|
+
exports.useZodConfig = require_useZodConfig.useZodConfig;
|
|
128
|
+
exports.withController = require_withController.withController;
|
|
129
|
+
exports.withModalManager = require_withModalManager.withModalManager;
|
|
130
|
+
exports.zodValidator = require_zodValidator.zodValidator;
|
package/dist/index.d.ts
CHANGED
|
@@ -113,11 +113,11 @@ export declare const Form: <T extends FieldValues, TContext = any, TT extends T
|
|
|
113
113
|
export declare function formatBytes(bytes: number, decimals?: number): string;
|
|
114
114
|
|
|
115
115
|
export declare const FormCheckbox: FC<CheckboxProps & WithControllerProps & {
|
|
116
|
-
onValueChange?: ChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefined;
|
|
116
|
+
onValueChange?: ChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefined;
|
|
117
117
|
}>;
|
|
118
118
|
|
|
119
119
|
export declare const FormCheckboxGroup: FC<MyCheckboxGroupProps & WithControllerProps & {
|
|
120
|
-
onValueChange?: ((value: string[]) => void) | undefined;
|
|
120
|
+
onValueChange?: ((value: string[]) => void) | undefined;
|
|
121
121
|
}>;
|
|
122
122
|
|
|
123
123
|
export declare type FormCheckboxGroupProps = MyCheckboxGroupProps & WithControllerProps;
|
|
@@ -125,19 +125,19 @@ export declare type FormCheckboxGroupProps = MyCheckboxGroupProps & WithControll
|
|
|
125
125
|
export declare type FormCheckboxProps = CheckboxProps & WithControllerProps;
|
|
126
126
|
|
|
127
127
|
export declare const FormDateInput: FC<WithControllerProps & MyDateInputProps & {
|
|
128
|
-
onValueChange?: ((value: DateStringValue | null) => void) | undefined;
|
|
128
|
+
onValueChange?: ((value: DateStringValue | null) => void) | undefined;
|
|
129
129
|
}>;
|
|
130
130
|
|
|
131
131
|
export declare type FormDateInputProps = WithControllerProps & MyDateInputProps;
|
|
132
132
|
|
|
133
133
|
export declare const FormDatePickerInput: FC<WithControllerProps & MyDatePickerInputProps & {
|
|
134
|
-
onValueChange?: ((value: string | string[] | DatesRangeValue<string> | null) => void) | undefined;
|
|
134
|
+
onValueChange?: ((value: string | string[] | DatesRangeValue<string> | null) => void) | undefined;
|
|
135
135
|
}>;
|
|
136
136
|
|
|
137
137
|
export declare type FormDatePickerInputProps = WithControllerProps & MyDatePickerInputProps;
|
|
138
138
|
|
|
139
139
|
export declare const FormDateTimePicker: FC<DateTimePickerProps & WithControllerProps & {
|
|
140
|
-
onValueChange?: ((value: DateStringValue | null) => void) | undefined;
|
|
140
|
+
onValueChange?: ((value: DateStringValue | null) => void) | undefined;
|
|
141
141
|
}>;
|
|
142
142
|
|
|
143
143
|
export declare type FormDateTimePickerProps = WithControllerProps & MyDateTimePickerProps;
|
|
@@ -157,13 +157,13 @@ export declare const FormInfinitySelect: <T>(props: FormInfinitySelectProps<T>)
|
|
|
157
157
|
export declare type FormInfinitySelectProps<T = unknown> = InfinitySelectProps<T> & WithControllerProps;
|
|
158
158
|
|
|
159
159
|
export declare const FormMonthPickerInput: FC<MyMonthPickerInputProps & WithControllerProps & {
|
|
160
|
-
onValueChange?: ((value: string | string[] | DatesRangeValue<string> | null) => void) | undefined;
|
|
160
|
+
onValueChange?: ((value: string | string[] | DatesRangeValue<string> | null) => void) | undefined;
|
|
161
161
|
}>;
|
|
162
162
|
|
|
163
163
|
export declare type FormMonthPickerInputProps = WithControllerProps & MyMonthPickerInputProps;
|
|
164
164
|
|
|
165
165
|
export declare const FormMultiSelect: FC<MyMultiSelectProps & WithControllerProps & {
|
|
166
|
-
onValueChange?: ((value: string[]) => void) | undefined;
|
|
166
|
+
onValueChange?: ((value: string[]) => void) | undefined;
|
|
167
167
|
}>;
|
|
168
168
|
|
|
169
169
|
export declare type FormMultiSelectProps = MyMultiSelectProps & WithControllerProps;
|
|
@@ -179,13 +179,13 @@ declare interface FormProps<T extends FieldValues, TContext = any, TT extends T
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
export declare const FormRadioGroup: FC<MyRadioGroupProps & WithControllerProps & {
|
|
182
|
-
onValueChange?: ((value: string) => void) | undefined;
|
|
182
|
+
onValueChange?: ((value: string) => void) | undefined;
|
|
183
183
|
}>;
|
|
184
184
|
|
|
185
185
|
export declare type FormRadioGroupProps = MyRadioGroupProps & WithControllerProps;
|
|
186
186
|
|
|
187
187
|
export declare const FormSelect: FC<MySelectProps & WithControllerProps & {
|
|
188
|
-
onValueChange?: ((value: string | null, option: ComboboxItem<string>) => void) | undefined;
|
|
188
|
+
onValueChange?: ((value: string | null, option: ComboboxItem<string>) => void) | undefined;
|
|
189
189
|
}>;
|
|
190
190
|
|
|
191
191
|
export declare type FormSelectProps = MySelectProps & WithControllerProps;
|
|
@@ -197,13 +197,13 @@ export declare interface FormSubmitButtonProps extends ButtonProps, ElementProps
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
export declare const FormTextarea: FC<TextareaProps & WithControllerProps & {
|
|
200
|
-
onValueChange?: ChangeEventHandler<HTMLTextAreaElement, HTMLTextAreaElement> | undefined;
|
|
200
|
+
onValueChange?: ChangeEventHandler<HTMLTextAreaElement, HTMLTextAreaElement> | undefined;
|
|
201
201
|
}>;
|
|
202
202
|
|
|
203
203
|
export declare type FormTextareaProps = MyTextareaProps & WithControllerProps;
|
|
204
204
|
|
|
205
205
|
export declare const FormTextInput: FC<WithControllerProps & MyTextInputProps & {
|
|
206
|
-
onValueChange?: ChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefined;
|
|
206
|
+
onValueChange?: ChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefined;
|
|
207
207
|
}>;
|
|
208
208
|
|
|
209
209
|
export declare type FormTextInputProps = WithControllerProps & MyTextInputProps;
|
|
@@ -211,7 +211,7 @@ export declare type FormTextInputProps = WithControllerProps & MyTextInputProps;
|
|
|
211
211
|
export declare type FormTimeInput = MyTimeInputProps & WithControllerProps;
|
|
212
212
|
|
|
213
213
|
export declare const FormTimeInput: FC<TimeInputProps & WithControllerProps & {
|
|
214
|
-
onValueChange?: ChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefined;
|
|
214
|
+
onValueChange?: ChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefined;
|
|
215
215
|
}>;
|
|
216
216
|
|
|
217
217
|
export declare const getVirtualContainerProps: (virtualizer: {
|
|
@@ -627,7 +627,7 @@ export declare const useZodConfig: () => void;
|
|
|
627
627
|
export declare const withController: <P extends {
|
|
628
628
|
onChange?: any;
|
|
629
629
|
}>(WrappedComponent: React.ComponentType<FormFieldProps<P>>, getControllerProps?: (fieldProps: P) => Omit<Partial<ControllerProps>, "render">) => FC<P & WithControllerProps & {
|
|
630
|
-
onValueChange?: P["onChange"];
|
|
630
|
+
onValueChange?: P["onChange"];
|
|
631
631
|
}>;
|
|
632
632
|
|
|
633
633
|
export declare interface WithControllerProps {
|
package/dist/index.js
CHANGED
|
@@ -1,61 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
1
|
+
import { Icon } from "./components/Icon.js";
|
|
2
|
+
import { EmptyState } from "./components/EmptyState/index.js";
|
|
3
|
+
import { NavItems } from "./components/NavItems.js";
|
|
4
|
+
import { InfinityLoadMoreButton } from "./components/InfinityLoadMoreButton/index.js";
|
|
5
|
+
import { MyDatePickerInput } from "./components/MyDatePickerInput/index.js";
|
|
6
|
+
import { MyDateTimePicker } from "./components/MyDateTimePicker/index.js";
|
|
7
|
+
import { MyNotifications } from "./components/MyNotifications/index.js";
|
|
8
|
+
import { MyNumberInput } from "./components/MyNumberInput/index.js";
|
|
9
|
+
import { MySelect } from "./components/MySelect/index.js";
|
|
10
|
+
import { MyTextarea } from "./components/MyTextarea/index.js";
|
|
11
|
+
import { MyTextInput } from "./components/MyTextInput/index.js";
|
|
12
|
+
import { MyTimeInput } from "./components/MyTimeInput/index.js";
|
|
13
|
+
import { getVirtualContainerProps, getVirtualItemProps } from "./utils/virtual-styles.js";
|
|
14
|
+
import { InfinitySelect } from "./components/InfinitySelect/index.js";
|
|
15
|
+
import { MyMultiSelect } from "./components/MyMultiSelect/index.js";
|
|
16
|
+
import { MyMonthPickerInput } from "./components/MyMonthPickerInput/index.js";
|
|
17
|
+
import { MyDateInput } from "./components/MyDateInput/index.js";
|
|
18
|
+
import { MyCheckboxGroup } from "./components/MyCheckboxGroup/index.js";
|
|
19
|
+
import { MyRadioGroup } from "./components/MyRadioGroup/index.js";
|
|
20
|
+
import { HttpStatus } from "./consts/http-status.js";
|
|
21
|
+
import { Revalidate } from "./consts/revalidate.js";
|
|
22
|
+
import { NavigationHistoryProvider } from "./contexts/NavigationHistoryContext/index.js";
|
|
23
|
+
import { QP_BACK_URL_NAME, useNavigationHistory } from "./contexts/NavigationHistoryContext/hook.js";
|
|
24
|
+
import { PageDataProvider, usePageData } from "./contexts/PageDataContext/index.js";
|
|
25
|
+
import { withController } from "./hocs/withController.js";
|
|
26
|
+
import { withModalManager } from "./hocs/withModalManager.js";
|
|
27
|
+
import { FormCheckbox } from "./form/base/FormCheckbox.js";
|
|
28
|
+
import { FormCheckboxGroup } from "./form/base/FormCheckboxGroup.js";
|
|
29
|
+
import { FormDateInput } from "./form/base/FormDateInput.js";
|
|
30
|
+
import { FormDatePickerInput } from "./form/base/FormDatePickerInput.js";
|
|
31
|
+
import { FormDateTimePicker } from "./form/base/FormDateTimePicker.js";
|
|
32
|
+
import { FormMonthPickerInput } from "./form/base/FormMonthPickerInput.js";
|
|
33
|
+
import { FormMultiSelect } from "./form/base/FormMultiSelect.js";
|
|
34
|
+
import { FormNumberInput } from "./form/base/FormNumberInput.js";
|
|
35
|
+
import { FormRadioGroup } from "./form/base/FormRadioGroup.js";
|
|
36
|
+
import { FormSelect } from "./form/base/FormSelect.js";
|
|
37
|
+
import { FormInfinitySelect } from "./form/base/FormSelectInfinity.js";
|
|
38
|
+
import { FormTextarea } from "./form/base/FormTextarea.js";
|
|
39
|
+
import { FormTextInput } from "./form/base/FormTextInput.js";
|
|
40
|
+
import { FormTimeInput, numberToTimeInput, timeInputToNumber } from "./form/base/FormTimeInput.js";
|
|
41
|
+
import { Form } from "./form/Form.js";
|
|
42
|
+
import { FormSubmitButton } from "./form/FormSubmitButton.js";
|
|
43
|
+
import { nullableButRequired } from "./form/utils/nullable-but-required.js";
|
|
44
|
+
import { optionalButRequired } from "./form/utils/optional-but-required.js";
|
|
45
|
+
import { zodValidator } from "./form/utils/zodValidator.js";
|
|
46
|
+
import { breakpointsWithPx } from "./mantine/breakpoints-with-px.js";
|
|
47
|
+
import { useBreakpoint } from "./hooks/useBreakpoint.js";
|
|
48
|
+
import { useOnScrollProgress } from "./hooks/useOnScrollProgress.js";
|
|
49
|
+
import { useFetchNextPageOnScroll } from "./hooks/useFetchNextPageOnScroll.js";
|
|
50
|
+
import { useUpdateSearchParams } from "./hooks/useUpdateSearchParams.js";
|
|
51
|
+
import { useZodConfig } from "./hooks/useZodConfig.js";
|
|
52
|
+
import { toTailwindColors } from "./mantine/to-tailwind-colors.js";
|
|
53
|
+
import { myDefaultTheme } from "./mantine/my-default-theme.js";
|
|
54
|
+
import { formatBytes } from "./utils/formatBytes.js";
|
|
55
|
+
import { addBodyJsonHook } from "./utils/ky/addBodyJsonHook.js";
|
|
56
|
+
import { parseJSON } from "./utils/ky/parseJson.js";
|
|
57
|
+
import { groupBy, indexBy } from "./utils/array/groupBy.js";
|
|
58
|
+
import { shuffleArray } from "./utils/array/shuffleArray.js";
|
|
59
|
+
import { isInfinityEmpty } from "./utils/isInfinityEmpty.js";
|
|
60
|
+
import { queryStringify } from "./utils/query-stringify.js";
|
|
61
|
+
import { createNewRoute, newRoute } from "./utils/new-route.js";
|
|
62
|
+
export { EmptyState, Form, FormCheckbox, FormCheckboxGroup, FormDateInput, FormDatePickerInput, FormDateTimePicker, FormInfinitySelect, FormMonthPickerInput, FormMultiSelect, FormNumberInput, FormRadioGroup, FormSelect, FormSubmitButton, FormTextInput, FormTextarea, FormTimeInput, HttpStatus, Icon, InfinityLoadMoreButton, InfinitySelect, MyCheckboxGroup, MyDateInput, MyDatePickerInput, MyDateTimePicker, MyMonthPickerInput, MyMultiSelect, MyNotifications, MyNumberInput, MyRadioGroup, MySelect, MyTextInput, MyTextarea, MyTimeInput, NavItems, NavigationHistoryProvider, PageDataProvider, QP_BACK_URL_NAME, Revalidate, addBodyJsonHook, breakpointsWithPx, createNewRoute, formatBytes, getVirtualContainerProps, getVirtualItemProps, groupBy, indexBy, isInfinityEmpty, myDefaultTheme, newRoute, nullableButRequired, numberToTimeInput, optionalButRequired, parseJSON, queryStringify, shuffleArray, timeInputToNumber, toTailwindColors, useBreakpoint, useFetchNextPageOnScroll, useNavigationHistory, useOnScrollProgress, usePageData, useUpdateSearchParams, useZodConfig, withController, withModalManager, zodValidator };
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
lg: "1024px",
|
|
10
|
-
xl: "1280px",
|
|
11
|
-
["2xl"]: "1536px"
|
|
1
|
+
//#region src/mantine/breakpoints-with-px.ts
|
|
2
|
+
var breakpointsWithPx = {
|
|
3
|
+
xs: "576px",
|
|
4
|
+
sm: "640px",
|
|
5
|
+
md: "768px",
|
|
6
|
+
lg: "1024px",
|
|
7
|
+
xl: "1280px",
|
|
8
|
+
["2xl"]: "1536px"
|
|
12
9
|
};
|
|
13
|
-
|
|
10
|
+
//#endregion
|
|
14
11
|
exports.breakpointsWithPx = breakpointsWithPx;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
//#region src/mantine/breakpoints-with-px.ts
|
|
2
|
+
var breakpointsWithPx = {
|
|
3
|
+
xs: "576px",
|
|
4
|
+
sm: "640px",
|
|
5
|
+
md: "768px",
|
|
6
|
+
lg: "1024px",
|
|
7
|
+
xl: "1280px",
|
|
8
|
+
["2xl"]: "1536px"
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
+
//#endregion
|
|
10
11
|
export { breakpointsWithPx };
|