@grassus/ui-package 1.0.15 → 1.0.17

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("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 t=t=>{const{colorPrimary:n,colorSecondary:r,count:a,delay:o}=t,l=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: ${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({},s),l(t))}))))};t.defaultProps={count:8,colorPrimary:"#1677ff",colorSecondary:"transparent",delay:1.2},exports.Header=t=>e.createElement("button",null,t.label),exports.StepPreloader=t,exports.TestInfo=t=>e.createElement("button",null,t.label);
1
+ "use strict";var e=require("react"),t=require("antd");const{Title:n}=t.Typography;!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 r=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))}))))};r.defaultProps={count:8,colorPrimary:"#1677ff",colorSecondary:"transparent",delay:1.2},exports.Header=({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))),exports.StepPreloader=r,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","../../src/components/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","label"],"mappings":"qCAAA,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,oBCrDOJ,GACPiB,EAAS1B,cAAA,SAAA,KAAAS,EAAMwB,gDFANxB,GACTiB,EAAS1B,cAAA,SAAA,KAAAS,EAAMwB","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.js","sources":["../../src/components/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","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","level","extra","actions","gap","styles","Layout","Header","body","Flex","align","flex","overflow","ellipsis","label"],"mappings":"sDAIA,MAAMA,MAAEA,GAAUC,cCJlB,SAAqBC,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,oBHpCM,EAAGoB,QAAOC,QAAOC,QAAOC,UAASC,MAAKC,YAEjDZ,EAAC1B,cAAAuC,EAAAA,OAAOC,QAAOzC,OAAOuC,aAAM,EAANA,EAAQG,OAAQ,IACpCf,EAAA1B,cAAC0C,OAAK,CAAAC,MAAM,SAASN,IAAKA,EAAKtC,MAAO,CAAEmB,MAAO,SAC5CiB,GAAST,EAAK1B,cAAA,MAAA,CAAAD,OAAOuC,aAAA,EAAAA,EAAQH,QAAS,CAAA,GAAKA,GAE5CT,EAAA1B,cAAC0C,EAAIA,KAAA,CAACE,KAAK,WAAW7C,MAAO,CAAE8C,SAAU,WACvCnB,EAAC1B,cAAAT,EAAM,CAAA2C,MAAOA,EAAOY,UAAS,EAAA/C,OAAOuC,aAAM,EAANA,EAAQL,QAAS,CAAER,OAAQ,QAC7DQ,IAIJG,GAAWV,uBAAK3B,OAAOuC,aAAA,EAAAA,EAAQF,UAAW,CAAA,GAAKA,8CE5BtC3B,GACTiB,EAAS1B,cAAA,SAAA,KAAAS,EAAMsC","x_google_ignoreList":[1]}
@@ -1,6 +1,18 @@
1
- import React from "react";
2
- export interface ITestInfo {
3
- label: string;
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
+ };
4
16
  }
5
- declare const Header: (props: ITestInfo) => React.JSX.Element;
17
+ declare const Header: ({ title, level, extra, actions, gap, styles }: IWrapperHeader) => React.JSX.Element;
6
18
  export default Header;
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import e from"react";const n=n=>e.createElement("button",null,n.label);!function(e,n){void 0===n&&(n={});var t=n.insertAt;if("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 t=n=>e.createElement("button",null,n.label),r=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:`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({},i),l(n))}))))};r.defaultProps={count:8,colorPrimary:"#1677ff",colorSecondary:"transparent",delay:1.2};export{n as Header,r as StepPreloader,t as TestInfo};
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)));!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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/components/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":["Header","props","React","createElement","label","css","ref","insertAt","document","head","getElementsByTagName","style","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","TestInfo","StepPreloader","colorPrimary","colorSecondary","count","delay","barItem","item","animationDelay","barStyle1","width","height","display","transformOrigin","borderTopRightRadius","borderTopLeftRadius","animation","margin","Array","from","keys","map","key","defaultProps"],"mappings":"qBAKA,MAAMA,EAAUC,GACPC,EAASC,cAAA,SAAA,KAAAF,EAAMG,QCNxB,SAAqBC,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASL,cAAc,SACnCQ,EAAMC,KAAO,WAEI,QAAbL,GACEE,EAAKI,WACPJ,EAAKK,aAAaH,EAAOF,EAAKI,YAKhCJ,EAAKM,YAAYJ,GAGfA,EAAMK,WACRL,EAAMK,WAAWC,QAAUZ,EAE3BM,EAAMI,YAAYP,SAASU,eAAeb,GAnBY,CAqB1D,6CCnBA,MAAMc,EAAYlB,GACTC,EAASC,cAAA,SAAA,KAAAF,EAAMG,OCElBgB,EAAiBnB,IACrB,MAAMoB,aAAEA,EAAYC,eAAEA,EAAcC,MAAEA,EAAKC,MAAEA,GAAUvB,EACjDwB,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,OACElC,EAAAC,cAAA,OAAA,KACED,EACGC,cAAA,QAAA,KAAA,uIAImBmB,wGAIAD,2GAIAC,4CAKrBe,MAAMC,KAAKD,MAAMd,GAAOgB,QAAQC,KAAKd,GACpCxB,EAAAC,cAAA,MAAA,CAAKsC,IAAKf,EAAMf,qCAAYiB,GAAcH,EAAQC,QAGtD,EAGJN,EAAcsB,aAAe,CAC3BnB,MAAO,EACPF,aAAc,UACdC,eAAgB,cAChBE,MAAO","x_google_ignoreList":[1]}
1
+ {"version":3,"file":"index.js","sources":["../../src/components/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","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","defaultProps"],"mappings":"6EAIA,MAAMA,MAAEA,GAAUC,EAkBZC,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,MClCxD,SAAqBe,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9Dd,EAAQY,SAASd,cAAc,SACnCE,EAAMe,KAAO,WAEI,QAAbJ,GACEE,EAAKG,WACPH,EAAKI,aAAajB,EAAOa,EAAKG,YAKhCH,EAAKK,YAAYlB,GAGfA,EAAMmB,WACRnB,EAAMmB,WAAWC,QAAUX,EAE3BT,EAAMkB,YAAYN,SAASS,eAAeZ,GAnBY,CAqB1D,6CCnBA,MAAMa,EAAYC,GACT1B,EAASC,cAAA,SAAA,KAAAyB,EAAMC,OCElBC,EAAiBF,IACrB,MAAMG,aAAEA,EAAYC,eAAEA,EAAcC,MAAEA,EAAKC,MAAEA,GAAUN,EACjDO,EAAWC,IAER,CAAEC,eAAgB,GADR,GAAMD,OAInBE,EAAiC,CACrC7B,MAAO,OACP8B,OAAQ,OACRC,QAAS,eACTC,gBAAiB,gBACjBC,qBAAsB,OACtBC,oBAAqB,OACrBC,UAAW,0BAA0BV,qBACrCrB,OAAQ,OAGV,OACEX,EAAAC,cAAA,OAAA,KACED,EACGC,cAAA,QAAA,KAAA,uIAImB6B,wGAIAD,2GAIAC,4CAKrBa,MAAMC,KAAKD,MAAMZ,GAAOc,QAAQC,KAAKZ,GACpClC,EAAAC,cAAA,MAAA,CAAK8C,IAAKb,EAAM/B,qCAAYiC,GAAcH,EAAQC,QAGtD,EAGJN,EAAcoB,aAAe,CAC3BjB,MAAO,EACPF,aAAc,UACdC,eAAgB,cAChBE,MAAO","x_google_ignoreList":[1]}
@@ -1,6 +1,18 @@
1
- import React from "react";
2
- export interface ITestInfo {
3
- label: string;
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
+ };
4
16
  }
5
- declare const Header: (props: ITestInfo) => React.JSX.Element;
17
+ declare const Header: ({ title, level, extra, actions, gap, styles }: IWrapperHeader) => React.JSX.Element;
6
18
  export default Header;
package/dist/index.d.ts CHANGED
@@ -1,9 +1,21 @@
1
1
  import React from 'react';
2
+ import { SizeType } from 'antd/es/config-provider/SizeContext';
2
3
 
3
- interface ITestInfo$1 {
4
- label: string;
4
+ declare const TITLE_ELE_LIST: readonly [1, 2, 3, 4, 5];
5
+ interface IWrapperHeader {
6
+ actions?: React.ReactNode | undefined;
7
+ extra?: React.ReactNode | undefined;
8
+ title?: string | undefined;
9
+ level?: (typeof TITLE_ELE_LIST)[number];
10
+ gap?: React.CSSProperties['gap'] | SizeType;
11
+ styles?: {
12
+ actions?: React.CSSProperties;
13
+ body?: React.CSSProperties;
14
+ extra?: React.CSSProperties;
15
+ title?: React.CSSProperties;
16
+ };
5
17
  }
6
- declare const Header: (props: ITestInfo$1) => React.JSX.Element;
18
+ declare const Header: ({ title, level, extra, actions, gap, styles }: IWrapperHeader) => React.JSX.Element;
7
19
 
8
20
  interface ITestInfo {
9
21
  label: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grassus/ui-package",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "description": "Grassus UI package",
5
5
  "repository": "https://github.com/grassus/ui-package.git",
6
6
  "author": "Pavel 'Grassus' Dzekunov",