@luscii-healthtech/web-ui 42.4.5 → 42.5.1

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.
@@ -2048,7 +2048,7 @@ function TagIcon({ colorTheme, size }) {
2048
2048
  }
2049
2049
 
2050
2050
  function ChatBubble(props) {
2051
- const { as: Component = "div", children, className, sender: _, timestamp: __, readReceipt, color = "blue", tipPosition } = props, rest = __rest(props, ["as", "children", "className", "sender", "timestamp", "readReceipt", "color", "tipPosition"]);
2051
+ const { as: Component = "div", children, className, sender: _, timestamp: __, readReceipt, color = "blue", tipPosition, footerAccessory } = props, rest = __rest(props, ["as", "children", "className", "sender", "timestamp", "readReceipt", "color", "tipPosition", "footerAccessory"]);
2052
2052
  const isInteractive = (Component === "button" || Component === "a") && !rest.disabled;
2053
2053
  const tipPositionClasses = classNames__default.default({
2054
2054
  "ui:hidden": !tipPosition,
@@ -2071,10 +2071,10 @@ function ChatBubble(props) {
2071
2071
  return jsxRuntime.jsx(Component, Object.assign({}, rest, { className: classNames__default.default("ui:group/chat-bubble ui:text-left", {
2072
2072
  "ui:pl-[16px]": tipPosition === "top-left" || tipPosition === "bottom-left",
2073
2073
  "ui:pr-[16px]": tipPosition === "top-right" || tipPosition === "bottom-right"
2074
- }, transitionClasses, className), children: jsxRuntime.jsxs("div", { className: classNames__default.default("ui:transition-colors ui:duration-150 ui:ease-out", backgroundColorClasses, "ui:relative ui:grid ui:gap-xxs ui:p-m ui:radius-m", {
2074
+ }, transitionClasses, className), children: jsxRuntime.jsxs("div", { className: classNames__default.default("ui:transition-colors ui:duration-150 ui:ease-out", backgroundColorClasses, "ui:relative ui:grid ui:p-m ui:radius-m", {
2075
2075
  "ui:group-hover/chat-bubble:bg-blue-50": isInteractive && color === "blue",
2076
2076
  "ui:group-hover/chat-bubble:bg-slate-50": isInteractive && color === "grey"
2077
- }), children: [jsxRuntime.jsx("div", { className: classNames__default.default(tipColorClasses, tipPositionClasses, transitionClasses, "ui:absolute ui:h-[11px] ui:w-[11px] ui:transform ui:border-11") }), jsxRuntime.jsx(Meta, Object.assign({}, props)), jsxRuntime.jsx(Content$1, { children }), jsxRuntime.jsx("div", { className: "ui:absolute ui:radius-m" }), readReceipt && jsxRuntime.jsx(Text, { variant: "sm", children: readReceipt })] }) }));
2077
+ }), children: [jsxRuntime.jsx("div", { className: classNames__default.default(tipColorClasses, tipPositionClasses, transitionClasses, "ui:absolute ui:h-[11px] ui:w-[11px] ui:transform ui:border-11") }), jsxRuntime.jsx(Meta, Object.assign({}, props)), jsxRuntime.jsxs(Stack, { width: "full", gap: "xxs", children: [jsxRuntime.jsx(Content$1, { children }), readReceipt || footerAccessory ? jsxRuntime.jsxs(Stack, { axis: "x", gap: "xxs", align: "center", divider: jsxRuntime.jsx(Text, { as: "span", color: "on-surface-variant", children: "\u2022" }), children: [readReceipt && jsxRuntime.jsx(Text, { variant: "sm", children: readReceipt }), footerAccessory] }) : null] })] }) }));
2078
2078
  }
2079
2079
  function Meta(props) {
2080
2080
  const { sender, timestamp } = props;
@@ -2095,7 +2095,7 @@ function ChatBubbleText(props) {
2095
2095
  }
2096
2096
  ChatBubble.Text = ChatBubbleText;
2097
2097
  function ChatBubbleDateIndicator(props) {
2098
- return jsxRuntime.jsx("div", { className: "ui:flex ui:justify-center", children: jsxRuntime.jsx(Tag, { colorTheme: "gray", size: "small", children: props.children }) });
2098
+ return jsxRuntime.jsx("div", { className: "ui:flex ui:justify-center", children: jsxRuntime.jsx(Tag, { colorTheme: "gray", size: "small", className: "ui:py-2", children: props.children }) });
2099
2099
  }
2100
2100
  ChatBubble.DateIndicator = ChatBubbleDateIndicator;
2101
2101
 
@@ -5257,9 +5257,9 @@ const VerticalMenu = (props) => {
5257
5257
  const shouldShowCollapseButton = localization && Boolean(onCollapseButtonClick);
5258
5258
  const hasHeaderContent = title || shouldShowCollapseButton;
5259
5259
  const contextValue = React.useMemo(() => ({ variant }), [variant]);
5260
- return jsxRuntime.jsx(context$1.Provider, { value: contextValue, children: jsxRuntime.jsxs(Stack, Object.assign({ as: "div", px: "xxs", py: "m", align: "normal", className: classNames__default.default("ui:max-w-full", {
5260
+ return jsxRuntime.jsx(context$1.Provider, { value: contextValue, children: jsxRuntime.jsxs(Stack, Object.assign({ as: "div", px: "xxs", py: "m", align: "normal", className: classNames__default.default("ui:max-w-full", "ui:max-h-full", {
5261
5261
  [DEFAULT_TEXT_CLASS_NAME]: isCollapsed
5262
- }, className) }, rest, { children: [header && jsxRuntime.jsx("div", { children: header }), jsxRuntime.jsxs(Stack, { axis: "x", gap: "xxs", p: hasHeaderContent ? "m" : void 0, align: "start", justify: "between", width: "full", children: [title && jsxRuntime.jsx(Box, { children: jsxRuntime.jsx(Text, { variant: "lg-strong", children: title }) }), shouldShowCollapseButton && jsxRuntime.jsx(
5262
+ }, className) }, rest, { children: [jsxRuntime.jsxs(Stack, { width: "full", children: [header && jsxRuntime.jsx(Box, { width: "full", children: header }), jsxRuntime.jsxs(Stack, { axis: "x", gap: "xxs", p: hasHeaderContent ? "m" : void 0, align: "start", justify: "between", width: "full", children: [title && jsxRuntime.jsx(Box, { children: jsxRuntime.jsx(Text, { variant: "lg-strong", children: title }) }), shouldShowCollapseButton && jsxRuntime.jsx(
5263
5263
  Box,
5264
5264
  {
5265
5265
  /**
@@ -5284,7 +5284,7 @@ const VerticalMenu = (props) => {
5284
5284
  children: jsxRuntime.jsx(SidebarIcon, {})
5285
5285
  }) })
5286
5286
  }
5287
- )] }), isPrimaryVariant && hasHeaderContent && jsxRuntime.jsx(VerticalMenu.Divider, {}), jsxRuntime.jsx(Stack, { width: "full", gap: isCollapsed ? "xxs" : void 0, children: props.children }), jsxRuntime.jsx("div", { className: "ui:mt-auto", children: footer })] })) });
5287
+ )] })] }), isPrimaryVariant && hasHeaderContent && jsxRuntime.jsx(VerticalMenu.Divider, {}), jsxRuntime.jsx(Stack, { width: "full", className: "ui:flex-1 ui:overflow-y-auto", gap: isCollapsed ? "xxs" : void 0, children: props.children }), jsxRuntime.jsx("div", { className: "ui:mt-auto", children: footer })] })) });
5288
5288
  };
5289
5289
  VerticalMenu.Divider = MenuDivider;
5290
5290
  VerticalMenu.Item = MenuItem;