virtual-ui-lib 1.0.44 → 1.0.46
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/index.js +29 -0
- package/dist/index.mjs +27 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31,8 +31,10 @@ var index_exports = {};
|
|
|
31
31
|
__export(index_exports, {
|
|
32
32
|
CodeBlock: () => CodeBlock,
|
|
33
33
|
CustomInputField: () => CustomInputField,
|
|
34
|
+
LoadingSpinner: () => LoadingSpinner,
|
|
34
35
|
OtpInput: () => OtpInput,
|
|
35
36
|
SearchBar: () => SearchBar,
|
|
37
|
+
SkeletonLoader: () => SkeletonLoader,
|
|
36
38
|
SmartButton: () => SmartButton,
|
|
37
39
|
StatCard: () => StatCard,
|
|
38
40
|
TextArea: () => TextArea,
|
|
@@ -467,12 +469,39 @@ var SearchBar = ({
|
|
|
467
469
|
onChange(suggestion);
|
|
468
470
|
} }, suggestion))));
|
|
469
471
|
};
|
|
472
|
+
|
|
473
|
+
// src/components/LoadingSpinner/LoadingSpinner.jsx
|
|
474
|
+
var import_react9 = __toESM(require("react"));
|
|
475
|
+
var LoadingSpinner = ({ size = "40px", color = "#7c3aed", speed = "1s" }) => {
|
|
476
|
+
return /* @__PURE__ */ import_react9.default.createElement("div", { style: { border: `4px solid ${color}`, borderTop: `4px solid transparent`, borderRadius: "50%", width: size, height: size, animation: `spin ${speed} linear infinite` } });
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
// src/components/SkeletonLoader/SkeletonLoader.jsx
|
|
480
|
+
var import_react10 = __toESM(require("react"));
|
|
481
|
+
var SkeletonLoader = ({ width = "100%", height = "20px", bg = "#1e293b", accent = "#7c3aed", radius = "12px", padding = "0" }) => {
|
|
482
|
+
const shimmerStyle = {
|
|
483
|
+
background: `linear-gradient(90deg, ${accent} 25%, ${bg} 50%, ${accent} 75%)`,
|
|
484
|
+
backgroundSize: "200% 100%",
|
|
485
|
+
animation: "shimmer 1.5s infinite",
|
|
486
|
+
borderRadius: radius
|
|
487
|
+
};
|
|
488
|
+
return /* @__PURE__ */ import_react10.default.createElement("div", { style: { padding } }, /* @__PURE__ */ import_react10.default.createElement("div", { style: { ...shimmerStyle, width, height, marginBottom: "10px" } }), /* @__PURE__ */ import_react10.default.createElement("div", { style: { ...shimmerStyle, width, height, marginBottom: "10px" } }), /* @__PURE__ */ import_react10.default.createElement("div", { style: { ...shimmerStyle, width, height } }), /* @__PURE__ */ import_react10.default.createElement("style", null, `@keyframes shimmer {
|
|
489
|
+
0% {
|
|
490
|
+
background-position: 200% 0;
|
|
491
|
+
}
|
|
492
|
+
100% {
|
|
493
|
+
background-position: 0 0;
|
|
494
|
+
}
|
|
495
|
+
}`));
|
|
496
|
+
};
|
|
470
497
|
// Annotate the CommonJS export names for ESM import in node:
|
|
471
498
|
0 && (module.exports = {
|
|
472
499
|
CodeBlock,
|
|
473
500
|
CustomInputField,
|
|
501
|
+
LoadingSpinner,
|
|
474
502
|
OtpInput,
|
|
475
503
|
SearchBar,
|
|
504
|
+
SkeletonLoader,
|
|
476
505
|
SmartButton,
|
|
477
506
|
StatCard,
|
|
478
507
|
TextArea,
|
package/dist/index.mjs
CHANGED
|
@@ -425,11 +425,38 @@ var SearchBar = ({
|
|
|
425
425
|
onChange(suggestion);
|
|
426
426
|
} }, suggestion))));
|
|
427
427
|
};
|
|
428
|
+
|
|
429
|
+
// src/components/LoadingSpinner/LoadingSpinner.jsx
|
|
430
|
+
import React9 from "react";
|
|
431
|
+
var LoadingSpinner = ({ size = "40px", color = "#7c3aed", speed = "1s" }) => {
|
|
432
|
+
return /* @__PURE__ */ React9.createElement("div", { style: { border: `4px solid ${color}`, borderTop: `4px solid transparent`, borderRadius: "50%", width: size, height: size, animation: `spin ${speed} linear infinite` } });
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
// src/components/SkeletonLoader/SkeletonLoader.jsx
|
|
436
|
+
import React10 from "react";
|
|
437
|
+
var SkeletonLoader = ({ width = "100%", height = "20px", bg = "#1e293b", accent = "#7c3aed", radius = "12px", padding = "0" }) => {
|
|
438
|
+
const shimmerStyle = {
|
|
439
|
+
background: `linear-gradient(90deg, ${accent} 25%, ${bg} 50%, ${accent} 75%)`,
|
|
440
|
+
backgroundSize: "200% 100%",
|
|
441
|
+
animation: "shimmer 1.5s infinite",
|
|
442
|
+
borderRadius: radius
|
|
443
|
+
};
|
|
444
|
+
return /* @__PURE__ */ React10.createElement("div", { style: { padding } }, /* @__PURE__ */ React10.createElement("div", { style: { ...shimmerStyle, width, height, marginBottom: "10px" } }), /* @__PURE__ */ React10.createElement("div", { style: { ...shimmerStyle, width, height, marginBottom: "10px" } }), /* @__PURE__ */ React10.createElement("div", { style: { ...shimmerStyle, width, height } }), /* @__PURE__ */ React10.createElement("style", null, `@keyframes shimmer {
|
|
445
|
+
0% {
|
|
446
|
+
background-position: 200% 0;
|
|
447
|
+
}
|
|
448
|
+
100% {
|
|
449
|
+
background-position: 0 0;
|
|
450
|
+
}
|
|
451
|
+
}`));
|
|
452
|
+
};
|
|
428
453
|
export {
|
|
429
454
|
CodeBlock,
|
|
430
455
|
CustomInputField,
|
|
456
|
+
LoadingSpinner,
|
|
431
457
|
OtpInput,
|
|
432
458
|
SearchBar,
|
|
459
|
+
SkeletonLoader,
|
|
433
460
|
SmartButton,
|
|
434
461
|
StatCard,
|
|
435
462
|
TextArea,
|