@open-condo/ui 1.5.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.
@@ -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"}
@@ -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,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';
8
+ export { Markdown } from './components/Markdown';
9
+ export type { MarkdownProps } from './components/Markdown';
6
10
  export { Modal } from './components/Modal';
7
11
  export type { ModalProps } from './components/Modal';
8
12
  export { Typography } from './components/Typography';
9
13
  export type { TypographyType, TypographyTextProps, TypographyTitleProps, TypographyLinkProps, TypographyParagraphProps, } from './components/Typography';
10
- export { Markdown } from './components/Markdown';
11
- export type { MarkdownProps } from './components/Markdown';
12
14
  //# 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,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;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA"}
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"}