@yamada-ui/editable 0.3.17 → 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 { FormControlOptions } from '@yamada-ui/form-control';
4
4
  import { PropGetter } from '@yamada-ui/utils';
5
5
  import { ReactNode } from 'react';
@@ -82,11 +82,11 @@ type EditableOptions = {
82
82
  /**
83
83
  * The border color when the input is focused.
84
84
  */
85
- focusBorderColor?: CSSUIProps<'unresponsive'>['borderColor'];
85
+ focusBorderColor?: ColorModeToken<CSS.Property.BorderColor, 'colors'>;
86
86
  /**
87
87
  * The border color when the input is invalid.
88
88
  */
89
- errorBorderColor?: CSSUIProps<'unresponsive'>['borderColor'];
89
+ errorBorderColor?: ColorModeToken<CSS.Property.BorderColor, 'colors'>;
90
90
  children?: ReactNode | ((props: Pick<UseEditableReturn, 'isEditing' | 'onSubmit' | 'onCancel' | 'onEdit'>) => ReactNode);
91
91
  };
92
92
  type EditableProps = Omit<HTMLUIProps<'div'>, 'onChange' | 'value' | 'defaultValue' | 'onSubmit' | 'children'> & ThemeProps<'Editable'> & UseEditableProps & EditableOptions;
@@ -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 { FormControlOptions } from '@yamada-ui/form-control';
4
4
  import { PropGetter } from '@yamada-ui/utils';
5
5
  import { ReactNode } from 'react';
@@ -82,11 +82,11 @@ type EditableOptions = {
82
82
  /**
83
83
  * The border color when the input is focused.
84
84
  */
85
- focusBorderColor?: CSSUIProps<'unresponsive'>['borderColor'];
85
+ focusBorderColor?: ColorModeToken<CSS.Property.BorderColor, 'colors'>;
86
86
  /**
87
87
  * The border color when the input is invalid.
88
88
  */
89
- errorBorderColor?: CSSUIProps<'unresponsive'>['borderColor'];
89
+ errorBorderColor?: ColorModeToken<CSS.Property.BorderColor, 'colors'>;
90
90
  children?: ReactNode | ((props: Pick<UseEditableReturn, 'isEditing' | 'onSubmit' | 'onCancel' | 'onEdit'>) => ReactNode);
91
91
  };
92
92
  type EditableProps = Omit<HTMLUIProps<'div'>, 'onChange' | 'value' | 'defaultValue' | 'onSubmit' | 'children'> & ThemeProps<'Editable'> & UseEditableProps & EditableOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/editable",
3
- "version": "0.3.17",
3
+ "version": "0.3.18",
4
4
  "description": "Yamada UI editable 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.12.4",
39
- "@yamada-ui/utils": "0.3.2",
40
- "@yamada-ui/use-controllable-state": "0.2.4",
41
- "@yamada-ui/form-control": "0.3.17",
42
- "@yamada-ui/use-focus": "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/use-controllable-state": "0.2.5",
42
+ "@yamada-ui/use-focus": "0.2.5"
43
43
  },
44
44
  "devDependencies": {
45
45
  "react": "^18.0.0",