@open-condo/ui 1.30.1 → 1.31.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/dist/components/Typography/constants.d.ts +1 -1
- package/dist/components/Typography/constants.d.ts.map +1 -1
- package/dist/components/Typography/paragraph.d.ts +1 -1
- package/dist/components/Typography/text.d.ts +1 -1
- package/dist/components/Typography/title.d.ts +2 -2
- package/dist/components/Typography/title.d.ts.map +1 -1
- package/dist/index.js +7 -4
- package/dist/style-vars/variables.css +1 -1
- package/dist/style-vars/variables.less +1 -1
- package/dist/styles.css +225 -223
- package/dist/styles.min.css +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const TYPOGRAPHY_CLASS_PREFIX = "condo-typography";
|
|
2
2
|
export declare const TEXT_SIZES: readonly ["large", "medium", "small"];
|
|
3
|
-
export declare const TEXT_TYPES: readonly ["secondary", "inverted", "danger", "warning", "info", "success"];
|
|
3
|
+
export declare const TEXT_TYPES: readonly ["primary", "secondary", "inverted", "danger", "warning", "info", "success", "inherit"];
|
|
4
4
|
export declare const TOOLTIP_CLASS_PREFIX = "condo-tooltip";
|
|
5
5
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +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,
|
|
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,kGAAmG,CAAA;AAE1H,eAAO,MAAM,oBAAoB,kBAAkB,CAAA"}
|
|
@@ -6,7 +6,7 @@ export declare type TypographyParagraphProps = Omit<DefaultParagraphProps, 'keyb
|
|
|
6
6
|
size?: typeof TEXT_SIZES[number];
|
|
7
7
|
};
|
|
8
8
|
declare const Paragraph: React.ForwardRefExoticComponent<Omit<DefaultParagraphProps, "type" | "style" | "prefixCls" | "className" | "mark" | "keyboard" | "editable" | "copyable"> & {
|
|
9
|
-
type?: "success" | "info" | "warning" | "secondary" | "danger" | "inverted" | undefined;
|
|
9
|
+
type?: "success" | "info" | "warning" | "primary" | "secondary" | "inherit" | "danger" | "inverted" | undefined;
|
|
10
10
|
size?: "small" | "large" | "medium" | undefined;
|
|
11
11
|
} & React.RefAttributes<HTMLSpanElement>>;
|
|
12
12
|
export { Paragraph, };
|
|
@@ -7,7 +7,7 @@ export declare type TypographyTextProps = Omit<DefaultTextProps, 'keyboard' | 't
|
|
|
7
7
|
lineWrapping?: 'break-spaces';
|
|
8
8
|
};
|
|
9
9
|
declare const Text: React.ForwardRefExoticComponent<Omit<DefaultTextProps, "type" | "style" | "prefixCls" | "className" | "mark" | "keyboard" | "editable" | "copyable"> & {
|
|
10
|
-
type?: "success" | "info" | "warning" | "secondary" | "danger" | "inverted" | undefined;
|
|
10
|
+
type?: "success" | "info" | "warning" | "primary" | "secondary" | "inherit" | "danger" | "inverted" | undefined;
|
|
11
11
|
size?: "small" | "large" | "medium" | undefined;
|
|
12
12
|
lineWrapping?: "break-spaces" | undefined;
|
|
13
13
|
} & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,13 +1,13 @@
|
|
|
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', 'secondary', 'danger', 'warning', 'info', 'success'];
|
|
4
|
+
declare const TITLE_TYPES: ['primary', '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?: "success" | "info" | "warning" | "secondary" | "danger" | "inverted" | undefined;
|
|
10
|
+
type?: "success" | "info" | "warning" | "primary" | "secondary" | "danger" | "inverted" | undefined;
|
|
11
11
|
level?: 6 | 1 | 2 | 3 | 4 | 5 | undefined;
|
|
12
12
|
} & React.RefAttributes<HTMLElement>>;
|
|
13
13
|
export { Title, };
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC,CAAA;AACvG,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.js
CHANGED
|
@@ -48632,7 +48632,7 @@ var Base = __webpack_require__(28460);
|
|
|
48632
48632
|
;// CONCATENATED MODULE: ./src/components/Typography/constants.ts
|
|
48633
48633
|
var TYPOGRAPHY_CLASS_PREFIX = 'condo-typography';
|
|
48634
48634
|
var TEXT_SIZES = (/* unused pure expression or super */ null && (['large', 'medium', 'small']));
|
|
48635
|
-
var TEXT_TYPES = (/* unused pure expression or super */ null && (['secondary', 'inverted', 'danger', 'warning', 'info', 'success']));
|
|
48635
|
+
var TEXT_TYPES = (/* unused pure expression or super */ null && (['primary', 'secondary', 'inverted', 'danger', 'warning', 'info', 'success', 'inherit']));
|
|
48636
48636
|
var TOOLTIP_CLASS_PREFIX = 'condo-tooltip';
|
|
48637
48637
|
;// CONCATENATED MODULE: ./src/components/Typography/link.tsx
|
|
48638
48638
|
function link_extends() { link_extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return link_extends.apply(this, arguments); }
|
|
@@ -48697,7 +48697,8 @@ function paragraph_objectWithoutPropertiesLoose(source, excluded) { if (source =
|
|
|
48697
48697
|
var Paragraph = /*#__PURE__*/external_react_default().forwardRef(function (props, ref) {
|
|
48698
48698
|
var _classNames;
|
|
48699
48699
|
|
|
48700
|
-
var type = props.type,
|
|
48700
|
+
var _props$type = props.type,
|
|
48701
|
+
type = _props$type === void 0 ? 'primary' : _props$type,
|
|
48701
48702
|
_props$size = props.size,
|
|
48702
48703
|
size = _props$size === void 0 ? 'lg' : _props$size,
|
|
48703
48704
|
rest = paragraph_objectWithoutProperties(props, paragraph_excluded);
|
|
@@ -48744,7 +48745,8 @@ var DEFAULT_ELLIPSIS_CONFIG = {
|
|
|
48744
48745
|
var Text = /*#__PURE__*/external_react_default().forwardRef(function (props, ref) {
|
|
48745
48746
|
var _classNames;
|
|
48746
48747
|
|
|
48747
|
-
var type = props.type,
|
|
48748
|
+
var _props$type = props.type,
|
|
48749
|
+
type = _props$type === void 0 ? 'primary' : _props$type,
|
|
48748
48750
|
_props$size = props.size,
|
|
48749
48751
|
size = _props$size === void 0 ? 'lg' : _props$size,
|
|
48750
48752
|
ellipsis = props.ellipsis,
|
|
@@ -48794,7 +48796,8 @@ function title_objectWithoutPropertiesLoose(source, excluded) { if (source == nu
|
|
|
48794
48796
|
var Title = /*#__PURE__*/external_react_default().forwardRef(function (props, ref) {
|
|
48795
48797
|
var _props$level = props.level,
|
|
48796
48798
|
level = _props$level === void 0 ? 1 : _props$level,
|
|
48797
|
-
type = props.type,
|
|
48799
|
+
_props$type = props.type,
|
|
48800
|
+
type = _props$type === void 0 ? 'primary' : _props$type,
|
|
48798
48801
|
rest = title_objectWithoutProperties(props, title_excluded);
|
|
48799
48802
|
|
|
48800
48803
|
var className = node_modules_classnames_default_0()(title_defineProperty({}, "".concat(TYPOGRAPHY_CLASS_PREFIX, "-").concat(type), type)); // NOTE: Used wrapper destructuring to explicitly pass component props, which is marked as internal in antd
|