@yamada-ui/number-input 0.3.16 → 0.3.18

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.
@@ -1,5 +1,5 @@
1
1
  import * as _yamada_ui_core from '@yamada-ui/core';
2
- import { HTMLUIProps, ThemeProps, CSSUIProps } from '@yamada-ui/core';
2
+ import { HTMLUIProps, ThemeProps, ColorModeToken, CSS } from '@yamada-ui/core';
3
3
  import { UseFormControlProps } from '@yamada-ui/form-control';
4
4
  import { UseCounterProps } from '@yamada-ui/use-counter';
5
5
  import { PropGetter } from '@yamada-ui/utils';
@@ -105,11 +105,11 @@ type NumberInputOptions = {
105
105
  /**
106
106
  * The border color when the input is focused.
107
107
  */
108
- focusBorderColor?: CSSUIProps<'unresponsive'>['borderColor'];
108
+ focusBorderColor?: ColorModeToken<CSS.Property.BorderColor, 'colors'>;
109
109
  /**
110
110
  * The border color when the input is invalid.
111
111
  */
112
- errorBorderColor?: CSSUIProps<'unresponsive'>['borderColor'];
112
+ errorBorderColor?: ColorModeToken<CSS.Property.BorderColor, 'colors'>;
113
113
  };
114
114
  type NumberInputProps = Omit<HTMLUIProps<'input'>, 'disabled' | 'required' | 'readOnly' | 'size' | 'onChange'> & ThemeProps<'NumberInput'> & Omit<UseNumberInputProps, 'disabled' | 'required' | 'readOnly'> & NumberInputOptions;
115
115
  declare const NumberInput: _yamada_ui_core.Component<"input", NumberInputProps>;
@@ -1,5 +1,5 @@
1
1
  import * as _yamada_ui_core from '@yamada-ui/core';
2
- import { HTMLUIProps, ThemeProps, CSSUIProps } from '@yamada-ui/core';
2
+ import { HTMLUIProps, ThemeProps, ColorModeToken, CSS } from '@yamada-ui/core';
3
3
  import { UseFormControlProps } from '@yamada-ui/form-control';
4
4
  import { UseCounterProps } from '@yamada-ui/use-counter';
5
5
  import { PropGetter } from '@yamada-ui/utils';
@@ -105,11 +105,11 @@ type NumberInputOptions = {
105
105
  /**
106
106
  * The border color when the input is focused.
107
107
  */
108
- focusBorderColor?: CSSUIProps<'unresponsive'>['borderColor'];
108
+ focusBorderColor?: ColorModeToken<CSS.Property.BorderColor, 'colors'>;
109
109
  /**
110
110
  * The border color when the input is invalid.
111
111
  */
112
- errorBorderColor?: CSSUIProps<'unresponsive'>['borderColor'];
112
+ errorBorderColor?: ColorModeToken<CSS.Property.BorderColor, 'colors'>;
113
113
  };
114
114
  type NumberInputProps = Omit<HTMLUIProps<'input'>, 'disabled' | 'required' | 'readOnly' | 'size' | 'onChange'> & ThemeProps<'NumberInput'> & Omit<UseNumberInputProps, 'disabled' | 'required' | 'readOnly'> & NumberInputOptions;
115
115
  declare const NumberInput: _yamada_ui_core.Component<"input", NumberInputProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/number-input",
3
- "version": "0.3.16",
3
+ "version": "0.3.18",
4
4
  "description": "Yamada UI number input component",
5
5
  "keywords": [
6
6
  "yamada",
@@ -35,13 +35,13 @@
35
35
  "url": "https://github.com/hirotomoyamada/yamada-ui/issues"
36
36
  },
37
37
  "dependencies": {
38
- "@yamada-ui/core": "0.12.4",
39
- "@yamada-ui/utils": "0.3.2",
40
- "@yamada-ui/form-control": "0.3.16",
41
- "@yamada-ui/icon": "0.3.14",
42
- "@yamada-ui/use-counter": "0.3.4",
43
- "@yamada-ui/use-interval": "0.2.4",
44
- "@yamada-ui/use-event-listener": "0.2.4"
38
+ "@yamada-ui/core": "0.12.5",
39
+ "@yamada-ui/utils": "0.3.3",
40
+ "@yamada-ui/form-control": "0.3.18",
41
+ "@yamada-ui/icon": "0.3.15",
42
+ "@yamada-ui/use-counter": "0.3.5",
43
+ "@yamada-ui/use-interval": "0.2.5",
44
+ "@yamada-ui/use-event-listener": "0.2.5"
45
45
  },
46
46
  "devDependencies": {
47
47
  "react": "^18.0.0",