@krak-stack/registry 0.11.3 → 0.11.5

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 (173) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +23 -9
  3. package/dist/components/agent/react.js +226 -1072
  4. package/dist/components/app-switcher/html.js +10 -53
  5. package/dist/components/app-switcher/react.js +29 -139
  6. package/dist/components/async-action-button/html.js +3 -34
  7. package/dist/components/async-action-button/react.d.ts +1 -1
  8. package/dist/components/async-action-button/react.js +8 -54
  9. package/dist/components/audit-log-table/react.js +555 -1265
  10. package/dist/components/bulk-list-input/html.js +3 -40
  11. package/dist/components/bulk-list-input/react.d.ts +1 -1
  12. package/dist/components/bulk-list-input/react.js +6 -59
  13. package/dist/components/code-block/html.js +1 -35
  14. package/dist/components/code-block/react.js +12 -59
  15. package/dist/components/color-input/html.js +2 -19
  16. package/dist/components/color-input/react.js +6 -97
  17. package/dist/components/copy-button/html.js +1 -35
  18. package/dist/components/copy-button/react.d.ts +1 -1
  19. package/dist/components/copy-button/react.js +7 -54
  20. package/dist/components/copy-value/html.js +11 -52
  21. package/dist/components/copy-value/react.js +25 -165
  22. package/dist/components/cron-input/html.js +2 -18
  23. package/dist/components/cron-input/react.js +15 -30
  24. package/dist/components/danger-confirmation/html.js +11 -57
  25. package/dist/components/danger-confirmation/react.js +26 -187
  26. package/dist/components/data-table/html.d.ts +12 -12
  27. package/dist/components/data-table/html.js +200 -174
  28. package/dist/components/data-table/react.js +549 -1259
  29. package/dist/components/date-input/html.js +19 -74
  30. package/dist/components/date-input/react.d.ts +1 -1
  31. package/dist/components/date-input/react.js +28 -313
  32. package/dist/components/docs/classes.d.ts +15 -0
  33. package/dist/components/docs/html.d.ts +55 -0
  34. package/dist/components/docs/html.js +837 -0
  35. package/dist/components/docs/index.d.ts +49 -0
  36. package/dist/components/docs/react.d.ts +10 -0
  37. package/dist/components/docs/react.js +949 -0
  38. package/dist/components/docs/schema.d.ts +49 -0
  39. package/dist/components/editable-text/html.js +6 -52
  40. package/dist/components/editable-text/react.js +13 -83
  41. package/dist/components/editing-locale-switcher/html.d.ts +2 -2
  42. package/dist/components/editing-locale-switcher/html.js +13 -43
  43. package/dist/components/editing-locale-switcher/react.js +17 -141
  44. package/dist/components/effect-form/react.js +249 -812
  45. package/dist/components/email-composer/react.js +62 -279
  46. package/dist/components/email-editor/html.js +13 -58
  47. package/dist/components/email-editor/react.js +187 -483
  48. package/dist/components/error-component/html.js +2 -47
  49. package/dist/components/error-component/react.js +33 -137
  50. package/dist/components/file-input/html.js +9 -40
  51. package/dist/components/file-input/react.js +39 -208
  52. package/dist/components/form/react.js +212 -777
  53. package/dist/components/hint/react.d.ts +15 -0
  54. package/dist/components/hint/react.js +133 -0
  55. package/dist/components/icon-input/html.js +9 -56
  56. package/dist/components/icon-input/react.js +43 -143
  57. package/dist/components/image-crop-editor/html.js +1 -35
  58. package/dist/components/image-crop-editor/react.js +21 -66
  59. package/dist/components/locale-switcher/html.js +8 -55
  60. package/dist/components/locale-switcher/react.js +21 -146
  61. package/dist/components/map-menu/html.d.ts +8 -8
  62. package/dist/components/map-menu/html.js +13 -72
  63. package/dist/components/map-menu/react.js +92 -309
  64. package/dist/components/markdown/html.js +1 -35
  65. package/dist/components/markdown/react.js +20 -64
  66. package/dist/components/notification-menu/html.js +14 -50
  67. package/dist/components/notification-menu/react.js +73 -343
  68. package/dist/components/pagination/html.js +17 -73
  69. package/dist/components/pagination/react.js +37 -200
  70. package/dist/components/phone-number-input/html.js +19 -57
  71. package/dist/components/phone-number-input/react.d.ts +1 -1
  72. package/dist/components/phone-number-input/react.js +43 -142
  73. package/dist/components/presence-transition/index.d.ts +2 -2
  74. package/dist/components/registry-previews/component-example.js +26 -126
  75. package/dist/components/rich-text-editor/html.d.ts +12 -12
  76. package/dist/components/rich-text-editor/html.js +12 -85
  77. package/dist/components/rich-text-editor/react.js +55 -272
  78. package/dist/components/search-menu/classes.d.ts +2 -0
  79. package/dist/components/search-menu/html.d.ts +2 -0
  80. package/dist/components/search-menu/html.js +40 -73
  81. package/dist/components/search-menu/index.d.ts +27 -2
  82. package/dist/components/search-menu/react.d.ts +1 -1
  83. package/dist/components/search-menu/react.js +59 -280
  84. package/dist/components/search-menu/schema.d.ts +1 -0
  85. package/dist/components/select-with-custom-input/html.d.ts +2 -2
  86. package/dist/components/select-with-custom-input/html.js +13 -48
  87. package/dist/components/select-with-custom-input/react.js +22 -146
  88. package/dist/components/sidebar-layout/html.d.ts +16 -6
  89. package/dist/components/sidebar-layout/html.js +83 -69
  90. package/dist/components/sidebar-layout/index.d.ts +16 -0
  91. package/dist/components/sidebar-layout/react.js +105 -698
  92. package/dist/components/stats-card/react.js +13 -58
  93. package/dist/components/support/html.js +14 -69
  94. package/dist/components/support/react.js +74 -320
  95. package/dist/components/theme-switcher/html.js +11 -55
  96. package/dist/components/theme-switcher/react.js +28 -152
  97. package/dist/components/time-input/html.d.ts +2 -2
  98. package/dist/components/time-input/html.js +8 -53
  99. package/dist/components/time-input/react.js +34 -188
  100. package/dist/components/timezone-input/html.js +11 -67
  101. package/dist/components/timezone-input/react.js +41 -143
  102. package/dist/components/toast/html.d.ts +6 -6
  103. package/dist/components/toast/html.js +13 -46
  104. package/dist/components/tracking-notice/react.js +39 -188
  105. package/dist/components/unsaved-changes-guard/html.js +9 -43
  106. package/dist/components/unsaved-changes-guard/react.js +19 -169
  107. package/dist/components/upload-attachment/html.d.ts +4 -4
  108. package/dist/components/upload-attachment/html.js +4 -35
  109. package/dist/components/upload-attachment/react.js +25 -164
  110. package/dist/components/virtualized-combobox/html.js +10 -35
  111. package/dist/components/virtualized-combobox/react.js +28 -129
  112. package/dist/components/webhook-delivery-table/html.js +211 -184
  113. package/dist/components/webhook-delivery-table/react.js +585 -1362
  114. package/dist/lib/docs.integrations.server.js +150 -202
  115. package/dist/lib/docs.js +305 -1085
  116. package/dist/lib/docs.server.js +134 -186
  117. package/dist/lib/documentation-toolkit.js +144 -196
  118. package/dist/services/agent/client/index.js +226 -1072
  119. package/dist/services/notification/client/index.js +73 -343
  120. package/dist/services/notification/public.js +73 -343
  121. package/package.json +4 -8
  122. package/dist/components/effectcn/alert-dialog.d.ts +0 -13
  123. package/dist/components/effectcn/button.d.ts +0 -31
  124. package/dist/components/effectcn/calendar.d.ts +0 -12
  125. package/dist/components/effectcn/checkbox.d.ts +0 -10
  126. package/dist/components/effectcn/combobox.d.ts +0 -25
  127. package/dist/components/effectcn/dialog.d.ts +0 -19
  128. package/dist/components/effectcn/field.d.ts +0 -11
  129. package/dist/components/effectcn/file-drop.d.ts +0 -8
  130. package/dist/components/effectcn/input.d.ts +0 -26
  131. package/dist/components/effectcn/menu.d.ts +0 -85
  132. package/dist/components/effectcn/menubar.d.ts +0 -8
  133. package/dist/components/effectcn/popover.d.ts +0 -18
  134. package/dist/components/effectcn/scroll-area.d.ts +0 -12
  135. package/dist/components/effectcn/select.d.ts +0 -68
  136. package/dist/components/effectcn/toast.d.ts +0 -29
  137. package/dist/components/ui/alert-dialog.d.ts +0 -18
  138. package/dist/components/ui/alert.d.ts +0 -10
  139. package/dist/components/ui/attachment.d.ts +0 -23
  140. package/dist/components/ui/badge.d.ts +0 -7
  141. package/dist/components/ui/bubble.d.ts +0 -16
  142. package/dist/components/ui/button.d.ts +0 -8
  143. package/dist/components/ui/calendar.d.ts +0 -10
  144. package/dist/components/ui/card.d.ts +0 -11
  145. package/dist/components/ui/checkbox.d.ts +0 -3
  146. package/dist/components/ui/collapsible.d.ts +0 -5
  147. package/dist/components/ui/command.d.ts +0 -18
  148. package/dist/components/ui/dialog.d.ts +0 -17
  149. package/dist/components/ui/dropdown-menu.d.ts +0 -29
  150. package/dist/components/ui/empty.d.ts +0 -11
  151. package/dist/components/ui/field.d.ts +0 -24
  152. package/dist/components/ui/input-group.d.ts +0 -17
  153. package/dist/components/ui/input.d.ts +0 -3
  154. package/dist/components/ui/item.d.ts +0 -22
  155. package/dist/components/ui/label.d.ts +0 -3
  156. package/dist/components/ui/menubar.d.ts +0 -29
  157. package/dist/components/ui/message-scroller.d.ts +0 -10
  158. package/dist/components/ui/message.d.ts +0 -10
  159. package/dist/components/ui/popover.d.ts +0 -9
  160. package/dist/components/ui/scroll-area.d.ts +0 -4
  161. package/dist/components/ui/select.d.ts +0 -15
  162. package/dist/components/ui/select.js +0 -159
  163. package/dist/components/ui/separator.d.ts +0 -3
  164. package/dist/components/ui/sheet.d.ts +0 -14
  165. package/dist/components/ui/sidebar.d.ts +0 -63
  166. package/dist/components/ui/skeleton.d.ts +0 -2
  167. package/dist/components/ui/table.d.ts +0 -10
  168. package/dist/components/ui/tabs.d.ts +0 -10
  169. package/dist/components/ui/textarea.d.ts +0 -3
  170. package/dist/components/ui/tooltip.d.ts +0 -6
  171. package/dist/components/ui/trace.d.ts +0 -18
  172. package/dist/lib/effectcn-form.d.ts +0 -3
  173. package/dist/lib/effectcn-form.js +0 -54
@@ -5,164 +5,16 @@ import { Cause, Option, Schema as Schema6 } from "effect";
5
5
  import { HttpClientError } from "effect/http";
6
6
  import { AsyncResult } from "effect/reactivity";
7
7
  import { Languages, Loader2, Plus, Trash } from "lucide-react";
8
-
9
- // ../../src/components/ui/alert-dialog.tsx
10
- import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
11
-
12
- // ../../src/lib/utils.ts
13
- import { cn } from "cn";
14
-
15
- // ../../src/components/ui/button.tsx
16
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
17
- import { cva } from "class-variance-authority";
18
- import { jsx } from "react/jsx-runtime";
19
- var buttonVariants = cva("group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
20
- variants: {
21
- variant: {
22
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
23
- outline: "border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
24
- secondary: "bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
25
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
26
- destructive: "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
27
- link: "text-primary underline-offset-4 hover:underline"
28
- },
29
- size: {
30
- default: "h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
31
- xs: "h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
32
- sm: "h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
33
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
34
- icon: "size-9",
35
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
36
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
37
- "icon-lg": "size-10"
38
- }
39
- },
40
- defaultVariants: {
41
- variant: "default",
42
- size: "default"
43
- }
44
- });
45
- function Button({
46
- className,
47
- variant = "default",
48
- size = "default",
49
- ...props
50
- }) {
51
- return /* @__PURE__ */ jsx(ButtonPrimitive, {
52
- "data-slot": "button",
53
- className: cn(buttonVariants({ variant, size, className })),
54
- ...props
55
- });
56
- }
57
-
58
- // ../../src/components/ui/alert-dialog.tsx
59
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
60
- "use client";
61
- function AlertDialog({ ...props }) {
62
- return /* @__PURE__ */ jsx2(AlertDialogPrimitive.Root, {
63
- "data-slot": "alert-dialog",
64
- ...props
65
- });
66
- }
67
- function AlertDialogPortal({ ...props }) {
68
- return /* @__PURE__ */ jsx2(AlertDialogPrimitive.Portal, {
69
- "data-slot": "alert-dialog-portal",
70
- ...props
71
- });
72
- }
73
- function AlertDialogOverlay({
74
- className,
75
- ...props
76
- }) {
77
- return /* @__PURE__ */ jsx2(AlertDialogPrimitive.Backdrop, {
78
- "data-slot": "alert-dialog-overlay",
79
- className: cn("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", className),
80
- ...props
81
- });
82
- }
83
- function AlertDialogContent({
84
- className,
85
- size = "default",
86
- ...props
87
- }) {
88
- return /* @__PURE__ */ jsxs(AlertDialogPortal, {
89
- children: [
90
- /* @__PURE__ */ jsx2(AlertDialogOverlay, {}),
91
- /* @__PURE__ */ jsx2(AlertDialogPrimitive.Popup, {
92
- "data-slot": "alert-dialog-content",
93
- "data-size": size,
94
- className: cn("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-popover p-6 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
95
- ...props
96
- })
97
- ]
98
- });
99
- }
100
- function AlertDialogHeader({
101
- className,
102
- ...props
103
- }) {
104
- return /* @__PURE__ */ jsx2("div", {
105
- "data-slot": "alert-dialog-header",
106
- className: cn("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", className),
107
- ...props
108
- });
109
- }
110
- function AlertDialogFooter({
111
- className,
112
- ...props
113
- }) {
114
- return /* @__PURE__ */ jsx2("div", {
115
- "data-slot": "alert-dialog-footer",
116
- className: cn("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", className),
117
- ...props
118
- });
119
- }
120
- function AlertDialogTitle({
121
- className,
122
- ...props
123
- }) {
124
- return /* @__PURE__ */ jsx2(AlertDialogPrimitive.Title, {
125
- "data-slot": "alert-dialog-title",
126
- className: cn("text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", className),
127
- ...props
128
- });
129
- }
130
- function AlertDialogDescription({
131
- className,
132
- ...props
133
- }) {
134
- return /* @__PURE__ */ jsx2(AlertDialogPrimitive.Description, {
135
- "data-slot": "alert-dialog-description",
136
- className: cn("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className),
137
- ...props
138
- });
139
- }
140
- function AlertDialogAction({
141
- className,
142
- ...props
143
- }) {
144
- return /* @__PURE__ */ jsx2(Button, {
145
- "data-slot": "alert-dialog-action",
146
- className: cn(className),
147
- ...props
148
- });
149
- }
150
- function AlertDialogCancel({
151
- className,
152
- variant = "outline",
153
- size = "default",
154
- ...props
155
- }) {
156
- return /* @__PURE__ */ jsx2(AlertDialogPrimitive.Close, {
157
- "data-slot": "alert-dialog-cancel",
158
- className: cn(className),
159
- render: /* @__PURE__ */ jsx2(Button, {
160
- variant,
161
- size
162
- }),
163
- ...props
164
- });
165
- }
8
+ import {
9
+ AlertDialog,
10
+ AlertDialogAction,
11
+ AlertDialogCancel,
12
+ AlertDialogContent,
13
+ AlertDialogDescription,
14
+ AlertDialogFooter,
15
+ AlertDialogHeader,
16
+ AlertDialogTitle
17
+ } from "@/components/ui/alert-dialog";
166
18
 
167
19
  // ../../src/components/file-input/react.tsx
168
20
  import {
@@ -173,139 +25,18 @@ import {
173
25
  } from "react";
174
26
  import { CloudUpload, FileIcon, FileUp, ImageUp, Trash2 } from "lucide-react";
175
27
  import { Schema as Schema3 } from "effect";
176
-
177
- // ../../src/components/ui/attachment.tsx
178
- import { mergeProps } from "@base-ui/react/merge-props";
179
- import { useRender } from "@base-ui/react/use-render";
180
- import { cva as cva2 } from "class-variance-authority";
181
- import { jsx as jsx3 } from "react/jsx-runtime";
182
- var attachmentVariants = cva2("group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-xl border bg-card text-card-foreground transition-colors focus-within:ring-1 focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 data-[state=idle]:border-dashed", {
183
- variants: {
184
- size: {
185
- default: "gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2",
186
- sm: "gap-2.5 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5",
187
- xs: "gap-1.5 rounded-lg text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1"
188
- },
189
- orientation: {
190
- horizontal: "min-w-40 items-center",
191
- vertical: "w-24 flex-col has-data-[slot=attachment-content]:w-30"
192
- }
193
- }
194
- });
195
- function Attachment({
196
- className,
197
- state = "done",
198
- size = "default",
199
- orientation = "horizontal",
200
- ...props
201
- }) {
202
- return /* @__PURE__ */ jsx3("div", {
203
- "data-slot": "attachment",
204
- "data-state": state,
205
- "data-size": size,
206
- "data-orientation": orientation,
207
- className: cn(attachmentVariants({ size, orientation }), className),
208
- ...props
209
- });
210
- }
211
- var attachmentMediaVariants = cva2("relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted text-foreground group-data-[orientation=vertical]/attachment:w-full group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5", {
212
- variants: {
213
- variant: {
214
- icon: "",
215
- image: "opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover"
216
- }
217
- },
218
- defaultVariants: {
219
- variant: "icon"
220
- }
221
- });
222
- function AttachmentMedia({
223
- className,
224
- variant = "icon",
225
- ...props
226
- }) {
227
- return /* @__PURE__ */ jsx3("div", {
228
- "data-slot": "attachment-media",
229
- "data-variant": variant,
230
- className: cn(attachmentMediaVariants({ variant }), className),
231
- ...props
232
- });
233
- }
234
- function AttachmentContent({
235
- className,
236
- ...props
237
- }) {
238
- return /* @__PURE__ */ jsx3("div", {
239
- "data-slot": "attachment-content",
240
- className: cn("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", className),
241
- ...props
242
- });
243
- }
244
- function AttachmentTitle({
245
- className,
246
- ...props
247
- }) {
248
- return /* @__PURE__ */ jsx3("span", {
249
- "data-slot": "attachment-title",
250
- className: cn("block max-w-full min-w-0 truncate font-medium group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer", className),
251
- ...props
252
- });
253
- }
254
- function AttachmentDescription({
255
- className,
256
- ...props
257
- }) {
258
- return /* @__PURE__ */ jsx3("span", {
259
- "data-slot": "attachment-description",
260
- className: cn("mt-0.5 block min-w-0 truncate text-xs text-muted-foreground group-data-[state=error]/attachment:text-destructive/80", "max-w-full", className),
261
- ...props
262
- });
263
- }
264
- function AttachmentActions({
265
- className,
266
- ...props
267
- }) {
268
- return /* @__PURE__ */ jsx3("div", {
269
- "data-slot": "attachment-actions",
270
- className: cn("relative z-20 flex shrink-0 items-center group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:right-3 group-data-[orientation=vertical]/attachment:gap-1", className),
271
- ...props
272
- });
273
- }
274
- function AttachmentAction({
275
- className,
276
- variant,
277
- size = "icon-xs",
278
- ...props
279
- }) {
280
- return /* @__PURE__ */ jsx3(Button, {
281
- "data-slot": "attachment-action",
282
- variant: variant ?? "ghost",
283
- size,
284
- className: cn(className),
285
- ...props
286
- });
287
- }
288
- function AttachmentGroup({ className, ...props }) {
289
- return /* @__PURE__ */ jsx3("div", {
290
- "data-slot": "attachment-group",
291
- className: cn("flex min-w-0 scroll-fade-x snap-x snap-mandatory scroll-px-1 scrollbar-none gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start", className),
292
- ...props
293
- });
294
- }
295
-
296
- // ../../src/components/ui/input.tsx
297
- import { Input as InputPrimitive } from "@base-ui/react/input";
298
- import { jsx as jsx4 } from "react/jsx-runtime";
299
- function Input({ className, type, ...props }) {
300
- return /* @__PURE__ */ jsx4(InputPrimitive, {
301
- type,
302
- "data-slot": "input",
303
- className: cn("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", className),
304
- ...props
305
- });
306
- }
307
-
308
- // ../../src/components/file-input/react.tsx
28
+ import {
29
+ Attachment,
30
+ AttachmentAction,
31
+ AttachmentActions,
32
+ AttachmentContent,
33
+ AttachmentDescription,
34
+ AttachmentGroup,
35
+ AttachmentMedia,
36
+ AttachmentTitle
37
+ } from "@/components/ui/attachment";
38
+ import { Button } from "@/components/ui/button";
39
+ import { Input } from "@/components/ui/input";
309
40
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
310
41
 
311
42
  // ../../src/components/file-input/classes.ts
@@ -457,7 +188,7 @@ var filePickerBehaviours = {
457
188
  };
458
189
 
459
190
  // ../../src/components/file-input/react.tsx
460
- import { jsx as jsx5, jsxs as jsxs2, Fragment } from "react/jsx-runtime";
191
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
461
192
  "use client";
462
193
  var FileInput = ({
463
194
  classes: classOverrides,
@@ -513,7 +244,7 @@ var FileInput = ({
513
244
  if (inputRef.current)
514
245
  inputRef.current.value = "";
515
246
  };
516
- const input = /* @__PURE__ */ jsx5(Input, {
247
+ const input = /* @__PURE__ */ jsx(Input, {
517
248
  ref: inputRef,
518
249
  className: "sr-only",
519
250
  id,
@@ -532,10 +263,10 @@ var FileInput = ({
532
263
  "aria-invalid": invalid
533
264
  });
534
265
  if (multiple) {
535
- return /* @__PURE__ */ jsxs2("div", {
266
+ return /* @__PURE__ */ jsxs("div", {
536
267
  className: fileInputClasses.root,
537
268
  children: [
538
- /* @__PURE__ */ jsxs2("div", {
269
+ /* @__PURE__ */ jsxs("div", {
539
270
  className: "bg-muted/30 data-[dragging=true]:bg-muted flex min-h-32 min-w-0 flex-col items-center justify-center gap-3 rounded-xl border border-dashed p-6 text-center transition-colors",
540
271
  "data-dragging": dragging,
541
272
  onDragEnter: (event) => {
@@ -554,28 +285,28 @@ var FileInput = ({
554
285
  onDragOver: (event) => event.preventDefault(),
555
286
  onDrop: handleDrop,
556
287
  children: [
557
- /* @__PURE__ */ jsx5(CloudUpload, {
288
+ /* @__PURE__ */ jsx(CloudUpload, {
558
289
  className: "text-muted-foreground size-6"
559
290
  }),
560
- /* @__PURE__ */ jsxs2("div", {
291
+ /* @__PURE__ */ jsxs("div", {
561
292
  className: "max-w-full min-w-0",
562
293
  children: [
563
- /* @__PURE__ */ jsx5("p", {
294
+ /* @__PURE__ */ jsx("p", {
564
295
  className: "text-sm font-medium",
565
296
  children: labels.dropFiles
566
297
  }),
567
- /* @__PURE__ */ jsx5("p", {
298
+ /* @__PURE__ */ jsx("p", {
568
299
  className: "text-muted-foreground max-w-full text-xs [overflow-wrap:anywhere]",
569
300
  children: labels.accepts(accept)
570
301
  })
571
302
  ]
572
303
  }),
573
- /* @__PURE__ */ jsxs2(Button, {
304
+ /* @__PURE__ */ jsxs(Button, {
574
305
  type: "button",
575
306
  variant: "outline",
576
307
  onClick: () => inputRef.current?.click(),
577
308
  children: [
578
- /* @__PURE__ */ jsx5(FileUp, {
309
+ /* @__PURE__ */ jsx(FileUp, {
579
310
  "data-icon": "inline-start"
580
311
  }),
581
312
  labels.chooseFiles
@@ -584,29 +315,29 @@ var FileInput = ({
584
315
  input
585
316
  ]
586
317
  }),
587
- files.length > 0 ? /* @__PURE__ */ jsx5(AttachmentGroup, {
588
- children: files.map((selectedFile) => /* @__PURE__ */ jsxs2(Attachment, {
318
+ files.length > 0 ? /* @__PURE__ */ jsx(AttachmentGroup, {
319
+ children: files.map((selectedFile) => /* @__PURE__ */ jsxs(Attachment, {
589
320
  state: invalid ? "error" : "idle",
590
321
  children: [
591
- /* @__PURE__ */ jsx5(AttachmentMedia, {
592
- children: /* @__PURE__ */ jsx5(FileIcon, {})
322
+ /* @__PURE__ */ jsx(AttachmentMedia, {
323
+ children: /* @__PURE__ */ jsx(FileIcon, {})
593
324
  }),
594
- /* @__PURE__ */ jsxs2(AttachmentContent, {
325
+ /* @__PURE__ */ jsxs(AttachmentContent, {
595
326
  children: [
596
- /* @__PURE__ */ jsx5(AttachmentTitle, {
327
+ /* @__PURE__ */ jsx(AttachmentTitle, {
597
328
  children: selectedFile.name
598
329
  }),
599
- /* @__PURE__ */ jsx5(AttachmentDescription, {
330
+ /* @__PURE__ */ jsx(AttachmentDescription, {
600
331
  children: fileDescription(selectedFile, locale)
601
332
  })
602
333
  ]
603
334
  }),
604
- /* @__PURE__ */ jsx5(AttachmentActions, {
605
- children: /* @__PURE__ */ jsx5(AttachmentAction, {
335
+ /* @__PURE__ */ jsx(AttachmentActions, {
336
+ children: /* @__PURE__ */ jsx(AttachmentAction, {
606
337
  type: "button",
607
338
  "aria-label": `${labels.deleteFile} ${selectedFile.name}`,
608
339
  onClick: () => onFilesChange?.(files.filter((candidate) => candidate !== selectedFile)),
609
- children: /* @__PURE__ */ jsx5(Trash2, {})
340
+ children: /* @__PURE__ */ jsx(Trash2, {})
610
341
  })
611
342
  })
612
343
  ]
@@ -616,7 +347,7 @@ var FileInput = ({
616
347
  });
617
348
  }
618
349
  if (!selected) {
619
- return /* @__PURE__ */ jsxs2("div", {
350
+ return /* @__PURE__ */ jsxs("div", {
620
351
  className: "bg-muted/30 data-[dragging=true]:bg-muted flex min-h-32 flex-col items-center justify-center gap-3 rounded-xl border border-dashed p-6 text-center transition-colors",
621
352
  "data-dragging": dragging,
622
353
  onDragEnter: (event) => {
@@ -635,27 +366,27 @@ var FileInput = ({
635
366
  onDragOver: (event) => event.preventDefault(),
636
367
  onDrop: handleDrop,
637
368
  children: [
638
- /* @__PURE__ */ jsx5(CloudUpload, {
369
+ /* @__PURE__ */ jsx(CloudUpload, {
639
370
  className: "text-muted-foreground size-6"
640
371
  }),
641
- /* @__PURE__ */ jsxs2("div", {
372
+ /* @__PURE__ */ jsxs("div", {
642
373
  children: [
643
- /* @__PURE__ */ jsx5("p", {
374
+ /* @__PURE__ */ jsx("p", {
644
375
  className: "text-sm font-medium",
645
376
  children: labels.dropFile
646
377
  }),
647
- /* @__PURE__ */ jsx5("p", {
378
+ /* @__PURE__ */ jsx("p", {
648
379
  className: "text-muted-foreground text-xs",
649
380
  children: labels.accepts(accept)
650
381
  })
651
382
  ]
652
383
  }),
653
- /* @__PURE__ */ jsxs2(Button, {
384
+ /* @__PURE__ */ jsxs(Button, {
654
385
  type: "button",
655
386
  variant: "outline",
656
387
  onClick: () => inputRef.current?.click(),
657
388
  children: [
658
- /* @__PURE__ */ jsx5(FileUp, {
389
+ /* @__PURE__ */ jsx(FileUp, {
659
390
  "data-icon": "inline-start"
660
391
  }),
661
392
  labels.chooseFile
@@ -665,53 +396,53 @@ var FileInput = ({
665
396
  ]
666
397
  });
667
398
  }
668
- return /* @__PURE__ */ jsxs2(Fragment, {
399
+ return /* @__PURE__ */ jsxs(Fragment, {
669
400
  children: [
670
- /* @__PURE__ */ jsxs2(Attachment, {
401
+ /* @__PURE__ */ jsxs(Attachment, {
671
402
  className: "w-full",
672
403
  orientation: "horizontal",
673
404
  state: invalid ? "error" : "done",
674
405
  children: [
675
- /* @__PURE__ */ jsx5(AttachmentMedia, {
406
+ /* @__PURE__ */ jsx(AttachmentMedia, {
676
407
  variant: image ? "image" : "icon",
677
408
  className: image ? "aspect-auto max-w-full border [&_img]:aspect-auto! [&_img]:object-contain!" : undefined,
678
409
  style: image ? {
679
410
  width: image.width,
680
411
  aspectRatio: `${image.width} / ${image.height}`
681
412
  } : undefined,
682
- children: image && imageUrl ? /* @__PURE__ */ jsx5("img", {
413
+ children: image && imageUrl ? /* @__PURE__ */ jsx("img", {
683
414
  src: imageUrl,
684
415
  alt: image.alt,
685
416
  width: image.width,
686
417
  height: image.height,
687
418
  className: "size-full object-contain"
688
- }) : /* @__PURE__ */ jsx5(FileIcon, {})
419
+ }) : /* @__PURE__ */ jsx(FileIcon, {})
689
420
  }),
690
- /* @__PURE__ */ jsxs2(AttachmentContent, {
421
+ /* @__PURE__ */ jsxs(AttachmentContent, {
691
422
  children: [
692
- /* @__PURE__ */ jsx5(AttachmentTitle, {
423
+ /* @__PURE__ */ jsx(AttachmentTitle, {
693
424
  children: file?.name ?? title
694
425
  }),
695
- file ? /* @__PURE__ */ jsx5(AttachmentDescription, {
426
+ file ? /* @__PURE__ */ jsx(AttachmentDescription, {
696
427
  className: "break-words",
697
428
  children: fileDescription(file, locale)
698
429
  }) : null
699
430
  ]
700
431
  }),
701
- /* @__PURE__ */ jsxs2(AttachmentActions, {
432
+ /* @__PURE__ */ jsxs(AttachmentActions, {
702
433
  className: "ml-auto gap-1",
703
434
  children: [
704
- /* @__PURE__ */ jsx5(AttachmentAction, {
435
+ /* @__PURE__ */ jsx(AttachmentAction, {
705
436
  type: "button",
706
437
  "aria-label": labels.replaceFile,
707
438
  onClick: () => inputRef.current?.click(),
708
- children: image ? /* @__PURE__ */ jsx5(ImageUp, {}) : /* @__PURE__ */ jsx5(FileUp, {})
439
+ children: image ? /* @__PURE__ */ jsx(ImageUp, {}) : /* @__PURE__ */ jsx(FileUp, {})
709
440
  }),
710
- canClear ? /* @__PURE__ */ jsx5(AttachmentAction, {
441
+ canClear ? /* @__PURE__ */ jsx(AttachmentAction, {
711
442
  type: "button",
712
443
  "aria-label": `${labels.deleteFile} ${Schema3.is(Schema3.String)(title) ? title : ""}`,
713
444
  onClick: clear,
714
- children: /* @__PURE__ */ jsx5(Trash2, {})
445
+ children: /* @__PURE__ */ jsx(Trash2, {})
715
446
  }) : null
716
447
  ]
717
448
  })
@@ -722,283 +453,28 @@ var FileInput = ({
722
453
  });
723
454
  };
724
455
 
725
- // ../../src/components/ui/badge.tsx
726
- import { mergeProps as mergeProps2 } from "@base-ui/react/merge-props";
727
- import { useRender as useRender2 } from "@base-ui/react/use-render";
728
- import { cva as cva3 } from "class-variance-authority";
729
- var badgeVariants = cva3("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
730
- variants: {
731
- variant: {
732
- default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
733
- secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
734
- destructive: "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
735
- outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
736
- ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
737
- link: "text-primary underline-offset-4 hover:underline"
738
- }
739
- },
740
- defaultVariants: {
741
- variant: "default"
742
- }
743
- });
744
- function Badge({
745
- className,
746
- variant = "default",
747
- render,
748
- ...props
749
- }) {
750
- return useRender2({
751
- defaultTagName: "span",
752
- props: mergeProps2({
753
- className: cn(badgeVariants({ variant }), className)
754
- }, props),
755
- render,
756
- state: {
757
- slot: "badge",
758
- variant
759
- }
760
- });
761
- }
762
-
763
- // ../../src/components/ui/checkbox.tsx
764
- import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
765
- import { CheckIcon } from "lucide-react";
766
- import { jsx as jsx6 } from "react/jsx-runtime";
767
- "use client";
768
- function Checkbox({ className, ...props }) {
769
- return /* @__PURE__ */ jsx6(CheckboxPrimitive.Root, {
770
- "data-slot": "checkbox",
771
- className: cn("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input shadow-xs transition-shadow outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary", className),
772
- ...props,
773
- children: /* @__PURE__ */ jsx6(CheckboxPrimitive.Indicator, {
774
- "data-slot": "checkbox-indicator",
775
- className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
776
- children: /* @__PURE__ */ jsx6(CheckIcon, {})
777
- })
778
- });
779
- }
780
-
781
- // ../../src/components/ui/field.tsx
782
- import { useMemo as useMemo2 } from "react";
783
- import { cva as cva4 } from "class-variance-authority";
784
-
785
- // ../../src/components/ui/label.tsx
786
- import { jsx as jsx7 } from "react/jsx-runtime";
787
- "use client";
788
- function Label({ className, ...props }) {
789
- return /* @__PURE__ */ jsx7("label", {
790
- "data-slot": "label",
791
- className: 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", className),
792
- ...props
793
- });
794
- }
795
-
796
- // ../../src/components/ui/separator.tsx
797
- import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
798
-
799
- // ../../src/components/ui/field.tsx
800
- import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
801
- function FieldSet({ className, ...props }) {
802
- return /* @__PURE__ */ jsx8("fieldset", {
803
- "data-slot": "field-set",
804
- className: cn("flex flex-col gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", className),
805
- ...props
806
- });
807
- }
808
- function FieldLegend({
809
- className,
810
- variant = "legend",
811
- ...props
812
- }) {
813
- return /* @__PURE__ */ jsx8("legend", {
814
- "data-slot": "field-legend",
815
- "data-variant": variant,
816
- className: cn("mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base", className),
817
- ...props
818
- });
819
- }
820
- function FieldGroup({ className, ...props }) {
821
- return /* @__PURE__ */ jsx8("div", {
822
- "data-slot": "field-group",
823
- className: 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", className),
824
- ...props
825
- });
826
- }
827
- var fieldVariants = cva4("group/field flex w-full gap-3 data-[invalid=true]:text-destructive", {
828
- variants: {
829
- orientation: {
830
- vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
831
- horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
832
- responsive: "flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
833
- }
834
- },
835
- defaultVariants: {
836
- orientation: "vertical"
837
- }
838
- });
839
- function Field({
840
- className,
841
- orientation = "vertical",
842
- ...props
843
- }) {
844
- return /* @__PURE__ */ jsx8("div", {
845
- role: "group",
846
- "data-slot": "field",
847
- "data-orientation": orientation,
848
- className: cn(fieldVariants({ orientation }), className),
849
- ...props
850
- });
851
- }
852
- function FieldLabel({
853
- className,
854
- ...props
855
- }) {
856
- return /* @__PURE__ */ jsx8(Label, {
857
- "data-slot": "field-label",
858
- className: cn("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border *:data-[slot=field]:p-3 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", className),
859
- ...props
860
- });
861
- }
862
- function FieldDescription({ className, ...props }) {
863
- return /* @__PURE__ */ jsx8("p", {
864
- "data-slot": "field-description",
865
- className: cn("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
866
- ...props
867
- });
868
- }
869
-
870
- // ../../src/components/ui/select.tsx
871
- import { Select as SelectPrimitive } from "@base-ui/react/select";
872
- import { ChevronDownIcon, CheckIcon as CheckIcon2, ChevronUpIcon } from "lucide-react";
873
- import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
874
- "use client";
875
- var Select = SelectPrimitive.Root;
876
- function SelectGroup({ className, ...props }) {
877
- return /* @__PURE__ */ jsx9(SelectPrimitive.Group, {
878
- "data-slot": "select-group",
879
- className: cn("scroll-my-1 p-1", className),
880
- ...props
881
- });
882
- }
883
- function SelectValue({ className, ...props }) {
884
- return /* @__PURE__ */ jsx9(SelectPrimitive.Value, {
885
- "data-slot": "select-value",
886
- className: cn("flex flex-1 text-left", className),
887
- ...props
888
- });
889
- }
890
- function SelectTrigger({
891
- className,
892
- size = "default",
893
- children,
894
- ...props
895
- }) {
896
- return /* @__PURE__ */ jsxs4(SelectPrimitive.Trigger, {
897
- "data-slot": "select-trigger",
898
- "data-size": size,
899
- className: cn("border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 flex w-fit items-center justify-between gap-1.5 rounded-md border bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
900
- ...props,
901
- children: [
902
- children,
903
- /* @__PURE__ */ jsx9(SelectPrimitive.Icon, {
904
- render: /* @__PURE__ */ jsx9(ChevronDownIcon, {
905
- className: "text-muted-foreground pointer-events-none size-4"
906
- })
907
- })
908
- ]
909
- });
910
- }
911
- function SelectContent({
912
- className,
913
- children,
914
- side = "bottom",
915
- sideOffset = 4,
916
- align = "start",
917
- alignOffset = 0,
918
- alignItemWithTrigger = false,
919
- ...props
920
- }) {
921
- return /* @__PURE__ */ jsx9(SelectPrimitive.Portal, {
922
- children: /* @__PURE__ */ jsx9(SelectPrimitive.Positioner, {
923
- side,
924
- sideOffset,
925
- align,
926
- alignOffset,
927
- alignItemWithTrigger,
928
- className: "isolate z-50",
929
- children: /* @__PURE__ */ jsxs4(SelectPrimitive.Popup, {
930
- "data-slot": "select-content",
931
- "data-align-trigger": alignItemWithTrigger,
932
- className: cn("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md shadow-md ring-1 duration-100 data-[align-trigger=true]:animate-none", className),
933
- ...props,
934
- children: [
935
- /* @__PURE__ */ jsx9(SelectScrollUpButton, {}),
936
- /* @__PURE__ */ jsx9(SelectPrimitive.List, {
937
- children
938
- }),
939
- /* @__PURE__ */ jsx9(SelectScrollDownButton, {})
940
- ]
941
- })
942
- })
943
- });
944
- }
945
- function SelectItem({
946
- className,
947
- children,
948
- ...props
949
- }) {
950
- return /* @__PURE__ */ jsxs4(SelectPrimitive.Item, {
951
- "data-slot": "select-item",
952
- className: cn("focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 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 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className),
953
- ...props,
954
- children: [
955
- /* @__PURE__ */ jsx9(SelectPrimitive.ItemText, {
956
- className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
957
- children
958
- }),
959
- /* @__PURE__ */ jsx9(SelectPrimitive.ItemIndicator, {
960
- render: /* @__PURE__ */ jsx9("span", {
961
- className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center"
962
- }),
963
- children: /* @__PURE__ */ jsx9(CheckIcon2, {
964
- className: "pointer-events-none"
965
- })
966
- })
967
- ]
968
- });
969
- }
970
- function SelectScrollUpButton({
971
- className,
972
- ...props
973
- }) {
974
- return /* @__PURE__ */ jsx9(SelectPrimitive.ScrollUpArrow, {
975
- "data-slot": "select-scroll-up-button",
976
- className: cn("bg-popover top-0 z-10 flex w-full cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4", className),
977
- ...props,
978
- children: /* @__PURE__ */ jsx9(ChevronUpIcon, {})
979
- });
980
- }
981
- function SelectScrollDownButton({
982
- className,
983
- ...props
984
- }) {
985
- return /* @__PURE__ */ jsx9(SelectPrimitive.ScrollDownArrow, {
986
- "data-slot": "select-scroll-down-button",
987
- className: cn("bg-popover bottom-0 z-10 flex w-full cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4", className),
988
- ...props,
989
- children: /* @__PURE__ */ jsx9(ChevronDownIcon, {})
990
- });
991
- }
992
-
993
- // ../../src/components/ui/textarea.tsx
994
- import { jsx as jsx10 } from "react/jsx-runtime";
995
- function Textarea({ className, ...props }) {
996
- return /* @__PURE__ */ jsx10("textarea", {
997
- "data-slot": "textarea",
998
- className: cn("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", className),
999
- ...props
1000
- });
1001
- }
456
+ // ../../src/components/effect-form/react.tsx
457
+ import { Button as Button3 } from "@/components/ui/button";
458
+ import { Badge } from "@/components/ui/badge";
459
+ import { Checkbox } from "@/components/ui/checkbox";
460
+ import {
461
+ Field,
462
+ FieldDescription,
463
+ FieldGroup,
464
+ FieldLabel as BaseFieldLabel,
465
+ FieldLegend,
466
+ FieldSet
467
+ } from "@/components/ui/field";
468
+ import { Input as Input2 } from "@/components/ui/input";
469
+ import {
470
+ Select,
471
+ SelectContent,
472
+ SelectGroup,
473
+ SelectItem,
474
+ SelectTrigger,
475
+ SelectValue
476
+ } from "@/components/ui/select";
477
+ import { Textarea } from "@/components/ui/textarea";
1002
478
 
1003
479
  // ../../src/components/virtualized-combobox/react.tsx
1004
480
  import { Combobox as ComboboxPrimitive } from "@base-ui/react";
@@ -1010,50 +486,11 @@ import {
1010
486
  useImperativeHandle,
1011
487
  useRef as useRef2
1012
488
  } from "react";
489
+ import { Button as Button2 } from "@/components/ui/button";
490
+ import { InputGroup, InputGroupInput } from "@/components/ui/input-group";
1013
491
 
1014
- // ../../src/components/ui/input-group.tsx
1015
- import { cva as cva5 } from "class-variance-authority";
1016
- import { jsx as jsx11 } from "react/jsx-runtime";
1017
- function InputGroup({ className, ...props }) {
1018
- return /* @__PURE__ */ jsx11("div", {
1019
- "data-slot": "input-group",
1020
- role: "group",
1021
- className: cn("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5", className),
1022
- ...props
1023
- });
1024
- }
1025
- var inputGroupAddonVariants = cva5("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4", {
1026
- variants: {
1027
- align: {
1028
- "inline-start": "order-first pl-2 has-[>button]:-ml-1 has-[>kbd]:ml-[-0.15rem]",
1029
- "inline-end": "order-last pr-2 has-[>button]:-mr-1 has-[>kbd]:mr-[-0.15rem]",
1030
- "block-start": "order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2",
1031
- "block-end": "order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"
1032
- }
1033
- },
1034
- defaultVariants: { align: "inline-start" }
1035
- });
1036
- var inputGroupButtonVariants = cva5("flex items-center gap-2 text-sm shadow-none", {
1037
- variants: {
1038
- size: {
1039
- xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
1040
- sm: "",
1041
- "icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
1042
- "icon-sm": "size-8 p-0 has-[>svg]:p-0"
1043
- }
1044
- },
1045
- defaultVariants: { size: "xs" }
1046
- });
1047
- function InputGroupInput({
1048
- className,
1049
- ...props
1050
- }) {
1051
- return /* @__PURE__ */ jsx11(Input, {
1052
- "data-slot": "input-group-control",
1053
- className: cn("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", className),
1054
- ...props
1055
- });
1056
- }
492
+ // ../../src/lib/utils.ts
493
+ import { cn } from "cn";
1057
494
 
1058
495
  // ../../src/components/virtualized-combobox/react.tsx
1059
496
  import { useKrakstackLocale as useKrakstackLocale2 } from "@krak-stack/registry/krakstack-provider/react";
@@ -1220,7 +657,7 @@ var update = Component2.define(virtualizedComboboxOptions).update({
1220
657
  });
1221
658
 
1222
659
  // ../../src/components/virtualized-combobox/react.tsx
1223
- import { jsx as jsx12, jsxs as jsxs5, Fragment as Fragment2 } from "react/jsx-runtime";
660
+ import { jsx as jsx2, jsxs as jsxs2, Fragment as Fragment2 } from "react/jsx-runtime";
1224
661
  "use client";
1225
662
  var optionEquals = (item, selected) => item.value === selected.value;
1226
663
  var VirtualizedComboboxList = ({
@@ -1258,13 +695,13 @@ var VirtualizedComboboxList = ({
1258
695
  if (element)
1259
696
  virtualizer.measure();
1260
697
  }, [virtualizer]);
1261
- return /* @__PURE__ */ jsxs5(Fragment2, {
698
+ return /* @__PURE__ */ jsxs2(Fragment2, {
1262
699
  children: [
1263
- filteredItems.length === 0 && /* @__PURE__ */ jsx12("div", {
700
+ filteredItems.length === 0 && /* @__PURE__ */ jsx2("div", {
1264
701
  className: "text-muted-foreground flex min-h-0 flex-1 flex-col items-center justify-center overflow-auto py-6 text-center text-sm",
1265
702
  children: emptyLabel
1266
703
  }),
1267
- /* @__PURE__ */ jsx12(ComboboxPrimitive.List, {
704
+ /* @__PURE__ */ jsx2(ComboboxPrimitive.List, {
1268
705
  className: "min-h-0 flex-1 scroll-py-1 overflow-auto overscroll-contain p-1",
1269
706
  hidden: filteredItems.length === 0,
1270
707
  ref: handleScrollElementRef,
@@ -1272,7 +709,7 @@ var VirtualizedComboboxList = ({
1272
709
  height: Math.min(virtualizer.getTotalSize() + 8, 288),
1273
710
  maxHeight: "var(--available-height)"
1274
711
  },
1275
- children: /* @__PURE__ */ jsx12("div", {
712
+ children: /* @__PURE__ */ jsx2("div", {
1276
713
  className: "relative w-full",
1277
714
  role: "presentation",
1278
715
  style: { height: virtualizer.getTotalSize() },
@@ -1285,9 +722,9 @@ var VirtualizedComboboxList = ({
1285
722
  transform: `translateY(${virtualItem.start}px)`
1286
723
  };
1287
724
  if (entry.kind === "group") {
1288
- return /* @__PURE__ */ jsx12(ComboboxPrimitive.Group, {
725
+ return /* @__PURE__ */ jsx2(ComboboxPrimitive.Group, {
1289
726
  className: "contents",
1290
- children: /* @__PURE__ */ jsx12(ComboboxPrimitive.GroupLabel, {
727
+ children: /* @__PURE__ */ jsx2(ComboboxPrimitive.GroupLabel, {
1291
728
  className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
1292
729
  "data-index": virtualItem.index,
1293
730
  ref: virtualizer.measureElement,
@@ -1296,7 +733,7 @@ var VirtualizedComboboxList = ({
1296
733
  })
1297
734
  }, entry.key);
1298
735
  }
1299
- return /* @__PURE__ */ jsxs5(ComboboxPrimitive.Item, {
736
+ return /* @__PURE__ */ jsxs2(ComboboxPrimitive.Item, {
1300
737
  "aria-posinset": entry.index + 1,
1301
738
  "aria-setsize": filteredItems.length,
1302
739
  className: "data-highlighted:bg-accent data-highlighted:text-accent-foreground absolute top-0 left-0 flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50",
@@ -1306,13 +743,13 @@ var VirtualizedComboboxList = ({
1306
743
  style,
1307
744
  value: entry.item,
1308
745
  children: [
1309
- renderItem?.(entry.item) ?? /* @__PURE__ */ jsx12("span", {
746
+ renderItem?.(entry.item) ?? /* @__PURE__ */ jsx2("span", {
1310
747
  className: virtualizedComboboxClasses.itemLabel,
1311
748
  children: entry.item.label
1312
749
  }),
1313
- /* @__PURE__ */ jsx12(ComboboxPrimitive.ItemIndicator, {
750
+ /* @__PURE__ */ jsx2(ComboboxPrimitive.ItemIndicator, {
1314
751
  className: "absolute right-2 flex size-4 items-center justify-center",
1315
- children: /* @__PURE__ */ jsx12(Check, {})
752
+ children: /* @__PURE__ */ jsx2(Check, {})
1316
753
  })
1317
754
  ]
1318
755
  }, entry.item.value);
@@ -1335,26 +772,26 @@ var VirtualizedComboboxContent = ({
1335
772
  virtualizerRef
1336
773
  }) => {
1337
774
  const labels = virtualizedComboboxMessages(locale, messageOverrides);
1338
- return /* @__PURE__ */ jsx12(ComboboxPrimitive.Portal, {
1339
- children: /* @__PURE__ */ jsx12(ComboboxPrimitive.Positioner, {
775
+ return /* @__PURE__ */ jsx2(ComboboxPrimitive.Portal, {
776
+ children: /* @__PURE__ */ jsx2(ComboboxPrimitive.Positioner, {
1340
777
  align: "start",
1341
778
  className: "isolate z-50",
1342
779
  side: "bottom",
1343
780
  sideOffset: 6,
1344
- children: /* @__PURE__ */ jsxs5(ComboboxPrimitive.Popup, {
781
+ children: /* @__PURE__ */ jsxs2(ComboboxPrimitive.Popup, {
1345
782
  className: cn("bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-in-95 relative flex max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) flex-col overflow-hidden rounded-md shadow-md ring-1 duration-100", contentClassName),
1346
783
  children: [
1347
- /* @__PURE__ */ jsx12("div", {
784
+ /* @__PURE__ */ jsx2("div", {
1348
785
  className: "min-w-0 shrink-0 p-1 pb-0",
1349
- children: /* @__PURE__ */ jsx12(InputGroup, {
786
+ children: /* @__PURE__ */ jsx2(InputGroup, {
1350
787
  className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
1351
- children: /* @__PURE__ */ jsx12(ComboboxPrimitive.Input, {
788
+ children: /* @__PURE__ */ jsx2(ComboboxPrimitive.Input, {
1352
789
  placeholder: labels.search,
1353
- render: /* @__PURE__ */ jsx12(InputGroupInput, {})
790
+ render: /* @__PURE__ */ jsx2(InputGroupInput, {})
1354
791
  })
1355
792
  })
1356
793
  }),
1357
- /* @__PURE__ */ jsx12(VirtualizedComboboxList, {
794
+ /* @__PURE__ */ jsx2(VirtualizedComboboxList, {
1358
795
  classes,
1359
796
  emptyLabel,
1360
797
  groupSelections,
@@ -1370,7 +807,7 @@ var VirtualizedComboboxContent = ({
1370
807
  })
1371
808
  });
1372
809
  };
1373
- var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /* @__PURE__ */ jsxs5(Button, {
810
+ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /* @__PURE__ */ jsxs2(Button2, {
1374
811
  "aria-label": ariaLabel,
1375
812
  "aria-invalid": ariaInvalid,
1376
813
  className: "w-full max-w-full min-w-0 justify-between overflow-hidden",
@@ -1379,20 +816,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
1379
816
  type: "button",
1380
817
  variant: "outline",
1381
818
  children: [
1382
- /* @__PURE__ */ jsx12("span", {
819
+ /* @__PURE__ */ jsx2("span", {
1383
820
  className: "min-w-0 flex-1 truncate pr-7 text-left",
1384
821
  children: label
1385
822
  }),
1386
- /* @__PURE__ */ jsx12(ChevronsUpDown, {
823
+ /* @__PURE__ */ jsx2(ChevronsUpDown, {
1387
824
  className: "text-muted-foreground shrink-0 opacity-70"
1388
825
  })
1389
826
  ]
1390
827
  });
1391
- var defaultClear = (label) => /* @__PURE__ */ jsx12(ComboboxPrimitive.Clear, {
828
+ var defaultClear = (label) => /* @__PURE__ */ jsx2(ComboboxPrimitive.Clear, {
1392
829
  "aria-label": label,
1393
830
  className: "text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 absolute top-1/2 right-7 z-10 flex size-6 -translate-y-1/2 items-center justify-center rounded-sm outline-none focus-visible:border focus-visible:ring-3",
1394
831
  type: "button",
1395
- children: /* @__PURE__ */ jsx12(X, {
832
+ children: /* @__PURE__ */ jsx2(X, {
1396
833
  className: "size-3.5"
1397
834
  })
1398
835
  });
@@ -1404,7 +841,7 @@ var VirtualizedComboboxSingle = (props) => {
1404
841
  const virtualizerRef = useComboboxVirtualizerRef(props.virtualizerRef);
1405
842
  const itemIndexRef = useRef2(new Map);
1406
843
  const labels = virtualizedComboboxMessages(props.locale ?? "en", props.messages);
1407
- return /* @__PURE__ */ jsxs5(ComboboxPrimitive.Root, {
844
+ return /* @__PURE__ */ jsxs2(ComboboxPrimitive.Root, {
1408
845
  disabled: props.disabled,
1409
846
  inputValue: props.searchValue,
1410
847
  items: [...props.items],
@@ -1422,16 +859,16 @@ var VirtualizedComboboxSingle = (props) => {
1422
859
  value: props.value,
1423
860
  virtualized: true,
1424
861
  children: [
1425
- /* @__PURE__ */ jsxs5("div", {
862
+ /* @__PURE__ */ jsxs2("div", {
1426
863
  className: "relative",
1427
864
  children: [
1428
- /* @__PURE__ */ jsx12(ComboboxPrimitive.Trigger, {
865
+ /* @__PURE__ */ jsx2(ComboboxPrimitive.Trigger, {
1429
866
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
1430
867
  }),
1431
868
  props.trigger ? null : defaultClear(labels.clear)
1432
869
  ]
1433
870
  }),
1434
- /* @__PURE__ */ jsx12(VirtualizedComboboxContent, {
871
+ /* @__PURE__ */ jsx2(VirtualizedComboboxContent, {
1435
872
  ...props,
1436
873
  groupSelections: false,
1437
874
  itemIndexRef,
@@ -1445,7 +882,7 @@ var VirtualizedComboboxMultiple = (props) => {
1445
882
  const virtualizerRef = useComboboxVirtualizerRef(props.virtualizerRef);
1446
883
  const itemIndexRef = useRef2(new Map);
1447
884
  const labels = virtualizedComboboxMessages(props.locale ?? "en", props.messages);
1448
- return /* @__PURE__ */ jsxs5(ComboboxPrimitive.Root, {
885
+ return /* @__PURE__ */ jsxs2(ComboboxPrimitive.Root, {
1449
886
  disabled: props.disabled,
1450
887
  inputValue: props.searchValue,
1451
888
  items: [...props.items],
@@ -1464,16 +901,16 @@ var VirtualizedComboboxMultiple = (props) => {
1464
901
  value: [...props.value],
1465
902
  virtualized: true,
1466
903
  children: [
1467
- /* @__PURE__ */ jsxs5("div", {
904
+ /* @__PURE__ */ jsxs2("div", {
1468
905
  className: "relative",
1469
906
  children: [
1470
- /* @__PURE__ */ jsx12(ComboboxPrimitive.Trigger, {
907
+ /* @__PURE__ */ jsx2(ComboboxPrimitive.Trigger, {
1471
908
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
1472
909
  }),
1473
910
  props.trigger ? null : defaultClear(labels.clear)
1474
911
  ]
1475
912
  }),
1476
- /* @__PURE__ */ jsx12(VirtualizedComboboxContent, {
913
+ /* @__PURE__ */ jsx2(VirtualizedComboboxContent, {
1477
914
  ...props,
1478
915
  groupSelections: true,
1479
916
  itemIndexRef,
@@ -1485,10 +922,10 @@ var VirtualizedComboboxMultiple = (props) => {
1485
922
  };
1486
923
  function VirtualizedCombobox(props) {
1487
924
  const locale = useKrakstackLocale2(props.locale);
1488
- return props.multiple ? /* @__PURE__ */ jsx12(VirtualizedComboboxMultiple, {
925
+ return props.multiple ? /* @__PURE__ */ jsx2(VirtualizedComboboxMultiple, {
1489
926
  ...props,
1490
927
  locale
1491
- }) : /* @__PURE__ */ jsx12(VirtualizedComboboxSingle, {
928
+ }) : /* @__PURE__ */ jsx2(VirtualizedComboboxSingle, {
1492
929
  ...props,
1493
930
  locale
1494
931
  });
@@ -1499,7 +936,7 @@ function VirtualizedCombobox(props) {
1499
936
 
1500
937
  // ../../src/components/effect-form/react.tsx
1501
938
  import { useKrakstackLocale as useKrakstackLocale3 } from "@krak-stack/registry/krakstack-provider/react";
1502
- import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
939
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
1503
940
  var messages = {
1504
941
  en: {
1505
942
  add: "Add",
@@ -1599,16 +1036,16 @@ var getCauseErrorMessage = (cause, labels) => {
1599
1036
  return error.message.trim() || labels.submitFailed;
1600
1037
  return Option.getOrElse(Schema6.decodeUnknownOption(Schema6.String)(error), () => "").trim() || labels.submitFailed;
1601
1038
  };
1602
- var FieldLabel2 = ({
1039
+ var FieldLabel = ({
1603
1040
  htmlFor,
1604
1041
  options
1605
1042
  }) => {
1606
1043
  const locale = useKrakstackLocale3(options.locale);
1607
- return /* @__PURE__ */ jsxs6(FieldLabel, {
1044
+ return /* @__PURE__ */ jsxs3(BaseFieldLabel, {
1608
1045
  htmlFor,
1609
1046
  children: [
1610
1047
  options.label,
1611
- options.optional && /* @__PURE__ */ jsxs6("span", {
1048
+ options.optional && /* @__PURE__ */ jsxs3("span", {
1612
1049
  className: "text-muted-foreground font-normal",
1613
1050
  children: [
1614
1051
  " ",
@@ -1627,30 +1064,30 @@ var FieldWrapper = ({
1627
1064
  legend,
1628
1065
  locales,
1629
1066
  localized = true
1630
- }) => /* @__PURE__ */ jsxs6(FieldSet, {
1067
+ }) => /* @__PURE__ */ jsxs3(FieldSet, {
1631
1068
  children: [
1632
- legend && /* @__PURE__ */ jsxs6(FieldLegend, {
1069
+ legend && /* @__PURE__ */ jsxs3(FieldLegend, {
1633
1070
  className: "flex items-center gap-2",
1634
1071
  children: [
1635
1072
  legend,
1636
- localized && editingLocale && locales && /* @__PURE__ */ jsxs6(Badge, {
1073
+ localized && editingLocale && locales && /* @__PURE__ */ jsxs3(Badge, {
1637
1074
  variant: "outline",
1638
1075
  children: [
1639
- /* @__PURE__ */ jsx13(Languages, {}),
1076
+ /* @__PURE__ */ jsx3(Languages, {}),
1640
1077
  locales.find(({ value }) => value === editingLocale)?.label
1641
1078
  ]
1642
1079
  })
1643
1080
  ]
1644
1081
  }),
1645
- description && /* @__PURE__ */ jsx13(FieldDescription, {
1082
+ description && /* @__PURE__ */ jsx3(FieldDescription, {
1646
1083
  children: description
1647
1084
  }),
1648
- /* @__PURE__ */ jsx13(FieldGroup, {
1085
+ /* @__PURE__ */ jsx3(FieldGroup, {
1649
1086
  children
1650
1087
  })
1651
1088
  ]
1652
1089
  });
1653
- var ErrorMessage = ({ text }) => /* @__PURE__ */ jsx13("em", {
1090
+ var ErrorMessage = ({ text }) => /* @__PURE__ */ jsx3("em", {
1654
1091
  role: "alert",
1655
1092
  className: "text-destructive text-sm",
1656
1093
  children: text
@@ -1662,7 +1099,7 @@ var SubmitError = ({
1662
1099
  }) => {
1663
1100
  const labels = useEffectFormMessages(locale, messages);
1664
1101
  const message = AsyncResult.isFailure(result) ? Schema6.isSchemaError(Cause.squash(result.cause)) ? undefined : getCauseErrorMessage(result.cause, labels) : undefined;
1665
- return message ? /* @__PURE__ */ jsx13(ErrorMessage, {
1102
+ return message ? /* @__PURE__ */ jsx3(ErrorMessage, {
1666
1103
  text: message
1667
1104
  }) : null;
1668
1105
  };
@@ -1680,7 +1117,7 @@ var SubmitButton = ({
1680
1117
  const lastSubmittedValues = useAtomValue(form.lastSubmittedValues);
1681
1118
  const labels = useEffectFormMessages(locale, messages);
1682
1119
  const hasPendingChanges = Option.isNone(lastSubmittedValues) ? isDirty : hasChangedSinceSubmit;
1683
- return /* @__PURE__ */ jsxs6(Button, {
1120
+ return /* @__PURE__ */ jsxs3(Button3, {
1684
1121
  type: "button",
1685
1122
  disabled: !hasPendingChanges || submitResult.waiting,
1686
1123
  className: "self-start",
@@ -1689,7 +1126,7 @@ var SubmitButton = ({
1689
1126
  submit();
1690
1127
  },
1691
1128
  children: [
1692
- submitResult.waiting && /* @__PURE__ */ jsx13(Loader2, {
1129
+ submitResult.waiting && /* @__PURE__ */ jsx3(Loader2, {
1693
1130
  "data-icon": "inline-start",
1694
1131
  className: "animate-spin"
1695
1132
  }),
@@ -1702,7 +1139,7 @@ var FieldError = ({
1702
1139
  message
1703
1140
  }) => Option.match(error, {
1704
1141
  onNone: () => null,
1705
- onSome: (errorMessage) => /* @__PURE__ */ jsx13(ErrorMessage, {
1142
+ onSome: (errorMessage) => /* @__PURE__ */ jsx3(ErrorMessage, {
1706
1143
  text: message ?? errorMessage
1707
1144
  })
1708
1145
  });
@@ -1719,20 +1156,20 @@ var TextField = ({
1719
1156
  optional,
1720
1157
  ...inputProps
1721
1158
  } = props;
1722
- return /* @__PURE__ */ jsxs6(Field, {
1159
+ return /* @__PURE__ */ jsxs3(Field, {
1723
1160
  "data-invalid": Option.isSome(field.error),
1724
1161
  children: [
1725
- /* @__PURE__ */ jsxs6("div", {
1162
+ /* @__PURE__ */ jsxs3("div", {
1726
1163
  className: "flex w-full items-center gap-2",
1727
1164
  children: [
1728
- /* @__PURE__ */ jsx13(FieldLabel2, {
1165
+ /* @__PURE__ */ jsx3(FieldLabel, {
1729
1166
  htmlFor: field.path,
1730
1167
  options: { label, locale, optional }
1731
1168
  }),
1732
1169
  children
1733
1170
  ]
1734
1171
  }),
1735
- /* @__PURE__ */ jsx13(Input, {
1172
+ /* @__PURE__ */ jsx3(Input2, {
1736
1173
  ...inputProps,
1737
1174
  id: field.path,
1738
1175
  name: field.path,
@@ -1741,10 +1178,10 @@ var TextField = ({
1741
1178
  onChange: (event) => field.onChange(event.target.value),
1742
1179
  "aria-invalid": Option.isSome(field.error)
1743
1180
  }),
1744
- description && /* @__PURE__ */ jsx13(FieldDescription, {
1181
+ description && /* @__PURE__ */ jsx3(FieldDescription, {
1745
1182
  children: description
1746
1183
  }),
1747
- /* @__PURE__ */ jsx13(FieldError, {
1184
+ /* @__PURE__ */ jsx3(FieldError, {
1748
1185
  error: field.error,
1749
1186
  message: errorMessage
1750
1187
  })
@@ -1757,7 +1194,7 @@ var NameField = ({
1757
1194
  }) => {
1758
1195
  const { locale, messages, ...fieldProps } = props;
1759
1196
  const labels = useEffectFormMessages(locale, messages);
1760
- return /* @__PURE__ */ jsx13(TextField, {
1197
+ return /* @__PURE__ */ jsx3(TextField, {
1761
1198
  field,
1762
1199
  props: {
1763
1200
  ...fieldProps,
@@ -1777,20 +1214,20 @@ var TextAreaField = ({ field, props }) => {
1777
1214
  original: _original,
1778
1215
  ...textareaProps
1779
1216
  } = props;
1780
- return /* @__PURE__ */ jsxs6(Field, {
1217
+ return /* @__PURE__ */ jsxs3(Field, {
1781
1218
  "data-invalid": Option.isSome(field.error),
1782
1219
  children: [
1783
- /* @__PURE__ */ jsxs6("div", {
1220
+ /* @__PURE__ */ jsxs3("div", {
1784
1221
  className: "flex w-full items-center gap-2",
1785
1222
  children: [
1786
- /* @__PURE__ */ jsx13(FieldLabel2, {
1223
+ /* @__PURE__ */ jsx3(FieldLabel, {
1787
1224
  htmlFor: field.path,
1788
1225
  options: { label, locale, optional }
1789
1226
  }),
1790
1227
  children
1791
1228
  ]
1792
1229
  }),
1793
- /* @__PURE__ */ jsx13(Textarea, {
1230
+ /* @__PURE__ */ jsx3(Textarea, {
1794
1231
  ...textareaProps,
1795
1232
  id: field.path,
1796
1233
  name: field.path,
@@ -1799,10 +1236,10 @@ var TextAreaField = ({ field, props }) => {
1799
1236
  onChange: (event) => field.onChange(event.target.value),
1800
1237
  "aria-invalid": Option.isSome(field.error)
1801
1238
  }),
1802
- description && /* @__PURE__ */ jsx13(FieldDescription, {
1239
+ description && /* @__PURE__ */ jsx3(FieldDescription, {
1803
1240
  children: description
1804
1241
  }),
1805
- /* @__PURE__ */ jsx13(FieldError, {
1242
+ /* @__PURE__ */ jsx3(FieldError, {
1806
1243
  error: field.error
1807
1244
  })
1808
1245
  ]
@@ -1811,7 +1248,7 @@ var TextAreaField = ({ field, props }) => {
1811
1248
  var DescriptionField = ({ field, props }) => {
1812
1249
  const { locale, messages, ...fieldProps } = props;
1813
1250
  const labels = useEffectFormMessages(locale, messages);
1814
- return /* @__PURE__ */ jsx13(TextAreaField, {
1251
+ return /* @__PURE__ */ jsx3(TextAreaField, {
1815
1252
  field,
1816
1253
  props: {
1817
1254
  ...fieldProps,
@@ -1822,14 +1259,14 @@ var DescriptionField = ({ field, props }) => {
1822
1259
  };
1823
1260
  var FileField = ({ field, props }) => {
1824
1261
  const invalid = Option.isSome(field.error);
1825
- return /* @__PURE__ */ jsxs6(Field, {
1262
+ return /* @__PURE__ */ jsxs3(Field, {
1826
1263
  "data-invalid": invalid,
1827
1264
  children: [
1828
- /* @__PURE__ */ jsx13(FieldLabel2, {
1265
+ /* @__PURE__ */ jsx3(FieldLabel, {
1829
1266
  htmlFor: field.path,
1830
1267
  options: props
1831
1268
  }),
1832
- /* @__PURE__ */ jsx13(FileInput, {
1269
+ /* @__PURE__ */ jsx3(FileInput, {
1833
1270
  accept: props.accept ?? "",
1834
1271
  canClear: field.value instanceof File,
1835
1272
  ...field.value ? { file: field.value } : {},
@@ -1850,10 +1287,10 @@ var FileField = ({ field, props }) => {
1850
1287
  ...props.required === undefined ? {} : { required: props.required },
1851
1288
  title: field.value?.name ?? props.label
1852
1289
  }),
1853
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1290
+ props.description && /* @__PURE__ */ jsx3(FieldDescription, {
1854
1291
  children: props.description
1855
1292
  }),
1856
- /* @__PURE__ */ jsx13(FieldError, {
1293
+ /* @__PURE__ */ jsx3(FieldError, {
1857
1294
  error: field.error
1858
1295
  })
1859
1296
  ]
@@ -1869,20 +1306,20 @@ var NullableTextAreaField = ({ field, props }) => {
1869
1306
  original: _original,
1870
1307
  ...textareaProps
1871
1308
  } = props;
1872
- return /* @__PURE__ */ jsxs6(Field, {
1309
+ return /* @__PURE__ */ jsxs3(Field, {
1873
1310
  "data-invalid": Option.isSome(field.error),
1874
1311
  children: [
1875
- /* @__PURE__ */ jsxs6("div", {
1312
+ /* @__PURE__ */ jsxs3("div", {
1876
1313
  className: "flex w-full items-center gap-2",
1877
1314
  children: [
1878
- /* @__PURE__ */ jsx13(FieldLabel2, {
1315
+ /* @__PURE__ */ jsx3(FieldLabel, {
1879
1316
  htmlFor: field.path,
1880
1317
  options: { label, locale, optional }
1881
1318
  }),
1882
1319
  children
1883
1320
  ]
1884
1321
  }),
1885
- /* @__PURE__ */ jsx13(Textarea, {
1322
+ /* @__PURE__ */ jsx3(Textarea, {
1886
1323
  ...textareaProps,
1887
1324
  id: field.path,
1888
1325
  name: field.path,
@@ -1891,10 +1328,10 @@ var NullableTextAreaField = ({ field, props }) => {
1891
1328
  onChange: (event) => field.onChange(event.target.value),
1892
1329
  "aria-invalid": Option.isSome(field.error)
1893
1330
  }),
1894
- description && /* @__PURE__ */ jsx13(FieldDescription, {
1331
+ description && /* @__PURE__ */ jsx3(FieldDescription, {
1895
1332
  children: description
1896
1333
  }),
1897
- /* @__PURE__ */ jsx13(FieldError, {
1334
+ /* @__PURE__ */ jsx3(FieldError, {
1898
1335
  error: field.error
1899
1336
  })
1900
1337
  ]
@@ -1903,13 +1340,13 @@ var NullableTextAreaField = ({ field, props }) => {
1903
1340
  var CheckboxField = ({
1904
1341
  field,
1905
1342
  props
1906
- }) => /* @__PURE__ */ jsxs6(Field, {
1343
+ }) => /* @__PURE__ */ jsxs3(Field, {
1907
1344
  "data-invalid": Option.isSome(field.error),
1908
1345
  children: [
1909
- /* @__PURE__ */ jsxs6("div", {
1346
+ /* @__PURE__ */ jsxs3("div", {
1910
1347
  className: "flex w-full flex-row items-center gap-2",
1911
1348
  children: [
1912
- /* @__PURE__ */ jsx13(Checkbox, {
1349
+ /* @__PURE__ */ jsx3(Checkbox, {
1913
1350
  id: field.path,
1914
1351
  name: field.path,
1915
1352
  checked: field.value,
@@ -1917,17 +1354,17 @@ var CheckboxField = ({
1917
1354
  onCheckedChange: field.onChange,
1918
1355
  "aria-invalid": Option.isSome(field.error)
1919
1356
  }),
1920
- /* @__PURE__ */ jsx13(FieldLabel2, {
1357
+ /* @__PURE__ */ jsx3(FieldLabel, {
1921
1358
  htmlFor: field.path,
1922
1359
  options: props
1923
1360
  }),
1924
1361
  props.children
1925
1362
  ]
1926
1363
  }),
1927
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1364
+ props.description && /* @__PURE__ */ jsx3(FieldDescription, {
1928
1365
  children: props.description
1929
1366
  }),
1930
- /* @__PURE__ */ jsx13(FieldError, {
1367
+ /* @__PURE__ */ jsx3(FieldError, {
1931
1368
  error: field.error
1932
1369
  })
1933
1370
  ]
@@ -1935,14 +1372,14 @@ var CheckboxField = ({
1935
1372
  var SelectField = ({
1936
1373
  field,
1937
1374
  props
1938
- }) => /* @__PURE__ */ jsxs6(Field, {
1375
+ }) => /* @__PURE__ */ jsxs3(Field, {
1939
1376
  "data-invalid": Option.isSome(field.error),
1940
1377
  children: [
1941
- /* @__PURE__ */ jsx13(FieldLabel2, {
1378
+ /* @__PURE__ */ jsx3(FieldLabel, {
1942
1379
  htmlFor: field.path,
1943
1380
  options: props
1944
1381
  }),
1945
- /* @__PURE__ */ jsxs6(Select, {
1382
+ /* @__PURE__ */ jsxs3(Select, {
1946
1383
  items: props.options,
1947
1384
  onValueChange: (value) => {
1948
1385
  if (value !== null)
@@ -1950,17 +1387,17 @@ var SelectField = ({
1950
1387
  },
1951
1388
  value: field.value,
1952
1389
  children: [
1953
- /* @__PURE__ */ jsx13(SelectTrigger, {
1390
+ /* @__PURE__ */ jsx3(SelectTrigger, {
1954
1391
  id: field.path,
1955
1392
  "aria-invalid": Option.isSome(field.error),
1956
- children: /* @__PURE__ */ jsx13(SelectValue, {
1393
+ children: /* @__PURE__ */ jsx3(SelectValue, {
1957
1394
  placeholder: props.placeholder
1958
1395
  })
1959
1396
  }),
1960
- /* @__PURE__ */ jsx13(SelectContent, {
1397
+ /* @__PURE__ */ jsx3(SelectContent, {
1961
1398
  className: props.contentClassName,
1962
- children: /* @__PURE__ */ jsx13(SelectGroup, {
1963
- children: props.options.map((option) => /* @__PURE__ */ jsx13(SelectItem, {
1399
+ children: /* @__PURE__ */ jsx3(SelectGroup, {
1400
+ children: props.options.map((option) => /* @__PURE__ */ jsx3(SelectItem, {
1964
1401
  value: option.value,
1965
1402
  children: option.label
1966
1403
  }, option.value))
@@ -1968,10 +1405,10 @@ var SelectField = ({
1968
1405
  })
1969
1406
  ]
1970
1407
  }),
1971
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1408
+ props.description && /* @__PURE__ */ jsx3(FieldDescription, {
1972
1409
  children: props.description
1973
1410
  }),
1974
- /* @__PURE__ */ jsx13(FieldError, {
1411
+ /* @__PURE__ */ jsx3(FieldError, {
1975
1412
  error: field.error
1976
1413
  })
1977
1414
  ]
@@ -1981,7 +1418,7 @@ var FolderField = ({
1981
1418
  props
1982
1419
  }) => {
1983
1420
  const labels = useEffectFormMessages(props.locale, props.messages);
1984
- return /* @__PURE__ */ jsx13(SelectField, {
1421
+ return /* @__PURE__ */ jsx3(SelectField, {
1985
1422
  field,
1986
1423
  props: { ...props, label: labels.folder }
1987
1424
  });
@@ -1989,30 +1426,30 @@ var FolderField = ({
1989
1426
  var MultiSelectField = ({
1990
1427
  field,
1991
1428
  props
1992
- }) => /* @__PURE__ */ jsxs6(Field, {
1429
+ }) => /* @__PURE__ */ jsxs3(Field, {
1993
1430
  "data-invalid": Option.isSome(field.error),
1994
1431
  children: [
1995
- /* @__PURE__ */ jsx13(FieldLabel2, {
1432
+ /* @__PURE__ */ jsx3(FieldLabel, {
1996
1433
  htmlFor: field.path,
1997
1434
  options: props
1998
1435
  }),
1999
- /* @__PURE__ */ jsxs6(Select, {
1436
+ /* @__PURE__ */ jsxs3(Select, {
2000
1437
  items: props.options,
2001
1438
  onValueChange: (value) => field.onChange(value ?? []),
2002
1439
  multiple: true,
2003
1440
  value: Array.from(field.value),
2004
1441
  children: [
2005
- /* @__PURE__ */ jsx13(SelectTrigger, {
1442
+ /* @__PURE__ */ jsx3(SelectTrigger, {
2006
1443
  className: "gap-1",
2007
1444
  id: field.path,
2008
1445
  "aria-invalid": Option.isSome(field.error),
2009
- children: /* @__PURE__ */ jsx13(SelectValue, {
1446
+ children: /* @__PURE__ */ jsx3(SelectValue, {
2010
1447
  placeholder: props.placeholder
2011
1448
  })
2012
1449
  }),
2013
- /* @__PURE__ */ jsx13(SelectContent, {
2014
- children: /* @__PURE__ */ jsx13(SelectGroup, {
2015
- children: props.options.map((option) => /* @__PURE__ */ jsx13(SelectItem, {
1450
+ /* @__PURE__ */ jsx3(SelectContent, {
1451
+ children: /* @__PURE__ */ jsx3(SelectGroup, {
1452
+ children: props.options.map((option) => /* @__PURE__ */ jsx3(SelectItem, {
2016
1453
  value: option.value,
2017
1454
  children: option.label
2018
1455
  }, option.value))
@@ -2020,10 +1457,10 @@ var MultiSelectField = ({
2020
1457
  })
2021
1458
  ]
2022
1459
  }),
2023
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1460
+ props.description && /* @__PURE__ */ jsx3(FieldDescription, {
2024
1461
  children: props.description
2025
1462
  }),
2026
- /* @__PURE__ */ jsx13(FieldError, {
1463
+ /* @__PURE__ */ jsx3(FieldError, {
2027
1464
  error: field.error
2028
1465
  })
2029
1466
  ]
@@ -2031,30 +1468,30 @@ var MultiSelectField = ({
2031
1468
  var NullableMultiSelectField = ({
2032
1469
  field,
2033
1470
  props
2034
- }) => /* @__PURE__ */ jsxs6(Field, {
1471
+ }) => /* @__PURE__ */ jsxs3(Field, {
2035
1472
  "data-invalid": Option.isSome(field.error),
2036
1473
  children: [
2037
- /* @__PURE__ */ jsx13(FieldLabel2, {
1474
+ /* @__PURE__ */ jsx3(FieldLabel, {
2038
1475
  htmlFor: field.path,
2039
1476
  options: props
2040
1477
  }),
2041
- /* @__PURE__ */ jsxs6(Select, {
1478
+ /* @__PURE__ */ jsxs3(Select, {
2042
1479
  items: props.options,
2043
1480
  onValueChange: (value) => field.onChange(value && value.length > 0 ? value : null),
2044
1481
  multiple: true,
2045
1482
  value: field.value ? Array.from(field.value) : [],
2046
1483
  children: [
2047
- /* @__PURE__ */ jsx13(SelectTrigger, {
1484
+ /* @__PURE__ */ jsx3(SelectTrigger, {
2048
1485
  className: "gap-1",
2049
1486
  id: field.path,
2050
1487
  "aria-invalid": Option.isSome(field.error),
2051
- children: /* @__PURE__ */ jsx13(SelectValue, {
1488
+ children: /* @__PURE__ */ jsx3(SelectValue, {
2052
1489
  placeholder: props.placeholder
2053
1490
  })
2054
1491
  }),
2055
- /* @__PURE__ */ jsx13(SelectContent, {
2056
- children: /* @__PURE__ */ jsx13(SelectGroup, {
2057
- children: props.options.map((option) => /* @__PURE__ */ jsx13(SelectItem, {
1492
+ /* @__PURE__ */ jsx3(SelectContent, {
1493
+ children: /* @__PURE__ */ jsx3(SelectGroup, {
1494
+ children: props.options.map((option) => /* @__PURE__ */ jsx3(SelectItem, {
2058
1495
  value: option.value,
2059
1496
  children: option.label
2060
1497
  }, option.value))
@@ -2062,10 +1499,10 @@ var NullableMultiSelectField = ({
2062
1499
  })
2063
1500
  ]
2064
1501
  }),
2065
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1502
+ props.description && /* @__PURE__ */ jsx3(FieldDescription, {
2066
1503
  children: props.description
2067
1504
  }),
2068
- /* @__PURE__ */ jsx13(FieldError, {
1505
+ /* @__PURE__ */ jsx3(FieldError, {
2069
1506
  error: field.error
2070
1507
  })
2071
1508
  ]
@@ -2091,15 +1528,15 @@ var SearchableSelectField = ({
2091
1528
  const invalid = Option.isSome(field.error);
2092
1529
  const labels = virtualizedComboboxMessages(locale, props.messages);
2093
1530
  const ariaLabel = Schema6.is(Schema6.String)(props.label) ? props.label : labels.search;
2094
- return /* @__PURE__ */ jsxs6(Field, {
1531
+ return /* @__PURE__ */ jsxs3(Field, {
2095
1532
  className: "min-w-0",
2096
1533
  "data-invalid": invalid,
2097
1534
  children: [
2098
- /* @__PURE__ */ jsx13(FieldLabel2, {
1535
+ /* @__PURE__ */ jsx3(FieldLabel, {
2099
1536
  htmlFor: field.path,
2100
1537
  options: props
2101
1538
  }),
2102
- /* @__PURE__ */ jsx13(VirtualizedCombobox, {
1539
+ /* @__PURE__ */ jsx3(VirtualizedCombobox, {
2103
1540
  contentClassName: props.contentClassName,
2104
1541
  ariaInvalid: invalid,
2105
1542
  ariaLabel,
@@ -2116,10 +1553,10 @@ var SearchableSelectField = ({
2116
1553
  triggerId: field.path,
2117
1554
  value: selectedItems
2118
1555
  }),
2119
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1556
+ props.description && /* @__PURE__ */ jsx3(FieldDescription, {
2120
1557
  children: props.description
2121
1558
  }),
2122
- /* @__PURE__ */ jsx13(FieldError, {
1559
+ /* @__PURE__ */ jsx3(FieldError, {
2123
1560
  error: field.error
2124
1561
  })
2125
1562
  ]
@@ -2134,15 +1571,15 @@ var SingleSearchableSelectField = ({
2134
1571
  const invalid = Option.isSome(field.error);
2135
1572
  const labels = virtualizedComboboxMessages(locale, props.messages);
2136
1573
  const ariaLabel = Schema6.is(Schema6.String)(props.label) ? props.label : labels.search;
2137
- return /* @__PURE__ */ jsxs6(Field, {
1574
+ return /* @__PURE__ */ jsxs3(Field, {
2138
1575
  className: "min-w-0",
2139
1576
  "data-invalid": invalid,
2140
1577
  children: [
2141
- /* @__PURE__ */ jsx13(FieldLabel2, {
1578
+ /* @__PURE__ */ jsx3(FieldLabel, {
2142
1579
  htmlFor: field.path,
2143
1580
  options: props
2144
1581
  }),
2145
- /* @__PURE__ */ jsx13(VirtualizedCombobox, {
1582
+ /* @__PURE__ */ jsx3(VirtualizedCombobox, {
2146
1583
  contentClassName: props.contentClassName,
2147
1584
  ariaInvalid: invalid,
2148
1585
  ariaLabel,
@@ -2158,10 +1595,10 @@ var SingleSearchableSelectField = ({
2158
1595
  triggerId: field.path,
2159
1596
  value: selectedItems[0] ?? null
2160
1597
  }),
2161
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1598
+ props.description && /* @__PURE__ */ jsx3(FieldDescription, {
2162
1599
  children: props.description
2163
1600
  }),
2164
- /* @__PURE__ */ jsx13(FieldError, {
1601
+ /* @__PURE__ */ jsx3(FieldError, {
2165
1602
  error: field.error
2166
1603
  })
2167
1604
  ]
@@ -2174,16 +1611,16 @@ var NullableKeyValueField = ({
2174
1611
  const labels = useEffectFormMessages(props.locale, props.messages);
2175
1612
  const entries = Object.entries(field.value ?? {});
2176
1613
  const updateEntry = (index, key, value) => Object.fromEntries(entries.map(([currentKey, currentValue], currentIndex) => currentIndex === index ? [key, value] : [currentKey, currentValue]));
2177
- return /* @__PURE__ */ jsxs6(Field, {
1614
+ return /* @__PURE__ */ jsxs3(Field, {
2178
1615
  "data-invalid": Option.isSome(field.error),
2179
1616
  children: [
2180
- /* @__PURE__ */ jsx13(FieldLabel2, {
1617
+ /* @__PURE__ */ jsx3(FieldLabel, {
2181
1618
  options: props
2182
1619
  }),
2183
- entries.map(([key, value], index) => /* @__PURE__ */ jsxs6("div", {
1620
+ entries.map(([key, value], index) => /* @__PURE__ */ jsxs3("div", {
2184
1621
  className: "flex w-full flex-row items-center gap-2",
2185
1622
  children: [
2186
- /* @__PURE__ */ jsx13(Input, {
1623
+ /* @__PURE__ */ jsx3(Input2, {
2187
1624
  id: `${field.path}-${index}-key`,
2188
1625
  name: `${field.path}.${index}.key`,
2189
1626
  type: "text",
@@ -2194,7 +1631,7 @@ var NullableKeyValueField = ({
2194
1631
  onChange: (event) => field.onChange(updateEntry(index, event.target.value, value)),
2195
1632
  "aria-invalid": Option.isSome(field.error)
2196
1633
  }),
2197
- /* @__PURE__ */ jsx13(Input, {
1634
+ /* @__PURE__ */ jsx3(Input2, {
2198
1635
  id: `${field.path}-${index}-value`,
2199
1636
  name: `${field.path}.${index}.value`,
2200
1637
  type: "text",
@@ -2205,12 +1642,12 @@ var NullableKeyValueField = ({
2205
1642
  onChange: (event) => field.onChange(updateEntry(index, key, event.target.value)),
2206
1643
  "aria-invalid": Option.isSome(field.error)
2207
1644
  }),
2208
- /* @__PURE__ */ jsxs6(Button, {
1645
+ /* @__PURE__ */ jsxs3(Button3, {
2209
1646
  type: "button",
2210
1647
  variant: "secondary",
2211
1648
  onClick: () => field.onChange(Object.fromEntries(entries.filter((_, currentIndex) => currentIndex !== index))),
2212
1649
  children: [
2213
- /* @__PURE__ */ jsx13(Trash, {
1650
+ /* @__PURE__ */ jsx3(Trash, {
2214
1651
  "data-icon": "inline-start"
2215
1652
  }),
2216
1653
  labels.delete
@@ -2218,22 +1655,22 @@ var NullableKeyValueField = ({
2218
1655
  })
2219
1656
  ]
2220
1657
  }, index)),
2221
- /* @__PURE__ */ jsxs6(Button, {
1658
+ /* @__PURE__ */ jsxs3(Button3, {
2222
1659
  type: "button",
2223
1660
  size: "sm",
2224
1661
  className: "self-start",
2225
1662
  onClick: () => field.onChange({ ...field.value, "": "" }),
2226
1663
  children: [
2227
- /* @__PURE__ */ jsx13(Plus, {
1664
+ /* @__PURE__ */ jsx3(Plus, {
2228
1665
  "data-icon": "inline-start"
2229
1666
  }),
2230
1667
  labels.add
2231
1668
  ]
2232
1669
  }),
2233
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1670
+ props.description && /* @__PURE__ */ jsx3(FieldDescription, {
2234
1671
  children: props.description
2235
1672
  }),
2236
- /* @__PURE__ */ jsx13(FieldError, {
1673
+ /* @__PURE__ */ jsx3(FieldError, {
2237
1674
  error: field.error
2238
1675
  })
2239
1676
  ]
@@ -2246,16 +1683,16 @@ var KeyValueField = ({
2246
1683
  const labels = useEffectFormMessages(props.locale, props.messages);
2247
1684
  const entries = Object.entries(field.value);
2248
1685
  const updateEntry = (index, key, value) => Object.fromEntries(entries.map(([currentKey, currentValue], currentIndex) => currentIndex === index ? [key, value] : [currentKey, currentValue]));
2249
- return /* @__PURE__ */ jsxs6(Field, {
1686
+ return /* @__PURE__ */ jsxs3(Field, {
2250
1687
  "data-invalid": Option.isSome(field.error),
2251
1688
  children: [
2252
- /* @__PURE__ */ jsx13(FieldLabel2, {
1689
+ /* @__PURE__ */ jsx3(FieldLabel, {
2253
1690
  options: props
2254
1691
  }),
2255
- entries.map(([key, value], index) => /* @__PURE__ */ jsxs6("div", {
1692
+ entries.map(([key, value], index) => /* @__PURE__ */ jsxs3("div", {
2256
1693
  className: "flex w-full flex-row items-center gap-2",
2257
1694
  children: [
2258
- /* @__PURE__ */ jsx13(Input, {
1695
+ /* @__PURE__ */ jsx3(Input2, {
2259
1696
  id: `${field.path}-${index}-key`,
2260
1697
  name: `${field.path}.${index}.key`,
2261
1698
  type: "text",
@@ -2266,7 +1703,7 @@ var KeyValueField = ({
2266
1703
  onChange: (event) => field.onChange(updateEntry(index, event.target.value, value)),
2267
1704
  "aria-invalid": Option.isSome(field.error)
2268
1705
  }),
2269
- /* @__PURE__ */ jsx13(Input, {
1706
+ /* @__PURE__ */ jsx3(Input2, {
2270
1707
  id: `${field.path}-${index}-value`,
2271
1708
  name: `${field.path}.${index}.value`,
2272
1709
  type: "text",
@@ -2277,12 +1714,12 @@ var KeyValueField = ({
2277
1714
  onChange: (event) => field.onChange(updateEntry(index, key, event.target.value)),
2278
1715
  "aria-invalid": Option.isSome(field.error)
2279
1716
  }),
2280
- /* @__PURE__ */ jsxs6(Button, {
1717
+ /* @__PURE__ */ jsxs3(Button3, {
2281
1718
  type: "button",
2282
1719
  variant: "secondary",
2283
1720
  onClick: () => field.onChange(Object.fromEntries(entries.filter((_, currentIndex) => currentIndex !== index))),
2284
1721
  children: [
2285
- /* @__PURE__ */ jsx13(Trash, {
1722
+ /* @__PURE__ */ jsx3(Trash, {
2286
1723
  "data-icon": "inline-start"
2287
1724
  }),
2288
1725
  labels.delete
@@ -2290,22 +1727,22 @@ var KeyValueField = ({
2290
1727
  })
2291
1728
  ]
2292
1729
  }, index)),
2293
- /* @__PURE__ */ jsxs6(Button, {
1730
+ /* @__PURE__ */ jsxs3(Button3, {
2294
1731
  type: "button",
2295
1732
  size: "sm",
2296
1733
  className: "self-start",
2297
1734
  onClick: () => field.onChange({ ...field.value, "": "" }),
2298
1735
  children: [
2299
- /* @__PURE__ */ jsx13(Plus, {
1736
+ /* @__PURE__ */ jsx3(Plus, {
2300
1737
  "data-icon": "inline-start"
2301
1738
  }),
2302
1739
  labels.add
2303
1740
  ]
2304
1741
  }),
2305
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1742
+ props.description && /* @__PURE__ */ jsx3(FieldDescription, {
2306
1743
  children: props.description
2307
1744
  }),
2308
- /* @__PURE__ */ jsx13(FieldError, {
1745
+ /* @__PURE__ */ jsx3(FieldError, {
2309
1746
  error: field.error
2310
1747
  })
2311
1748
  ]
@@ -2316,9 +1753,9 @@ var RevertButton = ({
2316
1753
  props
2317
1754
  }) => {
2318
1755
  const labels = useEffectFormMessages(props.locale, props.messages);
2319
- return field.value === props.original ? null : /* @__PURE__ */ jsx13("div", {
1756
+ return field.value === props.original ? null : /* @__PURE__ */ jsx3("div", {
2320
1757
  className: "flex flex-1 justify-end",
2321
- children: /* @__PURE__ */ jsx13(Button, {
1758
+ children: /* @__PURE__ */ jsx3(Button3, {
2322
1759
  type: "button",
2323
1760
  variant: "link",
2324
1761
  className: "-mr-4 h-auto py-0",
@@ -2331,14 +1768,14 @@ var ImageField = ({ field, props }) => {
2331
1768
  const labels = useEffectFormMessages(props.locale, props.messages);
2332
1769
  const imageUrl = Schema6.is(Schema6.String)(field.value) ? field.value : undefined;
2333
1770
  const invalid = Option.isSome(field.error);
2334
- return /* @__PURE__ */ jsxs6(Field, {
1771
+ return /* @__PURE__ */ jsxs3(Field, {
2335
1772
  "data-invalid": invalid,
2336
1773
  children: [
2337
- /* @__PURE__ */ jsx13(FieldLabel2, {
1774
+ /* @__PURE__ */ jsx3(FieldLabel, {
2338
1775
  htmlFor: field.path,
2339
1776
  options: props
2340
1777
  }),
2341
- /* @__PURE__ */ jsx13(FileInput, {
1778
+ /* @__PURE__ */ jsx3(FileInput, {
2342
1779
  accept: "image/*",
2343
1780
  onBlur: field.onBlur,
2344
1781
  canClear: Boolean(field.value),
@@ -2358,10 +1795,10 @@ var ImageField = ({ field, props }) => {
2358
1795
  onClear: () => field.onChange(null),
2359
1796
  title: field.value instanceof File ? field.value.name : props.label
2360
1797
  }),
2361
- props.size.suggestedWidth && props.size.suggestedHeight ? /* @__PURE__ */ jsx13(FieldDescription, {
1798
+ props.size.suggestedWidth && props.size.suggestedHeight ? /* @__PURE__ */ jsx3(FieldDescription, {
2362
1799
  children: labels.suggestedImageSize(String(props.size.suggestedWidth), String(props.size.suggestedHeight))
2363
1800
  }) : null,
2364
- /* @__PURE__ */ jsx13(FieldError, {
1801
+ /* @__PURE__ */ jsx3(FieldError, {
2365
1802
  error: field.error
2366
1803
  })
2367
1804
  ]
@@ -2373,31 +1810,31 @@ var NavigationBlock = ({
2373
1810
  shouldBlock
2374
1811
  }) => {
2375
1812
  const labels = useEffectFormMessages(locale, messages);
2376
- return /* @__PURE__ */ jsx13(Block, {
1813
+ return /* @__PURE__ */ jsx3(Block, {
2377
1814
  enableBeforeUnload: () => shouldBlock,
2378
1815
  shouldBlockFn: () => shouldBlock,
2379
1816
  withResolver: true,
2380
- children: ({ status, proceed, reset }) => /* @__PURE__ */ jsx13(AlertDialog, {
1817
+ children: ({ status, proceed, reset }) => /* @__PURE__ */ jsx3(AlertDialog, {
2381
1818
  open: status === "blocked",
2382
- children: /* @__PURE__ */ jsxs6(AlertDialogContent, {
1819
+ children: /* @__PURE__ */ jsxs3(AlertDialogContent, {
2383
1820
  children: [
2384
- /* @__PURE__ */ jsxs6(AlertDialogHeader, {
1821
+ /* @__PURE__ */ jsxs3(AlertDialogHeader, {
2385
1822
  children: [
2386
- /* @__PURE__ */ jsx13(AlertDialogTitle, {
1823
+ /* @__PURE__ */ jsx3(AlertDialogTitle, {
2387
1824
  children: labels.blockNavigationTitle
2388
1825
  }),
2389
- /* @__PURE__ */ jsx13(AlertDialogDescription, {
1826
+ /* @__PURE__ */ jsx3(AlertDialogDescription, {
2390
1827
  children: labels.blockNavigationDescription
2391
1828
  })
2392
1829
  ]
2393
1830
  }),
2394
- /* @__PURE__ */ jsxs6(AlertDialogFooter, {
1831
+ /* @__PURE__ */ jsxs3(AlertDialogFooter, {
2395
1832
  children: [
2396
- /* @__PURE__ */ jsx13(AlertDialogCancel, {
1833
+ /* @__PURE__ */ jsx3(AlertDialogCancel, {
2397
1834
  onClick: reset,
2398
1835
  children: labels.blockNavigationCancel
2399
1836
  }),
2400
- /* @__PURE__ */ jsx13(AlertDialogAction, {
1837
+ /* @__PURE__ */ jsx3(AlertDialogAction, {
2401
1838
  onClick: proceed,
2402
1839
  children: labels.blockNavigationConfirm
2403
1840
  })
@@ -2418,13 +1855,13 @@ var FormBlockNavigation = ({
2418
1855
  const hasChangedSinceSubmit = useAtomValue(form.hasChangedSinceSubmit);
2419
1856
  const lastSubmittedValues = useAtomValue(form.lastSubmittedValues);
2420
1857
  const shouldBlock = !submitResult.waiting && (Option.isNone(lastSubmittedValues) ? isDirty : hasChangedSinceSubmit);
2421
- return /* @__PURE__ */ jsx13(NavigationBlock, {
1858
+ return /* @__PURE__ */ jsx3(NavigationBlock, {
2422
1859
  locale,
2423
1860
  messages,
2424
1861
  shouldBlock
2425
1862
  });
2426
1863
  };
2427
- var BlockNavigation = (props) => /* @__PURE__ */ jsx13(FormBlockNavigation, {
1864
+ var BlockNavigation = (props) => /* @__PURE__ */ jsx3(FormBlockNavigation, {
2428
1865
  ...props
2429
1866
  });
2430
1867
  export {