@salutejs/plasma-new-hope 0.188.0-dev.0 → 0.189.0-canary.1538.11793772609.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/cjs/components/Dropdown/Dropdown.js +6 -4
  2. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  3. package/cjs/components/TextArea/TextArea.js +1 -1
  4. package/cjs/components/TextArea/TextArea.js.map +1 -1
  5. package/cjs/components/TextArea/hooks/useAutoResize.js +3 -3
  6. package/cjs/components/TextArea/hooks/useAutoResize.js.map +1 -1
  7. package/emotion/cjs/components/Dropdown/Dropdown.js +6 -4
  8. package/emotion/cjs/components/TextArea/TextArea.js +2 -2
  9. package/emotion/cjs/components/TextArea/hooks/useAutoResize.js +3 -3
  10. package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +9 -0
  11. package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +9 -0
  12. package/emotion/es/components/Dropdown/Dropdown.js +6 -4
  13. package/emotion/es/components/TextArea/TextArea.js +2 -2
  14. package/emotion/es/components/TextArea/hooks/useAutoResize.js +3 -3
  15. package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +9 -0
  16. package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +9 -0
  17. package/es/components/Dropdown/Dropdown.js +6 -4
  18. package/es/components/Dropdown/Dropdown.js.map +1 -1
  19. package/es/components/TextArea/TextArea.js +1 -1
  20. package/es/components/TextArea/TextArea.js.map +1 -1
  21. package/es/components/TextArea/hooks/useAutoResize.js +3 -3
  22. package/es/components/TextArea/hooks/useAutoResize.js.map +1 -1
  23. package/package.json +2 -2
  24. package/styled-components/cjs/components/Dropdown/Dropdown.js +6 -4
  25. package/styled-components/cjs/components/TextArea/TextArea.js +1 -1
  26. package/styled-components/cjs/components/TextArea/hooks/useAutoResize.js +3 -3
  27. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +9 -0
  28. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +9 -0
  29. package/styled-components/es/components/Dropdown/Dropdown.js +6 -4
  30. package/styled-components/es/components/TextArea/TextArea.js +1 -1
  31. package/styled-components/es/components/TextArea/hooks/useAutoResize.js +3 -3
  32. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +9 -0
  33. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +9 -0
  34. package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  35. package/types/components/Dropdown/Dropdown.types.d.ts +4 -0
  36. package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
  37. package/types/components/TextArea/hooks/useAutoResize.d.ts +1 -1
  38. package/types/components/TextArea/hooks/useAutoResize.d.ts.map +1 -1
@@ -20,7 +20,7 @@ var _Dropdown2 = /*#__PURE__*/require("./Dropdown.tokens");
20
20
  var _useKeyboardNavigation = /*#__PURE__*/require("./hooks/useKeyboardNavigation");
21
21
  var _useHashMaps3 = /*#__PURE__*/require("./hooks/useHashMaps");
22
22
  var _FloatingPopover = /*#__PURE__*/require("./FloatingPopover");
23
- var _excluded = ["items", "children", "placement", "offset", "closeOnOverlayClick", "onToggle", "size", "view", "itemRole", "className", "listWidth", "listHeight", "listOverflow", "closeOnSelect", "onHover", "onItemSelect", "onItemClick", "trigger", "variant", "hasArrow", "portal"];
23
+ var _excluded = ["items", "children", "placement", "offset", "closeOnOverlayClick", "onToggle", "size", "view", "itemRole", "className", "listWidth", "listHeight", "listOverflow", "closeOnSelect", "onHover", "onItemSelect", "onItemClick", "trigger", "variant", "hasArrow", "alwaysOpened", "portal"];
24
24
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
25
25
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
26
26
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
@@ -66,6 +66,8 @@ var dropdownRoot = exports.dropdownRoot = function dropdownRoot(Root) {
66
66
  variant = _ref$variant === void 0 ? 'normal' : _ref$variant,
67
67
  _ref$hasArrow = _ref.hasArrow,
68
68
  hasArrow = _ref$hasArrow === void 0 ? true : _ref$hasArrow,
69
+ _ref$alwaysOpened = _ref.alwaysOpened,
70
+ alwaysOpened = _ref$alwaysOpened === void 0 ? false : _ref$alwaysOpened,
69
71
  portal = _ref.portal,
70
72
  rest = _objectWithoutProperties(_ref, _excluded);
71
73
  var _useReducer = (0, _react.useReducer)(_pathReducer.pathReducer, []),
@@ -86,7 +88,7 @@ var dropdownRoot = exports.dropdownRoot = function dropdownRoot(Root) {
86
88
 
87
89
  // Логика работы при клике за пределами выпадающего списка
88
90
  var targetRef = (0, _hooks.useOutsideClick)(function (event) {
89
- if (!isCurrentListOpen || !closeOnOverlayClick) {
91
+ if (!isCurrentListOpen || !closeOnOverlayClick || alwaysOpened) {
90
92
  return;
91
93
  }
92
94
  dispatchPath({
@@ -100,7 +102,7 @@ var dropdownRoot = exports.dropdownRoot = function dropdownRoot(Root) {
100
102
  }
101
103
  }, floatingPopoverRef);
102
104
  var handleGlobalToggle = function handleGlobalToggle(opened, event) {
103
- if (opened) {
105
+ if (alwaysOpened || opened) {
104
106
  dispatchPath({
105
107
  type: 'opened_first_level'
106
108
  });
@@ -129,7 +131,7 @@ var dropdownRoot = exports.dropdownRoot = function dropdownRoot(Root) {
129
131
  onItemClick: onItemClick
130
132
  }),
131
133
  onKeyDown = _useKeyNavigation.onKeyDown;
132
- var isCurrentListOpen = Boolean(path[0]);
134
+ var isCurrentListOpen = alwaysOpened || Boolean(path[0]);
133
135
  return /*#__PURE__*/_react["default"].createElement(Context.Provider, {
134
136
  value: {
135
137
  focusedPath: focusedPath,
@@ -199,7 +199,7 @@ var textAreaRoot = exports.textAreaRoot = function textAreaRoot(Root) {
199
199
  setHelperWidth("".concat(elementWidth / _hooks2.ROOT_FONT_SIZE, "rem"));
200
200
  }
201
201
  });
202
- (0, _hooks2.useAutoResize)(autoResize || Boolean(clear), outerRef, value, minAuto, maxAuto);
202
+ (0, _hooks2.useAutoResize)(autoResize || Boolean(clear), outerRef, value, minAuto, maxAuto, resize);
203
203
  var onFocusHandler = (0, _react.useCallback)(function () {
204
204
  setFocused(true);
205
205
  }, []);
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useAutoResize = exports.ROOT_FONT_SIZE = void 0;
7
7
  var _react = /*#__PURE__*/require("react");
8
8
  var ROOT_FONT_SIZE = exports.ROOT_FONT_SIZE = 16;
9
- var useAutoResize = exports.useAutoResize = function useAutoResize(active, ref, value, minAuto, maxAuto) {
9
+ var useAutoResize = exports.useAutoResize = function useAutoResize(active, ref, value, minAuto, maxAuto, resize) {
10
10
  var previousHeight = (0, _react.useRef)();
11
11
  (0, _react.useEffect)(function () {
12
12
  if (active && ref && ref.current) {
13
13
  // проверка на пользовательский resize (вручную)
14
14
  var height = ref.current.clientHeight / ROOT_FONT_SIZE;
15
- if (previousHeight.current !== undefined && previousHeight.current !== height) {
15
+ if (resize && resize !== 'none' && previousHeight.current !== undefined && previousHeight.current !== height) {
16
16
  return;
17
17
  }
18
18
  var style = getComputedStyle(ref.current);
@@ -27,5 +27,5 @@ var useAutoResize = exports.useAutoResize = function useAutoResize(active, ref,
27
27
  ref.current.style.height = "".concat(newHeight, "rem");
28
28
  previousHeight.current = newHeight;
29
29
  }
30
- }, [ref, active, value, minAuto, maxAuto]);
30
+ }, [ref, resize, active, value, minAuto, maxAuto]);
31
31
  };
@@ -45,6 +45,14 @@ const meta: Meta<StoryDropdownProps> = {
45
45
  type: 'select',
46
46
  },
47
47
  },
48
+ closeOnOverlayClick: {
49
+ control: { type: 'boolean' },
50
+ if: { arg: 'alwaysOpened', truthy: false },
51
+ },
52
+ closeOnSelect: {
53
+ control: { type: 'boolean' },
54
+ if: { arg: 'alwaysOpened', truthy: false },
55
+ },
48
56
  },
49
57
  args: {
50
58
  size: 'm',
@@ -54,6 +62,7 @@ const meta: Meta<StoryDropdownProps> = {
54
62
  offset: [0, 0],
55
63
  listWidth: '',
56
64
  hasArrow: true,
65
+ alwaysOpened: false,
57
66
  closeOnOverlayClick: true,
58
67
  closeOnSelect: true,
59
68
  },
@@ -45,6 +45,14 @@ const meta: Meta<StoryDropdownProps> = {
45
45
  type: 'select',
46
46
  },
47
47
  },
48
+ closeOnOverlayClick: {
49
+ control: { type: 'boolean' },
50
+ if: { arg: 'alwaysOpened', truthy: false },
51
+ },
52
+ closeOnSelect: {
53
+ control: { type: 'boolean' },
54
+ if: { arg: 'alwaysOpened', truthy: false },
55
+ },
48
56
  },
49
57
  args: {
50
58
  size: 'm',
@@ -54,6 +62,7 @@ const meta: Meta<StoryDropdownProps> = {
54
62
  offset: [0, 0],
55
63
  listWidth: '',
56
64
  hasArrow: true,
65
+ alwaysOpened: false,
57
66
  closeOnOverlayClick: true,
58
67
  closeOnSelect: true,
59
68
  },
@@ -1,4 +1,4 @@
1
- var _excluded = ["items", "children", "placement", "offset", "closeOnOverlayClick", "onToggle", "size", "view", "itemRole", "className", "listWidth", "listHeight", "listOverflow", "closeOnSelect", "onHover", "onItemSelect", "onItemClick", "trigger", "variant", "hasArrow", "portal"];
1
+ var _excluded = ["items", "children", "placement", "offset", "closeOnOverlayClick", "onToggle", "size", "view", "itemRole", "className", "listWidth", "listHeight", "listOverflow", "closeOnSelect", "onHover", "onItemSelect", "onItemClick", "trigger", "variant", "hasArrow", "alwaysOpened", "portal"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -57,6 +57,8 @@ export var dropdownRoot = function dropdownRoot(Root) {
57
57
  variant = _ref$variant === void 0 ? 'normal' : _ref$variant,
58
58
  _ref$hasArrow = _ref.hasArrow,
59
59
  hasArrow = _ref$hasArrow === void 0 ? true : _ref$hasArrow,
60
+ _ref$alwaysOpened = _ref.alwaysOpened,
61
+ alwaysOpened = _ref$alwaysOpened === void 0 ? false : _ref$alwaysOpened,
60
62
  portal = _ref.portal,
61
63
  rest = _objectWithoutProperties(_ref, _excluded);
62
64
  var _useReducer = useReducer(pathReducer, []),
@@ -77,7 +79,7 @@ export var dropdownRoot = function dropdownRoot(Root) {
77
79
 
78
80
  // Логика работы при клике за пределами выпадающего списка
79
81
  var targetRef = useOutsideClick(function (event) {
80
- if (!isCurrentListOpen || !closeOnOverlayClick) {
82
+ if (!isCurrentListOpen || !closeOnOverlayClick || alwaysOpened) {
81
83
  return;
82
84
  }
83
85
  dispatchPath({
@@ -91,7 +93,7 @@ export var dropdownRoot = function dropdownRoot(Root) {
91
93
  }
92
94
  }, floatingPopoverRef);
93
95
  var handleGlobalToggle = function handleGlobalToggle(opened, event) {
94
- if (opened) {
96
+ if (alwaysOpened || opened) {
95
97
  dispatchPath({
96
98
  type: 'opened_first_level'
97
99
  });
@@ -120,7 +122,7 @@ export var dropdownRoot = function dropdownRoot(Root) {
120
122
  onItemClick: onItemClick
121
123
  }),
122
124
  onKeyDown = _useKeyNavigation.onKeyDown;
123
- var isCurrentListOpen = Boolean(path[0]);
125
+ var isCurrentListOpen = alwaysOpened || Boolean(path[0]);
124
126
  return /*#__PURE__*/React.createElement(Context.Provider, {
125
127
  value: {
126
128
  focusedPath: focusedPath,
@@ -191,7 +191,7 @@ export var textAreaRoot = function textAreaRoot(Root) {
191
191
  setHelperWidth("".concat(elementWidth / ROOT_FONT_SIZE, "rem"));
192
192
  }
193
193
  });
194
- useAutoResize(autoResize || Boolean(clear), outerRef, value, minAuto, maxAuto);
194
+ useAutoResize(autoResize || Boolean(clear), outerRef, value, minAuto, maxAuto, resize);
195
195
  var onFocusHandler = useCallback(function () {
196
196
  setFocused(true);
197
197
  }, []);
@@ -1,12 +1,12 @@
1
1
  import { useEffect, useRef } from 'react';
2
2
  export var ROOT_FONT_SIZE = 16;
3
- export var useAutoResize = function useAutoResize(active, ref, value, minAuto, maxAuto) {
3
+ export var useAutoResize = function useAutoResize(active, ref, value, minAuto, maxAuto, resize) {
4
4
  var previousHeight = useRef();
5
5
  useEffect(function () {
6
6
  if (active && ref && ref.current) {
7
7
  // проверка на пользовательский resize (вручную)
8
8
  var height = ref.current.clientHeight / ROOT_FONT_SIZE;
9
- if (previousHeight.current !== undefined && previousHeight.current !== height) {
9
+ if (resize && resize !== 'none' && previousHeight.current !== undefined && previousHeight.current !== height) {
10
10
  return;
11
11
  }
12
12
  var style = getComputedStyle(ref.current);
@@ -21,5 +21,5 @@ export var useAutoResize = function useAutoResize(active, ref, value, minAuto, m
21
21
  ref.current.style.height = "".concat(newHeight, "rem");
22
22
  previousHeight.current = newHeight;
23
23
  }
24
- }, [ref, active, value, minAuto, maxAuto]);
24
+ }, [ref, resize, active, value, minAuto, maxAuto]);
25
25
  };
@@ -45,6 +45,14 @@ const meta: Meta<StoryDropdownProps> = {
45
45
  type: 'select',
46
46
  },
47
47
  },
48
+ closeOnOverlayClick: {
49
+ control: { type: 'boolean' },
50
+ if: { arg: 'alwaysOpened', truthy: false },
51
+ },
52
+ closeOnSelect: {
53
+ control: { type: 'boolean' },
54
+ if: { arg: 'alwaysOpened', truthy: false },
55
+ },
48
56
  },
49
57
  args: {
50
58
  size: 'm',
@@ -54,6 +62,7 @@ const meta: Meta<StoryDropdownProps> = {
54
62
  offset: [0, 0],
55
63
  listWidth: '',
56
64
  hasArrow: true,
65
+ alwaysOpened: false,
57
66
  closeOnOverlayClick: true,
58
67
  closeOnSelect: true,
59
68
  },
@@ -45,6 +45,14 @@ const meta: Meta<StoryDropdownProps> = {
45
45
  type: 'select',
46
46
  },
47
47
  },
48
+ closeOnOverlayClick: {
49
+ control: { type: 'boolean' },
50
+ if: { arg: 'alwaysOpened', truthy: false },
51
+ },
52
+ closeOnSelect: {
53
+ control: { type: 'boolean' },
54
+ if: { arg: 'alwaysOpened', truthy: false },
55
+ },
48
56
  },
49
57
  args: {
50
58
  size: 'm',
@@ -54,6 +62,7 @@ const meta: Meta<StoryDropdownProps> = {
54
62
  offset: [0, 0],
55
63
  listWidth: '',
56
64
  hasArrow: true,
65
+ alwaysOpened: false,
57
66
  closeOnOverlayClick: true,
58
67
  closeOnSelect: true,
59
68
  },
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAG7E,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAW1C,OAAO,KAAK,EAAE,aAAa,EAA0B,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM3F,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,cAAc,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC,yFAwJrF,CAAC;AAEN,eAAO,MAAM,cAAc;;;mBA1JQ,UAAU,cAAc,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;CA2KzF,CAAC"}
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwD,MAAM,OAAO,CAAC;AAG7E,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAW1C,OAAO,KAAK,EAAE,aAAa,EAA0B,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAM3F,eAAO,MAAM,OAAO,4BAAgD,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,YAAY,SAAU,UAAU,cAAc,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC,yFAyJrF,CAAC;AAEN,eAAO,MAAM,cAAc;;;mBA3JQ,UAAU,cAAc,EAAE,KAAK,aAAa,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;;CA4KzF,CAAC"}
@@ -9,6 +9,10 @@ export interface DropdownProps extends HTMLAttributes<HTMLDivElement> {
9
9
  * Список элементов.
10
10
  */
11
11
  items: Array<DropdownItemOption>;
12
+ /**
13
+ * Дропдаун открыт всегда.
14
+ */
15
+ alwaysOpened?: boolean;
12
16
  /**
13
17
  * Target для открытия.
14
18
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.types.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACtF,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,oBAAY,iBAAiB,GAAG,MAAM,GAAG,KAAK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,oBAAY,oBAAoB,GAAG;IAC/B,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,GAAG,KAAK,KAAK,IAAI,CAAC;IACnE,SAAS,EAAE,aAAa,CAAC;IACzB,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7B,CAAC;AAEF,oBAAY,WAAW,GAAG;IACtB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5B,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACpC,kBAAkB,EAAE,sBAAsB,CAAC;IAC3C,aAAa,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC9C,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,YAAY,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC5C,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC1C,QAAQ,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { MutableRefObject } from 'react';
2
2
  export declare const ROOT_FONT_SIZE = 16;
3
- export declare const useAutoResize: <T extends HTMLTextAreaElement>(active: boolean, ref: MutableRefObject<T | null>, value?: string | number | readonly string[] | undefined, minAuto?: number | undefined, maxAuto?: number | undefined) => void;
3
+ export declare const useAutoResize: <T extends HTMLTextAreaElement>(active: boolean, ref: MutableRefObject<T | null>, value?: string | number | readonly string[] | undefined, minAuto?: number | undefined, maxAuto?: number | undefined, resize?: string | undefined) => void;
4
4
  //# sourceMappingURL=useAutoResize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAutoResize.d.ts","sourceRoot":"","sources":["../../../../src/components/TextArea/hooks/useAutoResize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE5D,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC,eAAO,MAAM,aAAa,0CACd,OAAO,+JAkClB,CAAC"}
1
+ {"version":3,"file":"useAutoResize.d.ts","sourceRoot":"","sources":["../../../../src/components/TextArea/hooks/useAutoResize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE5D,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC,eAAO,MAAM,aAAa,0CACd,OAAO,4LAwClB,CAAC"}