@chakra-ui/button
Advanced tools
Comparing version 2.0.15 to 2.0.16
@@ -5,2 +5,5 @@ import * as react from 'react'; | ||
interface ButtonGroupContext extends ThemingProps<"Button"> { | ||
/** | ||
* @default false | ||
*/ | ||
isDisabled?: boolean; | ||
@@ -7,0 +10,0 @@ } |
@@ -7,2 +7,4 @@ import { SystemProps } from '@chakra-ui/system'; | ||
* to look flushed together | ||
* | ||
* @default false | ||
*/ | ||
@@ -12,2 +14,4 @@ isAttached?: boolean; | ||
* If `true`, all wrapped button will be disabled | ||
* | ||
* @default false | ||
*/ | ||
@@ -25,2 +29,3 @@ isDisabled?: boolean; | ||
* If `true`, the button will show a spinner. | ||
* @default false | ||
*/ | ||
@@ -30,2 +35,3 @@ isLoading?: boolean; | ||
* If `true`, the button will be styled in its active state. | ||
* @default false | ||
*/ | ||
@@ -35,2 +41,3 @@ isActive?: boolean; | ||
* If `true`, the button will be disabled. | ||
* @default false | ||
*/ | ||
@@ -37,0 +44,0 @@ isDisabled?: boolean; |
@@ -153,3 +153,2 @@ "use strict"; | ||
{ | ||
disabled: isDisabled || isLoading, | ||
ref: (0, import_react_use_merge_refs.useMergeRefs)(ref, _ref), | ||
@@ -163,2 +162,3 @@ as, | ||
...rest, | ||
disabled: isDisabled || isLoading, | ||
children: [ | ||
@@ -165,0 +165,0 @@ isLoading && spinnerPlacement === "start" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)( |
@@ -16,2 +16,4 @@ import * as _chakra_ui_system from '@chakra-ui/system'; | ||
* If `true`, the button will be perfectly round. Else, it'll be slightly round | ||
* | ||
* @default false | ||
*/ | ||
@@ -18,0 +20,0 @@ isRound?: boolean; |
@@ -157,3 +157,2 @@ "use strict"; | ||
{ | ||
disabled: isDisabled || isLoading, | ||
ref: (0, import_react_use_merge_refs.useMergeRefs)(ref, _ref), | ||
@@ -167,2 +166,3 @@ as, | ||
...rest, | ||
disabled: isDisabled || isLoading, | ||
children: [ | ||
@@ -169,0 +169,0 @@ isLoading && spinnerPlacement === "start" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)( |
@@ -159,3 +159,2 @@ "use strict"; | ||
{ | ||
disabled: isDisabled || isLoading, | ||
ref: (0, import_react_use_merge_refs.useMergeRefs)(ref, _ref), | ||
@@ -169,2 +168,3 @@ as, | ||
...rest, | ||
disabled: isDisabled || isLoading, | ||
children: [ | ||
@@ -171,0 +171,0 @@ isLoading && spinnerPlacement === "start" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)( |
{ | ||
"name": "@chakra-ui/button", | ||
"version": "2.0.15", | ||
"version": "2.0.16", | ||
"description": "A React component that is a base button.", | ||
@@ -49,3 +49,3 @@ "keywords": [ | ||
"@chakra-ui/theme": "2.2.5", | ||
"@chakra-ui/layout": "2.1.14" | ||
"@chakra-ui/layout": "2.1.15" | ||
}, | ||
@@ -52,0 +52,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
57867
1565