@luscii-healthtech/web-ui 35.3.0 → 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.
- package/dist/components/Box/Box.d.ts +1 -0
- package/dist/index.development.js +11 -2
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/general.types.d.ts +1 -1
- package/dist/web-ui-tailwind.css +26 -0
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -1468,13 +1468,22 @@ const Box = (props) => {
|
|
|
1468
1468
|
const borderRadiusClassName = createRadiusClassName(borderRadius);
|
|
1469
1469
|
const attributesWithoutSpacingKeys = omit__default.default(attributes, spacingKeys);
|
|
1470
1470
|
return React__namespace.default.createElement(Element, Object.assign({ className: classNames__default.default(spacingClasses, {
|
|
1471
|
+
"ui-bg-surface": props.backgroundColor === "surface",
|
|
1471
1472
|
"ui-bg-slate-100": props.backgroundColor === "base",
|
|
1472
1473
|
"ui-bg-blue-50": props.backgroundColor === "blue",
|
|
1473
1474
|
"ui-bg-red-50": props.backgroundColor === "red",
|
|
1474
|
-
"
|
|
1475
|
-
"
|
|
1475
|
+
"ui-bg-green-50": props.backgroundColor === "green",
|
|
1476
|
+
"ui-bg-amber-50": props.backgroundColor === "amber",
|
|
1476
1477
|
[`ui-w-${width}`]: width && width !== "full",
|
|
1477
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
|
|
1478
1487
|
}, {
|
|
1479
1488
|
"ui-cursor-auto": props.cursor === "auto",
|
|
1480
1489
|
"ui-cursor-default": props.cursor === "default",
|