@jamsrui/input 0.0.4 → 0.0.6
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,5 +1,6 @@
|
|
|
1
|
-
export { I as Input } from './input-
|
|
1
|
+
export { I as Input } from './input-GVjmJHy9.mjs';
|
|
2
2
|
export { InputConfig, useInputConfig } from './input-config.mjs';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
3
4
|
import 'react';
|
|
4
5
|
import '@jamsrui/utils';
|
|
5
6
|
import './input-clear-button.mjs';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import * as react from 'react';
|
|
2
3
|
import { PropGetter, UIProps, SlotsToClassNames } from '@jamsrui/utils';
|
|
3
4
|
import { InputClearButton } from './input-clear-button.mjs';
|
|
@@ -60,7 +61,7 @@ declare namespace useInput {
|
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
|
|
63
|
-
declare const Input: (props: Input.Props) =>
|
|
64
|
+
declare const Input: (props: Input.Props) => react_jsx_runtime.JSX.Element;
|
|
64
65
|
declare namespace Input {
|
|
65
66
|
interface Props extends useInput.Props {
|
|
66
67
|
}
|
package/dist/input-config.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { I as Input } from './input-
|
|
2
|
-
import * as
|
|
1
|
+
import { I as Input } from './input-GVjmJHy9.mjs';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { GlobalConfigProps } from '@jamsrui/core';
|
|
4
|
+
import 'react';
|
|
4
5
|
import '@jamsrui/utils';
|
|
5
6
|
import './input-clear-button.mjs';
|
|
6
7
|
import './input-content.mjs';
|
|
@@ -22,7 +23,7 @@ declare const InputConfig: (props: {
|
|
|
22
23
|
children?: React.ReactNode;
|
|
23
24
|
} & {
|
|
24
25
|
merge?: boolean;
|
|
25
|
-
}) =>
|
|
26
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
26
27
|
declare namespace InputConfig {
|
|
27
28
|
interface Props extends Input.Props, GlobalConfigProps<Input.Props> {
|
|
28
29
|
}
|
package/dist/input-context.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { u as useInput } from './input-
|
|
2
|
+
import { u as useInput } from './input-GVjmJHy9.mjs';
|
|
3
|
+
import 'react/jsx-runtime';
|
|
3
4
|
import '@jamsrui/utils';
|
|
4
5
|
import './input-clear-button.mjs';
|
|
5
6
|
import './input-content.mjs';
|
package/dist/input.d.mts
CHANGED
package/dist/input.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRenderElement as
|
|
1
|
+
import{Fragment as v,jsx as t,jsxs as o}from"react/jsx-runtime";import{useRenderElement as i}from"@jamsrui/hooks";import{mergeConfigProps as I}from"@jamsrui/utils";import{useInputConfig as f}from"./input-config";import{InputContent as c}from"./input-content";import{InputContentWrapper as C}from"./input-content-wrapper";import{InputContext as a}from"./input-context";import{InputEndContent as d}from"./input-end-content";import{InputErrorMessage as l}from"./input-error-message";import{InputField as g}from"./input-field";import{InputHelperText as x}from"./input-helper-text";import{InputLabel as P}from"./input-label";import{InputStartContent as E}from"./input-start-content";import{InputWrapper as W}from"./input-wrapper";import{useInput as h}from"./use-input";const B=n=>{const r=f(),e=I(r,r,n),p=h(e),{getRootProps:m}=p,u=o(v,{children:[o(W,{children:[t(P,{}),o(C,{children:[t(E,{}),t(c,{children:t(g,{})}),t(d,{})]})]}),t(x,{}),t(l,{})]}),s=i("div",{props:[m({}),{children:u}]});return t(a,{value:p,children:s})};export{B as Input};
|
package/dist/use-input.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import '@jamsrui/utils';
|
|
3
|
-
export { u as useInput } from './input-
|
|
3
|
+
export { u as useInput } from './input-GVjmJHy9.mjs';
|
|
4
4
|
import './input-clear-button.mjs';
|
|
5
5
|
import './input-content.mjs';
|
|
6
6
|
import './input-content-wrapper.mjs';
|
|
@@ -12,4 +12,5 @@ import './input-label.mjs';
|
|
|
12
12
|
import './input-start-content.mjs';
|
|
13
13
|
import './input-wrapper.mjs';
|
|
14
14
|
import './styles.mjs';
|
|
15
|
+
import 'react/jsx-runtime';
|
|
15
16
|
import 'tailwind-variants';
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/input",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@jamsrui/
|
|
9
|
-
"@jamsrui/core": "^0.0.
|
|
10
|
-
"@jamsrui/
|
|
8
|
+
"@jamsrui/utils": "^0.0.6",
|
|
9
|
+
"@jamsrui/core": "^0.0.6",
|
|
10
|
+
"@jamsrui/hooks": "^0.0.6"
|
|
11
11
|
},
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|