@grassus/ui-package 1.0.9 → 1.0.10

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.
@@ -0,0 +1,2 @@
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};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;
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/components/ui/Header/Header.tsx","../../src/components/preloaders/StepPreloader/StepPreloader.tsx"],"sourcesContent":[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","StepPreloader","props","colorPrimary","colorSecondary","count","delay","barItem","item","animationDelay","barStyle1","height","display","transformOrigin","borderTopRightRadius","borderTopLeftRadius","animation","Array","from","keys","map","key"],"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,GCjCT,MAAMkB,EAAiBC,IACrB,MAAMC,aAAEA,EAAYC,eAAEA,EAAcC,MAAEA,EAAKC,MAAEA,GAAUJ,EACjDK,EAAWC,IAER,CAAEC,eAAgB,GADR,GAAMD,OAInBE,EAAiC,CACrCf,MAAO,OACPgB,OAAQ,OACRC,QAAS,eACTC,gBAAiB,gBACjBC,qBAAsB,OACtBC,oBAAqB,OACrBC,UAAW,0BAA0BV,qBACrCP,OAAQ,OAGV,OACEX,EAAAC,cAAA,OAAA,KACED,EACGC,cAAA,QAAA,KAAA,uIAImBe,wGAIAD,2GAIAC,4CAKrBa,MAAMC,KAAKD,MAAMZ,GAAOc,QAAQC,KAAKZ,GACpCpB,EAAAC,cAAA,MAAA,CAAKgC,IAAKb,EAAMjB,qCAAYmB,GAAcH,EAAQC,QAGtD,EAGJP,EAAcD,aAAe,CAC3BK,MAAO,EACPF,aAAc,UACdC,eAAgB,cAChBE,MAAO"}
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1 @@
1
+ export { default } from "./TestInfo";
@@ -0,0 +1,4 @@
1
+ import Header from './ui/Header';
2
+ export { default as TestInfo } from "./TestInfo";
3
+ export { default as StepPreloader } from "./preloaders/StepPreloader";
4
+ export { Header };
@@ -0,0 +1,17 @@
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;
@@ -0,0 +1 @@
1
+ export { default } from "./StepPreloader";
@@ -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,4 @@
1
+ import Header from './components/ui/Header';
2
+ import StepPreloader from './components/preloaders/StepPreloader';
3
+ export { StepPreloader };
4
+ export { Header };
@@ -0,0 +1,2 @@
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:c})=>e.createElement(t.Header,{style:(null==c?void 0:c.body)||{}},e.createElement(n,{align:"center",gap:s,style:{width:"100%"}},o&&e.createElement("div",{style:(null==c?void 0:c.extra)||{}},o),e.createElement(n,{flex:"1 1 auto",style:{overflow:"hidden"}},e.createElement(a,{level:l,ellipsis:!0,style:(null==c?void 0:c.title)||{margin:"0px"}},r)),i&&e.createElement("div",{style:(null==c?void 0:c.actions)||{}},i)));l.defaultProps={level:3};const o=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))}))))};o.defaultProps={count:8,colorPrimary:"#1677ff",colorSecondary:"transparent",delay:1.2};export{l as Header,o as StepPreloader};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/components/ui/Header/Header.tsx","../../src/components/preloaders/StepPreloader/StepPreloader.tsx"],"sourcesContent":[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","StepPreloader","props","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,GCjCT,MAAMkB,EAAiBC,IACrB,MAAMC,aAAEA,EAAYC,eAAEA,EAAcC,MAAEA,EAAKC,MAAEA,GAAUJ,EACjDK,EAAWC,IAER,CAAEC,eAAgB,GADR,GAAMD,OAInBE,EAAiC,CACrCf,MAAO,OACPgB,OAAQ,OACRC,QAAS,eACTC,gBAAiB,gBACjBC,qBAAsB,OACtBC,oBAAqB,OACrBC,UAAW,0BAA0BV,qBACrCP,OAAQ,OAGV,OACEX,EAAAC,cAAA,OAAA,KACED,EACGC,cAAA,QAAA,KAAA,uIAImBe,wGAIAD,2GAIAC,4CAKrBa,MAAMC,KAAKD,MAAMZ,GAAOc,QAAQC,KAAKZ,GACpCpB,EAAAC,cAAA,MAAA,CAAKgC,IAAKb,EAAMjB,qCAAYmB,GAAcH,EAAQC,QAGtD,EAGJP,EAAcD,aAAe,CAC3BK,MAAO,EACPF,aAAc,UACdC,eAAgB,cAChBE,MAAO"}
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1 @@
1
+ export { default } from "./TestInfo";
@@ -0,0 +1,4 @@
1
+ import Header from './ui/Header';
2
+ export { default as TestInfo } from "./TestInfo";
3
+ export { default as StepPreloader } from "./preloaders/StepPreloader";
4
+ export { Header };
@@ -0,0 +1,17 @@
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;
@@ -0,0 +1 @@
1
+ export { default } from "./StepPreloader";
@@ -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,4 @@
1
+ import Header from './components/ui/Header';
2
+ import StepPreloader from './components/preloaders/StepPreloader';
3
+ export { StepPreloader };
4
+ export { Header };
@@ -0,0 +1,41 @@
1
+ import React from 'react';
2
+ import { SizeType } from 'antd/es/config-provider/SizeContext';
3
+
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
+ };
17
+ }
18
+ declare const Header: {
19
+ ({ title, level, extra, actions, gap, styles }: IWrapperHeader): React.JSX.Element;
20
+ defaultProps: {
21
+ level: number;
22
+ };
23
+ };
24
+
25
+ interface IStepPreloader {
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grassus/ui-package",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Grassus UI package",
5
5
  "repository": "https://github.com/grassus/ui-package.git",
6
6
  "author": "Pavel 'Grassus' Dzekunov",