@open-condo/ui 1.30.1 → 1.32.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.
@@ -4,11 +4,13 @@ export declare type CardProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'titl
4
4
  width?: CSSProperties['width'];
5
5
  bodyPadding?: CSSProperties['padding'];
6
6
  titlePadding?: CSSProperties['padding'];
7
+ active?: boolean;
7
8
  };
8
9
  declare const Card: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "title"> & Pick<DefaultCardProps, "title" | "hoverable"> & {
9
10
  width?: CSSProperties['width'];
10
11
  bodyPadding?: CSSProperties['padding'];
11
12
  titlePadding?: CSSProperties['padding'];
13
+ active?: boolean | undefined;
12
14
  } & React.RefAttributes<HTMLDivElement>>;
13
15
  export { Card, };
14
16
  //# sourceMappingURL=card.d.ts.map
@@ -1 +1 @@
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
+ {"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;AAEb,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;IACvC,MAAM,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,QAAA,MAAM,IAAI;YANE,aAAa,CAAC,OAAO,CAAC;kBAChB,aAAa,CAAC,SAAS,CAAC;mBACvB,aAAa,CAAC,SAAS,CAAC;;wCAsBzC,CAAA;AAIF,OAAO,EACH,IAAI,GACP,CAAA"}
@@ -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,4EAA6E,CAAA;AAEpG,eAAO,MAAM,oBAAoB,kBAAkB,CAAA"}
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;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"}
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
@@ -55925,16 +55928,19 @@ es_card_Card.Grid = card_Grid;
55925
55928
  es_card_Card.Meta = card_Meta;
55926
55929
  /* harmony default export */ var card = (es_card_Card);
55927
55930
  ;// CONCATENATED MODULE: ./src/components/Card/card.tsx
55928
- var card_excluded = ["width", "bodyPadding", "titlePadding"];
55931
+ var card_excluded = ["width", "bodyPadding", "titlePadding", "active"];
55929
55932
 
55930
55933
  function card_extends() { card_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 card_extends.apply(this, arguments); }
55931
55934
 
55935
+ function card_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
55936
+
55932
55937
  function card_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = card_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
55933
55938
 
55934
55939
  function card_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
55935
55940
 
55936
55941
 
55937
55942
 
55943
+
55938
55944
  var CARD_CLASS_PREFIX = 'condo-card';
55939
55945
  var Card_card_Card = /*#__PURE__*/external_react_default().forwardRef(function (props, ref) {
55940
55946
  var width = props.width,
@@ -55942,9 +55948,13 @@ var Card_card_Card = /*#__PURE__*/external_react_default().forwardRef(function (
55942
55948
  bodyPadding = _props$bodyPadding === void 0 ? 24 : _props$bodyPadding,
55943
55949
  _props$titlePadding = props.titlePadding,
55944
55950
  titlePadding = _props$titlePadding === void 0 ? 24 : _props$titlePadding,
55951
+ _props$active = props.active,
55952
+ active = _props$active === void 0 ? false : _props$active,
55945
55953
  rest = card_objectWithoutProperties(props, card_excluded);
55946
55954
 
55955
+ var className = node_modules_classnames_default_0()(card_defineProperty({}, "".concat(CARD_CLASS_PREFIX, "-active"), active));
55947
55956
  return /*#__PURE__*/external_react_default().createElement(card, card_extends({}, rest, {
55957
+ className: className,
55948
55958
  style: {
55949
55959
  width: width
55950
55960
  },
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Thu, 20 Apr 2023 12:33:03 GMT
3
+ * Generated on Wed, 26 Apr 2023 15:26:31 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -42,6 +42,7 @@
42
42
  --condo-global-font-size-text-s: 12px;
43
43
  --condo-global-opacity-disabled: 50%;
44
44
  --condo-global-box-shadow-default: 0 4px 14px 0 #b2b9d966;
45
+ --condo-global-box-shadow-active: 0 4px 14px 0 #4cd1754d;
45
46
  --condo-global-letter-spacing-default: -0.01em;
46
47
  --condo-global-letter-spacing-small: -0.03em;
47
48
  --condo-global-paragraph-spacing-h1: 40px;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Thu, 20 Apr 2023 12:33:03 GMT
3
+ // Generated on Wed, 26 Apr 2023 15:26:31 GMT
4
4
 
5
5
  @condo-global-spacing-4: 4px;
6
6
  @condo-global-spacing-8: 8px;
@@ -40,6 +40,7 @@
40
40
  @condo-global-font-size-text-s: 12px;
41
41
  @condo-global-opacity-disabled: 50%;
42
42
  @condo-global-box-shadow-default: 0 4px 14px 0 #b2b9d966;
43
+ @condo-global-box-shadow-active: 0 4px 14px 0 #4cd1754d;
43
44
  @condo-global-letter-spacing-default: -0.01em;
44
45
  @condo-global-letter-spacing-small: -0.03em;
45
46
  @condo-global-paragraph-spacing-h1: 40px;