@yamada-ui/button 0.3.16 → 0.3.17

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.
@@ -5,7 +5,7 @@ type ButtonGroupOptions = {
5
5
  /**
6
6
  * The CSS `flex-direction` property.
7
7
  */
8
- direction?: CSSUIObject['flexDirection'];
8
+ direction?: CSSUIObject["flexDirection"];
9
9
  /**
10
10
  * If `true`, the borderRadius of button that are direct children will be altered to look flushed together.
11
11
  *
@@ -19,8 +19,8 @@ type ButtonGroupOptions = {
19
19
  */
20
20
  isDisabled?: boolean;
21
21
  };
22
- type ButtonGroupProps = HTMLUIProps<'div'> & ThemeProps<'Button'> & ButtonGroupOptions;
23
- type ButtonGroupContext = ThemeProps<'Button'> & {
22
+ type ButtonGroupProps = HTMLUIProps<"div"> & ThemeProps<"Button"> & ButtonGroupOptions;
23
+ type ButtonGroupContext = ThemeProps<"Button"> & {
24
24
  isDisabled?: boolean;
25
25
  };
26
26
  declare const useButtonGroup: () => ButtonGroupContext;
@@ -5,7 +5,7 @@ type ButtonGroupOptions = {
5
5
  /**
6
6
  * The CSS `flex-direction` property.
7
7
  */
8
- direction?: CSSUIObject['flexDirection'];
8
+ direction?: CSSUIObject["flexDirection"];
9
9
  /**
10
10
  * If `true`, the borderRadius of button that are direct children will be altered to look flushed together.
11
11
  *
@@ -19,8 +19,8 @@ type ButtonGroupOptions = {
19
19
  */
20
20
  isDisabled?: boolean;
21
21
  };
22
- type ButtonGroupProps = HTMLUIProps<'div'> & ThemeProps<'Button'> & ButtonGroupOptions;
23
- type ButtonGroupContext = ThemeProps<'Button'> & {
22
+ type ButtonGroupProps = HTMLUIProps<"div"> & ThemeProps<"Button"> & ButtonGroupOptions;
23
+ type ButtonGroupContext = ThemeProps<"Button"> & {
24
24
  isDisabled?: boolean;
25
25
  };
26
26
  declare const useButtonGroup: () => ButtonGroupContext;
package/dist/button.d.mts CHANGED
@@ -9,7 +9,7 @@ type ButtonOptions = {
9
9
  *
10
10
  * @default 'button'
11
11
  */
12
- type?: 'button' | 'reset' | 'submit';
12
+ type?: "button" | "reset" | "submit";
13
13
  /**
14
14
  * If `true`, the loading state of the button is represented.
15
15
  *
@@ -39,7 +39,7 @@ type ButtonOptions = {
39
39
  /**
40
40
  * The icon to display when the button is loading.
41
41
  */
42
- loadingIcon?: ReactElement | LoadingProps['variant'];
42
+ loadingIcon?: ReactElement | LoadingProps["variant"];
43
43
  /**
44
44
  * The text to display when the button is loading.
45
45
  */
@@ -49,9 +49,9 @@ type ButtonOptions = {
49
49
  *
50
50
  * @default 'start'
51
51
  */
52
- loadingPlacement?: 'start' | 'end';
52
+ loadingPlacement?: "start" | "end";
53
53
  };
54
- type ButtonProps = HTMLUIProps<'button'> & ThemeProps<'Button'> & ButtonOptions;
54
+ type ButtonProps = HTMLUIProps<"button"> & ThemeProps<"Button"> & ButtonOptions;
55
55
  declare const Button: _yamada_ui_core.Component<"button", ButtonProps>;
56
56
  declare const useButtonType: (value?: ElementType) => {
57
57
  readonly ref: (node: HTMLElement | null) => void;
package/dist/button.d.ts CHANGED
@@ -9,7 +9,7 @@ type ButtonOptions = {
9
9
  *
10
10
  * @default 'button'
11
11
  */
12
- type?: 'button' | 'reset' | 'submit';
12
+ type?: "button" | "reset" | "submit";
13
13
  /**
14
14
  * If `true`, the loading state of the button is represented.
15
15
  *
@@ -39,7 +39,7 @@ type ButtonOptions = {
39
39
  /**
40
40
  * The icon to display when the button is loading.
41
41
  */
42
- loadingIcon?: ReactElement | LoadingProps['variant'];
42
+ loadingIcon?: ReactElement | LoadingProps["variant"];
43
43
  /**
44
44
  * The text to display when the button is loading.
45
45
  */
@@ -49,9 +49,9 @@ type ButtonOptions = {
49
49
  *
50
50
  * @default 'start'
51
51
  */
52
- loadingPlacement?: 'start' | 'end';
52
+ loadingPlacement?: "start" | "end";
53
53
  };
54
- type ButtonProps = HTMLUIProps<'button'> & ThemeProps<'Button'> & ButtonOptions;
54
+ type ButtonProps = HTMLUIProps<"button"> & ThemeProps<"Button"> & ButtonOptions;
55
55
  declare const Button: _yamada_ui_core.Component<"button", ButtonProps>;
56
56
  declare const useButtonType: (value?: ElementType) => {
57
57
  readonly ref: (node: HTMLElement | null) => void;
@@ -15,7 +15,7 @@ type IconButtonOptions = {
15
15
  */
16
16
  isRounded?: boolean;
17
17
  };
18
- type IconButtonProps = Omit<ButtonProps, 'leftIcon' | 'rightIcon' | 'loadingIcon' | 'loadingText' | 'loadingPlacement'> & IconButtonOptions;
18
+ type IconButtonProps = Omit<ButtonProps, "leftIcon" | "rightIcon" | "loadingIcon" | "loadingText" | "loadingPlacement"> & IconButtonOptions;
19
19
  declare const IconButton: _yamada_ui_core.Component<"button", IconButtonProps>;
20
20
 
21
21
  export { IconButton, IconButtonProps };
@@ -15,7 +15,7 @@ type IconButtonOptions = {
15
15
  */
16
16
  isRounded?: boolean;
17
17
  };
18
- type IconButtonProps = Omit<ButtonProps, 'leftIcon' | 'rightIcon' | 'loadingIcon' | 'loadingText' | 'loadingPlacement'> & IconButtonOptions;
18
+ type IconButtonProps = Omit<ButtonProps, "leftIcon" | "rightIcon" | "loadingIcon" | "loadingText" | "loadingPlacement"> & IconButtonOptions;
19
19
  declare const IconButton: _yamada_ui_core.Component<"button", IconButtonProps>;
20
20
 
21
21
  export { IconButton, IconButtonProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamada-ui/button",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "description": "Yamada UI button components",
5
5
  "keywords": [
6
6
  "yamada",
@@ -37,9 +37,9 @@
37
37
  "url": "https://github.com/hirotomoyamada/yamada-ui/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@yamada-ui/core": "0.12.5",
40
+ "@yamada-ui/core": "0.12.6",
41
41
  "@yamada-ui/utils": "0.3.3",
42
- "@yamada-ui/loading": "0.5.2"
42
+ "@yamada-ui/loading": "0.5.3"
43
43
  },
44
44
  "devDependencies": {
45
45
  "react": "^18.0.0",