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