@ucdjs-internal/shared-ui 0.1.6 → 0.1.8
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/shiki-code.d.mts +2 -2
- package/dist/components/shiki-code.mjs +1 -3
- package/dist/components/theme-toggle.d.mts +3 -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/components.d.mts +30 -0
- package/dist/components.mjs +30 -0
- package/dist/hooks/index.mjs +2 -3
- 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 +2 -3
- package/dist/lib/theme-script.mjs +1 -2
- package/dist/lib/utils.mjs +1 -3
- package/dist/ui/alert-dialog.d.mts +17 -17
- package/dist/ui/alert-dialog.mjs +12 -13
- package/dist/ui/avatar.d.mts +11 -11
- package/dist/ui/avatar.mjs +7 -8
- package/dist/ui/badge.d.mts +4 -4
- package/dist/ui/badge.mjs +1 -3
- package/dist/ui/breadcrumb.d.mts +7 -7
- package/dist/ui/breadcrumb.mjs +2 -3
- package/dist/ui/button.d.mts +8 -8
- package/dist/ui/button.mjs +4 -6
- package/dist/ui/card.d.mts +8 -8
- package/dist/ui/card.mjs +2 -3
- package/dist/ui/checkbox.d.mts +5 -5
- package/dist/ui/checkbox.mjs +5 -7
- package/dist/ui/collapsible.d.mts +7 -7
- package/dist/ui/collapsible.mjs +6 -8
- package/dist/ui/combobox.d.mts +20 -20
- package/dist/ui/combobox.mjs +21 -23
- package/dist/ui/command.d.mts +55 -16
- package/dist/ui/command.mjs +327 -89
- package/dist/ui/context-menu.d.mts +24 -24
- package/dist/ui/context-menu.mjs +20 -21
- package/dist/ui/dialog.d.mts +17 -15
- package/dist/ui/dialog.mjs +52 -42
- package/dist/ui/dropdown-menu.d.mts +16 -16
- package/dist/ui/dropdown-menu.mjs +2 -3
- package/dist/ui/field.d.mts +13 -13
- package/dist/ui/field.mjs +1 -3
- package/dist/ui/input-group.d.mts +10 -10
- package/dist/ui/input-group.mjs +2 -3
- package/dist/ui/input.d.mts +2 -2
- package/dist/ui/input.mjs +5 -6
- package/dist/ui/label.d.mts +2 -2
- package/dist/ui/label.mjs +2 -3
- package/dist/ui/scroll-area.d.mts +6 -6
- package/dist/ui/scroll-area.mjs +9 -10
- package/dist/ui/select.d.mts +14 -14
- package/dist/ui/select.mjs +18 -19
- package/dist/ui/separator.d.mts +5 -5
- package/dist/ui/separator.mjs +4 -6
- package/dist/ui/sheet.d.mts +9 -9
- package/dist/ui/sheet.mjs +2 -3
- package/dist/ui/sidebar.d.mts +23 -23
- package/dist/ui/sidebar.mjs +4 -6
- package/dist/ui/skeleton.d.mts +2 -2
- package/dist/ui/skeleton.mjs +1 -3
- package/dist/ui/table.d.mts +9 -9
- package/dist/ui/table.mjs +2 -3
- package/dist/ui/textarea.d.mts +2 -2
- package/dist/ui/textarea.mjs +2 -3
- package/dist/ui/tooltip.d.mts +8 -8
- package/dist/ui/tooltip.mjs +9 -11
- package/dist/vscode/syntaxes/ucd.tmLanguage.mjs +1 -2
- package/package.json +22 -44
- package/dist/components/index.d.mts +0 -3
- package/dist/components/index.mjs +0 -4
- 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/dist/ui/field.d.mts
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import { Label } from "./label.mjs";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
4
|
+
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/ui/field.d.ts
|
|
7
7
|
declare function FieldSet({
|
|
8
8
|
className,
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<"fieldset">): react_jsx_runtime0.JSX.Element;
|
|
10
|
+
}: React.ComponentProps<"fieldset">): _$react_jsx_runtime0.JSX.Element;
|
|
11
11
|
declare function FieldLegend({
|
|
12
12
|
className,
|
|
13
13
|
variant,
|
|
14
14
|
...props
|
|
15
15
|
}: React.ComponentProps<"legend"> & {
|
|
16
16
|
variant?: "legend" | "label";
|
|
17
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
17
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
18
18
|
declare function FieldGroup({
|
|
19
19
|
className,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
21
|
+
}: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
|
|
22
22
|
declare const fieldVariants: (props?: ({
|
|
23
23
|
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
24
|
-
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
24
|
+
} & _$class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
25
25
|
declare function Field({
|
|
26
26
|
className,
|
|
27
27
|
orientation,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): react_jsx_runtime0.JSX.Element;
|
|
29
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): _$react_jsx_runtime0.JSX.Element;
|
|
30
30
|
declare function FieldContent({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
33
|
+
}: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
|
|
34
34
|
declare function FieldLabel({
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof Label>): react_jsx_runtime0.JSX.Element;
|
|
37
|
+
}: React.ComponentProps<typeof Label>): _$react_jsx_runtime0.JSX.Element;
|
|
38
38
|
declare function FieldTitle({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
41
|
+
}: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
|
|
42
42
|
declare function FieldDescription({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<"p">): react_jsx_runtime0.JSX.Element;
|
|
45
|
+
}: React.ComponentProps<"p">): _$react_jsx_runtime0.JSX.Element;
|
|
46
46
|
declare function FieldSeparator({
|
|
47
47
|
children,
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
50
|
}: React.ComponentProps<"div"> & {
|
|
51
51
|
children?: React.ReactNode;
|
|
52
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
52
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
53
53
|
declare function FieldError({
|
|
54
54
|
className,
|
|
55
55
|
children,
|
|
@@ -59,6 +59,6 @@ declare function FieldError({
|
|
|
59
59
|
errors?: Array<{
|
|
60
60
|
message?: string;
|
|
61
61
|
} | undefined>;
|
|
62
|
-
}): react_jsx_runtime0.JSX.Element | null;
|
|
62
|
+
}): _$react_jsx_runtime0.JSX.Element | null;
|
|
63
63
|
//#endregion
|
|
64
64
|
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
|
package/dist/ui/field.mjs
CHANGED
|
@@ -4,7 +4,6 @@ import { Separator } from "./separator.mjs";
|
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { c } from "react/compiler-runtime";
|
|
6
6
|
import { cva } from "class-variance-authority";
|
|
7
|
-
|
|
8
7
|
//#region src/ui/field.tsx
|
|
9
8
|
function FieldSet(t0) {
|
|
10
9
|
const $ = c(8);
|
|
@@ -420,6 +419,5 @@ function _temp2(error_0) {
|
|
|
420
419
|
function _temp(error) {
|
|
421
420
|
return [error?.message, error];
|
|
422
421
|
}
|
|
423
|
-
|
|
424
422
|
//#endregion
|
|
425
|
-
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
|
|
423
|
+
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { Button } from "./button.mjs";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
|
-
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
|
+
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
6
6
|
|
|
7
7
|
//#region src/ui/input-group.d.ts
|
|
8
8
|
declare function InputGroup({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
11
|
+
}: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
|
|
12
12
|
declare const inputGroupAddonVariants: (props?: ({
|
|
13
13
|
align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
|
|
14
|
-
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
14
|
+
} & _$class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
15
15
|
declare function InputGroupAddon({
|
|
16
16
|
className,
|
|
17
17
|
align,
|
|
18
18
|
...props
|
|
19
|
-
}: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): react_jsx_runtime0.JSX.Element;
|
|
19
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): _$react_jsx_runtime0.JSX.Element;
|
|
20
20
|
declare const inputGroupButtonVariants: (props?: ({
|
|
21
21
|
size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
|
|
22
|
-
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
22
|
+
} & _$class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
23
23
|
declare function InputGroupButton({
|
|
24
24
|
className,
|
|
25
25
|
type,
|
|
@@ -28,18 +28,18 @@ declare function InputGroupButton({
|
|
|
28
28
|
...props
|
|
29
29
|
}: Omit<React.ComponentProps<typeof Button>, "size" | "type"> & VariantProps<typeof inputGroupButtonVariants> & {
|
|
30
30
|
type?: "button" | "submit" | "reset";
|
|
31
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
31
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
32
32
|
declare function InputGroupText({
|
|
33
33
|
className,
|
|
34
34
|
...props
|
|
35
|
-
}: React.ComponentProps<"span">): react_jsx_runtime0.JSX.Element;
|
|
35
|
+
}: React.ComponentProps<"span">): _$react_jsx_runtime0.JSX.Element;
|
|
36
36
|
declare function InputGroupInput({
|
|
37
37
|
className,
|
|
38
38
|
...props
|
|
39
|
-
}: React.ComponentProps<"input">): react_jsx_runtime0.JSX.Element;
|
|
39
|
+
}: React.ComponentProps<"input">): _$react_jsx_runtime0.JSX.Element;
|
|
40
40
|
declare function InputGroupTextarea({
|
|
41
41
|
className,
|
|
42
42
|
...props
|
|
43
|
-
}: React.ComponentProps<"textarea">): react_jsx_runtime0.JSX.Element;
|
|
43
|
+
}: React.ComponentProps<"textarea">): _$react_jsx_runtime0.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
|
package/dist/ui/input-group.mjs
CHANGED
|
@@ -2,10 +2,10 @@ import { cn } from "../lib/utils.mjs";
|
|
|
2
2
|
import { Button } from "./button.mjs";
|
|
3
3
|
import { Input } from "./input.mjs";
|
|
4
4
|
import { Textarea } from "./textarea.mjs";
|
|
5
|
+
import "react";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
7
|
import { c } from "react/compiler-runtime";
|
|
7
8
|
import { cva } from "class-variance-authority";
|
|
8
|
-
|
|
9
9
|
//#region src/ui/input-group.tsx
|
|
10
10
|
function InputGroup(t0) {
|
|
11
11
|
const $ = c(8);
|
|
@@ -248,6 +248,5 @@ function InputGroupTextarea(t0) {
|
|
|
248
248
|
} else t2 = $[7];
|
|
249
249
|
return t2;
|
|
250
250
|
}
|
|
251
|
-
|
|
252
251
|
//#endregion
|
|
253
|
-
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
|
|
252
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
|
package/dist/ui/input.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/ui/input.d.ts
|
|
5
5
|
declare function Input({
|
|
6
6
|
className,
|
|
7
7
|
type,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<"input">): react_jsx_runtime0.JSX.Element;
|
|
9
|
+
}: React.ComponentProps<"input">): _$react_jsx_runtime0.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Input };
|
package/dist/ui/input.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
import { Input
|
|
5
|
-
|
|
5
|
+
import { Input } from "@base-ui/react/input";
|
|
6
6
|
//#region src/ui/input.tsx
|
|
7
|
-
function Input(t0) {
|
|
7
|
+
function Input$1(t0) {
|
|
8
8
|
const $ = c(10);
|
|
9
9
|
let className;
|
|
10
10
|
let props;
|
|
@@ -28,7 +28,7 @@ function Input(t0) {
|
|
|
28
28
|
} else t1 = $[5];
|
|
29
29
|
let t2;
|
|
30
30
|
if ($[6] !== props || $[7] !== t1 || $[8] !== type) {
|
|
31
|
-
t2 = /* @__PURE__ */ jsx(Input
|
|
31
|
+
t2 = /* @__PURE__ */ jsx(Input, {
|
|
32
32
|
type,
|
|
33
33
|
"data-slot": "input",
|
|
34
34
|
className: t1,
|
|
@@ -41,6 +41,5 @@ function Input(t0) {
|
|
|
41
41
|
} else t2 = $[9];
|
|
42
42
|
return t2;
|
|
43
43
|
}
|
|
44
|
-
|
|
45
44
|
//#endregion
|
|
46
|
-
export { Input };
|
|
45
|
+
export { Input$1 as Input };
|
package/dist/ui/label.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/ui/label.d.ts
|
|
5
5
|
declare function Label({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<"label">): react_jsx_runtime0.JSX.Element;
|
|
8
|
+
}: React.ComponentProps<"label">): _$react_jsx_runtime0.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Label };
|
package/dist/ui/label.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/label.tsx
|
|
6
6
|
function Label(t0) {
|
|
7
7
|
const $ = c(8);
|
|
@@ -35,6 +35,5 @@ function Label(t0) {
|
|
|
35
35
|
} else t2 = $[7];
|
|
36
36
|
return t2;
|
|
37
37
|
}
|
|
38
|
-
|
|
39
38
|
//#endregion
|
|
40
|
-
export { Label };
|
|
39
|
+
export { Label };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
-
import { ScrollArea
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { ScrollArea } from "@base-ui/react/scroll-area";
|
|
3
3
|
|
|
4
4
|
//#region src/ui/scroll-area.d.ts
|
|
5
|
-
declare function ScrollArea({
|
|
5
|
+
declare function ScrollArea$1({
|
|
6
6
|
className,
|
|
7
7
|
children,
|
|
8
8
|
...props
|
|
9
|
-
}: ScrollArea
|
|
9
|
+
}: ScrollArea.Root.Props): _$react_jsx_runtime0.JSX.Element;
|
|
10
10
|
declare function ScrollBar({
|
|
11
11
|
className,
|
|
12
12
|
orientation,
|
|
13
13
|
...props
|
|
14
|
-
}: ScrollArea
|
|
14
|
+
}: ScrollArea.Scrollbar.Props): _$react_jsx_runtime0.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
|
-
export { ScrollArea, ScrollBar };
|
|
16
|
+
export { ScrollArea$1 as ScrollArea, ScrollBar };
|
package/dist/ui/scroll-area.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
|
-
import { ScrollArea
|
|
5
|
-
|
|
5
|
+
import { ScrollArea } from "@base-ui/react/scroll-area";
|
|
6
6
|
//#region src/ui/scroll-area.tsx
|
|
7
|
-
function ScrollArea(t0) {
|
|
7
|
+
function ScrollArea$1(t0) {
|
|
8
8
|
const $ = c(14);
|
|
9
9
|
let children;
|
|
10
10
|
let className;
|
|
@@ -28,7 +28,7 @@ function ScrollArea(t0) {
|
|
|
28
28
|
} else t1 = $[5];
|
|
29
29
|
let t2;
|
|
30
30
|
if ($[6] !== children) {
|
|
31
|
-
t2 = /* @__PURE__ */ jsx(ScrollArea
|
|
31
|
+
t2 = /* @__PURE__ */ jsx(ScrollArea.Viewport, {
|
|
32
32
|
"data-slot": "scroll-area-viewport",
|
|
33
33
|
className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",
|
|
34
34
|
children
|
|
@@ -40,7 +40,7 @@ function ScrollArea(t0) {
|
|
|
40
40
|
let t4;
|
|
41
41
|
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
42
42
|
t3 = /* @__PURE__ */ jsx(ScrollBar, {});
|
|
43
|
-
t4 = /* @__PURE__ */ jsx(ScrollArea
|
|
43
|
+
t4 = /* @__PURE__ */ jsx(ScrollArea.Corner, {});
|
|
44
44
|
$[8] = t3;
|
|
45
45
|
$[9] = t4;
|
|
46
46
|
} else {
|
|
@@ -49,7 +49,7 @@ function ScrollArea(t0) {
|
|
|
49
49
|
}
|
|
50
50
|
let t5;
|
|
51
51
|
if ($[10] !== props || $[11] !== t1 || $[12] !== t2) {
|
|
52
|
-
t5 = /* @__PURE__ */ jsxs(ScrollArea
|
|
52
|
+
t5 = /* @__PURE__ */ jsxs(ScrollArea.Root, {
|
|
53
53
|
"data-slot": "scroll-area",
|
|
54
54
|
className: t1,
|
|
55
55
|
...props,
|
|
@@ -91,7 +91,7 @@ function ScrollBar(t0) {
|
|
|
91
91
|
} else t2 = $[5];
|
|
92
92
|
let t3;
|
|
93
93
|
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
94
|
-
t3 = /* @__PURE__ */ jsx(ScrollArea
|
|
94
|
+
t3 = /* @__PURE__ */ jsx(ScrollArea.Thumb, {
|
|
95
95
|
"data-slot": "scroll-area-thumb",
|
|
96
96
|
className: "rounded-full bg-border relative flex-1"
|
|
97
97
|
});
|
|
@@ -99,7 +99,7 @@ function ScrollBar(t0) {
|
|
|
99
99
|
} else t3 = $[6];
|
|
100
100
|
let t4;
|
|
101
101
|
if ($[7] !== orientation || $[8] !== props || $[9] !== t2) {
|
|
102
|
-
t4 = /* @__PURE__ */ jsx(ScrollArea
|
|
102
|
+
t4 = /* @__PURE__ */ jsx(ScrollArea.Scrollbar, {
|
|
103
103
|
"data-slot": "scroll-area-scrollbar",
|
|
104
104
|
"data-orientation": orientation,
|
|
105
105
|
orientation,
|
|
@@ -114,6 +114,5 @@ function ScrollBar(t0) {
|
|
|
114
114
|
} else t4 = $[10];
|
|
115
115
|
return t4;
|
|
116
116
|
}
|
|
117
|
-
|
|
118
117
|
//#endregion
|
|
119
|
-
export { ScrollArea, ScrollBar };
|
|
118
|
+
export { ScrollArea$1 as ScrollArea, ScrollBar };
|
package/dist/ui/select.d.mts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
-
import { Select
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { Select } from "@base-ui/react/select";
|
|
4
4
|
|
|
5
5
|
//#region src/ui/select.d.ts
|
|
6
|
-
declare const Select: typeof Select
|
|
6
|
+
declare const Select$1: typeof Select.Root;
|
|
7
7
|
declare function SelectGroup({
|
|
8
8
|
className,
|
|
9
9
|
...props
|
|
10
|
-
}: Select
|
|
10
|
+
}: Select.Group.Props): _$react_jsx_runtime0.JSX.Element;
|
|
11
11
|
declare function SelectValue({
|
|
12
12
|
className,
|
|
13
13
|
...props
|
|
14
|
-
}: Select
|
|
14
|
+
}: Select.Value.Props): _$react_jsx_runtime0.JSX.Element;
|
|
15
15
|
declare function SelectTrigger({
|
|
16
16
|
className,
|
|
17
17
|
size,
|
|
18
18
|
children,
|
|
19
19
|
...props
|
|
20
|
-
}: Select
|
|
20
|
+
}: Select.Trigger.Props & {
|
|
21
21
|
size?: "sm" | "default";
|
|
22
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
22
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
23
23
|
declare function SelectContent({
|
|
24
24
|
className,
|
|
25
25
|
children,
|
|
@@ -29,27 +29,27 @@ declare function SelectContent({
|
|
|
29
29
|
alignOffset,
|
|
30
30
|
alignItemWithTrigger,
|
|
31
31
|
...props
|
|
32
|
-
}: Select
|
|
32
|
+
}: Select.Popup.Props & Pick<Select.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset" | "alignItemWithTrigger">): _$react_jsx_runtime0.JSX.Element;
|
|
33
33
|
declare function SelectLabel({
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: Select
|
|
36
|
+
}: Select.GroupLabel.Props): _$react_jsx_runtime0.JSX.Element;
|
|
37
37
|
declare function SelectItem({
|
|
38
38
|
className,
|
|
39
39
|
children,
|
|
40
40
|
...props
|
|
41
|
-
}: Select
|
|
41
|
+
}: Select.Item.Props): _$react_jsx_runtime0.JSX.Element;
|
|
42
42
|
declare function SelectSeparator({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: Select
|
|
45
|
+
}: Select.Separator.Props): _$react_jsx_runtime0.JSX.Element;
|
|
46
46
|
declare function SelectScrollUpButton({
|
|
47
47
|
className,
|
|
48
48
|
...props
|
|
49
|
-
}: React.ComponentProps<typeof Select
|
|
49
|
+
}: React.ComponentProps<typeof Select.ScrollUpArrow>): _$react_jsx_runtime0.JSX.Element;
|
|
50
50
|
declare function SelectScrollDownButton({
|
|
51
51
|
className,
|
|
52
52
|
...props
|
|
53
|
-
}: React.ComponentProps<typeof Select
|
|
53
|
+
}: React.ComponentProps<typeof Select.ScrollDownArrow>): _$react_jsx_runtime0.JSX.Element;
|
|
54
54
|
//#endregion
|
|
55
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
55
|
+
export { Select$1 as Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
package/dist/ui/select.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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 { Check, ChevronDown, ChevronUp } from "lucide-react";
|
|
5
|
-
import { Select
|
|
6
|
-
|
|
6
|
+
import { Select } from "@base-ui/react/select";
|
|
7
7
|
//#region src/ui/select.tsx
|
|
8
|
-
const Select = Select
|
|
8
|
+
const Select$1 = Select.Root;
|
|
9
9
|
function SelectGroup(t0) {
|
|
10
10
|
const $ = c(8);
|
|
11
11
|
let className;
|
|
@@ -27,7 +27,7 @@ function SelectGroup(t0) {
|
|
|
27
27
|
} else t1 = $[4];
|
|
28
28
|
let t2;
|
|
29
29
|
if ($[5] !== props || $[6] !== t1) {
|
|
30
|
-
t2 = /* @__PURE__ */ jsx(Select
|
|
30
|
+
t2 = /* @__PURE__ */ jsx(Select.Group, {
|
|
31
31
|
"data-slot": "select-group",
|
|
32
32
|
className: t1,
|
|
33
33
|
...props
|
|
@@ -59,7 +59,7 @@ function SelectValue(t0) {
|
|
|
59
59
|
} else t1 = $[4];
|
|
60
60
|
let t2;
|
|
61
61
|
if ($[5] !== props || $[6] !== t1) {
|
|
62
|
-
t2 = /* @__PURE__ */ jsx(Select
|
|
62
|
+
t2 = /* @__PURE__ */ jsx(Select.Value, {
|
|
63
63
|
"data-slot": "select-value",
|
|
64
64
|
className: t1,
|
|
65
65
|
...props
|
|
@@ -98,12 +98,12 @@ function SelectTrigger(t0) {
|
|
|
98
98
|
} else t2 = $[6];
|
|
99
99
|
let t3;
|
|
100
100
|
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
101
|
-
t3 = /* @__PURE__ */ jsx(Select
|
|
101
|
+
t3 = /* @__PURE__ */ jsx(Select.Icon, { render: /* @__PURE__ */ jsx(ChevronDown, { className: "text-muted-foreground size-4 pointer-events-none" }) });
|
|
102
102
|
$[7] = t3;
|
|
103
103
|
} else t3 = $[7];
|
|
104
104
|
let t4;
|
|
105
105
|
if ($[8] !== children || $[9] !== props || $[10] !== size || $[11] !== t2) {
|
|
106
|
-
t4 = /* @__PURE__ */ jsxs(Select
|
|
106
|
+
t4 = /* @__PURE__ */ jsxs(Select.Trigger, {
|
|
107
107
|
"data-slot": "select-trigger",
|
|
108
108
|
"data-size": size,
|
|
109
109
|
className: t2,
|
|
@@ -167,7 +167,7 @@ function SelectContent(t0) {
|
|
|
167
167
|
} else t7 = $[11];
|
|
168
168
|
let t8;
|
|
169
169
|
if ($[12] !== children) {
|
|
170
|
-
t8 = /* @__PURE__ */ jsx(Select
|
|
170
|
+
t8 = /* @__PURE__ */ jsx(Select.List, { children });
|
|
171
171
|
$[12] = children;
|
|
172
172
|
$[13] = t8;
|
|
173
173
|
} else t8 = $[13];
|
|
@@ -178,7 +178,7 @@ function SelectContent(t0) {
|
|
|
178
178
|
} else t9 = $[14];
|
|
179
179
|
let t10;
|
|
180
180
|
if ($[15] !== props || $[16] !== t6 || $[17] !== t8) {
|
|
181
|
-
t10 = /* @__PURE__ */ jsxs(Select
|
|
181
|
+
t10 = /* @__PURE__ */ jsxs(Select.Popup, {
|
|
182
182
|
"data-slot": "select-content",
|
|
183
183
|
className: t6,
|
|
184
184
|
...props,
|
|
@@ -195,7 +195,7 @@ function SelectContent(t0) {
|
|
|
195
195
|
} else t10 = $[18];
|
|
196
196
|
let t11;
|
|
197
197
|
if ($[19] !== align || $[20] !== alignItemWithTrigger || $[21] !== alignOffset || $[22] !== side || $[23] !== sideOffset || $[24] !== t10) {
|
|
198
|
-
t11 = /* @__PURE__ */ jsx(Select
|
|
198
|
+
t11 = /* @__PURE__ */ jsx(Select.Portal, { children: /* @__PURE__ */ jsx(Select.Positioner, {
|
|
199
199
|
side,
|
|
200
200
|
sideOffset,
|
|
201
201
|
align,
|
|
@@ -235,7 +235,7 @@ function SelectLabel(t0) {
|
|
|
235
235
|
} else t1 = $[4];
|
|
236
236
|
let t2;
|
|
237
237
|
if ($[5] !== props || $[6] !== t1) {
|
|
238
|
-
t2 = /* @__PURE__ */ jsx(Select
|
|
238
|
+
t2 = /* @__PURE__ */ jsx(Select.GroupLabel, {
|
|
239
239
|
"data-slot": "select-label",
|
|
240
240
|
className: t1,
|
|
241
241
|
...props
|
|
@@ -270,7 +270,7 @@ function SelectItem(t0) {
|
|
|
270
270
|
} else t1 = $[5];
|
|
271
271
|
let t2;
|
|
272
272
|
if ($[6] !== children) {
|
|
273
|
-
t2 = /* @__PURE__ */ jsx(Select
|
|
273
|
+
t2 = /* @__PURE__ */ jsx(Select.ItemText, {
|
|
274
274
|
className: "flex flex-1 gap-2 shrink-0 whitespace-nowrap",
|
|
275
275
|
children
|
|
276
276
|
});
|
|
@@ -279,7 +279,7 @@ function SelectItem(t0) {
|
|
|
279
279
|
} else t2 = $[7];
|
|
280
280
|
let t3;
|
|
281
281
|
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
282
|
-
t3 = /* @__PURE__ */ jsx(Select
|
|
282
|
+
t3 = /* @__PURE__ */ jsx(Select.ItemIndicator, {
|
|
283
283
|
render: /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
284
284
|
children: /* @__PURE__ */ jsx(Check, { className: "pointer-events-none" })
|
|
285
285
|
});
|
|
@@ -287,7 +287,7 @@ function SelectItem(t0) {
|
|
|
287
287
|
} else t3 = $[8];
|
|
288
288
|
let t4;
|
|
289
289
|
if ($[9] !== props || $[10] !== t1 || $[11] !== t2) {
|
|
290
|
-
t4 = /* @__PURE__ */ jsxs(Select
|
|
290
|
+
t4 = /* @__PURE__ */ jsxs(Select.Item, {
|
|
291
291
|
"data-slot": "select-item",
|
|
292
292
|
className: t1,
|
|
293
293
|
...props,
|
|
@@ -321,7 +321,7 @@ function SelectSeparator(t0) {
|
|
|
321
321
|
} else t1 = $[4];
|
|
322
322
|
let t2;
|
|
323
323
|
if ($[5] !== props || $[6] !== t1) {
|
|
324
|
-
t2 = /* @__PURE__ */ jsx(Select
|
|
324
|
+
t2 = /* @__PURE__ */ jsx(Select.Separator, {
|
|
325
325
|
"data-slot": "select-separator",
|
|
326
326
|
className: t1,
|
|
327
327
|
...props
|
|
@@ -358,7 +358,7 @@ function SelectScrollUpButton(t0) {
|
|
|
358
358
|
} else t2 = $[5];
|
|
359
359
|
let t3;
|
|
360
360
|
if ($[6] !== props || $[7] !== t1) {
|
|
361
|
-
t3 = /* @__PURE__ */ jsx(Select
|
|
361
|
+
t3 = /* @__PURE__ */ jsx(Select.ScrollUpArrow, {
|
|
362
362
|
"data-slot": "select-scroll-up-button",
|
|
363
363
|
className: t1,
|
|
364
364
|
...props,
|
|
@@ -396,7 +396,7 @@ function SelectScrollDownButton(t0) {
|
|
|
396
396
|
} else t2 = $[5];
|
|
397
397
|
let t3;
|
|
398
398
|
if ($[6] !== props || $[7] !== t1) {
|
|
399
|
-
t3 = /* @__PURE__ */ jsx(Select
|
|
399
|
+
t3 = /* @__PURE__ */ jsx(Select.ScrollDownArrow, {
|
|
400
400
|
"data-slot": "select-scroll-down-button",
|
|
401
401
|
className: t1,
|
|
402
402
|
...props,
|
|
@@ -408,6 +408,5 @@ function SelectScrollDownButton(t0) {
|
|
|
408
408
|
} else t3 = $[8];
|
|
409
409
|
return t3;
|
|
410
410
|
}
|
|
411
|
-
|
|
412
411
|
//#endregion
|
|
413
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
|
412
|
+
export { Select$1 as Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
|
package/dist/ui/separator.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
-
import { Separator
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { Separator } from "@base-ui/react/separator";
|
|
3
3
|
|
|
4
4
|
//#region src/ui/separator.d.ts
|
|
5
|
-
declare function Separator({
|
|
5
|
+
declare function Separator$1({
|
|
6
6
|
className,
|
|
7
7
|
orientation,
|
|
8
8
|
...props
|
|
9
|
-
}: Separator
|
|
9
|
+
}: Separator.Props): _$react_jsx_runtime0.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { Separator };
|
|
11
|
+
export { Separator$1 as Separator };
|
package/dist/ui/separator.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { cn } from "../lib/utils.mjs";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
|
-
import { Separator
|
|
5
|
-
|
|
4
|
+
import { Separator } from "@base-ui/react/separator";
|
|
6
5
|
//#region src/ui/separator.tsx
|
|
7
|
-
function Separator(t0) {
|
|
6
|
+
function Separator$1(t0) {
|
|
8
7
|
const $ = c(10);
|
|
9
8
|
let className;
|
|
10
9
|
let props;
|
|
@@ -29,7 +28,7 @@ function Separator(t0) {
|
|
|
29
28
|
} else t2 = $[5];
|
|
30
29
|
let t3;
|
|
31
30
|
if ($[6] !== orientation || $[7] !== props || $[8] !== t2) {
|
|
32
|
-
t3 = /* @__PURE__ */ jsx(Separator
|
|
31
|
+
t3 = /* @__PURE__ */ jsx(Separator, {
|
|
33
32
|
"data-slot": "separator",
|
|
34
33
|
orientation,
|
|
35
34
|
className: t2,
|
|
@@ -42,6 +41,5 @@ function Separator(t0) {
|
|
|
42
41
|
} else t3 = $[9];
|
|
43
42
|
return t3;
|
|
44
43
|
}
|
|
45
|
-
|
|
46
44
|
//#endregion
|
|
47
|
-
export { Separator };
|
|
45
|
+
export { Separator$1 as Separator };
|
package/dist/ui/sheet.d.mts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import { Dialog } from "@base-ui/react/dialog";
|
|
4
4
|
|
|
5
5
|
//#region src/ui/sheet.d.ts
|
|
6
6
|
declare function Sheet({
|
|
7
7
|
...props
|
|
8
|
-
}: Dialog.Root.Props): react_jsx_runtime0.JSX.Element;
|
|
8
|
+
}: Dialog.Root.Props): _$react_jsx_runtime0.JSX.Element;
|
|
9
9
|
declare function SheetTrigger({
|
|
10
10
|
...props
|
|
11
|
-
}: Dialog.Trigger.Props): react_jsx_runtime0.JSX.Element;
|
|
11
|
+
}: Dialog.Trigger.Props): _$react_jsx_runtime0.JSX.Element;
|
|
12
12
|
declare function SheetClose({
|
|
13
13
|
...props
|
|
14
|
-
}: Dialog.Close.Props): react_jsx_runtime0.JSX.Element;
|
|
14
|
+
}: Dialog.Close.Props): _$react_jsx_runtime0.JSX.Element;
|
|
15
15
|
declare function SheetContent({
|
|
16
16
|
className,
|
|
17
17
|
children,
|
|
@@ -21,22 +21,22 @@ declare function SheetContent({
|
|
|
21
21
|
}: Dialog.Popup.Props & {
|
|
22
22
|
side?: "top" | "right" | "bottom" | "left";
|
|
23
23
|
showCloseButton?: boolean;
|
|
24
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
24
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
25
25
|
declare function SheetHeader({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
28
|
+
}: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
|
|
29
29
|
declare function SheetFooter({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
32
|
+
}: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
|
|
33
33
|
declare function SheetTitle({
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: Dialog.Title.Props): react_jsx_runtime0.JSX.Element;
|
|
36
|
+
}: Dialog.Title.Props): _$react_jsx_runtime0.JSX.Element;
|
|
37
37
|
declare function SheetDescription({
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
40
|
-
}: Dialog.Description.Props): react_jsx_runtime0.JSX.Element;
|
|
40
|
+
}: Dialog.Description.Props): _$react_jsx_runtime0.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|
package/dist/ui/sheet.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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 { X } from "lucide-react";
|
|
6
7
|
import { Dialog } from "@base-ui/react/dialog";
|
|
7
|
-
|
|
8
8
|
//#region src/ui/sheet.tsx
|
|
9
9
|
function Sheet(t0) {
|
|
10
10
|
const $ = c(4);
|
|
@@ -312,6 +312,5 @@ function SheetDescription(t0) {
|
|
|
312
312
|
} else t2 = $[7];
|
|
313
313
|
return t2;
|
|
314
314
|
}
|
|
315
|
-
|
|
316
315
|
//#endregion
|
|
317
|
-
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|
|
316
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
|