@open-condo/ui 1.7.0 → 1.8.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,9 @@
1
+ import React from 'react';
2
+ import { AlertProps as DefaultAlertProps } from 'antd';
3
+ declare type CondoAlertProps = {
4
+ type: 'success' | 'info' | 'warning' | 'error';
5
+ };
6
+ export declare type AlertProps = Pick<DefaultAlertProps, 'message' | 'showIcon' | 'description'> & CondoAlertProps;
7
+ declare const Alert: React.FC<AlertProps>;
8
+ export { Alert, };
9
+ //# sourceMappingURL=alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAyB,UAAU,IAAI,iBAAiB,EAAE,MAAM,MAAM,CAAA;AAE7E,aAAK,eAAe,GAAG;IACnB,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;CAClD,CAAA;AAID,oBAAY,UAAU,GAAG,IAAI,CAAC,iBAAiB,EAAE,SAAS,GAAG,UAAU,GAAG,aAAa,CAAC,GAAG,eAAe,CAAA;AAE1G,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAO/B,CAAA;AAED,OAAO,EACH,KAAK,GACR,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { Alert } from './alert';
2
+ import './style.less';
3
+ export type { AlertProps } from './alert';
4
+ export { Alert };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/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"}
@@ -13,6 +13,6 @@ declare const Button: React.ForwardRefExoticComponent<Omit<Partial<{
13
13
  } & import("antd/lib/button/button").BaseButtonProps & Omit<React.AnchorHTMLAttributes<any>, "type" | "onClick"> & {
14
14
  htmlType?: "button" | "submit" | "reset" | undefined;
15
15
  onClick?: React.MouseEventHandler<HTMLElement> | undefined;
16
- } & Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">>, "type" | "style" | "prefix" | "shape" | "size" | "ghost" | "prefixCls"> & CondoButtonProps & React.RefAttributes<HTMLButtonElement>>;
16
+ } & Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">>, "type" | "style" | "prefixCls" | "prefix" | "shape" | "size" | "ghost"> & CondoButtonProps & React.RefAttributes<HTMLButtonElement>>;
17
17
  export { Button, };
18
18
  //# sourceMappingURL=button.d.ts.map
@@ -5,8 +5,8 @@ export declare type TypographyParagraphProps = Omit<DefaultParagraphProps, 'keyb
5
5
  type?: typeof TEXT_TYPES[number];
6
6
  size?: typeof TEXT_SIZES[number];
7
7
  };
8
- declare const Paragraph: React.ForwardRefExoticComponent<Omit<DefaultParagraphProps, "type" | "className" | "style" | "prefixCls" | "mark" | "editable" | "copyable" | "keyboard"> & {
9
- type?: "secondary" | "danger" | "inverted" | "warning" | "info" | "success" | undefined;
8
+ declare const Paragraph: React.ForwardRefExoticComponent<Omit<DefaultParagraphProps, "type" | "style" | "prefixCls" | "className" | "mark" | "editable" | "copyable" | "keyboard"> & {
9
+ type?: "success" | "info" | "warning" | "secondary" | "danger" | "inverted" | undefined;
10
10
  size?: "small" | "large" | "medium" | undefined;
11
11
  } & React.RefAttributes<HTMLSpanElement>>;
12
12
  export { Paragraph, };
@@ -5,8 +5,8 @@ export declare type TypographyTextProps = Omit<DefaultTextProps, 'keyboard' | 't
5
5
  type?: typeof TEXT_TYPES[number];
6
6
  size?: typeof TEXT_SIZES[number];
7
7
  };
8
- declare const Text: React.ForwardRefExoticComponent<Omit<DefaultTextProps, "type" | "className" | "style" | "prefixCls" | "mark" | "editable" | "copyable" | "keyboard"> & {
9
- type?: "secondary" | "danger" | "inverted" | "warning" | "info" | "success" | undefined;
8
+ declare const Text: React.ForwardRefExoticComponent<Omit<DefaultTextProps, "type" | "style" | "prefixCls" | "className" | "mark" | "editable" | "copyable" | "keyboard"> & {
9
+ type?: "success" | "info" | "warning" | "secondary" | "danger" | "inverted" | undefined;
10
10
  size?: "small" | "large" | "medium" | undefined;
11
11
  } & React.RefAttributes<HTMLSpanElement>>;
12
12
  export { Text, };
@@ -6,7 +6,7 @@ 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, "title" | "onClick" | "children" | "ellipsis"> & {
9
+ declare const Title: React.ForwardRefExoticComponent<Pick<DefaultTitleProps, "onClick" | "title" | "children" | "ellipsis"> & {
10
10
  type?: "inverted" | undefined;
11
11
  level?: 1 | 2 | 3 | 6 | 4 | 5 | undefined;
12
12
  } & React.RefAttributes<HTMLElement>>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import '@open-condo/ui/src/components/style/core/global.less';
2
+ export { Alert } from './components/Alert';
3
+ export type { AlertProps } from './components/Alert';
2
4
  export { Banner } from './components/Banner';
3
5
  export type { BannerProps } from './components/Banner';
4
6
  export { Button } from './components/Button';
@@ -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,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,YAAY,EAAE,WAAW,EAAE,MAAM,qBAA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