@yamada-ui/input 0.2.3 → 0.2.5
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 +6 -0
- package/dist/input-addon.d.mts +16 -0
- package/dist/input-element.d.mts +22 -0
- package/dist/input-group.d.mts +10 -0
- package/dist/input.d.mts +22 -0
- package/package.json +6 -6
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Input, InputProps } from './input.mjs';
|
|
2
|
+
export { InputGroup, InputGroupProps } from './input-group.mjs';
|
|
3
|
+
export { InputAddonProps, InputLeftAddon, InputRightAddon } from './input-addon.mjs';
|
|
4
|
+
export { InputElementProps, InputLeftElement, InputRightElement } from './input-element.mjs';
|
|
5
|
+
import '@yamada-ui/core';
|
|
6
|
+
import '@yamada-ui/form-control';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
|
+
import { HTMLUIProps } from '@yamada-ui/core';
|
|
3
|
+
|
|
4
|
+
type InputAddonOptions = {
|
|
5
|
+
/**
|
|
6
|
+
* The placement of the element.
|
|
7
|
+
*
|
|
8
|
+
* @default 'left'
|
|
9
|
+
*/
|
|
10
|
+
placement?: 'left' | 'right';
|
|
11
|
+
};
|
|
12
|
+
type InputAddonProps = HTMLUIProps<'div'> & InputAddonOptions;
|
|
13
|
+
declare const InputLeftAddon: _yamada_ui_core.Component<"div", InputAddonProps>;
|
|
14
|
+
declare const InputRightAddon: _yamada_ui_core.Component<"div", InputAddonProps>;
|
|
15
|
+
|
|
16
|
+
export { InputAddonProps, InputLeftAddon, InputRightAddon };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
|
+
import { HTMLUIProps } from '@yamada-ui/core';
|
|
3
|
+
|
|
4
|
+
type InputElementOptions = {
|
|
5
|
+
/**
|
|
6
|
+
* If `true`, the element clickable.
|
|
7
|
+
*
|
|
8
|
+
* @default false
|
|
9
|
+
*/
|
|
10
|
+
isClick?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The placement of the element.
|
|
13
|
+
*
|
|
14
|
+
* @default 'left'
|
|
15
|
+
*/
|
|
16
|
+
placement?: 'left' | 'right';
|
|
17
|
+
};
|
|
18
|
+
type InputElementProps = HTMLUIProps<'div'> & InputElementOptions;
|
|
19
|
+
declare const InputLeftElement: _yamada_ui_core.Component<"div", InputElementProps>;
|
|
20
|
+
declare const InputRightElement: _yamada_ui_core.Component<"div", InputElementProps>;
|
|
21
|
+
|
|
22
|
+
export { InputElementProps, InputLeftElement, InputRightElement };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
|
+
import { HTMLUIProps, ThemeProps, CSSUIObject } from '@yamada-ui/core';
|
|
3
|
+
|
|
4
|
+
type InputGroupProps = HTMLUIProps<'div'> & ThemeProps<'Input'>;
|
|
5
|
+
type InputGroupContext = Record<string, CSSUIObject>;
|
|
6
|
+
declare const useInputGroup: () => InputGroupContext;
|
|
7
|
+
|
|
8
|
+
declare const InputGroup: _yamada_ui_core.Component<"div", InputGroupProps>;
|
|
9
|
+
|
|
10
|
+
export { InputGroup, InputGroupProps, useInputGroup };
|
package/dist/input.d.mts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
|
+
import { HTMLUIProps, ThemeProps, CSSUIProps } from '@yamada-ui/core';
|
|
3
|
+
import { FormControlOptions } from '@yamada-ui/form-control';
|
|
4
|
+
|
|
5
|
+
type InputOptions = {
|
|
6
|
+
/**
|
|
7
|
+
* The border color when the input is focused.
|
|
8
|
+
*/
|
|
9
|
+
focusBorderColor?: CSSUIProps<'unresponsive'>['borderColor'];
|
|
10
|
+
/**
|
|
11
|
+
* The border color when the input is invalid.
|
|
12
|
+
*/
|
|
13
|
+
errorBorderColor?: CSSUIProps<'unresponsive'>['borderColor'];
|
|
14
|
+
/**
|
|
15
|
+
* The native HTML `size` attribute to be passed to the `input`
|
|
16
|
+
*/
|
|
17
|
+
htmlSize?: number;
|
|
18
|
+
};
|
|
19
|
+
type InputProps = Omit<HTMLUIProps<'input'>, 'disabled' | 'required' | 'readOnly' | 'size'> & ThemeProps<'Input'> & InputOptions & FormControlOptions;
|
|
20
|
+
declare const Input: _yamada_ui_core.Component<"input", InputProps>;
|
|
21
|
+
|
|
22
|
+
export { Input, InputProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/input",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Yamada UI input component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yamada",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"url": "https://github.com/hirotomoyamada/yamada-ui/issues"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@yamada-ui/core": "0.
|
|
39
|
-
"@yamada-ui/utils": "0.1.
|
|
40
|
-
"@yamada-ui/file-input": "0.2.
|
|
41
|
-
"@yamada-ui/form-control": "0.2.
|
|
42
|
-
"@yamada-ui/use-token": "0.1.
|
|
38
|
+
"@yamada-ui/core": "0.5.0",
|
|
39
|
+
"@yamada-ui/utils": "0.1.3",
|
|
40
|
+
"@yamada-ui/file-input": "0.2.5",
|
|
41
|
+
"@yamada-ui/form-control": "0.2.5",
|
|
42
|
+
"@yamada-ui/use-token": "0.1.17"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"react": "^18.0.0",
|