@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,54 +1,10 @@
1
1
  // ../../src/components/timezone-input/react.tsx
2
2
  import { useId, useMemo, useSyncExternalStore } from "react";
3
-
4
- // ../../src/components/ui/button.tsx
5
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
6
- import { cva } from "class-variance-authority";
3
+ import { Button as Button2 } from "@/components/ui/button";
7
4
 
8
5
  // ../../src/lib/utils.ts
9
6
  import { cn } from "cn";
10
7
 
11
- // ../../src/components/ui/button.tsx
12
- import { jsx } from "react/jsx-runtime";
13
- 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", {
14
- variants: {
15
- variant: {
16
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
17
- 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",
18
- 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",
19
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
20
- 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",
21
- link: "text-primary underline-offset-4 hover:underline"
22
- },
23
- size: {
24
- 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",
25
- 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",
26
- 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",
27
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
28
- icon: "size-9",
29
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
30
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
31
- "icon-lg": "size-10"
32
- }
33
- },
34
- defaultVariants: {
35
- variant: "default",
36
- size: "default"
37
- }
38
- });
39
- function Button({
40
- className,
41
- variant = "default",
42
- size = "default",
43
- ...props
44
- }) {
45
- return /* @__PURE__ */ jsx(ButtonPrimitive, {
46
- "data-slot": "button",
47
- className: cn(buttonVariants({ variant, size, className })),
48
- ...props
49
- });
50
- }
51
-
52
8
  // ../../src/components/timezone-input/react.tsx
53
9
  import { useKrakstackLocale as useKrakstackLocale2 } from "@krak-stack/registry/krakstack-provider/react";
54
10
 
@@ -62,66 +18,8 @@ import {
62
18
  useImperativeHandle,
63
19
  useRef
64
20
  } from "react";
65
-
66
- // ../../src/components/ui/input-group.tsx
67
- import { cva as cva2 } from "class-variance-authority";
68
-
69
- // ../../src/components/ui/input.tsx
70
- import { Input as InputPrimitive } from "@base-ui/react/input";
71
- import { jsx as jsx2 } from "react/jsx-runtime";
72
- function Input({ className, type, ...props }) {
73
- return /* @__PURE__ */ jsx2(InputPrimitive, {
74
- type,
75
- "data-slot": "input",
76
- 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),
77
- ...props
78
- });
79
- }
80
-
81
- // ../../src/components/ui/input-group.tsx
82
- import { jsx as jsx3 } from "react/jsx-runtime";
83
- function InputGroup({ className, ...props }) {
84
- return /* @__PURE__ */ jsx3("div", {
85
- "data-slot": "input-group",
86
- role: "group",
87
- 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),
88
- ...props
89
- });
90
- }
91
- 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", {
92
- variants: {
93
- align: {
94
- "inline-start": "order-first pl-2 has-[>button]:-ml-1 has-[>kbd]:ml-[-0.15rem]",
95
- "inline-end": "order-last pr-2 has-[>button]:-mr-1 has-[>kbd]:mr-[-0.15rem]",
96
- "block-start": "order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2",
97
- "block-end": "order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"
98
- }
99
- },
100
- defaultVariants: { align: "inline-start" }
101
- });
102
- var inputGroupButtonVariants = cva2("flex items-center gap-2 text-sm shadow-none", {
103
- variants: {
104
- size: {
105
- xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
106
- sm: "",
107
- "icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
108
- "icon-sm": "size-8 p-0 has-[>svg]:p-0"
109
- }
110
- },
111
- defaultVariants: { size: "xs" }
112
- });
113
- function InputGroupInput({
114
- className,
115
- ...props
116
- }) {
117
- return /* @__PURE__ */ jsx3(Input, {
118
- "data-slot": "input-group-control",
119
- 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),
120
- ...props
121
- });
122
- }
123
-
124
- // ../../src/components/virtualized-combobox/react.tsx
21
+ import { Button } from "@/components/ui/button";
22
+ import { InputGroup, InputGroupInput } from "@/components/ui/input-group";
125
23
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
126
24
 
127
25
  // ../../src/components/virtualized-combobox/classes.ts
@@ -286,7 +184,7 @@ var update = Component.define(virtualizedComboboxOptions).update({
286
184
  });
287
185
 
288
186
  // ../../src/components/virtualized-combobox/react.tsx
289
- import { jsx as jsx4, jsxs, Fragment } from "react/jsx-runtime";
187
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
290
188
  "use client";
291
189
  var optionEquals = (item, selected) => item.value === selected.value;
292
190
  var VirtualizedComboboxList = ({
@@ -326,11 +224,11 @@ var VirtualizedComboboxList = ({
326
224
  }, [virtualizer]);
327
225
  return /* @__PURE__ */ jsxs(Fragment, {
328
226
  children: [
329
- filteredItems.length === 0 && /* @__PURE__ */ jsx4("div", {
227
+ filteredItems.length === 0 && /* @__PURE__ */ jsx("div", {
330
228
  className: "text-muted-foreground flex min-h-0 flex-1 flex-col items-center justify-center overflow-auto py-6 text-center text-sm",
331
229
  children: emptyLabel
332
230
  }),
333
- /* @__PURE__ */ jsx4(ComboboxPrimitive.List, {
231
+ /* @__PURE__ */ jsx(ComboboxPrimitive.List, {
334
232
  className: "min-h-0 flex-1 scroll-py-1 overflow-auto overscroll-contain p-1",
335
233
  hidden: filteredItems.length === 0,
336
234
  ref: handleScrollElementRef,
@@ -338,7 +236,7 @@ var VirtualizedComboboxList = ({
338
236
  height: Math.min(virtualizer.getTotalSize() + 8, 288),
339
237
  maxHeight: "var(--available-height)"
340
238
  },
341
- children: /* @__PURE__ */ jsx4("div", {
239
+ children: /* @__PURE__ */ jsx("div", {
342
240
  className: "relative w-full",
343
241
  role: "presentation",
344
242
  style: { height: virtualizer.getTotalSize() },
@@ -351,9 +249,9 @@ var VirtualizedComboboxList = ({
351
249
  transform: `translateY(${virtualItem.start}px)`
352
250
  };
353
251
  if (entry.kind === "group") {
354
- return /* @__PURE__ */ jsx4(ComboboxPrimitive.Group, {
252
+ return /* @__PURE__ */ jsx(ComboboxPrimitive.Group, {
355
253
  className: "contents",
356
- children: /* @__PURE__ */ jsx4(ComboboxPrimitive.GroupLabel, {
254
+ children: /* @__PURE__ */ jsx(ComboboxPrimitive.GroupLabel, {
357
255
  className: "text-muted-foreground absolute top-0 left-0 w-full px-2 pt-3 pb-1 text-xs",
358
256
  "data-index": virtualItem.index,
359
257
  ref: virtualizer.measureElement,
@@ -372,13 +270,13 @@ var VirtualizedComboboxList = ({
372
270
  style,
373
271
  value: entry.item,
374
272
  children: [
375
- renderItem?.(entry.item) ?? /* @__PURE__ */ jsx4("span", {
273
+ renderItem?.(entry.item) ?? /* @__PURE__ */ jsx("span", {
376
274
  className: virtualizedComboboxClasses.itemLabel,
377
275
  children: entry.item.label
378
276
  }),
379
- /* @__PURE__ */ jsx4(ComboboxPrimitive.ItemIndicator, {
277
+ /* @__PURE__ */ jsx(ComboboxPrimitive.ItemIndicator, {
380
278
  className: "absolute right-2 flex size-4 items-center justify-center",
381
- children: /* @__PURE__ */ jsx4(Check, {})
279
+ children: /* @__PURE__ */ jsx(Check, {})
382
280
  })
383
281
  ]
384
282
  }, entry.item.value);
@@ -401,8 +299,8 @@ var VirtualizedComboboxContent = ({
401
299
  virtualizerRef
402
300
  }) => {
403
301
  const labels = virtualizedComboboxMessages(locale, messageOverrides);
404
- return /* @__PURE__ */ jsx4(ComboboxPrimitive.Portal, {
405
- children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Positioner, {
302
+ return /* @__PURE__ */ jsx(ComboboxPrimitive.Portal, {
303
+ children: /* @__PURE__ */ jsx(ComboboxPrimitive.Positioner, {
406
304
  align: "start",
407
305
  className: "isolate z-50",
408
306
  side: "bottom",
@@ -410,17 +308,17 @@ var VirtualizedComboboxContent = ({
410
308
  children: /* @__PURE__ */ jsxs(ComboboxPrimitive.Popup, {
411
309
  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),
412
310
  children: [
413
- /* @__PURE__ */ jsx4("div", {
311
+ /* @__PURE__ */ jsx("div", {
414
312
  className: "min-w-0 shrink-0 p-1 pb-0",
415
- children: /* @__PURE__ */ jsx4(InputGroup, {
313
+ children: /* @__PURE__ */ jsx(InputGroup, {
416
314
  className: "border-input/30 bg-input/30 h-8 w-full min-w-0 shadow-none",
417
- children: /* @__PURE__ */ jsx4(ComboboxPrimitive.Input, {
315
+ children: /* @__PURE__ */ jsx(ComboboxPrimitive.Input, {
418
316
  placeholder: labels.search,
419
- render: /* @__PURE__ */ jsx4(InputGroupInput, {})
317
+ render: /* @__PURE__ */ jsx(InputGroupInput, {})
420
318
  })
421
319
  })
422
320
  }),
423
- /* @__PURE__ */ jsx4(VirtualizedComboboxList, {
321
+ /* @__PURE__ */ jsx(VirtualizedComboboxList, {
424
322
  classes,
425
323
  emptyLabel,
426
324
  groupSelections,
@@ -445,20 +343,20 @@ var defaultTrigger = (ariaLabel, ariaInvalid, disabled, label, triggerId) => /*
445
343
  type: "button",
446
344
  variant: "outline",
447
345
  children: [
448
- /* @__PURE__ */ jsx4("span", {
346
+ /* @__PURE__ */ jsx("span", {
449
347
  className: "min-w-0 flex-1 truncate pr-7 text-left",
450
348
  children: label
451
349
  }),
452
- /* @__PURE__ */ jsx4(ChevronsUpDown, {
350
+ /* @__PURE__ */ jsx(ChevronsUpDown, {
453
351
  className: "text-muted-foreground shrink-0 opacity-70"
454
352
  })
455
353
  ]
456
354
  });
457
- var defaultClear = (label) => /* @__PURE__ */ jsx4(ComboboxPrimitive.Clear, {
355
+ var defaultClear = (label) => /* @__PURE__ */ jsx(ComboboxPrimitive.Clear, {
458
356
  "aria-label": label,
459
357
  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",
460
358
  type: "button",
461
- children: /* @__PURE__ */ jsx4(X, {
359
+ children: /* @__PURE__ */ jsx(X, {
462
360
  className: "size-3.5"
463
361
  })
464
362
  });
@@ -491,13 +389,13 @@ var VirtualizedComboboxSingle = (props) => {
491
389
  /* @__PURE__ */ jsxs("div", {
492
390
  className: "relative",
493
391
  children: [
494
- /* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
392
+ /* @__PURE__ */ jsx(ComboboxPrimitive.Trigger, {
495
393
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
496
394
  }),
497
395
  props.trigger ? null : defaultClear(labels.clear)
498
396
  ]
499
397
  }),
500
- /* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
398
+ /* @__PURE__ */ jsx(VirtualizedComboboxContent, {
501
399
  ...props,
502
400
  groupSelections: false,
503
401
  itemIndexRef,
@@ -533,13 +431,13 @@ var VirtualizedComboboxMultiple = (props) => {
533
431
  /* @__PURE__ */ jsxs("div", {
534
432
  className: "relative",
535
433
  children: [
536
- /* @__PURE__ */ jsx4(ComboboxPrimitive.Trigger, {
434
+ /* @__PURE__ */ jsx(ComboboxPrimitive.Trigger, {
537
435
  render: props.trigger ?? defaultTrigger(props.ariaLabel, props.ariaInvalid, props.disabled, selectedLabel(props.value, props.placeholder), props.triggerId)
538
436
  }),
539
437
  props.trigger ? null : defaultClear(labels.clear)
540
438
  ]
541
439
  }),
542
- /* @__PURE__ */ jsx4(VirtualizedComboboxContent, {
440
+ /* @__PURE__ */ jsx(VirtualizedComboboxContent, {
543
441
  ...props,
544
442
  groupSelections: true,
545
443
  itemIndexRef,
@@ -551,10 +449,10 @@ var VirtualizedComboboxMultiple = (props) => {
551
449
  };
552
450
  function VirtualizedCombobox(props) {
553
451
  const locale = useKrakstackLocale(props.locale);
554
- return props.multiple ? /* @__PURE__ */ jsx4(VirtualizedComboboxMultiple, {
452
+ return props.multiple ? /* @__PURE__ */ jsx(VirtualizedComboboxMultiple, {
555
453
  ...props,
556
454
  locale
557
- }) : /* @__PURE__ */ jsx4(VirtualizedComboboxSingle, {
455
+ }) : /* @__PURE__ */ jsx(VirtualizedComboboxSingle, {
558
456
  ...props,
559
457
  locale
560
458
  });
@@ -943,7 +841,7 @@ var timezoneSelectBehaviours = {
943
841
  };
944
842
 
945
843
  // ../../src/components/timezone-input/react.tsx
946
- import { jsx as jsx5, jsxs as jsxs2, Fragment as Fragment2 } from "react/jsx-runtime";
844
+ import { jsx as jsx2, jsxs as jsxs2, Fragment as Fragment2 } from "react/jsx-runtime";
947
845
  var TimezoneSelectModel = Component3.define(timezoneSelectOptions).make({
948
846
  init: timezoneSelectBehaviours.init,
949
847
  update: timezoneSelectBehaviours.update,
@@ -992,18 +890,18 @@ var TimezoneInput = ({
992
890
  const selected = items.find((item) => item.value === value) ?? null;
993
891
  const invalid = value !== null && !isTimeZoneId(value);
994
892
  const difference = (info) => baseline ? timezoneDifference(baseline, info, locale, copy) : null;
995
- return /* @__PURE__ */ jsx5("div", {
893
+ return /* @__PURE__ */ jsx2("div", {
996
894
  "data-slot": "timezone-select",
997
895
  className,
998
896
  children: /* @__PURE__ */ jsxs2("div", {
999
897
  className: "grid min-w-0 grid-cols-1 gap-3",
1000
898
  children: [
1001
- /* @__PURE__ */ jsx5("label", {
899
+ /* @__PURE__ */ jsx2("label", {
1002
900
  htmlFor: id,
1003
901
  className: timezoneInputClasses.label,
1004
902
  children: label ?? copy.label
1005
903
  }),
1006
- /* @__PURE__ */ jsx5(VirtualizedCombobox, {
904
+ /* @__PURE__ */ jsx2(VirtualizedCombobox, {
1007
905
  ariaLabel: label ?? copy.label,
1008
906
  ariaInvalid: invalid,
1009
907
  triggerId: id,
@@ -1021,7 +919,7 @@ var TimezoneInput = ({
1021
919
  renderItem: (item) => /* @__PURE__ */ jsxs2("span", {
1022
920
  className: "grid min-w-0 flex-1 gap-0.5 py-1 text-left",
1023
921
  children: [
1024
- /* @__PURE__ */ jsx5("span", {
922
+ /* @__PURE__ */ jsx2("span", {
1025
923
  className: "font-medium wrap-anywhere",
1026
924
  children: prettyZone(item.value)
1027
925
  }),
@@ -1049,18 +947,18 @@ var TimezoneInput = ({
1049
947
  ]
1050
948
  })
1051
949
  }),
1052
- name && /* @__PURE__ */ jsx5("input", {
950
+ name && /* @__PURE__ */ jsx2("input", {
1053
951
  type: "hidden",
1054
952
  name,
1055
953
  value: value ?? "",
1056
954
  disabled
1057
955
  }),
1058
- invalid && /* @__PURE__ */ jsx5("p", {
956
+ invalid && /* @__PURE__ */ jsx2("p", {
1059
957
  role: "alert",
1060
958
  className: timezoneInputClasses.error,
1061
959
  children: copy.invalid
1062
960
  }),
1063
- !referenceValid && /* @__PURE__ */ jsx5("p", {
961
+ !referenceValid && /* @__PURE__ */ jsx2("p", {
1064
962
  role: "alert",
1065
963
  className: timezoneInputClasses.error,
1066
964
  children: copy.invalidReference
@@ -1069,7 +967,7 @@ var TimezoneInput = ({
1069
967
  "data-slot": "timezone-details",
1070
968
  className: timezoneInputClasses.offset,
1071
969
  children: [
1072
- /* @__PURE__ */ jsx5("dt", {
970
+ /* @__PURE__ */ jsx2("dt", {
1073
971
  className: "text-muted-foreground",
1074
972
  children: copy.selectedTime
1075
973
  }),
@@ -1087,7 +985,7 @@ var TimezoneInput = ({
1087
985
  })
1088
986
  ]
1089
987
  }),
1090
- comparisonTimeZone !== null && /* @__PURE__ */ jsx5("div", {
988
+ comparisonTimeZone !== null && /* @__PURE__ */ jsx2("div", {
1091
989
  "data-slot": "timezone-comparison",
1092
990
  className: "grid gap-2 text-sm",
1093
991
  children: baseline ? /* @__PURE__ */ jsxs2("p", {
@@ -1104,12 +1002,12 @@ var TimezoneInput = ({
1104
1002
  " · ",
1105
1003
  baseline.offset
1106
1004
  ]
1107
- }) : /* @__PURE__ */ jsx5("p", {
1005
+ }) : /* @__PURE__ */ jsx2("p", {
1108
1006
  className: "text-muted-foreground",
1109
1007
  children: copy.unavailable
1110
1008
  })
1111
1009
  }),
1112
- /* @__PURE__ */ jsx5(Button, {
1010
+ /* @__PURE__ */ jsx2(Button2, {
1113
1011
  type: "button",
1114
1012
  variant: "outline",
1115
1013
  className: timezoneInputClasses.actions,
@@ -6,12 +6,6 @@ export { ToastRequests };
6
6
  export { Toaster, ToasterRelay, type ToastData, type ToastRequest, } from "effect/ui/kit";
7
7
  export type { ToastPosition, ToastMessages, ToastClassNames } from "./schema.js";
8
8
  export declare const ToastProviderPropsSchema: Schema.Struct<{
9
- readonly timeout: Schema.optional<Schema.Number>;
10
- readonly limit: Schema.optional<Schema.Number>;
11
- readonly topLayer: Schema.optional<Schema.Boolean>;
12
- readonly swipeDirections: Schema.optional<Schema.$Array<Schema.Literals<readonly ["up", "down", "left", "right"]>>>;
13
- readonly swipeDistance: Schema.optional<Schema.Number>;
14
- readonly swipeVelocity: Schema.optional<Schema.Number>;
15
9
  readonly classes: Schema.optional<Schema.$Record<Schema.Literals<"pendingIcon"[]>, Schema.optionalKey<Schema.String>>>;
16
10
  readonly position: Schema.optional<Schema.Literals<readonly ["top-left", "top-center", "top-right", "bottom-left", "bottom-center", "bottom-right"]>>;
17
11
  readonly locale: Schema.optional<Schema.String>;
@@ -20,6 +14,12 @@ export declare const ToastProviderPropsSchema: Schema.Struct<{
20
14
  readonly dismiss: Schema.optional<Schema.String>;
21
15
  }>>>>;
22
16
  readonly classNames: Schema.optional<Schema.$Record<Schema.Literals<readonly ["viewport", "toast", "content", "icon", "body", "title", "description", "action", "close"]>, Schema.optionalKey<Schema.String>>>;
17
+ readonly timeout: Schema.optional<Schema.Number>;
18
+ readonly limit: Schema.optional<Schema.Number>;
19
+ readonly topLayer: Schema.optional<Schema.Boolean>;
20
+ readonly swipeDirections: Schema.optional<Schema.$Array<Schema.Literals<readonly ["up", "down", "left", "right"]>>>;
21
+ readonly swipeDistance: Schema.optional<Schema.Number>;
22
+ readonly swipeVelocity: Schema.optional<Schema.Number>;
23
23
  }>;
24
24
  export type ToastProviderProps = typeof ToastProviderPropsSchema.Type;
25
25
  /** Descendants post requests to ToastRequests; callers own action messages. */
@@ -4,52 +4,16 @@ import {
4
4
  ToastProvider as ToastRequests,
5
5
  ToastProviderProps as KitToastProps
6
6
  } from "effect/ui/kit";
7
-
8
- // ../../src/lib/utils.ts
9
- import { cn } from "cn";
10
-
11
- // ../../src/components/effectcn/toast.ts
12
- var positions = {
13
- "top-left": "inset-[1rem_auto_auto_1rem] [--toast-direction:1]",
14
- "top-center": "inset-[1rem_0_auto_0] mx-auto [--toast-direction:1]",
15
- "top-right": "inset-[1rem_1rem_auto_auto] [--toast-direction:1]",
16
- "bottom-left": "inset-[auto_auto_1rem_1rem] [--toast-direction:-1]",
17
- "bottom-center": "inset-[auto_0_1rem_0] mx-auto [--toast-direction:-1]",
18
- "bottom-right": "inset-[auto_1rem_1rem_auto] [--toast-direction:-1]"
19
- };
20
- var ToastViewport = (h, provider, options) => provider.viewport(h.div.class(cn("group/toasts text-foreground pointer-events-none fixed z-[100] m-0 h-[var(--toast-frontmost-height,0px)] w-[356px] max-w-[calc(100vw-2rem)] overflow-visible border-0 bg-transparent p-0 outline-none [--toast-gap:10px] [--toast-peek:12px]", positions[options.position], options.class)).attrs({
21
- "data-slot": "toast-viewport",
22
- "data-position": options.position,
23
- "data-side": options.position.startsWith("top") ? "top" : "bottom",
24
- "aria-label": options.label
25
- }));
26
- var Toast = (h, provider, toast, options = {}) => provider.root({
27
- element: h.div.attr("data-slot", "toast").class(cn("bg-popover text-foreground pointer-events-auto absolute inset-x-0 bottom-0 z-[calc(100_-_var(--toast-index,0))] box-border h-[var(--toast-frontmost-height,auto)] origin-bottom rounded-md border text-[13px] leading-snug shadow-lg", "group-data-[side=top]/toasts:top-0 group-data-[side=top]/toasts:bottom-auto group-data-[side=top]/toasts:origin-top", "[--toast-stack-y:calc(var(--toast-index,0)_*_var(--toast-peek)_*_var(--toast-direction))]", "[translate:var(--toast-swipe-movement-x,0px)_calc(var(--toast-stack-y)_+_var(--toast-swipe-movement-y,0px))]", "scale-[calc(1_-_var(--toast-index,0)_*_0.05)] transition-[translate,scale,opacity,height] duration-200 ease-out data-[swiping]:transition-none motion-reduce:transition-none", "after:absolute after:inset-x-0 after:-inset-y-[var(--toast-gap)] after:-z-10 after:content-['']", "data-[expanded]:h-[var(--toast-height,auto)] data-[expanded]:scale-100", "data-[expanded]:[--toast-stack-y:calc((var(--toast-offset-y,0px)_+_var(--toast-index,0)_*_var(--toast-gap))_*_var(--toast-direction))]", "data-[starting-style]:opacity-0 data-[starting-style]:[--toast-stack-y:calc(var(--toast-direction)_*_-24px)]", "data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[limited]:pointer-events-none data-[limited]:opacity-0", options.class)),
28
- toast
29
- });
30
- var ToastContent = (h, provider, toast, options = {}) => provider.content({
31
- element: h.div.attr("data-slot", "toast-content").class(cn("bg-popover flex h-full items-start gap-2.5 overflow-hidden rounded-[inherit] px-3.5 py-3 transition-opacity duration-200 data-[behind]:not-data-[expanded]:opacity-0 motion-reduce:transition-none", options.class)),
32
- toast
33
- });
34
- var ToastText = (h, options = {}) => h.div.attr("data-slot", "toast-body").class(cn("grid min-w-0 flex-1 gap-0.5 [overflow-wrap:anywhere]", options.class));
35
- var ToastTitle = (h, provider, toast, options = {}) => provider.title({
36
- element: h.div.attr("data-slot", "toast-title").class(cn("font-medium", options.class)),
37
- toast
38
- }).children(toast.title);
39
- var ToastDescription = (h, provider, toast, options = {}) => provider.description({
40
- element: h.div.attr("data-slot", "toast-description").class(cn("text-muted-foreground", options.class)),
41
- toast
42
- }).children(toast.description);
43
- var ToastAction = (h, provider, toast, options = {}) => provider.action({
44
- element: h.button.attr("data-slot", "toast-action").class(cn("bg-primary text-primary-foreground inline-flex h-6.5 w-fit shrink-0 items-center rounded-sm px-2.5 text-xs font-medium transition-opacity duration-150 hover:opacity-85", options.class)),
45
- toast
46
- });
47
- var ToastClose = (h, provider, toast, options) => provider.close({
48
- element: h.button.attrs({ "data-slot": "toast-close", "aria-label": options.label }).class(cn("text-muted-foreground hover:bg-accent hover:text-foreground -mt-0.5 -mr-1 inline-flex size-5.5 shrink-0 items-center justify-center rounded-sm transition-colors duration-150", options.class)),
49
- toast
50
- });
51
-
52
- // ../../src/components/toast/html.ts
7
+ import {
8
+ Toast,
9
+ ToastAction,
10
+ ToastClose,
11
+ ToastContent,
12
+ ToastDescription,
13
+ ToastText,
14
+ ToastTitle,
15
+ ToastViewport
16
+ } from "@/components/effectcn/toast";
53
17
  import {
54
18
  CircleAlert,
55
19
  CircleCheck,
@@ -59,6 +23,9 @@ import {
59
23
  X
60
24
  } from "@krak-stack/registry/lucide-effect";
61
25
 
26
+ // ../../src/lib/utils.ts
27
+ import { cn } from "cn";
28
+
62
29
  // ../../src/components/toast/classes.ts
63
30
  var toastClasses = {
64
31
  pendingIcon: "motion-safe:animate-spin"