@krak-stack/registry 0.11.4 → 0.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/README.md +23 -9
  3. package/dist/components/agent/react.js +226 -1072
  4. package/dist/components/app-switcher/html.js +10 -53
  5. package/dist/components/app-switcher/react.js +29 -139
  6. package/dist/components/async-action-button/html.js +3 -34
  7. package/dist/components/async-action-button/react.d.ts +1 -1
  8. package/dist/components/async-action-button/react.js +8 -54
  9. package/dist/components/audit-log-table/react.js +706 -1279
  10. package/dist/components/bulk-list-input/html.js +3 -40
  11. package/dist/components/bulk-list-input/react.d.ts +1 -1
  12. package/dist/components/bulk-list-input/react.js +6 -59
  13. package/dist/components/code-block/html.js +1 -35
  14. package/dist/components/code-block/react.js +12 -59
  15. package/dist/components/color-input/html.js +2 -19
  16. package/dist/components/color-input/react.js +6 -97
  17. package/dist/components/copy-button/html.js +1 -35
  18. package/dist/components/copy-button/react.d.ts +1 -1
  19. package/dist/components/copy-button/react.js +7 -54
  20. package/dist/components/copy-value/html.js +11 -52
  21. package/dist/components/copy-value/react.js +25 -165
  22. package/dist/components/cron-input/html.js +2 -18
  23. package/dist/components/cron-input/react.js +15 -30
  24. package/dist/components/danger-confirmation/html.js +11 -57
  25. package/dist/components/danger-confirmation/react.js +26 -187
  26. package/dist/components/data-table/classes.d.ts +9 -3
  27. package/dist/components/data-table/html.d.ts +93 -21
  28. package/dist/components/data-table/html.js +309 -196
  29. package/dist/components/data-table/index.d.ts +97 -9
  30. package/dist/components/data-table/react.d.ts +14 -3
  31. package/dist/components/data-table/react.js +700 -1273
  32. package/dist/components/data-table/schema.d.ts +175 -16
  33. package/dist/components/date-input/html.js +19 -74
  34. package/dist/components/date-input/react.d.ts +1 -1
  35. package/dist/components/date-input/react.js +28 -313
  36. package/dist/components/docs/classes.d.ts +15 -0
  37. package/dist/components/docs/html.d.ts +55 -0
  38. package/dist/components/docs/html.js +837 -0
  39. package/dist/components/docs/index.d.ts +49 -0
  40. package/dist/components/docs/react.d.ts +10 -0
  41. package/dist/components/docs/react.js +949 -0
  42. package/dist/components/docs/schema.d.ts +49 -0
  43. package/dist/components/editable-text/html.js +6 -52
  44. package/dist/components/editable-text/react.js +13 -83
  45. package/dist/components/editing-locale-switcher/html.d.ts +2 -2
  46. package/dist/components/editing-locale-switcher/html.js +13 -43
  47. package/dist/components/editing-locale-switcher/react.js +17 -141
  48. package/dist/components/effect-form/react.js +249 -812
  49. package/dist/components/email-composer/react.js +62 -279
  50. package/dist/components/email-editor/html.js +13 -58
  51. package/dist/components/email-editor/react.js +187 -483
  52. package/dist/components/error-component/html.js +2 -47
  53. package/dist/components/error-component/react.js +33 -137
  54. package/dist/components/file-input/html.js +9 -40
  55. package/dist/components/file-input/react.js +39 -208
  56. package/dist/components/form/react.js +212 -777
  57. package/dist/components/icon-input/html.js +9 -56
  58. package/dist/components/icon-input/react.js +43 -143
  59. package/dist/components/image-crop-editor/html.js +1 -35
  60. package/dist/components/image-crop-editor/react.js +21 -66
  61. package/dist/components/locale-switcher/html.js +8 -55
  62. package/dist/components/locale-switcher/react.js +21 -146
  63. package/dist/components/map-menu/html.d.ts +8 -8
  64. package/dist/components/map-menu/html.js +13 -72
  65. package/dist/components/map-menu/react.js +92 -309
  66. package/dist/components/markdown/html.js +1 -35
  67. package/dist/components/markdown/react.js +20 -64
  68. package/dist/components/notification-menu/html.js +14 -50
  69. package/dist/components/notification-menu/react.js +73 -343
  70. package/dist/components/pagination/html.js +17 -73
  71. package/dist/components/pagination/react.js +37 -200
  72. package/dist/components/phone-number-input/html.js +19 -57
  73. package/dist/components/phone-number-input/react.d.ts +1 -1
  74. package/dist/components/phone-number-input/react.js +43 -142
  75. package/dist/components/presence-transition/index.d.ts +2 -2
  76. package/dist/components/registry-previews/component-example.js +26 -126
  77. package/dist/components/rich-text-editor/html.d.ts +12 -12
  78. package/dist/components/rich-text-editor/html.js +12 -85
  79. package/dist/components/rich-text-editor/react.js +55 -272
  80. package/dist/components/search-menu/classes.d.ts +2 -0
  81. package/dist/components/search-menu/html.d.ts +2 -0
  82. package/dist/components/search-menu/html.js +40 -73
  83. package/dist/components/search-menu/index.d.ts +27 -2
  84. package/dist/components/search-menu/react.d.ts +1 -1
  85. package/dist/components/search-menu/react.js +59 -280
  86. package/dist/components/search-menu/schema.d.ts +1 -0
  87. package/dist/components/select-with-custom-input/html.d.ts +2 -2
  88. package/dist/components/select-with-custom-input/html.js +13 -48
  89. package/dist/components/select-with-custom-input/react.js +22 -146
  90. package/dist/components/sidebar-layout/html.d.ts +16 -6
  91. package/dist/components/sidebar-layout/html.js +83 -69
  92. package/dist/components/sidebar-layout/index.d.ts +16 -0
  93. package/dist/components/sidebar-layout/react.js +105 -698
  94. package/dist/components/stats-card/react.js +13 -58
  95. package/dist/components/support/html.js +14 -69
  96. package/dist/components/support/react.js +74 -320
  97. package/dist/components/theme-switcher/html.js +11 -55
  98. package/dist/components/theme-switcher/react.js +28 -152
  99. package/dist/components/time-input/html.d.ts +2 -2
  100. package/dist/components/time-input/html.js +8 -53
  101. package/dist/components/time-input/react.js +34 -188
  102. package/dist/components/timezone-input/html.js +11 -67
  103. package/dist/components/timezone-input/react.js +41 -143
  104. package/dist/components/toast/html.d.ts +6 -6
  105. package/dist/components/toast/html.js +13 -46
  106. package/dist/components/tracking-notice/react.js +39 -188
  107. package/dist/components/unsaved-changes-guard/html.js +9 -43
  108. package/dist/components/unsaved-changes-guard/react.js +19 -169
  109. package/dist/components/upload-attachment/html.d.ts +4 -4
  110. package/dist/components/upload-attachment/html.js +4 -35
  111. package/dist/components/upload-attachment/react.js +25 -164
  112. package/dist/components/virtualized-combobox/html.js +10 -35
  113. package/dist/components/virtualized-combobox/react.js +28 -129
  114. package/dist/components/webhook-delivery-table/html.js +320 -206
  115. package/dist/components/webhook-delivery-table/react.js +736 -1376
  116. package/dist/lib/docs.integrations.server.js +150 -202
  117. package/dist/lib/docs.js +305 -1085
  118. package/dist/lib/docs.server.js +134 -186
  119. package/dist/lib/documentation-toolkit.js +144 -196
  120. package/dist/services/agent/client/index.js +226 -1072
  121. package/dist/services/notification/client/index.js +73 -343
  122. package/dist/services/notification/public.js +73 -343
  123. package/package.json +5 -13
  124. package/dist/components/effectcn/alert-dialog.d.ts +0 -13
  125. package/dist/components/effectcn/button.d.ts +0 -31
  126. package/dist/components/effectcn/calendar.d.ts +0 -12
  127. package/dist/components/effectcn/checkbox.d.ts +0 -10
  128. package/dist/components/effectcn/combobox.d.ts +0 -25
  129. package/dist/components/effectcn/dialog.d.ts +0 -19
  130. package/dist/components/effectcn/field.d.ts +0 -11
  131. package/dist/components/effectcn/file-drop.d.ts +0 -8
  132. package/dist/components/effectcn/input.d.ts +0 -26
  133. package/dist/components/effectcn/menu.d.ts +0 -85
  134. package/dist/components/effectcn/menubar.d.ts +0 -8
  135. package/dist/components/effectcn/popover.d.ts +0 -18
  136. package/dist/components/effectcn/scroll-area.d.ts +0 -12
  137. package/dist/components/effectcn/select.d.ts +0 -68
  138. package/dist/components/effectcn/toast.d.ts +0 -29
  139. package/dist/components/ui/alert-dialog.d.ts +0 -18
  140. package/dist/components/ui/alert.d.ts +0 -10
  141. package/dist/components/ui/attachment.d.ts +0 -23
  142. package/dist/components/ui/badge.d.ts +0 -7
  143. package/dist/components/ui/bubble.d.ts +0 -16
  144. package/dist/components/ui/button.d.ts +0 -8
  145. package/dist/components/ui/calendar.d.ts +0 -10
  146. package/dist/components/ui/card.d.ts +0 -11
  147. package/dist/components/ui/checkbox.d.ts +0 -3
  148. package/dist/components/ui/collapsible.d.ts +0 -5
  149. package/dist/components/ui/command.d.ts +0 -18
  150. package/dist/components/ui/dialog.d.ts +0 -17
  151. package/dist/components/ui/dropdown-menu.d.ts +0 -29
  152. package/dist/components/ui/empty.d.ts +0 -11
  153. package/dist/components/ui/field.d.ts +0 -24
  154. package/dist/components/ui/input-group.d.ts +0 -17
  155. package/dist/components/ui/input.d.ts +0 -3
  156. package/dist/components/ui/item.d.ts +0 -22
  157. package/dist/components/ui/label.d.ts +0 -3
  158. package/dist/components/ui/menubar.d.ts +0 -29
  159. package/dist/components/ui/message-scroller.d.ts +0 -10
  160. package/dist/components/ui/message.d.ts +0 -10
  161. package/dist/components/ui/popover.d.ts +0 -9
  162. package/dist/components/ui/scroll-area.d.ts +0 -4
  163. package/dist/components/ui/select.d.ts +0 -15
  164. package/dist/components/ui/select.js +0 -159
  165. package/dist/components/ui/separator.d.ts +0 -3
  166. package/dist/components/ui/sheet.d.ts +0 -14
  167. package/dist/components/ui/sidebar.d.ts +0 -63
  168. package/dist/components/ui/skeleton.d.ts +0 -2
  169. package/dist/components/ui/table.d.ts +0 -10
  170. package/dist/components/ui/tabs.d.ts +0 -10
  171. package/dist/components/ui/textarea.d.ts +0 -3
  172. package/dist/components/ui/tooltip.d.ts +0 -6
  173. package/dist/components/ui/trace.d.ts +0 -18
  174. package/dist/lib/effectcn-form.d.ts +0 -3
  175. package/dist/lib/effectcn-form.js +0 -54
@@ -1,177 +1,23 @@
1
1
  // ../../src/components/time-input/react.tsx
2
2
  import { useId, useLayoutEffect, useRef, useState } from "react";
3
3
  import { Clock, X } from "lucide-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 {
6
+ InputGroup,
7
+ InputGroupButton,
8
+ InputGroupInput
9
+ } from "@/components/ui/input-group";
10
+ import {
11
+ Popover,
12
+ PopoverContent,
13
+ PopoverTitle,
14
+ PopoverTrigger
15
+ } from "@/components/ui/popover";
16
+ import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
8
17
 
9
18
  // ../../src/lib/utils.ts
10
19
  import { cn } from "cn";
11
20
 
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/input-group.tsx
54
- import { cva as cva2 } from "class-variance-authority";
55
-
56
- // ../../src/components/ui/input.tsx
57
- import { Input as InputPrimitive } from "@base-ui/react/input";
58
- import { jsx as jsx2 } from "react/jsx-runtime";
59
- function Input({ className, type, ...props }) {
60
- return /* @__PURE__ */ jsx2(InputPrimitive, {
61
- type,
62
- "data-slot": "input",
63
- 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),
64
- ...props
65
- });
66
- }
67
-
68
- // ../../src/components/ui/input-group.tsx
69
- import { jsx as jsx3 } from "react/jsx-runtime";
70
- function InputGroup({ className, ...props }) {
71
- return /* @__PURE__ */ jsx3("div", {
72
- "data-slot": "input-group",
73
- role: "group",
74
- 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),
75
- ...props
76
- });
77
- }
78
- 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", {
79
- variants: {
80
- align: {
81
- "inline-start": "order-first pl-2 has-[>button]:-ml-1 has-[>kbd]:ml-[-0.15rem]",
82
- "inline-end": "order-last pr-2 has-[>button]:-mr-1 has-[>kbd]:mr-[-0.15rem]",
83
- "block-start": "order-first w-full justify-start px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2",
84
- "block-end": "order-last w-full justify-start px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2"
85
- }
86
- },
87
- defaultVariants: { align: "inline-start" }
88
- });
89
- var inputGroupButtonVariants = cva2("flex items-center gap-2 text-sm shadow-none", {
90
- variants: {
91
- size: {
92
- xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
93
- sm: "",
94
- "icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
95
- "icon-sm": "size-8 p-0 has-[>svg]:p-0"
96
- }
97
- },
98
- defaultVariants: { size: "xs" }
99
- });
100
- function InputGroupButton({
101
- className,
102
- type = "button",
103
- variant = "ghost",
104
- size = "xs",
105
- ...props
106
- }) {
107
- return /* @__PURE__ */ jsx3(Button, {
108
- type,
109
- "data-size": size,
110
- variant,
111
- className: cn(inputGroupButtonVariants({ size }), className),
112
- ...props
113
- });
114
- }
115
- function InputGroupInput({
116
- className,
117
- ...props
118
- }) {
119
- return /* @__PURE__ */ jsx3(Input, {
120
- "data-slot": "input-group-control",
121
- 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),
122
- ...props
123
- });
124
- }
125
-
126
- // ../../src/components/ui/popover.tsx
127
- import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
128
- import { jsx as jsx4 } from "react/jsx-runtime";
129
- function Popover({ ...props }) {
130
- return /* @__PURE__ */ jsx4(PopoverPrimitive.Root, {
131
- "data-slot": "popover",
132
- ...props
133
- });
134
- }
135
- function PopoverTrigger({ ...props }) {
136
- return /* @__PURE__ */ jsx4(PopoverPrimitive.Trigger, {
137
- "data-slot": "popover-trigger",
138
- ...props
139
- });
140
- }
141
- function PopoverContent({
142
- className,
143
- align = "center",
144
- alignOffset = 0,
145
- side = "bottom",
146
- sideOffset = 4,
147
- ...props
148
- }) {
149
- return /* @__PURE__ */ jsx4(PopoverPrimitive.Portal, {
150
- children: /* @__PURE__ */ jsx4(PopoverPrimitive.Positioner, {
151
- align,
152
- alignOffset,
153
- side,
154
- sideOffset,
155
- className: "isolate z-50",
156
- children: /* @__PURE__ */ jsx4(PopoverPrimitive.Popup, {
157
- "data-slot": "popover-content",
158
- className: cn("z-50 flex w-72 origin-(--transform-origin) flex-col gap-4 rounded-md bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
159
- ...props
160
- })
161
- })
162
- });
163
- }
164
- function PopoverTitle({ className, ...props }) {
165
- return /* @__PURE__ */ jsx4(PopoverPrimitive.Title, {
166
- "data-slot": "popover-title",
167
- className: cn("font-medium", className),
168
- ...props
169
- });
170
- }
171
-
172
- // ../../src/components/time-input/react.tsx
173
- import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
174
-
175
21
  // ../../src/components/time-input/classes.ts
176
22
  var timeInputClasses = {
177
23
  root: "grid min-w-0 gap-2",
@@ -412,7 +258,7 @@ var timeInputError = (status, precision, copy) => {
412
258
  };
413
259
 
414
260
  // ../../src/components/time-input/react.tsx
415
- import { jsx as jsx5, jsxs } from "react/jsx-runtime";
261
+ import { jsx, jsxs } from "react/jsx-runtime";
416
262
  "use client";
417
263
  var pad = (value) => String(value).padStart(2, "0");
418
264
  var actionClassName = "bg-clip-padding hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent";
@@ -442,19 +288,19 @@ var TimeColumn = ({
442
288
  "data-slot": "time-input-column",
443
289
  className: cn(slotClasses.root, className),
444
290
  children: [
445
- /* @__PURE__ */ jsx5("p", {
291
+ /* @__PURE__ */ jsx("p", {
446
292
  id,
447
293
  "data-slot": "time-input-column-label",
448
294
  className: "text-muted-foreground text-center text-xs font-medium",
449
295
  children: label
450
296
  }),
451
- /* @__PURE__ */ jsx5("div", {
297
+ /* @__PURE__ */ jsx("div", {
452
298
  ref: viewport,
453
299
  role: "radiogroup",
454
300
  "aria-labelledby": id,
455
301
  "data-slot": "time-input-options",
456
302
  className: slotClasses.choices,
457
- children: values.map((value) => /* @__PURE__ */ jsx5(Button, {
303
+ children: values.map((value) => /* @__PURE__ */ jsx(Button, {
458
304
  type: "button",
459
305
  role: "radio",
460
306
  "aria-checked": value === selected,
@@ -567,13 +413,13 @@ var TimeInput = ({
567
413
  "data-state": status,
568
414
  className: cn(timeInputClasses.root, className),
569
415
  children: [
570
- /* @__PURE__ */ jsx5("label", {
416
+ /* @__PURE__ */ jsx("label", {
571
417
  htmlFor: id,
572
418
  "data-slot": "time-input-label",
573
419
  className: timeInputClasses.label,
574
420
  children: label ?? copy.label
575
421
  }),
576
- /* @__PURE__ */ jsx5("input", {
422
+ /* @__PURE__ */ jsx("input", {
577
423
  type: "hidden",
578
424
  name,
579
425
  value,
@@ -584,7 +430,7 @@ var TimeInput = ({
584
430
  className: "min-w-0 gap-1 pe-1 data-[disabled]:opacity-50 [&>input:disabled]:opacity-100",
585
431
  "data-disabled": disabled || undefined,
586
432
  children: [
587
- /* @__PURE__ */ jsx5(InputGroupInput, {
433
+ /* @__PURE__ */ jsx(InputGroupInput, {
588
434
  id,
589
435
  type: "time",
590
436
  step: unit / 1000,
@@ -605,14 +451,14 @@ var TimeInput = ({
605
451
  }
606
452
  }
607
453
  }),
608
- showClear ? /* @__PURE__ */ jsx5(InputGroupButton, {
454
+ showClear ? /* @__PURE__ */ jsx(InputGroupButton, {
609
455
  size: "icon-xs",
610
456
  className: actionClassName,
611
457
  "data-component": "time-input-clear",
612
458
  disabled: locked,
613
459
  "aria-label": copy.clear,
614
460
  onClick: () => onValueChange(""),
615
- children: /* @__PURE__ */ jsx5(X, {
461
+ children: /* @__PURE__ */ jsx(X, {
616
462
  "aria-hidden": "true"
617
463
  })
618
464
  }) : null,
@@ -620,15 +466,15 @@ var TimeInput = ({
620
466
  open: open && !locked && status !== "invalid-range",
621
467
  onOpenChange: setOpen,
622
468
  children: [
623
- /* @__PURE__ */ jsx5(PopoverTrigger, {
624
- render: /* @__PURE__ */ jsx5(InputGroupButton, {
469
+ /* @__PURE__ */ jsx(PopoverTrigger, {
470
+ render: /* @__PURE__ */ jsx(InputGroupButton, {
625
471
  size: "icon-xs",
626
472
  className: actionClassName,
627
473
  disabled: locked || status === "invalid-range",
628
474
  "aria-label": copy.open,
629
475
  "data-component": "time-input-trigger"
630
476
  }),
631
- children: /* @__PURE__ */ jsx5(Clock, {
477
+ children: /* @__PURE__ */ jsx(Clock, {
632
478
  "aria-hidden": "true"
633
479
  })
634
480
  }),
@@ -637,7 +483,7 @@ var TimeInput = ({
637
483
  "data-component": "time-input-content",
638
484
  className: cn("max-h-[calc(100dvh-2rem)] max-w-[calc(100vw-2rem)] gap-3 overflow-y-auto", precision === "millisecond" ? timeInputClasses.widePanel : precision === "second" ? timeInputClasses.standardPanel : timeInputClasses.narrowPanel, contentClassName),
639
485
  children: [
640
- /* @__PURE__ */ jsx5(PopoverTitle, {
486
+ /* @__PURE__ */ jsx(PopoverTitle, {
641
487
  className: "sr-only",
642
488
  children: label ?? copy.label
643
489
  }),
@@ -645,7 +491,7 @@ var TimeInput = ({
645
491
  "data-slot": "time-input-columns",
646
492
  className: cn("grid gap-3", precision === "millisecond" ? hourCycle === 12 ? "grid-cols-5" : "grid-cols-4" : precision === "second" ? hourCycle === 12 ? "grid-cols-4" : "grid-cols-3" : hourCycle === 12 ? "grid-cols-3" : "grid-cols-2"),
647
493
  children: [
648
- /* @__PURE__ */ jsx5(TimeColumn, {
494
+ /* @__PURE__ */ jsx(TimeColumn, {
649
495
  slotClasses: timeInputClasses,
650
496
  label: copy.hours,
651
497
  values: hours,
@@ -657,7 +503,7 @@ var TimeInput = ({
657
503
  selectClosest(nextHour * 3600000 + selected % 3600000, intervals.filter(({ minute }) => Math.floor(minute / 60) === nextHour));
658
504
  }
659
505
  }),
660
- /* @__PURE__ */ jsx5(TimeColumn, {
506
+ /* @__PURE__ */ jsx(TimeColumn, {
661
507
  slotClasses: timeInputClasses,
662
508
  label: copy.minutes,
663
509
  values: minutes,
@@ -666,7 +512,7 @@ var TimeInput = ({
666
512
  optionClassName,
667
513
  onSelect: (minute) => selectClosest(hour * 3600000 + minute * 60000 + selected % 60000, intervals.filter((interval) => interval.minute === hour * 60 + minute))
668
514
  }),
669
- precision !== "minute" ? /* @__PURE__ */ jsx5(TimeColumn, {
515
+ precision !== "minute" ? /* @__PURE__ */ jsx(TimeColumn, {
670
516
  slotClasses: timeInputClasses,
671
517
  label: copy.seconds,
672
518
  values: seconds,
@@ -685,7 +531,7 @@ var TimeInput = ({
685
531
  ]);
686
532
  }
687
533
  }) : null,
688
- precision === "millisecond" ? /* @__PURE__ */ jsx5(TimeColumn, {
534
+ precision === "millisecond" ? /* @__PURE__ */ jsx(TimeColumn, {
689
535
  slotClasses: timeInputClasses,
690
536
  label: copy.milliseconds,
691
537
  values: milliseconds,
@@ -695,7 +541,7 @@ var TimeInput = ({
695
541
  optionClassName,
696
542
  onSelect: (millisecond) => select(Math.floor(selected / 1000) * 1000 + millisecond)
697
543
  }) : null,
698
- hourCycle === 12 ? /* @__PURE__ */ jsx5(TimeColumn, {
544
+ hourCycle === 12 ? /* @__PURE__ */ jsx(TimeColumn, {
699
545
  slotClasses: timeInputClasses,
700
546
  label: copy.period,
701
547
  values: periods,
@@ -710,7 +556,7 @@ var TimeInput = ({
710
556
  }) : null
711
557
  ]
712
558
  }),
713
- /* @__PURE__ */ jsx5(Button, {
559
+ /* @__PURE__ */ jsx(Button, {
714
560
  type: "button",
715
561
  variant: "outline",
716
562
  "data-component": "time-input-done",
@@ -723,13 +569,13 @@ var TimeInput = ({
723
569
  })
724
570
  ]
725
571
  }),
726
- description ? /* @__PURE__ */ jsx5("p", {
572
+ description ? /* @__PURE__ */ jsx("p", {
727
573
  id: `${id}-description`,
728
574
  "data-slot": "time-input-description",
729
575
  className: timeInputClasses.hint,
730
576
  children: description
731
577
  }) : null,
732
- error ? /* @__PURE__ */ jsx5("p", {
578
+ error ? /* @__PURE__ */ jsx("p", {
733
579
  id: `${id}-error`,
734
580
  "data-slot": "time-input-error",
735
581
  role: "status",
@@ -1,77 +1,21 @@
1
1
  // ../../src/components/timezone-input/html.ts
2
2
  import { Html as Html2 } from "effect/ui/html";
3
-
4
- // ../../src/components/effectcn/button.ts
5
- import {
6
- Button as KitButton
7
- } from "effect/ui/kit";
8
-
9
- // ../../src/lib/utils.ts
10
- import { cn } from "cn";
11
-
12
- // ../../src/components/effectcn/button.ts
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
- var Button = (h, options = {}) => KitButton(h, {
32
- element: options.element,
33
- onPress: options.onPress,
34
- props: options.loading ? { ...options.props, disabled: true, focusableWhenDisabled: true } : options.props
35
- }).class(buttonVariants(options)).attr("data-loading", options.loading ? "" : undefined);
36
-
37
- // ../../src/components/timezone-input/html.ts
3
+ import { Button } from "@/components/effectcn/button";
38
4
  import { krakstackLocaleRead as krakstackLocaleRead2 } from "@krak-stack/registry/krakstack-provider/html";
39
5
 
40
6
  // ../../src/components/virtualized-combobox/html.ts
41
7
  import { Html } from "effect/ui/html";
42
8
  import { Combobox, VirtualList } from "effect/ui/kit";
43
-
44
- // ../../src/components/effectcn/combobox.ts
45
- var icon = (h, path) => h.el("svg").attrs({
46
- viewBox: "0 0 24 24",
47
- fill: "none",
48
- stroke: "currentColor",
49
- "stroke-width": "2",
50
- "stroke-linecap": "round",
51
- "stroke-linejoin": "round",
52
- "aria-hidden": "true"
53
- }).children(h.el("path").attr("d", path));
54
- var ComboboxButton = (h, combobox, options = {}) => combobox.trigger(h.button.class(cn("border-input bg-background text-foreground hover:bg-accent data-[popup-open]:bg-accent inline-flex h-8.5 w-56 items-center justify-between gap-2 rounded-md border pr-2 pl-3 text-start text-[13px] whitespace-nowrap shadow-sm transition-colors duration-150 select-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 [&_svg]:size-3.5", options.class))).children(options.value === undefined ? combobox.value(h.span.class("min-w-0 truncate data-[placeholder]:text-muted-foreground")) : h.span.class(cn("data-[placeholder]:text-muted-foreground min-w-0 truncate", options.valueClass)).children(options.value), combobox.icon(h.span.class("grid shrink-0 place-items-center text-muted-foreground")).children(icon(h, "M7 15l5 5 5-5M7 9l5-5 5 5")));
55
- var ComboboxClear = (h, combobox, options = {}) => combobox.clear({
56
- element: h.button.class(cn("text-muted-foreground hover:bg-accent hover:text-foreground grid size-6 shrink-0 place-items-center rounded-sm transition-colors duration-150 data-[disabled]:pointer-events-none [&_svg]:size-3.5", options.class))
57
- })?.children(icon(h, "M18 6L6 18M6 6l12 12"));
58
- var ComboboxPositioner = (h, combobox, options = {}) => combobox.positioner(h.div.class(cn("outline-none", options.class)));
59
- var ComboboxPopup = (h, combobox, options = {}) => combobox.popup(h.div.class(cn("bg-popover text-foreground shadow-float box-border flex max-h-[min(var(--available-height),20rem)] w-[var(--anchor-width)] max-w-[var(--available-width)] min-w-48 origin-[var(--transform-origin)] flex-col overflow-hidden rounded-lg border text-[13px] transition-[opacity,scale] duration-150 outline-none data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0", options.class)));
60
- var ComboboxSearchInput = (h, combobox, options = {}) => h.div.class(cn("text-muted-foreground flex shrink-0 items-center border-b pl-3 [&_svg]:size-3.5", options.class)).children(icon(h, "M21 21l-4.3-4.3M11 18a7 7 0 100-14 7 7 0 000 14z"), combobox.input(h.input.attrs({
61
- placeholder: options.placeholder,
62
- "aria-label": options.placeholder
63
- }).class("h-9 min-w-0 flex-1 bg-transparent px-2 text-[13px] text-foreground outline-none placeholder:text-muted-foreground")));
64
- var ComboboxEmpty = (h, combobox, options = {}) => combobox.empty(h.div.class(cn("text-muted-foreground px-3 py-5 text-center empty:hidden", options.class)));
65
- var ComboboxItem = (h, combobox, options) => combobox.item({
66
- element: h.div.class(cn("data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:text-muted-foreground flex min-h-7.5 cursor-default items-center justify-between gap-2 rounded-sm px-2 py-1 leading-snug select-none data-[disabled]:opacity-60 data-[selected]:font-medium", options.class)),
67
- value: options.value
68
- });
69
- var ComboboxItemIndicator = (h, combobox, options) => combobox.itemIndicator({
70
- element: h.span.class(cn("border-brand mr-1.5 mb-0.5 ml-2.5 h-[9px] w-[5px] shrink-0 rotate-45 border-r-[1.5px] border-b-[1.5px]", options.class)),
71
- value: options.value
72
- });
73
-
74
- // ../../src/components/virtualized-combobox/html.ts
9
+ import {
10
+ ComboboxButton,
11
+ ComboboxClear,
12
+ ComboboxEmpty,
13
+ ComboboxItem,
14
+ ComboboxItemIndicator,
15
+ ComboboxPopup,
16
+ ComboboxPositioner,
17
+ ComboboxSearchInput
18
+ } from "@/components/effectcn/combobox";
75
19
  import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
76
20
 
77
21
  // ../../src/components/virtualized-combobox/classes.ts