@ucdjs-internal/shared-ui 0.1.6 → 0.1.7
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/README.md +0 -3
- package/dist/components/index.d.mts +2 -1
- package/dist/components/index.mjs +2 -2
- package/dist/components/shiki-code.mjs +1 -3
- package/dist/components/theme-toggle.mjs +1 -3
- package/dist/components/ucd-logo.d.mts +10 -0
- package/dist/components/ucd-logo.mjs +61 -0
- package/dist/hooks/index.mjs +1 -2
- package/dist/hooks/use-clipboard.mjs +2 -4
- package/dist/hooks/use-mobile.mjs +1 -3
- package/dist/hooks/use-theme.mjs +1 -3
- package/dist/index.mjs +1 -2
- package/dist/lib/theme-script.mjs +1 -2
- package/dist/lib/utils.mjs +1 -3
- package/dist/ui/alert-dialog.mjs +2 -3
- package/dist/ui/avatar.mjs +2 -3
- package/dist/ui/badge.mjs +1 -3
- package/dist/ui/breadcrumb.mjs +2 -3
- package/dist/ui/button.d.mts +1 -1
- package/dist/ui/button.mjs +1 -3
- package/dist/ui/card.mjs +2 -3
- package/dist/ui/checkbox.mjs +1 -3
- package/dist/ui/collapsible.mjs +1 -3
- package/dist/ui/combobox.mjs +1 -3
- package/dist/ui/command.d.mts +52 -13
- package/dist/ui/command.mjs +327 -89
- package/dist/ui/context-menu.mjs +2 -3
- package/dist/ui/dialog.d.mts +2 -0
- package/dist/ui/dialog.mjs +41 -31
- package/dist/ui/dropdown-menu.mjs +2 -3
- package/dist/ui/field.mjs +1 -3
- package/dist/ui/input-group.mjs +2 -3
- package/dist/ui/input.mjs +2 -3
- package/dist/ui/label.mjs +2 -3
- package/dist/ui/scroll-area.mjs +2 -3
- package/dist/ui/select.mjs +2 -3
- package/dist/ui/separator.mjs +1 -3
- package/dist/ui/sheet.mjs +2 -3
- package/dist/ui/sidebar.d.mts +1 -1
- package/dist/ui/sidebar.mjs +3 -5
- package/dist/ui/skeleton.mjs +1 -3
- package/dist/ui/table.mjs +2 -3
- package/dist/ui/textarea.mjs +2 -3
- package/dist/ui/tooltip.mjs +1 -3
- package/dist/vscode/syntaxes/ucd.tmLanguage.mjs +1 -2
- package/package.json +15 -15
- package/dist/vendor/cmdk/command-score.mjs +0 -62
- package/dist/vendor/cmdk/index.d.mts +0 -181
- package/dist/vendor/cmdk/index.mjs +0 -713
package/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
[![npm version][npm-version-src]][npm-version-href]
|
|
4
4
|
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
5
|
-
[![codecov][codecov-src]][codecov-href]
|
|
6
5
|
|
|
7
6
|
> [!IMPORTANT]
|
|
8
7
|
> This is an internal package. It may change without warning and is not subject to semantic versioning. Use at your own risk.
|
|
@@ -23,5 +22,3 @@ Published under [MIT License](./LICENSE).
|
|
|
23
22
|
[npm-version-href]: https://npmjs.com/package/@ucdjs-internal/shared-ui
|
|
24
23
|
[npm-downloads-src]: https://img.shields.io/npm/dm/@ucdjs-internal/shared-ui?style=flat&colorA=18181B&colorB=4169E1
|
|
25
24
|
[npm-downloads-href]: https://npmjs.com/package/@ucdjs-internal/shared-ui
|
|
26
|
-
[codecov-src]: https://img.shields.io/codecov/c/gh/ucdjs/ucd?style=flat&colorA=18181B&colorB=4169E1
|
|
27
|
-
[codecov-href]: https://codecov.io/gh/ucdjs/ucd
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ShikiCode, ShikiCodeProps } from "./shiki-code.mjs";
|
|
2
2
|
import { ThemeToggle, ThemeToggleFallback } from "./theme-toggle.mjs";
|
|
3
|
-
|
|
3
|
+
import { UcdLogo } from "./ucd-logo.mjs";
|
|
4
|
+
export { ShikiCode, ShikiCodeProps, ThemeToggle, ThemeToggleFallback, UcdLogo };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ShikiCode } from "./shiki-code.mjs";
|
|
2
2
|
import { ThemeToggle, ThemeToggleFallback } from "./theme-toggle.mjs";
|
|
3
|
-
|
|
4
|
-
export { ShikiCode, ThemeToggle, ThemeToggleFallback };
|
|
3
|
+
import { UcdLogo } from "./ucd-logo.mjs";
|
|
4
|
+
export { ShikiCode, ThemeToggle, ThemeToggleFallback, UcdLogo };
|
|
@@ -3,7 +3,6 @@ import { use, useMemo } from "react";
|
|
|
3
3
|
import { createJavaScriptRegexEngine } from "shiki";
|
|
4
4
|
import { createCssVariablesTheme, createHighlighterCore } from "shiki/core";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
|
|
7
6
|
//#region src/components/shiki-code.tsx
|
|
8
7
|
const highlighterPromise = createHighlighterCore({
|
|
9
8
|
themes: [createCssVariablesTheme({
|
|
@@ -73,6 +72,5 @@ function ShikiCode({ code, language = "typescript", className, preClassName, cod
|
|
|
73
72
|
dangerouslySetInnerHTML: { __html: html }
|
|
74
73
|
});
|
|
75
74
|
}
|
|
76
|
-
|
|
77
75
|
//#endregion
|
|
78
|
-
export { ShikiCode };
|
|
76
|
+
export { ShikiCode };
|
|
@@ -4,7 +4,6 @@ import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigge
|
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { c } from "react/compiler-runtime";
|
|
6
6
|
import { Moon, Sun, SunMoon } from "lucide-react";
|
|
7
|
-
|
|
8
7
|
//#region src/components/theme-toggle.tsx
|
|
9
8
|
const labelByTheme = {
|
|
10
9
|
light: "Light",
|
|
@@ -91,6 +90,5 @@ function ThemeToggleFallback() {
|
|
|
91
90
|
} else t0 = $[0];
|
|
92
91
|
return t0;
|
|
93
92
|
}
|
|
94
|
-
|
|
95
93
|
//#endregion
|
|
96
|
-
export { ThemeToggle, ThemeToggleFallback };
|
|
94
|
+
export { ThemeToggle, ThemeToggleFallback };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
//#region src/components/ucd-logo.tsx
|
|
4
|
+
function UcdLogo(t0) {
|
|
5
|
+
const $ = c(5);
|
|
6
|
+
const { className } = t0;
|
|
7
|
+
let t1;
|
|
8
|
+
let t2;
|
|
9
|
+
let t3;
|
|
10
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
11
|
+
t1 = /* @__PURE__ */ jsx("rect", {
|
|
12
|
+
x: "20",
|
|
13
|
+
y: "20",
|
|
14
|
+
width: "60",
|
|
15
|
+
height: "60",
|
|
16
|
+
rx: "8",
|
|
17
|
+
fill: "#10B981",
|
|
18
|
+
opacity: "0.2"
|
|
19
|
+
});
|
|
20
|
+
t2 = /* @__PURE__ */ jsx("path", {
|
|
21
|
+
d: "M35 40 L65 40 M35 50 L55 50 M35 60 L60 60",
|
|
22
|
+
stroke: "#059669",
|
|
23
|
+
strokeWidth: "6",
|
|
24
|
+
strokeLinecap: "round"
|
|
25
|
+
});
|
|
26
|
+
t3 = /* @__PURE__ */ jsx("circle", {
|
|
27
|
+
cx: "70",
|
|
28
|
+
cy: "30",
|
|
29
|
+
r: "8",
|
|
30
|
+
fill: "#059669",
|
|
31
|
+
opacity: "0.8"
|
|
32
|
+
});
|
|
33
|
+
$[0] = t1;
|
|
34
|
+
$[1] = t2;
|
|
35
|
+
$[2] = t3;
|
|
36
|
+
} else {
|
|
37
|
+
t1 = $[0];
|
|
38
|
+
t2 = $[1];
|
|
39
|
+
t3 = $[2];
|
|
40
|
+
}
|
|
41
|
+
let t4;
|
|
42
|
+
if ($[3] !== className) {
|
|
43
|
+
t4 = /* @__PURE__ */ jsxs("svg", {
|
|
44
|
+
viewBox: "15 15 70 70",
|
|
45
|
+
width: "100%",
|
|
46
|
+
height: "100%",
|
|
47
|
+
className,
|
|
48
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
49
|
+
children: [
|
|
50
|
+
t1,
|
|
51
|
+
t2,
|
|
52
|
+
t3
|
|
53
|
+
]
|
|
54
|
+
});
|
|
55
|
+
$[3] = className;
|
|
56
|
+
$[4] = t4;
|
|
57
|
+
} else t4 = $[4];
|
|
58
|
+
return t4;
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
export { UcdLogo };
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
-
|
|
4
3
|
//#region src/hooks/use-clipboard.ts
|
|
5
4
|
function useClipboard(t0) {
|
|
6
5
|
const $ = c(12);
|
|
@@ -18,7 +17,7 @@ function useClipboard(t0) {
|
|
|
18
17
|
if ($[2] !== copyTimeout || $[3] !== options) {
|
|
19
18
|
const handleCopyResult = (value) => {
|
|
20
19
|
window.clearTimeout(copyTimeout);
|
|
21
|
-
setCopyTimeout(window.setTimeout(
|
|
20
|
+
setCopyTimeout(window.setTimeout(setCopied, options.timeout, false));
|
|
22
21
|
setCopied(value);
|
|
23
22
|
};
|
|
24
23
|
t2 = (value_0) => {
|
|
@@ -57,6 +56,5 @@ function useClipboard(t0) {
|
|
|
57
56
|
} else t4 = $[11];
|
|
58
57
|
return t4;
|
|
59
58
|
}
|
|
60
|
-
|
|
61
59
|
//#endregion
|
|
62
|
-
export { useClipboard };
|
|
60
|
+
export { useClipboard };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
-
|
|
4
3
|
//#region src/hooks/use-mobile.ts
|
|
5
4
|
const MOBILE_BREAKPOINT = 768;
|
|
6
5
|
function useIsMobile() {
|
|
@@ -36,6 +35,5 @@ function useIsMobile() {
|
|
|
36
35
|
function _temp() {
|
|
37
36
|
return typeof window !== "undefined" ? window.innerWidth < MOBILE_BREAKPOINT : false;
|
|
38
37
|
}
|
|
39
|
-
|
|
40
38
|
//#endregion
|
|
41
|
-
export { useIsMobile };
|
|
39
|
+
export { useIsMobile };
|
package/dist/hooks/use-theme.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
-
|
|
4
3
|
//#region src/hooks/use-theme.ts
|
|
5
4
|
const STORAGE_KEY = "theme";
|
|
6
5
|
const DARK_CLASS = "dark";
|
|
@@ -100,6 +99,5 @@ function _temp2() {
|
|
|
100
99
|
function _temp() {
|
|
101
100
|
return getStoredTheme();
|
|
102
101
|
}
|
|
103
|
-
|
|
104
102
|
//#endregion
|
|
105
|
-
export { useTheme };
|
|
103
|
+
export { useTheme };
|
package/dist/index.mjs
CHANGED
package/dist/lib/utils.mjs
CHANGED
package/dist/ui/alert-dialog.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { cn } from "../lib/utils.mjs";
|
|
2
2
|
import { Button } from "./button.mjs";
|
|
3
|
+
import "react";
|
|
3
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
5
|
import { c } from "react/compiler-runtime";
|
|
5
6
|
import { AlertDialog as AlertDialog$1 } from "@base-ui/react/alert-dialog";
|
|
6
|
-
|
|
7
7
|
//#region src/ui/alert-dialog.tsx
|
|
8
8
|
function AlertDialog(t0) {
|
|
9
9
|
const $ = c(4);
|
|
@@ -381,6 +381,5 @@ function AlertDialogCancel(t0) {
|
|
|
381
381
|
} else t5 = $[13];
|
|
382
382
|
return t5;
|
|
383
383
|
}
|
|
384
|
-
|
|
385
384
|
//#endregion
|
|
386
|
-
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
|
|
385
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
|
package/dist/ui/avatar.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { cn } from "../lib/utils.mjs";
|
|
2
|
+
import "react";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { c } from "react/compiler-runtime";
|
|
4
5
|
import { Avatar as Avatar$1 } from "@base-ui/react/avatar";
|
|
5
|
-
|
|
6
6
|
//#region src/ui/avatar.tsx
|
|
7
7
|
function Avatar(t0) {
|
|
8
8
|
const $ = c(10);
|
|
@@ -202,6 +202,5 @@ function AvatarGroupCount(t0) {
|
|
|
202
202
|
} else t2 = $[7];
|
|
203
203
|
return t2;
|
|
204
204
|
}
|
|
205
|
-
|
|
206
205
|
//#endregion
|
|
207
|
-
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage };
|
|
206
|
+
export { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage };
|
package/dist/ui/badge.mjs
CHANGED
|
@@ -3,7 +3,6 @@ import { c } from "react/compiler-runtime";
|
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
5
5
|
import { useRender } from "@base-ui/react/use-render";
|
|
6
|
-
|
|
7
6
|
//#region src/ui/badge.tsx
|
|
8
7
|
const badgeVariants = cva("h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-colors overflow-hidden group/badge", {
|
|
9
8
|
variants: { variant: {
|
|
@@ -71,6 +70,5 @@ function Badge(t0) {
|
|
|
71
70
|
} else t5 = $[12];
|
|
72
71
|
return t3(t5);
|
|
73
72
|
}
|
|
74
|
-
|
|
75
73
|
//#endregion
|
|
76
|
-
export { Badge, badgeVariants };
|
|
74
|
+
export { Badge, badgeVariants };
|
package/dist/ui/breadcrumb.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { cn } from "../lib/utils.mjs";
|
|
2
|
+
import "react";
|
|
2
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
4
|
import { c } from "react/compiler-runtime";
|
|
4
5
|
import { ChevronRight, MoreHorizontal } from "lucide-react";
|
|
5
6
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
6
7
|
import { useRender } from "@base-ui/react/use-render";
|
|
7
|
-
|
|
8
8
|
//#region src/ui/breadcrumb.tsx
|
|
9
9
|
function Breadcrumb(t0) {
|
|
10
10
|
const $ = c(8);
|
|
@@ -275,6 +275,5 @@ function BreadcrumbEllipsis(t0) {
|
|
|
275
275
|
} else t4 = $[9];
|
|
276
276
|
return t4;
|
|
277
277
|
}
|
|
278
|
-
|
|
279
278
|
//#endregion
|
|
280
|
-
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
|
|
279
|
+
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
|
package/dist/ui/button.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
|
|
|
6
6
|
//#region src/ui/button.d.ts
|
|
7
7
|
declare const buttonVariants: (props?: ({
|
|
8
8
|
variant?: "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | null | undefined;
|
|
9
|
-
size?: "
|
|
9
|
+
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
11
11
|
declare function Button({
|
|
12
12
|
className,
|
package/dist/ui/button.mjs
CHANGED
|
@@ -3,7 +3,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { Button as Button$1 } from "@base-ui/react/button";
|
|
5
5
|
import { cva } from "class-variance-authority";
|
|
6
|
-
|
|
7
6
|
//#region src/ui/button.tsx
|
|
8
7
|
const buttonVariants = cva("focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none group/button select-none", {
|
|
9
8
|
variants: {
|
|
@@ -77,6 +76,5 @@ function Button(t0) {
|
|
|
77
76
|
} else t4 = $[11];
|
|
78
77
|
return t4;
|
|
79
78
|
}
|
|
80
|
-
|
|
81
79
|
//#endregion
|
|
82
|
-
export { Button, buttonVariants };
|
|
80
|
+
export { Button, buttonVariants };
|
package/dist/ui/card.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn } from "../lib/utils.mjs";
|
|
2
|
+
import "react";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { c } from "react/compiler-runtime";
|
|
4
|
-
|
|
5
5
|
//#region src/ui/card.tsx
|
|
6
6
|
function Card(t0) {
|
|
7
7
|
const $ = c(10);
|
|
@@ -233,6 +233,5 @@ function CardFooter(t0) {
|
|
|
233
233
|
} else t2 = $[7];
|
|
234
234
|
return t2;
|
|
235
235
|
}
|
|
236
|
-
|
|
237
236
|
//#endregion
|
|
238
|
-
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
237
|
+
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
package/dist/ui/checkbox.mjs
CHANGED
|
@@ -3,7 +3,6 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { CheckIcon } from "lucide-react";
|
|
5
5
|
import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
|
|
6
|
-
|
|
7
6
|
//#region src/ui/checkbox.tsx
|
|
8
7
|
function Checkbox(t0) {
|
|
9
8
|
const $ = c(9);
|
|
@@ -47,6 +46,5 @@ function Checkbox(t0) {
|
|
|
47
46
|
} else t3 = $[8];
|
|
48
47
|
return t3;
|
|
49
48
|
}
|
|
50
|
-
|
|
51
49
|
//#endregion
|
|
52
|
-
export { Checkbox };
|
|
50
|
+
export { Checkbox };
|
package/dist/ui/collapsible.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
|
|
4
|
-
|
|
5
4
|
//#region src/ui/collapsible.tsx
|
|
6
5
|
function Collapsible(t0) {
|
|
7
6
|
const $ = c(4);
|
|
@@ -60,6 +59,5 @@ function CollapsibleContent(t0) {
|
|
|
60
59
|
} else t1 = $[3];
|
|
61
60
|
return t1;
|
|
62
61
|
}
|
|
63
|
-
|
|
64
62
|
//#endregion
|
|
65
|
-
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
63
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
package/dist/ui/combobox.mjs
CHANGED
|
@@ -6,7 +6,6 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { Check, ChevronDown, X } from "lucide-react";
|
|
8
8
|
import { Combobox as Combobox$1 } from "@base-ui/react";
|
|
9
|
-
|
|
10
9
|
//#region src/ui/combobox.tsx
|
|
11
10
|
const Combobox = Combobox$1.Root;
|
|
12
11
|
function ComboboxValue(t0) {
|
|
@@ -636,6 +635,5 @@ function ComboboxChipsInput(t0) {
|
|
|
636
635
|
function useComboboxAnchor() {
|
|
637
636
|
return React.useRef(null);
|
|
638
637
|
}
|
|
639
|
-
|
|
640
638
|
//#endregion
|
|
641
|
-
export { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, useComboboxAnchor };
|
|
639
|
+
export { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, useComboboxAnchor };
|
package/dist/ui/command.d.mts
CHANGED
|
@@ -1,55 +1,94 @@
|
|
|
1
|
-
import { Dialog } from "./dialog.mjs";
|
|
2
|
-
import { pkg } from "../vendor/cmdk/index.mjs";
|
|
3
1
|
import * as React from "react";
|
|
4
2
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { Command as Command$1, CommandAction, createCommandPalette, useCommandActions, useCommandShortcutDefault } from "@cmdi/base-ui";
|
|
5
4
|
|
|
6
5
|
//#region src/ui/command.d.ts
|
|
7
|
-
declare function
|
|
6
|
+
declare function CommandRoot({
|
|
8
7
|
className,
|
|
9
8
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof
|
|
9
|
+
}: React.ComponentProps<typeof Command$1>): react_jsx_runtime0.JSX.Element;
|
|
10
|
+
declare function CommandDialogRoot({
|
|
11
|
+
children,
|
|
12
|
+
open,
|
|
13
|
+
onOpenChange,
|
|
14
|
+
defaultOpen,
|
|
15
|
+
className,
|
|
16
|
+
overlayClassName,
|
|
17
|
+
contentClassName,
|
|
18
|
+
palette,
|
|
19
|
+
value,
|
|
20
|
+
defaultValue,
|
|
21
|
+
filter,
|
|
22
|
+
shouldFilter,
|
|
23
|
+
loop,
|
|
24
|
+
onValueChange,
|
|
25
|
+
label
|
|
26
|
+
}: React.ComponentProps<typeof Command$1.Dialog>): react_jsx_runtime0.JSX.Element;
|
|
11
27
|
declare function CommandDialog({
|
|
12
28
|
title,
|
|
13
|
-
description,
|
|
29
|
+
description: _description,
|
|
14
30
|
children,
|
|
15
31
|
className,
|
|
32
|
+
overlayClassName,
|
|
33
|
+
contentClassName,
|
|
34
|
+
palette,
|
|
16
35
|
showCloseButton,
|
|
17
36
|
...props
|
|
18
|
-
}: Omit<React.ComponentProps<typeof Dialog>, "children"> & {
|
|
37
|
+
}: Omit<React.ComponentProps<typeof Command$1.Dialog>, "children" | "label"> & {
|
|
19
38
|
title?: string;
|
|
20
39
|
description?: string;
|
|
21
40
|
className?: string;
|
|
41
|
+
palette?: string;
|
|
22
42
|
showCloseButton?: boolean;
|
|
23
43
|
children: React.ReactNode;
|
|
24
44
|
}): react_jsx_runtime0.JSX.Element;
|
|
25
45
|
declare function CommandInput({
|
|
26
46
|
className,
|
|
27
47
|
...props
|
|
28
|
-
}: React.ComponentProps<typeof
|
|
48
|
+
}: React.ComponentProps<typeof Command$1.Input>): react_jsx_runtime0.JSX.Element;
|
|
29
49
|
declare function CommandList({
|
|
30
50
|
className,
|
|
31
51
|
...props
|
|
32
|
-
}: React.ComponentProps<typeof
|
|
52
|
+
}: React.ComponentProps<typeof Command$1.List>): react_jsx_runtime0.JSX.Element;
|
|
33
53
|
declare function CommandEmpty({
|
|
34
54
|
className,
|
|
35
55
|
...props
|
|
36
|
-
}: React.ComponentProps<typeof
|
|
56
|
+
}: React.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime0.JSX.Element;
|
|
37
57
|
declare function CommandGroup({
|
|
38
58
|
className,
|
|
39
59
|
...props
|
|
40
|
-
}: React.ComponentProps<typeof
|
|
60
|
+
}: React.ComponentProps<typeof Command$1.Group>): react_jsx_runtime0.JSX.Element;
|
|
41
61
|
declare function CommandSeparator({
|
|
42
62
|
className,
|
|
43
63
|
...props
|
|
44
|
-
}: React.ComponentProps<typeof
|
|
64
|
+
}: React.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime0.JSX.Element;
|
|
45
65
|
declare function CommandItem({
|
|
46
66
|
className,
|
|
47
67
|
children,
|
|
48
68
|
...props
|
|
49
|
-
}: React.ComponentProps<typeof
|
|
69
|
+
}: React.ComponentProps<typeof Command$1.Item>): react_jsx_runtime0.JSX.Element;
|
|
70
|
+
declare function CommandLoading({
|
|
71
|
+
className,
|
|
72
|
+
...props
|
|
73
|
+
}: React.ComponentProps<typeof Command$1.Loading>): react_jsx_runtime0.JSX.Element;
|
|
74
|
+
declare function CommandActions({
|
|
75
|
+
className,
|
|
76
|
+
...props
|
|
77
|
+
}: React.ComponentProps<typeof Command$1.Actions>): react_jsx_runtime0.JSX.Element;
|
|
50
78
|
declare function CommandShortcut({
|
|
51
79
|
className,
|
|
52
80
|
...props
|
|
53
81
|
}: React.ComponentProps<"span">): react_jsx_runtime0.JSX.Element;
|
|
82
|
+
declare const Command: typeof CommandRoot & {
|
|
83
|
+
Dialog: typeof CommandDialogRoot;
|
|
84
|
+
Input: typeof CommandInput;
|
|
85
|
+
List: typeof CommandList;
|
|
86
|
+
Empty: typeof CommandEmpty;
|
|
87
|
+
Group: typeof CommandGroup;
|
|
88
|
+
Separator: typeof CommandSeparator;
|
|
89
|
+
Item: typeof CommandItem;
|
|
90
|
+
Loading: typeof CommandLoading;
|
|
91
|
+
Actions: typeof CommandActions;
|
|
92
|
+
};
|
|
54
93
|
//#endregion
|
|
55
|
-
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
94
|
+
export { Command, type CommandAction, CommandActions, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandLoading, CommandSeparator, CommandShortcut, createCommandPalette, useCommandActions, useCommandShortcutDefault };
|