@yamada-ui/native-select 0.2.4 → 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.
@@ -40,7 +40,6 @@ var NativeSelect = forwardRef((props, ref) => {
40
40
  options = [],
41
41
  value,
42
42
  placeholder,
43
- isRequired,
44
43
  containerProps,
45
44
  iconProps,
46
45
  ...rest
@@ -0,0 +1,4 @@
1
+ export { NativeOption, NativeOptionGroup, NativeOptionGroupProps, NativeOptionProps, NativeSelect, NativeSelectProps, UINativeOption } from './native-select.mjs';
2
+ import '@yamada-ui/core';
3
+ import '@yamada-ui/form-control';
4
+ import 'react';
package/dist/index.js CHANGED
@@ -51,7 +51,6 @@ var NativeSelect = (0, import_core.forwardRef)((props, ref) => {
51
51
  options = [],
52
52
  value,
53
53
  placeholder,
54
- isRequired,
55
54
  containerProps,
56
55
  iconProps,
57
56
  ...rest
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  NativeOption,
3
3
  NativeOptionGroup,
4
4
  NativeSelect
5
- } from "./chunk-R46CU55R.mjs";
5
+ } from "./chunk-XYKDET4Z.mjs";
6
6
  export {
7
7
  NativeOption,
8
8
  NativeOptionGroup,
@@ -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 };
@@ -49,7 +49,6 @@ var NativeSelect = (0, import_core.forwardRef)((props, ref) => {
49
49
  options = [],
50
50
  value,
51
51
  placeholder,
52
- isRequired,
53
52
  containerProps,
54
53
  iconProps,
55
54
  ...rest
@@ -2,7 +2,7 @@ import {
2
2
  NativeOption,
3
3
  NativeOptionGroup,
4
4
  NativeSelect
5
- } from "./chunk-R46CU55R.mjs";
5
+ } from "./chunk-XYKDET4Z.mjs";
6
6
  export {
7
7
  NativeOption,
8
8
  NativeOptionGroup,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/native-select",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
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.4.3",
39
- "@yamada-ui/utils": "0.1.2",
40
- "@yamada-ui/form-control": "0.2.4",
41
- "@yamada-ui/icon": "0.2.4"
38
+ "@yamada-ui/core": "0.5.0",
39
+ "@yamada-ui/utils": "0.1.3",
40
+ "@yamada-ui/form-control": "0.2.5",
41
+ "@yamada-ui/icon": "0.2.5"
42
42
  },
43
43
  "devDependencies": {
44
44
  "react": "^18.0.0",