@bpmn-io/properties-panel 3.44.0 → 3.44.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.
@@ -44,6 +44,8 @@
44
44
  --description-code-border-color: var(--color-grey-225-10-85);
45
45
  --description-list-item-color: var(--color-grey-225-10-35);
46
46
 
47
+ --tooltip-underline-color: var(--color-grey-225-10-55);
48
+
47
49
  --placeholder-color: var(--color-grey-225-10-35);
48
50
  --placeholder-background-color: var(--color-grey-225-10-95);
49
51
 
@@ -1182,7 +1184,7 @@ textarea.bio-properties-panel-input {
1182
1184
  text-decoration: underline;
1183
1185
  text-decoration-style: dotted;
1184
1186
  text-underline-offset: 2px;
1185
- text-decoration-color: var(--color-grey-225-10-55);
1187
+ text-decoration-color: var(--tooltip-underline-color);
1186
1188
  font: inherit;
1187
1189
  display: flex;
1188
1190
  justify-content: center;
@@ -1196,7 +1198,6 @@ textarea.bio-properties-panel-input {
1196
1198
  }
1197
1199
 
1198
1200
  .bio-properties-panel-tooltip {
1199
- --tooltip-underline-color: var(--color-blue-219-99-53);
1200
1201
  --tooltip-background-color: var(--color-grey-0-0-22);
1201
1202
  --tooltip-link: var(--color-blue-218-100-74);
1202
1203
  --tooltip-code-background-color: var(--color-grey-225-10-97);
package/dist/index.esm.js CHANGED
@@ -3657,6 +3657,7 @@ function List(props) {
3657
3657
  onAdd,
3658
3658
  onRemove,
3659
3659
  autoFocusEntry,
3660
+ translate = translateFallback,
3660
3661
  ...restProps
3661
3662
  } = props;
3662
3663
  const entryRef = useRef(null);
@@ -3699,12 +3700,12 @@ function List(props) {
3699
3700
  class: "bio-properties-panel-list-entry-header-buttons",
3700
3701
  children: [jsxs("button", {
3701
3702
  type: "button",
3702
- title: "Create new list item",
3703
+ title: translate('Create new list item'),
3703
3704
  onClick: addItem,
3704
3705
  class: "bio-properties-panel-add-entry",
3705
3706
  children: [jsx(CreateIcon, {}), !hasItems ? jsx("span", {
3706
3707
  class: "bio-properties-panel-add-entry-label",
3707
- children: "Create"
3708
+ children: translate('Create')
3708
3709
  }) : null]
3709
3710
  }), hasItems && jsx("div", {
3710
3711
  title: `List contains ${items.length} item${items.length != 1 ? 's' : ''}`,
@@ -3712,7 +3713,7 @@ function List(props) {
3712
3713
  children: items.length
3713
3714
  }), hasItems && jsx("button", {
3714
3715
  type: "button",
3715
- title: "Toggle list item",
3716
+ title: translate('Toggle list item'),
3716
3717
  class: "bio-properties-panel-arrow",
3717
3718
  children: jsx(ArrowIcon, {
3718
3719
  class: open ? 'bio-properties-panel-arrow-down' : 'bio-properties-panel-arrow-right'
@@ -3728,7 +3729,8 @@ function List(props) {
3728
3729
  items: items,
3729
3730
  newItems: newItems,
3730
3731
  onRemove: onRemove,
3731
- open: open
3732
+ open: open,
3733
+ translate: translate
3732
3734
  })]
3733
3735
  });
3734
3736
  }
@@ -3742,6 +3744,7 @@ function ItemsList(props) {
3742
3744
  newItems,
3743
3745
  onRemove,
3744
3746
  open,
3747
+ translate,
3745
3748
  ...restProps
3746
3749
  } = props;
3747
3750
  const getKey = useKeyFactory();
@@ -3780,7 +3783,7 @@ function ItemsList(props) {
3780
3783
  open: item === newItem
3781
3784
  }), onRemove && jsx("button", {
3782
3785
  type: "button",
3783
- title: "Delete item",
3786
+ title: translate('Delete item'),
3784
3787
  class: "bio-properties-panel-remove-entry bio-properties-panel-remove-list-entry",
3785
3788
  onClick: () => onRemove && onRemove(item),
3786
3789
  children: jsx(DeleteIcon, {})