@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
@@ -1,50 +1,13 @@
1
1
  // ../../src/components/bulk-list-input/html.ts
2
2
  import { Redacted as Redacted2 } 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 { buttonVariants } from "@/components/effectcn/button";
5
+ import { inputVariants } from "@/components/effectcn/input";
6
+ import { Upload as UploadIcon } 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
-
33
- // ../../src/components/effectcn/input.ts
34
- import {
35
- Input as KitInput
36
- } from "effect/ui/kit";
37
- 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";
38
- var sizes2 = {
39
- default: "",
40
- sm: "h-7 rounded-sm px-2.5 text-xs",
41
- lg: "h-10 px-3.5 text-sm"
42
- };
43
- var inputVariants = (options = {}) => cn(base2, sizes2[options.size ?? "default"], options.class);
44
-
45
- // ../../src/components/bulk-list-input/html.ts
46
- import { Upload as UploadIcon } from "@krak-stack/registry/lucide-effect";
47
-
48
11
  // ../../src/components/bulk-list-input/classes.ts
49
12
  var bulkListInputClasses = {
50
13
  root: "flex min-w-0 flex-col gap-3"
@@ -1,5 +1,5 @@
1
1
  import { type ComponentProps, type ReactNode } from "react";
2
- import { Textarea } from "../ui/textarea.js";
2
+ import { Textarea } from "@/components/ui/textarea";
3
3
  import type { BulkListInputSharedProps } from "./schema.js";
4
4
  export { parseBulkList, type BulkListResult } from "./index.js";
5
5
  export type BulkListInputProps = Omit<ComponentProps<typeof Textarea>, keyof BulkListInputSharedProps | "defaultValue" | "onChange" | "children"> & Omit<BulkListInputSharedProps, "files" | "label"> & {
@@ -1,65 +1,12 @@
1
1
  // ../../src/components/bulk-list-input/react.tsx
2
2
  import { Upload } from "lucide-react";
3
3
  import { useRef } from "react";
4
-
5
- // ../../src/components/ui/button.tsx
6
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
7
- import { cva } from "class-variance-authority";
4
+ import { Button } from "@/components/ui/button";
5
+ import { Textarea } from "@/components/ui/textarea";
8
6
 
9
7
  // ../../src/lib/utils.ts
10
8
  import { cn } from "cn";
11
9
 
12
- // ../../src/components/ui/button.tsx
13
- import { jsx } from "react/jsx-runtime";
14
- 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", {
15
- variants: {
16
- variant: {
17
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
18
- 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",
19
- 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",
20
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
21
- 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",
22
- link: "text-primary underline-offset-4 hover:underline"
23
- },
24
- size: {
25
- 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",
26
- 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",
27
- 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",
28
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
29
- icon: "size-9",
30
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
31
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
32
- "icon-lg": "size-10"
33
- }
34
- },
35
- defaultVariants: {
36
- variant: "default",
37
- size: "default"
38
- }
39
- });
40
- function Button({
41
- className,
42
- variant = "default",
43
- size = "default",
44
- ...props
45
- }) {
46
- return /* @__PURE__ */ jsx(ButtonPrimitive, {
47
- "data-slot": "button",
48
- className: cn(buttonVariants({ variant, size, className })),
49
- ...props
50
- });
51
- }
52
-
53
- // ../../src/components/ui/textarea.tsx
54
- import { jsx as jsx2 } from "react/jsx-runtime";
55
- function Textarea({ className, ...props }) {
56
- return /* @__PURE__ */ jsx2("textarea", {
57
- "data-slot": "textarea",
58
- className: cn("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 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),
59
- ...props
60
- });
61
- }
62
-
63
10
  // ../../src/components/bulk-list-input/classes.ts
64
11
  var bulkListInputClasses = {
65
12
  root: "flex min-w-0 flex-col gap-3"
@@ -138,7 +85,7 @@ var update = Component.define(bulkListInputOptions).update({
138
85
  });
139
86
 
140
87
  // ../../src/components/bulk-list-input/react.tsx
141
- import { jsx as jsx3, jsxs, Fragment } from "react/jsx-runtime";
88
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
142
89
  var BulkListInput = ({
143
90
  classes: classOverrides,
144
91
  value,
@@ -175,7 +122,7 @@ var BulkListInput = ({
175
122
  label,
176
123
  files ? /* @__PURE__ */ jsxs(Fragment, {
177
124
  children: [
178
- /* @__PURE__ */ jsx3("input", {
125
+ /* @__PURE__ */ jsx("input", {
179
126
  ref: input,
180
127
  type: "file",
181
128
  className: "hidden",
@@ -197,7 +144,7 @@ var BulkListInput = ({
197
144
  disabled: filesDisabled,
198
145
  onClick: () => input.current?.click(),
199
146
  children: [
200
- /* @__PURE__ */ jsx3(Upload, {
147
+ /* @__PURE__ */ jsx(Upload, {
201
148
  "aria-hidden": "true"
202
149
  }),
203
150
  files.label
@@ -207,7 +154,7 @@ var BulkListInput = ({
207
154
  }) : null
208
155
  ]
209
156
  }) : null,
210
- /* @__PURE__ */ jsx3(Textarea, {
157
+ /* @__PURE__ */ jsx(Textarea, {
211
158
  ...props,
212
159
  "data-component": "bulk-list-textarea",
213
160
  value,
@@ -8,41 +8,7 @@ import { renderTokens } from "@tanstack/highlight/core";
8
8
  import { Schema as Schema3 } from "effect";
9
9
  import { Component as Component2 } from "effect/ui";
10
10
  import { Html } from "effect/ui/html";
11
-
12
- // ../../src/components/effectcn/button.ts
13
- import {
14
- Button as KitButton
15
- } from "effect/ui/kit";
16
-
17
- // ../../src/lib/utils.ts
18
- import { cn } from "cn";
19
-
20
- // ../../src/components/effectcn/button.ts
21
- 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";
22
- var variants = {
23
- default: "bg-primary text-primary-foreground hover:bg-primary/85",
24
- secondary: "bg-secondary text-secondary-foreground hover:bg-accent",
25
- outline: "border-input bg-background text-foreground shadow-sm hover:bg-accent hover:text-accent-foreground",
26
- ghost: "text-foreground hover:bg-accent hover:text-accent-foreground",
27
- brand: "bg-brand-soft text-brand-soft-foreground hover:bg-brand-soft/85",
28
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/85",
29
- link: "h-auto px-0 text-foreground underline decoration-transparent underline-offset-4 hover:decoration-current"
30
- };
31
- var sizes = {
32
- default: "",
33
- sm: "h-7 rounded-sm px-2.5 text-xs",
34
- lg: "h-10 px-5 text-sm",
35
- icon: "w-8.5 px-0",
36
- "icon-sm": "h-7 w-7 rounded-sm px-0"
37
- };
38
- var buttonVariants = (options = {}) => cn(base, variants[options.variant ?? "default"], sizes[options.size ?? "default"], options.class);
39
- var Button = (h, options = {}) => KitButton(h, {
40
- element: options.element,
41
- onPress: options.onPress,
42
- props: options.loading ? { ...options.props, disabled: true, focusableWhenDisabled: true } : options.props
43
- }).class(buttonVariants(options)).attr("data-loading", options.loading ? "" : undefined);
44
-
45
- // ../../src/components/copy-button/html.ts
11
+ import { Button } from "@/components/effectcn/button";
46
12
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
47
13
  import { Check, Copy, TriangleAlert } from "@krak-stack/registry/lucide-effect";
48
14
 
@@ -1,52 +1,5 @@
1
- // ../../src/components/ui/button.tsx
2
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
3
- import { cva } from "class-variance-authority";
4
-
5
- // ../../src/lib/utils.ts
6
- import { cn } from "cn";
7
-
8
- // ../../src/components/ui/button.tsx
9
- import { jsx } from "react/jsx-runtime";
10
- 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", {
11
- variants: {
12
- variant: {
13
- default: "bg-primary text-primary-foreground hover:bg-primary/80",
14
- 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",
15
- 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",
16
- ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
17
- 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",
18
- link: "text-primary underline-offset-4 hover:underline"
19
- },
20
- size: {
21
- 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",
22
- 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",
23
- 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",
24
- lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
25
- icon: "size-9",
26
- "icon-xs": "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
27
- "icon-sm": "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
28
- "icon-lg": "size-10"
29
- }
30
- },
31
- defaultVariants: {
32
- variant: "default",
33
- size: "default"
34
- }
35
- });
36
- function Button({
37
- className,
38
- variant = "default",
39
- size = "default",
40
- ...props
41
- }) {
42
- return /* @__PURE__ */ jsx(ButtonPrimitive, {
43
- "data-slot": "button",
44
- className: cn(buttonVariants({ variant, size, className })),
45
- ...props
46
- });
47
- }
48
-
49
1
  // ../../src/components/copy-button/react.tsx
2
+ import { Button } from "@/components/ui/button";
50
3
  import { Check, Copy, TriangleAlert } from "lucide-react";
51
4
  import { Redacted as Redacted2 } from "effect";
52
5
  import { Component as Component2 } from "effect/ui";
@@ -149,7 +102,7 @@ var copyButtonStatus = (status, copy, description) => {
149
102
  };
150
103
 
151
104
  // ../../src/components/copy-button/react.tsx
152
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
105
+ import { jsx, jsxs } from "react/jsx-runtime";
153
106
  "use client";
154
107
  function CopyButton({
155
108
  value,
@@ -207,22 +160,22 @@ function CopyButton({
207
160
  size: size ?? defaultSize,
208
161
  ...props,
209
162
  children: [
210
- /* @__PURE__ */ jsx2("span", {
163
+ /* @__PURE__ */ jsx("span", {
211
164
  "aria-live": "polite",
212
165
  className: "sr-only",
213
166
  role: "status",
214
167
  children: copyButtonStatus(status, labels, valueDescription)
215
168
  }),
216
- status === "copied" ? /* @__PURE__ */ jsx2(Check, {
169
+ status === "copied" ? /* @__PURE__ */ jsx(Check, {
217
170
  "aria-hidden": "true"
218
171
  }) : null,
219
- status === "failed" ? /* @__PURE__ */ jsx2(TriangleAlert, {
172
+ status === "failed" ? /* @__PURE__ */ jsx(TriangleAlert, {
220
173
  "aria-hidden": "true"
221
174
  }) : null,
222
- status === "idle" ? /* @__PURE__ */ jsx2(Copy, {
175
+ status === "idle" ? /* @__PURE__ */ jsx(Copy, {
223
176
  "aria-hidden": "true"
224
177
  }) : null,
225
- isLarge ? /* @__PURE__ */ jsx2("span", {
178
+ isLarge ? /* @__PURE__ */ jsx("span", {
226
179
  children: labels.copy
227
180
  }) : null
228
181
  ]
@@ -290,7 +243,7 @@ var codeBlockMessages = (locale = "en", translations) => ({
290
243
  var codeLanguage = (language = "text") => language.toLowerCase() || "text";
291
244
 
292
245
  // ../../src/components/code-block/react.tsx
293
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
246
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
294
247
  function CodeBlock({
295
248
  classes: classOverrides,
296
249
  code,
@@ -307,17 +260,17 @@ function CodeBlock({
307
260
  className: codeBlockClasses.root,
308
261
  "data-code-theme": true,
309
262
  children: [
310
- /* @__PURE__ */ jsx3("style", {
263
+ /* @__PURE__ */ jsx2("style", {
311
264
  children: codeThemeCss
312
265
  }),
313
266
  /* @__PURE__ */ jsxs2("div", {
314
267
  className: codeBlockClasses.header,
315
268
  children: [
316
- /* @__PURE__ */ jsx3("span", {
269
+ /* @__PURE__ */ jsx2("span", {
317
270
  className: codeBlockClasses.language,
318
271
  children: highlighted.lang
319
272
  }),
320
- /* @__PURE__ */ jsx3(CopyButton, {
273
+ /* @__PURE__ */ jsx2(CopyButton, {
321
274
  value: code,
322
275
  valueDescription: labels.codeDescription(highlighted.lang),
323
276
  variant: "ghost",
@@ -326,7 +279,7 @@ function CodeBlock({
326
279
  })
327
280
  ]
328
281
  }),
329
- /* @__PURE__ */ jsx3("div", {
282
+ /* @__PURE__ */ jsx2("div", {
330
283
  className: codeBlockClasses.viewport,
331
284
  dangerouslySetInnerHTML: { __html: highlighted.html }
332
285
  })
@@ -1,28 +1,11 @@
1
1
  // ../../src/components/color-input/html.ts
2
2
  import { Html } from "effect/ui/html";
3
-
4
- // ../../src/components/effectcn/input.ts
5
- import {
6
- Input as KitInput
7
- } from "effect/ui/kit";
3
+ import { Input, InputGroup } from "@/components/effectcn/input";
4
+ import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
8
5
 
9
6
  // ../../src/lib/utils.ts
10
7
  import { cn } from "cn";
11
8
 
12
- // ../../src/components/effectcn/input.ts
13
- var base = "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";
14
- var sizes = {
15
- default: "",
16
- sm: "h-7 rounded-sm px-2.5 text-xs",
17
- lg: "h-10 px-3.5 text-sm"
18
- };
19
- var inputVariants = (options = {}) => cn(base, sizes[options.size ?? "default"], options.class);
20
- var Input = (h, options) => KitInput(h, options).class(inputVariants(options));
21
- var InputGroup = (h, options = {}) => h.div.class(cn("border-input bg-background flex h-8.5 w-full items-center rounded-md border shadow-sm", "focus-within:border-ring focus-within:ring-ring/20 transition-[border-color,box-shadow] duration-150 focus-within:ring-3", "has-[input[aria-invalid=true]]:border-destructive has-[input[data-disabled]]:opacity-50", "[&>input]:h-full [&>input]:flex-1 [&>input]:border-0 [&>input]:bg-transparent [&>input]:shadow-none [&>input]:focus-visible:ring-0", options.class));
22
-
23
- // ../../src/components/color-input/html.ts
24
- import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
25
-
26
9
  // ../../src/components/color-input/classes.ts
27
10
  var colorInputClasses = {
28
11
  swatch: "border-foreground/20 focus-visible:ring-ring size-6 shrink-0 cursor-pointer appearance-none overflow-hidden rounded-md border bg-transparent p-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-default disabled:opacity-50 [&::-moz-color-swatch]:border-0 [&::-webkit-color-swatch]:border-0 [&::-webkit-color-swatch-wrapper]:p-0",
@@ -1,102 +1,11 @@
1
1
  // ../../src/components/color-input/react.tsx
2
2
  import { useState } from "react";
3
-
4
- // ../../src/components/ui/input-group.tsx
5
- import { cva as cva2 } from "class-variance-authority";
6
-
7
- // ../../src/components/ui/button.tsx
8
- import { Button as ButtonPrimitive } from "@base-ui/react/button";
9
- import { cva } from "class-variance-authority";
3
+ import { InputGroup, InputGroupInput } from "@/components/ui/input-group";
4
+ import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
10
5
 
11
6
  // ../../src/lib/utils.ts
12
7
  import { cn } from "cn";
13
8
 
14
- // ../../src/components/ui/button.tsx
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
-
42
- // ../../src/components/ui/input.tsx
43
- import { Input as InputPrimitive } from "@base-ui/react/input";
44
- import { jsx } from "react/jsx-runtime";
45
- function Input({ className, type, ...props }) {
46
- return /* @__PURE__ */ jsx(InputPrimitive, {
47
- type,
48
- "data-slot": "input",
49
- 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),
50
- ...props
51
- });
52
- }
53
-
54
- // ../../src/components/ui/input-group.tsx
55
- import { jsx as jsx2 } from "react/jsx-runtime";
56
- function InputGroup({ className, ...props }) {
57
- return /* @__PURE__ */ jsx2("div", {
58
- "data-slot": "input-group",
59
- role: "group",
60
- className: cn("group/input-group relative flex h-9 w-full min-w-0 items-center rounded-md border border-input shadow-xs transition-[color,box-shadow] outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5", className),
61
- ...props
62
- });
63
- }
64
- var inputGroupAddonVariants = cva2("flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4", {
65
- variants: {
66
- align: {
67
- "inline-start": "order-first pl-2 has-[>button]:-ml-1 has-[>kbd]:ml-[-0.15rem]",
68
- "inline-end": "order-last pr-2 has-[>button]:-mr-1 has-[>kbd]:mr-[-0.15rem]",
69
- "block-start": "order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2",
70
- "block-end": "order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"
71
- }
72
- },
73
- defaultVariants: { align: "inline-start" }
74
- });
75
- var inputGroupButtonVariants = cva2("flex items-center gap-2 text-sm shadow-none", {
76
- variants: {
77
- size: {
78
- xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
79
- sm: "",
80
- "icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
81
- "icon-sm": "size-8 p-0 has-[>svg]:p-0"
82
- }
83
- },
84
- defaultVariants: { size: "xs" }
85
- });
86
- function InputGroupInput({
87
- className,
88
- ...props
89
- }) {
90
- return /* @__PURE__ */ jsx2(Input, {
91
- "data-slot": "input-group-control",
92
- className: cn("flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent", className),
93
- ...props
94
- });
95
- }
96
-
97
- // ../../src/components/color-input/react.tsx
98
- import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
99
-
100
9
  // ../../src/components/color-input/classes.ts
101
10
  var colorInputClasses = {
102
11
  swatch: "border-foreground/20 focus-visible:ring-ring size-6 shrink-0 cursor-pointer appearance-none overflow-hidden rounded-md border bg-transparent p-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-default disabled:opacity-50 [&::-moz-color-swatch]:border-0 [&::-webkit-color-swatch]:border-0 [&::-webkit-color-swatch-wrapper]:p-0",
@@ -228,7 +137,7 @@ var colorPickerBehaviours = {
228
137
  };
229
138
 
230
139
  // ../../src/components/color-input/react.tsx
231
- import { jsx as jsx3, jsxs } from "react/jsx-runtime";
140
+ import { jsx, jsxs } from "react/jsx-runtime";
232
141
  var ColorInput = ({
233
142
  classes: classOverrides,
234
143
  value,
@@ -272,7 +181,7 @@ var ColorInput = ({
272
181
  className,
273
182
  "data-disabled": disabled || undefined,
274
183
  children: [
275
- /* @__PURE__ */ jsx3(InputGroupInput, {
184
+ /* @__PURE__ */ jsx(InputGroupInput, {
276
185
  ...inputProps,
277
186
  type: "text",
278
187
  "aria-label": ariaLabel ?? copy.input,
@@ -297,9 +206,9 @@ var ColorInput = ({
297
206
  }
298
207
  }
299
208
  }),
300
- /* @__PURE__ */ jsx3("span", {
209
+ /* @__PURE__ */ jsx("span", {
301
210
  className: colorInputClasses.swatchContainer,
302
- children: /* @__PURE__ */ jsx3("input", {
211
+ children: /* @__PURE__ */ jsx("input", {
303
212
  type: "color",
304
213
  "aria-label": copy.open,
305
214
  disabled: disabled || readOnly,
@@ -2,41 +2,7 @@
2
2
  import { Schema as Schema3 } from "effect";
3
3
  import { Component as Component2 } from "effect/ui";
4
4
  import { Html } from "effect/ui/html";
5
-
6
- // ../../src/components/effectcn/button.ts
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/copy-button/html.ts
5
+ import { Button } from "@/components/effectcn/button";
40
6
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
41
7
  import { Check, Copy, TriangleAlert } from "@krak-stack/registry/lucide-effect";
42
8
 
@@ -1,4 +1,4 @@
1
- import { Button } from "../ui/button.js";
1
+ import { Button } from "@/components/ui/button";
2
2
  import type { ComponentProps } from "react";
3
3
  import type { CopyButtonSharedProps } from "./schema.js";
4
4
  export { copyButtonMessages } from "./index.js";