@max-ts/kit 0.27.0 → 0.28.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/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 +3 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.mjs +251 -163
- package/lib/styles.css +120 -51
- package/package.json +2 -9
package/lib/index.mjs
CHANGED
|
@@ -14,19 +14,20 @@ 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 {
|
|
28
|
+
import { Select } from "@base-ui/react/select";
|
|
29
|
+
import { Tabs } from "@base-ui/react/tabs";
|
|
30
|
+
import { Controller, FormProvider, useController, useFieldArray, useForm, useFormContext, useWatch } from "react-hook-form";
|
|
30
31
|
import * as __rspack_external_react from "react";
|
|
31
32
|
var __webpack_require__ = {};
|
|
32
33
|
(()=>{
|
|
@@ -559,7 +560,12 @@ const DayButton = (props)=>{
|
|
|
559
560
|
var Dropdown_styles_css_trigger = 'style__1e2msjb0';
|
|
560
561
|
function Dropdown(props) {
|
|
561
562
|
const { options, onChange, ...restProps } = props;
|
|
562
|
-
const
|
|
563
|
+
const selectedValue = 'string' == typeof restProps.value || 'number' == typeof restProps.value ? restProps.value.toString() : void 0;
|
|
564
|
+
const selectedOption = options?.find(({ value })=>value.toString() === selectedValue);
|
|
565
|
+
const items = options?.map(({ value, label })=>({
|
|
566
|
+
value: value.toString(),
|
|
567
|
+
label
|
|
568
|
+
}));
|
|
563
569
|
const handleChange = (value)=>{
|
|
564
570
|
if (onChange) onChange({
|
|
565
571
|
target: {
|
|
@@ -567,9 +573,10 @@ function Dropdown(props) {
|
|
|
567
573
|
}
|
|
568
574
|
});
|
|
569
575
|
};
|
|
570
|
-
return /*#__PURE__*/ jsxs(
|
|
571
|
-
value:
|
|
576
|
+
return /*#__PURE__*/ jsxs(Select_Select, {
|
|
577
|
+
value: selectedValue,
|
|
572
578
|
onValueChange: handleChange,
|
|
579
|
+
items: items,
|
|
573
580
|
children: [
|
|
574
581
|
/*#__PURE__*/ jsx(SelectTrigger, {
|
|
575
582
|
className: Dropdown_styles_css_trigger,
|
|
@@ -630,7 +637,7 @@ const Calendar = ({ className, classNames, showOutsideDays = true, ...props })=>
|
|
|
630
637
|
},
|
|
631
638
|
...props
|
|
632
639
|
});
|
|
633
|
-
var
|
|
640
|
+
var theme = {
|
|
634
641
|
colors: {
|
|
635
642
|
primary: 'var(--colors-primary)',
|
|
636
643
|
secondary: 'var(--colors-secondary)',
|
|
@@ -707,6 +714,9 @@ var theme_css_theme = {
|
|
|
707
714
|
lg: 'var(--borderRadius-lg)'
|
|
708
715
|
}
|
|
709
716
|
};
|
|
717
|
+
const negativeSpacing = (...keys)=>keys.map((key)=>`calc(-1 * ${theme.spacing[key]})`).join(' ');
|
|
718
|
+
const spacing = (...keys)=>keys.map((key)=>theme.spacing[key]).join(' ');
|
|
719
|
+
const calculateSize = (value)=>'number' == typeof value ? `${value}px` : value;
|
|
710
720
|
var card_css_content = 'style__oyalw04';
|
|
711
721
|
var card_css_description = 'style__oyalw03';
|
|
712
722
|
var card_css_footer = 'style__oyalw05';
|
|
@@ -715,7 +725,7 @@ var card_css_root = 'style__oyalw00';
|
|
|
715
725
|
var card_css_title = 'style__oyalw02';
|
|
716
726
|
const Card = ({ className, elevation = 2, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
717
727
|
style: {
|
|
718
|
-
boxShadow:
|
|
728
|
+
boxShadow: theme.elevation[elevation]
|
|
719
729
|
},
|
|
720
730
|
className: clsx(card_css_root, className),
|
|
721
731
|
...props
|
|
@@ -1130,7 +1140,7 @@ const ConfirmAction = (props)=>{
|
|
|
1130
1140
|
onOpenChange: onOpenChange,
|
|
1131
1141
|
children: [
|
|
1132
1142
|
/*#__PURE__*/ jsx(Popover_Popover.Trigger, {
|
|
1133
|
-
|
|
1143
|
+
render: actionComponent({
|
|
1134
1144
|
onClick: onActionComponentClick
|
|
1135
1145
|
})
|
|
1136
1146
|
}),
|
|
@@ -1285,43 +1295,42 @@ const ContentState = ({ isLoading, isError, isCustom, errorState, customState, c
|
|
|
1285
1295
|
}
|
|
1286
1296
|
return children;
|
|
1287
1297
|
};
|
|
1288
|
-
var arrowClass = '
|
|
1289
|
-
var contentClass = '
|
|
1290
|
-
var
|
|
1291
|
-
|
|
1292
|
-
const
|
|
1293
|
-
const
|
|
1294
|
-
const
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
});
|
|
1299
|
-
const Tooltip = ({ text, content, children, side = 'top', sideOffset = 10, alignOffset, delayDuration = 0, className, ref, ...props })=>/*#__PURE__*/ jsx(TooltipProvider, {
|
|
1300
|
-
delayDuration: delayDuration,
|
|
1301
|
-
children: /*#__PURE__*/ jsxs(TooltipRoot, {
|
|
1298
|
+
var arrowClass = 'style__izacrl5';
|
|
1299
|
+
var contentClass = 'style__izacrl3';
|
|
1300
|
+
var positionerClass = 'style__izacrl2';
|
|
1301
|
+
var textClass = 'style__izacrl4';
|
|
1302
|
+
const TooltipProvider = Tooltip.Provider;
|
|
1303
|
+
const TooltipRootComponent = Tooltip.Root;
|
|
1304
|
+
const TooltipTrigger = Tooltip.Trigger;
|
|
1305
|
+
const Tooltip_Tooltip = ({ text, content, children, side = 'top', sideOffset = 10, align = 'center', alignOffset, arrow, delayDuration = 0, className, ref, ...props })=>/*#__PURE__*/ jsx(TooltipProvider, {
|
|
1306
|
+
delay: delayDuration,
|
|
1307
|
+
children: /*#__PURE__*/ jsxs(TooltipRootComponent, {
|
|
1302
1308
|
...props,
|
|
1303
1309
|
children: [
|
|
1304
1310
|
/*#__PURE__*/ jsx(TooltipTrigger, {
|
|
1305
1311
|
ref: ref,
|
|
1306
|
-
|
|
1307
|
-
children: children
|
|
1312
|
+
render: children
|
|
1308
1313
|
}),
|
|
1309
|
-
content || text ? /*#__PURE__*/ jsx(
|
|
1310
|
-
children: /*#__PURE__*/
|
|
1311
|
-
|
|
1314
|
+
content || text ? /*#__PURE__*/ jsx(Tooltip.Portal, {
|
|
1315
|
+
children: /*#__PURE__*/ jsx(Tooltip.Positioner, {
|
|
1316
|
+
align: align,
|
|
1312
1317
|
alignOffset: alignOffset,
|
|
1313
1318
|
sideOffset: sideOffset,
|
|
1314
|
-
hideWhenDetached: true,
|
|
1315
1319
|
side: side,
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1320
|
+
className: positionerClass,
|
|
1321
|
+
children: /*#__PURE__*/ jsxs(Tooltip.Popup, {
|
|
1322
|
+
"data-slot": "tooltip-content",
|
|
1323
|
+
className: clsx_0(contentClass, className),
|
|
1324
|
+
children: [
|
|
1325
|
+
content ?? /*#__PURE__*/ jsx("p", {
|
|
1326
|
+
className: textClass,
|
|
1327
|
+
children: text
|
|
1328
|
+
}),
|
|
1329
|
+
arrow && /*#__PURE__*/ jsx(Tooltip.Arrow, {
|
|
1330
|
+
className: arrowClass
|
|
1331
|
+
})
|
|
1332
|
+
]
|
|
1333
|
+
})
|
|
1325
1334
|
})
|
|
1326
1335
|
}) : null
|
|
1327
1336
|
]
|
|
@@ -1362,7 +1371,7 @@ const CopyTypography = (props)=>{
|
|
|
1362
1371
|
className: copyIconClass
|
|
1363
1372
|
});
|
|
1364
1373
|
const { tooltipOpen, handleMouseEnter, handleMouseLeave, handleClick, tooltipTitle, isIconOnLeft } = useLogic_useLogic_useLogic(props);
|
|
1365
|
-
return /*#__PURE__*/ jsx(
|
|
1374
|
+
return /*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
1366
1375
|
open: tooltipOpen,
|
|
1367
1376
|
arrow: true,
|
|
1368
1377
|
text: tooltipTitle,
|
|
@@ -1876,7 +1885,7 @@ const MainIconButton = (props)=>{
|
|
|
1876
1885
|
const { tooltipProps } = MainIconButton_useLogic_useLogic_useLogic(props);
|
|
1877
1886
|
const { action, onActionClick, isDisabled, tooltipPlacement } = props;
|
|
1878
1887
|
const { name, icon, needConfirm, confirmText, confirmButtonProps, disabled, isLoading, onClick } = action;
|
|
1879
|
-
const renderButton = (renderProps)=>/*#__PURE__*/ jsx(
|
|
1888
|
+
const renderButton = (renderProps)=>/*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
1880
1889
|
arrow: true,
|
|
1881
1890
|
side: tooltipPlacement,
|
|
1882
1891
|
...tooltipProps,
|
|
@@ -1905,7 +1914,7 @@ const MainAction = ({ action, onActionClick, isDisabled, tooltipPlacement })=>{
|
|
|
1905
1914
|
const { disabled, icon, name, disabledReason, actions, isLoading } = action;
|
|
1906
1915
|
return /*#__PURE__*/ jsxs(DropdownMenu, {
|
|
1907
1916
|
children: [
|
|
1908
|
-
/*#__PURE__*/ jsx(
|
|
1917
|
+
/*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
1909
1918
|
text: disabledReason || name,
|
|
1910
1919
|
side: tooltipPlacement,
|
|
1911
1920
|
arrow: true,
|
|
@@ -1953,7 +1962,7 @@ const SecondaryActions = ({ actions, onActionClick, tooltipPlacement, isDisabled
|
|
|
1953
1962
|
/*#__PURE__*/ jsx(DropdownMenu.Content, {
|
|
1954
1963
|
children: actions.map((action)=>{
|
|
1955
1964
|
const { onClick, name, disabledReason, isLoading } = action;
|
|
1956
|
-
return /*#__PURE__*/ jsx(
|
|
1965
|
+
return /*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
1957
1966
|
arrow: true,
|
|
1958
1967
|
side: tooltipPlacement,
|
|
1959
1968
|
text: disabledReason,
|
|
@@ -2223,10 +2232,11 @@ var label_css_disabled = 'style__c31e141';
|
|
|
2223
2232
|
var label_css_error = 'style__c31e142';
|
|
2224
2233
|
var required = 'style__c31e143';
|
|
2225
2234
|
var label_css_root = 'Label__c31e140';
|
|
2226
|
-
const Label_Label = ({ className, disabled, ...props })=>/*#__PURE__*/ jsx(
|
|
2235
|
+
const Label_Label = ({ className, disabled, error, ...props })=>/*#__PURE__*/ jsx("label", {
|
|
2236
|
+
"data-slot": "label",
|
|
2227
2237
|
className: clsx(label_css_root, {
|
|
2228
2238
|
[label_css_disabled]: disabled,
|
|
2229
|
-
[label_css_error]:
|
|
2239
|
+
[label_css_error]: error,
|
|
2230
2240
|
[required]: props.required
|
|
2231
2241
|
}, className),
|
|
2232
2242
|
...props
|
|
@@ -2614,65 +2624,72 @@ Dialog_Dialog.Header = Dialog_Header;
|
|
|
2614
2624
|
Dialog_Dialog.Footer = Dialog_Footer;
|
|
2615
2625
|
Dialog_Dialog.Title = Dialog_Title;
|
|
2616
2626
|
Dialog_Dialog.Description = Dialog_Description;
|
|
2617
|
-
var Drawer_styles_css_content = '
|
|
2618
|
-
var
|
|
2619
|
-
var
|
|
2620
|
-
var
|
|
2621
|
-
var
|
|
2627
|
+
var Drawer_styles_css_content = 'style__ccss504';
|
|
2628
|
+
var contentInner = 'style__ccss505';
|
|
2629
|
+
var Drawer_styles_css_description = 'style__ccss50a';
|
|
2630
|
+
var dragHandle = 'style__ccss506';
|
|
2631
|
+
var Drawer_styles_css_footer = 'style__ccss508';
|
|
2632
|
+
var Drawer_styles_css_header = 'style__ccss507';
|
|
2622
2633
|
var Drawer_styles_css_overlay = 'style__ccss502';
|
|
2623
|
-
var Drawer_styles_css_title = '
|
|
2624
|
-
|
|
2634
|
+
var Drawer_styles_css_title = 'style__ccss509';
|
|
2635
|
+
var viewport = 'style__ccss503';
|
|
2636
|
+
const Drawer_Drawer = ({ children, trigger, className, title, description = '', footer, closeButton, swipeDirection = 'down', ...props })=>/*#__PURE__*/ jsxs(Drawer.Root, {
|
|
2637
|
+
swipeDirection: swipeDirection,
|
|
2625
2638
|
...props,
|
|
2626
2639
|
children: [
|
|
2627
2640
|
trigger && /*#__PURE__*/ jsx(Drawer.Trigger, {
|
|
2628
2641
|
"data-slot": "drawer-trigger",
|
|
2629
|
-
|
|
2630
|
-
children: trigger
|
|
2642
|
+
render: trigger
|
|
2631
2643
|
}),
|
|
2632
2644
|
/*#__PURE__*/ jsxs(Drawer.Portal, {
|
|
2633
2645
|
"data-slot": "drawer-portal",
|
|
2634
2646
|
children: [
|
|
2635
|
-
/*#__PURE__*/ jsx(Drawer.
|
|
2647
|
+
/*#__PURE__*/ jsx(Drawer.Backdrop, {
|
|
2636
2648
|
"data-slot": "drawer-overlay",
|
|
2637
2649
|
className: Drawer_styles_css_overlay
|
|
2638
2650
|
}),
|
|
2639
|
-
/*#__PURE__*/
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
/*#__PURE__*/ jsxs("div", {
|
|
2647
|
-
"data-slot": "drawer-header",
|
|
2648
|
-
className: Drawer_styles_css_header,
|
|
2651
|
+
/*#__PURE__*/ jsx(Drawer.Viewport, {
|
|
2652
|
+
className: viewport,
|
|
2653
|
+
children: /*#__PURE__*/ jsx(Drawer.Popup, {
|
|
2654
|
+
"data-slot": "drawer-content",
|
|
2655
|
+
className: clsx('group/drawer-content', Drawer_styles_css_content, className),
|
|
2656
|
+
children: /*#__PURE__*/ jsxs(Drawer.Content, {
|
|
2657
|
+
className: contentInner,
|
|
2649
2658
|
children: [
|
|
2650
|
-
/*#__PURE__*/ jsx(
|
|
2651
|
-
|
|
2652
|
-
className: Drawer_styles_css_title,
|
|
2653
|
-
children: title
|
|
2659
|
+
/*#__PURE__*/ jsx("div", {
|
|
2660
|
+
className: dragHandle
|
|
2654
2661
|
}),
|
|
2655
|
-
/*#__PURE__*/
|
|
2656
|
-
"data-slot": "drawer-
|
|
2657
|
-
className:
|
|
2658
|
-
children:
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2662
|
+
/*#__PURE__*/ jsxs("div", {
|
|
2663
|
+
"data-slot": "drawer-header",
|
|
2664
|
+
className: Drawer_styles_css_header,
|
|
2665
|
+
children: [
|
|
2666
|
+
/*#__PURE__*/ jsx(Drawer.Title, {
|
|
2667
|
+
"data-slot": "drawer-title",
|
|
2668
|
+
className: Drawer_styles_css_title,
|
|
2669
|
+
children: title
|
|
2670
|
+
}),
|
|
2671
|
+
/*#__PURE__*/ jsx(Drawer.Description, {
|
|
2672
|
+
"data-slot": "drawer-description",
|
|
2673
|
+
className: Drawer_styles_css_description,
|
|
2674
|
+
children: description
|
|
2675
|
+
})
|
|
2676
|
+
]
|
|
2677
|
+
}),
|
|
2678
|
+
children,
|
|
2679
|
+
/*#__PURE__*/ jsxs("div", {
|
|
2680
|
+
"data-slot": "drawer-footer",
|
|
2681
|
+
className: Drawer_styles_css_footer,
|
|
2682
|
+
children: [
|
|
2683
|
+
footer,
|
|
2684
|
+
closeButton && /*#__PURE__*/ jsx(Drawer.Close, {
|
|
2685
|
+
"data-slot": "drawer-close",
|
|
2686
|
+
render: closeButton
|
|
2687
|
+
})
|
|
2688
|
+
]
|
|
2672
2689
|
})
|
|
2673
2690
|
]
|
|
2674
2691
|
})
|
|
2675
|
-
|
|
2692
|
+
})
|
|
2676
2693
|
})
|
|
2677
2694
|
]
|
|
2678
2695
|
})
|
|
@@ -2736,7 +2753,7 @@ Empty.Media = Empty_Media;
|
|
|
2736
2753
|
Empty.Title = Empty_Title;
|
|
2737
2754
|
Empty.Description = Empty_Description;
|
|
2738
2755
|
Empty.Content = Empty_Content;
|
|
2739
|
-
var
|
|
2756
|
+
var styles_css_arrow = 'style__a5l83v4';
|
|
2740
2757
|
var arrowLeft = 'style__a5l83v5';
|
|
2741
2758
|
var arrowRight = 'style__a5l83v6';
|
|
2742
2759
|
var carousel = 'style__a5l83v0';
|
|
@@ -2792,7 +2809,7 @@ const ImageCarousel = ({ images = [], autoPlay = false, interval = 5000 })=>{
|
|
|
2792
2809
|
children: [
|
|
2793
2810
|
/*#__PURE__*/ jsx("button", {
|
|
2794
2811
|
type: "button",
|
|
2795
|
-
className: clsx(
|
|
2812
|
+
className: clsx(styles_css_arrow, arrowLeft),
|
|
2796
2813
|
onClick: goToPrevious,
|
|
2797
2814
|
children: /*#__PURE__*/ jsx(ChevronLeft, {
|
|
2798
2815
|
size: 24
|
|
@@ -2800,7 +2817,7 @@ const ImageCarousel = ({ images = [], autoPlay = false, interval = 5000 })=>{
|
|
|
2800
2817
|
}),
|
|
2801
2818
|
/*#__PURE__*/ jsx("button", {
|
|
2802
2819
|
type: "button",
|
|
2803
|
-
className: clsx(
|
|
2820
|
+
className: clsx(styles_css_arrow, arrowRight),
|
|
2804
2821
|
onClick: goToNext,
|
|
2805
2822
|
children: /*#__PURE__*/ jsx(ChevronRight, {
|
|
2806
2823
|
size: 24
|
|
@@ -2928,19 +2945,19 @@ const NotificationContainer = ({ position = 'bottomRight', ...props })=>/*#__PUR
|
|
|
2928
2945
|
icons: {
|
|
2929
2946
|
error: /*#__PURE__*/ jsx(OctagonAlert, {
|
|
2930
2947
|
size: 20,
|
|
2931
|
-
color:
|
|
2948
|
+
color: theme.colors.error
|
|
2932
2949
|
}),
|
|
2933
2950
|
success: /*#__PURE__*/ jsx(CircleCheck, {
|
|
2934
2951
|
size: 20,
|
|
2935
|
-
color:
|
|
2952
|
+
color: theme.colors.success
|
|
2936
2953
|
}),
|
|
2937
2954
|
warning: /*#__PURE__*/ jsx(TriangleAlert, {
|
|
2938
2955
|
size: 20,
|
|
2939
|
-
color:
|
|
2956
|
+
color: theme.colors.warning
|
|
2940
2957
|
}),
|
|
2941
2958
|
info: /*#__PURE__*/ jsx(Info, {
|
|
2942
2959
|
size: 20,
|
|
2943
|
-
color:
|
|
2960
|
+
color: theme.colors.info
|
|
2944
2961
|
})
|
|
2945
2962
|
},
|
|
2946
2963
|
position: NOTIFICATION_POSITIONS[position],
|
|
@@ -3042,7 +3059,7 @@ const getRowsCountStyle = (rowsCount, style)=>({
|
|
|
3042
3059
|
...style,
|
|
3043
3060
|
'--rows-count': rowsCount
|
|
3044
3061
|
});
|
|
3045
|
-
const OverflowTypography_useLogic_useLogic = ({ text, children, tooltipProps, visibleLastSymbolsCount = 0, rowsCount = 1, ref, style: styleProp })=>{
|
|
3062
|
+
const OverflowTypography_useLogic_useLogic = ({ text, children, tooltipProps, visibleLastSymbolsCount = 0, rowsCount = 1, ref, style: styleProp, ...restProps })=>{
|
|
3046
3063
|
const style = getRowsCountStyle(rowsCount, styleProp);
|
|
3047
3064
|
const label = text ?? ('string' == typeof children ? children : void 0);
|
|
3048
3065
|
const hasVisibleLastSymbols = Boolean(label && visibleLastSymbolsCount > 0);
|
|
@@ -3070,15 +3087,16 @@ const OverflowTypography_useLogic_useLogic = ({ text, children, tooltipProps, vi
|
|
|
3070
3087
|
tooltipContent: resolvedTooltipContent,
|
|
3071
3088
|
restTooltipProps,
|
|
3072
3089
|
style,
|
|
3073
|
-
visibleLastSymbolsCount
|
|
3090
|
+
visibleLastSymbolsCount,
|
|
3091
|
+
restProps
|
|
3074
3092
|
};
|
|
3075
3093
|
};
|
|
3076
3094
|
const OverflowTypography = (props)=>{
|
|
3077
|
-
const { label, hasVisibleLastSymbols, hasMultipleRows, overflowRef, tooltipContent, restTooltipProps, style,
|
|
3095
|
+
const { label, hasVisibleLastSymbols, visibleLastSymbolsCount, hasMultipleRows, overflowRef, tooltipContent, restTooltipProps, style, restProps } = OverflowTypography_useLogic_useLogic(props);
|
|
3078
3096
|
const { align = 'left', className, text, children } = props;
|
|
3079
3097
|
if (hasVisibleLastSymbols && label) {
|
|
3080
3098
|
const { firstPartLabel, secondPartLabel } = truncateString(visibleLastSymbolsCount, label);
|
|
3081
|
-
return /*#__PURE__*/ jsx(
|
|
3099
|
+
return /*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
3082
3100
|
...restTooltipProps,
|
|
3083
3101
|
arrow: true,
|
|
3084
3102
|
content: tooltipContent,
|
|
@@ -3087,7 +3105,7 @@ const OverflowTypography = (props)=>{
|
|
|
3087
3105
|
"data-slot": "overflow-typography",
|
|
3088
3106
|
children: [
|
|
3089
3107
|
/*#__PURE__*/ jsx(Typography, {
|
|
3090
|
-
...
|
|
3108
|
+
...restProps,
|
|
3091
3109
|
align: align,
|
|
3092
3110
|
className: clsx(truncate, className),
|
|
3093
3111
|
component: "span",
|
|
@@ -3098,7 +3116,7 @@ const OverflowTypography = (props)=>{
|
|
|
3098
3116
|
children: firstPartLabel
|
|
3099
3117
|
}),
|
|
3100
3118
|
/*#__PURE__*/ jsx(Typography, {
|
|
3101
|
-
...
|
|
3119
|
+
...restProps,
|
|
3102
3120
|
align: align,
|
|
3103
3121
|
className: className,
|
|
3104
3122
|
component: "span",
|
|
@@ -3110,12 +3128,12 @@ const OverflowTypography = (props)=>{
|
|
|
3110
3128
|
})
|
|
3111
3129
|
});
|
|
3112
3130
|
}
|
|
3113
|
-
return /*#__PURE__*/ jsx(
|
|
3131
|
+
return /*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
3114
3132
|
...restTooltipProps,
|
|
3115
3133
|
arrow: true,
|
|
3116
3134
|
content: tooltipContent,
|
|
3117
3135
|
children: /*#__PURE__*/ jsx(Typography, {
|
|
3118
|
-
...
|
|
3136
|
+
...restProps,
|
|
3119
3137
|
align: align,
|
|
3120
3138
|
className: clsx(truncate, hasMultipleRows && multipleRows, className),
|
|
3121
3139
|
"data-slot": "overflow-typography",
|
|
@@ -3175,7 +3193,7 @@ const Header_Header_Header = (props)=>{
|
|
|
3175
3193
|
/*#__PURE__*/ jsxs("div", {
|
|
3176
3194
|
className: buttonsClass,
|
|
3177
3195
|
children: [
|
|
3178
|
-
/*#__PURE__*/ jsx(
|
|
3196
|
+
/*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
3179
3197
|
text: pinned ? 'Развернуть' : 'Свернуть',
|
|
3180
3198
|
children: /*#__PURE__*/ jsx(Button_Button, {
|
|
3181
3199
|
variant: "ghost",
|
|
@@ -3184,7 +3202,7 @@ const Header_Header_Header = (props)=>{
|
|
|
3184
3202
|
children: pinned ? /*#__PURE__*/ jsx(PanelLeftOpen, {}) : /*#__PURE__*/ jsx(PanelLeftClose, {})
|
|
3185
3203
|
})
|
|
3186
3204
|
}),
|
|
3187
|
-
backButton && /*#__PURE__*/ jsx(
|
|
3205
|
+
backButton && /*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
3188
3206
|
text: "Назад",
|
|
3189
3207
|
children: /*#__PURE__*/ jsx(Button_Button, {
|
|
3190
3208
|
...backButton,
|
|
@@ -3373,7 +3391,7 @@ function YearsDropdown({ year, onSelect, minDate, maxDate }) {
|
|
|
3373
3391
|
const onChange = (year)=>{
|
|
3374
3392
|
onSelect?.(Number(year));
|
|
3375
3393
|
};
|
|
3376
|
-
return /*#__PURE__*/ jsxs(
|
|
3394
|
+
return /*#__PURE__*/ jsxs(Select_Select, {
|
|
3377
3395
|
onValueChange: onChange,
|
|
3378
3396
|
value: year.toString(),
|
|
3379
3397
|
children: [
|
|
@@ -3492,7 +3510,7 @@ var indicatorClass = 'style__ia95d13';
|
|
|
3492
3510
|
var styles_css_itemClass = 'style__ia95d12';
|
|
3493
3511
|
var itemWrapperClass = 'style__ia95d11';
|
|
3494
3512
|
var radioGroupClass = 'RadioGroup__ia95d10';
|
|
3495
|
-
const RadioGroup_RadioGroup = ({ className, ...props })=>/*#__PURE__*/ jsx(
|
|
3513
|
+
const RadioGroup_RadioGroup = ({ className, ...props })=>/*#__PURE__*/ jsx(radio_group_RadioGroup, {
|
|
3496
3514
|
"data-slot": "radio-group",
|
|
3497
3515
|
className: clsx_0(radioGroupClass, className),
|
|
3498
3516
|
...props
|
|
@@ -3500,12 +3518,12 @@ const RadioGroup_RadioGroup = ({ className, ...props })=>/*#__PURE__*/ jsx(react
|
|
|
3500
3518
|
const RadioGroupItem = ({ className, label, ...props })=>/*#__PURE__*/ jsxs("div", {
|
|
3501
3519
|
className: itemWrapperClass,
|
|
3502
3520
|
children: [
|
|
3503
|
-
/*#__PURE__*/ jsx(
|
|
3521
|
+
/*#__PURE__*/ jsx(Radio.Root, {
|
|
3504
3522
|
"data-slot": "radio-group-item",
|
|
3505
3523
|
id: props.id || props.value,
|
|
3506
3524
|
className: clsx(styles_css_itemClass, className),
|
|
3507
3525
|
...props,
|
|
3508
|
-
children: /*#__PURE__*/ jsx(Indicator, {
|
|
3526
|
+
children: /*#__PURE__*/ jsx(Radio.Indicator, {
|
|
3509
3527
|
"data-slot": "radio-group-indicator",
|
|
3510
3528
|
className: indicatorClass,
|
|
3511
3529
|
children: /*#__PURE__*/ jsx(CircleIcon, {
|
|
@@ -3520,7 +3538,7 @@ const RadioGroupItem = ({ className, label, ...props })=>/*#__PURE__*/ jsxs("div
|
|
|
3520
3538
|
})
|
|
3521
3539
|
]
|
|
3522
3540
|
});
|
|
3523
|
-
var
|
|
3541
|
+
var styles_css_control = 'style__h9oy581';
|
|
3524
3542
|
var styles_css_range = 'style__h9oy583';
|
|
3525
3543
|
var Slider_styles_css_root = 'style__h9oy580';
|
|
3526
3544
|
var styles_css_thumb = 'style__h9oy584';
|
|
@@ -3557,7 +3575,7 @@ function Slider_Slider({ className, defaultValue, value, min = 0, max = 100, onV
|
|
|
3557
3575
|
},
|
|
3558
3576
|
...props,
|
|
3559
3577
|
children: /*#__PURE__*/ jsxs(Slider.Control, {
|
|
3560
|
-
className:
|
|
3578
|
+
className: styles_css_control,
|
|
3561
3579
|
children: [
|
|
3562
3580
|
/*#__PURE__*/ jsx(Slider.Track, {
|
|
3563
3581
|
"data-slot": "slider-track",
|
|
@@ -3734,89 +3752,106 @@ function ScrollTopButton({ onClick, variant = 'outline', ...props }) {
|
|
|
3734
3752
|
children: /*#__PURE__*/ jsx(ChevronUp, {})
|
|
3735
3753
|
});
|
|
3736
3754
|
}
|
|
3737
|
-
var chevron = '
|
|
3738
|
-
var Select_styles_css_content = '
|
|
3739
|
-
var Select_styles_css_icon = '
|
|
3740
|
-
var Select_styles_css_item = '
|
|
3741
|
-
var itemIndicatorWrapper = '
|
|
3742
|
-
var Select_styles_css_label = '
|
|
3755
|
+
var chevron = 'style__5ilg7of';
|
|
3756
|
+
var Select_styles_css_content = 'style__5ilg7o8';
|
|
3757
|
+
var Select_styles_css_icon = 'style__5ilg7oe';
|
|
3758
|
+
var Select_styles_css_item = 'style__5ilg7ob';
|
|
3759
|
+
var itemIndicatorWrapper = 'style__5ilg7oc';
|
|
3760
|
+
var Select_styles_css_label = 'style__5ilg7oa';
|
|
3761
|
+
var Select_styles_css_positioner = 'style__5ilg7o7';
|
|
3743
3762
|
var scrollButton = 'style__5ilg7o6';
|
|
3744
|
-
var Select_styles_css_separator = '
|
|
3763
|
+
var Select_styles_css_separator = 'style__5ilg7od';
|
|
3745
3764
|
var Select_styles_css_sizes = {
|
|
3746
3765
|
sm: 'sm__5ilg7o3',
|
|
3747
3766
|
md: 'md__5ilg7o4',
|
|
3748
3767
|
lg: 'lg__5ilg7o5'
|
|
3749
3768
|
};
|
|
3750
3769
|
var Select_styles_css_trigger = 'style__5ilg7o2';
|
|
3751
|
-
var
|
|
3752
|
-
const
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3770
|
+
var styles_css_viewport = 'style__5ilg7o9';
|
|
3771
|
+
const Select_Select = ({ onValueChange, ...props })=>/*#__PURE__*/ jsx(Select.Root, {
|
|
3772
|
+
...props,
|
|
3773
|
+
onValueChange: (value, eventDetails)=>{
|
|
3774
|
+
if (null !== value) onValueChange?.(value, eventDetails);
|
|
3775
|
+
}
|
|
3776
|
+
});
|
|
3777
|
+
const SelectGroup = Select.Group;
|
|
3778
|
+
const SelectValue = Select.Value;
|
|
3779
|
+
const SelectTrigger = ({ className, children, size = 'md', ...props })=>/*#__PURE__*/ jsxs(Select.Trigger, {
|
|
3780
|
+
"data-slot": "select-trigger",
|
|
3756
3781
|
className: clsx(Select_styles_css_trigger, Select_styles_css_sizes[size], className),
|
|
3757
3782
|
...props,
|
|
3758
3783
|
children: [
|
|
3759
3784
|
children,
|
|
3760
|
-
/*#__PURE__*/ jsx(Icon, {
|
|
3761
|
-
|
|
3762
|
-
children: /*#__PURE__*/ jsx(ChevronDown, {
|
|
3785
|
+
/*#__PURE__*/ jsx(Select.Icon, {
|
|
3786
|
+
render: /*#__PURE__*/ jsx(ChevronDown, {
|
|
3763
3787
|
className: chevron
|
|
3764
3788
|
})
|
|
3765
3789
|
})
|
|
3766
3790
|
]
|
|
3767
3791
|
});
|
|
3768
|
-
const SelectScrollUpButton = ({ className, ...props })=>/*#__PURE__*/ jsx(
|
|
3792
|
+
const SelectScrollUpButton = ({ className, ...props })=>/*#__PURE__*/ jsx(Select.ScrollUpArrow, {
|
|
3793
|
+
"data-slot": "select-scroll-up-button",
|
|
3769
3794
|
className: clsx(scrollButton, className),
|
|
3770
3795
|
...props,
|
|
3771
3796
|
children: /*#__PURE__*/ jsx(ChevronUp, {
|
|
3772
3797
|
className: Select_styles_css_icon
|
|
3773
3798
|
})
|
|
3774
3799
|
});
|
|
3775
|
-
const SelectScrollDownButton = ({ className, ...props })=>/*#__PURE__*/ jsx(
|
|
3800
|
+
const SelectScrollDownButton = ({ className, ...props })=>/*#__PURE__*/ jsx(Select.ScrollDownArrow, {
|
|
3801
|
+
"data-slot": "select-scroll-down-button",
|
|
3776
3802
|
className: clsx(scrollButton, className),
|
|
3777
3803
|
...props,
|
|
3778
3804
|
children: /*#__PURE__*/ jsx(ChevronDown, {
|
|
3779
3805
|
className: Select_styles_css_icon
|
|
3780
3806
|
})
|
|
3781
3807
|
});
|
|
3782
|
-
const SelectContent = ({ className, children, position = 'popper', ...props })=>/*#__PURE__*/ jsx(
|
|
3783
|
-
children: /*#__PURE__*/
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3808
|
+
const SelectContent = ({ className, children, side = 'bottom', sideOffset = 4, align = 'center', alignOffset = 0, alignItemWithTrigger, position = 'popper', ...props })=>/*#__PURE__*/ jsx(Select.Portal, {
|
|
3809
|
+
children: /*#__PURE__*/ jsx(Select.Positioner, {
|
|
3810
|
+
side: side,
|
|
3811
|
+
sideOffset: sideOffset,
|
|
3812
|
+
align: align,
|
|
3813
|
+
alignOffset: alignOffset,
|
|
3814
|
+
alignItemWithTrigger: alignItemWithTrigger ?? 'item-aligned' === position,
|
|
3815
|
+
className: Select_styles_css_positioner,
|
|
3816
|
+
children: /*#__PURE__*/ jsxs(Select.Popup, {
|
|
3817
|
+
"data-slot": "select-content",
|
|
3818
|
+
className: clsx(Select_styles_css_content, className),
|
|
3819
|
+
...props,
|
|
3820
|
+
children: [
|
|
3821
|
+
/*#__PURE__*/ jsx(SelectScrollUpButton, {}),
|
|
3822
|
+
/*#__PURE__*/ jsx(Select.List, {
|
|
3823
|
+
className: styles_css_viewport,
|
|
3824
|
+
children: children
|
|
3825
|
+
}),
|
|
3826
|
+
/*#__PURE__*/ jsx(SelectScrollDownButton, {})
|
|
3827
|
+
]
|
|
3828
|
+
})
|
|
3795
3829
|
})
|
|
3796
3830
|
});
|
|
3797
|
-
const SelectLabel = ({ className, ...props })=>/*#__PURE__*/ jsx(
|
|
3798
|
-
|
|
3831
|
+
const SelectLabel = ({ className, ...props })=>/*#__PURE__*/ jsx(Select.GroupLabel, {
|
|
3832
|
+
"data-slot": "select-label",
|
|
3833
|
+
className: clsx(Select_styles_css_label, className),
|
|
3799
3834
|
...props
|
|
3800
3835
|
});
|
|
3801
|
-
const SelectItem = ({ className, children, ...props })=>/*#__PURE__*/ jsxs(
|
|
3802
|
-
|
|
3836
|
+
const SelectItem = ({ className, children, ...props })=>/*#__PURE__*/ jsxs(Select.Item, {
|
|
3837
|
+
"data-slot": "select-item",
|
|
3838
|
+
className: clsx(Select_styles_css_item, className),
|
|
3803
3839
|
...props,
|
|
3804
3840
|
children: [
|
|
3805
|
-
/*#__PURE__*/ jsx(
|
|
3841
|
+
/*#__PURE__*/ jsx(Select.ItemIndicator, {
|
|
3806
3842
|
className: itemIndicatorWrapper,
|
|
3807
|
-
children: /*#__PURE__*/ jsx(
|
|
3808
|
-
|
|
3809
|
-
className: Select_styles_css_icon
|
|
3810
|
-
})
|
|
3843
|
+
children: /*#__PURE__*/ jsx(Check, {
|
|
3844
|
+
className: Select_styles_css_icon
|
|
3811
3845
|
})
|
|
3812
3846
|
}),
|
|
3813
|
-
/*#__PURE__*/ jsx(ItemText, {
|
|
3847
|
+
/*#__PURE__*/ jsx(Select.ItemText, {
|
|
3814
3848
|
children: children
|
|
3815
3849
|
})
|
|
3816
3850
|
]
|
|
3817
3851
|
});
|
|
3818
|
-
const SelectSeparator = ({ className, ...props })=>/*#__PURE__*/ jsx(
|
|
3819
|
-
|
|
3852
|
+
const SelectSeparator = ({ className, ...props })=>/*#__PURE__*/ jsx(Select.Separator, {
|
|
3853
|
+
"data-slot": "select-separator",
|
|
3854
|
+
className: clsx(Select_styles_css_separator, className),
|
|
3820
3855
|
...props
|
|
3821
3856
|
});
|
|
3822
3857
|
var Sheet_styles_css_closeButton = 'style__5dkj2fc';
|
|
@@ -3979,7 +4014,7 @@ function useSidebar() {
|
|
|
3979
4014
|
if (!context) throw new Error('useSidebar must be used within a Sidebar.Provider.');
|
|
3980
4015
|
return context;
|
|
3981
4016
|
}
|
|
3982
|
-
function
|
|
4017
|
+
function Provider({ defaultOpen = true, open: openProp, onOpenChange, className, style, children, ...props }) {
|
|
3983
4018
|
const isMobile = useIsMobile();
|
|
3984
4019
|
const [openMobile, setOpenMobile] = __rspack_external_react.useState(false);
|
|
3985
4020
|
const [_open, _setOpen] = __rspack_external_react.useState(defaultOpen);
|
|
@@ -4280,7 +4315,7 @@ function MenuButton({ isActive = false, variant = 'default', size = 'default', t
|
|
|
4280
4315
|
}, props)
|
|
4281
4316
|
});
|
|
4282
4317
|
if (!tooltip || 'collapsed' !== state || isMobile) return button;
|
|
4283
|
-
return /*#__PURE__*/ jsx(
|
|
4318
|
+
return /*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
4284
4319
|
side: "right",
|
|
4285
4320
|
...getTooltipProps(tooltip),
|
|
4286
4321
|
children: button
|
|
@@ -4359,7 +4394,7 @@ function MenuSubButton({ size = 'md', isActive = false, className, render, ...pr
|
|
|
4359
4394
|
});
|
|
4360
4395
|
}
|
|
4361
4396
|
const Sidebar_Sidebar = Object.assign(SidebarRoot, {
|
|
4362
|
-
Provider:
|
|
4397
|
+
Provider: Provider,
|
|
4363
4398
|
Trigger: Sidebar_Trigger,
|
|
4364
4399
|
Rail: Rail,
|
|
4365
4400
|
Inset: Inset,
|
|
@@ -4390,19 +4425,23 @@ var Tabs_styles_css_sizes = {
|
|
|
4390
4425
|
lg: 'lg__hworoa4'
|
|
4391
4426
|
};
|
|
4392
4427
|
var styles_css_triggerClass = 'style__hworoa1';
|
|
4393
|
-
const TabsContent = ({ className, ...props })=>/*#__PURE__*/ jsx(
|
|
4428
|
+
const TabsContent = ({ className, ...props })=>/*#__PURE__*/ jsx(Tabs.Panel, {
|
|
4429
|
+
"data-slot": "tabs-content",
|
|
4394
4430
|
className: clsx(Tabs_styles_css_contentClass, className),
|
|
4395
4431
|
...props
|
|
4396
4432
|
});
|
|
4397
|
-
const TabsList = ({ className, ...props })=>/*#__PURE__*/ jsx(
|
|
4433
|
+
const TabsList = ({ className, ...props })=>/*#__PURE__*/ jsx(Tabs.List, {
|
|
4434
|
+
"data-slot": "tabs-list",
|
|
4398
4435
|
className: clsx(listClass, className),
|
|
4399
4436
|
...props
|
|
4400
4437
|
});
|
|
4401
|
-
const TabsTrigger = ({ className, size = 'md', ...props })=>/*#__PURE__*/ jsx(
|
|
4438
|
+
const TabsTrigger = ({ className, size = 'md', ...props })=>/*#__PURE__*/ jsx(Tabs.Tab, {
|
|
4439
|
+
"data-slot": "tabs-trigger",
|
|
4402
4440
|
className: clsx(styles_css_triggerClass, Tabs_styles_css_sizes[size], className),
|
|
4403
4441
|
...props
|
|
4404
4442
|
});
|
|
4405
|
-
const Tabs_Tabs = (props)=>/*#__PURE__*/ jsx(Tabs, {
|
|
4443
|
+
const Tabs_Tabs = (props)=>/*#__PURE__*/ jsx(Tabs.Root, {
|
|
4444
|
+
"data-slot": "tabs",
|
|
4406
4445
|
...props
|
|
4407
4446
|
});
|
|
4408
4447
|
Tabs_Tabs.Content = TabsContent;
|
|
@@ -4436,7 +4475,7 @@ const ToggleGroup = ({ value, onChange, options, size, className, label, multipl
|
|
|
4436
4475
|
}),
|
|
4437
4476
|
/*#__PURE__*/ jsx("div", {
|
|
4438
4477
|
className: toggleGroup_css_buttonsClass,
|
|
4439
|
-
children: options.map((option)=>/*#__PURE__*/ jsx(
|
|
4478
|
+
children: options.map((option)=>/*#__PURE__*/ jsx(Tooltip_Tooltip, {
|
|
4440
4479
|
arrow: true,
|
|
4441
4480
|
text: option.title,
|
|
4442
4481
|
children: /*#__PURE__*/ jsx(Button_Button, {
|
|
@@ -4454,4 +4493,53 @@ const ToggleGroup = ({ value, onChange, options, size, className, label, multipl
|
|
|
4454
4493
|
]
|
|
4455
4494
|
});
|
|
4456
4495
|
};
|
|
4457
|
-
|
|
4496
|
+
const Form = ({ form, children, ...props })=>/*#__PURE__*/ jsx(FormProvider, {
|
|
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 };
|