@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
@@ -21,238 +21,21 @@ import {
21
21
  Unlink,
22
22
  Braces
23
23
  } from "lucide-react";
24
-
25
- // ../../src/components/ui/button.tsx
26
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
27
- import { cva } from "class-variance-authority";
28
-
29
- // ../../src/lib/utils.ts
30
- import { cn } from "cn";
31
-
32
- // ../../src/components/ui/button.tsx
33
- import { jsx } from "react/jsx-runtime";
34
- 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", {
35
- variants: {
36
- variant: {
37
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
38
- 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",
39
- 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",
40
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
41
- 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",
42
- link: "text-primary underline-offset-4 hover:underline"
43
- },
44
- size: {
45
- 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",
46
- 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",
47
- 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",
48
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
49
- icon: "size-9",
50
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
51
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
52
- "icon-lg": "size-10"
53
- }
54
- },
55
- defaultVariants: {
56
- variant: "default",
57
- size: "default"
58
- }
59
- });
60
- function Button({
61
- className,
62
- variant = "default",
63
- size = "default",
64
- ...props
65
- }) {
66
- return /* @__PURE__ */ jsx(ButtonPrimitive, {
67
- "data-slot": "button",
68
- className: cn(buttonVariants({ variant, size, className })),
69
- ...props
70
- });
71
- }
72
-
73
- // ../../src/components/ui/input.tsx
74
- import { Input as InputPrimitive } from "@base-ui/react/input";
75
- import { jsx as jsx2 } from "react/jsx-runtime";
76
- function Input({ className, type, ...props }) {
77
- return /* @__PURE__ */ jsx2(InputPrimitive, {
78
- type,
79
- "data-slot": "input",
80
- 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),
81
- ...props
82
- });
83
- }
84
-
85
- // ../../src/components/ui/select.tsx
86
- import { Select as SelectPrimitive } from "@base-ui/react/select";
87
- import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from "lucide-react";
88
- import { jsx as jsx3, jsxs } from "react/jsx-runtime";
89
- "use client";
90
- var Select = SelectPrimitive.Root;
91
- function SelectValue({ className, ...props }) {
92
- return /* @__PURE__ */ jsx3(SelectPrimitive.Value, {
93
- "data-slot": "select-value",
94
- className: cn("flex flex-1 text-left", className),
95
- ...props
96
- });
97
- }
98
- function SelectTrigger({
99
- className,
100
- size = "default",
101
- children,
102
- ...props
103
- }) {
104
- return /* @__PURE__ */ jsxs(SelectPrimitive.Trigger, {
105
- "data-slot": "select-trigger",
106
- "data-size": size,
107
- 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),
108
- ...props,
109
- children: [
110
- children,
111
- /* @__PURE__ */ jsx3(SelectPrimitive.Icon, {
112
- render: /* @__PURE__ */ jsx3(ChevronDownIcon, {
113
- className: "text-muted-foreground pointer-events-none size-4"
114
- })
115
- })
116
- ]
117
- });
118
- }
119
- function SelectContent({
120
- className,
121
- children,
122
- side = "bottom",
123
- sideOffset = 4,
124
- align = "start",
125
- alignOffset = 0,
126
- alignItemWithTrigger = false,
127
- ...props
128
- }) {
129
- return /* @__PURE__ */ jsx3(SelectPrimitive.Portal, {
130
- children: /* @__PURE__ */ jsx3(SelectPrimitive.Positioner, {
131
- side,
132
- sideOffset,
133
- align,
134
- alignOffset,
135
- alignItemWithTrigger,
136
- className: "isolate z-50",
137
- children: /* @__PURE__ */ jsxs(SelectPrimitive.Popup, {
138
- "data-slot": "select-content",
139
- "data-align-trigger": alignItemWithTrigger,
140
- 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),
141
- ...props,
142
- children: [
143
- /* @__PURE__ */ jsx3(SelectScrollUpButton, {}),
144
- /* @__PURE__ */ jsx3(SelectPrimitive.List, {
145
- children
146
- }),
147
- /* @__PURE__ */ jsx3(SelectScrollDownButton, {})
148
- ]
149
- })
150
- })
151
- });
152
- }
153
- function SelectItem({
154
- className,
155
- children,
156
- ...props
157
- }) {
158
- return /* @__PURE__ */ jsxs(SelectPrimitive.Item, {
159
- "data-slot": "select-item",
160
- 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),
161
- ...props,
162
- children: [
163
- /* @__PURE__ */ jsx3(SelectPrimitive.ItemText, {
164
- className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
165
- children
166
- }),
167
- /* @__PURE__ */ jsx3(SelectPrimitive.ItemIndicator, {
168
- render: /* @__PURE__ */ jsx3("span", {
169
- className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center"
170
- }),
171
- children: /* @__PURE__ */ jsx3(CheckIcon, {
172
- className: "pointer-events-none"
173
- })
174
- })
175
- ]
176
- });
177
- }
178
- function SelectScrollUpButton({
179
- className,
180
- ...props
181
- }) {
182
- return /* @__PURE__ */ jsx3(SelectPrimitive.ScrollUpArrow, {
183
- "data-slot": "select-scroll-up-button",
184
- 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),
185
- ...props,
186
- children: /* @__PURE__ */ jsx3(ChevronUpIcon, {})
187
- });
188
- }
189
- function SelectScrollDownButton({
190
- className,
191
- ...props
192
- }) {
193
- return /* @__PURE__ */ jsx3(SelectPrimitive.ScrollDownArrow, {
194
- "data-slot": "select-scroll-down-button",
195
- 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),
196
- ...props,
197
- children: /* @__PURE__ */ jsx3(ChevronDownIcon, {})
198
- });
199
- }
200
-
201
- // ../../src/components/ui/dropdown-menu.tsx
202
- import { Menu as MenuPrimitive } from "@base-ui/react/menu";
203
- import { ChevronRightIcon, CheckIcon as CheckIcon2 } from "lucide-react";
204
- import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
205
- function DropdownMenu({ ...props }) {
206
- return /* @__PURE__ */ jsx4(MenuPrimitive.Root, {
207
- "data-slot": "dropdown-menu",
208
- ...props
209
- });
210
- }
211
- function DropdownMenuTrigger({ ...props }) {
212
- return /* @__PURE__ */ jsx4(MenuPrimitive.Trigger, {
213
- "data-slot": "dropdown-menu-trigger",
214
- ...props
215
- });
216
- }
217
- function DropdownMenuContent({
218
- align = "start",
219
- alignOffset = 0,
220
- side = "bottom",
221
- sideOffset = 4,
222
- className,
223
- ...props
224
- }) {
225
- return /* @__PURE__ */ jsx4(MenuPrimitive.Portal, {
226
- children: /* @__PURE__ */ jsx4(MenuPrimitive.Positioner, {
227
- className: "isolate z-50 outline-none",
228
- align,
229
- alignOffset,
230
- side,
231
- sideOffset,
232
- children: /* @__PURE__ */ jsx4(MenuPrimitive.Popup, {
233
- "data-slot": "dropdown-menu-content",
234
- 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),
235
- ...props
236
- })
237
- })
238
- });
239
- }
240
- function DropdownMenuItem({
241
- className,
242
- inset,
243
- variant = "default",
244
- ...props
245
- }) {
246
- return /* @__PURE__ */ jsx4(MenuPrimitive.Item, {
247
- "data-slot": "dropdown-menu-item",
248
- "data-inset": inset,
249
- "data-variant": variant,
250
- 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),
251
- ...props
252
- });
253
- }
254
-
255
- // ../../src/components/rich-text-editor/react.tsx
24
+ import { Button } from "@/components/ui/button";
25
+ import { Input } from "@/components/ui/input";
26
+ import {
27
+ Select,
28
+ SelectContent,
29
+ SelectItem,
30
+ SelectTrigger,
31
+ SelectValue
32
+ } from "@/components/ui/select";
33
+ import {
34
+ DropdownMenu,
35
+ DropdownMenuContent,
36
+ DropdownMenuItem,
37
+ DropdownMenuTrigger
38
+ } from "@/components/ui/dropdown-menu";
256
39
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
257
40
 
258
41
  // ../../src/lib/rich-text/schema.ts
@@ -691,14 +474,14 @@ var runEditorAction = (editor, action, variables) => {
691
474
  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";
692
475
 
693
476
  // ../../src/components/rich-text-editor/react.tsx
694
- import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
477
+ import { jsx, jsxs } from "react/jsx-runtime";
695
478
  var ToolButton = ({
696
479
  label,
697
480
  children,
698
481
  onClick,
699
482
  pressed,
700
483
  disabled
701
- }) => /* @__PURE__ */ jsx5(Button, {
484
+ }) => /* @__PURE__ */ jsx(Button, {
702
485
  type: "button",
703
486
  size: "icon-sm",
704
487
  variant: pressed ? "secondary" : "ghost",
@@ -804,32 +587,32 @@ var RichTextEditor = ({
804
587
  const act = (action) => send(RichTextEditorMessage.Action({ action }));
805
588
  const format = (kind) => act(EditorAction.Format({ kind }));
806
589
  const block = editor?.isActive("bulletList") ? "bullet" : editor?.isActive("orderedList") ? "numbered" : editor?.isActive("heading") ? "heading" : "paragraph";
807
- return /* @__PURE__ */ jsxs3("div", {
590
+ return /* @__PURE__ */ jsxs("div", {
808
591
  "data-slot": "rich-text-editor",
809
592
  className: `bg-background text-foreground overflow-hidden rounded-xl border ${className ?? ""}`,
810
593
  children: [
811
- /* @__PURE__ */ jsxs3("div", {
594
+ /* @__PURE__ */ jsxs("div", {
812
595
  role: "group",
813
596
  "aria-label": copy.toolbar,
814
597
  className: richTextEditorClasses.toolbar,
815
598
  children: [
816
- /* @__PURE__ */ jsx5(ToolButton, {
599
+ /* @__PURE__ */ jsx(ToolButton, {
817
600
  label: copy.undo,
818
601
  disabled: disabled || !editor?.can().undo(),
819
602
  onClick: () => {
820
603
  format("undo");
821
604
  },
822
- children: /* @__PURE__ */ jsx5(Undo2, {})
605
+ children: /* @__PURE__ */ jsx(Undo2, {})
823
606
  }),
824
- /* @__PURE__ */ jsx5(ToolButton, {
607
+ /* @__PURE__ */ jsx(ToolButton, {
825
608
  label: copy.redo,
826
609
  disabled: disabled || !editor?.can().redo(),
827
610
  onClick: () => {
828
611
  format("redo");
829
612
  },
830
- children: /* @__PURE__ */ jsx5(Redo2, {})
613
+ children: /* @__PURE__ */ jsx(Redo2, {})
831
614
  }),
832
- /* @__PURE__ */ jsxs3(Select, {
615
+ /* @__PURE__ */ jsxs(Select, {
833
616
  disabled: disabled || !editor,
834
617
  value: block,
835
618
  items: [
@@ -843,30 +626,30 @@ var RichTextEditor = ({
843
626
  format(kind);
844
627
  },
845
628
  children: [
846
- /* @__PURE__ */ jsx5(SelectTrigger, {
629
+ /* @__PURE__ */ jsx(SelectTrigger, {
847
630
  size: "sm",
848
631
  "aria-label": copy.paragraph,
849
632
  className: "max-w-40 text-xs",
850
- children: /* @__PURE__ */ jsx5(SelectValue, {})
633
+ children: /* @__PURE__ */ jsx(SelectValue, {})
851
634
  }),
852
- /* @__PURE__ */ jsxs3(SelectContent, {
635
+ /* @__PURE__ */ jsxs(SelectContent, {
853
636
  align: "start",
854
637
  alignItemWithTrigger: false,
855
638
  finalFocus: focusEditor,
856
639
  children: [
857
- /* @__PURE__ */ jsx5(SelectItem, {
640
+ /* @__PURE__ */ jsx(SelectItem, {
858
641
  value: "paragraph",
859
642
  children: copy.paragraph
860
643
  }),
861
- /* @__PURE__ */ jsx5(SelectItem, {
644
+ /* @__PURE__ */ jsx(SelectItem, {
862
645
  value: "heading",
863
646
  children: copy.heading
864
647
  }),
865
- /* @__PURE__ */ jsx5(SelectItem, {
648
+ /* @__PURE__ */ jsx(SelectItem, {
866
649
  value: "bullet",
867
650
  children: copy.bullet
868
651
  }),
869
- /* @__PURE__ */ jsx5(SelectItem, {
652
+ /* @__PURE__ */ jsx(SelectItem, {
870
653
  value: "numbered",
871
654
  children: copy.numbered
872
655
  })
@@ -874,61 +657,61 @@ var RichTextEditor = ({
874
657
  })
875
658
  ]
876
659
  }),
877
- /* @__PURE__ */ jsx5(ToolButton, {
660
+ /* @__PURE__ */ jsx(ToolButton, {
878
661
  label: copy.bold,
879
662
  disabled: disabled || !editor,
880
663
  pressed: editor?.isActive("bold"),
881
664
  onClick: () => {
882
665
  format("bold");
883
666
  },
884
- children: /* @__PURE__ */ jsx5(Bold, {})
667
+ children: /* @__PURE__ */ jsx(Bold, {})
885
668
  }),
886
- /* @__PURE__ */ jsx5(ToolButton, {
669
+ /* @__PURE__ */ jsx(ToolButton, {
887
670
  label: copy.italic,
888
671
  disabled: disabled || !editor,
889
672
  pressed: editor?.isActive("italic"),
890
673
  onClick: () => {
891
674
  format("italic");
892
675
  },
893
- children: /* @__PURE__ */ jsx5(Italic, {})
676
+ children: /* @__PURE__ */ jsx(Italic, {})
894
677
  }),
895
- /* @__PURE__ */ jsx5(ToolButton, {
678
+ /* @__PURE__ */ jsx(ToolButton, {
896
679
  label: copy.underline,
897
680
  disabled: disabled || !editor,
898
681
  pressed: editor?.isActive("underline"),
899
682
  onClick: () => {
900
683
  format("underline");
901
684
  },
902
- children: /* @__PURE__ */ jsx5(Underline, {})
685
+ children: /* @__PURE__ */ jsx(Underline, {})
903
686
  }),
904
- /* @__PURE__ */ jsx5(ToolButton, {
687
+ /* @__PURE__ */ jsx(ToolButton, {
905
688
  label: copy.link,
906
689
  disabled: disabled || !editor,
907
690
  pressed: linkOpen || editor?.isActive("link"),
908
691
  onClick: () => send(RichTextEditorMessage.ToggleLink()),
909
- children: /* @__PURE__ */ jsx5(Link2, {})
692
+ children: /* @__PURE__ */ jsx(Link2, {})
910
693
  }),
911
- variables.length ? /* @__PURE__ */ jsxs3(DropdownMenu, {
694
+ variables.length ? /* @__PURE__ */ jsxs(DropdownMenu, {
912
695
  children: [
913
- /* @__PURE__ */ jsxs3(DropdownMenuTrigger, {
696
+ /* @__PURE__ */ jsxs(DropdownMenuTrigger, {
914
697
  disabled: disabled || !editor,
915
- render: /* @__PURE__ */ jsx5(Button, {
698
+ render: /* @__PURE__ */ jsx(Button, {
916
699
  type: "button",
917
700
  variant: "outline",
918
701
  size: "sm",
919
702
  className: "ml-auto text-xs"
920
703
  }),
921
704
  children: [
922
- /* @__PURE__ */ jsx5(Braces, {
705
+ /* @__PURE__ */ jsx(Braces, {
923
706
  "aria-hidden": true
924
707
  }),
925
708
  copy.variable
926
709
  ]
927
710
  }),
928
- /* @__PURE__ */ jsx5(DropdownMenuContent, {
711
+ /* @__PURE__ */ jsx(DropdownMenuContent, {
929
712
  align: "end",
930
713
  finalFocus: focusEditor,
931
- children: variables.map((variable) => /* @__PURE__ */ jsx5(DropdownMenuItem, {
714
+ children: variables.map((variable) => /* @__PURE__ */ jsx(DropdownMenuItem, {
932
715
  onClick: () => {
933
716
  if (disabled || !editor)
934
717
  return;
@@ -941,14 +724,14 @@ var RichTextEditor = ({
941
724
  }) : null
942
725
  ]
943
726
  }),
944
- linkOpen ? /* @__PURE__ */ jsxs3("div", {
727
+ linkOpen ? /* @__PURE__ */ jsxs("div", {
945
728
  className: richTextEditorClasses.linkForm,
946
729
  children: [
947
- /* @__PURE__ */ jsxs3("label", {
730
+ /* @__PURE__ */ jsxs("label", {
948
731
  className: richTextEditorClasses.linkField,
949
732
  children: [
950
733
  copy.linkUrl,
951
- /* @__PURE__ */ jsx5(Input, {
734
+ /* @__PURE__ */ jsx(Input, {
952
735
  value: link,
953
736
  "aria-invalid": linkError,
954
737
  placeholder: "https://",
@@ -956,14 +739,14 @@ var RichTextEditor = ({
956
739
  })
957
740
  ]
958
741
  }),
959
- /* @__PURE__ */ jsx5(Button, {
742
+ /* @__PURE__ */ jsx(Button, {
960
743
  type: "button",
961
744
  size: "sm",
962
745
  disabled,
963
746
  onClick: () => send(RichTextEditorMessage.ApplyLink()),
964
747
  children: copy.apply
965
748
  }),
966
- editor?.isActive("link") ? /* @__PURE__ */ jsxs3(Button, {
749
+ editor?.isActive("link") ? /* @__PURE__ */ jsxs(Button, {
967
750
  type: "button",
968
751
  size: "sm",
969
752
  variant: "outline",
@@ -972,31 +755,31 @@ var RichTextEditor = ({
972
755
  format("unlink");
973
756
  },
974
757
  children: [
975
- /* @__PURE__ */ jsx5(Unlink, {
758
+ /* @__PURE__ */ jsx(Unlink, {
976
759
  "aria-hidden": true
977
760
  }),
978
761
  copy.unlink
979
762
  ]
980
763
  }) : null,
981
- /* @__PURE__ */ jsx5(Button, {
764
+ /* @__PURE__ */ jsx(Button, {
982
765
  type: "button",
983
766
  size: "sm",
984
767
  variant: "ghost",
985
768
  onClick: () => send(RichTextEditorMessage.CloseLink()),
986
769
  children: copy.cancel
987
770
  }),
988
- linkError ? /* @__PURE__ */ jsx5("p", {
771
+ linkError ? /* @__PURE__ */ jsx("p", {
989
772
  role: "alert",
990
773
  className: richTextEditorClasses.linkError,
991
774
  children: copy.invalidLink
992
775
  }) : null
993
776
  ]
994
777
  }) : null,
995
- /* @__PURE__ */ jsx5(EditorContent, {
778
+ /* @__PURE__ */ jsx(EditorContent, {
996
779
  editor,
997
780
  style: contentStyle
998
781
  }),
999
- error ? /* @__PURE__ */ jsx5("p", {
782
+ error ? /* @__PURE__ */ jsx("p", {
1000
783
  id: `${id}-error`,
1001
784
  role: "alert",
1002
785
  className: richTextEditorClasses.editorError,
@@ -1134,7 +917,7 @@ var emailComposerHtmlOptions = {
1134
917
  };
1135
918
 
1136
919
  // ../../src/components/email-composer/react.tsx
1137
- import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
920
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
1138
921
  var EmailComposer = ({
1139
922
  previewMessages,
1140
923
  ...props
@@ -1166,31 +949,31 @@ var EmailComposer = ({
1166
949
  current = false;
1167
950
  };
1168
951
  }, [editor, props.value, props.variables, send]);
1169
- return /* @__PURE__ */ jsxs4("div", {
952
+ return /* @__PURE__ */ jsxs2("div", {
1170
953
  "data-slot": "email-composer",
1171
954
  className: "min-w-0 space-y-3",
1172
955
  children: [
1173
- /* @__PURE__ */ jsx6(RichTextEditor, {
956
+ /* @__PURE__ */ jsx2(RichTextEditor, {
1174
957
  ...props,
1175
958
  extensions,
1176
959
  onReady: setEditor
1177
960
  }),
1178
- previewError ? /* @__PURE__ */ jsx6("p", {
961
+ previewError ? /* @__PURE__ */ jsx2("p", {
1179
962
  role: "alert",
1180
963
  className: "text-destructive text-sm",
1181
964
  children: copy.error
1182
965
  }) : null,
1183
- /* @__PURE__ */ jsx6("iframe", {
966
+ /* @__PURE__ */ jsx2("iframe", {
1184
967
  title: copy.preview,
1185
968
  sandbox: "",
1186
969
  srcDoc: email?.html ?? "",
1187
970
  className: "h-64 w-full rounded-lg border bg-white"
1188
971
  }),
1189
- /* @__PURE__ */ jsxs4("label", {
972
+ /* @__PURE__ */ jsxs2("label", {
1190
973
  className: "grid gap-2 text-sm",
1191
974
  children: [
1192
975
  copy.text,
1193
- /* @__PURE__ */ jsx6("textarea", {
976
+ /* @__PURE__ */ jsx2("textarea", {
1194
977
  readOnly: true,
1195
978
  value: email?.text ?? "",
1196
979
  className: "min-h-24 w-full rounded-lg border p-3"
@@ -2,60 +2,13 @@
2
2
  import { Schema as Schema12 } from "effect";
3
3
  import { Html as Html2 } from "effect/ui/html";
4
4
  import { Popover, Tabs } from "effect/ui/kit";
5
-
6
- // ../../src/components/effectcn/button.ts
5
+ import { Button as Button2, buttonVariants } from "@/components/effectcn/button";
6
+ import { Input as Input2, inputVariants as inputVariants2 } from "@/components/effectcn/input";
7
7
  import {
8
- Button as KitButton
9
- } from "effect/ui/kit";
10
-
11
- // ../../src/lib/utils.ts
12
- import { cn } from "cn";
13
-
14
- // ../../src/components/effectcn/button.ts
15
- 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";
16
- var variants = {
17
- default: "bg-primary text-primary-foreground hover:bg-primary/85",
18
- secondary: "bg-secondary text-secondary-foreground hover:bg-accent",
19
- outline: "border-input bg-background text-foreground shadow-sm hover:bg-accent hover:text-accent-foreground",
20
- ghost: "text-foreground hover:bg-accent hover:text-accent-foreground",
21
- brand: "bg-brand-soft text-brand-soft-foreground hover:bg-brand-soft/85",
22
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/85",
23
- link: "h-auto px-0 text-foreground underline decoration-transparent underline-offset-4 hover:decoration-current"
24
- };
25
- var sizes = {
26
- default: "",
27
- sm: "h-7 rounded-sm px-2.5 text-xs",
28
- lg: "h-10 px-5 text-sm",
29
- icon: "w-8.5 px-0",
30
- "icon-sm": "h-7 w-7 rounded-sm px-0"
31
- };
32
- var buttonVariants = (options = {}) => cn(base, variants[options.variant ?? "default"], sizes[options.size ?? "default"], options.class);
33
- var Button = (h, options = {}) => KitButton(h, {
34
- element: options.element,
35
- onPress: options.onPress,
36
- props: options.loading ? { ...options.props, disabled: true, focusableWhenDisabled: true } : options.props
37
- }).class(buttonVariants(options)).attr("data-loading", options.loading ? "" : undefined);
38
-
39
- // ../../src/components/effectcn/input.ts
40
- import {
41
- Input as KitInput
42
- } from "effect/ui/kit";
43
- var base2 = "block h-8.5 w-full min-w-0 rounded-md border border-input bg-background px-3 text-[13px] text-foreground shadow-sm outline-none " + "transition-[border-color,box-shadow] duration-150 placeholder:text-muted-foreground " + "focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/20 " + "aria-invalid:border-destructive aria-invalid:focus-visible:ring-destructive/20 " + "data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 " + "[&[readonly]]:bg-muted [&[readonly]]:text-muted-foreground [&[readonly]]:shadow-none " + "[&[type=file]]:cursor-pointer [&[type=file]]:pl-0 [&[type=file]]:leading-8 [&[type=file]]:text-muted-foreground " + "file:mr-3 file:h-8 file:cursor-pointer file:border-0 file:border-r file:border-solid file:border-input file:bg-muted file:px-3 " + "file:text-[13px] file:font-medium file:text-foreground";
44
- var sizes2 = {
45
- default: "",
46
- sm: "h-7 rounded-sm px-2.5 text-xs",
47
- lg: "h-10 px-3.5 text-sm"
48
- };
49
- var inputVariants = (options = {}) => cn(base2, sizes2[options.size ?? "default"], options.class);
50
- var Input = (h, options) => KitInput(h, options).class(inputVariants(options));
51
-
52
- // ../../src/components/effectcn/popover.ts
53
- var sizes3 = { sm: "w-56", default: "w-72", auto: "w-auto" };
54
- var PopoverPositioner = (h, popover, options = {}) => popover.positioner(h.div.class(cn("z-50 outline-none", options.class)));
55
- 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", sizes3[options.size ?? "default"], options.class)));
56
- 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)));
57
-
58
- // ../../src/components/email-editor/html.ts
8
+ PopoverPopup,
9
+ PopoverPositioner,
10
+ PopoverTitle
11
+ } from "@/components/effectcn/popover";
59
12
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
60
13
  import {
61
14
  Copy,
@@ -693,6 +646,8 @@ import { EditorState } from "@tiptap/pm/state";
693
646
  import { Effect, Option as Option2, Queue, Schema as Schema11, Stream } from "effect";
694
647
  import { Mount, UiSchema as UiSchema3 } from "effect/ui";
695
648
  import { Html } from "effect/ui/html";
649
+ import { Button } from "@/components/effectcn/button";
650
+ import { Input, inputVariants } from "@/components/effectcn/input";
696
651
 
697
652
  // ../../src/lib/email-document/legacy-rich-text/tiptap.ts
698
653
  import { Extension, Node } from "@tiptap/core";
@@ -1429,7 +1384,7 @@ var EmailEditor = Html2.component({
1429
1384
  const selected = value.elements.find(({ id }) => id === model.active);
1430
1385
  const invalid = validateEmailDocument({ document: value, variables, requiredVariables }).length > 0;
1431
1386
  const field = (label, child) => h.label.class(emailEditorClasses.inspectorField).children(label, child);
1432
- const input = (label, current, onInput, options = {}) => field(label, Input(h, {
1387
+ const input = (label, current, onInput, options = {}) => field(label, Input2(h, {
1433
1388
  props: { value: String(current), disabled },
1434
1389
  onUpdate: ({ value }) => onInput(value)
1435
1390
  }).attrs({
@@ -1437,9 +1392,9 @@ var EmailEditor = Html2.component({
1437
1392
  min: options.min?.toString(),
1438
1393
  max: options.max?.toString()
1439
1394
  }));
1440
- const select = (label, current, values, change) => field(label, h.select.class(inputVariants()).disabled(disabled).on("change", ({ value }) => change(value)).children(...values.map(({ value, label }) => h.option.key(value).attrs({ value, selected: value === current ? "" : undefined }).children(label))));
1395
+ const select = (label, current, values, change) => field(label, h.select.class(inputVariants2()).disabled(disabled).on("change", ({ value }) => change(value)).children(...values.map(({ value, label }) => h.option.key(value).attrs({ value, selected: value === current ? "" : undefined }).children(label))));
1441
1396
  const choices = (keys) => keys.map((value) => ({ value, label: copy[value] }));
1442
- const button = (message, blocked = disabled, variant = "outline") => Button(h, {
1397
+ const button = (message, blocked = disabled, variant = "outline") => Button2(h, {
1443
1398
  size: "sm",
1444
1399
  variant,
1445
1400
  props: { type: "button", disabled: blocked },
@@ -1475,7 +1430,7 @@ var EmailEditor = Html2.component({
1475
1430
  const design = () => h.div.class("space-y-4").children(...["subject", "preview"].map((key) => {
1476
1431
  const label = key === "subject" ? copy.subject : copy.preheader;
1477
1432
  return h.div.key(key).class("space-y-1.5").children(h.p.class(emailEditorClasses.sectionHeading).children(label), editText(`header-${key}`, label, richTextFromEmailText(value[key]), (content) => EmailEditorMessage.Header({ key, content }), true));
1478
- }), h.div.class("flex flex-wrap items-start justify-between gap-2 rounded-xl border bg-muted/20 p-2").children(designPopover("add", () => h.div.class("grid gap-1").children(...emailElementTypes.map((kind) => Button(h, {
1433
+ }), h.div.class("flex flex-wrap items-start justify-between gap-2 rounded-xl border bg-muted/20 p-2").children(designPopover("add", () => h.div.class("grid gap-1").children(...emailElementTypes.map((kind) => Button2(h, {
1479
1434
  element: h.button.on("click", () => EmailEditorMessage.Add({
1480
1435
  id: crypto.randomUUID(),
1481
1436
  kind,
@@ -1573,7 +1528,7 @@ var EmailEditor = Html2.component({
1573
1528
  type: "number",
1574
1529
  min: 0,
1575
1530
  max: 96
1576
- })), h.div.class("flex flex-wrap gap-2").children(Button(h, {
1531
+ })), h.div.class("flex flex-wrap gap-2").children(Button2(h, {
1577
1532
  element: h.button.on("click", () => EmailEditorMessage.Duplicate({
1578
1533
  id: crypto.randomUUID(),
1579
1534
  target: selected.id