@open-condo/ui 1.1.0 → 1.2.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,4 @@
1
+ export declare const TYPOGRAPHY_CLASS_PREFIX = "condo-typography";
2
+ export declare const TEXT_SIZES: readonly ["large", "medium", "small"];
3
+ export declare const TEXT_TYPES: readonly ["secondary", "inverted", "danger", "warning", "info", "success"];
4
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,qBAAqB,CAAA;AACzD,eAAO,MAAM,UAAU,uCAAwC,CAAA;AAC/D,eAAO,MAAM,UAAU,4EAA6E,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { Title } from './title';
2
+ import { Text } from './text';
3
+ import { Link } from './link';
4
+ import { Paragraph } from './paragraph';
5
+ import './style.less';
6
+ export type { TypographyTitleProps } from './title';
7
+ export type { TypographyTextProps } from './text';
8
+ export type { TypographyLinkProps } from './link';
9
+ export type { TypographyParagraphProps } from './paragraph';
10
+ export declare type TypographyType = {
11
+ Text: typeof Text;
12
+ Title: typeof Title;
13
+ Link: typeof Link;
14
+ Paragraph: typeof Paragraph;
15
+ };
16
+ declare const Typography: TypographyType;
17
+ export { Typography, };
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,cAAc,CAAA;AAErB,YAAY,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AACnD,YAAY,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAA;AACjD,YAAY,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAA;AACjD,YAAY,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAC3D,oBAAY,cAAc,GAAG;IACzB,IAAI,EAAE,OAAO,IAAI,CAAC;IAClB,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,IAAI,EAAE,OAAO,IAAI,CAAC;IAClB,SAAS,EAAE,OAAO,SAAS,CAAC;CAC/B,CAAA;AAED,QAAA,MAAM,UAAU,EAAE,cAKjB,CAAA;AAED,OAAO,EACH,UAAU,GACb,CAAA"}
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { TEXT_SIZES } from './constants';
3
+ export declare type TypographyLinkProps = Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'type'> & {
4
+ title?: string;
5
+ disabled?: boolean;
6
+ ellipsis?: boolean;
7
+ size?: typeof TEXT_SIZES[number];
8
+ id?: string;
9
+ children?: React.ReactNode;
10
+ ['aria-label']?: string;
11
+ };
12
+ declare const Link: React.ForwardRefExoticComponent<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "type"> & {
13
+ title?: string | undefined;
14
+ disabled?: boolean | undefined;
15
+ ellipsis?: boolean | undefined;
16
+ size?: "small" | "large" | "medium" | undefined;
17
+ id?: string | undefined;
18
+ children?: React.ReactNode;
19
+ "aria-label"?: string | undefined;
20
+ } & React.RefAttributes<HTMLElement>>;
21
+ export { Link, };
22
+ //# sourceMappingURL=link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAA2B,UAAU,EAAE,MAAM,aAAa,CAAA;AAEjE,oBAAY,mBAAmB,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,GAAG;IAC5F,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,UAAU,CAAC,MAAM,CAAC,CAAA;IAChC,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,IAAI;;;;;;eAJK,MAAM,SAAS;;qCAqB5B,CAAA;AAIF,OAAO,EACH,IAAI,GACP,CAAA"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { ParagraphProps as DefaultParagraphProps } from 'antd/lib/typography/Paragraph';
3
+ import { TEXT_SIZES, TEXT_TYPES } from './constants';
4
+ export declare type TypographyParagraphProps = Omit<DefaultParagraphProps, 'keyboard' | 'type' | 'editable' | 'copyable' | 'mark' | 'className' | 'prefixCls' | 'style'> & {
5
+ type?: typeof TEXT_TYPES[number];
6
+ size?: typeof TEXT_SIZES[number];
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;
10
+ size?: "small" | "large" | "medium" | undefined;
11
+ } & React.RefAttributes<HTMLSpanElement>>;
12
+ export { Paragraph, };
13
+ //# sourceMappingURL=paragraph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/paragraph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAG5F,OAAO,EAA2B,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7E,oBAAY,wBAAwB,GAAG,IAAI,CAAC,qBAAqB,EACjE,UAAU,GACR,MAAM,GACN,UAAU,GACV,UAAU,GACV,MAAM,GACN,WAAW,GACX,WAAW,GACX,OAAO,CAAC,GAAG;IACT,IAAI,CAAC,EAAE,OAAO,UAAU,CAAC,MAAM,CAAC,CAAA;IAChC,IAAI,CAAC,EAAE,OAAO,UAAU,CAAC,MAAM,CAAC,CAAA;CACnC,CAAA;AAED,QAAA,MAAM,SAAS;;;yCAkBb,CAAA;AAIF,OAAO,EACH,SAAS,GACZ,CAAA"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { TextProps as DefaultTextProps } from 'antd/lib/typography/Text';
3
+ import { TEXT_SIZES, TEXT_TYPES } from './constants';
4
+ export declare type TypographyTextProps = Omit<DefaultTextProps, 'keyboard' | 'type' | 'editable' | 'copyable' | 'mark' | 'className' | 'prefixCls' | 'style'> & {
5
+ type?: typeof TEXT_TYPES[number];
6
+ size?: typeof TEXT_SIZES[number];
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;
10
+ size?: "small" | "large" | "medium" | undefined;
11
+ } & React.RefAttributes<HTMLSpanElement>>;
12
+ export { Text, };
13
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAG7E,OAAO,EAA2B,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7E,oBAAY,mBAAmB,GAAG,IAAI,CAAC,gBAAgB,EACvD,UAAU,GACR,MAAM,GACN,UAAU,GACV,UAAU,GACV,MAAM,GACN,WAAW,GACX,WAAW,GACX,OAAO,CAAC,GAAG;IACT,IAAI,CAAC,EAAE,OAAO,UAAU,CAAC,MAAM,CAAC,CAAA;IAChC,IAAI,CAAC,EAAE,OAAO,UAAU,CAAC,MAAM,CAAC,CAAA;CACnC,CAAA;AAED,QAAA,MAAM,IAAI;;;yCAkBR,CAAA;AAIF,OAAO,EACH,IAAI,GACP,CAAA"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import type { TitleProps as DefaultTitleProps } from 'antd/lib/typography/Title';
3
+ declare const TITLE_LEVELS: [1, 2, 3, 4, 5, 6];
4
+ declare const TITLE_TYPES: ['inverted'];
5
+ export declare type TypographyTitleProps = Pick<DefaultTitleProps, 'ellipsis' | 'onClick' | 'title' | 'children'> & {
6
+ type?: typeof TITLE_TYPES[number];
7
+ level?: typeof TITLE_LEVELS[number];
8
+ };
9
+ declare const Title: React.ForwardRefExoticComponent<Pick<DefaultTitleProps, "onClick" | "title" | "children" | "ellipsis"> & {
10
+ type?: "inverted" | undefined;
11
+ level?: 1 | 2 | 3 | 4 | 5 | 6 | undefined;
12
+ } & React.RefAttributes<HTMLElement>>;
13
+ export { Title, };
14
+ //# sourceMappingURL=title.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAKhF,OAAO,CAAC,MAAM,YAAY,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;AAC9C,OAAO,CAAC,MAAM,WAAW,EAAE,CAAC,UAAU,CAAC,CAAA;AACvC,oBAAY,oBAAoB,GAAG,IAAI,CAAC,iBAAiB,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC,GAAG;IACxG,IAAI,CAAC,EAAE,OAAO,WAAW,CAAC,MAAM,CAAC,CAAA;IACjC,KAAK,CAAC,EAAE,OAAO,YAAY,CAAC,MAAM,CAAC,CAAA;CACtC,CAAA;AAED,QAAA,MAAM,KAAK;;;qCAiBT,CAAA;AAIF,OAAO,EACH,KAAK,GACR,CAAA"}
package/dist/index.d.ts CHANGED
@@ -3,4 +3,6 @@ export { Button } from './components/Button';
3
3
  export type { ButtonProps } from './components/Button';
4
4
  export { Carousel } from './components/Carousel';
5
5
  export type { CarouselProps } from './components/Carousel';
6
+ export { Typography } from './components/Typography';
7
+ export type { TypographyType, TypographyTextProps, TypographyTitleProps, TypographyLinkProps, TypographyParagraphProps, } from './components/Typography';
6
8
  //# 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"}
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,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,YAAY,EACR,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,GAC3B,MAAM,yBAAyB,CAAA"}