@open-condo/ui 1.4.0 → 1.6.0
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/components/Banner/banner.d.ts +12 -0
- package/dist/components/Banner/banner.d.ts.map +1 -0
- package/dist/components/Banner/index.d.ts +5 -0
- package/dist/components/Banner/index.d.ts.map +1 -0
- package/dist/components/Button/button.d.ts +1 -0
- package/dist/components/Button/button.d.ts.map +1 -1
- package/dist/components/Modal/cross.d.ts +3 -0
- package/dist/components/Modal/cross.d.ts.map +1 -0
- package/dist/components/Modal/index.d.ts +5 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/Modal/modal.d.ts +12 -0
- package/dist/components/Modal/modal.d.ts.map +1 -0
- package/dist/components/Typography/title.d.ts +2 -2
- package/dist/components/_utils/analytics.d.ts +4 -0
- package/dist/components/_utils/analytics.d.ts.map +1 -1
- package/dist/components/_utils/hooks/index.d.ts +2 -0
- package/dist/components/_utils/hooks/index.d.ts.map +1 -0
- package/dist/components/_utils/hooks/useSize.d.ts +8 -0
- package/dist/components/_utils/hooks/useSize.d.ts.map +1 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4989 -513
- package/dist/styles.css +821 -355
- package/dist/styles.min.css +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type BannerProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle: string;
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
actionText: string;
|
|
7
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
8
|
+
imgUrl?: string;
|
|
9
|
+
invertText?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const Banner: React.FC<BannerProps>;
|
|
12
|
+
//# sourceMappingURL=banner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/banner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAOlD,oBAAY,WAAW,GAAG;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;CACvB,CAAA;AAuBD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA2ExC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,cAAc,CAAA;AAErB,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAC3C,OAAO,EACH,MAAM,GACT,CAAA"}
|
|
@@ -3,6 +3,7 @@ import { ButtonProps as DefaultButtonProps } from 'antd';
|
|
|
3
3
|
declare type CondoButtonProps = {
|
|
4
4
|
type: 'primary' | 'secondary';
|
|
5
5
|
children?: string;
|
|
6
|
+
stateless?: boolean;
|
|
6
7
|
};
|
|
7
8
|
export declare type ButtonProps = Omit<DefaultButtonProps, 'shape' | 'size' | 'style' | 'ghost' | 'type' | 'prefix' | 'prefixCls'> & CondoButtonProps;
|
|
8
9
|
declare const Button: React.ForwardRefExoticComponent<Omit<Partial<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAA;AAC1C,OAAO,EAEH,WAAW,IAAI,kBAAkB,EACpC,MAAM,MAAM,CAAA;AAOb,aAAK,gBAAgB,GAAG;IACpB,IAAI,EAAE,SAAS,GAAG,WAAW,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAA;AAC1C,OAAO,EAEH,WAAW,IAAI,kBAAkB,EACpC,MAAM,MAAM,CAAA;AAOb,aAAK,gBAAgB,GAAG;IACpB,IAAI,EAAE,SAAS,GAAG,WAAW,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,oBAAY,WAAW,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,CAAC,GACxH,gBAAgB,CAAA;AAElB,QAAA,MAAM,MAAM;;;;;;;oMAsCV,CAAA;AAIF,OAAO,EACH,MAAM,GACT,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cross.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/cross.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAUpE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,cAAc,CAAA;AAErB,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ModalProps as DefaultModalProps } from 'antd';
|
|
3
|
+
declare type CondoModalWidthType = 'small' | 'big' | 'fit-content';
|
|
4
|
+
declare type CondoModalProps = {
|
|
5
|
+
title: string;
|
|
6
|
+
open: boolean;
|
|
7
|
+
width?: CondoModalWidthType;
|
|
8
|
+
};
|
|
9
|
+
export declare type ModalProps = Pick<DefaultModalProps, 'children' | 'footer' | 'className' | 'afterClose' | 'maskClosable' | 'destroyOnClose' | 'getContainer' | 'zIndex'> & CondoModalProps;
|
|
10
|
+
declare const Modal: React.FC<ModalProps>;
|
|
11
|
+
export { Modal, };
|
|
12
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAC1D,OAAO,EAAyB,UAAU,IAAI,iBAAiB,EAAE,MAAM,MAAM,CAAA;AAK7E,aAAK,mBAAmB,GAAG,OAAO,GAAG,KAAK,GAAG,aAAa,CAAA;AAE1D,aAAK,eAAe,GAAG;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,CAAC,EAAE,mBAAmB,CAAA;CAC9B,CAAA;AAED,oBAAY,UAAU,GAAG,IAAI,CAAC,iBAAiB,EAC/C,UAAU,GACR,QAAQ,GACR,WAAW,GACX,YAAY,GACZ,cAAc,GACd,gBAAgB,GAChB,cAAc,GACd,QAAQ,CACT,GAAG,eAAe,CAAA;AASnB,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA0C/B,CAAA;AAED,OAAO,EACH,KAAK,GACR,CAAA"}
|
|
@@ -6,9 +6,9 @@ export declare type TypographyTitleProps = Pick<DefaultTitleProps, 'ellipsis' |
|
|
|
6
6
|
type?: typeof TITLE_TYPES[number];
|
|
7
7
|
level?: typeof TITLE_LEVELS[number];
|
|
8
8
|
};
|
|
9
|
-
declare const Title: React.ForwardRefExoticComponent<Pick<DefaultTitleProps, "
|
|
9
|
+
declare const Title: React.ForwardRefExoticComponent<Pick<DefaultTitleProps, "title" | "onClick" | "children" | "ellipsis"> & {
|
|
10
10
|
type?: "inverted" | undefined;
|
|
11
|
-
level?: 1 | 2 | 3 |
|
|
11
|
+
level?: 1 | 2 | 3 | 6 | 4 | 5 | undefined;
|
|
12
12
|
} & React.RefAttributes<HTMLElement>>;
|
|
13
13
|
export { Title, };
|
|
14
14
|
//# sourceMappingURL=title.d.ts.map
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
declare type ComponentSpecificClickEventProps = {
|
|
2
|
+
Banner: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
2
5
|
Button: {
|
|
3
6
|
value: string;
|
|
7
|
+
type: string;
|
|
4
8
|
};
|
|
5
9
|
};
|
|
6
10
|
export declare function sendAnalyticsClickEvent<K extends keyof ComponentSpecificClickEventProps>(component: K, data: ComponentSpecificClickEventProps[K]): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../src/components/_utils/analytics.ts"],"names":[],"mappings":"AAEA,aAAK,gCAAgC,GAAG;IACpC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../src/components/_utils/analytics.ts"],"names":[],"mappings":"AAEA,aAAK,gCAAgC,GAAG;IACpC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;IACzB,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAC1C,CAAA;AAYD,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,gCAAgC,EAAG,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,gCAAgC,CAAC,CAAC,CAAC,GAAG,IAAI,CAgBxJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/_utils/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSize.d.ts","sourceRoot":"","sources":["../../../../src/components/_utils/hooks/useSize.ts"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,aAAK,QAAQ,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAEjD,eAAO,MAAM,OAAO,QAAS,MAAM,gBAAgB,CAAC,WAAW,GAAG,IAAI,CAAC,KAAG,QAczE,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import '@open-condo/ui/src/components/style/core/global.less';
|
|
2
|
+
export { Banner } from './components/Banner';
|
|
3
|
+
export type { BannerProps } from './components/Banner';
|
|
2
4
|
export { Button } from './components/Button';
|
|
3
5
|
export type { ButtonProps } from './components/Button';
|
|
4
6
|
export { Carousel } from './components/Carousel';
|
|
5
7
|
export type { CarouselProps } from './components/Carousel';
|
|
6
|
-
export { Typography } from './components/Typography';
|
|
7
|
-
export type { TypographyType, TypographyTextProps, TypographyTitleProps, TypographyLinkProps, TypographyParagraphProps, } from './components/Typography';
|
|
8
8
|
export { Markdown } from './components/Markdown';
|
|
9
9
|
export type { MarkdownProps } from './components/Markdown';
|
|
10
|
+
export { Modal } from './components/Modal';
|
|
11
|
+
export type { ModalProps } from './components/Modal';
|
|
12
|
+
export { Typography } from './components/Typography';
|
|
13
|
+
export type { TypographyType, TypographyTextProps, TypographyTitleProps, TypographyLinkProps, TypographyParagraphProps, } from './components/Typography';
|
|
10
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,sDAAsD,CAAA;AAE7D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAE1D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,sDAAsD,CAAA;AAE7D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEtD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAE1D,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAE1D,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,YAAY,EACR,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,GAC3B,MAAM,yBAAyB,CAAA"}
|