@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.
- package/CHANGELOG.md +23 -1
- package/README.md +23 -9
- package/dist/components/agent/react.js +226 -1072
- package/dist/components/app-switcher/html.js +10 -53
- package/dist/components/app-switcher/react.js +29 -139
- package/dist/components/async-action-button/html.js +3 -34
- package/dist/components/async-action-button/react.d.ts +1 -1
- package/dist/components/async-action-button/react.js +8 -54
- package/dist/components/audit-log-table/react.js +706 -1279
- package/dist/components/bulk-list-input/html.js +3 -40
- package/dist/components/bulk-list-input/react.d.ts +1 -1
- package/dist/components/bulk-list-input/react.js +6 -59
- package/dist/components/code-block/html.js +1 -35
- package/dist/components/code-block/react.js +12 -59
- package/dist/components/color-input/html.js +2 -19
- package/dist/components/color-input/react.js +6 -97
- package/dist/components/copy-button/html.js +1 -35
- package/dist/components/copy-button/react.d.ts +1 -1
- package/dist/components/copy-button/react.js +7 -54
- package/dist/components/copy-value/html.js +11 -52
- package/dist/components/copy-value/react.js +25 -165
- package/dist/components/cron-input/html.js +2 -18
- package/dist/components/cron-input/react.js +15 -30
- package/dist/components/danger-confirmation/html.js +11 -57
- package/dist/components/danger-confirmation/react.js +26 -187
- package/dist/components/data-table/classes.d.ts +9 -3
- package/dist/components/data-table/html.d.ts +93 -21
- package/dist/components/data-table/html.js +309 -196
- package/dist/components/data-table/index.d.ts +97 -9
- package/dist/components/data-table/react.d.ts +14 -3
- package/dist/components/data-table/react.js +700 -1273
- package/dist/components/data-table/schema.d.ts +175 -16
- package/dist/components/date-input/html.js +19 -74
- package/dist/components/date-input/react.d.ts +1 -1
- package/dist/components/date-input/react.js +28 -313
- package/dist/components/docs/classes.d.ts +15 -0
- package/dist/components/docs/html.d.ts +55 -0
- package/dist/components/docs/html.js +837 -0
- package/dist/components/docs/index.d.ts +49 -0
- package/dist/components/docs/react.d.ts +10 -0
- package/dist/components/docs/react.js +949 -0
- package/dist/components/docs/schema.d.ts +49 -0
- package/dist/components/editable-text/html.js +6 -52
- package/dist/components/editable-text/react.js +13 -83
- package/dist/components/editing-locale-switcher/html.d.ts +2 -2
- package/dist/components/editing-locale-switcher/html.js +13 -43
- package/dist/components/editing-locale-switcher/react.js +17 -141
- package/dist/components/effect-form/react.js +249 -812
- package/dist/components/email-composer/react.js +62 -279
- package/dist/components/email-editor/html.js +13 -58
- package/dist/components/email-editor/react.js +187 -483
- package/dist/components/error-component/html.js +2 -47
- package/dist/components/error-component/react.js +33 -137
- package/dist/components/file-input/html.js +9 -40
- package/dist/components/file-input/react.js +39 -208
- package/dist/components/form/react.js +212 -777
- package/dist/components/icon-input/html.js +9 -56
- package/dist/components/icon-input/react.js +43 -143
- package/dist/components/image-crop-editor/html.js +1 -35
- package/dist/components/image-crop-editor/react.js +21 -66
- package/dist/components/locale-switcher/html.js +8 -55
- package/dist/components/locale-switcher/react.js +21 -146
- package/dist/components/map-menu/html.d.ts +8 -8
- package/dist/components/map-menu/html.js +13 -72
- package/dist/components/map-menu/react.js +92 -309
- package/dist/components/markdown/html.js +1 -35
- package/dist/components/markdown/react.js +20 -64
- package/dist/components/notification-menu/html.js +14 -50
- package/dist/components/notification-menu/react.js +73 -343
- package/dist/components/pagination/html.js +17 -73
- package/dist/components/pagination/react.js +37 -200
- package/dist/components/phone-number-input/html.js +19 -57
- package/dist/components/phone-number-input/react.d.ts +1 -1
- package/dist/components/phone-number-input/react.js +43 -142
- package/dist/components/presence-transition/index.d.ts +2 -2
- package/dist/components/registry-previews/component-example.js +26 -126
- package/dist/components/rich-text-editor/html.d.ts +12 -12
- package/dist/components/rich-text-editor/html.js +12 -85
- package/dist/components/rich-text-editor/react.js +55 -272
- package/dist/components/search-menu/classes.d.ts +2 -0
- package/dist/components/search-menu/html.d.ts +2 -0
- package/dist/components/search-menu/html.js +40 -73
- package/dist/components/search-menu/index.d.ts +27 -2
- package/dist/components/search-menu/react.d.ts +1 -1
- package/dist/components/search-menu/react.js +59 -280
- package/dist/components/search-menu/schema.d.ts +1 -0
- package/dist/components/select-with-custom-input/html.d.ts +2 -2
- package/dist/components/select-with-custom-input/html.js +13 -48
- package/dist/components/select-with-custom-input/react.js +22 -146
- package/dist/components/sidebar-layout/html.d.ts +16 -6
- package/dist/components/sidebar-layout/html.js +83 -69
- package/dist/components/sidebar-layout/index.d.ts +16 -0
- package/dist/components/sidebar-layout/react.js +105 -698
- package/dist/components/stats-card/react.js +13 -58
- package/dist/components/support/html.js +14 -69
- package/dist/components/support/react.js +74 -320
- package/dist/components/theme-switcher/html.js +11 -55
- package/dist/components/theme-switcher/react.js +28 -152
- package/dist/components/time-input/html.d.ts +2 -2
- package/dist/components/time-input/html.js +8 -53
- package/dist/components/time-input/react.js +34 -188
- package/dist/components/timezone-input/html.js +11 -67
- package/dist/components/timezone-input/react.js +41 -143
- package/dist/components/toast/html.d.ts +6 -6
- package/dist/components/toast/html.js +13 -46
- package/dist/components/tracking-notice/react.js +39 -188
- package/dist/components/unsaved-changes-guard/html.js +9 -43
- package/dist/components/unsaved-changes-guard/react.js +19 -169
- package/dist/components/upload-attachment/html.d.ts +4 -4
- package/dist/components/upload-attachment/html.js +4 -35
- package/dist/components/upload-attachment/react.js +25 -164
- package/dist/components/virtualized-combobox/html.js +10 -35
- package/dist/components/virtualized-combobox/react.js +28 -129
- package/dist/components/webhook-delivery-table/html.js +320 -206
- package/dist/components/webhook-delivery-table/react.js +736 -1376
- package/dist/lib/docs.integrations.server.js +150 -202
- package/dist/lib/docs.js +305 -1085
- package/dist/lib/docs.server.js +134 -186
- package/dist/lib/documentation-toolkit.js +144 -196
- package/dist/services/agent/client/index.js +226 -1072
- package/dist/services/notification/client/index.js +73 -343
- package/dist/services/notification/public.js +73 -343
- package/package.json +5 -13
- package/dist/components/effectcn/alert-dialog.d.ts +0 -13
- package/dist/components/effectcn/button.d.ts +0 -31
- package/dist/components/effectcn/calendar.d.ts +0 -12
- package/dist/components/effectcn/checkbox.d.ts +0 -10
- package/dist/components/effectcn/combobox.d.ts +0 -25
- package/dist/components/effectcn/dialog.d.ts +0 -19
- package/dist/components/effectcn/field.d.ts +0 -11
- package/dist/components/effectcn/file-drop.d.ts +0 -8
- package/dist/components/effectcn/input.d.ts +0 -26
- package/dist/components/effectcn/menu.d.ts +0 -85
- package/dist/components/effectcn/menubar.d.ts +0 -8
- package/dist/components/effectcn/popover.d.ts +0 -18
- package/dist/components/effectcn/scroll-area.d.ts +0 -12
- package/dist/components/effectcn/select.d.ts +0 -68
- package/dist/components/effectcn/toast.d.ts +0 -29
- package/dist/components/ui/alert-dialog.d.ts +0 -18
- package/dist/components/ui/alert.d.ts +0 -10
- package/dist/components/ui/attachment.d.ts +0 -23
- package/dist/components/ui/badge.d.ts +0 -7
- package/dist/components/ui/bubble.d.ts +0 -16
- package/dist/components/ui/button.d.ts +0 -8
- package/dist/components/ui/calendar.d.ts +0 -10
- package/dist/components/ui/card.d.ts +0 -11
- package/dist/components/ui/checkbox.d.ts +0 -3
- package/dist/components/ui/collapsible.d.ts +0 -5
- package/dist/components/ui/command.d.ts +0 -18
- package/dist/components/ui/dialog.d.ts +0 -17
- package/dist/components/ui/dropdown-menu.d.ts +0 -29
- package/dist/components/ui/empty.d.ts +0 -11
- package/dist/components/ui/field.d.ts +0 -24
- package/dist/components/ui/input-group.d.ts +0 -17
- package/dist/components/ui/input.d.ts +0 -3
- package/dist/components/ui/item.d.ts +0 -22
- package/dist/components/ui/label.d.ts +0 -3
- package/dist/components/ui/menubar.d.ts +0 -29
- package/dist/components/ui/message-scroller.d.ts +0 -10
- package/dist/components/ui/message.d.ts +0 -10
- package/dist/components/ui/popover.d.ts +0 -9
- package/dist/components/ui/scroll-area.d.ts +0 -4
- package/dist/components/ui/select.d.ts +0 -15
- package/dist/components/ui/select.js +0 -159
- package/dist/components/ui/separator.d.ts +0 -3
- package/dist/components/ui/sheet.d.ts +0 -14
- package/dist/components/ui/sidebar.d.ts +0 -63
- package/dist/components/ui/skeleton.d.ts +0 -2
- package/dist/components/ui/table.d.ts +0 -10
- package/dist/components/ui/tabs.d.ts +0 -10
- package/dist/components/ui/textarea.d.ts +0 -3
- package/dist/components/ui/tooltip.d.ts +0 -6
- package/dist/components/ui/trace.d.ts +0 -18
- package/dist/lib/effectcn-form.d.ts +0 -3
- package/dist/lib/effectcn-form.js +0 -54
|
@@ -1,265 +1,29 @@
|
|
|
1
1
|
// ../../src/components/search-menu/react.tsx
|
|
2
|
-
import { SearchIcon
|
|
2
|
+
import { SearchIcon, XIcon } from "lucide-react";
|
|
3
3
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import { Button } from "@/components/ui/button";
|
|
5
|
+
import {
|
|
6
|
+
Command,
|
|
7
|
+
CommandDialog,
|
|
8
|
+
CommandEmpty,
|
|
9
|
+
CommandGroup,
|
|
10
|
+
CommandInput,
|
|
11
|
+
CommandItem,
|
|
12
|
+
CommandList,
|
|
13
|
+
CommandShortcut
|
|
14
|
+
} from "@/components/ui/command";
|
|
8
15
|
|
|
9
16
|
// ../../src/lib/utils.ts
|
|
10
17
|
import { cn } from "cn";
|
|
11
18
|
|
|
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/command.tsx
|
|
54
|
-
import { Command as CommandPrimitive } from "cmdk";
|
|
55
|
-
import { SearchIcon } from "lucide-react";
|
|
56
|
-
|
|
57
|
-
// ../../src/components/ui/dialog.tsx
|
|
58
|
-
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
59
|
-
import { cn as cn2 } from "cn";
|
|
60
|
-
import { XIcon } from "lucide-react";
|
|
61
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
62
|
-
function Dialog({ ...props }) {
|
|
63
|
-
return /* @__PURE__ */ jsx2(DialogPrimitive.Root, {
|
|
64
|
-
"data-slot": "dialog",
|
|
65
|
-
...props
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
function DialogPortal({ ...props }) {
|
|
69
|
-
return /* @__PURE__ */ jsx2(DialogPrimitive.Portal, {
|
|
70
|
-
"data-slot": "dialog-portal",
|
|
71
|
-
...props
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
function DialogOverlay({
|
|
75
|
-
className,
|
|
76
|
-
...props
|
|
77
|
-
}) {
|
|
78
|
-
return /* @__PURE__ */ jsx2(DialogPrimitive.Backdrop, {
|
|
79
|
-
"data-slot": "dialog-overlay",
|
|
80
|
-
className: cn2("data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs", className),
|
|
81
|
-
...props
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
function DialogContent({
|
|
85
|
-
className,
|
|
86
|
-
children,
|
|
87
|
-
showCloseButton = true,
|
|
88
|
-
...props
|
|
89
|
-
}) {
|
|
90
|
-
return /* @__PURE__ */ jsxs(DialogPortal, {
|
|
91
|
-
children: [
|
|
92
|
-
/* @__PURE__ */ jsx2(DialogOverlay, {}),
|
|
93
|
-
/* @__PURE__ */ jsxs(DialogPrimitive.Popup, {
|
|
94
|
-
"data-slot": "dialog-content",
|
|
95
|
-
className: cn2("bg-popover text-popover-foreground ring-foreground/10 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 fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl p-6 text-sm ring-1 duration-100 outline-none sm:max-w-md", className),
|
|
96
|
-
...props,
|
|
97
|
-
children: [
|
|
98
|
-
children,
|
|
99
|
-
showCloseButton && /* @__PURE__ */ jsxs(DialogPrimitive.Close, {
|
|
100
|
-
"data-slot": "dialog-close",
|
|
101
|
-
render: /* @__PURE__ */ jsx2(Button, {
|
|
102
|
-
variant: "ghost",
|
|
103
|
-
className: "absolute top-4 right-4",
|
|
104
|
-
size: "icon-sm"
|
|
105
|
-
}),
|
|
106
|
-
children: [
|
|
107
|
-
/* @__PURE__ */ jsx2(XIcon, {}),
|
|
108
|
-
/* @__PURE__ */ jsx2("span", {
|
|
109
|
-
className: "sr-only",
|
|
110
|
-
children: "Close"
|
|
111
|
-
})
|
|
112
|
-
]
|
|
113
|
-
})
|
|
114
|
-
]
|
|
115
|
-
})
|
|
116
|
-
]
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
function DialogHeader({ className, ...props }) {
|
|
120
|
-
return /* @__PURE__ */ jsx2("div", {
|
|
121
|
-
"data-slot": "dialog-header",
|
|
122
|
-
className: cn2("flex flex-col gap-2", className),
|
|
123
|
-
...props
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
function DialogTitle({ className, ...props }) {
|
|
127
|
-
return /* @__PURE__ */ jsx2(DialogPrimitive.Title, {
|
|
128
|
-
"data-slot": "dialog-title",
|
|
129
|
-
className: cn2("leading-none font-medium", className),
|
|
130
|
-
...props
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
function DialogDescription({
|
|
134
|
-
className,
|
|
135
|
-
...props
|
|
136
|
-
}) {
|
|
137
|
-
return /* @__PURE__ */ jsx2(DialogPrimitive.Description, {
|
|
138
|
-
"data-slot": "dialog-description",
|
|
139
|
-
className: cn2("text-muted-foreground *:[a]:hover:text-foreground text-sm *:[a]:underline *:[a]:underline-offset-3", className),
|
|
140
|
-
...props
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
// ../../src/components/ui/command.tsx
|
|
145
|
-
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
146
|
-
function Command({
|
|
147
|
-
className,
|
|
148
|
-
...props
|
|
149
|
-
}) {
|
|
150
|
-
return /* @__PURE__ */ jsx3(CommandPrimitive, {
|
|
151
|
-
"data-slot": "command",
|
|
152
|
-
className: cn("flex size-full flex-col overflow-hidden rounded-xl bg-popover p-1 text-popover-foreground", className),
|
|
153
|
-
...props
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
function CommandDialog({
|
|
157
|
-
title,
|
|
158
|
-
description,
|
|
159
|
-
children,
|
|
160
|
-
className,
|
|
161
|
-
...props
|
|
162
|
-
}) {
|
|
163
|
-
return /* @__PURE__ */ jsx3(Dialog, {
|
|
164
|
-
...props,
|
|
165
|
-
children: /* @__PURE__ */ jsxs2(DialogContent, {
|
|
166
|
-
className: cn("top-1/3 translate-y-0 overflow-hidden rounded-xl p-0", className),
|
|
167
|
-
children: [
|
|
168
|
-
/* @__PURE__ */ jsxs2(DialogHeader, {
|
|
169
|
-
className: "sr-only",
|
|
170
|
-
children: [
|
|
171
|
-
/* @__PURE__ */ jsx3(DialogTitle, {
|
|
172
|
-
children: title
|
|
173
|
-
}),
|
|
174
|
-
/* @__PURE__ */ jsx3(DialogDescription, {
|
|
175
|
-
children: description
|
|
176
|
-
})
|
|
177
|
-
]
|
|
178
|
-
}),
|
|
179
|
-
children
|
|
180
|
-
]
|
|
181
|
-
})
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
function CommandInput({
|
|
185
|
-
className,
|
|
186
|
-
...props
|
|
187
|
-
}) {
|
|
188
|
-
return /* @__PURE__ */ jsx3("div", {
|
|
189
|
-
"data-slot": "command-input-wrapper",
|
|
190
|
-
className: "p-1 pb-0",
|
|
191
|
-
children: /* @__PURE__ */ jsxs2("div", {
|
|
192
|
-
className: "border-input/30 bg-input/30 flex h-9 items-center gap-2 rounded-lg border px-2 shadow-none",
|
|
193
|
-
children: [
|
|
194
|
-
/* @__PURE__ */ jsx3(SearchIcon, {
|
|
195
|
-
className: "size-4 shrink-0 opacity-50"
|
|
196
|
-
}),
|
|
197
|
-
/* @__PURE__ */ jsx3(CommandPrimitive.Input, {
|
|
198
|
-
"data-slot": "command-input",
|
|
199
|
-
className: cn("w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
200
|
-
...props
|
|
201
|
-
})
|
|
202
|
-
]
|
|
203
|
-
})
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
function CommandList({
|
|
207
|
-
className,
|
|
208
|
-
...props
|
|
209
|
-
}) {
|
|
210
|
-
return /* @__PURE__ */ jsx3(CommandPrimitive.List, {
|
|
211
|
-
"data-slot": "command-list",
|
|
212
|
-
className: cn("max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none", className),
|
|
213
|
-
...props
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
function CommandEmpty({
|
|
217
|
-
className,
|
|
218
|
-
...props
|
|
219
|
-
}) {
|
|
220
|
-
return /* @__PURE__ */ jsx3(CommandPrimitive.Empty, {
|
|
221
|
-
"data-slot": "command-empty",
|
|
222
|
-
className: cn("py-6 text-center text-sm", className),
|
|
223
|
-
...props
|
|
224
|
-
});
|
|
225
|
-
}
|
|
226
|
-
function CommandGroup({
|
|
227
|
-
className,
|
|
228
|
-
...props
|
|
229
|
-
}) {
|
|
230
|
-
return /* @__PURE__ */ jsx3(CommandPrimitive.Group, {
|
|
231
|
-
"data-slot": "command-group",
|
|
232
|
-
className: cn("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground", className),
|
|
233
|
-
...props
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
function CommandItem({
|
|
237
|
-
className,
|
|
238
|
-
...props
|
|
239
|
-
}) {
|
|
240
|
-
return /* @__PURE__ */ jsx3(CommandPrimitive.Item, {
|
|
241
|
-
"data-slot": "command-item",
|
|
242
|
-
className: cn("group/command-item relative flex cursor-default items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
|
|
243
|
-
...props
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
function CommandShortcut({
|
|
247
|
-
className,
|
|
248
|
-
...props
|
|
249
|
-
}) {
|
|
250
|
-
return /* @__PURE__ */ jsx3("span", {
|
|
251
|
-
"data-slot": "command-shortcut",
|
|
252
|
-
className: cn("ml-auto text-xs tracking-widest text-muted-foreground group-data-selected/command-item:text-foreground", className),
|
|
253
|
-
...props
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
|
|
257
19
|
// ../../src/components/search-menu/react.tsx
|
|
258
20
|
import { useKrakstackLocale } from "@krak-stack/registry/krakstack-provider/react";
|
|
259
21
|
import { Component as Component2, View } from "effect/ui";
|
|
260
22
|
import { useModel } from "@krak-stack/registry/effect-ui-adapter/react";
|
|
261
23
|
|
|
262
24
|
// ../../src/components/search-menu/classes.ts
|
|
25
|
+
var searchMenuDialogPadding = "px-0 pt-0 pb-2";
|
|
26
|
+
var searchMenuShortcutClass = "bg-muted text-muted-foreground pointer-events-none hidden h-5 shrink-0 items-center justify-center rounded border px-1.5 font-mono text-[11px] font-medium leading-none sm:inline-flex";
|
|
263
27
|
var searchMenuClasses = {
|
|
264
28
|
resultTitle: "truncate font-medium",
|
|
265
29
|
resultDescription: "text-muted-foreground truncate text-xs"
|
|
@@ -312,6 +76,7 @@ var SearchMenuPropsSchema = Schema.Struct({
|
|
|
312
76
|
className: text,
|
|
313
77
|
query: text,
|
|
314
78
|
enableShortcut: Schema.optional(Schema.Boolean),
|
|
79
|
+
shortcutScope: Schema.optional(Schema.Literals(["document", "trigger"])),
|
|
315
80
|
open: Schema.optional(Schema.Boolean),
|
|
316
81
|
shouldFilter: Schema.optional(Schema.Boolean)
|
|
317
82
|
}).annotate({ identifier: "SearchMenuProps" });
|
|
@@ -353,6 +118,13 @@ var searchMenuOptions = {
|
|
|
353
118
|
message: SearchMenuMessage,
|
|
354
119
|
restore: false
|
|
355
120
|
};
|
|
121
|
+
var searchMenuStateOptions = {
|
|
122
|
+
...searchMenuOptions,
|
|
123
|
+
props: Schema2.Struct({
|
|
124
|
+
open: SearchMenuPropsSchema.fields.open,
|
|
125
|
+
query: SearchMenuPropsSchema.fields.query
|
|
126
|
+
}).annotate({ identifier: "SearchMenuStateProps" })
|
|
127
|
+
};
|
|
356
128
|
var updateSearchMenu = (model, props, message) => {
|
|
357
129
|
switch (message._tag) {
|
|
358
130
|
case "SetOpen":
|
|
@@ -365,7 +137,7 @@ var updateSearchMenu = (model, props, message) => {
|
|
|
365
137
|
return props.open === undefined ? { open: false, query: "" } : model;
|
|
366
138
|
}
|
|
367
139
|
};
|
|
368
|
-
var update = Component.define(
|
|
140
|
+
var update = Component.define(searchMenuStateOptions).update({
|
|
369
141
|
SetOpen: ($, message) => updateSearchMenu($.model, $.props, message),
|
|
370
142
|
Reset: ($, message) => updateSearchMenu($.model, $.props, message),
|
|
371
143
|
SetQuery: ($, message) => updateSearchMenu($.model, $.props, message),
|
|
@@ -377,8 +149,8 @@ var searchMenuBehaviours = {
|
|
|
377
149
|
};
|
|
378
150
|
|
|
379
151
|
// ../../src/components/search-menu/react.tsx
|
|
380
|
-
import { jsx
|
|
381
|
-
var SearchModel = Component2.define(
|
|
152
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
153
|
+
var SearchModel = Component2.define(searchMenuStateOptions).make({
|
|
382
154
|
...searchMenuBehaviours,
|
|
383
155
|
view: () => View.text("")
|
|
384
156
|
});
|
|
@@ -394,6 +166,7 @@ function SearchMenu({
|
|
|
394
166
|
messages,
|
|
395
167
|
shortcutLabel = "⌘K",
|
|
396
168
|
enableShortcut = true,
|
|
169
|
+
shortcutScope = "document",
|
|
397
170
|
className,
|
|
398
171
|
open,
|
|
399
172
|
onOpenChange,
|
|
@@ -410,7 +183,7 @@ function SearchMenu({
|
|
|
410
183
|
const resolvedPlaceholder = placeholder ?? labels.placeholder;
|
|
411
184
|
const resolvedInputPlaceholder = inputPlaceholder ?? labels.inputPlaceholder;
|
|
412
185
|
const resolvedEmptyMessage = emptyMessage ?? labels.emptyMessage;
|
|
413
|
-
const { model, send } = useModel(SearchModel, {
|
|
186
|
+
const { model, send } = useModel(SearchModel, { open, query });
|
|
414
187
|
const isOpen = open ?? model.open;
|
|
415
188
|
const searchQuery = query ?? model.query;
|
|
416
189
|
const externalGroups = shouldFilter === false ? groups : undefined;
|
|
@@ -445,10 +218,10 @@ function SearchMenu({
|
|
|
445
218
|
onOpenChange?.(value);
|
|
446
219
|
}, [open, onOpenChange, send]);
|
|
447
220
|
useEffect(() => {
|
|
448
|
-
if (!enableShortcut)
|
|
221
|
+
if (!enableShortcut || shortcutScope !== "document")
|
|
449
222
|
return;
|
|
450
223
|
const onKeyDown = (event) => {
|
|
451
|
-
if (event.key.toLowerCase() !== "k")
|
|
224
|
+
if (event.defaultPrevented || event.key.toLowerCase() !== "k")
|
|
452
225
|
return;
|
|
453
226
|
if (!event.metaKey && !event.ctrlKey)
|
|
454
227
|
return;
|
|
@@ -457,37 +230,43 @@ function SearchMenu({
|
|
|
457
230
|
};
|
|
458
231
|
document.addEventListener("keydown", onKeyDown);
|
|
459
232
|
return () => document.removeEventListener("keydown", onKeyDown);
|
|
460
|
-
}, [enableShortcut, isOpen, setOpen]);
|
|
461
|
-
return /* @__PURE__ */
|
|
233
|
+
}, [enableShortcut, shortcutScope, isOpen, setOpen]);
|
|
234
|
+
return /* @__PURE__ */ jsxs(Fragment, {
|
|
462
235
|
children: [
|
|
463
|
-
/* @__PURE__ */
|
|
236
|
+
/* @__PURE__ */ jsxs(Button, {
|
|
464
237
|
"aria-label": resolvedPlaceholder,
|
|
465
238
|
type: "button",
|
|
466
239
|
variant: "outline",
|
|
467
240
|
size: "icon",
|
|
468
241
|
className: cn("sm:h-9 sm:w-64 sm:justify-start sm:gap-2.5 sm:px-2.5 sm:font-normal", className),
|
|
469
242
|
onClick: () => setOpen(true),
|
|
243
|
+
onKeyDown: enableShortcut && shortcutScope === "trigger" ? (event) => {
|
|
244
|
+
if (event.key.toLowerCase() !== "k" || !(event.metaKey || event.ctrlKey))
|
|
245
|
+
return;
|
|
246
|
+
event.preventDefault();
|
|
247
|
+
setOpen(!isOpen);
|
|
248
|
+
} : undefined,
|
|
470
249
|
children: [
|
|
471
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ jsx(SearchIcon, {
|
|
472
251
|
className: "size-4 shrink-0"
|
|
473
252
|
}),
|
|
474
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ jsx("span", {
|
|
475
254
|
className: "text-muted-foreground hidden min-w-0 flex-1 truncate text-left font-normal sm:block",
|
|
476
255
|
children: resolvedPlaceholder
|
|
477
256
|
}),
|
|
478
|
-
enableShortcut ? /* @__PURE__ */
|
|
479
|
-
className:
|
|
257
|
+
enableShortcut ? /* @__PURE__ */ jsx("kbd", {
|
|
258
|
+
className: searchMenuShortcutClass,
|
|
480
259
|
children: shortcutLabel
|
|
481
260
|
}) : null
|
|
482
261
|
]
|
|
483
262
|
}),
|
|
484
|
-
/* @__PURE__ */
|
|
263
|
+
/* @__PURE__ */ jsx(CommandDialog, {
|
|
485
264
|
open: isOpen,
|
|
486
265
|
onOpenChange: setOpen,
|
|
487
266
|
title: resolvedTitle,
|
|
488
267
|
description: resolvedDescription,
|
|
489
|
-
className:
|
|
490
|
-
children: /* @__PURE__ */
|
|
268
|
+
className: `${searchMenuDialogPadding} [&>[data-slot=dialog-close]]:hidden`,
|
|
269
|
+
children: /* @__PURE__ */ jsxs(Command, {
|
|
491
270
|
...shouldFilter === undefined ? {} : { shouldFilter },
|
|
492
271
|
...externalGroups && {
|
|
493
272
|
value: selectedValue,
|
|
@@ -498,21 +277,21 @@ function SearchMenu({
|
|
|
498
277
|
})
|
|
499
278
|
},
|
|
500
279
|
children: [
|
|
501
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ jsxs("div", {
|
|
502
281
|
className: cn("relative", searchQuery && "[&_[data-slot=command-input-wrapper]>div]:pr-10"),
|
|
503
282
|
children: [
|
|
504
|
-
/* @__PURE__ */
|
|
283
|
+
/* @__PURE__ */ jsx(CommandInput, {
|
|
505
284
|
ref: inputRef,
|
|
506
285
|
placeholder: resolvedInputPlaceholder,
|
|
507
286
|
value: searchQuery,
|
|
508
287
|
onValueChange: setQuery
|
|
509
288
|
}),
|
|
510
|
-
searchQuery && /* @__PURE__ */
|
|
289
|
+
searchQuery && /* @__PURE__ */ jsx(Button, {
|
|
511
290
|
type: "button",
|
|
512
291
|
variant: "ghost",
|
|
513
292
|
size: "icon-sm",
|
|
514
293
|
"aria-label": labels.clearSearch,
|
|
515
|
-
className: "absolute top-
|
|
294
|
+
className: "absolute end-2 top-[calc(50%+2px)] -translate-y-1/2",
|
|
516
295
|
onKeyDown: (event) => {
|
|
517
296
|
if (event.key === "Enter")
|
|
518
297
|
event.stopPropagation();
|
|
@@ -521,19 +300,19 @@ function SearchMenu({
|
|
|
521
300
|
setQuery("");
|
|
522
301
|
inputRef.current?.focus();
|
|
523
302
|
},
|
|
524
|
-
children: /* @__PURE__ */
|
|
303
|
+
children: /* @__PURE__ */ jsx(XIcon, {})
|
|
525
304
|
})
|
|
526
305
|
]
|
|
527
306
|
}),
|
|
528
|
-
/* @__PURE__ */
|
|
307
|
+
/* @__PURE__ */ jsxs(CommandList, {
|
|
529
308
|
ref: listRef,
|
|
530
309
|
children: [
|
|
531
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ jsx(CommandEmpty, {
|
|
532
311
|
children: resolvedEmptyMessage
|
|
533
312
|
}),
|
|
534
|
-
groups.map((group) => /* @__PURE__ */
|
|
313
|
+
groups.map((group) => /* @__PURE__ */ jsx(CommandGroup, {
|
|
535
314
|
heading: group.heading,
|
|
536
|
-
children: group.items.map((item) => /* @__PURE__ */
|
|
315
|
+
children: group.items.map((item) => /* @__PURE__ */ jsxs(CommandItem, {
|
|
537
316
|
className: "data-[selected=false]:!text-foreground data-[selected=true]:bg-muted data-[selected=true]:text-foreground gap-3 py-2 data-[selected=false]:!bg-transparent",
|
|
538
317
|
value: item.label,
|
|
539
318
|
...item.keywords ? { keywords: item.keywords } : {},
|
|
@@ -544,24 +323,24 @@ function SearchMenu({
|
|
|
544
323
|
},
|
|
545
324
|
...item.disabled === undefined ? {} : { disabled: item.disabled },
|
|
546
325
|
children: [
|
|
547
|
-
item.icon ? /* @__PURE__ */
|
|
326
|
+
item.icon ? /* @__PURE__ */ jsx("div", {
|
|
548
327
|
className: "text-muted-foreground bg-background group-data-[selected=true]/command-item:bg-background flex size-8 shrink-0 items-center justify-center rounded-md border",
|
|
549
328
|
children: item.icon
|
|
550
329
|
}) : null,
|
|
551
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ jsxs("div", {
|
|
552
331
|
className: "flex min-w-0 flex-1 flex-col gap-0.5",
|
|
553
332
|
children: [
|
|
554
|
-
/* @__PURE__ */
|
|
333
|
+
/* @__PURE__ */ jsx("span", {
|
|
555
334
|
className: searchMenuClasses.resultTitle,
|
|
556
335
|
children: item.label
|
|
557
336
|
}),
|
|
558
|
-
item.description ? /* @__PURE__ */
|
|
337
|
+
item.description ? /* @__PURE__ */ jsx("span", {
|
|
559
338
|
className: searchMenuClasses.resultDescription,
|
|
560
339
|
children: item.description
|
|
561
340
|
}) : null
|
|
562
341
|
]
|
|
563
342
|
}),
|
|
564
|
-
item.shortcut ? /* @__PURE__ */
|
|
343
|
+
item.shortcut ? /* @__PURE__ */ jsx(CommandShortcut, {
|
|
565
344
|
children: item.shortcut
|
|
566
345
|
}) : null
|
|
567
346
|
]
|
|
@@ -71,6 +71,7 @@ export declare const SearchMenuPropsSchema: Schema.Struct<{
|
|
|
71
71
|
readonly className: Schema.optional<Schema.String>;
|
|
72
72
|
readonly query: Schema.optional<Schema.String>;
|
|
73
73
|
readonly enableShortcut: Schema.optional<Schema.Boolean>;
|
|
74
|
+
readonly shortcutScope: Schema.optional<Schema.Literals<readonly ["document", "trigger"]>>;
|
|
74
75
|
readonly open: Schema.optional<Schema.Boolean>;
|
|
75
76
|
readonly shouldFilter: Schema.optional<Schema.Boolean>;
|
|
76
77
|
}>;
|
|
@@ -42,9 +42,9 @@ export declare const SelectWithCustomInput: import("effect/ui/Component").Compon
|
|
|
42
42
|
readonly open: boolean;
|
|
43
43
|
readonly focusCustom: boolean;
|
|
44
44
|
}, {
|
|
45
|
-
readonly _tag: "Closed";
|
|
46
|
-
} | {
|
|
47
45
|
readonly _tag: "Opened";
|
|
46
|
+
} | {
|
|
47
|
+
readonly _tag: "Closed";
|
|
48
48
|
} | {
|
|
49
49
|
readonly _tag: "Edited";
|
|
50
50
|
readonly text: string;
|
|
@@ -1,59 +1,24 @@
|
|
|
1
1
|
// ../../src/components/select-with-custom-input/html.ts
|
|
2
2
|
import { Html } from "effect/ui/html";
|
|
3
3
|
import { Select } from "effect/ui/kit";
|
|
4
|
-
|
|
5
|
-
// ../../src/components/effectcn/input.ts
|
|
4
|
+
import { Input } from "@/components/effectcn/input";
|
|
6
5
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
SelectIcon,
|
|
7
|
+
SelectItem,
|
|
8
|
+
SelectItemIndicator,
|
|
9
|
+
SelectItemText,
|
|
10
|
+
SelectLabel,
|
|
11
|
+
SelectList,
|
|
12
|
+
SelectPopup,
|
|
13
|
+
SelectPositioner,
|
|
14
|
+
SelectTrigger,
|
|
15
|
+
SelectValue
|
|
16
|
+
} from "@/components/effectcn/select";
|
|
17
|
+
import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
|
|
9
18
|
|
|
10
19
|
// ../../src/lib/utils.ts
|
|
11
20
|
import { cn } from "cn";
|
|
12
21
|
|
|
13
|
-
// ../../src/components/effectcn/input.ts
|
|
14
|
-
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";
|
|
15
|
-
var sizes = {
|
|
16
|
-
default: "",
|
|
17
|
-
sm: "h-7 rounded-sm px-2.5 text-xs",
|
|
18
|
-
lg: "h-10 px-3.5 text-sm"
|
|
19
|
-
};
|
|
20
|
-
var inputVariants = (options = {}) => cn(base, sizes[options.size ?? "default"], options.class);
|
|
21
|
-
var Input = (h, options) => KitInput(h, options).class(inputVariants(options));
|
|
22
|
-
|
|
23
|
-
// ../../src/components/effectcn/select.ts
|
|
24
|
-
var triggerSizes = {
|
|
25
|
-
sm: "h-7 min-w-36 gap-1.5 rounded-sm pr-2 pl-2.5 text-xs",
|
|
26
|
-
default: "h-8.5 min-w-48 pr-2.5 pl-3 text-[13px]",
|
|
27
|
-
lg: "h-10 min-w-56 pr-3 pl-3.5 text-sm"
|
|
28
|
-
};
|
|
29
|
-
var popupSizes = {
|
|
30
|
-
sm: "text-xs [&_[role=option]]:min-h-6.5 [&_[role=option]]:px-1.5 [&_[role=option]]:py-0.5",
|
|
31
|
-
default: "text-[13px]",
|
|
32
|
-
lg: "text-sm [&_[role=option]]:min-h-8.5 [&_[role=option]]:px-2.5"
|
|
33
|
-
};
|
|
34
|
-
var SelectLabel = (h, select, options = {}) => select.label(h.div.class(cn("mb-1.5 cursor-default text-[13px] leading-snug font-medium", options.class)));
|
|
35
|
-
var SelectTrigger = (h, select, options = {}) => select.trigger(h.button.on("mousedown", () => {
|
|
36
|
-
return;
|
|
37
|
-
}, { preventDefault: "always" }).class(cn("border-input bg-background inline-flex items-center justify-between gap-2 rounded-md border text-start", "text-foreground leading-none whitespace-nowrap shadow-sm select-none", "hover:bg-accent data-[popup-open]:bg-accent transition-colors duration-150", "data-[disabled]:hover:bg-background data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50", "data-[readonly]:bg-muted data-[readonly]:cursor-default", triggerSizes[options.size ?? "default"], options.class)));
|
|
38
|
-
var SelectValue = (h, select, options = {}) => select.value(h.span.class(cn("data-[placeholder]:text-muted-foreground min-w-0 truncate leading-snug", options.class)));
|
|
39
|
-
var SelectIcon = (h, select, options = {}) => select.icon(h.span.class(cn("border-muted-foreground mx-1 mb-[3px] size-[7px] shrink-0 rotate-45 border-r-[1.5px] border-b-[1.5px]", options.class)));
|
|
40
|
-
var SelectPositioner = (h, select, options = {}) => select.positioner(h.div.class(cn("outline-none data-[side=none]:my-2.5", options.class)));
|
|
41
|
-
var SelectPopup = (h, select, options = {}) => select.popup(h.div.class(cn("relative box-border max-w-[var(--available-width)] min-w-[max(var(--anchor-width),10rem)] overflow-y-auto", "bg-popover text-foreground shadow-float rounded-lg border p-1 outline-none", "max-h-[min(var(--available-height),20rem)] data-[side=none]:max-h-none", "origin-[var(--transform-origin)] transition-[opacity,scale] duration-150", "data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", "not-data-[side=none]:data-[ending-style]:scale-95 not-data-[side=none]:data-[starting-style]:scale-95", "data-[side=none]:[scrollbar-width:none]", "has-[>[data-slot=select-list]]:flex has-[>[data-slot=select-list]]:flex-col", "has-[>[data-slot=select-list]]:overflow-hidden has-[>[data-slot=select-list]]:p-0", popupSizes[options.size ?? "default"], options.class)));
|
|
42
|
-
var SelectList = (h, select, options = {}) => select.list(h.div.attr("data-slot", "select-list").class(cn("min-h-0 flex-1 [scrollbar-width:none] overflow-y-auto p-1 outline-none", options.class)));
|
|
43
|
-
var SelectItem = (h, select, options) => select.item({
|
|
44
|
-
element: h.div.class(cn("flex min-h-7.5 cursor-default scroll-my-1 items-center gap-2 rounded-sm px-2 py-1 leading-snug outline-none", "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground select-none", "data-[disabled]:text-muted-foreground data-[disabled]:opacity-60 data-[selected]:font-medium", "[&_svg]:text-muted-foreground [&_svg]:size-[15px] [&_svg]:shrink-0", options.class)),
|
|
45
|
-
value: options.value
|
|
46
|
-
});
|
|
47
|
-
var SelectItemText = (h, select, options = {}) => select.itemText(h.div.class(cn("min-w-0 flex-1 whitespace-nowrap", options.class)));
|
|
48
|
-
var SelectItemIndicator = (h, select, options) => select.itemIndicator({
|
|
49
|
-
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)),
|
|
50
|
-
value: options.value
|
|
51
|
-
});
|
|
52
|
-
var scrollArrow = "inset-x-0 z-10 hidden h-6 cursor-default place-items-center rounded-lg bg-popover data-[visible]:grid " + "before:size-1.5 before:rotate-45 before:border-muted-foreground";
|
|
53
|
-
|
|
54
|
-
// ../../src/components/select-with-custom-input/html.ts
|
|
55
|
-
import { krakstackLocaleRead } from "@krak-stack/registry/krakstack-provider/html";
|
|
56
|
-
|
|
57
22
|
// ../../src/components/select-with-custom-input/classes.ts
|
|
58
23
|
var selectWithCustomInputClasses = {
|
|
59
24
|
root: "grid min-w-0 gap-2",
|