@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
@@ -1,64 +1,18 @@
1
1
  // ../../src/components/danger-confirmation/html.ts
2
2
  import { Html } from "effect/ui/html";
3
3
  import { AlertDialog } from "effect/ui/kit";
4
-
5
- // ../../src/components/effectcn/button.ts
6
- import {
7
- Button as KitButton
8
- } from "effect/ui/kit";
9
-
10
- // ../../src/lib/utils.ts
11
- import { cn } from "cn";
12
-
13
- // ../../src/components/effectcn/button.ts
14
- var base = "inline-flex h-8.5 shrink-0 items-center justify-center gap-1.5 rounded-md border border-transparent px-3.5 text-[13px] leading-none font-medium whitespace-nowrap no-underline select-none transition-[background-color,border-color,color,opacity] duration-150 active:translate-y-px data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&_svg]:size-[15px] [&_svg]:shrink-0 data-[loading]:before:size-3 data-[loading]:before:animate-spin data-[loading]:before:rounded-full data-[loading]:before:border-2 data-[loading]:before:border-current data-[loading]:before:border-r-transparent";
15
- var variants = {
16
- default: "bg-primary text-primary-foreground hover:bg-primary/85",
17
- secondary: "bg-secondary text-secondary-foreground hover:bg-accent",
18
- outline: "border-input bg-background text-foreground shadow-sm hover:bg-accent hover:text-accent-foreground",
19
- ghost: "text-foreground hover:bg-accent hover:text-accent-foreground",
20
- brand: "bg-brand-soft text-brand-soft-foreground hover:bg-brand-soft/85",
21
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/85",
22
- link: "h-auto px-0 text-foreground underline decoration-transparent underline-offset-4 hover:decoration-current"
23
- };
24
- var sizes = {
25
- default: "",
26
- sm: "h-7 rounded-sm px-2.5 text-xs",
27
- lg: "h-10 px-5 text-sm",
28
- icon: "w-8.5 px-0",
29
- "icon-sm": "h-7 w-7 rounded-sm px-0"
30
- };
31
- var buttonVariants = (options = {}) => cn(base, variants[options.variant ?? "default"], sizes[options.size ?? "default"], options.class);
32
- var Button = (h, options = {}) => KitButton(h, {
33
- element: options.element,
34
- onPress: options.onPress,
35
- props: options.loading ? { ...options.props, disabled: true, focusableWhenDisabled: true } : options.props
36
- }).class(buttonVariants(options)).attr("data-loading", options.loading ? "" : undefined);
37
-
38
- // ../../src/components/effectcn/input.ts
39
- import {
40
- Input as KitInput
41
- } from "effect/ui/kit";
42
- 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";
43
- var sizes2 = {
44
- default: "",
45
- sm: "h-7 rounded-sm px-2.5 text-xs",
46
- lg: "h-10 px-3.5 text-sm"
47
- };
48
- var inputVariants = (options = {}) => cn(base2, sizes2[options.size ?? "default"], options.class);
49
- var Input = (h, options) => KitInput(h, options).class(inputVariants(options));
50
-
51
- // ../../src/components/danger-confirmation/html.ts
4
+ import { Button, buttonVariants } from "@/components/effectcn/button";
5
+ import { Input } from "@/components/effectcn/input";
52
6
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
53
-
54
- // ../../src/components/effectcn/alert-dialog.ts
55
- var AlertDialogBackdrop = (h, dialog) => dialog.backdrop(h.div.class("fixed inset-0 bg-[color-mix(in_oklab,var(--shadow-color,#000)_45%,transparent)] transition-opacity duration-200 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0"));
56
- var AlertDialogViewport = (h, dialog) => dialog.viewport(h.div.class("pointer-events-none fixed inset-0 grid place-items-center p-4"));
57
- var AlertDialogPopup = (h, dialog, options = {}) => dialog.popup(h.div.class(cn("bg-popover text-foreground pointer-events-auto relative flex max-h-full w-full max-w-[440px] flex-col gap-4 rounded-lg border p-6 text-sm shadow-lg outline-none", "transition-[opacity,scale] duration-200 ease-out data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0", options.class)));
58
- var AlertDialogHeader = (h) => h.div.class("flex flex-col gap-1.5");
59
- var AlertDialogTitle = (h, dialog) => dialog.title(h.h2.class("m-0 border-0 p-0 text-[16px] leading-snug font-semibold tracking-tight"));
60
- var AlertDialogDescription = (h, dialog) => dialog.description(h.p.class("m-0 text-[13px] leading-normal text-muted-foreground [&_code]:rounded-xs [&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-xs [&_code]:text-foreground"));
61
- var AlertDialogFooter = (h) => h.div.class("flex flex-wrap items-center justify-end gap-2");
7
+ import {
8
+ AlertDialogBackdrop,
9
+ AlertDialogDescription,
10
+ AlertDialogFooter,
11
+ AlertDialogHeader,
12
+ AlertDialogPopup,
13
+ AlertDialogTitle,
14
+ AlertDialogViewport
15
+ } from "@/components/effectcn/alert-dialog";
62
16
 
63
17
  // ../../src/components/danger-confirmation/classes.ts
64
18
  var dangerConfirmationClasses = {
@@ -7,179 +7,18 @@ import {
7
7
  useRef,
8
8
  useState
9
9
  } from "react";
10
-
11
- // ../../src/components/ui/alert-dialog.tsx
12
- import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog";
13
-
14
- // ../../src/lib/utils.ts
15
- import { cn } from "cn";
16
-
17
- // ../../src/components/ui/button.tsx
18
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
19
- import { cva } from "class-variance-authority";
20
- import { jsx } from "react/jsx-runtime";
21
- 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", {
22
- variants: {
23
- variant: {
24
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
25
- 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",
26
- 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",
27
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
28
- 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",
29
- link: "text-primary underline-offset-4 hover:underline"
30
- },
31
- size: {
32
- 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",
33
- 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",
34
- 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",
35
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
36
- icon: "size-9",
37
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
38
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
39
- "icon-lg": "size-10"
40
- }
41
- },
42
- defaultVariants: {
43
- variant: "default",
44
- size: "default"
45
- }
46
- });
47
- function Button({
48
- className,
49
- variant = "default",
50
- size = "default",
51
- ...props
52
- }) {
53
- return /* @__PURE__ */ jsx(ButtonPrimitive, {
54
- "data-slot": "button",
55
- className: cn(buttonVariants({ variant, size, className })),
56
- ...props
57
- });
58
- }
59
-
60
- // ../../src/components/ui/alert-dialog.tsx
61
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
62
- "use client";
63
- function AlertDialog({ ...props }) {
64
- return /* @__PURE__ */ jsx2(AlertDialogPrimitive.Root, {
65
- "data-slot": "alert-dialog",
66
- ...props
67
- });
68
- }
69
- function AlertDialogPortal({ ...props }) {
70
- return /* @__PURE__ */ jsx2(AlertDialogPrimitive.Portal, {
71
- "data-slot": "alert-dialog-portal",
72
- ...props
73
- });
74
- }
75
- function AlertDialogOverlay({
76
- className,
77
- ...props
78
- }) {
79
- return /* @__PURE__ */ jsx2(AlertDialogPrimitive.Backdrop, {
80
- "data-slot": "alert-dialog-overlay",
81
- className: cn("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", className),
82
- ...props
83
- });
84
- }
85
- function AlertDialogContent({
86
- className,
87
- size = "default",
88
- ...props
89
- }) {
90
- return /* @__PURE__ */ jsxs(AlertDialogPortal, {
91
- children: [
92
- /* @__PURE__ */ jsx2(AlertDialogOverlay, {}),
93
- /* @__PURE__ */ jsx2(AlertDialogPrimitive.Popup, {
94
- "data-slot": "alert-dialog-content",
95
- "data-size": size,
96
- className: cn("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-popover p-6 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg 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),
97
- ...props
98
- })
99
- ]
100
- });
101
- }
102
- function AlertDialogHeader({
103
- className,
104
- ...props
105
- }) {
106
- return /* @__PURE__ */ jsx2("div", {
107
- "data-slot": "alert-dialog-header",
108
- className: cn("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", className),
109
- ...props
110
- });
111
- }
112
- function AlertDialogFooter({
113
- className,
114
- ...props
115
- }) {
116
- return /* @__PURE__ */ jsx2("div", {
117
- "data-slot": "alert-dialog-footer",
118
- className: cn("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", className),
119
- ...props
120
- });
121
- }
122
- function AlertDialogTitle({
123
- className,
124
- ...props
125
- }) {
126
- return /* @__PURE__ */ jsx2(AlertDialogPrimitive.Title, {
127
- "data-slot": "alert-dialog-title",
128
- className: cn("text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", className),
129
- ...props
130
- });
131
- }
132
- function AlertDialogDescription({
133
- className,
134
- ...props
135
- }) {
136
- return /* @__PURE__ */ jsx2(AlertDialogPrimitive.Description, {
137
- "data-slot": "alert-dialog-description",
138
- className: cn("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className),
139
- ...props
140
- });
141
- }
142
- function AlertDialogCancel({
143
- className,
144
- variant = "outline",
145
- size = "default",
146
- ...props
147
- }) {
148
- return /* @__PURE__ */ jsx2(AlertDialogPrimitive.Close, {
149
- "data-slot": "alert-dialog-cancel",
150
- className: cn(className),
151
- render: /* @__PURE__ */ jsx2(Button, {
152
- variant,
153
- size
154
- }),
155
- ...props
156
- });
157
- }
158
-
159
- // ../../src/components/ui/input.tsx
160
- import { Input as InputPrimitive } from "@base-ui/react/input";
161
- import { jsx as jsx3 } from "react/jsx-runtime";
162
- function Input({ className, type, ...props }) {
163
- return /* @__PURE__ */ jsx3(InputPrimitive, {
164
- type,
165
- "data-slot": "input",
166
- 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),
167
- ...props
168
- });
169
- }
170
-
171
- // ../../src/components/ui/label.tsx
172
- import { jsx as jsx4 } from "react/jsx-runtime";
173
- "use client";
174
- function Label({ className, ...props }) {
175
- return /* @__PURE__ */ jsx4("label", {
176
- "data-slot": "label",
177
- className: cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className),
178
- ...props
179
- });
180
- }
181
-
182
- // ../../src/components/danger-confirmation/react.tsx
10
+ import {
11
+ AlertDialog,
12
+ AlertDialogCancel,
13
+ AlertDialogContent,
14
+ AlertDialogDescription,
15
+ AlertDialogFooter,
16
+ AlertDialogHeader,
17
+ AlertDialogTitle
18
+ } from "@/components/ui/alert-dialog";
19
+ import { Button } from "@/components/ui/button";
20
+ import { Input } from "@/components/ui/input";
21
+ import { Label } from "@/components/ui/label";
183
22
  import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
184
23
  import { useModel } from "@krak-stack/registry/effect-ui-adapter/react";
185
24
 
@@ -293,7 +132,7 @@ var DangerConfirmationModel = Definition.make({
293
132
  });
294
133
 
295
134
  // ../../src/components/danger-confirmation/react.tsx
296
- import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
135
+ import { jsx, jsxs } from "react/jsx-runtime";
297
136
  "use client";
298
137
  var DangerConfirmation = (props) => {
299
138
  const dangerConfirmationClasses = resolveDangerConfirmationClasses(props.classes);
@@ -319,7 +158,7 @@ var DangerConfirmation = (props) => {
319
158
  if (!open && (model.open || status === "succeeded"))
320
159
  send(DangerConfirmationMessage.Dismissed());
321
160
  }, [model.open, onOpenChange, open, send, status]);
322
- return /* @__PURE__ */ jsx5(AlertDialog, {
161
+ return /* @__PURE__ */ jsx(AlertDialog, {
323
162
  open,
324
163
  onOpenChange: (next, event) => {
325
164
  if (!next && pending) {
@@ -328,33 +167,33 @@ var DangerConfirmation = (props) => {
328
167
  }
329
168
  onOpenChange(next);
330
169
  },
331
- children: /* @__PURE__ */ jsxs2(AlertDialogContent, {
170
+ children: /* @__PURE__ */ jsxs(AlertDialogContent, {
332
171
  "data-component": "danger-confirmation",
333
172
  className: props.className,
334
173
  children: [
335
- /* @__PURE__ */ jsxs2(AlertDialogHeader, {
174
+ /* @__PURE__ */ jsxs(AlertDialogHeader, {
336
175
  children: [
337
- /* @__PURE__ */ jsx5(AlertDialogTitle, {
176
+ /* @__PURE__ */ jsx(AlertDialogTitle, {
338
177
  children: title
339
178
  }),
340
- /* @__PURE__ */ jsx5(AlertDialogDescription, {
179
+ /* @__PURE__ */ jsx(AlertDialogDescription, {
341
180
  children: description
342
181
  })
343
182
  ]
344
183
  }),
345
- confirmation !== undefined ? /* @__PURE__ */ jsxs2("div", {
184
+ confirmation !== undefined ? /* @__PURE__ */ jsxs("div", {
346
185
  className: dangerConfirmationClasses.confirmationField,
347
186
  children: [
348
- /* @__PURE__ */ jsx5(Label, {
187
+ /* @__PURE__ */ jsx(Label, {
349
188
  htmlFor: id,
350
189
  children: copy.typeToConfirm
351
190
  }),
352
- /* @__PURE__ */ jsx5("code", {
191
+ /* @__PURE__ */ jsx("code", {
353
192
  id: `${id}-phrase`,
354
193
  className: "text-sm break-all",
355
194
  children: confirmation
356
195
  }),
357
- /* @__PURE__ */ jsx5(Input, {
196
+ /* @__PURE__ */ jsx(Input, {
358
197
  id,
359
198
  "aria-describedby": `${id}-phrase`,
360
199
  value: text,
@@ -365,14 +204,14 @@ var DangerConfirmation = (props) => {
365
204
  })
366
205
  ]
367
206
  }) : null,
368
- /* @__PURE__ */ jsxs2(AlertDialogFooter, {
207
+ /* @__PURE__ */ jsxs(AlertDialogFooter, {
369
208
  children: [
370
- /* @__PURE__ */ jsx5(AlertDialogCancel, {
209
+ /* @__PURE__ */ jsx(AlertDialogCancel, {
371
210
  type: "button",
372
211
  disabled: pending,
373
212
  children: copy.cancel
374
213
  }),
375
- /* @__PURE__ */ jsx5(Button, {
214
+ /* @__PURE__ */ jsx(Button, {
376
215
  type: "button",
377
216
  variant: "destructive",
378
217
  disabled: pending || !matchesConfirmation(confirmation, text),
@@ -382,7 +221,7 @@ var DangerConfirmation = (props) => {
382
221
  })
383
222
  ]
384
223
  }),
385
- status === "failed" && /* @__PURE__ */ jsx5("p", {
224
+ status === "failed" && /* @__PURE__ */ jsx("p", {
386
225
  role: "status",
387
226
  className: "text-destructive text-sm",
388
227
  children: copy.error
@@ -1639,18 +1639,6 @@ export declare const DataTable: Component.Component<"DataTable", {
1639
1639
  } | null;
1640
1640
  readonly invalidFilter: boolean;
1641
1641
  }, {
1642
- readonly _tag: "PreferencesLoaded";
1643
- readonly preferences: {
1644
- readonly columnVisibility: {
1645
- readonly [x: string]: boolean;
1646
- };
1647
- readonly columnSizing: {
1648
- readonly [x: string]: number;
1649
- };
1650
- readonly grouping?: readonly string[] | undefined;
1651
- readonly view: "gallery" | "table";
1652
- } | null;
1653
- } | {
1654
1642
  readonly _tag: "BuiltInExportRequested";
1655
1643
  readonly format: "csv" | "json";
1656
1644
  readonly locale?: string | undefined;
@@ -1790,6 +1778,18 @@ export declare const DataTable: Component.Component<"DataTable", {
1790
1778
  } | {
1791
1779
  readonly _tag: "PageSizeRequested";
1792
1780
  readonly pageSize: number;
1781
+ } | {
1782
+ readonly _tag: "PreferencesLoaded";
1783
+ readonly preferences: {
1784
+ readonly columnVisibility: {
1785
+ readonly [x: string]: boolean;
1786
+ };
1787
+ readonly columnSizing: {
1788
+ readonly [x: string]: number;
1789
+ };
1790
+ readonly grouping?: readonly string[] | undefined;
1791
+ readonly view: "gallery" | "table";
1792
+ } | null;
1793
1793
  } | {
1794
1794
  readonly _tag: "ReferenceImageFailed";
1795
1795
  readonly src: string;