@yamada-ui/native-select 0.2.4 → 0.2.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
ADDED
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
|
+
import { HTMLUIProps, ThemeProps } from '@yamada-ui/core';
|
|
3
|
+
import { FormControlOptions } from '@yamada-ui/form-control';
|
|
4
|
+
import { DetailedHTMLProps, OptionHTMLAttributes } from 'react';
|
|
5
|
+
|
|
6
|
+
type Value = DetailedHTMLProps<OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>['value'];
|
|
7
|
+
type UINativeOption = Omit<DetailedHTMLProps<OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>, 'label' | 'children' | 'value'> & {
|
|
8
|
+
label?: string;
|
|
9
|
+
value?: Value | UINativeOption[];
|
|
10
|
+
};
|
|
11
|
+
type NativeSelectOptions = {
|
|
12
|
+
/**
|
|
13
|
+
* If provided, generate options based on data.
|
|
14
|
+
*
|
|
15
|
+
* @default '[]'
|
|
16
|
+
*/
|
|
17
|
+
options?: UINativeOption[];
|
|
18
|
+
/**
|
|
19
|
+
* The placeholder for select.
|
|
20
|
+
*/
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
/**
|
|
23
|
+
* If `true`, include placeholders in options.
|
|
24
|
+
*
|
|
25
|
+
* @default true
|
|
26
|
+
*/
|
|
27
|
+
placeholderInOptions?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The border color when the input is focused.
|
|
30
|
+
*/
|
|
31
|
+
focusBorderColor?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The border color when the input is invalid.
|
|
34
|
+
*/
|
|
35
|
+
errorBorderColor?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Props for container element.
|
|
38
|
+
*/
|
|
39
|
+
containerProps?: Omit<HTMLUIProps<'div'>, 'children'>;
|
|
40
|
+
/**
|
|
41
|
+
* Props for icon element.
|
|
42
|
+
*/
|
|
43
|
+
iconProps?: HTMLUIProps<'div'>;
|
|
44
|
+
};
|
|
45
|
+
type NativeSelectProps = Omit<HTMLUIProps<'select'>, 'size'> & ThemeProps<'Select'> & NativeSelectOptions & FormControlOptions;
|
|
46
|
+
declare const NativeSelect: _yamada_ui_core.Component<"select", NativeSelectProps>;
|
|
47
|
+
type NativeOptionGroupProps = HTMLUIProps<'optgroup'>;
|
|
48
|
+
declare const NativeOptionGroup: _yamada_ui_core.Component<"optgroup", NativeOptionGroupProps>;
|
|
49
|
+
type NativeOptionProps = Omit<HTMLUIProps<'option'>, 'children'> & {
|
|
50
|
+
children?: string;
|
|
51
|
+
};
|
|
52
|
+
declare const NativeOption: _yamada_ui_core.Component<"option", NativeOptionProps>;
|
|
53
|
+
|
|
54
|
+
export { NativeOption, NativeOptionGroup, NativeOptionGroupProps, NativeOptionProps, NativeSelect, NativeSelectProps, UINativeOption };
|
package/dist/native-select.js
CHANGED
package/dist/native-select.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/native-select",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Yamada UI native select component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yamada",
|
|
@@ -35,10 +35,10 @@
|
|
|
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/form-control": "0.2.
|
|
41
|
-
"@yamada-ui/icon": "0.2.
|
|
38
|
+
"@yamada-ui/core": "0.5.1",
|
|
39
|
+
"@yamada-ui/utils": "0.1.3",
|
|
40
|
+
"@yamada-ui/form-control": "0.2.6",
|
|
41
|
+
"@yamada-ui/icon": "0.2.6"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"react": "^18.0.0",
|