@salutejs/plasma-new-hope 0.330.0-canary.1655.16067895478.0 → 0.330.0-canary.2050.16051901455.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 (160) hide show
  1. package/cjs/components/Drawer/Drawer.css +5 -7
  2. package/cjs/components/Modal/Modal.css +6 -9
  3. package/cjs/components/Modal/Modal.js +4 -13
  4. package/cjs/components/Modal/Modal.js.map +1 -1
  5. package/cjs/components/Modal/Modal.styles.js +5 -16
  6. package/cjs/components/Modal/Modal.styles.js.map +1 -1
  7. package/cjs/components/Modal/{Modal.styles_1obtvtw.css → Modal.styles_1gt0sfn.css} +3 -4
  8. package/cjs/components/Notification/NotificationsProvider.css +3 -7
  9. package/cjs/components/NumberFormat/NumberFormat.js +49 -3
  10. package/cjs/components/NumberFormat/NumberFormat.js.map +1 -1
  11. package/cjs/components/Popup/Popup.js +4 -42
  12. package/cjs/components/Popup/Popup.js.map +1 -1
  13. package/cjs/components/Popup/Popup.styles.js +12 -24
  14. package/cjs/components/Popup/Popup.styles.js.map +1 -1
  15. package/cjs/components/Popup/Popup.styles_gq4luz.css +4 -0
  16. package/cjs/components/Popup/Popup.tokens.js +1 -6
  17. package/cjs/components/Popup/Popup.tokens.js.map +1 -1
  18. package/cjs/components/Popup/PopupContext.css +3 -7
  19. package/cjs/components/Popup/utils/index.js.map +1 -1
  20. package/cjs/components/TextField/TextField.js +32 -11
  21. package/cjs/components/TextField/TextField.js.map +1 -1
  22. package/cjs/index.css +6 -9
  23. package/emotion/cjs/components/Modal/Modal.js +5 -14
  24. package/emotion/cjs/components/Modal/Modal.styles.js +6 -14
  25. package/emotion/cjs/components/NumberFormat/NumberFormat.js +95 -4
  26. package/emotion/cjs/components/Popup/Popup.js +5 -43
  27. package/emotion/cjs/components/Popup/Popup.styles.js +8 -22
  28. package/emotion/cjs/components/Popup/Popup.tokens.js +1 -6
  29. package/emotion/cjs/components/Popup/utils/index.js +0 -16
  30. package/emotion/cjs/components/TextField/TextField.js +36 -14
  31. package/emotion/cjs/components/_Icon/index.js +0 -4
  32. package/emotion/es/components/Modal/Modal.js +6 -15
  33. package/emotion/es/components/Modal/Modal.styles.js +6 -11
  34. package/emotion/es/components/NumberFormat/NumberFormat.js +97 -6
  35. package/emotion/es/components/Popup/Popup.js +6 -45
  36. package/emotion/es/components/Popup/Popup.styles.js +8 -16
  37. package/emotion/es/components/Popup/Popup.tokens.js +1 -6
  38. package/emotion/es/components/Popup/utils/index.js +0 -3
  39. package/emotion/es/components/TextField/TextField.js +36 -14
  40. package/emotion/es/components/_Icon/index.js +0 -1
  41. package/es/components/Drawer/Drawer.css +5 -7
  42. package/es/components/Modal/Modal.css +6 -9
  43. package/es/components/Modal/Modal.js +7 -16
  44. package/es/components/Modal/Modal.js.map +1 -1
  45. package/es/components/Modal/Modal.styles.js +6 -16
  46. package/es/components/Modal/Modal.styles.js.map +1 -1
  47. package/es/components/Modal/{Modal.styles_1obtvtw.css → Modal.styles_1gt0sfn.css} +3 -4
  48. package/es/components/Notification/NotificationsProvider.css +3 -7
  49. package/es/components/NumberFormat/NumberFormat.js +52 -6
  50. package/es/components/NumberFormat/NumberFormat.js.map +1 -1
  51. package/es/components/Popup/Popup.js +5 -43
  52. package/es/components/Popup/Popup.js.map +1 -1
  53. package/es/components/Popup/Popup.styles.js +13 -23
  54. package/es/components/Popup/Popup.styles.js.map +1 -1
  55. package/es/components/Popup/Popup.styles_gq4luz.css +4 -0
  56. package/es/components/Popup/Popup.tokens.js +1 -6
  57. package/es/components/Popup/Popup.tokens.js.map +1 -1
  58. package/es/components/Popup/PopupContext.css +3 -7
  59. package/es/components/Popup/utils/index.js.map +1 -1
  60. package/es/components/TextField/TextField.js +32 -11
  61. package/es/components/TextField/TextField.js.map +1 -1
  62. package/es/index.css +6 -9
  63. package/package.json +2 -3
  64. package/styled-components/cjs/components/Modal/Modal.js +5 -14
  65. package/styled-components/cjs/components/Modal/Modal.styles.js +8 -50
  66. package/styled-components/cjs/components/NumberFormat/NumberFormat.js +95 -4
  67. package/styled-components/cjs/components/Popup/Popup.js +5 -43
  68. package/styled-components/cjs/components/Popup/Popup.styles.js +8 -65
  69. package/styled-components/cjs/components/Popup/Popup.tokens.js +1 -6
  70. package/styled-components/cjs/components/Popup/utils/index.js +0 -16
  71. package/styled-components/cjs/components/TextField/TextField.js +35 -13
  72. package/styled-components/cjs/components/_Icon/index.js +0 -4
  73. package/styled-components/es/components/Modal/Modal.js +6 -15
  74. package/styled-components/es/components/Modal/Modal.styles.js +4 -8
  75. package/styled-components/es/components/NumberFormat/NumberFormat.js +97 -6
  76. package/styled-components/es/components/Popup/Popup.js +6 -45
  77. package/styled-components/es/components/Popup/Popup.styles.js +4 -20
  78. package/styled-components/es/components/Popup/Popup.tokens.js +1 -6
  79. package/styled-components/es/components/Popup/utils/index.js +0 -3
  80. package/styled-components/es/components/TextField/TextField.js +35 -13
  81. package/styled-components/es/components/_Icon/index.js +0 -1
  82. package/types/components/Breadcrumbs/utils/index.d.ts +1 -1
  83. package/types/components/Combobox/ComboboxNew/utils/sizeToIconSize.d.ts +1 -1
  84. package/types/components/Drawer/Drawer.d.ts +2 -2
  85. package/types/components/Drawer/Drawer.d.ts.map +1 -1
  86. package/types/components/Drawer/Drawer.types.d.ts +1 -1
  87. package/types/components/Drawer/Drawer.types.d.ts.map +1 -1
  88. package/types/components/Modal/Modal.d.ts +1 -1
  89. package/types/components/Modal/Modal.d.ts.map +1 -1
  90. package/types/components/Modal/Modal.styles.d.ts +1 -4
  91. package/types/components/Modal/Modal.styles.d.ts.map +1 -1
  92. package/types/components/NumberFormat/NumberFormat.d.ts.map +1 -1
  93. package/types/components/Popup/Popup.d.ts +1 -1
  94. package/types/components/Popup/Popup.d.ts.map +1 -1
  95. package/types/components/Popup/Popup.styles.d.ts +0 -2
  96. package/types/components/Popup/Popup.styles.d.ts.map +1 -1
  97. package/types/components/Popup/Popup.tokens.d.ts +0 -5
  98. package/types/components/Popup/Popup.tokens.d.ts.map +1 -1
  99. package/types/components/Popup/Popup.types.d.ts +0 -58
  100. package/types/components/Popup/Popup.types.d.ts.map +1 -1
  101. package/types/components/Popup/utils/index.d.ts +0 -3
  102. package/types/components/Popup/utils/index.d.ts.map +1 -1
  103. package/types/components/Select/utils/sizeToIconSize.d.ts +1 -1
  104. package/types/components/Table/ui/HeadCell/HeadCell.d.ts +1 -1
  105. package/types/components/TextField/TextField.d.ts.map +1 -1
  106. package/types/components/Tree/utils/sizeToIconSize.d.ts +1 -1
  107. package/types/components/_Icon/index.d.ts +0 -1
  108. package/types/components/_Icon/index.d.ts.map +1 -1
  109. package/cjs/components/Popup/Popup.styles_sejy82.css +0 -6
  110. package/cjs/components/Popup/utils/getHandleStyles.js +0 -58
  111. package/cjs/components/Popup/utils/getHandleStyles.js.map +0 -1
  112. package/cjs/components/Popup/utils/getRatioBasedOnPlacement.js +0 -36
  113. package/cjs/components/Popup/utils/getRatioBasedOnPlacement.js.map +0 -1
  114. package/cjs/components/Popup/utils/getResizeDirections.js +0 -73
  115. package/cjs/components/Popup/utils/getResizeDirections.js.map +0 -1
  116. package/cjs/components/_Icon/Icon.assets/ResizeDiagonal.js +0 -30
  117. package/cjs/components/_Icon/Icon.assets/ResizeDiagonal.js.map +0 -1
  118. package/cjs/components/_Icon/Icons/IconResizeDiagonal.js +0 -30
  119. package/cjs/components/_Icon/Icons/IconResizeDiagonal.js.map +0 -1
  120. package/emotion/cjs/components/Popup/utils/getHandleStyles.js +0 -61
  121. package/emotion/cjs/components/Popup/utils/getRatioBasedOnPlacement.js +0 -54
  122. package/emotion/cjs/components/Popup/utils/getResizeDirections.js +0 -82
  123. package/emotion/cjs/components/_Icon/Icon.assets/ResizeDiagonal.js +0 -83
  124. package/emotion/cjs/components/_Icon/Icons/IconResizeDiagonal.js +0 -86
  125. package/emotion/es/components/Popup/utils/getHandleStyles.js +0 -51
  126. package/emotion/es/components/Popup/utils/getRatioBasedOnPlacement.js +0 -44
  127. package/emotion/es/components/Popup/utils/getResizeDirections.js +0 -72
  128. package/emotion/es/components/_Icon/Icon.assets/ResizeDiagonal.js +0 -68
  129. package/emotion/es/components/_Icon/Icons/IconResizeDiagonal.js +0 -71
  130. package/es/components/Popup/Popup.styles_sejy82.css +0 -6
  131. package/es/components/Popup/utils/getHandleStyles.js +0 -54
  132. package/es/components/Popup/utils/getHandleStyles.js.map +0 -1
  133. package/es/components/Popup/utils/getRatioBasedOnPlacement.js +0 -32
  134. package/es/components/Popup/utils/getRatioBasedOnPlacement.js.map +0 -1
  135. package/es/components/Popup/utils/getResizeDirections.js +0 -69
  136. package/es/components/Popup/utils/getResizeDirections.js.map +0 -1
  137. package/es/components/_Icon/Icon.assets/ResizeDiagonal.js +0 -22
  138. package/es/components/_Icon/Icon.assets/ResizeDiagonal.js.map +0 -1
  139. package/es/components/_Icon/Icons/IconResizeDiagonal.js +0 -22
  140. package/es/components/_Icon/Icons/IconResizeDiagonal.js.map +0 -1
  141. package/styled-components/cjs/components/Popup/utils/getHandleStyles.js +0 -61
  142. package/styled-components/cjs/components/Popup/utils/getRatioBasedOnPlacement.js +0 -54
  143. package/styled-components/cjs/components/Popup/utils/getResizeDirections.js +0 -82
  144. package/styled-components/cjs/components/_Icon/Icon.assets/ResizeDiagonal.js +0 -83
  145. package/styled-components/cjs/components/_Icon/Icons/IconResizeDiagonal.js +0 -86
  146. package/styled-components/es/components/Popup/utils/getHandleStyles.js +0 -51
  147. package/styled-components/es/components/Popup/utils/getRatioBasedOnPlacement.js +0 -44
  148. package/styled-components/es/components/Popup/utils/getResizeDirections.js +0 -72
  149. package/styled-components/es/components/_Icon/Icon.assets/ResizeDiagonal.js +0 -68
  150. package/styled-components/es/components/_Icon/Icons/IconResizeDiagonal.js +0 -71
  151. package/types/components/Popup/utils/getHandleStyles.d.ts +0 -29
  152. package/types/components/Popup/utils/getHandleStyles.d.ts.map +0 -1
  153. package/types/components/Popup/utils/getRatioBasedOnPlacement.d.ts +0 -3
  154. package/types/components/Popup/utils/getRatioBasedOnPlacement.d.ts.map +0 -1
  155. package/types/components/Popup/utils/getResizeDirections.d.ts +0 -14
  156. package/types/components/Popup/utils/getResizeDirections.d.ts.map +0 -1
  157. package/types/components/_Icon/Icon.assets/ResizeDiagonal.d.ts +0 -4
  158. package/types/components/_Icon/Icon.assets/ResizeDiagonal.d.ts.map +0 -1
  159. package/types/components/_Icon/Icons/IconResizeDiagonal.d.ts +0 -4
  160. package/types/components/_Icon/Icons/IconResizeDiagonal.d.ts.map +0 -1
@@ -1,3 +1,11 @@
1
+ function _array_like_to_array(arr, len) {
2
+ if (len == null || len > arr.length) len = arr.length;
3
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4
+ return arr2;
5
+ }
6
+ function _array_with_holes(arr) {
7
+ if (Array.isArray(arr)) return arr;
8
+ }
1
9
  function _define_property(obj, key, value) {
2
10
  if (key in obj) {
3
11
  Object.defineProperty(obj, key, {
@@ -11,6 +19,33 @@ function _define_property(obj, key, value) {
11
19
  }
12
20
  return obj;
13
21
  }
22
+ function _iterable_to_array_limit(arr, i) {
23
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
24
+ if (_i == null) return;
25
+ var _arr = [];
26
+ var _n = true;
27
+ var _d = false;
28
+ var _s, _e;
29
+ try {
30
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
31
+ _arr.push(_s.value);
32
+ if (i && _arr.length === i) break;
33
+ }
34
+ } catch (err) {
35
+ _d = true;
36
+ _e = err;
37
+ } finally{
38
+ try {
39
+ if (!_n && _i["return"] != null) _i["return"]();
40
+ } finally{
41
+ if (_d) throw _e;
42
+ }
43
+ }
44
+ return _arr;
45
+ }
46
+ function _non_iterable_rest() {
47
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
48
+ }
14
49
  function _object_spread(target) {
15
50
  for(var i = 1; i < arguments.length; i++){
16
51
  var source = arguments[i] != null ? arguments[i] : {};
@@ -53,30 +88,86 @@ function _object_without_properties_loose(source, excluded) {
53
88
  }
54
89
  return target;
55
90
  }
56
- import React, { forwardRef } from "react";
57
- import { NumericFormat } from "react-number-format";
91
+ function _sliced_to_array(arr, i) {
92
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
93
+ }
94
+ function _unsupported_iterable_to_array(o, minLen) {
95
+ if (!o) return;
96
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
97
+ var n = Object.prototype.toString.call(o).slice(8, -1);
98
+ if (n === "Object" && o.constructor) n = o.constructor.name;
99
+ if (n === "Map" || n === "Set") return Array.from(n);
100
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
101
+ }
102
+ import React, { forwardRef, useEffect, useRef, useState } from "react";
103
+ import { NumericFormat, numericFormatter } from "react-number-format";
104
+ import { useForkRef } from "@salutejs/plasma-core";
58
105
  export var composeNumberFormat = function(InputComponent) {
59
106
  return /*#__PURE__*/ forwardRef(function(_param, outerRef) {
60
- var _param_thousandSeparator = _param.thousandSeparator, thousandSeparator = _param_thousandSeparator === void 0 ? ' ' : _param_thousandSeparator, _param_decimalScale = _param.decimalScale, decimalScale = _param_decimalScale === void 0 ? 3 : _param_decimalScale, _param_decimalSeparator = _param.decimalSeparator, decimalSeparator = _param_decimalSeparator === void 0 ? '.' : _param_decimalSeparator, onChange = _param.onChange, rest = _object_without_properties(_param, [
107
+ var _param_thousandSeparator = _param.thousandSeparator, thousandSeparator = _param_thousandSeparator === void 0 ? ' ' : _param_thousandSeparator, _param_decimalScale = _param.decimalScale, decimalScale = _param_decimalScale === void 0 ? 3 : _param_decimalScale, _param_decimalSeparator = _param.decimalSeparator, decimalSeparator = _param_decimalSeparator === void 0 ? '.' : _param_decimalSeparator, disabled = _param.disabled, value = _param.value, onChange = _param.onChange, onPaste = _param.onPaste, rest = _object_without_properties(_param, [
61
108
  "thousandSeparator",
62
109
  "decimalScale",
63
110
  "decimalSeparator",
64
- "onChange"
111
+ "disabled",
112
+ "value",
113
+ "onChange",
114
+ "onPaste"
65
115
  ]);
116
+ var inputRef = useRef(null);
117
+ var inputForkRef = useForkRef(inputRef, outerRef);
118
+ var _useState = _sliced_to_array(useState(value ? numericFormatter(String(value), {
119
+ thousandSeparator: thousandSeparator,
120
+ decimalScale: decimalScale,
121
+ decimalSeparator: decimalSeparator
122
+ }) : ''), 2), innerValue = _useState[0], setInnerValue = _useState[1];
66
123
  var handleChangeValue = function(values, sourceInfo) {
67
124
  if (onChange) {
68
125
  var changeEvent = sourceInfo.event;
126
+ setInnerValue(values.value);
69
127
  onChange(changeEvent, values);
70
128
  }
71
129
  };
130
+ var handlePaste = function(event) {
131
+ if (disabled) {
132
+ return;
133
+ }
134
+ if (decimalSeparator !== '.' && inputRef.current) {
135
+ if (!Number.isNaN(Number(event.clipboardData.getData('text/plain')))) {
136
+ event.preventDefault();
137
+ var pastedValue = event.clipboardData.getData('text/plain').replace('.', decimalSeparator);
138
+ var input = event.target;
139
+ var startPos = input.selectionStart || 0;
140
+ var newCursorPos = startPos + pastedValue.length;
141
+ setInnerValue(pastedValue);
142
+ setTimeout(function() {
143
+ var _inputRef_current;
144
+ (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.setSelectionRange(newCursorPos, newCursorPos);
145
+ }, 10);
146
+ }
147
+ }
148
+ if (onPaste) {
149
+ onPaste(event);
150
+ }
151
+ };
152
+ useEffect(function() {
153
+ setInnerValue(value ? numericFormatter(String(value), {
154
+ thousandSeparator: thousandSeparator,
155
+ decimalScale: decimalScale,
156
+ decimalSeparator: decimalSeparator
157
+ }) : '');
158
+ }, [
159
+ value
160
+ ]);
72
161
  return /*#__PURE__*/ React.createElement(NumericFormat, _object_spread({
162
+ value: innerValue,
73
163
  thousandSeparator: thousandSeparator,
74
164
  decimalScale: decimalScale,
75
165
  decimalSeparator: decimalSeparator,
76
166
  customInput: InputComponent,
77
- getInputRef: outerRef,
167
+ getInputRef: inputForkRef,
78
168
  _textEllipsisDisable: true,
79
- onValueChange: handleChangeValue
169
+ onValueChange: handleChangeValue,
170
+ onPaste: handlePaste
80
171
  }, rest));
81
172
  });
82
173
  };
@@ -101,15 +101,12 @@ function _unsupported_iterable_to_array(o, minLen) {
101
101
  }
102
102
  import React, { forwardRef, useRef } from "react";
103
103
  import { useForkRef } from "@salutejs/plasma-core";
104
- // import Draggable from 'react-draggable';
105
- import { Resizable } from "re-resizable";
106
104
  import { canUseDOM, cx, safeUseId } from "../../utils";
107
105
  import { Portal } from "../Portal";
108
- import { getRatioBasedOnPlacement, getResizeDirections, getHandleStyles } from "./utils";
109
106
  import { PopupRoot } from "./PopupRoot";
110
107
  import { usePopup } from "./hooks";
111
108
  import { classes } from "./Popup.tokens";
112
- import { StyledPortalContainer, base, IconResizeDiagonalStyled } from "./Popup.styles";
109
+ import { StyledPortalContainer } from "./Popup.styles";
113
110
  export var handlePosition = function(placement, offset) {
114
111
  var x = '0rem';
115
112
  var y = '0rem';
@@ -173,7 +170,7 @@ export var handlePosition = function(placement, offset) {
173
170
  0,
174
171
  0
175
172
  ] : _param_offset, _param_frame = _param.frame, frame = _param_frame === void 0 ? 'document' : _param_frame, children = _param.children, overlay = _param.overlay, // eslint-disable-next-line @typescript-eslint/no-unused-vars
176
- role = _param.role, zIndex = _param.zIndex, popupInfo = _param.popupInfo, _param_withAnimation = _param.withAnimation, withAnimation = _param_withAnimation === void 0 ? false : _param_withAnimation, className = _param.className, _param_draggable = _param.draggable, draggable = _param_draggable === void 0 ? false : _param_draggable, handle = _param.handle, resizable = _param.resizable, rest = _object_without_properties(_param, [
173
+ role = _param.role, zIndex = _param.zIndex, popupInfo = _param.popupInfo, _param_withAnimation = _param.withAnimation, withAnimation = _param_withAnimation === void 0 ? false : _param_withAnimation, className = _param.className, rest = _object_without_properties(_param, [
177
174
  "id",
178
175
  "isOpen",
179
176
  "opened",
@@ -186,12 +183,8 @@ export var handlePosition = function(placement, offset) {
186
183
  "zIndex",
187
184
  "popupInfo",
188
185
  "withAnimation",
189
- "className",
190
- "draggable",
191
- "handle",
192
- "resizable"
186
+ "className"
193
187
  ]);
194
- var _resizable_hiddenIcons, _resizable_hiddenIcons1, _resizable_hiddenIcons2, _resizable_hiddenIcons3;
195
188
  var innerIsOpen = isOpen || opened;
196
189
  var uniqId = safeUseId();
197
190
  var innerId = id || uniqId;
@@ -204,10 +197,10 @@ export var handlePosition = function(placement, offset) {
204
197
  var portalRef = useRef(null);
205
198
  var contentRef = useRef(null);
206
199
  var innerRef = useForkRef(contentRef, outerRootRef);
207
- var cls = cx(className, (animationInfo === null || animationInfo === void 0 ? void 0 : animationInfo.endAnimation) ? classes.endAnimation : '', (animationInfo === null || animationInfo === void 0 ? void 0 : animationInfo.endTransition) ? classes.endTransition : '');
208
200
  if (!isVisible && !innerIsOpen) {
209
201
  return null;
210
202
  }
203
+ var cls = cx(className, (animationInfo === null || animationInfo === void 0 ? void 0 : animationInfo.endAnimation) ? classes.endAnimation : '', (animationInfo === null || animationInfo === void 0 ? void 0 : animationInfo.endTransition) ? classes.endTransition : '');
211
204
  var rootNode = /*#__PURE__*/ React.createElement(Root, {
212
205
  className: cls
213
206
  }, overlay, /*#__PURE__*/ React.createElement(PopupRoot, _object_spread({
@@ -218,39 +211,7 @@ export var handlePosition = function(placement, offset) {
218
211
  frame: frame,
219
212
  animationInfo: animationInfo,
220
213
  setVisible: setVisible
221
- }, rest), /*#__PURE__*/ React.createElement(Resizable, {
222
- enable: resizable && !resizable.disabled ? getResizeDirections(resizable.directions) : false,
223
- resizeRatio: getRatioBasedOnPlacement(placement),
224
- defaultSize: resizable === null || resizable === void 0 ? void 0 : resizable.defaultSize,
225
- minWidth: resizable === null || resizable === void 0 ? void 0 : resizable.minWidth,
226
- minHeight: resizable === null || resizable === void 0 ? void 0 : resizable.minHeight,
227
- maxWidth: resizable === null || resizable === void 0 ? void 0 : resizable.maxWidth,
228
- maxHeight: resizable === null || resizable === void 0 ? void 0 : resizable.maxHeight,
229
- handleComponent: {
230
- 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.createElement(IconResizeDiagonalStyled, {
231
- className: classes.resizableTopRightIcon,
232
- color: "inherit",
233
- size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
234
- }),
235
- 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.createElement(IconResizeDiagonalStyled, {
236
- className: classes.resizableBottomRightIcon,
237
- color: "inherit",
238
- size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
239
- }),
240
- 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.createElement(IconResizeDiagonalStyled, {
241
- className: classes.resizableBottomLeftIcon,
242
- color: "inherit",
243
- size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
244
- }),
245
- 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.createElement(IconResizeDiagonalStyled, {
246
- className: classes.resizableTopLeftIcon,
247
- color: "inherit",
248
- size: resizable === null || resizable === void 0 ? void 0 : resizable.iconSize
249
- })
250
- },
251
- className: classes.resizableContainer,
252
- handleStyles: getHandleStyles(resizable === null || resizable === void 0 ? void 0 : resizable.iconSize)
253
- }, children)));
214
+ }, rest), children));
254
215
  if (typeof frame !== 'string' && frame && frame.current && canUseDOM) {
255
216
  return /*#__PURE__*/ React.createElement(Portal, {
256
217
  container: frame.current
@@ -277,7 +238,7 @@ export var popupConfig = {
277
238
  name: 'Popup',
278
239
  tag: 'div',
279
240
  layout: popupRoot,
280
- base: base,
241
+ base: '',
281
242
  variations: {},
282
243
  defaults: {}
283
244
  };
@@ -1,32 +1,26 @@
1
1
  import styled from "styled-components";
2
- import { css } from "styled-components";
3
- import { IconResizeDiagonal } from "../_Icon";
4
- import { classes } from "./Popup.tokens";
5
2
  import { DEFAULT_Z_INDEX } from "./utils";
6
- export var base = css([
7
- ""
8
- ]);
9
3
  export var StyledPortal = styled.div.withConfig({
10
4
  displayName: "Popup.styles__StyledPortal",
11
- componentId: "sc-53e4f17f-0"
5
+ componentId: "sc-9d33eb36-0"
12
6
  })([
13
7
  ""
14
8
  ]);
15
9
  export var StyledPortalContainer = styled.div.withConfig({
16
10
  displayName: "Popup.styles__StyledPortalContainer",
17
- componentId: "sc-53e4f17f-1"
11
+ componentId: "sc-9d33eb36-1"
18
12
  })([
19
13
  "width:0;"
20
14
  ]);
21
15
  export var PopupView = styled.div.withConfig({
22
16
  displayName: "Popup.styles__PopupView",
23
- componentId: "sc-53e4f17f-2"
17
+ componentId: "sc-9d33eb36-2"
24
18
  })([
25
19
  "position:relative;max-width:100%;pointer-events:all;"
26
20
  ]);
27
21
  export var PopupRootContainer = styled.div.withConfig({
28
22
  displayName: "Popup.styles__PopupRootContainer",
29
- componentId: "sc-53e4f17f-3"
23
+ componentId: "sc-9d33eb36-3"
30
24
  })([
31
25
  "position:",
32
26
  ";z-index:",
@@ -58,13 +52,3 @@ export var PopupRootContainer = styled.div.withConfig({
58
52
  var position = param.position;
59
53
  return position.transform || '';
60
54
  });
61
- export var IconResizeDiagonalStyled = styled(IconResizeDiagonal).withConfig({
62
- displayName: "Popup.styles__IconResizeDiagonalStyled",
63
- componentId: "sc-53e4f17f-4"
64
- })([
65
- "color:var(--text-secondary);&:hover{color:var(--text-secondary-hover);}&:active{color:var(--text-secondary-active);}&.",
66
- "{transform:rotate(-90deg);}&.",
67
- "{transform:rotate(0);}&.",
68
- "{transform:rotate(90deg);}&.",
69
- "{transform:rotate(180deg);}"
70
- ], classes.resizableTopRightIcon, classes.resizableBottomRightIcon, classes.resizableBottomLeftIcon, classes.resizableTopLeftIcon);
@@ -3,10 +3,5 @@ export var classes = {
3
3
  * Класс корневого компонента PopupRoot: `popup-base-root`
4
4
  */ root: 'popup-base-root',
5
5
  endAnimation: 'popup-end-animation',
6
- endTransition: 'popup-end-transition',
7
- resizableContainer: 'resizable-container',
8
- resizableTopRightIcon: 'resizable-top-right-icon',
9
- resizableBottomRightIcon: 'resizable-bottom-right-icon',
10
- resizableBottomLeftIcon: 'resizable-bottom-left-icon',
11
- resizableTopLeftIcon: 'resizable-top-left-icon'
6
+ endTransition: 'popup-end-transition'
12
7
  };
@@ -1,4 +1 @@
1
- export * from "./getRatioBasedOnPlacement";
2
- export * from "./getResizeDirections";
3
- export * from "./getHandleStyles";
4
1
  export var DEFAULT_Z_INDEX = '9000';
@@ -134,7 +134,7 @@ export var textFieldRoot = function(Root) {
134
134
  hintTrigger, hintTrigger = _param_hintTrigger === void 0 ? 'hover' : _param_hintTrigger, hintText = _param.hintText, _param_hintView = _param.hintView, hintView = _param_hintView === void 0 ? 'default' : _param_hintView, _param_hintSize = _param.hintSize, hintSize = _param_hintSize === void 0 ? 'm' : _param_hintSize, hintTargetIcon = _param.hintTargetIcon, _param_hintTargetPlacement = _param.hintTargetPlacement, hintTargetPlacement = _param_hintTargetPlacement === void 0 ? 'outer' : _param_hintTargetPlacement, _param_hintPlacement = _param.hintPlacement, hintPlacement = _param_hintPlacement === void 0 ? 'auto' : _param_hintPlacement, hintHasArrow = _param.hintHasArrow, _param_hintOffset = _param.hintOffset, hintOffset = _param_hintOffset === void 0 ? HINT_DEFAULT_OFFSET : _param_hintOffset, hintWidth = _param.hintWidth, hintContentLeft = _param.hintContentLeft, // variations
135
135
  view = _param.view, size = _param.size, _param_readOnly = _param.readOnly, readOnly = _param_readOnly === void 0 ? false : _param_readOnly, _param_disabled = _param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_required = _param.required, required = _param_required === void 0 ? false : _param_required, _param_clear = _param.clear, clear = _param_clear === void 0 ? false : _param_clear, optional = _param.optional, hasDivider = _param.hasDivider, // controlled
136
136
  outerValue = _param.value, values = _param.chips, _param_chipType = _param.chipType, chipType = _param_chipType === void 0 ? 'default' : _param_chipType, // events
137
- onChange = _param.onChange, onChangeChips = _param.onChangeChips, onSearch = _param.onSearch, onKeyDown = _param.onKeyDown, onFocus = _param.onFocus, onBlur = _param.onBlur, // Пропсы для внутреннего использования, не отдается наружу.
137
+ onChange = _param.onChange, onChangeChips = _param.onChangeChips, onSearch = _param.onSearch, onKeyDown = _param.onKeyDown, onFocus = _param.onFocus, onBlur = _param.onBlur, onPaste = _param.onPaste, // Пропсы для внутреннего использования, не отдается наружу.
138
138
  // @ts-ignore
139
139
  _onEnterDisabled = _param._onEnterDisabled, // @ts-ignore
140
140
  _forceChipManipulationWithReadonly = _param._forceChipManipulationWithReadonly, rest = _object_without_properties(_param, [
@@ -184,6 +184,7 @@ export var textFieldRoot = function(Root) {
184
184
  "onKeyDown",
185
185
  "onFocus",
186
186
  "onBlur",
187
+ "onPaste",
187
188
  "_onEnterDisabled",
188
189
  "_forceChipManipulationWithReadonly"
189
190
  ]);
@@ -248,17 +249,6 @@ export var textFieldRoot = function(Root) {
248
249
  var value = event.target.value;
249
250
  setHasValue(Boolean(value));
250
251
  };
251
- useEffect(function() {
252
- if (hasTextAfter && inputRef.current) {
253
- var textWidth = getInputWidth(inputRef.current, inputContainerRef.current);
254
- inputRef.current.style.width = "".concat(textWidth, "px");
255
- } else {
256
- var _inputRef_current;
257
- (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.style.removeProperty('width');
258
- }
259
- }, [
260
- hasTextAfter
261
- ]);
262
252
  var handleFocus = function(event) {
263
253
  setHasFocus(true);
264
254
  onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
@@ -293,12 +283,31 @@ export var textFieldRoot = function(Root) {
293
283
  if (maxLength !== -1 && value.length > maxLength) {
294
284
  return;
295
285
  }
296
- onChange === null || onChange === void 0 ? void 0 : onChange(event);
286
+ if (onChange) {
287
+ onChange(event);
288
+ }
297
289
  if (hasTextAfter) {
298
290
  var textWidth = getInputWidth(event.currentTarget, inputContainerRef.current);
299
291
  event.currentTarget.style.width = "".concat(textWidth, "px");
300
292
  }
301
293
  };
294
+ var handlePaste = function(event) {
295
+ if (disabled || readOnly) {
296
+ return;
297
+ }
298
+ if (onPaste) {
299
+ onPaste(event);
300
+ }
301
+ if (hasTextAfter) {
302
+ setTimeout(function() {
303
+ if (!inputRef.current) {
304
+ return;
305
+ }
306
+ var textWidth = getInputWidth(inputRef.current, inputContainerRef.current);
307
+ inputRef.current.style.width = "".concat(textWidth, "px");
308
+ });
309
+ }
310
+ };
302
311
  var updateChips = function(newChips, newValues) {
303
312
  setChips(newChips);
304
313
  onChangeChips === null || onChangeChips === void 0 ? void 0 : onChangeChips(newValues);
@@ -339,6 +348,18 @@ export var textFieldRoot = function(Root) {
339
348
  onKeyDown(event);
340
349
  }
341
350
  };
351
+ useEffect(function() {
352
+ if (hasTextAfter && inputRef.current) {
353
+ var textWidth = getInputWidth(inputRef.current, inputContainerRef.current);
354
+ inputRef.current.style.width = "".concat(textWidth, "px");
355
+ } else {
356
+ var _inputRef_current;
357
+ (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.style.removeProperty('width');
358
+ }
359
+ }, [
360
+ hasTextAfter,
361
+ outerValue
362
+ ]);
342
363
  useEffect(function() {
343
364
  if (!isChipEnumeration && !(values === null || values === void 0 ? void 0 : values.length)) {
344
365
  return;
@@ -492,6 +513,7 @@ export var textFieldRoot = function(Root) {
492
513
  onKeyDown: handleOnKeyDown,
493
514
  onFocus: handleFocus,
494
515
  onBlur: handleBlur,
516
+ onPaste: handlePaste,
495
517
  "data-tour": true
496
518
  }, rest)), hasInnerLabel && /*#__PURE__*/ React.createElement(Label, {
497
519
  "data-root": true,
@@ -48,4 +48,3 @@ export { IconEditOutline } from "./Icons/IconEditOutline";
48
48
  export { IconResetOutline } from "./Icons/IconResetOutline";
49
49
  export { IconDoneCircleOutline } from "./Icons/IconDoneCircleOutline";
50
50
  export { IconTrash } from "./Icons/IconTrash";
51
- export { IconResizeDiagonal } from "./Icons/IconResizeDiagonal";
@@ -1,4 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
- export declare const convertIconSize: (size?: string) => "xs" | "s";
2
+ export declare const convertIconSize: (size?: string) => "s" | "xs";
3
3
  export declare const addSeparator: (items: ReactNode[], renderSeparator: ReactNode) => ReactNode[];
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
1
  import { ComboboxProps } from '../Combobox.types';
2
- export declare const sizeToIconSize: (size?: string, variant?: ComboboxProps["variant"]) => "xs" | "s";
2
+ export declare const sizeToIconSize: (size?: string, variant?: ComboboxProps["variant"]) => "s" | "xs";
3
3
  //# sourceMappingURL=sizeToIconSize.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { RootProps } from '../../engines';
3
3
  import type { DrawerProps } from './Drawer.types';
4
- export declare const drawerRoot: (Root: RootProps<HTMLDivElement, DrawerProps>) => React.ForwardRefExoticComponent<Omit<import("../Popup").PopupProps, "draggable" | "handle" | "resizable"> & Omit<import("../Panel").PanelProps, "draggable"> & {
4
+ export declare const drawerRoot: (Root: RootProps<HTMLDivElement, DrawerProps>) => React.ForwardRefExoticComponent<import("../Popup").PopupProps & import("../Panel").PanelProps & {
5
5
  placement?: import("./Drawer.types").DrawerPlacement;
6
6
  asModal?: boolean;
7
7
  customBackgroundColor?: string;
@@ -18,7 +18,7 @@ export declare const drawerRoot: (Root: RootProps<HTMLDivElement, DrawerProps>)
18
18
  export declare const drawerConfig: {
19
19
  name: string;
20
20
  tag: string;
21
- layout: (Root: RootProps<HTMLDivElement, DrawerProps>) => React.ForwardRefExoticComponent<Omit<import("../Popup").PopupProps, "draggable" | "handle" | "resizable"> & Omit<import("../Panel").PanelProps, "draggable"> & {
21
+ layout: (Root: RootProps<HTMLDivElement, DrawerProps>) => React.ForwardRefExoticComponent<import("../Popup").PopupProps & import("../Panel").PanelProps & {
22
22
  placement?: import("./Drawer.types").DrawerPlacement;
23
23
  asModal?: boolean;
24
24
  customBackgroundColor?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAUlD,eAAO,MAAM,UAAU,SAAU,SAAS,CAAC,cAAc,EAAE,WAAW,CAAC;;;;;;;;;6BAoC3D,MAAA,UAAK;sBAGC,MAAO,SAAS;oBAKR,MAAO,SAAS;;wCAkFrC,CAAC;AAEN,eAAO,MAAM,YAAY;;;mBAhIQ,SAAS,CAAC,cAAc,EAAE,WAAW,CAAC;;;;;;;;;iCAoC3D,MAAA,UAAK;0BAGC,MAAO,SAAS;wBAKR,MAAO,SAAS;;;;;;;;;;;;;;;;;;;;CAyGzC,CAAC"}
1
+ {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAUlD,eAAO,MAAM,UAAU,SAAU,SAAS,CAAC,cAAc,EAAE,WAAW,CAAC;;;;;;;;;6BAiC1D,MACD,UAAE;sBAGF,MAAM,SAAS;oBAMZ,MAAO,SAAS;;wCAmF1B,CAAC;AAEN,eAAO,MAAM,YAAY;;;mBAhIQ,SAAS,CAAC,cAAc,EAAE,WAAW,CAAC;;;;;;;;;iCAiC1D,MACD,UAAE;0BAGF,MAAM,SAAS;wBAMZ,MAAO,SAAS;;;;;;;;;;;;;;;;;;;;CA0G9B,CAAC"}
@@ -8,7 +8,7 @@ export declare const drawerPlacements: {
8
8
  left: string;
9
9
  };
10
10
  export type DrawerPlacement = keyof typeof drawerPlacements;
11
- export type DrawerProps = Omit<PopupProps, 'draggable' | 'handle' | 'resizable'> & Omit<PanelProps, 'draggable'> & {
11
+ export type DrawerProps = PopupProps & PanelProps & {
12
12
  /**
13
13
  * Расположение Drawer.
14
14
  * @default
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.types.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAE5D,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC,GAC5E,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,GAAG;IAC5B;;;;OAIG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAC9C;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACnE;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC/C;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEN,MAAM,WAAW,cACb,SAAQ,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,WAAW,GAAG,QAAQ,CAAC,EACtD,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,cAAc,GAAG,SAAS,CAAC;IAChE,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B"}
1
+ {"version":3,"file":"Drawer.types.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAE5D,MAAM,MAAM,WAAW,GAAG,UAAU,GAChC,UAAU,GAAG;IACT;;;;OAIG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAC9C;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACnE;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC/C;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAEN,MAAM,WAAW,cACb,SAAQ,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,WAAW,GAAG,QAAQ,CAAC,EACtD,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,cAAc,GAAG,SAAS,CAAC;IAChE,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B"}
@@ -10,7 +10,7 @@ export declare const modalConfig: {
10
10
  name: string;
11
11
  tag: string;
12
12
  layout: (Root: RootProps<HTMLDivElement, ModalProps>) => React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDivElement>>;
13
- base: import("@linaria/core").LinariaClassName;
13
+ base: string;
14
14
  variations: {
15
15
  view: {
16
16
  css: import("@linaria/core").LinariaClassName;
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAGhE,OAAO,EAAE,SAAS,EAAa,MAAM,aAAa,CAAC;AASnD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C;;;GAGG;AACH,eAAO,MAAM,SAAS,SAAU,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC,sFAoHhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBAtHQ,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC;;;;;;;;;;CAmIpE,CAAC"}
1
+ {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAGhE,OAAO,EAAE,SAAS,EAAa,MAAM,aAAa,CAAC;AASnD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C;;;GAGG;AACH,eAAO,MAAM,SAAS,SAAU,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC,sFA6GhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBA/GQ,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC;;;;;;;;;;CA4HpE,CAAC"}
@@ -1,7 +1,4 @@
1
- export declare const base: import("@linaria/core").LinariaClassName;
2
- export declare const ModalBody: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
3
- isResizableEnabled: boolean;
4
- }>;
1
+ export declare const ModalBody: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
2
  export declare const ModalContent: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
3
  export declare const CloseButton: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Record<never, unknown>>;
7
4
  //# sourceMappingURL=Modal.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.styles.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,IAAI,0CAEhB,CAAC;AAEF,eAAO,MAAM,SAAS;wBAAoC,OAAO;EAQhE,CAAC;AAEF,eAAO,MAAM,YAAY,qKAGxB,CAAC;AAEF,eAAO,MAAM,WAAW,iLAwCvB,CAAC"}
1
+ {"version":3,"file":"Modal.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.styles.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,SAAS,qKAKrB,CAAC;AAEF,eAAO,MAAM,YAAY,qKAGxB,CAAC;AAEF,eAAO,MAAM,WAAW,iLAwCvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"NumberFormat.d.ts","sourceRoot":"","sources":["../../../src/components/NumberFormat/NumberFormat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,KAAK,EAAE,kBAAkB,EAAc,MAAM,qBAAqB,CAAC;AAE1E,OAAO,KAAK,EAER,wBAAwB,EACxB,0BAA0B,EAC7B,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,0BAA0B,kBAAkB,EAAE,CAAC,CAAC,CAAC;;;;;;;;;qBAyBgyB,CAAC,uCAAuC,CAAC;mGADv6B,CAAC"}
1
+ {"version":3,"file":"NumberFormat.d.ts","sourceRoot":"","sources":["../../../src/components/NumberFormat/NumberFormat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,EAAE,EAAkB,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,kBAAkB,EAAc,MAAM,qBAAqB,CAAC;AAG1E,OAAO,KAAK,EAER,wBAAwB,EACxB,0BAA0B,EAC7B,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,0BAA0B,kBAAkB,EAAE,CAAC,CAAC,CAAC;;;;;;;;;qBA2CvB,CAAC,uCACrC,CAAC;mGAmCpC,CAAC"}
@@ -10,7 +10,7 @@ export declare const popupConfig: {
10
10
  name: string;
11
11
  tag: string;
12
12
  layout: (Root: RootProps<HTMLDivElement, PopupProps>) => React.ForwardRefExoticComponent<PopupProps & React.RefAttributes<HTMLDivElement>>;
13
- base: import("@linaria/core").LinariaClassName;
13
+ base: string;
14
14
  variations: {};
15
15
  defaults: {};
16
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAIlD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAM9C,OAAO,KAAK,EAAuB,cAAc,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAMxG,eAAO,MAAM,cAAc,cACZ,cAAc,UACjB,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAC5C,iBA8DF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,SAAU,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC,sFAwIhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBA1IQ,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC;;;;CAiJpE,CAAC"}
1
+ {"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAGlD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAI9C,OAAO,KAAK,EAAuB,cAAc,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAMxG,eAAO,MAAM,cAAc,cACZ,cAAc,UACjB,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,KAC5C,iBA8DF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,SAAU,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC,sFAwFhE,CAAC;AAEN,eAAO,MAAM,WAAW;;;mBA1FQ,SAAS,CAAC,cAAc,EAAE,UAAU,CAAC;;;;CAiGpE,CAAC"}
@@ -1,8 +1,6 @@
1
1
  import type { PopupRootContainerProps } from './Popup.types';
2
- export declare const base: import("@linaria/core").LinariaClassName;
3
2
  export declare const StyledPortal: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
3
  export declare const StyledPortalContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
4
  export declare const PopupView: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
5
  export declare const PopupRootContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & PopupRootContainerProps>;
7
- export declare const IconResizeDiagonalStyled: import("@linaria/react").StyledMeta & import("react").FC<import("../_Icon/IconRoot").IconProps>;
8
6
  //# sourceMappingURL=Popup.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popup.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.styles.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAG7D,eAAO,MAAM,IAAI,0CAAQ,CAAC;AAE1B,eAAO,MAAM,YAAY,qKAAe,CAAC;AAEzC,eAAO,MAAM,qBAAqB,qKAEjC,CAAC;AAEF,eAAO,MAAM,SAAS,qKAIrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,sKAQ9B,CAAC;AAEF,eAAO,MAAM,wBAAwB,iGA0BpC,CAAC"}
1
+ {"version":3,"file":"Popup.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAG7D,eAAO,MAAM,YAAY,qKAAe,CAAC;AAEzC,eAAO,MAAM,qBAAqB,qKAEjC,CAAC;AAEF,eAAO,MAAM,SAAS,qKAIrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,sKAQ9B,CAAC"}
@@ -2,10 +2,5 @@ export declare const classes: {
2
2
  root: string;
3
3
  endAnimation: string;
4
4
  endTransition: string;
5
- resizableContainer: string;
6
- resizableTopRightIcon: string;
7
- resizableBottomRightIcon: string;
8
- resizableBottomLeftIcon: string;
9
- resizableTopLeftIcon: string;
10
5
  };
11
6
  //# sourceMappingURL=Popup.tokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popup.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;CAYnB,CAAC"}
1
+ {"version":3,"file":"Popup.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Popup/Popup.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;CAOnB,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export type PopupPlacementBasic = 'center' | 'top' | 'bottom' | 'right' | 'left';
2
2
  export type PopupPlacementMixed = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
3
3
  export type PopupPlacement = PopupPlacementBasic | PopupPlacementMixed;
4
- export type ResizeDirections = Omit<PopupPlacement, 'center'>[];
5
4
  export interface PopupInfo {
6
5
  id: string;
7
6
  info?: Record<string, any>;
@@ -55,63 +54,6 @@ export interface PopupProps extends React.HTMLAttributes<HTMLDivElement> {
55
54
  * Использовать ли анимацию.
56
55
  */
57
56
  withAnimation?: boolean;
58
- /**
59
- * Включение draggable.
60
- * @default false
61
- */
62
- draggable?: boolean;
63
- /**
64
- * Селектор для управления перетягиванием.
65
- * Только при draggable = true.
66
- */
67
- handle?: string;
68
- /**
69
- * Настройка resizable-режима.
70
- */
71
- resizable?: {
72
- /**
73
- * Включение/выключение ресайза.
74
- * @default false
75
- */
76
- disabled?: boolean;
77
- /**
78
- * Направления для ресайза.
79
- */
80
- directions?: ResizeDirections;
81
- /**
82
- * Скрывать ли иконку для ресайза.
83
- * @default false
84
- */
85
- hiddenIcons?: PopupPlacementMixed[];
86
- /**
87
- * Начальный размер окна ресайза.
88
- */
89
- defaultSize?: {
90
- width?: number;
91
- height?: number;
92
- };
93
- /**
94
- * Минимальная ширина ресайза в px.
95
- */
96
- minWidth?: number;
97
- /**
98
- * Минимальная высота ресайза в px.
99
- */
100
- minHeight?: number;
101
- /**
102
- * Максимальная ширина ресайза в px.
103
- */
104
- maxWidth?: number;
105
- /**
106
- * Максимальная высота ресайза в px.
107
- */
108
- maxHeight?: number;
109
- /**
110
- * Размер иконки ресайза.
111
- * @default s
112
- */
113
- iconSize?: 'xs' | 's' | 'm';
114
- };
115
57
  }
116
58
  export interface PopupAnimationInfo {
117
59
  endAnimation: boolean;