@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
@@ -2,63 +2,20 @@
2
2
  import { Schema as Schema3 } from "effect";
3
3
  import { Html } from "effect/ui/html";
4
4
  import { Menu } from "effect/ui/kit";
5
-
6
- // ../../src/lib/utils.ts
7
- import { cn } from "cn";
8
-
9
- // ../../src/components/effectcn/button.ts
10
5
  import {
11
- Button as KitButton
12
- } from "effect/ui/kit";
13
- 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";
14
- var variants = {
15
- default: "bg-primary text-primary-foreground hover:bg-primary/85",
16
- secondary: "bg-secondary text-secondary-foreground hover:bg-accent",
17
- outline: "border-input bg-background text-foreground shadow-sm hover:bg-accent hover:text-accent-foreground",
18
- ghost: "text-foreground hover:bg-accent hover:text-accent-foreground",
19
- brand: "bg-brand-soft text-brand-soft-foreground hover:bg-brand-soft/85",
20
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/85",
21
- link: "h-auto px-0 text-foreground underline decoration-transparent underline-offset-4 hover:decoration-current"
22
- };
23
- var sizes = {
24
- default: "",
25
- sm: "h-7 rounded-sm px-2.5 text-xs",
26
- lg: "h-10 px-5 text-sm",
27
- icon: "w-8.5 px-0",
28
- "icon-sm": "h-7 w-7 rounded-sm px-0"
29
- };
30
- var buttonVariants = (options = {}) => cn(base, variants[options.variant ?? "default"], sizes[options.size ?? "default"], options.class);
31
-
32
- // ../../src/components/effectcn/menu.ts
33
- var popup = "max-h-[var(--available-height)] max-w-[min(320px,var(--available-width))] min-w-[200px] origin-[var(--transform-origin)] " + "overflow-y-auto rounded-lg border bg-popover p-1 text-[13px] leading-snug text-foreground shadow-float outline-none " + "transition-[opacity,scale] duration-150 ease-out data-[nested]:min-w-[150px] " + "data-[starting-style]:scale-95 data-[starting-style]:opacity-0 " + "data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[ending-style]:duration-100 " + "data-[instant]:transition-none";
34
- var item = "relative flex min-h-[30px] cursor-default items-center gap-2 rounded-sm px-2 whitespace-nowrap text-foreground " + "no-underline outline-none select-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground " + "data-[popup-open]:bg-accent data-[disabled]:opacity-45 " + "[&_svg]:size-[15px] [&_svg]:shrink-0 [&_svg]:text-muted-foreground";
35
- var tick = "before:absolute before:top-1/2 before:left-[10px] before:h-[5px] before:w-[9px] before:-translate-y-[70%] " + "before:-rotate-45 before:border-b-2 before:border-l-2 before:border-brand before:opacity-0 before:content-[''] " + "data-[checked]:before:opacity-100";
36
- var dot = "before:absolute before:top-1/2 before:left-[12px] before:size-1.5 before:-translate-y-1/2 before:rounded-full " + "before:bg-brand before:opacity-0 before:content-[''] data-[checked]:before:opacity-100";
37
- var submenuArrow = "after:ml-auto after:size-1.5 after:-translate-x-0.5 after:rotate-45 after:border-t-[1.5px] after:border-r-[1.5px] " + "after:border-muted-foreground after:content-['']";
38
- var MenuTrigger = (h, menu, options = {}) => {
39
- const { class: className, size, variant = "outline", ...trigger } = options;
40
- return menu.trigger({
41
- ...trigger,
42
- element: h.button.class(buttonVariants({ variant, size, class: cn("group", className) }))
43
- });
44
- };
45
- var MenuPositioner = (h, menu, options = {}) => menu.positioner(h.div.class(cn("overflow-visible border-0 bg-transparent p-0 text-inherit outline-none", options.class)));
46
- var MenuPopup = (h, menu, options = {}) => menu.popup(h.div.class(cn(popup, options.class)));
47
- var MenuLinkItem = (h, menu, options) => menu.linkItem({
48
- element: h.a.class(cn(item, options.class)).attr("href", options.href),
49
- value: options.value,
50
- closeOnClick: options.closeOnClick
51
- });
52
- var MenuGroup = (h, menu, options) => menu.group({ element: h.div.class(cn(options.class)), group: options.group });
53
- var MenuLabel = (h, menu, options) => menu.groupLabel({
54
- element: h.div.class(cn("text-muted-foreground px-2 pt-1.5 pb-1 text-xs font-medium", options.class)),
55
- group: options.group
56
- });
57
-
58
- // ../../src/components/app-switcher/html.ts
6
+ MenuGroup,
7
+ MenuLabel,
8
+ MenuLinkItem,
9
+ MenuPopup,
10
+ MenuPositioner,
11
+ MenuTrigger
12
+ } from "@/components/effectcn/menu";
59
13
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
60
14
  import { Check, Grip as GripIcon, createLucideIcon } from "@krak-stack/registry/lucide-effect";
61
15
 
16
+ // ../../src/lib/utils.ts
17
+ import { cn } from "cn";
18
+
62
19
  // ../../src/components/app-switcher/classes.ts
63
20
  var appSwitcherClasses = {
64
21
  empty: "text-muted-foreground px-2 py-3 text-sm",
@@ -1,129 +1,19 @@
1
1
  // ../../src/components/app-switcher/react.tsx
2
2
  import { Check, Grip } from "lucide-react";
3
-
4
- // ../../src/components/ui/button.tsx
5
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
6
- import { cva } from "class-variance-authority";
3
+ import { Button } from "@/components/ui/button";
4
+ import {
5
+ DropdownMenu,
6
+ DropdownMenuContent,
7
+ DropdownMenuGroup,
8
+ DropdownMenuItem,
9
+ DropdownMenuLabel,
10
+ DropdownMenuTrigger
11
+ } from "@/components/ui/dropdown-menu";
12
+ import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
7
13
 
8
14
  // ../../src/lib/utils.ts
9
15
  import { cn } from "cn";
10
16
 
11
- // ../../src/components/ui/button.tsx
12
- import { jsx } from "react/jsx-runtime";
13
- 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", {
14
- variants: {
15
- variant: {
16
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
17
- 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",
18
- 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",
19
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
20
- 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",
21
- link: "text-primary underline-offset-4 hover:underline"
22
- },
23
- size: {
24
- 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",
25
- 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",
26
- 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",
27
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
28
- icon: "size-9",
29
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
30
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
31
- "icon-lg": "size-10"
32
- }
33
- },
34
- defaultVariants: {
35
- variant: "default",
36
- size: "default"
37
- }
38
- });
39
- function Button({
40
- className,
41
- variant = "default",
42
- size = "default",
43
- ...props
44
- }) {
45
- return /* @__PURE__ */ jsx(ButtonPrimitive, {
46
- "data-slot": "button",
47
- className: cn(buttonVariants({ variant, size, className })),
48
- ...props
49
- });
50
- }
51
-
52
- // ../../src/components/ui/dropdown-menu.tsx
53
- import { Menu as MenuPrimitive } from "@base-ui/react/menu";
54
- import { ChevronRightIcon, CheckIcon } from "lucide-react";
55
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
56
- function DropdownMenu({ ...props }) {
57
- return /* @__PURE__ */ jsx2(MenuPrimitive.Root, {
58
- "data-slot": "dropdown-menu",
59
- ...props
60
- });
61
- }
62
- function DropdownMenuTrigger({ ...props }) {
63
- return /* @__PURE__ */ jsx2(MenuPrimitive.Trigger, {
64
- "data-slot": "dropdown-menu-trigger",
65
- ...props
66
- });
67
- }
68
- function DropdownMenuContent({
69
- align = "start",
70
- alignOffset = 0,
71
- side = "bottom",
72
- sideOffset = 4,
73
- className,
74
- ...props
75
- }) {
76
- return /* @__PURE__ */ jsx2(MenuPrimitive.Portal, {
77
- children: /* @__PURE__ */ jsx2(MenuPrimitive.Positioner, {
78
- className: "isolate z-50 outline-none",
79
- align,
80
- alignOffset,
81
- side,
82
- sideOffset,
83
- children: /* @__PURE__ */ jsx2(MenuPrimitive.Popup, {
84
- "data-slot": "dropdown-menu-content",
85
- 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),
86
- ...props
87
- })
88
- })
89
- });
90
- }
91
- function DropdownMenuGroup({ ...props }) {
92
- return /* @__PURE__ */ jsx2(MenuPrimitive.Group, {
93
- "data-slot": "dropdown-menu-group",
94
- ...props
95
- });
96
- }
97
- function DropdownMenuLabel({
98
- className,
99
- inset,
100
- ...props
101
- }) {
102
- return /* @__PURE__ */ jsx2(MenuPrimitive.GroupLabel, {
103
- "data-slot": "dropdown-menu-label",
104
- "data-inset": inset,
105
- className: cn("px-2 py-1.5 text-xs font-medium text-muted-foreground data-inset:pl-8", className),
106
- ...props
107
- });
108
- }
109
- function DropdownMenuItem({
110
- className,
111
- inset,
112
- variant = "default",
113
- ...props
114
- }) {
115
- return /* @__PURE__ */ jsx2(MenuPrimitive.Item, {
116
- "data-slot": "dropdown-menu-item",
117
- "data-inset": inset,
118
- "data-variant": variant,
119
- 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),
120
- ...props
121
- });
122
- }
123
-
124
- // ../../src/components/app-switcher/react.tsx
125
- import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
126
-
127
17
  // ../../src/components/app-switcher/classes.ts
128
18
  var appSwitcherClasses = {
129
19
  empty: "text-muted-foreground px-2 py-3 text-sm",
@@ -206,7 +96,7 @@ var update = Component.define(appSwitcherOptions).update({
206
96
  });
207
97
 
208
98
  // ../../src/components/app-switcher/react.tsx
209
- import { jsx as jsx3, jsxs as jsxs2, Fragment } from "react/jsx-runtime";
99
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
210
100
  var AppSwitcher = ({
211
101
  classes: classOverrides,
212
102
  items,
@@ -220,10 +110,10 @@ var AppSwitcher = ({
220
110
  const appSwitcherClasses = resolveAppSwitcherClasses(classOverrides);
221
111
  const locale = useKrakstackLocale(override);
222
112
  const copy = appSwitcherMessages(locale, messages);
223
- return /* @__PURE__ */ jsxs2(DropdownMenu, {
113
+ return /* @__PURE__ */ jsxs(DropdownMenu, {
224
114
  children: [
225
- /* @__PURE__ */ jsx3(DropdownMenuTrigger, {
226
- render: /* @__PURE__ */ jsx3(Button, {
115
+ /* @__PURE__ */ jsx(DropdownMenuTrigger, {
116
+ render: /* @__PURE__ */ jsx(Button, {
227
117
  "data-component": "app-switcher",
228
118
  type: "button",
229
119
  variant: "outline",
@@ -232,62 +122,62 @@ var AppSwitcher = ({
232
122
  disabled,
233
123
  "aria-label": copy.label
234
124
  }),
235
- children: /* @__PURE__ */ jsx3(Grip, {
125
+ children: /* @__PURE__ */ jsx(Grip, {
236
126
  "aria-hidden": "true"
237
127
  })
238
128
  }),
239
- /* @__PURE__ */ jsx3(DropdownMenuContent, {
129
+ /* @__PURE__ */ jsx(DropdownMenuContent, {
240
130
  "data-component": "app-switcher-content",
241
131
  align: "end",
242
132
  className: cn("w-80 max-w-[calc(100vw-2rem)]", contentClassName),
243
- children: /* @__PURE__ */ jsxs2(DropdownMenuGroup, {
133
+ children: /* @__PURE__ */ jsxs(DropdownMenuGroup, {
244
134
  children: [
245
- /* @__PURE__ */ jsx3(DropdownMenuLabel, {
135
+ /* @__PURE__ */ jsx(DropdownMenuLabel, {
246
136
  children: copy.label
247
137
  }),
248
- items.length === 0 ? /* @__PURE__ */ jsx3("p", {
138
+ items.length === 0 ? /* @__PURE__ */ jsx("p", {
249
139
  className: appSwitcherClasses.empty,
250
140
  children: copy.empty
251
141
  }) : null,
252
- items.map((item) => /* @__PURE__ */ jsxs2(DropdownMenuItem, {
142
+ items.map((item) => /* @__PURE__ */ jsxs(DropdownMenuItem, {
253
143
  "data-component": "app-switcher-item",
254
144
  disabled: item.disabled,
255
- render: /* @__PURE__ */ jsx3("a", {
145
+ render: /* @__PURE__ */ jsx("a", {
256
146
  href: item.disabled ? undefined : item.href,
257
147
  "aria-current": item.id === currentApp ? "page" : undefined
258
148
  }),
259
149
  className: "gap-3 py-3",
260
150
  children: [
261
- item.icon ? /* @__PURE__ */ jsx3("span", {
151
+ item.icon ? /* @__PURE__ */ jsx("span", {
262
152
  "aria-hidden": "true",
263
153
  className: appSwitcherClasses.appIcon,
264
154
  children: item.icon
265
155
  }) : null,
266
- /* @__PURE__ */ jsxs2("span", {
156
+ /* @__PURE__ */ jsxs("span", {
267
157
  className: appSwitcherClasses.appDetails,
268
158
  children: [
269
- /* @__PURE__ */ jsxs2("span", {
159
+ /* @__PURE__ */ jsxs("span", {
270
160
  className: "flex items-center gap-2",
271
161
  children: [
272
- /* @__PURE__ */ jsx3("span", {
162
+ /* @__PURE__ */ jsx("span", {
273
163
  className: appSwitcherClasses.appName,
274
164
  children: item.label
275
165
  }),
276
166
  item.badge
277
167
  ]
278
168
  }),
279
- item.description ? /* @__PURE__ */ jsx3("span", {
169
+ item.description ? /* @__PURE__ */ jsx("span", {
280
170
  className: appSwitcherClasses.appDescription,
281
171
  children: item.description
282
172
  }) : null
283
173
  ]
284
174
  }),
285
- item.id === currentApp ? /* @__PURE__ */ jsxs2(Fragment, {
175
+ item.id === currentApp ? /* @__PURE__ */ jsxs(Fragment, {
286
176
  children: [
287
- /* @__PURE__ */ jsx3(Check, {
177
+ /* @__PURE__ */ jsx(Check, {
288
178
  "aria-hidden": "true"
289
179
  }),
290
- /* @__PURE__ */ jsx3("span", {
180
+ /* @__PURE__ */ jsx("span", {
291
181
  className: "sr-only",
292
182
  children: copy.current
293
183
  })
@@ -1,44 +1,13 @@
1
1
  // ../../src/components/async-action-button/html.ts
2
2
  import { Schema as Schema3 } from "effect";
3
3
  import { Html } from "effect/ui/html";
4
-
5
- // ../../src/components/effectcn/button.ts
6
- import {
7
- Button as KitButton
8
- } from "effect/ui/kit";
4
+ import { Button } from "@/components/effectcn/button";
5
+ import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
6
+ import { Check, LoaderCircle, RotateCcw } from "@krak-stack/registry/lucide-effect";
9
7
 
10
8
  // ../../src/lib/utils.ts
11
9
  import { cn } from "cn";
12
10
 
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/async-action-button/html.ts
39
- import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
40
- import { Check, LoaderCircle, RotateCcw } from "@krak-stack/registry/lucide-effect";
41
-
42
11
  // ../../src/components/async-action-button/classes.ts
43
12
  var asyncActionButtonClasses = {
44
13
  root: "inline-flex min-w-0 flex-col items-start gap-2",
@@ -1,5 +1,5 @@
1
1
  import { type ComponentProps } from "react";
2
- import { Button } from "../ui/button.js";
2
+ import { Button } from "@/components/ui/button";
3
3
  import type { AsyncActionButtonSharedProps } from "./schema.js";
4
4
  export type { AsyncActionButtonMessages } from "./index.js";
5
5
  export type AsyncActionButtonProps = Omit<ComponentProps<typeof Button>, keyof AsyncActionButtonSharedProps | "onClick" | "type" | "render" | "nativeButton" | "aria-busy"> & AsyncActionButtonSharedProps & {
@@ -2,59 +2,13 @@
2
2
  import { Check, LoaderCircle, RotateCcw } from "lucide-react";
3
3
  import { Component as Component2 } from "effect/ui";
4
4
  import { useLayoutEffect, useRef, useState } from "react";
5
-
6
- // ../../src/components/ui/button.tsx
7
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
8
- import { cva } from "class-variance-authority";
5
+ import { Button } from "@/components/ui/button";
6
+ import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
7
+ import { useModel } from "@krak-stack/registry/effect-ui-adapter/react";
9
8
 
10
9
  // ../../src/lib/utils.ts
11
10
  import { cn } from "cn";
12
11
 
13
- // ../../src/components/ui/button.tsx
14
- import { jsx } from "react/jsx-runtime";
15
- 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", {
16
- variants: {
17
- variant: {
18
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
19
- 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",
20
- 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",
21
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
22
- 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",
23
- link: "text-primary underline-offset-4 hover:underline"
24
- },
25
- size: {
26
- 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",
27
- 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",
28
- 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",
29
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
30
- icon: "size-9",
31
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
32
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
33
- "icon-lg": "size-10"
34
- }
35
- },
36
- defaultVariants: {
37
- variant: "default",
38
- size: "default"
39
- }
40
- });
41
- function Button({
42
- className,
43
- variant = "default",
44
- size = "default",
45
- ...props
46
- }) {
47
- return /* @__PURE__ */ jsx(ButtonPrimitive, {
48
- "data-slot": "button",
49
- className: cn(buttonVariants({ variant, size, className })),
50
- ...props
51
- });
52
- }
53
-
54
- // ../../src/components/async-action-button/react.tsx
55
- import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
56
- import { useModel } from "@krak-stack/registry/effect-ui-adapter/react";
57
-
58
12
  // ../../src/components/async-action-button/classes.ts
59
13
  var asyncActionButtonClasses = {
60
14
  root: "inline-flex min-w-0 flex-col items-start gap-2",
@@ -152,7 +106,7 @@ var getAsyncActionButtonFeedback = (status, copy) => ({
152
106
  });
153
107
 
154
108
  // ../../src/components/async-action-button/react.tsx
155
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
109
+ import { jsx, jsxs } from "react/jsx-runtime";
156
110
  "use client";
157
111
  var AsyncActionButton = ({
158
112
  classes: classOverrides,
@@ -199,18 +153,18 @@ var AsyncActionButton = ({
199
153
  "aria-busy": status === "pending",
200
154
  onClick: () => send(AsyncActionButtonMessage.Activated()),
201
155
  children: [
202
- status === "pending" ? /* @__PURE__ */ jsx2(LoaderCircle, {
156
+ status === "pending" ? /* @__PURE__ */ jsx(LoaderCircle, {
203
157
  "aria-hidden": "true",
204
158
  className: asyncActionButtonClasses.pendingIcon
205
- }) : status === "success" ? /* @__PURE__ */ jsx2(Check, {
159
+ }) : status === "success" ? /* @__PURE__ */ jsx(Check, {
206
160
  "aria-hidden": "true"
207
- }) : status === "error" ? /* @__PURE__ */ jsx2(RotateCcw, {
161
+ }) : status === "error" ? /* @__PURE__ */ jsx(RotateCcw, {
208
162
  "aria-hidden": "true"
209
163
  }) : null,
210
164
  label ?? children
211
165
  ]
212
166
  }),
213
- /* @__PURE__ */ jsx2("span", {
167
+ /* @__PURE__ */ jsx("span", {
214
168
  "data-slot": "async-action-feedback",
215
169
  role: "status",
216
170
  className: status === "error" ? asyncActionButtonClasses.error : "sr-only",