@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.js CHANGED
@@ -1412,6 +1412,8 @@ var defaults = {
1412
1412
  itemBtn: {
1413
1413
  flex: 1,
1414
1414
  minWidth: 0,
1415
+ display: "flex",
1416
+ alignItems: "center",
1415
1417
  background: "transparent",
1416
1418
  border: "none",
1417
1419
  padding: "0.5rem 0.9rem",
@@ -1545,22 +1547,31 @@ function MatrixItemRow({
1545
1547
  opacity: isEnabled ? 1 : 0.4
1546
1548
  } : { ...itemStyleProp };
1547
1549
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: classes, style: computedStyle, children: [
1548
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1550
+ useDefaults ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: defaults.itemBtn, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1549
1551
  CrisButton,
1550
1552
  {
1551
1553
  selected: isActive,
1552
1554
  enabled: isEnabled,
1553
1555
  onPress: onSelect,
1554
- className: itemClassName ? `cris-co-matrix-item-btn ${itemActiveClassName ?? ""}` : void 0,
1555
- classActive: itemClassName ? itemActiveClassName : void 0,
1556
- children: useDefaults ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: defaults.itemBtnInner, children: [
1556
+ showLocalFeedback: false,
1557
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: defaults.itemBtnInner, children: [
1557
1558
  showChannels && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "cris-co-matrix-ch", style: defaults.channelNum, children: item.id }),
1558
1559
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { style: defaults.itemLabel, children: item.lb || `${type === "input" ? "Input" : "Output"} ${item.id}` }),
1559
1560
  /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: defaults.indicators, children: [
1560
1561
  item.io.vs && (renderIoIndicator ? renderIoIndicator(item.io.on) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DefaultIoIndicator, { on: item.io.on })),
1561
1562
  item.sg.vs && (renderSignalIndicator ? renderSignalIndicator(item.sg.on) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DefaultSignalIndicator, { on: item.sg.on }))
1562
1563
  ] })
1563
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "0.4rem", width: "100%" }, children: [
1564
+ ] })
1565
+ }
1566
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1567
+ CrisButton,
1568
+ {
1569
+ selected: isActive,
1570
+ enabled: isEnabled,
1571
+ onPress: onSelect,
1572
+ className: `cris-co-matrix-item-btn ${itemActiveClassName ?? ""}`,
1573
+ classActive: itemActiveClassName,
1574
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: "0.4rem", width: "100%" }, children: [
1564
1575
  showChannels && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "cris-co-matrix-ch", style: { flexShrink: 0, opacity: 0.6 }, children: item.id }),
1565
1576
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { style: { flex: 1, whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" }, children: item.lb || `${type === "input" ? "Input" : "Output"} ${item.id}` }),
1566
1577
  /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { style: defaults.indicators, children: [