@luscii-healthtech/web-ui 35.3.1 → 35.3.2

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.
@@ -22,6 +22,7 @@ export type Props<C extends React.ElementType> = React.ComponentPropsWithoutRef<
22
22
  * Check {@link SIZES} for reference.
23
23
  */
24
24
  borderRadius?: keyof typeof SIZES;
25
+ hoverBackgroundColor?: BackgroundColor;
25
26
  cursor?: CursorOption;
26
27
  };
27
28
  export declare const Box: <C extends React.ElementType = "div">(props: Props<C>) => React.JSX.Element;
@@ -1472,10 +1472,18 @@ const Box = (props) => {
1472
1472
  "ui-bg-slate-100": props.backgroundColor === "base",
1473
1473
  "ui-bg-blue-50": props.backgroundColor === "blue",
1474
1474
  "ui-bg-red-50": props.backgroundColor === "red",
1475
- " ui-bg-green-50": props.backgroundColor === "green",
1476
- " ui-bg-amber-50": props.backgroundColor === "amber",
1475
+ "ui-bg-green-50": props.backgroundColor === "green",
1476
+ "ui-bg-amber-50": props.backgroundColor === "amber",
1477
1477
  [`ui-w-${width}`]: width && width !== "full",
1478
1478
  "ui-w-full": width === "full"
1479
+ }, {
1480
+ "hover:ui-bg-slate-100": props.hoverBackgroundColor === "base",
1481
+ "hover:ui-bg-blue-50": props.hoverBackgroundColor === "blue",
1482
+ "hover:ui-bg-red-50": props.hoverBackgroundColor === "red",
1483
+ "hover:ui-bg-green-50": props.hoverBackgroundColor === "green",
1484
+ "hover:ui-bg-amber-50": props.hoverBackgroundColor === "amber"
1485
+ }, {
1486
+ "ui-transition-colors motion-reduce:ui-transition-none": props.hoverBackgroundColor !== void 0
1479
1487
  }, {
1480
1488
  "ui-cursor-auto": props.cursor === "auto",
1481
1489
  "ui-cursor-default": props.cursor === "default",