@cleartrip/ct-platform-shimmer 1.1.0-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.
- package/dist/Shimmer.d.ts +5 -0
- package/dist/Shimmer.d.ts.map +1 -0
- package/dist/Shimmer.types.d.ts +9 -0
- package/dist/Shimmer.types.d.ts.map +1 -0
- package/dist/ct-platform-shimmer.cjs.js +2 -0
- package/dist/ct-platform-shimmer.cjs.js.map +1 -0
- package/dist/ct-platform-shimmer.esm.js +2 -0
- package/dist/ct-platform-shimmer.esm.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/package.json +27 -0
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Shimmer.types.d.ts","sourceRoot":"","sources":["../packages/components/Shimmer/src/Shimmer.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAIzB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;IAI9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAIlB,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB"}
|
|
@@ -0,0 +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(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
|
+
//# sourceMappingURL=ct-platform-shimmer.cjs.js.map
|
|
@@ -0,0 +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,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]}
|
|
@@ -0,0 +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(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
|
+
//# sourceMappingURL=ct-platform-shimmer.esm.js.map
|
|
@@ -0,0 +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,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/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/components/Shimmer/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,cAAc,iBAAiB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cleartrip/ct-platform-shimmer",
|
|
3
|
+
"version": "1.1.0-beta.0",
|
|
4
|
+
"description": "Shimmer Component",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"main": "dist/ct-platform-shimmer.cjs.js",
|
|
7
|
+
"module": "dist/ct-platform-shimmer.esm.js",
|
|
8
|
+
"sideEffects": true,
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"classnames": "^2.5.1"
|
|
14
|
+
},
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"react": ">=16.8.0",
|
|
17
|
+
"react-dom": ">=16.8.0"
|
|
18
|
+
},
|
|
19
|
+
"author": "Cleartrip",
|
|
20
|
+
"license": "ISC",
|
|
21
|
+
"scripts": {
|
|
22
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
23
|
+
"watch-package": "rollup -c -w",
|
|
24
|
+
"build-package": "rollup -c",
|
|
25
|
+
"build-package:clean": "rm -rf dist && rollup -c"
|
|
26
|
+
}
|
|
27
|
+
}
|