@grassus/ui-package 1.0.4 → 1.0.6

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/cjs/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react");!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.type="text/css","top"===n&&r.firstChild?r.insertBefore(d,r.firstChild):r.appendChild(d),d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e))}}("button {\r\n font-size: 60px;\r\n}\r\n");exports.TestInfo=t=>e.createElement("button",null,t.label);
1
+ "use strict";var e=require("react");!function(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===t&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("button {\r\n font-size: 60px;\r\n}\r\n");const n=n=>{const{colorPrimary:t,colorSecondary:r,count:a,delay:o}=n,s=e=>({animationDelay:`${.1*e}s`}),l={width:"10px",height:"70px",display:"inline-block",transformOrigin:"bottom center",borderTopRightRadius:"20px",borderTopLeftRadius:"20px",animation:`loader ${o}s linear infinite`,margin:"2px"};return e.createElement(e.Fragment,null,e.createElement("style",null,`\n @keyframes loader {\n 0% {\n transform: scaleY(0.1);\n background: ${r};\n }\n 50% {\n transform: scaleY(1);\n background: ${t};\n }\n 100% {\n transform: scaleY(0.1);\n background: ${r};\n }\n }\n `),Array.from(Array(a).keys()).map((n=>e.createElement("div",{key:n,style:Object.assign(Object.assign({},l),s(n))}))))};n.defaultProps={count:8,colorPrimary:"#1677ff",colorSecondary:"transparent",delay:1.2},exports.StepPreloader=n,exports.TestInfo=n=>e.createElement("button",null,n.label);
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../node_modules/style-inject/dist/style-inject.es.js","../../src/components/TestInfo/TestInfo.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","props","React","label"],"mappings":"qCAAA,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,GAnBY,CAqB1D,8DCnBkBe,GACTC,EAAST,cAAA,SAAA,KAAAQ,EAAME","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../node_modules/style-inject/dist/style-inject.es.js","../../src/components/TestInfo/TestInfo.tsx","../../src/components/preloaders/StepPreloader/StepPreloader.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,null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","StepPreloader","props","colorPrimary","colorSecondary","count","delay","barItem","item","animationDelay","barStyle1","width","height","display","transformOrigin","borderTopRightRadius","borderTopLeftRadius","animation","margin","React","Fragment","Array","from","keys","map","key","defaultProps","label"],"mappings":"qCAAA,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,GAnBY,CAqB1D,6CCdA,MCFMe,EAAiBC,IACrB,MAAMC,aAAEA,EAAYC,eAAEA,EAAcC,MAAEA,EAAKC,MAAEA,GAAUJ,EACjDK,EAAWC,IAER,CAAEC,eAAgB,GADR,GAAMD,OAInBE,EAAiC,CACrCC,MAAO,OACPC,OAAQ,OACRC,QAAS,eACTC,gBAAiB,gBACjBC,qBAAsB,OACtBC,oBAAqB,OACrBC,UAAW,UAAUX,qBACrBY,OAAQ,OAGV,OACEC,EAAA1B,cAAA0B,EAAAC,SAAA,KACED,EACG1B,cAAA,QAAA,KAAA,uHAImBW,wGAIAD,2GAIAC,4CAKrBiB,MAAMC,KAAKD,MAAMhB,GAAOkB,QAAQC,KAAKhB,GACpCW,EAAA1B,cAAA,MAAA,CAAKgC,IAAKjB,EAAMhB,qCAAYkB,GAAcH,EAAQC,QAGtD,EAGJP,EAAcyB,aAAe,CAC3BrB,MAAO,EACPF,aAAc,UACdC,eAAgB,cAChBE,MAAO,8CD/CSJ,GACTiB,EAAS1B,cAAA,SAAA,KAAAS,EAAMyB","x_google_ignoreList":[0]}
@@ -1 +1,2 @@
1
1
  export { default as TestInfo } from "./TestInfo";
2
+ export { default as StepPreloader } from "./preloaders/StepPreloader";
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ interface IStepPreloader {
3
+ count?: number;
4
+ colorPrimary?: string;
5
+ colorSecondary?: string;
6
+ delay?: number;
7
+ }
8
+ declare const StepPreloader: {
9
+ (props: IStepPreloader): React.JSX.Element;
10
+ defaultProps: {
11
+ count: number;
12
+ colorPrimary: string;
13
+ colorSecondary: string;
14
+ delay: number;
15
+ };
16
+ };
17
+ export default StepPreloader;
@@ -0,0 +1 @@
1
+ export { default } from "./StepPreloader";
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import e from"react";!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.type="text/css","top"===n&&o.firstChild?o.insertBefore(d,o.firstChild):o.appendChild(d),d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e))}}("button {\r\n font-size: 60px;\r\n}\r\n");const t=t=>e.createElement("button",null,t.label);export{t as TestInfo};
1
+ import e from"react";!function(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===t&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("button {\r\n font-size: 60px;\r\n}\r\n");const n=n=>e.createElement("button",null,n.label),t=n=>{const{colorPrimary:t,colorSecondary:r,count:a,delay:o}=n,l=e=>({animationDelay:`${.1*e}s`}),i={width:"10px",height:"70px",display:"inline-block",transformOrigin:"bottom center",borderTopRightRadius:"20px",borderTopLeftRadius:"20px",animation:`loader ${o}s linear infinite`,margin:"2px"};return e.createElement(e.Fragment,null,e.createElement("style",null,`\n @keyframes loader {\n 0% {\n transform: scaleY(0.1);\n background: ${r};\n }\n 50% {\n transform: scaleY(1);\n background: ${t};\n }\n 100% {\n transform: scaleY(0.1);\n background: ${r};\n }\n }\n `),Array.from(Array(a).keys()).map((n=>e.createElement("div",{key:n,style:Object.assign(Object.assign({},i),l(n))}))))};t.defaultProps={count:8,colorPrimary:"#1677ff",colorSecondary:"transparent",delay:1.2};export{t as StepPreloader,n as TestInfo};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../node_modules/style-inject/dist/style-inject.es.js","../../src/components/TestInfo/TestInfo.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","TestInfo","props","React","label"],"mappings":"sBAAA,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,GAnBY,CAqB1D,6CCnBA,MAAMe,EAAYC,GACTC,EAASV,cAAA,SAAA,KAAAS,EAAME","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../node_modules/style-inject/dist/style-inject.es.js","../../src/components/TestInfo/TestInfo.tsx","../../src/components/preloaders/StepPreloader/StepPreloader.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,null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","TestInfo","props","React","label","StepPreloader","colorPrimary","colorSecondary","count","delay","barItem","item","animationDelay","barStyle1","width","height","display","transformOrigin","borderTopRightRadius","borderTopLeftRadius","animation","margin","Fragment","Array","from","keys","map","key","defaultProps"],"mappings":"sBAAA,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,GAnBY,CAqB1D,6CCdA,MAAMe,EAAYC,GACTC,EAASV,cAAA,SAAA,KAAAS,EAAME,OCHlBC,EAAiBH,IACrB,MAAMI,aAAEA,EAAYC,eAAEA,EAAcC,MAAEA,EAAKC,MAAEA,GAAUP,EACjDQ,EAAWC,IAER,CAAEC,eAAgB,GADR,GAAMD,OAInBE,EAAiC,CACrCC,MAAO,OACPC,OAAQ,OACRC,QAAS,eACTC,gBAAiB,gBACjBC,qBAAsB,OACtBC,oBAAqB,OACrBC,UAAW,UAAUX,qBACrBY,OAAQ,OAGV,OACElB,EAAAV,cAAAU,EAAAmB,SAAA,KACEnB,EACGV,cAAA,QAAA,KAAA,uHAImBc,wGAIAD,2GAIAC,4CAKrBgB,MAAMC,KAAKD,MAAMf,GAAOiB,QAAQC,KAAKf,GACpCR,EAAAV,cAAA,MAAA,CAAKkC,IAAKhB,EAAMnB,qCAAYqB,GAAcH,EAAQC,QAGtD,EAGJN,EAAcuB,aAAe,CAC3BpB,MAAO,EACPF,aAAc,UACdC,eAAgB,cAChBE,MAAO","x_google_ignoreList":[0]}
@@ -1 +1,2 @@
1
1
  export { default as TestInfo } from "./TestInfo";
2
+ export { default as StepPreloader } from "./preloaders/StepPreloader";
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ interface IStepPreloader {
3
+ count?: number;
4
+ colorPrimary?: string;
5
+ colorSecondary?: string;
6
+ delay?: number;
7
+ }
8
+ declare const StepPreloader: {
9
+ (props: IStepPreloader): React.JSX.Element;
10
+ defaultProps: {
11
+ count: number;
12
+ colorPrimary: string;
13
+ colorSecondary: string;
14
+ delay: number;
15
+ };
16
+ };
17
+ export default StepPreloader;
@@ -0,0 +1 @@
1
+ export { default } from "./StepPreloader";
package/dist/index.d.ts CHANGED
@@ -5,4 +5,20 @@ interface ITestInfo {
5
5
  }
6
6
  declare const TestInfo: (props: ITestInfo) => React.JSX.Element;
7
7
 
8
- export { TestInfo };
8
+ interface IStepPreloader {
9
+ count?: number;
10
+ colorPrimary?: string;
11
+ colorSecondary?: string;
12
+ delay?: number;
13
+ }
14
+ declare const StepPreloader: {
15
+ (props: IStepPreloader): React.JSX.Element;
16
+ defaultProps: {
17
+ count: number;
18
+ colorPrimary: string;
19
+ colorSecondary: string;
20
+ delay: number;
21
+ };
22
+ };
23
+
24
+ export { StepPreloader, TestInfo };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grassus/ui-package",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Grassus UI package",
5
5
  "repository": "https://github.com/grassus/ui-package.git",
6
6
  "author": "Pavel 'Grassus' Dzekunov",