@chakra-ui/spinner
Advanced tools
Comparing version 1.0.0-rc.0 to 1.0.0-rc.1
@@ -6,2 +6,14 @@ # Change Log | ||
# [1.0.0-rc.1](https://github.com/chakra-ui/chakra-ui/compare/@chakra-ui/spinner@1.0.0-rc.0...@chakra-ui/spinner@1.0.0-rc.1) (2020-08-06) | ||
### Bug Fixes | ||
- **spinner:** border-radius on ssr | ||
([a04ffc0](https://github.com/chakra-ui/chakra-ui/commit/a04ffc096457acbfdc174fc0973580c8ed97d03c)) | ||
# 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-rc.0](https://github.com/chakra-ui/chakra-ui/compare/@chakra-ui/spinner@1.0.0-next.7...@chakra-ui/spinner@1.0.0-rc.0) (2020-07-26) | ||
@@ -8,0 +20,0 @@ |
@@ -37,3 +37,3 @@ "use strict"; | ||
*/ | ||
var Spinner = /*#__PURE__*/React.forwardRef(function Spinner(props, ref) { | ||
var Spinner = /*#__PURE__*/(0, _system.forwardRef)(function Spinner(props, ref) { | ||
var styles = (0, _system.useStyleConfig)("Spinner", props); | ||
@@ -60,3 +60,3 @@ | ||
borderStyle: "solid", | ||
borderRadius: "full", | ||
borderRadius: "99999px", | ||
borderWidth: thickness, | ||
@@ -63,0 +63,0 @@ borderBottomColor: emptyColor, |
@@ -5,4 +5,4 @@ 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, keyframes, useStyleConfig, omitThemingProps } from "@chakra-ui/system"; | ||
import { __DEV__, cx } from "@chakra-ui/utils"; | ||
import { chakra, forwardRef, keyframes, omitThemingProps, useStyleConfig } from "@chakra-ui/system"; | ||
import { cx, __DEV__ } from "@chakra-ui/utils"; | ||
import { VisuallyHidden } from "@chakra-ui/visually-hidden"; | ||
@@ -25,3 +25,3 @@ import * as React from "react"; | ||
*/ | ||
export var Spinner = /*#__PURE__*/React.forwardRef(function Spinner(props, ref) { | ||
export var Spinner = /*#__PURE__*/forwardRef(function Spinner(props, ref) { | ||
var styles = useStyleConfig("Spinner", props); | ||
@@ -46,3 +46,3 @@ | ||
borderStyle: "solid", | ||
borderRadius: "full", | ||
borderRadius: "99999px", | ||
borderWidth: thickness, | ||
@@ -49,0 +49,0 @@ borderBottomColor: emptyColor, |
@@ -1,3 +0,2 @@ | ||
import { chakra, PropsOf, ThemingProps } from "@chakra-ui/system"; | ||
import * as React from "react"; | ||
import { chakra, GetProps, ThemingProps } from "@chakra-ui/system"; | ||
interface SpinnerOptions { | ||
@@ -34,3 +33,4 @@ /** | ||
} | ||
export declare type SpinnerProps = PropsOf<typeof chakra.div> & SpinnerOptions & ThemingProps; | ||
export interface SpinnerProps extends GetProps<typeof chakra.div, "children" | "color" | "as">, SpinnerOptions, ThemingProps { | ||
} | ||
/** | ||
@@ -42,3 +42,3 @@ * Spinner is used to indicate the loading state of a page or a component, | ||
*/ | ||
export declare const Spinner: React.ForwardRefExoticComponent<Pick<SpinnerProps, "alignContent" | "alignItems" | "alignSelf" | "appearance" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundColor" | "backgroundImage" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "boxShadow" | "boxSizing" | "color" | "cursor" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "inset" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "listStyleImage" | "listStylePosition" | "listStyleType" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "objectFit" | "objectPosition" | "opacity" | "order" | "outlineColor" | "outlineOffset" | "overflowWrap" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "pointerEvents" | "position" | "resize" | "right" | "textAlign" | "textOverflow" | "textShadow" | "textTransform" | "top" | "transform" | "transformOrigin" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "translate" | "userSelect" | "verticalAlign" | "visibility" | "whiteSpace" | "width" | "willChange" | "wordBreak" | "zIndex" | "animation" | "background" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "outline" | "overflow" | "padding" | "placeItems" | "textDecoration" | "transition" | "gridColumnGap" | "gridGap" | "gridRowGap" | "fill" | "stroke" | "label" | "p" | "slot" | "style" | "title" | "size" | "className" | "id" | "lang" | "role" | "tabIndex" | "d" | "orientation" | "speed" | "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" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "textColor" | "textDecor" | "flexDir" | "w" | "boxSize" | "maxW" | "minW" | "h" | "maxH" | "minH" | "rounded" | "borderTopRadius" | "roundedTop" | "borderRightRadius" | "roundedRight" | "borderBottomRadius" | "roundedBottom" | "borderLeftRadius" | "roundedLeft" | "roundedTopLeft" | "roundedTopRight" | "roundedBottomLeft" | "roundedBottomRight" | "borderX" | "borderY" | "shadow" | "bg" | "bgColor" | "bgBlendMode" | "bgPos" | "bgImage" | "bgImg" | "bgRepeat" | "bgSize" | "bgAttachment" | "bgPosition" | "listStylePos" | "listStyleImg" | "insetX" | "insetY" | "pos" | "htmlWidth" | "htmlHeight" | "htmlSize" | "emptyColor" | "thickness" | "variant" | "colorScheme"> & React.RefAttributes<any>>; | ||
export declare const Spinner: import("@chakra-ui/system").ComponentWithAs<"div", SpinnerProps>; | ||
export {}; |
{ | ||
"name": "@chakra-ui/spinner", | ||
"version": "1.0.0-rc.0", | ||
"version": "1.0.0-rc.1", | ||
"description": "A React component for displaying spinners and loaders", | ||
@@ -47,7 +47,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@chakra-ui/utils": "1.0.0-rc.0", | ||
"@chakra-ui/visually-hidden": "1.0.0-rc.0" | ||
"@chakra-ui/utils": "1.0.0-rc.1", | ||
"@chakra-ui/visually-hidden": "1.0.0-rc.1" | ||
}, | ||
"devDependencies": { | ||
"@chakra-ui/system": "1.0.0-rc.0" | ||
"@chakra-ui/system": "1.0.0-rc.1" | ||
}, | ||
@@ -58,3 +58,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "60392008d42867da38211687e2491f02da9975a9" | ||
"gitHead": "e0470c73a9f6be24525dc5458d6fb157096b5ae3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26425
171
1
+ Added@chakra-ui/utils@1.0.0-rc.1(transitive)
+ Added@chakra-ui/visually-hidden@1.0.0-rc.1(transitive)
- Removed@chakra-ui/utils@1.0.0-rc.0(transitive)
- Removed@chakra-ui/visually-hidden@1.0.0-rc.0(transitive)
Updated@chakra-ui/utils@1.0.0-rc.1