@vlrc-fe/components 1.0.9 → 1.0.11

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 (120) hide show
  1. package/dist/Form/FormDatePicker/SingleDatePicker.d.ts.map +1 -1
  2. package/dist/index100.js +30 -17
  3. package/dist/index101.cjs +1 -1
  4. package/dist/index102.js +35 -19
  5. package/dist/index103.cjs +1 -1
  6. package/dist/index103.js +29 -19
  7. package/dist/index104.cjs +1 -1
  8. package/dist/index104.js +98 -55
  9. package/dist/index105.cjs +1 -1
  10. package/dist/index105.js +86 -48
  11. package/dist/index106.cjs +1 -1
  12. package/dist/index106.js +12 -6
  13. package/dist/index107.cjs +1 -1
  14. package/dist/index107.js +23 -16
  15. package/dist/index108.cjs +1 -1
  16. package/dist/index108.js +205 -120
  17. package/dist/index109.cjs +1 -1
  18. package/dist/index11.js +105 -53
  19. package/dist/index113.js +12 -6
  20. package/dist/index114.cjs +1 -1
  21. package/dist/index115.js +18 -10
  22. package/dist/index116.cjs +1 -1
  23. package/dist/index116.js +82 -41
  24. package/dist/index117.cjs +1 -1
  25. package/dist/index118.js +42 -21
  26. package/dist/index119.cjs +1 -1
  27. package/dist/index119.js +12 -6
  28. package/dist/index12.cjs +1 -1
  29. package/dist/index120.cjs +1 -1
  30. package/dist/index121.js +18 -12
  31. package/dist/index122.cjs +1 -1
  32. package/dist/index123.js +42 -28
  33. package/dist/index124.cjs +1 -1
  34. package/dist/index126.js +86 -57
  35. package/dist/index127.cjs +1 -1
  36. package/dist/index127.js +30 -17
  37. package/dist/index128.cjs +1 -1
  38. package/dist/index128.js +42 -27
  39. package/dist/index129.cjs +1 -1
  40. package/dist/index129.js +31 -18
  41. package/dist/index130.cjs +1 -1
  42. package/dist/index132.js +50 -23
  43. package/dist/index133.cjs +1 -1
  44. package/dist/index133.js +28 -14
  45. package/dist/index134.cjs +1 -1
  46. package/dist/index135.js +147 -99
  47. package/dist/index136.cjs +1 -1
  48. package/dist/index138.js +242 -170
  49. package/dist/index139.cjs +1 -1
  50. package/dist/index14.js +9 -5
  51. package/dist/index141.js +21 -10
  52. package/dist/index142.cjs +1 -1
  53. package/dist/index15.cjs +1 -1
  54. package/dist/index18.js +32 -16
  55. package/dist/index186.js +57 -44
  56. package/dist/index187.cjs +1 -1
  57. package/dist/index187.js +56 -48
  58. package/dist/index188.cjs +1 -1
  59. package/dist/index188.js +16 -12
  60. package/dist/index189.cjs +1 -1
  61. package/dist/index19.cjs +1 -1
  62. package/dist/index191.js +36 -23
  63. package/dist/index192.cjs +1 -1
  64. package/dist/index197.js +18 -15
  65. package/dist/index198.cjs +1 -1
  66. package/dist/index20.js +79 -41
  67. package/dist/index200.js +49 -33
  68. package/dist/index201.cjs +1 -1
  69. package/dist/index201.js +20 -11
  70. package/dist/index202.cjs +1 -1
  71. package/dist/index21.cjs +1 -1
  72. package/dist/index21.js +30 -23
  73. package/dist/index22.cjs +1 -1
  74. package/dist/index22.js +75 -39
  75. package/dist/index23.cjs +1 -1
  76. package/dist/index26.js +39 -28
  77. package/dist/index27.cjs +1 -1
  78. package/dist/index27.js +20 -12
  79. package/dist/index28.cjs +1 -1
  80. package/dist/index33.js +23 -13
  81. package/dist/index34.cjs +1 -1
  82. package/dist/index34.js +87 -49
  83. package/dist/index35.cjs +1 -1
  84. package/dist/index35.js +86 -45
  85. package/dist/index36.cjs +1 -1
  86. package/dist/index4.js +49 -26
  87. package/dist/index5.cjs +1 -1
  88. package/dist/index5.js +34 -18
  89. package/dist/index6.cjs +1 -1
  90. package/dist/index75.js +142 -77
  91. package/dist/index76.cjs +1 -1
  92. package/dist/index77.js +96 -49
  93. package/dist/index78.cjs +1 -1
  94. package/dist/index78.js +137 -77
  95. package/dist/index79.cjs +1 -1
  96. package/dist/index79.js +13 -7
  97. package/dist/index80.cjs +1 -1
  98. package/dist/index81.js +130 -63
  99. package/dist/index82.cjs +1 -1
  100. package/dist/index82.js +201 -158
  101. package/dist/index83.cjs +1 -1
  102. package/dist/index84.js +97 -59
  103. package/dist/index85.cjs +1 -1
  104. package/dist/index86.js +17 -10
  105. package/dist/index87.cjs +1 -1
  106. package/dist/index87.js +13 -7
  107. package/dist/index88.cjs +1 -1
  108. package/dist/index89.js +54 -28
  109. package/dist/index90.cjs +1 -1
  110. package/dist/index90.js +94 -53
  111. package/dist/index91.cjs +1 -1
  112. package/dist/index92.js +156 -89
  113. package/dist/index93.cjs +1 -1
  114. package/dist/index96.js +89 -47
  115. package/dist/index97.cjs +1 -1
  116. package/dist/index97.js +78 -43
  117. package/dist/index98.cjs +1 -1
  118. package/dist/index98.js +27 -17
  119. package/dist/index99.cjs +1 -1
  120. package/package.json +1 -1
package/dist/index78.js CHANGED
@@ -2,42 +2,55 @@ import { cn as e } from "./index3.js";
2
2
  import { CheckIcon as t, ChevronRightIcon as n, CircleIcon as r } from "lucide-react";
3
3
  import "react";
4
4
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
- import * as o from "@radix-ui/react-dropdown-menu";
5
+ import { c as o } from "react/compiler-runtime";
6
+ import * as s from "@radix-ui/react-dropdown-menu";
6
7
  //#region src/ui/dropdown-menu.tsx
7
- function s({ ...e }) {
8
- return /* @__PURE__ */ i(o.Root, {
8
+ function c(e) {
9
+ let t = o(4), n;
10
+ t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
11
+ let r;
12
+ return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ i(s.Root, {
9
13
  "data-slot": "dropdown-menu",
10
- ...e
11
- });
14
+ ...n
15
+ }), t[2] = n, t[3] = r), r;
12
16
  }
13
- function c({ ...e }) {
14
- return /* @__PURE__ */ i(o.Portal, {
17
+ function l(e) {
18
+ let t = o(4), n;
19
+ t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
20
+ let r;
21
+ return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ i(s.Portal, {
15
22
  "data-slot": "dropdown-menu-portal",
16
- ...e
17
- });
23
+ ...n
24
+ }), t[2] = n, t[3] = r), r;
18
25
  }
19
- function l({ ...e }) {
20
- return /* @__PURE__ */ i(o.Trigger, {
26
+ function u(e) {
27
+ let t = o(4), n;
28
+ t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
29
+ let r;
30
+ return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ i(s.Trigger, {
21
31
  "data-slot": "dropdown-menu-trigger",
22
- ...e
23
- });
32
+ ...n
33
+ }), t[2] = n, t[3] = r), r;
24
34
  }
25
- function u({ className: t, sideOffset: n = 4, ...r }) {
26
- return /* @__PURE__ */ i(o.Portal, { children: /* @__PURE__ */ i(o.Content, {
35
+ function d({ className: t, sideOffset: n = 4, ...r }) {
36
+ return /* @__PURE__ */ i(s.Portal, { children: /* @__PURE__ */ i(s.Content, {
27
37
  "data-slot": "dropdown-menu-content",
28
38
  sideOffset: n,
29
39
  className: e("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", t),
30
40
  ...r
31
41
  }) });
32
42
  }
33
- function d({ ...e }) {
34
- return /* @__PURE__ */ i(o.Group, {
43
+ function f(e) {
44
+ let t = o(4), n;
45
+ t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
46
+ let r;
47
+ return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ i(s.Group, {
35
48
  "data-slot": "dropdown-menu-group",
36
- ...e
37
- });
49
+ ...n
50
+ }), t[2] = n, t[3] = r), r;
38
51
  }
39
- function f({ className: t, inset: n, variant: r = "default", ...a }) {
40
- return /* @__PURE__ */ i(o.Item, {
52
+ function p({ className: t, inset: n, variant: r = "default", ...a }) {
53
+ return /* @__PURE__ */ i(s.Item, {
41
54
  "data-slot": "dropdown-menu-item",
42
55
  "data-inset": n,
43
56
  "data-variant": r,
@@ -45,78 +58,125 @@ function f({ className: t, inset: n, variant: r = "default", ...a }) {
45
58
  ...a
46
59
  });
47
60
  }
48
- function p({ className: n, children: r, checked: s, ...c }) {
49
- return /* @__PURE__ */ a(o.CheckboxItem, {
61
+ function m(n) {
62
+ let r = o(13), c, l, u, d;
63
+ r[0] === n ? (c = r[1], l = r[2], u = r[3], d = r[4]) : ({className: u, children: l, checked: c, ...d} = n, r[0] = n, r[1] = c, r[2] = l, r[3] = u, r[4] = d);
64
+ let f;
65
+ r[5] === u ? f = r[6] : (f = e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", u), r[5] = u, r[6] = f);
66
+ let p;
67
+ r[7] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ i("span", {
68
+ className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
69
+ children: /* @__PURE__ */ i(s.ItemIndicator, { children: /* @__PURE__ */ i(t, { className: "size-4" }) })
70
+ }), r[7] = p) : p = r[7];
71
+ let m;
72
+ return r[8] !== c || r[9] !== l || r[10] !== d || r[11] !== f ? (m = /* @__PURE__ */ a(s.CheckboxItem, {
50
73
  "data-slot": "dropdown-menu-checkbox-item",
51
- className: e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", n),
52
- checked: s,
53
- ...c,
54
- children: [/* @__PURE__ */ i("span", {
55
- className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
56
- children: /* @__PURE__ */ i(o.ItemIndicator, { children: /* @__PURE__ */ i(t, { className: "size-4" }) })
57
- }), r]
58
- });
74
+ className: f,
75
+ checked: c,
76
+ ...d,
77
+ children: [p, l]
78
+ }), r[8] = c, r[9] = l, r[10] = d, r[11] = f, r[12] = m) : m = r[12], m;
59
79
  }
60
- function m({ ...e }) {
61
- return /* @__PURE__ */ i(o.RadioGroup, {
80
+ function h(e) {
81
+ let t = o(4), n;
82
+ t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
83
+ let r;
84
+ return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ i(s.RadioGroup, {
62
85
  "data-slot": "dropdown-menu-radio-group",
63
- ...e
64
- });
86
+ ...n
87
+ }), t[2] = n, t[3] = r), r;
65
88
  }
66
- function h({ className: t, children: n, ...s }) {
67
- return /* @__PURE__ */ a(o.RadioItem, {
89
+ function g(t) {
90
+ let n = o(11), c, l, u;
91
+ n[0] === t ? (c = n[1], l = n[2], u = n[3]) : ({className: l, children: c, ...u} = t, n[0] = t, n[1] = c, n[2] = l, n[3] = u);
92
+ let d;
93
+ n[4] === l ? d = n[5] : (d = e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", l), n[4] = l, n[5] = d);
94
+ let f;
95
+ n[6] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ i("span", {
96
+ className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
97
+ children: /* @__PURE__ */ i(s.ItemIndicator, { children: /* @__PURE__ */ i(r, { className: "size-2 fill-current" }) })
98
+ }), n[6] = f) : f = n[6];
99
+ let p;
100
+ return n[7] !== c || n[8] !== u || n[9] !== d ? (p = /* @__PURE__ */ a(s.RadioItem, {
68
101
  "data-slot": "dropdown-menu-radio-item",
69
- className: e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
70
- ...s,
71
- children: [/* @__PURE__ */ i("span", {
72
- className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
73
- children: /* @__PURE__ */ i(o.ItemIndicator, { children: /* @__PURE__ */ i(r, { className: "size-2 fill-current" }) })
74
- }), n]
75
- });
102
+ className: d,
103
+ ...u,
104
+ children: [f, c]
105
+ }), n[7] = c, n[8] = u, n[9] = d, n[10] = p) : p = n[10], p;
76
106
  }
77
- function g({ className: t, inset: n, ...r }) {
78
- return /* @__PURE__ */ i(o.Label, {
107
+ function _(t) {
108
+ let n = o(10), r, a, c;
109
+ n[0] === t ? (r = n[1], a = n[2], c = n[3]) : ({className: r, inset: a, ...c} = t, n[0] = t, n[1] = r, n[2] = a, n[3] = c);
110
+ let l;
111
+ n[4] === r ? l = n[5] : (l = e("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", r), n[4] = r, n[5] = l);
112
+ let u;
113
+ return n[6] !== a || n[7] !== c || n[8] !== l ? (u = /* @__PURE__ */ i(s.Label, {
79
114
  "data-slot": "dropdown-menu-label",
80
- "data-inset": n,
81
- className: e("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", t),
82
- ...r
83
- });
115
+ "data-inset": a,
116
+ className: l,
117
+ ...c
118
+ }), n[6] = a, n[7] = c, n[8] = l, n[9] = u) : u = n[9], u;
84
119
  }
85
- function _({ className: t, ...n }) {
86
- return /* @__PURE__ */ i(o.Separator, {
120
+ function v(t) {
121
+ let n = o(8), r, a;
122
+ n[0] === t ? (r = n[1], a = n[2]) : ({className: r, ...a} = t, n[0] = t, n[1] = r, n[2] = a);
123
+ let c;
124
+ n[3] === r ? c = n[4] : (c = e("bg-border -mx-1 my-1 h-px", r), n[3] = r, n[4] = c);
125
+ let l;
126
+ return n[5] !== a || n[6] !== c ? (l = /* @__PURE__ */ i(s.Separator, {
87
127
  "data-slot": "dropdown-menu-separator",
88
- className: e("bg-border -mx-1 my-1 h-px", t),
89
- ...n
90
- });
128
+ className: c,
129
+ ...a
130
+ }), n[5] = a, n[6] = c, n[7] = l) : l = n[7], l;
91
131
  }
92
- function v({ className: t, ...n }) {
93
- return /* @__PURE__ */ i("span", {
132
+ function y(t) {
133
+ let n = o(8), r, a;
134
+ n[0] === t ? (r = n[1], a = n[2]) : ({className: r, ...a} = t, n[0] = t, n[1] = r, n[2] = a);
135
+ let s;
136
+ n[3] === r ? s = n[4] : (s = e("text-muted-foreground ml-auto text-xs tracking-widest", r), n[3] = r, n[4] = s);
137
+ let c;
138
+ return n[5] !== a || n[6] !== s ? (c = /* @__PURE__ */ i("span", {
94
139
  "data-slot": "dropdown-menu-shortcut",
95
- className: e("text-muted-foreground ml-auto text-xs tracking-widest", t),
96
- ...n
97
- });
140
+ className: s,
141
+ ...a
142
+ }), n[5] = a, n[6] = s, n[7] = c) : c = n[7], c;
98
143
  }
99
- function y({ ...e }) {
100
- return /* @__PURE__ */ i(o.Sub, {
144
+ function b(e) {
145
+ let t = o(4), n;
146
+ t[0] === e ? n = t[1] : ({...n} = e, t[0] = e, t[1] = n);
147
+ let r;
148
+ return t[2] === n ? r = t[3] : (r = /* @__PURE__ */ i(s.Sub, {
101
149
  "data-slot": "dropdown-menu-sub",
102
- ...e
103
- });
150
+ ...n
151
+ }), t[2] = n, t[3] = r), r;
104
152
  }
105
- function b({ className: t, inset: r, children: s, ...c }) {
106
- return /* @__PURE__ */ a(o.SubTrigger, {
153
+ function x(t) {
154
+ let r = o(13), c, l, u, d;
155
+ r[0] === t ? (c = r[1], l = r[2], u = r[3], d = r[4]) : ({className: l, inset: u, children: c, ...d} = t, r[0] = t, r[1] = c, r[2] = l, r[3] = u, r[4] = d);
156
+ let f;
157
+ r[5] === l ? f = r[6] : (f = e("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", l), r[5] = l, r[6] = f);
158
+ let p;
159
+ r[7] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ i(n, { className: "ml-auto size-4" }), r[7] = p) : p = r[7];
160
+ let m;
161
+ return r[8] !== c || r[9] !== u || r[10] !== d || r[11] !== f ? (m = /* @__PURE__ */ a(s.SubTrigger, {
107
162
  "data-slot": "dropdown-menu-sub-trigger",
108
- "data-inset": r,
109
- className: e("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
110
- ...c,
111
- children: [s, /* @__PURE__ */ i(n, { className: "ml-auto size-4" })]
112
- });
163
+ "data-inset": u,
164
+ className: f,
165
+ ...d,
166
+ children: [c, p]
167
+ }), r[8] = c, r[9] = u, r[10] = d, r[11] = f, r[12] = m) : m = r[12], m;
113
168
  }
114
- function x({ className: t, ...n }) {
115
- return /* @__PURE__ */ i(o.SubContent, {
169
+ function S(t) {
170
+ let n = o(8), r, a;
171
+ n[0] === t ? (r = n[1], a = n[2]) : ({className: r, ...a} = t, n[0] = t, n[1] = r, n[2] = a);
172
+ let c;
173
+ n[3] === r ? c = n[4] : (c = e("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", r), n[3] = r, n[4] = c);
174
+ let l;
175
+ return n[5] !== a || n[6] !== c ? (l = /* @__PURE__ */ i(s.SubContent, {
116
176
  "data-slot": "dropdown-menu-sub-content",
117
- className: e("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", t),
118
- ...n
119
- });
177
+ className: c,
178
+ ...a
179
+ }), n[5] = a, n[6] = c, n[7] = l) : l = n[7], l;
120
180
  }
121
181
  //#endregion
122
- export { s as DropdownMenu, p as DropdownMenuCheckboxItem, u as DropdownMenuContent, d as DropdownMenuGroup, f as DropdownMenuItem, g as DropdownMenuLabel, c as DropdownMenuPortal, m as DropdownMenuRadioGroup, h as DropdownMenuRadioItem, _ as DropdownMenuSeparator, v as DropdownMenuShortcut, y as DropdownMenuSub, x as DropdownMenuSubContent, b as DropdownMenuSubTrigger, l as DropdownMenuTrigger };
182
+ export { c as DropdownMenu, m as DropdownMenuCheckboxItem, d as DropdownMenuContent, f as DropdownMenuGroup, p as DropdownMenuItem, _ as DropdownMenuLabel, l as DropdownMenuPortal, h as DropdownMenuRadioGroup, g as DropdownMenuRadioItem, v as DropdownMenuSeparator, y as DropdownMenuShortcut, b as DropdownMenuSub, S as DropdownMenuSubContent, x as DropdownMenuSubTrigger, u as DropdownMenuTrigger };
package/dist/index79.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index2.cjs"),t=require("./index4.cjs");let n=require("lucide-react"),r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("@radix-ui/react-dropdown-menu");a=e.__toESM(a,1);function o({...e}){return(0,i.jsx)(a.Root,{"data-slot":`dropdown-menu`,...e})}function s({...e}){return(0,i.jsx)(a.Portal,{"data-slot":`dropdown-menu-portal`,...e})}function c({...e}){return(0,i.jsx)(a.Trigger,{"data-slot":`dropdown-menu-trigger`,...e})}function l({className:e,sideOffset:n=4,...r}){return(0,i.jsx)(a.Portal,{children:(0,i.jsx)(a.Content,{"data-slot":`dropdown-menu-content`,sideOffset:n,className:t.cn(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md`,e),...r})})}function u({...e}){return(0,i.jsx)(a.Group,{"data-slot":`dropdown-menu-group`,...e})}function d({className:e,inset:n,variant:r=`default`,...o}){return(0,i.jsx)(a.Item,{"data-slot":`dropdown-menu-item`,"data-inset":n,"data-variant":r,className:t.cn(`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...o})}function f({className:e,children:r,checked:o,...s}){return(0,i.jsxs)(a.CheckboxItem,{"data-slot":`dropdown-menu-checkbox-item`,className:t.cn(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),checked:o,...s,children:[(0,i.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,i.jsx)(a.ItemIndicator,{children:(0,i.jsx)(n.CheckIcon,{className:`size-4`})})}),r]})}function p({...e}){return(0,i.jsx)(a.RadioGroup,{"data-slot":`dropdown-menu-radio-group`,...e})}function m({className:e,children:r,...o}){return(0,i.jsxs)(a.RadioItem,{"data-slot":`dropdown-menu-radio-item`,className:t.cn(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...o,children:[(0,i.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,i.jsx)(a.ItemIndicator,{children:(0,i.jsx)(n.CircleIcon,{className:`size-2 fill-current`})})}),r]})}function h({className:e,inset:n,...r}){return(0,i.jsx)(a.Label,{"data-slot":`dropdown-menu-label`,"data-inset":n,className:t.cn(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,e),...r})}function g({className:e,...n}){return(0,i.jsx)(a.Separator,{"data-slot":`dropdown-menu-separator`,className:t.cn(`bg-border -mx-1 my-1 h-px`,e),...n})}function _({className:e,...n}){return(0,i.jsx)(`span`,{"data-slot":`dropdown-menu-shortcut`,className:t.cn(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...n})}function v({...e}){return(0,i.jsx)(a.Sub,{"data-slot":`dropdown-menu-sub`,...e})}function y({className:e,inset:r,children:o,...s}){return(0,i.jsxs)(a.SubTrigger,{"data-slot":`dropdown-menu-sub-trigger`,"data-inset":r,className:t.cn(`focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...s,children:[o,(0,i.jsx)(n.ChevronRightIcon,{className:`ml-auto size-4`})]})}function b({className:e,...n}){return(0,i.jsx)(a.SubContent,{"data-slot":`dropdown-menu-sub-content`,className:t.cn(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg`,e),...n})}exports.DropdownMenu=o,exports.DropdownMenuCheckboxItem=f,exports.DropdownMenuContent=l,exports.DropdownMenuGroup=u,exports.DropdownMenuItem=d,exports.DropdownMenuLabel=h,exports.DropdownMenuPortal=s,exports.DropdownMenuRadioGroup=p,exports.DropdownMenuRadioItem=m,exports.DropdownMenuSeparator=g,exports.DropdownMenuShortcut=_,exports.DropdownMenuSub=v,exports.DropdownMenuSubContent=b,exports.DropdownMenuSubTrigger=y,exports.DropdownMenuTrigger=c;
1
+ const e=require("./index2.cjs"),t=require("./index4.cjs");let n=require("lucide-react"),r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime"),a=require("react/compiler-runtime"),o=require("@radix-ui/react-dropdown-menu");o=e.__toESM(o,1);function s(e){let t=(0,a.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,i.jsx)(o.Root,{"data-slot":`dropdown-menu`,...n}),t[2]=n,t[3]=r),r}function c(e){let t=(0,a.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,i.jsx)(o.Portal,{"data-slot":`dropdown-menu-portal`,...n}),t[2]=n,t[3]=r),r}function l(e){let t=(0,a.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,i.jsx)(o.Trigger,{"data-slot":`dropdown-menu-trigger`,...n}),t[2]=n,t[3]=r),r}function u({className:e,sideOffset:n=4,...r}){return(0,i.jsx)(o.Portal,{children:(0,i.jsx)(o.Content,{"data-slot":`dropdown-menu-content`,sideOffset:n,className:t.cn(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md`,e),...r})})}function d(e){let t=(0,a.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,i.jsx)(o.Group,{"data-slot":`dropdown-menu-group`,...n}),t[2]=n,t[3]=r),r}function f({className:e,inset:n,variant:r=`default`,...a}){return(0,i.jsx)(o.Item,{"data-slot":`dropdown-menu-item`,"data-inset":n,"data-variant":r,className:t.cn(`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...a})}function p(e){let r=(0,a.c)(13),s,c,l,u;r[0]===e?(s=r[1],c=r[2],l=r[3],u=r[4]):({className:l,children:c,checked:s,...u}=e,r[0]=e,r[1]=s,r[2]=c,r[3]=l,r[4]=u);let d;r[5]===l?d=r[6]:(d=t.cn(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,l),r[5]=l,r[6]=d);let f;r[7]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,i.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,i.jsx)(o.ItemIndicator,{children:(0,i.jsx)(n.CheckIcon,{className:`size-4`})})}),r[7]=f):f=r[7];let p;return r[8]!==s||r[9]!==c||r[10]!==u||r[11]!==d?(p=(0,i.jsxs)(o.CheckboxItem,{"data-slot":`dropdown-menu-checkbox-item`,className:d,checked:s,...u,children:[f,c]}),r[8]=s,r[9]=c,r[10]=u,r[11]=d,r[12]=p):p=r[12],p}function m(e){let t=(0,a.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,i.jsx)(o.RadioGroup,{"data-slot":`dropdown-menu-radio-group`,...n}),t[2]=n,t[3]=r),r}function h(e){let r=(0,a.c)(11),s,c,l;r[0]===e?(s=r[1],c=r[2],l=r[3]):({className:c,children:s,...l}=e,r[0]=e,r[1]=s,r[2]=c,r[3]=l);let u;r[4]===c?u=r[5]:(u=t.cn(`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,c),r[4]=c,r[5]=u);let d;r[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,i.jsx)(`span`,{className:`pointer-events-none absolute left-2 flex size-3.5 items-center justify-center`,children:(0,i.jsx)(o.ItemIndicator,{children:(0,i.jsx)(n.CircleIcon,{className:`size-2 fill-current`})})}),r[6]=d):d=r[6];let f;return r[7]!==s||r[8]!==l||r[9]!==u?(f=(0,i.jsxs)(o.RadioItem,{"data-slot":`dropdown-menu-radio-item`,className:u,...l,children:[d,s]}),r[7]=s,r[8]=l,r[9]=u,r[10]=f):f=r[10],f}function g(e){let n=(0,a.c)(10),r,s,c;n[0]===e?(r=n[1],s=n[2],c=n[3]):({className:r,inset:s,...c}=e,n[0]=e,n[1]=r,n[2]=s,n[3]=c);let l;n[4]===r?l=n[5]:(l=t.cn(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,r),n[4]=r,n[5]=l);let u;return n[6]!==s||n[7]!==c||n[8]!==l?(u=(0,i.jsx)(o.Label,{"data-slot":`dropdown-menu-label`,"data-inset":s,className:l,...c}),n[6]=s,n[7]=c,n[8]=l,n[9]=u):u=n[9],u}function _(e){let n=(0,a.c)(8),r,s;n[0]===e?(r=n[1],s=n[2]):({className:r,...s}=e,n[0]=e,n[1]=r,n[2]=s);let c;n[3]===r?c=n[4]:(c=t.cn(`bg-border -mx-1 my-1 h-px`,r),n[3]=r,n[4]=c);let l;return n[5]!==s||n[6]!==c?(l=(0,i.jsx)(o.Separator,{"data-slot":`dropdown-menu-separator`,className:c,...s}),n[5]=s,n[6]=c,n[7]=l):l=n[7],l}function v(e){let n=(0,a.c)(8),r,o;n[0]===e?(r=n[1],o=n[2]):({className:r,...o}=e,n[0]=e,n[1]=r,n[2]=o);let s;n[3]===r?s=n[4]:(s=t.cn(`text-muted-foreground ml-auto text-xs tracking-widest`,r),n[3]=r,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,i.jsx)(`span`,{"data-slot":`dropdown-menu-shortcut`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function y(e){let t=(0,a.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,i.jsx)(o.Sub,{"data-slot":`dropdown-menu-sub`,...n}),t[2]=n,t[3]=r),r}function b(e){let r=(0,a.c)(13),s,c,l,u;r[0]===e?(s=r[1],c=r[2],l=r[3],u=r[4]):({className:c,inset:l,children:s,...u}=e,r[0]=e,r[1]=s,r[2]=c,r[3]=l,r[4]=u);let d;r[5]===c?d=r[6]:(d=t.cn(`focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,c),r[5]=c,r[6]=d);let f;r[7]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,i.jsx)(n.ChevronRightIcon,{className:`ml-auto size-4`}),r[7]=f):f=r[7];let p;return r[8]!==s||r[9]!==l||r[10]!==u||r[11]!==d?(p=(0,i.jsxs)(o.SubTrigger,{"data-slot":`dropdown-menu-sub-trigger`,"data-inset":l,className:d,...u,children:[s,f]}),r[8]=s,r[9]=l,r[10]=u,r[11]=d,r[12]=p):p=r[12],p}function x(e){let n=(0,a.c)(8),r,s;n[0]===e?(r=n[1],s=n[2]):({className:r,...s}=e,n[0]=e,n[1]=r,n[2]=s);let c;n[3]===r?c=n[4]:(c=t.cn(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg`,r),n[3]=r,n[4]=c);let l;return n[5]!==s||n[6]!==c?(l=(0,i.jsx)(o.SubContent,{"data-slot":`dropdown-menu-sub-content`,className:c,...s}),n[5]=s,n[6]=c,n[7]=l):l=n[7],l}exports.DropdownMenu=s,exports.DropdownMenuCheckboxItem=p,exports.DropdownMenuContent=u,exports.DropdownMenuGroup=d,exports.DropdownMenuItem=f,exports.DropdownMenuLabel=g,exports.DropdownMenuPortal=c,exports.DropdownMenuRadioGroup=m,exports.DropdownMenuRadioItem=h,exports.DropdownMenuSeparator=_,exports.DropdownMenuShortcut=v,exports.DropdownMenuSub=y,exports.DropdownMenuSubContent=x,exports.DropdownMenuSubTrigger=b,exports.DropdownMenuTrigger=l;
package/dist/index79.js CHANGED
@@ -1,14 +1,20 @@
1
1
  import { cn as e } from "./index3.js";
2
2
  import "react";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
- import * as n from "@radix-ui/react-label";
4
+ import { c as n } from "react/compiler-runtime";
5
+ import * as r from "@radix-ui/react-label";
5
6
  //#region src/ui/label.tsx
6
- function r({ className: r, ...i }) {
7
- return /* @__PURE__ */ t(n.Root, {
7
+ function i(i) {
8
+ let a = n(8), o, s;
9
+ a[0] === i ? (o = a[1], s = a[2]) : ({className: o, ...s} = i, a[0] = i, a[1] = o, a[2] = s);
10
+ let c;
11
+ a[3] === o ? c = a[4] : (c = e("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", o), a[3] = o, a[4] = c);
12
+ let l;
13
+ return a[5] !== s || a[6] !== c ? (l = /* @__PURE__ */ t(r.Root, {
8
14
  "data-slot": "label",
9
- className: e("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", r),
10
- ...i
11
- });
15
+ className: c,
16
+ ...s
17
+ }), a[5] = s, a[6] = c, a[7] = l) : l = a[7], l;
12
18
  }
13
19
  //#endregion
14
- export { r as Label };
20
+ export { i as Label };
package/dist/index80.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index2.cjs"),t=require("./index4.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime"),i=require("@radix-ui/react-label");i=e.__toESM(i,1);function a({className:e,...n}){return(0,r.jsx)(i.Root,{"data-slot":`label`,className:t.cn(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...n})}exports.Label=a;
1
+ const e=require("./index2.cjs"),t=require("./index4.cjs");let n=require("react");n=e.__toESM(n,1);let r=require("react/jsx-runtime"),i=require("react/compiler-runtime"),a=require("@radix-ui/react-label");a=e.__toESM(a,1);function o(e){let n=(0,i.c)(8),o,s;n[0]===e?(o=n[1],s=n[2]):({className:o,...s}=e,n[0]=e,n[1]=o,n[2]=s);let c;n[3]===o?c=n[4]:(c=t.cn(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,o),n[3]=o,n[4]=c);let l;return n[5]!==s||n[6]!==c?(l=(0,r.jsx)(a.Root,{"data-slot":`label`,className:c,...s}),n[5]=s,n[6]=c,n[7]=l):l=n[7],l}exports.Label=o;
package/dist/index81.js CHANGED
@@ -1,31 +1,42 @@
1
1
  import { cn as e } from "./index3.js";
2
2
  import { Label as t } from "./index79.js";
3
3
  import { Separator as n } from "./index80.js";
4
- import { useMemo as r } from "react";
5
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
+ import "react";
5
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
6
+ import { c as a } from "react/compiler-runtime";
6
7
  import { cva as o } from "class-variance-authority";
7
8
  //#region src/ui/field.tsx
8
- function s({ className: t, ...n }) {
9
- return /* @__PURE__ */ i("fieldset", {
9
+ function s(t) {
10
+ let n = a(8), i, o;
11
+ n[0] === t ? (i = n[1], o = n[2]) : ({className: i, ...o} = t, n[0] = t, n[1] = i, n[2] = o);
12
+ let s;
13
+ n[3] === i ? s = n[4] : (s = e("flex flex-col gap-6", "has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", i), n[3] = i, n[4] = s);
14
+ let c;
15
+ return n[5] !== o || n[6] !== s ? (c = /* @__PURE__ */ r("fieldset", {
10
16
  "data-slot": "field-set",
11
- className: e("flex flex-col gap-6", "has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", t),
12
- ...n
13
- });
17
+ className: s,
18
+ ...o
19
+ }), n[5] = o, n[6] = s, n[7] = c) : c = n[7], c;
14
20
  }
15
- function c({ className: t, variant: n = "legend", ...r }) {
16
- return /* @__PURE__ */ i("legend", {
21
+ function c({ className: t, variant: n = "legend", ...i }) {
22
+ return /* @__PURE__ */ r("legend", {
17
23
  "data-slot": "field-legend",
18
24
  "data-variant": n,
19
25
  className: e("mb-3 font-medium", "data-[variant=legend]:text-base", "data-[variant=label]:text-sm", t),
20
- ...r
26
+ ...i
21
27
  });
22
28
  }
23
- function l({ className: t, ...n }) {
24
- return /* @__PURE__ */ i("div", {
29
+ function l(t) {
30
+ let n = a(8), i, o;
31
+ n[0] === t ? (i = n[1], o = n[2]) : ({className: i, ...o} = t, n[0] = t, n[1] = i, n[2] = o);
32
+ let s;
33
+ n[3] === i ? s = n[4] : (s = e("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4", i), n[3] = i, n[4] = s);
34
+ let c;
35
+ return n[5] !== o || n[6] !== s ? (c = /* @__PURE__ */ r("div", {
25
36
  "data-slot": "field-group",
26
- className: e("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4", t),
27
- ...n
28
- });
37
+ className: s,
38
+ ...o
39
+ }), n[5] = o, n[6] = s, n[7] = c) : c = n[7], c;
29
40
  }
30
41
  var u = o("group/field flex w-full gap-3 data-[invalid=true]:text-destructive", {
31
42
  variants: { orientation: {
@@ -43,73 +54,129 @@ var u = o("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",
43
54
  } },
44
55
  defaultVariants: { orientation: "vertical" }
45
56
  });
46
- function d({ className: t, orientation: n = "vertical", ...r }) {
47
- return /* @__PURE__ */ i("div", {
57
+ function d({ className: t, orientation: n = "vertical", ...i }) {
58
+ return /* @__PURE__ */ r("div", {
48
59
  role: "group",
49
60
  "data-slot": "field",
50
61
  "data-orientation": n,
51
62
  className: e(u({ orientation: n }), t),
52
- ...r
63
+ ...i
53
64
  });
54
65
  }
55
- function f({ className: t, ...n }) {
56
- return /* @__PURE__ */ i("div", {
66
+ function f(t) {
67
+ let n = a(8), i, o;
68
+ n[0] === t ? (i = n[1], o = n[2]) : ({className: i, ...o} = t, n[0] = t, n[1] = i, n[2] = o);
69
+ let s;
70
+ n[3] === i ? s = n[4] : (s = e("group/field-content flex flex-1 flex-col gap-1.5 leading-snug", i), n[3] = i, n[4] = s);
71
+ let c;
72
+ return n[5] !== o || n[6] !== s ? (c = /* @__PURE__ */ r("div", {
57
73
  "data-slot": "field-content",
58
- className: e("group/field-content flex flex-1 flex-col gap-1.5 leading-snug", t),
59
- ...n
60
- });
74
+ className: s,
75
+ ...o
76
+ }), n[5] = o, n[6] = s, n[7] = c) : c = n[7], c;
61
77
  }
62
- function p({ className: n, ...r }) {
63
- return /* @__PURE__ */ i(t, {
78
+ function p(n) {
79
+ let i = a(8), o, s;
80
+ i[0] === n ? (o = i[1], s = i[2]) : ({className: o, ...s} = n, i[0] = n, i[1] = o, i[2] = s);
81
+ let c;
82
+ i[3] === o ? c = i[4] : (c = e("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4", "has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10", o), i[3] = o, i[4] = c);
83
+ let l;
84
+ return i[5] !== s || i[6] !== c ? (l = /* @__PURE__ */ r(t, {
64
85
  "data-slot": "field-label",
65
- className: e("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4", "has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10", n),
66
- ...r
67
- });
86
+ className: c,
87
+ ...s
88
+ }), i[5] = s, i[6] = c, i[7] = l) : l = i[7], l;
68
89
  }
69
- function m({ className: t, ...n }) {
70
- return /* @__PURE__ */ i("div", {
90
+ function m(t) {
91
+ let n = a(8), i, o;
92
+ n[0] === t ? (i = n[1], o = n[2]) : ({className: i, ...o} = t, n[0] = t, n[1] = i, n[2] = o);
93
+ let s;
94
+ n[3] === i ? s = n[4] : (s = e("flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50", i), n[3] = i, n[4] = s);
95
+ let c;
96
+ return n[5] !== o || n[6] !== s ? (c = /* @__PURE__ */ r("div", {
71
97
  "data-slot": "field-label",
72
- className: e("flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50", t),
73
- ...n
74
- });
98
+ className: s,
99
+ ...o
100
+ }), n[5] = o, n[6] = s, n[7] = c) : c = n[7], c;
75
101
  }
76
- function h({ className: t, ...n }) {
77
- return /* @__PURE__ */ i("p", {
102
+ function h(t) {
103
+ let n = a(8), i, o;
104
+ n[0] === t ? (i = n[1], o = n[2]) : ({className: i, ...o} = t, n[0] = t, n[1] = i, n[2] = o);
105
+ let s;
106
+ n[3] === i ? s = n[4] : (s = e("text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance", "last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5", "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", i), n[3] = i, n[4] = s);
107
+ let c;
108
+ return n[5] !== o || n[6] !== s ? (c = /* @__PURE__ */ r("p", {
78
109
  "data-slot": "field-description",
79
- className: e("text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance", "last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5", "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", t),
80
- ...n
81
- });
110
+ className: s,
111
+ ...o
112
+ }), n[5] = o, n[6] = s, n[7] = c) : c = n[7], c;
82
113
  }
83
- function g({ children: t, className: r, ...o }) {
84
- return /* @__PURE__ */ a("div", {
114
+ function g(t) {
115
+ let o = a(14), s, c, l;
116
+ o[0] === t ? (s = o[1], c = o[2], l = o[3]) : ({children: s, className: c, ...l} = t, o[0] = t, o[1] = s, o[2] = c, o[3] = l);
117
+ let u = !!s, d;
118
+ o[4] === c ? d = o[5] : (d = e("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", c), o[4] = c, o[5] = d);
119
+ let f;
120
+ o[6] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ r(n, { className: "absolute inset-0 top-1/2" }), o[6] = f) : f = o[6];
121
+ let p;
122
+ o[7] === s ? p = o[8] : (p = s && /* @__PURE__ */ r("span", {
123
+ className: "bg-background text-muted-foreground relative mx-auto block w-fit px-2",
124
+ "data-slot": "field-separator-content",
125
+ children: s
126
+ }), o[7] = s, o[8] = p);
127
+ let m;
128
+ return o[9] !== l || o[10] !== u || o[11] !== d || o[12] !== p ? (m = /* @__PURE__ */ i("div", {
85
129
  "data-slot": "field-separator",
86
- "data-content": !!t,
87
- className: e("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", r),
88
- ...o,
89
- children: [/* @__PURE__ */ i(n, { className: "absolute inset-0 top-1/2" }), t && /* @__PURE__ */ i("span", {
90
- className: "bg-background text-muted-foreground relative mx-auto block w-fit px-2",
91
- "data-slot": "field-separator-content",
92
- children: t
93
- })]
94
- });
130
+ "data-content": u,
131
+ className: d,
132
+ ...l,
133
+ children: [f, p]
134
+ }), o[9] = l, o[10] = u, o[11] = d, o[12] = p, o[13] = m) : m = o[13], m;
95
135
  }
96
- function _({ className: t, children: n, errors: a, ...o }) {
97
- let s = r(() => {
98
- if (n) return n;
99
- if (!a?.length) return null;
100
- let e = [...new Map(a.map((e) => [e?.message, e])).values()];
101
- return e?.length == 1 ? e[0]?.message : /* @__PURE__ */ i("ul", {
136
+ function _(t) {
137
+ let n = a(15), i, o, s, c;
138
+ n[0] === t ? (i = n[1], o = n[2], s = n[3], c = n[4]) : ({className: o, children: i, errors: s, ...c} = t, n[0] = t, n[1] = i, n[2] = o, n[3] = s, n[4] = c);
139
+ let l;
140
+ bb0: {
141
+ if (i) {
142
+ l = i;
143
+ break bb0;
144
+ }
145
+ if (!s?.length) {
146
+ l = null;
147
+ break bb0;
148
+ }
149
+ let e;
150
+ n[5] === s ? e = n[6] : (e = [...new Map(s.map(y)).values()], n[5] = s, n[6] = e);
151
+ let t = e;
152
+ if (t?.length == 1) {
153
+ l = t[0]?.message;
154
+ break bb0;
155
+ }
156
+ let a;
157
+ n[7] === t ? a = n[8] : (a = /* @__PURE__ */ r("ul", {
102
158
  className: "ml-4 flex list-disc flex-col gap-1",
103
- children: e.map((e, t) => e?.message && /* @__PURE__ */ i("li", { children: e.message }, t))
104
- });
105
- }, [n, a]);
106
- return s ? /* @__PURE__ */ i("div", {
159
+ children: t.map(v)
160
+ }), n[7] = t, n[8] = a), l = a;
161
+ }
162
+ let u = l;
163
+ if (!u) return null;
164
+ let d;
165
+ n[9] === o ? d = n[10] : (d = e("text-destructive text-sm font-normal", o), n[9] = o, n[10] = d);
166
+ let f;
167
+ return n[11] !== u || n[12] !== c || n[13] !== d ? (f = /* @__PURE__ */ r("div", {
107
168
  role: "alert",
108
169
  "data-slot": "field-error",
109
- className: e("text-destructive text-sm font-normal", t),
110
- ...o,
111
- children: s
112
- }) : null;
170
+ className: d,
171
+ ...c,
172
+ children: u
173
+ }), n[11] = u, n[12] = c, n[13] = d, n[14] = f) : f = n[14], f;
174
+ }
175
+ function v(e, t) {
176
+ return e?.message && /* @__PURE__ */ r("li", { children: e.message }, t);
177
+ }
178
+ function y(e) {
179
+ return [e?.message, e];
113
180
  }
114
181
  //#endregion
115
182
  export { d as Field, f as FieldContent, h as FieldDescription, _ as FieldError, l as FieldGroup, p as FieldLabel, c as FieldLegend, g as FieldSeparator, s as FieldSet, m as FieldTitle };
package/dist/index82.cjs CHANGED
@@ -1 +1 @@
1
- const e=require("./index4.cjs"),t=require("./index80.cjs"),n=require("./index81.cjs");let r=require("react"),i=require("react/jsx-runtime"),a=require("class-variance-authority");function o({className:t,...n}){return(0,i.jsx)(`fieldset`,{"data-slot":`field-set`,className:e.cn(`flex flex-col gap-6`,`has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3`,t),...n})}function s({className:t,variant:n=`legend`,...r}){return(0,i.jsx)(`legend`,{"data-slot":`field-legend`,"data-variant":n,className:e.cn(`mb-3 font-medium`,`data-[variant=legend]:text-base`,`data-[variant=label]:text-sm`,t),...r})}function c({className:t,...n}){return(0,i.jsx)(`div`,{"data-slot":`field-group`,className:e.cn(`group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4`,t),...n})}var l=(0,a.cva)(`group/field flex w-full gap-3 data-[invalid=true]:text-destructive`,{variants:{orientation:{vertical:[`flex-col [&>*]:w-full [&>.sr-only]:w-auto`],horizontal:[`flex-row items-center`,`[&>[data-slot=field-label]]:flex-auto`,`has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`],responsive:[`flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto`,`@md/field-group:[&>[data-slot=field-label]]:flex-auto`,`@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`]}},defaultVariants:{orientation:`vertical`}});function u({className:t,orientation:n=`vertical`,...r}){return(0,i.jsx)(`div`,{role:`group`,"data-slot":`field`,"data-orientation":n,className:e.cn(l({orientation:n}),t),...r})}function d({className:t,...n}){return(0,i.jsx)(`div`,{"data-slot":`field-content`,className:e.cn(`group/field-content flex flex-1 flex-col gap-1.5 leading-snug`,t),...n})}function f({className:n,...r}){return(0,i.jsx)(t.Label,{"data-slot":`field-label`,className:e.cn(`group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50`,`has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4`,`has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10`,n),...r})}function p({className:t,...n}){return(0,i.jsx)(`div`,{"data-slot":`field-label`,className:e.cn(`flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50`,t),...n})}function m({className:t,...n}){return(0,i.jsx)(`p`,{"data-slot":`field-description`,className:e.cn(`text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance`,`last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5`,`[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,t),...n})}function h({children:t,className:r,...a}){return(0,i.jsxs)(`div`,{"data-slot":`field-separator`,"data-content":!!t,className:e.cn(`relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2`,r),...a,children:[(0,i.jsx)(n.Separator,{className:`absolute inset-0 top-1/2`}),t&&(0,i.jsx)(`span`,{className:`bg-background text-muted-foreground relative mx-auto block w-fit px-2`,"data-slot":`field-separator-content`,children:t})]})}function g({className:t,children:n,errors:a,...o}){let s=(0,r.useMemo)(()=>{if(n)return n;if(!a?.length)return null;let e=[...new Map(a.map(e=>[e?.message,e])).values()];return e?.length==1?e[0]?.message:(0,i.jsx)(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:e.map((e,t)=>e?.message&&(0,i.jsx)(`li`,{children:e.message},t))})},[n,a]);return s?(0,i.jsx)(`div`,{role:`alert`,"data-slot":`field-error`,className:e.cn(`text-destructive text-sm font-normal`,t),...o,children:s}):null}exports.Field=u,exports.FieldContent=d,exports.FieldDescription=m,exports.FieldError=g,exports.FieldGroup=c,exports.FieldLabel=f,exports.FieldLegend=s,exports.FieldSeparator=h,exports.FieldSet=o,exports.FieldTitle=p;
1
+ const e=require("./index4.cjs"),t=require("./index80.cjs"),n=require("./index81.cjs");require("react");let r=require("react/jsx-runtime"),i=require("react/compiler-runtime"),a=require("class-variance-authority");function o(t){let n=(0,i.c)(8),a,o;n[0]===t?(a=n[1],o=n[2]):({className:a,...o}=t,n[0]=t,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=e.cn(`flex flex-col gap-6`,`has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,r.jsx)(`fieldset`,{"data-slot":`field-set`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function s({className:t,variant:n=`legend`,...i}){return(0,r.jsx)(`legend`,{"data-slot":`field-legend`,"data-variant":n,className:e.cn(`mb-3 font-medium`,`data-[variant=legend]:text-base`,`data-[variant=label]:text-sm`,t),...i})}function c(t){let n=(0,i.c)(8),a,o;n[0]===t?(a=n[1],o=n[2]):({className:a,...o}=t,n[0]=t,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=e.cn(`group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,r.jsx)(`div`,{"data-slot":`field-group`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}var l=(0,a.cva)(`group/field flex w-full gap-3 data-[invalid=true]:text-destructive`,{variants:{orientation:{vertical:[`flex-col [&>*]:w-full [&>.sr-only]:w-auto`],horizontal:[`flex-row items-center`,`[&>[data-slot=field-label]]:flex-auto`,`has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`],responsive:[`flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto`,`@md/field-group:[&>[data-slot=field-label]]:flex-auto`,`@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`]}},defaultVariants:{orientation:`vertical`}});function u({className:t,orientation:n=`vertical`,...i}){return(0,r.jsx)(`div`,{role:`group`,"data-slot":`field`,"data-orientation":n,className:e.cn(l({orientation:n}),t),...i})}function d(t){let n=(0,i.c)(8),a,o;n[0]===t?(a=n[1],o=n[2]):({className:a,...o}=t,n[0]=t,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=e.cn(`group/field-content flex flex-1 flex-col gap-1.5 leading-snug`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,r.jsx)(`div`,{"data-slot":`field-content`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function f(n){let a=(0,i.c)(8),o,s;a[0]===n?(o=a[1],s=a[2]):({className:o,...s}=n,a[0]=n,a[1]=o,a[2]=s);let c;a[3]===o?c=a[4]:(c=e.cn(`group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50`,`has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4`,`has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10`,o),a[3]=o,a[4]=c);let l;return a[5]!==s||a[6]!==c?(l=(0,r.jsx)(t.Label,{"data-slot":`field-label`,className:c,...s}),a[5]=s,a[6]=c,a[7]=l):l=a[7],l}function p(t){let n=(0,i.c)(8),a,o;n[0]===t?(a=n[1],o=n[2]):({className:a,...o}=t,n[0]=t,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=e.cn(`flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,r.jsx)(`div`,{"data-slot":`field-label`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function m(t){let n=(0,i.c)(8),a,o;n[0]===t?(a=n[1],o=n[2]):({className:a,...o}=t,n[0]=t,n[1]=a,n[2]=o);let s;n[3]===a?s=n[4]:(s=e.cn(`text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance`,`last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5`,`[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,a),n[3]=a,n[4]=s);let c;return n[5]!==o||n[6]!==s?(c=(0,r.jsx)(`p`,{"data-slot":`field-description`,className:s,...o}),n[5]=o,n[6]=s,n[7]=c):c=n[7],c}function h(t){let a=(0,i.c)(14),o,s,c;a[0]===t?(o=a[1],s=a[2],c=a[3]):({children:o,className:s,...c}=t,a[0]=t,a[1]=o,a[2]=s,a[3]=c);let l=!!o,u;a[4]===s?u=a[5]:(u=e.cn(`relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2`,s),a[4]=s,a[5]=u);let d;a[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,r.jsx)(n.Separator,{className:`absolute inset-0 top-1/2`}),a[6]=d):d=a[6];let f;a[7]===o?f=a[8]:(f=o&&(0,r.jsx)(`span`,{className:`bg-background text-muted-foreground relative mx-auto block w-fit px-2`,"data-slot":`field-separator-content`,children:o}),a[7]=o,a[8]=f);let p;return a[9]!==c||a[10]!==l||a[11]!==u||a[12]!==f?(p=(0,r.jsxs)(`div`,{"data-slot":`field-separator`,"data-content":l,className:u,...c,children:[d,f]}),a[9]=c,a[10]=l,a[11]=u,a[12]=f,a[13]=p):p=a[13],p}function g(t){let n=(0,i.c)(15),a,o,s,c;n[0]===t?(a=n[1],o=n[2],s=n[3],c=n[4]):({className:o,children:a,errors:s,...c}=t,n[0]=t,n[1]=a,n[2]=o,n[3]=s,n[4]=c);let l;bb0:{if(a){l=a;break bb0}if(!s?.length){l=null;break bb0}let e;n[5]===s?e=n[6]:(e=[...new Map(s.map(v)).values()],n[5]=s,n[6]=e);let t=e;if(t?.length==1){l=t[0]?.message;break bb0}let i;n[7]===t?i=n[8]:(i=(0,r.jsx)(`ul`,{className:`ml-4 flex list-disc flex-col gap-1`,children:t.map(_)}),n[7]=t,n[8]=i),l=i}let u=l;if(!u)return null;let d;n[9]===o?d=n[10]:(d=e.cn(`text-destructive text-sm font-normal`,o),n[9]=o,n[10]=d);let f;return n[11]!==u||n[12]!==c||n[13]!==d?(f=(0,r.jsx)(`div`,{role:`alert`,"data-slot":`field-error`,className:d,...c,children:u}),n[11]=u,n[12]=c,n[13]=d,n[14]=f):f=n[14],f}function _(e,t){return e?.message&&(0,r.jsx)(`li`,{children:e.message},t)}function v(e){return[e?.message,e]}exports.Field=u,exports.FieldContent=d,exports.FieldDescription=m,exports.FieldError=g,exports.FieldGroup=c,exports.FieldLabel=f,exports.FieldLegend=s,exports.FieldSeparator=h,exports.FieldSet=o,exports.FieldTitle=p;