@bpmn-io/form-js-editor 1.0.0-alpha.1 → 1.0.0-alpha.2

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.es.js CHANGED
@@ -1186,6 +1186,7 @@ var SlotContext$1 = SlotContext;
1186
1186
  var Slot = (props => {
1187
1187
  const {
1188
1188
  name,
1189
+ fillRoot = FillFragment,
1189
1190
  groupFn = _groupByGroupName,
1190
1191
  separatorFn = key => null,
1191
1192
  limit
@@ -1197,8 +1198,8 @@ var Slot = (props => {
1197
1198
  const cropped = useMemo(() => limit ? filtered.slice(0, limit) : filtered, [filtered, limit]);
1198
1199
  const groups = useMemo(() => groupFn(cropped), [cropped, groupFn]);
1199
1200
  const fillsAndSeparators = useMemo(() => {
1200
- return buildFills(groups, FillFragment, separatorFn);
1201
- }, [groups, separatorFn]);
1201
+ return buildFills(groups, fillRoot, separatorFn);
1202
+ }, [groups, fillRoot, separatorFn]);
1202
1203
  return fillsAndSeparators;
1203
1204
  });
1204
1205
 
@@ -1409,11 +1410,16 @@ function Palette(props) {
1409
1410
  }), jsx("div", {
1410
1411
  class: "fjs-palette-footer",
1411
1412
  children: jsx(Slot, {
1412
- name: "editor-palette__footer"
1413
+ name: "editor-palette__footer",
1414
+ fillRoot: FillRoot
1413
1415
  })
1414
1416
  })]
1415
1417
  });
1416
1418
  }
1419
+ const FillRoot = fill => jsx("div", {
1420
+ className: "fjs-palette-footer-fill",
1421
+ children: fill.children
1422
+ });
1417
1423
 
1418
1424
  // helpers ///////
1419
1425