@krak-stack/registry 0.11.4 → 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 (171) hide show
  1. package/CHANGELOG.md +13 -1
  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/icon-input/html.js +9 -56
  54. package/dist/components/icon-input/react.js +43 -143
  55. package/dist/components/image-crop-editor/html.js +1 -35
  56. package/dist/components/image-crop-editor/react.js +21 -66
  57. package/dist/components/locale-switcher/html.js +8 -55
  58. package/dist/components/locale-switcher/react.js +21 -146
  59. package/dist/components/map-menu/html.d.ts +8 -8
  60. package/dist/components/map-menu/html.js +13 -72
  61. package/dist/components/map-menu/react.js +92 -309
  62. package/dist/components/markdown/html.js +1 -35
  63. package/dist/components/markdown/react.js +20 -64
  64. package/dist/components/notification-menu/html.js +14 -50
  65. package/dist/components/notification-menu/react.js +73 -343
  66. package/dist/components/pagination/html.js +17 -73
  67. package/dist/components/pagination/react.js +37 -200
  68. package/dist/components/phone-number-input/html.js +19 -57
  69. package/dist/components/phone-number-input/react.d.ts +1 -1
  70. package/dist/components/phone-number-input/react.js +43 -142
  71. package/dist/components/presence-transition/index.d.ts +2 -2
  72. package/dist/components/registry-previews/component-example.js +26 -126
  73. package/dist/components/rich-text-editor/html.d.ts +12 -12
  74. package/dist/components/rich-text-editor/html.js +12 -85
  75. package/dist/components/rich-text-editor/react.js +55 -272
  76. package/dist/components/search-menu/classes.d.ts +2 -0
  77. package/dist/components/search-menu/html.d.ts +2 -0
  78. package/dist/components/search-menu/html.js +40 -73
  79. package/dist/components/search-menu/index.d.ts +27 -2
  80. package/dist/components/search-menu/react.d.ts +1 -1
  81. package/dist/components/search-menu/react.js +59 -280
  82. package/dist/components/search-menu/schema.d.ts +1 -0
  83. package/dist/components/select-with-custom-input/html.d.ts +2 -2
  84. package/dist/components/select-with-custom-input/html.js +13 -48
  85. package/dist/components/select-with-custom-input/react.js +22 -146
  86. package/dist/components/sidebar-layout/html.d.ts +16 -6
  87. package/dist/components/sidebar-layout/html.js +83 -69
  88. package/dist/components/sidebar-layout/index.d.ts +16 -0
  89. package/dist/components/sidebar-layout/react.js +105 -698
  90. package/dist/components/stats-card/react.js +13 -58
  91. package/dist/components/support/html.js +14 -69
  92. package/dist/components/support/react.js +74 -320
  93. package/dist/components/theme-switcher/html.js +11 -55
  94. package/dist/components/theme-switcher/react.js +28 -152
  95. package/dist/components/time-input/html.d.ts +2 -2
  96. package/dist/components/time-input/html.js +8 -53
  97. package/dist/components/time-input/react.js +34 -188
  98. package/dist/components/timezone-input/html.js +11 -67
  99. package/dist/components/timezone-input/react.js +41 -143
  100. package/dist/components/toast/html.d.ts +6 -6
  101. package/dist/components/toast/html.js +13 -46
  102. package/dist/components/tracking-notice/react.js +39 -188
  103. package/dist/components/unsaved-changes-guard/html.js +9 -43
  104. package/dist/components/unsaved-changes-guard/react.js +19 -169
  105. package/dist/components/upload-attachment/html.d.ts +4 -4
  106. package/dist/components/upload-attachment/html.js +4 -35
  107. package/dist/components/upload-attachment/react.js +25 -164
  108. package/dist/components/virtualized-combobox/html.js +10 -35
  109. package/dist/components/virtualized-combobox/react.js +28 -129
  110. package/dist/components/webhook-delivery-table/html.js +211 -184
  111. package/dist/components/webhook-delivery-table/react.js +585 -1362
  112. package/dist/lib/docs.integrations.server.js +150 -202
  113. package/dist/lib/docs.js +305 -1085
  114. package/dist/lib/docs.server.js +134 -186
  115. package/dist/lib/documentation-toolkit.js +144 -196
  116. package/dist/services/agent/client/index.js +226 -1072
  117. package/dist/services/notification/client/index.js +73 -343
  118. package/dist/services/notification/public.js +73 -343
  119. package/package.json +5 -13
  120. package/dist/components/effectcn/alert-dialog.d.ts +0 -13
  121. package/dist/components/effectcn/button.d.ts +0 -31
  122. package/dist/components/effectcn/calendar.d.ts +0 -12
  123. package/dist/components/effectcn/checkbox.d.ts +0 -10
  124. package/dist/components/effectcn/combobox.d.ts +0 -25
  125. package/dist/components/effectcn/dialog.d.ts +0 -19
  126. package/dist/components/effectcn/field.d.ts +0 -11
  127. package/dist/components/effectcn/file-drop.d.ts +0 -8
  128. package/dist/components/effectcn/input.d.ts +0 -26
  129. package/dist/components/effectcn/menu.d.ts +0 -85
  130. package/dist/components/effectcn/menubar.d.ts +0 -8
  131. package/dist/components/effectcn/popover.d.ts +0 -18
  132. package/dist/components/effectcn/scroll-area.d.ts +0 -12
  133. package/dist/components/effectcn/select.d.ts +0 -68
  134. package/dist/components/effectcn/toast.d.ts +0 -29
  135. package/dist/components/ui/alert-dialog.d.ts +0 -18
  136. package/dist/components/ui/alert.d.ts +0 -10
  137. package/dist/components/ui/attachment.d.ts +0 -23
  138. package/dist/components/ui/badge.d.ts +0 -7
  139. package/dist/components/ui/bubble.d.ts +0 -16
  140. package/dist/components/ui/button.d.ts +0 -8
  141. package/dist/components/ui/calendar.d.ts +0 -10
  142. package/dist/components/ui/card.d.ts +0 -11
  143. package/dist/components/ui/checkbox.d.ts +0 -3
  144. package/dist/components/ui/collapsible.d.ts +0 -5
  145. package/dist/components/ui/command.d.ts +0 -18
  146. package/dist/components/ui/dialog.d.ts +0 -17
  147. package/dist/components/ui/dropdown-menu.d.ts +0 -29
  148. package/dist/components/ui/empty.d.ts +0 -11
  149. package/dist/components/ui/field.d.ts +0 -24
  150. package/dist/components/ui/input-group.d.ts +0 -17
  151. package/dist/components/ui/input.d.ts +0 -3
  152. package/dist/components/ui/item.d.ts +0 -22
  153. package/dist/components/ui/label.d.ts +0 -3
  154. package/dist/components/ui/menubar.d.ts +0 -29
  155. package/dist/components/ui/message-scroller.d.ts +0 -10
  156. package/dist/components/ui/message.d.ts +0 -10
  157. package/dist/components/ui/popover.d.ts +0 -9
  158. package/dist/components/ui/scroll-area.d.ts +0 -4
  159. package/dist/components/ui/select.d.ts +0 -15
  160. package/dist/components/ui/select.js +0 -159
  161. package/dist/components/ui/separator.d.ts +0 -3
  162. package/dist/components/ui/sheet.d.ts +0 -14
  163. package/dist/components/ui/sidebar.d.ts +0 -63
  164. package/dist/components/ui/skeleton.d.ts +0 -2
  165. package/dist/components/ui/table.d.ts +0 -10
  166. package/dist/components/ui/tabs.d.ts +0 -10
  167. package/dist/components/ui/textarea.d.ts +0 -3
  168. package/dist/components/ui/tooltip.d.ts +0 -6
  169. package/dist/components/ui/trace.d.ts +0 -18
  170. package/dist/lib/effectcn-form.d.ts +0 -3
  171. package/dist/lib/effectcn-form.js +0 -54
@@ -1,132 +1,12 @@
1
- // ../../src/components/ui/select.tsx
2
- import { Select as SelectPrimitive } from "@base-ui/react/select";
3
-
4
- // ../../src/lib/utils.ts
5
- import { cn } from "cn";
6
-
7
- // ../../src/components/ui/select.tsx
8
- import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from "lucide-react";
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
- "use client";
11
- var Select = SelectPrimitive.Root;
12
- function SelectGroup({ className, ...props }) {
13
- return /* @__PURE__ */ jsx(SelectPrimitive.Group, {
14
- "data-slot": "select-group",
15
- className: cn("scroll-my-1 p-1", className),
16
- ...props
17
- });
18
- }
19
- function SelectValue({ className, ...props }) {
20
- return /* @__PURE__ */ jsx(SelectPrimitive.Value, {
21
- "data-slot": "select-value",
22
- className: cn("flex flex-1 text-left", className),
23
- ...props
24
- });
25
- }
26
- function SelectTrigger({
27
- className,
28
- size = "default",
29
- children,
30
- ...props
31
- }) {
32
- return /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, {
33
- "data-slot": "select-trigger",
34
- "data-size": size,
35
- 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),
36
- ...props,
37
- children: [
38
- children,
39
- /* @__PURE__ */ jsx(SelectPrimitive.Icon, {
40
- render: /* @__PURE__ */ jsx(ChevronDownIcon, {
41
- className: "text-muted-foreground pointer-events-none size-4"
42
- })
43
- })
44
- ]
45
- });
46
- }
47
- function SelectContent({
48
- className,
49
- children,
50
- side = "bottom",
51
- sideOffset = 4,
52
- align = "start",
53
- alignOffset = 0,
54
- alignItemWithTrigger = false,
55
- ...props
56
- }) {
57
- return /* @__PURE__ */ jsx(SelectPrimitive.Portal, {
58
- children: /* @__PURE__ */ jsx(SelectPrimitive.Positioner, {
59
- side,
60
- sideOffset,
61
- align,
62
- alignOffset,
63
- alignItemWithTrigger,
64
- className: "isolate z-50",
65
- children: /* @__PURE__ */ jsxs(SelectPrimitive.Popup, {
66
- "data-slot": "select-content",
67
- "data-align-trigger": alignItemWithTrigger,
68
- 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),
69
- ...props,
70
- children: [
71
- /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
72
- /* @__PURE__ */ jsx(SelectPrimitive.List, {
73
- children
74
- }),
75
- /* @__PURE__ */ jsx(SelectScrollDownButton, {})
76
- ]
77
- })
78
- })
79
- });
80
- }
81
- function SelectItem({
82
- className,
83
- children,
84
- ...props
85
- }) {
86
- return /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
87
- "data-slot": "select-item",
88
- 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),
89
- ...props,
90
- children: [
91
- /* @__PURE__ */ jsx(SelectPrimitive.ItemText, {
92
- className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
93
- children
94
- }),
95
- /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, {
96
- render: /* @__PURE__ */ jsx("span", {
97
- className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center"
98
- }),
99
- children: /* @__PURE__ */ jsx(CheckIcon, {
100
- className: "pointer-events-none"
101
- })
102
- })
103
- ]
104
- });
105
- }
106
- function SelectScrollUpButton({
107
- className,
108
- ...props
109
- }) {
110
- return /* @__PURE__ */ jsx(SelectPrimitive.ScrollUpArrow, {
111
- "data-slot": "select-scroll-up-button",
112
- 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),
113
- ...props,
114
- children: /* @__PURE__ */ jsx(ChevronUpIcon, {})
115
- });
116
- }
117
- function SelectScrollDownButton({
118
- className,
119
- ...props
120
- }) {
121
- return /* @__PURE__ */ jsx(SelectPrimitive.ScrollDownArrow, {
122
- "data-slot": "select-scroll-down-button",
123
- 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),
124
- ...props,
125
- children: /* @__PURE__ */ jsx(ChevronDownIcon, {})
126
- });
127
- }
128
-
129
1
  // ../../src/components/form/react.tsx
2
+ import {
3
+ Select,
4
+ SelectContent,
5
+ SelectGroup,
6
+ SelectItem,
7
+ SelectTrigger,
8
+ SelectValue
9
+ } from "@/components/ui/select";
130
10
  import {
131
11
  createFormHook,
132
12
  createFormHookContexts,
@@ -135,191 +15,19 @@ import {
135
15
  import { Block } from "@tanstack/react-router";
136
16
  import { Option, Schema as Schema6 } from "effect";
137
17
  import { Loader2, Plus, Trash, Languages } from "lucide-react";
138
-
139
- // ../../src/components/ui/alert-dialog.tsx
140
- import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
141
-
142
- // ../../src/components/ui/button.tsx
143
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
144
- import { cva } from "class-variance-authority";
145
- import { jsx as jsx2 } from "react/jsx-runtime";
146
- 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", {
147
- variants: {
148
- variant: {
149
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
150
- 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",
151
- 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",
152
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
153
- 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",
154
- link: "text-primary underline-offset-4 hover:underline"
155
- },
156
- size: {
157
- 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",
158
- 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",
159
- 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",
160
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
161
- icon: "size-9",
162
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
163
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
164
- "icon-lg": "size-10"
165
- }
166
- },
167
- defaultVariants: {
168
- variant: "default",
169
- size: "default"
170
- }
171
- });
172
- function Button({
173
- className,
174
- variant = "default",
175
- size = "default",
176
- ...props
177
- }) {
178
- return /* @__PURE__ */ jsx2(ButtonPrimitive, {
179
- "data-slot": "button",
180
- className: cn(buttonVariants({ variant, size, className })),
181
- ...props
182
- });
183
- }
184
-
185
- // ../../src/components/ui/alert-dialog.tsx
186
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
187
- "use client";
188
- function AlertDialog({ ...props }) {
189
- return /* @__PURE__ */ jsx3(AlertDialogPrimitive.Root, {
190
- "data-slot": "alert-dialog",
191
- ...props
192
- });
193
- }
194
- function AlertDialogPortal({ ...props }) {
195
- return /* @__PURE__ */ jsx3(AlertDialogPrimitive.Portal, {
196
- "data-slot": "alert-dialog-portal",
197
- ...props
198
- });
199
- }
200
- function AlertDialogOverlay({
201
- className,
202
- ...props
203
- }) {
204
- return /* @__PURE__ */ jsx3(AlertDialogPrimitive.Backdrop, {
205
- "data-slot": "alert-dialog-overlay",
206
- 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),
207
- ...props
208
- });
209
- }
210
- function AlertDialogContent({
211
- className,
212
- size = "default",
213
- ...props
214
- }) {
215
- return /* @__PURE__ */ jsxs2(AlertDialogPortal, {
216
- children: [
217
- /* @__PURE__ */ jsx3(AlertDialogOverlay, {}),
218
- /* @__PURE__ */ jsx3(AlertDialogPrimitive.Popup, {
219
- "data-slot": "alert-dialog-content",
220
- "data-size": size,
221
- 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),
222
- ...props
223
- })
224
- ]
225
- });
226
- }
227
- function AlertDialogHeader({
228
- className,
229
- ...props
230
- }) {
231
- return /* @__PURE__ */ jsx3("div", {
232
- "data-slot": "alert-dialog-header",
233
- 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),
234
- ...props
235
- });
236
- }
237
- function AlertDialogFooter({
238
- className,
239
- ...props
240
- }) {
241
- return /* @__PURE__ */ jsx3("div", {
242
- "data-slot": "alert-dialog-footer",
243
- 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),
244
- ...props
245
- });
246
- }
247
- function AlertDialogTitle({
248
- className,
249
- ...props
250
- }) {
251
- return /* @__PURE__ */ jsx3(AlertDialogPrimitive.Title, {
252
- "data-slot": "alert-dialog-title",
253
- 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),
254
- ...props
255
- });
256
- }
257
- function AlertDialogDescription({
258
- className,
259
- ...props
260
- }) {
261
- return /* @__PURE__ */ jsx3(AlertDialogPrimitive.Description, {
262
- "data-slot": "alert-dialog-description",
263
- className: cn("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className),
264
- ...props
265
- });
266
- }
267
- function AlertDialogAction({
268
- className,
269
- ...props
270
- }) {
271
- return /* @__PURE__ */ jsx3(Button, {
272
- "data-slot": "alert-dialog-action",
273
- className: cn(className),
274
- ...props
275
- });
276
- }
277
- function AlertDialogCancel({
278
- className,
279
- variant = "outline",
280
- size = "default",
281
- ...props
282
- }) {
283
- return /* @__PURE__ */ jsx3(AlertDialogPrimitive.Close, {
284
- "data-slot": "alert-dialog-cancel",
285
- className: cn(className),
286
- render: /* @__PURE__ */ jsx3(Button, {
287
- variant,
288
- size
289
- }),
290
- ...props
291
- });
292
- }
293
-
294
- // ../../src/components/ui/checkbox.tsx
295
- import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox";
296
- import { CheckIcon as CheckIcon2 } from "lucide-react";
297
- import { jsx as jsx4 } from "react/jsx-runtime";
298
- "use client";
299
- function Checkbox({ className, ...props }) {
300
- return /* @__PURE__ */ jsx4(CheckboxPrimitive.Root, {
301
- "data-slot": "checkbox",
302
- 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),
303
- ...props,
304
- children: /* @__PURE__ */ jsx4(CheckboxPrimitive.Indicator, {
305
- "data-slot": "checkbox-indicator",
306
- className: "grid place-content-center text-current transition-none [&>svg]:size-3.5",
307
- children: /* @__PURE__ */ jsx4(CheckIcon2, {})
308
- })
309
- });
310
- }
311
-
312
- // ../../src/components/ui/input.tsx
313
- import { Input as InputPrimitive } from "@base-ui/react/input";
314
- import { jsx as jsx5 } from "react/jsx-runtime";
315
- function Input({ className, type, ...props }) {
316
- return /* @__PURE__ */ jsx5(InputPrimitive, {
317
- type,
318
- "data-slot": "input",
319
- 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),
320
- ...props
321
- });
322
- }
18
+ import {
19
+ AlertDialog,
20
+ AlertDialogAction,
21
+ AlertDialogCancel,
22
+ AlertDialogContent,
23
+ AlertDialogDescription,
24
+ AlertDialogFooter,
25
+ AlertDialogHeader,
26
+ AlertDialogTitle
27
+ } from "@/components/ui/alert-dialog";
28
+ import { Button as Button3 } from "@/components/ui/button";
29
+ import { Checkbox } from "@/components/ui/checkbox";
30
+ import { Input as Input2 } from "@/components/ui/input";
323
31
 
324
32
  // ../../src/components/file-input/react.tsx
325
33
  import {
@@ -330,127 +38,18 @@ import {
330
38
  } from "react";
331
39
  import { CloudUpload, FileIcon, FileUp, ImageUp, Trash2 } from "lucide-react";
332
40
  import { Schema as Schema3 } from "effect";
333
-
334
- // ../../src/components/ui/attachment.tsx
335
- import { mergeProps } from "@base-ui/react/merge-props";
336
- import { useRender } from "@base-ui/react/use-render";
337
- import { cva as cva2 } from "class-variance-authority";
338
- import { jsx as jsx6 } from "react/jsx-runtime";
339
- 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", {
340
- variants: {
341
- size: {
342
- 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",
343
- 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",
344
- 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"
345
- },
346
- orientation: {
347
- horizontal: "min-w-40 items-center",
348
- vertical: "w-24 flex-col has-data-[slot=attachment-content]:w-30"
349
- }
350
- }
351
- });
352
- function Attachment({
353
- className,
354
- state = "done",
355
- size = "default",
356
- orientation = "horizontal",
357
- ...props
358
- }) {
359
- return /* @__PURE__ */ jsx6("div", {
360
- "data-slot": "attachment",
361
- "data-state": state,
362
- "data-size": size,
363
- "data-orientation": orientation,
364
- className: cn(attachmentVariants({ size, orientation }), className),
365
- ...props
366
- });
367
- }
368
- 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", {
369
- variants: {
370
- variant: {
371
- icon: "",
372
- 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"
373
- }
374
- },
375
- defaultVariants: {
376
- variant: "icon"
377
- }
378
- });
379
- function AttachmentMedia({
380
- className,
381
- variant = "icon",
382
- ...props
383
- }) {
384
- return /* @__PURE__ */ jsx6("div", {
385
- "data-slot": "attachment-media",
386
- "data-variant": variant,
387
- className: cn(attachmentMediaVariants({ variant }), className),
388
- ...props
389
- });
390
- }
391
- function AttachmentContent({
392
- className,
393
- ...props
394
- }) {
395
- return /* @__PURE__ */ jsx6("div", {
396
- "data-slot": "attachment-content",
397
- className: cn("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", className),
398
- ...props
399
- });
400
- }
401
- function AttachmentTitle({
402
- className,
403
- ...props
404
- }) {
405
- return /* @__PURE__ */ jsx6("span", {
406
- "data-slot": "attachment-title",
407
- 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),
408
- ...props
409
- });
410
- }
411
- function AttachmentDescription({
412
- className,
413
- ...props
414
- }) {
415
- return /* @__PURE__ */ jsx6("span", {
416
- "data-slot": "attachment-description",
417
- 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),
418
- ...props
419
- });
420
- }
421
- function AttachmentActions({
422
- className,
423
- ...props
424
- }) {
425
- return /* @__PURE__ */ jsx6("div", {
426
- "data-slot": "attachment-actions",
427
- 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),
428
- ...props
429
- });
430
- }
431
- function AttachmentAction({
432
- className,
433
- variant,
434
- size = "icon-xs",
435
- ...props
436
- }) {
437
- return /* @__PURE__ */ jsx6(Button, {
438
- "data-slot": "attachment-action",
439
- variant: variant ?? "ghost",
440
- size,
441
- className: cn(className),
442
- ...props
443
- });
444
- }
445
- function AttachmentGroup({ className, ...props }) {
446
- return /* @__PURE__ */ jsx6("div", {
447
- "data-slot": "attachment-group",
448
- 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),
449
- ...props
450
- });
451
- }
452
-
453
- // ../../src/components/file-input/react.tsx
41
+ import {
42
+ Attachment,
43
+ AttachmentAction,
44
+ AttachmentActions,
45
+ AttachmentContent,
46
+ AttachmentDescription,
47
+ AttachmentGroup,
48
+ AttachmentMedia,
49
+ AttachmentTitle
50
+ } from "@/components/ui/attachment";
51
+ import { Button } from "@/components/ui/button";
52
+ import { Input } from "@/components/ui/input";
454
53
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
455
54
 
456
55
  // ../../src/components/file-input/classes.ts
@@ -602,7 +201,7 @@ var filePickerBehaviours = {
602
201
  };
603
202
 
604
203
  // ../../src/components/file-input/react.tsx
605
- import { jsx as jsx7, jsxs as jsxs3, Fragment } from "react/jsx-runtime";
204
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
606
205
  "use client";
607
206
  var FileInput = ({
608
207
  classes: classOverrides,
@@ -658,7 +257,7 @@ var FileInput = ({
658
257
  if (inputRef.current)
659
258
  inputRef.current.value = "";
660
259
  };
661
- const input = /* @__PURE__ */ jsx7(Input, {
260
+ const input = /* @__PURE__ */ jsx(Input, {
662
261
  ref: inputRef,
663
262
  className: "sr-only",
664
263
  id,
@@ -677,10 +276,10 @@ var FileInput = ({
677
276
  "aria-invalid": invalid
678
277
  });
679
278
  if (multiple) {
680
- return /* @__PURE__ */ jsxs3("div", {
279
+ return /* @__PURE__ */ jsxs("div", {
681
280
  className: fileInputClasses.root,
682
281
  children: [
683
- /* @__PURE__ */ jsxs3("div", {
282
+ /* @__PURE__ */ jsxs("div", {
684
283
  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",
685
284
  "data-dragging": dragging,
686
285
  onDragEnter: (event) => {
@@ -699,28 +298,28 @@ var FileInput = ({
699
298
  onDragOver: (event) => event.preventDefault(),
700
299
  onDrop: handleDrop,
701
300
  children: [
702
- /* @__PURE__ */ jsx7(CloudUpload, {
301
+ /* @__PURE__ */ jsx(CloudUpload, {
703
302
  className: "text-muted-foreground size-6"
704
303
  }),
705
- /* @__PURE__ */ jsxs3("div", {
304
+ /* @__PURE__ */ jsxs("div", {
706
305
  className: "max-w-full min-w-0",
707
306
  children: [
708
- /* @__PURE__ */ jsx7("p", {
307
+ /* @__PURE__ */ jsx("p", {
709
308
  className: "text-sm font-medium",
710
309
  children: labels.dropFiles
711
310
  }),
712
- /* @__PURE__ */ jsx7("p", {
311
+ /* @__PURE__ */ jsx("p", {
713
312
  className: "text-muted-foreground max-w-full text-xs [overflow-wrap:anywhere]",
714
313
  children: labels.accepts(accept)
715
314
  })
716
315
  ]
717
316
  }),
718
- /* @__PURE__ */ jsxs3(Button, {
317
+ /* @__PURE__ */ jsxs(Button, {
719
318
  type: "button",
720
319
  variant: "outline",
721
320
  onClick: () => inputRef.current?.click(),
722
321
  children: [
723
- /* @__PURE__ */ jsx7(FileUp, {
322
+ /* @__PURE__ */ jsx(FileUp, {
724
323
  "data-icon": "inline-start"
725
324
  }),
726
325
  labels.chooseFiles
@@ -729,29 +328,29 @@ var FileInput = ({
729
328
  input
730
329
  ]
731
330
  }),
732
- files.length > 0 ? /* @__PURE__ */ jsx7(AttachmentGroup, {
733
- children: files.map((selectedFile) => /* @__PURE__ */ jsxs3(Attachment, {
331
+ files.length > 0 ? /* @__PURE__ */ jsx(AttachmentGroup, {
332
+ children: files.map((selectedFile) => /* @__PURE__ */ jsxs(Attachment, {
734
333
  state: invalid ? "error" : "idle",
735
334
  children: [
736
- /* @__PURE__ */ jsx7(AttachmentMedia, {
737
- children: /* @__PURE__ */ jsx7(FileIcon, {})
335
+ /* @__PURE__ */ jsx(AttachmentMedia, {
336
+ children: /* @__PURE__ */ jsx(FileIcon, {})
738
337
  }),
739
- /* @__PURE__ */ jsxs3(AttachmentContent, {
338
+ /* @__PURE__ */ jsxs(AttachmentContent, {
740
339
  children: [
741
- /* @__PURE__ */ jsx7(AttachmentTitle, {
340
+ /* @__PURE__ */ jsx(AttachmentTitle, {
742
341
  children: selectedFile.name
743
342
  }),
744
- /* @__PURE__ */ jsx7(AttachmentDescription, {
343
+ /* @__PURE__ */ jsx(AttachmentDescription, {
745
344
  children: fileDescription(selectedFile, locale)
746
345
  })
747
346
  ]
748
347
  }),
749
- /* @__PURE__ */ jsx7(AttachmentActions, {
750
- children: /* @__PURE__ */ jsx7(AttachmentAction, {
348
+ /* @__PURE__ */ jsx(AttachmentActions, {
349
+ children: /* @__PURE__ */ jsx(AttachmentAction, {
751
350
  type: "button",
752
351
  "aria-label": `${labels.deleteFile} ${selectedFile.name}`,
753
352
  onClick: () => onFilesChange?.(files.filter((candidate) => candidate !== selectedFile)),
754
- children: /* @__PURE__ */ jsx7(Trash2, {})
353
+ children: /* @__PURE__ */ jsx(Trash2, {})
755
354
  })
756
355
  })
757
356
  ]
@@ -761,7 +360,7 @@ var FileInput = ({
761
360
  });
762
361
  }
763
362
  if (!selected) {
764
- return /* @__PURE__ */ jsxs3("div", {
363
+ return /* @__PURE__ */ jsxs("div", {
765
364
  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",
766
365
  "data-dragging": dragging,
767
366
  onDragEnter: (event) => {
@@ -780,27 +379,27 @@ var FileInput = ({
780
379
  onDragOver: (event) => event.preventDefault(),
781
380
  onDrop: handleDrop,
782
381
  children: [
783
- /* @__PURE__ */ jsx7(CloudUpload, {
382
+ /* @__PURE__ */ jsx(CloudUpload, {
784
383
  className: "text-muted-foreground size-6"
785
384
  }),
786
- /* @__PURE__ */ jsxs3("div", {
385
+ /* @__PURE__ */ jsxs("div", {
787
386
  children: [
788
- /* @__PURE__ */ jsx7("p", {
387
+ /* @__PURE__ */ jsx("p", {
789
388
  className: "text-sm font-medium",
790
389
  children: labels.dropFile
791
390
  }),
792
- /* @__PURE__ */ jsx7("p", {
391
+ /* @__PURE__ */ jsx("p", {
793
392
  className: "text-muted-foreground text-xs",
794
393
  children: labels.accepts(accept)
795
394
  })
796
395
  ]
797
396
  }),
798
- /* @__PURE__ */ jsxs3(Button, {
397
+ /* @__PURE__ */ jsxs(Button, {
799
398
  type: "button",
800
399
  variant: "outline",
801
400
  onClick: () => inputRef.current?.click(),
802
401
  children: [
803
- /* @__PURE__ */ jsx7(FileUp, {
402
+ /* @__PURE__ */ jsx(FileUp, {
804
403
  "data-icon": "inline-start"
805
404
  }),
806
405
  labels.chooseFile
@@ -810,53 +409,53 @@ var FileInput = ({
810
409
  ]
811
410
  });
812
411
  }
813
- return /* @__PURE__ */ jsxs3(Fragment, {
412
+ return /* @__PURE__ */ jsxs(Fragment, {
814
413
  children: [
815
- /* @__PURE__ */ jsxs3(Attachment, {
414
+ /* @__PURE__ */ jsxs(Attachment, {
816
415
  className: "w-full",
817
416
  orientation: "horizontal",
818
417
  state: invalid ? "error" : "done",
819
418
  children: [
820
- /* @__PURE__ */ jsx7(AttachmentMedia, {
419
+ /* @__PURE__ */ jsx(AttachmentMedia, {
821
420
  variant: image ? "image" : "icon",
822
421
  className: image ? "aspect-auto max-w-full border [&_img]:aspect-auto! [&_img]:object-contain!" : undefined,
823
422
  style: image ? {
824
423
  width: image.width,
825
424
  aspectRatio: `${image.width} / ${image.height}`
826
425
  } : undefined,
827
- children: image && imageUrl ? /* @__PURE__ */ jsx7("img", {
426
+ children: image && imageUrl ? /* @__PURE__ */ jsx("img", {
828
427
  src: imageUrl,
829
428
  alt: image.alt,
830
429
  width: image.width,
831
430
  height: image.height,
832
431
  className: "size-full object-contain"
833
- }) : /* @__PURE__ */ jsx7(FileIcon, {})
432
+ }) : /* @__PURE__ */ jsx(FileIcon, {})
834
433
  }),
835
- /* @__PURE__ */ jsxs3(AttachmentContent, {
434
+ /* @__PURE__ */ jsxs(AttachmentContent, {
836
435
  children: [
837
- /* @__PURE__ */ jsx7(AttachmentTitle, {
436
+ /* @__PURE__ */ jsx(AttachmentTitle, {
838
437
  children: file?.name ?? title
839
438
  }),
840
- file ? /* @__PURE__ */ jsx7(AttachmentDescription, {
439
+ file ? /* @__PURE__ */ jsx(AttachmentDescription, {
841
440
  className: "break-words",
842
441
  children: fileDescription(file, locale)
843
442
  }) : null
844
443
  ]
845
444
  }),
846
- /* @__PURE__ */ jsxs3(AttachmentActions, {
445
+ /* @__PURE__ */ jsxs(AttachmentActions, {
847
446
  className: "ml-auto gap-1",
848
447
  children: [
849
- /* @__PURE__ */ jsx7(AttachmentAction, {
448
+ /* @__PURE__ */ jsx(AttachmentAction, {
850
449
  type: "button",
851
450
  "aria-label": labels.replaceFile,
852
451
  onClick: () => inputRef.current?.click(),
853
- children: image ? /* @__PURE__ */ jsx7(ImageUp, {}) : /* @__PURE__ */ jsx7(FileUp, {})
452
+ children: image ? /* @__PURE__ */ jsx(ImageUp, {}) : /* @__PURE__ */ jsx(FileUp, {})
854
453
  }),
855
- canClear ? /* @__PURE__ */ jsx7(AttachmentAction, {
454
+ canClear ? /* @__PURE__ */ jsx(AttachmentAction, {
856
455
  type: "button",
857
456
  "aria-label": `${labels.deleteFile} ${Schema3.is(Schema3.String)(title) ? title : ""}`,
858
457
  onClick: clear,
859
- children: /* @__PURE__ */ jsx7(Trash2, {})
458
+ children: /* @__PURE__ */ jsx(Trash2, {})
860
459
  }) : null
861
460
  ]
862
461
  })
@@ -867,142 +466,17 @@ var FileInput = ({
867
466
  });
868
467
  };
869
468
 
870
- // ../../src/components/ui/field.tsx
871
- import { useMemo as useMemo2 } from "react";
872
- import { cva as cva3 } from "class-variance-authority";
873
-
874
- // ../../src/components/ui/label.tsx
875
- import { jsx as jsx8 } from "react/jsx-runtime";
876
- "use client";
877
- function Label({ className, ...props }) {
878
- return /* @__PURE__ */ jsx8("label", {
879
- "data-slot": "label",
880
- 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),
881
- ...props
882
- });
883
- }
884
-
885
- // ../../src/components/ui/separator.tsx
886
- import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
887
-
888
- // ../../src/components/ui/field.tsx
889
- import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
890
- function FieldSet({ className, ...props }) {
891
- return /* @__PURE__ */ jsx9("fieldset", {
892
- "data-slot": "field-set",
893
- className: cn("flex flex-col gap-6 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", className),
894
- ...props
895
- });
896
- }
897
- function FieldLegend({
898
- className,
899
- variant = "legend",
900
- ...props
901
- }) {
902
- return /* @__PURE__ */ jsx9("legend", {
903
- "data-slot": "field-legend",
904
- "data-variant": variant,
905
- className: cn("mb-3 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base", className),
906
- ...props
907
- });
908
- }
909
- function FieldGroup({ className, ...props }) {
910
- return /* @__PURE__ */ jsx9("div", {
911
- "data-slot": "field-group",
912
- 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),
913
- ...props
914
- });
915
- }
916
- var fieldVariants = cva3("group/field flex w-full gap-3 data-[invalid=true]:text-destructive", {
917
- variants: {
918
- orientation: {
919
- vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
920
- 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",
921
- 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"
922
- }
923
- },
924
- defaultVariants: {
925
- orientation: "vertical"
926
- }
927
- });
928
- function Field({
929
- className,
930
- orientation = "vertical",
931
- ...props
932
- }) {
933
- return /* @__PURE__ */ jsx9("div", {
934
- role: "group",
935
- "data-slot": "field",
936
- "data-orientation": orientation,
937
- className: cn(fieldVariants({ orientation }), className),
938
- ...props
939
- });
940
- }
941
- function FieldLabel({
942
- className,
943
- ...props
944
- }) {
945
- return /* @__PURE__ */ jsx9(Label, {
946
- "data-slot": "field-label",
947
- 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),
948
- ...props
949
- });
950
- }
951
- function FieldDescription({ className, ...props }) {
952
- return /* @__PURE__ */ jsx9("p", {
953
- "data-slot": "field-description",
954
- 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),
955
- ...props
956
- });
957
- }
958
-
959
- // ../../src/components/ui/textarea.tsx
960
- import { jsx as jsx10 } from "react/jsx-runtime";
961
- function Textarea({ className, ...props }) {
962
- return /* @__PURE__ */ jsx10("textarea", {
963
- "data-slot": "textarea",
964
- 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),
965
- ...props
966
- });
967
- }
968
-
969
- // ../../src/components/ui/badge.tsx
970
- import { mergeProps as mergeProps2 } from "@base-ui/react/merge-props";
971
- import { useRender as useRender2 } from "@base-ui/react/use-render";
972
- import { cva as cva4 } from "class-variance-authority";
973
- var badgeVariants = cva4("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!", {
974
- variants: {
975
- variant: {
976
- default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
977
- secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
978
- 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",
979
- outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
980
- ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
981
- link: "text-primary underline-offset-4 hover:underline"
982
- }
983
- },
984
- defaultVariants: {
985
- variant: "default"
986
- }
987
- });
988
- function Badge({
989
- className,
990
- variant = "default",
991
- render,
992
- ...props
993
- }) {
994
- return useRender2({
995
- defaultTagName: "span",
996
- props: mergeProps2({
997
- className: cn(badgeVariants({ variant }), className)
998
- }, props),
999
- render,
1000
- state: {
1001
- slot: "badge",
1002
- variant
1003
- }
1004
- });
1005
- }
469
+ // ../../src/components/form/react.tsx
470
+ import {
471
+ Field,
472
+ FieldDescription,
473
+ FieldGroup,
474
+ FieldLabel,
475
+ FieldLegend,
476
+ FieldSet
477
+ } from "@/components/ui/field";
478
+ import { Textarea } from "@/components/ui/textarea";
479
+ import { Badge } from "@/components/ui/badge";
1006
480
 
1007
481
  // ../../src/components/virtualized-combobox/react.tsx
1008
482
  import { Combobox as ComboboxPrimitive } from "@base-ui/react";
@@ -1014,50 +488,11 @@ import {
1014
488
  useImperativeHandle,
1015
489
  useRef as useRef2
1016
490
  } from "react";
491
+ import { Button as Button2 } from "@/components/ui/button";
492
+ import { InputGroup, InputGroupInput } from "@/components/ui/input-group";
1017
493
 
1018
- // ../../src/components/ui/input-group.tsx
1019
- import { cva as cva5 } from "class-variance-authority";
1020
- import { jsx as jsx11 } from "react/jsx-runtime";
1021
- function InputGroup({ className, ...props }) {
1022
- return /* @__PURE__ */ jsx11("div", {
1023
- "data-slot": "input-group",
1024
- role: "group",
1025
- 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),
1026
- ...props
1027
- });
1028
- }
1029
- 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", {
1030
- variants: {
1031
- align: {
1032
- "inline-start": "order-first pl-2 has-[>button]:-ml-1 has-[>kbd]:ml-[-0.15rem]",
1033
- "inline-end": "order-last pr-2 has-[>button]:-mr-1 has-[>kbd]:mr-[-0.15rem]",
1034
- "block-start": "order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2",
1035
- "block-end": "order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"
1036
- }
1037
- },
1038
- defaultVariants: { align: "inline-start" }
1039
- });
1040
- var inputGroupButtonVariants = cva5("flex items-center gap-2 text-sm shadow-none", {
1041
- variants: {
1042
- size: {
1043
- xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
1044
- sm: "",
1045
- "icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
1046
- "icon-sm": "size-8 p-0 has-[>svg]:p-0"
1047
- }
1048
- },
1049
- defaultVariants: { size: "xs" }
1050
- });
1051
- function InputGroupInput({
1052
- className,
1053
- ...props
1054
- }) {
1055
- return /* @__PURE__ */ jsx11(Input, {
1056
- "data-slot": "input-group-control",
1057
- 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),
1058
- ...props
1059
- });
1060
- }
494
+ // ../../src/lib/utils.ts
495
+ import { cn } from "cn";
1061
496
 
1062
497
  // ../../src/components/virtualized-combobox/react.tsx
1063
498
  import { useKrakstackLocale as useKrakstackLocale2 } from "@krak-stack/registry/krakstack-provider/react";
@@ -1224,7 +659,7 @@ var update = Component2.define(virtualizedComboboxOptions).update({
1224
659
  });
1225
660
 
1226
661
  // ../../src/components/virtualized-combobox/react.tsx
1227
- import { jsx as jsx12, jsxs as jsxs5, Fragment as Fragment2 } from "react/jsx-runtime";
662
+ import { jsx as jsx2, jsxs as jsxs2, Fragment as Fragment2 } from "react/jsx-runtime";
1228
663
  "use client";
1229
664
  var optionEquals = (item, selected) => item.value === selected.value;
1230
665
  var VirtualizedComboboxList = ({
@@ -1262,13 +697,13 @@ var VirtualizedComboboxList = ({
1262
697
  if (element)
1263
698
  virtualizer.measure();
1264
699
  }, [virtualizer]);
1265
- return /* @__PURE__ */ jsxs5(Fragment2, {
700
+ return /* @__PURE__ */ jsxs2(Fragment2, {
1266
701
  children: [
1267
- filteredItems.length === 0 && /* @__PURE__ */ jsx12("div", {
702
+ filteredItems.length === 0 && /* @__PURE__ */ jsx2("div", {
1268
703
  className: "text-muted-foreground flex min-h-0 flex-1 flex-col items-center justify-center overflow-auto py-6 text-center text-sm",
1269
704
  children: emptyLabel
1270
705
  }),
1271
- /* @__PURE__ */ jsx12(ComboboxPrimitive.List, {
706
+ /* @__PURE__ */ jsx2(ComboboxPrimitive.List, {
1272
707
  className: "min-h-0 flex-1 scroll-py-1 overflow-auto overscroll-contain p-1",
1273
708
  hidden: filteredItems.length === 0,
1274
709
  ref: handleScrollElementRef,
@@ -1276,7 +711,7 @@ var VirtualizedComboboxList = ({
1276
711
  height: Math.min(virtualizer.getTotalSize() + 8, 288),
1277
712
  maxHeight: "var(--available-height)"
1278
713
  },
1279
- children: /* @__PURE__ */ jsx12("div", {
714
+ children: /* @__PURE__ */ jsx2("div", {
1280
715
  className: "relative w-full",
1281
716
  role: "presentation",
1282
717
  style: { height: virtualizer.getTotalSize() },
@@ -1289,9 +724,9 @@ var VirtualizedComboboxList = ({
1289
724
  transform: `translateY(${virtualItem.start}px)`
1290
725
  };
1291
726
  if (entry.kind === "group") {
1292
- return /* @__PURE__ */ jsx12(ComboboxPrimitive.Group, {
727
+ return /* @__PURE__ */ jsx2(ComboboxPrimitive.Group, {
1293
728
  className: "contents",
1294
- children: /* @__PURE__ */ jsx12(ComboboxPrimitive.GroupLabel, {
729
+ children: /* @__PURE__ */ jsx2(ComboboxPrimitive.GroupLabel, {
1295
730
  className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
1296
731
  "data-index": virtualItem.index,
1297
732
  ref: virtualizer.measureElement,
@@ -1300,7 +735,7 @@ var VirtualizedComboboxList = ({
1300
735
  })
1301
736
  }, entry.key);
1302
737
  }
1303
- return /* @__PURE__ */ jsxs5(ComboboxPrimitive.Item, {
738
+ return /* @__PURE__ */ jsxs2(ComboboxPrimitive.Item, {
1304
739
  "aria-posinset": entry.index + 1,
1305
740
  "aria-setsize": filteredItems.length,
1306
741
  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",
@@ -1310,13 +745,13 @@ var VirtualizedComboboxList = ({
1310
745
  style,
1311
746
  value: entry.item,
1312
747
  children: [
1313
- renderItem?.(entry.item) ?? /* @__PURE__ */ jsx12("span", {
748
+ renderItem?.(entry.item) ?? /* @__PURE__ */ jsx2("span", {
1314
749
  className: virtualizedComboboxClasses.itemLabel,
1315
750
  children: entry.item.label
1316
751
  }),
1317
- /* @__PURE__ */ jsx12(ComboboxPrimitive.ItemIndicator, {
752
+ /* @__PURE__ */ jsx2(ComboboxPrimitive.ItemIndicator, {
1318
753
  className: "absolute right-2 flex size-4 items-center justify-center",
1319
- children: /* @__PURE__ */ jsx12(Check, {})
754
+ children: /* @__PURE__ */ jsx2(Check, {})
1320
755
  })
1321
756
  ]
1322
757
  }, entry.item.value);
@@ -1339,26 +774,26 @@ var VirtualizedComboboxContent = ({
1339
774
  virtualizerRef
1340
775
  }) => {
1341
776
  const labels = virtualizedComboboxMessages(locale, messageOverrides);
1342
- return /* @__PURE__ */ jsx12(ComboboxPrimitive.Portal, {
1343
- children: /* @__PURE__ */ jsx12(ComboboxPrimitive.Positioner, {
777
+ return /* @__PURE__ */ jsx2(ComboboxPrimitive.Portal, {
778
+ children: /* @__PURE__ */ jsx2(ComboboxPrimitive.Positioner, {
1344
779
  align: "start",
1345
780
  className: "isolate z-50",
1346
781
  side: "bottom",
1347
782
  sideOffset: 6,
1348
- children: /* @__PURE__ */ jsxs5(ComboboxPrimitive.Popup, {
783
+ children: /* @__PURE__ */ jsxs2(ComboboxPrimitive.Popup, {
1349
784
  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),
1350
785
  children: [
1351
- /* @__PURE__ */ jsx12("div", {
786
+ /* @__PURE__ */ jsx2("div", {
1352
787
  className: "min-w-0 shrink-0 p-1 pb-0",
1353
- children: /* @__PURE__ */ jsx12(InputGroup, {
788
+ children: /* @__PURE__ */ jsx2(InputGroup, {
1354
789
  className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
1355
- children: /* @__PURE__ */ jsx12(ComboboxPrimitive.Input, {
790
+ children: /* @__PURE__ */ jsx2(ComboboxPrimitive.Input, {
1356
791
  placeholder: labels.search,
1357
- render: /* @__PURE__ */ jsx12(InputGroupInput, {})
792
+ render: /* @__PURE__ */ jsx2(InputGroupInput, {})
1358
793
  })
1359
794
  })
1360
795
  }),
1361
- /* @__PURE__ */ jsx12(VirtualizedComboboxList, {
796
+ /* @__PURE__ */ jsx2(VirtualizedComboboxList, {
1362
797
  classes,
1363
798
  emptyLabel,
1364
799
  groupSelections,
@@ -1374,7 +809,7 @@ var VirtualizedComboboxContent = ({
1374
809
  })
1375
810
  });
1376
811
  };
1377
- var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /* @__PURE__ */ jsxs5(Button, {
812
+ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /* @__PURE__ */ jsxs2(Button2, {
1378
813
  "aria-label": ariaLabel,
1379
814
  "aria-invalid": ariaInvalid,
1380
815
  className: "w-full max-w-full min-w-0 justify-between overflow-hidden",
@@ -1383,20 +818,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
1383
818
  type: "button",
1384
819
  variant: "outline",
1385
820
  children: [
1386
- /* @__PURE__ */ jsx12("span", {
821
+ /* @__PURE__ */ jsx2("span", {
1387
822
  className: "min-w-0 flex-1 truncate pr-7 text-left",
1388
823
  children: label
1389
824
  }),
1390
- /* @__PURE__ */ jsx12(ChevronsUpDown, {
825
+ /* @__PURE__ */ jsx2(ChevronsUpDown, {
1391
826
  className: "text-muted-foreground shrink-0 opacity-70"
1392
827
  })
1393
828
  ]
1394
829
  });
1395
- var defaultClear = (label) => /* @__PURE__ */ jsx12(ComboboxPrimitive.Clear, {
830
+ var defaultClear = (label) => /* @__PURE__ */ jsx2(ComboboxPrimitive.Clear, {
1396
831
  "aria-label": label,
1397
832
  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",
1398
833
  type: "button",
1399
- children: /* @__PURE__ */ jsx12(X, {
834
+ children: /* @__PURE__ */ jsx2(X, {
1400
835
  className: "size-3.5"
1401
836
  })
1402
837
  });
@@ -1408,7 +843,7 @@ var VirtualizedComboboxSingle = (props) => {
1408
843
  const virtualizerRef = useComboboxVirtualizerRef(props.virtualizerRef);
1409
844
  const itemIndexRef = useRef2(new Map);
1410
845
  const labels = virtualizedComboboxMessages(props.locale ?? "en", props.messages);
1411
- return /* @__PURE__ */ jsxs5(ComboboxPrimitive.Root, {
846
+ return /* @__PURE__ */ jsxs2(ComboboxPrimitive.Root, {
1412
847
  disabled: props.disabled,
1413
848
  inputValue: props.searchValue,
1414
849
  items: [...props.items],
@@ -1426,16 +861,16 @@ var VirtualizedComboboxSingle = (props) => {
1426
861
  value: props.value,
1427
862
  virtualized: true,
1428
863
  children: [
1429
- /* @__PURE__ */ jsxs5("div", {
864
+ /* @__PURE__ */ jsxs2("div", {
1430
865
  className: "relative",
1431
866
  children: [
1432
- /* @__PURE__ */ jsx12(ComboboxPrimitive.Trigger, {
867
+ /* @__PURE__ */ jsx2(ComboboxPrimitive.Trigger, {
1433
868
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
1434
869
  }),
1435
870
  props.trigger ? null : defaultClear(labels.clear)
1436
871
  ]
1437
872
  }),
1438
- /* @__PURE__ */ jsx12(VirtualizedComboboxContent, {
873
+ /* @__PURE__ */ jsx2(VirtualizedComboboxContent, {
1439
874
  ...props,
1440
875
  groupSelections: false,
1441
876
  itemIndexRef,
@@ -1449,7 +884,7 @@ var VirtualizedComboboxMultiple = (props) => {
1449
884
  const virtualizerRef = useComboboxVirtualizerRef(props.virtualizerRef);
1450
885
  const itemIndexRef = useRef2(new Map);
1451
886
  const labels = virtualizedComboboxMessages(props.locale ?? "en", props.messages);
1452
- return /* @__PURE__ */ jsxs5(ComboboxPrimitive.Root, {
887
+ return /* @__PURE__ */ jsxs2(ComboboxPrimitive.Root, {
1453
888
  disabled: props.disabled,
1454
889
  inputValue: props.searchValue,
1455
890
  items: [...props.items],
@@ -1468,16 +903,16 @@ var VirtualizedComboboxMultiple = (props) => {
1468
903
  value: [...props.value],
1469
904
  virtualized: true,
1470
905
  children: [
1471
- /* @__PURE__ */ jsxs5("div", {
906
+ /* @__PURE__ */ jsxs2("div", {
1472
907
  className: "relative",
1473
908
  children: [
1474
- /* @__PURE__ */ jsx12(ComboboxPrimitive.Trigger, {
909
+ /* @__PURE__ */ jsx2(ComboboxPrimitive.Trigger, {
1475
910
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
1476
911
  }),
1477
912
  props.trigger ? null : defaultClear(labels.clear)
1478
913
  ]
1479
914
  }),
1480
- /* @__PURE__ */ jsx12(VirtualizedComboboxContent, {
915
+ /* @__PURE__ */ jsx2(VirtualizedComboboxContent, {
1481
916
  ...props,
1482
917
  groupSelections: true,
1483
918
  itemIndexRef,
@@ -1489,10 +924,10 @@ var VirtualizedComboboxMultiple = (props) => {
1489
924
  };
1490
925
  function VirtualizedCombobox(props) {
1491
926
  const locale = useKrakstackLocale2(props.locale);
1492
- return props.multiple ? /* @__PURE__ */ jsx12(VirtualizedComboboxMultiple, {
927
+ return props.multiple ? /* @__PURE__ */ jsx2(VirtualizedComboboxMultiple, {
1493
928
  ...props,
1494
929
  locale
1495
- }) : /* @__PURE__ */ jsx12(VirtualizedComboboxSingle, {
930
+ }) : /* @__PURE__ */ jsx2(VirtualizedComboboxSingle, {
1496
931
  ...props,
1497
932
  locale
1498
933
  });
@@ -1503,7 +938,7 @@ function VirtualizedCombobox(props) {
1503
938
 
1504
939
  // ../../src/components/form/react.tsx
1505
940
  import { useKrakstackLocale as useKrakstackLocale3 } from "@krak-stack/registry/krakstack-provider/react";
1506
- import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
941
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
1507
942
  var messages = {
1508
943
  en: {
1509
944
  keyValueKey: "Key",
@@ -1543,7 +978,7 @@ var formMessages = (locale = "en", translations) => ({
1543
978
  });
1544
979
  var useFormMessages = (locale, translations) => formMessages(useKrakstackLocale3(locale), translations);
1545
980
  var ErrorMessage = ({ text }) => {
1546
- return /* @__PURE__ */ jsx13("em", {
981
+ return /* @__PURE__ */ jsx3("em", {
1547
982
  role: "alert",
1548
983
  className: "text-destructive text-sm",
1549
984
  children: text
@@ -1553,7 +988,7 @@ var FieldErrorValue = Schema6.Struct({
1553
988
  message: Schema6.String
1554
989
  }).annotate({ identifier: "FieldErrorValue" });
1555
990
  function FieldError({ errors = [] }) {
1556
- return errors?.length > 0 ? /* @__PURE__ */ jsx13(ErrorMessage, {
991
+ return errors?.length > 0 ? /* @__PURE__ */ jsx3(ErrorMessage, {
1557
992
  text: errors.map((error) => {
1558
993
  return Schema6.decodeUnknownOption(FieldErrorValue)(error).pipe(Option.map(({ message }) => message), Option.getOrElse(() => "")).split(" ").map((word) => {
1559
994
  if (word.startsWith("t:"))
@@ -1570,31 +1005,31 @@ var TextField = ({
1570
1005
  }) => {
1571
1006
  const field = useFieldContext();
1572
1007
  const invalid = !field.state.meta.isValid;
1573
- return /* @__PURE__ */ jsxs6(Field, {
1008
+ return /* @__PURE__ */ jsxs3(Field, {
1574
1009
  className: "min-w-0",
1575
1010
  "data-invalid": invalid,
1576
1011
  children: [
1577
- /* @__PURE__ */ jsxs6("div", {
1012
+ /* @__PURE__ */ jsxs3("div", {
1578
1013
  className: "flex w-full items-center gap-2",
1579
1014
  children: [
1580
- /* @__PURE__ */ jsx13(FieldLabel, {
1015
+ /* @__PURE__ */ jsx3(FieldLabel, {
1581
1016
  htmlFor: field.name,
1582
1017
  children: props.label
1583
1018
  }),
1584
1019
  children
1585
1020
  ]
1586
1021
  }),
1587
- /* @__PURE__ */ jsx13(Input, {
1022
+ /* @__PURE__ */ jsx3(Input2, {
1588
1023
  id: field.name,
1589
1024
  value: field.state.value ?? "",
1590
1025
  onChange: (e) => field.handleChange(e.target.value),
1591
1026
  ...props,
1592
1027
  "aria-invalid": invalid
1593
1028
  }),
1594
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1029
+ props.description && /* @__PURE__ */ jsx3(FieldDescription, {
1595
1030
  children: props.description
1596
1031
  }),
1597
- /* @__PURE__ */ jsx13(FieldError, {
1032
+ /* @__PURE__ */ jsx3(FieldError, {
1598
1033
  errors: field.getMeta().errors
1599
1034
  })
1600
1035
  ]
@@ -1606,31 +1041,31 @@ var TextAreaField = ({
1606
1041
  }) => {
1607
1042
  const field = useFieldContext();
1608
1043
  const invalid = !field.state.meta.isValid;
1609
- return /* @__PURE__ */ jsxs6(Field, {
1044
+ return /* @__PURE__ */ jsxs3(Field, {
1610
1045
  className: "min-w-0",
1611
1046
  "data-invalid": invalid,
1612
1047
  children: [
1613
- /* @__PURE__ */ jsxs6("div", {
1048
+ /* @__PURE__ */ jsxs3("div", {
1614
1049
  className: "flex w-full items-center gap-2",
1615
1050
  children: [
1616
- /* @__PURE__ */ jsx13(FieldLabel, {
1051
+ /* @__PURE__ */ jsx3(FieldLabel, {
1617
1052
  htmlFor: field.name,
1618
1053
  children: props.label
1619
1054
  }),
1620
1055
  children
1621
1056
  ]
1622
1057
  }),
1623
- /* @__PURE__ */ jsx13(Textarea, {
1058
+ /* @__PURE__ */ jsx3(Textarea, {
1624
1059
  id: field.name,
1625
1060
  value: field.state.value ?? "",
1626
1061
  onChange: (e) => field.handleChange(e.target.value),
1627
1062
  ...props,
1628
1063
  "aria-invalid": invalid
1629
1064
  }),
1630
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1065
+ props.description && /* @__PURE__ */ jsx3(FieldDescription, {
1631
1066
  children: props.description
1632
1067
  }),
1633
- /* @__PURE__ */ jsx13(FieldError, {
1068
+ /* @__PURE__ */ jsx3(FieldError, {
1634
1069
  errors: field.getMeta().errors
1635
1070
  })
1636
1071
  ]
@@ -1639,13 +1074,13 @@ var TextAreaField = ({
1639
1074
  var CheckboxField = (props) => {
1640
1075
  const field = useFieldContext();
1641
1076
  const invalid = !field.state.meta.isValid;
1642
- return /* @__PURE__ */ jsxs6(Field, {
1077
+ return /* @__PURE__ */ jsxs3(Field, {
1643
1078
  "data-invalid": invalid,
1644
1079
  children: [
1645
- /* @__PURE__ */ jsxs6("div", {
1080
+ /* @__PURE__ */ jsxs3("div", {
1646
1081
  className: "flex flex-row items-center gap-2",
1647
1082
  children: [
1648
- /* @__PURE__ */ jsx13(Checkbox, {
1083
+ /* @__PURE__ */ jsx3(Checkbox, {
1649
1084
  id: field.name,
1650
1085
  name: field.name,
1651
1086
  checked: field.state.value ?? false,
@@ -1653,16 +1088,16 @@ var CheckboxField = (props) => {
1653
1088
  onCheckedChange: (checked) => field.handleChange(checked),
1654
1089
  "aria-invalid": invalid
1655
1090
  }),
1656
- /* @__PURE__ */ jsx13(FieldLabel, {
1091
+ /* @__PURE__ */ jsx3(FieldLabel, {
1657
1092
  htmlFor: field.name,
1658
1093
  children: props.label
1659
1094
  })
1660
1095
  ]
1661
1096
  }),
1662
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1097
+ props.description && /* @__PURE__ */ jsx3(FieldDescription, {
1663
1098
  children: props.description
1664
1099
  }),
1665
- /* @__PURE__ */ jsx13(FieldError, {
1100
+ /* @__PURE__ */ jsx3(FieldError, {
1666
1101
  errors: field.getMeta().errors
1667
1102
  })
1668
1103
  ]
@@ -1674,21 +1109,21 @@ var SingleSelectControl = ({
1674
1109
  placeholder
1675
1110
  }) => {
1676
1111
  const field = useFieldContext();
1677
- return /* @__PURE__ */ jsxs6(Select, {
1112
+ return /* @__PURE__ */ jsxs3(Select, {
1678
1113
  items: [...options],
1679
1114
  required: true,
1680
1115
  onValueChange: (value) => field.handleChange(value ?? ""),
1681
1116
  defaultValue: field.state.value,
1682
1117
  children: [
1683
- /* @__PURE__ */ jsx13(SelectTrigger, {
1118
+ /* @__PURE__ */ jsx3(SelectTrigger, {
1684
1119
  className: "gap-1",
1685
1120
  id: field.name,
1686
1121
  "aria-invalid": invalid,
1687
- children: /* @__PURE__ */ jsx13(SelectValue, {
1122
+ children: /* @__PURE__ */ jsx3(SelectValue, {
1688
1123
  placeholder
1689
1124
  })
1690
1125
  }),
1691
- /* @__PURE__ */ jsx13(SelectOptions, {
1126
+ /* @__PURE__ */ jsx3(SelectOptions, {
1692
1127
  options
1693
1128
  })
1694
1129
  ]
@@ -1700,21 +1135,21 @@ var MultipleSelectControl = ({
1700
1135
  placeholder
1701
1136
  }) => {
1702
1137
  const field = useFieldContext();
1703
- return /* @__PURE__ */ jsxs6(Select, {
1138
+ return /* @__PURE__ */ jsxs3(Select, {
1704
1139
  items: [...options],
1705
1140
  onValueChange: (value) => field.handleChange(value ?? []),
1706
1141
  multiple: true,
1707
1142
  value: field.state.value ?? [],
1708
1143
  children: [
1709
- /* @__PURE__ */ jsx13(SelectTrigger, {
1144
+ /* @__PURE__ */ jsx3(SelectTrigger, {
1710
1145
  className: "gap-1",
1711
1146
  id: field.name,
1712
1147
  "aria-invalid": invalid,
1713
- children: /* @__PURE__ */ jsx13(SelectValue, {
1148
+ children: /* @__PURE__ */ jsx3(SelectValue, {
1714
1149
  placeholder
1715
1150
  })
1716
1151
  }),
1717
- /* @__PURE__ */ jsx13(SelectOptions, {
1152
+ /* @__PURE__ */ jsx3(SelectOptions, {
1718
1153
  options
1719
1154
  })
1720
1155
  ]
@@ -1722,9 +1157,9 @@ var MultipleSelectControl = ({
1722
1157
  };
1723
1158
  var SelectOptions = ({
1724
1159
  options
1725
- }) => /* @__PURE__ */ jsx13(SelectContent, {
1726
- children: /* @__PURE__ */ jsx13(SelectGroup, {
1727
- children: options.map((option) => /* @__PURE__ */ jsx13(SelectItem, {
1160
+ }) => /* @__PURE__ */ jsx3(SelectContent, {
1161
+ children: /* @__PURE__ */ jsx3(SelectGroup, {
1162
+ children: options.map((option) => /* @__PURE__ */ jsx3(SelectItem, {
1728
1163
  value: option.value,
1729
1164
  children: option.label
1730
1165
  }, option.label))
@@ -1739,26 +1174,26 @@ var SelectField = ({
1739
1174
  }) => {
1740
1175
  const field = useFieldContext();
1741
1176
  const invalid = !field.state.meta.isValid;
1742
- return /* @__PURE__ */ jsxs6(Field, {
1177
+ return /* @__PURE__ */ jsxs3(Field, {
1743
1178
  "data-invalid": invalid,
1744
1179
  children: [
1745
- /* @__PURE__ */ jsx13(FieldLabel, {
1180
+ /* @__PURE__ */ jsx3(FieldLabel, {
1746
1181
  htmlFor: field.name,
1747
1182
  children: label
1748
1183
  }),
1749
- multiple ? /* @__PURE__ */ jsx13(MultipleSelectControl, {
1184
+ multiple ? /* @__PURE__ */ jsx3(MultipleSelectControl, {
1750
1185
  invalid,
1751
1186
  options,
1752
1187
  placeholder
1753
- }) : /* @__PURE__ */ jsx13(SingleSelectControl, {
1188
+ }) : /* @__PURE__ */ jsx3(SingleSelectControl, {
1754
1189
  invalid,
1755
1190
  options,
1756
1191
  placeholder
1757
1192
  }),
1758
- description ? /* @__PURE__ */ jsx13(FieldDescription, {
1193
+ description ? /* @__PURE__ */ jsx3(FieldDescription, {
1759
1194
  children: description
1760
1195
  }) : null,
1761
- /* @__PURE__ */ jsx13(FieldError, {
1196
+ /* @__PURE__ */ jsx3(FieldError, {
1762
1197
  errors: field.getMeta().errors
1763
1198
  })
1764
1199
  ]
@@ -1785,17 +1220,17 @@ var KeyValueField = (props) => {
1785
1220
  return true;
1786
1221
  }));
1787
1222
  };
1788
- return /* @__PURE__ */ jsxs6(Field, {
1223
+ return /* @__PURE__ */ jsxs3(Field, {
1789
1224
  "data-invalid": invalid,
1790
1225
  children: [
1791
- /* @__PURE__ */ jsx13(FieldLabel, {
1226
+ /* @__PURE__ */ jsx3(FieldLabel, {
1792
1227
  htmlFor: field.name,
1793
1228
  children: props.label
1794
1229
  }),
1795
- keyValues.map(([key, value], index) => /* @__PURE__ */ jsxs6("div", {
1230
+ keyValues.map(([key, value], index) => /* @__PURE__ */ jsxs3("div", {
1796
1231
  className: "flex w-full flex-row items-center gap-2",
1797
1232
  children: [
1798
- /* @__PURE__ */ jsx13(Input, {
1233
+ /* @__PURE__ */ jsx3(Input2, {
1799
1234
  id: field.name,
1800
1235
  placeholder: labels.keyValueKey,
1801
1236
  name: field.name,
@@ -1806,7 +1241,7 @@ var KeyValueField = (props) => {
1806
1241
  field.handleChange(updateKeyValue(e.target.value, value, index));
1807
1242
  }
1808
1243
  }),
1809
- /* @__PURE__ */ jsx13(Input, {
1244
+ /* @__PURE__ */ jsx3(Input2, {
1810
1245
  id: field.name,
1811
1246
  name: field.name,
1812
1247
  type: "text",
@@ -1817,7 +1252,7 @@ var KeyValueField = (props) => {
1817
1252
  field.handleChange(updateKeyValue(key, e.target.value, index));
1818
1253
  }
1819
1254
  }),
1820
- /* @__PURE__ */ jsxs6(Button, {
1255
+ /* @__PURE__ */ jsxs3(Button3, {
1821
1256
  type: "button",
1822
1257
  variant: "secondary",
1823
1258
  onClick: (e) => {
@@ -1825,15 +1260,15 @@ var KeyValueField = (props) => {
1825
1260
  field.handleChange(deleteKeyValue(index));
1826
1261
  },
1827
1262
  children: [
1828
- /* @__PURE__ */ jsx13(Trash, {}),
1263
+ /* @__PURE__ */ jsx3(Trash, {}),
1829
1264
  labels.keyValueDelete
1830
1265
  ]
1831
1266
  })
1832
1267
  ]
1833
1268
  }, index)),
1834
- /* @__PURE__ */ jsx13("div", {
1269
+ /* @__PURE__ */ jsx3("div", {
1835
1270
  className: "flex flex-row items-center gap-2",
1836
- children: /* @__PURE__ */ jsxs6(Button, {
1271
+ children: /* @__PURE__ */ jsxs3(Button3, {
1837
1272
  size: "sm",
1838
1273
  className: "mt-2",
1839
1274
  onClick: (e) => {
@@ -1844,21 +1279,21 @@ var KeyValueField = (props) => {
1844
1279
  });
1845
1280
  },
1846
1281
  children: [
1847
- /* @__PURE__ */ jsx13(Plus, {}),
1282
+ /* @__PURE__ */ jsx3(Plus, {}),
1848
1283
  labels.keyValueAdd
1849
1284
  ]
1850
1285
  })
1851
1286
  }),
1852
- props.description && /* @__PURE__ */ jsx13(FieldDescription, {
1287
+ props.description && /* @__PURE__ */ jsx3(FieldDescription, {
1853
1288
  children: props.description
1854
1289
  }),
1855
- /* @__PURE__ */ jsx13(FieldError, {
1290
+ /* @__PURE__ */ jsx3(FieldError, {
1856
1291
  errors: field.getMeta().errors
1857
1292
  })
1858
1293
  ]
1859
1294
  });
1860
1295
  };
1861
- var MultiSelectField = (props) => /* @__PURE__ */ jsx13(SelectField, {
1296
+ var MultiSelectField = (props) => /* @__PURE__ */ jsx3(SelectField, {
1862
1297
  ...props,
1863
1298
  multiple: true
1864
1299
  });
@@ -1890,7 +1325,7 @@ var SingleSearchableSelectControl = ({
1890
1325
  }) => {
1891
1326
  const field = useFieldContext();
1892
1327
  const { selectedItems, mergedItems } = getSearchableSelectItems(field.state.value ? [field.state.value] : [], initialItems, items);
1893
- return /* @__PURE__ */ jsx13(VirtualizedCombobox, {
1328
+ return /* @__PURE__ */ jsx3(VirtualizedCombobox, {
1894
1329
  ariaInvalid: invalid,
1895
1330
  ariaLabel,
1896
1331
  emptyLabel,
@@ -1922,7 +1357,7 @@ var MultipleSearchableSelectControl = ({
1922
1357
  }) => {
1923
1358
  const field = useFieldContext();
1924
1359
  const { selectedItems, mergedItems } = getSearchableSelectItems(field.state.value ?? [], initialItems, items);
1925
- return /* @__PURE__ */ jsx13(VirtualizedCombobox, {
1360
+ return /* @__PURE__ */ jsx3(VirtualizedCombobox, {
1926
1361
  ariaInvalid: invalid,
1927
1362
  ariaLabel,
1928
1363
  emptyLabel,
@@ -1957,23 +1392,23 @@ var SearchableSelectField = ({
1957
1392
  invalid,
1958
1393
  name: field.name
1959
1394
  };
1960
- return /* @__PURE__ */ jsxs6(Field, {
1395
+ return /* @__PURE__ */ jsxs3(Field, {
1961
1396
  className: "min-w-0",
1962
1397
  "data-invalid": invalid,
1963
1398
  children: [
1964
- /* @__PURE__ */ jsx13(FieldLabel, {
1399
+ /* @__PURE__ */ jsx3(FieldLabel, {
1965
1400
  htmlFor: field.name,
1966
1401
  children: label
1967
1402
  }),
1968
- multiple ? /* @__PURE__ */ jsx13(MultipleSearchableSelectControl, {
1403
+ multiple ? /* @__PURE__ */ jsx3(MultipleSearchableSelectControl, {
1969
1404
  ...controlProps
1970
- }) : /* @__PURE__ */ jsx13(SingleSearchableSelectControl, {
1405
+ }) : /* @__PURE__ */ jsx3(SingleSearchableSelectControl, {
1971
1406
  ...controlProps
1972
1407
  }),
1973
- description ? /* @__PURE__ */ jsx13(FieldDescription, {
1408
+ description ? /* @__PURE__ */ jsx3(FieldDescription, {
1974
1409
  children: description
1975
1410
  }) : null,
1976
- /* @__PURE__ */ jsx13(FieldError, {
1411
+ /* @__PURE__ */ jsx3(FieldError, {
1977
1412
  errors: field.getMeta().errors
1978
1413
  })
1979
1414
  ]
@@ -1992,14 +1427,14 @@ var FileField = ({
1992
1427
  const labels = formMessages(locale, messages);
1993
1428
  const field = useFieldContext();
1994
1429
  const invalid = !field.state.meta.isValid;
1995
- return /* @__PURE__ */ jsxs6(Field, {
1430
+ return /* @__PURE__ */ jsxs3(Field, {
1996
1431
  "data-invalid": invalid,
1997
1432
  children: [
1998
- /* @__PURE__ */ jsx13(FieldLabel, {
1433
+ /* @__PURE__ */ jsx3(FieldLabel, {
1999
1434
  htmlFor: field.name,
2000
1435
  children: label
2001
1436
  }),
2002
- /* @__PURE__ */ jsx13(FileInput, {
1437
+ /* @__PURE__ */ jsx3(FileInput, {
2003
1438
  accept,
2004
1439
  canClear: field.state.value instanceof File,
2005
1440
  ...field.state.value instanceof File ? { file: field.state.value } : {},
@@ -2028,7 +1463,7 @@ var FileField = ({
2028
1463
  required,
2029
1464
  title: field.state.value instanceof File ? field.state.value.name : label
2030
1465
  }),
2031
- /* @__PURE__ */ jsx13(FieldError, {
1466
+ /* @__PURE__ */ jsx3(FieldError, {
2032
1467
  errors: field.getMeta().errors
2033
1468
  })
2034
1469
  ]
@@ -2052,14 +1487,14 @@ var ImageField = ({
2052
1487
  width: size.width,
2053
1488
  src: imageUrl ?? ""
2054
1489
  };
2055
- return /* @__PURE__ */ jsxs6(Field, {
1490
+ return /* @__PURE__ */ jsxs3(Field, {
2056
1491
  "data-invalid": invalid,
2057
1492
  children: [
2058
- /* @__PURE__ */ jsx13(FieldLabel, {
1493
+ /* @__PURE__ */ jsx3(FieldLabel, {
2059
1494
  htmlFor: field.name,
2060
1495
  children: label
2061
1496
  }),
2062
- /* @__PURE__ */ jsx13(FileInput, {
1497
+ /* @__PURE__ */ jsx3(FileInput, {
2063
1498
  accept: "image/*",
2064
1499
  canClear: Boolean(field.state.value),
2065
1500
  ...field.state.value instanceof File ? { file: field.state.value } : {},
@@ -2082,10 +1517,10 @@ var ImageField = ({
2082
1517
  onClear: () => field.handleChange(null),
2083
1518
  title: field.state.value instanceof File ? field.state.value.name : label
2084
1519
  }),
2085
- size.suggestedWidth && size.suggestedHeight && /* @__PURE__ */ jsx13(FieldDescription, {
1520
+ size.suggestedWidth && size.suggestedHeight && /* @__PURE__ */ jsx3(FieldDescription, {
2086
1521
  children: labels.suggestedImageSize(String(size.suggestedWidth), String(size.suggestedHeight))
2087
1522
  }),
2088
- /* @__PURE__ */ jsx13(FieldError, {
1523
+ /* @__PURE__ */ jsx3(FieldError, {
2089
1524
  errors: field.getMeta().errors
2090
1525
  })
2091
1526
  ]
@@ -2098,31 +1533,31 @@ var BlockNavigation = ({
2098
1533
  const labels = useFormMessages(locale, messages);
2099
1534
  const form = useFormContext();
2100
1535
  const shouldBlock = useStore(form.store, (formState) => formState.isDirty && !(formState.isSubmitting || formState.isSubmitted));
2101
- return /* @__PURE__ */ jsx13(Block, {
1536
+ return /* @__PURE__ */ jsx3(Block, {
2102
1537
  enableBeforeUnload: () => shouldBlock,
2103
1538
  shouldBlockFn: () => shouldBlock,
2104
1539
  withResolver: true,
2105
- children: ({ status, proceed, reset }) => /* @__PURE__ */ jsx13(AlertDialog, {
1540
+ children: ({ status, proceed, reset }) => /* @__PURE__ */ jsx3(AlertDialog, {
2106
1541
  open: status === "blocked",
2107
- children: /* @__PURE__ */ jsxs6(AlertDialogContent, {
1542
+ children: /* @__PURE__ */ jsxs3(AlertDialogContent, {
2108
1543
  children: [
2109
- /* @__PURE__ */ jsxs6(AlertDialogHeader, {
1544
+ /* @__PURE__ */ jsxs3(AlertDialogHeader, {
2110
1545
  children: [
2111
- /* @__PURE__ */ jsx13(AlertDialogTitle, {
1546
+ /* @__PURE__ */ jsx3(AlertDialogTitle, {
2112
1547
  children: labels.blockNavigationTitle
2113
1548
  }),
2114
- /* @__PURE__ */ jsx13(AlertDialogDescription, {
1549
+ /* @__PURE__ */ jsx3(AlertDialogDescription, {
2115
1550
  children: labels.blockNavigationDescription
2116
1551
  })
2117
1552
  ]
2118
1553
  }),
2119
- /* @__PURE__ */ jsxs6(AlertDialogFooter, {
1554
+ /* @__PURE__ */ jsxs3(AlertDialogFooter, {
2120
1555
  children: [
2121
- /* @__PURE__ */ jsx13(AlertDialogCancel, {
1556
+ /* @__PURE__ */ jsx3(AlertDialogCancel, {
2122
1557
  onClick: reset,
2123
1558
  children: labels.blockNavigationCancel
2124
1559
  }),
2125
- /* @__PURE__ */ jsx13(AlertDialogAction, {
1560
+ /* @__PURE__ */ jsx3(AlertDialogAction, {
2126
1561
  onClick: proceed,
2127
1562
  children: labels.blockNavigationConfirm
2128
1563
  })
@@ -2140,14 +1575,14 @@ var SubmitButton = ({
2140
1575
  }) => {
2141
1576
  const labels = useFormMessages(locale, messages);
2142
1577
  const form = useFormContext();
2143
- return /* @__PURE__ */ jsx13(form.Subscribe, {
1578
+ return /* @__PURE__ */ jsx3(form.Subscribe, {
2144
1579
  selector: (formState) => [formState.isSubmitting],
2145
- children: ([isSubmitting]) => /* @__PURE__ */ jsxs6(Button, {
1580
+ children: ([isSubmitting]) => /* @__PURE__ */ jsxs3(Button3, {
2146
1581
  type: "submit",
2147
1582
  disabled: isSubmitting,
2148
1583
  className: "self-start",
2149
1584
  children: [
2150
- isSubmitting && /* @__PURE__ */ jsx13(Loader2, {
1585
+ isSubmitting && /* @__PURE__ */ jsx3(Loader2, {
2151
1586
  className: "animate-spin"
2152
1587
  }),
2153
1588
  children ?? labels.submit
@@ -2165,9 +1600,9 @@ var getFormErrorText = (error) => {
2165
1600
  };
2166
1601
  var FormError = () => {
2167
1602
  const form = useFormContext();
2168
- return /* @__PURE__ */ jsx13(form.Subscribe, {
1603
+ return /* @__PURE__ */ jsx3(form.Subscribe, {
2169
1604
  selector: (formState) => getFormErrorText(formState.errorMap.onSubmit),
2170
- children: (error) => error ? /* @__PURE__ */ jsx13(ErrorMessage, {
1605
+ children: (error) => error ? /* @__PURE__ */ jsx3(ErrorMessage, {
2171
1606
  text: error
2172
1607
  }) : null
2173
1608
  });
@@ -2180,25 +1615,25 @@ var FieldWrapper = ({
2180
1615
  locales,
2181
1616
  editingLocale
2182
1617
  }) => {
2183
- return /* @__PURE__ */ jsxs6(FieldSet, {
1618
+ return /* @__PURE__ */ jsxs3(FieldSet, {
2184
1619
  children: [
2185
- legend && /* @__PURE__ */ jsxs6(FieldLegend, {
1620
+ legend && /* @__PURE__ */ jsxs3(FieldLegend, {
2186
1621
  className: "flex items-center gap-2",
2187
1622
  children: [
2188
1623
  legend,
2189
- localized && editingLocale && locales && /* @__PURE__ */ jsxs6(Badge, {
1624
+ localized && editingLocale && locales && /* @__PURE__ */ jsxs3(Badge, {
2190
1625
  variant: "outline",
2191
1626
  children: [
2192
- /* @__PURE__ */ jsx13(Languages, {}),
1627
+ /* @__PURE__ */ jsx3(Languages, {}),
2193
1628
  locales.find((l) => l.value === editingLocale)?.label ?? editingLocale
2194
1629
  ]
2195
1630
  })
2196
1631
  ]
2197
1632
  }),
2198
- description && /* @__PURE__ */ jsx13(FieldDescription, {
1633
+ description && /* @__PURE__ */ jsx3(FieldDescription, {
2199
1634
  children: description
2200
1635
  }),
2201
- /* @__PURE__ */ jsx13(FieldGroup, {
1636
+ /* @__PURE__ */ jsx3(FieldGroup, {
2202
1637
  children
2203
1638
  })
2204
1639
  ]
@@ -2212,9 +1647,9 @@ var RevertButton = ({
2212
1647
  const labels = useFormMessages(locale, messages);
2213
1648
  const field = useFieldContext();
2214
1649
  if (field.state.value !== original) {
2215
- return /* @__PURE__ */ jsx13("div", {
1650
+ return /* @__PURE__ */ jsx3("div", {
2216
1651
  className: "flex flex-1 justify-end",
2217
- children: /* @__PURE__ */ jsx13(Button, {
1652
+ children: /* @__PURE__ */ jsx3(Button3, {
2218
1653
  variant: "link",
2219
1654
  className: "-mr-4 h-auto py-0",
2220
1655
  onClick: () => field.handleChange(original),