@true-engineering/true-react-common-ui-kit 3.8.1 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/LICENSE +201 -201
  2. package/README.md +10 -0
  3. package/dist/components/Checkbox/Checkbox.d.ts +2 -2
  4. package/dist/components/NewMoreMenu/NewMoreMenu.styles.d.ts +3 -1
  5. package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +1 -1
  6. package/dist/components/Select/Select.d.ts +4 -4
  7. package/dist/components/Select/components/SelectList/SelectList.d.ts +5 -6
  8. package/dist/components/Select/components/SelectListItem/SelectListItem.d.ts +2 -2
  9. package/dist/components/WithPopup/WithPopup.styles.d.ts +1 -1
  10. package/dist/true-react-common-ui-kit.js +111 -86
  11. package/dist/true-react-common-ui-kit.js.map +1 -1
  12. package/dist/true-react-common-ui-kit.umd.cjs +111 -86
  13. package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
  14. package/package.json +1 -1
  15. package/src/components/AccountInfo/AccountInfo.stories.tsx +32 -32
  16. package/src/components/AccountInfo/AccountInfo.tsx +80 -80
  17. package/src/components/AddButton/AddButton.stories.tsx +21 -21
  18. package/src/components/AddButton/AddButton.tsx +52 -52
  19. package/src/components/Button/Button.stories.tsx +56 -56
  20. package/src/components/Button/Button.tsx +129 -129
  21. package/src/components/Checkbox/Checkbox.stories.tsx +28 -28
  22. package/src/components/Checkbox/Checkbox.tsx +7 -4
  23. package/src/components/CloseButton/CloseButton.tsx +34 -34
  24. package/src/components/Colors/Colors.stories.tsx +7 -7
  25. package/src/components/DateInput/DateInput.tsx +90 -90
  26. package/src/components/DateInput/constants.ts +2 -2
  27. package/src/components/DatePicker/DatePicker.tsx +308 -308
  28. package/src/components/Description/Description.stories.tsx +27 -27
  29. package/src/components/Description/Description.tsx +61 -61
  30. package/src/components/FiltersPane/FiltersPane.tsx +158 -158
  31. package/src/components/FiltersPane/components/Filter/Filter.tsx +203 -203
  32. package/src/components/FiltersPane/components/FilterValueView/FilterValueView.tsx +166 -166
  33. package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.tsx +210 -210
  34. package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.tsx +177 -177
  35. package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.tsx +167 -167
  36. package/src/components/Flag/Flag.stories.tsx +29 -29
  37. package/src/components/Flag/Flag.tsx +26 -26
  38. package/src/components/Flag/augment.d.ts +1 -1
  39. package/src/components/FlexibleTable/FlexibleTable.stories.tsx +267 -267
  40. package/src/components/FlexibleTable/FlexibleTable.styles.ts +110 -110
  41. package/src/components/FlexibleTable/FlexibleTable.tsx +271 -271
  42. package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.ts +38 -38
  43. package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.tsx +83 -83
  44. package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.ts +25 -25
  45. package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.tsx +196 -196
  46. package/src/components/FlexibleTable/helpers.ts +13 -13
  47. package/src/components/FlexibleTable/types.ts +52 -52
  48. package/src/components/Icon/Icon.stories.tsx +86 -86
  49. package/src/components/Icon/complexIcons/augment.d.ts +1 -1
  50. package/src/components/Icon/complexIcons/avatarGreen.svg +57 -57
  51. package/src/components/Icon/complexIcons/index.ts +1 -1
  52. package/src/components/IncrementInput/IncrementInput.tsx +105 -105
  53. package/src/components/Input/Input.tsx +297 -297
  54. package/src/components/Input/types.ts +32 -32
  55. package/src/components/List/List.stories.tsx +70 -70
  56. package/src/components/List/List.tsx +33 -33
  57. package/src/components/List/components/ListItem/ListItem.tsx +57 -57
  58. package/src/components/Modal/Modal.stories.tsx +105 -105
  59. package/src/components/Modal/Modal.tsx +196 -196
  60. package/src/components/MoreMenu/MoreMenu.styles.ts +68 -68
  61. package/src/components/MultiSelect/MultiSelect.stories.tsx +46 -46
  62. package/src/components/MultiSelect/MultiSelect.tsx +106 -106
  63. package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.tsx +53 -53
  64. package/src/components/MultiSelectList/MultiSelectList.tsx +461 -461
  65. package/src/components/NewMoreMenu/NewMoreMenu.styles.ts +5 -5
  66. package/src/components/NewMoreMenu/NewMoreMenu.tsx +15 -1
  67. package/src/components/Notification/Notification.stories.tsx +46 -46
  68. package/src/components/Notification/Notification.tsx +69 -69
  69. package/src/components/NumberInput/NumberInput.tsx +137 -137
  70. package/src/components/NumberInput/index.ts +1 -1
  71. package/src/components/PhoneInput/PhoneInput.tsx +214 -214
  72. package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.tsx +155 -155
  73. package/src/components/PhoneInput/types.ts +16 -16
  74. package/src/components/RadioButton/RadioButton.stories.tsx +46 -46
  75. package/src/components/RadioButton/RadioButton.tsx +57 -57
  76. package/src/components/ScrollIntoViewIfNeeded/index.ts +1 -1
  77. package/src/components/Select/CustomSelect.stories.tsx +217 -217
  78. package/src/components/Select/MultiSelect.stories.tsx +240 -240
  79. package/src/components/Select/Select.stories.tsx +235 -235
  80. package/src/components/Select/Select.tsx +57 -28
  81. package/src/components/Select/components/SelectList/SelectList.tsx +8 -9
  82. package/src/components/Select/components/SelectListItem/SelectListItem.tsx +7 -3
  83. package/src/components/Select/constants.ts +2 -2
  84. package/src/components/Select/types.ts +1 -1
  85. package/src/components/Selector/Selector.stories.tsx +62 -62
  86. package/src/components/Selector/Selector.styles.ts +164 -164
  87. package/src/components/Selector/Selector.tsx +115 -115
  88. package/src/components/Selector/index.ts +2 -2
  89. package/src/components/Selector/types.ts +12 -12
  90. package/src/components/Skeleton/Skeleton.stories.tsx +19 -19
  91. package/src/components/SmartInput/SmartInput.tsx +134 -134
  92. package/src/components/Status/Status.stories.tsx +73 -73
  93. package/src/components/Status/Status.styles.ts +143 -143
  94. package/src/components/Status/Status.tsx +49 -49
  95. package/src/components/Status/constants.ts +11 -11
  96. package/src/components/Status/index.ts +3 -3
  97. package/src/components/Status/types.ts +5 -5
  98. package/src/components/Switch/Switch.stories.tsx +40 -40
  99. package/src/components/Switch/Switch.tsx +75 -75
  100. package/src/components/TextArea/TextArea.tsx +180 -180
  101. package/src/components/TextButton/TextButton.stories.tsx +46 -46
  102. package/src/components/TextButton/TextButton.styles.ts +129 -129
  103. package/src/components/TextButton/TextButton.tsx +103 -103
  104. package/src/components/TextButton/index.ts +4 -4
  105. package/src/components/TextWithInfo/TextWithInfo.stories.tsx +53 -53
  106. package/src/components/TextWithInfo/TextWithInfo.tsx +62 -62
  107. package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +58 -58
  108. package/src/components/ThemedPreloader/ThemedPreloader.stories.tsx +41 -41
  109. package/src/components/ThemedPreloader/ThemedPreloader.tsx +54 -54
  110. package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -1
  111. package/src/components/Toaster/Toaster.stories.tsx +30 -30
  112. package/src/components/Toaster/Toaster.tsx +108 -108
  113. package/src/components/Tooltip/Tooltip.stories.tsx +19 -19
  114. package/src/components/Tooltip/Tooltip.tsx +35 -35
  115. package/src/components/Tooltip/types.ts +1 -1
  116. package/src/components/WithPopup/WithPopup.styles.ts +4 -0
  117. package/src/components/WithPopup/WithPopup.tsx +6 -1
  118. package/src/helpers/popper-helpers.ts +17 -17
  119. package/src/hooks/use-dropdown.ts +84 -84
  120. package/src/hooks/use-is-mounted.ts +15 -15
  121. package/src/theme/helpers.ts +76 -76
  122. package/src/vite-env.d.ts +1 -1
@@ -6729,63 +6729,63 @@ var useMergedRefs = function(refs) {
6729
6729
  return mergeRefs(refs);
6730
6730
  }, refs);
6731
6731
  };
6732
- const avatarGreen = ` <svg\r
6733
- width="100%"\r
6734
- height="100%"\r
6735
- viewBox="0 0 32 32"\r
6736
- fill="none"\r
6737
- xmlns="http://www.w3.org/2000/svg"\r
6738
- >\r
6739
- <circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />\r
6740
- <mask\r
6741
- id="mask0_0_12744"\r
6742
- style="mask-type: 'alpha';"\r
6743
- maskUnits="userSpaceOnUse"\r
6744
- x="0"\r
6745
- y="0"\r
6746
- width="32"\r
6747
- height="32"\r
6748
- >\r
6749
- <circle cx="16" cy="16" r="16" fill="white" />\r
6750
- </mask>\r
6751
- <g mask="url(#mask0_0_12744)">\r
6752
- <circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />\r
6753
- <mask\r
6754
- id="mask1_0_12744"\r
6755
- style="mask-type: 'alpha';"\r
6756
- maskUnits="userSpaceOnUse"\r
6757
- x="3"\r
6758
- y="16"\r
6759
- width="26"\r
6760
- height="26"\r
6761
- >\r
6762
- <circle cx="16" cy="29" r="13" fill="white" />\r
6763
- </mask>\r
6764
- <g mask="url(#mask1_0_12744)">\r
6765
- <ellipse\r
6766
- cx="16"\r
6767
- cy="17.5"\r
6768
- rx="6"\r
6769
- ry="7.5"\r
6770
- fill="#505F79"\r
6771
- fill-opacity="0.204983"\r
6772
- />\r
6773
- </g>\r
6774
- </g>\r
6775
- <ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />\r
6776
- <defs>\r
6777
- <linearGradient\r
6778
- id="paint0_linear_0_12744"\r
6779
- x1="13.347"\r
6780
- y1="46.279"\r
6781
- x2="33.5318"\r
6782
- y2="30.8088"\r
6783
- gradientUnits="userSpaceOnUse"\r
6784
- >\r
6785
- <stop stop-color="#ABD229" />\r
6786
- <stop offset="1" stop-color="#9CD03F" />\r
6787
- </linearGradient>\r
6788
- </defs>\r
6732
+ const avatarGreen = ` <svg
6733
+ width="100%"
6734
+ height="100%"
6735
+ viewBox="0 0 32 32"
6736
+ fill="none"
6737
+ xmlns="http://www.w3.org/2000/svg"
6738
+ >
6739
+ <circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />
6740
+ <mask
6741
+ id="mask0_0_12744"
6742
+ style="mask-type: 'alpha';"
6743
+ maskUnits="userSpaceOnUse"
6744
+ x="0"
6745
+ y="0"
6746
+ width="32"
6747
+ height="32"
6748
+ >
6749
+ <circle cx="16" cy="16" r="16" fill="white" />
6750
+ </mask>
6751
+ <g mask="url(#mask0_0_12744)">
6752
+ <circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />
6753
+ <mask
6754
+ id="mask1_0_12744"
6755
+ style="mask-type: 'alpha';"
6756
+ maskUnits="userSpaceOnUse"
6757
+ x="3"
6758
+ y="16"
6759
+ width="26"
6760
+ height="26"
6761
+ >
6762
+ <circle cx="16" cy="29" r="13" fill="white" />
6763
+ </mask>
6764
+ <g mask="url(#mask1_0_12744)">
6765
+ <ellipse
6766
+ cx="16"
6767
+ cy="17.5"
6768
+ rx="6"
6769
+ ry="7.5"
6770
+ fill="#505F79"
6771
+ fill-opacity="0.204983"
6772
+ />
6773
+ </g>
6774
+ </g>
6775
+ <ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />
6776
+ <defs>
6777
+ <linearGradient
6778
+ id="paint0_linear_0_12744"
6779
+ x1="13.347"
6780
+ y1="46.279"
6781
+ x2="33.5318"
6782
+ y2="30.8088"
6783
+ gradientUnits="userSpaceOnUse"
6784
+ >
6785
+ <stop stop-color="#ABD229" />
6786
+ <stop offset="1" stop-color="#9CD03F" />
6787
+ </linearGradient>
6788
+ </defs>
6789
6789
  </svg>`;
6790
6790
  var complexIcons = {
6791
6791
  avatar: avatarGreen
@@ -9110,12 +9110,12 @@ function Checkbox(param) {
9110
9110
  });
9111
9111
  var _useState = _sliced_to_array$o(useState(false), 2), isSelected = _useState[0], setIsSelected = _useState[1];
9112
9112
  var hasAction = !isDisabled && !isReadonly;
9113
- var onToggle = function() {
9113
+ var onToggle = function(event) {
9114
9114
  var isSelectedNext = !isSelected;
9115
9115
  onSelect({
9116
9116
  value,
9117
9117
  isSelected: isSelectedNext
9118
- });
9118
+ }, event);
9119
9119
  setIsSelected(isSelectedNext);
9120
9120
  };
9121
9121
  useEffect(function() {
@@ -10851,8 +10851,8 @@ var SelectListItem = function(param) {
10851
10851
  isSemiChecked,
10852
10852
  isDisabled,
10853
10853
  tweakStyles: checkboxStyles$1,
10854
- onSelect: function(v) {
10855
- return onToggleCheckbox(index, v.isSelected);
10854
+ onSelect: function(v, event) {
10855
+ return onToggleCheckbox(index, v.isSelected, event);
10856
10856
  },
10857
10857
  children
10858
10858
  }) : children
@@ -10974,7 +10974,7 @@ function SelectList(param) {
10974
10974
  },
10975
10975
  children: defaultOptionLabel
10976
10976
  }),
10977
- isStringNotEmpty(allOptionsLabel) && /* @__PURE__ */ jsx(SelectListItem, {
10977
+ isReactNodeNotEmpty(allOptionsLabel) && /* @__PURE__ */ jsx(SelectListItem, {
10978
10978
  classes,
10979
10979
  index: ALL_OPTION_INDEX,
10980
10980
  isSemiChecked: selectedOptionsCount > 0 && !areAllOptionsSelected,
@@ -11455,7 +11455,9 @@ function Select(props) {
11455
11455
  var classes = useStyles$B({
11456
11456
  theme: tweakStyles
11457
11457
  });
11458
- var shouldRenderSearchInputInList = (searchInput === null || searchInput === void 0 ? void 0 : searchInput.shouldRenderInList) === true;
11458
+ var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$9(_ref, [
11459
+ "shouldRenderInList"
11460
+ ]);
11459
11461
  var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
11460
11462
  var isMultiSelect = isMultiSelectValue(props);
11461
11463
  var hasReadonlyInput = isReadonly || optionsMode === "normal" || shouldRenderSearchInputInList;
@@ -11534,7 +11536,11 @@ function Select(props) {
11534
11536
  return acc;
11535
11537
  }, []));
11536
11538
  }, [
11537
- filteredOptions
11539
+ filteredOptions,
11540
+ hasDefaultOption,
11541
+ isOptionDisabled,
11542
+ shouldShowAllOption,
11543
+ shouldShowDefaultOption
11538
11544
  ]);
11539
11545
  var stringValue = isNotEmpty(strValue) ? convertValueToString(strValue) : void 0;
11540
11546
  var showedStringValue = areAllOptionsSelected && isNotEmpty(allOptionsLabel) ? allOptionsLabel : stringValue;
@@ -11577,9 +11583,9 @@ function Select(props) {
11577
11583
  handleListClose(event);
11578
11584
  }
11579
11585
  };
11580
- var handleOnChange = useCallback(function(newValue) {
11586
+ var handleOnChange = useCallback(function(newValue, event) {
11581
11587
  if (!compareValuesOnChange(value, newValue)) {
11582
- onChange(newValue);
11588
+ onChange(newValue, event);
11583
11589
  }
11584
11590
  }, [
11585
11591
  value,
@@ -11588,7 +11594,7 @@ function Select(props) {
11588
11594
  ]);
11589
11595
  var handleOptionSelect = useCallback(function(index, event) {
11590
11596
  var _input_current;
11591
- handleOnChange(index === DEFAULT_OPTION_INDEX ? void 0 : filteredOptions[index]);
11597
+ handleOnChange(index === DEFAULT_OPTION_INDEX ? void 0 : filteredOptions[index], event);
11592
11598
  handleListClose(event);
11593
11599
  (_input_current = input.current) === null || _input_current === void 0 ? void 0 : _input_current.blur();
11594
11600
  }, [
@@ -11596,16 +11602,16 @@ function Select(props) {
11596
11602
  handleListClose,
11597
11603
  filteredOptions
11598
11604
  ]);
11599
- var handleToggleOptionCheckbox = useCallback(function(index, isSelected) {
11605
+ var handleToggleOptionCheckbox = useCallback(function(index, isSelected, event) {
11600
11606
  if (!isMultiSelect) {
11601
11607
  return;
11602
11608
  }
11603
11609
  if (index === DEFAULT_OPTION_INDEX || index === ALL_OPTION_INDEX && !isSelected) {
11604
- handleOnChange(void 0);
11610
+ handleOnChange(void 0, event);
11605
11611
  return;
11606
11612
  }
11607
11613
  if (index === ALL_OPTION_INDEX && isSelected) {
11608
- handleOnChange(availableOptions);
11614
+ handleOnChange(availableOptions, event);
11609
11615
  return;
11610
11616
  }
11611
11617
  var option = filteredOptions[index];
@@ -11619,12 +11625,14 @@ function Select(props) {
11619
11625
  value === null || value === void 0 ? void 0 : value.filter(function(o) {
11620
11626
  return convertToId(o) !== convertToId(option);
11621
11627
  })
11622
- ));
11628
+ ), event);
11623
11629
  }, [
11624
- handleOnChange,
11625
- filteredOptions,
11626
11630
  isMultiSelect,
11627
- value
11631
+ filteredOptions,
11632
+ handleOnChange,
11633
+ value,
11634
+ availableOptions,
11635
+ convertToId
11628
11636
  ]);
11629
11637
  var handleOnType = useCallback(function() {
11630
11638
  var _ref2 = _async_to_generator$4(function(v) {
@@ -11661,14 +11669,17 @@ function Select(props) {
11661
11669
  return _ref2.apply(this, arguments);
11662
11670
  };
11663
11671
  }(), [
11672
+ isMounted,
11664
11673
  onType,
11665
11674
  optionsMode
11666
11675
  ]);
11667
- var debounceHandleOnType = useCallback(debounce$1(handleOnType, debounceTime), [
11676
+ var debounceHandleOnType = useMemo(function() {
11677
+ return debounce$1(handleOnType, debounceTime);
11678
+ }, [
11668
11679
  handleOnType,
11669
11680
  debounceTime
11670
11681
  ]);
11671
- var handleInputChange = function(v) {
11682
+ var handleInputChange = function(v, event) {
11672
11683
  if (onType !== void 0) {
11673
11684
  debounceHandleOnType(v);
11674
11685
  }
@@ -11676,7 +11687,7 @@ function Select(props) {
11676
11687
  setShouldShowDefaultOption(v === "");
11677
11688
  }
11678
11689
  if (v === "" && !hasSearchInputInList) {
11679
- handleOnChange(void 0);
11690
+ handleOnChange(void 0, event);
11680
11691
  }
11681
11692
  setSearchValue(v);
11682
11693
  };
@@ -11706,7 +11717,7 @@ function Select(props) {
11706
11717
  return convertToId(opt) === valueIdToSelect;
11707
11718
  })) !== null && _value_some !== void 0 ? _value_some : false;
11708
11719
  }
11709
- handleToggleOptionCheckbox(indexToSelect, !isThisValueAlreadySelected);
11720
+ handleToggleOptionCheckbox(indexToSelect, !isThisValueAlreadySelected, event);
11710
11721
  } else {
11711
11722
  handleOptionSelect(indexToSelect, event);
11712
11723
  }
@@ -11748,7 +11759,7 @@ function Select(props) {
11748
11759
  hasSearchInputInList) && // Последняя проверка на случай, если мы че то ищем в опциях
11749
11760
  (optionsMode === "normal" || hasEnoughSymbolsToSearch)
11750
11761
  );
11751
- var _ref = dropdownOptions !== null && dropdownOptions !== void 0 ? dropdownOptions : {}, _ref_shouldUsePopper = _ref.shouldUsePopper, shouldUsePopper = _ref_shouldUsePopper === void 0 ? false : _ref_shouldUsePopper, _ref_shouldRenderInBody = _ref.shouldRenderInBody, shouldRenderInBody = _ref_shouldRenderInBody === void 0 ? false : _ref_shouldRenderInBody, _ref_shouldHideOnScroll = _ref.shouldHideOnScroll, shouldHideOnScroll = _ref_shouldHideOnScroll === void 0 ? false : _ref_shouldHideOnScroll;
11762
+ var _ref1 = dropdownOptions !== null && dropdownOptions !== void 0 ? dropdownOptions : {}, _ref_shouldUsePopper = _ref1.shouldUsePopper, shouldUsePopper = _ref_shouldUsePopper === void 0 ? false : _ref_shouldUsePopper, _ref_shouldRenderInBody = _ref1.shouldRenderInBody, shouldRenderInBody = _ref_shouldRenderInBody === void 0 ? false : _ref_shouldRenderInBody, _ref_shouldHideOnScroll = _ref1.shouldHideOnScroll, shouldHideOnScroll = _ref_shouldHideOnScroll === void 0 ? false : _ref_shouldHideOnScroll;
11752
11763
  var popperData = useDropdown({
11753
11764
  isOpen,
11754
11765
  onDropdownClose: handleListClose,
@@ -11787,15 +11798,15 @@ function Select(props) {
11787
11798
  }, popperData === null || popperData === void 0 ? void 0 : popperData.attributes.popper), {
11788
11799
  children: isOpen && /* @__PURE__ */ jsx(SelectList, {
11789
11800
  options: filteredOptions,
11790
- defaultOptionLabel: hasDefaultOption && shouldShowDefaultOption ? defaultOptionLabel : void 0,
11791
- allOptionsLabel: shouldShowAllOption ? allOptionsLabel : void 0,
11801
+ defaultOptionLabel: hasDefaultOption && shouldShowDefaultOption && defaultOptionLabel,
11802
+ allOptionsLabel: shouldShowAllOption && allOptionsLabel,
11792
11803
  areAllOptionsSelected,
11793
- customListHeader: hasSearchInputInList ? /* @__PURE__ */ jsx(SearchInput, _object_spread$D({
11804
+ customListHeader: hasSearchInputInList && /* @__PURE__ */ jsx(SearchInput, _object_spread$D({
11794
11805
  value: searchValue,
11795
11806
  onChange: handleInputChange,
11796
11807
  tweakStyles: tweakSearchInputStyles,
11797
11808
  placeholder: "Поиск"
11798
- }, searchInput)) : void 0,
11809
+ }, searchInputProps)),
11799
11810
  noMatchesLabel,
11800
11811
  focusedIndex: focusedListCellIndex,
11801
11812
  activeValue: value,
@@ -30086,6 +30097,9 @@ var useStyles$1 = createThemedStyles("WithPopup", {
30086
30097
  },
30087
30098
  trigger: {
30088
30099
  cursor: "pointer"
30100
+ },
30101
+ popup: {
30102
+ zIndex: 5
30089
30103
  }
30090
30104
  });
30091
30105
  function _array_like_to_array(arr, len) {
@@ -30277,6 +30291,7 @@ var WithPopup = function(param) {
30277
30291
  root: !shouldRenderInBody ? refs.reference.current : void 0,
30278
30292
  children: /* @__PURE__ */ jsx("div", _object_spread_props$1(_object_spread$1({
30279
30293
  style: floatingStyles,
30294
+ className: classes.popup,
30280
30295
  ref: refs.setFloating
30281
30296
  }, getFloatingProps()), {
30282
30297
  children: isFunction$1(Popup) ? /* @__PURE__ */ jsx(Popup, {
@@ -30288,7 +30303,6 @@ var WithPopup = function(param) {
30288
30303
  }));
30289
30304
  };
30290
30305
  var useStyles = createThemedStyles("NewMoreMenu", {
30291
- root: {},
30292
30306
  hasCircle: {},
30293
30307
  button: {
30294
30308
  display: "flex",
@@ -30311,8 +30325,7 @@ var useStyles = createThemedStyles("NewMoreMenu", {
30311
30325
  active: {},
30312
30326
  disabled: {
30313
30327
  cursor: "default"
30314
- },
30315
- menu: {}
30328
+ }
30316
30329
  });
30317
30330
  function _define_property(obj, key, value) {
30318
30331
  if (key in obj) {
@@ -30371,6 +30384,16 @@ var NewMoreMenu = function(param) {
30371
30384
  var classes = useStyles({
30372
30385
  theme: tweakStyles
30373
30386
  });
30387
+ var tweakWithPopupStyles = useTweakStyles({
30388
+ tweakStyles,
30389
+ className: "tweakWithPopup",
30390
+ currentComponentName: "NewMoreMenu"
30391
+ });
30392
+ var tweakListStyles = useTweakStyles({
30393
+ tweakStyles,
30394
+ className: "tweakList",
30395
+ currentComponentName: "NewMoreMenu"
30396
+ });
30374
30397
  var isButtonDisabled = isDisabled || !isArrayNotEmpty(items);
30375
30398
  return /* @__PURE__ */ jsx(WithPopup, {
30376
30399
  placement,
@@ -30378,6 +30401,7 @@ var NewMoreMenu = function(param) {
30378
30401
  shouldHideOnScroll,
30379
30402
  shouldRenderInBody,
30380
30403
  isDisabled: isButtonDisabled,
30404
+ tweakStyles: tweakWithPopupStyles,
30381
30405
  trigger: function(param2) {
30382
30406
  var isActive = param2.isActive;
30383
30407
  var _obj;
@@ -30397,6 +30421,7 @@ var NewMoreMenu = function(param) {
30397
30421
  var onClose = param2.onClose;
30398
30422
  return /* @__PURE__ */ jsx(List, {
30399
30423
  items,
30424
+ tweakStyles: tweakListStyles,
30400
30425
  onClick: onClose
30401
30426
  });
30402
30427
  }