design-zystem 1.0.289 → 1.0.291

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.d.mts CHANGED
@@ -122,6 +122,8 @@ interface ColProps extends HTMLAttributes<HTMLDivElement> {
122
122
  minWidth?: string;
123
123
  /** Explicit height, wins over `fullHeight`. `height="auto"` beats the default `fit-content` so the column can stretch. */
124
124
  height?: string;
125
+ /** Ceiling height. `maxHeight="none"` removes the default 100% cap; `maxHeight="400px"` creates a scrollable region when paired with `overflowY="auto"`. */
126
+ maxHeight?: string;
125
127
  /** Floor height of a flex child; `minHeight="0"` lets it shrink below its content so an inner area can scroll. */
126
128
  minHeight?: string;
127
129
  /** `flex-shrink` factor. `flexShrink="0"` prevents the column from shrinking below its explicit `width`. */
@@ -764,6 +766,7 @@ interface TableHeaderCellProps extends HTMLAttributes<HTMLDivElement> {
764
766
  flexGrow?: string | number;
765
767
  flexShrink?: string | number;
766
768
  width?: string;
769
+ borderLeft?: string;
767
770
  style?: CSSProperties;
768
771
  className?: string;
769
772
  }
package/dist/index.d.ts CHANGED
@@ -122,6 +122,8 @@ interface ColProps extends HTMLAttributes<HTMLDivElement> {
122
122
  minWidth?: string;
123
123
  /** Explicit height, wins over `fullHeight`. `height="auto"` beats the default `fit-content` so the column can stretch. */
124
124
  height?: string;
125
+ /** Ceiling height. `maxHeight="none"` removes the default 100% cap; `maxHeight="400px"` creates a scrollable region when paired with `overflowY="auto"`. */
126
+ maxHeight?: string;
125
127
  /** Floor height of a flex child; `minHeight="0"` lets it shrink below its content so an inner area can scroll. */
126
128
  minHeight?: string;
127
129
  /** `flex-shrink` factor. `flexShrink="0"` prevents the column from shrinking below its explicit `width`. */
@@ -764,6 +766,7 @@ interface TableHeaderCellProps extends HTMLAttributes<HTMLDivElement> {
764
766
  flexGrow?: string | number;
765
767
  flexShrink?: string | number;
766
768
  width?: string;
769
+ borderLeft?: string;
767
770
  style?: CSSProperties;
768
771
  className?: string;
769
772
  }
package/dist/index.js CHANGED
@@ -546,6 +546,7 @@ var shouldForwardPropCol = (prop) => ![
546
546
  "width",
547
547
  "minWidth",
548
548
  "height",
549
+ "maxHeight",
549
550
  "minHeight",
550
551
  "flexShrink",
551
552
  "alignSelf",
@@ -574,7 +575,10 @@ var StyledCol = import_styled_components5.default.div.withConfig({
574
575
  ` : ""}
575
576
  ${(props) => props.overflowWrap ? `overflow-wrap: ${props.overflowWrap};` : ""}
576
577
  ${(props) => props.position ? `position: ${props.position};` : ""}
577
- max-height: 100%;
578
+ max-height: ${(props) => {
579
+ var _a;
580
+ return (_a = props.maxHeight) != null ? _a : "100%";
581
+ }};
578
582
  height: ${(props) => props.height || (props.fullHeight ? "100%" : "fit-content")};
579
583
  ${(props) => props.minHeight ? `min-height: ${props.minHeight};` : ""}
580
584
  ${(props) => props.flexShrink !== void 0 ? `flex-shrink: ${props.flexShrink};` : ""}
@@ -3792,7 +3796,14 @@ var TableCell = (props) => {
3792
3796
  var import_react19 = require("react");
3793
3797
  var import_styled_components33 = __toESM(require("styled-components"));
3794
3798
  var import_jsx_runtime37 = require("react/jsx-runtime");
3795
- var shouldForwardPropTableHeaderCell = (prop) => !["useSort", "isSort", "flexGrow", "flexShrink", "width"].includes(prop);
3799
+ var shouldForwardPropTableHeaderCell = (prop) => ![
3800
+ "useSort",
3801
+ "isSort",
3802
+ "flexGrow",
3803
+ "flexShrink",
3804
+ "width",
3805
+ "borderLeft"
3806
+ ].includes(prop);
3796
3807
  var StyledTableHeaderCell = import_styled_components33.default.div.withConfig({
3797
3808
  shouldForwardProp: shouldForwardPropTableHeaderCell
3798
3809
  })`
@@ -3809,6 +3820,7 @@ var StyledTableHeaderCell = import_styled_components33.default.div.withConfig({
3809
3820
  font-weight: bold;
3810
3821
  max-width: ${(props) => props.width || "auto"};
3811
3822
  min-width: ${(props) => props.width || "auto"};
3823
+ ${(props) => props.borderLeft ? `border-left: ${props.borderLeft};` : ""}
3812
3824
  `;
3813
3825
  var SortingButton = import_styled_components33.default.span`
3814
3826
  display: inline-flex;
package/dist/index.mjs CHANGED
@@ -407,6 +407,7 @@ var shouldForwardPropCol = (prop) => ![
407
407
  "width",
408
408
  "minWidth",
409
409
  "height",
410
+ "maxHeight",
410
411
  "minHeight",
411
412
  "flexShrink",
412
413
  "alignSelf",
@@ -435,7 +436,10 @@ var StyledCol = styled5.div.withConfig({
435
436
  ` : ""}
436
437
  ${(props) => props.overflowWrap ? `overflow-wrap: ${props.overflowWrap};` : ""}
437
438
  ${(props) => props.position ? `position: ${props.position};` : ""}
438
- max-height: 100%;
439
+ max-height: ${(props) => {
440
+ var _a;
441
+ return (_a = props.maxHeight) != null ? _a : "100%";
442
+ }};
439
443
  height: ${(props) => props.height || (props.fullHeight ? "100%" : "fit-content")};
440
444
  ${(props) => props.minHeight ? `min-height: ${props.minHeight};` : ""}
441
445
  ${(props) => props.flexShrink !== void 0 ? `flex-shrink: ${props.flexShrink};` : ""}
@@ -3659,7 +3663,14 @@ var TableCell = (props) => {
3659
3663
  import { useState as useState10 } from "react";
3660
3664
  import styled33 from "styled-components";
3661
3665
  import { jsx as jsx37, jsxs as jsxs17 } from "react/jsx-runtime";
3662
- var shouldForwardPropTableHeaderCell = (prop) => !["useSort", "isSort", "flexGrow", "flexShrink", "width"].includes(prop);
3666
+ var shouldForwardPropTableHeaderCell = (prop) => ![
3667
+ "useSort",
3668
+ "isSort",
3669
+ "flexGrow",
3670
+ "flexShrink",
3671
+ "width",
3672
+ "borderLeft"
3673
+ ].includes(prop);
3663
3674
  var StyledTableHeaderCell = styled33.div.withConfig({
3664
3675
  shouldForwardProp: shouldForwardPropTableHeaderCell
3665
3676
  })`
@@ -3676,6 +3687,7 @@ var StyledTableHeaderCell = styled33.div.withConfig({
3676
3687
  font-weight: bold;
3677
3688
  max-width: ${(props) => props.width || "auto"};
3678
3689
  min-width: ${(props) => props.width || "auto"};
3690
+ ${(props) => props.borderLeft ? `border-left: ${props.borderLeft};` : ""}
3679
3691
  `;
3680
3692
  var SortingButton = styled33.span`
3681
3693
  display: inline-flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.289",
3
+ "version": "1.0.291",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",