@open-condo/ui 1.13.2 → 1.15.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/README.md +6 -0
- package/dist/colors/index.d.ts.map +1 -1
- package/dist/colors/index.js +3 -3
- package/dist/components/Alert/alert.d.ts +1 -1
- package/dist/components/Alert/alert.d.ts.map +1 -1
- package/dist/components/Banner/banner.d.ts.map +1 -1
- package/dist/components/Button/button.d.ts +2 -2
- package/dist/components/Button/button.d.ts.map +1 -1
- package/dist/components/Card/card.d.ts +1 -1
- package/dist/components/Card/card.d.ts.map +1 -1
- package/dist/components/Carousel/carousel.d.ts +1 -1
- package/dist/components/Carousel/carousel.d.ts.map +1 -1
- package/dist/components/Checkbox/checkbox.d.ts +1 -1
- package/dist/components/Checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/List/list.d.ts +2 -1
- package/dist/components/List/list.d.ts.map +1 -1
- package/dist/components/Markdown/markdown.d.ts.map +1 -1
- package/dist/components/Modal/modal.d.ts +1 -1
- package/dist/components/Modal/modal.d.ts.map +1 -1
- package/dist/components/Tag/tag.d.ts.map +1 -1
- package/dist/components/Typography/index.d.ts +2 -2
- package/dist/components/Typography/index.d.ts.map +1 -1
- package/dist/components/Typography/link.d.ts.map +1 -1
- package/dist/components/Typography/paragraph.d.ts +2 -2
- package/dist/components/Typography/paragraph.d.ts.map +1 -1
- package/dist/components/Typography/text.d.ts +2 -2
- package/dist/components/Typography/text.d.ts.map +1 -1
- package/dist/components/Typography/title.d.ts +3 -3
- package/dist/components/Typography/title.d.ts.map +1 -1
- package/dist/components/_utils/analytics.d.ts +7 -0
- package/dist/components/_utils/analytics.d.ts.map +1 -1
- package/dist/index.js +190 -186
- package/dist/styles.css +5 -0
- package/dist/styles.min.css +2 -2
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
[npm-badge-link]: https://img.shields.io/npm/v/@open-condo/ui?style=flat-square
|
|
2
|
+
[npm-pkg-link]: https://www.npmjs.com/package/@open-condo/ui
|
|
3
|
+
|
|
4
|
+
# `@open-condo/ui` [![NPM][npm-badge-link]][npm-pkg-link]
|
|
5
|
+
> A set of React UI components for developing applications inside the condo ecosystem
|
|
6
|
+
|
|
1
7
|
## Table of contents
|
|
2
8
|
[Installation](#installation)\
|
|
3
9
|
[Usage](#usage)\
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/colors/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/colors/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,QAAA,MAAM,MAAM,EAAE,YAAgE,CAAA;AAE9E,OAAO,EACH,MAAM,GACT,CAAA;AAED,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA"}
|
package/dist/colors/index.js
CHANGED
|
@@ -52,8 +52,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
52
52
|
"colors": function() { return /* binding */ colors; }
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
-
;// CONCATENATED MODULE: ./src/colors/colors.json
|
|
56
|
-
var colors_namespaceObject = JSON.parse('{"white":"#fff","black":"#222222","brandGradient":{"1":"linear-gradient(90deg, #e2ffeb 0%, #e7f4ff 100%)","3":"linear-gradient(90deg, #85eba4 0%, #9fd5ff 100%)","5":"linear-gradient(90deg, #4cd174 0%, #6db8f2 100%)","7":"linear-gradient(90deg, #2abb56 0%, #3996dd 100%)"},"green":{"1":"#ebfaef","3":"#88e2a3","5":"#39ce66","7":"#00b538"},"red":{"1":"#ffeceb","3":"#ff938e","5":"#ff3b30","7":"#ec0000"},"yellow":{"1":"#fef8dd","3":"#fcea99","5":"#fadd56","7":"#e9c000"},"orange":{"1":"#fff5e6","3":"#ffbf66","5":"#ff9500","7":"#da7f00"},"blue":{"1":"#e7f4ff","3":"#7dc0f8","5":"#2696f3","7":"#0b78d2"},"purple":{"1":"#f2e9ff","3":"#9e7add","5":"#5e22c6","7":"#4b1c9e"},"pink":{"1":"#ffeef3","3":"#f38aa7","5":"#eb3468","7":"#d21f52"},"brown":{"1":"#f8f1e7","3":"#d2aa6e","5":"#b4710d","7":"#8d590c"},"teal":{"1":"#e9f3f2","3":"#6db8b3","5":"#1c7e79","7":"#135754"},"cyan":{"1":"#edfcf8","3":"#a0e5d2","5":"#5eceb0","7":"#249677"},"gray":{"1":"#f2f4f6","3":"#e1e5ed","5":"#d0d3e5","7":"#707695"}}');
|
|
57
55
|
;// CONCATENATED MODULE: ./src/colors/colors.ts
|
|
58
56
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
59
57
|
|
|
@@ -341,10 +339,12 @@ var typeMap = {
|
|
|
341
339
|
typ: m('')
|
|
342
340
|
}], false)
|
|
343
341
|
};
|
|
342
|
+
;// CONCATENATED MODULE: ./src/colors/colors.json
|
|
343
|
+
var colors_colors_namespaceObject = JSON.parse('{"white":"#fff","black":"#222222","brandGradient":{"1":"linear-gradient(90deg, #e2ffeb 0%, #e7f4ff 100%)","3":"linear-gradient(90deg, #85eba4 0%, #9fd5ff 100%)","5":"linear-gradient(90deg, #4cd174 0%, #6db8f2 100%)","7":"linear-gradient(90deg, #2abb56 0%, #3996dd 100%)"},"green":{"1":"#ebfaef","3":"#88e2a3","5":"#39ce66","7":"#00b538"},"red":{"1":"#ffeceb","3":"#ff938e","5":"#ff3b30","7":"#ec0000"},"yellow":{"1":"#fef8dd","3":"#fcea99","5":"#fadd56","7":"#e9c000"},"orange":{"1":"#fff5e6","3":"#ffbf66","5":"#ff9500","7":"#da7f00"},"blue":{"1":"#e7f4ff","3":"#7dc0f8","5":"#2696f3","7":"#0b78d2"},"purple":{"1":"#f2e9ff","3":"#9e7add","5":"#5e22c6","7":"#4b1c9e"},"pink":{"1":"#ffeef3","3":"#f38aa7","5":"#eb3468","7":"#d21f52"},"brown":{"1":"#f8f1e7","3":"#d2aa6e","5":"#b4710d","7":"#8d590c"},"teal":{"1":"#e9f3f2","3":"#6db8b3","5":"#1c7e79","7":"#135754"},"cyan":{"1":"#edfcf8","3":"#a0e5d2","5":"#5eceb0","7":"#249677"},"gray":{"1":"#f2f4f6","3":"#e1e5ed","5":"#d0d3e5","7":"#707695"}}');
|
|
344
344
|
;// CONCATENATED MODULE: ./src/colors/index.ts
|
|
345
345
|
|
|
346
346
|
|
|
347
|
-
var colors = Convert.toColorPalette(JSON.stringify(
|
|
347
|
+
var colors = Convert.toColorPalette(JSON.stringify(colors_colors_namespaceObject));
|
|
348
348
|
|
|
349
349
|
/******/ return __webpack_exports__;
|
|
350
350
|
/******/ })()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,UAAU,IAAI,iBAAiB,EAAE,MAAM,MAAM,CAAA;AAC7E,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/banner.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/banner.tsx"],"names":[],"mappings":"AACA,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { ButtonProps as DefaultButtonProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare type CondoButtonProps = {
|
|
4
4
|
type: 'primary' | 'secondary';
|
|
5
5
|
children?: string;
|
|
@@ -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" | "prefixCls" | "
|
|
16
|
+
} & Omit<React.ButtonHTMLAttributes<any>, "type" | "onClick">>, "type" | "style" | "prefixCls" | "size" | "prefix" | "shape" | "ghost"> & CondoButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
17
17
|
export { Button, };
|
|
18
18
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,WAAW,IAAI,kBAAkB,EACpC,MAAM,MAAM,CAAA;AAEb,OAAO,KAAsB,MAAM,OAAO,CAAA;AAM1C,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;;;;;;;oMAuCV,CAAA;AAIF,OAAO,EACH,MAAM,GACT,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { CSSProperties } from 'react';
|
|
2
1
|
import { CardProps as DefaultCardProps } from 'antd';
|
|
2
|
+
import React, { CSSProperties } from 'react';
|
|
3
3
|
export declare type CardProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> & Pick<DefaultCardProps, 'hoverable' | 'title'> & {
|
|
4
4
|
width?: CSSProperties['width'];
|
|
5
5
|
bodyPadding?: CSSProperties['padding'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/card.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,SAAS,IAAI,gBAAgB,EAChC,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAI5C,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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { CarouselProps as DefaultCarouselProps } from 'antd';
|
|
3
2
|
import { CarouselRef } from 'antd/lib/carousel';
|
|
3
|
+
import React from 'react';
|
|
4
4
|
export declare type CarouselProps = Pick<DefaultCarouselProps, 'slidesToShow' | 'autoplay' | 'autoplaySpeed' | 'draggable' | 'infinite' | 'speed' | 'beforeChange' | 'children' | 'effect'> & {
|
|
5
5
|
dots?: boolean;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../src/components/Carousel/carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,aAAa,IAAI,oBAAoB,EACxC,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAA;AAYzB,oBAAY,aAAa,GAAG,IAAI,CAAC,oBAAoB,EACrD,cAAc,GACZ,UAAU,GACV,eAAe,GACf,WAAW,GACX,UAAU,GACV,OAAO,GACP,cAAc,GACd,UAAU,GACV,QAAQ,CACT,GAAG;IACA,IAAI,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,QAAA,MAAM,QAAQ;;qCAwBZ,CAAA;AAIF,OAAO,EACH,QAAQ,GACX,CAAA;AAED,YAAY,EACR,WAAW,GACd,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,aAAa,IAAI,oBAAoB,EAAE,MAAM,MAAM,CAAA;AACzF,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAc,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAI/D,aAAK,kBAAkB,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,mBAAmB,CAAA;CACnC,CAAA;AAED,oBAAY,aAAa,GAAG,IAAI,CAAC,oBAAoB,EAAE,WAAW,GAAG,gBAAgB,GAAG,UAAU,GAAG,UAAU,GAAG,eAAe,GAAG,SAAS,CAAC,GAAG,kBAAkB,CAAA;AAEnK,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiBrC,CAAA;AAED,OAAO,EACH,QAAQ,GACX,CAAA"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ListProps as DefaultListProps } from 'antd';
|
|
3
2
|
import type { TypographyTextProps } from '@open-condo/ui/src';
|
|
3
|
+
import type { ListProps as DefaultListProps } from 'antd';
|
|
4
4
|
declare type ListDataSource = {
|
|
5
5
|
label: string;
|
|
6
6
|
value: string;
|
|
7
7
|
valueTextType?: TypographyTextProps['type'];
|
|
8
|
+
valueClick?: () => void;
|
|
8
9
|
};
|
|
9
10
|
declare type CondoListProps = {
|
|
10
11
|
title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/List/list.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/List/list.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAItC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAE7D,OAAO,KAAK,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAA;AAMzD,aAAK,cAAc,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,CAAA;AAE5H,aAAK,cAAc,GAAG;IAClB,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,oBAAY,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,QAAQ,GAAG,YAAY,GAAG,QAAQ,CAAC,GAAG,cAAc,CAAA;AAsC/I,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAgB7B,CAAA;AAID,OAAO,EACH,IAAI,GACP,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../src/components/Markdown/markdown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../src/components/Markdown/markdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAUzB,oBAAY,aAAa,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAA;AAID,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAqB5C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/modal.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,UAAU,IAAI,iBAAiB,EAAE,MAAM,MAAM,CAAA;AAE7E,OAAO,KAAsC,MAAM,OAAO,CAAA;AAO1D,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,GACR,UAAU,CACX,GAAG,eAAe,CAAA;AASnB,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA2C/B,CAAA;AAED,OAAO,EACH,KAAK,GACR,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/tag.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/tag.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAM5C,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Title } from './title';
|
|
2
|
-
import { Text } from './text';
|
|
3
1
|
import { Link } from './link';
|
|
4
2
|
import { Paragraph } from './paragraph';
|
|
3
|
+
import { Text } from './text';
|
|
4
|
+
import { Title } from './title';
|
|
5
5
|
import './style.less';
|
|
6
6
|
export type { TypographyTitleProps } from './title';
|
|
7
7
|
export type { TypographyTextProps } from './text';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/link.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/link.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsB,MAAM,OAAO,CAAA;AAE1C,OAAO,EAA2B,UAAU,EAAE,MAAM,aAAa,CAAA;AAKjE,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;;qCAiC5B,CAAA;AAIF,OAAO,EACH,IAAI,GACP,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ParagraphProps as DefaultParagraphProps } from 'antd/lib/typography/Paragraph';
|
|
3
2
|
import { TEXT_SIZES, TEXT_TYPES } from './constants';
|
|
3
|
+
import type { ParagraphProps as DefaultParagraphProps } from 'antd/lib/typography/Paragraph';
|
|
4
4
|
export declare type TypographyParagraphProps = Omit<DefaultParagraphProps, 'keyboard' | 'type' | 'editable' | 'copyable' | 'mark' | 'className' | 'prefixCls' | 'style'> & {
|
|
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" | "style" | "prefixCls" | "className" | "mark" | "
|
|
8
|
+
declare const Paragraph: React.ForwardRefExoticComponent<Omit<DefaultParagraphProps, "type" | "style" | "prefixCls" | "className" | "mark" | "keyboard" | "editable" | "copyable"> & {
|
|
9
9
|
type?: "success" | "info" | "warning" | "secondary" | "danger" | "inverted" | undefined;
|
|
10
10
|
size?: "small" | "large" | "medium" | undefined;
|
|
11
11
|
} & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/paragraph.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/paragraph.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAA2B,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7E,OAAO,KAAK,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAE5F,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"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { TextProps as DefaultTextProps } from 'antd/lib/typography/Text';
|
|
3
2
|
import { TEXT_SIZES, TEXT_TYPES } from './constants';
|
|
3
|
+
import type { TextProps as DefaultTextProps } from 'antd/lib/typography/Text';
|
|
4
4
|
export declare type TypographyTextProps = Omit<DefaultTextProps, 'keyboard' | 'type' | 'editable' | 'copyable' | 'mark' | 'className' | 'prefixCls' | 'style'> & {
|
|
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" | "style" | "prefixCls" | "className" | "mark" | "
|
|
8
|
+
declare const Text: React.ForwardRefExoticComponent<Omit<DefaultTextProps, "type" | "style" | "prefixCls" | "className" | "mark" | "keyboard" | "editable" | "copyable"> & {
|
|
9
9
|
type?: "success" | "info" | "warning" | "secondary" | "danger" | "inverted" | undefined;
|
|
10
10
|
size?: "small" | "large" | "medium" | undefined;
|
|
11
11
|
} & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/text.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/text.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAA2B,UAAU,EAAE,UAAU,EAAwB,MAAM,aAAa,CAAA;AAEnG,OAAO,KAAK,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAI7E,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;;;yCA2BR,CAAA;AAIF,OAAO,EACH,IAAI,GACP,CAAA"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { TitleProps as DefaultTitleProps } from 'antd/lib/typography/Title';
|
|
3
3
|
declare const TITLE_LEVELS: [1, 2, 3, 4, 5, 6];
|
|
4
|
-
declare const TITLE_TYPES: ['inverted'];
|
|
4
|
+
declare const TITLE_TYPES: ['inverted', 'secondary', 'danger', 'warning', 'info', 'success'];
|
|
5
5
|
export declare type TypographyTitleProps = Pick<DefaultTitleProps, 'ellipsis' | 'onClick' | 'title' | 'children'> & {
|
|
6
6
|
type?: typeof TITLE_TYPES[number];
|
|
7
7
|
level?: typeof TITLE_LEVELS[number];
|
|
8
8
|
};
|
|
9
9
|
declare const Title: React.ForwardRefExoticComponent<Pick<DefaultTitleProps, "onClick" | "title" | "children" | "ellipsis"> & {
|
|
10
|
-
type?: "inverted" | undefined;
|
|
11
|
-
level?:
|
|
10
|
+
type?: "success" | "info" | "warning" | "secondary" | "danger" | "inverted" | undefined;
|
|
11
|
+
level?: 2 | 1 | 3 | 6 | 4 | 5 | undefined;
|
|
12
12
|
} & React.RefAttributes<HTMLElement>>;
|
|
13
13
|
export { Title, };
|
|
14
14
|
//# sourceMappingURL=title.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/title.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/title.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,KAAK,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAEhF,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,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC,CAAA;AAC5F,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"}
|
|
@@ -12,6 +12,13 @@ declare type ComponentSpecificClickEventProps = {
|
|
|
12
12
|
href?: string;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
+
declare type CommonAnalyticsProps<K> = {
|
|
16
|
+
event: 'click';
|
|
17
|
+
location: string;
|
|
18
|
+
component: K;
|
|
19
|
+
};
|
|
20
|
+
declare type AnalyticsClickData<K extends keyof ComponentSpecificClickEventProps> = CommonAnalyticsProps<K> & ComponentSpecificClickEventProps[K];
|
|
21
|
+
export declare type AnalyticsParams = AnalyticsClickData<keyof ComponentSpecificClickEventProps>;
|
|
15
22
|
export declare function extractChildrenContent(children: React.ReactNode): string | null;
|
|
16
23
|
export declare function sendAnalyticsClickEvent<K extends keyof ComponentSpecificClickEventProps>(component: K, data: ComponentSpecificClickEventProps[K]): void;
|
|
17
24
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../src/components/_utils/analytics.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../src/components/_utils/analytics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,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;IACvC,iBAAiB,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CACtD,CAAA;AAED,aAAK,oBAAoB,CAAC,CAAC,IAAI;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,CAAC,CAAA;CACf,CAAA;AAED,aAAK,kBAAkB,CAAC,CAAC,SAAS,MAAM,gCAAgC,IAAI,oBAAoB,CAAC,CAAC,CAAC,GAAG,gCAAgC,CAAC,CAAC,CAAC,CAAA;AAEzI,oBAAY,eAAe,GAAG,kBAAkB,CAAC,MAAM,gCAAgC,CAAC,CAAA;AAIxF,wBAAgB,sBAAsB,CAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,GAAG,IAAI,CAWhF;AAED,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,gCAAgC,EAAG,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,gCAAgC,CAAC,CAAC,CAAC,GAAG,IAAI,CAgBxJ"}
|