@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
@@ -1,55 +1,8 @@
1
1
  // ../../src/components/registry-previews/component-example.tsx
2
2
  import { Atom, CodeXml } from "lucide-react";
3
3
 
4
- // ../../src/components/ui/button.tsx
5
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
6
- import { cva } from "class-variance-authority";
7
-
8
- // ../../src/lib/utils.ts
9
- import { cn } from "cn";
10
-
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
4
  // ../../src/components/copy-button/react.tsx
5
+ import { Button } from "@/components/ui/button";
53
6
  import { Check, Copy, TriangleAlert } from "lucide-react";
54
7
  import { Redacted as Redacted2 } from "effect";
55
8
  import { Component as Component2 } from "effect/ui";
@@ -152,7 +105,7 @@ var copyButtonStatus = (status, copy, description) => {
152
105
  };
153
106
 
154
107
  // ../../src/components/copy-button/react.tsx
155
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
108
+ import { jsx, jsxs } from "react/jsx-runtime";
156
109
  "use client";
157
110
  function CopyButton({
158
111
  value,
@@ -210,22 +163,22 @@ function CopyButton({
210
163
  size: size ?? defaultSize,
211
164
  ...props,
212
165
  children: [
213
- /* @__PURE__ */ jsx2("span", {
166
+ /* @__PURE__ */ jsx("span", {
214
167
  "aria-live": "polite",
215
168
  className: "sr-only",
216
169
  role: "status",
217
170
  children: copyButtonStatus(status, labels, valueDescription)
218
171
  }),
219
- status === "copied" ? /* @__PURE__ */ jsx2(Check, {
172
+ status === "copied" ? /* @__PURE__ */ jsx(Check, {
220
173
  "aria-hidden": "true"
221
174
  }) : null,
222
- status === "failed" ? /* @__PURE__ */ jsx2(TriangleAlert, {
175
+ status === "failed" ? /* @__PURE__ */ jsx(TriangleAlert, {
223
176
  "aria-hidden": "true"
224
177
  }) : null,
225
- status === "idle" ? /* @__PURE__ */ jsx2(Copy, {
178
+ status === "idle" ? /* @__PURE__ */ jsx(Copy, {
226
179
  "aria-hidden": "true"
227
180
  }) : null,
228
- isLarge ? /* @__PURE__ */ jsx2("span", {
181
+ isLarge ? /* @__PURE__ */ jsx("span", {
229
182
  children: labels.copy
230
183
  }) : null
231
184
  ]
@@ -293,7 +246,7 @@ var codeBlockMessages = (locale = "en", translations) => ({
293
246
  var codeLanguage = (language = "text") => language.toLowerCase() || "text";
294
247
 
295
248
  // ../../src/components/code-block/react.tsx
296
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
249
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
297
250
  function CodeBlock({
298
251
  classes: classOverrides,
299
252
  code,
@@ -310,17 +263,17 @@ function CodeBlock({
310
263
  className: codeBlockClasses.root,
311
264
  "data-code-theme": true,
312
265
  children: [
313
- /* @__PURE__ */ jsx3("style", {
266
+ /* @__PURE__ */ jsx2("style", {
314
267
  children: codeThemeCss
315
268
  }),
316
269
  /* @__PURE__ */ jsxs2("div", {
317
270
  className: codeBlockClasses.header,
318
271
  children: [
319
- /* @__PURE__ */ jsx3("span", {
272
+ /* @__PURE__ */ jsx2("span", {
320
273
  className: codeBlockClasses.language,
321
274
  children: highlighted.lang
322
275
  }),
323
- /* @__PURE__ */ jsx3(CopyButton, {
276
+ /* @__PURE__ */ jsx2(CopyButton, {
324
277
  value: code,
325
278
  valueDescription: labels.codeDescription(highlighted.lang),
326
279
  variant: "ghost",
@@ -329,69 +282,16 @@ function CodeBlock({
329
282
  })
330
283
  ]
331
284
  }),
332
- /* @__PURE__ */ jsx3("div", {
285
+ /* @__PURE__ */ jsx2("div", {
333
286
  className: codeBlockClasses.viewport,
334
287
  dangerouslySetInnerHTML: { __html: highlighted.html }
335
288
  })
336
289
  ]
337
290
  });
338
291
  }
339
- // ../../src/components/ui/tabs.tsx
340
- import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
341
- import { cva as cva2 } from "class-variance-authority";
342
- import { jsx as jsx4 } from "react/jsx-runtime";
343
- function Tabs({
344
- className,
345
- orientation = "horizontal",
346
- ...props
347
- }) {
348
- return /* @__PURE__ */ jsx4(TabsPrimitive.Root, {
349
- "data-slot": "tabs",
350
- "data-orientation": orientation,
351
- className: cn("group/tabs flex gap-2 data-horizontal:flex-col", className),
352
- ...props
353
- });
354
- }
355
- var tabsListVariants = cva2("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", {
356
- variants: {
357
- variant: {
358
- default: "bg-muted",
359
- line: "gap-1 bg-transparent"
360
- }
361
- },
362
- defaultVariants: {
363
- variant: "default"
364
- }
365
- });
366
- function TabsList({
367
- className,
368
- variant = "default",
369
- ...props
370
- }) {
371
- return /* @__PURE__ */ jsx4(TabsPrimitive.List, {
372
- "data-slot": "tabs-list",
373
- "data-variant": variant,
374
- className: cn(tabsListVariants({ variant }), className),
375
- ...props
376
- });
377
- }
378
- function TabsTrigger({ className, ...props }) {
379
- return /* @__PURE__ */ jsx4(TabsPrimitive.Tab, {
380
- "data-slot": "tabs-trigger",
381
- 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),
382
- ...props
383
- });
384
- }
385
- function TabsContent({ className, ...props }) {
386
- return /* @__PURE__ */ jsx4(TabsPrimitive.Panel, {
387
- "data-slot": "tabs-content",
388
- className: cn("flex-1 text-sm outline-none", className),
389
- ...props
390
- });
391
- }
392
-
393
292
  // ../../src/components/registry-previews/component-example.tsx
394
- import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
293
+ import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
294
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
395
295
  var ComponentInstallation = ({
396
296
  labels,
397
297
  packageContent,
@@ -403,7 +303,7 @@ var ComponentInstallation = ({
403
303
  className: "mb-12 grid min-w-0 scroll-mt-24 gap-4",
404
304
  "aria-labelledby": "installation",
405
305
  children: [
406
- /* @__PURE__ */ jsx5("h2", {
306
+ /* @__PURE__ */ jsx3("h2", {
407
307
  id: "installation",
408
308
  className: "text-xl font-semibold tracking-tight",
409
309
  children: labels.installation
@@ -421,22 +321,22 @@ var ComponentInstallation = ({
421
321
  variant: "line",
422
322
  "aria-label": labels.installation,
423
323
  children: [
424
- /* @__PURE__ */ jsx5(TabsTrigger, {
324
+ /* @__PURE__ */ jsx3(TabsTrigger, {
425
325
  value: "package",
426
326
  children: labels.package
427
327
  }),
428
- /* @__PURE__ */ jsx5(TabsTrigger, {
328
+ /* @__PURE__ */ jsx3(TabsTrigger, {
429
329
  value: "command",
430
330
  children: labels.command
431
331
  })
432
332
  ]
433
333
  }),
434
- /* @__PURE__ */ jsx5(TabsContent, {
334
+ /* @__PURE__ */ jsx3(TabsContent, {
435
335
  value: "package",
436
336
  className: "grid gap-3",
437
337
  children: packageContent
438
338
  }),
439
- /* @__PURE__ */ jsx5(TabsContent, {
339
+ /* @__PURE__ */ jsx3(TabsContent, {
440
340
  value: "command",
441
341
  className: "grid gap-3",
442
342
  children: commandContent
@@ -455,7 +355,7 @@ var ComponentExample = ({
455
355
  return /* @__PURE__ */ jsxs3("div", {
456
356
  className: "registry-example grid min-w-0 gap-8 sm:gap-10",
457
357
  children: [
458
- /* @__PURE__ */ jsx5("section", {
358
+ /* @__PURE__ */ jsx3("section", {
459
359
  id: "preview",
460
360
  className: "min-w-0 scroll-mt-24",
461
361
  "aria-labelledby": "preview-heading",
@@ -468,7 +368,7 @@ var ComponentExample = ({
468
368
  onPlatformChange(next.id);
469
369
  },
470
370
  children: [
471
- /* @__PURE__ */ jsx5(TabsList, {
371
+ /* @__PURE__ */ jsx3(TabsList, {
472
372
  variant: "line",
473
373
  className: "border-border mb-3 w-full justify-start border-b sm:mb-5",
474
374
  "aria-label": labels.platform,
@@ -478,7 +378,7 @@ var ComponentExample = ({
478
378
  value: id,
479
379
  className: "flex-none",
480
380
  children: [
481
- /* @__PURE__ */ jsx5(Icon, {
381
+ /* @__PURE__ */ jsx3(Icon, {
482
382
  className: "size-4",
483
383
  "aria-hidden": "true",
484
384
  "data-platform-icon": id
@@ -488,12 +388,12 @@ var ComponentExample = ({
488
388
  }, id);
489
389
  })
490
390
  }),
491
- /* @__PURE__ */ jsx5("h2", {
391
+ /* @__PURE__ */ jsx3("h2", {
492
392
  id: "preview-heading",
493
393
  className: "text-xl font-semibold tracking-tight",
494
394
  children: labels.preview
495
395
  }),
496
- platforms.map(({ id, label, preview }) => /* @__PURE__ */ jsx5(TabsContent, {
396
+ platforms.map(({ id, label, preview }) => /* @__PURE__ */ jsx3(TabsContent, {
497
397
  value: id,
498
398
  "aria-label": label,
499
399
  className: "registry-example-preview bg-background rounded-lg border p-5 sm:p-8",
@@ -505,12 +405,12 @@ var ComponentExample = ({
505
405
  /* @__PURE__ */ jsxs3("section", {
506
406
  className: "grid min-w-0 gap-3",
507
407
  children: [
508
- /* @__PURE__ */ jsx5("h2", {
408
+ /* @__PURE__ */ jsx3("h2", {
509
409
  id: "usage",
510
410
  className: "text-xl font-semibold tracking-tight",
511
411
  children: labels.usage
512
412
  }),
513
- selected && /* @__PURE__ */ jsx5(CodeBlock, {
413
+ selected && /* @__PURE__ */ jsx3(CodeBlock, {
514
414
  code: selected.usage,
515
415
  language: selected.language
516
416
  })
@@ -76,12 +76,6 @@ export declare const makeRichTextEditor: (name: string, extensions?: (variables:
76
76
  };
77
77
  } | null;
78
78
  }, {
79
- readonly _tag: "ApplyLink";
80
- } | {
81
- readonly _tag: "CloseLink";
82
- } | {
83
- readonly _tag: "ToggleLink";
84
- } | {
85
79
  readonly _tag: "Action";
86
80
  readonly action: {
87
81
  readonly _tag: "Format";
@@ -93,9 +87,13 @@ export declare const makeRichTextEditor: (name: string, extensions?: (variables:
93
87
  readonly _tag: "Link";
94
88
  readonly href: string;
95
89
  };
90
+ } | {
91
+ readonly _tag: "ApplyLink";
96
92
  } | {
97
93
  readonly _tag: "Changed";
98
94
  readonly value: import("@tiptap/core").JSONContent;
95
+ } | {
96
+ readonly _tag: "CloseLink";
99
97
  } | {
100
98
  readonly _tag: "EditLink";
101
99
  readonly link: string;
@@ -120,6 +118,8 @@ export declare const makeRichTextEditor: (name: string, extensions?: (variables:
120
118
  readonly block: "bullet" | "heading" | "numbered" | "paragraph";
121
119
  readonly href: string | null;
122
120
  };
121
+ } | {
122
+ readonly _tag: "ToggleLink";
123
123
  }, {
124
124
  readonly _tag: "Changed";
125
125
  readonly value: import("@tiptap/core").JSONContent;
@@ -196,12 +196,6 @@ export declare const RichTextEditor: import("effect/ui/Component").Component<str
196
196
  };
197
197
  } | null;
198
198
  }, {
199
- readonly _tag: "ApplyLink";
200
- } | {
201
- readonly _tag: "CloseLink";
202
- } | {
203
- readonly _tag: "ToggleLink";
204
- } | {
205
199
  readonly _tag: "Action";
206
200
  readonly action: {
207
201
  readonly _tag: "Format";
@@ -213,9 +207,13 @@ export declare const RichTextEditor: import("effect/ui/Component").Component<str
213
207
  readonly _tag: "Link";
214
208
  readonly href: string;
215
209
  };
210
+ } | {
211
+ readonly _tag: "ApplyLink";
216
212
  } | {
217
213
  readonly _tag: "Changed";
218
214
  readonly value: import("@tiptap/core").JSONContent;
215
+ } | {
216
+ readonly _tag: "CloseLink";
219
217
  } | {
220
218
  readonly _tag: "EditLink";
221
219
  readonly link: string;
@@ -240,6 +238,8 @@ export declare const RichTextEditor: import("effect/ui/Component").Component<str
240
238
  readonly block: "bullet" | "heading" | "numbered" | "paragraph";
241
239
  readonly href: string | null;
242
240
  };
241
+ } | {
242
+ readonly _tag: "ToggleLink";
243
243
  }, {
244
244
  readonly _tag: "Changed";
245
245
  readonly value: import("@tiptap/core").JSONContent;
@@ -4,92 +4,19 @@ import { Mount } from "effect/ui";
4
4
  import { Html } from "effect/ui/html";
5
5
  import { Menu, Select } from "effect/ui/kit";
6
6
  import { Editor } from "@tiptap/core";
7
-
8
- // ../../src/components/effectcn/button.ts
9
- import {
10
- Button as KitButton
11
- } from "effect/ui/kit";
12
-
13
- // ../../src/lib/utils.ts
14
- import { cn } from "cn";
15
-
16
- // ../../src/components/effectcn/button.ts
17
- var base = "inline-flex h-8.5 shrink-0 items-center justify-center gap-1.5 rounded-md border border-transparent px-3.5 text-[13px] leading-none font-medium whitespace-nowrap no-underline select-none transition-[background-color,border-color,color,opacity] duration-150 active:translate-y-px data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&_svg]:size-[15px] [&_svg]:shrink-0 data-[loading]:before:size-3 data-[loading]:before:animate-spin data-[loading]:before:rounded-full data-[loading]:before:border-2 data-[loading]:before:border-current data-[loading]:before:border-r-transparent";
18
- var variants = {
19
- default: "bg-primary text-primary-foreground hover:bg-primary/85",
20
- secondary: "bg-secondary text-secondary-foreground hover:bg-accent",
21
- outline: "border-input bg-background text-foreground shadow-sm hover:bg-accent hover:text-accent-foreground",
22
- ghost: "text-foreground hover:bg-accent hover:text-accent-foreground",
23
- brand: "bg-brand-soft text-brand-soft-foreground hover:bg-brand-soft/85",
24
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/85",
25
- link: "h-auto px-0 text-foreground underline decoration-transparent underline-offset-4 hover:decoration-current"
26
- };
27
- var sizes = {
28
- default: "",
29
- sm: "h-7 rounded-sm px-2.5 text-xs",
30
- lg: "h-10 px-5 text-sm",
31
- icon: "w-8.5 px-0",
32
- "icon-sm": "h-7 w-7 rounded-sm px-0"
33
- };
34
- var buttonVariants = (options = {}) => cn(base, variants[options.variant ?? "default"], sizes[options.size ?? "default"], options.class);
35
- var Button = (h, options = {}) => KitButton(h, {
36
- element: options.element,
37
- onPress: options.onPress,
38
- props: options.loading ? { ...options.props, disabled: true, focusableWhenDisabled: true } : options.props
39
- }).class(buttonVariants(options)).attr("data-loading", options.loading ? "" : undefined);
40
-
41
- // ../../src/components/effectcn/input.ts
7
+ import { Button, buttonVariants } from "@/components/effectcn/button";
8
+ import { Input } from "@/components/effectcn/input";
9
+ import { MenuPopup, MenuPositioner } from "@/components/effectcn/menu";
42
10
  import {
43
- Input as KitInput
44
- } from "effect/ui/kit";
45
- var base2 = "block h-8.5 w-full min-w-0 rounded-md border border-input bg-background px-3 text-[13px] text-foreground shadow-sm outline-none " + "transition-[border-color,box-shadow] duration-150 placeholder:text-muted-foreground " + "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/20 " + "aria-invalid:border-destructive aria-invalid:focus-visible:ring-destructive/20 " + "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 " + "[&[readonly]]:bg-muted [&[readonly]]:text-muted-foreground [&[readonly]]:shadow-none " + "[&[type=file]]:cursor-pointer [&[type=file]]:pl-0 [&[type=file]]:leading-8 [&[type=file]]:text-muted-foreground " + "file:mr-3 file:h-8 file:cursor-pointer file:border-0 file:border-r file:border-solid file:border-input file:bg-muted file:px-3 " + "file:text-[13px] file:font-medium file:text-foreground";
46
- var sizes2 = {
47
- default: "",
48
- sm: "h-7 rounded-sm px-2.5 text-xs",
49
- lg: "h-10 px-3.5 text-sm"
50
- };
51
- var inputVariants = (options = {}) => cn(base2, sizes2[options.size ?? "default"], options.class);
52
- var Input = (h, options) => KitInput(h, options).class(inputVariants(options));
53
-
54
- // ../../src/components/effectcn/menu.ts
55
- var popup = "max-h-[var(--available-height)] max-w-[min(320px,var(--available-width))] min-w-[200px] origin-[var(--transform-origin)] " + "overflow-y-auto rounded-lg border bg-popover p-1 text-[13px] leading-snug text-foreground shadow-float outline-none " + "transition-[opacity,scale] duration-150 ease-out data-[nested]:min-w-[150px] " + "data-[starting-style]:scale-95 data-[starting-style]:opacity-0 " + "data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[ending-style]:duration-100 " + "data-[instant]:transition-none";
56
- var item = "relative flex min-h-[30px] cursor-default items-center gap-2 rounded-sm px-2 whitespace-nowrap text-foreground " + "no-underline outline-none select-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground " + "data-[popup-open]:bg-accent data-[disabled]:opacity-45 " + "[&_svg]:size-[15px] [&_svg]:shrink-0 [&_svg]:text-muted-foreground";
57
- var tick = "before:absolute before:top-1/2 before:left-[10px] before:h-[5px] before:w-[9px] before:-translate-y-[70%] " + "before:-rotate-45 before:border-b-2 before:border-l-2 before:border-brand before:opacity-0 before:content-[''] " + "data-[checked]:before:opacity-100";
58
- var dot = "before:absolute before:top-1/2 before:left-[12px] before:size-1.5 before:-translate-y-1/2 before:rounded-full " + "before:bg-brand before:opacity-0 before:content-[''] data-[checked]:before:opacity-100";
59
- var submenuArrow = "after:ml-auto after:size-1.5 after:-translate-x-0.5 after:rotate-45 after:border-t-[1.5px] after:border-r-[1.5px] " + "after:border-muted-foreground after:content-['']";
60
- var MenuPositioner = (h, menu, options = {}) => menu.positioner(h.div.class(cn("overflow-visible border-0 bg-transparent p-0 text-inherit outline-none", options.class)));
61
- var MenuPopup = (h, menu, options = {}) => menu.popup(h.div.class(cn(popup, options.class)));
62
-
63
- // ../../src/components/effectcn/select.ts
64
- var triggerSizes = {
65
- sm: "h-7 min-w-36 gap-1.5 rounded-sm pr-2 pl-2.5 text-xs",
66
- default: "h-8.5 min-w-48 pr-2.5 pl-3 text-[13px]",
67
- lg: "h-10 min-w-56 pr-3 pl-3.5 text-sm"
68
- };
69
- var popupSizes = {
70
- sm: "text-xs [&_[role=option]]:min-h-6.5 [&_[role=option]]:px-1.5 [&_[role=option]]:py-0.5",
71
- default: "text-[13px]",
72
- lg: "text-sm [&_[role=option]]:min-h-8.5 [&_[role=option]]:px-2.5"
73
- };
74
- var SelectTrigger = (h, select, options = {}) => select.trigger(h.button.on("mousedown", () => {
75
- return;
76
- }, { preventDefault: "always" }).class(cn("border-input bg-background inline-flex items-center justify-between gap-2 rounded-md border text-start", "text-foreground leading-none whitespace-nowrap shadow-sm select-none", "hover:bg-accent data-[popup-open]:bg-accent transition-colors duration-150", "data-[disabled]:hover:bg-background data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50", "data-[readonly]:bg-muted data-[readonly]:cursor-default", triggerSizes[options.size ?? "default"], options.class)));
77
- var SelectValue = (h, select, options = {}) => select.value(h.span.class(cn("data-[placeholder]:text-muted-foreground min-w-0 truncate leading-snug", options.class)));
78
- var SelectIcon = (h, select, options = {}) => select.icon(h.span.class(cn("border-muted-foreground mx-1 mb-[3px] size-[7px] shrink-0 rotate-45 border-r-[1.5px] border-b-[1.5px]", options.class)));
79
- var SelectPositioner = (h, select, options = {}) => select.positioner(h.div.class(cn("outline-none data-[side=none]:my-2.5", options.class)));
80
- var SelectPopup = (h, select, options = {}) => select.popup(h.div.class(cn("relative box-border max-w-[var(--available-width)] min-w-[max(var(--anchor-width),10rem)] overflow-y-auto", "bg-popover text-foreground shadow-float rounded-lg border p-1 outline-none", "max-h-[min(var(--available-height),20rem)] data-[side=none]:max-h-none", "origin-[var(--transform-origin)] transition-[opacity,scale] duration-150", "data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", "not-data-[side=none]:data-[ending-style]:scale-95 not-data-[side=none]:data-[starting-style]:scale-95", "data-[side=none]:[scrollbar-width:none]", "has-[>[data-slot=select-list]]:flex has-[>[data-slot=select-list]]:flex-col", "has-[>[data-slot=select-list]]:overflow-hidden has-[>[data-slot=select-list]]:p-0", popupSizes[options.size ?? "default"], options.class)));
81
- var SelectItem = (h, select, options) => select.item({
82
- element: h.div.class(cn("flex min-h-7.5 cursor-default scroll-my-1 items-center gap-2 rounded-sm px-2 py-1 leading-snug outline-none", "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground select-none", "data-[disabled]:text-muted-foreground data-[disabled]:opacity-60 data-[selected]:font-medium", "[&_svg]:text-muted-foreground [&_svg]:size-[15px] [&_svg]:shrink-0", options.class)),
83
- value: options.value
84
- });
85
- var SelectItemText = (h, select, options = {}) => select.itemText(h.div.class(cn("min-w-0 flex-1 whitespace-nowrap", options.class)));
86
- var SelectItemIndicator = (h, select, options) => select.itemIndicator({
87
- element: h.span.class(cn("border-brand mr-1.5 mb-0.5 ml-2.5 h-[9px] w-[5px] shrink-0 rotate-45 border-r-[1.5px] border-b-[1.5px]", options.class)),
88
- value: options.value
89
- });
90
- var scrollArrow = "inset-x-0 z-10 hidden h-6 cursor-default place-items-center rounded-lg bg-popover data-[visible]:grid " + "before:size-1.5 before:rotate-45 before:border-muted-foreground";
91
-
92
- // ../../src/components/rich-text-editor/html.ts
11
+ SelectIcon,
12
+ SelectItem,
13
+ SelectItemIndicator,
14
+ SelectItemText,
15
+ SelectPopup,
16
+ SelectPositioner,
17
+ SelectTrigger,
18
+ SelectValue
19
+ } from "@/components/effectcn/select";
93
20
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
94
21
  import {
95
22
  Bold,