@ucdjs-internal/shared-ui 0.1.7 → 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/dist/components/shiki-code.d.mts +2 -2
- package/dist/components/theme-toggle.d.mts +3 -3
- package/dist/components/ucd-logo.d.mts +2 -2
- package/dist/components.d.mts +30 -0
- package/dist/components.mjs +30 -0
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/ui/alert-dialog.d.mts +17 -17
- package/dist/ui/alert-dialog.mjs +11 -11
- package/dist/ui/avatar.d.mts +11 -11
- package/dist/ui/avatar.mjs +6 -6
- package/dist/ui/badge.d.mts +4 -4
- package/dist/ui/breadcrumb.d.mts +7 -7
- package/dist/ui/button.d.mts +7 -7
- package/dist/ui/button.mjs +4 -4
- package/dist/ui/card.d.mts +8 -8
- package/dist/ui/checkbox.d.mts +5 -5
- package/dist/ui/checkbox.mjs +5 -5
- package/dist/ui/collapsible.d.mts +7 -7
- package/dist/ui/collapsible.mjs +6 -6
- package/dist/ui/combobox.d.mts +20 -20
- package/dist/ui/combobox.mjs +21 -21
- package/dist/ui/command.d.mts +17 -17
- package/dist/ui/command.mjs +14 -14
- package/dist/ui/context-menu.d.mts +24 -24
- package/dist/ui/context-menu.mjs +19 -19
- package/dist/ui/dialog.d.mts +15 -15
- package/dist/ui/dialog.mjs +13 -13
- package/dist/ui/dropdown-menu.d.mts +16 -16
- package/dist/ui/field.d.mts +13 -13
- package/dist/ui/input-group.d.mts +10 -10
- package/dist/ui/input.d.mts +2 -2
- package/dist/ui/input.mjs +4 -4
- package/dist/ui/label.d.mts +2 -2
- package/dist/ui/scroll-area.d.mts +6 -6
- package/dist/ui/scroll-area.mjs +8 -8
- package/dist/ui/select.d.mts +14 -14
- package/dist/ui/select.mjs +17 -17
- package/dist/ui/separator.d.mts +5 -5
- package/dist/ui/separator.mjs +4 -4
- package/dist/ui/sheet.d.mts +9 -9
- package/dist/ui/sidebar.d.mts +22 -22
- package/dist/ui/sidebar.mjs +1 -1
- package/dist/ui/skeleton.d.mts +2 -2
- package/dist/ui/table.d.mts +9 -9
- package/dist/ui/textarea.d.mts +2 -2
- package/dist/ui/tooltip.d.mts +8 -8
- package/dist/ui/tooltip.mjs +9 -9
- package/package.json +11 -33
- package/dist/components/index.d.mts +0 -4
- package/dist/components/index.mjs +0 -4
package/dist/ui/scroll-area.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import { cn } from "../lib/utils.mjs";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
|
-
import { ScrollArea
|
|
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,
|
|
@@ -115,4 +115,4 @@ function ScrollBar(t0) {
|
|
|
115
115
|
return t4;
|
|
116
116
|
}
|
|
117
117
|
//#endregion
|
|
118
|
-
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
|
@@ -3,9 +3,9 @@ import "react";
|
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
5
|
import { Check, ChevronDown, ChevronUp } from "lucide-react";
|
|
6
|
-
import { Select
|
|
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,
|
|
@@ -409,4 +409,4 @@ function SelectScrollDownButton(t0) {
|
|
|
409
409
|
return t3;
|
|
410
410
|
}
|
|
411
411
|
//#endregion
|
|
412
|
-
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,9 +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
|
|
4
|
+
import { Separator } from "@base-ui/react/separator";
|
|
5
5
|
//#region src/ui/separator.tsx
|
|
6
|
-
function Separator(t0) {
|
|
6
|
+
function Separator$1(t0) {
|
|
7
7
|
const $ = c(10);
|
|
8
8
|
let className;
|
|
9
9
|
let props;
|
|
@@ -28,7 +28,7 @@ function Separator(t0) {
|
|
|
28
28
|
} else t2 = $[5];
|
|
29
29
|
let t3;
|
|
30
30
|
if ($[6] !== orientation || $[7] !== props || $[8] !== t2) {
|
|
31
|
-
t3 = /* @__PURE__ */ jsx(Separator
|
|
31
|
+
t3 = /* @__PURE__ */ jsx(Separator, {
|
|
32
32
|
"data-slot": "separator",
|
|
33
33
|
orientation,
|
|
34
34
|
className: t2,
|
|
@@ -42,4 +42,4 @@ function Separator(t0) {
|
|
|
42
42
|
return t3;
|
|
43
43
|
}
|
|
44
44
|
//#endregion
|
|
45
|
-
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/sidebar.d.mts
CHANGED
|
@@ -3,10 +3,10 @@ import { Input } from "./input.mjs";
|
|
|
3
3
|
import { Separator } from "./separator.mjs";
|
|
4
4
|
import { TooltipContent } from "./tooltip.mjs";
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
7
7
|
import { VariantProps } from "class-variance-authority";
|
|
8
8
|
import { useRender } from "@base-ui/react/use-render";
|
|
9
|
-
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
9
|
+
import * as _$class_variance_authority_types0 from "class-variance-authority/types";
|
|
10
10
|
|
|
11
11
|
//#region src/ui/sidebar.d.ts
|
|
12
12
|
interface SidebarContextProps {
|
|
@@ -31,7 +31,7 @@ declare function SidebarProvider({
|
|
|
31
31
|
defaultOpen?: boolean;
|
|
32
32
|
open?: boolean;
|
|
33
33
|
onOpenChange?: (open: boolean) => void;
|
|
34
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
34
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
35
35
|
declare function Sidebar({
|
|
36
36
|
side,
|
|
37
37
|
variant,
|
|
@@ -43,44 +43,44 @@ declare function Sidebar({
|
|
|
43
43
|
side?: "left" | "right";
|
|
44
44
|
variant?: "sidebar" | "floating" | "inset";
|
|
45
45
|
collapsible?: "offExamples" | "icon" | "none";
|
|
46
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
46
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
47
47
|
declare function SidebarTrigger({
|
|
48
48
|
className,
|
|
49
49
|
onClick,
|
|
50
50
|
...props
|
|
51
|
-
}: React.ComponentProps<typeof Button>): react_jsx_runtime0.JSX.Element;
|
|
51
|
+
}: React.ComponentProps<typeof Button>): _$react_jsx_runtime0.JSX.Element;
|
|
52
52
|
declare function SidebarRail({
|
|
53
53
|
className,
|
|
54
54
|
...props
|
|
55
|
-
}: React.ComponentProps<"button">): react_jsx_runtime0.JSX.Element;
|
|
55
|
+
}: React.ComponentProps<"button">): _$react_jsx_runtime0.JSX.Element;
|
|
56
56
|
declare function SidebarInset({
|
|
57
57
|
className,
|
|
58
58
|
...props
|
|
59
|
-
}: React.ComponentProps<"main">): react_jsx_runtime0.JSX.Element;
|
|
59
|
+
}: React.ComponentProps<"main">): _$react_jsx_runtime0.JSX.Element;
|
|
60
60
|
declare function SidebarInput({
|
|
61
61
|
className,
|
|
62
62
|
...props
|
|
63
|
-
}: React.ComponentProps<typeof Input>): react_jsx_runtime0.JSX.Element;
|
|
63
|
+
}: React.ComponentProps<typeof Input>): _$react_jsx_runtime0.JSX.Element;
|
|
64
64
|
declare function SidebarHeader({
|
|
65
65
|
className,
|
|
66
66
|
...props
|
|
67
|
-
}: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
67
|
+
}: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
|
|
68
68
|
declare function SidebarFooter({
|
|
69
69
|
className,
|
|
70
70
|
...props
|
|
71
|
-
}: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
71
|
+
}: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
|
|
72
72
|
declare function SidebarSeparator({
|
|
73
73
|
className,
|
|
74
74
|
...props
|
|
75
|
-
}: React.ComponentProps<typeof Separator>): react_jsx_runtime0.JSX.Element;
|
|
75
|
+
}: React.ComponentProps<typeof Separator>): _$react_jsx_runtime0.JSX.Element;
|
|
76
76
|
declare function SidebarContent({
|
|
77
77
|
className,
|
|
78
78
|
...props
|
|
79
|
-
}: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
79
|
+
}: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
|
|
80
80
|
declare function SidebarGroup({
|
|
81
81
|
className,
|
|
82
82
|
...props
|
|
83
|
-
}: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
83
|
+
}: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
|
|
84
84
|
declare function SidebarGroupLabel({
|
|
85
85
|
className,
|
|
86
86
|
render,
|
|
@@ -94,19 +94,19 @@ declare function SidebarGroupAction({
|
|
|
94
94
|
declare function SidebarGroupContent({
|
|
95
95
|
className,
|
|
96
96
|
...props
|
|
97
|
-
}: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
97
|
+
}: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
|
|
98
98
|
declare function SidebarMenu({
|
|
99
99
|
className,
|
|
100
100
|
...props
|
|
101
|
-
}: React.ComponentProps<"ul">): react_jsx_runtime0.JSX.Element;
|
|
101
|
+
}: React.ComponentProps<"ul">): _$react_jsx_runtime0.JSX.Element;
|
|
102
102
|
declare function SidebarMenuItem({
|
|
103
103
|
className,
|
|
104
104
|
...props
|
|
105
|
-
}: React.ComponentProps<"li">): react_jsx_runtime0.JSX.Element;
|
|
105
|
+
}: React.ComponentProps<"li">): _$react_jsx_runtime0.JSX.Element;
|
|
106
106
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
107
107
|
variant?: "default" | "outline" | null | undefined;
|
|
108
108
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
109
|
-
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
109
|
+
} & _$class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
110
110
|
declare function SidebarMenuButton({
|
|
111
111
|
render,
|
|
112
112
|
isActive,
|
|
@@ -118,7 +118,7 @@ declare function SidebarMenuButton({
|
|
|
118
118
|
}: useRender.ComponentProps<"button"> & React.ComponentProps<"button"> & {
|
|
119
119
|
isActive?: boolean;
|
|
120
120
|
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
121
|
-
} & VariantProps<typeof sidebarMenuButtonVariants>): react_jsx_runtime0.JSX.Element;
|
|
121
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): _$react_jsx_runtime0.JSX.Element;
|
|
122
122
|
declare function SidebarMenuAction({
|
|
123
123
|
className,
|
|
124
124
|
render,
|
|
@@ -130,22 +130,22 @@ declare function SidebarMenuAction({
|
|
|
130
130
|
declare function SidebarMenuBadge({
|
|
131
131
|
className,
|
|
132
132
|
...props
|
|
133
|
-
}: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
133
|
+
}: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
|
|
134
134
|
declare function SidebarMenuSkeleton({
|
|
135
135
|
className,
|
|
136
136
|
showIcon,
|
|
137
137
|
...props
|
|
138
138
|
}: React.ComponentProps<"div"> & {
|
|
139
139
|
showIcon?: boolean;
|
|
140
|
-
}): react_jsx_runtime0.JSX.Element;
|
|
140
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
141
141
|
declare function SidebarMenuSub({
|
|
142
142
|
className,
|
|
143
143
|
...props
|
|
144
|
-
}: React.ComponentProps<"ul">): react_jsx_runtime0.JSX.Element;
|
|
144
|
+
}: React.ComponentProps<"ul">): _$react_jsx_runtime0.JSX.Element;
|
|
145
145
|
declare function SidebarMenuSubItem({
|
|
146
146
|
className,
|
|
147
147
|
...props
|
|
148
|
-
}: React.ComponentProps<"li">): react_jsx_runtime0.JSX.Element;
|
|
148
|
+
}: React.ComponentProps<"li">): _$react_jsx_runtime0.JSX.Element;
|
|
149
149
|
declare function SidebarMenuSubButton({
|
|
150
150
|
render,
|
|
151
151
|
size,
|
package/dist/ui/sidebar.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { cn } from "../lib/utils.mjs";
|
|
2
2
|
import { Button } from "./button.mjs";
|
|
3
|
-
import { useIsMobile } from "../hooks/use-mobile.mjs";
|
|
4
3
|
import { Input } from "./input.mjs";
|
|
5
4
|
import { Separator } from "./separator.mjs";
|
|
6
5
|
import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from "./sheet.mjs";
|
|
6
|
+
import { useIsMobile } from "../hooks/use-mobile.mjs";
|
|
7
7
|
import { Skeleton } from "./skeleton.mjs";
|
|
8
8
|
import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip.mjs";
|
|
9
9
|
import * as React from "react";
|
package/dist/ui/skeleton.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/ui/skeleton.d.ts
|
|
4
4
|
declare function Skeleton({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<"div">): react_jsx_runtime0.JSX.Element;
|
|
7
|
+
}: React.ComponentProps<"div">): _$react_jsx_runtime0.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Skeleton };
|
package/dist/ui/table.d.mts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
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/table.d.ts
|
|
5
5
|
declare function Table({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<"table">): react_jsx_runtime0.JSX.Element;
|
|
8
|
+
}: React.ComponentProps<"table">): _$react_jsx_runtime0.JSX.Element;
|
|
9
9
|
declare function TableHeader({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<"thead">): react_jsx_runtime0.JSX.Element;
|
|
12
|
+
}: React.ComponentProps<"thead">): _$react_jsx_runtime0.JSX.Element;
|
|
13
13
|
declare function TableBody({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<"tbody">): react_jsx_runtime0.JSX.Element;
|
|
16
|
+
}: React.ComponentProps<"tbody">): _$react_jsx_runtime0.JSX.Element;
|
|
17
17
|
declare function TableFooter({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React.ComponentProps<"tfoot">): react_jsx_runtime0.JSX.Element;
|
|
20
|
+
}: React.ComponentProps<"tfoot">): _$react_jsx_runtime0.JSX.Element;
|
|
21
21
|
declare function TableRow({
|
|
22
22
|
className,
|
|
23
23
|
...props
|
|
24
|
-
}: React.ComponentProps<"tr">): react_jsx_runtime0.JSX.Element;
|
|
24
|
+
}: React.ComponentProps<"tr">): _$react_jsx_runtime0.JSX.Element;
|
|
25
25
|
declare function TableHead({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<"th">): react_jsx_runtime0.JSX.Element;
|
|
28
|
+
}: React.ComponentProps<"th">): _$react_jsx_runtime0.JSX.Element;
|
|
29
29
|
declare function TableCell({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React.ComponentProps<"td">): react_jsx_runtime0.JSX.Element;
|
|
32
|
+
}: React.ComponentProps<"td">): _$react_jsx_runtime0.JSX.Element;
|
|
33
33
|
declare function TableCaption({
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<"caption">): react_jsx_runtime0.JSX.Element;
|
|
36
|
+
}: React.ComponentProps<"caption">): _$react_jsx_runtime0.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
package/dist/ui/textarea.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/textarea.d.ts
|
|
5
5
|
declare function Textarea({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<"textarea">): react_jsx_runtime0.JSX.Element;
|
|
8
|
+
}: React.ComponentProps<"textarea">): _$react_jsx_runtime0.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Textarea };
|
package/dist/ui/tooltip.d.mts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
-
import { Tooltip
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import { Tooltip } from "@base-ui/react/tooltip";
|
|
3
3
|
|
|
4
4
|
//#region src/ui/tooltip.d.ts
|
|
5
5
|
declare function TooltipProvider({
|
|
6
6
|
delay,
|
|
7
7
|
...props
|
|
8
|
-
}: Tooltip
|
|
9
|
-
declare function Tooltip({
|
|
8
|
+
}: Tooltip.Provider.Props): _$react_jsx_runtime0.JSX.Element;
|
|
9
|
+
declare function Tooltip$1({
|
|
10
10
|
...props
|
|
11
|
-
}: Tooltip
|
|
11
|
+
}: Tooltip.Root.Props): _$react_jsx_runtime0.JSX.Element;
|
|
12
12
|
declare function TooltipTrigger({
|
|
13
13
|
...props
|
|
14
|
-
}: Tooltip
|
|
14
|
+
}: Tooltip.Trigger.Props): _$react_jsx_runtime0.JSX.Element;
|
|
15
15
|
declare function TooltipContent({
|
|
16
16
|
className,
|
|
17
17
|
side,
|
|
@@ -20,6 +20,6 @@ declare function TooltipContent({
|
|
|
20
20
|
alignOffset,
|
|
21
21
|
children,
|
|
22
22
|
...props
|
|
23
|
-
}: Tooltip
|
|
23
|
+
}: Tooltip.Popup.Props & Pick<Tooltip.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): _$react_jsx_runtime0.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
|
-
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
25
|
+
export { Tooltip$1 as Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|