@sarunyu/system-one 4.0.1 → 4.0.3

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.cjs CHANGED
@@ -3168,7 +3168,7 @@ const Input = React.forwardRef(function Input2({
3168
3168
  "div",
3169
3169
  {
3170
3170
  className: cn(
3171
- "relative rounded-lg",
3171
+ "relative rounded-lg min-h-[48px]",
3172
3172
  padding,
3173
3173
  bg,
3174
3174
  containerFlex
@@ -3976,7 +3976,7 @@ const TableCell = React.forwardRef(function TableCell2({
3976
3976
  textStyle = "default",
3977
3977
  selected,
3978
3978
  hovered,
3979
- label = "Text label",
3979
+ label,
3980
3980
  description = "Text Description",
3981
3981
  imageSrc,
3982
3982
  tagText = "Tag",
@@ -3987,6 +3987,7 @@ const TableCell = React.forwardRef(function TableCell2({
3987
3987
  fixedOffset = 0,
3988
3988
  fixedShadow,
3989
3989
  style: styleProp,
3990
+ children,
3990
3991
  ...props
3991
3992
  }, ref) {
3992
3993
  const { hasLeftOverflow, hasRightOverflow } = React.useContext(TableScrollShadowContext);
@@ -4001,6 +4002,7 @@ const TableCell = React.forwardRef(function TableCell2({
4001
4002
  const fixedStyle = fixed === "left" ? { left: fixedOffset } : fixed === "right" ? { right: fixedOffset } : void 0;
4002
4003
  const shadowDirection = resolveStickyShadowDirection(fixed, fixedShadow);
4003
4004
  const shouldShowShadow = shadowDirection === "right" ? hasLeftOverflow : shadowDirection === "left" ? hasRightOverflow : false;
4005
+ const primaryContent = children ?? label ?? "Text label";
4004
4006
  return /* @__PURE__ */ jsxRuntime.jsxs(
4005
4007
  "td",
4006
4008
  {
@@ -4018,13 +4020,13 @@ const TableCell = React.forwardRef(function TableCell2({
4018
4020
  children: [
4019
4021
  shadowDirection && shouldShowShadow && /* @__PURE__ */ jsxRuntime.jsx(StickyShadowEdge, { direction: shadowDirection }),
4020
4022
  type === "default" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-col", children: [
4021
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("text-sm leading-5", primaryTextClass), children: label }),
4023
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("text-sm leading-5", primaryTextClass), children: primaryContent }),
4022
4024
  hasDescription && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs leading-4 font-normal text-subtle-text", children: description })
4023
4025
  ] }),
4024
4026
  type === "text-icon" && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
4025
4027
  icon ?? /* @__PURE__ */ jsxRuntime.jsx(react.Circle, { size: iconSize, weight: "regular", className: "shrink-0 text-subtle-text" }),
4026
4028
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-col", children: [
4027
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("text-sm leading-5", primaryTextClass), children: label }),
4029
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("text-sm leading-5", primaryTextClass), children: primaryContent }),
4028
4030
  hasDescription && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs leading-4 font-normal text-subtle-text", children: description })
4029
4031
  ] })
4030
4032
  ] }),
@@ -4038,7 +4040,7 @@ const TableCell = React.forwardRef(function TableCell2({
4038
4040
  }
4039
4041
  ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "size-full bg-hover-bg" }) }),
4040
4042
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-col", children: [
4041
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("text-sm leading-5", primaryTextClass), children: label }),
4043
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn("text-sm leading-5", primaryTextClass), children: primaryContent }),
4042
4044
  hasDescription && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs leading-4 font-normal text-subtle-text", children: description })
4043
4045
  ] })
4044
4046
  ] }),