@20minutes/hela 2.26.1 → 2.26.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.
@@ -1,9 +1,8 @@
1
1
  import { default as React } from 'react';
2
- import { BoxProps } from '../..';
3
2
  export type TableCell = React.ReactNode;
4
3
  export type TableRow = TableCell[];
5
4
  export type TableContentProps = TableRow[];
6
- export interface TableProps extends BoxProps {
5
+ export interface TableProps {
7
6
  hasHeader?: boolean;
8
7
  tableProps?: TableContentProps;
9
8
  }
package/dist/index.es.js CHANGED
@@ -12120,13 +12120,13 @@ const h1 = L(
12120
12120
  ] })
12121
12121
  ] })
12122
12122
  }
12123
- ), Tl = ({ hasHeader: a, tableProps: c, ...l }) => {
12123
+ ), Tl = ({ hasHeader: a, tableProps: c }) => {
12124
12124
  if (!c?.length)
12125
12125
  return null;
12126
- const s = a ? c[0] : null, i = a ? c.slice(1) : c;
12127
- return /* @__PURE__ */ n(w, { as: "table", ...l, children: [
12128
- a && s && /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: s.map((r, t) => /* @__PURE__ */ e(w, { as: "th", p: "s", children: r }, t)) }) }),
12129
- /* @__PURE__ */ e("tbody", { children: i.map((r, t) => /* @__PURE__ */ e("tr", { children: r.map((o, d) => /* @__PURE__ */ e(w, { as: "td", p: "s", children: o }, d)) }, t)) })
12126
+ const l = a ? c[0] : null, s = a ? c.slice(1) : c;
12127
+ return /* @__PURE__ */ n("table", { className: "c-table", children: [
12128
+ a && l && /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { children: l.map((i, r) => /* @__PURE__ */ e(w, { as: "th", p: "s", children: i }, r)) }) }),
12129
+ /* @__PURE__ */ e("tbody", { children: s.map((i, r) => /* @__PURE__ */ e("tr", { children: i.map((t, o) => /* @__PURE__ */ e(w, { as: "td", p: "s", children: t }, o)) }, r)) })
12130
12130
  ] });
12131
12131
  }, ge = ({
12132
12132
  tabItems: a,