@cleartrip/ct-platform-shimmer 3.0.0-beta.1 → 3.0.0

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-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})};
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(e&&"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 +1 @@
1
- {"version":3,"file":"ct-platform-shimmer.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/Shimmer/src/Shimmer.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","_a","_c","className","height","width","_d","_e","shimmer","_f","dark","styles","classes","classNames","_b","Styles","_jsx"],"mappings":"kTAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,ymCCjBwC,SAACe,SACrCC,EAAAD,EAAAE,UAAAA,OAAY,IAAAD,EAAA,GAAEA,EACdE,EAAMH,EAAAG,OACNC,EAAKJ,EAAAI,MACLC,SAAAZ,OAAO,IAAAY,EAAA,UAASA,EAChBC,EAAcN,EAAAO,QAAdA,OAAU,IAAAD,GAAIA,EACdE,EAAYR,EAAAS,KAAZA,OAAI,IAAAD,GAAQA,EAENE,EAAS,CAIXN,MAAwB,iBAAVA,GAAsBA,EAAQ,UAAGA,EAAK,MAAO,OAI3DD,OAA0B,iBAAXA,GAAuBA,EAAS,UAAGA,EAAM,MAAO,QAE7DQ,EAAUC,EAAAA,QAAWV,IAASW,EAAA,CAAA,GAC/BC,IAAoB,EACrBD,EAACC,GAAwBP,EACzBM,EAACC,GAAgC,YAATrB,EACxBoB,EAACC,GAAiC,aAATrB,EACzBoB,EAACC,GAAoBL,MAGzB,OAAOM,EAAAA,IAAA,MAAA,CAAKb,UAAWS,EAASpB,MAAOmB,GAC3C","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ct-platform-shimmer.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/Shimmer/src/Shimmer.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","_a","_c","className","height","width","_d","_e","shimmer","_f","dark","styles","classes","classNames","_b","Styles","_jsx"],"mappings":"kTAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,ymCCjBwC,SAACe,SACrCC,EAAAD,EAAAE,UAAAA,OAAY,IAAAD,EAAA,GAAEA,EACdE,EAAMH,EAAAG,OACNC,EAAKJ,EAAAI,MACLC,SAAAZ,OAAO,IAAAY,EAAA,UAASA,EAChBC,EAAcN,EAAAO,QAAdA,OAAU,IAAAD,GAAIA,EACdE,EAAYR,EAAAS,KAAZA,OAAI,IAAAD,GAAQA,EAENE,EAAS,CAIXN,MAAwB,iBAAVA,GAAsBA,EAAQ,UAAGA,EAAK,MAAO,OAI3DD,OAA0B,iBAAXA,GAAuBA,EAAS,UAAGA,EAAM,MAAO,QAE7DQ,EAAUC,EAAAA,QAAWV,IAASW,EAAA,CAAA,GAC/BC,IAAoB,EACrBD,EAACC,GAAwBP,EACzBM,EAACC,GAAgC,YAATrB,EACxBoB,EAACC,GAAiC,aAATrB,EACzBoB,EAACC,GAAoBL,MAGzB,OAAOM,EAAAA,IAAA,MAAA,CAAKb,UAAWS,EAASpB,MAAOmB,GAC3C","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
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};
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(e&&"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
@@ -1 +1 @@
1
- {"version":3,"file":"ct-platform-shimmer.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/Shimmer/src/Shimmer.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","Shimmer","_a","_c","className","height","width","_d","_e","shimmer","_f","dark","styles","classes","classNames","_b","Styles","_jsx"],"mappings":"kPAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,ylCCjBM,IAAAe,EAAkC,SAACC,SACrCC,EAAAD,EAAAE,UAAAA,OAAY,IAAAD,EAAA,GAAEA,EACdE,EAAMH,EAAAG,OACNC,EAAKJ,EAAAI,MACLC,SAAAb,OAAO,IAAAa,EAAA,UAASA,EAChBC,EAAcN,EAAAO,QAAdA,OAAU,IAAAD,GAAIA,EACdE,EAAYR,EAAAS,KAAZA,OAAI,IAAAD,GAAQA,EAENE,EAAS,CAIXN,MAAwB,iBAAVA,GAAsBA,EAAQ,UAAGA,EAAK,MAAO,OAI3DD,OAA0B,iBAAXA,GAAuBA,EAAS,UAAGA,EAAM,MAAO,QAE7DQ,EAAUC,EAAWV,IAASW,EAAA,CAAA,GAC/BC,IAAoB,EACrBD,EAACC,GAAwBP,EACzBM,EAACC,GAAgC,YAATtB,EACxBqB,EAACC,GAAiC,aAATtB,EACzBqB,EAACC,GAAoBL,MAGzB,OAAOM,EAAA,MAAA,CAAKb,UAAWS,EAASrB,MAAOoB,GAC3C","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ct-platform-shimmer.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/Shimmer/src/Shimmer.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","Shimmer","_a","_c","className","height","width","_d","_e","shimmer","_f","dark","styles","classes","classNames","_b","Styles","_jsx"],"mappings":"kPAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,ylCCjBM,IAAAe,EAAkC,SAACC,SACrCC,EAAAD,EAAAE,UAAAA,OAAY,IAAAD,EAAA,GAAEA,EACdE,EAAMH,EAAAG,OACNC,EAAKJ,EAAAI,MACLC,SAAAb,OAAO,IAAAa,EAAA,UAASA,EAChBC,EAAcN,EAAAO,QAAdA,OAAU,IAAAD,GAAIA,EACdE,EAAYR,EAAAS,KAAZA,OAAI,IAAAD,GAAQA,EAENE,EAAS,CAIXN,MAAwB,iBAAVA,GAAsBA,EAAQ,UAAGA,EAAK,MAAO,OAI3DD,OAA0B,iBAAXA,GAAuBA,EAAS,UAAGA,EAAM,MAAO,QAE7DQ,EAAUC,EAAWV,IAASW,EAAA,CAAA,GAC/BC,IAAoB,EACrBD,EAACC,GAAwBP,EACzBM,EAACC,GAAgC,YAATtB,EACxBqB,EAACC,GAAiC,aAATtB,EACzBqB,EAACC,GAAoBL,MAGzB,OAAOM,EAAA,MAAA,CAAKb,UAAWS,EAASrB,MAAOoB,GAC3C","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleartrip/ct-platform-shimmer",
3
- "version": "3.0.0-beta.1",
3
+ "version": "3.0.0",
4
4
  "description": "Shimmer Component",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/ct-platform-shimmer.cjs.js",