@cleartrip/ct-platform-shimmer 4.3.33 → 6.0.1-beta.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 +1 @@
1
- {"version":3,"file":"Shimmer.d.ts","sourceRoot":"","sources":["../packages/components/Shimmer/src/Shimmer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA2BnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Shimmer.d.ts","sourceRoot":"","sources":["../packages/components/Shimmer/src/Shimmer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAM/C,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA0BnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -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 i=require("react/jsx-runtime"),e=require("@cleartrip/ct-design-style-manager"),n=require("@emotion/css"),r=require("@cleartrip/ct-design-components");const a=n.keyframes({"0%":{backgroundPosition:"-468px 0"},"100%":{backgroundPosition:"468px 0"}}),o=e.makeWebStyles((()=>({Shimmer:{background:"#efefef",display:"inline-block","&.has-shimmer":{animationDuration:"1s",animationFillMode:"forwards",animationIterationCount:"infinite",animationName:`${a}`,animationTimingFunction:"linear",background:"linear-gradient(135deg, #efefef 8%, #ddd 18%, #efefef 33%)",backgroundSize:"800px 120px",position:"relative"},"&.is-rounded":{borderRadius:3},"&.is-circular":{borderRadius:200},"&.is-dark":{background:"#484848"},"&.is-dark.has-shimmer":{animationDuration:"1s",animationFillMode:"forwards",animationIterationCount:"infinite",animationName:`${a}`,animationTimingFunction:"linear",background:"linear-gradient(135deg, #484848 8%, #555 18%, #484848 33%)",backgroundSize:"800px 104px",position:"relative"}}})));exports.Shimmer=({className:e="",height:n,width:a,type:t="rounded",shimmer:s=!0,dark:d=!1})=>{const m={width:"number"==typeof a&&a?`${a}px`:"100%",height:"number"==typeof n&&n?`${n}px`:"100%"};return i.jsx(r.Container,{as:"div",styleConfig:{root:[e,o.Shimmer,s?o["has-shimmer"]:{},s?o["has-shimmer"]:{},"rounded"===t?o["is-rounded"]:{},"circular"===t?o["is-circular"]:{},d?o["is-dark"]:{},m]}})};
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":["../packages/components/Shimmer/src/index.module.ts","../packages/components/Shimmer/src/Shimmer.tsx"],"sourcesContent":[null,null],"names":["shimmer","keyframes","backgroundPosition","styles","makeWebStyles","Shimmer","background","display","animationDuration","animationFillMode","animationIterationCount","animationName","animationTimingFunction","backgroundSize","position","borderRadius","className","height","width","type","dark","_jsx","Container","as","styleConfig","root","Styles"],"mappings":"uKAEA,MAAMA,EAAUC,EAAAA,UAAU,CACxB,KAAM,CACJC,mBAAoB,YAEtB,OAAQ,CACNA,mBAAoB,aAMlBC,EAASC,EAAaA,eAAC,KAAO,CAClCC,QAAS,CACPC,WAAY,UACZC,QAAS,eACT,gBAAiB,CACfC,kBAAmB,KACnBC,kBAAmB,WACnBC,wBAAyB,WACzBC,cAAe,GAAGX,IAClBY,wBAAyB,SACzBN,WAAY,6DACZO,eAAgB,cAChBC,SAAU,YAEZ,eAAgB,CACdC,aAAc,GAEhB,gBAAiB,CACfA,aAAc,KAEhB,YAAa,CACXT,WAAY,WAEd,wBAAyB,CACvBE,kBAAmB,KACnBC,kBAAmB,WACnBC,wBAAyB,WACzBC,cAAe,GAAGX,IAClBY,wBAAyB,SACzBN,WAAY,6DACZO,eAAgB,cAChBC,SAAU,iCCpCwB,EACpCE,YAAY,GACZC,SACAC,QACAC,OAAO,UACPnB,WAAU,EACVoB,QAAO,MAEP,MAAMjB,EAAS,CAIXe,MAAwB,iBAAVA,GAAsBA,EAAQ,GAAGA,MAAY,OAI3DD,OAA0B,iBAAXA,GAAuBA,EAAS,GAAGA,MAAa,QAGnE,OACII,MAACC,EAASA,UAAA,CACNC,GAAG,MACHC,YAAa,CACTC,KAAM,CAACT,EAAWU,EAAgB,QAAG1B,EAAU0B,EAAO,eAAiB,CAAA,EAAI1B,EAAU0B,EAAO,eAAiB,CAAE,EAAW,YAATP,EAAqBO,EAAO,cAAgB,CAAA,EAAa,aAATP,EAAsBO,EAAO,eAAiB,CAAE,EAAEN,EAAOM,EAAO,WAAa,CAAA,EAAIvB,KAE5P"}
@@ -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 i}from"react/jsx-runtime";import{makeWebStyles as n}from"@cleartrip/ct-design-style-manager";import{keyframes as r}from"@emotion/css";import{Container as a}from"@cleartrip/ct-design-components";const e=r({"0%":{backgroundPosition:"-468px 0"},"100%":{backgroundPosition:"468px 0"}}),o=n((()=>({Shimmer:{background:"#efefef",display:"inline-block","&.has-shimmer":{animationDuration:"1s",animationFillMode:"forwards",animationIterationCount:"infinite",animationName:`${e}`,animationTimingFunction:"linear",background:"linear-gradient(135deg, #efefef 8%, #ddd 18%, #efefef 33%)",backgroundSize:"800px 120px",position:"relative"},"&.is-rounded":{borderRadius:3},"&.is-circular":{borderRadius:200},"&.is-dark":{background:"#484848"},"&.is-dark.has-shimmer":{animationDuration:"1s",animationFillMode:"forwards",animationIterationCount:"infinite",animationName:`${e}`,animationTimingFunction:"linear",background:"linear-gradient(135deg, #484848 8%, #555 18%, #484848 33%)",backgroundSize:"800px 104px",position:"relative"}}}))),t=({className:n="",height:r,width:e,type:t="rounded",shimmer:m=!0,dark:d=!1})=>{const s={width:"number"==typeof e&&e?`${e}px`:"100%",height:"number"==typeof r&&r?`${r}px`:"100%"};return i(a,{as:"div",styleConfig:{root:[n,o.Shimmer,m?o["has-shimmer"]:{},m?o["has-shimmer"]:{},"rounded"===t?o["is-rounded"]:{},"circular"===t?o["is-circular"]:{},d?o["is-dark"]:{},s]}})};export{t 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":["../packages/components/Shimmer/src/index.module.ts","../packages/components/Shimmer/src/Shimmer.tsx"],"sourcesContent":[null,null],"names":["shimmer","keyframes","backgroundPosition","styles","makeWebStyles","Shimmer","background","display","animationDuration","animationFillMode","animationIterationCount","animationName","animationTimingFunction","backgroundSize","position","borderRadius","className","height","width","type","dark","_jsx","Container","as","styleConfig","root","Styles"],"mappings":"gNAEA,MAAMA,EAAUC,EAAU,CACxB,KAAM,CACJC,mBAAoB,YAEtB,OAAQ,CACNA,mBAAoB,aAMlBC,EAASC,GAAc,KAAO,CAClCC,QAAS,CACPC,WAAY,UACZC,QAAS,eACT,gBAAiB,CACfC,kBAAmB,KACnBC,kBAAmB,WACnBC,wBAAyB,WACzBC,cAAe,GAAGX,IAClBY,wBAAyB,SACzBN,WAAY,6DACZO,eAAgB,cAChBC,SAAU,YAEZ,eAAgB,CACdC,aAAc,GAEhB,gBAAiB,CACfA,aAAc,KAEhB,YAAa,CACXT,WAAY,WAEd,wBAAyB,CACvBE,kBAAmB,KACnBC,kBAAmB,WACnBC,wBAAyB,WACzBC,cAAe,GAAGX,IAClBY,wBAAyB,SACzBN,WAAY,6DACZO,eAAgB,cAChBC,SAAU,iBCpCVT,EAAkC,EACpCW,YAAY,GACZC,SACAC,QACAC,OAAO,UACPnB,WAAU,EACVoB,QAAO,MAEP,MAAMjB,EAAS,CAIXe,MAAwB,iBAAVA,GAAsBA,EAAQ,GAAGA,MAAY,OAI3DD,OAA0B,iBAAXA,GAAuBA,EAAS,GAAGA,MAAa,QAGnE,OACII,EAACC,EAAS,CACNC,GAAG,MACHC,YAAa,CACTC,KAAM,CAACT,EAAWU,EAAgB,QAAG1B,EAAU0B,EAAO,eAAiB,CAAA,EAAI1B,EAAU0B,EAAO,eAAiB,CAAE,EAAW,YAATP,EAAqBO,EAAO,cAAgB,CAAA,EAAa,aAATP,EAAsBO,EAAO,eAAiB,CAAE,EAAEN,EAAOM,EAAO,WAAa,CAAA,EAAIvB,KAE5P"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleartrip/ct-platform-shimmer",
3
- "version": "4.3.33",
3
+ "version": "6.0.1-beta.0",
4
4
  "description": "Shimmer Component",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/ct-platform-shimmer.cjs.js",