-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponents-skeleton-loader-skeleton-loader-web-stories.677ea664.iframe.bundle.js
2 lines (2 loc) · 4.57 KB
/
components-skeleton-loader-skeleton-loader-web-stories.677ea664.iframe.bundle.js
1
2
/*! For license information please see components-skeleton-loader-skeleton-loader-web-stories.677ea664.iframe.bundle.js.LICENSE.txt */
"use strict";(self.webpackChunk_leather_io_ui=self.webpackChunk_leather_io_ui||[]).push([[7662],{"./src/components/skeleton-loader/skeleton-loader.web.stories.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{SkeletonLoader:()=>SkeletonLoader,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js"),_components_skeleton_loader_skeleton_loader_web__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/skeleton-loader/skeleton-loader.web.tsx");const __WEBPACK_DEFAULT_EXPORT__={component:_components_skeleton_loader_skeleton_loader_web__WEBPACK_IMPORTED_MODULE_1__.j,tags:["autodocs"],title:"Layout/SkeletonLoader"};function SkeletonLoader(){return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components_skeleton_loader_skeleton_loader_web__WEBPACK_IMPORTED_MODULE_1__.j,{isLoading:!0,width:"200px",height:"38px"})}const __namedExportsOrder=["SkeletonLoader"]},"../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.js":(__unused_webpack_module,exports,__webpack_require__)=>{var f=__webpack_require__("../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function q(c,a,g){var b,d={},e=null,h=null;for(b in void 0!==g&&(e=""+g),void 0!==a.key&&(e=""+a.key),void 0!==a.ref&&(h=a.ref),a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l,exports.jsx=q,exports.jsxs=q},"../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("../../node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.production.min.js")},"./src/components/skeleton-loader/shimmer.styles.web.ts":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{c:()=>shimmerStyles});const shimmerStyles=(0,__webpack_require__("./leather-styles/css/index.js").AH)({"&[data-state=loading]":{display:"inline-block",WebkitMask:"linear-gradient(-60deg, #000 30%, #0005, #000 70%) right/300% 100%",backgroundRepeat:"no-repeat",animation:"shimmer 1.5s infinite",color:"ink.text-subdued"}})},"./src/components/skeleton-loader/skeleton-loader.web.tsx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{j:()=>SkeletonLoader});var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js"),leather_styles_jsx__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./leather-styles/jsx/index.js"),_shimmer_styles_web__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/skeleton-loader/shimmer.styles.web.ts");function SkeletonLoader({children,width="30px",height="30px",isLoading}){return isLoading?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(leather_styles_jsx__WEBPACK_IMPORTED_MODULE_1__.az,{width,height,bgColor:"ink.text-non-interactive","data-state":"loading",borderRadius:"sm",className:_shimmer_styles_web__WEBPACK_IMPORTED_MODULE_2__.c}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment,{children})}try{SkeletonLoader.displayName="SkeletonLoader",SkeletonLoader.__docgenInfo={description:"",displayName:"SkeletonLoader",props:{isLoading:{defaultValue:null,description:"",name:"isLoading",required:!0,type:{name:"boolean"}},width:{defaultValue:{value:"30px"},description:"",name:"width",required:!1,type:{name:"string"}},height:{defaultValue:{value:"30px"},description:"",name:"height",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/skeleton-loader/skeleton-loader.web.tsx#SkeletonLoader"]={docgenInfo:SkeletonLoader.__docgenInfo,name:"SkeletonLoader",path:"src/components/skeleton-loader/skeleton-loader.web.tsx#SkeletonLoader"})}catch(__react_docgen_typescript_loader_error){}}}]);