@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
@@ -13,41 +13,7 @@ import { renderTokens } from "@tanstack/highlight/core";
13
13
  import { Schema as Schema3 } from "effect";
14
14
  import { Component as Component2 } from "effect/ui";
15
15
  import { Html } from "effect/ui/html";
16
-
17
- // ../../src/components/effectcn/button.ts
18
- import {
19
- Button as KitButton
20
- } from "effect/ui/kit";
21
-
22
- // ../../src/lib/utils.ts
23
- import { cn } from "cn";
24
-
25
- // ../../src/components/effectcn/button.ts
26
- 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";
27
- var variants = {
28
- default: "bg-primary text-primary-foreground hover:bg-primary/85",
29
- secondary: "bg-secondary text-secondary-foreground hover:bg-accent",
30
- outline: "border-input bg-background text-foreground shadow-sm hover:bg-accent hover:text-accent-foreground",
31
- ghost: "text-foreground hover:bg-accent hover:text-accent-foreground",
32
- brand: "bg-brand-soft text-brand-soft-foreground hover:bg-brand-soft/85",
33
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/85",
34
- link: "h-auto px-0 text-foreground underline decoration-transparent underline-offset-4 hover:decoration-current"
35
- };
36
- var sizes = {
37
- default: "",
38
- sm: "h-7 rounded-sm px-2.5 text-xs",
39
- lg: "h-10 px-5 text-sm",
40
- icon: "w-8.5 px-0",
41
- "icon-sm": "h-7 w-7 rounded-sm px-0"
42
- };
43
- var buttonVariants = (options = {}) => cn(base, variants[options.variant ?? "default"], sizes[options.size ?? "default"], options.class);
44
- var Button = (h, options = {}) => KitButton(h, {
45
- element: options.element,
46
- onPress: options.onPress,
47
- props: options.loading ? { ...options.props, disabled: true, focusableWhenDisabled: true } : options.props
48
- }).class(buttonVariants(options)).attr("data-loading", options.loading ? "" : undefined);
49
-
50
- // ../../src/components/copy-button/html.ts
16
+ import { Button } from "@/components/effectcn/button";
51
17
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
52
18
  import { Check, Copy, TriangleAlert } from "@krak-stack/registry/lucide-effect";
53
19
 
@@ -1,52 +1,5 @@
1
- // ../../src/components/ui/button.tsx
2
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
3
- import { cva } from "class-variance-authority";
4
-
5
- // ../../src/lib/utils.ts
6
- import { cn } from "cn";
7
-
8
- // ../../src/components/ui/button.tsx
9
- import { jsx } from "react/jsx-runtime";
10
- 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", {
11
- variants: {
12
- variant: {
13
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
14
- 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",
15
- 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",
16
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
17
- 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",
18
- link: "text-primary underline-offset-4 hover:underline"
19
- },
20
- size: {
21
- 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",
22
- 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",
23
- 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",
24
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
25
- icon: "size-9",
26
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
27
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
28
- "icon-lg": "size-10"
29
- }
30
- },
31
- defaultVariants: {
32
- variant: "default",
33
- size: "default"
34
- }
35
- });
36
- function Button({
37
- className,
38
- variant = "default",
39
- size = "default",
40
- ...props
41
- }) {
42
- return /* @__PURE__ */ jsx(ButtonPrimitive, {
43
- "data-slot": "button",
44
- className: cn(buttonVariants({ variant, size, className })),
45
- ...props
46
- });
47
- }
48
-
49
1
  // ../../src/components/copy-button/react.tsx
2
+ import { Button } from "@/components/ui/button";
50
3
  import { Check, Copy, TriangleAlert } from "lucide-react";
51
4
  import { Redacted as Redacted2 } from "effect";
52
5
  import { Component as Component2 } from "effect/ui";
@@ -149,7 +102,7 @@ var copyButtonStatus = (status, copy, description) => {
149
102
  };
150
103
 
151
104
  // ../../src/components/copy-button/react.tsx
152
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
105
+ import { jsx, jsxs } from "react/jsx-runtime";
153
106
  "use client";
154
107
  function CopyButton({
155
108
  value,
@@ -207,22 +160,22 @@ function CopyButton({
207
160
  size: size ?? defaultSize,
208
161
  ...props,
209
162
  children: [
210
- /* @__PURE__ */ jsx2("span", {
163
+ /* @__PURE__ */ jsx("span", {
211
164
  "aria-live": "polite",
212
165
  className: "sr-only",
213
166
  role: "status",
214
167
  children: copyButtonStatus(status, labels, valueDescription)
215
168
  }),
216
- status === "copied" ? /* @__PURE__ */ jsx2(Check, {
169
+ status === "copied" ? /* @__PURE__ */ jsx(Check, {
217
170
  "aria-hidden": "true"
218
171
  }) : null,
219
- status === "failed" ? /* @__PURE__ */ jsx2(TriangleAlert, {
172
+ status === "failed" ? /* @__PURE__ */ jsx(TriangleAlert, {
220
173
  "aria-hidden": "true"
221
174
  }) : null,
222
- status === "idle" ? /* @__PURE__ */ jsx2(Copy, {
175
+ status === "idle" ? /* @__PURE__ */ jsx(Copy, {
223
176
  "aria-hidden": "true"
224
177
  }) : null,
225
- isLarge ? /* @__PURE__ */ jsx2("span", {
178
+ isLarge ? /* @__PURE__ */ jsx("span", {
226
179
  children: labels.copy
227
180
  }) : null
228
181
  ]
@@ -290,7 +243,7 @@ var codeBlockMessages = (locale = "en", translations) => ({
290
243
  var codeLanguage = (language = "text") => language.toLowerCase() || "text";
291
244
 
292
245
  // ../../src/components/code-block/react.tsx
293
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
246
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
294
247
  function CodeBlock({
295
248
  classes: classOverrides,
296
249
  code,
@@ -307,17 +260,17 @@ function CodeBlock({
307
260
  className: codeBlockClasses.root,
308
261
  "data-code-theme": true,
309
262
  children: [
310
- /* @__PURE__ */ jsx3("style", {
263
+ /* @__PURE__ */ jsx2("style", {
311
264
  children: codeThemeCss
312
265
  }),
313
266
  /* @__PURE__ */ jsxs2("div", {
314
267
  className: codeBlockClasses.header,
315
268
  children: [
316
- /* @__PURE__ */ jsx3("span", {
269
+ /* @__PURE__ */ jsx2("span", {
317
270
  className: codeBlockClasses.language,
318
271
  children: highlighted.lang
319
272
  }),
320
- /* @__PURE__ */ jsx3(CopyButton, {
273
+ /* @__PURE__ */ jsx2(CopyButton, {
321
274
  value: code,
322
275
  valueDescription: labels.codeDescription(highlighted.lang),
323
276
  variant: "ghost",
@@ -326,13 +279,16 @@ function CodeBlock({
326
279
  })
327
280
  ]
328
281
  }),
329
- /* @__PURE__ */ jsx3("div", {
282
+ /* @__PURE__ */ jsx2("div", {
330
283
  className: codeBlockClasses.viewport,
331
284
  dangerouslySetInnerHTML: { __html: highlighted.html }
332
285
  })
333
286
  ]
334
287
  });
335
288
  }
289
+ // ../../src/lib/utils.ts
290
+ import { cn } from "cn";
291
+
336
292
  // ../../src/components/markdown/classes.ts
337
293
  var markdownClass = "[&_a:hover]:text-primary [&_a]:decoration-border [&_blockquote]:border-primary/40 [&_blockquote]:bg-muted/40 [&_h2_a]:text-muted-foreground [&_h3_a]:text-muted-foreground [&_[data-inline-code]]:bg-muted text-[0.98rem] leading-7 [&_[data-inline-code]]:rounded [&_[data-inline-code]]:px-1.5 [&_[data-inline-code]]:py-0.5 [&_[data-inline-code]]:font-mono [&_[data-inline-code]]:text-[0.875em] [&_[data-markdown-table]]:overflow-x-auto [&_a]:font-medium [&_a]:underline [&_a]:decoration-1 [&_a]:underline-offset-4 [&_a]:transition-colors [&_blockquote]:my-5 [&_blockquote]:rounded-r-lg [&_blockquote]:border-l-4 [&_blockquote]:px-5 [&_blockquote]:py-1 [&_h2]:mt-12 [&_h2]:scroll-mt-20 [&_h2]:border-t [&_h2]:pt-8 [&_h2]:text-2xl [&_h2]:font-bold [&_h2]:tracking-tight [&_h2_a]:ml-2 [&_h2_a]:no-underline [&_h2:first-of-type]:mt-0 [&_h2:first-of-type]:border-t-0 [&_h2:first-of-type]:pt-0 [&_h3]:mt-8 [&_h3]:scroll-mt-20 [&_h3]:text-xl [&_h3]:font-semibold [&_h3]:tracking-tight [&_h3_a]:ml-2 [&_h3_a]:no-underline [&_ol]:my-5 [&_p]:my-5 [&_table]:w-full [&_table]:text-sm [&_td]:border-b [&_td]:p-2 [&_th]:border-b [&_th]:p-2 [&_th]:text-left [&_ul]:my-5 [&_li]:my-1 [&_li>ol]:my-2 [&_li>p]:my-2 [&_li>ul]:my-2 [&_ol]:list-decimal [&_ol]:ps-6 [&_ul]:list-disc [&_ul]:ps-6";
338
294
 
@@ -356,7 +312,7 @@ var markdownSegments = ({
356
312
  };
357
313
 
358
314
  // ../../src/components/markdown/react.tsx
359
- import { jsx as jsx4 } from "react/jsx-runtime";
315
+ import { jsx as jsx3 } from "react/jsx-runtime";
360
316
  var MarkdownContent = ({
361
317
  classes,
362
318
  className,
@@ -368,13 +324,13 @@ var MarkdownContent = ({
368
324
  const content = [];
369
325
  for (const segment of markdownSegments({ html, codeBlocks })) {
370
326
  const { block, index } = segment;
371
- content.push(/* @__PURE__ */ jsx4("div", {
327
+ content.push(/* @__PURE__ */ jsx3("div", {
372
328
  dangerouslySetInnerHTML: { __html: segment.html }
373
329
  }, `html-${index}`));
374
330
  if (block)
375
- content.push(/* @__PURE__ */ jsx4("div", {
331
+ content.push(/* @__PURE__ */ jsx3("div", {
376
332
  className: "my-5",
377
- children: /* @__PURE__ */ jsx4(CodeBlock, {
333
+ children: /* @__PURE__ */ jsx3(CodeBlock, {
378
334
  code: block.code,
379
335
  language: block.language,
380
336
  locale,
@@ -382,7 +338,7 @@ var MarkdownContent = ({
382
338
  })
383
339
  }, `code-${index}`));
384
340
  }
385
- return /* @__PURE__ */ jsx4("div", {
341
+ return /* @__PURE__ */ jsx3("div", {
386
342
  className: cn(classes?.root ?? markdownClass, className),
387
343
  children: content
388
344
  });
@@ -1,57 +1,18 @@
1
1
  // ../../src/components/notification-menu/html.ts
2
2
  import { Html } from "effect/ui/html";
3
3
  import { Popover, ScrollArea, makeTabs } from "effect/ui/kit";
4
-
5
- // ../../src/components/effectcn/button.ts
4
+ import { Button, buttonVariants } from "@/components/effectcn/button";
6
5
  import {
7
- Button as KitButton
8
- } from "effect/ui/kit";
9
-
10
- // ../../src/lib/utils.ts
11
- import { cn } from "cn";
12
-
13
- // ../../src/components/effectcn/button.ts
14
- var base = "inline-flex h-8.5 shrink-0 items-center justify-center gap-1.5 rounded-md border border-transparent px-3.5 text-[13px] leading-none font-medium whitespace-nowrap no-underline select-none transition-[background-color,border-color,color,opacity] duration-150 active:translate-y-px data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&_svg]:size-[15px] [&_svg]:shrink-0 data-[loading]:before:size-3 data-[loading]:before:animate-spin data-[loading]:before:rounded-full data-[loading]:before:border-2 data-[loading]:before:border-current data-[loading]:before:border-r-transparent";
15
- var variants = {
16
- default: "bg-primary text-primary-foreground hover:bg-primary/85",
17
- secondary: "bg-secondary text-secondary-foreground hover:bg-accent",
18
- outline: "border-input bg-background text-foreground shadow-sm hover:bg-accent hover:text-accent-foreground",
19
- ghost: "text-foreground hover:bg-accent hover:text-accent-foreground",
20
- brand: "bg-brand-soft text-brand-soft-foreground hover:bg-brand-soft/85",
21
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/85",
22
- link: "h-auto px-0 text-foreground underline decoration-transparent underline-offset-4 hover:decoration-current"
23
- };
24
- var sizes = {
25
- default: "",
26
- sm: "h-7 rounded-sm px-2.5 text-xs",
27
- lg: "h-10 px-5 text-sm",
28
- icon: "w-8.5 px-0",
29
- "icon-sm": "h-7 w-7 rounded-sm px-0"
30
- };
31
- var buttonVariants = (options = {}) => cn(base, variants[options.variant ?? "default"], sizes[options.size ?? "default"], options.class);
32
- var Button = (h, options = {}) => KitButton(h, {
33
- element: options.element,
34
- onPress: options.onPress,
35
- props: options.loading ? { ...options.props, disabled: true, focusableWhenDisabled: true } : options.props
36
- }).class(buttonVariants(options)).attr("data-loading", options.loading ? "" : undefined);
37
-
38
- // ../../src/components/effectcn/popover.ts
39
- var sizes2 = { sm: "w-56", default: "w-72", auto: "w-auto" };
40
- var PopoverPositioner = (h, popover, options = {}) => popover.positioner(h.div.class(cn("z-50 outline-none", options.class)));
41
- var PopoverPopup = (h, popover, options = {}) => popover.popup(h.div.class(cn("bg-popover relative flex origin-[var(--transform-origin)] flex-col gap-2 rounded-lg border p-4 text-[13px]", "text-popover-foreground shadow-md outline-none", "h-[var(--popup-height,auto)] transition-[opacity,scale,height] duration-150 ease-out", "data-[ending-style]:scale-95 data-[ending-style]:opacity-0", "data-[starting-style]:scale-95 data-[starting-style]:opacity-0", "data-[instant]:duration-0", sizes2[options.size ?? "default"], options.class)));
42
- var PopoverTitle = (h, popover, options = {}) => popover.title(h.h2.class(cn("m-0 border-0 p-0 text-sm leading-snug font-semibold", options.class)));
43
-
44
- // ../../src/components/effectcn/scroll-area.ts
45
- var ScrollAreaRoot = (h, area, options = {}) => area.root(h.div.class(cn("bg-background overflow-hidden rounded-md border", options.class)));
46
- var ScrollAreaViewport = (h, area, options = {}) => area.viewport(h.div.class(cn("size-full overscroll-contain rounded-[inherit] -outline-offset-2 [&::-webkit-scrollbar]:hidden", options.class)));
47
- var ScrollAreaContent = (h, area, options = {}) => area.content(h.div.class(cn(options.class)));
48
- var ScrollAreaScrollbar = (h, area) => area.scrollbar({
49
- orientation: "vertical",
50
- element: h.div.class("z-10 flex w-2.5 touch-none p-0.5 opacity-0 transition-opacity duration-150 select-none data-[hovering]:opacity-100 data-[scrolling]:opacity-100"),
51
- thumb: h.div.class("flex-1 rounded-full bg-foreground/25 transition-colors duration-150 hover:bg-foreground/40 data-[scrolling]:bg-foreground/40")
52
- });
53
-
54
- // ../../src/components/notification-menu/html.ts
6
+ PopoverPopup,
7
+ PopoverPositioner,
8
+ PopoverTitle
9
+ } from "@/components/effectcn/popover";
10
+ import {
11
+ ScrollAreaContent,
12
+ ScrollAreaRoot,
13
+ ScrollAreaScrollbar,
14
+ ScrollAreaViewport
15
+ } from "@/components/effectcn/scroll-area";
55
16
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
56
17
  import {
57
18
  Archive as ArchiveIcon,
@@ -62,6 +23,9 @@ import {
62
23
  TriangleAlert as AlertIcon
63
24
  } from "@krak-stack/registry/lucide-effect";
64
25
 
26
+ // ../../src/lib/utils.ts
27
+ import { cn } from "cn";
28
+
65
29
  // ../../src/components/notification-menu/classes.ts
66
30
  var notificationMenuClasses = {
67
31
  popup: "max-h-[min(32rem,80svh,var(--available-height))] w-96 max-w-[calc(100vw-1rem)] gap-0 overflow-hidden p-0",