@bpmn-io/properties-panel 3.43.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.
- package/dist/assets/properties-panel.css +9 -1
- package/dist/index.esm.js +8 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/preact/compat/client.d.ts +0 -13
- package/preact/compat/src/hooks.js +0 -67
- package/preact/compat/test-utils.mjs +0 -1
- package/preact/src/dom.d.ts +0 -2548
- package/preact/src/index-5.d.ts +0 -399
|
@@ -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,14 +1184,20 @@ textarea.bio-properties-panel-input {
|
|
|
1182
1184
|
text-decoration: underline;
|
|
1183
1185
|
text-decoration-style: dotted;
|
|
1184
1186
|
text-underline-offset: 2px;
|
|
1187
|
+
text-decoration-color: var(--tooltip-underline-color);
|
|
1185
1188
|
font: inherit;
|
|
1186
1189
|
display: flex;
|
|
1187
1190
|
justify-content: center;
|
|
1188
1191
|
width: fit-content;
|
|
1189
1192
|
}
|
|
1190
1193
|
|
|
1194
|
+
.bio-properties-panel-tooltip-wrapper:hover,
|
|
1195
|
+
.bio-properties-panel-tooltip-wrapper:focus,
|
|
1196
|
+
.bio-properties-panel-tooltip-wrapper:focus-visible {
|
|
1197
|
+
text-decoration-color: currentColor;
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1191
1200
|
.bio-properties-panel-tooltip {
|
|
1192
|
-
--tooltip-underline-color: var(--color-blue-219-99-53);
|
|
1193
1201
|
--tooltip-background-color: var(--color-grey-0-0-22);
|
|
1194
1202
|
--tooltip-link: var(--color-blue-218-100-74);
|
|
1195
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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, {})
|