Socket
Socket
Sign inDemoInstall

@contentful/f36-spinner

Package Overview
Dependencies
Maintainers
104
Versions
336
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/f36-spinner - npm Package Compare versions

Comparing version 4.0.1-next-v4-6859.2287 to 4.0.1-next-v4-7604.2322

2

dist/main.js

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

var a,r,e,t,s=x(require("@babel/runtime/helpers/extends")),{cx:n,css:l,keyframes:m}=require("emotion"),o=require("react"),c=x(o),{forwardRef:f}=o,i=x(require("@contentful/f36-tokens")),{Box:p}=require("@contentful/f36-core");function x(a){return a&&a.__esModule?a.default:a}a=module.exports,r="Spinner",e=()=>g,Object.defineProperty(a,r,{get:e,set:t,enumerable:!0,configurable:!0});const u={large:"36px",medium:"20px",small:"14px"},d={default:i.gray700,primary:i.colorPrimary,white:i.colorWhite},g=f((({className:a,customSize:r,size:e="medium",variant:t="default",testId:o="cf-ui-spinner",...f},i)=>{const x=(()=>{const a=m({name:"2hhwgy",styles:"0%{transform:scale(1,1);}6.666667%{transform:scale(1.5,0.5);}13.333333%{transform:scale(1,1);}26.666667%{transform:scale(1,1);}33.333333%{transform:scale(1,1);}40%{transform:scale(1,1);}53.333333%{transform:scale(1,1);}60%{transform:scale(1.5,0.5);}66.666667%{transform:scale(1,1);}100%{transform:scale(1,1);}"}),r=m({name:"1b94qny",styles:"0%{transform:scale(1,1);}13.333333%{transform:scale(1,1);}20%{transform:scale(1.5,0.5);}26.666667%{transform:scale(1,1);}40%{transform:scale(1,1);}46.666667%{transform:scale(1,1);}53.333333%{transform:scale(1,1);}66.666667%{transform:scale(1,1);}73.333333%{transform:scale(1.5,0.5);}80%{transform:scale(1,1);}100%{transform:scale(1,1);}"}),e=m({name:"1q9z2j0",styles:"0%{transform:scale(1,1);}26.666667%{transform:scale(1,1);}33.333333%{transform:scale(1.5,0.5);}40%{transform:scale(1,1);}53.333333%{transform:scale(1,1);}60%{transform:scale(1,1);}66.666667%{transform:scale(1,1);}80%{transform:scale(1,1);}86.666667%{transform:scale(1.5,0.5);}93.333333%{transform:scale(1,1);}100%{transform:scale(1,1);}"}),t=m({name:"piqegj",styles:"0%{transform:translate(10px,33.528168px);}6.666667%{transform:translate(10px,41.764084px);}13.333333%{transform:translate(10px,33.528168px);}26.666667%{transform:translate(10px,-2.651608px);}33.333333%{transform:translate(10px,-4.471832px);}40%{transform:translate(10px,-2.651608px);}53.333333%{transform:translate(10px,33.528168px);}60%{transform:translate(10px,41.764084px);}66.666667%{transform:translate(10px,33.528168px);}100%{transform:translate(10px,33.528168px);}"}),s=m({name:"1tc59mm",styles:"0%{transform:translate(30px,33.528168px);}13.333333%{transform:translate(30px,33.528168px);}20%{transform:translate(30px,41.764084px);}26.666667%{transform:translate(30px,33.528168px);}40%{transform:translate(30px,-2.651608px);}46.666667%{transform:translate(30px,-4.471832px);}53.333333%{transform:translate(30px,-2.651608px);}66.666667%{transform:translate(30px,33.528168px);}73.333333%{transform:translate(30px,41.764084px);}80%{transform:translate(30px,33.528168px);}100%{transform:translate(30px,33.528168px);}"}),n=m({name:"21uo4u",styles:"0%{transform:translate(50px,33.528168px);}26.666667%{transform:translate(50px,33.528168px);}33.333333%{transform:translate(50px,41.764084px);}40%{transform:translate(50px,33.528168px);}53.333333%{transform:translate(50px,-2.651608px);}60%{transform:translate(50px,-4.471832px);}66.666667%{transform:translate(50px,-2.651608px);}80%{transform:translate(50px,33.528168px);}86.666667%{transform:translate(50px,41.764084px);}93.333333%{transform:translate(50px,33.528168px);}100%{transform:translate(50px,33.528168px);}"});return{root:a=>l({height:a.customSize?`${a.customSize}px`:void 0,verticalAlign:"middle",width:a.customSize?`${a.customSize}px`:u[a.size]},""),circle1Scale:l({animation:`${a} 1s linear infinite normal forwards;`},""),circle2Scale:l({animation:`${r} 1s linear infinite normal forwards;`},""),circle3Scale:l({animation:`${e} 1s linear infinite normal forwards;`},""),circle1Translate:l({animation:`${t} 1s linear infinite normal forwards;`},""),circle2Translate:l({animation:`${s} 1s linear infinite normal forwards;`},""),circle3Translate:l({animation:`${n} 1s linear infinite normal forwards;`},"")}})();return c.createElement(p,s({as:"div",display:"inline-block"},f,{className:n(x.root({size:e,customSize:r}),a),ref:i,testId:o}),c.createElement("svg",{className:l({display:"block",fill:d[t]},""),viewBox:"0 0 60 51",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,"Loading…"),c.createElement("g",{className:x.circle1Translate,transform:"translate(10,33.528168)"},c.createElement("g",{className:x.circle1Scale},c.createElement("circle",{r:"6",transform:"translate(0,10.471832)"}))),c.createElement("g",{className:x.circle2Translate,transform:"translate(30,33.528168)"},c.createElement("g",{className:x.circle2Scale},c.createElement("circle",{r:"6",transform:"translate(0,10.471832)"}))),c.createElement("g",{className:x.circle3Translate,transform:"translate(50,33.528168)"},c.createElement("g",{className:x.circle3Scale},c.createElement("circle",{r:"6",transform:"translate(0,10.471832)"})))))}));g.displayName="Spinner";
var a,r,e,t,s=x(require("@babel/runtime/helpers/extends")),{css:n,cx:l,keyframes:m}=require("emotion"),o=require("react"),c=x(o),{forwardRef:f}=o,i=x(require("@contentful/f36-tokens")),{Box:p}=require("@contentful/f36-core");function x(a){return a&&a.__esModule?a.default:a}a=module.exports,r="Spinner",e=()=>g,Object.defineProperty(a,r,{get:e,set:t,enumerable:!0,configurable:!0});const u={large:"36px",medium:"20px",small:"14px"},d={default:i.gray700,primary:i.colorPrimary,white:i.colorWhite},g=f((({className:a,customSize:r,size:e="medium",variant:t="default",testId:o="cf-ui-spinner",...f},i)=>{const x=(()=>{const a=m({name:"2hhwgy",styles:"0%{transform:scale(1,1);}6.666667%{transform:scale(1.5,0.5);}13.333333%{transform:scale(1,1);}26.666667%{transform:scale(1,1);}33.333333%{transform:scale(1,1);}40%{transform:scale(1,1);}53.333333%{transform:scale(1,1);}60%{transform:scale(1.5,0.5);}66.666667%{transform:scale(1,1);}100%{transform:scale(1,1);}"}),r=m({name:"1b94qny",styles:"0%{transform:scale(1,1);}13.333333%{transform:scale(1,1);}20%{transform:scale(1.5,0.5);}26.666667%{transform:scale(1,1);}40%{transform:scale(1,1);}46.666667%{transform:scale(1,1);}53.333333%{transform:scale(1,1);}66.666667%{transform:scale(1,1);}73.333333%{transform:scale(1.5,0.5);}80%{transform:scale(1,1);}100%{transform:scale(1,1);}"}),e=m({name:"1q9z2j0",styles:"0%{transform:scale(1,1);}26.666667%{transform:scale(1,1);}33.333333%{transform:scale(1.5,0.5);}40%{transform:scale(1,1);}53.333333%{transform:scale(1,1);}60%{transform:scale(1,1);}66.666667%{transform:scale(1,1);}80%{transform:scale(1,1);}86.666667%{transform:scale(1.5,0.5);}93.333333%{transform:scale(1,1);}100%{transform:scale(1,1);}"}),t=m({name:"piqegj",styles:"0%{transform:translate(10px,33.528168px);}6.666667%{transform:translate(10px,41.764084px);}13.333333%{transform:translate(10px,33.528168px);}26.666667%{transform:translate(10px,-2.651608px);}33.333333%{transform:translate(10px,-4.471832px);}40%{transform:translate(10px,-2.651608px);}53.333333%{transform:translate(10px,33.528168px);}60%{transform:translate(10px,41.764084px);}66.666667%{transform:translate(10px,33.528168px);}100%{transform:translate(10px,33.528168px);}"}),s=m({name:"1tc59mm",styles:"0%{transform:translate(30px,33.528168px);}13.333333%{transform:translate(30px,33.528168px);}20%{transform:translate(30px,41.764084px);}26.666667%{transform:translate(30px,33.528168px);}40%{transform:translate(30px,-2.651608px);}46.666667%{transform:translate(30px,-4.471832px);}53.333333%{transform:translate(30px,-2.651608px);}66.666667%{transform:translate(30px,33.528168px);}73.333333%{transform:translate(30px,41.764084px);}80%{transform:translate(30px,33.528168px);}100%{transform:translate(30px,33.528168px);}"}),l=m({name:"21uo4u",styles:"0%{transform:translate(50px,33.528168px);}26.666667%{transform:translate(50px,33.528168px);}33.333333%{transform:translate(50px,41.764084px);}40%{transform:translate(50px,33.528168px);}53.333333%{transform:translate(50px,-2.651608px);}60%{transform:translate(50px,-4.471832px);}66.666667%{transform:translate(50px,-2.651608px);}80%{transform:translate(50px,33.528168px);}86.666667%{transform:translate(50px,41.764084px);}93.333333%{transform:translate(50px,33.528168px);}100%{transform:translate(50px,33.528168px);}"});return{root:a=>n({height:a.customSize?`${a.customSize}px`:void 0,verticalAlign:"middle",width:a.customSize?`${a.customSize}px`:u[a.size]},""),circle1Scale:n({animation:`${a} 1s linear infinite normal forwards;`},""),circle2Scale:n({animation:`${r} 1s linear infinite normal forwards;`},""),circle3Scale:n({animation:`${e} 1s linear infinite normal forwards;`},""),circle1Translate:n({animation:`${t} 1s linear infinite normal forwards;`},""),circle2Translate:n({animation:`${s} 1s linear infinite normal forwards;`},""),circle3Translate:n({animation:`${l} 1s linear infinite normal forwards;`},"")}})();return c.createElement(p,s({as:"div",display:"inline-block"},f,{className:l(x.root({size:e,customSize:r}),a),ref:i,testId:o}),c.createElement("svg",{className:n({display:"block",fill:d[t]},""),viewBox:"0 0 60 51",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,"Loading…"),c.createElement("g",{className:x.circle1Translate,transform:"translate(10,33.528168)"},c.createElement("g",{className:x.circle1Scale},c.createElement("circle",{r:"6",transform:"translate(0,10.471832)"}))),c.createElement("g",{className:x.circle2Translate,transform:"translate(30,33.528168)"},c.createElement("g",{className:x.circle2Scale},c.createElement("circle",{r:"6",transform:"translate(0,10.471832)"}))),c.createElement("g",{className:x.circle3Translate,transform:"translate(50,33.528168)"},c.createElement("g",{className:x.circle3Scale},c.createElement("circle",{r:"6",transform:"translate(0,10.471832)"})))))}));g.displayName="Spinner";
//# sourceMappingURL=main.js.map
import React from "react";
import { CommonProps, PolymorphicComponentProps } from "@contentful/f36-core";
import { CommonProps, PropsWithHTMLElement } from "@contentful/f36-core";
type SpinnerVariant = 'primary' | 'default' | 'white';

@@ -20,5 +20,19 @@ type SpinnerSize = 'large' | 'medium' | 'small';

};
export type SpinnerProps = PolymorphicComponentProps<'div', SpinnerInternalProps>;
export const Spinner: React.ForwardRefExoticComponent<Pick<SpinnerProps, "hidden" | "dir" | "slot" | "title" | "color" | "size" | "translate" | "prefix" | "children" | "key" | "as" | keyof CommonProps | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "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" | "customSize" | "variant"> & React.RefAttributes<HTMLDivElement>>;
export type SpinnerProps = PropsWithHTMLElement<SpinnerInternalProps, 'div'>;
export const Spinner: React.ForwardRefExoticComponent<Omit<Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>>, never>, "size" | keyof CommonProps | "variant" | "customSize"> & CommonProps & {
/**
* Determines the color that will be used in the `fill` property of the SVG
*/
variant?: SpinnerVariant;
/**
* Allows resizing the spinner with any N value. The final size will be NxN pixels
*/
customSize?: number;
/**
* Controls the size of the spinner. The default `medium` size is 20px wide,
* the `small` size is 14px wide, and the `large` size is 36px wide
*/
size?: SpinnerSize;
} & React.RefAttributes<HTMLDivElement>>;
//# sourceMappingURL=types.d.ts.map
{
"name": "@contentful/f36-spinner",
"version": "4.0.1-next-v4-6859.2287+1c884886",
"version": "4.0.1-next-v4-7604.2322+0bee7360",
"description": "Forma 36: Spinner Component",

@@ -10,8 +10,8 @@ "scripts": {

"@babel/runtime": "^7.6.2",
"@contentful/f36-core": "4.0.1-next-v4-6859.2287+1c884886",
"@contentful/f36-tokens": "4.0.1-next-v4-6859.2287+1c884886",
"@contentful/f36-core": "4.0.1-next-v4-7604.2322+0bee7360",
"@contentful/f36-tokens": "4.0.1-next-v4-7604.2322+0bee7360",
"emotion": "^10.0.17"
},
"devDependencies": {
"@contentful/f36-typography": "4.0.1-next-v4-6859.2287+1c884886"
"@contentful/f36-typography": "4.0.1-next-v4-7604.2322+0bee7360"
},

@@ -39,3 +39,3 @@ "peerDependencies": {

},
"gitHead": "1c884886dfbd1a17e16a1c06523e23861922e466"
"gitHead": "0bee7360d2456674a913f221d51a3b08d75a14bb"
}

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc