@luscii-healthtech/web-ui 28.12.0 → 28.12.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/Image/Image.d.ts +1 -0
- package/dist/index.development.js +8 -7
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/web-ui-tailwind.css +4 -4
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ type Props = {
|
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
onClick?: MouseEventHandler<HTMLSpanElement>;
|
|
8
8
|
showIconOnFailure?: boolean;
|
|
9
|
+
wrapperClassName?: string;
|
|
9
10
|
} & ComponentProps<typeof LazyLoadImage> & LazyComponentProps;
|
|
10
11
|
/**
|
|
11
12
|
* When you have many elements to lazy load in the same page, you might get poor performance because each one is
|
|
@@ -1283,7 +1283,7 @@ const DragHandle = React.forwardRef((_a, ref) => {
|
|
|
1283
1283
|
var img$i = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3e%3cpath d='M18 16V2C18 0.9 17.1 0 16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16ZM5.9 10.98L8 13.51L11.1 9.52C11.3 9.26 11.7 9.26 11.9 9.53L15.41 14.21C15.66 14.54 15.42 15.01 15.01 15.01H3.02C2.6 15.01 2.37 14.53 2.63 14.2L5.12 11C5.31 10.74 5.69 10.73 5.9 10.98Z' fill='%23D1D5DB'/%3e%3c/svg%3e";
|
|
1284
1284
|
|
|
1285
1285
|
const Image$1 = (_a) => {
|
|
1286
|
-
var { src, className, children = null, onClick, showIconOnFailure = true } = _a, otherProps = __rest(_a, ["src", "className", "children", "onClick", "showIconOnFailure"]);
|
|
1286
|
+
var { src, className, children = null, onClick, showIconOnFailure = true, wrapperClassName } = _a, otherProps = __rest(_a, ["src", "className", "children", "onClick", "showIconOnFailure", "wrapperClassName"]);
|
|
1287
1287
|
const [isError, setIsError] = React.useState(false);
|
|
1288
1288
|
if (!src || isError) {
|
|
1289
1289
|
if (children) {
|
|
@@ -1297,7 +1297,7 @@ const Image$1 = (_a) => {
|
|
|
1297
1297
|
"div",
|
|
1298
1298
|
{ className: "ui-flex ui-h-full ui-w-full ui-flex-row ui-items-center ui-justify-center ui-rounded" },
|
|
1299
1299
|
React__namespace.default.createElement("img", { src: img$i, alt: "image-icon" })
|
|
1300
|
-
), src, onClick, onError: () => setIsError(true), wrapperClassName
|
|
1300
|
+
), src, onClick, onError: () => setIsError(true), wrapperClassName }, otherProps));
|
|
1301
1301
|
};
|
|
1302
1302
|
var Image$2 = reactLazyLoadImageComponent.trackWindowScroll(Image$1);
|
|
1303
1303
|
|
|
@@ -5411,10 +5411,11 @@ const ImagePickerInner = ({
|
|
|
5411
5411
|
"ui-h-44 ui-w-full": !isTypeCompact
|
|
5412
5412
|
}) },
|
|
5413
5413
|
isUploading && React__namespace.default.createElement(LoadingIndicator, { className: "ui-my-16" }),
|
|
5414
|
-
!isUploading && selectedMediaType === "image" && React__namespace.default.createElement(Image$2, { className: classNames__default.default("ui-h-full", {
|
|
5415
|
-
"ui-
|
|
5416
|
-
|
|
5417
|
-
|
|
5414
|
+
!isUploading && selectedMediaType === "image" && React__namespace.default.createElement(Image$2, { className: classNames__default.default("ui-h-full ui-w-full", {
|
|
5415
|
+
"ui-rounded ui-bg-secondary ui-object-contain ui-p-3": !isTypeCompact
|
|
5416
|
+
}), src: selectedMedia, wrapperClassName: classNames__default.default({
|
|
5417
|
+
"ui-w-full ui-h-full": !isTypeCompact
|
|
5418
|
+
}) }),
|
|
5418
5419
|
!isUploading && !isErrorUploading && selectedMediaType === "video" && React__namespace.default.createElement("video", { className: classNames__default.default("ui-h-full", {
|
|
5419
5420
|
"ui-w-full ui-rounded ui-bg-secondary ui-object-contain ui-p-3": !isTypeCompact,
|
|
5420
5421
|
"ui-w-full": isTypeCompact
|
|
@@ -5793,7 +5794,7 @@ VerticalMenu.ItemText = MenuItemText;
|
|
|
5793
5794
|
VerticalMenu.ItemPadding = MenuItemPadding;
|
|
5794
5795
|
VerticalMenu.NotificationBubble = MenuItemNotificationBubble;
|
|
5795
5796
|
function MenuItemText(props) {
|
|
5796
|
-
return React__namespace.default.createElement(Text, Object.assign({ color: "current", variant: "strong" }, props, { className: classNames__default.default("ui-leading-[24px]", props.className) }));
|
|
5797
|
+
return React__namespace.default.createElement(Text, Object.assign({ color: "current", variant: "strong" }, props, { className: classNames__default.default("sm:ui-leading-[24px]", props.className) }));
|
|
5797
5798
|
}
|
|
5798
5799
|
const getClassName = ({ isActive = false, classNameProp = "" } = {}) => classNames__default.default(
|
|
5799
5800
|
// Base
|