@grassus/ui-package 1.0.7 → 1.0.8

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.md CHANGED
@@ -1,2 +1,5 @@
1
1
  # ui-package
2
2
  UI package
3
+
4
+ npm login
5
+ npm publish --access public
package/dist/cjs/index.js CHANGED
@@ -1,2 +1,2 @@
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);
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
@@ -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"],"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
+ {"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,3 @@
1
1
  export { default as TestInfo } from "./TestInfo";
2
2
  export { default as StepPreloader } from "./preloaders/StepPreloader";
3
+ export { default as Header } from "./ui/Header";
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { SizeType } from 'antd/es/config-provider/SizeContext';
3
+ declare const TITLE_ELE_LIST: readonly [1, 2, 3, 4, 5];
4
+ interface IWrapperHeader {
5
+ actions?: React.ReactNode | undefined;
6
+ extra?: React.ReactNode | undefined;
7
+ title?: string | undefined;
8
+ level?: (typeof TITLE_ELE_LIST)[number];
9
+ gap?: React.CSSProperties['gap'] | SizeType;
10
+ styles?: {
11
+ actions?: React.CSSProperties;
12
+ body?: React.CSSProperties;
13
+ extra?: React.CSSProperties;
14
+ title?: React.CSSProperties;
15
+ };
16
+ }
17
+ declare const Header: {
18
+ ({ title, level, extra, actions, gap, styles }: IWrapperHeader): React.JSX.Element;
19
+ defaultProps: {
20
+ level: number;
21
+ };
22
+ };
23
+ export default Header;
@@ -0,0 +1,2 @@
1
+ import Header from './Header';
2
+ export default Header;
@@ -0,0 +1 @@
1
+ export { default as Header } from "./Header";
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
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};
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
@@ -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"],"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
+ {"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,3 @@
1
1
  export { default as TestInfo } from "./TestInfo";
2
2
  export { default as StepPreloader } from "./preloaders/StepPreloader";
3
+ export { default as Header } from "./ui/Header";
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { SizeType } from 'antd/es/config-provider/SizeContext';
3
+ declare const TITLE_ELE_LIST: readonly [1, 2, 3, 4, 5];
4
+ interface IWrapperHeader {
5
+ actions?: React.ReactNode | undefined;
6
+ extra?: React.ReactNode | undefined;
7
+ title?: string | undefined;
8
+ level?: (typeof TITLE_ELE_LIST)[number];
9
+ gap?: React.CSSProperties['gap'] | SizeType;
10
+ styles?: {
11
+ actions?: React.CSSProperties;
12
+ body?: React.CSSProperties;
13
+ extra?: React.CSSProperties;
14
+ title?: React.CSSProperties;
15
+ };
16
+ }
17
+ declare const Header: {
18
+ ({ title, level, extra, actions, gap, styles }: IWrapperHeader): React.JSX.Element;
19
+ defaultProps: {
20
+ level: number;
21
+ };
22
+ };
23
+ export default Header;
@@ -0,0 +1,2 @@
1
+ import Header from './Header';
2
+ export default Header;
@@ -0,0 +1 @@
1
+ export { default as Header } from "./Header";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { SizeType } from 'antd/es/config-provider/SizeContext';
2
3
 
3
4
  interface ITestInfo {
4
5
  label: string;
@@ -21,4 +22,25 @@ declare const StepPreloader: {
21
22
  };
22
23
  };
23
24
 
24
- export { StepPreloader, TestInfo };
25
+ declare const TITLE_ELE_LIST: readonly [1, 2, 3, 4, 5];
26
+ interface IWrapperHeader {
27
+ actions?: React.ReactNode | undefined;
28
+ extra?: React.ReactNode | undefined;
29
+ title?: string | undefined;
30
+ level?: (typeof TITLE_ELE_LIST)[number];
31
+ gap?: React.CSSProperties['gap'] | SizeType;
32
+ styles?: {
33
+ actions?: React.CSSProperties;
34
+ body?: React.CSSProperties;
35
+ extra?: React.CSSProperties;
36
+ title?: React.CSSProperties;
37
+ };
38
+ }
39
+ declare const Header: {
40
+ ({ title, level, extra, actions, gap, styles }: IWrapperHeader): React.JSX.Element;
41
+ defaultProps: {
42
+ level: number;
43
+ };
44
+ };
45
+
46
+ export { Header, StepPreloader, TestInfo };
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.8",
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",