Socket
Socket
Sign inDemoInstall

@chakra-ui/button

Package Overview
Dependencies
111
Maintainers
4
Versions
456
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-next.4 to 1.0.0-next.5

9

CHANGELOG.md

@@ -6,2 +6,11 @@ # Change Log

# [1.0.0-next.5](https://github.com/chakra-ui/chakra-ui/compare/@chakra-ui/button@1.0.0-next.4...@chakra-ui/button@1.0.0-next.5) (2020-07-15)
**Note:** Version bump only for package @chakra-ui/button
# Change Log
All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# 1.0.0-next.4 (2020-07-01)

@@ -8,0 +17,0 @@

10

dist/cjs/button-group.js

@@ -36,3 +36,4 @@ "use strict";

isAttached = props.isAttached,
rest = _objectWithoutPropertiesLoose(props, ["size", "colorScheme", "variant", "className", "spacing", "isAttached"]);
isDisabled = props.isDisabled,
rest = _objectWithoutPropertiesLoose(props, ["size", "colorScheme", "variant", "className", "spacing", "isAttached", "isDisabled"]);

@@ -61,5 +62,6 @@ var css = isAttached ? {

colorScheme: colorScheme,
variant: variant
variant: variant,
isDisabled: isDisabled
};
}, [size, colorScheme, variant]);
}, [size, colorScheme, variant, isDisabled]);
return /*#__PURE__*/React.createElement(ButtonGroupContextProvider, {

@@ -71,3 +73,3 @@ value: context

display: "inline-flex",
sx: css,
__css: css,
className: _className

@@ -74,0 +76,0 @@ }, rest)));

86

dist/cjs/button.js

@@ -20,8 +20,7 @@ "use strict";

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
var StyledButton = (0, _system.chakra)("button", {
themeKey: "Button",
baseStyle: {

@@ -41,35 +40,25 @@ display: "inline-flex",

var Button = /*#__PURE__*/(0, _system.forwardRef)(function Button(props, ref) {
var _styles$focusSelector;
var _buttonStyles$_focus;
var group = (0, _buttonGroup.useButtonGroup)();
var styles = (0, _system.useStyleConfig)("Button", _extends({}, group, props));
var isDisabled = props.isDisabled,
isLoading = props.isLoading,
isActive = props.isActive,
isFullWidth = props.isFullWidth,
children = props.children,
leftIcon = props.leftIcon,
rightIcon = props.rightIcon,
loadingText = props.loadingText,
_props$iconSpacing = props.iconSpacing,
iconSpacing = _props$iconSpacing === void 0 ? "0.5rem" : _props$iconSpacing,
_props$type = props.type,
type = _props$type === void 0 ? "button" : _props$type,
spinner = props.spinner,
_props$variant = props.variant,
variant = _props$variant === void 0 ? group == null ? void 0 : group.variant : _props$variant,
_props$colorScheme = props.colorScheme,
colorScheme = _props$colorScheme === void 0 ? group == null ? void 0 : group.colorScheme : _props$colorScheme,
_props$size = props.size,
size = _props$size === void 0 ? group == null ? void 0 : group.size : _props$size,
className = props.className,
as = props.as,
rest = _objectWithoutPropertiesLoose(props, ["isDisabled", "isLoading", "isActive", "isFullWidth", "children", "leftIcon", "rightIcon", "loadingText", "iconSpacing", "type", "spinner", "variant", "colorScheme", "size", "className", "as"]);
var styles = (0, _system.useComponentStyle)({
themeKey: "Button",
variant: variant,
size: size,
colorScheme: colorScheme
});
var _omitThemingProps = (0, _system.omitThemingProps)(props),
_omitThemingProps$isD = _omitThemingProps.isDisabled,
isDisabled = _omitThemingProps$isD === void 0 ? group == null ? void 0 : group.isDisabled : _omitThemingProps$isD,
isLoading = _omitThemingProps.isLoading,
isActive = _omitThemingProps.isActive,
isFullWidth = _omitThemingProps.isFullWidth,
children = _omitThemingProps.children,
leftIcon = _omitThemingProps.leftIcon,
rightIcon = _omitThemingProps.rightIcon,
loadingText = _omitThemingProps.loadingText,
_omitThemingProps$ico = _omitThemingProps.iconSpacing,
iconSpacing = _omitThemingProps$ico === void 0 ? "0.5rem" : _omitThemingProps$ico,
_omitThemingProps$typ = _omitThemingProps.type,
type = _omitThemingProps$typ === void 0 ? "button" : _omitThemingProps$typ,
spinner = _omitThemingProps.spinner,
className = _omitThemingProps.className,
as = _omitThemingProps.as,
rest = _objectWithoutPropertiesLoose(_omitThemingProps, ["isDisabled", "isLoading", "isActive", "isFullWidth", "children", "leftIcon", "rightIcon", "loadingText", "iconSpacing", "type", "spinner", "className", "as"]);
/**

@@ -82,5 +71,6 @@ * When button is used within ButtonGroup (i.e flushed with sibling buttons),

var focusSelector = _system.pseudoSelectors["_focus"];
var _focus = (0, _utils.merge)((_styles$focusSelector = styles == null ? void 0 : styles[focusSelector]) != null ? _styles$focusSelector : {}, {
var buttonStyles = styles.container;
var _focus = (0, _utils.merge)({}, (_buttonStyles$_focus = buttonStyles == null ? void 0 : buttonStyles["_focus"]) != null ? _buttonStyles$_focus : {}, {
zIndex: 1

@@ -99,5 +89,3 @@ });

"data-loading": (0, _utils.dataAttr)(isLoading),
variant: variant,
colorScheme: colorScheme,
size: size,
__css: buttonStyles,
className: _className

@@ -107,5 +95,7 @@ }, !!group && {

}, rest), leftIcon && !isLoading && /*#__PURE__*/React.createElement(ButtonIcon, {
__css: styles.icon,
mr: iconSpacing,
children: leftIcon
}), isLoading && /*#__PURE__*/React.createElement(ButtonSpinner, {
__css: styles.spinner,
spacing: iconSpacing,

@@ -118,2 +108,3 @@ label: loadingText,

}) : children, rightIcon && !isLoading && /*#__PURE__*/React.createElement(ButtonIcon, {
__css: styles.icon,
ml: iconSpacing,

@@ -130,2 +121,6 @@ children: rightIcon

function ButtonIcon(props) {
var children = props.children,
className = props.className,
rest = _objectWithoutPropertiesLoose(props, ["children", "className"]);
var a11yProps = {

@@ -135,7 +130,10 @@ "aria-hidden": true,

};
var children = /*#__PURE__*/React.isValidElement(props.children) ? /*#__PURE__*/React.cloneElement(props.children, a11yProps) : props.children;
return /*#__PURE__*/React.createElement(_system.chakra.span, _extends({
className: "chakra-button__icon"
}, props, {
children: children
var _children = /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, a11yProps) : children;
var _className = (0, _utils.cx)("chakra-button__icon", className);
return /*#__PURE__*/React.createElement(_system.chakra.span, _extends({}, rest, {
className: _className,
children: _children
}));

@@ -163,4 +161,2 @@ }

return /*#__PURE__*/React.createElement(_system.chakra.div, _extends({
fontSize: "1em",
lineHeight: "normal",
position: label ? "relative" : "absolute",

@@ -167,0 +163,0 @@ mr: label ? spacing : 0,

@@ -33,3 +33,3 @@ "use strict";

var iconElement = icon || children;
var isValidElement = icon || children;
var a11yProps = {

@@ -44,3 +44,3 @@ "aria-hidden": true,

"aria-label": ariaLabel
}, rest), /*#__PURE__*/React.isValidElement(iconElement) ? /*#__PURE__*/React.cloneElement(iconElement, a11yProps) : null);
}, rest), /*#__PURE__*/React.isValidElement(isValidElement) ? /*#__PURE__*/React.cloneElement(isValidElement, a11yProps) : null);
});

@@ -47,0 +47,0 @@ exports.IconButton = IconButton;

@@ -6,3 +6,3 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

import { chakra } from "@chakra-ui/system";
import { createContext, __DEV__, cx } from "@chakra-ui/utils";
import { createContext, cx, __DEV__ } from "@chakra-ui/utils";
import * as React from "react";

@@ -21,5 +21,6 @@ var [ButtonGroupContextProvider, useButtonGroup] = createContext({

spacing = "0.5rem",
isAttached
isAttached,
isDisabled
} = props,
rest = _objectWithoutPropertiesLoose(props, ["size", "colorScheme", "variant", "className", "spacing", "isAttached"]);
rest = _objectWithoutPropertiesLoose(props, ["size", "colorScheme", "variant", "className", "spacing", "isAttached", "isDisabled"]);

@@ -47,4 +48,5 @@ var css = isAttached ? {

colorScheme,
variant
}), [size, colorScheme, variant]);
variant,
isDisabled
}), [size, colorScheme, variant, isDisabled]);
return /*#__PURE__*/React.createElement(ButtonGroupContextProvider, {

@@ -56,3 +58,3 @@ value: context

display: "inline-flex",
sx: css,
__css: css,
className: _className

@@ -59,0 +61,0 @@ }, rest)));

@@ -0,12 +1,11 @@

function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
import { Spinner } from "@chakra-ui/spinner";
import { chakra, forwardRef, useComponentStyle, pseudoSelectors } from "@chakra-ui/system";
import { dataAttr, __DEV__, merge, cx } from "@chakra-ui/utils";
import { chakra, forwardRef, omitThemingProps, useStyleConfig } from "@chakra-ui/system";
import { cx, dataAttr, merge, __DEV__ } from "@chakra-ui/utils";
import * as React from "react";
import { useButtonGroup } from "./button-group";
var StyledButton = chakra("button", {
themeKey: "Button",
baseStyle: {

@@ -26,8 +25,10 @@ display: "inline-flex",

export var Button = /*#__PURE__*/forwardRef(function Button(props, ref) {
var _styles$focusSelector;
var _buttonStyles$_focus;
var group = useButtonGroup();
var styles = useStyleConfig("Button", _extends({}, group, props));
var {
isDisabled,
var _omitThemingProps = omitThemingProps(props),
{
isDisabled = group == null ? void 0 : group.isDisabled,
isLoading,

@@ -43,16 +44,6 @@ isActive,

spinner,
variant = group == null ? void 0 : group.variant,
colorScheme = group == null ? void 0 : group.colorScheme,
size = group == null ? void 0 : group.size,
className,
as
} = props,
rest = _objectWithoutPropertiesLoose(props, ["isDisabled", "isLoading", "isActive", "isFullWidth", "children", "leftIcon", "rightIcon", "loadingText", "iconSpacing", "type", "spinner", "variant", "colorScheme", "size", "className", "as"]);
var styles = useComponentStyle({
themeKey: "Button",
variant,
size,
colorScheme
});
} = _omitThemingProps,
rest = _objectWithoutPropertiesLoose(_omitThemingProps, ["isDisabled", "isLoading", "isActive", "isFullWidth", "children", "leftIcon", "rightIcon", "loadingText", "iconSpacing", "type", "spinner", "className", "as"]);
/**

@@ -65,5 +56,6 @@ * When button is used within ButtonGroup (i.e flushed with sibling buttons),

var focusSelector = pseudoSelectors["_focus"];
var _focus = merge((_styles$focusSelector = styles == null ? void 0 : styles[focusSelector]) != null ? _styles$focusSelector : {}, {
var buttonStyles = styles.container;
var _focus = merge({}, (_buttonStyles$_focus = buttonStyles == null ? void 0 : buttonStyles["_focus"]) != null ? _buttonStyles$_focus : {}, {
zIndex: 1

@@ -82,5 +74,3 @@ });

"data-loading": dataAttr(isLoading),
variant: variant,
colorScheme: colorScheme,
size: size,
__css: buttonStyles,
className: _className

@@ -90,5 +80,7 @@ }, !!group && {

}, rest), leftIcon && !isLoading && /*#__PURE__*/React.createElement(ButtonIcon, {
__css: styles.icon,
mr: iconSpacing,
children: leftIcon
}), isLoading && /*#__PURE__*/React.createElement(ButtonSpinner, {
__css: styles.spinner,
spacing: iconSpacing,

@@ -101,2 +93,3 @@ label: loadingText,

}) : children, rightIcon && !isLoading && /*#__PURE__*/React.createElement(ButtonIcon, {
__css: styles.icon,
ml: iconSpacing,

@@ -112,2 +105,8 @@ children: rightIcon

function ButtonIcon(props) {
var {
children,
className
} = props,
rest = _objectWithoutPropertiesLoose(props, ["children", "className"]);
var a11yProps = {

@@ -117,7 +116,10 @@ "aria-hidden": true,

};
var children = /*#__PURE__*/React.isValidElement(props.children) ? /*#__PURE__*/React.cloneElement(props.children, a11yProps) : props.children;
return /*#__PURE__*/React.createElement(chakra.span, _extends({
className: "chakra-button__icon"
}, props, {
children: children
var _children = /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, a11yProps) : children;
var _className = cx("chakra-button__icon", className);
return /*#__PURE__*/React.createElement(chakra.span, _extends({}, rest, {
className: _className,
children: _children
}));

@@ -146,4 +148,2 @@ }

return /*#__PURE__*/React.createElement(chakra.div, _extends({
fontSize: "1em",
lineHeight: "normal",
position: label ? "relative" : "absolute",

@@ -150,0 +150,0 @@ mr: label ? spacing : 0,

@@ -22,3 +22,3 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

var iconElement = icon || children;
var isValidElement = icon || children;
var a11yProps = {

@@ -33,3 +33,3 @@ "aria-hidden": true,

"aria-label": ariaLabel
}, rest), /*#__PURE__*/React.isValidElement(iconElement) ? /*#__PURE__*/React.cloneElement(iconElement, a11yProps) : null);
}, rest), /*#__PURE__*/React.isValidElement(isValidElement) ? /*#__PURE__*/React.cloneElement(isValidElement, a11yProps) : null);
});

@@ -36,0 +36,0 @@

@@ -1,4 +0,4 @@

import { chakra, PropsOf, ThemingProps, SystemProps } from "@chakra-ui/system";
import { chakra, PropsOf, SystemProps, ThemingProps } from "@chakra-ui/system";
import * as React from "react";
export declare type ButtonGroupProps = PropsOf<typeof chakra.div> & {
export declare type ButtonGroupProps = PropsOf<typeof chakra.div> & ThemingProps & {
/**

@@ -9,2 +9,3 @@ * If `true`, the borderRadius of button that are direct children will be altered

isAttached?: boolean;
isDisabled?: boolean;
/**

@@ -16,5 +17,7 @@ * The spacing between the buttons

};
declare const useButtonGroup: () => ThemingProps;
declare const useButtonGroup: () => ThemingProps & {
isDisabled?: boolean | undefined;
};
export { useButtonGroup };
export declare const ButtonGroup: React.ForwardRefExoticComponent<Pick<ButtonGroupProps, "p" | "style" | "title" | "slot" | "size" | "className" | "color" | "height" | "id" | "lang" | "width" | "role" | "tabIndex" | "cursor" | "d" | "display" | "fill" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "opacity" | "order" | "orientation" | "overflow" | "pointerEvents" | "spacing" | "stroke" | "textDecoration" | "transform" | "visibility" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "key" | "sx" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "left" | "right" | "top" | "bottom" | "as" | "_hover" | "_active" | "_focus" | "_highlighted" | "_focusWithin" | "_focusVisible" | "_disabled" | "_readOnly" | "_before" | "_after" | "_empty" | "_expanded" | "_checked" | "_grabbed" | "_pressed" | "_invalid" | "_valid" | "_loading" | "_selected" | "_hidden" | "_autofill" | "_even" | "_odd" | "_first" | "_last" | "_notFirst" | "_notLast" | "_visited" | "_activeLink" | "_indeterminate" | "_groupHover" | "_groupFocus" | "_groupActive" | "_groupDisabled" | "_groupInvalid" | "_groupChecked" | "_placeholder" | "_fullScreen" | "_selection" | "m" | "margin" | "mt" | "marginTop" | "mr" | "marginRight" | "mb" | "marginBottom" | "ml" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "padding" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "px" | "paddingX" | "py" | "paddingY" | "textColor" | "lineHeight" | "textAlign" | "wordBreak" | "overflowWrap" | "textOverflow" | "textTransform" | "whiteSpace" | "textDecor" | "alignItems" | "alignContent" | "justifyItems" | "justifyContent" | "flexWrap" | "flexBasis" | "flexDirection" | "flexDir" | "flex" | "justifySelf" | "alignSelf" | "flexGrow" | "flexShrink" | "gridGap" | "gridColumnGap" | "gridRowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "placeItems" | "w" | "boxSize" | "maxWidth" | "maxW" | "minWidth" | "minW" | "h" | "maxHeight" | "maxH" | "minHeight" | "minH" | "verticalAlign" | "overflowX" | "overflowY" | "boxSizing" | "border" | "borderWidth" | "borderStyle" | "borderColor" | "borderRadius" | "rounded" | "borderTop" | "borderTopWidth" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderTopStyle" | "borderBottomStyle" | "borderLeftStyle" | "borderRightStyle" | "borderTopColor" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderRight" | "borderBottom" | "borderLeft" | "borderTopRadius" | "roundedTop" | "borderRightRadius" | "roundedRight" | "borderBottomRadius" | "roundedBottom" | "borderLeftRadius" | "roundedLeft" | "borderTopLeftRadius" | "roundedTopLeft" | "borderTopRightRadius" | "roundedTopRight" | "borderBottomLeftRadius" | "roundedBottomLeft" | "borderBottomRightRadius" | "roundedBottomRight" | "borderX" | "borderY" | "boxShadow" | "shadow" | "textShadow" | "bg" | "background" | "bgColor" | "backgroundColor" | "backgroundImage" | "backgroundBlendMode" | "bgBlendMode" | "backgroundSize" | "bgPos" | "backgroundPosition" | "bgImage" | "bgImg" | "bgRepeat" | "backgroundRepeat" | "bgSize" | "bgAttachment" | "backgroundAttachment" | "bgPosition" | "zIndex" | "inset" | "insetX" | "insetY" | "pos" | "position" | "outline" | "outlineOffset" | "outlineColor" | "animation" | "appearance" | "transformOrigin" | "userSelect" | "resize" | "transition" | "transitionProperty" | "transitionTimingFunction" | "transitionDuration" | "objectFit" | "objectPosition" | "float" | "willChange" | "listStyleType" | "listStylePosition" | "listStylePos" | "listStyleImage" | "listStyleImg" | "isTruncated" | "noOfLines" | "htmlWidth" | "htmlHeight" | "htmlSize" | "variant" | "colorScheme" | "apply" | "layerStyle" | "textStyle" | "isAttached"> & React.RefAttributes<any>>;
export declare const ButtonGroup: React.ForwardRefExoticComponent<Pick<ButtonGroupProps, "p" | "style" | "title" | "slot" | "size" | "className" | "color" | "height" | "id" | "lang" | "width" | "role" | "tabIndex" | "cursor" | "d" | "display" | "fill" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "opacity" | "order" | "orientation" | "overflow" | "pointerEvents" | "spacing" | "stroke" | "textDecoration" | "transform" | "visibility" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "key" | "sx" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "left" | "right" | "top" | "bottom" | "as" | "_hover" | "_active" | "_focus" | "_highlighted" | "_focusWithin" | "_focusVisible" | "_disabled" | "_readOnly" | "_before" | "_after" | "_empty" | "_expanded" | "_checked" | "_grabbed" | "_pressed" | "_invalid" | "_valid" | "_loading" | "_selected" | "_hidden" | "_autofill" | "_even" | "_odd" | "_first" | "_last" | "_notFirst" | "_notLast" | "_visited" | "_activeLink" | "_indeterminate" | "_groupHover" | "_groupFocus" | "_groupActive" | "_groupDisabled" | "_groupInvalid" | "_groupChecked" | "_placeholder" | "_fullScreen" | "_selection" | "layerStyle" | "textStyle" | "apply" | "isTruncated" | "noOfLines" | "__css" | "m" | "margin" | "mt" | "marginTop" | "mr" | "marginRight" | "mb" | "marginBottom" | "ml" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "padding" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "px" | "paddingX" | "py" | "paddingY" | "textColor" | "transition" | "transitionProperty" | "transitionTimingFunction" | "transitionDuration" | "lineHeight" | "textAlign" | "wordBreak" | "overflowWrap" | "textOverflow" | "textTransform" | "whiteSpace" | "textDecor" | "alignItems" | "alignContent" | "justifyItems" | "justifyContent" | "flexWrap" | "flexBasis" | "flexDirection" | "flexDir" | "flex" | "justifySelf" | "alignSelf" | "flexGrow" | "flexShrink" | "transformOrigin" | "gridGap" | "gridColumnGap" | "gridRowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "placeItems" | "w" | "boxSize" | "maxWidth" | "maxW" | "minWidth" | "minW" | "h" | "maxHeight" | "maxH" | "minHeight" | "minH" | "verticalAlign" | "overflowX" | "overflowY" | "boxSizing" | "border" | "borderWidth" | "borderStyle" | "borderColor" | "borderRadius" | "rounded" | "borderTop" | "borderTopWidth" | "borderBottomWidth" | "borderLeftWidth" | "borderRightWidth" | "borderTopStyle" | "borderBottomStyle" | "borderLeftStyle" | "borderRightStyle" | "borderTopColor" | "borderBottomColor" | "borderLeftColor" | "borderRightColor" | "borderRight" | "borderBottom" | "borderLeft" | "borderTopRadius" | "roundedTop" | "borderRightRadius" | "roundedRight" | "borderBottomRadius" | "roundedBottom" | "borderLeftRadius" | "roundedLeft" | "borderTopLeftRadius" | "roundedTopLeft" | "borderTopRightRadius" | "roundedTopRight" | "borderBottomLeftRadius" | "roundedBottomLeft" | "borderBottomRightRadius" | "roundedBottomRight" | "borderX" | "borderY" | "boxShadow" | "shadow" | "textShadow" | "bg" | "background" | "bgColor" | "backgroundColor" | "backgroundImage" | "backgroundBlendMode" | "bgBlendMode" | "backgroundSize" | "bgPos" | "backgroundPosition" | "bgImage" | "bgImg" | "bgRepeat" | "backgroundRepeat" | "bgSize" | "bgAttachment" | "backgroundAttachment" | "bgPosition" | "listStyleType" | "listStylePosition" | "listStylePos" | "listStyleImage" | "listStyleImg" | "zIndex" | "inset" | "insetX" | "insetY" | "pos" | "position" | "outline" | "outlineOffset" | "outlineColor" | "animation" | "appearance" | "userSelect" | "resize" | "objectFit" | "objectPosition" | "float" | "willChange" | "htmlWidth" | "htmlHeight" | "htmlSize" | "variant" | "colorScheme" | "isAttached" | "isDisabled"> & React.RefAttributes<any>>;
//# sourceMappingURL=button-group.d.ts.map

@@ -1,2 +0,2 @@

import { PropsOf, SystemProps } from "@chakra-ui/system";
import { PropsOf, SystemProps, ThemingProps } from "@chakra-ui/system";
import * as React from "react";

@@ -47,5 +47,5 @@ declare const StyledButton: import("@chakra-ui/system").ChakraComponent<"button", {}>;

}
export declare type ButtonProps = PropsOf<typeof StyledButton> & ButtonOptions;
export declare type ButtonProps = PropsOf<typeof StyledButton> & ButtonOptions & ThemingProps;
export declare const Button: import("@chakra-ui/system").ForwardRefComponent<ButtonProps>;
export {};
//# sourceMappingURL=button.d.ts.map
{
"name": "@chakra-ui/button",
"version": "1.0.0-next.4",
"version": "1.0.0-next.5",
"description": "A React component that is a base button.",

@@ -51,13 +51,13 @@ "keywords": [

"devDependencies": {
"@chakra-ui/system": "^1.0.0-next.4"
"@chakra-ui/system": "^1.0.0-next.5"
},
"dependencies": {
"@chakra-ui/spinner": "^1.0.0-next.4",
"@chakra-ui/utils": "^1.0.0-next.4"
"@chakra-ui/spinner": "^1.0.0-next.5",
"@chakra-ui/utils": "^1.0.0-next.5"
},
"peerDependencies": {
"@chakra-ui/system": ">0.8",
"@chakra-ui/system": "^1.0.0-next.4",
"react": "16.x"
},
"gitHead": "cdd5eac1db90ba33a07c009fb8dbcc4453d6ec01"
"gitHead": "24eec5d796d81b6fafbcfa7231fb2cb15e6d5a29"
}

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

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc