@teamturing/react-kit 2.33.0 → 2.34.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.
@@ -2,11 +2,11 @@ import { ReactNode } from 'react';
2
2
  import { TextareaAutosizeProps } from 'react-textarea-autosize';
3
3
  type Props = {
4
4
  validationStatus?: 'error' | 'success' | undefined;
5
- renderCount?: (count: number, element: HTMLTextAreaElement | null) => ReactNode;
5
+ renderCount?: (count: number, props: Props) => ReactNode;
6
6
  } & TextareaAutosizeProps;
7
7
  declare const Textarea: import("react").ForwardRefExoticComponent<{
8
8
  validationStatus?: 'error' | 'success' | undefined;
9
- renderCount?: ((count: number, element: HTMLTextAreaElement | null) => ReactNode) | undefined;
9
+ renderCount?: ((count: number, props: Props) => ReactNode) | undefined;
10
10
  } & TextareaAutosizeProps & import("react").RefAttributes<HTMLTextAreaElement>>;
11
11
  export default Textarea;
12
12
  export type { Props as TextareaProps };
package/dist/index.js CHANGED
@@ -36674,7 +36674,12 @@ const Textarea = /*#__PURE__*/React.forwardRef(({
36674
36674
  disabled: disabled,
36675
36675
  onChange: handleChange
36676
36676
  }), /*#__PURE__*/jsxRuntimeExports.jsx(TextareaCount, {
36677
- children: renderCount(count, inputRef.current)
36677
+ children: renderCount(count, {
36678
+ validationStatus,
36679
+ disabled,
36680
+ renderCount,
36681
+ ...props
36682
+ })
36678
36683
  })]
36679
36684
  });
36680
36685
  });
@@ -45,7 +45,12 @@ const Textarea = /*#__PURE__*/forwardRef(({
45
45
  disabled: disabled,
46
46
  onChange: handleChange
47
47
  }), /*#__PURE__*/jsxRuntimeExports.jsx(TextareaCount, {
48
- children: renderCount(count, inputRef.current)
48
+ children: renderCount(count, {
49
+ validationStatus,
50
+ disabled,
51
+ renderCount,
52
+ ...props
53
+ })
49
54
  })]
50
55
  });
51
56
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.33.0",
3
+ "version": "2.34.0",
4
4
  "description": "React components, hooks for create teamturing web application",
5
5
  "author": "Sungchang Park <psch300@gmail.com> (https://github.com/psch300)",
6
6
  "homepage": "https://github.com/weareteamturing/bombe#readme",
@@ -66,5 +66,5 @@
66
66
  "react-textarea-autosize": "^8.5.3",
67
67
  "styled-system": "^5.1.5"
68
68
  },
69
- "gitHead": "249a90d29a2e6dcd0cff9076059492615777a08a"
69
+ "gitHead": "39d27b08fe12ab85a07a6c18203207e6d200549c"
70
70
  }