laif-ds 0.2.32 → 0.2.34

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.
Files changed (39) hide show
  1. package/dist/_virtual/index4.js +5 -5
  2. package/dist/_virtual/index5.js +5 -5
  3. package/dist/components/ui/button.js +27 -26
  4. package/dist/components/ui/checkbox.js +15 -11
  5. package/dist/components/ui/secure-pdf-viewer.js +64 -57
  6. package/dist/index.d.ts +8 -2
  7. package/dist/laif-ds.css +1 -1
  8. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
  9. package/dist/node_modules/react-hook-form/dist/index.esm.js +1 -1
  10. package/dist/node_modules/unified/lib/index.js +1 -1
  11. package/dist/styles.v3.css +1 -1
  12. package/package.json +6 -4
  13. package/dist/_virtual/warning.js +0 -8
  14. package/dist/node_modules/dequal/dist/index.js +0 -56
  15. package/dist/node_modules/make-cancellable-promise/dist/index.js +0 -15
  16. package/dist/node_modules/make-event-props/dist/index.js +0 -114
  17. package/dist/node_modules/merge-refs/dist/index.js +0 -19
  18. package/dist/node_modules/react-pdf/dist/Document.js +0 -180
  19. package/dist/node_modules/react-pdf/dist/DocumentContext.js +0 -6
  20. package/dist/node_modules/react-pdf/dist/LinkService.js +0 -94
  21. package/dist/node_modules/react-pdf/dist/Message.js +0 -8
  22. package/dist/node_modules/react-pdf/dist/Page/AnnotationLayer.js +0 -97
  23. package/dist/node_modules/react-pdf/dist/Page/Canvas.js +0 -55
  24. package/dist/node_modules/react-pdf/dist/Page/TextLayer.js +0 -111
  25. package/dist/node_modules/react-pdf/dist/Page.js +0 -180
  26. package/dist/node_modules/react-pdf/dist/PageContext.js +0 -6
  27. package/dist/node_modules/react-pdf/dist/PasswordResponses.js +0 -8
  28. package/dist/node_modules/react-pdf/dist/StructTree.js +0 -44
  29. package/dist/node_modules/react-pdf/dist/StructTreeItem.js +0 -14
  30. package/dist/node_modules/react-pdf/dist/index.js +0 -9
  31. package/dist/node_modules/react-pdf/dist/shared/constants.js +0 -62
  32. package/dist/node_modules/react-pdf/dist/shared/hooks/useDocumentContext.js +0 -9
  33. package/dist/node_modules/react-pdf/dist/shared/hooks/usePageContext.js +0 -9
  34. package/dist/node_modules/react-pdf/dist/shared/hooks/useResolver.js +0 -20
  35. package/dist/node_modules/react-pdf/dist/shared/structTreeUtils.js +0 -55
  36. package/dist/node_modules/react-pdf/dist/shared/utils.js +0 -110
  37. package/dist/node_modules/react-pdf/node_modules/pdfjs-dist/build/pdf.js +0 -15282
  38. package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +0 -13
  39. package/dist/node_modules/warning/warning.js +0 -39
@@ -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
  };
@@ -1,18 +1,19 @@
1
1
  "use client";
2
- import { jsx as r, jsxs as c } from "react/jsx-runtime";
3
- import { Root as m } from "../../node_modules/@radix-ui/react-slot/dist/index.js";
4
- import { cva as v } from "../../node_modules/class-variance-authority/dist/index.js";
5
- import { cn as l } from "../../lib/utils.js";
6
- import { Icon as u } from "./icon.js";
7
- const b = v(
2
+ import { jsx as r, jsxs as u } from "react/jsx-runtime";
3
+ import { Root as f } from "../../node_modules/@radix-ui/react-slot/dist/index.js";
4
+ import { cva as m } from "../../node_modules/class-variance-authority/dist/index.js";
5
+ import { cn as c } from "../../lib/utils.js";
6
+ import { Icon as l } from "./icon.js";
7
+ const v = m(
8
8
  "cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all focus-visible:ring-d-ring/50 focus-visible:ring-[3px] aria-invalid:ring-d-destructive/20 aria-invalid:border-d-destructive transition-all duration-200 ease-out transform-gpu active:scale-[0.98] active:shadow-sm overflow-hidden relative group disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-d-ring",
9
9
  {
10
10
  variants: {
11
11
  variant: {
12
12
  default: "bg-d-primary text-d-primary-foreground shadow-xs hover:bg-d-primary/90 hover:shadow-d-primary/25 [clip-path:inset(0_round_0.375rem)] before:absolute before:inset-0 before:bg-gradient-to-r before:from-transparent before:via-white/20 before:to-transparent before:translate-x-[-100%] hover:before:translate-x-[100%] before:transition-transform before:duration-700 before:ease-out",
13
13
  destructive: "bg-d-destructive text-d-destructive-foreground shadow-xs hover:bg-d-destructive/90 hover:shadow-d-destructive/25 focus-visible:ring-d-destructive/20 [clip-path:inset(0_round_0.375rem)] before:absolute before:inset-0 before:bg-gradient-to-r before:from-transparent before:via-white/20 before:to-transparent before:translate-x-[-100%] hover:before:translate-x-[100%] before:transition-transform before:duration-700 before:ease-out",
14
- outline: "border border-d-foreground bg-d-background shadow-xs hover:bg-d-accent hover:text-d-accent-foreground hover:border-d-accent disabled:border-d-foreground/30",
15
- "outline-primary": "border !border-d-primary bg-d-background shadow-xs text-d-primary/80 hover:!text-d-primary hover:bg-d-primary/5 hover:border-d-primary/80 ",
14
+ outline: "border border-d-foreground shadow-xs hover:bg-d-accent hover:text-d-accent-foreground hover:border-d-accent disabled:border-d-foreground/30 hover:border-d-foreground/80",
15
+ "outline-primary": "border !border-d-primary shadow-xs text-d-primary/80 hover:!text-d-primary hover:bg-d-primary/10 hover:border-d-primary/80 ",
16
+ "outline-destructive": "border !border-d-destructive shadow-xs text-d-destructive/80 hover:!text-d-destructive hover:bg-d-destructive/10 hover:border-d-destructive/80 ",
16
17
  secondary: "bg-d-secondary text-d-secondary-foreground shadow-xs hover:bg-d-secondary/80 hover:text-d-secondary-foreground ",
17
18
  ghost: "hover:bg-d-accent hover:text-d-accent-foreground ",
18
19
  "ghost-destructive": "text-d-destructive bg-transparent hover:bg-d-destructive/10",
@@ -34,30 +35,30 @@ const b = v(
34
35
  );
35
36
  function w({
36
37
  className: o,
37
- variant: a,
38
+ variant: d,
38
39
  size: e,
39
- asChild: d = !1,
40
- iconLeft: n,
41
- iconRight: s,
42
- isLoading: f = !1,
40
+ asChild: a = !1,
41
+ iconLeft: s,
42
+ iconRight: n,
43
+ isLoading: b = !1,
43
44
  ...t
44
45
  }) {
45
- const i = d ? m : "button";
46
- return d ? /* @__PURE__ */ r(
46
+ const i = a ? f : "button";
47
+ return a ? /* @__PURE__ */ r(
47
48
  i,
48
49
  {
49
50
  "data-slot": "button",
50
- className: l(b({ variant: a, size: e, className: o })),
51
+ className: c(v({ variant: d, size: e, className: o })),
51
52
  ...t
52
53
  }
53
- ) : /* @__PURE__ */ c(
54
+ ) : /* @__PURE__ */ u(
54
55
  i,
55
56
  {
56
57
  "data-slot": "button",
57
- className: l(b({ variant: a, size: e, className: o }), "relative"),
58
+ className: c(v({ variant: d, size: e, className: o }), "relative"),
58
59
  ...t,
59
60
  children: [
60
- f ? /* @__PURE__ */ c(
61
+ b ? /* @__PURE__ */ u(
61
62
  "svg",
62
63
  {
63
64
  className: "mr-1 -ml-1 animate-spin",
@@ -88,18 +89,18 @@ function w({
88
89
  )
89
90
  ]
90
91
  }
91
- ) : n && /* @__PURE__ */ r(
92
- u,
92
+ ) : s && /* @__PURE__ */ r(
93
+ l,
93
94
  {
94
- name: n,
95
+ name: s,
95
96
  size: e === "default" ? "md" : e === "sm" ? "xs" : "sm"
96
97
  }
97
98
  ),
98
99
  t.children,
99
- s && /* @__PURE__ */ r(
100
- u,
100
+ n && /* @__PURE__ */ r(
101
+ l,
101
102
  {
102
- name: s,
103
+ name: n,
103
104
  size: e === "default" ? "md" : e === "sm" ? "xs" : "sm"
104
105
  }
105
106
  )
@@ -109,5 +110,5 @@ function w({
109
110
  }
110
111
  export {
111
112
  w as Button,
112
- b as buttonVariants
113
+ v as buttonVariants
113
114
  };
@@ -1,26 +1,30 @@
1
1
  "use client";
2
2
  import { jsx as e } from "react/jsx-runtime";
3
- import { Checkbox as d, CheckboxIndicator as a } from "../../node_modules/@radix-ui/react-checkbox/dist/index.js";
3
+ import { Checkbox as t, CheckboxIndicator as a } from "../../node_modules/@radix-ui/react-checkbox/dist/index.js";
4
4
  import { cn as n } from "../../lib/utils.js";
5
5
  import s from "../../node_modules/lucide-react/dist/esm/icons/minus.js";
6
6
  import c from "../../node_modules/lucide-react/dist/esm/icons/check.js";
7
- function f({
7
+ function p({
8
8
  className: o,
9
- checked: i,
10
- ...t
9
+ checked: d,
10
+ ...i
11
11
  }) {
12
- const r = i === "indeterminate";
12
+ const r = d === "indeterminate";
13
13
  return /* @__PURE__ */ e(
14
- d,
14
+ t,
15
15
  {
16
16
  "data-slot": "checkbox",
17
17
  className: n(
18
- "peer bg-d-input border-d-border data-[state=checked]:bg-d-primary data-[state=checked]:border-d-primary data-[state=checked]:text-d-primary-foreground focus-visible:border-d-ring focus-visible:ring-d-ring/50 aria-invalid:border-d-destructive aria-invalid:ring-d-destructive/20 size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
19
- r && "bg-d-primary border-d-primary text-d-primary-foreground",
18
+ "peer bg-d-input border-d-foreground size-4 shrink-0 cursor-pointer rounded-[4px] border shadow-xs transition-shadow outline-none",
19
+ "aria-invalid:border-d-destructive aria-invalid:ring-d-destructive/20",
20
+ "focus-visible:border-d-ring focus-visible:ring-d-ring/50 focus-visible:ring-[3px]",
21
+ "data-[state=checked]:bg-d-primary data-[state=checked]:border-d-primary data-[state=checked]:text-d-primary-foreground",
22
+ "disabled:data-[state=unchecked]:border-d-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
23
+ r && "bg-d-primary border-d-primary text-d-primary-foreground disabled:border-d-muted-foreground",
20
24
  o
21
25
  ),
22
- checked: r ? !1 : i,
23
- ...t,
26
+ checked: r ? !1 : d,
27
+ ...i,
24
28
  children: /* @__PURE__ */ e(
25
29
  a,
26
30
  {
@@ -34,5 +38,5 @@ function f({
34
38
  );
35
39
  }
36
40
  export {
37
- f as Checkbox
41
+ p as Checkbox
38
42
  };
@@ -1,54 +1,61 @@
1
1
  "use client";
2
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
3
- import { Button as p } from "./button.js";
4
- import { Icon as i } from "./icon.js";
5
- import { useState as s, useRef as C, useMemo as h, useEffect as x } from "react";
6
- import "../../node_modules/react-pdf/dist/index.js";
7
- /* empty css */
8
- /* empty css */
9
- import L from "../../node_modules/react-pdf/dist/Document.js";
10
- import k from "../../node_modules/react-pdf/dist/Page.js";
11
- import { GlobalWorkerOptions as W } from "../../node_modules/react-pdf/node_modules/pdfjs-dist/build/pdf.js";
12
- W.workerSrc = "https://unpkg.com/pdfjs-dist@5.3.93/build/pdf.worker.min.mjs";
13
- function G({
14
- url: a,
15
- initialPage: w = 1,
16
- className: N = ""
2
+ import { jsxs as c, jsx as e } from "react/jsx-runtime";
3
+ import { Button as v } from "./button.js";
4
+ import { Icon as s } from "./icon.js";
5
+ import { useState as l, useRef as W, useMemo as N, useEffect as d } from "react";
6
+ import "react-pdf/dist/Page/AnnotationLayer.css";
7
+ import "react-pdf/dist/Page/TextLayer.css";
8
+ function R({
9
+ url: m,
10
+ initialPage: g = 1,
11
+ className: u = ""
17
12
  }) {
18
- const [c, g] = s(), [t, m] = s(w), [d, u] = s(null), n = C(null), [v, f] = s(950), b = h(() => ({ url: a }), [a]), P = h(
19
- () => ({
20
- cMapUrl: "https://unpkg.com/pdfjs-dist@5.3.93/cmaps/",
21
- cMapPacked: !0
22
- }),
23
- []
24
- ), E = ({ numPages: r }) => {
25
- g(r), u(null), setTimeout(() => {
13
+ const [o, j] = l(null), [a, P] = l(), [t, f] = l(g), [p, h] = l(null), n = W(null), [b, x] = l(950), E = N(() => ({ url: m }), [m]), w = N(() => o ? {
14
+ cMapUrl: `https://unpkg.com/pdfjs-dist@${o.pdfjs.version}/cmaps/`,
15
+ cMapPacked: !0
16
+ } : null, [o]);
17
+ d(() => {
18
+ if (typeof window > "u") return;
19
+ let r = !0;
20
+ return import("react-pdf").then((i) => {
21
+ r && (i.pdfjs.GlobalWorkerOptions.workerSrc = `https://unpkg.com/pdfjs-dist@${i.pdfjs.version}/build/pdf.worker.min.mjs`, j(i));
22
+ }), () => {
23
+ r = !1;
24
+ };
25
+ }, []);
26
+ const L = ({ numPages: r }) => {
27
+ P(r), h(null), setTimeout(() => {
26
28
  if (n.current) {
27
- const l = n.current.clientWidth;
28
- f(l - 32);
29
+ const i = n.current.clientWidth;
30
+ x(i - 32);
29
31
  }
30
32
  }, 50);
31
- }, j = (r) => {
32
- console.error("PDF Load Error:", r), u(r.message || "Errore nel caricamento del PDF");
33
+ }, y = (r) => {
34
+ console.error("PDF Load Error:", r), h(r.message || "Errore nel caricamento del PDF");
33
35
  };
34
- return x(() => {
36
+ if (d(() => {
35
37
  n.current && (n.current.scrollTop = 0);
36
- }, [t]), x(() => {
38
+ }, [t]), d(() => {
37
39
  const r = () => {
38
40
  if (n.current) {
39
- const l = n.current.clientWidth;
40
- f(l - 32);
41
+ const i = n.current.clientWidth;
42
+ x(i - 32);
41
43
  }
42
44
  };
43
45
  return r(), window.addEventListener("resize", r), () => window.removeEventListener("resize", r);
44
- }, []), d ? /* @__PURE__ */ o("div", { className: "text-d-destructive flex min-h-[600px] flex-col items-center justify-center gap-3", children: [
45
- /* @__PURE__ */ e(i, { name: "AlertCircle", className: "h-12 w-12" }),
46
- /* @__PURE__ */ e("p", { className: "font-semibold", children: "Errore nel caricamento del PDF" }),
47
- /* @__PURE__ */ e("p", { className: "text-d-muted-foreground text-sm", children: d })
48
- ] }) : /* @__PURE__ */ o(
46
+ }, []), p)
47
+ return /* @__PURE__ */ c("div", { className: "text-d-destructive flex min-h-[600px] flex-col items-center justify-center gap-3", children: [
48
+ /* @__PURE__ */ e(s, { name: "AlertCircle", className: "h-12 w-12" }),
49
+ /* @__PURE__ */ e("p", { className: "font-semibold", children: "Errore nel caricamento del PDF" }),
50
+ /* @__PURE__ */ e("p", { className: "text-d-muted-foreground text-sm", children: p })
51
+ ] });
52
+ if (!o || !w)
53
+ return /* @__PURE__ */ e("div", { className: `flex min-h-[600px] w-full flex-col items-center ${u}`, children: /* @__PURE__ */ e("div", { className: "flex min-h-[600px] w-full items-center justify-center", children: /* @__PURE__ */ e(s, { name: "Loader2", className: "text-d-primary h-8 w-8 animate-spin" }) }) });
54
+ const { Document: C, Page: k } = o;
55
+ return /* @__PURE__ */ c(
49
56
  "div",
50
57
  {
51
- className: `flex min-h-[600px] w-full flex-col items-center ${N}`,
58
+ className: `flex min-h-[600px] w-full flex-col items-center ${u}`,
52
59
  children: [
53
60
  /* @__PURE__ */ e(
54
61
  "div",
@@ -56,53 +63,53 @@ function G({
56
63
  ref: n,
57
64
  className: "border-d-border max-h-[500px] w-full overflow-auto rounded border",
58
65
  children: /* @__PURE__ */ e(
59
- L,
66
+ C,
60
67
  {
61
- file: b,
62
- onLoadSuccess: E,
63
- onLoadError: j,
64
- options: P,
68
+ file: E,
69
+ onLoadSuccess: L,
70
+ onLoadError: y,
71
+ options: w,
65
72
  loading: /* @__PURE__ */ e("div", { className: "flex min-h-[600px] items-center justify-center", children: /* @__PURE__ */ e(
66
- i,
73
+ s,
67
74
  {
68
75
  name: "Loader2",
69
76
  className: "text-d-primary h-8 w-8 animate-spin"
70
77
  }
71
78
  ) }),
72
- error: /* @__PURE__ */ o("div", { className: "text-d-destructive flex min-h-[600px] flex-col items-center justify-center gap-2", children: [
73
- /* @__PURE__ */ e(i, { name: "AlertCircle", className: "h-12 w-12" }),
79
+ error: /* @__PURE__ */ c("div", { className: "text-d-destructive flex min-h-[600px] flex-col items-center justify-center gap-2", children: [
80
+ /* @__PURE__ */ e(s, { name: "AlertCircle", className: "h-12 w-12" }),
74
81
  /* @__PURE__ */ e("p", { children: "Errore nel caricamento del PDF" })
75
82
  ] }),
76
83
  className: "h-full min-h-[600px] w-full border-0",
77
- children: /* @__PURE__ */ e(k, { pageNumber: t, width: v })
84
+ children: /* @__PURE__ */ e(k, { pageNumber: t, width: b })
78
85
  }
79
86
  )
80
87
  }
81
88
  ),
82
- /* @__PURE__ */ o("div", { className: "my-8 flex h-full w-full items-center justify-center gap-4", children: [
89
+ /* @__PURE__ */ c("div", { className: "my-8 flex h-full w-full items-center justify-center gap-4", children: [
83
90
  /* @__PURE__ */ e(
84
- p,
91
+ v,
85
92
  {
86
- onClick: () => m(Math.max(1, t - 1)),
93
+ onClick: () => f(Math.max(1, t - 1)),
87
94
  disabled: t <= 1,
88
95
  variant: "outline",
89
96
  size: "sm",
90
- children: /* @__PURE__ */ e(i, { name: "ChevronLeft", className: "h-4 w-4" })
97
+ children: /* @__PURE__ */ e(s, { name: "ChevronLeft", className: "h-4 w-4" })
91
98
  }
92
99
  ),
93
- /* @__PURE__ */ o("p", { className: "text-d-foreground text-sm", children: [
100
+ /* @__PURE__ */ c("p", { className: "text-d-foreground text-sm", children: [
94
101
  t,
95
102
  " / ",
96
- c
103
+ a
97
104
  ] }),
98
105
  /* @__PURE__ */ e(
99
- p,
106
+ v,
100
107
  {
101
- onClick: () => m(Math.min(c || 1, t + 1)),
102
- disabled: t >= (c || 1),
108
+ onClick: () => f(Math.min(a || 1, t + 1)),
109
+ disabled: t >= (a || 1),
103
110
  variant: "outline",
104
111
  size: "sm",
105
- children: /* @__PURE__ */ e(i, { name: "ChevronRight", className: "h-4 w-4" })
112
+ children: /* @__PURE__ */ e(s, { name: "ChevronRight", className: "h-4 w-4" })
106
113
  }
107
114
  )
108
115
  ] })
@@ -111,5 +118,5 @@ function G({
111
118
  );
112
119
  }
113
120
  export {
114
- G as SecurePdfViewer
121
+ R as SecurePdfViewer
115
122
  };
package/dist/index.d.ts CHANGED
@@ -362,15 +362,21 @@ export declare function BreadcrumbSeparator({ children, className, ...props }: R
362
362
 
363
363
  export declare function Button({ className, variant, size, asChild, iconLeft, iconRight, isLoading, ...props }: ButtonProps): JSX.Element;
364
364
 
365
- export declare interface ButtonProps extends React_2.ComponentProps<"button">, VariantProps<typeof buttonVariants> {
365
+ export declare interface ButtonProps extends React_2.ComponentProps<"button"> {
366
+ variant?: ButtonVariant;
367
+ size?: ButtonSize;
366
368
  asChild?: boolean;
367
369
  iconLeft?: IconName;
368
370
  iconRight?: IconName;
369
371
  isLoading?: boolean;
370
372
  }
371
373
 
374
+ export declare type ButtonSize = "default" | "sm" | "lg" | "icon";
375
+
376
+ export declare type ButtonVariant = "default" | "destructive" | "outline" | "outline-primary" | "outline-destructive" | "secondary" | "ghost" | "ghost-destructive" | "ghost-accent" | "link";
377
+
372
378
  export declare const buttonVariants: (props?: ({
373
- variant?: "link" | "default" | "secondary" | "ghost" | "destructive" | "outline" | "outline-primary" | "ghost-destructive" | "ghost-accent" | null | undefined;
379
+ variant?: "link" | "default" | "secondary" | "ghost" | "destructive" | "outline" | "outline-primary" | "outline-destructive" | "ghost-destructive" | "ghost-accent" | null | undefined;
374
380
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
375
381
  } & ClassProp) | undefined) => string;
376
382
 
package/dist/laif-ds.css CHANGED
@@ -1 +1 @@
1
- .EditorTheme__code{background-color:transparent;font-family:Menlo,Consolas,Monaco,monospace;display:block;padding:8px 8px 8px 52px;line-height:1.53;font-size:13px;margin:8px 0;overflow-x:auto;border:1px solid #ccc;position:relative;border-radius:8px;tab-size:2}.EditorTheme__code:before{content:attr(data-gutter);position:absolute;background-color:transparent;border-right:1px solid #ccc;left:0;top:0;padding:8px;color:#777;white-space:pre-wrap;text-align:right;min-width:25px}.EditorTheme__table{border-collapse:collapse;border-spacing:0;overflow-y:scroll;overflow-x:scroll;table-layout:fixed;width:fit-content;width:100%;margin:0 25px 30px 0}.EditorTheme__tokenComment{color:#708090}.EditorTheme__tokenPunctuation{color:#999}.EditorTheme__tokenProperty{color:#905}.EditorTheme__tokenSelector{color:#690}.EditorTheme__tokenOperator{color:#9a6e3a}.EditorTheme__tokenAttr{color:#07a}.EditorTheme__tokenVariable{color:#e90}.EditorTheme__tokenFunction{color:#dd4a68}.Collapsible__container{background-color:var(--background);border:1px solid #ccc;border-radius:.5rem;margin-bottom:.5rem}.Collapsible__title{padding:.25rem .25rem .25rem 1rem;position:relative;font-weight:700;outline:none;cursor:pointer;list-style-type:disclosure-closed;list-style-position:inside}.Collapsible__title p{display:inline-flex}.Collapsible__title::marker{color:#d3d3d3}.Collapsible__container[open]>.Collapsible__title{list-style-type:disclosure-open}:root{--react-pdf-annotation-layer: 1;--annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");--input-focus-border-color: Highlight;--input-focus-outline: 1px solid Canvas;--input-unfocused-border-color: transparent;--input-disabled-border-color: transparent;--input-hover-border-color: black;--link-outline: none}@media screen and (forced-colors: active){:root{--input-focus-border-color: CanvasText;--input-unfocused-border-color: ActiveText;--input-disabled-border-color: GrayText;--input-hover-border-color: Highlight;--link-outline: 1.5px solid LinkText}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid selectedItem}.annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:invert(100%);backdrop-filter:invert(100%)}}.annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0;z-index:3}.annotationLayer[data-main-rotation="90"] .norotate{transform:rotate(270deg) translate(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{transform:rotate(180deg) translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{transform:rotate(90deg) translateY(-100%)}.annotationLayer canvas{position:absolute;width:100%;height:100%}.annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;margin:0;transform-origin:0 0}.annotationLayer .linkAnnotation{outline:var(--link-outline)}.textLayer.selecting~.annotationLayer section{pointer-events:none}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0}.annotationLayer .textWidgetAnnotation :is(input,textarea),.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px * var(--total-scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled]{background:none;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover{border:2px solid var(--input-hover-border-color)}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover{border-radius:2px}.annotationLayer .textWidgetAnnotation :is(input,textarea):focus,.annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-image:none;background-color:transparent}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--total-scale-factor));width:100%;min-width:calc(180px * var(--total-scale-factor));pointer-events:none}.annotationLayer .popup{position:absolute;max-width:calc(180px * var(--total-scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--total-scale-factor)) calc(5px * var(--total-scale-factor)) #888;border-radius:calc(2px * var(--total-scale-factor));padding:calc(6px * var(--total-scale-factor));margin-left:calc(5px * var(--total-scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px * var(--total-scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--total-scale-factor))}.annotationLayer .popupContent{border-top:1px solid rgba(51,51,51,1);margin-top:calc(2px * var(--total-scale-factor));padding-top:calc(2px * var(--total-scale-factor))}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--total-scale-factor))}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.annotationLayer section svg{position:absolute;width:100%;height:100%;top:0;left:0}.annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;user-select:none;pointer-events:none}.annotationLayer .annotationTextContent span{width:100%;display:inline-block}:root{--react-pdf-text-layer: 1;--highlight-bg-color: rgba(180, 0, 170, 1);--highlight-selected-bg-color: rgba(0, 100, 0, 1)}@media screen and (forced-colors: active){:root{--highlight-bg-color: Highlight;--highlight-selected-bg-color: ButtonText}}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translate(-100%)}.textLayer{position:absolute;text-align:initial;inset:0;overflow:hidden;line-height:1;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2}.textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;margin:0;transform-origin:0 0}.textLayer span.markedContent{top:0;height:0}.textLayer .highlight{margin:-1px;padding:1px;background-color:var(--highlight-bg-color);border-radius:4px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color)}.textLayer br::selection{background:transparent}.textLayer .endOfContent{display:block;position:absolute;inset:100% 0 0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}.textLayer.selecting .endOfContent{top:0}.hiddenCanvasElement{position:absolute;top:0;left:0;width:0;height:0;display:none}
1
+ .EditorTheme__code{background-color:transparent;font-family:Menlo,Consolas,Monaco,monospace;display:block;padding:8px 8px 8px 52px;line-height:1.53;font-size:13px;margin:8px 0;overflow-x:auto;border:1px solid #ccc;position:relative;border-radius:8px;tab-size:2}.EditorTheme__code:before{content:attr(data-gutter);position:absolute;background-color:transparent;border-right:1px solid #ccc;left:0;top:0;padding:8px;color:#777;white-space:pre-wrap;text-align:right;min-width:25px}.EditorTheme__table{border-collapse:collapse;border-spacing:0;overflow-y:scroll;overflow-x:scroll;table-layout:fixed;width:fit-content;width:100%;margin:0 25px 30px 0}.EditorTheme__tokenComment{color:#708090}.EditorTheme__tokenPunctuation{color:#999}.EditorTheme__tokenProperty{color:#905}.EditorTheme__tokenSelector{color:#690}.EditorTheme__tokenOperator{color:#9a6e3a}.EditorTheme__tokenAttr{color:#07a}.EditorTheme__tokenVariable{color:#e90}.EditorTheme__tokenFunction{color:#dd4a68}.Collapsible__container{background-color:var(--background);border:1px solid #ccc;border-radius:.5rem;margin-bottom:.5rem}.Collapsible__title{padding:.25rem .25rem .25rem 1rem;position:relative;font-weight:700;outline:none;cursor:pointer;list-style-type:disclosure-closed;list-style-position:inside}.Collapsible__title p{display:inline-flex}.Collapsible__title::marker{color:#d3d3d3}.Collapsible__container[open]>.Collapsible__title{list-style-type:disclosure-open}
@@ -3,7 +3,7 @@ import { stringify as w } from "../../comma-separated-tokens/index.js";
3
3
  import { ok as u } from "../../devlop/lib/default.js";
4
4
  import { svg as m, html as C } from "../../property-information/index.js";
5
5
  import { stringify as N } from "../../space-separated-tokens/index.js";
6
- import S from "../../../_virtual/index4.js";
6
+ import S from "../../../_virtual/index5.js";
7
7
  import { whitespace as j } from "../../hast-util-whitespace/lib/index.js";
8
8
  import { name as x } from "../../estree-util-is-identifier-name/lib/index.js";
9
9
  import { VFileMessage as h } from "../../vfile-message/lib/index.js";
@@ -213,7 +213,7 @@ function re(e) {
213
213
  C && C._f && (C._f.mount = G);
214
214
  };
215
215
  if (A(t, !0), d) {
216
- const k = T(f(r._options.defaultValues, t));
216
+ const k = T(f(r._options.defaultValues, t, m.current.defaultValue));
217
217
  M(r._defaultValues, t, k), x(f(r._formValues, t)) && M(r._formValues, t, k);
218
218
  }
219
219
  return !u && r.register(t), h.current = t, () => {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { bail as P } from "../../bail/index.js";
3
- import y from "../../../_virtual/index5.js";
3
+ import y from "../../../_virtual/index4.js";
4
4
  import z from "../../is-plain-obj/index.js";
5
5
  import { CallableInstance as C } from "./callable-instance.js";
6
6
  import { trough as A } from "../../trough/lib/index.js";