design-zystem 1.0.510 → 1.0.513

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.
@@ -913,6 +913,7 @@ interface TableHeaderCellProps {
913
913
  /** Laisse le libellé passer à la ligne au lieu d'être tronqué. */
914
914
  wrap?: boolean;
915
915
  className?: string;
916
+ colSpan?: number;
916
917
  /** Rend la cellule triable — affiche `children` dans un bouton avec une
917
918
  * flèche de tri unique (↑ / ↓), visible sur la colonne triée et en survol. */
918
919
  useSort?: boolean;
@@ -922,7 +923,7 @@ interface TableHeaderCellProps {
922
923
  onClick?: () => void;
923
924
  hint?: ReactNode;
924
925
  }
925
- declare const TableHeaderCell: ({ children, width, sticky, stickyOffset, surface, backgroundColor, borderLeft, wrap, className, useSort, isSort, sortOrder, onClick, hint, }: TableHeaderCellProps) => react.JSX.Element;
926
+ declare const TableHeaderCell: ({ children, width, sticky, stickyOffset, surface, backgroundColor, borderLeft, wrap, className, colSpan, useSort, isSort, sortOrder, onClick, hint, }: TableHeaderCellProps) => react.JSX.Element;
926
927
 
927
928
  interface TableRowProps {
928
929
  children?: ReactNode;
@@ -913,6 +913,7 @@ interface TableHeaderCellProps {
913
913
  /** Laisse le libellé passer à la ligne au lieu d'être tronqué. */
914
914
  wrap?: boolean;
915
915
  className?: string;
916
+ colSpan?: number;
916
917
  /** Rend la cellule triable — affiche `children` dans un bouton avec une
917
918
  * flèche de tri unique (↑ / ↓), visible sur la colonne triée et en survol. */
918
919
  useSort?: boolean;
@@ -922,7 +923,7 @@ interface TableHeaderCellProps {
922
923
  onClick?: () => void;
923
924
  hint?: ReactNode;
924
925
  }
925
- declare const TableHeaderCell: ({ children, width, sticky, stickyOffset, surface, backgroundColor, borderLeft, wrap, className, useSort, isSort, sortOrder, onClick, hint, }: TableHeaderCellProps) => react.JSX.Element;
926
+ declare const TableHeaderCell: ({ children, width, sticky, stickyOffset, surface, backgroundColor, borderLeft, wrap, className, colSpan, useSort, isSort, sortOrder, onClick, hint, }: TableHeaderCellProps) => react.JSX.Element;
926
927
 
927
928
  interface TableRowProps {
928
929
  children?: ReactNode;
package/dist/ui/index.js CHANGED
@@ -4895,6 +4895,7 @@ var TableHeaderCell = ({
4895
4895
  borderLeft = false,
4896
4896
  wrap = false,
4897
4897
  className,
4898
+ colSpan,
4898
4899
  useSort = false,
4899
4900
  isSort = false,
4900
4901
  sortOrder = null,
@@ -4907,7 +4908,8 @@ var TableHeaderCell = ({
4907
4908
  return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(OverflowTooltip, { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
4908
4909
  "th",
4909
4910
  {
4910
- scope: "col",
4911
+ scope: colSpan ? "colgroup" : "col",
4912
+ colSpan,
4911
4913
  onMouseEnter: () => useSort && setHovered(true),
4912
4914
  onMouseLeave: () => useSort && setHovered(false),
4913
4915
  className: cn(
@@ -4919,9 +4921,9 @@ var TableHeaderCell = ({
4919
4921
  className
4920
4922
  ),
4921
4923
  style: {
4922
- width: width || "auto",
4923
- maxWidth: width || "auto",
4924
- minWidth: width || "auto",
4924
+ width: colSpan ? void 0 : width || "auto",
4925
+ maxWidth: colSpan ? void 0 : width || "auto",
4926
+ minWidth: colSpan ? void 0 : width || "auto",
4925
4927
  position: sticky ? "sticky" : "static",
4926
4928
  // `top` re-anchors this cell to the scroll container's edge — needed
4927
4929
  // because setting `position: sticky` here (for left/right freezing)
package/dist/ui/index.mjs CHANGED
@@ -4667,6 +4667,7 @@ var TableHeaderCell = ({
4667
4667
  borderLeft = false,
4668
4668
  wrap = false,
4669
4669
  className,
4670
+ colSpan,
4670
4671
  useSort = false,
4671
4672
  isSort = false,
4672
4673
  sortOrder = null,
@@ -4679,7 +4680,8 @@ var TableHeaderCell = ({
4679
4680
  return /* @__PURE__ */ jsx52(OverflowTooltip, { children: /* @__PURE__ */ jsxs27(
4680
4681
  "th",
4681
4682
  {
4682
- scope: "col",
4683
+ scope: colSpan ? "colgroup" : "col",
4684
+ colSpan,
4683
4685
  onMouseEnter: () => useSort && setHovered(true),
4684
4686
  onMouseLeave: () => useSort && setHovered(false),
4685
4687
  className: cn(
@@ -4691,9 +4693,9 @@ var TableHeaderCell = ({
4691
4693
  className
4692
4694
  ),
4693
4695
  style: {
4694
- width: width || "auto",
4695
- maxWidth: width || "auto",
4696
- minWidth: width || "auto",
4696
+ width: colSpan ? void 0 : width || "auto",
4697
+ maxWidth: colSpan ? void 0 : width || "auto",
4698
+ minWidth: colSpan ? void 0 : width || "auto",
4697
4699
  position: sticky ? "sticky" : "static",
4698
4700
  // `top` re-anchors this cell to the scroll container's edge — needed
4699
4701
  // because setting `position: sticky` here (for left/right freezing)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.510",
3
+ "version": "1.0.513",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",