@jamsrui/textarea 0.0.8 → 0.0.9

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.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,5 @@
1
1
  export { Textarea } from './textarea.mjs';
2
2
  export { TextareaConfig, useTextareaConfig } from './textarea-config.mjs';
3
- import 'react';
4
- import '@jamsrui/utils';
5
3
  import 'react/jsx-runtime';
4
+ import '@jamsrui/utils';
6
5
  import '@jamsrui/core';
@@ -1,7 +1,6 @@
1
1
  import { Textarea } from './textarea.mjs';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { GlobalConfigProps } from '@jamsrui/core';
4
- import 'react';
3
+ import { WithGlobalConfig } from '@jamsrui/core';
5
4
  import '@jamsrui/utils';
6
5
 
7
6
  declare const useTextareaConfig: () => Record<string, any>;
@@ -10,8 +9,7 @@ declare const TextareaConfig: (props: Omit<Partial<Record<string, any>>, "childr
10
9
  children: React.ReactNode;
11
10
  }) => react_jsx_runtime.JSX.Element;
12
11
  declare namespace TextareaConfig {
13
- interface Props extends Textarea.Props, GlobalConfigProps<Textarea.Props> {
14
- }
12
+ type Props = WithGlobalConfig<Textarea.Props>;
15
13
  }
16
14
 
17
15
  export { TextareaConfig, useTextareaConfig };
@@ -1 +1 @@
1
- import{createConfigContext as e}from"@jamsrui/utils";const[r,a]=e({displayName:"TextareaContext"});export{r as TextareaConfig,a as useTextareaConfig};
1
+ import{createConfigContext as e}from"@jamsrui/utils";const[o,a]=e({displayName:"TextareaContext"});export{o as TextareaConfig,a as useTextareaConfig};
@@ -1,9 +1,9 @@
1
- import * as react from 'react';
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { UIProps } from '@jamsrui/utils';
3
3
 
4
- declare const Textarea: (props: Textarea.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
4
+ declare const Textarea: (props: Textarea.Props) => react_jsx_runtime.JSX.Element;
5
5
  declare namespace Textarea {
6
- interface Props extends UIProps<"div"> {
6
+ interface Props extends UIProps<"textarea"> {
7
7
  }
8
8
  }
9
9
 
package/dist/textarea.mjs CHANGED
@@ -1 +1 @@
1
- import{useRenderElement as t}from"@jamsrui/hooks";const s=e=>{const{render:o,...r}=e;return t("div",{props:r})};export{s as Textarea};
1
+ import{jsx as r}from"react/jsx-runtime";const t=e=>r("textarea",{...e});export{t as Textarea};
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@jamsrui/textarea",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "peerDependencies": {
5
5
  "react": ">=19"
6
6
  },
7
7
  "dependencies": {
8
- "@jamsrui/hooks": "^0.0.8",
9
- "@jamsrui/core": "^0.0.7",
10
- "@jamsrui/utils": "^0.0.8"
8
+ "@jamsrui/hooks": "^0.0.9",
9
+ "@jamsrui/core": "^0.0.8",
10
+ "@jamsrui/utils": "^0.0.9",
11
+ "@jamsrui/input": "^0.0.9"
11
12
  },
12
13
  "exports": {
13
14
  ".": {