@krak-stack/registry 0.11.3 → 0.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +23 -9
  3. package/dist/components/agent/react.js +226 -1072
  4. package/dist/components/app-switcher/html.js +10 -53
  5. package/dist/components/app-switcher/react.js +29 -139
  6. package/dist/components/async-action-button/html.js +3 -34
  7. package/dist/components/async-action-button/react.d.ts +1 -1
  8. package/dist/components/async-action-button/react.js +8 -54
  9. package/dist/components/audit-log-table/react.js +555 -1265
  10. package/dist/components/bulk-list-input/html.js +3 -40
  11. package/dist/components/bulk-list-input/react.d.ts +1 -1
  12. package/dist/components/bulk-list-input/react.js +6 -59
  13. package/dist/components/code-block/html.js +1 -35
  14. package/dist/components/code-block/react.js +12 -59
  15. package/dist/components/color-input/html.js +2 -19
  16. package/dist/components/color-input/react.js +6 -97
  17. package/dist/components/copy-button/html.js +1 -35
  18. package/dist/components/copy-button/react.d.ts +1 -1
  19. package/dist/components/copy-button/react.js +7 -54
  20. package/dist/components/copy-value/html.js +11 -52
  21. package/dist/components/copy-value/react.js +25 -165
  22. package/dist/components/cron-input/html.js +2 -18
  23. package/dist/components/cron-input/react.js +15 -30
  24. package/dist/components/danger-confirmation/html.js +11 -57
  25. package/dist/components/danger-confirmation/react.js +26 -187
  26. package/dist/components/data-table/html.d.ts +12 -12
  27. package/dist/components/data-table/html.js +200 -174
  28. package/dist/components/data-table/react.js +549 -1259
  29. package/dist/components/date-input/html.js +19 -74
  30. package/dist/components/date-input/react.d.ts +1 -1
  31. package/dist/components/date-input/react.js +28 -313
  32. package/dist/components/docs/classes.d.ts +15 -0
  33. package/dist/components/docs/html.d.ts +55 -0
  34. package/dist/components/docs/html.js +837 -0
  35. package/dist/components/docs/index.d.ts +49 -0
  36. package/dist/components/docs/react.d.ts +10 -0
  37. package/dist/components/docs/react.js +949 -0
  38. package/dist/components/docs/schema.d.ts +49 -0
  39. package/dist/components/editable-text/html.js +6 -52
  40. package/dist/components/editable-text/react.js +13 -83
  41. package/dist/components/editing-locale-switcher/html.d.ts +2 -2
  42. package/dist/components/editing-locale-switcher/html.js +13 -43
  43. package/dist/components/editing-locale-switcher/react.js +17 -141
  44. package/dist/components/effect-form/react.js +249 -812
  45. package/dist/components/email-composer/react.js +62 -279
  46. package/dist/components/email-editor/html.js +13 -58
  47. package/dist/components/email-editor/react.js +187 -483
  48. package/dist/components/error-component/html.js +2 -47
  49. package/dist/components/error-component/react.js +33 -137
  50. package/dist/components/file-input/html.js +9 -40
  51. package/dist/components/file-input/react.js +39 -208
  52. package/dist/components/form/react.js +212 -777
  53. package/dist/components/hint/react.d.ts +15 -0
  54. package/dist/components/hint/react.js +133 -0
  55. package/dist/components/icon-input/html.js +9 -56
  56. package/dist/components/icon-input/react.js +43 -143
  57. package/dist/components/image-crop-editor/html.js +1 -35
  58. package/dist/components/image-crop-editor/react.js +21 -66
  59. package/dist/components/locale-switcher/html.js +8 -55
  60. package/dist/components/locale-switcher/react.js +21 -146
  61. package/dist/components/map-menu/html.d.ts +8 -8
  62. package/dist/components/map-menu/html.js +13 -72
  63. package/dist/components/map-menu/react.js +92 -309
  64. package/dist/components/markdown/html.js +1 -35
  65. package/dist/components/markdown/react.js +20 -64
  66. package/dist/components/notification-menu/html.js +14 -50
  67. package/dist/components/notification-menu/react.js +73 -343
  68. package/dist/components/pagination/html.js +17 -73
  69. package/dist/components/pagination/react.js +37 -200
  70. package/dist/components/phone-number-input/html.js +19 -57
  71. package/dist/components/phone-number-input/react.d.ts +1 -1
  72. package/dist/components/phone-number-input/react.js +43 -142
  73. package/dist/components/presence-transition/index.d.ts +2 -2
  74. package/dist/components/registry-previews/component-example.js +26 -126
  75. package/dist/components/rich-text-editor/html.d.ts +12 -12
  76. package/dist/components/rich-text-editor/html.js +12 -85
  77. package/dist/components/rich-text-editor/react.js +55 -272
  78. package/dist/components/search-menu/classes.d.ts +2 -0
  79. package/dist/components/search-menu/html.d.ts +2 -0
  80. package/dist/components/search-menu/html.js +40 -73
  81. package/dist/components/search-menu/index.d.ts +27 -2
  82. package/dist/components/search-menu/react.d.ts +1 -1
  83. package/dist/components/search-menu/react.js +59 -280
  84. package/dist/components/search-menu/schema.d.ts +1 -0
  85. package/dist/components/select-with-custom-input/html.d.ts +2 -2
  86. package/dist/components/select-with-custom-input/html.js +13 -48
  87. package/dist/components/select-with-custom-input/react.js +22 -146
  88. package/dist/components/sidebar-layout/html.d.ts +16 -6
  89. package/dist/components/sidebar-layout/html.js +83 -69
  90. package/dist/components/sidebar-layout/index.d.ts +16 -0
  91. package/dist/components/sidebar-layout/react.js +105 -698
  92. package/dist/components/stats-card/react.js +13 -58
  93. package/dist/components/support/html.js +14 -69
  94. package/dist/components/support/react.js +74 -320
  95. package/dist/components/theme-switcher/html.js +11 -55
  96. package/dist/components/theme-switcher/react.js +28 -152
  97. package/dist/components/time-input/html.d.ts +2 -2
  98. package/dist/components/time-input/html.js +8 -53
  99. package/dist/components/time-input/react.js +34 -188
  100. package/dist/components/timezone-input/html.js +11 -67
  101. package/dist/components/timezone-input/react.js +41 -143
  102. package/dist/components/toast/html.d.ts +6 -6
  103. package/dist/components/toast/html.js +13 -46
  104. package/dist/components/tracking-notice/react.js +39 -188
  105. package/dist/components/unsaved-changes-guard/html.js +9 -43
  106. package/dist/components/unsaved-changes-guard/react.js +19 -169
  107. package/dist/components/upload-attachment/html.d.ts +4 -4
  108. package/dist/components/upload-attachment/html.js +4 -35
  109. package/dist/components/upload-attachment/react.js +25 -164
  110. package/dist/components/virtualized-combobox/html.js +10 -35
  111. package/dist/components/virtualized-combobox/react.js +28 -129
  112. package/dist/components/webhook-delivery-table/html.js +211 -184
  113. package/dist/components/webhook-delivery-table/react.js +585 -1362
  114. package/dist/lib/docs.integrations.server.js +150 -202
  115. package/dist/lib/docs.js +305 -1085
  116. package/dist/lib/docs.server.js +134 -186
  117. package/dist/lib/documentation-toolkit.js +144 -196
  118. package/dist/services/agent/client/index.js +226 -1072
  119. package/dist/services/notification/client/index.js +73 -343
  120. package/dist/services/notification/public.js +73 -343
  121. package/package.json +4 -8
  122. package/dist/components/effectcn/alert-dialog.d.ts +0 -13
  123. package/dist/components/effectcn/button.d.ts +0 -31
  124. package/dist/components/effectcn/calendar.d.ts +0 -12
  125. package/dist/components/effectcn/checkbox.d.ts +0 -10
  126. package/dist/components/effectcn/combobox.d.ts +0 -25
  127. package/dist/components/effectcn/dialog.d.ts +0 -19
  128. package/dist/components/effectcn/field.d.ts +0 -11
  129. package/dist/components/effectcn/file-drop.d.ts +0 -8
  130. package/dist/components/effectcn/input.d.ts +0 -26
  131. package/dist/components/effectcn/menu.d.ts +0 -85
  132. package/dist/components/effectcn/menubar.d.ts +0 -8
  133. package/dist/components/effectcn/popover.d.ts +0 -18
  134. package/dist/components/effectcn/scroll-area.d.ts +0 -12
  135. package/dist/components/effectcn/select.d.ts +0 -68
  136. package/dist/components/effectcn/toast.d.ts +0 -29
  137. package/dist/components/ui/alert-dialog.d.ts +0 -18
  138. package/dist/components/ui/alert.d.ts +0 -10
  139. package/dist/components/ui/attachment.d.ts +0 -23
  140. package/dist/components/ui/badge.d.ts +0 -7
  141. package/dist/components/ui/bubble.d.ts +0 -16
  142. package/dist/components/ui/button.d.ts +0 -8
  143. package/dist/components/ui/calendar.d.ts +0 -10
  144. package/dist/components/ui/card.d.ts +0 -11
  145. package/dist/components/ui/checkbox.d.ts +0 -3
  146. package/dist/components/ui/collapsible.d.ts +0 -5
  147. package/dist/components/ui/command.d.ts +0 -18
  148. package/dist/components/ui/dialog.d.ts +0 -17
  149. package/dist/components/ui/dropdown-menu.d.ts +0 -29
  150. package/dist/components/ui/empty.d.ts +0 -11
  151. package/dist/components/ui/field.d.ts +0 -24
  152. package/dist/components/ui/input-group.d.ts +0 -17
  153. package/dist/components/ui/input.d.ts +0 -3
  154. package/dist/components/ui/item.d.ts +0 -22
  155. package/dist/components/ui/label.d.ts +0 -3
  156. package/dist/components/ui/menubar.d.ts +0 -29
  157. package/dist/components/ui/message-scroller.d.ts +0 -10
  158. package/dist/components/ui/message.d.ts +0 -10
  159. package/dist/components/ui/popover.d.ts +0 -9
  160. package/dist/components/ui/scroll-area.d.ts +0 -4
  161. package/dist/components/ui/select.d.ts +0 -15
  162. package/dist/components/ui/select.js +0 -159
  163. package/dist/components/ui/separator.d.ts +0 -3
  164. package/dist/components/ui/sheet.d.ts +0 -14
  165. package/dist/components/ui/sidebar.d.ts +0 -63
  166. package/dist/components/ui/skeleton.d.ts +0 -2
  167. package/dist/components/ui/table.d.ts +0 -10
  168. package/dist/components/ui/tabs.d.ts +0 -10
  169. package/dist/components/ui/textarea.d.ts +0 -3
  170. package/dist/components/ui/tooltip.d.ts +0 -6
  171. package/dist/components/ui/trace.d.ts +0 -18
  172. package/dist/lib/effectcn-form.d.ts +0 -3
  173. package/dist/lib/effectcn-form.js +0 -54
@@ -17,238 +17,21 @@ import {
17
17
  Unlink,
18
18
  Braces
19
19
  } from "lucide-react";
20
-
21
- // ../../src/components/ui/button.tsx
22
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
23
- import { cva } from "class-variance-authority";
24
-
25
- // ../../src/lib/utils.ts
26
- import { cn } from "cn";
27
-
28
- // ../../src/components/ui/button.tsx
29
- import { jsx } from "react/jsx-runtime";
30
- 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", {
31
- variants: {
32
- variant: {
33
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
34
- 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",
35
- 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",
36
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
37
- 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",
38
- link: "text-primary underline-offset-4 hover:underline"
39
- },
40
- size: {
41
- 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",
42
- 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",
43
- 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",
44
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
45
- icon: "size-9",
46
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
47
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
48
- "icon-lg": "size-10"
49
- }
50
- },
51
- defaultVariants: {
52
- variant: "default",
53
- size: "default"
54
- }
55
- });
56
- function Button({
57
- className,
58
- variant = "default",
59
- size = "default",
60
- ...props
61
- }) {
62
- return /* @__PURE__ */ jsx(ButtonPrimitive, {
63
- "data-slot": "button",
64
- className: cn(buttonVariants({ variant, size, className })),
65
- ...props
66
- });
67
- }
68
-
69
- // ../../src/components/ui/input.tsx
70
- import { Input as InputPrimitive } from "@base-ui/react/input";
71
- import { jsx as jsx2 } from "react/jsx-runtime";
72
- function Input({ className, type, ...props }) {
73
- return /* @__PURE__ */ jsx2(InputPrimitive, {
74
- type,
75
- "data-slot": "input",
76
- className: cn("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", className),
77
- ...props
78
- });
79
- }
80
-
81
- // ../../src/components/ui/select.tsx
82
- import { Select as SelectPrimitive } from "@base-ui/react/select";
83
- import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from "lucide-react";
84
- import { jsx as jsx3, jsxs } from "react/jsx-runtime";
85
- "use client";
86
- var Select = SelectPrimitive.Root;
87
- function SelectValue({ className, ...props }) {
88
- return /* @__PURE__ */ jsx3(SelectPrimitive.Value, {
89
- "data-slot": "select-value",
90
- className: cn("flex flex-1 text-left", className),
91
- ...props
92
- });
93
- }
94
- function SelectTrigger({
95
- className,
96
- size = "default",
97
- children,
98
- ...props
99
- }) {
100
- return /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, {
101
- "data-slot": "select-trigger",
102
- "data-size": size,
103
- className: cn("border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 flex w-fit items-center justify-between gap-1.5 rounded-md border bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
104
- ...props,
105
- children: [
106
- children,
107
- /* @__PURE__ */ jsx3(SelectPrimitive.Icon, {
108
- render: /* @__PURE__ */ jsx3(ChevronDownIcon, {
109
- className: "text-muted-foreground pointer-events-none size-4"
110
- })
111
- })
112
- ]
113
- });
114
- }
115
- function SelectContent({
116
- className,
117
- children,
118
- side = "bottom",
119
- sideOffset = 4,
120
- align = "start",
121
- alignOffset = 0,
122
- alignItemWithTrigger = false,
123
- ...props
124
- }) {
125
- return /* @__PURE__ */ jsx3(SelectPrimitive.Portal, {
126
- children: /* @__PURE__ */ jsx3(SelectPrimitive.Positioner, {
127
- side,
128
- sideOffset,
129
- align,
130
- alignOffset,
131
- alignItemWithTrigger,
132
- className: "isolate z-50",
133
- children: /* @__PURE__ */ jsxs(SelectPrimitive.Popup, {
134
- "data-slot": "select-content",
135
- "data-align-trigger": alignItemWithTrigger,
136
- className: cn("bg-popover text-popover-foreground ring-foreground/10 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 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-0 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md shadow-md ring-1 duration-100 data-[align-trigger=true]:animate-none", className),
137
- ...props,
138
- children: [
139
- /* @__PURE__ */ jsx3(SelectScrollUpButton, {}),
140
- /* @__PURE__ */ jsx3(SelectPrimitive.List, {
141
- children
142
- }),
143
- /* @__PURE__ */ jsx3(SelectScrollDownButton, {})
144
- ]
145
- })
146
- })
147
- });
148
- }
149
- function SelectItem({
150
- className,
151
- children,
152
- ...props
153
- }) {
154
- return /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
155
- "data-slot": "select-item",
156
- className: cn("focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className),
157
- ...props,
158
- children: [
159
- /* @__PURE__ */ jsx3(SelectPrimitive.ItemText, {
160
- className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
161
- children
162
- }),
163
- /* @__PURE__ */ jsx3(SelectPrimitive.ItemIndicator, {
164
- render: /* @__PURE__ */ jsx3("span", {
165
- className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center"
166
- }),
167
- children: /* @__PURE__ */ jsx3(CheckIcon, {
168
- className: "pointer-events-none"
169
- })
170
- })
171
- ]
172
- });
173
- }
174
- function SelectScrollUpButton({
175
- className,
176
- ...props
177
- }) {
178
- return /* @__PURE__ */ jsx3(SelectPrimitive.ScrollUpArrow, {
179
- "data-slot": "select-scroll-up-button",
180
- className: cn("bg-popover top-0 z-10 flex w-full cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4", className),
181
- ...props,
182
- children: /* @__PURE__ */ jsx3(ChevronUpIcon, {})
183
- });
184
- }
185
- function SelectScrollDownButton({
186
- className,
187
- ...props
188
- }) {
189
- return /* @__PURE__ */ jsx3(SelectPrimitive.ScrollDownArrow, {
190
- "data-slot": "select-scroll-down-button",
191
- className: cn("bg-popover bottom-0 z-10 flex w-full cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4", className),
192
- ...props,
193
- children: /* @__PURE__ */ jsx3(ChevronDownIcon, {})
194
- });
195
- }
196
-
197
- // ../../src/components/ui/dropdown-menu.tsx
198
- import { Menu as MenuPrimitive } from "@base-ui/react/menu";
199
- import { ChevronRightIcon, CheckIcon as CheckIcon2 } from "lucide-react";
200
- import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
201
- function DropdownMenu({ ...props }) {
202
- return /* @__PURE__ */ jsx4(MenuPrimitive.Root, {
203
- "data-slot": "dropdown-menu",
204
- ...props
205
- });
206
- }
207
- function DropdownMenuTrigger({ ...props }) {
208
- return /* @__PURE__ */ jsx4(MenuPrimitive.Trigger, {
209
- "data-slot": "dropdown-menu-trigger",
210
- ...props
211
- });
212
- }
213
- function DropdownMenuContent({
214
- align = "start",
215
- alignOffset = 0,
216
- side = "bottom",
217
- sideOffset = 4,
218
- className,
219
- ...props
220
- }) {
221
- return /* @__PURE__ */ jsx4(MenuPrimitive.Portal, {
222
- children: /* @__PURE__ */ jsx4(MenuPrimitive.Positioner, {
223
- className: "isolate z-50 outline-none",
224
- align,
225
- alignOffset,
226
- side,
227
- sideOffset,
228
- children: /* @__PURE__ */ jsx4(MenuPrimitive.Popup, {
229
- "data-slot": "dropdown-menu-content",
230
- className: cn("z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none 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:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95", className),
231
- ...props
232
- })
233
- })
234
- });
235
- }
236
- function DropdownMenuItem({
237
- className,
238
- inset,
239
- variant = "default",
240
- ...props
241
- }) {
242
- return /* @__PURE__ */ jsx4(MenuPrimitive.Item, {
243
- "data-slot": "dropdown-menu-item",
244
- "data-inset": inset,
245
- "data-variant": variant,
246
- className: cn("group/dropdown-menu-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive", className),
247
- ...props
248
- });
249
- }
250
-
251
- // ../../src/components/rich-text-editor/react.tsx
20
+ import { Button } from "@/components/ui/button";
21
+ import { Input } from "@/components/ui/input";
22
+ import {
23
+ Select,
24
+ SelectContent,
25
+ SelectItem,
26
+ SelectTrigger,
27
+ SelectValue
28
+ } from "@/components/ui/select";
29
+ import {
30
+ DropdownMenu,
31
+ DropdownMenuContent,
32
+ DropdownMenuItem,
33
+ DropdownMenuTrigger
34
+ } from "@/components/ui/dropdown-menu";
252
35
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
253
36
 
254
37
  // ../../src/lib/rich-text/schema.ts
@@ -687,14 +470,14 @@ var runEditorAction = (editor, action, variables) => {
687
470
  var editorContentClass = "min-h-40 px-4 py-3 outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset [&_h1]:text-2xl [&_h2]:text-xl [&_h3]:text-lg [&_h1]:font-semibold [&_h2]:font-semibold [&_h3]:font-semibold [&_ul]:list-disc [&_ol]:list-decimal [&_ul]:pl-6 [&_ol]:pl-6 [&_a]:underline [&_blockquote]:border-l-2 [&_blockquote]:pl-4 [&_pre]:rounded [&_pre]:bg-muted [&_pre]:p-3";
688
471
 
689
472
  // ../../src/components/rich-text-editor/react.tsx
690
- import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
473
+ import { jsx, jsxs } from "react/jsx-runtime";
691
474
  var ToolButton = ({
692
475
  label,
693
476
  children,
694
477
  onClick,
695
478
  pressed,
696
479
  disabled
697
- }) => /* @__PURE__ */ jsx5(Button, {
480
+ }) => /* @__PURE__ */ jsx(Button, {
698
481
  type: "button",
699
482
  size: "icon-sm",
700
483
  variant: pressed ? "secondary" : "ghost",
@@ -816,32 +599,32 @@ var RichTextEditor = ({
816
599
  const act = (action) => send(RichTextEditorMessage.Action({ action }));
817
600
  const format = (kind) => act(EditorAction.Format({ kind }));
818
601
  const block = editor?.isActive("bulletList") ? "bullet" : editor?.isActive("orderedList") ? "numbered" : editor?.isActive("heading") ? "heading" : "paragraph";
819
- return /* @__PURE__ */ jsxs3("div", {
602
+ return /* @__PURE__ */ jsxs("div", {
820
603
  "data-slot": "rich-text-editor",
821
604
  className: `bg-background text-foreground overflow-hidden rounded-xl border ${className ?? ""}`,
822
605
  children: [
823
- /* @__PURE__ */ jsxs3("div", {
606
+ /* @__PURE__ */ jsxs("div", {
824
607
  role: "group",
825
608
  "aria-label": copy.toolbar,
826
609
  className: richTextEditorClasses.toolbar,
827
610
  children: [
828
- /* @__PURE__ */ jsx5(ToolButton, {
611
+ /* @__PURE__ */ jsx(ToolButton, {
829
612
  label: copy.undo,
830
613
  disabled: disabled || !editor?.can().undo(),
831
614
  onClick: () => {
832
615
  format("undo");
833
616
  },
834
- children: /* @__PURE__ */ jsx5(Undo2, {})
617
+ children: /* @__PURE__ */ jsx(Undo2, {})
835
618
  }),
836
- /* @__PURE__ */ jsx5(ToolButton, {
619
+ /* @__PURE__ */ jsx(ToolButton, {
837
620
  label: copy.redo,
838
621
  disabled: disabled || !editor?.can().redo(),
839
622
  onClick: () => {
840
623
  format("redo");
841
624
  },
842
- children: /* @__PURE__ */ jsx5(Redo2, {})
625
+ children: /* @__PURE__ */ jsx(Redo2, {})
843
626
  }),
844
- /* @__PURE__ */ jsxs3(Select, {
627
+ /* @__PURE__ */ jsxs(Select, {
845
628
  disabled: disabled || !editor,
846
629
  value: block,
847
630
  items: [
@@ -855,30 +638,30 @@ var RichTextEditor = ({
855
638
  format(kind);
856
639
  },
857
640
  children: [
858
- /* @__PURE__ */ jsx5(SelectTrigger, {
641
+ /* @__PURE__ */ jsx(SelectTrigger, {
859
642
  size: "sm",
860
643
  "aria-label": copy.paragraph,
861
644
  className: "max-w-40 text-xs",
862
- children: /* @__PURE__ */ jsx5(SelectValue, {})
645
+ children: /* @__PURE__ */ jsx(SelectValue, {})
863
646
  }),
864
- /* @__PURE__ */ jsxs3(SelectContent, {
647
+ /* @__PURE__ */ jsxs(SelectContent, {
865
648
  align: "start",
866
649
  alignItemWithTrigger: false,
867
650
  finalFocus: focusEditor,
868
651
  children: [
869
- /* @__PURE__ */ jsx5(SelectItem, {
652
+ /* @__PURE__ */ jsx(SelectItem, {
870
653
  value: "paragraph",
871
654
  children: copy.paragraph
872
655
  }),
873
- /* @__PURE__ */ jsx5(SelectItem, {
656
+ /* @__PURE__ */ jsx(SelectItem, {
874
657
  value: "heading",
875
658
  children: copy.heading
876
659
  }),
877
- /* @__PURE__ */ jsx5(SelectItem, {
660
+ /* @__PURE__ */ jsx(SelectItem, {
878
661
  value: "bullet",
879
662
  children: copy.bullet
880
663
  }),
881
- /* @__PURE__ */ jsx5(SelectItem, {
664
+ /* @__PURE__ */ jsx(SelectItem, {
882
665
  value: "numbered",
883
666
  children: copy.numbered
884
667
  })
@@ -886,61 +669,61 @@ var RichTextEditor = ({
886
669
  })
887
670
  ]
888
671
  }),
889
- /* @__PURE__ */ jsx5(ToolButton, {
672
+ /* @__PURE__ */ jsx(ToolButton, {
890
673
  label: copy.bold,
891
674
  disabled: disabled || !editor,
892
675
  pressed: editor?.isActive("bold"),
893
676
  onClick: () => {
894
677
  format("bold");
895
678
  },
896
- children: /* @__PURE__ */ jsx5(Bold, {})
679
+ children: /* @__PURE__ */ jsx(Bold, {})
897
680
  }),
898
- /* @__PURE__ */ jsx5(ToolButton, {
681
+ /* @__PURE__ */ jsx(ToolButton, {
899
682
  label: copy.italic,
900
683
  disabled: disabled || !editor,
901
684
  pressed: editor?.isActive("italic"),
902
685
  onClick: () => {
903
686
  format("italic");
904
687
  },
905
- children: /* @__PURE__ */ jsx5(Italic, {})
688
+ children: /* @__PURE__ */ jsx(Italic, {})
906
689
  }),
907
- /* @__PURE__ */ jsx5(ToolButton, {
690
+ /* @__PURE__ */ jsx(ToolButton, {
908
691
  label: copy.underline,
909
692
  disabled: disabled || !editor,
910
693
  pressed: editor?.isActive("underline"),
911
694
  onClick: () => {
912
695
  format("underline");
913
696
  },
914
- children: /* @__PURE__ */ jsx5(Underline, {})
697
+ children: /* @__PURE__ */ jsx(Underline, {})
915
698
  }),
916
- /* @__PURE__ */ jsx5(ToolButton, {
699
+ /* @__PURE__ */ jsx(ToolButton, {
917
700
  label: copy.link,
918
701
  disabled: disabled || !editor,
919
702
  pressed: linkOpen || editor?.isActive("link"),
920
703
  onClick: () => send(RichTextEditorMessage.ToggleLink()),
921
- children: /* @__PURE__ */ jsx5(Link2, {})
704
+ children: /* @__PURE__ */ jsx(Link2, {})
922
705
  }),
923
- variables.length ? /* @__PURE__ */ jsxs3(DropdownMenu, {
706
+ variables.length ? /* @__PURE__ */ jsxs(DropdownMenu, {
924
707
  children: [
925
- /* @__PURE__ */ jsxs3(DropdownMenuTrigger, {
708
+ /* @__PURE__ */ jsxs(DropdownMenuTrigger, {
926
709
  disabled: disabled || !editor,
927
- render: /* @__PURE__ */ jsx5(Button, {
710
+ render: /* @__PURE__ */ jsx(Button, {
928
711
  type: "button",
929
712
  variant: "outline",
930
713
  size: "sm",
931
714
  className: "ml-auto text-xs"
932
715
  }),
933
716
  children: [
934
- /* @__PURE__ */ jsx5(Braces, {
717
+ /* @__PURE__ */ jsx(Braces, {
935
718
  "aria-hidden": true
936
719
  }),
937
720
  copy.variable
938
721
  ]
939
722
  }),
940
- /* @__PURE__ */ jsx5(DropdownMenuContent, {
723
+ /* @__PURE__ */ jsx(DropdownMenuContent, {
941
724
  align: "end",
942
725
  finalFocus: focusEditor,
943
- children: variables.map((variable) => /* @__PURE__ */ jsx5(DropdownMenuItem, {
726
+ children: variables.map((variable) => /* @__PURE__ */ jsx(DropdownMenuItem, {
944
727
  onClick: () => {
945
728
  if (disabled || !editor)
946
729
  return;
@@ -953,14 +736,14 @@ var RichTextEditor = ({
953
736
  }) : null
954
737
  ]
955
738
  }),
956
- linkOpen ? /* @__PURE__ */ jsxs3("div", {
739
+ linkOpen ? /* @__PURE__ */ jsxs("div", {
957
740
  className: richTextEditorClasses.linkForm,
958
741
  children: [
959
- /* @__PURE__ */ jsxs3("label", {
742
+ /* @__PURE__ */ jsxs("label", {
960
743
  className: richTextEditorClasses.linkField,
961
744
  children: [
962
745
  copy.linkUrl,
963
- /* @__PURE__ */ jsx5(Input, {
746
+ /* @__PURE__ */ jsx(Input, {
964
747
  value: link,
965
748
  "aria-invalid": linkError,
966
749
  placeholder: "https://",
@@ -968,14 +751,14 @@ var RichTextEditor = ({
968
751
  })
969
752
  ]
970
753
  }),
971
- /* @__PURE__ */ jsx5(Button, {
754
+ /* @__PURE__ */ jsx(Button, {
972
755
  type: "button",
973
756
  size: "sm",
974
757
  disabled,
975
758
  onClick: () => send(RichTextEditorMessage.ApplyLink()),
976
759
  children: copy.apply
977
760
  }),
978
- editor?.isActive("link") ? /* @__PURE__ */ jsxs3(Button, {
761
+ editor?.isActive("link") ? /* @__PURE__ */ jsxs(Button, {
979
762
  type: "button",
980
763
  size: "sm",
981
764
  variant: "outline",
@@ -984,31 +767,31 @@ var RichTextEditor = ({
984
767
  format("unlink");
985
768
  },
986
769
  children: [
987
- /* @__PURE__ */ jsx5(Unlink, {
770
+ /* @__PURE__ */ jsx(Unlink, {
988
771
  "aria-hidden": true
989
772
  }),
990
773
  copy.unlink
991
774
  ]
992
775
  }) : null,
993
- /* @__PURE__ */ jsx5(Button, {
776
+ /* @__PURE__ */ jsx(Button, {
994
777
  type: "button",
995
778
  size: "sm",
996
779
  variant: "ghost",
997
780
  onClick: () => send(RichTextEditorMessage.CloseLink()),
998
781
  children: copy.cancel
999
782
  }),
1000
- linkError ? /* @__PURE__ */ jsx5("p", {
783
+ linkError ? /* @__PURE__ */ jsx("p", {
1001
784
  role: "alert",
1002
785
  className: richTextEditorClasses.linkError,
1003
786
  children: copy.invalidLink
1004
787
  }) : null
1005
788
  ]
1006
789
  }) : null,
1007
- /* @__PURE__ */ jsx5(EditorContent, {
790
+ /* @__PURE__ */ jsx(EditorContent, {
1008
791
  editor,
1009
792
  style: contentStyle
1010
793
  }),
1011
- error ? /* @__PURE__ */ jsx5("p", {
794
+ error ? /* @__PURE__ */ jsx("p", {
1012
795
  id: `${id}-error`,
1013
796
  role: "alert",
1014
797
  className: richTextEditorClasses.editorError,
@@ -1,4 +1,6 @@
1
1
  import type { SearchMenuClassesOverrides } from "./schema.js";
2
+ export declare const searchMenuDialogPadding = "px-0 pt-0 pb-2";
3
+ export declare const searchMenuShortcutClass = "bg-muted text-muted-foreground pointer-events-none hidden h-5 shrink-0 items-center justify-center rounded border px-1.5 font-mono text-[11px] font-medium leading-none sm:inline-flex";
2
4
  export declare const searchMenuClasses: {
3
5
  readonly resultTitle: "truncate font-medium";
4
6
  readonly resultDescription: "text-muted-foreground truncate text-xs";
@@ -42,6 +42,7 @@ declare const Props: Schema.Struct<{
42
42
  readonly className: Schema.optional<Schema.String>;
43
43
  readonly query: Schema.optional<Schema.String>;
44
44
  readonly enableShortcut: Schema.optional<Schema.Boolean>;
45
+ readonly shortcutScope: Schema.optional<Schema.Literals<readonly ["document", "trigger"]>>;
45
46
  readonly open: Schema.optional<Schema.Boolean>;
46
47
  readonly shouldFilter: Schema.optional<Schema.Boolean>;
47
48
  readonly groups: Schema.$Array<Schema.Struct<{
@@ -85,6 +86,7 @@ export declare const SearchMenu: import("effect/ui/Component").Component<"Search
85
86
  readonly className?: string | undefined;
86
87
  readonly query?: string | undefined;
87
88
  readonly enableShortcut?: boolean | undefined;
89
+ readonly shortcutScope?: "document" | "trigger" | undefined;
88
90
  readonly open?: boolean | undefined;
89
91
  readonly shouldFilter?: boolean | undefined;
90
92
  readonly groups: readonly {