@grassus/ui-package 1.0.10 → 1.0.12
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 +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/index.d.ts +1 -2
- package/dist/cjs/types/components/ui/Header/index.d.ts +1 -2
- package/dist/cjs/types/index.d.ts +1 -4
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/index.d.ts +1 -2
- package/dist/esm/types/components/ui/Header/index.d.ts +1 -2
- package/dist/esm/types/index.d.ts +1 -4
- package/dist/index.d.ts +22 -17
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react"),t=require("antd")
|
|
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 n=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))}))))};n.defaultProps={count:8,colorPrimary:"#1677ff",colorSecondary:"transparent",delay:1.2};const{Title:r}=t.Typography,a=({title:n,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(r,{level:a,ellipsis:!0,style:(null==s?void 0:s.title)||{margin:"0px"}},n)),o&&e.createElement("div",{style:(null==s?void 0:s.actions)||{}},o)));a.defaultProps={level:3},exports.Header=a,exports.StepPreloader=n,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":["../../src/components/
|
|
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","../../src/components/ui/Header/Header.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,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","Title","Typography","Header","title","level","extra","actions","gap","styles","Layout","body","Flex","align","flex","overflow","ellipsis","label"],"mappings":"uDAAA,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,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,KCtDT,MAAMoB,MAAEA,GAAUC,aAmBZC,EAAS,EAAGC,QAAOC,QAAOC,QAAOC,UAASC,MAAKC,YAEjDf,EAAC1B,cAAA0C,EAAAA,OAAOP,QAAOpC,OAAO0C,aAAM,EAANA,EAAQE,OAAQ,IACpCjB,EAAA1B,cAAC4C,OAAK,CAAAC,MAAM,SAASL,IAAKA,EAAKzC,MAAO,CAAEmB,MAAO,SAC5CoB,GAASZ,EAAK1B,cAAA,MAAA,CAAAD,OAAO0C,aAAA,EAAAA,EAAQH,QAAS,CAAA,GAAKA,GAE5CZ,EAAA1B,cAAC4C,EAAIA,KAAA,CAACE,KAAK,WAAW/C,MAAO,CAAEgD,SAAU,WACvCrB,EAAC1B,cAAAiC,EAAM,CAAAI,MAAOA,EAAOW,UAAS,EAAAjD,OAAO0C,aAAM,EAANA,EAAQL,QAAS,CAAEX,OAAQ,QAC7DW,IAIJG,GAAWb,uBAAK3B,OAAO0C,aAAA,EAAAA,EAAQF,UAAW,CAAA,GAAKA,KAMxDJ,EAAOH,aAAe,CACpBK,MAAO,6DFpCS5B,GACTiB,EAAS1B,cAAA,SAAA,KAAAS,EAAMwC","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default Header;
|
|
1
|
+
export { default } from "./Header";
|
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"
|
|
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 a=t=>e.createElement("button",null,t.label),l=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))}))))};l.defaultProps={count:8,colorPrimary:"#1677ff",colorSecondary:"transparent",delay:1.2};const{Title:o}=r,i=({title:r,level:a,extra:l,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%"}},l&&e.createElement("div",{style:(null==d?void 0:d.extra)||{}},l),e.createElement(n,{flex:"1 1 auto",style:{overflow:"hidden"}},e.createElement(o,{level:a,ellipsis:!0,style:(null==d?void 0:d.title)||{margin:"0px"}},r)),i&&e.createElement("div",{style:(null==d?void 0:d.actions)||{}},i)));i.defaultProps={level:3};export{i as Header,l as StepPreloader,a as TestInfo};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/components/
|
|
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","../../src/components/ui/Header/Header.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,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","Title","Typography","Header","title","level","extra","actions","gap","styles","Layout","body","Flex","align","flex","overflow","ellipsis"],"mappings":"8EAAA,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,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,KCtDT,MAAMmB,MAAEA,GAAUC,EAmBZC,EAAS,EAAGC,QAAOC,QAAOC,QAAOC,UAASC,MAAKC,YAEjDjC,EAACV,cAAA4C,EAAOP,QAAOtC,OAAO4C,aAAM,EAANA,EAAQE,OAAQ,IACpCnC,EAAAV,cAAC8C,EAAK,CAAAC,MAAM,SAASL,IAAKA,EAAK3C,MAAO,CAAEsB,MAAO,SAC5CmB,GAAS9B,EAAKV,cAAA,MAAA,CAAAD,OAAO4C,aAAA,EAAAA,EAAQH,QAAS,CAAA,GAAKA,GAE5C9B,EAAAV,cAAC8C,EAAI,CAACE,KAAK,WAAWjD,MAAO,CAAEkD,SAAU,WACvCvC,EAACV,cAAAmC,EAAM,CAAAI,MAAOA,EAAOW,UAAS,EAAAnD,OAAO4C,aAAM,EAANA,EAAQL,QAAS,CAAEV,OAAQ,QAC7DU,IAIJG,GAAW/B,uBAAKX,OAAO4C,aAAA,EAAAA,EAAQF,UAAW,CAAA,GAAKA,KAMxDJ,EAAOH,aAAe,CACpBK,MAAO","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default Header;
|
|
1
|
+
export { default } from "./Header";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
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
|
+
|
|
4
25
|
declare const TITLE_ELE_LIST: readonly [1, 2, 3, 4, 5];
|
|
5
26
|
interface IWrapperHeader {
|
|
6
27
|
actions?: React.ReactNode | undefined;
|
|
@@ -22,20 +43,4 @@ declare const Header: {
|
|
|
22
43
|
};
|
|
23
44
|
};
|
|
24
45
|
|
|
25
|
-
|
|
26
|
-
count?: number;
|
|
27
|
-
colorPrimary?: string;
|
|
28
|
-
colorSecondary?: string;
|
|
29
|
-
delay?: number;
|
|
30
|
-
}
|
|
31
|
-
declare const StepPreloader: {
|
|
32
|
-
(props: IStepPreloader): React.JSX.Element;
|
|
33
|
-
defaultProps: {
|
|
34
|
-
count: number;
|
|
35
|
-
colorPrimary: string;
|
|
36
|
-
colorSecondary: string;
|
|
37
|
-
delay: number;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export { Header, StepPreloader };
|
|
46
|
+
export { Header, StepPreloader, TestInfo };
|