@salutejs/plasma-new-hope 0.335.0-canary.2194.17367251959.0 → 0.335.0-canary.2196.17400757003.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 (230) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.js +4 -1
  2. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  3. package/cjs/components/Autocomplete/FloatingPopover.js +5 -4
  4. package/cjs/components/Autocomplete/FloatingPopover.js.map +1 -1
  5. package/cjs/components/Calendar/Calendar.tokens.js +1 -0
  6. package/cjs/components/Calendar/Calendar.tokens.js.map +1 -1
  7. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
  8. package/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  9. package/cjs/components/Combobox/ComboboxNew/Combobox.js +15 -30
  10. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  11. package/cjs/components/Combobox/ComboboxNew/utils/getTextValue.js +24 -0
  12. package/cjs/components/Combobox/ComboboxNew/utils/getTextValue.js.map +1 -0
  13. package/cjs/components/DatePicker/DatePicker.tokens.js +1 -0
  14. package/cjs/components/DatePicker/DatePicker.tokens.js.map +1 -1
  15. package/cjs/components/DatePicker/DatePickerBase.styles.js +1 -1
  16. package/cjs/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  17. package/cjs/components/DatePicker/{DatePickerBase.styles_10sa0ht.css → DatePickerBase.styles_1fnt3hc.css} +1 -1
  18. package/cjs/components/DatePicker/RangeDate/RangeDate.css +4 -4
  19. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +2 -2
  20. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +1 -1
  21. package/{es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1n0dbxm.css → cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_160e4y4.css} +2 -2
  22. package/cjs/components/DatePicker/SingleDate/SingleDate.css +2 -2
  23. package/cjs/components/Popup/Popup.js +8 -67
  24. package/cjs/components/Popup/Popup.js.map +1 -1
  25. package/cjs/components/Popup/ui/Draggable/Draggable.js +33 -0
  26. package/cjs/components/Popup/ui/Draggable/Draggable.js.map +1 -0
  27. package/cjs/components/Popup/ui/Resizable/Resizable.js +79 -0
  28. package/cjs/components/Popup/ui/Resizable/Resizable.js.map +1 -0
  29. package/cjs/components/Slider/ui/Handler/Handler.js +3 -3
  30. package/cjs/components/Slider/ui/Handler/Handler.js.map +1 -1
  31. package/cjs/components/Tooltip/Tooltip.js +22 -45
  32. package/cjs/components/Tooltip/Tooltip.js.map +1 -1
  33. package/cjs/components/Tooltip/hooks/useDelayedTooltip.js +49 -0
  34. package/cjs/components/Tooltip/hooks/useDelayedTooltip.js.map +1 -0
  35. package/cjs/components/Tree/Tree.css +6 -6
  36. package/cjs/components/Tree/Tree.js +9 -2
  37. package/cjs/components/Tree/Tree.js.map +1 -1
  38. package/cjs/components/Tree/Tree.styles.js +1 -1
  39. package/cjs/components/Tree/Tree.styles.js.map +1 -1
  40. package/cjs/components/Tree/Tree.styles_6sla5y.css +7 -0
  41. package/cjs/components/Tree/Tree.tokens.js +2 -1
  42. package/cjs/components/Tree/Tree.tokens.js.map +1 -1
  43. package/cjs/index.css +10 -10
  44. package/emotion/cjs/components/Autocomplete/Autocomplete.js +3 -1
  45. package/emotion/cjs/components/Autocomplete/FloatingPopover.js +31 -4
  46. package/emotion/cjs/components/Calendar/Calendar.tokens.js +1 -0
  47. package/emotion/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
  48. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +26 -44
  49. package/emotion/cjs/components/Combobox/ComboboxNew/utils/getTextValue.js +25 -0
  50. package/emotion/cjs/components/Combobox/ComboboxNew/utils/index.js +4 -0
  51. package/emotion/cjs/components/DatePicker/DatePicker.tokens.js +1 -0
  52. package/emotion/cjs/components/DatePicker/DatePickerBase.styles.js +5 -5
  53. package/emotion/cjs/components/Popup/Popup.js +7 -69
  54. package/emotion/cjs/components/Popup/ui/Draggable/Draggable.js +75 -0
  55. package/emotion/cjs/components/Popup/ui/Resizable/Resizable.js +114 -0
  56. package/emotion/cjs/components/Popup/ui/index.js +20 -0
  57. package/emotion/cjs/components/Tooltip/Tooltip.js +19 -41
  58. package/emotion/cjs/components/Tooltip/hooks/index.js +11 -0
  59. package/emotion/cjs/components/Tooltip/hooks/useDelayedTooltip.js +93 -0
  60. package/emotion/cjs/components/Tree/Tree.js +7 -2
  61. package/emotion/cjs/components/Tree/Tree.styles.js +13 -13
  62. package/emotion/cjs/components/Tree/Tree.tokens.js +2 -1
  63. package/emotion/cjs/examples/components/Calendar/CalendarBase.config.js +5 -5
  64. package/emotion/cjs/examples/components/Calendar/CalendarDouble.config.js +5 -5
  65. package/emotion/cjs/examples/components/Chip/Chip.config.js +13 -14
  66. package/emotion/cjs/examples/components/Combobox/Combobox.js +15 -0
  67. package/emotion/cjs/examples/components/DatePicker/DatePicker.config.js +7 -7
  68. package/emotion/es/components/Autocomplete/Autocomplete.js +3 -1
  69. package/emotion/es/components/Autocomplete/FloatingPopover.js +31 -4
  70. package/emotion/es/components/Calendar/Calendar.tokens.js +1 -0
  71. package/emotion/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +4 -4
  72. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +12 -30
  73. package/emotion/es/components/Combobox/ComboboxNew/utils/getTextValue.js +16 -0
  74. package/emotion/es/components/Combobox/ComboboxNew/utils/index.js +1 -0
  75. package/emotion/es/components/DatePicker/DatePicker.tokens.js +1 -0
  76. package/emotion/es/components/DatePicker/DatePickerBase.styles.js +5 -5
  77. package/emotion/es/components/Popup/Popup.js +6 -63
  78. package/emotion/es/components/Popup/ui/Draggable/Draggable.js +19 -0
  79. package/emotion/es/components/Popup/ui/Resizable/Resizable.js +63 -0
  80. package/emotion/es/components/Popup/ui/index.js +2 -0
  81. package/emotion/es/components/Tooltip/Tooltip.js +20 -42
  82. package/emotion/es/components/Tooltip/hooks/index.js +1 -0
  83. package/emotion/es/components/Tooltip/hooks/useDelayedTooltip.js +83 -0
  84. package/emotion/es/components/Tree/Tree.js +7 -2
  85. package/emotion/es/components/Tree/Tree.styles.js +13 -13
  86. package/emotion/es/components/Tree/Tree.tokens.js +2 -1
  87. package/emotion/es/examples/components/Calendar/CalendarBase.config.js +5 -5
  88. package/emotion/es/examples/components/Calendar/CalendarDouble.config.js +5 -5
  89. package/emotion/es/examples/components/Chip/Chip.config.js +13 -14
  90. package/emotion/es/examples/components/Combobox/Combobox.js +7 -0
  91. package/emotion/es/examples/components/DatePicker/DatePicker.config.js +7 -7
  92. package/es/components/Autocomplete/Autocomplete.js +4 -1
  93. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  94. package/es/components/Autocomplete/FloatingPopover.js +6 -5
  95. package/es/components/Autocomplete/FloatingPopover.js.map +1 -1
  96. package/es/components/Calendar/Calendar.tokens.js +1 -0
  97. package/es/components/Calendar/Calendar.tokens.js.map +1 -1
  98. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +4 -4
  99. package/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js.map +1 -1
  100. package/es/components/Combobox/ComboboxNew/Combobox.js +15 -30
  101. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  102. package/es/components/Combobox/ComboboxNew/utils/getTextValue.js +20 -0
  103. package/es/components/Combobox/ComboboxNew/utils/getTextValue.js.map +1 -0
  104. package/es/components/DatePicker/DatePicker.tokens.js +1 -0
  105. package/es/components/DatePicker/DatePicker.tokens.js.map +1 -1
  106. package/es/components/DatePicker/DatePickerBase.styles.js +1 -1
  107. package/es/components/DatePicker/DatePickerBase.styles.js.map +1 -1
  108. package/es/components/DatePicker/{DatePickerBase.styles_10sa0ht.css → DatePickerBase.styles_1fnt3hc.css} +1 -1
  109. package/es/components/DatePicker/RangeDate/RangeDate.css +4 -4
  110. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +2 -2
  111. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.js +1 -1
  112. package/{cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_1n0dbxm.css → es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles_160e4y4.css} +2 -2
  113. package/es/components/DatePicker/SingleDate/SingleDate.css +2 -2
  114. package/es/components/Popup/Popup.js +7 -65
  115. package/es/components/Popup/Popup.js.map +1 -1
  116. package/es/components/Popup/ui/Draggable/Draggable.js +24 -0
  117. package/es/components/Popup/ui/Draggable/Draggable.js.map +1 -0
  118. package/es/components/Popup/ui/Resizable/Resizable.js +71 -0
  119. package/es/components/Popup/ui/Resizable/Resizable.js.map +1 -0
  120. package/es/components/Slider/ui/Handler/Handler.js +2 -2
  121. package/es/components/Slider/ui/Handler/Handler.js.map +1 -1
  122. package/es/components/Tooltip/Tooltip.js +23 -46
  123. package/es/components/Tooltip/Tooltip.js.map +1 -1
  124. package/es/components/Tooltip/hooks/useDelayedTooltip.js +45 -0
  125. package/es/components/Tooltip/hooks/useDelayedTooltip.js.map +1 -0
  126. package/es/components/Tree/Tree.css +6 -6
  127. package/es/components/Tree/Tree.js +9 -2
  128. package/es/components/Tree/Tree.js.map +1 -1
  129. package/es/components/Tree/Tree.styles.js +1 -1
  130. package/es/components/Tree/Tree.styles.js.map +1 -1
  131. package/es/components/Tree/Tree.styles_6sla5y.css +7 -0
  132. package/es/components/Tree/Tree.tokens.js +2 -1
  133. package/es/components/Tree/Tree.tokens.js.map +1 -1
  134. package/es/index.css +10 -10
  135. package/package.json +4 -4
  136. package/styled-components/cjs/components/Autocomplete/Autocomplete.js +3 -1
  137. package/styled-components/cjs/components/Autocomplete/FloatingPopover.js +31 -4
  138. package/styled-components/cjs/components/Calendar/Calendar.tokens.js +1 -0
  139. package/styled-components/cjs/components/Calendar/ui/CalendarHeader/CalendarHeader.js +3 -3
  140. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +26 -44
  141. package/styled-components/cjs/components/Combobox/ComboboxNew/utils/getTextValue.js +25 -0
  142. package/styled-components/cjs/components/Combobox/ComboboxNew/utils/index.js +4 -0
  143. package/styled-components/cjs/components/DatePicker/DatePicker.tokens.js +1 -0
  144. package/styled-components/cjs/components/DatePicker/DatePickerBase.styles.js +3 -3
  145. package/styled-components/cjs/components/Popup/Popup.js +7 -69
  146. package/styled-components/cjs/components/Popup/ui/Draggable/Draggable.js +75 -0
  147. package/styled-components/cjs/components/Popup/ui/Resizable/Resizable.js +114 -0
  148. package/styled-components/cjs/components/Popup/ui/index.js +20 -0
  149. package/styled-components/cjs/components/Tooltip/Tooltip.js +18 -40
  150. package/styled-components/cjs/components/Tooltip/hooks/index.js +11 -0
  151. package/styled-components/cjs/components/Tooltip/hooks/useDelayedTooltip.js +93 -0
  152. package/styled-components/cjs/components/Tree/Tree.js +7 -2
  153. package/styled-components/cjs/components/Tree/Tree.styles.js +13 -10
  154. package/styled-components/cjs/components/Tree/Tree.tokens.js +2 -1
  155. package/styled-components/cjs/examples/components/Calendar/CalendarBase.config.js +8 -4
  156. package/styled-components/cjs/examples/components/Calendar/CalendarDouble.config.js +8 -4
  157. package/styled-components/cjs/examples/components/Chip/Chip.config.js +0 -21
  158. package/styled-components/cjs/examples/components/Combobox/Combobox.js +15 -0
  159. package/styled-components/cjs/examples/components/DatePicker/DatePicker.config.js +8 -4
  160. package/styled-components/es/components/Autocomplete/Autocomplete.js +3 -1
  161. package/styled-components/es/components/Autocomplete/FloatingPopover.js +31 -4
  162. package/styled-components/es/components/Calendar/Calendar.tokens.js +1 -0
  163. package/styled-components/es/components/Calendar/ui/CalendarHeader/CalendarHeader.js +4 -4
  164. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +12 -30
  165. package/styled-components/es/components/Combobox/ComboboxNew/utils/getTextValue.js +16 -0
  166. package/styled-components/es/components/Combobox/ComboboxNew/utils/index.js +1 -0
  167. package/styled-components/es/components/DatePicker/DatePicker.tokens.js +1 -0
  168. package/styled-components/es/components/DatePicker/DatePickerBase.styles.js +3 -3
  169. package/styled-components/es/components/Popup/Popup.js +6 -63
  170. package/styled-components/es/components/Popup/ui/Draggable/Draggable.js +19 -0
  171. package/styled-components/es/components/Popup/ui/Resizable/Resizable.js +63 -0
  172. package/styled-components/es/components/Popup/ui/index.js +2 -0
  173. package/styled-components/es/components/Tooltip/Tooltip.js +19 -41
  174. package/styled-components/es/components/Tooltip/hooks/index.js +1 -0
  175. package/styled-components/es/components/Tooltip/hooks/useDelayedTooltip.js +83 -0
  176. package/styled-components/es/components/Tree/Tree.js +7 -2
  177. package/styled-components/es/components/Tree/Tree.styles.js +13 -10
  178. package/styled-components/es/components/Tree/Tree.tokens.js +2 -1
  179. package/styled-components/es/examples/components/Calendar/CalendarBase.config.js +8 -4
  180. package/styled-components/es/examples/components/Calendar/CalendarDouble.config.js +8 -4
  181. package/styled-components/es/examples/components/Chip/Chip.config.js +0 -21
  182. package/styled-components/es/examples/components/Combobox/Combobox.js +0 -7
  183. package/styled-components/es/examples/components/DatePicker/DatePicker.config.js +8 -4
  184. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  185. package/types/components/Autocomplete/Autocomplete.types.d.ts +6 -0
  186. package/types/components/Autocomplete/Autocomplete.types.d.ts.map +1 -1
  187. package/types/components/Calendar/Calendar.tokens.d.ts +1 -0
  188. package/types/components/Calendar/Calendar.tokens.d.ts.map +1 -1
  189. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  190. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +1 -1
  191. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  192. package/types/components/Combobox/ComboboxNew/utils/getTextValue.d.ts +4 -0
  193. package/types/components/Combobox/ComboboxNew/utils/getTextValue.d.ts.map +1 -0
  194. package/types/components/Combobox/ComboboxNew/utils/index.d.ts +1 -0
  195. package/types/components/Combobox/ComboboxNew/utils/index.d.ts.map +1 -1
  196. package/types/components/DatePicker/DatePicker.tokens.d.ts +1 -0
  197. package/types/components/DatePicker/DatePicker.tokens.d.ts.map +1 -1
  198. package/types/components/DatePicker/DatePickerBase.styles.d.ts.map +1 -1
  199. package/types/components/Popup/Popup.d.ts.map +1 -1
  200. package/types/components/Popup/ui/Draggable/Draggable.d.ts +6 -0
  201. package/types/components/Popup/ui/Draggable/Draggable.d.ts.map +1 -0
  202. package/types/components/Popup/ui/Resizable/Resizable.d.ts +7 -0
  203. package/types/components/Popup/ui/Resizable/Resizable.d.ts.map +1 -0
  204. package/types/components/Popup/ui/index.d.ts +3 -0
  205. package/types/components/Popup/ui/index.d.ts.map +1 -0
  206. package/types/components/Tooltip/Tooltip.d.ts.map +1 -1
  207. package/types/components/Tooltip/Tooltip.types.d.ts +31 -20
  208. package/types/components/Tooltip/Tooltip.types.d.ts.map +1 -1
  209. package/types/components/Tooltip/hooks/index.d.ts +2 -0
  210. package/types/components/Tooltip/hooks/index.d.ts.map +1 -0
  211. package/types/components/Tooltip/hooks/useDelayedTooltip.d.ts +7 -0
  212. package/types/components/Tooltip/hooks/useDelayedTooltip.d.ts.map +1 -0
  213. package/types/components/Tree/Tree.d.ts.map +1 -1
  214. package/types/components/Tree/Tree.styles.d.ts.map +1 -1
  215. package/types/components/Tree/Tree.tokens.d.ts +1 -0
  216. package/types/components/Tree/Tree.tokens.d.ts.map +1 -1
  217. package/types/components/Tree/Tree.types.d.ts +11 -4
  218. package/types/components/Tree/Tree.types.d.ts.map +1 -1
  219. package/types/examples/components/Autocomplete/Autocomplete.d.ts +8 -0
  220. package/types/examples/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  221. package/types/examples/components/Calendar/CalendarBase.config.d.ts.map +1 -1
  222. package/types/examples/components/Calendar/CalendarDouble.config.d.ts.map +1 -1
  223. package/types/examples/components/Chip/Chip.config.d.ts +0 -1
  224. package/types/examples/components/Chip/Chip.config.d.ts.map +1 -1
  225. package/types/examples/components/Chip/Chip.d.ts +0 -1
  226. package/types/examples/components/Chip/Chip.d.ts.map +1 -1
  227. package/types/examples/components/Combobox/Combobox.d.ts.map +1 -1
  228. package/types/examples/components/DatePicker/DatePicker.config.d.ts.map +1 -1
  229. package/cjs/components/Tree/Tree.styles_1w91oy6.css +0 -7
  230. package/es/components/Tree/Tree.styles_1w91oy6.css +0 -7
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "Draggable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return Draggable;
9
+ }
10
+ });
11
+ var _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
12
+ var _reactdraggable = /*#__PURE__*/ _interop_require_default(require("react-draggable"));
13
+ var _Popuptokens = require("../../Popup.tokens");
14
+ function _interop_require_default(obj) {
15
+ return obj && obj.__esModule ? obj : {
16
+ default: obj
17
+ };
18
+ }
19
+ function _getRequireWildcardCache(nodeInterop) {
20
+ if (typeof WeakMap !== "function") return null;
21
+ var cacheBabelInterop = new WeakMap();
22
+ var cacheNodeInterop = new WeakMap();
23
+ return (_getRequireWildcardCache = function(nodeInterop) {
24
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
25
+ })(nodeInterop);
26
+ }
27
+ function _interop_require_wildcard(obj, nodeInterop) {
28
+ if (!nodeInterop && obj && obj.__esModule) {
29
+ return obj;
30
+ }
31
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
32
+ return {
33
+ default: obj
34
+ };
35
+ }
36
+ var cache = _getRequireWildcardCache(nodeInterop);
37
+ if (cache && cache.has(obj)) {
38
+ return cache.get(obj);
39
+ }
40
+ var newObj = {
41
+ __proto__: null
42
+ };
43
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
44
+ for(var key in obj){
45
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
46
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
47
+ if (desc && (desc.get || desc.set)) {
48
+ Object.defineProperty(newObj, key, desc);
49
+ } else {
50
+ newObj[key] = obj[key];
51
+ }
52
+ }
53
+ }
54
+ newObj.default = obj;
55
+ if (cache) {
56
+ cache.set(obj, newObj);
57
+ }
58
+ return newObj;
59
+ }
60
+ var Draggable = function(param) {
61
+ var children = param.children, draggable = param.draggable;
62
+ var nodeRef = (0, _react.useRef)(null);
63
+ if (!draggable) {
64
+ return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, children);
65
+ }
66
+ return /*#__PURE__*/ _react.default.createElement(_reactdraggable.default, {
67
+ nodeRef: nodeRef,
68
+ defaultClassName: draggable ? _Popuptokens.classes.draggablePopupWrapper : undefined,
69
+ defaultClassNameDragging: draggable ? _Popuptokens.classes.draggingPopupWrapper : undefined,
70
+ disabled: !draggable,
71
+ cancel: ".".concat(_Popuptokens.classes.resizableHandleWrapper)
72
+ }, /*#__PURE__*/ _react.default.createElement("div", {
73
+ ref: nodeRef
74
+ }, children));
75
+ };
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "Resizable", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return Resizable;
9
+ }
10
+ });
11
+ var _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
12
+ var _reresizable = require("re-resizable");
13
+ var _Popuptokens = require("../../Popup.tokens");
14
+ var _utils = require("../../utils");
15
+ var _Popupstyles = require("../../Popup.styles");
16
+ function _getRequireWildcardCache(nodeInterop) {
17
+ if (typeof WeakMap !== "function") return null;
18
+ var cacheBabelInterop = new WeakMap();
19
+ var cacheNodeInterop = new WeakMap();
20
+ return (_getRequireWildcardCache = function(nodeInterop) {
21
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
22
+ })(nodeInterop);
23
+ }
24
+ function _interop_require_wildcard(obj, nodeInterop) {
25
+ if (!nodeInterop && obj && obj.__esModule) {
26
+ return obj;
27
+ }
28
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
29
+ return {
30
+ default: obj
31
+ };
32
+ }
33
+ var cache = _getRequireWildcardCache(nodeInterop);
34
+ if (cache && cache.has(obj)) {
35
+ return cache.get(obj);
36
+ }
37
+ var newObj = {
38
+ __proto__: null
39
+ };
40
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
41
+ for(var key in obj){
42
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
43
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
44
+ if (desc && (desc.get || desc.set)) {
45
+ Object.defineProperty(newObj, key, desc);
46
+ } else {
47
+ newObj[key] = obj[key];
48
+ }
49
+ }
50
+ }
51
+ newObj.default = obj;
52
+ if (cache) {
53
+ cache.set(obj, newObj);
54
+ }
55
+ return newObj;
56
+ }
57
+ var Resizable = function(param) {
58
+ var children = param.children, outerResizable = param.resizable, placement = param.placement;
59
+ var _resizable_hiddenIcons, _resizable_icons, _resizable_hiddenIcons1, _resizable_icons1, _resizable_hiddenIcons2, _resizable_icons2, _resizable_hiddenIcons3, _resizable_icons3;
60
+ var resizableContainer = (0, _react.useRef)(null);
61
+ var resizable = typeof outerResizable === 'boolean' ? {
62
+ disabled: !outerResizable
63
+ } : outerResizable;
64
+ var handleResizeStart = function() {
65
+ if ((resizableContainer === null || resizableContainer === void 0 ? void 0 : resizableContainer.current) && resizableContainer.current.resizable) {
66
+ resizableContainer.current.resizable.classList.toggle(_Popuptokens.classes.resizableContainerNoSelect);
67
+ }
68
+ };
69
+ var handleResizeStop = function() {
70
+ if ((resizableContainer === null || resizableContainer === void 0 ? void 0 : resizableContainer.current) && resizableContainer.current.resizable) {
71
+ resizableContainer.current.resizable.classList.toggle(_Popuptokens.classes.resizableContainerNoSelect);
72
+ }
73
+ };
74
+ if (!resizable || resizable.disabled) {
75
+ return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, children);
76
+ }
77
+ return /*#__PURE__*/ _react.default.createElement(_reresizable.Resizable, {
78
+ ref: resizableContainer,
79
+ enable: resizable && !resizable.disabled ? (0, _utils.getResizeDirections)(resizable.directions) : false,
80
+ resizeRatio: (0, _utils.getRatioBasedOnPlacement)(placement),
81
+ defaultSize: resizable === null || resizable === void 0 ? void 0 : resizable.defaultSize,
82
+ minWidth: resizable === null || resizable === void 0 ? void 0 : resizable.minWidth,
83
+ minHeight: resizable === null || resizable === void 0 ? void 0 : resizable.minHeight,
84
+ maxWidth: resizable === null || resizable === void 0 ? void 0 : resizable.maxWidth,
85
+ maxHeight: resizable === null || resizable === void 0 ? void 0 : resizable.maxHeight,
86
+ onResizeStart: handleResizeStart,
87
+ onResizeStop: handleResizeStop,
88
+ handleComponent: {
89
+ topRight: (resizable === null || resizable === void 0 ? void 0 : (_resizable_hiddenIcons = resizable.hiddenIcons) === null || _resizable_hiddenIcons === void 0 ? void 0 : _resizable_hiddenIcons.includes('top-right')) ? undefined : /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, (resizable === null || resizable === void 0 ? void 0 : (_resizable_icons = resizable.icons) === null || _resizable_icons === void 0 ? void 0 : _resizable_icons.topRight) || /*#__PURE__*/ _react.default.createElement(_Popupstyles.IconResizeDiagonalStyled, {
90
+ className: _Popuptokens.classes.resizableTopRightIcon,
91
+ color: "inherit",
92
+ size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
93
+ })),
94
+ bottomRight: (resizable === null || resizable === void 0 ? void 0 : (_resizable_hiddenIcons1 = resizable.hiddenIcons) === null || _resizable_hiddenIcons1 === void 0 ? void 0 : _resizable_hiddenIcons1.includes('bottom-right')) ? undefined : /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, (resizable === null || resizable === void 0 ? void 0 : (_resizable_icons1 = resizable.icons) === null || _resizable_icons1 === void 0 ? void 0 : _resizable_icons1.bottomRight) || /*#__PURE__*/ _react.default.createElement(_Popupstyles.IconResizeDiagonalStyled, {
95
+ className: _Popuptokens.classes.resizableBottomRightIcon,
96
+ color: "inherit",
97
+ size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
98
+ })),
99
+ bottomLeft: (resizable === null || resizable === void 0 ? void 0 : (_resizable_hiddenIcons2 = resizable.hiddenIcons) === null || _resizable_hiddenIcons2 === void 0 ? void 0 : _resizable_hiddenIcons2.includes('bottom-left')) ? undefined : /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, (resizable === null || resizable === void 0 ? void 0 : (_resizable_icons2 = resizable.icons) === null || _resizable_icons2 === void 0 ? void 0 : _resizable_icons2.bottomLeft) || /*#__PURE__*/ _react.default.createElement(_Popupstyles.IconResizeDiagonalStyled, {
100
+ className: _Popuptokens.classes.resizableBottomLeftIcon,
101
+ color: "inherit",
102
+ size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
103
+ })),
104
+ topLeft: (resizable === null || resizable === void 0 ? void 0 : (_resizable_hiddenIcons3 = resizable.hiddenIcons) === null || _resizable_hiddenIcons3 === void 0 ? void 0 : _resizable_hiddenIcons3.includes('top-left')) ? undefined : /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, (resizable === null || resizable === void 0 ? void 0 : (_resizable_icons3 = resizable.icons) === null || _resizable_icons3 === void 0 ? void 0 : _resizable_icons3.topLeft) || /*#__PURE__*/ _react.default.createElement(_Popupstyles.IconResizeDiagonalStyled, {
105
+ className: _Popuptokens.classes.resizableTopLeftIcon,
106
+ color: "inherit",
107
+ size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
108
+ }))
109
+ },
110
+ className: _Popuptokens.classes.resizableContainer,
111
+ handleStyles: (0, _utils.getHandleStyles)(),
112
+ handleWrapperClass: _Popuptokens.classes.resizableHandleWrapper
113
+ }, children);
114
+ };
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get Draggable () {
13
+ return _Draggable.Draggable;
14
+ },
15
+ get Resizable () {
16
+ return _Resizable.Resizable;
17
+ }
18
+ });
19
+ var _Draggable = require("./Draggable/Draggable");
20
+ var _Resizable = require("./Resizable/Resizable");
@@ -19,8 +19,9 @@ _export(exports, {
19
19
  var _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
20
20
  var _styled = /*#__PURE__*/ _interop_require_default(require("@emotion/styled"));
21
21
  var _engines = require("../../engines");
22
- var _Popover = require("../Popover");
23
22
  var _utils = require("../../utils");
23
+ var _Popover = require("../Popover");
24
+ var _hooks = require("./hooks");
24
25
  var _Tooltipstyles = require("./Tooltip.styles");
25
26
  var _base = require("./variations/_view/base");
26
27
  var _base1 = require("./variations/_size/base");
@@ -178,15 +179,15 @@ var getStringValue = function(value) {
178
179
  };
179
180
  var Popover = (0, _engines.component)(_Popover.popoverConfig);
180
181
  var StyledPopover = /*#__PURE__*/ (0, _styled.default)(Popover, {
181
- target: "e1ijfgap0",
182
+ target: "ehyx5h60",
182
183
  label: "StyledPopover"
183
- })(_Popover.popoverTokens.arrowMaskWidth, ":var(", _Tooltiptokens.tokens.arrowMaskWidth, ");", _Popover.popoverTokens.arrowMaskHeight, ":var(", _Tooltiptokens.tokens.arrowMaskHeight, ");", _Popover.popoverTokens.arrowMaskImage, ":var(", _Tooltiptokens.tokens.arrowMaskImage, ");", _Popover.popoverTokens.arrowBackground, ":var(", _Tooltiptokens.tokens.arrowBackground, ");", _Popover.popoverTokens.arrowHeight, ":var(", _Tooltiptokens.tokens.arrowHeight, ");", _Popover.popoverTokens.arrowEdgeMargin, ":var(", _Tooltiptokens.tokens.arrowEdgeMargin, ");", "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjLWVtb3Rpb24vY29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pcFByb3BzPihcbiAgICAgICAgKFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGlkLFxuICAgICAgICAgICAgICAgIHRleHQsXG4gICAgICAgICAgICAgICAgb3BlbmVkLFxuICAgICAgICAgICAgICAgIGlzVmlzaWJsZSxcbiAgICAgICAgICAgICAgICBpc09wZW4sXG4gICAgICAgICAgICAgICAgaGFzQXJyb3cgPSB0cnVlLFxuICAgICAgICAgICAgICAgIGFycm93LFxuICAgICAgICAgICAgICAgIGFuaW1hdGVkLFxuICAgICAgICAgICAgICAgIG9mZnNldCA9IFszLCA4XSxcbiAgICAgICAgICAgICAgICBtaW5XaWR0aCxcbiAgICAgICAgICAgICAgICBtYXhXaWR0aCxcbiAgICAgICAgICAgICAgICBwbGFjZW1lbnQgPSAnYm90dG9tJyxcbiAgICAgICAgICAgICAgICB1c2VQb3J0YWwgPSB0cnVlLFxuICAgICAgICAgICAgICAgIHRhcmdldCxcbiAgICAgICAgICAgICAgICBjaGlsZHJlbixcbiAgICAgICAgICAgICAgICBvbkRpc21pc3MsXG4gICAgICAgICAgICAgICAgdmlldyxcbiAgICAgICAgICAgICAgICBzaXplLFxuICAgICAgICAgICAgICAgIGNvbnRlbnRMZWZ0LFxuICAgICAgICAgICAgICAgIHpJbmRleCA9ICc5MjAwJyxcbiAgICAgICAgICAgICAgICBjbGFzc05hbWUsXG4gICAgICAgICAgICAgICAgc3R5bGUsXG4gICAgICAgICAgICAgICAgaG92ZXJUaW1lb3V0ID0gMzAwLFxuICAgICAgICAgICAgICAgIHRyaWdnZXIsXG4gICAgICAgICAgICAgICAgLi4ucmVzdFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG91dGVyUmVmLFxuICAgICAgICApID0+IHtcbiAgICAgICAgICAgIGNvbnN0IFtyZWYsIHNldFJlZl0gPSB1c2VTdGF0ZTxIVE1MRGl2RWxlbWVudCB8IG51bGw+KG51bGwpO1xuICAgICAgICAgICAgY29uc3QgdGltZW91dFJlZiA9IHVzZVJlZjxudW1iZXIgfCB1bmRlZmluZWQ+KCk7XG4gICAgICAgICAgICBjb25zdCBbaXNPcGVuZWQsIHNldElzT3BlbmVkXSA9IHVzZVN0YXRlKGZhbHNlKTtcbiAgICAgICAgICAgIGNvbnN0IFtpc0hvdmVyZWQsIHNldElzSG92ZXJlZF0gPSB1c2VTdGF0ZShmYWxzZSk7XG5cbiAgICAgICAgICAgIC8vIFRPRE8g0YPQsdGA0LDRgtGMINC/0L7RgdC70LUg0L7RgtC60LDQt9CwINC+0YIg0YHRgtCw0YDQvtCz0L4gQVBJXG4gICAgICAgICAgICBjb25zdCBpbm5lcklzT3BlbiA9IEJvb2xlYW4oaXNWaXNpYmxlIHx8IGlzT3BlbiB8fCBvcGVuZWQpO1xuICAgICAgICAgICAgY29uc3QgaW5uZXJIYXNBcnJvdyA9IGFycm93IHx8IGhhc0Fycm93O1xuICAgICAgICAgICAgY29uc3Qgc2hvd1Rvb2x0aXAgPSBpbm5lcklzT3BlbiAmJiBCb29sZWFuKHRleHQpO1xuXG4gICAgICAgICAgICB1c2VFZmZlY3QoKCkgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnN0IG9uS2V5RG93biA9IChldmVudDogS2V5Ym9hcmRFdmVudCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAoZXZlbnQua2V5Q29kZSA9PT0gRVNDQVBFX0tFWUNPREUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG9uRGlzbWlzcz8uKCk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICAgICAgd2luZG93LmFkZEV2ZW50TGlzdGVuZXIoJ2tleWRvd24nLCBvbktleURvd24pO1xuXG4gICAgICAgICAgICAgICAgcmV0dXJuICgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgd2luZG93LnJlbW92ZUV2ZW50TGlzdGVuZXIoJ2tleWRvd24nLCBvbktleURvd24pO1xuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICB9LCBbXSk7XG5cbiAgICAgICAgICAgIGNvbnN0IG9uTW91c2VFbnRlciA9ICgpID0+IHtcbiAgICAgICAgICAgICAgICBjbGVhclRpbWVvdXQodGltZW91dFJlZi5jdXJyZW50KTtcbiAgICAgICAgICAgICAgICBzZXRJc0hvdmVyZWQodHJ1ZSk7XG4gICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICBjb25zdCBvbk1vdXNlTGVhdmUgPSAoKSA9PiB7XG4gICAgICAgICAgICAgICAgdGltZW91dFJlZi5jdXJyZW50ID0gc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHNldElzSG92ZXJlZChmYWxzZSk7XG4gICAgICAgICAgICAgICAgfSwgaG92ZXJUaW1lb3V0KTtcbiAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgIHVzZUVmZmVjdCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgcmV0dXJuICgpID0+IGNsZWFyVGltZW91dCh0aW1lb3V0UmVmLmN1cnJlbnQpO1xuICAgICAgICAgICAgfSwgW3RyaWdnZXJdKTtcblxuICAgICAgICAgICAgY29uc3Qgb25Ub2dnbGUgPSAoaXNPcGVuOiBib29sZWFuKSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKHRyaWdnZXIgPT09ICdob3ZlcicpIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGlzT3Blbikge1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xlYXJUaW1lb3V0KHRpbWVvdXRSZWYuY3VycmVudCk7XG4gICAgICAgICAgICAgICAgICAgICAgICBzZXRJc09wZW5lZCh0cnVlKTtcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRpbWVvdXRSZWYuY3VycmVudCA9IHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNldElzT3BlbmVkKGZhbHNlKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sIGhvdmVyVGltZW91dCk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBzZXRJc09wZW5lZChpc09wZW4pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICAgICAgPFN0eWxlZFBvcG92ZXJcbiAgICAgICAgICAgICAgICAgICAgb3BlbmVkPXtzaG93VG9vbHRpcCB8fCBpc09wZW5lZCB8fCBpc0hvdmVyZWR9XG4gICAgICAgICAgICAgICAgICAgIHBsYWNlbWVudD17cGxhY2VtZW50fVxuICAgICAgICAgICAgICAgICAgICBvZmZzZXQ9e29mZnNldH1cbiAgICAgICAgICAgICAgICAgICAgekluZGV4PXt6SW5kZXh9XG4gICAgICAgICAgICAgICAgICAgIHRhcmdldD17dGFyZ2V0IHx8IGNoaWxkcmVufVxuICAgICAgICAgICAgICAgICAgICB1c2VQb3J0YWw9e3VzZVBvcnRhbH1cbiAgICAgICAgICAgICAgICAgICAgaGFzQXJyb3c9e2lubmVySGFzQXJyb3d9XG4gICAgICAgICAgICAgICAgICAgIGFyaWEtaGlkZGVuPXshaW5uZXJJc09wZW59XG4gICAgICAgICAgICAgICAgICAgIGFyaWEtbGl2ZT1cInBvbGl0ZVwiXG4gICAgICAgICAgICAgICAgICAgIHJvbGU9XCJ0b29sdGlwXCJcbiAgICAgICAgICAgICAgICAgICAgYW5pbWF0ZWQ9e2FuaW1hdGVkfVxuICAgICAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2N4KHJlZj8uY2xhc3NMaXN0LnRvU3RyaW5nKCkpfVxuICAgICAgICAgICAgICAgICAgICB7Li4uKCh0cmlnZ2VyID09PSAnaG92ZXInIHx8IHRyaWdnZXIgPT09ICdjbGljaycpICYmIHsgdHJpZ2dlciwgb25Ub2dnbGUgfSl9XG4gICAgICAgICAgICAgICAgICAgIHsuLi5yZXN0fVxuICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgPFJvb3RcbiAgICAgICAgICAgICAgICAgICAgICAgIHZpZXc9e3ZpZXd9XG4gICAgICAgICAgICAgICAgICAgICAgICBzaXplPXtzaXplfVxuICAgICAgICAgICAgICAgICAgICAgICAgcmVmPXtzZXRSZWZ9XG4gICAgICAgICAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2NsYXNzTmFtZX1cbiAgICAgICAgICAgICAgICAgICAgICAgIHN0eWxlPXtzdHlsZX1cbiAgICAgICAgICAgICAgICAgICAgICAgIHsuLi4odHJpZ2dlciA9PT0gJ2hvdmVyJyAmJiB7IG9uTW91c2VFbnRlciwgb25Nb3VzZUxlYXZlIH0pfVxuICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICA8VG9vbHRpcFJvb3RcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZWY9e291dGVyUmVmfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkPXtpZH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBtYXhXaWR0aD17Z2V0U3RyaW5nVmFsdWUobWF4V2lkdGgpfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1pbldpZHRoPXtnZXRTdHJpbmdWYWx1ZShtaW5XaWR0aCl9XG4gICAgICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAge2NvbnRlbnRMZWZ0ICYmIDxTdHlsZWRDb250ZW50TGVmdD57Y29udGVudExlZnR9PC9TdHlsZWRDb250ZW50TGVmdD59XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAge3RleHR9XG4gICAgICAgICAgICAgICAgICAgICAgICA8L1Rvb2x0aXBSb290PlxuICAgICAgICAgICAgICAgICAgICA8L1Jvb3Q+XG4gICAgICAgICAgICAgICAgPC9TdHlsZWRQb3BvdmVyPlxuICAgICAgICAgICAgKTtcbiAgICAgICAgfSxcbiAgICApO1xuXG5leHBvcnQgY29uc3QgdG9vbHRpcENvbmZpZyA9IHtcbiAgICBuYW1lOiAnVG9vbHRpcCcsXG4gICAgdGFnOiAnZGl2JyxcbiAgICBsYXlvdXQ6IHRvb2x0aXBSb290LFxuICAgIGJhc2U6ICcnLFxuICAgIHZhcmlhdGlvbnM6IHtcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgY3NzOiB2aWV3Q1NTLFxuICAgICAgICB9LFxuICAgICAgICBzaXplOiB7XG4gICAgICAgICAgICBjc3M6IHNpemVDU1MsXG4gICAgICAgIH0sXG4gICAgfSxcbiAgICBkZWZhdWx0czoge1xuICAgICAgICB2aWV3OiAnZGVmYXVsdCcsXG4gICAgICAgIHNpemU6ICdtJyxcbiAgICB9LFxufTtcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFxQnNCIn0= */");
184
+ })(_Popover.popoverTokens.arrowMaskWidth, ":var(", _Tooltiptokens.tokens.arrowMaskWidth, ");", _Popover.popoverTokens.arrowMaskHeight, ":var(", _Tooltiptokens.tokens.arrowMaskHeight, ");", _Popover.popoverTokens.arrowMaskImage, ":var(", _Tooltiptokens.tokens.arrowMaskImage, ");", _Popover.popoverTokens.arrowBackground, ":var(", _Tooltiptokens.tokens.arrowBackground, ");", _Popover.popoverTokens.arrowHeight, ":var(", _Tooltiptokens.tokens.arrowHeight, ");", _Popover.popoverTokens.arrowEdgeMargin, ":var(", _Tooltiptokens.tokens.arrowEdgeMargin, ");", "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3JjLWVtb3Rpb24vY29tcG9uZW50cy9Ub29sdGlwL1Rvb2x0aXAudHN4Iiwic291cmNlcyI6WyJzcmMtZW1vdGlvbi9jb21wb25lbnRzL1Rvb2x0aXAvVG9vbHRpcC50c3giXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IHVzZUVmZmV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xcbiAgICAgICAgICAgICAgICBpc1Zpc2libGUsXG4gICAgICAgICAgICAgICAgaXNPcGVuLFxuICAgICAgICAgICAgICAgIGhhc0Fycm93ID0gdHJ1ZSxcbiAgICAgICAgICAgICAgICBhcnJvdyxcbiAgICAgICAgICAgICAgICBhbmltYXRlZCxcbiAgICAgICAgICAgICAgICBvZmZzZXQgPSBbMywgOF0sXG4gICAgICAgICAgICAgICAgbWluV2lkdGgsXG4gICAgICAgICAgICAgICAgbWF4V2lkdGgsXG4gICAgICAgICAgICAgICAgcGxhY2VtZW50ID0gJ2JvdHRvbScsXG4gICAgICAgICAgICAgICAgdXNlUG9ydGFsID0gdHJ1ZSxcbiAgICAgICAgICAgICAgICB0YXJnZXQsXG4gICAgICAgICAgICAgICAgY2hpbGRyZW4sXG4gICAgICAgICAgICAgICAgb25EaXNtaXNzLFxuICAgICAgICAgICAgICAgIHZpZXcsXG4gICAgICAgICAgICAgICAgc2l6ZSxcbiAgICAgICAgICAgICAgICBjb250ZW50TGVmdCxcbiAgICAgICAgICAgICAgICB6SW5kZXggPSAnOTIwMCcsXG4gICAgICAgICAgICAgICAgY2xhc3NOYW1lLFxuICAgICAgICAgICAgICAgIHN0eWxlLFxuICAgICAgICAgICAgICAgIGhvdmVyVGltZW91dCxcbiAgICAgICAgICAgICAgICBtb3VzZUVudGVyRGVsYXkgPSAwLFxuICAgICAgICAgICAgICAgIG1vdXNlTGVhdmVEZWxheSxcbiAgICAgICAgICAgICAgICB0cmlnZ2VyLFxuICAgICAgICAgICAgICAgIC4uLnJlc3RcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBvdXRlclJlZixcbiAgICAgICAgKSA9PiB7XG4gICAgICAgICAgICBjb25zdCBbcmVmLCBzZXRSZWZdID0gdXNlU3RhdGU8SFRNTERpdkVsZW1lbnQgfCBudWxsPihudWxsKTtcblxuICAgICAgICAgICAgbW91c2VMZWF2ZURlbGF5ID0gbW91c2VMZWF2ZURlbGF5ID8/IGhvdmVyVGltZW91dCA/PyAzMDA7XG5cbiAgICAgICAgICAgIGNvbnN0IHsgb3BlbmVkOiBvcGVuZWRTdGF0ZSwgc2hvd1Rvb2x0aXAsIGhpZGVUb29sdGlwLCBzZXRPcGVuZWQgfSA9IHVzZURlbGF5ZWRUb29sdGlwKFxuICAgICAgICAgICAgICAgIG1vdXNlRW50ZXJEZWxheSxcbiAgICAgICAgICAgICAgICBtb3VzZUxlYXZlRGVsYXksXG4gICAgICAgICAgICApO1xuXG4gICAgICAgICAgICBjb25zdCBpc1Rvb2x0aXBPcGVuZWQgPSBCb29sZWFuKHRleHQpICYmIChpc1Zpc2libGUgfHwgaXNPcGVuIHx8IG9wZW5lZCB8fCBvcGVuZWRTdGF0ZSk7XG5cbiAgICAgICAgICAgIHVzZUVmZmVjdCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgY29uc3Qgb25LZXlEb3duID0gKGV2ZW50OiBLZXlib2FyZEV2ZW50KSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGlmIChldmVudC5rZXlDb2RlID09PSBFU0NBUEVfS0VZQ09ERSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgb25EaXNtaXNzPy4oKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH07XG5cbiAgICAgICAgICAgICAgICB3aW5kb3cuYWRkRXZlbnRMaXN0ZW5lcigna2V5ZG93bicsIG9uS2V5RG93bik7XG5cbiAgICAgICAgICAgICAgICByZXR1cm4gKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICB3aW5kb3cucmVtb3ZlRXZlbnRMaXN0ZW5lcigna2V5ZG93bicsIG9uS2V5RG93bik7XG4gICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgIH0sIFtdKTtcblxuICAgICAgICAgICAgY29uc3Qgb25Ub2dnbGUgPSAoaXNPcGVuOiBib29sZWFuKSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKHRyaWdnZXIgPT09ICdob3ZlcicpIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGlzT3Blbikge1xuICAgICAgICAgICAgICAgICAgICAgICAgc2hvd1Rvb2x0aXAoKTtcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGhpZGVUb29sdGlwKCk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBzZXRPcGVuZWQoaXNPcGVuKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9O1xuXG4gICAgICAgICAgICByZXR1cm4gKFxuICAgICAgICAgICAgICAgIDxTdHlsZWRQb3BvdmVyXG4gICAgICAgICAgICAgICAgICAgIG9wZW5lZD17aXNUb29sdGlwT3BlbmVkfVxuICAgICAgICAgICAgICAgICAgICBwbGFjZW1lbnQ9e3BsYWNlbWVudH1cbiAgICAgICAgICAgICAgICAgICAgb2Zmc2V0PXtvZmZzZXR9XG4gICAgICAgICAgICAgICAgICAgIHpJbmRleD17ekluZGV4fVxuICAgICAgICAgICAgICAgICAgICB0YXJnZXQ9e3RhcmdldCB8fCBjaGlsZHJlbn1cbiAgICAgICAgICAgICAgICAgICAgdXNlUG9ydGFsPXt1c2VQb3J0YWx9XG4gICAgICAgICAgICAgICAgICAgIGhhc0Fycm93PXthcnJvdyB8fCBoYXNBcnJvd31cbiAgICAgICAgICAgICAgICAgICAgYXJpYS1oaWRkZW49eyFpc1Rvb2x0aXBPcGVuZWR9XG4gICAgICAgICAgICAgICAgICAgIGFyaWEtbGl2ZT1cInBvbGl0ZVwiXG4gICAgICAgICAgICAgICAgICAgIHJvbGU9XCJ0b29sdGlwXCJcbiAgICAgICAgICAgICAgICAgICAgYW5pbWF0ZWQ9e2FuaW1hdGVkfVxuICAgICAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2N4KHJlZj8uY2xhc3NMaXN0LnRvU3RyaW5nKCkpfVxuICAgICAgICAgICAgICAgICAgICB7Li4uKCh0cmlnZ2VyID09PSAnaG92ZXInIHx8IHRyaWdnZXIgPT09ICdjbGljaycpICYmIHsgdHJpZ2dlciwgb25Ub2dnbGUgfSl9XG4gICAgICAgICAgICAgICAgICAgIHsuLi5yZXN0fVxuICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgPFJvb3Qgdmlldz17dmlld30gc2l6ZT17c2l6ZX0gcmVmPXtzZXRSZWZ9IGNsYXNzTmFtZT17Y2xhc3NOYW1lfSBzdHlsZT17c3R5bGV9PlxuICAgICAgICAgICAgICAgICAgICAgICAgPFRvb2x0aXBSb290XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVmPXtvdXRlclJlZn1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZD17aWR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbWF4V2lkdGg9e2dldFN0cmluZ1ZhbHVlKG1heFdpZHRoKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBtaW5XaWR0aD17Z2V0U3RyaW5nVmFsdWUobWluV2lkdGgpfVxuICAgICAgICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHtjb250ZW50TGVmdCAmJiA8U3R5bGVkQ29udGVudExlZnQ+e2NvbnRlbnRMZWZ0fTwvU3R5bGVkQ29udGVudExlZnQ+fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt0ZXh0fVxuICAgICAgICAgICAgICAgICAgICAgICAgPC9Ub29sdGlwUm9vdD5cbiAgICAgICAgICAgICAgICAgICAgPC9Sb290PlxuICAgICAgICAgICAgICAgIDwvU3R5bGVkUG9wb3Zlcj5cbiAgICAgICAgICAgICk7XG4gICAgICAgIH0sXG4gICAgKTtcblxuZXhwb3J0IGNvbnN0IHRvb2x0aXBDb25maWcgPSB7XG4gICAgbmFtZTogJ1Rvb2x0aXAnLFxuICAgIHRhZzogJ2RpdicsXG4gICAgbGF5b3V0OiB0b29sdGlwUm9vdCxcbiAgICBiYXNlOiAnJyxcbiAgICB2YXJpYXRpb25zOiB7XG4gICAgICAgIHZpZXc6IHtcbiAgICAgICAgICAgIGNzczogdmlld0NTUyxcbiAgICAgICAgfSxcbiAgICAgICAgc2l6ZToge1xuICAgICAgICAgICAgY3NzOiBzaXplQ1NTLFxuICAgICAgICB9LFxuICAgIH0sXG4gICAgZGVmYXVsdHM6IHtcbiAgICAgICAgdmlldzogJ2RlZmF1bHQnLFxuICAgICAgICBzaXplOiAnbScsXG4gICAgfSxcbn07XG4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0JzQiJ9 */");
184
185
  var tooltipRoot = function(Root) {
185
186
  return /*#__PURE__*/ (0, _react.forwardRef)(function(_param, outerRef) {
186
187
  var id = _param.id, text = _param.text, opened = _param.opened, isVisible = _param.isVisible, isOpen = _param.isOpen, _param_hasArrow = _param.hasArrow, hasArrow = _param_hasArrow === void 0 ? true : _param_hasArrow, arrow = _param.arrow, animated = _param.animated, _param_offset = _param.offset, offset = _param_offset === void 0 ? [
187
188
  3,
188
189
  8
189
- ] : _param_offset, minWidth = _param.minWidth, maxWidth = _param.maxWidth, _param_placement = _param.placement, placement = _param_placement === void 0 ? 'bottom' : _param_placement, _param_usePortal = _param.usePortal, usePortal = _param_usePortal === void 0 ? true : _param_usePortal, target = _param.target, children = _param.children, onDismiss = _param.onDismiss, view = _param.view, size = _param.size, contentLeft = _param.contentLeft, _param_zIndex = _param.zIndex, zIndex = _param_zIndex === void 0 ? '9200' : _param_zIndex, className = _param.className, style = _param.style, _param_hoverTimeout = _param.hoverTimeout, hoverTimeout = _param_hoverTimeout === void 0 ? 300 : _param_hoverTimeout, trigger = _param.trigger, rest = _object_without_properties(_param, [
190
+ ] : _param_offset, minWidth = _param.minWidth, maxWidth = _param.maxWidth, _param_placement = _param.placement, placement = _param_placement === void 0 ? 'bottom' : _param_placement, _param_usePortal = _param.usePortal, usePortal = _param_usePortal === void 0 ? true : _param_usePortal, target = _param.target, children = _param.children, onDismiss = _param.onDismiss, view = _param.view, size = _param.size, contentLeft = _param.contentLeft, _param_zIndex = _param.zIndex, zIndex = _param_zIndex === void 0 ? '9200' : _param_zIndex, className = _param.className, style = _param.style, hoverTimeout = _param.hoverTimeout, _param_mouseEnterDelay = _param.mouseEnterDelay, mouseEnterDelay = _param_mouseEnterDelay === void 0 ? 0 : _param_mouseEnterDelay, mouseLeaveDelay = _param.mouseLeaveDelay, trigger = _param.trigger, rest = _object_without_properties(_param, [
190
191
  "id",
191
192
  "text",
192
193
  "opened",
@@ -210,16 +211,15 @@ var tooltipRoot = function(Root) {
210
211
  "className",
211
212
  "style",
212
213
  "hoverTimeout",
214
+ "mouseEnterDelay",
215
+ "mouseLeaveDelay",
213
216
  "trigger"
214
217
  ]);
215
218
  var _useState = _sliced_to_array((0, _react.useState)(null), 2), ref = _useState[0], setRef = _useState[1];
216
- var timeoutRef = (0, _react.useRef)();
217
- var _useState1 = _sliced_to_array((0, _react.useState)(false), 2), isOpened = _useState1[0], setIsOpened = _useState1[1];
218
- var _useState2 = _sliced_to_array((0, _react.useState)(false), 2), isHovered = _useState2[0], setIsHovered = _useState2[1];
219
- // TODO убрать после отказа от старого API
220
- var innerIsOpen = Boolean(isVisible || isOpen || opened);
221
- var innerHasArrow = arrow || hasArrow;
222
- var showTooltip = innerIsOpen && Boolean(text);
219
+ var _ref;
220
+ mouseLeaveDelay = (_ref = mouseLeaveDelay !== null && mouseLeaveDelay !== void 0 ? mouseLeaveDelay : hoverTimeout) !== null && _ref !== void 0 ? _ref : 300;
221
+ var _useDelayedTooltip = (0, _hooks.useDelayedTooltip)(mouseEnterDelay, mouseLeaveDelay), openedState = _useDelayedTooltip.opened, showTooltip = _useDelayedTooltip.showTooltip, hideTooltip = _useDelayedTooltip.hideTooltip, setOpened = _useDelayedTooltip.setOpened;
222
+ var isTooltipOpened = Boolean(text) && (isVisible || isOpen || opened || openedState);
223
223
  (0, _react.useEffect)(function() {
224
224
  var onKeyDown = function(event) {
225
225
  if (event.keyCode === ESCAPE_KEYCODE) {
@@ -231,45 +231,26 @@ var tooltipRoot = function(Root) {
231
231
  window.removeEventListener('keydown', onKeyDown);
232
232
  };
233
233
  }, []);
234
- var onMouseEnter = function() {
235
- clearTimeout(timeoutRef.current);
236
- setIsHovered(true);
237
- };
238
- var onMouseLeave = function() {
239
- timeoutRef.current = setTimeout(function() {
240
- setIsHovered(false);
241
- }, hoverTimeout);
242
- };
243
- (0, _react.useEffect)(function() {
244
- return function() {
245
- return clearTimeout(timeoutRef.current);
246
- };
247
- }, [
248
- trigger
249
- ]);
250
234
  var onToggle = function(isOpen) {
251
235
  if (trigger === 'hover') {
252
236
  if (isOpen) {
253
- clearTimeout(timeoutRef.current);
254
- setIsOpened(true);
237
+ showTooltip();
255
238
  } else {
256
- timeoutRef.current = setTimeout(function() {
257
- setIsOpened(false);
258
- }, hoverTimeout);
239
+ hideTooltip();
259
240
  }
260
241
  } else {
261
- setIsOpened(isOpen);
242
+ setOpened(isOpen);
262
243
  }
263
244
  };
264
245
  return /*#__PURE__*/ _react.default.createElement(StyledPopover, _object_spread({
265
- opened: showTooltip || isOpened || isHovered,
246
+ opened: isTooltipOpened,
266
247
  placement: placement,
267
248
  offset: offset,
268
249
  zIndex: zIndex,
269
250
  target: target || children,
270
251
  usePortal: usePortal,
271
- hasArrow: innerHasArrow,
272
- "aria-hidden": !innerIsOpen,
252
+ hasArrow: arrow || hasArrow,
253
+ "aria-hidden": !isTooltipOpened,
273
254
  "aria-live": "polite",
274
255
  role: "tooltip",
275
256
  animated: animated,
@@ -277,16 +258,13 @@ var tooltipRoot = function(Root) {
277
258
  }, (trigger === 'hover' || trigger === 'click') && {
278
259
  trigger: trigger,
279
260
  onToggle: onToggle
280
- }, rest), /*#__PURE__*/ _react.default.createElement(Root, _object_spread({
261
+ }, rest), /*#__PURE__*/ _react.default.createElement(Root, {
281
262
  view: view,
282
263
  size: size,
283
264
  ref: setRef,
284
265
  className: className,
285
266
  style: style
286
- }, trigger === 'hover' && {
287
- onMouseEnter: onMouseEnter,
288
- onMouseLeave: onMouseLeave
289
- }), /*#__PURE__*/ _react.default.createElement(_Tooltipstyles.TooltipRoot, {
267
+ }, /*#__PURE__*/ _react.default.createElement(_Tooltipstyles.TooltipRoot, {
290
268
  ref: outerRef,
291
269
  id: id,
292
270
  maxWidth: getStringValue(maxWidth),
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useDelayedTooltip", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return _useDelayedTooltip.useDelayedTooltip;
9
+ }
10
+ });
11
+ var _useDelayedTooltip = require("./useDelayedTooltip");
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "useDelayedTooltip", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return useDelayedTooltip;
9
+ }
10
+ });
11
+ var _react = require("react");
12
+ function _array_like_to_array(arr, len) {
13
+ if (len == null || len > arr.length) len = arr.length;
14
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
15
+ return arr2;
16
+ }
17
+ function _array_with_holes(arr) {
18
+ if (Array.isArray(arr)) return arr;
19
+ }
20
+ function _iterable_to_array_limit(arr, i) {
21
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
22
+ if (_i == null) return;
23
+ var _arr = [];
24
+ var _n = true;
25
+ var _d = false;
26
+ var _s, _e;
27
+ try {
28
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
29
+ _arr.push(_s.value);
30
+ if (i && _arr.length === i) break;
31
+ }
32
+ } catch (err) {
33
+ _d = true;
34
+ _e = err;
35
+ } finally{
36
+ try {
37
+ if (!_n && _i["return"] != null) _i["return"]();
38
+ } finally{
39
+ if (_d) throw _e;
40
+ }
41
+ }
42
+ return _arr;
43
+ }
44
+ function _non_iterable_rest() {
45
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
46
+ }
47
+ function _sliced_to_array(arr, i) {
48
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
49
+ }
50
+ function _unsupported_iterable_to_array(o, minLen) {
51
+ if (!o) return;
52
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
53
+ var n = Object.prototype.toString.call(o).slice(8, -1);
54
+ if (n === "Object" && o.constructor) n = o.constructor.name;
55
+ if (n === "Map" || n === "Set") return Array.from(n);
56
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
57
+ }
58
+ var useDelayedTooltip = function(openDelay, closeDelay) {
59
+ var _useState = _sliced_to_array((0, _react.useState)(false), 2), opened = _useState[0], setOpened = _useState[1];
60
+ var openTimeoutRef = (0, _react.useRef)(null);
61
+ var closeTimeoutRef = (0, _react.useRef)(null);
62
+ var clearTimeouts = function() {
63
+ if (openTimeoutRef.current) {
64
+ clearTimeout(openTimeoutRef.current);
65
+ openTimeoutRef.current = null;
66
+ }
67
+ if (closeTimeoutRef.current) {
68
+ clearTimeout(closeTimeoutRef.current);
69
+ closeTimeoutRef.current = null;
70
+ }
71
+ };
72
+ var showTooltip = function() {
73
+ clearTimeouts();
74
+ openTimeoutRef.current = setTimeout(function() {
75
+ setOpened(true);
76
+ }, openDelay);
77
+ };
78
+ var hideTooltip = function() {
79
+ clearTimeouts();
80
+ closeTimeoutRef.current = setTimeout(function() {
81
+ setOpened(false);
82
+ }, closeDelay);
83
+ };
84
+ (0, _react.useEffect)(function() {
85
+ return clearTimeouts;
86
+ }, []);
87
+ return {
88
+ opened: opened,
89
+ setOpened: setOpened,
90
+ showTooltip: showTooltip,
91
+ hideTooltip: hideTooltip
92
+ };
93
+ };
@@ -168,10 +168,14 @@ function _unsupported_iterable_to_array(o, minLen) {
168
168
  }
169
169
  var treeRoot = function(Root) {
170
170
  return /*#__PURE__*/ (0, _react.forwardRef)(function(param, ref) {
171
- var items = param.items, _param_arrowPlacement = param.arrowPlacement, arrowPlacement = _param_arrowPlacement === void 0 ? 'left' : _param_arrowPlacement, _param_virtual = param.virtual, virtual = _param_virtual === void 0 ? true : _param_virtual, height = param.height, itemHeight = param.itemHeight, size = param.size, view = param.view, _param_fullWidthItemSelection = param.fullWidthItemSelection, fullWidthItemSelection = _param_fullWidthItemSelection === void 0 ? false : _param_fullWidthItemSelection, _param_multiple = param.multiple, multiple = _param_multiple === void 0 ? false : _param_multiple, _param_defaultExpandAll = param.defaultExpandAll, defaultExpandAll = _param_defaultExpandAll === void 0 ? false : _param_defaultExpandAll, _param_autoExpandParent = param.autoExpandParent, autoExpandParent = _param_autoExpandParent === void 0 ? false : _param_autoExpandParent, _param_checkable = param.checkable, checkable = _param_checkable === void 0 ? false : _param_checkable, outerSelectedKeys = param.selectedKeys, checkedKeys = param.checkedKeys, expandedKeys = param.expandedKeys, defaultCheckedKeys = param.defaultCheckedKeys, defaultExpandedKeys = param.defaultExpandedKeys, defaultSelectedKeys = param.defaultSelectedKeys, className = param.className, onTreeSelect = param.onTreeSelect, onTreeCheck = param.onTreeCheck, onTreeExpand = param.onTreeExpand, _param_hasIcon = param.hasIcon, hasIcon = _param_hasIcon === void 0 ? false : _param_hasIcon, icon = param.icon, renderTitle = param.renderTitle;
171
+ var items = param.items, _param_arrowPlacement = param.arrowPlacement, arrowPlacement = _param_arrowPlacement === void 0 ? 'left' : _param_arrowPlacement, _param_virtual = param.virtual, virtual = _param_virtual === void 0 ? true : _param_virtual, height = param.height, itemHeight = param.itemHeight, size = param.size, view = param.view, _param_fullWidthItemSelection = param.fullWidthItemSelection, fullWidthItemSelection = _param_fullWidthItemSelection === void 0 ? false : _param_fullWidthItemSelection, _param_multiple = param.multiple, multiple = _param_multiple === void 0 ? false : _param_multiple, _param_defaultExpandAll = param.defaultExpandAll, defaultExpandAll = _param_defaultExpandAll === void 0 ? false : _param_defaultExpandAll, _param_autoExpandParent = param.autoExpandParent, autoExpandParent = _param_autoExpandParent === void 0 ? false : _param_autoExpandParent, _param_checkable = param.checkable, checkable = _param_checkable === void 0 ? false : _param_checkable, outerSelectedKeys = param.selectedKeys, checkedKeys = param.checkedKeys, expandedKeys = param.expandedKeys, defaultCheckedKeys = param.defaultCheckedKeys, defaultExpandedKeys = param.defaultExpandedKeys, defaultSelectedKeys = param.defaultSelectedKeys, className = param.className, onTreeSelect = param.onTreeSelect, onTreeCheck = param.onTreeCheck, onTreeExpand = param.onTreeExpand, _param_hasIcon = param.hasIcon, hasIcon = _param_hasIcon === void 0 ? false : _param_hasIcon, icon = param.icon, renderTitle = param.renderTitle, _param_mode = param.mode, mode = _param_mode === void 0 ? 'default' : _param_mode;
172
172
  var _useState = _sliced_to_array((0, _react.useState)(defaultSelectedKeys || []), 2), selected = _useState[0], setSelected = _useState[1];
173
173
  var selectedKeys = outerSelectedKeys !== null && outerSelectedKeys !== void 0 ? outerSelectedKeys : selected;
174
+ var isRadioMode = mode === 'radio' && !multiple;
174
175
  var handleSelect = function(updatedSelectedKeys, info) {
176
+ if (!multiple && isRadioMode && updatedSelectedKeys.length === 0) {
177
+ return;
178
+ }
175
179
  setSelected(updatedSelectedKeys);
176
180
  if (onTreeSelect) {
177
181
  onTreeSelect(updatedSelectedKeys, info);
@@ -179,6 +183,7 @@ var treeRoot = function(Root) {
179
183
  };
180
184
  var invertedClass = arrowPlacement === 'right' ? _Treetokens.classes.treeInverted : undefined;
181
185
  var itemFilledClass = fullWidthItemSelection ? _Treetokens.classes.treeItemFilled : undefined;
186
+ var radioModeClass = isRadioMode ? _Treetokens.classes.treeRadioMode : undefined;
182
187
  // Проходимся по дереву и устанавливаем соответствующие классы для узлов дерева,
183
188
  // чтобы соблюсти иерархию вложенности в UI.
184
189
  var treeData = (0, _react.useMemo)(function() {
@@ -198,7 +203,7 @@ var treeRoot = function(Root) {
198
203
  virtual: virtual,
199
204
  multiple: multiple,
200
205
  checkable: checkable,
201
- className: (0, _utils.cx)(className, invertedClass, itemFilledClass),
206
+ className: (0, _utils.cx)(className, invertedClass, itemFilledClass, radioModeClass),
202
207
  defaultExpandAll: defaultExpandAll,
203
208
  autoExpandParent: autoExpandParent,
204
209
  style: {