@krak-stack/registry 0.11.4 → 0.11.6

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 (175) hide show
  1. package/CHANGELOG.md +23 -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 +706 -1279
  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/classes.d.ts +9 -3
  27. package/dist/components/data-table/html.d.ts +93 -21
  28. package/dist/components/data-table/html.js +309 -196
  29. package/dist/components/data-table/index.d.ts +97 -9
  30. package/dist/components/data-table/react.d.ts +14 -3
  31. package/dist/components/data-table/react.js +700 -1273
  32. package/dist/components/data-table/schema.d.ts +175 -16
  33. package/dist/components/date-input/html.js +19 -74
  34. package/dist/components/date-input/react.d.ts +1 -1
  35. package/dist/components/date-input/react.js +28 -313
  36. package/dist/components/docs/classes.d.ts +15 -0
  37. package/dist/components/docs/html.d.ts +55 -0
  38. package/dist/components/docs/html.js +837 -0
  39. package/dist/components/docs/index.d.ts +49 -0
  40. package/dist/components/docs/react.d.ts +10 -0
  41. package/dist/components/docs/react.js +949 -0
  42. package/dist/components/docs/schema.d.ts +49 -0
  43. package/dist/components/editable-text/html.js +6 -52
  44. package/dist/components/editable-text/react.js +13 -83
  45. package/dist/components/editing-locale-switcher/html.d.ts +2 -2
  46. package/dist/components/editing-locale-switcher/html.js +13 -43
  47. package/dist/components/editing-locale-switcher/react.js +17 -141
  48. package/dist/components/effect-form/react.js +249 -812
  49. package/dist/components/email-composer/react.js +62 -279
  50. package/dist/components/email-editor/html.js +13 -58
  51. package/dist/components/email-editor/react.js +187 -483
  52. package/dist/components/error-component/html.js +2 -47
  53. package/dist/components/error-component/react.js +33 -137
  54. package/dist/components/file-input/html.js +9 -40
  55. package/dist/components/file-input/react.js +39 -208
  56. package/dist/components/form/react.js +212 -777
  57. package/dist/components/icon-input/html.js +9 -56
  58. package/dist/components/icon-input/react.js +43 -143
  59. package/dist/components/image-crop-editor/html.js +1 -35
  60. package/dist/components/image-crop-editor/react.js +21 -66
  61. package/dist/components/locale-switcher/html.js +8 -55
  62. package/dist/components/locale-switcher/react.js +21 -146
  63. package/dist/components/map-menu/html.d.ts +8 -8
  64. package/dist/components/map-menu/html.js +13 -72
  65. package/dist/components/map-menu/react.js +92 -309
  66. package/dist/components/markdown/html.js +1 -35
  67. package/dist/components/markdown/react.js +20 -64
  68. package/dist/components/notification-menu/html.js +14 -50
  69. package/dist/components/notification-menu/react.js +73 -343
  70. package/dist/components/pagination/html.js +17 -73
  71. package/dist/components/pagination/react.js +37 -200
  72. package/dist/components/phone-number-input/html.js +19 -57
  73. package/dist/components/phone-number-input/react.d.ts +1 -1
  74. package/dist/components/phone-number-input/react.js +43 -142
  75. package/dist/components/presence-transition/index.d.ts +2 -2
  76. package/dist/components/registry-previews/component-example.js +26 -126
  77. package/dist/components/rich-text-editor/html.d.ts +12 -12
  78. package/dist/components/rich-text-editor/html.js +12 -85
  79. package/dist/components/rich-text-editor/react.js +55 -272
  80. package/dist/components/search-menu/classes.d.ts +2 -0
  81. package/dist/components/search-menu/html.d.ts +2 -0
  82. package/dist/components/search-menu/html.js +40 -73
  83. package/dist/components/search-menu/index.d.ts +27 -2
  84. package/dist/components/search-menu/react.d.ts +1 -1
  85. package/dist/components/search-menu/react.js +59 -280
  86. package/dist/components/search-menu/schema.d.ts +1 -0
  87. package/dist/components/select-with-custom-input/html.d.ts +2 -2
  88. package/dist/components/select-with-custom-input/html.js +13 -48
  89. package/dist/components/select-with-custom-input/react.js +22 -146
  90. package/dist/components/sidebar-layout/html.d.ts +16 -6
  91. package/dist/components/sidebar-layout/html.js +83 -69
  92. package/dist/components/sidebar-layout/index.d.ts +16 -0
  93. package/dist/components/sidebar-layout/react.js +105 -698
  94. package/dist/components/stats-card/react.js +13 -58
  95. package/dist/components/support/html.js +14 -69
  96. package/dist/components/support/react.js +74 -320
  97. package/dist/components/theme-switcher/html.js +11 -55
  98. package/dist/components/theme-switcher/react.js +28 -152
  99. package/dist/components/time-input/html.d.ts +2 -2
  100. package/dist/components/time-input/html.js +8 -53
  101. package/dist/components/time-input/react.js +34 -188
  102. package/dist/components/timezone-input/html.js +11 -67
  103. package/dist/components/timezone-input/react.js +41 -143
  104. package/dist/components/toast/html.d.ts +6 -6
  105. package/dist/components/toast/html.js +13 -46
  106. package/dist/components/tracking-notice/react.js +39 -188
  107. package/dist/components/unsaved-changes-guard/html.js +9 -43
  108. package/dist/components/unsaved-changes-guard/react.js +19 -169
  109. package/dist/components/upload-attachment/html.d.ts +4 -4
  110. package/dist/components/upload-attachment/html.js +4 -35
  111. package/dist/components/upload-attachment/react.js +25 -164
  112. package/dist/components/virtualized-combobox/html.js +10 -35
  113. package/dist/components/virtualized-combobox/react.js +28 -129
  114. package/dist/components/webhook-delivery-table/html.js +320 -206
  115. package/dist/components/webhook-delivery-table/react.js +736 -1376
  116. package/dist/lib/docs.integrations.server.js +150 -202
  117. package/dist/lib/docs.js +305 -1085
  118. package/dist/lib/docs.server.js +134 -186
  119. package/dist/lib/documentation-toolkit.js +144 -196
  120. package/dist/services/agent/client/index.js +226 -1072
  121. package/dist/services/notification/client/index.js +73 -343
  122. package/dist/services/notification/public.js +73 -343
  123. package/package.json +5 -13
  124. package/dist/components/effectcn/alert-dialog.d.ts +0 -13
  125. package/dist/components/effectcn/button.d.ts +0 -31
  126. package/dist/components/effectcn/calendar.d.ts +0 -12
  127. package/dist/components/effectcn/checkbox.d.ts +0 -10
  128. package/dist/components/effectcn/combobox.d.ts +0 -25
  129. package/dist/components/effectcn/dialog.d.ts +0 -19
  130. package/dist/components/effectcn/field.d.ts +0 -11
  131. package/dist/components/effectcn/file-drop.d.ts +0 -8
  132. package/dist/components/effectcn/input.d.ts +0 -26
  133. package/dist/components/effectcn/menu.d.ts +0 -85
  134. package/dist/components/effectcn/menubar.d.ts +0 -8
  135. package/dist/components/effectcn/popover.d.ts +0 -18
  136. package/dist/components/effectcn/scroll-area.d.ts +0 -12
  137. package/dist/components/effectcn/select.d.ts +0 -68
  138. package/dist/components/effectcn/toast.d.ts +0 -29
  139. package/dist/components/ui/alert-dialog.d.ts +0 -18
  140. package/dist/components/ui/alert.d.ts +0 -10
  141. package/dist/components/ui/attachment.d.ts +0 -23
  142. package/dist/components/ui/badge.d.ts +0 -7
  143. package/dist/components/ui/bubble.d.ts +0 -16
  144. package/dist/components/ui/button.d.ts +0 -8
  145. package/dist/components/ui/calendar.d.ts +0 -10
  146. package/dist/components/ui/card.d.ts +0 -11
  147. package/dist/components/ui/checkbox.d.ts +0 -3
  148. package/dist/components/ui/collapsible.d.ts +0 -5
  149. package/dist/components/ui/command.d.ts +0 -18
  150. package/dist/components/ui/dialog.d.ts +0 -17
  151. package/dist/components/ui/dropdown-menu.d.ts +0 -29
  152. package/dist/components/ui/empty.d.ts +0 -11
  153. package/dist/components/ui/field.d.ts +0 -24
  154. package/dist/components/ui/input-group.d.ts +0 -17
  155. package/dist/components/ui/input.d.ts +0 -3
  156. package/dist/components/ui/item.d.ts +0 -22
  157. package/dist/components/ui/label.d.ts +0 -3
  158. package/dist/components/ui/menubar.d.ts +0 -29
  159. package/dist/components/ui/message-scroller.d.ts +0 -10
  160. package/dist/components/ui/message.d.ts +0 -10
  161. package/dist/components/ui/popover.d.ts +0 -9
  162. package/dist/components/ui/scroll-area.d.ts +0 -4
  163. package/dist/components/ui/select.d.ts +0 -15
  164. package/dist/components/ui/select.js +0 -159
  165. package/dist/components/ui/separator.d.ts +0 -3
  166. package/dist/components/ui/sheet.d.ts +0 -14
  167. package/dist/components/ui/sidebar.d.ts +0 -63
  168. package/dist/components/ui/skeleton.d.ts +0 -2
  169. package/dist/components/ui/table.d.ts +0 -10
  170. package/dist/components/ui/tabs.d.ts +0 -10
  171. package/dist/components/ui/textarea.d.ts +0 -3
  172. package/dist/components/ui/tooltip.d.ts +0 -6
  173. package/dist/components/ui/trace.d.ts +0 -18
  174. package/dist/lib/effectcn-form.d.ts +0 -3
  175. package/dist/lib/effectcn-form.js +0 -54
@@ -4,69 +4,9 @@ import {
4
4
  getCountries as getCountries3,
5
5
  getCountryCallingCode as getCountryCallingCode3
6
6
  } from "libphonenumber-js/max";
7
-
8
- // ../../src/components/ui/input.tsx
9
- import { Input as InputPrimitive } from "@base-ui/react/input";
10
-
11
- // ../../src/lib/utils.ts
12
- import { cn } from "cn";
13
-
14
- // ../../src/components/ui/input.tsx
15
- import { jsx } from "react/jsx-runtime";
16
- function Input({ className, type, ...props }) {
17
- return /* @__PURE__ */ jsx(InputPrimitive, {
18
- type,
19
- "data-slot": "input",
20
- 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),
21
- ...props
22
- });
23
- }
24
-
25
- // ../../src/components/phone-number-input/react.tsx
7
+ import { Input } from "@/components/ui/input";
26
8
  import { useKrakstackLocale as useKrakstackLocale2 } from "@krak-stack/registry/krakstack-provider/react";
27
-
28
- // ../../src/components/ui/button.tsx
29
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
30
- import { cva } from "class-variance-authority";
31
- import { jsx as jsx2 } from "react/jsx-runtime";
32
- 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", {
33
- variants: {
34
- variant: {
35
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
36
- 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",
37
- 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",
38
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
39
- 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",
40
- link: "text-primary underline-offset-4 hover:underline"
41
- },
42
- size: {
43
- 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",
44
- 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",
45
- 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",
46
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
47
- icon: "size-9",
48
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
49
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
50
- "icon-lg": "size-10"
51
- }
52
- },
53
- defaultVariants: {
54
- variant: "default",
55
- size: "default"
56
- }
57
- });
58
- function Button({
59
- className,
60
- variant = "default",
61
- size = "default",
62
- ...props
63
- }) {
64
- return /* @__PURE__ */ jsx2(ButtonPrimitive, {
65
- "data-slot": "button",
66
- className: cn(buttonVariants({ variant, size, className })),
67
- ...props
68
- });
69
- }
9
+ import { Button as Button2 } from "@/components/ui/button";
70
10
 
71
11
  // ../../src/components/virtualized-combobox/react.tsx
72
12
  import { Combobox as ComboboxPrimitive } from "@base-ui/react";
@@ -78,50 +18,11 @@ import {
78
18
  useImperativeHandle,
79
19
  useRef
80
20
  } from "react";
21
+ import { Button } from "@/components/ui/button";
22
+ import { InputGroup, InputGroupInput } from "@/components/ui/input-group";
81
23
 
82
- // ../../src/components/ui/input-group.tsx
83
- import { cva as cva2 } from "class-variance-authority";
84
- import { jsx as jsx3 } from "react/jsx-runtime";
85
- function InputGroup({ className, ...props }) {
86
- return /* @__PURE__ */ jsx3("div", {
87
- "data-slot": "input-group",
88
- role: "group",
89
- 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),
90
- ...props
91
- });
92
- }
93
- 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", {
94
- variants: {
95
- align: {
96
- "inline-start": "order-first pl-2 has-[>button]:-ml-1 has-[>kbd]:ml-[-0.15rem]",
97
- "inline-end": "order-last pr-2 has-[>button]:-mr-1 has-[>kbd]:mr-[-0.15rem]",
98
- "block-start": "order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2",
99
- "block-end": "order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"
100
- }
101
- },
102
- defaultVariants: { align: "inline-start" }
103
- });
104
- var inputGroupButtonVariants = cva2("flex items-center gap-2 text-sm shadow-none", {
105
- variants: {
106
- size: {
107
- xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
108
- sm: "",
109
- "icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
110
- "icon-sm": "size-8 p-0 has-[>svg]:p-0"
111
- }
112
- },
113
- defaultVariants: { size: "xs" }
114
- });
115
- function InputGroupInput({
116
- className,
117
- ...props
118
- }) {
119
- return /* @__PURE__ */ jsx3(Input, {
120
- "data-slot": "input-group-control",
121
- 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),
122
- ...props
123
- });
124
- }
24
+ // ../../src/lib/utils.ts
25
+ import { cn } from "cn";
125
26
 
126
27
  // ../../src/components/virtualized-combobox/react.tsx
127
28
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
@@ -288,7 +189,7 @@ var update = Component.define(virtualizedComboboxOptions).update({
288
189
  });
289
190
 
290
191
  // ../../src/components/virtualized-combobox/react.tsx
291
- import { jsx as jsx4, jsxs, Fragment } from "react/jsx-runtime";
192
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
292
193
  "use client";
293
194
  var optionEquals = (item, selected) => item.value === selected.value;
294
195
  var VirtualizedComboboxList = ({
@@ -328,11 +229,11 @@ var VirtualizedComboboxList = ({
328
229
  }, [virtualizer]);
329
230
  return /* @__PURE__ */ jsxs(Fragment, {
330
231
  children: [
331
- filteredItems.length === 0 && /* @__PURE__ */ jsx4("div", {
232
+ filteredItems.length === 0 && /* @__PURE__ */ jsx("div", {
332
233
  className: "text-muted-foreground flex min-h-0 flex-1 flex-col items-center justify-center overflow-auto py-6 text-center text-sm",
333
234
  children: emptyLabel
334
235
  }),
335
- /* @__PURE__ */ jsx4(ComboboxPrimitive.List, {
236
+ /* @__PURE__ */ jsx(ComboboxPrimitive.List, {
336
237
  className: "min-h-0 flex-1 scroll-py-1 overflow-auto overscroll-contain p-1",
337
238
  hidden: filteredItems.length === 0,
338
239
  ref: handleScrollElementRef,
@@ -340,7 +241,7 @@ var VirtualizedComboboxList = ({
340
241
  height: Math.min(virtualizer.getTotalSize() + 8, 288),
341
242
  maxHeight: "var(--available-height)"
342
243
  },
343
- children: /* @__PURE__ */ jsx4("div", {
244
+ children: /* @__PURE__ */ jsx("div", {
344
245
  className: "relative w-full",
345
246
  role: "presentation",
346
247
  style: { height: virtualizer.getTotalSize() },
@@ -353,9 +254,9 @@ var VirtualizedComboboxList = ({
353
254
  transform: `translateY(${virtualItem.start}px)`
354
255
  };
355
256
  if (entry.kind === "group") {
356
- return /* @__PURE__ */ jsx4(ComboboxPrimitive.Group, {
257
+ return /* @__PURE__ */ jsx(ComboboxPrimitive.Group, {
357
258
  className: "contents",
358
- children: /* @__PURE__ */ jsx4(ComboboxPrimitive.GroupLabel, {
259
+ children: /* @__PURE__ */ jsx(ComboboxPrimitive.GroupLabel, {
359
260
  className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
360
261
  "data-index": virtualItem.index,
361
262
  ref: virtualizer.measureElement,
@@ -374,13 +275,13 @@ var VirtualizedComboboxList = ({
374
275
  style,
375
276
  value: entry.item,
376
277
  children: [
377
- renderItem?.(entry.item) ?? /* @__PURE__ */ jsx4("span", {
278
+ renderItem?.(entry.item) ?? /* @__PURE__ */ jsx("span", {
378
279
  className: virtualizedComboboxClasses.itemLabel,
379
280
  children: entry.item.label
380
281
  }),
381
- /* @__PURE__ */ jsx4(ComboboxPrimitive.ItemIndicator, {
282
+ /* @__PURE__ */ jsx(ComboboxPrimitive.ItemIndicator, {
382
283
  className: "absolute right-2 flex size-4 items-center justify-center",
383
- children: /* @__PURE__ */ jsx4(Check, {})
284
+ children: /* @__PURE__ */ jsx(Check, {})
384
285
  })
385
286
  ]
386
287
  }, entry.item.value);
@@ -403,8 +304,8 @@ var VirtualizedComboboxContent = ({
403
304
  virtualizerRef
404
305
  }) => {
405
306
  const labels = virtualizedComboboxMessages(locale, messageOverrides);
406
- return /* @__PURE__ */ jsx4(ComboboxPrimitive.Portal, {
407
- children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Positioner, {
307
+ return /* @__PURE__ */ jsx(ComboboxPrimitive.Portal, {
308
+ children: /* @__PURE__ */ jsx(ComboboxPrimitive.Positioner, {
408
309
  align: "start",
409
310
  className: "isolate z-50",
410
311
  side: "bottom",
@@ -412,17 +313,17 @@ var VirtualizedComboboxContent = ({
412
313
  children: /* @__PURE__ */ jsxs(ComboboxPrimitive.Popup, {
413
314
  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),
414
315
  children: [
415
- /* @__PURE__ */ jsx4("div", {
316
+ /* @__PURE__ */ jsx("div", {
416
317
  className: "min-w-0 shrink-0 p-1 pb-0",
417
- children: /* @__PURE__ */ jsx4(InputGroup, {
318
+ children: /* @__PURE__ */ jsx(InputGroup, {
418
319
  className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
419
- children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Input, {
320
+ children: /* @__PURE__ */ jsx(ComboboxPrimitive.Input, {
420
321
  placeholder: labels.search,
421
- render: /* @__PURE__ */ jsx4(InputGroupInput, {})
322
+ render: /* @__PURE__ */ jsx(InputGroupInput, {})
422
323
  })
423
324
  })
424
325
  }),
425
- /* @__PURE__ */ jsx4(VirtualizedComboboxList, {
326
+ /* @__PURE__ */ jsx(VirtualizedComboboxList, {
426
327
  classes,
427
328
  emptyLabel,
428
329
  groupSelections,
@@ -447,20 +348,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
447
348
  type: "button",
448
349
  variant: "outline",
449
350
  children: [
450
- /* @__PURE__ */ jsx4("span", {
351
+ /* @__PURE__ */ jsx("span", {
451
352
  className: "min-w-0 flex-1 truncate pr-7 text-left",
452
353
  children: label
453
354
  }),
454
- /* @__PURE__ */ jsx4(ChevronsUpDown, {
355
+ /* @__PURE__ */ jsx(ChevronsUpDown, {
455
356
  className: "text-muted-foreground shrink-0 opacity-70"
456
357
  })
457
358
  ]
458
359
  });
459
- var defaultClear = (label) => /* @__PURE__ */ jsx4(ComboboxPrimitive.Clear, {
360
+ var defaultClear = (label) => /* @__PURE__ */ jsx(ComboboxPrimitive.Clear, {
460
361
  "aria-label": label,
461
362
  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",
462
363
  type: "button",
463
- children: /* @__PURE__ */ jsx4(X, {
364
+ children: /* @__PURE__ */ jsx(X, {
464
365
  className: "size-3.5"
465
366
  })
466
367
  });
@@ -493,13 +394,13 @@ var VirtualizedComboboxSingle = (props) => {
493
394
  /* @__PURE__ */ jsxs("div", {
494
395
  className: "relative",
495
396
  children: [
496
- /* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
397
+ /* @__PURE__ */ jsx(ComboboxPrimitive.Trigger, {
497
398
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
498
399
  }),
499
400
  props.trigger ? null : defaultClear(labels.clear)
500
401
  ]
501
402
  }),
502
- /* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
403
+ /* @__PURE__ */ jsx(VirtualizedComboboxContent, {
503
404
  ...props,
504
405
  groupSelections: false,
505
406
  itemIndexRef,
@@ -535,13 +436,13 @@ var VirtualizedComboboxMultiple = (props) => {
535
436
  /* @__PURE__ */ jsxs("div", {
536
437
  className: "relative",
537
438
  children: [
538
- /* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
439
+ /* @__PURE__ */ jsx(ComboboxPrimitive.Trigger, {
539
440
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
540
441
  }),
541
442
  props.trigger ? null : defaultClear(labels.clear)
542
443
  ]
543
444
  }),
544
- /* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
445
+ /* @__PURE__ */ jsx(VirtualizedComboboxContent, {
545
446
  ...props,
546
447
  groupSelections: true,
547
448
  itemIndexRef,
@@ -553,10 +454,10 @@ var VirtualizedComboboxMultiple = (props) => {
553
454
  };
554
455
  function VirtualizedCombobox(props) {
555
456
  const locale = useKrakstackLocale(props.locale);
556
- return props.multiple ? /* @__PURE__ */ jsx4(VirtualizedComboboxMultiple, {
457
+ return props.multiple ? /* @__PURE__ */ jsx(VirtualizedComboboxMultiple, {
557
458
  ...props,
558
459
  locale
559
- }) : /* @__PURE__ */ jsx4(VirtualizedComboboxSingle, {
460
+ }) : /* @__PURE__ */ jsx(VirtualizedComboboxSingle, {
560
461
  ...props,
561
462
  locale
562
463
  });
@@ -750,7 +651,7 @@ var phoneCaretOffset = (value, digits) => {
750
651
  };
751
652
 
752
653
  // ../../src/components/phone-number-input/react.tsx
753
- import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
654
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
754
655
  var PhoneNumberInput = ({
755
656
  classes: classOverrides,
756
657
  value,
@@ -806,13 +707,13 @@ var PhoneNumberInput = ({
806
707
  "data-slot": "phone-number-input",
807
708
  className: cn(phoneNumberInputClasses.root, containerClassName),
808
709
  children: [
809
- /* @__PURE__ */ jsx5("label", {
710
+ /* @__PURE__ */ jsx2("label", {
810
711
  "data-slot": "phone-number-label",
811
712
  htmlFor: inputId,
812
713
  className: phoneNumberInputClasses.label,
813
714
  children: label ?? copy.label
814
715
  }),
815
- name ? /* @__PURE__ */ jsx5("input", {
716
+ name ? /* @__PURE__ */ jsx2("input", {
816
717
  type: "hidden",
817
718
  name,
818
719
  value,
@@ -822,7 +723,7 @@ var PhoneNumberInput = ({
822
723
  "data-slot": "phone-number-controls",
823
724
  className: "flex min-w-0 gap-2",
824
725
  children: [
825
- /* @__PURE__ */ jsx5(VirtualizedCombobox, {
726
+ /* @__PURE__ */ jsx2(VirtualizedCombobox, {
826
727
  ariaLabel: countryLabel,
827
728
  locale: language,
828
729
  items,
@@ -831,14 +732,14 @@ var PhoneNumberInput = ({
831
732
  emptyLabel: copy.empty,
832
733
  contentClassName: cn(phoneNumberInputClasses.countryPopup, contentClassName),
833
734
  disabled: props.disabled || props.readOnly,
834
- trigger: /* @__PURE__ */ jsxs2(Button, {
735
+ trigger: /* @__PURE__ */ jsxs2(Button2, {
835
736
  type: "button",
836
737
  variant: "outline",
837
738
  "aria-label": countryLabel,
838
739
  disabled: props.disabled || props.readOnly,
839
740
  className: "shrink-0 gap-1.5 px-2.5",
840
741
  children: [
841
- /* @__PURE__ */ jsx5("span", {
742
+ /* @__PURE__ */ jsx2("span", {
842
743
  children: country
843
744
  }),
844
745
  /* @__PURE__ */ jsxs2("span", {
@@ -848,7 +749,7 @@ var PhoneNumberInput = ({
848
749
  callingCode
849
750
  ]
850
751
  }),
851
- /* @__PURE__ */ jsx5(ChevronsUpDown2, {
752
+ /* @__PURE__ */ jsx2(ChevronsUpDown2, {
852
753
  "aria-hidden": "true",
853
754
  className: "size-3.5 opacity-60"
854
755
  })
@@ -865,7 +766,7 @@ var PhoneNumberInput = ({
865
766
  onValueChange(next.value, next.details);
866
767
  }
867
768
  }),
868
- /* @__PURE__ */ jsx5(Input, {
769
+ /* @__PURE__ */ jsx2(Input, {
869
770
  ...props,
870
771
  "data-component": "phone-number-national",
871
772
  id: inputId,
@@ -921,12 +822,12 @@ var PhoneNumberInput = ({
921
822
  "data-slot": "phone-number-extension",
922
823
  className: phoneNumberInputClasses.extension,
923
824
  children: [
924
- /* @__PURE__ */ jsx5("label", {
825
+ /* @__PURE__ */ jsx2("label", {
925
826
  htmlFor: `${inputId}-extension`,
926
827
  className: phoneNumberInputClasses.hint,
927
828
  children: copy.extension
928
829
  }),
929
- /* @__PURE__ */ jsx5(Input, {
830
+ /* @__PURE__ */ jsx2(Input, {
930
831
  id: `${inputId}-extension`,
931
832
  type: "text",
932
833
  inputMode: "numeric",
@@ -937,7 +838,7 @@ var PhoneNumberInput = ({
937
838
  })
938
839
  ]
939
840
  }) : null,
940
- /* @__PURE__ */ jsx5("p", {
841
+ /* @__PURE__ */ jsx2("p", {
941
842
  "data-slot": "phone-number-status",
942
843
  id: `${inputId}-status`,
943
844
  className: phoneNumberInputClasses.hint,
@@ -28,9 +28,9 @@ export declare const presenceTransitionBehaviours: {
28
28
  init: ($: Component.Init<{
29
29
  readonly retained: boolean;
30
30
  }, {
31
- readonly _tag: "Opened";
32
- } | {
33
31
  readonly _tag: "Exited";
32
+ } | {
33
+ readonly _tag: "Opened";
34
34
  }, never, {
35
35
  readonly open: boolean;
36
36
  readonly duration?: number | undefined;