singularity-components 0.1.91 → 0.1.92
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/main.cjs +69 -9
- package/dist/main.cjs.map +1 -1
- package/dist/main.css +66 -0
- package/dist/main.css.map +1 -1
- package/dist/main.d.cts +4 -3
- package/dist/main.d.ts +4 -3
- package/dist/main.js +69 -9
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -8,7 +8,6 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
8
8
|
var classVarianceAuthority = require('class-variance-authority');
|
|
9
9
|
var reactSlot = require('@radix-ui/react-slot');
|
|
10
10
|
var SeparatorPrimitive = require('@radix-ui/react-separator');
|
|
11
|
-
var reactSpinners = require('react-spinners');
|
|
12
11
|
|
|
13
12
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
13
|
|
|
@@ -20418,14 +20417,75 @@ function Skeleton({ className, ...props }) {
|
|
|
20418
20417
|
}
|
|
20419
20418
|
);
|
|
20420
20419
|
}
|
|
20421
|
-
|
|
20422
|
-
|
|
20423
|
-
|
|
20424
|
-
|
|
20425
|
-
|
|
20426
|
-
|
|
20427
|
-
|
|
20428
|
-
|
|
20420
|
+
var sizeMap = {
|
|
20421
|
+
xs: "sg:h-4 sg:w-4",
|
|
20422
|
+
sm: "sg:h-5 sg:w-5",
|
|
20423
|
+
md: "sg:h-8 sg:w-8",
|
|
20424
|
+
lg: "sg:h-12 sg:w-12"
|
|
20425
|
+
};
|
|
20426
|
+
function Spinner({ variant = "ring", size = "md", className }) {
|
|
20427
|
+
if (variant === "dots") {
|
|
20428
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
20429
|
+
"span",
|
|
20430
|
+
{
|
|
20431
|
+
className: cn("sg:inline-flex sg:items-center sg:gap-1", className),
|
|
20432
|
+
"aria-label": "Loading",
|
|
20433
|
+
children: [
|
|
20434
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
20435
|
+
"span",
|
|
20436
|
+
{
|
|
20437
|
+
className: cn(
|
|
20438
|
+
"sg:size-2 sg:rounded-full sg:bg-[var(--sg-pink)] sg:animate-pulse",
|
|
20439
|
+
"[animation-delay:-200ms]"
|
|
20440
|
+
)
|
|
20441
|
+
}
|
|
20442
|
+
),
|
|
20443
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
20444
|
+
"span",
|
|
20445
|
+
{
|
|
20446
|
+
className: cn(
|
|
20447
|
+
"sg:size-2 sg:rounded-full sg:bg-[var(--sg-primary)] sg:animate-pulse",
|
|
20448
|
+
"[animation-delay:-100ms]"
|
|
20449
|
+
)
|
|
20450
|
+
}
|
|
20451
|
+
),
|
|
20452
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
20453
|
+
"span",
|
|
20454
|
+
{
|
|
20455
|
+
className: cn(
|
|
20456
|
+
"sg:size-2 sg:rounded-full sg:bg-primary sg:animate-pulse"
|
|
20457
|
+
)
|
|
20458
|
+
}
|
|
20459
|
+
)
|
|
20460
|
+
]
|
|
20461
|
+
}
|
|
20462
|
+
);
|
|
20463
|
+
}
|
|
20464
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
20465
|
+
"span",
|
|
20466
|
+
{
|
|
20467
|
+
role: "status",
|
|
20468
|
+
"aria-label": "Loading",
|
|
20469
|
+
className: cn(
|
|
20470
|
+
"sg:relative sg:inline-block sg:align-[-0.125em]",
|
|
20471
|
+
sizeMap[size],
|
|
20472
|
+
className
|
|
20473
|
+
),
|
|
20474
|
+
children: [
|
|
20475
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
20476
|
+
"span",
|
|
20477
|
+
{
|
|
20478
|
+
className: cn(
|
|
20479
|
+
"sg:absolute sg:inset-0 sg:animate-spin sg:rounded-full",
|
|
20480
|
+
"sg:bg-[conic-gradient(var(--sg-pink),var(--sg-primary),var(--sg-primary),var(--sg-pink))]",
|
|
20481
|
+
"sg:[mask:radial-gradient(farthest-side,transparent_62%,black_63%)]"
|
|
20482
|
+
)
|
|
20483
|
+
}
|
|
20484
|
+
),
|
|
20485
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sg:absolute sg:inset-[18%] sg:rounded-full sg:bg-background" })
|
|
20486
|
+
]
|
|
20487
|
+
}
|
|
20488
|
+
);
|
|
20429
20489
|
}
|
|
20430
20490
|
var stackVariants = classVarianceAuthority.cva("sg:flex sg:flex-col", {
|
|
20431
20491
|
variants: {
|