@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
@@ -1,41 +1,7 @@
1
1
  // ../../src/components/upload-attachment/html.ts
2
2
  import { Schema as Schema3 } from "effect";
3
3
  import { Html } from "effect/ui/html";
4
-
5
- // ../../src/components/effectcn/button.ts
6
- import {
7
- Button as KitButton
8
- } from "effect/ui/kit";
9
-
10
- // ../../src/lib/utils.ts
11
- import { cn } from "cn";
12
-
13
- // ../../src/components/effectcn/button.ts
14
- var base = "inline-flex h-8.5 shrink-0 items-center justify-center gap-1.5 rounded-md border border-transparent px-3.5 text-[13px] leading-none font-medium whitespace-nowrap no-underline select-none transition-[background-color,border-color,color,opacity] duration-150 active:translate-y-px data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&_svg]:size-[15px] [&_svg]:shrink-0 data-[loading]:before:size-3 data-[loading]:before:animate-spin data-[loading]:before:rounded-full data-[loading]:before:border-2 data-[loading]:before:border-current data-[loading]:before:border-r-transparent";
15
- var variants = {
16
- default: "bg-primary text-primary-foreground hover:bg-primary/85",
17
- secondary: "bg-secondary text-secondary-foreground hover:bg-accent",
18
- outline: "border-input bg-background text-foreground shadow-sm hover:bg-accent hover:text-accent-foreground",
19
- ghost: "text-foreground hover:bg-accent hover:text-accent-foreground",
20
- brand: "bg-brand-soft text-brand-soft-foreground hover:bg-brand-soft/85",
21
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/85",
22
- link: "h-auto px-0 text-foreground underline decoration-transparent underline-offset-4 hover:decoration-current"
23
- };
24
- var sizes = {
25
- default: "",
26
- sm: "h-7 rounded-sm px-2.5 text-xs",
27
- lg: "h-10 px-5 text-sm",
28
- icon: "w-8.5 px-0",
29
- "icon-sm": "h-7 w-7 rounded-sm px-0"
30
- };
31
- var buttonVariants = (options = {}) => cn(base, variants[options.variant ?? "default"], sizes[options.size ?? "default"], options.class);
32
- var Button = (h, options = {}) => KitButton(h, {
33
- element: options.element,
34
- onPress: options.onPress,
35
- props: options.loading ? { ...options.props, disabled: true, focusableWhenDisabled: true } : options.props
36
- }).class(buttonVariants(options)).attr("data-loading", options.loading ? "" : undefined);
37
-
38
- // ../../src/components/upload-attachment/html.ts
4
+ import { Button } from "@/components/effectcn/button";
39
5
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
40
6
  import {
41
7
  Check,
@@ -46,6 +12,9 @@ import {
46
12
  X
47
13
  } from "@krak-stack/registry/lucide-effect";
48
14
 
15
+ // ../../src/lib/utils.ts
16
+ import { cn } from "cn";
17
+
49
18
  // ../../src/components/upload-attachment/classes.ts
50
19
  var uploadAttachmentClasses = {
51
20
  pendingIcon: "motion-safe:animate-spin",
@@ -8,154 +8,15 @@ import {
8
8
  X
9
9
  } from "lucide-react";
10
10
  import { useId } from "react";
11
-
12
- // ../../src/components/ui/attachment.tsx
13
- import { mergeProps } from "@base-ui/react/merge-props";
14
- import { useRender } from "@base-ui/react/use-render";
15
- import { cva as cva2 } from "class-variance-authority";
16
-
17
- // ../../src/lib/utils.ts
18
- import { cn } from "cn";
19
-
20
- // ../../src/components/ui/button.tsx
21
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
22
- import { cva } from "class-variance-authority";
23
- import { jsx } from "react/jsx-runtime";
24
- 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", {
25
- variants: {
26
- variant: {
27
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
28
- 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",
29
- 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",
30
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
31
- 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",
32
- link: "text-primary underline-offset-4 hover:underline"
33
- },
34
- size: {
35
- 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",
36
- 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",
37
- 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",
38
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
39
- icon: "size-9",
40
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
41
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
42
- "icon-lg": "size-10"
43
- }
44
- },
45
- defaultVariants: {
46
- variant: "default",
47
- size: "default"
48
- }
49
- });
50
- function Button({
51
- className,
52
- variant = "default",
53
- size = "default",
54
- ...props
55
- }) {
56
- return /* @__PURE__ */ jsx(ButtonPrimitive, {
57
- "data-slot": "button",
58
- className: cn(buttonVariants({ variant, size, className })),
59
- ...props
60
- });
61
- }
62
-
63
- // ../../src/components/ui/attachment.tsx
64
- import { jsx as jsx2 } from "react/jsx-runtime";
65
- 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", {
66
- variants: {
67
- size: {
68
- 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",
69
- 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",
70
- 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"
71
- },
72
- orientation: {
73
- horizontal: "min-w-40 items-center",
74
- vertical: "w-24 flex-col has-data-[slot=attachment-content]:w-30"
75
- }
76
- }
77
- });
78
- function Attachment({
79
- className,
80
- state = "done",
81
- size = "default",
82
- orientation = "horizontal",
83
- ...props
84
- }) {
85
- return /* @__PURE__ */ jsx2("div", {
86
- "data-slot": "attachment",
87
- "data-state": state,
88
- "data-size": size,
89
- "data-orientation": orientation,
90
- className: cn(attachmentVariants({ size, orientation }), className),
91
- ...props
92
- });
93
- }
94
- 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", {
95
- variants: {
96
- variant: {
97
- icon: "",
98
- 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"
99
- }
100
- },
101
- defaultVariants: {
102
- variant: "icon"
103
- }
104
- });
105
- function AttachmentMedia({
106
- className,
107
- variant = "icon",
108
- ...props
109
- }) {
110
- return /* @__PURE__ */ jsx2("div", {
111
- "data-slot": "attachment-media",
112
- "data-variant": variant,
113
- className: cn(attachmentMediaVariants({ variant }), className),
114
- ...props
115
- });
116
- }
117
- function AttachmentContent({
118
- className,
119
- ...props
120
- }) {
121
- return /* @__PURE__ */ jsx2("div", {
122
- "data-slot": "attachment-content",
123
- className: cn("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", className),
124
- ...props
125
- });
126
- }
127
- function AttachmentTitle({
128
- className,
129
- ...props
130
- }) {
131
- return /* @__PURE__ */ jsx2("span", {
132
- "data-slot": "attachment-title",
133
- 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),
134
- ...props
135
- });
136
- }
137
- function AttachmentDescription({
138
- className,
139
- ...props
140
- }) {
141
- return /* @__PURE__ */ jsx2("span", {
142
- "data-slot": "attachment-description",
143
- 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),
144
- ...props
145
- });
146
- }
147
- function AttachmentActions({
148
- className,
149
- ...props
150
- }) {
151
- return /* @__PURE__ */ jsx2("div", {
152
- "data-slot": "attachment-actions",
153
- 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),
154
- ...props
155
- });
156
- }
157
-
158
- // ../../src/components/upload-attachment/react.tsx
11
+ import {
12
+ Attachment,
13
+ AttachmentActions,
14
+ AttachmentContent,
15
+ AttachmentDescription,
16
+ AttachmentMedia,
17
+ AttachmentTitle
18
+ } from "@/components/ui/attachment";
19
+ import { Button } from "@/components/ui/button";
159
20
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
160
21
 
161
22
  // ../../src/components/upload-attachment/classes.ts
@@ -281,7 +142,7 @@ var uploadAttachmentBehaviours = {
281
142
  };
282
143
 
283
144
  // ../../src/components/upload-attachment/react.tsx
284
- import { jsx as jsx3, jsxs } from "react/jsx-runtime";
145
+ import { jsx, jsxs } from "react/jsx-runtime";
285
146
  var UploadAttachment = ({
286
147
  classes: classOverrides,
287
148
  name,
@@ -305,34 +166,34 @@ var UploadAttachment = ({
305
166
  className,
306
167
  "aria-labelledby": `${id}-name`,
307
168
  children: [
308
- /* @__PURE__ */ jsx3(AttachmentMedia, {
309
- children: state.status === "done" ? /* @__PURE__ */ jsx3(Check, {
169
+ /* @__PURE__ */ jsx(AttachmentMedia, {
170
+ children: state.status === "done" ? /* @__PURE__ */ jsx(Check, {
310
171
  "aria-hidden": "true"
311
- }) : state.status === "error" ? /* @__PURE__ */ jsx3(TriangleAlert, {
172
+ }) : state.status === "error" ? /* @__PURE__ */ jsx(TriangleAlert, {
312
173
  "aria-hidden": "true"
313
- }) : busy ? /* @__PURE__ */ jsx3(LoaderCircle, {
174
+ }) : busy ? /* @__PURE__ */ jsx(LoaderCircle, {
314
175
  "aria-hidden": "true",
315
176
  className: uploadAttachmentClasses.pendingIcon
316
- }) : /* @__PURE__ */ jsx3(File, {
177
+ }) : /* @__PURE__ */ jsx(File, {
317
178
  "aria-hidden": "true"
318
179
  })
319
180
  }),
320
181
  /* @__PURE__ */ jsxs(AttachmentContent, {
321
182
  children: [
322
- /* @__PURE__ */ jsx3(AttachmentTitle, {
183
+ /* @__PURE__ */ jsx(AttachmentTitle, {
323
184
  id: `${id}-name`,
324
185
  children: name
325
186
  }),
326
- description ? /* @__PURE__ */ jsx3(AttachmentDescription, {
187
+ description ? /* @__PURE__ */ jsx(AttachmentDescription, {
327
188
  children: description
328
189
  }) : null,
329
- /* @__PURE__ */ jsx3("p", {
190
+ /* @__PURE__ */ jsx("p", {
330
191
  "data-slot": "upload-attachment-status",
331
192
  role: state.status === "error" ? "alert" : "status",
332
193
  className: uploadAttachmentClasses.status,
333
194
  children: status
334
195
  }),
335
- state.status === "uploading" ? /* @__PURE__ */ jsx3("progress", {
196
+ state.status === "uploading" ? /* @__PURE__ */ jsx("progress", {
336
197
  "data-slot": "upload-attachment-progress",
337
198
  className: uploadAttachmentClasses.progress,
338
199
  "aria-label": `${copy.uploading}: ${name}`,
@@ -343,36 +204,36 @@ var UploadAttachment = ({
343
204
  }),
344
205
  /* @__PURE__ */ jsxs(AttachmentActions, {
345
206
  children: [
346
- busy && onCancel ? /* @__PURE__ */ jsx3(Button, {
207
+ busy && onCancel ? /* @__PURE__ */ jsx(Button, {
347
208
  type: "button",
348
209
  variant: "ghost",
349
210
  size: "icon-sm",
350
211
  disabled,
351
212
  "aria-label": `${copy.cancel}: ${name}`,
352
213
  onClick: onCancel,
353
- children: /* @__PURE__ */ jsx3(X, {
214
+ children: /* @__PURE__ */ jsx(X, {
354
215
  "aria-hidden": "true"
355
216
  })
356
217
  }) : null,
357
- retry && onRetry ? /* @__PURE__ */ jsx3(Button, {
218
+ retry && onRetry ? /* @__PURE__ */ jsx(Button, {
358
219
  type: "button",
359
220
  variant: "ghost",
360
221
  size: "icon-sm",
361
222
  disabled,
362
223
  "aria-label": `${copy.retry}: ${name}`,
363
224
  onClick: onRetry,
364
- children: /* @__PURE__ */ jsx3(RotateCcw, {
225
+ children: /* @__PURE__ */ jsx(RotateCcw, {
365
226
  "aria-hidden": "true"
366
227
  })
367
228
  }) : null,
368
- !busy && onRemove ? /* @__PURE__ */ jsx3(Button, {
229
+ !busy && onRemove ? /* @__PURE__ */ jsx(Button, {
369
230
  type: "button",
370
231
  variant: "ghost",
371
232
  size: "icon-sm",
372
233
  disabled,
373
234
  "aria-label": `${copy.remove}: ${name}`,
374
235
  onClick: onRemove,
375
- children: /* @__PURE__ */ jsx3(X, {
236
+ children: /* @__PURE__ */ jsx(X, {
376
237
  "aria-hidden": "true"
377
238
  })
378
239
  }) : null
@@ -1,41 +1,16 @@
1
1
  // ../../src/components/virtualized-combobox/html.ts
2
2
  import { Html } from "effect/ui/html";
3
3
  import { Combobox, VirtualList } from "effect/ui/kit";
4
-
5
- // ../../src/lib/utils.ts
6
- import { cn } from "cn";
7
-
8
- // ../../src/components/effectcn/combobox.ts
9
- var icon = (h, path) => h.el("svg").attrs({
10
- viewBox: "0 0 24 24",
11
- fill: "none",
12
- stroke: "currentColor",
13
- "stroke-width": "2",
14
- "stroke-linecap": "round",
15
- "stroke-linejoin": "round",
16
- "aria-hidden": "true"
17
- }).children(h.el("path").attr("d", path));
18
- var ComboboxButton = (h, combobox, options = {}) => combobox.trigger(h.button.class(cn("border-input bg-background text-foreground hover:bg-accent data-[popup-open]:bg-accent inline-flex h-8.5 w-56 items-center justify-between gap-2 rounded-md border pr-2 pl-3 text-start text-[13px] whitespace-nowrap shadow-sm transition-colors duration-150 select-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&_svg]:size-3.5", options.class))).children(options.value === undefined ? combobox.value(h.span.class("min-w-0 truncate data-[placeholder]:text-muted-foreground")) : h.span.class(cn("data-[placeholder]:text-muted-foreground min-w-0 truncate", options.valueClass)).children(options.value), combobox.icon(h.span.class("grid shrink-0 place-items-center text-muted-foreground")).children(icon(h, "M7 15l5 5 5-5M7 9l5-5 5 5")));
19
- var ComboboxClear = (h, combobox, options = {}) => combobox.clear({
20
- element: h.button.class(cn("text-muted-foreground hover:bg-accent hover:text-foreground grid size-6 shrink-0 place-items-center rounded-sm transition-colors duration-150 data-[disabled]:pointer-events-none [&_svg]:size-3.5", options.class))
21
- })?.children(icon(h, "M18 6L6 18M6 6l12 12"));
22
- var ComboboxPositioner = (h, combobox, options = {}) => combobox.positioner(h.div.class(cn("outline-none", options.class)));
23
- var ComboboxPopup = (h, combobox, options = {}) => combobox.popup(h.div.class(cn("bg-popover text-foreground shadow-float box-border flex max-h-[min(var(--available-height),20rem)] w-[var(--anchor-width)] max-w-[var(--available-width)] min-w-48 origin-[var(--transform-origin)] flex-col overflow-hidden rounded-lg border text-[13px] transition-[opacity,scale] duration-150 outline-none data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0", options.class)));
24
- var ComboboxSearchInput = (h, combobox, options = {}) => h.div.class(cn("text-muted-foreground flex shrink-0 items-center border-b pl-3 [&_svg]:size-3.5", options.class)).children(icon(h, "M21 21l-4.3-4.3M11 18a7 7 0 100-14 7 7 0 000 14z"), combobox.input(h.input.attrs({
25
- placeholder: options.placeholder,
26
- "aria-label": options.placeholder
27
- }).class("h-9 min-w-0 flex-1 bg-transparent px-2 text-[13px] text-foreground outline-none placeholder:text-muted-foreground")));
28
- var ComboboxEmpty = (h, combobox, options = {}) => combobox.empty(h.div.class(cn("text-muted-foreground px-3 py-5 text-center empty:hidden", options.class)));
29
- var ComboboxItem = (h, combobox, options) => combobox.item({
30
- element: h.div.class(cn("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:text-muted-foreground flex min-h-7.5 cursor-default items-center justify-between gap-2 rounded-sm px-2 py-1 leading-snug select-none data-[disabled]:opacity-60 data-[selected]:font-medium", options.class)),
31
- value: options.value
32
- });
33
- var ComboboxItemIndicator = (h, combobox, options) => combobox.itemIndicator({
34
- element: h.span.class(cn("border-brand mr-1.5 mb-0.5 ml-2.5 h-[9px] w-[5px] shrink-0 rotate-45 border-r-[1.5px] border-b-[1.5px]", options.class)),
35
- value: options.value
36
- });
37
-
38
- // ../../src/components/virtualized-combobox/html.ts
4
+ import {
5
+ ComboboxButton,
6
+ ComboboxClear,
7
+ ComboboxEmpty,
8
+ ComboboxItem,
9
+ ComboboxItemIndicator,
10
+ ComboboxPopup,
11
+ ComboboxPositioner,
12
+ ComboboxSearchInput
13
+ } from "@/components/effectcn/combobox";
39
14
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
40
15
 
41
16
  // ../../src/components/virtualized-combobox/classes.ts
@@ -8,113 +8,12 @@ import {
8
8
  useImperativeHandle,
9
9
  useRef
10
10
  } from "react";
11
-
12
- // ../../src/components/ui/button.tsx
13
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
14
- import { cva } from "class-variance-authority";
11
+ import { Button } from "@/components/ui/button";
12
+ import { InputGroup, InputGroupInput } from "@/components/ui/input-group";
15
13
 
16
14
  // ../../src/lib/utils.ts
17
15
  import { cn } from "cn";
18
16
 
19
- // ../../src/components/ui/button.tsx
20
- import { jsx } from "react/jsx-runtime";
21
- 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", {
22
- variants: {
23
- variant: {
24
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
25
- 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",
26
- 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",
27
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
28
- 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",
29
- link: "text-primary underline-offset-4 hover:underline"
30
- },
31
- size: {
32
- 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",
33
- 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",
34
- 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",
35
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
36
- icon: "size-9",
37
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
38
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
39
- "icon-lg": "size-10"
40
- }
41
- },
42
- defaultVariants: {
43
- variant: "default",
44
- size: "default"
45
- }
46
- });
47
- function Button({
48
- className,
49
- variant = "default",
50
- size = "default",
51
- ...props
52
- }) {
53
- return /* @__PURE__ */ jsx(ButtonPrimitive, {
54
- "data-slot": "button",
55
- className: cn(buttonVariants({ variant, size, className })),
56
- ...props
57
- });
58
- }
59
-
60
- // ../../src/components/ui/input-group.tsx
61
- import { cva as cva2 } from "class-variance-authority";
62
-
63
- // ../../src/components/ui/input.tsx
64
- import { Input as InputPrimitive } from "@base-ui/react/input";
65
- import { jsx as jsx2 } from "react/jsx-runtime";
66
- function Input({ className, type, ...props }) {
67
- return /* @__PURE__ */ jsx2(InputPrimitive, {
68
- type,
69
- "data-slot": "input",
70
- 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),
71
- ...props
72
- });
73
- }
74
-
75
- // ../../src/components/ui/input-group.tsx
76
- import { jsx as jsx3 } from "react/jsx-runtime";
77
- function InputGroup({ className, ...props }) {
78
- return /* @__PURE__ */ jsx3("div", {
79
- "data-slot": "input-group",
80
- role: "group",
81
- 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),
82
- ...props
83
- });
84
- }
85
- var inputGroupAddonVariants = cva2("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", {
86
- variants: {
87
- align: {
88
- "inline-start": "order-first pl-2 has-[>button]:-ml-1 has-[>kbd]:ml-[-0.15rem]",
89
- "inline-end": "order-last pr-2 has-[>button]:-mr-1 has-[>kbd]:mr-[-0.15rem]",
90
- "block-start": "order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2",
91
- "block-end": "order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"
92
- }
93
- },
94
- defaultVariants: { align: "inline-start" }
95
- });
96
- var inputGroupButtonVariants = cva2("flex items-center gap-2 text-sm shadow-none", {
97
- variants: {
98
- size: {
99
- xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
100
- sm: "",
101
- "icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
102
- "icon-sm": "size-8 p-0 has-[>svg]:p-0"
103
- }
104
- },
105
- defaultVariants: { size: "xs" }
106
- });
107
- function InputGroupInput({
108
- className,
109
- ...props
110
- }) {
111
- return /* @__PURE__ */ jsx3(Input, {
112
- "data-slot": "input-group-control",
113
- 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),
114
- ...props
115
- });
116
- }
117
-
118
17
  // ../../src/components/virtualized-combobox/react.tsx
119
18
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
120
19
 
@@ -280,7 +179,7 @@ var update = Component.define(virtualizedComboboxOptions).update({
280
179
  });
281
180
 
282
181
  // ../../src/components/virtualized-combobox/react.tsx
283
- import { jsx as jsx4, jsxs, Fragment } from "react/jsx-runtime";
182
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
284
183
  "use client";
285
184
  var optionEquals = (item, selected) => item.value === selected.value;
286
185
  var VirtualizedComboboxList = ({
@@ -320,11 +219,11 @@ var VirtualizedComboboxList = ({
320
219
  }, [virtualizer]);
321
220
  return /* @__PURE__ */ jsxs(Fragment, {
322
221
  children: [
323
- filteredItems.length === 0 && /* @__PURE__ */ jsx4("div", {
222
+ filteredItems.length === 0 && /* @__PURE__ */ jsx("div", {
324
223
  className: "text-muted-foreground flex min-h-0 flex-1 flex-col items-center justify-center overflow-auto py-6 text-center text-sm",
325
224
  children: emptyLabel
326
225
  }),
327
- /* @__PURE__ */ jsx4(ComboboxPrimitive.List, {
226
+ /* @__PURE__ */ jsx(ComboboxPrimitive.List, {
328
227
  className: "min-h-0 flex-1 scroll-py-1 overflow-auto overscroll-contain p-1",
329
228
  hidden: filteredItems.length === 0,
330
229
  ref: handleScrollElementRef,
@@ -332,7 +231,7 @@ var VirtualizedComboboxList = ({
332
231
  height: Math.min(virtualizer.getTotalSize() + 8, 288),
333
232
  maxHeight: "var(--available-height)"
334
233
  },
335
- children: /* @__PURE__ */ jsx4("div", {
234
+ children: /* @__PURE__ */ jsx("div", {
336
235
  className: "relative w-full",
337
236
  role: "presentation",
338
237
  style: { height: virtualizer.getTotalSize() },
@@ -345,9 +244,9 @@ var VirtualizedComboboxList = ({
345
244
  transform: `translateY(${virtualItem.start}px)`
346
245
  };
347
246
  if (entry.kind === "group") {
348
- return /* @__PURE__ */ jsx4(ComboboxPrimitive.Group, {
247
+ return /* @__PURE__ */ jsx(ComboboxPrimitive.Group, {
349
248
  className: "contents",
350
- children: /* @__PURE__ */ jsx4(ComboboxPrimitive.GroupLabel, {
249
+ children: /* @__PURE__ */ jsx(ComboboxPrimitive.GroupLabel, {
351
250
  className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
352
251
  "data-index": virtualItem.index,
353
252
  ref: virtualizer.measureElement,
@@ -366,13 +265,13 @@ var VirtualizedComboboxList = ({
366
265
  style,
367
266
  value: entry.item,
368
267
  children: [
369
- renderItem?.(entry.item) ?? /* @__PURE__ */ jsx4("span", {
268
+ renderItem?.(entry.item) ?? /* @__PURE__ */ jsx("span", {
370
269
  className: virtualizedComboboxClasses.itemLabel,
371
270
  children: entry.item.label
372
271
  }),
373
- /* @__PURE__ */ jsx4(ComboboxPrimitive.ItemIndicator, {
272
+ /* @__PURE__ */ jsx(ComboboxPrimitive.ItemIndicator, {
374
273
  className: "absolute right-2 flex size-4 items-center justify-center",
375
- children: /* @__PURE__ */ jsx4(Check, {})
274
+ children: /* @__PURE__ */ jsx(Check, {})
376
275
  })
377
276
  ]
378
277
  }, entry.item.value);
@@ -395,8 +294,8 @@ var VirtualizedComboboxContent = ({
395
294
  virtualizerRef
396
295
  }) => {
397
296
  const labels = virtualizedComboboxMessages(locale, messageOverrides);
398
- return /* @__PURE__ */ jsx4(ComboboxPrimitive.Portal, {
399
- children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Positioner, {
297
+ return /* @__PURE__ */ jsx(ComboboxPrimitive.Portal, {
298
+ children: /* @__PURE__ */ jsx(ComboboxPrimitive.Positioner, {
400
299
  align: "start",
401
300
  className: "isolate z-50",
402
301
  side: "bottom",
@@ -404,17 +303,17 @@ var VirtualizedComboboxContent = ({
404
303
  children: /* @__PURE__ */ jsxs(ComboboxPrimitive.Popup, {
405
304
  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),
406
305
  children: [
407
- /* @__PURE__ */ jsx4("div", {
306
+ /* @__PURE__ */ jsx("div", {
408
307
  className: "min-w-0 shrink-0 p-1 pb-0",
409
- children: /* @__PURE__ */ jsx4(InputGroup, {
308
+ children: /* @__PURE__ */ jsx(InputGroup, {
410
309
  className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
411
- children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Input, {
310
+ children: /* @__PURE__ */ jsx(ComboboxPrimitive.Input, {
412
311
  placeholder: labels.search,
413
- render: /* @__PURE__ */ jsx4(InputGroupInput, {})
312
+ render: /* @__PURE__ */ jsx(InputGroupInput, {})
414
313
  })
415
314
  })
416
315
  }),
417
- /* @__PURE__ */ jsx4(VirtualizedComboboxList, {
316
+ /* @__PURE__ */ jsx(VirtualizedComboboxList, {
418
317
  classes,
419
318
  emptyLabel,
420
319
  groupSelections,
@@ -439,20 +338,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
439
338
  type: "button",
440
339
  variant: "outline",
441
340
  children: [
442
- /* @__PURE__ */ jsx4("span", {
341
+ /* @__PURE__ */ jsx("span", {
443
342
  className: "min-w-0 flex-1 truncate pr-7 text-left",
444
343
  children: label
445
344
  }),
446
- /* @__PURE__ */ jsx4(ChevronsUpDown, {
345
+ /* @__PURE__ */ jsx(ChevronsUpDown, {
447
346
  className: "text-muted-foreground shrink-0 opacity-70"
448
347
  })
449
348
  ]
450
349
  });
451
- var defaultClear = (label) => /* @__PURE__ */ jsx4(ComboboxPrimitive.Clear, {
350
+ var defaultClear = (label) => /* @__PURE__ */ jsx(ComboboxPrimitive.Clear, {
452
351
  "aria-label": label,
453
352
  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",
454
353
  type: "button",
455
- children: /* @__PURE__ */ jsx4(X, {
354
+ children: /* @__PURE__ */ jsx(X, {
456
355
  className: "size-3.5"
457
356
  })
458
357
  });
@@ -485,13 +384,13 @@ var VirtualizedComboboxSingle = (props) => {
485
384
  /* @__PURE__ */ jsxs("div", {
486
385
  className: "relative",
487
386
  children: [
488
- /* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
387
+ /* @__PURE__ */ jsx(ComboboxPrimitive.Trigger, {
489
388
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
490
389
  }),
491
390
  props.trigger ? null : defaultClear(labels.clear)
492
391
  ]
493
392
  }),
494
- /* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
393
+ /* @__PURE__ */ jsx(VirtualizedComboboxContent, {
495
394
  ...props,
496
395
  groupSelections: false,
497
396
  itemIndexRef,
@@ -527,13 +426,13 @@ var VirtualizedComboboxMultiple = (props) => {
527
426
  /* @__PURE__ */ jsxs("div", {
528
427
  className: "relative",
529
428
  children: [
530
- /* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
429
+ /* @__PURE__ */ jsx(ComboboxPrimitive.Trigger, {
531
430
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
532
431
  }),
533
432
  props.trigger ? null : defaultClear(labels.clear)
534
433
  ]
535
434
  }),
536
- /* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
435
+ /* @__PURE__ */ jsx(VirtualizedComboboxContent, {
537
436
  ...props,
538
437
  groupSelections: true,
539
438
  itemIndexRef,
@@ -545,10 +444,10 @@ var VirtualizedComboboxMultiple = (props) => {
545
444
  };
546
445
  function VirtualizedCombobox(props) {
547
446
  const locale = useKrakstackLocale(props.locale);
548
- return props.multiple ? /* @__PURE__ */ jsx4(VirtualizedComboboxMultiple, {
447
+ return props.multiple ? /* @__PURE__ */ jsx(VirtualizedComboboxMultiple, {
549
448
  ...props,
550
449
  locale
551
- }) : /* @__PURE__ */ jsx4(VirtualizedComboboxSingle, {
450
+ }) : /* @__PURE__ */ jsx(VirtualizedComboboxSingle, {
552
451
  ...props,
553
452
  locale
554
453
  });