@open-condo/ui 1.5.0 → 1.7.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.
@@ -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,5 @@
1
+ import { Banner } from './banner';
2
+ import './style.less';
3
+ export type { BannerProps } from './banner';
4
+ export { Banner, };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -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;CACpB,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;;;;;;;oMAqCV,CAAA;AAIF,OAAO,EACH,MAAM,GACT,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,14 @@
1
+ import React, { CSSProperties } from 'react';
2
+ import { CardProps as DefaultCardProps } from 'antd';
3
+ export declare type CardProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> & Pick<DefaultCardProps, 'hoverable' | 'title'> & {
4
+ width?: CSSProperties['width'];
5
+ bodyPadding?: CSSProperties['padding'];
6
+ titlePadding?: CSSProperties['padding'];
7
+ };
8
+ declare const Card: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "title"> & Pick<DefaultCardProps, "title" | "hoverable"> & {
9
+ width?: CSSProperties['width'];
10
+ bodyPadding?: CSSProperties['padding'];
11
+ titlePadding?: CSSProperties['padding'];
12
+ } & React.RefAttributes<HTMLDivElement>>;
13
+ export { Card, };
14
+ //# sourceMappingURL=card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC5C,OAAO,EAEH,SAAS,IAAI,gBAAgB,EAChC,MAAM,MAAM,CAAA;AAIb,oBAAY,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,GAC3E,IAAI,CAAC,gBAAgB,EAAE,WAAW,GAAG,OAAO,CAAC,GAAG;IAC5C,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAA;IAC9B,WAAW,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAA;IACtC,YAAY,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,CAAA;CAC1C,CAAA;AAED,QAAA,MAAM,IAAI;YALE,aAAa,CAAC,OAAO,CAAC;kBAChB,aAAa,CAAC,SAAS,CAAC;mBACvB,aAAa,CAAC,SAAS,CAAC;wCAezC,CAAA;AAIF,OAAO,EACH,IAAI,GACP,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { Card } from './card';
2
+ import './style.less';
3
+ export type { CardProps } from './card';
4
+ export { Card, };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,cAAc,CAAA;AAErB,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,EACH,IAAI,GACP,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { Tag } from './tag';
2
+ import './style.less';
3
+ export type { TagProps } from './tag';
4
+ export { Tag, };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAC3B,OAAO,cAAc,CAAA;AAErB,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACrC,OAAO,EACH,GAAG,GACN,CAAA"}
@@ -0,0 +1,13 @@
1
+ import React, { CSSProperties } from 'react';
2
+ export declare type TagProps = React.HTMLAttributes<HTMLSpanElement> & {
3
+ children: string;
4
+ textColor?: CSSProperties['color'];
5
+ bgColor?: CSSProperties['backgroundColor'];
6
+ };
7
+ declare const Tag: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & {
8
+ children: string;
9
+ textColor?: CSSProperties['color'];
10
+ bgColor?: CSSProperties['backgroundColor'];
11
+ } & React.RefAttributes<HTMLSpanElement>>;
12
+ export { Tag, };
13
+ //# sourceMappingURL=tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAQ5C,oBAAY,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,GAAG;IAC3D,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAA;IAClC,OAAO,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAA;CAC7C,CAAA;AAED,QAAA,MAAM,GAAG;cALK,MAAM;gBACJ,aAAa,CAAC,OAAO,CAAC;cACxB,aAAa,CAAC,iBAAiB,CAAC;yCAqB5C,CAAA;AAIF,OAAO,EACH,GAAG,GACN,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, "onClick" | "title" | "children" | "ellipsis"> & {
9
+ declare const Title: React.ForwardRefExoticComponent<Pick<DefaultTitleProps, "title" | "onClick" | "children" | "ellipsis"> & {
10
10
  type?: "inverted" | undefined;
11
- level?: 1 | 2 | 3 | 4 | 5 | 6 | undefined;
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;CAC5B,CAAA;AAWD,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,gCAAgC,EAAG,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,gCAAgC,CAAC,CAAC,CAAC,GAAG,IAAI,CAgBxJ"}
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,2 @@
1
+ export { useSize } from './useSize';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,8 @@
1
+ import React from 'react';
2
+ declare type SizeType = {
3
+ width: number;
4
+ height: number;
5
+ };
6
+ export declare const useSize: (ref: React.MutableRefObject<HTMLElement | null>) => SizeType;
7
+ export {};
8
+ //# sourceMappingURL=useSize.d.ts.map
@@ -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,12 +1,18 @@
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';
6
+ export { Card } from './components/Card';
7
+ export type { CardProps } from './components/Card';
4
8
  export { Carousel } from './components/Carousel';
5
9
  export type { CarouselProps } from './components/Carousel';
10
+ export { Markdown } from './components/Markdown';
11
+ export type { MarkdownProps } from './components/Markdown';
6
12
  export { Modal } from './components/Modal';
7
13
  export type { ModalProps } from './components/Modal';
14
+ export { Tag } from './components/Tag';
15
+ export type { TagProps } from './components/Tag';
8
16
  export { Typography } from './components/Typography';
9
17
  export type { TypographyType, TypographyTextProps, TypographyTitleProps, TypographyLinkProps, TypographyParagraphProps, } from './components/Typography';
10
- export { Markdown } from './components/Markdown';
11
- export type { MarkdownProps } from './components/Markdown';
12
18
  //# sourceMappingURL=index.d.ts.map
@@ -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,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,YA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