@grassus/ui-package 1.0.7 → 1.0.9

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/Readme.txt ADDED
@@ -0,0 +1,2 @@
1
+ npm login
2
+ npm publish --access public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grassus/ui-package",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Grassus UI package",
5
5
  "repository": "https://github.com/grassus/ui-package.git",
6
6
  "author": "Pavel 'Grassus' Dzekunov",
@@ -29,6 +29,9 @@
29
29
  "typescript": "^5.4.3"
30
30
  },
31
31
  "peerDependencies": {
32
+ "@ant-design/cssinjs": "^1.20.0",
33
+ "@ant-design/icons": "^5.3.7",
34
+ "antd": "^5.17.3",
32
35
  "react": "^18.2.0"
33
36
  },
34
37
  "main": "dist/cjs/index.js",
package/dist/cjs/index.js DELETED
@@ -1,2 +0,0 @@
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,i=e=>({animationDelay:`${.1*e}s`}),s={width:"10px",height:"70px",display:"inline-block",transformOrigin:"bottom center",borderTopRightRadius:"20px",borderTopLeftRadius:"20px",animation:`animationStepPreloader ${o}s linear infinite`,margin:"2px"};return e.createElement("span",null,e.createElement("style",null,`\n @keyframes animationStepPreloader {\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({},s),i(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
- //# sourceMappingURL=index.js.map
@@ -1 +0,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","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,6CCnBA,MCGMe,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,0BAA0BX,qBACrCY,OAAQ,OAGV,OACEC,EAAA1B,cAAA,OAAA,KACE0B,EACG1B,cAAA,QAAA,KAAA,uIAImBW,wGAIAD,2GAIAC,4CAKrBgB,MAAMC,KAAKD,MAAMf,GAAOiB,QAAQC,KAAKf,GACpCW,EAAA1B,cAAA,MAAA,CAAK+B,IAAKhB,EAAMhB,qCAAYkB,GAAcH,EAAQC,QAGtD,EAGJP,EAAcwB,aAAe,CAC3BpB,MAAO,EACPF,aAAc,UACdC,eAAgB,cAChBE,MAAO,8CDpDSJ,GACTiB,EAAS1B,cAAA,SAAA,KAAAS,EAAMwB","x_google_ignoreList":[0]}
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- import "./TestInfo.css";
3
- export interface ITestInfo {
4
- label: string;
5
- }
6
- declare const TestInfo: (props: ITestInfo) => React.JSX.Element;
7
- export default TestInfo;
@@ -1 +0,0 @@
1
- export { default } from "./TestInfo";
@@ -1,2 +0,0 @@
1
- export { default as TestInfo } from "./TestInfo";
2
- export { default as StepPreloader } from "./preloaders/StepPreloader";
@@ -1,17 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export { default } from "./StepPreloader";
@@ -1 +0,0 @@
1
- export * from './components';
package/dist/esm/index.js DELETED
@@ -1,2 +0,0 @@
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,i=e=>({animationDelay:`${.1*e}s`}),l={width:"10px",height:"70px",display:"inline-block",transformOrigin:"bottom center",borderTopRightRadius:"20px",borderTopLeftRadius:"20px",animation:`animationStepPreloader ${o}s linear infinite`,margin:"2px"};return e.createElement("span",null,e.createElement("style",null,`\n @keyframes animationStepPreloader {\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),i(n))}))))};t.defaultProps={count:8,colorPrimary:"#1677ff",colorSecondary:"transparent",delay:1.2};export{t as StepPreloader,n as TestInfo};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,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","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,6CCnBA,MAAMe,EAAYC,GACTC,EAASV,cAAA,SAAA,KAAAS,EAAME,OCElBC,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,0BAA0BX,qBACrCY,OAAQ,OAGV,OACElB,EAAAV,cAAA,OAAA,KACEU,EACGV,cAAA,QAAA,KAAA,uIAImBc,wGAIAD,2GAIAC,4CAKrBe,MAAMC,KAAKD,MAAMd,GAAOgB,QAAQC,KAAKd,GACpCR,EAAAV,cAAA,MAAA,CAAKiC,IAAKf,EAAMnB,qCAAYqB,GAAcH,EAAQC,QAGtD,EAGJN,EAAcsB,aAAe,CAC3BnB,MAAO,EACPF,aAAc,UACdC,eAAgB,cAChBE,MAAO","x_google_ignoreList":[0]}
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- import "./TestInfo.css";
3
- export interface ITestInfo {
4
- label: string;
5
- }
6
- declare const TestInfo: (props: ITestInfo) => React.JSX.Element;
7
- export default TestInfo;
@@ -1 +0,0 @@
1
- export { default } from "./TestInfo";
@@ -1,2 +0,0 @@
1
- export { default as TestInfo } from "./TestInfo";
2
- export { default as StepPreloader } from "./preloaders/StepPreloader";
@@ -1,17 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export { default } from "./StepPreloader";
@@ -1 +0,0 @@
1
- export * from './components';
package/dist/index.d.ts DELETED
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
-
3
- interface ITestInfo {
4
- label: string;
5
- }
6
- declare const TestInfo: (props: ITestInfo) => React.JSX.Element;
7
-
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 };