nntc-ui 0.0.49 → 0.0.51

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 (4) hide show
  1. package/index.css +23 -8
  2. package/index.d.ts +2 -2
  3. package/index.js +322 -299
  4. package/package.json +1 -1
package/index.js CHANGED
@@ -428,7 +428,8 @@ function Popover(props) {
428
428
  open,
429
429
  onOpenChange,
430
430
  children: children2,
431
- classes
431
+ classes,
432
+ contentStyle
432
433
  } = props;
433
434
  const [showTooltip, setShowTooltip] = useState2(false);
434
435
  if (!children2) {
@@ -456,7 +457,7 @@ function Popover(props) {
456
457
  children: children2
457
458
  }
458
459
  ),
459
- /* @__PURE__ */ jsx7(PopoverContent, { className: classnames4(content, classes?.content), styles: popover_exports, children: description })
460
+ /* @__PURE__ */ jsx7(PopoverContent, { className: classnames4(content, classes?.content), styles: popover_exports, style: contentStyle, children: description })
460
461
  ]
461
462
  }
462
463
  );
@@ -547,7 +548,6 @@ var ButtonsGroup = (props) => {
547
548
  // src/components/navigation/Menu/menu.module.css
548
549
  var menu_exports = {};
549
550
  __export(menu_exports, {
550
- checkbox: () => checkbox2,
551
551
  default: () => menu_default,
552
552
  divider: () => divider,
553
553
  item: () => item,
@@ -572,7 +572,6 @@ var itemIcon2 = "menu_itemIcon";
572
572
  var itemTitle = "menu_itemTitle";
573
573
  var itemDescription = "menu_itemDescription";
574
574
  var divider = "menu_divider";
575
- var checkbox2 = "menu_checkbox";
576
575
  var menu_default = {
577
576
  root: root5,
578
577
  medium: medium3,
@@ -584,8 +583,7 @@ var menu_default = {
584
583
  itemIcon: itemIcon2,
585
584
  itemTitle,
586
585
  itemDescription,
587
- divider,
588
- checkbox: checkbox2
586
+ divider
589
587
  };
590
588
 
591
589
  // src/components/navigation/Menu/Menu.tsx
@@ -616,7 +614,6 @@ function Menu(props) {
616
614
  onClick: !item3.disabled ? handleClick(item3) : void 0,
617
615
  title: item3.name,
618
616
  children: /* @__PURE__ */ jsxs4("span", { className: classnames5(stateLayer2), children: [
619
- !!item3.withCheckbox && /* @__PURE__ */ jsx10(Checkbox, { checked: item3.selected, classes: { root: checkbox2 } }),
620
617
  !!item3.icon && /* @__PURE__ */ jsx10(
621
618
  "span",
622
619
  {
@@ -723,7 +720,7 @@ function Select(props) {
723
720
  variant = "filled",
724
721
  componentSize = "medium",
725
722
  icon: icon6,
726
- fullWidth,
723
+ fullWidth: fullWidth2,
727
724
  label: label7,
728
725
  placeholder,
729
726
  items: items2,
@@ -769,7 +766,7 @@ function Select(props) {
769
766
  {
770
767
  className: classnames6(root3, select_exports[componentSize], classes?.root),
771
768
  style: {
772
- maxWidth: fullWidth ? "100%" : void 0
769
+ maxWidth: fullWidth2 ? "100%" : void 0
773
770
  },
774
771
  children: [
775
772
  !!label7 && /* @__PURE__ */ jsx12(
@@ -889,6 +886,7 @@ import { useCallback as useCallback3, useEffect as useEffect3, useMemo as useMem
889
886
  var calendarPopover_exports = {};
890
887
  __export(calendarPopover_exports, {
891
888
  button: () => button2,
889
+ buttonsContainer: () => buttonsContainer,
892
890
  cell: () => cell,
893
891
  cellCircle: () => cellCircle,
894
892
  cellData: () => cellData,
@@ -906,6 +904,7 @@ __export(calendarPopover_exports, {
906
904
  root: () => root7
907
905
  });
908
906
  var root7 = "calendarPopover_root";
907
+ var buttonsContainer = "calendarPopover_buttonsContainer";
909
908
  var button2 = "calendarPopover_button";
910
909
  var navigationContainer = "calendarPopover_navigationContainer";
911
910
  var navigationArrow = "calendarPopover_navigationArrow";
@@ -922,6 +921,7 @@ var cellSelectionLast = "calendarPopover_cellSelectionLast";
922
921
  var monthCellSelection = "calendarPopover_monthCellSelection";
923
922
  var calendarPopover_default = {
924
923
  root: root7,
924
+ buttonsContainer,
925
925
  button: button2,
926
926
  navigationContainer,
927
927
  navigationArrow,
@@ -1041,7 +1041,7 @@ function CalendarPopover(props) {
1041
1041
  [currentDate]
1042
1042
  );
1043
1043
  return /* @__PURE__ */ jsxs6("div", { className: classNames2(root7, calendarPopover_exports[componentSize], classes?.root), children: [
1044
- /* @__PURE__ */ jsx13("div", { className: classNames2(void 0, classes?.buttonsContainer), children: /* @__PURE__ */ jsxs6(ButtonsGroup, { fillEvenly: true, children: [
1044
+ /* @__PURE__ */ jsx13("div", { className: classNames2(buttonsContainer, classes?.buttonsContainer), children: /* @__PURE__ */ jsxs6(ButtonsGroup, { fillEvenly: true, children: [
1045
1045
  /* @__PURE__ */ jsx13(Button, { size: "small", variant: "text", textSecondary: true, tabIndex: -1, onClick: reset, children: "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C" }),
1046
1046
  /* @__PURE__ */ jsx13(Button, { size: "small", variant: "text", textSecondary: true, tabIndex: -1, onClick: today, children: "\u0421\u0435\u0433\u043E\u0434\u043D\u044F" })
1047
1047
  ] }) }),
@@ -1138,7 +1138,7 @@ function DateTime(props) {
1138
1138
  const {
1139
1139
  variant = "filled",
1140
1140
  componentSize = "medium",
1141
- fullWidth,
1141
+ fullWidth: fullWidth2,
1142
1142
  placeholder,
1143
1143
  defaultValues,
1144
1144
  values,
@@ -1175,7 +1175,7 @@ function DateTime(props) {
1175
1175
  classes?.root
1176
1176
  ),
1177
1177
  style: {
1178
- maxWidth: fullWidth ? "100%" : void 0
1178
+ maxWidth: fullWidth2 ? "100%" : void 0
1179
1179
  },
1180
1180
  children: [
1181
1181
  /* @__PURE__ */ jsx14(
@@ -1271,7 +1271,7 @@ var ColorPicker = (props) => {
1271
1271
  const {
1272
1272
  variant = "outlined",
1273
1273
  componentSize = "medium",
1274
- fullWidth,
1274
+ fullWidth: fullWidth2,
1275
1275
  label: label7,
1276
1276
  classes,
1277
1277
  placeholder,
@@ -1303,7 +1303,7 @@ var ColorPicker = (props) => {
1303
1303
  {
1304
1304
  className: classNames3(root8, colorPicker_exports[componentSize], classes?.root),
1305
1305
  style: {
1306
- maxWidth: fullWidth ? "100%" : void 0
1306
+ maxWidth: fullWidth2 ? "100%" : void 0
1307
1307
  },
1308
1308
  children: [
1309
1309
  !!label7 && /* @__PURE__ */ jsx15(
@@ -1402,7 +1402,7 @@ var Input = (props) => {
1402
1402
  const {
1403
1403
  variant = "outlined",
1404
1404
  componentSize = "medium",
1405
- fullWidth,
1405
+ fullWidth: fullWidth2,
1406
1406
  label: label7,
1407
1407
  classes,
1408
1408
  placeholder,
@@ -1417,7 +1417,7 @@ var Input = (props) => {
1417
1417
  {
1418
1418
  className: classnames8(root9, input_exports[componentSize], classes?.root),
1419
1419
  style: {
1420
- maxWidth: fullWidth ? "100%" : void 0
1420
+ maxWidth: fullWidth2 ? "100%" : void 0
1421
1421
  },
1422
1422
  children: [
1423
1423
  !!label7 && /* @__PURE__ */ jsx16(
@@ -1490,7 +1490,7 @@ function SearchInput(props) {
1490
1490
  variant = "filled",
1491
1491
  componentSize = "medium",
1492
1492
  disableIcon,
1493
- fullWidth,
1493
+ fullWidth: fullWidth2,
1494
1494
  placeholder,
1495
1495
  classes,
1496
1496
  ref,
@@ -1509,7 +1509,7 @@ function SearchInput(props) {
1509
1509
  classes?.root
1510
1510
  ),
1511
1511
  style: {
1512
- maxWidth: fullWidth ? "100%" : void 0
1512
+ maxWidth: fullWidth2 ? "100%" : void 0
1513
1513
  },
1514
1514
  children: [
1515
1515
  !disableIcon && /* @__PURE__ */ jsx17(
@@ -1564,10 +1564,11 @@ var WrapForLabel = (props) => {
1564
1564
  };
1565
1565
 
1566
1566
  // src/components/common/MultiSelect/MultiSelect.tsx
1567
- import classnames11 from "classnames";
1567
+ import classnames12 from "classnames";
1568
1568
  import {
1569
- useCallback as useCallback6,
1570
- useMemo as useMemo3,
1569
+ useCallback as useCallback7,
1570
+ useLayoutEffect as useLayoutEffect2,
1571
+ useMemo as useMemo4,
1571
1572
  useRef as useRef7,
1572
1573
  useState as useState8
1573
1574
  } from "react";
@@ -1579,15 +1580,18 @@ import { v4 as uuidv45 } from "uuid";
1579
1580
  var multiSelect_exports = {};
1580
1581
  __export(multiSelect_exports, {
1581
1582
  arrow: () => arrow3,
1583
+ checklistRoot: () => checklistRoot,
1584
+ checklistScrolled: () => checklistScrolled,
1585
+ checklistWrapper: () => checklistWrapper,
1582
1586
  clear: () => clear,
1583
1587
  default: () => multiSelect_default,
1584
1588
  filled: () => filled5,
1589
+ fullWidth: () => fullWidth,
1585
1590
  icon: () => icon5,
1586
1591
  input: () => input7,
1587
1592
  itemIcon: () => itemIcon3,
1588
1593
  label: () => label5,
1589
1594
  medium: () => medium9,
1590
- menuWrapper: () => menuWrapper,
1591
1595
  outlined: () => outlined7,
1592
1596
  popoverContent: () => popoverContent3,
1593
1597
  popoverTarget: () => popoverTarget4,
@@ -1599,6 +1603,7 @@ __export(multiSelect_exports, {
1599
1603
  wrapper: () => wrapper4
1600
1604
  });
1601
1605
  var root12 = "multiSelect_root";
1606
+ var fullWidth = "multiSelect_fullWidth";
1602
1607
  var medium9 = "multiSelect_medium";
1603
1608
  var small9 = "multiSelect_small";
1604
1609
  var label5 = "multiSelect_label";
@@ -1614,10 +1619,13 @@ var clear = "multiSelect_clear";
1614
1619
  var arrow3 = "multiSelect_arrow";
1615
1620
  var popoverTarget4 = "multiSelect_popoverTarget";
1616
1621
  var popoverContent3 = "multiSelect_popoverContent";
1617
- var menuWrapper = "multiSelect_menuWrapper";
1622
+ var checklistWrapper = "multiSelect_checklistWrapper";
1623
+ var checklistRoot = "multiSelect_checklistRoot";
1624
+ var checklistScrolled = "multiSelect_checklistScrolled";
1618
1625
  var searchInputRoot = "multiSelect_searchInputRoot";
1619
1626
  var multiSelect_default = {
1620
1627
  root: root12,
1628
+ fullWidth,
1621
1629
  medium: medium9,
1622
1630
  small: small9,
1623
1631
  label: label5,
@@ -1633,69 +1641,185 @@ var multiSelect_default = {
1633
1641
  arrow: arrow3,
1634
1642
  popoverTarget: popoverTarget4,
1635
1643
  popoverContent: popoverContent3,
1636
- menuWrapper,
1644
+ checklistWrapper,
1645
+ checklistRoot,
1646
+ checklistScrolled,
1637
1647
  searchInputRoot
1638
1648
  };
1639
1649
 
1640
1650
  // src/components/common/MultiSelect/ui/SelectPopover/SelectPopover.tsx
1641
1651
  import classNames4 from "classnames";
1652
+ import { useCallback as useCallback6, useMemo as useMemo3 } from "react";
1653
+
1654
+ // src/components/common/Checklist/Checklist.tsx
1655
+ import classnames11 from "classnames";
1642
1656
  import { useState as useState7 } from "react";
1643
1657
 
1644
- // src/components/common/MultiSelect/utils/filterItems.ts
1645
- var filterItems = (items2, filterText) => {
1658
+ // src/components/common/Checklist/checklist.module.css
1659
+ var root13 = "checklist_root";
1660
+ var scrolled = "checklist_scrolled";
1661
+ var actionWrap = "checklist_actionWrap";
1662
+
1663
+ // src/components/common/Checklist/utils/filterItems.ts
1664
+ var filterItems = (items2, filterText, selectedItems) => {
1646
1665
  if (!filterText) {
1647
- return items2;
1666
+ return items2.filter((item3) => !selectedItems[item3.value]);
1648
1667
  }
1649
- const searchText = filterText.toUpperCase();
1650
- return items2.filter(
1651
- (item3) => item3.name.toUpperCase().includes(searchText) || item3.description && item3.description.toUpperCase().includes(searchText)
1652
- );
1668
+ const reduceCallback = (filteredItems, item3) => {
1669
+ if (item3.name.toUpperCase().includes(filterText.toUpperCase()) && !selectedItems[item3.value]) {
1670
+ filteredItems.push({ ...item3 });
1671
+ }
1672
+ return filteredItems;
1673
+ };
1674
+ return items2.reduce(reduceCallback, []);
1653
1675
  };
1654
1676
 
1655
- // src/components/common/MultiSelect/ui/SelectPopover/SelectPopover.tsx
1677
+ // src/components/common/Checklist/Checklist.tsx
1656
1678
  import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
1657
- function SelectPopover2(props) {
1658
- const { items: items2, componentSize, selected: selected5, changeSelectedItem, classes, enableSearch = false } = props;
1659
- const [searchValue, setSearchValue] = useState7("");
1660
- const filteredItems = enableSearch ? filterItems(items2, searchValue) : items2;
1661
- const handleSearchChange = (e) => {
1662
- setSearchValue(e.target.value);
1679
+ function Checklist(props) {
1680
+ const { items: items2, selected: selected5, disableSearch, isDisabled, actionWithSelected, onChangeItem, classes } = props;
1681
+ const { t } = useTranslation();
1682
+ const [filterSubstring, setFilterSubstring] = useState7("");
1683
+ const [selectedItems, setSelectedItems] = useState7(selected5);
1684
+ const filteredItems = filterItems(items2, filterSubstring, selectedItems);
1685
+ const handleClick = (item3) => {
1686
+ const value = !selected5[item3.value];
1687
+ if (onChangeItem) {
1688
+ onChangeItem?.(item3);
1689
+ }
1690
+ const newSelected = { ...selected5, [item3.value]: value };
1691
+ setSelectedItems(newSelected);
1692
+ actionWithSelected(newSelected);
1693
+ };
1694
+ const onSelectAll = () => {
1695
+ let newSelected = { ...selected5 };
1696
+ filteredItems.forEach((item3) => {
1697
+ newSelected = { ...newSelected, [item3.value]: true };
1698
+ });
1699
+ setSelectedItems(newSelected);
1700
+ actionWithSelected(newSelected);
1663
1701
  };
1664
- return /* @__PURE__ */ jsxs11(Fragment3, { children: [
1665
- enableSearch && /* @__PURE__ */ jsx19(
1702
+ const onUnSelectAll = () => {
1703
+ const newSelected = {};
1704
+ setSelectedItems(newSelected);
1705
+ actionWithSelected(newSelected);
1706
+ };
1707
+ return /* @__PURE__ */ jsxs11("div", { className: classnames11(root13, classes?.root), children: [
1708
+ !disableSearch && /* @__PURE__ */ jsx19(
1666
1709
  SearchInput,
1667
1710
  {
1668
1711
  variant: "outlined",
1669
- componentSize,
1670
- value: searchValue,
1712
+ disabled: isDisabled,
1713
+ value: filterSubstring,
1671
1714
  fullWidth: true,
1672
1715
  classes: classes?.searchInput,
1673
- onChange: handleSearchChange
1716
+ onChange: (e) => setFilterSubstring(e.target.value)
1674
1717
  }
1675
1718
  ),
1676
- /* @__PURE__ */ jsx19("div", { className: classNames4(classes?.menuWrapper), children: /* @__PURE__ */ jsx19(
1677
- Menu,
1678
- {
1679
- size: componentSize,
1680
- classes: classes?.menu,
1681
- items: filteredItems.map(
1682
- (i) => ({
1683
- type: "item",
1684
- name: i.name,
1685
- description: i.description,
1686
- disabled: i.disabled,
1687
- selected: selected5?.includes(i.value),
1688
- onClick: () => {
1689
- changeSelectedItem(i);
1719
+ /* @__PURE__ */ jsxs11("div", { className: classnames11(scrolled, "styledScroll", classes?.scrolled), children: [
1720
+ items2.some((item3) => !!selectedItems[item3.value]) && /* @__PURE__ */ jsxs11(Fragment3, { children: [
1721
+ /* @__PURE__ */ jsxs11("div", { className: classnames11(actionWrap, classes?.actionWrap), children: [
1722
+ /* @__PURE__ */ jsx19(Typography, { className: classnames11(classes?.typography), children: t("\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435") }),
1723
+ /* @__PURE__ */ jsx19(
1724
+ Button,
1725
+ {
1726
+ variant: "link",
1727
+ size: "small",
1728
+ disabled: isDisabled,
1729
+ onClick: onUnSelectAll,
1730
+ className: classnames11(classes?.button),
1731
+ children: t("\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C")
1732
+ }
1733
+ )
1734
+ ] }),
1735
+ /* @__PURE__ */ jsx19("div", { children: items2.filter((item3) => !!selectedItems[item3.value]).map((item3) => /* @__PURE__ */ jsx19(
1736
+ Checkbox,
1737
+ {
1738
+ label: item3.name,
1739
+ defaultChecked: !!selected5[item3.value],
1740
+ onClick: (e) => {
1741
+ e.stopPropagation();
1742
+ handleClick(item3);
1690
1743
  },
1691
- withCheckbox: true
1692
- })
1693
- )
1694
- }
1695
- ) })
1744
+ disabled: isDisabled,
1745
+ classes: classes?.checkbox
1746
+ },
1747
+ `selected-${item3.value}`
1748
+ )) })
1749
+ ] }),
1750
+ !isDisabled && !!filteredItems.length && /* @__PURE__ */ jsx19(
1751
+ Button,
1752
+ {
1753
+ variant: "link",
1754
+ size: "small",
1755
+ disabled: isDisabled,
1756
+ onClick: onSelectAll,
1757
+ className: classnames11(classes?.button),
1758
+ children: t("\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435")
1759
+ }
1760
+ ),
1761
+ /* @__PURE__ */ jsx19("div", { children: filteredItems.map((item3) => /* @__PURE__ */ jsx19(
1762
+ Checkbox,
1763
+ {
1764
+ label: item3.name,
1765
+ defaultChecked: !!selected5[item3.value],
1766
+ onClick: (e) => {
1767
+ e.stopPropagation();
1768
+ handleClick(item3);
1769
+ },
1770
+ disabled: isDisabled,
1771
+ classes: classes?.checkbox
1772
+ },
1773
+ `filtered-${item3.value}`
1774
+ )) })
1775
+ ] })
1696
1776
  ] });
1697
1777
  }
1698
1778
 
1779
+ // src/components/common/MultiSelect/ui/SelectPopover/SelectPopover.tsx
1780
+ import { jsx as jsx20 } from "react/jsx-runtime";
1781
+ function SelectPopover2(props) {
1782
+ const { items: items2, selected: selected5, onSelectedChange, classes, enableSearch = false, disabled: disabled2 } = props;
1783
+ const checklistItems = useMemo3(
1784
+ () => items2.map((item3) => ({
1785
+ name: item3.name,
1786
+ value: item3.value
1787
+ })),
1788
+ [items2]
1789
+ );
1790
+ const selectedItems = useMemo3(() => {
1791
+ const result = {};
1792
+ selected5?.forEach((value) => {
1793
+ result[value] = true;
1794
+ });
1795
+ return result;
1796
+ }, [selected5]);
1797
+ const handleActionWithSelected = useCallback6(
1798
+ (newSelected) => {
1799
+ const values = Object.entries(newSelected).reduce((acc, [value, isSelected]) => {
1800
+ if (isSelected) {
1801
+ acc.push(value);
1802
+ }
1803
+ return acc;
1804
+ }, []);
1805
+ onSelectedChange(values);
1806
+ },
1807
+ [onSelectedChange]
1808
+ );
1809
+ const { checklistWrapper: checklistWrapper2, ...checklistClasses } = classes ?? {};
1810
+ return /* @__PURE__ */ jsx20("div", { className: classNames4(checklistWrapper2), children: /* @__PURE__ */ jsx20(
1811
+ Checklist,
1812
+ {
1813
+ disableSearch: !enableSearch,
1814
+ isDisabled: disabled2,
1815
+ items: checklistItems,
1816
+ selected: selectedItems,
1817
+ actionWithSelected: handleActionWithSelected,
1818
+ classes: checklistClasses
1819
+ }
1820
+ ) });
1821
+ }
1822
+
1699
1823
  // src/components/common/MultiSelect/utils/getTitle.ts
1700
1824
  var getTitle = (titleType, activeItems, t) => {
1701
1825
  switch (titleType) {
@@ -1712,13 +1836,13 @@ var getTitle = (titleType, activeItems, t) => {
1712
1836
  };
1713
1837
 
1714
1838
  // src/components/common/MultiSelect/MultiSelect.tsx
1715
- import { jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
1839
+ import { jsx as jsx21, jsxs as jsxs12 } from "react/jsx-runtime";
1716
1840
  function MultiSelect(props) {
1717
1841
  const {
1718
1842
  variant = "filled",
1719
1843
  componentSize = "medium",
1720
1844
  icon: icon6,
1721
- fullWidth,
1845
+ fullWidth: fullWidth2,
1722
1846
  label: label7,
1723
1847
  placeholder,
1724
1848
  items: items2,
@@ -1738,8 +1862,27 @@ function MultiSelect(props) {
1738
1862
  const inputRef = useRef7(null);
1739
1863
  const popoverTargetRef = useRef7(null);
1740
1864
  const [isPopoverOpen, setIsPopoverOpen] = useState8(false);
1741
- const activeItems = useMemo3(() => items2.filter((i) => selected5?.includes(i.value)), [selected5, items2]);
1742
- const inputClickHandler = useCallback6(
1865
+ const [popoverWidth, setPopoverWidth] = useState8();
1866
+ useLayoutEffect2(() => {
1867
+ const element = wrapperRef.current;
1868
+ if (!element) {
1869
+ return;
1870
+ }
1871
+ const updateWidth = () => {
1872
+ setPopoverWidth(element.getBoundingClientRect().width);
1873
+ };
1874
+ updateWidth();
1875
+ if (typeof ResizeObserver === "undefined") {
1876
+ return;
1877
+ }
1878
+ const resizeObserver = new ResizeObserver(updateWidth);
1879
+ resizeObserver.observe(element);
1880
+ return () => {
1881
+ resizeObserver.disconnect();
1882
+ };
1883
+ }, []);
1884
+ const activeItems = useMemo4(() => items2.filter((i) => selected5?.includes(i.value)), [selected5, items2]);
1885
+ const inputClickHandler = useCallback7(
1743
1886
  (e) => {
1744
1887
  e.preventDefault();
1745
1888
  if (!disabled2) {
@@ -1748,15 +1891,13 @@ function MultiSelect(props) {
1748
1891
  },
1749
1892
  [disabled2]
1750
1893
  );
1751
- const changeSelectedItem = (item3) => {
1752
- const newValue = selected5 ?? [];
1753
- if (newValue.includes(item3.value)) {
1754
- onValueChange?.(newValue.filter((v) => v !== item3.value));
1755
- } else {
1756
- onValueChange?.([...newValue, item3.value]);
1757
- }
1758
- };
1759
- const title2 = useMemo3(() => {
1894
+ const handleSelectedChange = useCallback7(
1895
+ (newValues) => {
1896
+ onValueChange?.(newValues);
1897
+ },
1898
+ [onValueChange]
1899
+ );
1900
+ const title2 = useMemo4(() => {
1760
1901
  if (!activeItems.length)
1761
1902
  return "";
1762
1903
  return getTitle(titleType, activeItems, t);
@@ -1768,15 +1909,17 @@ function MultiSelect(props) {
1768
1909
  return /* @__PURE__ */ jsxs12(
1769
1910
  "div",
1770
1911
  {
1771
- className: classnames11(root12, multiSelect_exports[componentSize], classes?.root),
1772
- style: {
1773
- maxWidth: fullWidth ? "100%" : void 0
1774
- },
1912
+ className: classnames12(
1913
+ root12,
1914
+ multiSelect_exports[componentSize],
1915
+ fullWidth2 ? fullWidth : void 0,
1916
+ classes?.root
1917
+ ),
1775
1918
  children: [
1776
- !!label7 && /* @__PURE__ */ jsx20(
1919
+ !!label7 && /* @__PURE__ */ jsx21(
1777
1920
  Typography,
1778
1921
  {
1779
- className: classnames11(label5, classes?.label),
1922
+ className: classnames12(label5, classes?.label),
1780
1923
  component: "label",
1781
1924
  variant: "caption",
1782
1925
  htmlFor: inputId,
@@ -1788,44 +1931,46 @@ function MultiSelect(props) {
1788
1931
  "div",
1789
1932
  {
1790
1933
  ref: wrapperRef,
1791
- className: classnames11(
1934
+ className: classnames12(
1792
1935
  wrapper4,
1793
1936
  multiSelect_exports[variant],
1794
1937
  icon6 ? withIcon4 : void 0,
1795
1938
  classes?.wrapper
1796
1939
  ),
1797
1940
  children: [
1798
- /* @__PURE__ */ jsx20(
1941
+ /* @__PURE__ */ jsx21(
1799
1942
  "input",
1800
1943
  {
1801
1944
  ref: mergeRefs7([inputRef, ref]),
1802
1945
  id: inputId,
1803
- className: classnames11(input7, classes?.input),
1946
+ className: classnames12(input7, classes?.input),
1804
1947
  placeholder,
1805
1948
  ...inputProps,
1806
1949
  value: title2,
1807
1950
  onClick: inputClickHandler,
1808
1951
  disabled: disabled2,
1952
+ readOnly: true,
1809
1953
  title: activeItems.map((i) => i.name).join(", "),
1810
1954
  autoComplete: "off"
1811
1955
  }
1812
1956
  ),
1813
- !!icon6 && /* @__PURE__ */ jsx20("span", { onClick: inputClickHandler, className: classnames11(icon5, classes?.icon), children: icon6 }),
1814
- !!activeItems.length && /* @__PURE__ */ jsx20("span", { onClick: clearHandler, className: classnames11(clear, classes?.clear), children: /* @__PURE__ */ jsx20(CloseIcon, {}) }),
1815
- /* @__PURE__ */ jsx20("span", { onClick: inputClickHandler, className: classnames11(arrow3, classes?.arrow), children: /* @__PURE__ */ jsx20(Arrow, {}) }),
1816
- /* @__PURE__ */ jsx20(
1957
+ !!icon6 && /* @__PURE__ */ jsx21("span", { onClick: inputClickHandler, className: classnames12(icon5, classes?.icon), children: icon6 }),
1958
+ !!activeItems.length && /* @__PURE__ */ jsx21("span", { onClick: clearHandler, className: classnames12(clear, classes?.clear), children: /* @__PURE__ */ jsx21(CloseIcon, {}) }),
1959
+ /* @__PURE__ */ jsx21("span", { onClick: inputClickHandler, className: classnames12(arrow3, classes?.arrow), children: /* @__PURE__ */ jsx21(Arrow, {}) }),
1960
+ /* @__PURE__ */ jsx21(
1817
1961
  Popover,
1818
1962
  {
1819
1963
  placement: "bottom-start",
1820
1964
  open: isPopoverOpen,
1821
1965
  onOpenChange: setIsPopoverOpen,
1966
+ contentStyle: popoverWidth ? { width: popoverWidth, minWidth: popoverWidth, maxWidth: popoverWidth } : void 0,
1822
1967
  classes: {
1823
- content: classnames11(popoverContent3, classes?.popoverContent),
1968
+ content: classnames12(popoverContent3, classes?.popoverContent),
1824
1969
  ...classes?.popover
1825
1970
  },
1826
1971
  containerOffset: 4,
1827
1972
  root: popoverInComponent ? wrapperRef.current : void 0,
1828
- description: /* @__PURE__ */ jsx20(
1973
+ description: /* @__PURE__ */ jsx21(
1829
1974
  SelectPopover2,
1830
1975
  {
1831
1976
  items: items2,
@@ -1834,16 +1979,19 @@ function MultiSelect(props) {
1834
1979
  root: searchInputRoot,
1835
1980
  ...classes?.selectPopover?.searchInput
1836
1981
  },
1837
- menuWrapper: classnames11(menuWrapper, "styledScroll"),
1982
+ root: checklistRoot,
1983
+ checklistWrapper: classnames12(checklistWrapper),
1984
+ scrolled: checklistScrolled,
1838
1985
  ...classes?.selectPopover
1839
1986
  },
1840
1987
  componentSize,
1841
1988
  selected: selected5,
1842
- changeSelectedItem,
1843
- enableSearch
1989
+ onSelectedChange: handleSelectedChange,
1990
+ enableSearch,
1991
+ disabled: disabled2
1844
1992
  }
1845
1993
  ),
1846
- children: /* @__PURE__ */ jsx20("div", { ref: popoverTargetRef, className: classnames11(popoverTarget4) })
1994
+ children: /* @__PURE__ */ jsx21("div", { ref: popoverTargetRef, className: classnames12(popoverTarget4) })
1847
1995
  }
1848
1996
  )
1849
1997
  ]
@@ -1854,131 +2002,6 @@ function MultiSelect(props) {
1854
2002
  );
1855
2003
  }
1856
2004
 
1857
- // src/components/common/Checklist/Checklist.tsx
1858
- import classnames12 from "classnames";
1859
- import { useState as useState9 } from "react";
1860
-
1861
- // src/components/common/Checklist/checklist.module.css
1862
- var root13 = "checklist_root";
1863
- var scrolled = "checklist_scrolled";
1864
- var actionWrap = "checklist_actionWrap";
1865
-
1866
- // src/components/common/Checklist/utils/filterItems.ts
1867
- var filterItems2 = (items2, filterText, selectedItems) => {
1868
- if (!filterText) {
1869
- return items2.filter((item3) => !selectedItems[item3.value]);
1870
- }
1871
- const reduceCallback = (filteredItems, item3) => {
1872
- if (item3.name.toUpperCase().includes(filterText.toUpperCase()) && !selectedItems[item3.value]) {
1873
- filteredItems.push({ ...item3 });
1874
- }
1875
- return filteredItems;
1876
- };
1877
- return items2.reduce(reduceCallback, []);
1878
- };
1879
-
1880
- // src/components/common/Checklist/Checklist.tsx
1881
- import { Fragment as Fragment4, jsx as jsx21, jsxs as jsxs13 } from "react/jsx-runtime";
1882
- function Checklist(props) {
1883
- const { items: items2, selected: selected5, disableSearch, isDisabled, actionWithSelected, onChangeItem, classes } = props;
1884
- const { t } = useTranslation();
1885
- const [filterSubstring, setFilterSubstring] = useState9("");
1886
- const [selectedItems, setSelectedItems] = useState9(selected5);
1887
- const filteredItems = filterItems2(items2, filterSubstring, selectedItems);
1888
- const handleClick = (item3) => {
1889
- const value = !selected5[item3.value];
1890
- if (onChangeItem) {
1891
- onChangeItem?.(item3);
1892
- }
1893
- const newSelected = { ...selected5, [item3.value]: value };
1894
- setSelectedItems(newSelected);
1895
- actionWithSelected(newSelected);
1896
- };
1897
- const onSelectAll = () => {
1898
- let newSelected = { ...selected5 };
1899
- filteredItems.forEach((item3) => {
1900
- newSelected = { ...newSelected, [item3.value]: true };
1901
- });
1902
- setSelectedItems(newSelected);
1903
- actionWithSelected(newSelected);
1904
- };
1905
- const onUnSelectAll = () => {
1906
- const newSelected = {};
1907
- setSelectedItems(newSelected);
1908
- actionWithSelected(newSelected);
1909
- };
1910
- return /* @__PURE__ */ jsxs13("div", { className: classnames12(root13, classes?.root), children: [
1911
- !disableSearch && /* @__PURE__ */ jsx21(
1912
- SearchInput,
1913
- {
1914
- variant: "outlined",
1915
- disabled: isDisabled,
1916
- value: filterSubstring,
1917
- fullWidth: true,
1918
- classes: classes?.searchInput,
1919
- onChange: (e) => setFilterSubstring(e.target.value)
1920
- }
1921
- ),
1922
- /* @__PURE__ */ jsxs13("div", { className: classnames12(scrolled, "styledScroll"), children: [
1923
- items2.some((item3) => !!selectedItems[item3.value]) && /* @__PURE__ */ jsxs13(Fragment4, { children: [
1924
- /* @__PURE__ */ jsxs13("div", { className: classnames12(actionWrap, classes?.actionWrap), children: [
1925
- /* @__PURE__ */ jsx21(Typography, { className: classnames12(classes?.typography), children: t("\u0412\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435") }),
1926
- /* @__PURE__ */ jsx21(
1927
- Button,
1928
- {
1929
- variant: "link",
1930
- size: "small",
1931
- disabled: isDisabled,
1932
- onClick: onUnSelectAll,
1933
- className: classnames12(classes?.button),
1934
- children: t("\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C")
1935
- }
1936
- )
1937
- ] }),
1938
- /* @__PURE__ */ jsx21("div", { children: items2.filter((item3) => !!selectedItems[item3.value]).map((item3) => /* @__PURE__ */ jsx21(
1939
- Checkbox,
1940
- {
1941
- label: item3.name,
1942
- defaultChecked: !!selected5[item3.value],
1943
- onClick: (e) => {
1944
- e.stopPropagation();
1945
- handleClick(item3);
1946
- },
1947
- disabled: isDisabled,
1948
- classes: classes?.checkbox
1949
- },
1950
- `selected-${item3.value}`
1951
- )) })
1952
- ] }),
1953
- !isDisabled && !!filteredItems.length && /* @__PURE__ */ jsx21(
1954
- Button,
1955
- {
1956
- variant: "link",
1957
- size: "small",
1958
- disabled: isDisabled,
1959
- onClick: onSelectAll,
1960
- className: classnames12(classes?.button),
1961
- children: t("\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435")
1962
- }
1963
- ),
1964
- /* @__PURE__ */ jsx21("div", { children: filteredItems.map((item3) => /* @__PURE__ */ jsx21(
1965
- Checkbox,
1966
- {
1967
- label: item3.name,
1968
- defaultChecked: !!selected5[item3.value],
1969
- onClick: (e) => {
1970
- e.stopPropagation();
1971
- handleClick(item3);
1972
- },
1973
- disabled: isDisabled,
1974
- classes: classes?.checkbox
1975
- },
1976
- `filtered-${item3.value}`
1977
- )) })
1978
- ] })
1979
- ] });
1980
- }
1981
-
1982
2005
  // src/components/layout/Surface/Surface.tsx
1983
2006
  import classnames13 from "classnames";
1984
2007
 
@@ -2025,11 +2048,11 @@ function Layout(props) {
2025
2048
 
2026
2049
  // src/components/navigation/Tabs/Tabs.tsx
2027
2050
  import classnames17 from "classnames";
2028
- import { useEffect as useEffect5, useState as useState12 } from "react";
2051
+ import { useEffect as useEffect5, useState as useState11 } from "react";
2029
2052
 
2030
2053
  // src/components/view/Tooltip/Tooltip.tsx
2031
2054
  import classnames16 from "classnames";
2032
- import { useRef as useRef8, useState as useState11 } from "react";
2055
+ import { useRef as useRef8, useState as useState10 } from "react";
2033
2056
 
2034
2057
  // src/components/view/Tooltip/tooltip.module.css
2035
2058
  var tooltip_exports = {};
@@ -2082,7 +2105,7 @@ import { createContext as createContext2 } from "react";
2082
2105
  var TooltipContext = createContext2(null);
2083
2106
 
2084
2107
  // src/components/view/Tooltip/ui/TooltipContent/TooltipContent.tsx
2085
- import { jsx as jsx24, jsxs as jsxs14 } from "react/jsx-runtime";
2108
+ import { jsx as jsx24, jsxs as jsxs13 } from "react/jsx-runtime";
2086
2109
  var TooltipContent = forwardRef5(function TooltipContent2({ styles, style, children: children2, ...props }, propRef) {
2087
2110
  const context = useContext5(TooltipContext);
2088
2111
  if (!context) {
@@ -2123,7 +2146,7 @@ var TooltipContent = forwardRef5(function TooltipContent2({ styles, style, child
2123
2146
  default:
2124
2147
  break;
2125
2148
  }
2126
- return /* @__PURE__ */ jsx24(FloatingPortal2, { root: otherContext.root, children: /* @__PURE__ */ jsxs14(
2149
+ return /* @__PURE__ */ jsx24(FloatingPortal2, { root: otherContext.root, children: /* @__PURE__ */ jsxs13(
2127
2150
  "div",
2128
2151
  {
2129
2152
  ref,
@@ -2167,7 +2190,7 @@ import {
2167
2190
  useInteractions as useInteractions2,
2168
2191
  useRole as useRole2
2169
2192
  } from "@floating-ui/react";
2170
- import { useMemo as useMemo4, useState as useState10 } from "react";
2193
+ import { useMemo as useMemo5, useState as useState9 } from "react";
2171
2194
  function useTooltip(props = {}) {
2172
2195
  const {
2173
2196
  initialOpen = false,
@@ -2178,7 +2201,7 @@ function useTooltip(props = {}) {
2178
2201
  arrowRef,
2179
2202
  root: root22
2180
2203
  } = props;
2181
- const [uncontrolledOpen, setUncontrolledOpen] = useState10(initialOpen);
2204
+ const [uncontrolledOpen, setUncontrolledOpen] = useState9(initialOpen);
2182
2205
  const open = controlledOpen ?? uncontrolledOpen;
2183
2206
  const setOpen = setControlledOpen ?? setUncontrolledOpen;
2184
2207
  const data = useFloating2({
@@ -2208,7 +2231,7 @@ function useTooltip(props = {}) {
2208
2231
  const dismiss = useDismiss2(context);
2209
2232
  const role = useRole2(context, { role: "tooltip" });
2210
2233
  const interactions = useInteractions2([hover, focus, dismiss, role]);
2211
- return useMemo4(
2234
+ return useMemo5(
2212
2235
  () => ({
2213
2236
  open,
2214
2237
  setOpen,
@@ -2258,7 +2281,7 @@ var TooltipTrigger = forwardRef6(
2258
2281
  );
2259
2282
 
2260
2283
  // src/components/view/Tooltip/Tooltip.tsx
2261
- import { jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
2284
+ import { jsx as jsx27, jsxs as jsxs14 } from "react/jsx-runtime";
2262
2285
  function Tooltip(props) {
2263
2286
  const {
2264
2287
  label: label7,
@@ -2272,7 +2295,7 @@ function Tooltip(props) {
2272
2295
  children: children2,
2273
2296
  classes
2274
2297
  } = props;
2275
- const [showTooltip, setShowTooltip] = useState11(false);
2298
+ const [showTooltip, setShowTooltip] = useState10(false);
2276
2299
  const arrowRef = useRef8(null);
2277
2300
  if (!label7) {
2278
2301
  return children2;
@@ -2280,7 +2303,7 @@ function Tooltip(props) {
2280
2303
  if (!children2) {
2281
2304
  return null;
2282
2305
  }
2283
- return /* @__PURE__ */ jsxs15(
2306
+ return /* @__PURE__ */ jsxs14(
2284
2307
  TooltipProvider,
2285
2308
  {
2286
2309
  placement,
@@ -2373,7 +2396,7 @@ var tabs_default = {
2373
2396
  };
2374
2397
 
2375
2398
  // src/components/navigation/Tabs/Tabs.tsx
2376
- import { jsx as jsx28, jsxs as jsxs16 } from "react/jsx-runtime";
2399
+ import { jsx as jsx28, jsxs as jsxs15 } from "react/jsx-runtime";
2377
2400
  function Tabs(props) {
2378
2401
  const {
2379
2402
  items: items2,
@@ -2389,8 +2412,8 @@ function Tabs(props) {
2389
2412
  value,
2390
2413
  classes
2391
2414
  } = props;
2392
- const [isMounted, setIsMounted] = useState12(false);
2393
- const [selectedTab, setSelectedTab] = useState12(defaultSelected);
2415
+ const [isMounted, setIsMounted] = useState11(false);
2416
+ const [selectedTab, setSelectedTab] = useState11(defaultSelected);
2394
2417
  const currentValue = useExternalState ? value : selectedTab;
2395
2418
  const handleClick = (item3) => () => {
2396
2419
  if (item3.isDisabled) {
@@ -2436,7 +2459,7 @@ function Tabs(props) {
2436
2459
  children: items2.map((item3) => {
2437
2460
  const isButton = !!item3.onClick;
2438
2461
  const isSelected = !isButton && currentValue === item3.value;
2439
- const tabContent = /* @__PURE__ */ jsxs16(
2462
+ const tabContent = /* @__PURE__ */ jsxs15(
2440
2463
  "div",
2441
2464
  {
2442
2465
  className: classnames17(
@@ -2453,7 +2476,7 @@ function Tabs(props) {
2453
2476
  ),
2454
2477
  onClick: handleClick(item3),
2455
2478
  children: [
2456
- /* @__PURE__ */ jsxs16(
2479
+ /* @__PURE__ */ jsxs15(
2457
2480
  "div",
2458
2481
  {
2459
2482
  className: classnames17(
@@ -2498,7 +2521,7 @@ import { flexRender, getCoreRowModel, useReactTable } from "@tanstack/react-tabl
2498
2521
  import { defaultRangeExtractor, useVirtualizer } from "@tanstack/react-virtual";
2499
2522
  import classnames22 from "classnames";
2500
2523
  import dayjs4 from "dayjs";
2501
- import { Fragment as Fragment8, useCallback as useCallback7, useEffect as useEffect8, useMemo as useMemo6, useRef as useRef11, useState as useState16 } from "react";
2524
+ import { Fragment as Fragment7, useCallback as useCallback8, useEffect as useEffect8, useMemo as useMemo7, useRef as useRef11, useState as useState15 } from "react";
2502
2525
 
2503
2526
  // src/utils/toFirstLetterUpperCase.ts
2504
2527
  var toFirstLetterUpperCase = (name) => {
@@ -2510,7 +2533,7 @@ var defaultRowHeight = 32;
2510
2533
 
2511
2534
  // src/components/view/VirtualTable/ui/DefaultColumn/DefaultColumn.tsx
2512
2535
  import classnames18 from "classnames";
2513
- import { useEffect as useEffect6, useRef as useRef10, useState as useState13 } from "react";
2536
+ import { useEffect as useEffect6, useRef as useRef10, useState as useState12 } from "react";
2514
2537
 
2515
2538
  // src/components/view/Modal/Modal.tsx
2516
2539
  import { forwardRef as forwardRef7, useRef as useRef9 } from "react";
@@ -2674,15 +2697,15 @@ var virtualTable_default = {
2674
2697
  };
2675
2698
 
2676
2699
  // src/components/view/VirtualTable/ui/DefaultColumn/DefaultColumn.tsx
2677
- import { Fragment as Fragment5, jsx as jsx30, jsxs as jsxs17 } from "react/jsx-runtime";
2700
+ import { Fragment as Fragment4, jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
2678
2701
  var DefaultColumn = {
2679
2702
  cell: ({ getValue, row: { index, original }, column: { id, columnDef }, table: table2 }) => {
2680
2703
  const initialValue = getValue();
2681
2704
  const { meta } = columnDef;
2682
2705
  const tableMeta = table2.options.meta;
2683
- const [value, setValue] = useState13(initialValue);
2684
- const [isEdit, setIsEdit] = useState13(false);
2685
- const [showModal, setShowModal] = useState13(false);
2706
+ const [value, setValue] = useState12(initialValue);
2707
+ const [isEdit, setIsEdit] = useState12(false);
2708
+ const [showModal, setShowModal] = useState12(false);
2686
2709
  const closeModalRef = useRef10();
2687
2710
  closeModalRef.current = () => {
2688
2711
  setShowModal(false);
@@ -2699,10 +2722,10 @@ var DefaultColumn = {
2699
2722
  const onChange = (e) => {
2700
2723
  setValue(e.target.value);
2701
2724
  };
2702
- return /* @__PURE__ */ jsx30(Tooltip, { label: original[id]?.error ?? "", alertType: "error", children: additionalViewResult?.edit !== null && additionalViewResult?.edit !== void 0 ? additionalViewResult.edit(onChange, onBlur) : /* @__PURE__ */ jsx30(Fragment5, { children: /* @__PURE__ */ jsx30("input", { onChange, onBlur, value: value ?? "", autoFocus: true }) }) });
2725
+ return /* @__PURE__ */ jsx30(Tooltip, { label: original[id]?.error ?? "", alertType: "error", children: additionalViewResult?.edit !== null && additionalViewResult?.edit !== void 0 ? additionalViewResult.edit(onChange, onBlur) : /* @__PURE__ */ jsx30(Fragment4, { children: /* @__PURE__ */ jsx30("input", { onChange, onBlur, value: value ?? "", autoFocus: true }) }) });
2703
2726
  }
2704
2727
  const shownValue = additionalViewResult?.view !== null && additionalViewResult?.view !== void 0 ? additionalViewResult.view : meta?.valueFormat ? meta.valueFormat(initialValue?.toString() ?? "") : meta?.toFixed !== void 0 && !Number.isNaN(parseFloat(initialValue)) ? parseFloat(Number(initialValue).toFixed(meta.toFixed)) : initialValue;
2705
- return /* @__PURE__ */ jsx30(Tooltip, { label: original[id]?.error, alertType: "error", children: /* @__PURE__ */ jsxs17(
2728
+ return /* @__PURE__ */ jsx30(Tooltip, { label: original[id]?.error, alertType: "error", children: /* @__PURE__ */ jsxs16(
2706
2729
  "div",
2707
2730
  {
2708
2731
  className: classnames18(
@@ -2729,7 +2752,7 @@ var DefaultColumn = {
2729
2752
 
2730
2753
  // src/components/view/VirtualTable/ui/HeaderDropdown/HeaderDropdown.tsx
2731
2754
  import classnames21 from "classnames";
2732
- import { useMemo as useMemo5 } from "react";
2755
+ import { useMemo as useMemo6 } from "react";
2733
2756
 
2734
2757
  // src/components/view/VirtualTable/ui/HeaderDropdown/headerDropdown.module.css
2735
2758
  var root18 = "headerDropdown_root";
@@ -2763,7 +2786,7 @@ var alphanumericCompare = (a, b) => {
2763
2786
 
2764
2787
  // src/components/view/VirtualTable/ui/DateFiltration/DateFiltration.tsx
2765
2788
  import classnames19 from "classnames";
2766
- import { useEffect as useEffect7, useState as useState14 } from "react";
2789
+ import { useEffect as useEffect7, useState as useState13 } from "react";
2767
2790
 
2768
2791
  // src/components/view/VirtualTable/ui/DateFiltration/dateFiltration.module.css
2769
2792
  var root19 = "dateFiltration_root";
@@ -2772,7 +2795,7 @@ var root19 = "dateFiltration_root";
2772
2795
  import { jsx as jsx31 } from "react/jsx-runtime";
2773
2796
  function DateFiltration(props) {
2774
2797
  const { defaultValues = [void 0, void 0], actionWithSelected } = props;
2775
- const [values, setValues] = useState14(defaultValues);
2798
+ const [values, setValues] = useState13(defaultValues);
2776
2799
  const handleChangeDates = (newValues) => {
2777
2800
  setValues(newValues);
2778
2801
  };
@@ -2794,7 +2817,7 @@ function DateFiltration(props) {
2794
2817
 
2795
2818
  // src/components/view/VirtualTable/ui/NumberFiltration/NumberFiltration.tsx
2796
2819
  import classnames20 from "classnames";
2797
- import { useState as useState15 } from "react";
2820
+ import { useState as useState14 } from "react";
2798
2821
 
2799
2822
  // src/components/view/VirtualTable/ui/NumberFiltration/numberFiltration.module.css
2800
2823
  var root20 = "numberFiltration_root";
@@ -2803,7 +2826,7 @@ var inputsContainer = "numberFiltration_inputsContainer";
2803
2826
  var input8 = "numberFiltration_input";
2804
2827
 
2805
2828
  // src/components/view/VirtualTable/ui/NumberFiltration/NumberFiltration.tsx
2806
- import { Fragment as Fragment6, jsx as jsx32, jsxs as jsxs18 } from "react/jsx-runtime";
2829
+ import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
2807
2830
  var items = [
2808
2831
  { type: "item", name: "\u041E\u0442 \u2014 \u0434\u043E", value: "range" },
2809
2832
  { type: "item", name: "\u0411\u043E\u043B\u044C\u0448\u0435", value: "more" },
@@ -2812,10 +2835,10 @@ var items = [
2812
2835
  ];
2813
2836
  function NumberFiltration(props) {
2814
2837
  const { defaultValues = [-Infinity, Infinity], actionWithSelected } = props;
2815
- const [selectedItem, setSelectedItem] = useState15(
2838
+ const [selectedItem, setSelectedItem] = useState14(
2816
2839
  defaultValues[0] === -Infinity && defaultValues[1] === Infinity ? items[0] : defaultValues[0] === defaultValues[1] ? items[3] : defaultValues[0] === -Infinity ? items[2] : defaultValues[1] === Infinity ? items[1] : items[0]
2817
2840
  );
2818
- const [values, setValues] = useState15(defaultValues);
2841
+ const [values, setValues] = useState14(defaultValues);
2819
2842
  const handleSelect = (item3) => {
2820
2843
  if (!!item3) {
2821
2844
  const newValues = [...values];
@@ -2844,7 +2867,7 @@ function NumberFiltration(props) {
2844
2867
  (prev) => type === "equal" ? [value.length ? +value : -Infinity, value.length ? +value : Infinity] : type === "more" ? [value.length ? +value : -Infinity, prev[1]] : [prev[0], value.length ? +value : Infinity]
2845
2868
  );
2846
2869
  };
2847
- return /* @__PURE__ */ jsxs18("div", { className: classnames20(root20), children: [
2870
+ return /* @__PURE__ */ jsxs17("div", { className: classnames20(root20), children: [
2848
2871
  /* @__PURE__ */ jsx32(
2849
2872
  Select,
2850
2873
  {
@@ -2857,7 +2880,7 @@ function NumberFiltration(props) {
2857
2880
  tabIndex: -1
2858
2881
  }
2859
2882
  ),
2860
- /* @__PURE__ */ jsx32("div", { className: classnames20(inputsContainer), children: selectedItem.value === "range" ? /* @__PURE__ */ jsxs18(Fragment6, { children: [
2883
+ /* @__PURE__ */ jsx32("div", { className: classnames20(inputsContainer), children: selectedItem.value === "range" ? /* @__PURE__ */ jsxs17(Fragment5, { children: [
2861
2884
  /* @__PURE__ */ jsx32(
2862
2885
  Input,
2863
2886
  {
@@ -2922,7 +2945,7 @@ function NumberFiltration(props) {
2922
2945
  }
2923
2946
 
2924
2947
  // src/components/view/VirtualTable/ui/HeaderDropdown/HeaderDropdown.tsx
2925
- import { Fragment as Fragment7, jsx as jsx33, jsxs as jsxs19 } from "react/jsx-runtime";
2948
+ import { Fragment as Fragment6, jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
2926
2949
  function HeaderDropdown(props) {
2927
2950
  const {
2928
2951
  headerMeta: {
@@ -2948,10 +2971,10 @@ function HeaderDropdown(props) {
2948
2971
  rows
2949
2972
  } = props;
2950
2973
  const headerResultName = sortAnotherName ?? headerName;
2951
- const filterItems3 = useMemo5(() => {
2974
+ const filterItems2 = useMemo6(() => {
2952
2975
  const checklistItems = items2.map(
2953
2976
  (i) => ({
2954
- name: i[headerResultName] ? valueFormat ? valueFormat(i[headerResultName].value?.toString() ?? "") : toFixed !== void 0 && !Number.isNaN(parseFloat(i[headerResultName].value)) ? parseFloat(Number(i[headerResultName].value).toFixed(toFixed)) : i[headerResultName].value?.toString() ?? "< \u043D\u0435\u0442 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F >" : "< \u043D\u0435\u0442 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F >",
2977
+ name: i[headerResultName] ? valueFormat ? valueFormat(i[headerResultName].value?.toString() ?? "") : toFixed !== void 0 && !Number.isNaN(parseFloat(i[headerResultName].value)) ? parseFloat(Number(i[headerResultName].value).toFixed(toFixed)).toString() : i[headerResultName].value?.toString() ?? "< \u043D\u0435\u0442 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F >" : "< \u043D\u0435\u0442 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F >",
2955
2978
  value: i[headerResultName]?.value?.toString() ?? ""
2956
2979
  })
2957
2980
  ).sort((a, b) => {
@@ -2972,7 +2995,7 @@ function HeaderDropdown(props) {
2972
2995
  ];
2973
2996
  return uniqueChecklistItems;
2974
2997
  }, [items2, headerResultName]);
2975
- const uniqueRows = useMemo5(
2998
+ const uniqueRows = useMemo6(
2976
2999
  () => Array.from(
2977
3000
  new Set(
2978
3001
  rows.filter((i) => !!i?.[headerResultName]).map((i) => i[headerResultName].payload?.id ?? i[headerResultName].value)
@@ -2980,17 +3003,17 @@ function HeaderDropdown(props) {
2980
3003
  ),
2981
3004
  [rows, headerResultName]
2982
3005
  );
2983
- const filterSelectedItems = useMemo5(() => {
3006
+ const filterSelectedItems = useMemo6(() => {
2984
3007
  const result = {};
2985
3008
  filterBy.find((fb) => fb.columnName === headerResultName)?.values.forEach((v) => {
2986
3009
  result[v] = true;
2987
3010
  });
2988
3011
  return result;
2989
3012
  }, [filterBy, headerResultName]);
2990
- const filterNumbers = useMemo5(() => {
3013
+ const filterNumbers = useMemo6(() => {
2991
3014
  return filterBy.find((fb) => fb.columnName === headerResultName && fb.type === "numberRange")?.values;
2992
3015
  }, [filterBy, headerResultName]);
2993
- const filterDates = useMemo5(() => {
3016
+ const filterDates = useMemo6(() => {
2994
3017
  return filterBy.find((fb) => fb.columnName === headerResultName && fb.type === "dateRange")?.values;
2995
3018
  }, [filterBy, headerResultName]);
2996
3019
  const handleSortClick = (direction) => () => {
@@ -3065,7 +3088,7 @@ function HeaderDropdown(props) {
3065
3088
  };
3066
3089
  const hasAnyFilter = Object.keys(filterSelectedItems).length || sortBy.some((sb) => sb.columnName === headerResultName);
3067
3090
  const { t } = useTranslation();
3068
- return /* @__PURE__ */ jsxs19("div", { className: classnames21(root18), children: [
3091
+ return /* @__PURE__ */ jsxs18("div", { className: classnames21(root18), children: [
3069
3092
  additionalContent?.(headerResultName),
3070
3093
  children2?.(showUniqueValuesCount && /* @__PURE__ */ jsx33("div", { children: `(${uniqueRows.length})` })),
3071
3094
  (sortable || filtrationByValue || filtrationByDate || filtrationByNumber) && /* @__PURE__ */ jsx33(
@@ -3074,13 +3097,13 @@ function HeaderDropdown(props) {
3074
3097
  placement: "bottom-end",
3075
3098
  wrapTrigger: true,
3076
3099
  root: containerRef,
3077
- description: /* @__PURE__ */ jsxs19(Fragment7, { children: [
3100
+ description: /* @__PURE__ */ jsxs18(Fragment6, { children: [
3078
3101
  filtrationByNumber && /* @__PURE__ */ jsx33(NumberFiltration, { defaultValues: filterNumbers, actionWithSelected: actionWithSelectedNumbers }),
3079
3102
  filtrationByDate && /* @__PURE__ */ jsx33(DateFiltration, { defaultValues: filterDates, actionWithSelected: actionWithSelectedDates }),
3080
3103
  filtrationByValue && /* @__PURE__ */ jsx33("div", { className: classnames21(checklistWrap), children: /* @__PURE__ */ jsx33(
3081
3104
  Checklist,
3082
3105
  {
3083
- items: filterItems3,
3106
+ items: filterItems2,
3084
3107
  selected: filterSelectedItems,
3085
3108
  actionWithSelected: actionWithSelectedObjects
3086
3109
  }
@@ -3231,7 +3254,7 @@ var recursiveSort = (items2, sortBy) => {
3231
3254
  };
3232
3255
 
3233
3256
  // src/components/view/VirtualTable/VirtualTable.tsx
3234
- import { Fragment as Fragment9, jsx as jsx34, jsxs as jsxs20 } from "react/jsx-runtime";
3257
+ import { Fragment as Fragment8, jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
3235
3258
  function VirtualTable(props) {
3236
3259
  const {
3237
3260
  rows,
@@ -3258,11 +3281,11 @@ function VirtualTable(props) {
3258
3281
  onSortsChange,
3259
3282
  additionalHeaderContent
3260
3283
  } = props;
3261
- const [filterBy, setFilterBy] = useState16(globalFilters ?? []);
3262
- const [sortBy, setSortBy] = useState16([...globalSorts ?? [], { columnName: "isNew", direction: "desc" }]);
3284
+ const [filterBy, setFilterBy] = useState15(globalFilters ?? []);
3285
+ const [sortBy, setSortBy] = useState15([...globalSorts ?? [], { columnName: "isNew", direction: "desc" }]);
3263
3286
  const tableContainerRef = useRef11(null);
3264
- const memoizedColumns = useMemo6(() => getColumns(columns), [columns]);
3265
- const memoizedData = useMemo6(() => {
3287
+ const memoizedColumns = useMemo7(() => getColumns(columns), [columns]);
3288
+ const memoizedData = useMemo7(() => {
3266
3289
  const newRows = [...rows];
3267
3290
  const nextFilterBy = filterBy.filter((filterByItem) => {
3268
3291
  const startDate = filterByItem.type === "dateRange" ? dayjs4(filterByItem.values[0]) : null;
@@ -3283,7 +3306,7 @@ function VirtualTable(props) {
3283
3306
  );
3284
3307
  return sorted;
3285
3308
  }, [rows, sortBy, filterBy]);
3286
- const columnsEstimateSize = useMemo6(
3309
+ const columnsEstimateSize = useMemo7(
3287
3310
  () => cellWidth ?? ((index) => memoizedColumns[index]?.meta?.width ?? 200),
3288
3311
  [cellWidth, memoizedColumns]
3289
3312
  );
@@ -3317,7 +3340,7 @@ function VirtualTable(props) {
3317
3340
  const columnVirtualizer = useVirtualizer({
3318
3341
  horizontal: true,
3319
3342
  count: headerGroups[0]?.headers.length ?? 1,
3320
- rangeExtractor: useCallback7((range) => {
3343
+ rangeExtractor: useCallback8((range) => {
3321
3344
  const stickyIndexes = [...Array(fixedColumnsCount)].map((_, index) => index);
3322
3345
  const next = /* @__PURE__ */ new Set([...stickyIndexes, ...defaultRangeExtractor(range)]);
3323
3346
  return [...next].sort((a, b) => a - b);
@@ -3326,11 +3349,11 @@ function VirtualTable(props) {
3326
3349
  estimateSize: columnsEstimateSize,
3327
3350
  overscan: 5
3328
3351
  });
3329
- const fixedColumnsWidth = useMemo6(
3352
+ const fixedColumnsWidth = useMemo7(
3330
3353
  () => [...Array(fixedColumnsCount)].reduce((sum, _, index) => sum + columnsEstimateSize(index), 0),
3331
3354
  [fixedColumnsCount, columnsEstimateSize]
3332
3355
  );
3333
- const headerGroupHeight = useMemo6(() => {
3356
+ const headerGroupHeight = useMemo7(() => {
3334
3357
  const delta = headerGroups.length - headerRowHeight.length;
3335
3358
  const result = [...headerRowHeight];
3336
3359
  if (delta > 0) {
@@ -3340,14 +3363,14 @@ function VirtualTable(props) {
3340
3363
  }
3341
3364
  return result;
3342
3365
  }, [headerRowHeight, headerGroups]);
3343
- const summaryHeaderHeight = useMemo6(
3366
+ const summaryHeaderHeight = useMemo7(
3344
3367
  () => headerGroupHeight.reduce(
3345
3368
  (sum, current, currentIndex) => currentIndex < headerGroups.length ? sum + current : sum,
3346
3369
  0
3347
3370
  ),
3348
3371
  [headerGroupHeight, headerGroups]
3349
3372
  );
3350
- const headerGroupY = useCallback7(
3373
+ const headerGroupY = useCallback8(
3351
3374
  (headerIndex) => headerGroupHeight.reduce((sum, current, currentIndex) => currentIndex < headerIndex ? sum + current : sum, 0),
3352
3375
  [headerGroupHeight, headerGroups]
3353
3376
  );
@@ -3417,8 +3440,8 @@ function VirtualTable(props) {
3417
3440
  classes?.root
3418
3441
  ),
3419
3442
  style: height ? { height } : void 0,
3420
- children: /* @__PURE__ */ jsxs20("div", { ref: tableContainerRef, className: classnames22(tableContainer, "styledScroll"), children: [
3421
- /* @__PURE__ */ jsxs20(
3443
+ children: /* @__PURE__ */ jsxs19("div", { ref: tableContainerRef, className: classnames22(tableContainer, "styledScroll"), children: [
3444
+ /* @__PURE__ */ jsxs19(
3422
3445
  "div",
3423
3446
  {
3424
3447
  className: table,
@@ -3452,7 +3475,7 @@ function VirtualTable(props) {
3452
3475
  containerRef: useTableContainerAsRootForPopup ? tableContainerRef : void 0,
3453
3476
  showUniqueValuesCount,
3454
3477
  additionalContent: additionalHeaderContent,
3455
- children: (afterNode) => /* @__PURE__ */ jsxs20(
3478
+ children: (afterNode) => /* @__PURE__ */ jsxs19(
3456
3479
  "div",
3457
3480
  {
3458
3481
  className: classnames22(
@@ -3477,7 +3500,7 @@ function VirtualTable(props) {
3477
3500
  }
3478
3501
  ) });
3479
3502
  };
3480
- return /* @__PURE__ */ jsxs20(Fragment8, { children: [
3503
+ return /* @__PURE__ */ jsxs19(Fragment7, { children: [
3481
3504
  [...Array(fixedColumnsCount)].map((_, index) => {
3482
3505
  const header2 = headerGroup.headers[index];
3483
3506
  const nextHorizontalHeaders = getNextHorizontalHeaders(
@@ -3573,7 +3596,7 @@ function VirtualTable(props) {
3573
3596
  ),
3574
3597
  virtualRows.map((virtualRow) => {
3575
3598
  const row = rowsFromTable[virtualRow.index];
3576
- return /* @__PURE__ */ jsxs20(
3599
+ return /* @__PURE__ */ jsxs19(
3577
3600
  "div",
3578
3601
  {
3579
3602
  "data-index": virtualRow.index,
@@ -3628,7 +3651,7 @@ function VirtualTable(props) {
3628
3651
  overflow: "hidden"
3629
3652
  }
3630
3653
  },
3631
- children: rowButtons?.(row.original)?.map((ab) => /* @__PURE__ */ jsx34(Fragment8, { children: ab.template ? ab.template(ab) : /* @__PURE__ */ jsx34(
3654
+ children: rowButtons?.(row.original)?.map((ab) => /* @__PURE__ */ jsx34(Fragment7, { children: ab.template ? ab.template(ab) : /* @__PURE__ */ jsx34(
3632
3655
  Tooltip,
3633
3656
  {
3634
3657
  label: ab.title,
@@ -3657,7 +3680,7 @@ function VirtualTable(props) {
3657
3680
  ]
3658
3681
  }
3659
3682
  ),
3660
- borders !== "none" && /* @__PURE__ */ jsxs20(Fragment9, { children: [
3683
+ borders !== "none" && /* @__PURE__ */ jsxs19(Fragment8, { children: [
3661
3684
  /* @__PURE__ */ jsx34("div", { className: rightBorder, style: { height: `${rowsTotalSize + summaryHeaderHeight}px` } }),
3662
3685
  /* @__PURE__ */ jsx34("div", { className: bottomBorder, style: { width: `${columnsTotalSize}px` } })
3663
3686
  ] })
@@ -3667,14 +3690,14 @@ function VirtualTable(props) {
3667
3690
  }
3668
3691
 
3669
3692
  // src/components/view/TreeView/TreeView.tsx
3670
- import { memo as memo2, useCallback as useCallback8, useMemo as useMemo7, useState as useState18 } from "react";
3693
+ import { memo as memo2, useCallback as useCallback9, useMemo as useMemo8, useState as useState17 } from "react";
3671
3694
 
3672
3695
  // src/components/view/TreeView/treeView.module.css
3673
3696
  var search = "treeView_search";
3674
3697
 
3675
3698
  // src/components/view/TreeView/ui/TreeViewItem/TreeViewItem.tsx
3676
3699
  import classNames5 from "classnames";
3677
- import { memo, useEffect as useEffect9, useState as useState17 } from "react";
3700
+ import { memo, useEffect as useEffect9, useState as useState16 } from "react";
3678
3701
 
3679
3702
  // src/components/view/TreeView/ui/TreeViewItem/treeViewItem.module.css
3680
3703
  var item2 = "treeViewItem_item";
@@ -3685,7 +3708,7 @@ var selected4 = "treeViewItem_selected";
3685
3708
  var selectIcon = "treeViewItem_selectIcon";
3686
3709
 
3687
3710
  // src/components/view/TreeView/ui/TreeViewItem/TreeViewItem.tsx
3688
- import { jsx as jsx35, jsxs as jsxs21 } from "react/jsx-runtime";
3711
+ import { jsx as jsx35, jsxs as jsxs20 } from "react/jsx-runtime";
3689
3712
  var TreeViewItem_default = memo(function TreeViewItem({
3690
3713
  title: title2,
3691
3714
  value,
@@ -3697,7 +3720,7 @@ var TreeViewItem_default = memo(function TreeViewItem({
3697
3720
  startIcons,
3698
3721
  children: children2
3699
3722
  }) {
3700
- const [isOpen, setIsOpen] = useState17(false);
3723
+ const [isOpen, setIsOpen] = useState16(false);
3701
3724
  useEffect9(() => {
3702
3725
  setIsOpen(!!searchValue);
3703
3726
  }, [searchValue]);
@@ -3711,10 +3734,10 @@ var TreeViewItem_default = memo(function TreeViewItem({
3711
3734
  }
3712
3735
  };
3713
3736
  const isSelected = selected5[value];
3714
- return /* @__PURE__ */ jsxs21("div", { children: [
3715
- /* @__PURE__ */ jsxs21("div", { className: classNames5(item2, { [selectable]: isSelectable }), onClick: handleClick, children: [
3737
+ return /* @__PURE__ */ jsxs20("div", { children: [
3738
+ /* @__PURE__ */ jsxs20("div", { className: classNames5(item2, { [selectable]: isSelectable }), onClick: handleClick, children: [
3716
3739
  hasChildren && /* @__PURE__ */ jsx35(KeyboardArrowDownIcon, {}),
3717
- /* @__PURE__ */ jsxs21("div", { className: classNames5(title, { [selected4]: isSelected }), children: [
3740
+ /* @__PURE__ */ jsxs20("div", { className: classNames5(title, { [selected4]: isSelected }), children: [
3718
3741
  startIcon,
3719
3742
  /* @__PURE__ */ jsx35(Typography, { variant: "subtitle2", children: title2 }),
3720
3743
  isSelectable && /* @__PURE__ */ jsx35("span", { className: selectIcon, children: isSelected ? /* @__PURE__ */ jsx35(DoneIcon, {}) : /* @__PURE__ */ jsx35(AddIcon, {}) })
@@ -3757,11 +3780,11 @@ var getFilteredTree = (tree, search2) => {
3757
3780
  };
3758
3781
 
3759
3782
  // src/components/view/TreeView/TreeView.tsx
3760
- import { Fragment as Fragment10, jsx as jsx36, jsxs as jsxs22 } from "react/jsx-runtime";
3783
+ import { Fragment as Fragment9, jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
3761
3784
  var TreeView_default = memo2(function TreeView({ data, selected: selected5, startIcons, onSelect, withSearch = false }) {
3762
- const [searchValue, setSearchValue] = useState18("");
3763
- const onChangeSearchValue = useCallback8((e) => setSearchValue(e.target.value), []);
3764
- const selectedValues = useMemo7(
3785
+ const [searchValue, setSearchValue] = useState17("");
3786
+ const onChangeSearchValue = useCallback9((e) => setSearchValue(e.target.value), []);
3787
+ const selectedValues = useMemo8(
3765
3788
  () => selected5.reduce(
3766
3789
  (acc, cur) => {
3767
3790
  acc[cur] = true;
@@ -3771,10 +3794,10 @@ var TreeView_default = memo2(function TreeView({ data, selected: selected5, star
3771
3794
  ),
3772
3795
  [selected5]
3773
3796
  );
3774
- const filteredData = useMemo7(() => {
3797
+ const filteredData = useMemo8(() => {
3775
3798
  return getFilteredTree(data, searchValue);
3776
3799
  }, [data, searchValue]);
3777
- return /* @__PURE__ */ jsxs22(Fragment10, { children: [
3800
+ return /* @__PURE__ */ jsxs21(Fragment9, { children: [
3778
3801
  withSearch && /* @__PURE__ */ jsx36(
3779
3802
  SearchInput,
3780
3803
  {
@@ -3815,11 +3838,11 @@ var valuesWithBorders = "pairs_valuesWithBorders";
3815
3838
  var dimTypography = "pairs_dimTypography";
3816
3839
 
3817
3840
  // src/components/view/Pairs/ui/TypographyWithTooltip.tsx
3818
- import { useState as useState19 } from "react";
3841
+ import { useState as useState18 } from "react";
3819
3842
  import { jsx as jsx37 } from "react/jsx-runtime";
3820
3843
  function TypographyWithTooltip(props) {
3821
3844
  const { label: label7 } = props;
3822
- const [tooltip, setTooltip] = useState19(label7);
3845
+ const [tooltip, setTooltip] = useState18(label7);
3823
3846
  return /* @__PURE__ */ jsx37(Tooltip, { label: tooltip, children: /* @__PURE__ */ jsx37(
3824
3847
  Typography,
3825
3848
  {
@@ -3837,7 +3860,7 @@ function TypographyWithTooltip(props) {
3837
3860
  }
3838
3861
 
3839
3862
  // src/components/view/Pairs/Pairs.tsx
3840
- import { Fragment as Fragment11, jsx as jsx38, jsxs as jsxs23 } from "react/jsx-runtime";
3863
+ import { Fragment as Fragment10, jsx as jsx38, jsxs as jsxs22 } from "react/jsx-runtime";
3841
3864
  function Pairs(props) {
3842
3865
  const { pairs, column1Width = "50%", column2Width = "50%", showBorder, minRowHeight, classes } = props;
3843
3866
  return /* @__PURE__ */ jsx38("div", { className: classNames6(classes?.root), children: pairs.map((pair, i) => /* @__PURE__ */ jsx38(
@@ -3847,7 +3870,7 @@ function Pairs(props) {
3847
3870
  className: classNames6(classes?.rowContainer, {
3848
3871
  [rowContainerBorders]: showBorder
3849
3872
  }),
3850
- children: pair && /* @__PURE__ */ jsxs23(Fragment11, { children: [
3873
+ children: pair && /* @__PURE__ */ jsxs22(Fragment10, { children: [
3851
3874
  /* @__PURE__ */ jsx38(
3852
3875
  "div",
3853
3876
  {
@@ -3889,11 +3912,11 @@ var header = "card_header";
3889
3912
  var actions = "card_actions";
3890
3913
 
3891
3914
  // src/components/view/Card/Card.tsx
3892
- import { jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
3915
+ import { jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
3893
3916
  function Card(props) {
3894
3917
  const { surfaceType = "primary", title: title2, actions: actions2, children: children2, classes } = props;
3895
- return /* @__PURE__ */ jsxs24(Surface, { type: surfaceType, classes: { root: classNames7(root21, classes?.root) }, children: [
3896
- (!!title2 || !!actions2) && /* @__PURE__ */ jsxs24("div", { className: header, children: [
3918
+ return /* @__PURE__ */ jsxs23(Surface, { type: surfaceType, classes: { root: classNames7(root21, classes?.root) }, children: [
3919
+ (!!title2 || !!actions2) && /* @__PURE__ */ jsxs23("div", { className: header, children: [
3897
3920
  title2 ?? /* @__PURE__ */ jsx39("div", {}),
3898
3921
  !!actions2 && /* @__PURE__ */ jsx39("div", { className: classNames7(actions, classes?.actions), children: actions2 })
3899
3922
  ] }),