@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
@@ -9,269 +9,23 @@ import {
9
9
  useRef,
10
10
  useState
11
11
  } from "react";
12
-
13
- // ../../src/components/ui/button.tsx
14
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
15
- import { cva } from "class-variance-authority";
12
+ import { Button } from "@/components/ui/button";
13
+ import {
14
+ Dialog,
15
+ DialogClose,
16
+ DialogContent,
17
+ DialogDescription,
18
+ DialogHeader,
19
+ DialogTitle,
20
+ DialogTrigger
21
+ } from "@/components/ui/dialog";
22
+ import { Field, FieldError, FieldLabel } from "@/components/ui/field";
23
+ import { Input } from "@/components/ui/input";
24
+ import { Textarea } from "@/components/ui/textarea";
16
25
 
17
26
  // ../../src/lib/utils.ts
18
27
  import { cn } from "cn";
19
28
 
20
- // ../../src/components/ui/button.tsx
21
- import { jsx } from "react/jsx-runtime";
22
- 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", {
23
- variants: {
24
- variant: {
25
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
26
- 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",
27
- 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",
28
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
29
- 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",
30
- link: "text-primary underline-offset-4 hover:underline"
31
- },
32
- size: {
33
- 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",
34
- 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",
35
- 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",
36
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
37
- icon: "size-9",
38
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
39
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
40
- "icon-lg": "size-10"
41
- }
42
- },
43
- defaultVariants: {
44
- variant: "default",
45
- size: "default"
46
- }
47
- });
48
- function Button({
49
- className,
50
- variant = "default",
51
- size = "default",
52
- ...props
53
- }) {
54
- return /* @__PURE__ */ jsx(ButtonPrimitive, {
55
- "data-slot": "button",
56
- className: cn(buttonVariants({ variant, size, className })),
57
- ...props
58
- });
59
- }
60
-
61
- // ../../src/components/ui/dialog.tsx
62
- import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
63
- import { cn as cn2 } from "cn";
64
- import { XIcon } from "lucide-react";
65
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
66
- function Dialog({ ...props }) {
67
- return /* @__PURE__ */ jsx2(DialogPrimitive.Root, {
68
- "data-slot": "dialog",
69
- ...props
70
- });
71
- }
72
- function DialogTrigger({ ...props }) {
73
- return /* @__PURE__ */ jsx2(DialogPrimitive.Trigger, {
74
- "data-slot": "dialog-trigger",
75
- ...props
76
- });
77
- }
78
- function DialogPortal({ ...props }) {
79
- return /* @__PURE__ */ jsx2(DialogPrimitive.Portal, {
80
- "data-slot": "dialog-portal",
81
- ...props
82
- });
83
- }
84
- function DialogClose({ ...props }) {
85
- return /* @__PURE__ */ jsx2(DialogPrimitive.Close, {
86
- "data-slot": "dialog-close",
87
- ...props
88
- });
89
- }
90
- function DialogOverlay({
91
- className,
92
- ...props
93
- }) {
94
- return /* @__PURE__ */ jsx2(DialogPrimitive.Backdrop, {
95
- "data-slot": "dialog-overlay",
96
- className: cn2("data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs", className),
97
- ...props
98
- });
99
- }
100
- function DialogContent({
101
- className,
102
- children,
103
- showCloseButton = true,
104
- ...props
105
- }) {
106
- return /* @__PURE__ */ jsxs(DialogPortal, {
107
- children: [
108
- /* @__PURE__ */ jsx2(DialogOverlay, {}),
109
- /* @__PURE__ */ jsxs(DialogPrimitive.Popup, {
110
- "data-slot": "dialog-content",
111
- className: cn2("bg-popover text-popover-foreground ring-foreground/10 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 fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl p-6 text-sm ring-1 duration-100 outline-none sm:max-w-md", className),
112
- ...props,
113
- children: [
114
- children,
115
- showCloseButton && /* @__PURE__ */ jsxs(DialogPrimitive.Close, {
116
- "data-slot": "dialog-close",
117
- render: /* @__PURE__ */ jsx2(Button, {
118
- variant: "ghost",
119
- className: "absolute top-4 right-4",
120
- size: "icon-sm"
121
- }),
122
- children: [
123
- /* @__PURE__ */ jsx2(XIcon, {}),
124
- /* @__PURE__ */ jsx2("span", {
125
- className: "sr-only",
126
- children: "Close"
127
- })
128
- ]
129
- })
130
- ]
131
- })
132
- ]
133
- });
134
- }
135
- function DialogHeader({ className, ...props }) {
136
- return /* @__PURE__ */ jsx2("div", {
137
- "data-slot": "dialog-header",
138
- className: cn2("flex flex-col gap-2", className),
139
- ...props
140
- });
141
- }
142
- function DialogTitle({ className, ...props }) {
143
- return /* @__PURE__ */ jsx2(DialogPrimitive.Title, {
144
- "data-slot": "dialog-title",
145
- className: cn2("leading-none font-medium", className),
146
- ...props
147
- });
148
- }
149
- function DialogDescription({
150
- className,
151
- ...props
152
- }) {
153
- return /* @__PURE__ */ jsx2(DialogPrimitive.Description, {
154
- "data-slot": "dialog-description",
155
- className: cn2("text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3", className),
156
- ...props
157
- });
158
- }
159
-
160
- // ../../src/components/ui/field.tsx
161
- import { useMemo } from "react";
162
- import { cva as cva2 } from "class-variance-authority";
163
-
164
- // ../../src/components/ui/label.tsx
165
- import { jsx as jsx3 } from "react/jsx-runtime";
166
- "use client";
167
- function Label({ className, ...props }) {
168
- return /* @__PURE__ */ jsx3("label", {
169
- "data-slot": "label",
170
- 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),
171
- ...props
172
- });
173
- }
174
-
175
- // ../../src/components/ui/separator.tsx
176
- import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
177
-
178
- // ../../src/components/ui/field.tsx
179
- import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
180
- var fieldVariants = cva2("group/field flex w-full gap-3 data-[invalid=true]:text-destructive", {
181
- variants: {
182
- orientation: {
183
- vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
184
- 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",
185
- 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"
186
- }
187
- },
188
- defaultVariants: {
189
- orientation: "vertical"
190
- }
191
- });
192
- function Field({
193
- className,
194
- orientation = "vertical",
195
- ...props
196
- }) {
197
- return /* @__PURE__ */ jsx4("div", {
198
- role: "group",
199
- "data-slot": "field",
200
- "data-orientation": orientation,
201
- className: cn(fieldVariants({ orientation }), className),
202
- ...props
203
- });
204
- }
205
- function FieldLabel({
206
- className,
207
- ...props
208
- }) {
209
- return /* @__PURE__ */ jsx4(Label, {
210
- "data-slot": "field-label",
211
- 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),
212
- ...props
213
- });
214
- }
215
- function FieldError({
216
- className,
217
- children,
218
- errors,
219
- ...props
220
- }) {
221
- const content = useMemo(() => {
222
- if (children) {
223
- return children;
224
- }
225
- if (!errors?.length) {
226
- return null;
227
- }
228
- const uniqueErrors = [
229
- ...new Map(errors.map((error) => [error?.message, error])).values()
230
- ];
231
- if (uniqueErrors?.length == 1) {
232
- return uniqueErrors[0]?.message;
233
- }
234
- return /* @__PURE__ */ jsx4("ul", {
235
- className: "ml-4 flex list-disc flex-col gap-1",
236
- children: uniqueErrors.map((error, index) => error?.message && /* @__PURE__ */ jsx4("li", {
237
- children: error.message
238
- }, index))
239
- });
240
- }, [children, errors]);
241
- if (!content) {
242
- return null;
243
- }
244
- return /* @__PURE__ */ jsx4("div", {
245
- role: "alert",
246
- "data-slot": "field-error",
247
- className: cn("text-sm font-normal text-destructive", className),
248
- ...props,
249
- children: content
250
- });
251
- }
252
-
253
- // ../../src/components/ui/input.tsx
254
- import { Input as InputPrimitive } from "@base-ui/react/input";
255
- import { jsx as jsx5 } from "react/jsx-runtime";
256
- function Input({ className, type, ...props }) {
257
- return /* @__PURE__ */ jsx5(InputPrimitive, {
258
- type,
259
- "data-slot": "input",
260
- 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),
261
- ...props
262
- });
263
- }
264
-
265
- // ../../src/components/ui/textarea.tsx
266
- import { jsx as jsx6 } from "react/jsx-runtime";
267
- function Textarea({ className, ...props }) {
268
- return /* @__PURE__ */ jsx6("textarea", {
269
- "data-slot": "textarea",
270
- 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),
271
- ...props
272
- });
273
- }
274
-
275
29
  // ../../src/components/support/react.tsx
276
30
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
277
31
 
@@ -623,35 +377,35 @@ var readSupportScreenshots = Effect2.fn("Support.readScreenshots")(function* (fi
623
377
  });
624
378
 
625
379
  // ../../src/components/support/react.tsx
626
- import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
380
+ import { jsx, jsxs } from "react/jsx-runtime";
627
381
  "use client";
628
382
  var useSupportFormMessages = (locale, messages) => getSupportFormMessages(useKrakstackLocale(locale), messages);
629
383
  var SupportConfirmation = ({
630
384
  title,
631
385
  description,
632
386
  classes
633
- }) => /* @__PURE__ */ jsxs3("div", {
387
+ }) => /* @__PURE__ */ jsxs("div", {
634
388
  role: "status",
635
389
  className: classes.confirmation,
636
390
  children: [
637
- /* @__PURE__ */ jsx7("span", {
391
+ /* @__PURE__ */ jsx("span", {
638
392
  className: classes.checkBadge,
639
- children: /* @__PURE__ */ jsx7(Check, {
393
+ children: /* @__PURE__ */ jsx(Check, {
640
394
  size: 24,
641
395
  "aria-hidden": "true"
642
396
  })
643
397
  }),
644
- /* @__PURE__ */ jsx7("h2", {
398
+ /* @__PURE__ */ jsx("h2", {
645
399
  className: classes.statusTitle,
646
400
  children: title
647
401
  }),
648
- description && /* @__PURE__ */ jsx7("p", {
402
+ description && /* @__PURE__ */ jsx("p", {
649
403
  className: classes.description,
650
404
  children: description
651
405
  })
652
406
  ]
653
407
  });
654
- var SupportForm = (props) => /* @__PURE__ */ jsx7(SupportWithSubmit, {
408
+ var SupportForm = (props) => /* @__PURE__ */ jsx(SupportWithSubmit, {
655
409
  ...props,
656
410
  view: "form"
657
411
  });
@@ -675,14 +429,14 @@ var SupportFormView = ({
675
429
  const pending = status === "pending";
676
430
  const messageError = invalidFields?.includes("message") ? copy.invalidMessage ?? copy.invalid : undefined;
677
431
  const emailError = invalidFields?.includes("replyEmail") ? copy.invalidReplyEmail ?? copy.invalid : undefined;
678
- return /* @__PURE__ */ jsxs3("div", {
432
+ return /* @__PURE__ */ jsxs("div", {
679
433
  className: cn(classes.form, className),
680
434
  children: [
681
- status === "success" ? /* @__PURE__ */ jsx7(SupportConfirmation, {
435
+ status === "success" ? /* @__PURE__ */ jsx(SupportConfirmation, {
682
436
  title: copy.success,
683
437
  description: copy.successDescription,
684
438
  classes
685
- }) : /* @__PURE__ */ jsxs3("form", {
439
+ }) : /* @__PURE__ */ jsxs("form", {
686
440
  noValidate: true,
687
441
  className: classes.form,
688
442
  onSubmit: (event) => {
@@ -691,18 +445,18 @@ var SupportFormView = ({
691
445
  },
692
446
  "aria-busy": pending,
693
447
  children: [
694
- /* @__PURE__ */ jsxs3("fieldset", {
448
+ /* @__PURE__ */ jsxs("fieldset", {
695
449
  disabled: pending,
696
450
  className: classes.fieldset,
697
451
  children: [
698
- askForReplyEmail !== false && /* @__PURE__ */ jsxs3(Field, {
452
+ askForReplyEmail !== false && /* @__PURE__ */ jsxs(Field, {
699
453
  children: [
700
- /* @__PURE__ */ jsxs3(FieldLabel, {
454
+ /* @__PURE__ */ jsxs(FieldLabel, {
701
455
  className: classes.closeAction,
702
456
  htmlFor: `${id}-email`,
703
457
  children: [
704
458
  copy.replyEmail,
705
- askForReplyEmail !== true && copy.optional && /* @__PURE__ */ jsxs3("span", {
459
+ askForReplyEmail !== true && copy.optional && /* @__PURE__ */ jsxs("span", {
706
460
  className: classes.optional,
707
461
  children: [
708
462
  " (",
@@ -712,7 +466,7 @@ var SupportFormView = ({
712
466
  })
713
467
  ]
714
468
  }),
715
- /* @__PURE__ */ jsx7(Input, {
469
+ /* @__PURE__ */ jsx(Input, {
716
470
  id: `${id}-email`,
717
471
  type: "email",
718
472
  name: "replyEmail",
@@ -724,18 +478,18 @@ var SupportFormView = ({
724
478
  defaultValue: defaultReplyEmail,
725
479
  required: askForReplyEmail === true
726
480
  }),
727
- /* @__PURE__ */ jsx7(FieldError, {
481
+ /* @__PURE__ */ jsx(FieldError, {
728
482
  id: `${id}-email-error`,
729
483
  children: emailError
730
484
  })
731
485
  ]
732
486
  }),
733
- /* @__PURE__ */ jsxs3("div", {
487
+ /* @__PURE__ */ jsxs("div", {
734
488
  className: classes.message,
735
489
  children: [
736
- /* @__PURE__ */ jsxs3(Field, {
490
+ /* @__PURE__ */ jsxs(Field, {
737
491
  children: [
738
- /* @__PURE__ */ jsx7(Textarea, {
492
+ /* @__PURE__ */ jsx(Textarea, {
739
493
  "aria-label": copy.title,
740
494
  "aria-invalid": messageError ? true : undefined,
741
495
  "aria-describedby": messageError ? `${id}-message-error` : undefined,
@@ -752,13 +506,13 @@ var SupportFormView = ({
752
506
  onAddScreenshots(files);
753
507
  }
754
508
  }),
755
- /* @__PURE__ */ jsx7(FieldError, {
509
+ /* @__PURE__ */ jsx(FieldError, {
756
510
  id: `${id}-message-error`,
757
511
  children: messageError
758
512
  })
759
513
  ]
760
514
  }),
761
- /* @__PURE__ */ jsx7("input", {
515
+ /* @__PURE__ */ jsx("input", {
762
516
  ref: fileInput,
763
517
  type: "file",
764
518
  "aria-label": copy.attach,
@@ -770,31 +524,31 @@ var SupportFormView = ({
770
524
  event.currentTarget.value = "";
771
525
  }
772
526
  }),
773
- attachments.length > 0 && /* @__PURE__ */ jsx7("ul", {
527
+ attachments.length > 0 && /* @__PURE__ */ jsx("ul", {
774
528
  className: classes.attachments,
775
- children: attachments.map((file, index) => /* @__PURE__ */ jsxs3("li", {
529
+ children: attachments.map((file, index) => /* @__PURE__ */ jsxs("li", {
776
530
  className: classes.attachment,
777
531
  children: [
778
- /* @__PURE__ */ jsx7("span", {
532
+ /* @__PURE__ */ jsx("span", {
779
533
  className: classes.attachmentMedia,
780
- children: /* @__PURE__ */ jsx7(Image, {
534
+ children: /* @__PURE__ */ jsx(Image, {
781
535
  size: 14,
782
536
  "aria-hidden": "true"
783
537
  })
784
538
  }),
785
- /* @__PURE__ */ jsx7("span", {
539
+ /* @__PURE__ */ jsx("span", {
786
540
  className: classes.filename,
787
541
  title: file.name,
788
542
  children: file.name
789
543
  }),
790
- /* @__PURE__ */ jsx7(Button, {
544
+ /* @__PURE__ */ jsx(Button, {
791
545
  variant: "ghost",
792
546
  size: "icon-sm",
793
547
  className: "size-6",
794
548
  type: "button",
795
549
  "aria-label": `${copy.removeAttachment}: ${file.name}`,
796
550
  onClick: () => onRemoveScreenshot(index),
797
- children: /* @__PURE__ */ jsx7(X, {
551
+ children: /* @__PURE__ */ jsx(X, {
798
552
  size: 16,
799
553
  "aria-hidden": "true"
800
554
  })
@@ -802,24 +556,24 @@ var SupportFormView = ({
802
556
  ]
803
557
  }, index))
804
558
  }),
805
- invalidAttachments && /* @__PURE__ */ jsx7("p", {
559
+ invalidAttachments && /* @__PURE__ */ jsx("p", {
806
560
  role: "alert",
807
561
  className: classes.alert,
808
562
  children: copy.invalidAttachments
809
563
  })
810
564
  ]
811
565
  }),
812
- showDetails && /* @__PURE__ */ jsxs3("div", {
566
+ showDetails && /* @__PURE__ */ jsxs("div", {
813
567
  className: classes.details,
814
568
  children: [
815
- /* @__PURE__ */ jsx7("input", {
569
+ /* @__PURE__ */ jsx("input", {
816
570
  type: "checkbox",
817
571
  id: `${id}-include-error-details`,
818
572
  name: "includeErrorDetails",
819
573
  defaultChecked: true,
820
574
  disabled: pending
821
575
  }),
822
- /* @__PURE__ */ jsx7("label", {
576
+ /* @__PURE__ */ jsx("label", {
823
577
  htmlFor: `${id}-include-error-details`,
824
578
  children: copy.includeErrorDetails
825
579
  })
@@ -827,15 +581,15 @@ var SupportFormView = ({
827
581
  })
828
582
  ]
829
583
  }),
830
- (status === "failed" || status === "invalid" && !messageError && !emailError) && /* @__PURE__ */ jsx7("p", {
584
+ (status === "failed" || status === "invalid" && !messageError && !emailError) && /* @__PURE__ */ jsx("p", {
831
585
  role: "alert",
832
586
  className: classes.alert,
833
587
  children: status === "invalid" ? copy.invalid : copy.failed
834
588
  }),
835
- /* @__PURE__ */ jsxs3("div", {
589
+ /* @__PURE__ */ jsxs("div", {
836
590
  className: classes.actions,
837
591
  children: [
838
- /* @__PURE__ */ jsxs3(Button, {
592
+ /* @__PURE__ */ jsxs(Button, {
839
593
  type: "button",
840
594
  variant: "outline",
841
595
  className: classes.attach,
@@ -843,14 +597,14 @@ var SupportFormView = ({
843
597
  disabled: pending,
844
598
  onClick: () => fileInput.current?.click(),
845
599
  children: [
846
- /* @__PURE__ */ jsx7(Paperclip, {
600
+ /* @__PURE__ */ jsx(Paperclip, {
847
601
  size: 16,
848
602
  "aria-hidden": "true"
849
603
  }),
850
604
  copy.attach
851
605
  ]
852
606
  }),
853
- /* @__PURE__ */ jsx7(Button, {
607
+ /* @__PURE__ */ jsx(Button, {
854
608
  type: "submit",
855
609
  size: "sm",
856
610
  disabled: pending,
@@ -860,12 +614,12 @@ var SupportFormView = ({
860
614
  })
861
615
  ]
862
616
  }),
863
- status !== "success" && directEmail._tag === "Some" && /* @__PURE__ */ jsxs3("p", {
617
+ status !== "success" && directEmail._tag === "Some" && /* @__PURE__ */ jsxs("p", {
864
618
  className: classes.description,
865
619
  children: [
866
620
  copy.directEmail,
867
621
  " ",
868
- /* @__PURE__ */ jsx7("a", {
622
+ /* @__PURE__ */ jsx("a", {
869
623
  className: classes.link,
870
624
  href: `mailto:${encodeURIComponent(directEmail.value).replace(/%40/g, "@")}`,
871
625
  children: directEmail.value
@@ -875,7 +629,7 @@ var SupportFormView = ({
875
629
  ]
876
630
  });
877
631
  };
878
- var SupportPage = (props) => /* @__PURE__ */ jsx7(SupportWithSubmit, {
632
+ var SupportPage = (props) => /* @__PURE__ */ jsx(SupportWithSubmit, {
879
633
  ...props,
880
634
  view: "page"
881
635
  });
@@ -887,19 +641,19 @@ var SupportPageView = ({
887
641
  }) => {
888
642
  const classes = resolveSupportClasses(classOverrides);
889
643
  const titleId = useId();
890
- return /* @__PURE__ */ jsxs3("section", {
644
+ return /* @__PURE__ */ jsxs("section", {
891
645
  "aria-labelledby": titleId,
892
646
  className: cn(classes.page, className),
893
647
  children: [
894
- /* @__PURE__ */ jsxs3("header", {
648
+ /* @__PURE__ */ jsxs("header", {
895
649
  className: classes.pageHeader,
896
650
  children: [
897
- /* @__PURE__ */ jsx7("h1", {
651
+ /* @__PURE__ */ jsx("h1", {
898
652
  id: titleId,
899
653
  className: classes.pageTitle,
900
654
  children: title
901
655
  }),
902
- description && /* @__PURE__ */ jsx7("p", {
656
+ description && /* @__PURE__ */ jsx("p", {
903
657
  className: classes.pageDescription,
904
658
  children: description
905
659
  })
@@ -909,7 +663,7 @@ var SupportPageView = ({
909
663
  ]
910
664
  });
911
665
  };
912
- var SupportDialog = (props) => /* @__PURE__ */ jsx7(SupportWithSubmit, {
666
+ var SupportDialog = (props) => /* @__PURE__ */ jsx(SupportWithSubmit, {
913
667
  ...props,
914
668
  view: "dialog"
915
669
  });
@@ -940,7 +694,7 @@ var SupportWithSubmit = ({
940
694
  useLayoutEffect(() => {
941
695
  submission.setSubmit(onSubmit);
942
696
  }, [onSubmit, submission]);
943
- return /* @__PURE__ */ jsx7(SupportModelView, {
697
+ return /* @__PURE__ */ jsx(SupportModelView, {
944
698
  config: SupportProps.make({
945
699
  className,
946
700
  classes,
@@ -967,50 +721,50 @@ var SupportDialogView = ({
967
721
  onOpenChange,
968
722
  children
969
723
  }) => {
970
- return /* @__PURE__ */ jsxs3(Dialog, {
724
+ return /* @__PURE__ */ jsxs(Dialog, {
971
725
  open,
972
726
  onOpenChange: (next, event) => {
973
727
  if (!next && pending || onOpenChange(next) === false)
974
728
  event.cancel();
975
729
  },
976
730
  children: [
977
- /* @__PURE__ */ jsx7(DialogTrigger, {
978
- render: trigger ?? /* @__PURE__ */ jsx7(Button, {
731
+ /* @__PURE__ */ jsx(DialogTrigger, {
732
+ render: trigger ?? /* @__PURE__ */ jsx(Button, {
979
733
  variant: "outline",
980
734
  children: copy.title
981
735
  })
982
736
  }),
983
- /* @__PURE__ */ jsxs3(DialogContent, {
737
+ /* @__PURE__ */ jsxs(DialogContent, {
984
738
  className,
985
739
  showCloseButton: false,
986
740
  children: [
987
- /* @__PURE__ */ jsxs3(DialogHeader, {
741
+ /* @__PURE__ */ jsxs(DialogHeader, {
988
742
  role: sent ? "status" : undefined,
989
743
  children: [
990
- /* @__PURE__ */ jsxs3(DialogTitle, {
744
+ /* @__PURE__ */ jsxs(DialogTitle, {
991
745
  className: resolveSupportClasses(classes).dialogTitle,
992
746
  children: [
993
747
  sent ? copy.success : copy.title,
994
- sent && /* @__PURE__ */ jsx7(Check, {
748
+ sent && /* @__PURE__ */ jsx(Check, {
995
749
  size: 16,
996
750
  "aria-hidden": "true"
997
751
  })
998
752
  ]
999
753
  }),
1000
- (sent ? copy.successDescription : copy.description) && /* @__PURE__ */ jsx7(DialogDescription, {
754
+ (sent ? copy.successDescription : copy.description) && /* @__PURE__ */ jsx(DialogDescription, {
1001
755
  children: sent ? copy.successDescription : copy.description
1002
756
  })
1003
757
  ]
1004
758
  }),
1005
- /* @__PURE__ */ jsx7(DialogClose, {
1006
- render: /* @__PURE__ */ jsx7(Button, {
759
+ /* @__PURE__ */ jsx(DialogClose, {
760
+ render: /* @__PURE__ */ jsx(Button, {
1007
761
  variant: "ghost",
1008
762
  size: "icon-sm",
1009
763
  className: "absolute end-4 top-4",
1010
764
  disabled: pending,
1011
765
  "aria-label": copy.close
1012
766
  }),
1013
- children: /* @__PURE__ */ jsx7(X, {
767
+ children: /* @__PURE__ */ jsx(X, {
1014
768
  size: 16,
1015
769
  "aria-hidden": "true"
1016
770
  })
@@ -1024,7 +778,7 @@ var SupportDialogView = ({
1024
778
  var SupportDialogReact = ({
1025
779
  config,
1026
780
  component
1027
- }) => /* @__PURE__ */ jsx7(SupportModelView, {
781
+ }) => /* @__PURE__ */ jsx(SupportModelView, {
1028
782
  config,
1029
783
  component,
1030
784
  view: config.inline ? "page" : "dialog"
@@ -1039,7 +793,7 @@ var SupportModelView = ({
1039
793
  const { defaultReplyEmail, errorDetails } = config;
1040
794
  const messages = config.messages ?? getSupportFormMessages(config.locale);
1041
795
  const state = Redacted2.value(model.form);
1042
- const form = /* @__PURE__ */ jsx7(SupportFormView, {
796
+ const form = /* @__PURE__ */ jsx(SupportFormView, {
1043
797
  className: view === "form" ? config.className : undefined,
1044
798
  classes: config.classes,
1045
799
  messages,
@@ -1061,13 +815,13 @@ var SupportModelView = ({
1061
815
  if (view === "form")
1062
816
  return form;
1063
817
  if (view === "page")
1064
- return /* @__PURE__ */ jsx7(SupportPageView, {
818
+ return /* @__PURE__ */ jsx(SupportPageView, {
1065
819
  className: config.className,
1066
820
  classes: config.classes,
1067
821
  messages,
1068
822
  children: form
1069
823
  });
1070
- return /* @__PURE__ */ jsx7(SupportDialogView, {
824
+ return /* @__PURE__ */ jsx(SupportDialogView, {
1071
825
  className: config.className,
1072
826
  classes: config.classes,
1073
827
  messages,