@protonradio/proton-ui 0.7.12 → 0.7.13

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
@@ -11438,19 +11438,20 @@ function Kh({
11438
11438
  }
11439
11439
  );
11440
11440
  }
11441
- function Mh({ cell: t, state: e }) {
11442
- let n = M(), { gridCellProps: r } = Vp({ node: t }, e, n), { isFocusVisible: l, focusProps: i } = Xt();
11443
- const { align: o = "left" } = t.props;
11441
+ function Mh({ cell: t, state: e, width: n }) {
11442
+ let r = M(), { gridCellProps: l } = Vp({ node: t }, e, r), { isFocusVisible: i, focusProps: o } = Xt();
11443
+ const { align: a = "left" } = t.props;
11444
11444
  return /* @__PURE__ */ b.jsx(
11445
11445
  "td",
11446
11446
  {
11447
- ...H(r, i),
11447
+ ...H(l, o),
11448
11448
  className: W(
11449
11449
  "proton-Table__cell",
11450
- l ? "proton-Table__cell--focused" : null,
11451
- `proton-Table__cell--${o}`
11450
+ i ? "proton-Table__cell--focused" : null,
11451
+ `proton-Table__cell--${a}`
11452
11452
  ),
11453
- ref: n,
11453
+ style: n ? { width: n } : void 0,
11454
+ ref: r,
11454
11455
  children: t.rendered
11455
11456
  }
11456
11457
  );
@@ -11481,7 +11482,7 @@ function f4(t) {
11481
11482
  state: e,
11482
11483
  backgroundColor: o.props.backgroundColor,
11483
11484
  showLines: r.body.props.showLines,
11484
- children: Array.from(r.getChildren(o.key)).map((a) => /* @__PURE__ */ b.jsx(Mh, { cell: a, state: e }, a.key))
11485
+ children: Array.from(r.getChildren(o.key)).map((a) => /* @__PURE__ */ b.jsx(Mh, { cell: a, state: e, width: a.props.width }, a.key))
11485
11486
  },
11486
11487
  o.key
11487
11488
  )) })