design-zystem 1.0.349 → 1.0.350

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.
@@ -637,8 +637,10 @@ interface TableCellProps {
637
637
  /** Séparateur vertical entre colonnes. */
638
638
  borderLeft?: boolean;
639
639
  className?: string;
640
+ /** Fusionne la cellule sur ce nombre de colonnes — ignore `width` pour laisser le navigateur répartir l'espace fusionné. */
641
+ colSpan?: number;
640
642
  }
641
- declare const TableCell: ({ children, width, centerContent, sticky, stickyOffset, surface, borderLeft, className, }: TableCellProps) => react.JSX.Element;
643
+ declare const TableCell: ({ children, width, centerContent, sticky, stickyOffset, surface, borderLeft, className, colSpan, }: TableCellProps) => react.JSX.Element;
642
644
 
643
645
  interface TableFooterProps {
644
646
  children?: ReactNode;
@@ -637,8 +637,10 @@ interface TableCellProps {
637
637
  /** Séparateur vertical entre colonnes. */
638
638
  borderLeft?: boolean;
639
639
  className?: string;
640
+ /** Fusionne la cellule sur ce nombre de colonnes — ignore `width` pour laisser le navigateur répartir l'espace fusionné. */
641
+ colSpan?: number;
640
642
  }
641
- declare const TableCell: ({ children, width, centerContent, sticky, stickyOffset, surface, borderLeft, className, }: TableCellProps) => react.JSX.Element;
643
+ declare const TableCell: ({ children, width, centerContent, sticky, stickyOffset, surface, borderLeft, className, colSpan, }: TableCellProps) => react.JSX.Element;
642
644
 
643
645
  interface TableFooterProps {
644
646
  children?: ReactNode;
package/dist/ui/index.js CHANGED
@@ -2830,10 +2830,12 @@ var TableCell = ({
2830
2830
  stickyOffset = "0px",
2831
2831
  surface = "white",
2832
2832
  borderLeft = false,
2833
- className
2833
+ className,
2834
+ colSpan
2834
2835
  }) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
2835
2836
  "td",
2836
2837
  {
2838
+ colSpan,
2837
2839
  className: cn(
2838
2840
  "overflow-hidden text-ellipsis whitespace-nowrap px-2 py-2 text-center text-[13px]",
2839
2841
  borderLeft && "border-l border-grey-200",
@@ -2841,9 +2843,9 @@ var TableCell = ({
2841
2843
  className
2842
2844
  ),
2843
2845
  style: {
2844
- width: width || "auto",
2845
- maxWidth: width || "auto",
2846
- minWidth: width || "auto",
2846
+ width: colSpan ? void 0 : width || "auto",
2847
+ maxWidth: colSpan ? void 0 : width || "auto",
2848
+ minWidth: colSpan ? void 0 : width || "auto",
2847
2849
  position: sticky ? "sticky" : "static",
2848
2850
  left: sticky === "left" ? stickyOffset : void 0,
2849
2851
  right: sticky === "right" ? stickyOffset : void 0
package/dist/ui/index.mjs CHANGED
@@ -2653,10 +2653,12 @@ var TableCell = ({
2653
2653
  stickyOffset = "0px",
2654
2654
  surface = "white",
2655
2655
  borderLeft = false,
2656
- className
2656
+ className,
2657
+ colSpan
2657
2658
  }) => /* @__PURE__ */ jsx37(
2658
2659
  "td",
2659
2660
  {
2661
+ colSpan,
2660
2662
  className: cn(
2661
2663
  "overflow-hidden text-ellipsis whitespace-nowrap px-2 py-2 text-center text-[13px]",
2662
2664
  borderLeft && "border-l border-grey-200",
@@ -2664,9 +2666,9 @@ var TableCell = ({
2664
2666
  className
2665
2667
  ),
2666
2668
  style: {
2667
- width: width || "auto",
2668
- maxWidth: width || "auto",
2669
- minWidth: width || "auto",
2669
+ width: colSpan ? void 0 : width || "auto",
2670
+ maxWidth: colSpan ? void 0 : width || "auto",
2671
+ minWidth: colSpan ? void 0 : width || "auto",
2670
2672
  position: sticky ? "sticky" : "static",
2671
2673
  left: sticky === "left" ? stickyOffset : void 0,
2672
2674
  right: sticky === "right" ? stickyOffset : void 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.349",
3
+ "version": "1.0.350",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",