@open-condo/ui 2.29.1 → 2.30.1

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.
@@ -1,6 +1,7 @@
1
1
  import React, { ReactElement } from 'react';
2
2
  export type ActionBarProps = {
3
3
  message?: string;
4
+ wrap?: boolean;
4
5
  actions: [ReactElement, ...ReactElement[]];
5
6
  };
6
7
  export declare const ActionBar: React.FC<ActionBarProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"actionBar.d.ts","sourceRoot":"","sources":["../../../src/components/ActionBar/actionBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAU3C,MAAM,MAAM,cAAc,GAAG;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,CAAC,YAAY,EAAE,GAAG,YAAY,EAAE,CAAC,CAAA;CAC7C,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAW9C,CAAA"}
1
+ {"version":3,"file":"actionBar.d.ts","sourceRoot":"","sources":["../../../src/components/ActionBar/actionBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAY3C,MAAM,MAAM,cAAc,GAAG;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,OAAO,EAAE,CAAC,YAAY,EAAE,GAAG,YAAY,EAAE,CAAC,CAAA;CAC7C,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAgB9C,CAAA"}
package/dist/index.js CHANGED
@@ -47023,6 +47023,8 @@ var AffixFC = /*#__PURE__*/external_react_.forwardRef(function (props, ref) {
47023
47023
  });
47024
47024
  if (false) {}
47025
47025
  /* harmony default export */ var affix = (AffixFC);
47026
+ // EXTERNAL MODULE: ./src/hooks.ts
47027
+ var hooks = __webpack_require__(46119);
47026
47028
  // EXTERNAL MODULE: ../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
47027
47029
  var slicedToArray = __webpack_require__(90689);
47028
47030
  // EXTERNAL MODULE: ../../node_modules/rc-util/es/Children/toArray.js
@@ -47374,7 +47376,7 @@ var isObject_default = /*#__PURE__*/__webpack_require__.n(isObject);
47374
47376
  var isString = __webpack_require__(8138);
47375
47377
  var isString_default = /*#__PURE__*/__webpack_require__.n(isString);
47376
47378
  ;// CONCATENATED MODULE: ./package.json
47377
- var package_namespaceObject = {"rE":"2.29.1"};
47379
+ var package_namespaceObject = {"rE":"2.30.1"};
47378
47380
  ;// CONCATENATED MODULE: ./src/components/_utils/analytics.ts
47379
47381
  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; }
47380
47382
 
@@ -47659,22 +47661,32 @@ var Typography = {
47659
47661
 
47660
47662
 
47661
47663
 
47664
+
47662
47665
  var ACTION_BAR_CLASS_PREFIX = 'condo-affix';
47663
47666
  var AFFIX_CONTENT_WRAPPER_CLASS = "".concat(ACTION_BAR_CLASS_PREFIX, "-content-wrapper");
47667
+ var ACTION_BAR_PLACEHOLDER_CLASS = "".concat(ACTION_BAR_CLASS_PREFIX, "-placeholder");
47664
47668
  var SPACE_SIZE = [16, 16];
47665
47669
  var ActionBar = function ActionBar(props) {
47666
47670
  var actions = props.actions,
47667
- message = props.message;
47668
- return /*#__PURE__*/external_react_default().createElement(affix, {
47669
- offsetBottom: 0,
47671
+ message = props.message,
47672
+ _props$wrap = props.wrap,
47673
+ wrap = _props$wrap === void 0 ? true : _props$wrap;
47674
+
47675
+ var _useBreakpoints = (0,hooks.useBreakpoints)(),
47676
+ TABLET_SMALL = _useBreakpoints.TABLET_SMALL;
47677
+
47678
+ return /*#__PURE__*/external_react_default().createElement((external_react_default()).Fragment, null, /*#__PURE__*/external_react_default().createElement(affix, {
47679
+ offsetBottom: TABLET_SMALL ? 23 : 0,
47670
47680
  prefixCls: ACTION_BAR_CLASS_PREFIX
47671
47681
  }, /*#__PURE__*/external_react_default().createElement(space_Space, {
47672
- wrap: true,
47682
+ wrap: wrap,
47673
47683
  size: SPACE_SIZE,
47674
47684
  className: AFFIX_CONTENT_WRAPPER_CLASS
47675
47685
  }, message && /*#__PURE__*/external_react_default().createElement(Typography.Text, {
47676
47686
  strong: true
47677
- }, message), actions));
47687
+ }, message), actions)), /*#__PURE__*/external_react_default().createElement("div", {
47688
+ className: ACTION_BAR_PLACEHOLDER_CLASS
47689
+ }));
47678
47690
  };
47679
47691
  ;// CONCATENATED MODULE: ./src/components/ActionBar/index.ts
47680
47692
 
@@ -48517,7 +48529,7 @@ var dist = __webpack_require__(72763);
48517
48529
  // EXTERNAL MODULE: ./src/colors/index.ts + 2 modules
48518
48530
  var colors = __webpack_require__(89085);
48519
48531
  // EXTERNAL MODULE: ./src/components/_utils/hooks/index.ts + 2 modules
48520
- var hooks = __webpack_require__(24208);
48532
+ var _utils_hooks = __webpack_require__(24208);
48521
48533
  ;// CONCATENATED MODULE: ../../node_modules/antd/es/config-provider/DisabledContext.js
48522
48534
 
48523
48535
  var DisabledContext = /*#__PURE__*/external_react_.createContext(false);
@@ -49362,7 +49374,7 @@ var Banner = function Banner(_ref) {
49362
49374
  _ref$size = _ref.size,
49363
49375
  size = _ref$size === void 0 ? 'medium' : _ref$size;
49364
49376
 
49365
- var _useContainerSize = (0,hooks/* useContainerSize */.Ag)(),
49377
+ var _useContainerSize = (0,_utils_hooks/* useContainerSize */.Ag)(),
49366
49378
  _useContainerSize2 = banner_slicedToArray(_useContainerSize, 2),
49367
49379
  width = _useContainerSize2[0].width,
49368
49380
  setRef = _useContainerSize2[1];
@@ -57396,8 +57408,6 @@ var Card_card_Card = /*#__PURE__*/external_react_default().forwardRef(function (
57396
57408
  });
57397
57409
  Card_card_Card.displayName = 'Card';
57398
57410
 
57399
- // EXTERNAL MODULE: ./src/hooks.ts
57400
- var src_hooks = __webpack_require__(46119);
57401
57411
  ;// CONCATENATED MODULE: ./src/components/Emoji/Emoji.tsx
57402
57412
 
57403
57413
  var Emoji = /*#__PURE__*/external_react_default().memo(function (_ref) {
@@ -58032,7 +58042,7 @@ var CardHeader = function CardHeader(props) {
58032
58042
  image = props.image;
58033
58043
  var imageClassName = image && node_modules_classnames_default()("".concat(cardHeader_CARD_HEADER_CONTENT_CLASS_NAME_PREFIX, "-image"), "".concat(cardHeader_CARD_HEADER_CONTENT_CLASS_NAME_PREFIX, "-image-size-").concat(image.size));
58034
58044
 
58035
- var _useBreakpoints = (0,src_hooks.useBreakpoints)(),
58045
+ var _useBreakpoints = (0,hooks.useBreakpoints)(),
58036
58046
  TABLET_LARGE = _useBreakpoints.TABLET_LARGE;
58037
58047
 
58038
58048
  var headerContent = /*#__PURE__*/external_react_default().createElement(space_Space, {
@@ -74463,7 +74473,7 @@ function useModal_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
74463
74473
 
74464
74474
  var modalCounter = 0;
74465
74475
  var useModal_ElementsHolder = /*#__PURE__*/external_react_default().memo( /*#__PURE__*/external_react_default().forwardRef(function (_props, ref) {
74466
- var _usePatchElement = (0,hooks/* usePatchElement */.wu)(),
74476
+ var _usePatchElement = (0,_utils_hooks/* usePatchElement */.wu)(),
74467
74477
  _usePatchElement2 = useModal_slicedToArray(_usePatchElement, 2),
74468
74478
  elements = _usePatchElement2[0],
74469
74479
  patchElement = _usePatchElement2[1];
@@ -75242,7 +75252,7 @@ var Steps = function Steps(_ref) {
75242
75252
  propsClassName = _ref.className,
75243
75253
  noReturnMessage = _ref.noReturnMessage;
75244
75254
 
75245
- var _useBreakpoints = (0,hooks/* useBreakpoints */.Gu)(),
75255
+ var _useBreakpoints = (0,_utils_hooks/* useBreakpoints */.Gu)(),
75246
75256
  TABLET_LARGE = _useBreakpoints.TABLET_LARGE;
75247
75257
 
75248
75258
  var itemSize = TABLET_LARGE ? 'large' : 'small'; // NOTE: Internal state controls view
@@ -75252,7 +75262,7 @@ var Steps = function Steps(_ref) {
75252
75262
  currentStep = _useState2[0],
75253
75263
  setCurrentStep = _useState2[1];
75254
75264
 
75255
- var _useContainerSize = (0,hooks/* useContainerSize */.Ag)(),
75265
+ var _useContainerSize = (0,_utils_hooks/* useContainerSize */.Ag)(),
75256
75266
  _useContainerSize2 = steps_slicedToArray(_useContainerSize, 2),
75257
75267
  width = _useContainerSize2[0].width,
75258
75268
  setContainerRef = _useContainerSize2[1];
@@ -75577,7 +75587,7 @@ var TourStep = function TourStep(props) {
75577
75587
  var _useTourContext = useTourContext(),
75578
75588
  currentStep = _useTourContext.currentStep;
75579
75589
 
75580
- var _useBreakpoints = (0,hooks/* useBreakpoints */.Gu)(),
75590
+ var _useBreakpoints = (0,_utils_hooks/* useBreakpoints */.Gu)(),
75581
75591
  TABLET_SMALL = _useBreakpoints.TABLET_SMALL;
75582
75592
 
75583
75593
  var _useState = (0,external_react_.useState)(step === currentStep),
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 23 Oct 2024 13:52:10 GMT
3
+ * Generated on Wed, 20 Nov 2024 20:54:39 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Wed, 23 Oct 2024 13:52:10 GMT
3
+ // Generated on Wed, 20 Nov 2024 20:54:39 GMT
4
4
 
5
5
  @condo-global-spacing-4: 4px;
6
6
  @condo-global-spacing-8: 8px;
package/dist/styles.css CHANGED
@@ -1103,6 +1103,9 @@ div.condo-typography-edit-content.condo-typography-rtl {
1103
1103
  position: fixed;
1104
1104
  z-index: 10;
1105
1105
  }
1106
+ .condo-affix-placeholder {
1107
+ height: 24px;
1108
+ }
1106
1109
  .condo-affix-content-wrapper {
1107
1110
  height: -webkit-fit-content !important;
1108
1111
  height: -moz-fit-content !important;
@@ -1111,11 +1114,11 @@ div.condo-typography-edit-content.condo-typography-rtl {
1111
1114
  .condo-affix-content-wrapper {
1112
1115
  box-sizing: border-box;
1113
1116
  padding: 16px;
1114
- transition: box-shadow 0.15s ease-out;
1115
1117
  }
1116
1118
  @media screen and (min-width: 0px ) and (max-width: 767px ) {
1117
1119
  .condo-affix-content-wrapper {
1118
1120
  width: 100%;
1121
+ padding-bottom: 24px;
1119
1122
  }
1120
1123
  .condo-affix-content-wrapper > .condo-space-item {
1121
1124
  width: 100%;
@@ -1124,13 +1127,18 @@ div.condo-typography-edit-content.condo-typography-rtl {
1124
1127
  width: 100%;
1125
1128
  }
1126
1129
  }
1127
- @media screen and (min-width: 768px ) {
1130
+ @media screen and (min-width: 0px ) {
1128
1131
  .condo-affix-content-wrapper {
1129
1132
  position: relative;
1130
1133
  right: 16px;
1131
1134
  width: calc(100% + 16px * 2);
1132
1135
  }
1133
1136
  }
1137
+ @media screen and (min-width: 768px ) {
1138
+ .condo-affix-content-wrapper {
1139
+ transition: box-shadow 0.15s ease-out;
1140
+ }
1141
+ }
1134
1142
  .condo-affix {
1135
1143
  height: auto !important;
1136
1144
  }
@@ -1150,7 +1158,7 @@ div.condo-typography-edit-content.condo-typography-rtl {
1150
1158
  left: 0;
1151
1159
  }
1152
1160
  .condo-affix .condo-affix-content-wrapper {
1153
- padding-bottom: 32px;
1161
+ padding-bottom: 24px;
1154
1162
  }
1155
1163
  .condo-affix .condo-affix-content-wrapper > .condo-space-item {
1156
1164
  padding: 0 16px;