@jamsrui/input-group 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 +10 -2
- package/dist/index.mjs +1 -1
- package/dist/input-group-config.d.mts +22 -0
- package/dist/input-group-config.mjs +1 -0
- package/dist/input-group-root.mjs +1 -1
- package/dist/input-group.mjs +1 -1
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import { InputGroup as InputGroup$1 } from './input-group.mjs';
|
|
4
|
+
export { InputGroupContext, useInputGroupContext, useInputGroupContextOpt } from './input-group-context.mjs';
|
|
4
5
|
import { InputGroupPrefix } from './input-group-prefix.mjs';
|
|
5
6
|
import { InputGroupSuffix } from './input-group-suffix.mjs';
|
|
6
7
|
export { useInputGroup } from './use-input-group.mjs';
|
|
7
|
-
export { InputGroupContext, useInputGroupContext, useInputGroupContextOpt } from './input-group-context.mjs';
|
|
8
8
|
import '@jamsrui/utils';
|
|
9
9
|
import './input-group-root.mjs';
|
|
10
10
|
import './styles.mjs';
|
|
@@ -14,5 +14,13 @@ declare const InputGroup: ((props: InputGroup$1.Props) => react_jsx_runtime.JSX.
|
|
|
14
14
|
Prefix: (props: InputGroupPrefix.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
15
15
|
Suffix: (props: InputGroupSuffix.Props) => react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
16
16
|
};
|
|
17
|
+
declare namespace InputGroup {
|
|
18
|
+
interface Props extends InputGroup$1.Props {
|
|
19
|
+
}
|
|
20
|
+
interface Prefix extends InputGroupPrefix.Props {
|
|
21
|
+
}
|
|
22
|
+
interface Suffix extends InputGroupSuffix.Props {
|
|
23
|
+
}
|
|
24
|
+
}
|
|
17
25
|
|
|
18
|
-
export { InputGroup };
|
|
26
|
+
export { InputGroup, InputGroupPrefix, InputGroupSuffix };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{InputGroup as
|
|
1
|
+
import{InputGroup as p}from"./input-group.mjs";import{InputGroupContext as o,useInputGroupContext as e,useInputGroupContextOpt as u}from"./input-group-context.mjs";import{InputGroupPrefix as r}from"./input-group-prefix.mjs";import{InputGroupSuffix as t}from"./input-group-suffix.mjs";import{useInputGroup as n}from"./use-input-group.mjs";const I=Object.assign(p,{Root:p,Prefix:r,Suffix:t});export{I as InputGroup,o as InputGroupContext,r as InputGroupPrefix,t as InputGroupSuffix,n as useInputGroup,e as useInputGroupContext,u as useInputGroupContextOpt};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { WithGlobalConfig } from '@jamsrui/core';
|
|
3
|
+
import { InputGroup } from './input-group.mjs';
|
|
4
|
+
import './use-input-group.mjs';
|
|
5
|
+
import '@jamsrui/utils';
|
|
6
|
+
import './input-group-prefix.mjs';
|
|
7
|
+
import 'react';
|
|
8
|
+
import './input-group-root.mjs';
|
|
9
|
+
import './input-group-suffix.mjs';
|
|
10
|
+
import './styles.mjs';
|
|
11
|
+
|
|
12
|
+
declare const useInputGroupConfig: () => InputGroupConfig.Props;
|
|
13
|
+
declare const InputGroupConfig: (props: Omit<Partial<InputGroupConfig.Props>, "children"> & {
|
|
14
|
+
merge?: boolean;
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
17
|
+
declare namespace InputGroupConfig {
|
|
18
|
+
interface Props extends WithGlobalConfig<InputGroup.Props> {
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { InputGroupConfig, useInputGroupConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{createConfigContext as o}from"@jamsrui/utils";const[n,e]=o({displayName:"InputGroupConfigContext"});export{n as InputGroupConfig,e as useInputGroupConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useRenderElement as t}from"@jamsrui/hooks";import{useInputGroupContext as
|
|
1
|
+
"use client";import{useRenderElement as t}from"@jamsrui/hooks";import{useInputGroupContext as r}from"./input-group-context.mjs";const u=o=>{const{getRootProps:e}=r();return t("div",{props:[e(o)]})};export{u as InputGroupRoot};
|
package/dist/input-group.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as
|
|
1
|
+
"use client";import{jsx as r}from"react/jsx-runtime";import{mergeConfigProps as n}from"@jamsrui/utils";import{useInputGroupConfig as e}from"./input-group-config.mjs";import{InputGroupContext as s}from"./input-group-context.mjs";import{InputGroupRoot as i}from"./input-group-root.mjs";import{inputGroupVariants as m}from"./styles.mjs";import{useInputGroup as f}from"./use-input-group.mjs";const x=o=>{const p=e(),t=n(m.defaultVariants,p,o),u=f(t);return r(s,{value:u,children:r(i,{children:o.children})})};export{x as InputGroup};
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/input-group",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": ">=19"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@jamsrui/core": "^0.0.
|
|
9
|
-
"@jamsrui/description": "^0.0.
|
|
10
|
-
"@jamsrui/label": "^0.0.
|
|
11
|
-
"@jamsrui/
|
|
12
|
-
"@jamsrui/
|
|
13
|
-
"@jamsrui/
|
|
8
|
+
"@jamsrui/core": "^0.0.14",
|
|
9
|
+
"@jamsrui/description": "^0.0.10",
|
|
10
|
+
"@jamsrui/label": "^0.0.10",
|
|
11
|
+
"@jamsrui/hooks": "^0.0.17",
|
|
12
|
+
"@jamsrui/utils": "^0.0.17",
|
|
13
|
+
"@jamsrui/field-error": "^0.0.10"
|
|
14
14
|
},
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|