@open-condo/ui 2.41.1 → 2.42.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.
@@ -2,10 +2,13 @@ import { ButtonProps as DefaultButtonProps } from 'antd';
2
2
  import React from 'react';
3
3
  export declare const BUTTON_CLASS_PREFIX = "condo-btn";
4
4
  type CondoButtonProps = {
5
- type: 'primary' | 'secondary';
5
+ type: 'primary' | 'secondary' | 'accent';
6
6
  children?: string;
7
7
  stateless?: boolean;
8
8
  focus?: boolean;
9
+ minimal?: boolean;
10
+ compact?: boolean;
11
+ size?: 'medium' | 'large';
9
12
  };
10
13
  export type ButtonProps = Omit<DefaultButtonProps, 'shape' | 'size' | 'style' | 'ghost' | 'type' | 'prefix' | 'prefixCls'> & CondoButtonProps;
11
14
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1 +1 @@
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;AAI1C,eAAO,MAAM,mBAAmB,cAAc,CAAA;AAE9C,KAAK,gBAAgB,GAAG;IACpB,IAAI,EAAE,SAAS,GAAG,WAAW,CAAA;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,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,EAAE,KAAK,CAAC,yBAAyB,CAAC,WAAW,GAAG,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CA6ChG,CAAA;AAIF,OAAO,EACH,MAAM,GACT,CAAA"}
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;AAI1C,eAAO,MAAM,mBAAmB,cAAc,CAAA;AAE9C,KAAK,gBAAgB,GAAG;IACpB,IAAI,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAA;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,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,EAAE,KAAK,CAAC,yBAAyB,CAAC,WAAW,GAAG,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAgDhG,CAAA;AAIF,OAAO,EACH,MAAM,GACT,CAAA"}
@@ -4,6 +4,9 @@ type CondoIconButtonProps = {
4
4
  size?: 'small' | 'medium';
5
5
  };
6
6
  export type IconButtonProps = Omit<DefaultButtonProps, 'shape' | 'size' | 'style' | 'ghost' | 'type' | 'prefix' | 'prefixCls' | 'icon' | 'danger' | 'block'> & CondoIconButtonProps;
7
+ /**
8
+ * @deprecated
9
+ */
7
10
  declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
8
11
  export { IconButton, };
9
12
  //# sourceMappingURL=iconButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"iconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/icon/iconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,WAAW,IAAI,kBAAkB,EACpC,MAAM,MAAM,CAAA;AAEb,OAAO,KAAsB,MAAM,OAAO,CAAA;AAO1C,KAAK,oBAAoB,GAAG;IACxB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC,GAC1J,oBAAoB,CAAA;AAEtB,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,yBAAyB,CAAC,eAAe,GAAG,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAuCxG,CAAA;AAIF,OAAO,EACH,UAAU,GACb,CAAA"}
1
+ {"version":3,"file":"iconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/icon/iconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEH,WAAW,IAAI,kBAAkB,EACpC,MAAM,MAAM,CAAA;AAEb,OAAO,KAAsB,MAAM,OAAO,CAAA;AAO1C,KAAK,oBAAoB,GAAG;IACxB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC,GAC1J,oBAAoB,CAAA;AACtB;;EAEE;AACF,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,yBAAyB,CAAC,eAAe,GAAG,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAuCxG,CAAA;AAIF,OAAO,EACH,UAAU,GACb,CAAA"}
@@ -5,6 +5,9 @@ import { IconButton } from './icon/iconButton';
5
5
  export type { ButtonProps } from './button';
6
6
  export type { IconButtonProps } from './icon/iconButton';
7
7
  type CombinedButtonType = typeof InternalButton & {
8
+ /**
9
+ * @deprecated
10
+ */
8
11
  Icon: typeof IconButton;
9
12
  };
10
13
  declare const Button: CombinedButtonType;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAA;AACrB,OAAO,mBAAmB,CAAA;AAE1B,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,UAAU,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9C,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAC3C,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAExD,KAAK,kBAAkB,GAAG,OAAO,cAAc,GAAG;IAC9C,IAAI,EAAE,OAAO,UAAU,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,MAAM,EAAqB,kBAAkB,CAAA;AAGnD,OAAO,EAAE,MAAM,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAA;AACrB,OAAO,mBAAmB,CAAA;AAE1B,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,UAAU,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9C,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAC3C,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAExD,KAAK,kBAAkB,GAAG,OAAO,cAAc,GAAG;IAC9C;;OAEG;IACH,IAAI,EAAE,OAAO,UAAU,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,MAAM,EAAqB,kBAAkB,CAAA;AAGnD,OAAO,EAAE,MAAM,EAAE,CAAA"}
package/dist/index.js CHANGED
@@ -51786,7 +51786,7 @@ var isObject_default = /*#__PURE__*/__webpack_require__.n(isObject);
51786
51786
  var isString = __webpack_require__(8138);
51787
51787
  var isString_default = /*#__PURE__*/__webpack_require__.n(isString);
51788
51788
  ;// CONCATENATED MODULE: ./package.json
51789
- var package_namespaceObject = {"rE":"2.41.1"};
51789
+ var package_namespaceObject = {"rE":"2.42.0"};
51790
51790
  ;// CONCATENATED MODULE: ./src/components/_utils/analytics.ts
51791
51791
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
51792
51792
 
@@ -53715,7 +53715,7 @@ Button.__ANT_BUTTON = true;
53715
53715
 
53716
53716
  /* harmony default export */ var es_button = (button_button);
53717
53717
  ;// CONCATENATED MODULE: ./src/components/Button/button.tsx
53718
- var button_excluded = ["type", "className", "icon", "children", "onClick", "stateless", "id", "focus"];
53718
+ var button_excluded = ["type", "className", "icon", "children", "onClick", "stateless", "id", "focus", "minimal", "compact", "size"];
53719
53719
 
53720
53720
  function button_extends() { button_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 button_extends.apply(this, arguments); }
53721
53721
 
@@ -53741,9 +53741,13 @@ var button_Button = /*#__PURE__*/external_react_default().forwardRef(function (p
53741
53741
  stateless = props.stateless,
53742
53742
  id = props.id,
53743
53743
  focus = props.focus,
53744
+ minimal = props.minimal,
53745
+ compact = props.compact,
53746
+ _props$size = props.size,
53747
+ size = _props$size === void 0 ? 'large' : _props$size,
53744
53748
  rest = button_objectWithoutProperties(props, button_excluded);
53745
53749
 
53746
- var classes = node_modules_classnames_default()((_classNames = {}, button_defineProperty(_classNames, "".concat(BUTTON_CLASS_PREFIX, "-").concat(type), type), button_defineProperty(_classNames, "".concat(BUTTON_CLASS_PREFIX, "-stateless"), stateless), button_defineProperty(_classNames, "".concat(BUTTON_CLASS_PREFIX, "-focus"), focus), _classNames), className);
53750
+ var classes = node_modules_classnames_default()((_classNames = {}, button_defineProperty(_classNames, "".concat(BUTTON_CLASS_PREFIX, "-").concat(type), type), button_defineProperty(_classNames, "".concat(BUTTON_CLASS_PREFIX, "-").concat(size), size), button_defineProperty(_classNames, "".concat(BUTTON_CLASS_PREFIX, "-stateless"), stateless), button_defineProperty(_classNames, "".concat(BUTTON_CLASS_PREFIX, "-focus"), focus), button_defineProperty(_classNames, "".concat(BUTTON_CLASS_PREFIX, "-minimal"), minimal), button_defineProperty(_classNames, "".concat(BUTTON_CLASS_PREFIX, "-compact"), compact), _classNames), className);
53747
53751
  var wrappedIcon = icon ? /*#__PURE__*/external_react_default().createElement("span", {
53748
53752
  className: "".concat(BUTTON_CLASS_PREFIX, "-icon")
53749
53753
  }, icon) : null;
@@ -53793,6 +53797,10 @@ function iconButton_objectWithoutPropertiesLoose(source, excluded) { if (source
53793
53797
 
53794
53798
 
53795
53799
  var ICON_BUTTON_CLASS_PREFIX = 'condo-icon-btn';
53800
+
53801
+ /**
53802
+ * @deprecated
53803
+ */
53796
53804
  var IconButton = /*#__PURE__*/external_react_default().forwardRef(function (props, ref) {
53797
53805
  var _classNames;
53798
53806
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 04 Jul 2025 19:02:25 GMT
3
+ * Generated on Tue, 08 Jul 2025 08:17:11 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Fri, 04 Jul 2025 19:02:25 GMT
3
+ // Generated on Tue, 08 Jul 2025 08:17:11 GMT
4
4
 
5
5
  @condo-global-spacing-4: 4px;
6
6
  @condo-global-spacing-8: 8px;