@luscii-healthtech/web-ui 52.4.0 → 52.5.0

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.
@@ -3035,8 +3035,8 @@ function Card(props) {
3035
3035
  modifier: "hover",
3036
3036
  transition: true
3037
3037
  });
3038
- const outerClasses = classNames__default.default("ui:bg-white", "ui:transition-colors ui:duration-300", className, hoverShadowClassName, "ui:transition-shadow ui:duration-300");
3039
- const innerClasses = classNames__default.default("ui:bg-white ui:rounded-inherit ui:border ui:border-transparent ui:transition[border-color] ui:duration-300 ui:motion-reduce:duration-[0ms]! ui:overflow-hidden", "ui:relative", "ui:before:contain-strict ui:before:transition[transform, opacity] ui:before:delay-50 ui:before:duration-150 ui:before:motion-reduce:duration-[0ms]!", "ui:before:origin-left ui:before:absolute ui:before:left-0 ui:before:content-[''] ui:before:inset-y-0 ui:before:ease-in-out", {
3038
+ const outerClasses = classNames__default.default("ui:transition-colors ui:duration-300", className, hoverShadowClassName, "ui:transition-shadow ui:duration-300");
3039
+ const innerClasses = classNames__default.default("ui:rounded-inherit ui:border ui:border-transparent ui:transition[border-color] ui:duration-300 ui:motion-reduce:duration-[0ms]! ui:overflow-hidden", "ui:relative", "ui:before:contain-strict ui:before:transition[transform, opacity] ui:before:delay-50 ui:before:duration-150 ui:before:motion-reduce:duration-[0ms]!", "ui:before:origin-left ui:before:absolute ui:before:left-0 ui:before:content-[''] ui:before:inset-y-0 ui:before:ease-in-out", {
3040
3040
  "ui:border-slate-300": border || highlighted,
3041
3041
  "ui:hover:border-slate-400": hasHoverEffect,
3042
3042
  "ui:before:opacity-0 ui:before:scale-x-0": !highlighted,
@@ -3050,7 +3050,7 @@ function Card(props) {
3050
3050
  "ui:before:w-m": ["m", "l", "xl", "xxl"].includes(borderRadius)
3051
3051
  // We cap at `ui:before:w-m` otherwise the bar overlaps the contents of the Card.
3052
3052
  });
3053
- return jsxRuntime.jsx(Box, Object.assign({ as: Element, elevation: highlighted && !elevation ? "large" : elevation, borderRadius }, rest, { className: outerClasses, children: jsxRuntime.jsxs(Box, { className: innerClasses, children: [jsxRuntime.jsx(RenderTopBar, Object.assign({}, props)), padding ? jsxRuntime.jsx(Padding$1, { children }) : children] }) }));
3053
+ return jsxRuntime.jsx(Box, Object.assign({ as: Element, elevation: highlighted && !elevation ? "large" : elevation, borderRadius, className: outerClasses, backgroundColor: "surface" }, rest, { children: jsxRuntime.jsxs(Box, { className: innerClasses, children: [jsxRuntime.jsx(RenderTopBar, Object.assign({}, props)), padding ? jsxRuntime.jsx(Padding$1, { children }) : children] }) }));
3054
3054
  }
3055
3055
  Card.Title = (props) => jsxRuntime.jsx(Title, Object.assign({ variant: "sm" }, props));
3056
3056
  Card.TopBar = TopBar;
@@ -3095,12 +3095,37 @@ const TabsRoot = React__namespace.forwardRef((props, ref) => jsxRuntime.jsx(Tabs
3095
3095
  TabsRoot.displayName = "Tabs.Root";
3096
3096
  const TabsList = React__namespace.forwardRef((_a, ref) => {
3097
3097
  var { className } = _a, props = __rest(_a, ["className"]);
3098
- return jsxRuntime.jsx(TabsPrimitive__namespace.List, Object.assign({ ref, className: cn("ui:inline-flex ui:items-center ui:justify-center ui:gap-(--ui-spacing-xl)", className) }, props));
3098
+ return jsxRuntime.jsx(TabsPrimitive__namespace.List, Object.assign({ ref, className: cn(
3099
+ // `items-stretch` lets the tallest trigger drive the row height
3100
+ // so every trigger — with or without an adornment (Badge,
3101
+ // spinner, …) — shares the same content-box. This keeps the
3102
+ // underline flush across the row and any sibling `<hr>` aligned
3103
+ // with every trigger's bottom edge.
3104
+ "ui:inline-flex ui:items-stretch ui:justify-center ui:gap-(--ui-spacing-xl)",
3105
+ className
3106
+ ) }, props));
3099
3107
  });
3100
3108
  TabsList.displayName = "Tabs.List";
3101
3109
  const TabsTrigger = React__namespace.forwardRef((_a, ref) => {
3102
3110
  var { className } = _a, props = __rest(_a, ["className"]);
3103
- return jsxRuntime.jsx(TabsPrimitive__namespace.Trigger, Object.assign({ ref, className: cn("ui:transition-all", "ui:hover:text-primary", "ui:disabled:pointer-events-none ui:disabled:opacity-50", "ui:border-b-2 ui:border-transparent", "ui:data-[state=active]:text-primary ui:data-[state=active]:border-primary", "ui:py-(--ui-spacing-m)", className) }, props));
3111
+ return jsxRuntime.jsx(TabsPrimitive__namespace.Trigger, Object.assign({ ref, className: cn(
3112
+ // Use an inline-flex context so the label and any adornments
3113
+ // (Badge, LoadingIndicator, etc.) align by flex cross-axis
3114
+ // centering rather than by text baseline. Without this the
3115
+ // trigger falls back to inline layout, where atomic inline
3116
+ // adornments with `vertical-align: baseline` grow the line-box
3117
+ // and make triggers with adornments taller than plain-text ones.
3118
+ // Row-wide height equalization is handled by `Tabs.List` via
3119
+ // `items-stretch` — this trigger only centers its own children.
3120
+ "ui:inline-flex ui:items-center",
3121
+ "ui:transition-all",
3122
+ "ui:hover:text-primary",
3123
+ "ui:disabled:pointer-events-none ui:disabled:opacity-50",
3124
+ "ui:border-b-2 ui:border-transparent",
3125
+ "ui:data-[state=active]:text-primary ui:data-[state=active]:border-primary",
3126
+ "ui:py-(--ui-spacing-m)",
3127
+ className
3128
+ ) }, props));
3104
3129
  });
3105
3130
  TabsTrigger.displayName = "Tabs.Trigger";
3106
3131
  const TabsContent = React__namespace.forwardRef((_a, ref) => {