@max-ts/kit 0.28.0 → 1.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/lib/components/Button/Button.d.ts +1 -1
- package/lib/components/Button/Button.d.ts.map +1 -1
- package/lib/components/Combobox/Combobox.d.ts +22 -0
- package/lib/components/Combobox/Combobox.d.ts.map +1 -0
- package/lib/components/Combobox/index.d.ts +3 -0
- package/lib/components/Combobox/index.d.ts.map +1 -0
- package/lib/components/Combobox/styles.css.d.ts +22 -0
- package/lib/components/Combobox/styles.css.d.ts.map +1 -0
- package/lib/components/Combobox/types.d.ts +26 -0
- package/lib/components/Combobox/types.d.ts.map +1 -0
- package/lib/components/Input/styles.css.d.ts +0 -2
- package/lib/components/Input/styles.css.d.ts.map +1 -1
- package/lib/components/InputGroup/InputGroup.d.ts +11 -0
- package/lib/components/InputGroup/InputGroup.d.ts.map +1 -0
- package/lib/components/InputGroup/index.d.ts +3 -0
- package/lib/components/InputGroup/index.d.ts.map +1 -0
- package/lib/components/InputGroup/styles.css.d.ts +10 -0
- package/lib/components/InputGroup/styles.css.d.ts.map +1 -0
- package/lib/components/InputGroup/types.d.ts +16 -0
- package/lib/components/InputGroup/types.d.ts.map +1 -0
- package/lib/components/PageLayout/Header/Header.d.ts +7 -33
- package/lib/components/PageLayout/Header/Header.d.ts.map +1 -1
- package/lib/components/PageLayout/Header/styles.css.d.ts +3 -8
- package/lib/components/PageLayout/Header/styles.css.d.ts.map +1 -1
- package/lib/components/PageLayout/PageLayout.d.ts +1 -1
- package/lib/components/Textarea/Textarea.d.ts +5 -0
- package/lib/components/Textarea/Textarea.d.ts.map +1 -0
- package/lib/components/Textarea/index.d.ts +2 -0
- package/lib/components/Textarea/index.d.ts.map +1 -0
- package/lib/components/Textarea/styles.css.d.ts +2 -0
- package/lib/components/Textarea/styles.css.d.ts.map +1 -0
- package/lib/components/index.d.ts +3 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.mjs +338 -152
- package/lib/stories/Button.stories.d.ts +1 -1
- package/lib/stories/Combobox.stories.d.ts +8 -0
- package/lib/stories/Combobox.stories.d.ts.map +1 -0
- package/lib/stories/DashboardLayout.stories.d.ts.map +1 -1
- package/lib/stories/InputGroup.stories.d.ts +8 -0
- package/lib/stories/InputGroup.stories.d.ts.map +1 -0
- package/lib/stories/MaskField.stories.d.ts +0 -1
- package/lib/stories/MaskField.stories.d.ts.map +1 -1
- package/lib/stories/Sidebar/Sidebar.stories.d.ts.map +1 -1
- package/lib/stories/Textarea.stories.d.ts +8 -0
- package/lib/stories/Textarea.stories.d.ts.map +1 -0
- package/lib/styles.css +515 -81
- package/package.json +15 -12
- package/lib/form/Form/Form.d.ts +0 -46
- package/lib/form/Form/Form.d.ts.map +0 -1
- package/lib/form/Form/index.d.ts +0 -2
- package/lib/form/Form/index.d.ts.map +0 -1
- package/lib/form/FormMaskField/FormMaskField.d.ts +0 -5
- package/lib/form/FormMaskField/FormMaskField.d.ts.map +0 -1
- package/lib/form/FormMaskField/index.d.ts +0 -3
- package/lib/form/FormMaskField/index.d.ts.map +0 -1
- package/lib/form/FormMaskField/types.d.ts +0 -5
- package/lib/form/FormMaskField/types.d.ts.map +0 -1
- package/lib/form/FormSubmitButton/FormSubmitButton.d.ts +0 -7
- package/lib/form/FormSubmitButton/FormSubmitButton.d.ts.map +0 -1
- package/lib/form/FormSubmitButton/index.d.ts +0 -2
- package/lib/form/FormSubmitButton/index.d.ts.map +0 -1
- package/lib/form/FormTextField/FormTextField.d.ts +0 -8
- package/lib/form/FormTextField/FormTextField.d.ts.map +0 -1
- package/lib/form/FormTextField/index.d.ts +0 -3
- package/lib/form/FormTextField/index.d.ts.map +0 -1
- package/lib/form/FormTextField/types.d.ts +0 -5
- package/lib/form/FormTextField/types.d.ts.map +0 -1
- package/lib/form/external.d.ts +0 -2
- package/lib/form/external.d.ts.map +0 -1
- package/lib/form/hooks/index.d.ts +0 -3
- package/lib/form/hooks/index.d.ts.map +0 -1
- package/lib/form/hooks/useForm/index.d.ts +0 -2
- package/lib/form/hooks/useForm/index.d.ts.map +0 -1
- package/lib/form/hooks/useForm/useForm.d.ts +0 -5
- package/lib/form/hooks/useForm/useForm.d.ts.map +0 -1
- package/lib/form/hooks/useFormContext/index.d.ts +0 -2
- package/lib/form/hooks/useFormContext/index.d.ts.map +0 -1
- package/lib/form/index.d.ts +0 -8
- package/lib/form/index.d.ts.map +0 -1
- package/lib/form/types.d.ts +0 -8
- package/lib/form/types.d.ts.map +0 -1
package/lib/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Accordion, Checkbox } from "@base-ui/react";
|
|
3
3
|
import clsx_0, { clsx } from "clsx";
|
|
4
|
-
import { ArrowDownNarrowWide, ArrowDownUp, ArrowDownWideNarrow, Calendar1, Check, CheckIcon, ChevronDown, ChevronLeft, ChevronRight, ChevronRightIcon, ChevronUp, CircleCheck, CircleIcon, Copy, Ellipsis as external_lucide_react_Ellipsis, EllipsisVertical, Info, MoreHorizontalIcon, OctagonAlert,
|
|
4
|
+
import { ArrowDownNarrowWide, ArrowDownUp, ArrowDownWideNarrow, Calendar1, Check, CheckIcon, ChevronDown, ChevronDownIcon, ChevronLeft, ChevronRight, ChevronRightIcon, ChevronUp, CircleCheck, CircleIcon, Copy, Ellipsis as external_lucide_react_Ellipsis, EllipsisVertical, Info, MoreHorizontalIcon, OctagonAlert, PanelLeftIcon, TriangleAlert, XIcon } from "lucide-react";
|
|
5
5
|
import { AlertDialog } from "@base-ui/react/alert-dialog";
|
|
6
6
|
import { Button } from "@base-ui/react/button";
|
|
7
7
|
import { Avatar } from "@base-ui/react/avatar";
|
|
@@ -13,6 +13,7 @@ import { ru } from "react-day-picker/locale";
|
|
|
13
13
|
import react, { createContext, createElement, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
14
14
|
import embla_carousel_react from "embla-carousel-react";
|
|
15
15
|
import { Collapsible } from "@base-ui/react/collapsible";
|
|
16
|
+
import { Combobox } from "@base-ui/react/combobox";
|
|
16
17
|
import { Popover } from "@base-ui/react/popover";
|
|
17
18
|
import { Tooltip } from "@base-ui/react/tooltip";
|
|
18
19
|
import { Menu } from "@base-ui/react/menu";
|
|
@@ -27,7 +28,6 @@ import { Radio } from "@base-ui/react/radio";
|
|
|
27
28
|
import { Slider } from "@base-ui/react/slider";
|
|
28
29
|
import { Select } from "@base-ui/react/select";
|
|
29
30
|
import { Tabs } from "@base-ui/react/tabs";
|
|
30
|
-
import { Controller, FormProvider, useController, useFieldArray, useForm, useFormContext, useWatch } from "react-hook-form";
|
|
31
31
|
import * as __rspack_external_react from "react";
|
|
32
32
|
var __webpack_require__ = {};
|
|
33
33
|
(()=>{
|
|
@@ -144,8 +144,8 @@ var button_css_endAdornment = 'style__1ersxw1f';
|
|
|
144
144
|
var fullWidthStyle = 'style__1ersxw13';
|
|
145
145
|
var loading = 'style__1ersxw12';
|
|
146
146
|
var button_css_startAdornment = 'style__1ersxw1e';
|
|
147
|
-
const Button_Button = ({ className, variant = 'default', size = 'md', startAdornment, endAdornment, isLoading = false, fullWidth, children, ...props })=>/*#__PURE__*/ jsxs(Button, {
|
|
148
|
-
nativeButton:
|
|
147
|
+
const Button_Button = ({ className, variant = 'default', size = 'md', startAdornment, endAdornment, isLoading = false, fullWidth, children, nativeButton, ...props })=>/*#__PURE__*/ jsxs(Button, {
|
|
148
|
+
nativeButton: nativeButton ?? !props.render,
|
|
149
149
|
className: clsx(buttonBase, buttonVariants[variant], buttonSizes[size], {
|
|
150
150
|
[fullWidthStyle]: fullWidth,
|
|
151
151
|
[loading]: isLoading
|
|
@@ -1069,8 +1069,283 @@ function Collapsible_Content({ ...props }) {
|
|
|
1069
1069
|
}
|
|
1070
1070
|
Collapsible_Collapsible.Trigger = Collapsible_Trigger;
|
|
1071
1071
|
Collapsible_Collapsible.Content = Collapsible_Content;
|
|
1072
|
+
var addon = 'style__1rv6t1j1';
|
|
1073
|
+
var addonAlign = {
|
|
1074
|
+
'inline-start': 'inline-start__1rv6t1j2',
|
|
1075
|
+
'inline-end': 'inline-end__1rv6t1j3',
|
|
1076
|
+
'block-start': 'block-start__1rv6t1j4',
|
|
1077
|
+
'block-end': 'block-end__1rv6t1j5'
|
|
1078
|
+
};
|
|
1079
|
+
var InputGroup_styles_css_button = 'style__1rv6t1j6';
|
|
1080
|
+
var buttonSize = {
|
|
1081
|
+
xs: 'xs__1rv6t1j7',
|
|
1082
|
+
sm: 'sm__1rv6t1j8',
|
|
1083
|
+
'icon-xs': 'icon-xs__1rv6t1j9',
|
|
1084
|
+
'icon-sm': 'icon-sm__1rv6t1ja'
|
|
1085
|
+
};
|
|
1086
|
+
var control = 'style__1rv6t1jc';
|
|
1087
|
+
var input = 'style__1rv6t1jd';
|
|
1088
|
+
var InputGroup_styles_css_root = 'style__1rv6t1j0';
|
|
1089
|
+
var InputGroup_styles_css_text = 'style__1rv6t1jb';
|
|
1090
|
+
var styles_css_textarea = 'style__1rv6t1je';
|
|
1091
|
+
function InputGroup({ className, ...props }) {
|
|
1092
|
+
return /*#__PURE__*/ jsx("div", {
|
|
1093
|
+
"data-slot": "input-group",
|
|
1094
|
+
className: clsx(InputGroup_styles_css_root, className),
|
|
1095
|
+
...props
|
|
1096
|
+
});
|
|
1097
|
+
}
|
|
1098
|
+
function Addon({ className, align = 'inline-start', ...props }) {
|
|
1099
|
+
return /*#__PURE__*/ jsx("div", {
|
|
1100
|
+
"data-slot": "input-group-addon",
|
|
1101
|
+
"data-align": align,
|
|
1102
|
+
className: clsx(addon, addonAlign[align], className),
|
|
1103
|
+
...props
|
|
1104
|
+
});
|
|
1105
|
+
}
|
|
1106
|
+
function InputGroup_Button({ className, type = 'button', variant = 'ghost', size = 'xs', ...props }) {
|
|
1107
|
+
return /*#__PURE__*/ jsx(Button_Button, {
|
|
1108
|
+
type: type,
|
|
1109
|
+
"data-size": size,
|
|
1110
|
+
variant: variant,
|
|
1111
|
+
className: clsx(InputGroup_styles_css_button, buttonSize[size], className),
|
|
1112
|
+
...props
|
|
1113
|
+
});
|
|
1114
|
+
}
|
|
1115
|
+
function InputGroup_Text({ className, ...props }) {
|
|
1116
|
+
return /*#__PURE__*/ jsx("span", {
|
|
1117
|
+
"data-slot": "input-group-text",
|
|
1118
|
+
className: clsx(InputGroup_styles_css_text, className),
|
|
1119
|
+
...props
|
|
1120
|
+
});
|
|
1121
|
+
}
|
|
1122
|
+
function Input({ className, ...props }) {
|
|
1123
|
+
return /*#__PURE__*/ jsx("input", {
|
|
1124
|
+
"data-slot": "input-group-control",
|
|
1125
|
+
className: clsx(control, input, className),
|
|
1126
|
+
...props
|
|
1127
|
+
});
|
|
1128
|
+
}
|
|
1129
|
+
function Textarea({ className, ...props }) {
|
|
1130
|
+
return /*#__PURE__*/ jsx("textarea", {
|
|
1131
|
+
"data-slot": "input-group-control",
|
|
1132
|
+
className: clsx(control, styles_css_textarea, className),
|
|
1133
|
+
...props
|
|
1134
|
+
});
|
|
1135
|
+
}
|
|
1136
|
+
InputGroup.Addon = Addon;
|
|
1137
|
+
InputGroup.Button = InputGroup_Button;
|
|
1138
|
+
InputGroup.Text = InputGroup_Text;
|
|
1139
|
+
InputGroup.Input = Input;
|
|
1140
|
+
InputGroup.Textarea = Textarea;
|
|
1141
|
+
var chip = 'style__1udu12rh';
|
|
1142
|
+
var chipRemove = 'style__1udu12rj';
|
|
1143
|
+
var chipRemoveButton = 'style__1udu12rk';
|
|
1144
|
+
var chipRemoveSize = {
|
|
1145
|
+
'icon-xs': 'icon-xs__1udu12rm'
|
|
1146
|
+
};
|
|
1147
|
+
var chipWithRemove = 'style__1udu12ri';
|
|
1148
|
+
var chips = 'style__1udu12rg';
|
|
1149
|
+
var chipsInput = 'style__1udu12rl';
|
|
1150
|
+
var clearIcon = 'style__1udu12r4';
|
|
1151
|
+
var Combobox_styles_css_content = 'style__1udu12r9';
|
|
1152
|
+
var controlButton = 'style__1udu12r5';
|
|
1153
|
+
var empty = 'style__1udu12re';
|
|
1154
|
+
var inputGroup = 'style__1udu12r6';
|
|
1155
|
+
var inputTrigger = 'style__1udu12r7';
|
|
1156
|
+
var Combobox_styles_css_item = 'style__1udu12rb';
|
|
1157
|
+
var itemIndicator = 'style__1udu12rc';
|
|
1158
|
+
var styles_css_label = 'style__1udu12rd';
|
|
1159
|
+
var styles_css_list = 'style__1udu12ra';
|
|
1160
|
+
var positioner = 'style__1udu12r8';
|
|
1161
|
+
var Combobox_styles_css_separator = 'style__1udu12rf';
|
|
1162
|
+
var Combobox_styles_css_trigger = 'style__1udu12r2';
|
|
1163
|
+
var styles_css_triggerIcon = 'style__1udu12r3';
|
|
1164
|
+
function Combobox_Combobox(props) {
|
|
1165
|
+
return /*#__PURE__*/ jsx(Combobox.Root, {
|
|
1166
|
+
"data-slot": "combobox",
|
|
1167
|
+
...props
|
|
1168
|
+
});
|
|
1169
|
+
}
|
|
1170
|
+
function Value(props) {
|
|
1171
|
+
return /*#__PURE__*/ jsx(Combobox.Value, {
|
|
1172
|
+
...props
|
|
1173
|
+
});
|
|
1174
|
+
}
|
|
1175
|
+
function Combobox_Trigger({ className, children, ...props }) {
|
|
1176
|
+
return /*#__PURE__*/ jsxs(Combobox.Trigger, {
|
|
1177
|
+
"data-slot": "combobox-trigger",
|
|
1178
|
+
className: clsx(controlButton, Combobox_styles_css_trigger, className),
|
|
1179
|
+
...props,
|
|
1180
|
+
children: [
|
|
1181
|
+
children,
|
|
1182
|
+
/*#__PURE__*/ jsx(ChevronDownIcon, {
|
|
1183
|
+
className: styles_css_triggerIcon
|
|
1184
|
+
})
|
|
1185
|
+
]
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1188
|
+
function Clear({ className, children, ...props }) {
|
|
1189
|
+
return /*#__PURE__*/ jsx(Combobox.Clear, {
|
|
1190
|
+
"data-slot": "combobox-clear",
|
|
1191
|
+
className: clsx(controlButton, className),
|
|
1192
|
+
...props,
|
|
1193
|
+
children: children ?? /*#__PURE__*/ jsx(XIcon, {
|
|
1194
|
+
className: clearIcon
|
|
1195
|
+
})
|
|
1196
|
+
});
|
|
1197
|
+
}
|
|
1198
|
+
function Combobox_Input({ className, children, disabled = false, showTrigger = true, showClear = false, ...props }) {
|
|
1199
|
+
return /*#__PURE__*/ jsxs(Combobox.InputGroup, {
|
|
1200
|
+
render: /*#__PURE__*/ jsx(InputGroup, {
|
|
1201
|
+
className: clsx(inputGroup, className)
|
|
1202
|
+
}),
|
|
1203
|
+
children: [
|
|
1204
|
+
/*#__PURE__*/ jsx(Combobox.Input, {
|
|
1205
|
+
render: /*#__PURE__*/ jsx(InputGroup.Input, {
|
|
1206
|
+
disabled: disabled
|
|
1207
|
+
}),
|
|
1208
|
+
disabled: disabled,
|
|
1209
|
+
...props
|
|
1210
|
+
}),
|
|
1211
|
+
/*#__PURE__*/ jsxs(InputGroup.Addon, {
|
|
1212
|
+
align: "inline-end",
|
|
1213
|
+
children: [
|
|
1214
|
+
showTrigger && /*#__PURE__*/ jsx(Combobox_Trigger, {
|
|
1215
|
+
className: inputTrigger,
|
|
1216
|
+
disabled: disabled
|
|
1217
|
+
}),
|
|
1218
|
+
showClear && /*#__PURE__*/ jsx(Clear, {
|
|
1219
|
+
disabled: disabled
|
|
1220
|
+
})
|
|
1221
|
+
]
|
|
1222
|
+
}),
|
|
1223
|
+
children
|
|
1224
|
+
]
|
|
1225
|
+
});
|
|
1226
|
+
}
|
|
1227
|
+
function Combobox_Content({ className, side = 'bottom', sideOffset = 8, align = 'start', alignOffset = 0, anchor, ...props }) {
|
|
1228
|
+
return /*#__PURE__*/ jsx(Combobox.Portal, {
|
|
1229
|
+
children: /*#__PURE__*/ jsx(Combobox.Positioner, {
|
|
1230
|
+
side: side,
|
|
1231
|
+
sideOffset: sideOffset,
|
|
1232
|
+
align: align,
|
|
1233
|
+
alignOffset: alignOffset,
|
|
1234
|
+
anchor: anchor,
|
|
1235
|
+
className: positioner,
|
|
1236
|
+
children: /*#__PURE__*/ jsx(Combobox.Popup, {
|
|
1237
|
+
"data-slot": "combobox-content",
|
|
1238
|
+
"data-chips": anchor ? 'true' : void 0,
|
|
1239
|
+
className: clsx(Combobox_styles_css_content, className),
|
|
1240
|
+
...props
|
|
1241
|
+
})
|
|
1242
|
+
})
|
|
1243
|
+
});
|
|
1244
|
+
}
|
|
1245
|
+
function Combobox_List({ className, ...props }) {
|
|
1246
|
+
return /*#__PURE__*/ jsx(Combobox.List, {
|
|
1247
|
+
"data-slot": "combobox-list",
|
|
1248
|
+
className: clsx(styles_css_list, className),
|
|
1249
|
+
...props
|
|
1250
|
+
});
|
|
1251
|
+
}
|
|
1252
|
+
function Combobox_Item({ className, children, ...props }) {
|
|
1253
|
+
return /*#__PURE__*/ jsxs(Combobox.Item, {
|
|
1254
|
+
"data-slot": "combobox-item",
|
|
1255
|
+
className: clsx(Combobox_styles_css_item, className),
|
|
1256
|
+
...props,
|
|
1257
|
+
children: [
|
|
1258
|
+
children,
|
|
1259
|
+
/*#__PURE__*/ jsx(Combobox.ItemIndicator, {
|
|
1260
|
+
className: itemIndicator,
|
|
1261
|
+
children: /*#__PURE__*/ jsx(CheckIcon, {})
|
|
1262
|
+
})
|
|
1263
|
+
]
|
|
1264
|
+
});
|
|
1265
|
+
}
|
|
1266
|
+
function Combobox_Group({ ...props }) {
|
|
1267
|
+
return /*#__PURE__*/ jsx(Combobox.Group, {
|
|
1268
|
+
"data-slot": "combobox-group",
|
|
1269
|
+
...props
|
|
1270
|
+
});
|
|
1271
|
+
}
|
|
1272
|
+
function Label({ className, ...props }) {
|
|
1273
|
+
return /*#__PURE__*/ jsx(Combobox.GroupLabel, {
|
|
1274
|
+
"data-slot": "combobox-label",
|
|
1275
|
+
className: clsx(styles_css_label, className),
|
|
1276
|
+
...props
|
|
1277
|
+
});
|
|
1278
|
+
}
|
|
1279
|
+
function Collection(props) {
|
|
1280
|
+
return /*#__PURE__*/ jsx(Combobox.Collection, {
|
|
1281
|
+
...props
|
|
1282
|
+
});
|
|
1283
|
+
}
|
|
1284
|
+
function Empty({ className, ...props }) {
|
|
1285
|
+
return /*#__PURE__*/ jsx(Combobox.Empty, {
|
|
1286
|
+
"data-slot": "combobox-empty",
|
|
1287
|
+
className: clsx(empty, className),
|
|
1288
|
+
...props
|
|
1289
|
+
});
|
|
1290
|
+
}
|
|
1291
|
+
function Combobox_Separator({ className, ...props }) {
|
|
1292
|
+
return /*#__PURE__*/ jsx(Combobox.Separator, {
|
|
1293
|
+
"data-slot": "combobox-separator",
|
|
1294
|
+
className: clsx(Combobox_styles_css_separator, className),
|
|
1295
|
+
...props
|
|
1296
|
+
});
|
|
1297
|
+
}
|
|
1298
|
+
function Chips({ className, ...props }) {
|
|
1299
|
+
return /*#__PURE__*/ jsx(Combobox.Chips, {
|
|
1300
|
+
"data-slot": "combobox-chips",
|
|
1301
|
+
className: clsx(chips, className),
|
|
1302
|
+
...props
|
|
1303
|
+
});
|
|
1304
|
+
}
|
|
1305
|
+
function Chip({ className, children, showRemove = true, ...props }) {
|
|
1306
|
+
return /*#__PURE__*/ jsxs(Combobox.Chip, {
|
|
1307
|
+
"data-slot": "combobox-chip",
|
|
1308
|
+
className: clsx(chip, {
|
|
1309
|
+
[chipWithRemove]: showRemove
|
|
1310
|
+
}, className),
|
|
1311
|
+
...props,
|
|
1312
|
+
children: [
|
|
1313
|
+
children,
|
|
1314
|
+
showRemove && /*#__PURE__*/ jsx(Combobox.ChipRemove, {
|
|
1315
|
+
className: clsx(chipRemove, chipRemoveButton, chipRemoveSize["icon-xs"]),
|
|
1316
|
+
"data-slot": "combobox-chip-remove",
|
|
1317
|
+
children: /*#__PURE__*/ jsx(XIcon, {})
|
|
1318
|
+
})
|
|
1319
|
+
]
|
|
1320
|
+
});
|
|
1321
|
+
}
|
|
1322
|
+
function ChipsInput({ className, ...props }) {
|
|
1323
|
+
return /*#__PURE__*/ jsx(Combobox.Input, {
|
|
1324
|
+
"data-slot": "combobox-chip-input",
|
|
1325
|
+
className: clsx(chipsInput, className),
|
|
1326
|
+
...props
|
|
1327
|
+
});
|
|
1328
|
+
}
|
|
1329
|
+
function useComboboxAnchor() {
|
|
1330
|
+
return useRef(null);
|
|
1331
|
+
}
|
|
1332
|
+
Combobox_Combobox.Value = Value;
|
|
1333
|
+
Combobox_Combobox.Trigger = Combobox_Trigger;
|
|
1334
|
+
Combobox_Combobox.Clear = Clear;
|
|
1335
|
+
Combobox_Combobox.Input = Combobox_Input;
|
|
1336
|
+
Combobox_Combobox.Content = Combobox_Content;
|
|
1337
|
+
Combobox_Combobox.List = Combobox_List;
|
|
1338
|
+
Combobox_Combobox.Item = Combobox_Item;
|
|
1339
|
+
Combobox_Combobox.Group = Combobox_Group;
|
|
1340
|
+
Combobox_Combobox.Label = Label;
|
|
1341
|
+
Combobox_Combobox.Collection = Collection;
|
|
1342
|
+
Combobox_Combobox.Empty = Empty;
|
|
1343
|
+
Combobox_Combobox.Separator = Combobox_Separator;
|
|
1344
|
+
Combobox_Combobox.Chips = Chips;
|
|
1345
|
+
Combobox_Combobox.Chip = Chip;
|
|
1346
|
+
Combobox_Combobox.ChipsInput = ChipsInput;
|
|
1072
1347
|
var Popover_styles_css_content = 'style__1xy4jvu2';
|
|
1073
|
-
var
|
|
1348
|
+
var styles_css_positioner = 'style__1xy4jvu3';
|
|
1074
1349
|
const createHandle = Popover.createHandle;
|
|
1075
1350
|
const Popover_Popover = ({ ...props })=>/*#__PURE__*/ jsx(Popover.Root, {
|
|
1076
1351
|
"data-slot": "popover",
|
|
@@ -1086,7 +1361,7 @@ const Popover_Content = ({ className, align = 'center', alignOffset = 0, side =
|
|
|
1086
1361
|
alignOffset: alignOffset,
|
|
1087
1362
|
side: side,
|
|
1088
1363
|
sideOffset: sideOffset,
|
|
1089
|
-
className:
|
|
1364
|
+
className: styles_css_positioner,
|
|
1090
1365
|
children: /*#__PURE__*/ jsx(Popover.Popup, {
|
|
1091
1366
|
"data-slot": "popover-content",
|
|
1092
1367
|
className: clsx(Popover_styles_css_content, className),
|
|
@@ -1691,9 +1966,9 @@ var checkboxItem = 'style__1ib8wktd style__1ib8wkta';
|
|
|
1691
1966
|
var DropdownMenu_styles_css_content = 'style__1ib8wkt7';
|
|
1692
1967
|
var styles_css_icon = 'style__1ib8wkth';
|
|
1693
1968
|
var DropdownMenu_styles_css_item = 'style__1ib8wkta';
|
|
1694
|
-
var
|
|
1695
|
-
var
|
|
1696
|
-
var
|
|
1969
|
+
var styles_css_itemIndicator = 'style__1ib8wktf';
|
|
1970
|
+
var DropdownMenu_styles_css_label = 'style__1ib8wkt9';
|
|
1971
|
+
var DropdownMenu_styles_css_positioner = 'style__1ib8wkt6';
|
|
1697
1972
|
var radioItem = 'style__1ib8wkte style__1ib8wkta';
|
|
1698
1973
|
var DropdownMenu_styles_css_separator = 'style__1ib8wkti';
|
|
1699
1974
|
var shortcut = 'style__1ib8wktj';
|
|
@@ -1725,7 +2000,7 @@ function DropdownMenu_Content({ align = 'start', alignOffset = 0, side = 'bottom
|
|
|
1725
2000
|
alignOffset: alignOffset,
|
|
1726
2001
|
side: side,
|
|
1727
2002
|
sideOffset: sideOffset,
|
|
1728
|
-
className:
|
|
2003
|
+
className: DropdownMenu_styles_css_positioner,
|
|
1729
2004
|
children: /*#__PURE__*/ jsx(Menu.Popup, {
|
|
1730
2005
|
"data-slot": "dropdown-menu-content",
|
|
1731
2006
|
className: clsx(DropdownMenu_styles_css_content, className),
|
|
@@ -1740,11 +2015,11 @@ function DropdownMenu_Group({ ...props }) {
|
|
|
1740
2015
|
...props
|
|
1741
2016
|
});
|
|
1742
2017
|
}
|
|
1743
|
-
function
|
|
2018
|
+
function DropdownMenu_Label({ className, inset, ...props }) {
|
|
1744
2019
|
return /*#__PURE__*/ jsx(Menu.GroupLabel, {
|
|
1745
2020
|
"data-slot": "dropdown-menu-label",
|
|
1746
2021
|
"data-inset": inset ? '' : void 0,
|
|
1747
|
-
className: clsx(
|
|
2022
|
+
className: clsx(DropdownMenu_styles_css_label, className),
|
|
1748
2023
|
...props
|
|
1749
2024
|
});
|
|
1750
2025
|
}
|
|
@@ -1797,7 +2072,7 @@ function CheckboxItem({ className, children, checked, inset, ...props }) {
|
|
|
1797
2072
|
...props,
|
|
1798
2073
|
children: [
|
|
1799
2074
|
/*#__PURE__*/ jsx("span", {
|
|
1800
|
-
className:
|
|
2075
|
+
className: styles_css_itemIndicator,
|
|
1801
2076
|
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
1802
2077
|
children: /*#__PURE__*/ jsx(Menu.CheckboxItemIndicator, {
|
|
1803
2078
|
children: /*#__PURE__*/ jsx(CheckIcon, {
|
|
@@ -1823,7 +2098,7 @@ function RadioItem({ className, children, inset, ...props }) {
|
|
|
1823
2098
|
...props,
|
|
1824
2099
|
children: [
|
|
1825
2100
|
/*#__PURE__*/ jsx("span", {
|
|
1826
|
-
className:
|
|
2101
|
+
className: styles_css_itemIndicator,
|
|
1827
2102
|
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
1828
2103
|
children: /*#__PURE__*/ jsx(Menu.RadioItemIndicator, {
|
|
1829
2104
|
children: /*#__PURE__*/ jsx(CheckIcon, {
|
|
@@ -1853,7 +2128,7 @@ DropdownMenu.Portal = DropdownMenu_Portal;
|
|
|
1853
2128
|
DropdownMenu.Trigger = DropdownMenu_Trigger;
|
|
1854
2129
|
DropdownMenu.Content = DropdownMenu_Content;
|
|
1855
2130
|
DropdownMenu.Group = DropdownMenu_Group;
|
|
1856
|
-
DropdownMenu.Label =
|
|
2131
|
+
DropdownMenu.Label = DropdownMenu_Label;
|
|
1857
2132
|
DropdownMenu.Item = DropdownMenu_Item;
|
|
1858
2133
|
DropdownMenu.Sub = Sub;
|
|
1859
2134
|
DropdownMenu.SubTrigger = SubTrigger;
|
|
@@ -2114,7 +2389,7 @@ const ScrollToTopButton = ({ onClick, isVisible })=>/*#__PURE__*/ jsx(Button_But
|
|
|
2114
2389
|
children: /*#__PURE__*/ jsx(ChevronUp, {})
|
|
2115
2390
|
});
|
|
2116
2391
|
var itemClass = 'style__1ezen7g1';
|
|
2117
|
-
var
|
|
2392
|
+
var DataList_styles_css_list = 'style__1ezen7g0';
|
|
2118
2393
|
const DataList = ({ data, keyId, className, itemContent, noDataPlaceholder, endOfScrollMsg, errorState, isLoading, isError, isEndReached, onRetry, onEndReached, ref })=>{
|
|
2119
2394
|
const innerRef = useRef(null);
|
|
2120
2395
|
const virtuoso = ref || innerRef;
|
|
@@ -2145,7 +2420,7 @@ const DataList = ({ data, keyId, className, itemContent, noDataPlaceholder, endO
|
|
|
2145
2420
|
errorState: errorState,
|
|
2146
2421
|
children: [
|
|
2147
2422
|
/*#__PURE__*/ jsx(Virtuoso, {
|
|
2148
|
-
className: clsx(
|
|
2423
|
+
className: clsx(DataList_styles_css_list, className),
|
|
2149
2424
|
style: {
|
|
2150
2425
|
height: '100%'
|
|
2151
2426
|
},
|
|
@@ -2181,24 +2456,24 @@ const DataList = ({ data, keyId, className, itemContent, noDataPlaceholder, endO
|
|
|
2181
2456
|
]
|
|
2182
2457
|
});
|
|
2183
2458
|
};
|
|
2184
|
-
var adornment = '
|
|
2459
|
+
var adornment = 'style__1blk89ua';
|
|
2185
2460
|
var Input_styles_css_container = 'Input__1blk89u0';
|
|
2186
|
-
var styles_css_disabledClass = '
|
|
2187
|
-
var errorClass = '
|
|
2461
|
+
var styles_css_disabledClass = 'style__1blk89u4';
|
|
2462
|
+
var errorClass = 'style__1blk89u5';
|
|
2188
2463
|
var fullWidthClass = 'style__1blk89u3';
|
|
2189
|
-
var
|
|
2464
|
+
var styles_css_input = 'style__1blk89u6';
|
|
2190
2465
|
var Input_styles_css_sizes = {
|
|
2191
|
-
sm: '
|
|
2192
|
-
md: '
|
|
2193
|
-
lg: '
|
|
2466
|
+
sm: 'sm__1blk89u7',
|
|
2467
|
+
md: 'md__1blk89u8',
|
|
2468
|
+
lg: 'lg__1blk89u9'
|
|
2194
2469
|
};
|
|
2195
2470
|
var Input_styles_css_variants = {
|
|
2196
2471
|
outlined: 'outlined__1blk89u1',
|
|
2197
2472
|
standard: 'standard__1blk89u2'
|
|
2198
2473
|
};
|
|
2199
|
-
var withEndAdornment = '
|
|
2200
|
-
var withStartAdornment = '
|
|
2201
|
-
const
|
|
2474
|
+
var withEndAdornment = 'style__1blk89uc';
|
|
2475
|
+
var withStartAdornment = 'style__1blk89ub';
|
|
2476
|
+
const Input_Input = ({ error, variant = 'outlined', size = 'md', startAdornment, endAdornment, className, disabled, fullWidth, value, ref, ...props })=>/*#__PURE__*/ jsxs("div", {
|
|
2202
2477
|
className: clsx(Input_styles_css_container, Input_styles_css_variants[variant], {
|
|
2203
2478
|
[errorClass]: error
|
|
2204
2479
|
}, {
|
|
@@ -2212,7 +2487,7 @@ const Input = ({ error, variant = 'outlined', size = 'md', startAdornment, endAd
|
|
|
2212
2487
|
children: startAdornment
|
|
2213
2488
|
}),
|
|
2214
2489
|
/*#__PURE__*/ jsx("input", {
|
|
2215
|
-
className: clsx(
|
|
2490
|
+
className: clsx(styles_css_input, Input_styles_css_sizes[size], {
|
|
2216
2491
|
[styles_css_disabledClass]: disabled,
|
|
2217
2492
|
[withStartAdornment]: Boolean(startAdornment),
|
|
2218
2493
|
[withEndAdornment]: Boolean(endAdornment)
|
|
@@ -2260,7 +2535,7 @@ const TextField = ({ label, helperText, className, disabled, fullWidth, ref, lab
|
|
|
2260
2535
|
className: clsx(labelClass, labelClassName),
|
|
2261
2536
|
children: label
|
|
2262
2537
|
}),
|
|
2263
|
-
/*#__PURE__*/ jsx(
|
|
2538
|
+
/*#__PURE__*/ jsx(Input_Input, {
|
|
2264
2539
|
ref: ref,
|
|
2265
2540
|
disabled: disabled,
|
|
2266
2541
|
fullWidth: fullWidth,
|
|
@@ -2470,7 +2745,7 @@ const Value_useLogic_useLogic_useLogic = ({ canCopy, children, stub = '—' })=>
|
|
|
2470
2745
|
direction
|
|
2471
2746
|
};
|
|
2472
2747
|
};
|
|
2473
|
-
const
|
|
2748
|
+
const Value_Value = (props)=>{
|
|
2474
2749
|
const { valueToRender, isDefaultValueRender, leader } = Value_useLogic_useLogic_useLogic(props);
|
|
2475
2750
|
const { copyPosition = 'right', copyText, canCopy, children, stub, ...restProps } = props;
|
|
2476
2751
|
if (isDefaultValueRender) return /*#__PURE__*/ jsx(Typography, {
|
|
@@ -2508,7 +2783,7 @@ const Description_Description = (props)=>{
|
|
|
2508
2783
|
});
|
|
2509
2784
|
};
|
|
2510
2785
|
Description_Description.Name = Name;
|
|
2511
|
-
Description_Description.Value =
|
|
2786
|
+
Description_Description.Value = Value_Value;
|
|
2512
2787
|
var styles_css_closeButton = 'style__8bkmbe6';
|
|
2513
2788
|
var closeText = 'style__8bkmbe7';
|
|
2514
2789
|
var Dialog_styles_css_content = 'style__8bkmbe5';
|
|
@@ -2705,7 +2980,7 @@ var mediaVariants = {
|
|
|
2705
2980
|
};
|
|
2706
2981
|
var Empty_styles_css_root = 'style__e4li7y0';
|
|
2707
2982
|
var Empty_styles_css_title = 'style__e4li7y5';
|
|
2708
|
-
function
|
|
2983
|
+
function Empty_Empty({ className, ...props }) {
|
|
2709
2984
|
return /*#__PURE__*/ jsx("div", {
|
|
2710
2985
|
"data-slot": "empty",
|
|
2711
2986
|
className: clsx(Empty_styles_css_root, className),
|
|
@@ -2748,11 +3023,11 @@ function Empty_Content({ className, ...props }) {
|
|
|
2748
3023
|
...props
|
|
2749
3024
|
});
|
|
2750
3025
|
}
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
3026
|
+
Empty_Empty.Header = Empty_Header;
|
|
3027
|
+
Empty_Empty.Media = Empty_Media;
|
|
3028
|
+
Empty_Empty.Title = Empty_Title;
|
|
3029
|
+
Empty_Empty.Description = Empty_Description;
|
|
3030
|
+
Empty_Empty.Content = Empty_Content;
|
|
2756
3031
|
var styles_css_arrow = 'style__a5l83v4';
|
|
2757
3032
|
var arrowLeft = 'style__a5l83v5';
|
|
2758
3033
|
var arrowRight = 'style__a5l83v6';
|
|
@@ -2866,12 +3141,12 @@ const Slot = ({ char, hasFakeCaret, isActive, ...props })=>/*#__PURE__*/ jsxs("d
|
|
|
2866
3141
|
var InputOTP_styles_css_container = 'style__1iixe0l0';
|
|
2867
3142
|
var InputOTP_styles_css_disabled = 'style__1iixe0l3';
|
|
2868
3143
|
var styles_css_group = 'style__1iixe0l2';
|
|
2869
|
-
var
|
|
3144
|
+
var InputOTP_styles_css_input = 'style__1iixe0l1';
|
|
2870
3145
|
const InputOTP = ({ className, containerClassName, disabled, ...props })=>/*#__PURE__*/ jsx(OTPInput, {
|
|
2871
3146
|
containerClassName: clsx(InputOTP_styles_css_container, {
|
|
2872
3147
|
[InputOTP_styles_css_disabled]: disabled
|
|
2873
3148
|
}, containerClassName),
|
|
2874
|
-
className: clsx(
|
|
3149
|
+
className: clsx(InputOTP_styles_css_input, className),
|
|
2875
3150
|
render: ({ slots })=>{
|
|
2876
3151
|
if (slots.length % 2 !== 0) return /*#__PURE__*/ jsx("div", {
|
|
2877
3152
|
className: styles_css_group,
|
|
@@ -3171,73 +3446,25 @@ const Footer_Footer_Footer = (props)=>{
|
|
|
3171
3446
|
children: children
|
|
3172
3447
|
});
|
|
3173
3448
|
};
|
|
3174
|
-
var
|
|
3175
|
-
var
|
|
3176
|
-
var
|
|
3177
|
-
|
|
3178
|
-
var subtitleClass = 'style__nvcxbd6';
|
|
3179
|
-
var subtitleContainerClass = 'style__nvcxbd7';
|
|
3180
|
-
var styles_css_titleClass = 'style__nvcxbd4';
|
|
3181
|
-
var titleContainerClass = 'style__nvcxbd5';
|
|
3182
|
-
const Header_Header_Header = (props)=>{
|
|
3183
|
-
const { title, subtitle, breadcrumbs, actions, backButton, className } = props;
|
|
3184
|
-
const { pinned, togglePinned } = useDashboard();
|
|
3449
|
+
var styles_css_actions = 'style__nvcxbd1';
|
|
3450
|
+
var Header_styles_css_content = 'style__nvcxbd2';
|
|
3451
|
+
var Header_styles_css_root = 'style__nvcxbd0';
|
|
3452
|
+
const Header_Header_Header = ({ actions, className, htmlTitle, children })=>{
|
|
3185
3453
|
useEffect(()=>{
|
|
3186
|
-
if (
|
|
3454
|
+
if (htmlTitle) document.title = htmlTitle;
|
|
3187
3455
|
}, [
|
|
3188
|
-
|
|
3456
|
+
htmlTitle
|
|
3189
3457
|
]);
|
|
3190
3458
|
return /*#__PURE__*/ jsxs("header", {
|
|
3191
|
-
className: clsx(
|
|
3459
|
+
className: clsx(Header_styles_css_root, PAGE_HEADER_CLASSNAME, className),
|
|
3192
3460
|
children: [
|
|
3193
|
-
/*#__PURE__*/
|
|
3194
|
-
className:
|
|
3195
|
-
children:
|
|
3196
|
-
/*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
3197
|
-
text: pinned ? 'Развернуть' : 'Свернуть',
|
|
3198
|
-
children: /*#__PURE__*/ jsx(Button_Button, {
|
|
3199
|
-
variant: "ghost",
|
|
3200
|
-
size: "icon",
|
|
3201
|
-
onClick: togglePinned,
|
|
3202
|
-
children: pinned ? /*#__PURE__*/ jsx(PanelLeftOpen, {}) : /*#__PURE__*/ jsx(PanelLeftClose, {})
|
|
3203
|
-
})
|
|
3204
|
-
}),
|
|
3205
|
-
backButton && /*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
3206
|
-
text: "Назад",
|
|
3207
|
-
children: /*#__PURE__*/ jsx(Button_Button, {
|
|
3208
|
-
...backButton,
|
|
3209
|
-
variant: "ghost",
|
|
3210
|
-
children: /*#__PURE__*/ jsx(ChevronLeft, {})
|
|
3211
|
-
})
|
|
3212
|
-
})
|
|
3213
|
-
]
|
|
3214
|
-
}),
|
|
3215
|
-
breadcrumbs && /*#__PURE__*/ jsx("div", {
|
|
3216
|
-
className: breadcrumbsClass,
|
|
3217
|
-
children: breadcrumbs
|
|
3461
|
+
/*#__PURE__*/ jsx("div", {
|
|
3462
|
+
className: Header_styles_css_content,
|
|
3463
|
+
children: children
|
|
3218
3464
|
}),
|
|
3219
3465
|
/*#__PURE__*/ jsx("div", {
|
|
3220
|
-
className:
|
|
3466
|
+
className: styles_css_actions,
|
|
3221
3467
|
children: actions
|
|
3222
|
-
}),
|
|
3223
|
-
'string' == typeof title ? /*#__PURE__*/ jsx(Typography, {
|
|
3224
|
-
className: styles_css_titleClass,
|
|
3225
|
-
component: "h1",
|
|
3226
|
-
variant: "h3",
|
|
3227
|
-
"aria-level": 1,
|
|
3228
|
-
children: title
|
|
3229
|
-
}) : /*#__PURE__*/ jsx("div", {
|
|
3230
|
-
className: titleContainerClass,
|
|
3231
|
-
children: title
|
|
3232
|
-
}),
|
|
3233
|
-
subtitle && 'string' == typeof subtitle && /*#__PURE__*/ jsx(Typography, {
|
|
3234
|
-
className: subtitleClass,
|
|
3235
|
-
"aria-level": 2,
|
|
3236
|
-
children: subtitle
|
|
3237
|
-
}),
|
|
3238
|
-
subtitle && 'string' != typeof subtitle && /*#__PURE__*/ jsx("div", {
|
|
3239
|
-
className: subtitleContainerClass,
|
|
3240
|
-
children: subtitle
|
|
3241
3468
|
})
|
|
3242
3469
|
]
|
|
3243
3470
|
});
|
|
@@ -4122,7 +4349,7 @@ function SidebarRoot({ side = 'left', variant = 'sidebar', collapsible = 'offcan
|
|
|
4122
4349
|
]
|
|
4123
4350
|
})
|
|
4124
4351
|
});
|
|
4125
|
-
return /*#__PURE__*/ jsxs("
|
|
4352
|
+
return /*#__PURE__*/ jsxs("aside", {
|
|
4126
4353
|
"data-state": state,
|
|
4127
4354
|
"data-collapsible": 'collapsed' === state ? collapsible : void 0,
|
|
4128
4355
|
"data-variant": variant,
|
|
@@ -4195,7 +4422,7 @@ function Inset({ className, ...props }) {
|
|
|
4195
4422
|
});
|
|
4196
4423
|
}
|
|
4197
4424
|
function SidebarInput({ className, ...props }) {
|
|
4198
|
-
return /*#__PURE__*/ jsx(
|
|
4425
|
+
return /*#__PURE__*/ jsx(Input_Input, {
|
|
4199
4426
|
"data-slot": "sidebar-input",
|
|
4200
4427
|
"data-sidebar": "input",
|
|
4201
4428
|
className: clsx(Sidebar_styles_css_input, className),
|
|
@@ -4447,8 +4674,16 @@ const Tabs_Tabs = (props)=>/*#__PURE__*/ jsx(Tabs.Root, {
|
|
|
4447
4674
|
Tabs_Tabs.Content = TabsContent;
|
|
4448
4675
|
Tabs_Tabs.List = TabsList;
|
|
4449
4676
|
Tabs_Tabs.Trigger = TabsTrigger;
|
|
4677
|
+
var Textarea_styles_css_textarea = 'style__1a927tn0';
|
|
4678
|
+
function Textarea_Textarea({ className, ...props }) {
|
|
4679
|
+
return /*#__PURE__*/ jsx("textarea", {
|
|
4680
|
+
"data-slot": "textarea",
|
|
4681
|
+
className: clsx(Textarea_styles_css_textarea, className),
|
|
4682
|
+
...props
|
|
4683
|
+
});
|
|
4684
|
+
}
|
|
4450
4685
|
var toggleGroup_css_buttonClass = 'style__10hvn8a2';
|
|
4451
|
-
var
|
|
4686
|
+
var buttonsClass = 'style__10hvn8a1';
|
|
4452
4687
|
var toggleGroup_css_containerClass = 'style__10hvn8a0';
|
|
4453
4688
|
var toggleGroup_css_labelClass = 'style__10hvn8a3';
|
|
4454
4689
|
const ToggleGroup = ({ value, onChange, options, size, className, label, multiple })=>{
|
|
@@ -4474,7 +4709,7 @@ const ToggleGroup = ({ value, onChange, options, size, className, label, multipl
|
|
|
4474
4709
|
children: label
|
|
4475
4710
|
}),
|
|
4476
4711
|
/*#__PURE__*/ jsx("div", {
|
|
4477
|
-
className:
|
|
4712
|
+
className: buttonsClass,
|
|
4478
4713
|
children: options.map((option)=>/*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
4479
4714
|
arrow: true,
|
|
4480
4715
|
text: option.title,
|
|
@@ -4493,53 +4728,4 @@ const ToggleGroup = ({ value, onChange, options, size, className, label, multipl
|
|
|
4493
4728
|
]
|
|
4494
4729
|
});
|
|
4495
4730
|
};
|
|
4496
|
-
|
|
4497
|
-
...form,
|
|
4498
|
-
children: /*#__PURE__*/ jsx("form", {
|
|
4499
|
-
noValidate: true,
|
|
4500
|
-
...props,
|
|
4501
|
-
children: children
|
|
4502
|
-
})
|
|
4503
|
-
});
|
|
4504
|
-
function FormMaskField({ name, control, ...props }) {
|
|
4505
|
-
return /*#__PURE__*/ jsx(Controller, {
|
|
4506
|
-
control: control,
|
|
4507
|
-
name: name,
|
|
4508
|
-
render: ({ field, fieldState })=>/*#__PURE__*/ jsx(MaskField, {
|
|
4509
|
-
...props,
|
|
4510
|
-
...field,
|
|
4511
|
-
error: !!fieldState.error,
|
|
4512
|
-
helperText: fieldState.error?.message
|
|
4513
|
-
})
|
|
4514
|
-
});
|
|
4515
|
-
}
|
|
4516
|
-
const useForm_useForm = ({ mode = 'onBlur', ...params } = {})=>useForm({
|
|
4517
|
-
...params,
|
|
4518
|
-
mode
|
|
4519
|
-
});
|
|
4520
|
-
const FormSubmitButton = ({ children, isLoading, ...props })=>{
|
|
4521
|
-
const { formState } = useFormContext();
|
|
4522
|
-
return /*#__PURE__*/ jsx(Button_Button, {
|
|
4523
|
-
type: "submit",
|
|
4524
|
-
isLoading: isLoading || formState.isSubmitting,
|
|
4525
|
-
...props,
|
|
4526
|
-
children: children
|
|
4527
|
-
});
|
|
4528
|
-
};
|
|
4529
|
-
function FormTextField({ name, control, gridArea, ...props }) {
|
|
4530
|
-
return /*#__PURE__*/ jsx(Controller, {
|
|
4531
|
-
control: control,
|
|
4532
|
-
name: name,
|
|
4533
|
-
render: ({ field, fieldState })=>/*#__PURE__*/ jsx(TextField, {
|
|
4534
|
-
...props,
|
|
4535
|
-
...field,
|
|
4536
|
-
style: {
|
|
4537
|
-
gridArea
|
|
4538
|
-
},
|
|
4539
|
-
value: field.value || '',
|
|
4540
|
-
error: !!fieldState.error,
|
|
4541
|
-
helperText: fieldState.error?.message
|
|
4542
|
-
})
|
|
4543
|
-
});
|
|
4544
|
-
}
|
|
4545
|
-
export { Accordion_Accordion as Accordion, AlertDialog_AlertDialog as AlertDialog, Avatar_Avatar as Avatar, Badge_Badge as Badge, Breadcrumb, ButtonGroup, Button_Button as Button, Button_buttonSizes as buttonSizes, Button_buttonVariants as buttonVariants, Calendar, Card, Carousel, Checkbox_Checkbox as Checkbox, CircularProgress, Collapsible_Collapsible as Collapsible, ConfirmAction, ContentState, Controller as FormController, CopyTypography, DEFAULT_SEPARATOR, DEFAULT_SYMBOL, DESCRIPTION_ROOT_CLASSNAME, DashboardLayout, DataGrid, DataGridActionCell, DataGridSortHeader, DataList, DatePicker, Description_Description as Description, Dialog_Dialog as Dialog, Drawer_Drawer as Drawer, DropdownMenu, Empty, Form, FormMaskField, FormProvider, FormSubmitButton, FormTextField, ImageCarousel, Image_Image as Image, Input, InputOTP, Label_Label as Label, MaskField, NOTIFICATION_POSITIONS, NOTIFY_CLASSNAME, Notification, NotificationContainer, OverflowTypography, PageLayout, Pagination, PeriodPicker, Placeholder, Popover_Popover as Popover, RadioGroupItem, RadioGroup_RadioGroup as RadioGroup, RangeInput, ScrollTopButton, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Select_Select as Select, Sheet, Sidebar_Sidebar as Sidebar, Slider_Slider as Slider, Tabs_Tabs as Tabs, TextField, ToggleGroup, Tooltip_Tooltip as Tooltip, Typography, alignments, badgeVariants, calculateSize, colors, constants_NotificationVariantTypes as NotificationVariantTypes, createHandle, displays, negativeSpacing, notification, spacing, theme, transforms, useController as useFormController, useDashboard, useFieldArray as useFormFieldArray, useFormContext, useForm_useForm as useForm, useIsMobile, useOverflowed, useSidebar, useWatch as useFormWatch, variants, weights };
|
|
4731
|
+
export { Accordion_Accordion as Accordion, AlertDialog_AlertDialog as AlertDialog, Avatar_Avatar as Avatar, Badge_Badge as Badge, Breadcrumb, ButtonGroup, Button_Button as Button, Button_buttonSizes as buttonSizes, Button_buttonVariants as buttonVariants, Calendar, Card, Carousel, Checkbox_Checkbox as Checkbox, CircularProgress, Collapsible_Collapsible as Collapsible, Combobox_Combobox as Combobox, ConfirmAction, ContentState, CopyTypography, DEFAULT_SEPARATOR, DEFAULT_SYMBOL, DESCRIPTION_ROOT_CLASSNAME, DashboardLayout, DataGrid, DataGridActionCell, DataGridSortHeader, DataList, DatePicker, Description_Description as Description, Dialog_Dialog as Dialog, Drawer_Drawer as Drawer, DropdownMenu, Empty_Empty as Empty, ImageCarousel, Image_Image as Image, InputGroup, InputOTP, Input_Input as Input, Label_Label as Label, MaskField, NOTIFICATION_POSITIONS, NOTIFY_CLASSNAME, Notification, NotificationContainer, OverflowTypography, PageLayout, Pagination, PeriodPicker, Placeholder, Popover_Popover as Popover, RadioGroupItem, RadioGroup_RadioGroup as RadioGroup, RangeInput, ScrollTopButton, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Select_Select as Select, Sheet, Sidebar_Sidebar as Sidebar, Slider_Slider as Slider, Tabs_Tabs as Tabs, TextField, Textarea_Textarea as Textarea, ToggleGroup, Tooltip_Tooltip as Tooltip, Typography, alignments, badgeVariants, calculateSize, colors, constants_NotificationVariantTypes as NotificationVariantTypes, createHandle, displays, negativeSpacing, notification, spacing, theme, transforms, useComboboxAnchor, useDashboard, useIsMobile, useOverflowed, useSidebar, variants, weights };
|