@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
@@ -102,299 +102,29 @@ import {
102
102
  } from "lucide-react";
103
103
  import { useState } from "react";
104
104
  import { Schema as Schema4 } from "effect";
105
-
106
- // ../../src/components/ui/badge.tsx
107
- import { mergeProps } from "@base-ui/react/merge-props";
108
- import { useRender } from "@base-ui/react/use-render";
109
- import { cva } from "class-variance-authority";
105
+ import { Badge } from "@/components/ui/badge";
106
+ import { Button, buttonVariants } from "@/components/ui/button";
107
+ import {
108
+ Empty,
109
+ EmptyDescription,
110
+ EmptyHeader,
111
+ EmptyMedia,
112
+ EmptyTitle
113
+ } from "@/components/ui/empty";
114
+ import {
115
+ Popover,
116
+ PopoverContent,
117
+ PopoverHeader,
118
+ PopoverTitle,
119
+ PopoverTrigger
120
+ } from "@/components/ui/popover";
121
+ import { ScrollArea } from "@/components/ui/scroll-area";
122
+ import { Skeleton } from "@/components/ui/skeleton";
123
+ import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
110
124
 
111
125
  // ../../src/lib/utils.ts
112
126
  import { cn } from "cn";
113
127
 
114
- // ../../src/components/ui/badge.tsx
115
- var badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!", {
116
- variants: {
117
- variant: {
118
- default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
119
- secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
120
- destructive: "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
121
- outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
122
- ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
123
- link: "text-primary underline-offset-4 hover:underline"
124
- }
125
- },
126
- defaultVariants: {
127
- variant: "default"
128
- }
129
- });
130
- function Badge({
131
- className,
132
- variant = "default",
133
- render,
134
- ...props
135
- }) {
136
- return useRender({
137
- defaultTagName: "span",
138
- props: mergeProps({
139
- className: cn(badgeVariants({ variant }), className)
140
- }, props),
141
- render,
142
- state: {
143
- slot: "badge",
144
- variant
145
- }
146
- });
147
- }
148
-
149
- // ../../src/components/ui/button.tsx
150
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
151
- import { cva as cva2 } from "class-variance-authority";
152
- import { jsx } from "react/jsx-runtime";
153
- var buttonVariants = cva2("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", {
154
- variants: {
155
- variant: {
156
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
157
- 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",
158
- 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",
159
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
160
- 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",
161
- link: "text-primary underline-offset-4 hover:underline"
162
- },
163
- size: {
164
- 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",
165
- 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",
166
- 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",
167
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
168
- icon: "size-9",
169
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
170
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
171
- "icon-lg": "size-10"
172
- }
173
- },
174
- defaultVariants: {
175
- variant: "default",
176
- size: "default"
177
- }
178
- });
179
- function Button({
180
- className,
181
- variant = "default",
182
- size = "default",
183
- ...props
184
- }) {
185
- return /* @__PURE__ */ jsx(ButtonPrimitive, {
186
- "data-slot": "button",
187
- className: cn(buttonVariants({ variant, size, className })),
188
- ...props
189
- });
190
- }
191
-
192
- // ../../src/components/ui/empty.tsx
193
- import { cva as cva3 } from "class-variance-authority";
194
- import { jsx as jsx2 } from "react/jsx-runtime";
195
- function Empty({ className, ...props }) {
196
- return /* @__PURE__ */ jsx2("div", {
197
- "data-slot": "empty",
198
- className: cn("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-lg border-dashed p-12 text-center text-balance", className),
199
- ...props
200
- });
201
- }
202
- function EmptyHeader({ className, ...props }) {
203
- return /* @__PURE__ */ jsx2("div", {
204
- "data-slot": "empty-header",
205
- className: cn("flex max-w-sm flex-col items-center gap-2", className),
206
- ...props
207
- });
208
- }
209
- var emptyMediaVariants = cva3("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
210
- variants: {
211
- variant: {
212
- default: "bg-transparent",
213
- icon: "flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-6"
214
- }
215
- },
216
- defaultVariants: {
217
- variant: "default"
218
- }
219
- });
220
- function EmptyMedia({
221
- className,
222
- variant = "default",
223
- ...props
224
- }) {
225
- return /* @__PURE__ */ jsx2("div", {
226
- "data-slot": "empty-icon",
227
- "data-variant": variant,
228
- className: cn(emptyMediaVariants({ variant, className })),
229
- ...props
230
- });
231
- }
232
- function EmptyTitle({ className, ...props }) {
233
- return /* @__PURE__ */ jsx2("div", {
234
- "data-slot": "empty-title",
235
- className: cn("text-lg font-medium tracking-tight", className),
236
- ...props
237
- });
238
- }
239
- function EmptyDescription({ className, ...props }) {
240
- return /* @__PURE__ */ jsx2("div", {
241
- "data-slot": "empty-description",
242
- className: cn("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
243
- ...props
244
- });
245
- }
246
-
247
- // ../../src/components/ui/popover.tsx
248
- import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
249
- import { jsx as jsx3 } from "react/jsx-runtime";
250
- function Popover({ ...props }) {
251
- return /* @__PURE__ */ jsx3(PopoverPrimitive.Root, {
252
- "data-slot": "popover",
253
- ...props
254
- });
255
- }
256
- function PopoverTrigger({ ...props }) {
257
- return /* @__PURE__ */ jsx3(PopoverPrimitive.Trigger, {
258
- "data-slot": "popover-trigger",
259
- ...props
260
- });
261
- }
262
- function PopoverContent({
263
- className,
264
- align = "center",
265
- alignOffset = 0,
266
- side = "bottom",
267
- sideOffset = 4,
268
- ...props
269
- }) {
270
- return /* @__PURE__ */ jsx3(PopoverPrimitive.Portal, {
271
- children: /* @__PURE__ */ jsx3(PopoverPrimitive.Positioner, {
272
- align,
273
- alignOffset,
274
- side,
275
- sideOffset,
276
- className: "isolate z-50",
277
- children: /* @__PURE__ */ jsx3(PopoverPrimitive.Popup, {
278
- "data-slot": "popover-content",
279
- className: cn("z-50 flex w-72 origin-(--transform-origin) flex-col gap-4 rounded-md bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
280
- ...props
281
- })
282
- })
283
- });
284
- }
285
- function PopoverHeader({ className, ...props }) {
286
- return /* @__PURE__ */ jsx3("div", {
287
- "data-slot": "popover-header",
288
- className: cn("flex flex-col gap-1 text-sm", className),
289
- ...props
290
- });
291
- }
292
- function PopoverTitle({ className, ...props }) {
293
- return /* @__PURE__ */ jsx3(PopoverPrimitive.Title, {
294
- "data-slot": "popover-title",
295
- className: cn("font-medium", className),
296
- ...props
297
- });
298
- }
299
-
300
- // ../../src/components/ui/scroll-area.tsx
301
- import { ScrollArea as ScrollAreaPrimitive } from "@base-ui/react/scroll-area";
302
- import { jsx as jsx4, jsxs } from "react/jsx-runtime";
303
- function ScrollArea({
304
- className,
305
- children,
306
- ...props
307
- }) {
308
- return /* @__PURE__ */ jsxs(ScrollAreaPrimitive.Root, {
309
- "data-slot": "scroll-area",
310
- className: cn("relative", className),
311
- ...props,
312
- children: [
313
- /* @__PURE__ */ jsx4(ScrollAreaPrimitive.Viewport, {
314
- "data-slot": "scroll-area-viewport",
315
- className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
316
- children
317
- }),
318
- /* @__PURE__ */ jsx4(ScrollBar, {}),
319
- /* @__PURE__ */ jsx4(ScrollAreaPrimitive.Corner, {})
320
- ]
321
- });
322
- }
323
- function ScrollBar({
324
- className,
325
- orientation = "vertical",
326
- ...props
327
- }) {
328
- return /* @__PURE__ */ jsx4(ScrollAreaPrimitive.Scrollbar, {
329
- "data-slot": "scroll-area-scrollbar",
330
- "data-orientation": orientation,
331
- orientation,
332
- className: cn("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent", className),
333
- ...props,
334
- children: /* @__PURE__ */ jsx4(ScrollAreaPrimitive.Thumb, {
335
- "data-slot": "scroll-area-thumb",
336
- className: "bg-border relative flex-1 rounded-full"
337
- })
338
- });
339
- }
340
-
341
- // ../../src/components/ui/skeleton.tsx
342
- import { jsx as jsx5 } from "react/jsx-runtime";
343
- function Skeleton({ className, ...props }) {
344
- return /* @__PURE__ */ jsx5("div", {
345
- "data-slot": "skeleton",
346
- className: cn("animate-pulse rounded-md bg-muted", className),
347
- ...props
348
- });
349
- }
350
-
351
- // ../../src/components/ui/tabs.tsx
352
- import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
353
- import { cva as cva4 } from "class-variance-authority";
354
- import { jsx as jsx6 } from "react/jsx-runtime";
355
- function Tabs({
356
- className,
357
- orientation = "horizontal",
358
- ...props
359
- }) {
360
- return /* @__PURE__ */ jsx6(TabsPrimitive.Root, {
361
- "data-slot": "tabs",
362
- "data-orientation": orientation,
363
- className: cn("group/tabs flex gap-2 data-horizontal:flex-col", className),
364
- ...props
365
- });
366
- }
367
- var tabsListVariants = cva4("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-9 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none", {
368
- variants: {
369
- variant: {
370
- default: "bg-muted",
371
- line: "gap-1 bg-transparent"
372
- }
373
- },
374
- defaultVariants: {
375
- variant: "default"
376
- }
377
- });
378
- function TabsList({
379
- className,
380
- variant = "default",
381
- ...props
382
- }) {
383
- return /* @__PURE__ */ jsx6(TabsPrimitive.List, {
384
- "data-slot": "tabs-list",
385
- "data-variant": variant,
386
- className: cn(tabsListVariants({ variant }), className),
387
- ...props
388
- });
389
- }
390
- function TabsTrigger({ className, ...props }) {
391
- return /* @__PURE__ */ jsx6(TabsPrimitive.Tab, {
392
- "data-slot": "tabs-trigger",
393
- className: cn("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", "group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent", "data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground", "after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100", className),
394
- ...props
395
- });
396
- }
397
-
398
128
  // ../../src/components/notification-menu/react.tsx
399
129
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
400
130
 
@@ -558,7 +288,7 @@ var update = Component.define(notificationMenuOptions).update({
558
288
  });
559
289
 
560
290
  // ../../src/components/notification-menu/react.tsx
561
- import { jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
291
+ import { jsx, jsxs } from "react/jsx-runtime";
562
292
  function NotificationMenu({
563
293
  classes: classOverrides,
564
294
  className,
@@ -597,63 +327,63 @@ function NotificationMenu({
597
327
  onMarkRead?.(unreadIds);
598
328
  }
599
329
  };
600
- return /* @__PURE__ */ jsxs2(Popover, {
330
+ return /* @__PURE__ */ jsxs(Popover, {
601
331
  open,
602
332
  onOpenChange: handleOpenChange,
603
333
  children: [
604
- renderTrigger ? /* @__PURE__ */ jsx7(PopoverTrigger, {
334
+ renderTrigger ? /* @__PURE__ */ jsx(PopoverTrigger, {
605
335
  render: renderTrigger(triggerState)
606
- }) : /* @__PURE__ */ jsx7(NotificationMenuTrigger, {
336
+ }) : /* @__PURE__ */ jsx(NotificationMenuTrigger, {
607
337
  labels,
608
338
  unreadCount: unreadIds.length
609
339
  }),
610
- /* @__PURE__ */ jsxs2(PopoverContent, {
340
+ /* @__PURE__ */ jsxs(PopoverContent, {
611
341
  align: "end",
612
342
  className: cn(notificationMenuClasses.popup, className),
613
343
  children: [
614
- /* @__PURE__ */ jsx7(PopoverHeader, {
344
+ /* @__PURE__ */ jsx(PopoverHeader, {
615
345
  className: notificationMenuClasses.header,
616
- children: /* @__PURE__ */ jsx7(PopoverTitle, {
346
+ children: /* @__PURE__ */ jsx(PopoverTitle, {
617
347
  children: labels.notifications
618
348
  })
619
349
  }),
620
- /* @__PURE__ */ jsxs2(Tabs, {
350
+ /* @__PURE__ */ jsxs(Tabs, {
621
351
  value: tab,
622
352
  onValueChange: (value) => setTab(value === "archive" ? "archive" : "inbox"),
623
353
  className: "min-h-0 min-w-0 flex-1 gap-0",
624
354
  children: [
625
- /* @__PURE__ */ jsxs2("div", {
355
+ /* @__PURE__ */ jsxs("div", {
626
356
  className: "flex shrink-0 flex-col gap-2 border-b p-2",
627
357
  children: [
628
- /* @__PURE__ */ jsxs2(TabsList, {
358
+ /* @__PURE__ */ jsxs(TabsList, {
629
359
  className: "w-full min-w-0 gap-2",
630
360
  children: [
631
- /* @__PURE__ */ jsxs2(TabsTrigger, {
361
+ /* @__PURE__ */ jsxs(TabsTrigger, {
632
362
  className: "min-w-0",
633
363
  value: "inbox",
634
364
  children: [
635
- /* @__PURE__ */ jsx7(Inbox, {
365
+ /* @__PURE__ */ jsx(Inbox, {
636
366
  "data-icon": "inline-start"
637
367
  }),
638
- /* @__PURE__ */ jsx7("span", {
368
+ /* @__PURE__ */ jsx("span", {
639
369
  className: "truncate",
640
370
  children: labels.inbox
641
371
  }),
642
- inbox.length > 0 ? /* @__PURE__ */ jsx7(Badge, {
372
+ inbox.length > 0 ? /* @__PURE__ */ jsx(Badge, {
643
373
  className: "shrink-0 tabular-nums",
644
374
  variant: "secondary",
645
375
  children: inbox.length
646
376
  }) : null
647
377
  ]
648
378
  }),
649
- /* @__PURE__ */ jsxs2(TabsTrigger, {
379
+ /* @__PURE__ */ jsxs(TabsTrigger, {
650
380
  className: "min-w-0",
651
381
  value: "archive",
652
382
  children: [
653
- /* @__PURE__ */ jsx7(ArchiveRestore, {
383
+ /* @__PURE__ */ jsx(ArchiveRestore, {
654
384
  "data-icon": "inline-start"
655
385
  }),
656
- /* @__PURE__ */ jsx7("span", {
386
+ /* @__PURE__ */ jsx("span", {
657
387
  className: "truncate",
658
388
  children: labels.archived
659
389
  })
@@ -661,7 +391,7 @@ function NotificationMenu({
661
391
  })
662
392
  ]
663
393
  }),
664
- tab === "inbox" && inbox.length > 0 && onArchive ? /* @__PURE__ */ jsx7(ArchiveButton, {
394
+ tab === "inbox" && inbox.length > 0 && onArchive ? /* @__PURE__ */ jsx(ArchiveButton, {
665
395
  showLabel: true,
666
396
  className: "w-full",
667
397
  label: labels.archiveAll,
@@ -670,7 +400,7 @@ function NotificationMenu({
670
400
  }) : null
671
401
  ]
672
402
  }),
673
- /* @__PURE__ */ jsx7(NotificationList, {
403
+ /* @__PURE__ */ jsx(NotificationList, {
674
404
  error,
675
405
  isLoading,
676
406
  labels,
@@ -696,13 +426,13 @@ function NotificationMenuTrigger({
696
426
  }) {
697
427
  const locale = useKrakstackLocale(localeOverride);
698
428
  const labels = providedLabels ?? notificationMenuMessages(locale, messages);
699
- return /* @__PURE__ */ jsxs2(PopoverTrigger, {
429
+ return /* @__PURE__ */ jsxs(PopoverTrigger, {
700
430
  "aria-label": unreadCount > 0 ? `${labels.notifications}, ${labels.unread(unreadCount)}` : labels.notifications,
701
431
  className: cn(buttonVariants({ variant: "outline", size: "icon" }), "relative"),
702
432
  type: "button",
703
433
  children: [
704
- /* @__PURE__ */ jsx7(Bell, {}),
705
- unreadCount > 0 ? /* @__PURE__ */ jsx7(Badge, {
434
+ /* @__PURE__ */ jsx(Bell, {}),
435
+ unreadCount > 0 ? /* @__PURE__ */ jsx(Badge, {
706
436
  "aria-hidden": "true",
707
437
  className: "absolute -top-1 -right-1 min-w-5 px-1 tabular-nums",
708
438
  children: unreadCount > 99 ? "99+" : unreadCount
@@ -722,28 +452,28 @@ function NotificationList({
722
452
  tab
723
453
  }) {
724
454
  if (isLoading)
725
- return /* @__PURE__ */ jsx7(NotificationListLoading, {
455
+ return /* @__PURE__ */ jsx(NotificationListLoading, {
726
456
  label: labels.loading
727
457
  });
728
458
  if (error) {
729
- return /* @__PURE__ */ jsx7(NotificationEmpty, {
459
+ return /* @__PURE__ */ jsx(NotificationEmpty, {
730
460
  description: labels.errorDescription,
731
- icon: /* @__PURE__ */ jsx7(TriangleAlert, {}),
461
+ icon: /* @__PURE__ */ jsx(TriangleAlert, {}),
732
462
  title: labels.errorTitle
733
463
  });
734
464
  }
735
465
  if (notifications.length === 0) {
736
- return /* @__PURE__ */ jsx7(NotificationEmpty, {
466
+ return /* @__PURE__ */ jsx(NotificationEmpty, {
737
467
  description: tab === "inbox" ? labels.emptyInboxDescription : labels.emptyArchiveDescription,
738
- icon: tab === "inbox" ? /* @__PURE__ */ jsx7(BellDot, {}) : /* @__PURE__ */ jsx7(Archive, {}),
468
+ icon: tab === "inbox" ? /* @__PURE__ */ jsx(BellDot, {}) : /* @__PURE__ */ jsx(Archive, {}),
739
469
  title: tab === "inbox" ? labels.emptyInboxTitle : labels.emptyArchiveTitle
740
470
  });
741
471
  }
742
- return /* @__PURE__ */ jsx7(ScrollArea, {
472
+ return /* @__PURE__ */ jsx(ScrollArea, {
743
473
  className: "flex max-h-[min(24rem,60svh)] min-h-0 min-w-0 flex-auto flex-col overflow-hidden [&>[data-slot=scroll-area-viewport]]:h-auto [&>[data-slot=scroll-area-viewport]]:min-h-0 [&>[data-slot=scroll-area-viewport][data-has-overflow-y]]:[--notification-scrollbar-gutter:--spacing(2.5)]",
744
- children: /* @__PURE__ */ jsx7("div", {
474
+ children: /* @__PURE__ */ jsx("div", {
745
475
  className: "divide-border flex min-w-0 flex-col divide-y pe-[var(--notification-scrollbar-gutter,0px)]",
746
- children: notifications.map((notification) => /* @__PURE__ */ jsx7(NotificationListItem, {
476
+ children: notifications.map((notification) => /* @__PURE__ */ jsx(NotificationListItem, {
747
477
  labels,
748
478
  locale,
749
479
  notification,
@@ -767,37 +497,37 @@ function NotificationListItem({
767
497
  const canArchive = !notification.archivedAt && onArchive;
768
498
  const rowClassName = cn("h-auto justify-start rounded-none", notificationRowLayout, canArchive && notificationArchiveInset);
769
499
  const actionClassName = cn(rowClassName, "focus-visible:inset-ring-ring/50 focus-visible:ring-0 focus-visible:inset-ring-3 forced-colors:focus-visible:outline-2 forced-colors:focus-visible:-outline-offset-2 forced-colors:focus-visible:outline-solid");
770
- const content = renderItem?.(notification) ?? /* @__PURE__ */ jsxs2("span", {
500
+ const content = renderItem?.(notification) ?? /* @__PURE__ */ jsxs("span", {
771
501
  className: "flex min-w-0 flex-1 flex-col gap-1",
772
502
  children: [
773
- /* @__PURE__ */ jsxs2("span", {
503
+ /* @__PURE__ */ jsxs("span", {
774
504
  className: "flex min-w-0 items-start gap-2",
775
505
  children: [
776
- unread ? /* @__PURE__ */ jsx7("span", {
506
+ unread ? /* @__PURE__ */ jsx("span", {
777
507
  "aria-hidden": "true",
778
508
  className: "bg-primary mt-1.5 size-2 shrink-0 rounded-full"
779
509
  }) : null,
780
- /* @__PURE__ */ jsx7("span", {
510
+ /* @__PURE__ */ jsx("span", {
781
511
  className: "min-w-0 flex-1 font-medium",
782
512
  children: notification.title
783
513
  })
784
514
  ]
785
515
  }),
786
- notification.description ? /* @__PURE__ */ jsx7("span", {
516
+ notification.description ? /* @__PURE__ */ jsx("span", {
787
517
  className: "text-muted-foreground line-clamp-2 text-xs font-normal",
788
518
  children: notification.description
789
519
  }) : null,
790
- notification.timestampLabel || notification.createdAt ? /* @__PURE__ */ jsx7("span", {
520
+ notification.timestampLabel || notification.createdAt ? /* @__PURE__ */ jsx("span", {
791
521
  className: "text-muted-foreground text-xs font-normal",
792
522
  children: notification.timestampLabel ?? formatNotificationDate(notification.createdAt, locale)
793
523
  }) : null
794
524
  ]
795
525
  });
796
- return /* @__PURE__ */ jsxs2("div", {
526
+ return /* @__PURE__ */ jsxs("div", {
797
527
  className: cn("relative flex min-w-0", unread && "bg-muted/70"),
798
528
  "data-unread": unread || undefined,
799
529
  children: [
800
- href ? /* @__PURE__ */ jsx7("a", {
530
+ href ? /* @__PURE__ */ jsx("a", {
801
531
  className: cn(buttonVariants({ variant: "ghost" }), actionClassName),
802
532
  href,
803
533
  onClick: (event) => {
@@ -808,17 +538,17 @@ function NotificationListItem({
808
538
  onNavigate(notification);
809
539
  },
810
540
  children: content
811
- }) : onNavigate ? /* @__PURE__ */ jsx7(Button, {
541
+ }) : onNavigate ? /* @__PURE__ */ jsx(Button, {
812
542
  className: actionClassName,
813
543
  onClick: () => onNavigate(notification),
814
544
  type: "button",
815
545
  variant: "ghost",
816
546
  children: content
817
- }) : /* @__PURE__ */ jsx7("div", {
547
+ }) : /* @__PURE__ */ jsx("div", {
818
548
  className: cn(rowClassName, "flex items-center text-sm font-medium"),
819
549
  children: content
820
550
  }),
821
- canArchive ? /* @__PURE__ */ jsx7(ArchiveButton, {
551
+ canArchive ? /* @__PURE__ */ jsx(ArchiveButton, {
822
552
  className: "absolute end-2 top-2",
823
553
  label: labels.archiveItem(notificationTitle(notification)),
824
554
  notificationIds: [notification.id],
@@ -832,19 +562,19 @@ function NotificationEmpty({
832
562
  icon,
833
563
  title
834
564
  }) {
835
- return /* @__PURE__ */ jsx7(Empty, {
565
+ return /* @__PURE__ */ jsx(Empty, {
836
566
  className: "min-h-48 p-6",
837
- children: /* @__PURE__ */ jsxs2(EmptyHeader, {
567
+ children: /* @__PURE__ */ jsxs(EmptyHeader, {
838
568
  children: [
839
- /* @__PURE__ */ jsx7(EmptyMedia, {
569
+ /* @__PURE__ */ jsx(EmptyMedia, {
840
570
  variant: "icon",
841
571
  children: icon
842
572
  }),
843
- /* @__PURE__ */ jsx7(EmptyTitle, {
573
+ /* @__PURE__ */ jsx(EmptyTitle, {
844
574
  className: "text-sm",
845
575
  children: title
846
576
  }),
847
- /* @__PURE__ */ jsx7(EmptyDescription, {
577
+ /* @__PURE__ */ jsx(EmptyDescription, {
848
578
  className: "text-xs",
849
579
  children: description
850
580
  })
@@ -868,7 +598,7 @@ function ArchiveButton({
868
598
  setPending(false);
869
599
  }
870
600
  };
871
- return /* @__PURE__ */ jsxs2(Button, {
601
+ return /* @__PURE__ */ jsxs(Button, {
872
602
  "aria-label": label,
873
603
  className,
874
604
  disabled: pending,
@@ -878,7 +608,7 @@ function ArchiveButton({
878
608
  type: "button",
879
609
  variant: showLabel ? "outline" : "ghost",
880
610
  children: [
881
- /* @__PURE__ */ jsx7(Archive, {
611
+ /* @__PURE__ */ jsx(Archive, {
882
612
  "data-icon": showLabel ? "inline-start" : undefined
883
613
  }),
884
614
  showLabel ? label : null
@@ -886,23 +616,23 @@ function ArchiveButton({
886
616
  });
887
617
  }
888
618
  function NotificationListLoading({ label }) {
889
- return /* @__PURE__ */ jsx7("div", {
619
+ return /* @__PURE__ */ jsx("div", {
890
620
  "aria-label": label,
891
621
  className: "flex flex-col gap-2 p-3",
892
622
  role: "status",
893
- children: [0, 1, 2].map((item) => /* @__PURE__ */ jsxs2("div", {
623
+ children: [0, 1, 2].map((item) => /* @__PURE__ */ jsxs("div", {
894
624
  className: "flex items-center gap-3 p-2",
895
625
  children: [
896
- /* @__PURE__ */ jsx7(Skeleton, {
626
+ /* @__PURE__ */ jsx(Skeleton, {
897
627
  className: "size-2 shrink-0 rounded-full"
898
628
  }),
899
- /* @__PURE__ */ jsxs2("div", {
629
+ /* @__PURE__ */ jsxs("div", {
900
630
  className: "flex flex-1 flex-col gap-2",
901
631
  children: [
902
- /* @__PURE__ */ jsx7(Skeleton, {
632
+ /* @__PURE__ */ jsx(Skeleton, {
903
633
  className: "h-4 w-4/5"
904
634
  }),
905
- /* @__PURE__ */ jsx7(Skeleton, {
635
+ /* @__PURE__ */ jsx(Skeleton, {
906
636
  className: "h-3 w-2/5"
907
637
  })
908
638
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krak-stack/registry",
3
- "version": "0.11.3",
3
+ "version": "0.11.5",
4
4
  "description": "Tree-shakable KrakStack components and Effect services.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -17,9 +17,9 @@
17
17
  "type": "module",
18
18
  "sideEffects": false,
19
19
  "exports": {
20
- "./select": {
21
- "types": "./dist/components/ui/select.d.ts",
22
- "import": "./dist/components/ui/select.js"
20
+ "./hint": {
21
+ "types": "./dist/components/hint/react.d.ts",
22
+ "import": "./dist/components/hint/react.js"
23
23
  },
24
24
  "./effect-ui-adapter/react": {
25
25
  "types": "./dist/lib/effect-ui-adapter/use-model.d.ts",
@@ -297,10 +297,6 @@
297
297
  "types": "./dist/components/registry-previews/html-preview.d.ts",
298
298
  "import": "./dist/components/registry-previews/html-preview.js"
299
299
  },
300
- "./effectcn/form": {
301
- "types": "./dist/lib/effectcn-form.d.ts",
302
- "import": "./dist/lib/effectcn-form.js"
303
- },
304
300
  "./docs/integrations": {
305
301
  "types": "./dist/lib/docs.integrations.server.d.ts",
306
302
  "import": "./dist/lib/docs.integrations.server.js"
@@ -1,13 +0,0 @@
1
- import type { Html } from "effect/ui/html";
2
- import type { AlertDialogParts } from "effect/ui/kit";
3
- type ClassOption = {
4
- readonly class?: string | undefined;
5
- };
6
- export declare const AlertDialogBackdrop: <Msg>(h: Html.H<Msg>, dialog: AlertDialogParts) => Html.Element<Msg, never, Html.Events, HTMLDivElement, "div"> | undefined;
7
- export declare const AlertDialogViewport: <Msg>(h: Html.H<Msg>, dialog: AlertDialogParts) => Html.Element<Msg, never, Html.Events, HTMLDivElement, "div">;
8
- export declare const AlertDialogPopup: <Msg>(h: Html.H<Msg>, dialog: AlertDialogParts, options?: ClassOption) => Html.Element<Msg, never, Html.Events, HTMLDivElement, "div">;
9
- export declare const AlertDialogHeader: <Msg>(h: Html.H<Msg>) => Html.Element<Msg, never, Html.Events, HTMLDivElement, "div">;
10
- export declare const AlertDialogTitle: <Msg>(h: Html.H<Msg>, dialog: AlertDialogParts) => Html.Element<Msg, never, Html.Events, HTMLHeadingElement, "h2">;
11
- export declare const AlertDialogDescription: <Msg>(h: Html.H<Msg>, dialog: AlertDialogParts) => Html.Element<Msg, never, Html.Events, HTMLParagraphElement, "p">;
12
- export declare const AlertDialogFooter: <Msg>(h: Html.H<Msg>) => Html.Element<Msg, never, Html.Events, HTMLDivElement, "div">;
13
- export {};