@cleartrip/ct-platform-shimmer 3.0.3-beta.0 → 3.0.3-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime");function i(e){return e&&e.__esModule?e:{default:e}}var n=i(require("classnames"));var d="index-
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime");function i(e){return e&&e.__esModule?e:{default:e}}var n=i(require("classnames"));var d="index-module_Shimmer__AE-1o",o="index-module_has-shimmer__FK5Sh",r="index-module_is-rounded__A4-up",a="index-module_is-circular__Nbz8T",t="index-module_is-dark__whQnw";!function(e,i){void 0===i&&(i={});var n=i.insertAt;if("undefined"!=typeof document){var d=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&d.firstChild?d.insertBefore(o,d.firstChild):d.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".index-module_Shimmer__AE-1o{background:#efefef;display:inline-block}.index-module_Shimmer__AE-1o.index-module_has-shimmer__FK5Sh{animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:index-module_shimmer__SAN3n;animation-timing-function:linear;background:linear-gradient(135deg,#efefef 8%,#ddd 18%,#efefef 33%);background-size:800px 120px;position:relative}.index-module_Shimmer__AE-1o.index-module_is-rounded__A4-up{border-radius:3px}.index-module_Shimmer__AE-1o.index-module_is-circular__Nbz8T{border-radius:200px}.index-module_Shimmer__AE-1o.index-module_is-dark__whQnw{background:#484848}.index-module_Shimmer__AE-1o.index-module_is-dark__whQnw.index-module_has-shimmer__FK5Sh{animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:index-module_shimmer__SAN3n;animation-timing-function:linear;background:linear-gradient(135deg,#484848 8%,#555 18%,#484848 33%);background-size:800px 104px;position:relative}@keyframes index-module_shimmer__SAN3n{0%{background-position:-468px 0}to{background-position:468px 0}}");exports.Shimmer=function(i){var m,u=i.className,_=void 0===u?"":u,s=i.height,l=i.width,c=i.type,h=void 0===c?"rounded":c,x=i.shimmer,f=void 0===x||x,p=i.dark,g=void 0!==p&&p,S={width:"number"==typeof l&&l?"".concat(l,"px"):"100%",height:"number"==typeof s&&s?"".concat(s,"px"):"100%"},b=n.default(_,((m={})[d]=!0,m[o]=f,m[r]="rounded"===h,m[a]="circular"===h,m[t]=g,m));return e.jsx("div",{className:b,style:S})};
|
|
2
2
|
//# sourceMappingURL=ct-platform-shimmer.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import i from"classnames";var n="index-
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import i from"classnames";var n="index-module_Shimmer__AE-1o",d="index-module_has-shimmer__FK5Sh",o="index-module_is-rounded__A4-up",m="index-module_is-circular__Nbz8T",r="index-module_is-dark__whQnw";!function(e,i){void 0===i&&(i={});var n=i.insertAt;if("undefined"!=typeof document){var d=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&d.firstChild?d.insertBefore(o,d.firstChild):d.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".index-module_Shimmer__AE-1o{background:#efefef;display:inline-block}.index-module_Shimmer__AE-1o.index-module_has-shimmer__FK5Sh{animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:index-module_shimmer__SAN3n;animation-timing-function:linear;background:linear-gradient(135deg,#efefef 8%,#ddd 18%,#efefef 33%);background-size:800px 120px;position:relative}.index-module_Shimmer__AE-1o.index-module_is-rounded__A4-up{border-radius:3px}.index-module_Shimmer__AE-1o.index-module_is-circular__Nbz8T{border-radius:200px}.index-module_Shimmer__AE-1o.index-module_is-dark__whQnw{background:#484848}.index-module_Shimmer__AE-1o.index-module_is-dark__whQnw.index-module_has-shimmer__FK5Sh{animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:index-module_shimmer__SAN3n;animation-timing-function:linear;background:linear-gradient(135deg,#484848 8%,#555 18%,#484848 33%);background-size:800px 104px;position:relative}@keyframes index-module_shimmer__SAN3n{0%{background-position:-468px 0}to{background-position:468px 0}}");var a=function(a){var t,_=a.className,u=void 0===_?"":_,s=a.height,l=a.width,c=a.type,h=void 0===c?"rounded":c,x=a.shimmer,f=void 0===x||x,p=a.dark,g=void 0!==p&&p,b={width:"number"==typeof l&&l?"".concat(l,"px"):"100%",height:"number"==typeof s&&s?"".concat(s,"px"):"100%"},S=i(u,((t={})[n]=!0,t[d]=f,t[o]="rounded"===h,t[m]="circular"===h,t[r]=g,t));return e("div",{className:S,style:b})};export{a as Shimmer};
|
|
2
2
|
//# sourceMappingURL=ct-platform-shimmer.esm.js.map
|