@luscii-healthtech/web-ui 35.2.1 → 35.3.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.
- package/dist/components/Box/Box.d.ts +2 -1
- package/dist/index.development.js +13 -0
- 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 -0
- package/dist/web-ui-tailwind.css +24 -0
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { SIZES } from "../../system/Sizes";
|
|
3
3
|
import { ELEVATION } from "../../system/Elevation";
|
|
4
|
-
import { BackgroundColor } from "../../types/general.types";
|
|
4
|
+
import { BackgroundColor, CursorOption } from "../../types/general.types";
|
|
5
5
|
type Size = keyof typeof SIZES;
|
|
6
6
|
declare const spacingKeys: readonly ["p", "pt", "pr", "pb", "pl", "px", "py", "m", "mt", "mr", "mb", "ml", "mx", "my"];
|
|
7
7
|
type SpacingProps = Partial<Record<(typeof spacingKeys)[number], Size>>;
|
|
@@ -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
|
+
cursor?: CursorOption;
|
|
25
26
|
};
|
|
26
27
|
export declare const Box: <C extends React.ElementType = "div">(props: Props<C>) => React.JSX.Element;
|
|
27
28
|
export {};
|
|
@@ -1475,6 +1475,19 @@ const Box = (props) => {
|
|
|
1475
1475
|
" ui-bg-amber-50": props.backgroundColor === "amber",
|
|
1476
1476
|
[`ui-w-${width}`]: width && width !== "full",
|
|
1477
1477
|
"ui-w-full": width === "full"
|
|
1478
|
+
}, {
|
|
1479
|
+
"ui-cursor-auto": props.cursor === "auto",
|
|
1480
|
+
"ui-cursor-default": props.cursor === "default",
|
|
1481
|
+
"ui-cursor-pointer": props.cursor === "pointer",
|
|
1482
|
+
"ui-cursor-wait": props.cursor === "wait",
|
|
1483
|
+
"ui-cursor-move": props.cursor === "move",
|
|
1484
|
+
"ui-cursor-help": props.cursor === "help",
|
|
1485
|
+
"ui-cursor-not-allowed": props.cursor === "not-allowed",
|
|
1486
|
+
"ui-cursor-progress": props.cursor === "progress",
|
|
1487
|
+
"ui-cursor-copy": props.cursor === "copy",
|
|
1488
|
+
"ui-cursor-no-drop": props.cursor === "no-drop",
|
|
1489
|
+
"ui-cursor-grab": props.cursor === "grab",
|
|
1490
|
+
"ui-cursor-grabbing": props.cursor === "grabbing"
|
|
1478
1491
|
}, className, shadowClassName, borderRadiusClassName) }, attributesWithoutSpacingKeys));
|
|
1479
1492
|
};
|
|
1480
1493
|
|