@luscii-healthtech/web-ui 28.5.4 → 28.6.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.
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.d.ts +9 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.development.js +18 -2
- 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 +14 -5
- 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
|
interface BadgeProps {
|
|
3
3
|
badgeCount: number;
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
6
|
-
declare const Badge: (props: BadgeProps) => JSX.Element;
|
|
6
|
+
declare const Badge: (props: BadgeProps) => React.JSX.Element;
|
|
7
7
|
export default Badge;
|
package/dist/index.d.ts
CHANGED
|
@@ -101,3 +101,4 @@ export { StyledUnorderedList } from "./components/StyledLists/StyledUnorderedLis
|
|
|
101
101
|
export { StyledOrderedList } from "./components/StyledLists/StyledOrderedList";
|
|
102
102
|
export { HoverIndicatorControl } from "./components/HoverIndicatorControl/HoverIndicatorControl";
|
|
103
103
|
export { Collapse } from "./components/Collapse/Collapse";
|
|
104
|
+
export { Skeleton } from "./components/Skeleton/Skeleton";
|
|
@@ -109,6 +109,10 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
function __makeTemplateObject(cooked, raw) {
|
|
113
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
114
|
+
return cooked;
|
|
115
|
+
}
|
|
112
116
|
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
113
117
|
var e = new Error(message);
|
|
114
118
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
@@ -2379,11 +2383,11 @@ const Badge = (props) => {
|
|
|
2379
2383
|
"ui-h-6",
|
|
2380
2384
|
"ui-min-w-24",
|
|
2381
2385
|
"ui-px-2",
|
|
2382
|
-
"ui-bg-
|
|
2386
|
+
"ui-bg-primary-background"
|
|
2383
2387
|
], props.className);
|
|
2384
2388
|
const textClasses = classNames__default.default([
|
|
2385
2389
|
"ui-text-xs",
|
|
2386
|
-
"ui-text-
|
|
2390
|
+
"ui-text-primary",
|
|
2387
2391
|
"ui-leading-none"
|
|
2388
2392
|
]);
|
|
2389
2393
|
return React__namespace.default.createElement(
|
|
@@ -6291,6 +6295,17 @@ const Collapse = (props) => {
|
|
|
6291
6295
|
);
|
|
6292
6296
|
};
|
|
6293
6297
|
|
|
6298
|
+
const Skeleton = ({ width, height, variant = "text", children }) => {
|
|
6299
|
+
const base = `ui-bg-slate-300 ui-animate-pulse ui-block ${String.raw(templateObject_1 || (templateObject_1 = __makeTemplateObject([void 0], ["before:ui-content-['\\00a0']"])))}`;
|
|
6300
|
+
const className = classNames__default.default(base, {
|
|
6301
|
+
"ui-rounded": variant === "rounded" || variant === "text",
|
|
6302
|
+
"ui-rounded-full": variant === "circular",
|
|
6303
|
+
"ui-scale-y-75 ui-origin-[0_55%] ui-height-auto": variant === "text"
|
|
6304
|
+
});
|
|
6305
|
+
return React__namespace.default.createElement("span", { className, style: { width, height } }, children);
|
|
6306
|
+
};
|
|
6307
|
+
var templateObject_1;
|
|
6308
|
+
|
|
6294
6309
|
Object.defineProperty(exports, 'Toaster', {
|
|
6295
6310
|
enumerable: true,
|
|
6296
6311
|
get: function () { return sonner.Toaster; }
|
|
@@ -6451,6 +6466,7 @@ exports.Select = Select;
|
|
|
6451
6466
|
exports.SettingsIcon = CogwheelIcon;
|
|
6452
6467
|
exports.SettingsMenuButton = SettingsMenuButton;
|
|
6453
6468
|
exports.ShareIcon = ShareIcon;
|
|
6469
|
+
exports.Skeleton = Skeleton;
|
|
6454
6470
|
exports.SmallCircleIcon = SmallCircleIcon;
|
|
6455
6471
|
exports.SmallDiamondIcon = SmallDiamondIcon;
|
|
6456
6472
|
exports.SmallSquareIcon = SmallSquareIcon;
|