@max-ts/kit 0.27.1 → 1.0.1
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/Calendar/Dropdown/Dropdown.d.ts.map +1 -1
- package/lib/components/ConfirmAction/ConfirmAction.d.ts +2 -2
- package/lib/components/ConfirmAction/ConfirmAction.d.ts.map +1 -1
- package/lib/components/Drawer/Drawer.d.ts +6 -5
- package/lib/components/Drawer/Drawer.d.ts.map +1 -1
- package/lib/components/Drawer/styles.css.d.ts +2 -0
- package/lib/components/Drawer/styles.css.d.ts.map +1 -1
- package/lib/components/Label/Label.d.ts +2 -3
- package/lib/components/Label/Label.d.ts.map +1 -1
- package/lib/components/OverflowTypography/OverflowTypography.d.ts.map +1 -1
- package/lib/components/OverflowTypography/useLogic.d.ts +8 -17
- package/lib/components/OverflowTypography/useLogic.d.ts.map +1 -1
- package/lib/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/lib/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/lib/components/RadioGroup/RadioGroupItem.d.ts +2 -2
- package/lib/components/RadioGroup/RadioGroupItem.d.ts.map +1 -1
- package/lib/components/RadioGroup/styles.css.d.ts.map +1 -1
- package/lib/components/Select/Select.d.ts +17 -12
- package/lib/components/Select/Select.d.ts.map +1 -1
- package/lib/components/Select/styles.css.d.ts +1 -0
- package/lib/components/Select/styles.css.d.ts.map +1 -1
- package/lib/components/Tabs/Tabs.d.ts +6 -3
- package/lib/components/Tabs/Tabs.d.ts.map +1 -1
- package/lib/components/Tabs/TabsContent.d.ts +3 -2
- package/lib/components/Tabs/TabsContent.d.ts.map +1 -1
- package/lib/components/Tabs/TabsList.d.ts +2 -2
- package/lib/components/Tabs/TabsList.d.ts.map +1 -1
- package/lib/components/Tabs/TabsTrigger.d.ts +2 -2
- package/lib/components/Tabs/TabsTrigger.d.ts.map +1 -1
- package/lib/components/Tooltip/Tooltip.d.ts +7 -5
- package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/lib/components/Tooltip/styles.css.d.ts +1 -0
- package/lib/components/Tooltip/styles.css.d.ts.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.mjs +192 -207
- package/lib/stories/MaskField.stories.d.ts +0 -1
- package/lib/stories/MaskField.stories.d.ts.map +1 -1
- package/lib/styles.css +120 -51
- package/package.json +2 -10
- 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
|
@@ -14,20 +14,19 @@ import react, { createContext, createElement, useCallback, useContext, useEffect
|
|
|
14
14
|
import embla_carousel_react from "embla-carousel-react";
|
|
15
15
|
import { Collapsible } from "@base-ui/react/collapsible";
|
|
16
16
|
import { Popover } from "@base-ui/react/popover";
|
|
17
|
-
import {
|
|
17
|
+
import { Tooltip } from "@base-ui/react/tooltip";
|
|
18
18
|
import { Menu } from "@base-ui/react/menu";
|
|
19
19
|
import { Virtuoso } from "react-virtuoso";
|
|
20
20
|
import { useMask } from "@react-input/mask";
|
|
21
|
-
import { Root as react_label_Root } from "@radix-ui/react-label";
|
|
22
21
|
import { Dialog } from "@base-ui/react/dialog";
|
|
23
|
-
import { Drawer
|
|
22
|
+
import { Drawer } from "@base-ui/react/drawer";
|
|
24
23
|
import { OTPInput } from "input-otp";
|
|
25
24
|
import { Toaster, toast } from "sonner";
|
|
26
|
-
import {
|
|
25
|
+
import { RadioGroup as radio_group_RadioGroup } from "@base-ui/react/radio-group";
|
|
26
|
+
import { Radio } from "@base-ui/react/radio";
|
|
27
27
|
import { Slider } from "@base-ui/react/slider";
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { Controller, FormProvider, useController, useFieldArray, useForm, useFormContext, useWatch } from "react-hook-form";
|
|
28
|
+
import { Select } from "@base-ui/react/select";
|
|
29
|
+
import { Tabs } from "@base-ui/react/tabs";
|
|
31
30
|
import * as __rspack_external_react from "react";
|
|
32
31
|
var __webpack_require__ = {};
|
|
33
32
|
(()=>{
|
|
@@ -560,7 +559,12 @@ const DayButton = (props)=>{
|
|
|
560
559
|
var Dropdown_styles_css_trigger = 'style__1e2msjb0';
|
|
561
560
|
function Dropdown(props) {
|
|
562
561
|
const { options, onChange, ...restProps } = props;
|
|
563
|
-
const
|
|
562
|
+
const selectedValue = 'string' == typeof restProps.value || 'number' == typeof restProps.value ? restProps.value.toString() : void 0;
|
|
563
|
+
const selectedOption = options?.find(({ value })=>value.toString() === selectedValue);
|
|
564
|
+
const items = options?.map(({ value, label })=>({
|
|
565
|
+
value: value.toString(),
|
|
566
|
+
label
|
|
567
|
+
}));
|
|
564
568
|
const handleChange = (value)=>{
|
|
565
569
|
if (onChange) onChange({
|
|
566
570
|
target: {
|
|
@@ -568,9 +572,10 @@ function Dropdown(props) {
|
|
|
568
572
|
}
|
|
569
573
|
});
|
|
570
574
|
};
|
|
571
|
-
return /*#__PURE__*/ jsxs(
|
|
572
|
-
value:
|
|
575
|
+
return /*#__PURE__*/ jsxs(Select_Select, {
|
|
576
|
+
value: selectedValue,
|
|
573
577
|
onValueChange: handleChange,
|
|
578
|
+
items: items,
|
|
574
579
|
children: [
|
|
575
580
|
/*#__PURE__*/ jsx(SelectTrigger, {
|
|
576
581
|
className: Dropdown_styles_css_trigger,
|
|
@@ -1134,7 +1139,7 @@ const ConfirmAction = (props)=>{
|
|
|
1134
1139
|
onOpenChange: onOpenChange,
|
|
1135
1140
|
children: [
|
|
1136
1141
|
/*#__PURE__*/ jsx(Popover_Popover.Trigger, {
|
|
1137
|
-
|
|
1142
|
+
render: actionComponent({
|
|
1138
1143
|
onClick: onActionComponentClick
|
|
1139
1144
|
})
|
|
1140
1145
|
}),
|
|
@@ -1289,43 +1294,42 @@ const ContentState = ({ isLoading, isError, isCustom, errorState, customState, c
|
|
|
1289
1294
|
}
|
|
1290
1295
|
return children;
|
|
1291
1296
|
};
|
|
1292
|
-
var arrowClass = '
|
|
1293
|
-
var contentClass = '
|
|
1294
|
-
var
|
|
1295
|
-
|
|
1296
|
-
const
|
|
1297
|
-
const
|
|
1298
|
-
const
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
});
|
|
1303
|
-
const Tooltip = ({ text, content, children, side = 'top', sideOffset = 10, alignOffset, delayDuration = 0, className, ref, ...props })=>/*#__PURE__*/ jsx(TooltipProvider, {
|
|
1304
|
-
delayDuration: delayDuration,
|
|
1305
|
-
children: /*#__PURE__*/ jsxs(TooltipRoot, {
|
|
1297
|
+
var arrowClass = 'style__izacrl5';
|
|
1298
|
+
var contentClass = 'style__izacrl3';
|
|
1299
|
+
var positionerClass = 'style__izacrl2';
|
|
1300
|
+
var textClass = 'style__izacrl4';
|
|
1301
|
+
const TooltipProvider = Tooltip.Provider;
|
|
1302
|
+
const TooltipRootComponent = Tooltip.Root;
|
|
1303
|
+
const TooltipTrigger = Tooltip.Trigger;
|
|
1304
|
+
const Tooltip_Tooltip = ({ text, content, children, side = 'top', sideOffset = 10, align = 'center', alignOffset, arrow, delayDuration = 0, className, ref, ...props })=>/*#__PURE__*/ jsx(TooltipProvider, {
|
|
1305
|
+
delay: delayDuration,
|
|
1306
|
+
children: /*#__PURE__*/ jsxs(TooltipRootComponent, {
|
|
1306
1307
|
...props,
|
|
1307
1308
|
children: [
|
|
1308
1309
|
/*#__PURE__*/ jsx(TooltipTrigger, {
|
|
1309
1310
|
ref: ref,
|
|
1310
|
-
|
|
1311
|
-
children: children
|
|
1311
|
+
render: children
|
|
1312
1312
|
}),
|
|
1313
|
-
content || text ? /*#__PURE__*/ jsx(
|
|
1314
|
-
children: /*#__PURE__*/
|
|
1315
|
-
|
|
1313
|
+
content || text ? /*#__PURE__*/ jsx(Tooltip.Portal, {
|
|
1314
|
+
children: /*#__PURE__*/ jsx(Tooltip.Positioner, {
|
|
1315
|
+
align: align,
|
|
1316
1316
|
alignOffset: alignOffset,
|
|
1317
1317
|
sideOffset: sideOffset,
|
|
1318
|
-
hideWhenDetached: true,
|
|
1319
1318
|
side: side,
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1319
|
+
className: positionerClass,
|
|
1320
|
+
children: /*#__PURE__*/ jsxs(Tooltip.Popup, {
|
|
1321
|
+
"data-slot": "tooltip-content",
|
|
1322
|
+
className: clsx_0(contentClass, className),
|
|
1323
|
+
children: [
|
|
1324
|
+
content ?? /*#__PURE__*/ jsx("p", {
|
|
1325
|
+
className: textClass,
|
|
1326
|
+
children: text
|
|
1327
|
+
}),
|
|
1328
|
+
arrow && /*#__PURE__*/ jsx(Tooltip.Arrow, {
|
|
1329
|
+
className: arrowClass
|
|
1330
|
+
})
|
|
1331
|
+
]
|
|
1332
|
+
})
|
|
1329
1333
|
})
|
|
1330
1334
|
}) : null
|
|
1331
1335
|
]
|
|
@@ -1366,7 +1370,7 @@ const CopyTypography = (props)=>{
|
|
|
1366
1370
|
className: copyIconClass
|
|
1367
1371
|
});
|
|
1368
1372
|
const { tooltipOpen, handleMouseEnter, handleMouseLeave, handleClick, tooltipTitle, isIconOnLeft } = useLogic_useLogic_useLogic(props);
|
|
1369
|
-
return /*#__PURE__*/ jsx(
|
|
1373
|
+
return /*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
1370
1374
|
open: tooltipOpen,
|
|
1371
1375
|
arrow: true,
|
|
1372
1376
|
text: tooltipTitle,
|
|
@@ -1880,7 +1884,7 @@ const MainIconButton = (props)=>{
|
|
|
1880
1884
|
const { tooltipProps } = MainIconButton_useLogic_useLogic_useLogic(props);
|
|
1881
1885
|
const { action, onActionClick, isDisabled, tooltipPlacement } = props;
|
|
1882
1886
|
const { name, icon, needConfirm, confirmText, confirmButtonProps, disabled, isLoading, onClick } = action;
|
|
1883
|
-
const renderButton = (renderProps)=>/*#__PURE__*/ jsx(
|
|
1887
|
+
const renderButton = (renderProps)=>/*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
1884
1888
|
arrow: true,
|
|
1885
1889
|
side: tooltipPlacement,
|
|
1886
1890
|
...tooltipProps,
|
|
@@ -1909,7 +1913,7 @@ const MainAction = ({ action, onActionClick, isDisabled, tooltipPlacement })=>{
|
|
|
1909
1913
|
const { disabled, icon, name, disabledReason, actions, isLoading } = action;
|
|
1910
1914
|
return /*#__PURE__*/ jsxs(DropdownMenu, {
|
|
1911
1915
|
children: [
|
|
1912
|
-
/*#__PURE__*/ jsx(
|
|
1916
|
+
/*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
1913
1917
|
text: disabledReason || name,
|
|
1914
1918
|
side: tooltipPlacement,
|
|
1915
1919
|
arrow: true,
|
|
@@ -1957,7 +1961,7 @@ const SecondaryActions = ({ actions, onActionClick, tooltipPlacement, isDisabled
|
|
|
1957
1961
|
/*#__PURE__*/ jsx(DropdownMenu.Content, {
|
|
1958
1962
|
children: actions.map((action)=>{
|
|
1959
1963
|
const { onClick, name, disabledReason, isLoading } = action;
|
|
1960
|
-
return /*#__PURE__*/ jsx(
|
|
1964
|
+
return /*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
1961
1965
|
arrow: true,
|
|
1962
1966
|
side: tooltipPlacement,
|
|
1963
1967
|
text: disabledReason,
|
|
@@ -2227,10 +2231,11 @@ var label_css_disabled = 'style__c31e141';
|
|
|
2227
2231
|
var label_css_error = 'style__c31e142';
|
|
2228
2232
|
var required = 'style__c31e143';
|
|
2229
2233
|
var label_css_root = 'Label__c31e140';
|
|
2230
|
-
const Label_Label = ({ className, disabled, ...props })=>/*#__PURE__*/ jsx(
|
|
2234
|
+
const Label_Label = ({ className, disabled, error, ...props })=>/*#__PURE__*/ jsx("label", {
|
|
2235
|
+
"data-slot": "label",
|
|
2231
2236
|
className: clsx(label_css_root, {
|
|
2232
2237
|
[label_css_disabled]: disabled,
|
|
2233
|
-
[label_css_error]:
|
|
2238
|
+
[label_css_error]: error,
|
|
2234
2239
|
[required]: props.required
|
|
2235
2240
|
}, className),
|
|
2236
2241
|
...props
|
|
@@ -2618,65 +2623,72 @@ Dialog_Dialog.Header = Dialog_Header;
|
|
|
2618
2623
|
Dialog_Dialog.Footer = Dialog_Footer;
|
|
2619
2624
|
Dialog_Dialog.Title = Dialog_Title;
|
|
2620
2625
|
Dialog_Dialog.Description = Dialog_Description;
|
|
2621
|
-
var Drawer_styles_css_content = '
|
|
2622
|
-
var
|
|
2623
|
-
var
|
|
2624
|
-
var
|
|
2625
|
-
var
|
|
2626
|
+
var Drawer_styles_css_content = 'style__ccss504';
|
|
2627
|
+
var contentInner = 'style__ccss505';
|
|
2628
|
+
var Drawer_styles_css_description = 'style__ccss50a';
|
|
2629
|
+
var dragHandle = 'style__ccss506';
|
|
2630
|
+
var Drawer_styles_css_footer = 'style__ccss508';
|
|
2631
|
+
var Drawer_styles_css_header = 'style__ccss507';
|
|
2626
2632
|
var Drawer_styles_css_overlay = 'style__ccss502';
|
|
2627
|
-
var Drawer_styles_css_title = '
|
|
2628
|
-
|
|
2633
|
+
var Drawer_styles_css_title = 'style__ccss509';
|
|
2634
|
+
var viewport = 'style__ccss503';
|
|
2635
|
+
const Drawer_Drawer = ({ children, trigger, className, title, description = '', footer, closeButton, swipeDirection = 'down', ...props })=>/*#__PURE__*/ jsxs(Drawer.Root, {
|
|
2636
|
+
swipeDirection: swipeDirection,
|
|
2629
2637
|
...props,
|
|
2630
2638
|
children: [
|
|
2631
2639
|
trigger && /*#__PURE__*/ jsx(Drawer.Trigger, {
|
|
2632
2640
|
"data-slot": "drawer-trigger",
|
|
2633
|
-
|
|
2634
|
-
children: trigger
|
|
2641
|
+
render: trigger
|
|
2635
2642
|
}),
|
|
2636
2643
|
/*#__PURE__*/ jsxs(Drawer.Portal, {
|
|
2637
2644
|
"data-slot": "drawer-portal",
|
|
2638
2645
|
children: [
|
|
2639
|
-
/*#__PURE__*/ jsx(Drawer.
|
|
2646
|
+
/*#__PURE__*/ jsx(Drawer.Backdrop, {
|
|
2640
2647
|
"data-slot": "drawer-overlay",
|
|
2641
2648
|
className: Drawer_styles_css_overlay
|
|
2642
2649
|
}),
|
|
2643
|
-
/*#__PURE__*/
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
/*#__PURE__*/ jsxs("div", {
|
|
2651
|
-
"data-slot": "drawer-header",
|
|
2652
|
-
className: Drawer_styles_css_header,
|
|
2650
|
+
/*#__PURE__*/ jsx(Drawer.Viewport, {
|
|
2651
|
+
className: viewport,
|
|
2652
|
+
children: /*#__PURE__*/ jsx(Drawer.Popup, {
|
|
2653
|
+
"data-slot": "drawer-content",
|
|
2654
|
+
className: clsx('group/drawer-content', Drawer_styles_css_content, className),
|
|
2655
|
+
children: /*#__PURE__*/ jsxs(Drawer.Content, {
|
|
2656
|
+
className: contentInner,
|
|
2653
2657
|
children: [
|
|
2654
|
-
/*#__PURE__*/ jsx(
|
|
2655
|
-
|
|
2656
|
-
className: Drawer_styles_css_title,
|
|
2657
|
-
children: title
|
|
2658
|
+
/*#__PURE__*/ jsx("div", {
|
|
2659
|
+
className: dragHandle
|
|
2658
2660
|
}),
|
|
2659
|
-
/*#__PURE__*/
|
|
2660
|
-
"data-slot": "drawer-
|
|
2661
|
-
className:
|
|
2662
|
-
children:
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2661
|
+
/*#__PURE__*/ jsxs("div", {
|
|
2662
|
+
"data-slot": "drawer-header",
|
|
2663
|
+
className: Drawer_styles_css_header,
|
|
2664
|
+
children: [
|
|
2665
|
+
/*#__PURE__*/ jsx(Drawer.Title, {
|
|
2666
|
+
"data-slot": "drawer-title",
|
|
2667
|
+
className: Drawer_styles_css_title,
|
|
2668
|
+
children: title
|
|
2669
|
+
}),
|
|
2670
|
+
/*#__PURE__*/ jsx(Drawer.Description, {
|
|
2671
|
+
"data-slot": "drawer-description",
|
|
2672
|
+
className: Drawer_styles_css_description,
|
|
2673
|
+
children: description
|
|
2674
|
+
})
|
|
2675
|
+
]
|
|
2676
|
+
}),
|
|
2677
|
+
children,
|
|
2678
|
+
/*#__PURE__*/ jsxs("div", {
|
|
2679
|
+
"data-slot": "drawer-footer",
|
|
2680
|
+
className: Drawer_styles_css_footer,
|
|
2681
|
+
children: [
|
|
2682
|
+
footer,
|
|
2683
|
+
closeButton && /*#__PURE__*/ jsx(Drawer.Close, {
|
|
2684
|
+
"data-slot": "drawer-close",
|
|
2685
|
+
render: closeButton
|
|
2686
|
+
})
|
|
2687
|
+
]
|
|
2676
2688
|
})
|
|
2677
2689
|
]
|
|
2678
2690
|
})
|
|
2679
|
-
|
|
2691
|
+
})
|
|
2680
2692
|
})
|
|
2681
2693
|
]
|
|
2682
2694
|
})
|
|
@@ -2740,7 +2752,7 @@ Empty.Media = Empty_Media;
|
|
|
2740
2752
|
Empty.Title = Empty_Title;
|
|
2741
2753
|
Empty.Description = Empty_Description;
|
|
2742
2754
|
Empty.Content = Empty_Content;
|
|
2743
|
-
var
|
|
2755
|
+
var styles_css_arrow = 'style__a5l83v4';
|
|
2744
2756
|
var arrowLeft = 'style__a5l83v5';
|
|
2745
2757
|
var arrowRight = 'style__a5l83v6';
|
|
2746
2758
|
var carousel = 'style__a5l83v0';
|
|
@@ -2796,7 +2808,7 @@ const ImageCarousel = ({ images = [], autoPlay = false, interval = 5000 })=>{
|
|
|
2796
2808
|
children: [
|
|
2797
2809
|
/*#__PURE__*/ jsx("button", {
|
|
2798
2810
|
type: "button",
|
|
2799
|
-
className: clsx(
|
|
2811
|
+
className: clsx(styles_css_arrow, arrowLeft),
|
|
2800
2812
|
onClick: goToPrevious,
|
|
2801
2813
|
children: /*#__PURE__*/ jsx(ChevronLeft, {
|
|
2802
2814
|
size: 24
|
|
@@ -2804,7 +2816,7 @@ const ImageCarousel = ({ images = [], autoPlay = false, interval = 5000 })=>{
|
|
|
2804
2816
|
}),
|
|
2805
2817
|
/*#__PURE__*/ jsx("button", {
|
|
2806
2818
|
type: "button",
|
|
2807
|
-
className: clsx(
|
|
2819
|
+
className: clsx(styles_css_arrow, arrowRight),
|
|
2808
2820
|
onClick: goToNext,
|
|
2809
2821
|
children: /*#__PURE__*/ jsx(ChevronRight, {
|
|
2810
2822
|
size: 24
|
|
@@ -3046,7 +3058,7 @@ const getRowsCountStyle = (rowsCount, style)=>({
|
|
|
3046
3058
|
...style,
|
|
3047
3059
|
'--rows-count': rowsCount
|
|
3048
3060
|
});
|
|
3049
|
-
const OverflowTypography_useLogic_useLogic = ({ text, children, tooltipProps, visibleLastSymbolsCount = 0, rowsCount = 1, ref, style: styleProp })=>{
|
|
3061
|
+
const OverflowTypography_useLogic_useLogic = ({ text, children, tooltipProps, visibleLastSymbolsCount = 0, rowsCount = 1, ref, style: styleProp, ...restProps })=>{
|
|
3050
3062
|
const style = getRowsCountStyle(rowsCount, styleProp);
|
|
3051
3063
|
const label = text ?? ('string' == typeof children ? children : void 0);
|
|
3052
3064
|
const hasVisibleLastSymbols = Boolean(label && visibleLastSymbolsCount > 0);
|
|
@@ -3074,15 +3086,16 @@ const OverflowTypography_useLogic_useLogic = ({ text, children, tooltipProps, vi
|
|
|
3074
3086
|
tooltipContent: resolvedTooltipContent,
|
|
3075
3087
|
restTooltipProps,
|
|
3076
3088
|
style,
|
|
3077
|
-
visibleLastSymbolsCount
|
|
3089
|
+
visibleLastSymbolsCount,
|
|
3090
|
+
restProps
|
|
3078
3091
|
};
|
|
3079
3092
|
};
|
|
3080
3093
|
const OverflowTypography = (props)=>{
|
|
3081
|
-
const { label, hasVisibleLastSymbols, hasMultipleRows, overflowRef, tooltipContent, restTooltipProps, style,
|
|
3094
|
+
const { label, hasVisibleLastSymbols, visibleLastSymbolsCount, hasMultipleRows, overflowRef, tooltipContent, restTooltipProps, style, restProps } = OverflowTypography_useLogic_useLogic(props);
|
|
3082
3095
|
const { align = 'left', className, text, children } = props;
|
|
3083
3096
|
if (hasVisibleLastSymbols && label) {
|
|
3084
3097
|
const { firstPartLabel, secondPartLabel } = truncateString(visibleLastSymbolsCount, label);
|
|
3085
|
-
return /*#__PURE__*/ jsx(
|
|
3098
|
+
return /*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
3086
3099
|
...restTooltipProps,
|
|
3087
3100
|
arrow: true,
|
|
3088
3101
|
content: tooltipContent,
|
|
@@ -3091,7 +3104,7 @@ const OverflowTypography = (props)=>{
|
|
|
3091
3104
|
"data-slot": "overflow-typography",
|
|
3092
3105
|
children: [
|
|
3093
3106
|
/*#__PURE__*/ jsx(Typography, {
|
|
3094
|
-
...
|
|
3107
|
+
...restProps,
|
|
3095
3108
|
align: align,
|
|
3096
3109
|
className: clsx(truncate, className),
|
|
3097
3110
|
component: "span",
|
|
@@ -3102,7 +3115,7 @@ const OverflowTypography = (props)=>{
|
|
|
3102
3115
|
children: firstPartLabel
|
|
3103
3116
|
}),
|
|
3104
3117
|
/*#__PURE__*/ jsx(Typography, {
|
|
3105
|
-
...
|
|
3118
|
+
...restProps,
|
|
3106
3119
|
align: align,
|
|
3107
3120
|
className: className,
|
|
3108
3121
|
component: "span",
|
|
@@ -3114,12 +3127,12 @@ const OverflowTypography = (props)=>{
|
|
|
3114
3127
|
})
|
|
3115
3128
|
});
|
|
3116
3129
|
}
|
|
3117
|
-
return /*#__PURE__*/ jsx(
|
|
3130
|
+
return /*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
3118
3131
|
...restTooltipProps,
|
|
3119
3132
|
arrow: true,
|
|
3120
3133
|
content: tooltipContent,
|
|
3121
3134
|
children: /*#__PURE__*/ jsx(Typography, {
|
|
3122
|
-
...
|
|
3135
|
+
...restProps,
|
|
3123
3136
|
align: align,
|
|
3124
3137
|
className: clsx(truncate, hasMultipleRows && multipleRows, className),
|
|
3125
3138
|
"data-slot": "overflow-typography",
|
|
@@ -3179,7 +3192,7 @@ const Header_Header_Header = (props)=>{
|
|
|
3179
3192
|
/*#__PURE__*/ jsxs("div", {
|
|
3180
3193
|
className: buttonsClass,
|
|
3181
3194
|
children: [
|
|
3182
|
-
/*#__PURE__*/ jsx(
|
|
3195
|
+
/*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
3183
3196
|
text: pinned ? 'Развернуть' : 'Свернуть',
|
|
3184
3197
|
children: /*#__PURE__*/ jsx(Button_Button, {
|
|
3185
3198
|
variant: "ghost",
|
|
@@ -3188,7 +3201,7 @@ const Header_Header_Header = (props)=>{
|
|
|
3188
3201
|
children: pinned ? /*#__PURE__*/ jsx(PanelLeftOpen, {}) : /*#__PURE__*/ jsx(PanelLeftClose, {})
|
|
3189
3202
|
})
|
|
3190
3203
|
}),
|
|
3191
|
-
backButton && /*#__PURE__*/ jsx(
|
|
3204
|
+
backButton && /*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
3192
3205
|
text: "Назад",
|
|
3193
3206
|
children: /*#__PURE__*/ jsx(Button_Button, {
|
|
3194
3207
|
...backButton,
|
|
@@ -3377,7 +3390,7 @@ function YearsDropdown({ year, onSelect, minDate, maxDate }) {
|
|
|
3377
3390
|
const onChange = (year)=>{
|
|
3378
3391
|
onSelect?.(Number(year));
|
|
3379
3392
|
};
|
|
3380
|
-
return /*#__PURE__*/ jsxs(
|
|
3393
|
+
return /*#__PURE__*/ jsxs(Select_Select, {
|
|
3381
3394
|
onValueChange: onChange,
|
|
3382
3395
|
value: year.toString(),
|
|
3383
3396
|
children: [
|
|
@@ -3496,7 +3509,7 @@ var indicatorClass = 'style__ia95d13';
|
|
|
3496
3509
|
var styles_css_itemClass = 'style__ia95d12';
|
|
3497
3510
|
var itemWrapperClass = 'style__ia95d11';
|
|
3498
3511
|
var radioGroupClass = 'RadioGroup__ia95d10';
|
|
3499
|
-
const RadioGroup_RadioGroup = ({ className, ...props })=>/*#__PURE__*/ jsx(
|
|
3512
|
+
const RadioGroup_RadioGroup = ({ className, ...props })=>/*#__PURE__*/ jsx(radio_group_RadioGroup, {
|
|
3500
3513
|
"data-slot": "radio-group",
|
|
3501
3514
|
className: clsx_0(radioGroupClass, className),
|
|
3502
3515
|
...props
|
|
@@ -3504,12 +3517,12 @@ const RadioGroup_RadioGroup = ({ className, ...props })=>/*#__PURE__*/ jsx(react
|
|
|
3504
3517
|
const RadioGroupItem = ({ className, label, ...props })=>/*#__PURE__*/ jsxs("div", {
|
|
3505
3518
|
className: itemWrapperClass,
|
|
3506
3519
|
children: [
|
|
3507
|
-
/*#__PURE__*/ jsx(
|
|
3520
|
+
/*#__PURE__*/ jsx(Radio.Root, {
|
|
3508
3521
|
"data-slot": "radio-group-item",
|
|
3509
3522
|
id: props.id || props.value,
|
|
3510
3523
|
className: clsx(styles_css_itemClass, className),
|
|
3511
3524
|
...props,
|
|
3512
|
-
children: /*#__PURE__*/ jsx(Indicator, {
|
|
3525
|
+
children: /*#__PURE__*/ jsx(Radio.Indicator, {
|
|
3513
3526
|
"data-slot": "radio-group-indicator",
|
|
3514
3527
|
className: indicatorClass,
|
|
3515
3528
|
children: /*#__PURE__*/ jsx(CircleIcon, {
|
|
@@ -3524,7 +3537,7 @@ const RadioGroupItem = ({ className, label, ...props })=>/*#__PURE__*/ jsxs("div
|
|
|
3524
3537
|
})
|
|
3525
3538
|
]
|
|
3526
3539
|
});
|
|
3527
|
-
var
|
|
3540
|
+
var control = 'style__h9oy581';
|
|
3528
3541
|
var styles_css_range = 'style__h9oy583';
|
|
3529
3542
|
var Slider_styles_css_root = 'style__h9oy580';
|
|
3530
3543
|
var styles_css_thumb = 'style__h9oy584';
|
|
@@ -3561,7 +3574,7 @@ function Slider_Slider({ className, defaultValue, value, min = 0, max = 100, onV
|
|
|
3561
3574
|
},
|
|
3562
3575
|
...props,
|
|
3563
3576
|
children: /*#__PURE__*/ jsxs(Slider.Control, {
|
|
3564
|
-
className:
|
|
3577
|
+
className: control,
|
|
3565
3578
|
children: [
|
|
3566
3579
|
/*#__PURE__*/ jsx(Slider.Track, {
|
|
3567
3580
|
"data-slot": "slider-track",
|
|
@@ -3738,89 +3751,106 @@ function ScrollTopButton({ onClick, variant = 'outline', ...props }) {
|
|
|
3738
3751
|
children: /*#__PURE__*/ jsx(ChevronUp, {})
|
|
3739
3752
|
});
|
|
3740
3753
|
}
|
|
3741
|
-
var chevron = '
|
|
3742
|
-
var Select_styles_css_content = '
|
|
3743
|
-
var Select_styles_css_icon = '
|
|
3744
|
-
var Select_styles_css_item = '
|
|
3745
|
-
var itemIndicatorWrapper = '
|
|
3746
|
-
var Select_styles_css_label = '
|
|
3754
|
+
var chevron = 'style__5ilg7of';
|
|
3755
|
+
var Select_styles_css_content = 'style__5ilg7o8';
|
|
3756
|
+
var Select_styles_css_icon = 'style__5ilg7oe';
|
|
3757
|
+
var Select_styles_css_item = 'style__5ilg7ob';
|
|
3758
|
+
var itemIndicatorWrapper = 'style__5ilg7oc';
|
|
3759
|
+
var Select_styles_css_label = 'style__5ilg7oa';
|
|
3760
|
+
var Select_styles_css_positioner = 'style__5ilg7o7';
|
|
3747
3761
|
var scrollButton = 'style__5ilg7o6';
|
|
3748
|
-
var Select_styles_css_separator = '
|
|
3762
|
+
var Select_styles_css_separator = 'style__5ilg7od';
|
|
3749
3763
|
var Select_styles_css_sizes = {
|
|
3750
3764
|
sm: 'sm__5ilg7o3',
|
|
3751
3765
|
md: 'md__5ilg7o4',
|
|
3752
3766
|
lg: 'lg__5ilg7o5'
|
|
3753
3767
|
};
|
|
3754
3768
|
var Select_styles_css_trigger = 'style__5ilg7o2';
|
|
3755
|
-
var
|
|
3756
|
-
const
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3769
|
+
var styles_css_viewport = 'style__5ilg7o9';
|
|
3770
|
+
const Select_Select = ({ onValueChange, ...props })=>/*#__PURE__*/ jsx(Select.Root, {
|
|
3771
|
+
...props,
|
|
3772
|
+
onValueChange: (value, eventDetails)=>{
|
|
3773
|
+
if (null !== value) onValueChange?.(value, eventDetails);
|
|
3774
|
+
}
|
|
3775
|
+
});
|
|
3776
|
+
const SelectGroup = Select.Group;
|
|
3777
|
+
const SelectValue = Select.Value;
|
|
3778
|
+
const SelectTrigger = ({ className, children, size = 'md', ...props })=>/*#__PURE__*/ jsxs(Select.Trigger, {
|
|
3779
|
+
"data-slot": "select-trigger",
|
|
3760
3780
|
className: clsx(Select_styles_css_trigger, Select_styles_css_sizes[size], className),
|
|
3761
3781
|
...props,
|
|
3762
3782
|
children: [
|
|
3763
3783
|
children,
|
|
3764
|
-
/*#__PURE__*/ jsx(Icon, {
|
|
3765
|
-
|
|
3766
|
-
children: /*#__PURE__*/ jsx(ChevronDown, {
|
|
3784
|
+
/*#__PURE__*/ jsx(Select.Icon, {
|
|
3785
|
+
render: /*#__PURE__*/ jsx(ChevronDown, {
|
|
3767
3786
|
className: chevron
|
|
3768
3787
|
})
|
|
3769
3788
|
})
|
|
3770
3789
|
]
|
|
3771
3790
|
});
|
|
3772
|
-
const SelectScrollUpButton = ({ className, ...props })=>/*#__PURE__*/ jsx(
|
|
3791
|
+
const SelectScrollUpButton = ({ className, ...props })=>/*#__PURE__*/ jsx(Select.ScrollUpArrow, {
|
|
3792
|
+
"data-slot": "select-scroll-up-button",
|
|
3773
3793
|
className: clsx(scrollButton, className),
|
|
3774
3794
|
...props,
|
|
3775
3795
|
children: /*#__PURE__*/ jsx(ChevronUp, {
|
|
3776
3796
|
className: Select_styles_css_icon
|
|
3777
3797
|
})
|
|
3778
3798
|
});
|
|
3779
|
-
const SelectScrollDownButton = ({ className, ...props })=>/*#__PURE__*/ jsx(
|
|
3799
|
+
const SelectScrollDownButton = ({ className, ...props })=>/*#__PURE__*/ jsx(Select.ScrollDownArrow, {
|
|
3800
|
+
"data-slot": "select-scroll-down-button",
|
|
3780
3801
|
className: clsx(scrollButton, className),
|
|
3781
3802
|
...props,
|
|
3782
3803
|
children: /*#__PURE__*/ jsx(ChevronDown, {
|
|
3783
3804
|
className: Select_styles_css_icon
|
|
3784
3805
|
})
|
|
3785
3806
|
});
|
|
3786
|
-
const SelectContent = ({ className, children, position = 'popper', ...props })=>/*#__PURE__*/ jsx(
|
|
3787
|
-
children: /*#__PURE__*/
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3807
|
+
const SelectContent = ({ className, children, side = 'bottom', sideOffset = 4, align = 'center', alignOffset = 0, alignItemWithTrigger, position = 'popper', ...props })=>/*#__PURE__*/ jsx(Select.Portal, {
|
|
3808
|
+
children: /*#__PURE__*/ jsx(Select.Positioner, {
|
|
3809
|
+
side: side,
|
|
3810
|
+
sideOffset: sideOffset,
|
|
3811
|
+
align: align,
|
|
3812
|
+
alignOffset: alignOffset,
|
|
3813
|
+
alignItemWithTrigger: alignItemWithTrigger ?? 'item-aligned' === position,
|
|
3814
|
+
className: Select_styles_css_positioner,
|
|
3815
|
+
children: /*#__PURE__*/ jsxs(Select.Popup, {
|
|
3816
|
+
"data-slot": "select-content",
|
|
3817
|
+
className: clsx(Select_styles_css_content, className),
|
|
3818
|
+
...props,
|
|
3819
|
+
children: [
|
|
3820
|
+
/*#__PURE__*/ jsx(SelectScrollUpButton, {}),
|
|
3821
|
+
/*#__PURE__*/ jsx(Select.List, {
|
|
3822
|
+
className: styles_css_viewport,
|
|
3823
|
+
children: children
|
|
3824
|
+
}),
|
|
3825
|
+
/*#__PURE__*/ jsx(SelectScrollDownButton, {})
|
|
3826
|
+
]
|
|
3827
|
+
})
|
|
3799
3828
|
})
|
|
3800
3829
|
});
|
|
3801
|
-
const SelectLabel = ({ className, ...props })=>/*#__PURE__*/ jsx(
|
|
3802
|
-
|
|
3830
|
+
const SelectLabel = ({ className, ...props })=>/*#__PURE__*/ jsx(Select.GroupLabel, {
|
|
3831
|
+
"data-slot": "select-label",
|
|
3832
|
+
className: clsx(Select_styles_css_label, className),
|
|
3803
3833
|
...props
|
|
3804
3834
|
});
|
|
3805
|
-
const SelectItem = ({ className, children, ...props })=>/*#__PURE__*/ jsxs(
|
|
3806
|
-
|
|
3835
|
+
const SelectItem = ({ className, children, ...props })=>/*#__PURE__*/ jsxs(Select.Item, {
|
|
3836
|
+
"data-slot": "select-item",
|
|
3837
|
+
className: clsx(Select_styles_css_item, className),
|
|
3807
3838
|
...props,
|
|
3808
3839
|
children: [
|
|
3809
|
-
/*#__PURE__*/ jsx(
|
|
3840
|
+
/*#__PURE__*/ jsx(Select.ItemIndicator, {
|
|
3810
3841
|
className: itemIndicatorWrapper,
|
|
3811
|
-
children: /*#__PURE__*/ jsx(
|
|
3812
|
-
|
|
3813
|
-
className: Select_styles_css_icon
|
|
3814
|
-
})
|
|
3842
|
+
children: /*#__PURE__*/ jsx(Check, {
|
|
3843
|
+
className: Select_styles_css_icon
|
|
3815
3844
|
})
|
|
3816
3845
|
}),
|
|
3817
|
-
/*#__PURE__*/ jsx(ItemText, {
|
|
3846
|
+
/*#__PURE__*/ jsx(Select.ItemText, {
|
|
3818
3847
|
children: children
|
|
3819
3848
|
})
|
|
3820
3849
|
]
|
|
3821
3850
|
});
|
|
3822
|
-
const SelectSeparator = ({ className, ...props })=>/*#__PURE__*/ jsx(
|
|
3823
|
-
|
|
3851
|
+
const SelectSeparator = ({ className, ...props })=>/*#__PURE__*/ jsx(Select.Separator, {
|
|
3852
|
+
"data-slot": "select-separator",
|
|
3853
|
+
className: clsx(Select_styles_css_separator, className),
|
|
3824
3854
|
...props
|
|
3825
3855
|
});
|
|
3826
3856
|
var Sheet_styles_css_closeButton = 'style__5dkj2fc';
|
|
@@ -3983,7 +4013,7 @@ function useSidebar() {
|
|
|
3983
4013
|
if (!context) throw new Error('useSidebar must be used within a Sidebar.Provider.');
|
|
3984
4014
|
return context;
|
|
3985
4015
|
}
|
|
3986
|
-
function
|
|
4016
|
+
function Provider({ defaultOpen = true, open: openProp, onOpenChange, className, style, children, ...props }) {
|
|
3987
4017
|
const isMobile = useIsMobile();
|
|
3988
4018
|
const [openMobile, setOpenMobile] = __rspack_external_react.useState(false);
|
|
3989
4019
|
const [_open, _setOpen] = __rspack_external_react.useState(defaultOpen);
|
|
@@ -4284,7 +4314,7 @@ function MenuButton({ isActive = false, variant = 'default', size = 'default', t
|
|
|
4284
4314
|
}, props)
|
|
4285
4315
|
});
|
|
4286
4316
|
if (!tooltip || 'collapsed' !== state || isMobile) return button;
|
|
4287
|
-
return /*#__PURE__*/ jsx(
|
|
4317
|
+
return /*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
4288
4318
|
side: "right",
|
|
4289
4319
|
...getTooltipProps(tooltip),
|
|
4290
4320
|
children: button
|
|
@@ -4363,7 +4393,7 @@ function MenuSubButton({ size = 'md', isActive = false, className, render, ...pr
|
|
|
4363
4393
|
});
|
|
4364
4394
|
}
|
|
4365
4395
|
const Sidebar_Sidebar = Object.assign(SidebarRoot, {
|
|
4366
|
-
Provider:
|
|
4396
|
+
Provider: Provider,
|
|
4367
4397
|
Trigger: Sidebar_Trigger,
|
|
4368
4398
|
Rail: Rail,
|
|
4369
4399
|
Inset: Inset,
|
|
@@ -4394,19 +4424,23 @@ var Tabs_styles_css_sizes = {
|
|
|
4394
4424
|
lg: 'lg__hworoa4'
|
|
4395
4425
|
};
|
|
4396
4426
|
var styles_css_triggerClass = 'style__hworoa1';
|
|
4397
|
-
const TabsContent = ({ className, ...props })=>/*#__PURE__*/ jsx(
|
|
4427
|
+
const TabsContent = ({ className, ...props })=>/*#__PURE__*/ jsx(Tabs.Panel, {
|
|
4428
|
+
"data-slot": "tabs-content",
|
|
4398
4429
|
className: clsx(Tabs_styles_css_contentClass, className),
|
|
4399
4430
|
...props
|
|
4400
4431
|
});
|
|
4401
|
-
const TabsList = ({ className, ...props })=>/*#__PURE__*/ jsx(
|
|
4432
|
+
const TabsList = ({ className, ...props })=>/*#__PURE__*/ jsx(Tabs.List, {
|
|
4433
|
+
"data-slot": "tabs-list",
|
|
4402
4434
|
className: clsx(listClass, className),
|
|
4403
4435
|
...props
|
|
4404
4436
|
});
|
|
4405
|
-
const TabsTrigger = ({ className, size = 'md', ...props })=>/*#__PURE__*/ jsx(
|
|
4437
|
+
const TabsTrigger = ({ className, size = 'md', ...props })=>/*#__PURE__*/ jsx(Tabs.Tab, {
|
|
4438
|
+
"data-slot": "tabs-trigger",
|
|
4406
4439
|
className: clsx(styles_css_triggerClass, Tabs_styles_css_sizes[size], className),
|
|
4407
4440
|
...props
|
|
4408
4441
|
});
|
|
4409
|
-
const Tabs_Tabs = (props)=>/*#__PURE__*/ jsx(Tabs, {
|
|
4442
|
+
const Tabs_Tabs = (props)=>/*#__PURE__*/ jsx(Tabs.Root, {
|
|
4443
|
+
"data-slot": "tabs",
|
|
4410
4444
|
...props
|
|
4411
4445
|
});
|
|
4412
4446
|
Tabs_Tabs.Content = TabsContent;
|
|
@@ -4440,7 +4474,7 @@ const ToggleGroup = ({ value, onChange, options, size, className, label, multipl
|
|
|
4440
4474
|
}),
|
|
4441
4475
|
/*#__PURE__*/ jsx("div", {
|
|
4442
4476
|
className: toggleGroup_css_buttonsClass,
|
|
4443
|
-
children: options.map((option)=>/*#__PURE__*/ jsx(
|
|
4477
|
+
children: options.map((option)=>/*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
4444
4478
|
arrow: true,
|
|
4445
4479
|
text: option.title,
|
|
4446
4480
|
children: /*#__PURE__*/ jsx(Button_Button, {
|
|
@@ -4458,53 +4492,4 @@ const ToggleGroup = ({ value, onChange, options, size, className, label, multipl
|
|
|
4458
4492
|
]
|
|
4459
4493
|
});
|
|
4460
4494
|
};
|
|
4461
|
-
|
|
4462
|
-
...form,
|
|
4463
|
-
children: /*#__PURE__*/ jsx("form", {
|
|
4464
|
-
noValidate: true,
|
|
4465
|
-
...props,
|
|
4466
|
-
children: children
|
|
4467
|
-
})
|
|
4468
|
-
});
|
|
4469
|
-
function FormMaskField({ name, control, ...props }) {
|
|
4470
|
-
return /*#__PURE__*/ jsx(Controller, {
|
|
4471
|
-
control: control,
|
|
4472
|
-
name: name,
|
|
4473
|
-
render: ({ field, fieldState })=>/*#__PURE__*/ jsx(MaskField, {
|
|
4474
|
-
...props,
|
|
4475
|
-
...field,
|
|
4476
|
-
error: !!fieldState.error,
|
|
4477
|
-
helperText: fieldState.error?.message
|
|
4478
|
-
})
|
|
4479
|
-
});
|
|
4480
|
-
}
|
|
4481
|
-
const useForm_useForm = ({ mode = 'onBlur', ...params } = {})=>useForm({
|
|
4482
|
-
...params,
|
|
4483
|
-
mode
|
|
4484
|
-
});
|
|
4485
|
-
const FormSubmitButton = ({ children, isLoading, ...props })=>{
|
|
4486
|
-
const { formState } = useFormContext();
|
|
4487
|
-
return /*#__PURE__*/ jsx(Button_Button, {
|
|
4488
|
-
type: "submit",
|
|
4489
|
-
isLoading: isLoading || formState.isSubmitting,
|
|
4490
|
-
...props,
|
|
4491
|
-
children: children
|
|
4492
|
-
});
|
|
4493
|
-
};
|
|
4494
|
-
function FormTextField({ name, control, gridArea, ...props }) {
|
|
4495
|
-
return /*#__PURE__*/ jsx(Controller, {
|
|
4496
|
-
control: control,
|
|
4497
|
-
name: name,
|
|
4498
|
-
render: ({ field, fieldState })=>/*#__PURE__*/ jsx(TextField, {
|
|
4499
|
-
...props,
|
|
4500
|
-
...field,
|
|
4501
|
-
style: {
|
|
4502
|
-
gridArea
|
|
4503
|
-
},
|
|
4504
|
-
value: field.value || '',
|
|
4505
|
-
error: !!fieldState.error,
|
|
4506
|
-
helperText: fieldState.error?.message
|
|
4507
|
-
})
|
|
4508
|
-
});
|
|
4509
|
-
}
|
|
4510
|
-
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, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sheet, Sidebar_Sidebar as Sidebar, Slider_Slider as Slider, Tabs_Tabs as Tabs, TextField, ToggleGroup, 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 };
|
|
4495
|
+
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, 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, 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, useDashboard, useIsMobile, useOverflowed, useSidebar, variants, weights };
|