@eccenca/gui-elements 23.3.0 → 23.3.1-rc.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.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ### Fixed
10
+
11
+ - `<ContextOverlay />`
12
+ - remove always white space at start of `portalClassName` to prevent runtime error in BlueprintJS
13
+
9
14
  ## [23.3.0] - 2023-11-09
10
15
 
11
16
  ### Added
@@ -23,9 +23,11 @@ const constants_1 = require("../../configuration/constants");
23
23
  * Full list of available option can be seen at https://blueprintjs.com/docs/#popover2-package/popover2
24
24
  */
25
25
  const ContextOverlay = (_a) => {
26
+ var _b;
26
27
  var { children, portalClassName, preventTopPosition, className = "" } = _a, restProps = __rest(_a, ["children", "portalClassName", "preventTopPosition", "className"]);
27
- return (react_1.default.createElement(popover2_1.Popover2, Object.assign({ placement: "bottom" }, restProps, { className: `${constants_1.CLASSPREFIX}-contextoverlay` + (className ? ` ${className}` : ""), portalClassName: (preventTopPosition ? `${constants_1.CLASSPREFIX}-contextoverlay__portal--lowertop` : "") +
28
- (portalClassName ? ` ${portalClassName}` : "") }), children));
28
+ const portalClassNameFinal = (preventTopPosition ? `${constants_1.CLASSPREFIX}-contextoverlay__portal--lowertop` : "") +
29
+ (portalClassName ? ` ${portalClassName}` : "");
30
+ return (react_1.default.createElement(popover2_1.Popover2, Object.assign({ placement: "bottom" }, restProps, { className: `${constants_1.CLASSPREFIX}-contextoverlay` + (className ? ` ${className}` : ""), portalClassName: (_b = portalClassNameFinal.trim()) !== null && _b !== void 0 ? _b : undefined }), children));
29
31
  };
30
32
  exports.ContextOverlay = ContextOverlay;
31
33
  exports.default = exports.ContextOverlay;
@@ -1 +1 @@
1
- {"version":3,"file":"ContextOverlay.js","sourceRoot":"","sources":["../../../../src/components/ContextOverlay/ContextOverlay.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,oDAA6G;AAE7G,6DAAsE;AActE;;;GAGG;AACI,MAAM,cAAc,GAAG,CAAC,EAMT,EAAE,EAAE;QANK,EAC3B,QAAQ,EACR,eAAe,EACf,kBAAkB,EAClB,SAAS,GAAG,EAAE,OAEI,EADf,SAAS,cALe,kEAM9B,CADe;IAEZ,OAAO,CACH,8BAAC,mBAAgB,kBACb,SAAS,EAAC,QAAQ,IACd,SAAS,IACb,SAAS,EAAE,GAAG,uBAAM,iBAAiB,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAC1E,eAAe,EACX,CAAC,kBAAkB,CAAC,CAAC,CAAC,GAAG,uBAAM,mCAAmC,CAAC,CAAC,CAAC,EAAE,CAAC;YACxE,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAGjD,QAAQ,CACM,CACtB,CAAC;AACN,CAAC,CAAC;AApBW,QAAA,cAAc,kBAoBzB;AAEF,kBAAe,sBAAc,CAAC"}
1
+ {"version":3,"file":"ContextOverlay.js","sourceRoot":"","sources":["../../../../src/components/ContextOverlay/ContextOverlay.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,oDAA6G;AAE7G,6DAAsE;AActE;;;GAGG;AACI,MAAM,cAAc,GAAG,CAAC,EAMT,EAAE,EAAE;;QANK,EAC3B,QAAQ,EACR,eAAe,EACf,kBAAkB,EAClB,SAAS,GAAG,EAAE,OAEI,EADf,SAAS,cALe,kEAM9B,CADe;IAEZ,MAAM,oBAAoB,GACtB,CAAC,kBAAkB,CAAC,CAAC,CAAC,GAAG,uBAAM,mCAAmC,CAAC,CAAC,CAAC,EAAE,CAAC;QACxE,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAEnD,OAAO,CACH,8BAAC,mBAAgB,kBACb,SAAS,EAAC,QAAQ,IACd,SAAS,IACb,SAAS,EAAE,GAAG,uBAAM,iBAAiB,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAC1E,eAAe,EAAE,MAAA,oBAAoB,CAAC,IAAI,EAAE,mCAAI,SAAS,KAExD,QAAQ,CACM,CACtB,CAAC;AACN,CAAC,CAAC;AArBW,QAAA,cAAc,kBAqBzB;AAEF,kBAAe,sBAAc,CAAC"}
@@ -28,9 +28,11 @@ import { CLASSPREFIX as eccgui } from "../../configuration/constants.js";
28
28
  * Full list of available option can be seen at https://blueprintjs.com/docs/#popover2-package/popover2
29
29
  */
30
30
  export var ContextOverlay = function (_a) {
31
- var children = _a.children, portalClassName = _a.portalClassName, preventTopPosition = _a.preventTopPosition, _b = _a.className, className = _b === void 0 ? "" : _b, restProps = __rest(_a, ["children", "portalClassName", "preventTopPosition", "className"]);
32
- return (React.createElement(BlueprintPopover, __assign({ placement: "bottom" }, restProps, { className: eccgui + "-contextoverlay" + (className ? " " + className : ""), portalClassName: (preventTopPosition ? eccgui + "-contextoverlay__portal--lowertop" : "") +
33
- (portalClassName ? " " + portalClassName : "") }), children));
31
+ var _b;
32
+ var children = _a.children, portalClassName = _a.portalClassName, preventTopPosition = _a.preventTopPosition, _c = _a.className, className = _c === void 0 ? "" : _c, restProps = __rest(_a, ["children", "portalClassName", "preventTopPosition", "className"]);
33
+ var portalClassNameFinal = (preventTopPosition ? eccgui + "-contextoverlay__portal--lowertop" : "") +
34
+ (portalClassName ? " " + portalClassName : "");
35
+ return (React.createElement(BlueprintPopover, __assign({ placement: "bottom" }, restProps, { className: eccgui + "-contextoverlay" + (className ? " " + className : ""), portalClassName: (_b = portalClassNameFinal.trim()) !== null && _b !== void 0 ? _b : undefined }), children));
34
36
  };
35
37
  export default ContextOverlay;
36
38
  //# sourceMappingURL=ContextOverlay.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContextOverlay.js","sourceRoot":"","sources":["../../../../src/components/ContextOverlay/ContextOverlay.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,IAAI,gBAAgB,EAA0C,MAAM,uBAAuB,CAAC;AAE7G,OAAO,EAAE,WAAW,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAC;AActE;;;GAGG;AACH,MAAM,CAAC,IAAM,cAAc,GAAG,UAAC,EAMT;IALlB,IAAA,QAAQ,cAAA,EACR,eAAe,qBAAA,EACf,kBAAkB,wBAAA,EAClB,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACX,SAAS,cALe,kEAM9B,CADe;IAEZ,OAAO,CACH,oBAAC,gBAAgB,aACb,SAAS,EAAC,QAAQ,IACd,SAAS,IACb,SAAS,EAAK,MAAM,oBAAiB,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,MAAI,SAAW,CAAC,CAAC,CAAC,EAAE,CAAC,EAC1E,eAAe,EACX,CAAC,kBAAkB,CAAC,CAAC,CAAI,MAAM,sCAAmC,CAAC,CAAC,CAAC,EAAE,CAAC;YACxE,CAAC,eAAe,CAAC,CAAC,CAAC,MAAI,eAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,KAGjD,QAAQ,CACM,CACtB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"ContextOverlay.js","sourceRoot":"","sources":["../../../../src/components/ContextOverlay/ContextOverlay.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,IAAI,gBAAgB,EAA0C,MAAM,uBAAuB,CAAC;AAE7G,OAAO,EAAE,WAAW,IAAI,MAAM,EAAE,MAAM,+BAA+B,CAAC;AActE;;;GAGG;AACH,MAAM,CAAC,IAAM,cAAc,GAAG,UAAC,EAMT;;IALlB,IAAA,QAAQ,cAAA,EACR,eAAe,qBAAA,EACf,kBAAkB,wBAAA,EAClB,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACX,SAAS,cALe,kEAM9B,CADe;IAEZ,IAAM,oBAAoB,GACtB,CAAC,kBAAkB,CAAC,CAAC,CAAI,MAAM,sCAAmC,CAAC,CAAC,CAAC,EAAE,CAAC;QACxE,CAAC,eAAe,CAAC,CAAC,CAAC,MAAI,eAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAEnD,OAAO,CACH,oBAAC,gBAAgB,aACb,SAAS,EAAC,QAAQ,IACd,SAAS,IACb,SAAS,EAAK,MAAM,oBAAiB,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,MAAI,SAAW,CAAC,CAAC,CAAC,EAAE,CAAC,EAC1E,eAAe,EAAE,MAAA,oBAAoB,CAAC,IAAI,EAAE,mCAAI,SAAS,KAExD,QAAQ,CACM,CACtB,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eccenca/gui-elements",
3
3
  "description": "GUI elements based on other libraries, usable in React application, written in Typescript.",
4
- "version": "23.3.0",
4
+ "version": "23.3.1-rc.1",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/eccenca/gui-elements",
7
7
  "bugs": "https://github.com/eccenca/gui-elements/issues",
@@ -26,15 +26,16 @@ export const ContextOverlay = ({
26
26
  className = "",
27
27
  ...restProps
28
28
  }: ContextOverlayProps) => {
29
+ const portalClassNameFinal =
30
+ (preventTopPosition ? `${eccgui}-contextoverlay__portal--lowertop` : "") +
31
+ (portalClassName ? ` ${portalClassName}` : "");
32
+
29
33
  return (
30
34
  <BlueprintPopover
31
35
  placement="bottom"
32
36
  {...restProps}
33
37
  className={`${eccgui}-contextoverlay` + (className ? ` ${className}` : "")}
34
- portalClassName={
35
- (preventTopPosition ? `${eccgui}-contextoverlay__portal--lowertop` : "") +
36
- (portalClassName ? ` ${portalClassName}` : "")
37
- }
38
+ portalClassName={portalClassNameFinal.trim() ?? undefined}
38
39
  >
39
40
  {children}
40
41
  </BlueprintPopover>