laif-ds 0.2.43 → 0.2.44

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.
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
3
- import { __require as e } from "../node_modules/style-to-js/cjs/index.js";
4
- var t = e();
5
- const a = /* @__PURE__ */ r(t);
2
+ import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
3
+ import { __require as r } from "../node_modules/extend/index.js";
4
+ var t = r();
5
+ const x = /* @__PURE__ */ e(t);
6
6
  export {
7
- a as default
7
+ x as default
8
8
  };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { getDefaultExportFromCjs as e } from "./_commonjsHelpers.js";
3
- import { __require as r } from "../node_modules/extend/index.js";
4
- var t = r();
5
- const x = /* @__PURE__ */ e(t);
2
+ import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
3
+ import { __require as e } from "../node_modules/style-to-js/cjs/index.js";
4
+ var t = e();
5
+ const a = /* @__PURE__ */ r(t);
6
6
  export {
7
- x as default
7
+ a as default
8
8
  };
@@ -0,0 +1,67 @@
1
+ "use client";
2
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
3
+ import { cn as i } from "../../lib/utils.js";
4
+ import { cva as c } from "../../node_modules/class-variance-authority/dist/index.js";
5
+ const l = {
6
+ xxs: 12,
7
+ xs: 14,
8
+ sm: 16,
9
+ md: 20,
10
+ lg: 24,
11
+ xl: 28,
12
+ xxl: 36
13
+ }, d = c("animate-spin", {
14
+ variants: {
15
+ variant: {
16
+ default: "text-d-foreground",
17
+ destructive: "text-d-destructive",
18
+ primary: "text-d-primary",
19
+ secondary: "text-d-secondary"
20
+ }
21
+ }
22
+ });
23
+ function u({
24
+ size: t = "md",
25
+ variant: s = "default",
26
+ className: n,
27
+ ...o
28
+ }) {
29
+ const r = typeof t == "number" ? t : l[t];
30
+ return /* @__PURE__ */ a(
31
+ "svg",
32
+ {
33
+ "data-slot": "spinner",
34
+ className: i(d({ variant: s, className: n })),
35
+ xmlns: "http://www.w3.org/2000/svg",
36
+ fill: "none",
37
+ viewBox: "0 0 24 24",
38
+ width: r,
39
+ height: r,
40
+ ...o,
41
+ children: [
42
+ /* @__PURE__ */ e(
43
+ "circle",
44
+ {
45
+ className: "opacity-25",
46
+ cx: "12",
47
+ cy: "12",
48
+ r: "10",
49
+ stroke: "currentColor",
50
+ strokeWidth: "4"
51
+ }
52
+ ),
53
+ /* @__PURE__ */ e(
54
+ "path",
55
+ {
56
+ className: "opacity-75",
57
+ fill: "currentColor",
58
+ d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
59
+ }
60
+ )
61
+ ]
62
+ }
63
+ );
64
+ }
65
+ export {
66
+ u as Spinner
67
+ };
package/dist/index.d.ts CHANGED
@@ -2385,6 +2385,17 @@ declare interface SourcePart {
2385
2385
  type: "source";
2386
2386
  }
2387
2387
 
2388
+ export declare function Spinner({ size, variant, className, ...props }: SpinnerProps): JSX.Element;
2389
+
2390
+ export declare interface SpinnerProps extends React_2.ComponentProps<"svg"> {
2391
+ size?: SpinnerSize | number;
2392
+ variant?: SpinnerVariant;
2393
+ }
2394
+
2395
+ export declare type SpinnerSize = "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
2396
+
2397
+ export declare type SpinnerVariant = "default" | "destructive" | "primary" | "secondary";
2398
+
2388
2399
  declare type StepIndicators = {
2389
2400
  active?: React_2.ReactNode;
2390
2401
  completed?: React_2.ReactNode;