@bpmn-io/properties-panel 3.20.0 → 3.20.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/dist/index.js CHANGED
@@ -173,6 +173,21 @@ PopupIcon.defaultProps = {
173
173
  height: "16",
174
174
  viewBox: "0 0 32 32"
175
175
  };
176
+ var CloseIcon = function CloseIcon(props) {
177
+ return jsxRuntime.jsx("svg", {
178
+ ...props,
179
+ children: jsxRuntime.jsx("path", {
180
+ fillRule: "evenodd",
181
+ d: "m12 4.7-.7-.7L8 7.3 4.7 4l-.7.7L7.3 8 4 11.3l.7.7L8 8.7l3.3 3.3.7-.7L8.7 8 12 4.7Z",
182
+ fill: "currentColor"
183
+ })
184
+ });
185
+ };
186
+ CloseIcon.defaultProps = {
187
+ xmlns: "http://www.w3.org/2000/svg",
188
+ width: "16",
189
+ height: "16"
190
+ };
176
191
 
177
192
  function Header(props) {
178
193
  const {
@@ -917,7 +932,8 @@ const CodeEditor$1 = compat.forwardRef((props, ref) => {
917
932
  tooltipContainer,
918
933
  enableGutters,
919
934
  hostLanguage,
920
- singleLine
935
+ singleLine,
936
+ lineWrap: true
921
937
  });
922
938
  setEditor(editor);
923
939
  return () => {
@@ -954,7 +970,7 @@ const CodeEditor$1 = compat.forwardRef((props, ref) => {
954
970
  title: "Open pop-up editor",
955
971
  class: "bio-properties-panel-open-feel-popup",
956
972
  onClick: () => onPopupOpen('feelers'),
957
- children: jsxRuntime.jsx(ExternalLinkIcon, {})
973
+ children: jsxRuntime.jsx(PopupIcon, {})
958
974
  })]
959
975
  });
960
976
  });
@@ -1324,6 +1340,9 @@ function Title(props) {
1324
1340
  draggable,
1325
1341
  emit = () => {},
1326
1342
  title,
1343
+ showCloseButton = false,
1344
+ closeButtonTooltip = 'Close popup',
1345
+ onClose,
1327
1346
  ...rest
1328
1347
  } = props;
1329
1348
 
@@ -1394,7 +1413,12 @@ function Title(props) {
1394
1413
  }), jsxRuntime.jsx("div", {
1395
1414
  class: "bio-properties-panel-popup__title",
1396
1415
  children: title
1397
- }), children]
1416
+ }), children, showCloseButton && jsxRuntime.jsx("button", {
1417
+ title: closeButtonTooltip,
1418
+ class: "bio-properties-panel-popup__close",
1419
+ onClick: onClose,
1420
+ children: jsxRuntime.jsx(CloseIcon, {})
1421
+ })]
1398
1422
  });
1399
1423
  }
1400
1424
  function Body(props) {
@@ -1612,6 +1636,9 @@ function FeelPopupComponent(props) {
1612
1636
  children: [jsxRuntime.jsxs(Popup.Title, {
1613
1637
  title: title,
1614
1638
  emit: emit,
1639
+ showCloseButton: true,
1640
+ closeButtonTooltip: "Save and close",
1641
+ onClose: onClose,
1615
1642
  draggable: true,
1616
1643
  children: [type === 'feel' && jsxRuntime.jsxs("a", {
1617
1644
  href: "https://docs.camunda.io/docs/components/modeler/feel/what-is-feel/",
@@ -1653,14 +1680,6 @@ function FeelPopupComponent(props) {
1653
1680
  tooltipContainer: tooltipContainer
1654
1681
  })]
1655
1682
  })
1656
- }), jsxRuntime.jsx(Popup.Footer, {
1657
- children: jsxRuntime.jsx("button", {
1658
- type: "button",
1659
- onClick: () => onClose(),
1660
- title: "Close pop-up editor",
1661
- class: "bio-properties-panel-feel-popup__close-btn",
1662
- children: "Close"
1663
- })
1664
1683
  })]
1665
1684
  });
1666
1685
  }
@@ -4309,6 +4328,7 @@ var index = {
4309
4328
 
4310
4329
  exports.ArrowIcon = ArrowIcon;
4311
4330
  exports.CheckboxEntry = CheckboxEntry;
4331
+ exports.CloseIcon = CloseIcon;
4312
4332
  exports.CollapsibleEntry = CollapsibleEntry;
4313
4333
  exports.CreateIcon = CreateIcon;
4314
4334
  exports.DebounceInputModule = index$1;