@luscii-healthtech/web-ui 28.5.4 → 28.6.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.
@@ -0,0 +1,9 @@
1
+ import { type ReactNode, type FC } from "react";
2
+ type Props = {
3
+ width?: number;
4
+ height?: number;
5
+ variant?: "rounded" | "rectangular" | "circular" | "text";
6
+ children?: ReactNode;
7
+ };
8
+ export declare const Skeleton: FC<Props>;
9
+ export {};
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;
@@ -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;