@grassus/ui-package 1.0.12 → 1.0.13
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"),t=require("antd");!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&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
|
|
1
|
+
"use strict";var e=require("react"),t=require("antd");const{Title:n}=t.Typography,r=({title:r,level:a,extra:l,actions:o,gap:i,styles:s})=>e.createElement(t.Layout.Header,{style:(null==s?void 0:s.body)||{}},e.createElement(t.Flex,{align:"center",gap:i,style:{width:"100%"}},l&&e.createElement("div",{style:(null==s?void 0:s.extra)||{}},l),e.createElement(t.Flex,{flex:"1 1 auto",style:{overflow:"hidden"}},e.createElement(n,{level:a,ellipsis:!0,style:(null==s?void 0:s.title)||{margin:"0px"}},r)),o&&e.createElement("div",{style:(null==s?void 0:s.actions)||{}},o)));r.defaultProps={level:3};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&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 a=t=>{const{colorPrimary:n,colorSecondary:r,count:a,delay:l}=t,o=e=>({animationDelay:`${.1*e}s`}),i={width:"10px",height:"70px",display:"inline-block",transformOrigin:"bottom center",borderTopRightRadius:"20px",borderTopLeftRadius:"20px",animation:`animationStepPreloader ${l}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: ${n};\n }\n 100% {\n transform: scaleY(0.1);\n background: ${r};\n }\n }\n `),Array.from(Array(a).keys()).map((t=>e.createElement("div",{key:t,style:Object.assign(Object.assign({},i),o(t))}))))};a.defaultProps={count:8,colorPrimary:"#1677ff",colorSecondary:"transparent",delay:1.2},exports.Header=r,exports.StepPreloader=a,exports.TestInfo=t=>e.createElement("button",null,t.label);
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/components/ui/Header/Header.tsx","../../node_modules/style-inject/dist/style-inject.es.js","../../src/components/TestInfo/TestInfo.tsx","../../src/components/preloaders/StepPreloader/StepPreloader.tsx"],"sourcesContent":[null,"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":["Title","Typography","Header","title","level","extra","actions","gap","styles","React","createElement","Layout","style","body","Flex","align","width","flex","overflow","ellipsis","margin","defaultProps","css","ref","insertAt","document","head","getElementsByTagName","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","StepPreloader","props","colorPrimary","colorSecondary","count","delay","barItem","item","animationDelay","barStyle1","height","display","transformOrigin","borderTopRightRadius","borderTopLeftRadius","animation","Array","from","keys","map","key","label"],"mappings":"sDAIA,MAAMA,MAAEA,GAAUC,aAmBZC,EAAS,EAAGC,QAAOC,QAAOC,QAAOC,UAASC,MAAKC,YAEjDC,EAACC,cAAAC,EAAAA,OAAOT,QAAOU,OAAOJ,aAAM,EAANA,EAAQK,OAAQ,IACpCJ,EAAAC,cAACI,OAAK,CAAAC,MAAM,SAASR,IAAKA,EAAKK,MAAO,CAAEI,MAAO,SAC5CX,GAASI,EAAKC,cAAA,MAAA,CAAAE,OAAOJ,aAAA,EAAAA,EAAQH,QAAS,CAAA,GAAKA,GAE5CI,EAAAC,cAACI,EAAIA,KAAA,CAACG,KAAK,WAAWL,MAAO,CAAEM,SAAU,WACvCT,EAACC,cAAAV,EAAM,CAAAI,MAAOA,EAAOe,UAAS,EAAAP,OAAOJ,aAAM,EAANA,EAAQL,QAAS,CAAEiB,OAAQ,QAC7DjB,IAIJG,GAAWG,uBAAKG,OAAOJ,aAAA,EAAAA,EAAQF,UAAW,CAAA,GAAKA,KAMxDJ,EAAOmB,aAAe,CACpBjB,MAAO,IC1CT,SAAqBkB,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9Df,EAAQa,SAASf,cAAc,SACnCE,EAAMgB,KAAO,WAEI,QAAbJ,GACEE,EAAKG,WACPH,EAAKI,aAAalB,EAAOc,EAAKG,YAKhCH,EAAKK,YAAYnB,GAGfA,EAAMoB,WACRpB,EAAMoB,WAAWC,QAAUX,EAE3BV,EAAMmB,YAAYN,SAASS,eAAeZ,GAnBY,CAqB1D,6CCnBA,MCGMa,EAAiBC,IACrB,MAAMC,aAAEA,EAAYC,eAAEA,EAAcC,MAAEA,EAAKC,MAAEA,GAAUJ,EACjDK,EAAWC,IAER,CAAEC,eAAgB,GADR,GAAMD,OAInBE,EAAiC,CACrC5B,MAAO,OACP6B,OAAQ,OACRC,QAAS,eACTC,gBAAiB,gBACjBC,qBAAsB,OACtBC,oBAAqB,OACrBC,UAAW,0BAA0BV,qBACrCpB,OAAQ,OAGV,OACEX,EAAAC,cAAA,OAAA,KACED,EACGC,cAAA,QAAA,KAAA,uIAImB4B,wGAIAD,2GAIAC,4CAKrBa,MAAMC,KAAKD,MAAMZ,GAAOc,QAAQC,KAAKZ,GACpCjC,EAAAC,cAAA,MAAA,CAAK6C,IAAKb,EAAM9B,qCAAYgC,GAAcH,EAAQC,QAGtD,EAGJP,EAAcd,aAAe,CAC3BkB,MAAO,EACPF,aAAc,UACdC,eAAgB,cAChBE,MAAO,+DDpDSJ,GACT3B,EAASC,cAAA,SAAA,KAAA0B,EAAMoB","x_google_ignoreList":[1]}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import{Layout as t,Flex as n,Typography as r}from"antd";!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&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
|
|
1
|
+
import e from"react";import{Layout as t,Flex as n,Typography as r}from"antd";const{Title:a}=r,l=({title:r,level:l,extra:o,actions:i,gap:s,styles:d})=>e.createElement(t.Header,{style:(null==d?void 0:d.body)||{}},e.createElement(n,{align:"center",gap:s,style:{width:"100%"}},o&&e.createElement("div",{style:(null==d?void 0:d.extra)||{}},o),e.createElement(n,{flex:"1 1 auto",style:{overflow:"hidden"}},e.createElement(a,{level:l,ellipsis:!0,style:(null==d?void 0:d.title)||{margin:"0px"}},r)),i&&e.createElement("div",{style:(null==d?void 0:d.actions)||{}},i)));l.defaultProps={level:3};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&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 o=t=>e.createElement("button",null,t.label),i=t=>{const{colorPrimary:n,colorSecondary:r,count:a,delay:l}=t,o=e=>({animationDelay:`${.1*e}s`}),i={width:"10px",height:"70px",display:"inline-block",transformOrigin:"bottom center",borderTopRightRadius:"20px",borderTopLeftRadius:"20px",animation:`animationStepPreloader ${l}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: ${n};\n }\n 100% {\n transform: scaleY(0.1);\n background: ${r};\n }\n }\n `),Array.from(Array(a).keys()).map((t=>e.createElement("div",{key:t,style:Object.assign(Object.assign({},i),o(t))}))))};i.defaultProps={count:8,colorPrimary:"#1677ff",colorSecondary:"transparent",delay:1.2};export{l as Header,i as StepPreloader,o as TestInfo};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/components/ui/Header/Header.tsx","../../node_modules/style-inject/dist/style-inject.es.js","../../src/components/TestInfo/TestInfo.tsx","../../src/components/preloaders/StepPreloader/StepPreloader.tsx"],"sourcesContent":[null,"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":["Title","Typography","Header","title","level","extra","actions","gap","styles","React","createElement","Layout","style","body","Flex","align","width","flex","overflow","ellipsis","margin","defaultProps","css","ref","insertAt","document","head","getElementsByTagName","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","TestInfo","props","label","StepPreloader","colorPrimary","colorSecondary","count","delay","barItem","item","animationDelay","barStyle1","height","display","transformOrigin","borderTopRightRadius","borderTopLeftRadius","animation","Array","from","keys","map","key"],"mappings":"6EAIA,MAAMA,MAAEA,GAAUC,EAmBZC,EAAS,EAAGC,QAAOC,QAAOC,QAAOC,UAASC,MAAKC,YAEjDC,EAACC,cAAAC,EAAOT,QAAOU,OAAOJ,aAAM,EAANA,EAAQK,OAAQ,IACpCJ,EAAAC,cAACI,EAAK,CAAAC,MAAM,SAASR,IAAKA,EAAKK,MAAO,CAAEI,MAAO,SAC5CX,GAASI,EAAKC,cAAA,MAAA,CAAAE,OAAOJ,aAAA,EAAAA,EAAQH,QAAS,CAAA,GAAKA,GAE5CI,EAAAC,cAACI,EAAI,CAACG,KAAK,WAAWL,MAAO,CAAEM,SAAU,WACvCT,EAACC,cAAAV,EAAM,CAAAI,MAAOA,EAAOe,UAAS,EAAAP,OAAOJ,aAAM,EAANA,EAAQL,QAAS,CAAEiB,OAAQ,QAC7DjB,IAIJG,GAAWG,uBAAKG,OAAOJ,aAAA,EAAAA,EAAQF,UAAW,CAAA,GAAKA,KAMxDJ,EAAOmB,aAAe,CACpBjB,MAAO,IC1CT,SAAqBkB,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9Df,EAAQa,SAASf,cAAc,SACnCE,EAAMgB,KAAO,WAEI,QAAbJ,GACEE,EAAKG,WACPH,EAAKI,aAAalB,EAAOc,EAAKG,YAKhCH,EAAKK,YAAYnB,GAGfA,EAAMoB,WACRpB,EAAMoB,WAAWC,QAAUX,EAE3BV,EAAMmB,YAAYN,SAASS,eAAeZ,GAnBY,CAqB1D,6CCnBA,MAAMa,EAAYC,GACT3B,EAASC,cAAA,SAAA,KAAA0B,EAAMC,OCElBC,EAAiBF,IACrB,MAAMG,aAAEA,EAAYC,eAAEA,EAAcC,MAAEA,EAAKC,MAAEA,GAAUN,EACjDO,EAAWC,IAER,CAAEC,eAAgB,GADR,GAAMD,OAInBE,EAAiC,CACrC9B,MAAO,OACP+B,OAAQ,OACRC,QAAS,eACTC,gBAAiB,gBACjBC,qBAAsB,OACtBC,oBAAqB,OACrBC,UAAW,0BAA0BV,qBACrCtB,OAAQ,OAGV,OACEX,EAAAC,cAAA,OAAA,KACED,EACGC,cAAA,QAAA,KAAA,uIAImB8B,wGAIAD,2GAIAC,4CAKrBa,MAAMC,KAAKD,MAAMZ,GAAOc,QAAQC,KAAKZ,GACpCnC,EAAAC,cAAA,MAAA,CAAK+C,IAAKb,EAAMhC,qCAAYkC,GAAcH,EAAQC,QAGtD,EAGJN,EAAcjB,aAAe,CAC3BoB,MAAO,EACPF,aAAc,UACdC,eAAgB,cAChBE,MAAO","x_google_ignoreList":[1]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,27 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SizeType } from 'antd/es/config-provider/SizeContext';
|
|
3
3
|
|
|
4
|
-
interface ITestInfo {
|
|
5
|
-
label: string;
|
|
6
|
-
}
|
|
7
|
-
declare const TestInfo: (props: ITestInfo) => React.JSX.Element;
|
|
8
|
-
|
|
9
|
-
interface IStepPreloader {
|
|
10
|
-
count?: number;
|
|
11
|
-
colorPrimary?: string;
|
|
12
|
-
colorSecondary?: string;
|
|
13
|
-
delay?: number;
|
|
14
|
-
}
|
|
15
|
-
declare const StepPreloader: {
|
|
16
|
-
(props: IStepPreloader): React.JSX.Element;
|
|
17
|
-
defaultProps: {
|
|
18
|
-
count: number;
|
|
19
|
-
colorPrimary: string;
|
|
20
|
-
colorSecondary: string;
|
|
21
|
-
delay: number;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
|
|
25
4
|
declare const TITLE_ELE_LIST: readonly [1, 2, 3, 4, 5];
|
|
26
5
|
interface IWrapperHeader {
|
|
27
6
|
actions?: React.ReactNode | undefined;
|
|
@@ -43,4 +22,25 @@ declare const Header: {
|
|
|
43
22
|
};
|
|
44
23
|
};
|
|
45
24
|
|
|
25
|
+
interface ITestInfo {
|
|
26
|
+
label: string;
|
|
27
|
+
}
|
|
28
|
+
declare const TestInfo: (props: ITestInfo) => React.JSX.Element;
|
|
29
|
+
|
|
30
|
+
interface IStepPreloader {
|
|
31
|
+
count?: number;
|
|
32
|
+
colorPrimary?: string;
|
|
33
|
+
colorSecondary?: string;
|
|
34
|
+
delay?: number;
|
|
35
|
+
}
|
|
36
|
+
declare const StepPreloader: {
|
|
37
|
+
(props: IStepPreloader): React.JSX.Element;
|
|
38
|
+
defaultProps: {
|
|
39
|
+
count: number;
|
|
40
|
+
colorPrimary: string;
|
|
41
|
+
colorSecondary: string;
|
|
42
|
+
delay: number;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
|
|
46
46
|
export { Header, StepPreloader, TestInfo };
|