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