@krak-stack/registry 0.11.4 → 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 (171) hide show
  1. package/CHANGELOG.md +13 -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 +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/icon-input/html.js +9 -56
  54. package/dist/components/icon-input/react.js +43 -143
  55. package/dist/components/image-crop-editor/html.js +1 -35
  56. package/dist/components/image-crop-editor/react.js +21 -66
  57. package/dist/components/locale-switcher/html.js +8 -55
  58. package/dist/components/locale-switcher/react.js +21 -146
  59. package/dist/components/map-menu/html.d.ts +8 -8
  60. package/dist/components/map-menu/html.js +13 -72
  61. package/dist/components/map-menu/react.js +92 -309
  62. package/dist/components/markdown/html.js +1 -35
  63. package/dist/components/markdown/react.js +20 -64
  64. package/dist/components/notification-menu/html.js +14 -50
  65. package/dist/components/notification-menu/react.js +73 -343
  66. package/dist/components/pagination/html.js +17 -73
  67. package/dist/components/pagination/react.js +37 -200
  68. package/dist/components/phone-number-input/html.js +19 -57
  69. package/dist/components/phone-number-input/react.d.ts +1 -1
  70. package/dist/components/phone-number-input/react.js +43 -142
  71. package/dist/components/presence-transition/index.d.ts +2 -2
  72. package/dist/components/registry-previews/component-example.js +26 -126
  73. package/dist/components/rich-text-editor/html.d.ts +12 -12
  74. package/dist/components/rich-text-editor/html.js +12 -85
  75. package/dist/components/rich-text-editor/react.js +55 -272
  76. package/dist/components/search-menu/classes.d.ts +2 -0
  77. package/dist/components/search-menu/html.d.ts +2 -0
  78. package/dist/components/search-menu/html.js +40 -73
  79. package/dist/components/search-menu/index.d.ts +27 -2
  80. package/dist/components/search-menu/react.d.ts +1 -1
  81. package/dist/components/search-menu/react.js +59 -280
  82. package/dist/components/search-menu/schema.d.ts +1 -0
  83. package/dist/components/select-with-custom-input/html.d.ts +2 -2
  84. package/dist/components/select-with-custom-input/html.js +13 -48
  85. package/dist/components/select-with-custom-input/react.js +22 -146
  86. package/dist/components/sidebar-layout/html.d.ts +16 -6
  87. package/dist/components/sidebar-layout/html.js +83 -69
  88. package/dist/components/sidebar-layout/index.d.ts +16 -0
  89. package/dist/components/sidebar-layout/react.js +105 -698
  90. package/dist/components/stats-card/react.js +13 -58
  91. package/dist/components/support/html.js +14 -69
  92. package/dist/components/support/react.js +74 -320
  93. package/dist/components/theme-switcher/html.js +11 -55
  94. package/dist/components/theme-switcher/react.js +28 -152
  95. package/dist/components/time-input/html.d.ts +2 -2
  96. package/dist/components/time-input/html.js +8 -53
  97. package/dist/components/time-input/react.js +34 -188
  98. package/dist/components/timezone-input/html.js +11 -67
  99. package/dist/components/timezone-input/react.js +41 -143
  100. package/dist/components/toast/html.d.ts +6 -6
  101. package/dist/components/toast/html.js +13 -46
  102. package/dist/components/tracking-notice/react.js +39 -188
  103. package/dist/components/unsaved-changes-guard/html.js +9 -43
  104. package/dist/components/unsaved-changes-guard/react.js +19 -169
  105. package/dist/components/upload-attachment/html.d.ts +4 -4
  106. package/dist/components/upload-attachment/html.js +4 -35
  107. package/dist/components/upload-attachment/react.js +25 -164
  108. package/dist/components/virtualized-combobox/html.js +10 -35
  109. package/dist/components/virtualized-combobox/react.js +28 -129
  110. package/dist/components/webhook-delivery-table/html.js +211 -184
  111. package/dist/components/webhook-delivery-table/react.js +585 -1362
  112. package/dist/lib/docs.integrations.server.js +150 -202
  113. package/dist/lib/docs.js +305 -1085
  114. package/dist/lib/docs.server.js +134 -186
  115. package/dist/lib/documentation-toolkit.js +144 -196
  116. package/dist/services/agent/client/index.js +226 -1072
  117. package/dist/services/notification/client/index.js +73 -343
  118. package/dist/services/notification/public.js +73 -343
  119. package/package.json +5 -13
  120. package/dist/components/effectcn/alert-dialog.d.ts +0 -13
  121. package/dist/components/effectcn/button.d.ts +0 -31
  122. package/dist/components/effectcn/calendar.d.ts +0 -12
  123. package/dist/components/effectcn/checkbox.d.ts +0 -10
  124. package/dist/components/effectcn/combobox.d.ts +0 -25
  125. package/dist/components/effectcn/dialog.d.ts +0 -19
  126. package/dist/components/effectcn/field.d.ts +0 -11
  127. package/dist/components/effectcn/file-drop.d.ts +0 -8
  128. package/dist/components/effectcn/input.d.ts +0 -26
  129. package/dist/components/effectcn/menu.d.ts +0 -85
  130. package/dist/components/effectcn/menubar.d.ts +0 -8
  131. package/dist/components/effectcn/popover.d.ts +0 -18
  132. package/dist/components/effectcn/scroll-area.d.ts +0 -12
  133. package/dist/components/effectcn/select.d.ts +0 -68
  134. package/dist/components/effectcn/toast.d.ts +0 -29
  135. package/dist/components/ui/alert-dialog.d.ts +0 -18
  136. package/dist/components/ui/alert.d.ts +0 -10
  137. package/dist/components/ui/attachment.d.ts +0 -23
  138. package/dist/components/ui/badge.d.ts +0 -7
  139. package/dist/components/ui/bubble.d.ts +0 -16
  140. package/dist/components/ui/button.d.ts +0 -8
  141. package/dist/components/ui/calendar.d.ts +0 -10
  142. package/dist/components/ui/card.d.ts +0 -11
  143. package/dist/components/ui/checkbox.d.ts +0 -3
  144. package/dist/components/ui/collapsible.d.ts +0 -5
  145. package/dist/components/ui/command.d.ts +0 -18
  146. package/dist/components/ui/dialog.d.ts +0 -17
  147. package/dist/components/ui/dropdown-menu.d.ts +0 -29
  148. package/dist/components/ui/empty.d.ts +0 -11
  149. package/dist/components/ui/field.d.ts +0 -24
  150. package/dist/components/ui/input-group.d.ts +0 -17
  151. package/dist/components/ui/input.d.ts +0 -3
  152. package/dist/components/ui/item.d.ts +0 -22
  153. package/dist/components/ui/label.d.ts +0 -3
  154. package/dist/components/ui/menubar.d.ts +0 -29
  155. package/dist/components/ui/message-scroller.d.ts +0 -10
  156. package/dist/components/ui/message.d.ts +0 -10
  157. package/dist/components/ui/popover.d.ts +0 -9
  158. package/dist/components/ui/scroll-area.d.ts +0 -4
  159. package/dist/components/ui/select.d.ts +0 -15
  160. package/dist/components/ui/select.js +0 -159
  161. package/dist/components/ui/separator.d.ts +0 -3
  162. package/dist/components/ui/sheet.d.ts +0 -14
  163. package/dist/components/ui/sidebar.d.ts +0 -63
  164. package/dist/components/ui/skeleton.d.ts +0 -2
  165. package/dist/components/ui/table.d.ts +0 -10
  166. package/dist/components/ui/tabs.d.ts +0 -10
  167. package/dist/components/ui/textarea.d.ts +0 -3
  168. package/dist/components/ui/tooltip.d.ts +0 -6
  169. package/dist/components/ui/trace.d.ts +0 -18
  170. package/dist/lib/effectcn-form.d.ts +0 -3
  171. package/dist/lib/effectcn-form.js +0 -54
@@ -9,299 +9,29 @@ import {
9
9
  } from "lucide-react";
10
10
  import { useState } from "react";
11
11
  import { Schema as Schema3 } from "effect";
12
-
13
- // ../../src/components/ui/badge.tsx
14
- import { mergeProps } from "@base-ui/react/merge-props";
15
- import { useRender } from "@base-ui/react/use-render";
16
- import { cva } from "class-variance-authority";
12
+ import { Badge } from "@/components/ui/badge";
13
+ import { Button, buttonVariants } from "@/components/ui/button";
14
+ import {
15
+ Empty,
16
+ EmptyDescription,
17
+ EmptyHeader,
18
+ EmptyMedia,
19
+ EmptyTitle
20
+ } from "@/components/ui/empty";
21
+ import {
22
+ Popover,
23
+ PopoverContent,
24
+ PopoverHeader,
25
+ PopoverTitle,
26
+ PopoverTrigger
27
+ } from "@/components/ui/popover";
28
+ import { ScrollArea } from "@/components/ui/scroll-area";
29
+ import { Skeleton } from "@/components/ui/skeleton";
30
+ import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
17
31
 
18
32
  // ../../src/lib/utils.ts
19
33
  import { cn } from "cn";
20
34
 
21
- // ../../src/components/ui/badge.tsx
22
- 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!", {
23
- variants: {
24
- variant: {
25
- default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
26
- secondary: "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
27
- 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",
28
- outline: "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
29
- ghost: "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
30
- link: "text-primary underline-offset-4 hover:underline"
31
- }
32
- },
33
- defaultVariants: {
34
- variant: "default"
35
- }
36
- });
37
- function Badge({
38
- className,
39
- variant = "default",
40
- render,
41
- ...props
42
- }) {
43
- return useRender({
44
- defaultTagName: "span",
45
- props: mergeProps({
46
- className: cn(badgeVariants({ variant }), className)
47
- }, props),
48
- render,
49
- state: {
50
- slot: "badge",
51
- variant
52
- }
53
- });
54
- }
55
-
56
- // ../../src/components/ui/button.tsx
57
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
58
- import { cva as cva2 } from "class-variance-authority";
59
- import { jsx } from "react/jsx-runtime";
60
- 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", {
61
- variants: {
62
- variant: {
63
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
64
- 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",
65
- 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",
66
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
67
- 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",
68
- link: "text-primary underline-offset-4 hover:underline"
69
- },
70
- size: {
71
- 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",
72
- 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",
73
- 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",
74
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
75
- icon: "size-9",
76
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
77
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
78
- "icon-lg": "size-10"
79
- }
80
- },
81
- defaultVariants: {
82
- variant: "default",
83
- size: "default"
84
- }
85
- });
86
- function Button({
87
- className,
88
- variant = "default",
89
- size = "default",
90
- ...props
91
- }) {
92
- return /* @__PURE__ */ jsx(ButtonPrimitive, {
93
- "data-slot": "button",
94
- className: cn(buttonVariants({ variant, size, className })),
95
- ...props
96
- });
97
- }
98
-
99
- // ../../src/components/ui/empty.tsx
100
- import { cva as cva3 } from "class-variance-authority";
101
- import { jsx as jsx2 } from "react/jsx-runtime";
102
- function Empty({ className, ...props }) {
103
- return /* @__PURE__ */ jsx2("div", {
104
- "data-slot": "empty",
105
- 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),
106
- ...props
107
- });
108
- }
109
- function EmptyHeader({ className, ...props }) {
110
- return /* @__PURE__ */ jsx2("div", {
111
- "data-slot": "empty-header",
112
- className: cn("flex max-w-sm flex-col items-center gap-2", className),
113
- ...props
114
- });
115
- }
116
- var emptyMediaVariants = cva3("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
117
- variants: {
118
- variant: {
119
- default: "bg-transparent",
120
- icon: "flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-6"
121
- }
122
- },
123
- defaultVariants: {
124
- variant: "default"
125
- }
126
- });
127
- function EmptyMedia({
128
- className,
129
- variant = "default",
130
- ...props
131
- }) {
132
- return /* @__PURE__ */ jsx2("div", {
133
- "data-slot": "empty-icon",
134
- "data-variant": variant,
135
- className: cn(emptyMediaVariants({ variant, className })),
136
- ...props
137
- });
138
- }
139
- function EmptyTitle({ className, ...props }) {
140
- return /* @__PURE__ */ jsx2("div", {
141
- "data-slot": "empty-title",
142
- className: cn("text-lg font-medium tracking-tight", className),
143
- ...props
144
- });
145
- }
146
- function EmptyDescription({ className, ...props }) {
147
- return /* @__PURE__ */ jsx2("div", {
148
- "data-slot": "empty-description",
149
- className: cn("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", className),
150
- ...props
151
- });
152
- }
153
-
154
- // ../../src/components/ui/popover.tsx
155
- import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
156
- import { jsx as jsx3 } from "react/jsx-runtime";
157
- function Popover({ ...props }) {
158
- return /* @__PURE__ */ jsx3(PopoverPrimitive.Root, {
159
- "data-slot": "popover",
160
- ...props
161
- });
162
- }
163
- function PopoverTrigger({ ...props }) {
164
- return /* @__PURE__ */ jsx3(PopoverPrimitive.Trigger, {
165
- "data-slot": "popover-trigger",
166
- ...props
167
- });
168
- }
169
- function PopoverContent({
170
- className,
171
- align = "center",
172
- alignOffset = 0,
173
- side = "bottom",
174
- sideOffset = 4,
175
- ...props
176
- }) {
177
- return /* @__PURE__ */ jsx3(PopoverPrimitive.Portal, {
178
- children: /* @__PURE__ */ jsx3(PopoverPrimitive.Positioner, {
179
- align,
180
- alignOffset,
181
- side,
182
- sideOffset,
183
- className: "isolate z-50",
184
- children: /* @__PURE__ */ jsx3(PopoverPrimitive.Popup, {
185
- "data-slot": "popover-content",
186
- 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),
187
- ...props
188
- })
189
- })
190
- });
191
- }
192
- function PopoverHeader({ className, ...props }) {
193
- return /* @__PURE__ */ jsx3("div", {
194
- "data-slot": "popover-header",
195
- className: cn("flex flex-col gap-1 text-sm", className),
196
- ...props
197
- });
198
- }
199
- function PopoverTitle({ className, ...props }) {
200
- return /* @__PURE__ */ jsx3(PopoverPrimitive.Title, {
201
- "data-slot": "popover-title",
202
- className: cn("font-medium", className),
203
- ...props
204
- });
205
- }
206
-
207
- // ../../src/components/ui/scroll-area.tsx
208
- import { ScrollArea as ScrollAreaPrimitive } from "@base-ui/react/scroll-area";
209
- import { jsx as jsx4, jsxs } from "react/jsx-runtime";
210
- function ScrollArea({
211
- className,
212
- children,
213
- ...props
214
- }) {
215
- return /* @__PURE__ */ jsxs(ScrollAreaPrimitive.Root, {
216
- "data-slot": "scroll-area",
217
- className: cn("relative", className),
218
- ...props,
219
- children: [
220
- /* @__PURE__ */ jsx4(ScrollAreaPrimitive.Viewport, {
221
- "data-slot": "scroll-area-viewport",
222
- className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
223
- children
224
- }),
225
- /* @__PURE__ */ jsx4(ScrollBar, {}),
226
- /* @__PURE__ */ jsx4(ScrollAreaPrimitive.Corner, {})
227
- ]
228
- });
229
- }
230
- function ScrollBar({
231
- className,
232
- orientation = "vertical",
233
- ...props
234
- }) {
235
- return /* @__PURE__ */ jsx4(ScrollAreaPrimitive.Scrollbar, {
236
- "data-slot": "scroll-area-scrollbar",
237
- "data-orientation": orientation,
238
- orientation,
239
- 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),
240
- ...props,
241
- children: /* @__PURE__ */ jsx4(ScrollAreaPrimitive.Thumb, {
242
- "data-slot": "scroll-area-thumb",
243
- className: "bg-border relative flex-1 rounded-full"
244
- })
245
- });
246
- }
247
-
248
- // ../../src/components/ui/skeleton.tsx
249
- import { jsx as jsx5 } from "react/jsx-runtime";
250
- function Skeleton({ className, ...props }) {
251
- return /* @__PURE__ */ jsx5("div", {
252
- "data-slot": "skeleton",
253
- className: cn("animate-pulse rounded-md bg-muted", className),
254
- ...props
255
- });
256
- }
257
-
258
- // ../../src/components/ui/tabs.tsx
259
- import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
260
- import { cva as cva4 } from "class-variance-authority";
261
- import { jsx as jsx6 } from "react/jsx-runtime";
262
- function Tabs({
263
- className,
264
- orientation = "horizontal",
265
- ...props
266
- }) {
267
- return /* @__PURE__ */ jsx6(TabsPrimitive.Root, {
268
- "data-slot": "tabs",
269
- "data-orientation": orientation,
270
- className: cn("group/tabs flex gap-2 data-horizontal:flex-col", className),
271
- ...props
272
- });
273
- }
274
- 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", {
275
- variants: {
276
- variant: {
277
- default: "bg-muted",
278
- line: "gap-1 bg-transparent"
279
- }
280
- },
281
- defaultVariants: {
282
- variant: "default"
283
- }
284
- });
285
- function TabsList({
286
- className,
287
- variant = "default",
288
- ...props
289
- }) {
290
- return /* @__PURE__ */ jsx6(TabsPrimitive.List, {
291
- "data-slot": "tabs-list",
292
- "data-variant": variant,
293
- className: cn(tabsListVariants({ variant }), className),
294
- ...props
295
- });
296
- }
297
- function TabsTrigger({ className, ...props }) {
298
- return /* @__PURE__ */ jsx6(TabsPrimitive.Tab, {
299
- "data-slot": "tabs-trigger",
300
- 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),
301
- ...props
302
- });
303
- }
304
-
305
35
  // ../../src/components/notification-menu/react.tsx
306
36
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
307
37
 
@@ -465,7 +195,7 @@ var update = Component.define(notificationMenuOptions).update({
465
195
  });
466
196
 
467
197
  // ../../src/components/notification-menu/react.tsx
468
- import { jsx as jsx7, jsxs as jsxs2 } from "react/jsx-runtime";
198
+ import { jsx, jsxs } from "react/jsx-runtime";
469
199
  function NotificationMenu({
470
200
  classes: classOverrides,
471
201
  className,
@@ -504,63 +234,63 @@ function NotificationMenu({
504
234
  onMarkRead?.(unreadIds);
505
235
  }
506
236
  };
507
- return /* @__PURE__ */ jsxs2(Popover, {
237
+ return /* @__PURE__ */ jsxs(Popover, {
508
238
  open,
509
239
  onOpenChange: handleOpenChange,
510
240
  children: [
511
- renderTrigger ? /* @__PURE__ */ jsx7(PopoverTrigger, {
241
+ renderTrigger ? /* @__PURE__ */ jsx(PopoverTrigger, {
512
242
  render: renderTrigger(triggerState)
513
- }) : /* @__PURE__ */ jsx7(NotificationMenuTrigger, {
243
+ }) : /* @__PURE__ */ jsx(NotificationMenuTrigger, {
514
244
  labels,
515
245
  unreadCount: unreadIds.length
516
246
  }),
517
- /* @__PURE__ */ jsxs2(PopoverContent, {
247
+ /* @__PURE__ */ jsxs(PopoverContent, {
518
248
  align: "end",
519
249
  className: cn(notificationMenuClasses.popup, className),
520
250
  children: [
521
- /* @__PURE__ */ jsx7(PopoverHeader, {
251
+ /* @__PURE__ */ jsx(PopoverHeader, {
522
252
  className: notificationMenuClasses.header,
523
- children: /* @__PURE__ */ jsx7(PopoverTitle, {
253
+ children: /* @__PURE__ */ jsx(PopoverTitle, {
524
254
  children: labels.notifications
525
255
  })
526
256
  }),
527
- /* @__PURE__ */ jsxs2(Tabs, {
257
+ /* @__PURE__ */ jsxs(Tabs, {
528
258
  value: tab,
529
259
  onValueChange: (value) => setTab(value === "archive" ? "archive" : "inbox"),
530
260
  className: "min-h-0 min-w-0 flex-1 gap-0",
531
261
  children: [
532
- /* @__PURE__ */ jsxs2("div", {
262
+ /* @__PURE__ */ jsxs("div", {
533
263
  className: "flex shrink-0 flex-col gap-2 border-b p-2",
534
264
  children: [
535
- /* @__PURE__ */ jsxs2(TabsList, {
265
+ /* @__PURE__ */ jsxs(TabsList, {
536
266
  className: "w-full min-w-0 gap-2",
537
267
  children: [
538
- /* @__PURE__ */ jsxs2(TabsTrigger, {
268
+ /* @__PURE__ */ jsxs(TabsTrigger, {
539
269
  className: "min-w-0",
540
270
  value: "inbox",
541
271
  children: [
542
- /* @__PURE__ */ jsx7(Inbox, {
272
+ /* @__PURE__ */ jsx(Inbox, {
543
273
  "data-icon": "inline-start"
544
274
  }),
545
- /* @__PURE__ */ jsx7("span", {
275
+ /* @__PURE__ */ jsx("span", {
546
276
  className: "truncate",
547
277
  children: labels.inbox
548
278
  }),
549
- inbox.length > 0 ? /* @__PURE__ */ jsx7(Badge, {
279
+ inbox.length > 0 ? /* @__PURE__ */ jsx(Badge, {
550
280
  className: "shrink-0 tabular-nums",
551
281
  variant: "secondary",
552
282
  children: inbox.length
553
283
  }) : null
554
284
  ]
555
285
  }),
556
- /* @__PURE__ */ jsxs2(TabsTrigger, {
286
+ /* @__PURE__ */ jsxs(TabsTrigger, {
557
287
  className: "min-w-0",
558
288
  value: "archive",
559
289
  children: [
560
- /* @__PURE__ */ jsx7(ArchiveRestore, {
290
+ /* @__PURE__ */ jsx(ArchiveRestore, {
561
291
  "data-icon": "inline-start"
562
292
  }),
563
- /* @__PURE__ */ jsx7("span", {
293
+ /* @__PURE__ */ jsx("span", {
564
294
  className: "truncate",
565
295
  children: labels.archived
566
296
  })
@@ -568,7 +298,7 @@ function NotificationMenu({
568
298
  })
569
299
  ]
570
300
  }),
571
- tab === "inbox" && inbox.length > 0 && onArchive ? /* @__PURE__ */ jsx7(ArchiveButton, {
301
+ tab === "inbox" && inbox.length > 0 && onArchive ? /* @__PURE__ */ jsx(ArchiveButton, {
572
302
  showLabel: true,
573
303
  className: "w-full",
574
304
  label: labels.archiveAll,
@@ -577,7 +307,7 @@ function NotificationMenu({
577
307
  }) : null
578
308
  ]
579
309
  }),
580
- /* @__PURE__ */ jsx7(NotificationList, {
310
+ /* @__PURE__ */ jsx(NotificationList, {
581
311
  error,
582
312
  isLoading,
583
313
  labels,
@@ -603,13 +333,13 @@ function NotificationMenuTrigger({
603
333
  }) {
604
334
  const locale = useKrakstackLocale(localeOverride);
605
335
  const labels = providedLabels ?? notificationMenuMessages(locale, messages);
606
- return /* @__PURE__ */ jsxs2(PopoverTrigger, {
336
+ return /* @__PURE__ */ jsxs(PopoverTrigger, {
607
337
  "aria-label": unreadCount > 0 ? `${labels.notifications}, ${labels.unread(unreadCount)}` : labels.notifications,
608
338
  className: cn(buttonVariants({ variant: "outline", size: "icon" }), "relative"),
609
339
  type: "button",
610
340
  children: [
611
- /* @__PURE__ */ jsx7(Bell, {}),
612
- unreadCount > 0 ? /* @__PURE__ */ jsx7(Badge, {
341
+ /* @__PURE__ */ jsx(Bell, {}),
342
+ unreadCount > 0 ? /* @__PURE__ */ jsx(Badge, {
613
343
  "aria-hidden": "true",
614
344
  className: "absolute -top-1 -right-1 min-w-5 px-1 tabular-nums",
615
345
  children: unreadCount > 99 ? "99+" : unreadCount
@@ -629,28 +359,28 @@ function NotificationList({
629
359
  tab
630
360
  }) {
631
361
  if (isLoading)
632
- return /* @__PURE__ */ jsx7(NotificationListLoading, {
362
+ return /* @__PURE__ */ jsx(NotificationListLoading, {
633
363
  label: labels.loading
634
364
  });
635
365
  if (error) {
636
- return /* @__PURE__ */ jsx7(NotificationEmpty, {
366
+ return /* @__PURE__ */ jsx(NotificationEmpty, {
637
367
  description: labels.errorDescription,
638
- icon: /* @__PURE__ */ jsx7(TriangleAlert, {}),
368
+ icon: /* @__PURE__ */ jsx(TriangleAlert, {}),
639
369
  title: labels.errorTitle
640
370
  });
641
371
  }
642
372
  if (notifications.length === 0) {
643
- return /* @__PURE__ */ jsx7(NotificationEmpty, {
373
+ return /* @__PURE__ */ jsx(NotificationEmpty, {
644
374
  description: tab === "inbox" ? labels.emptyInboxDescription : labels.emptyArchiveDescription,
645
- icon: tab === "inbox" ? /* @__PURE__ */ jsx7(BellDot, {}) : /* @__PURE__ */ jsx7(Archive, {}),
375
+ icon: tab === "inbox" ? /* @__PURE__ */ jsx(BellDot, {}) : /* @__PURE__ */ jsx(Archive, {}),
646
376
  title: tab === "inbox" ? labels.emptyInboxTitle : labels.emptyArchiveTitle
647
377
  });
648
378
  }
649
- return /* @__PURE__ */ jsx7(ScrollArea, {
379
+ return /* @__PURE__ */ jsx(ScrollArea, {
650
380
  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)]",
651
- children: /* @__PURE__ */ jsx7("div", {
381
+ children: /* @__PURE__ */ jsx("div", {
652
382
  className: "divide-border flex min-w-0 flex-col divide-y pe-[var(--notification-scrollbar-gutter,0px)]",
653
- children: notifications.map((notification) => /* @__PURE__ */ jsx7(NotificationListItem, {
383
+ children: notifications.map((notification) => /* @__PURE__ */ jsx(NotificationListItem, {
654
384
  labels,
655
385
  locale,
656
386
  notification,
@@ -674,37 +404,37 @@ function NotificationListItem({
674
404
  const canArchive = !notification.archivedAt && onArchive;
675
405
  const rowClassName = cn("h-auto justify-start rounded-none", notificationRowLayout, canArchive && notificationArchiveInset);
676
406
  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");
677
- const content = renderItem?.(notification) ?? /* @__PURE__ */ jsxs2("span", {
407
+ const content = renderItem?.(notification) ?? /* @__PURE__ */ jsxs("span", {
678
408
  className: "flex min-w-0 flex-1 flex-col gap-1",
679
409
  children: [
680
- /* @__PURE__ */ jsxs2("span", {
410
+ /* @__PURE__ */ jsxs("span", {
681
411
  className: "flex min-w-0 items-start gap-2",
682
412
  children: [
683
- unread ? /* @__PURE__ */ jsx7("span", {
413
+ unread ? /* @__PURE__ */ jsx("span", {
684
414
  "aria-hidden": "true",
685
415
  className: "bg-primary mt-1.5 size-2 shrink-0 rounded-full"
686
416
  }) : null,
687
- /* @__PURE__ */ jsx7("span", {
417
+ /* @__PURE__ */ jsx("span", {
688
418
  className: "min-w-0 flex-1 font-medium",
689
419
  children: notification.title
690
420
  })
691
421
  ]
692
422
  }),
693
- notification.description ? /* @__PURE__ */ jsx7("span", {
423
+ notification.description ? /* @__PURE__ */ jsx("span", {
694
424
  className: "text-muted-foreground line-clamp-2 text-xs font-normal",
695
425
  children: notification.description
696
426
  }) : null,
697
- notification.timestampLabel || notification.createdAt ? /* @__PURE__ */ jsx7("span", {
427
+ notification.timestampLabel || notification.createdAt ? /* @__PURE__ */ jsx("span", {
698
428
  className: "text-muted-foreground text-xs font-normal",
699
429
  children: notification.timestampLabel ?? formatNotificationDate(notification.createdAt, locale)
700
430
  }) : null
701
431
  ]
702
432
  });
703
- return /* @__PURE__ */ jsxs2("div", {
433
+ return /* @__PURE__ */ jsxs("div", {
704
434
  className: cn("relative flex min-w-0", unread && "bg-muted/70"),
705
435
  "data-unread": unread || undefined,
706
436
  children: [
707
- href ? /* @__PURE__ */ jsx7("a", {
437
+ href ? /* @__PURE__ */ jsx("a", {
708
438
  className: cn(buttonVariants({ variant: "ghost" }), actionClassName),
709
439
  href,
710
440
  onClick: (event) => {
@@ -715,17 +445,17 @@ function NotificationListItem({
715
445
  onNavigate(notification);
716
446
  },
717
447
  children: content
718
- }) : onNavigate ? /* @__PURE__ */ jsx7(Button, {
448
+ }) : onNavigate ? /* @__PURE__ */ jsx(Button, {
719
449
  className: actionClassName,
720
450
  onClick: () => onNavigate(notification),
721
451
  type: "button",
722
452
  variant: "ghost",
723
453
  children: content
724
- }) : /* @__PURE__ */ jsx7("div", {
454
+ }) : /* @__PURE__ */ jsx("div", {
725
455
  className: cn(rowClassName, "flex items-center text-sm font-medium"),
726
456
  children: content
727
457
  }),
728
- canArchive ? /* @__PURE__ */ jsx7(ArchiveButton, {
458
+ canArchive ? /* @__PURE__ */ jsx(ArchiveButton, {
729
459
  className: "absolute end-2 top-2",
730
460
  label: labels.archiveItem(notificationTitle(notification)),
731
461
  notificationIds: [notification.id],
@@ -739,19 +469,19 @@ function NotificationEmpty({
739
469
  icon,
740
470
  title
741
471
  }) {
742
- return /* @__PURE__ */ jsx7(Empty, {
472
+ return /* @__PURE__ */ jsx(Empty, {
743
473
  className: "min-h-48 p-6",
744
- children: /* @__PURE__ */ jsxs2(EmptyHeader, {
474
+ children: /* @__PURE__ */ jsxs(EmptyHeader, {
745
475
  children: [
746
- /* @__PURE__ */ jsx7(EmptyMedia, {
476
+ /* @__PURE__ */ jsx(EmptyMedia, {
747
477
  variant: "icon",
748
478
  children: icon
749
479
  }),
750
- /* @__PURE__ */ jsx7(EmptyTitle, {
480
+ /* @__PURE__ */ jsx(EmptyTitle, {
751
481
  className: "text-sm",
752
482
  children: title
753
483
  }),
754
- /* @__PURE__ */ jsx7(EmptyDescription, {
484
+ /* @__PURE__ */ jsx(EmptyDescription, {
755
485
  className: "text-xs",
756
486
  children: description
757
487
  })
@@ -775,7 +505,7 @@ function ArchiveButton({
775
505
  setPending(false);
776
506
  }
777
507
  };
778
- return /* @__PURE__ */ jsxs2(Button, {
508
+ return /* @__PURE__ */ jsxs(Button, {
779
509
  "aria-label": label,
780
510
  className,
781
511
  disabled: pending,
@@ -785,7 +515,7 @@ function ArchiveButton({
785
515
  type: "button",
786
516
  variant: showLabel ? "outline" : "ghost",
787
517
  children: [
788
- /* @__PURE__ */ jsx7(Archive, {
518
+ /* @__PURE__ */ jsx(Archive, {
789
519
  "data-icon": showLabel ? "inline-start" : undefined
790
520
  }),
791
521
  showLabel ? label : null
@@ -793,23 +523,23 @@ function ArchiveButton({
793
523
  });
794
524
  }
795
525
  function NotificationListLoading({ label }) {
796
- return /* @__PURE__ */ jsx7("div", {
526
+ return /* @__PURE__ */ jsx("div", {
797
527
  "aria-label": label,
798
528
  className: "flex flex-col gap-2 p-3",
799
529
  role: "status",
800
- children: [0, 1, 2].map((item) => /* @__PURE__ */ jsxs2("div", {
530
+ children: [0, 1, 2].map((item) => /* @__PURE__ */ jsxs("div", {
801
531
  className: "flex items-center gap-3 p-2",
802
532
  children: [
803
- /* @__PURE__ */ jsx7(Skeleton, {
533
+ /* @__PURE__ */ jsx(Skeleton, {
804
534
  className: "size-2 shrink-0 rounded-full"
805
535
  }),
806
- /* @__PURE__ */ jsxs2("div", {
536
+ /* @__PURE__ */ jsxs("div", {
807
537
  className: "flex flex-1 flex-col gap-2",
808
538
  children: [
809
- /* @__PURE__ */ jsx7(Skeleton, {
539
+ /* @__PURE__ */ jsx(Skeleton, {
810
540
  className: "h-4 w-4/5"
811
541
  }),
812
- /* @__PURE__ */ jsx7(Skeleton, {
542
+ /* @__PURE__ */ jsx(Skeleton, {
813
543
  className: "h-3 w-2/5"
814
544
  })
815
545
  ]