@bpmn-io/properties-panel 3.15.0 → 3.16.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.
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * Theming
3
3
  */
4
- .bio-properties-panel {
4
+ .bio-properties-panel,
5
+ .djs-parent {
5
6
  --color-grey-225-10-15: hsl(225, 10%, 15%);
6
7
  --color-grey-225-10-35: hsl(225, 10%, 35%);
7
8
  --color-grey-225-10-55: hsl(225, 10%, 55%);
@@ -26,11 +27,13 @@
26
27
  --color-red-360-100-45: hsl(360, 100%, 45%);
27
28
  --color-red-360-100-92: hsl(360, 100%, 92%);
28
29
  --color-red-360-100-97: hsl(360, 100%, 97%);
29
-
30
30
  --color-white: white;
31
31
  --color-black: black;
32
32
  --color-transparent: transparent;
33
33
 
34
+ }
35
+
36
+ .bio-properties-panel {
34
37
  --text-base-color: var(--color-grey-225-10-15);
35
38
  --text-error-color: var(--color-red-360-100-45);
36
39
  --link-color: var(--color-blue-205-100-50);
@@ -118,12 +121,6 @@
118
121
 
119
122
  --feelers-select-color: var(--color-blue-205-100-85);
120
123
 
121
- --tooltip-underline-color: var(--color-blue-219-99-53);
122
- --tooltip-background-color: var(--color-grey-0-0-22);
123
- --tooltip-link: var(--color-blue-218-100-74);
124
- --tooltip-code-background-color: var(--color-grey-225-10-97);
125
- --tooltip-code-border-color: var(--color-grey-225-10-85);
126
-
127
124
  --text-size-base: 14px;
128
125
  --text-size-small: 13px;
129
126
  --text-size-smallest: 12px;
@@ -1149,17 +1146,33 @@ textarea.bio-properties-panel-input {
1149
1146
  text-decoration-style: dotted;
1150
1147
  text-underline-offset: 2px;
1151
1148
  font: inherit;
1149
+ display: flex;
1150
+ justify-content: center;
1151
+ width: fit-content;
1152
1152
  }
1153
1153
 
1154
1154
  .bio-properties-panel-tooltip {
1155
+ --tooltip-underline-color: var(--color-blue-219-99-53);
1156
+ --tooltip-background-color: var(--color-grey-0-0-22);
1157
+ --tooltip-link: var(--color-blue-218-100-74);
1158
+ --tooltip-code-background-color: var(--color-grey-225-10-97);
1159
+ --tooltip-code-border-color: var(--color-grey-225-10-85);
1160
+
1155
1161
  display: flex;
1156
1162
  color: var(--color-white, white);
1157
1163
  position: fixed;
1158
1164
  z-index: 1000;
1159
- padding-right: 6px;
1160
1165
  max-width: 300px;
1161
1166
  font-size: var(--text-size-small);
1162
1167
  font-family: var(--font-family);
1168
+
1169
+ &.right {
1170
+ padding-right: 6px;
1171
+ }
1172
+
1173
+ &.top {
1174
+ flex-direction: column;
1175
+ }
1163
1176
  }
1164
1177
 
1165
1178
  .bio-properties-panel-tooltip-content {
@@ -1207,6 +1220,12 @@ textarea.bio-properties-panel-input {
1207
1220
  margin-top: 16px;
1208
1221
  }
1209
1222
 
1223
+ .bio-properties-panel-tooltip.top .bio-properties-panel-tooltip-arrow {
1224
+ margin-top: -3px;
1225
+ margin-left: calc(50% - 2.5px);
1226
+ transform: rotate(90deg);
1227
+ }
1228
+
1210
1229
  .bio-properties-panel-feelers-editor-container .bio-properties-panel-feelers-editor__open-popup-placeholder,
1211
1230
  .bio-properties-panel-feel-editor-container .bio-properties-panel-feel-editor__open-popup-placeholder {
1212
1231
  display: none;
@@ -1277,6 +1296,8 @@ textarea.bio-properties-panel-input {
1277
1296
 
1278
1297
  .bio-properties-panel-popup .bio-properties-panel-popup__body:not(:first-child) {
1279
1298
  padding-top: 0;
1299
+ padding-left: 0;
1300
+ padding-right: 0;
1280
1301
  }
1281
1302
 
1282
1303
  .bio-properties-panel-popup .bio-properties-panel-popup__header {
@@ -1361,6 +1382,10 @@ textarea.bio-properties-panel-input {
1361
1382
  min-width: 100%;
1362
1383
  }
1363
1384
 
1385
+ .bio-properties-panel-feel-popup .bio-properties-panel-feel-editor-container .cm-scroller {
1386
+ overflow: auto !important;
1387
+ }
1388
+
1364
1389
  .bio-properties-panel-feel-popup .bio-properties-panel-feelers-editor-container {
1365
1390
  width: 100%;
1366
1391
  display: flex;
@@ -1378,7 +1403,6 @@ textarea.bio-properties-panel-input {
1378
1403
  width: 100%;
1379
1404
  resize: none;
1380
1405
  padding: 0;
1381
- margin-left: -12px;
1382
1406
  overflow: hidden;
1383
1407
  overflow-y: auto
1384
1408
  }
package/dist/index.esm.js CHANGED
@@ -7,7 +7,7 @@ import classnames from 'classnames';
7
7
  import { query, domify } from 'min-dom';
8
8
  import { FeelersEditor } from 'feelers';
9
9
  import FeelEditor from '@bpmn-io/feel-editor';
10
- import { lineNumbers } from '@codemirror/view';
10
+ import { lineNumbers, EditorView } from '@codemirror/view';
11
11
  import * as focusTrap from 'focus-trap';
12
12
 
13
13
  var ArrowIcon = function ArrowIcon(props) {
@@ -284,7 +284,9 @@ function Tooltip(props) {
284
284
  const {
285
285
  forId,
286
286
  value,
287
- parent
287
+ parent,
288
+ direction = 'right',
289
+ position
288
290
  } = props;
289
291
  const [visible, setShow] = useState(false);
290
292
  const [focusedViaKeyboard, setFocusedViaKeyboard] = useState(false);
@@ -353,11 +355,11 @@ function Tooltip(props) {
353
355
  }, [wrapperRef.current, visible, focusedViaKeyboard]);
354
356
  const renderTooltip = () => {
355
357
  return jsxs("div", {
356
- class: "bio-properties-panel-tooltip",
358
+ class: `bio-properties-panel-tooltip ${direction}`,
357
359
  role: "tooltip",
358
360
  id: "bio-properties-panel-tooltip",
359
361
  "aria-labelledby": forId,
360
- style: getTooltipPosition(wrapperRef.current),
362
+ style: position || getTooltipPosition(wrapperRef.current),
361
363
  ref: tooltipRef,
362
364
  onClick: e => e.stopPropagation(),
363
365
  children: [jsx("div", {
@@ -1010,7 +1012,7 @@ const CodeEditor = forwardRef((props, ref) => {
1010
1012
  tooltipContainer: tooltipContainer,
1011
1013
  value: localValue,
1012
1014
  variables: variables,
1013
- extensions: [...(enableGutters ? [lineNumbers()] : [])]
1015
+ extensions: [...(enableGutters ? [lineNumbers()] : []), EditorView.lineWrapping]
1014
1016
  });
1015
1017
  setEditor(editor);
1016
1018
  return () => {
@@ -4317,5 +4319,5 @@ var index = {
4317
4319
  feelPopup: ['type', FeelPopupModule]
4318
4320
  };
4319
4321
 
4320
- export { ArrowIcon, CheckboxEntry, CollapsibleEntry, CreateIcon, index$1 as DebounceInputModule, DeleteIcon, DescriptionContext, Description as DescriptionEntry, DragIcon, DropdownButton, ErrorsContext, EventContext, ExternalLinkIcon, FeelCheckboxEntry, FeelEntry, FeelIcon$1 as FeelIcon, FeelNumberEntry, index as FeelPopupModule, FeelTemplatingEntry, FeelTextAreaEntry, FeelToggleSwitchEntry, Group, Header, HeaderButton, HelpIcon, LayoutContext, List as ListEntry, ListGroup, ListItem, NumberFieldEntry, Placeholder, Popup, PopupIcon, PropertiesPanel, LayoutContext as PropertiesPanelContext, SelectEntry, Simple as SimpleEntry, TemplatingEntry, TextAreaEntry, TextfieldEntry as TextFieldEntry, ToggleSwitchEntry, TooltipContext, isEdited$5 as isCheckboxEntryEdited, isEdited$6 as isFeelEntryEdited, isEdited$7 as isNumberFieldEntryEdited, isEdited$3 as isSelectEntryEdited, isEdited$2 as isSimpleEntryEdited, isEdited$4 as isTemplatingEntryEdited, isEdited$1 as isTextAreaEntryEdited, isEdited as isTextFieldEntryEdited, isEdited$8 as isToggleSwitchEntryEdited, useDescriptionContext, useError, useErrors, useEvent, useKeyFactory, useLayoutState, usePrevious, useShowEntryEvent, useStaticCallback, useStickyIntersectionObserver, useTooltipContext };
4322
+ export { ArrowIcon, CheckboxEntry, CollapsibleEntry, CreateIcon, index$1 as DebounceInputModule, DeleteIcon, DescriptionContext, Description as DescriptionEntry, DragIcon, DropdownButton, ErrorsContext, EventContext, ExternalLinkIcon, FeelCheckboxEntry, FeelEntry, FeelIcon$1 as FeelIcon, FeelNumberEntry, index as FeelPopupModule, FeelTemplatingEntry, FeelTextAreaEntry, FeelToggleSwitchEntry, Group, Header, HeaderButton, HelpIcon, LayoutContext, List as ListEntry, ListGroup, ListItem, NumberFieldEntry, Placeholder, Popup, PopupIcon, PropertiesPanel, LayoutContext as PropertiesPanelContext, SelectEntry, Simple as SimpleEntry, TemplatingEntry, TextAreaEntry, TextfieldEntry as TextFieldEntry, ToggleSwitchEntry, TooltipContext, TooltipWrapper as TooltipEntry, isEdited$5 as isCheckboxEntryEdited, isEdited$6 as isFeelEntryEdited, isEdited$7 as isNumberFieldEntryEdited, isEdited$3 as isSelectEntryEdited, isEdited$2 as isSimpleEntryEdited, isEdited$4 as isTemplatingEntryEdited, isEdited$1 as isTextAreaEntryEdited, isEdited as isTextFieldEntryEdited, isEdited$8 as isToggleSwitchEntryEdited, useDescriptionContext, useError, useErrors, useEvent, useKeyFactory, useLayoutState, usePrevious, useShowEntryEvent, useStaticCallback, useStickyIntersectionObserver, useTooltipContext };
4321
4323
  //# sourceMappingURL=index.esm.js.map