@imperosoft/cris-webui-components 1.1.2-beta.14 → 1.1.2-beta.16

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.mjs CHANGED
@@ -1375,6 +1375,8 @@ var defaults = {
1375
1375
  itemBtn: {
1376
1376
  flex: 1,
1377
1377
  minWidth: 0,
1378
+ display: "flex",
1379
+ alignItems: "center",
1378
1380
  background: "transparent",
1379
1381
  border: "none",
1380
1382
  padding: "0.5rem 0.9rem",
@@ -1508,22 +1510,31 @@ function MatrixItemRow({
1508
1510
  opacity: isEnabled ? 1 : 0.4
1509
1511
  } : { ...itemStyleProp };
1510
1512
  return /* @__PURE__ */ jsxs7("div", { className: classes, style: computedStyle, children: [
1511
- /* @__PURE__ */ jsx8(
1513
+ useDefaults ? /* @__PURE__ */ jsx8("div", { style: defaults.itemBtn, children: /* @__PURE__ */ jsx8(
1512
1514
  CrisButton,
1513
1515
  {
1514
1516
  selected: isActive,
1515
1517
  enabled: isEnabled,
1516
1518
  onPress: onSelect,
1517
- className: itemClassName ? `cris-co-matrix-item-btn ${itemActiveClassName ?? ""}` : void 0,
1518
- classActive: itemClassName ? itemActiveClassName : void 0,
1519
- children: useDefaults ? /* @__PURE__ */ jsxs7("div", { style: defaults.itemBtnInner, children: [
1519
+ showLocalFeedback: false,
1520
+ children: /* @__PURE__ */ jsxs7("div", { style: defaults.itemBtnInner, children: [
1520
1521
  showChannels && /* @__PURE__ */ jsx8("span", { className: "cris-co-matrix-ch", style: defaults.channelNum, children: item.id }),
1521
1522
  /* @__PURE__ */ jsx8("span", { style: defaults.itemLabel, children: item.lb || `${type === "input" ? "Input" : "Output"} ${item.id}` }),
1522
1523
  /* @__PURE__ */ jsxs7("div", { style: defaults.indicators, children: [
1523
1524
  item.io.vs && (renderIoIndicator ? renderIoIndicator(item.io.on) : /* @__PURE__ */ jsx8(DefaultIoIndicator, { on: item.io.on })),
1524
1525
  item.sg.vs && (renderSignalIndicator ? renderSignalIndicator(item.sg.on) : /* @__PURE__ */ jsx8(DefaultSignalIndicator, { on: item.sg.on }))
1525
1526
  ] })
1526
- ] }) : /* @__PURE__ */ jsxs7("div", { style: { display: "flex", alignItems: "center", gap: "0.4rem", width: "100%" }, children: [
1527
+ ] })
1528
+ }
1529
+ ) }) : /* @__PURE__ */ jsx8(
1530
+ CrisButton,
1531
+ {
1532
+ selected: isActive,
1533
+ enabled: isEnabled,
1534
+ onPress: onSelect,
1535
+ className: `cris-co-matrix-item-btn ${itemActiveClassName ?? ""}`,
1536
+ classActive: itemActiveClassName,
1537
+ children: /* @__PURE__ */ jsxs7("div", { style: { display: "flex", alignItems: "center", gap: "0.4rem", width: "100%" }, children: [
1527
1538
  showChannels && /* @__PURE__ */ jsx8("span", { className: "cris-co-matrix-ch", style: { flexShrink: 0, opacity: 0.6 }, children: item.id }),
1528
1539
  /* @__PURE__ */ jsx8("span", { style: { flex: 1, whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" }, children: item.lb || `${type === "input" ? "Input" : "Output"} ${item.id}` }),
1529
1540
  /* @__PURE__ */ jsxs7("div", { style: defaults.indicators, children: [