@locusgraph/components 0.2.0 → 0.2.2
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/action/button-group.js +45 -17
- package/dist/action/button.js +44 -27
- package/dist/action/toggle-group.js +176 -12
- package/dist/action/toggle.js +70 -17
- package/dist/display/avatar.js +118 -7
- package/dist/display/badge.js +33 -20
- package/dist/display/chart/chart-container.js +205 -45
- package/dist/display/chart/chart-legend.js +79 -14
- package/dist/display/chart/chart-tooltip.js +211 -40
- package/dist/display/chat/attachment/attachment-parts.js +56 -13
- package/dist/display/chat/attachment/attachment.js +70 -28
- package/dist/display/chat/bubble.js +80 -37
- package/dist/display/chat/marker.js +44 -15
- package/dist/display/chat/message-scroller.js +276 -14
- package/dist/display/chat/message.js +58 -13
- package/dist/display/content/item.js +134 -47
- package/dist/display/content/kbd.js +19 -5
- package/dist/display/media/aspect-ratio.js +27 -3
- package/dist/display/media/carousel-controls.js +162 -11
- package/dist/display/media/carousel.js +325 -65
- package/dist/display/rule-grid/rule-grid.js +86 -29
- package/dist/display/separator.js +56 -3
- package/dist/display/skeletons/layouts/skeleton-rule-grid.js +30 -6
- package/dist/display/skeletons/layouts/skeleton-table.js +44 -6
- package/dist/display/skeletons/shapes/skeleton-avatar.js +31 -13
- package/dist/display/skeletons/shapes/skeleton-button.js +31 -13
- package/dist/display/skeletons/shapes/skeleton-text.js +25 -7
- package/dist/display/skeletons/skeleton-parts.js +22 -6
- package/dist/display/status/alert.js +44 -18
- package/dist/display/status/empty.js +69 -22
- package/dist/display/status/progress.js +116 -16
- package/dist/display/status/skeleton.js +10 -3
- package/dist/display/status/spinner.js +11 -3
- package/dist/display/table.js +77 -17
- package/dist/feedback/toaster.js +98 -21
- package/dist/form/advanced/calendar-day-button.js +89 -12
- package/dist/form/advanced/calendar.js +349 -56
- package/dist/form/advanced/combobox/combobox-chips.js +151 -8
- package/dist/form/advanced/combobox/combobox-items.js +239 -14
- package/dist/form/advanced/combobox/combobox.js +386 -13
- package/dist/form/advanced/input-otp.js +201 -11
- package/dist/form/choice/checkbox.js +58 -3
- package/dist/form/choice/radio-group.js +94 -5
- package/dist/form/choice/select.js +479 -25
- package/dist/form/choice/slider.js +118 -4
- package/dist/form/choice/switch.js +53 -3
- package/dist/form/field/field-error.js +34 -14
- package/dist/form/field/field-separator.js +19 -3
- package/dist/form/field/field-set.js +21 -5
- package/dist/form/field/field-text.js +28 -7
- package/dist/form/field/field.js +43 -25
- package/dist/form/hook-form/form.js +338 -40
- package/dist/form/input-group.js +297 -47
- package/dist/form/input.js +13 -3
- package/dist/form/label.js +42 -3
- package/dist/form/native-select.js +39 -7
- package/dist/form/textarea.js +11 -3
- package/dist/layout/accordion.js +165 -8
- package/dist/layout/collapsible.js +75 -7
- package/dist/layout/resizable.js +122 -7
- package/dist/layout/scroll/direction.js +25 -3
- package/dist/layout/scroll/scroll-area.js +138 -5
- package/dist/layout/sidebar/sidebar-context.js +184 -51
- package/dist/layout/sidebar/sidebar-menu-sub.js +219 -14
- package/dist/layout/sidebar/sidebar-menu.js +319 -38
- package/dist/layout/sidebar/sidebar-sections.js +369 -22
- package/dist/layout/sidebar/sidebar.js +384 -28
- package/dist/layout/tabs.js +183 -18
- package/dist/layout/use-mobile.js +11 -11
- package/dist/navigation/breadcrumb.js +82 -17
- package/dist/navigation/menubar/menubar-items.js +322 -16
- package/dist/navigation/menubar/menubar-sub.js +125 -7
- package/dist/navigation/menubar/menubar.js +213 -13
- package/dist/navigation/navigation-menu.js +90 -18
- package/dist/navigation/pagination.js +91 -20
- package/dist/overlay/alert-dialog.js +485 -26
- package/dist/overlay/context-menu/context-menu-items.js +322 -16
- package/dist/overlay/context-menu/context-menu-sub.js +125 -7
- package/dist/overlay/context-menu/context-menu.js +140 -11
- package/dist/overlay/dialog.js +405 -24
- package/dist/overlay/floating/command.js +423 -20
- package/dist/overlay/floating/drawer.js +354 -22
- package/dist/overlay/floating/hover-card.js +107 -7
- package/dist/overlay/menu/dropdown-menu-choice.js +149 -7
- package/dist/overlay/menu/dropdown-menu-item.js +174 -9
- package/dist/overlay/menu/dropdown-menu-sub.js +124 -7
- package/dist/overlay/menu/dropdown-menu.js +147 -12
- package/dist/overlay/popover.js +106 -7
- package/dist/overlay/sheet.js +379 -26
- package/dist/overlay/tooltip.js +145 -9
- package/dist/shell/app-header.js +29 -5
- package/dist/shell/app-shell.js +19 -3
- package/dist/shell/breadcrumbs.js +46 -14
- package/dist/shell/docs/docs-header.js +210 -10
- package/dist/shell/docs/docs-shell.js +36 -3
- package/dist/shell/docs/docs-sidebar.js +41 -7
- package/dist/shell/docs/on-this-page.js +78 -7
- package/dist/shell/docs/use-active-section.js +44 -42
- package/dist/shell/navigation/app-sidebar.js +66 -6
- package/dist/shell/navigation/nav-group.js +53 -11
- package/dist/shell/theme-toggle.js +51 -4
- package/package.json +2 -2
package/dist/layout/accordion.js
CHANGED
|
@@ -1,18 +1,175 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { ChevronDown as ChevronDownIcon } from "@carbon/icons-react";
|
|
4
5
|
import { cn } from "cn";
|
|
5
6
|
import * as AccordionPrimitive from "radix-ui/accordion";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
8
|
function Accordion(props) {
|
|
7
|
-
|
|
9
|
+
const $ = _c(2);
|
|
10
|
+
let t0;
|
|
11
|
+
if ($[0] !== props) {
|
|
12
|
+
t0 = /*#__PURE__*/_jsx(AccordionPrimitive.Root, {
|
|
13
|
+
"data-slot": "accordion",
|
|
14
|
+
...props
|
|
15
|
+
});
|
|
16
|
+
$[0] = props;
|
|
17
|
+
$[1] = t0;
|
|
18
|
+
} else {
|
|
19
|
+
t0 = $[1];
|
|
20
|
+
}
|
|
21
|
+
return t0;
|
|
8
22
|
}
|
|
9
|
-
function AccordionItem(
|
|
10
|
-
|
|
23
|
+
function AccordionItem(t0) {
|
|
24
|
+
const $ = _c(8);
|
|
25
|
+
let className;
|
|
26
|
+
let props;
|
|
27
|
+
if ($[0] !== t0) {
|
|
28
|
+
({
|
|
29
|
+
className,
|
|
30
|
+
...props
|
|
31
|
+
} = t0);
|
|
32
|
+
$[0] = t0;
|
|
33
|
+
$[1] = className;
|
|
34
|
+
$[2] = props;
|
|
35
|
+
} else {
|
|
36
|
+
className = $[1];
|
|
37
|
+
props = $[2];
|
|
38
|
+
}
|
|
39
|
+
let t1;
|
|
40
|
+
if ($[3] !== className) {
|
|
41
|
+
t1 = cn("border-b last:border-b-0", className);
|
|
42
|
+
$[3] = className;
|
|
43
|
+
$[4] = t1;
|
|
44
|
+
} else {
|
|
45
|
+
t1 = $[4];
|
|
46
|
+
}
|
|
47
|
+
let t2;
|
|
48
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
49
|
+
t2 = /*#__PURE__*/_jsx(AccordionPrimitive.Item, {
|
|
50
|
+
"data-slot": "accordion-item",
|
|
51
|
+
className: t1,
|
|
52
|
+
...props
|
|
53
|
+
});
|
|
54
|
+
$[5] = props;
|
|
55
|
+
$[6] = t1;
|
|
56
|
+
$[7] = t2;
|
|
57
|
+
} else {
|
|
58
|
+
t2 = $[7];
|
|
59
|
+
}
|
|
60
|
+
return t2;
|
|
11
61
|
}
|
|
12
|
-
function AccordionTrigger(
|
|
13
|
-
|
|
62
|
+
function AccordionTrigger(t0) {
|
|
63
|
+
const $ = _c(11);
|
|
64
|
+
let children;
|
|
65
|
+
let className;
|
|
66
|
+
let props;
|
|
67
|
+
if ($[0] !== t0) {
|
|
68
|
+
({
|
|
69
|
+
className,
|
|
70
|
+
children,
|
|
71
|
+
...props
|
|
72
|
+
} = t0);
|
|
73
|
+
$[0] = t0;
|
|
74
|
+
$[1] = children;
|
|
75
|
+
$[2] = className;
|
|
76
|
+
$[3] = props;
|
|
77
|
+
} else {
|
|
78
|
+
children = $[1];
|
|
79
|
+
className = $[2];
|
|
80
|
+
props = $[3];
|
|
81
|
+
}
|
|
82
|
+
let t1;
|
|
83
|
+
if ($[4] !== className) {
|
|
84
|
+
t1 = cn("flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180", className);
|
|
85
|
+
$[4] = className;
|
|
86
|
+
$[5] = t1;
|
|
87
|
+
} else {
|
|
88
|
+
t1 = $[5];
|
|
89
|
+
}
|
|
90
|
+
let t2;
|
|
91
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
92
|
+
t2 = /*#__PURE__*/_jsx(ChevronDownIcon, {
|
|
93
|
+
className: "pointer-events-none size-4 shrink-0 translate-y-0.5 text-muted-foreground transition-transform duration-200"
|
|
94
|
+
});
|
|
95
|
+
$[6] = t2;
|
|
96
|
+
} else {
|
|
97
|
+
t2 = $[6];
|
|
98
|
+
}
|
|
99
|
+
let t3;
|
|
100
|
+
if ($[7] !== children || $[8] !== props || $[9] !== t1) {
|
|
101
|
+
t3 = /*#__PURE__*/_jsx(AccordionPrimitive.Header, {
|
|
102
|
+
className: "flex font-sans tracking-normal",
|
|
103
|
+
children: /*#__PURE__*/_jsxs(AccordionPrimitive.Trigger, {
|
|
104
|
+
"data-slot": "accordion-trigger",
|
|
105
|
+
className: t1,
|
|
106
|
+
...props,
|
|
107
|
+
children: [children, t2]
|
|
108
|
+
})
|
|
109
|
+
});
|
|
110
|
+
$[7] = children;
|
|
111
|
+
$[8] = props;
|
|
112
|
+
$[9] = t1;
|
|
113
|
+
$[10] = t3;
|
|
114
|
+
} else {
|
|
115
|
+
t3 = $[10];
|
|
116
|
+
}
|
|
117
|
+
return t3;
|
|
14
118
|
}
|
|
15
|
-
function AccordionContent(
|
|
16
|
-
|
|
119
|
+
function AccordionContent(t0) {
|
|
120
|
+
const $ = _c(12);
|
|
121
|
+
let children;
|
|
122
|
+
let className;
|
|
123
|
+
let props;
|
|
124
|
+
if ($[0] !== t0) {
|
|
125
|
+
({
|
|
126
|
+
className,
|
|
127
|
+
children,
|
|
128
|
+
...props
|
|
129
|
+
} = t0);
|
|
130
|
+
$[0] = t0;
|
|
131
|
+
$[1] = children;
|
|
132
|
+
$[2] = className;
|
|
133
|
+
$[3] = props;
|
|
134
|
+
} else {
|
|
135
|
+
children = $[1];
|
|
136
|
+
className = $[2];
|
|
137
|
+
props = $[3];
|
|
138
|
+
}
|
|
139
|
+
let t1;
|
|
140
|
+
if ($[4] !== className) {
|
|
141
|
+
t1 = cn("pt-0 pb-4", className);
|
|
142
|
+
$[4] = className;
|
|
143
|
+
$[5] = t1;
|
|
144
|
+
} else {
|
|
145
|
+
t1 = $[5];
|
|
146
|
+
}
|
|
147
|
+
let t2;
|
|
148
|
+
if ($[6] !== children || $[7] !== t1) {
|
|
149
|
+
t2 = /*#__PURE__*/_jsx("div", {
|
|
150
|
+
className: t1,
|
|
151
|
+
children: children
|
|
152
|
+
});
|
|
153
|
+
$[6] = children;
|
|
154
|
+
$[7] = t1;
|
|
155
|
+
$[8] = t2;
|
|
156
|
+
} else {
|
|
157
|
+
t2 = $[8];
|
|
158
|
+
}
|
|
159
|
+
let t3;
|
|
160
|
+
if ($[9] !== props || $[10] !== t2) {
|
|
161
|
+
t3 = /*#__PURE__*/_jsx(AccordionPrimitive.Content, {
|
|
162
|
+
"data-slot": "accordion-content",
|
|
163
|
+
className: "overflow-hidden text-sm text-muted-foreground data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
164
|
+
...props,
|
|
165
|
+
children: t2
|
|
166
|
+
});
|
|
167
|
+
$[9] = props;
|
|
168
|
+
$[10] = t2;
|
|
169
|
+
$[11] = t3;
|
|
170
|
+
} else {
|
|
171
|
+
t3 = $[11];
|
|
172
|
+
}
|
|
173
|
+
return t3;
|
|
17
174
|
}
|
|
18
175
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
@@ -1,13 +1,81 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import * as CollapsiblePrimitive from "radix-ui/collapsible";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
function Collapsible(t0) {
|
|
7
|
+
const $ = _c(4);
|
|
8
|
+
let props;
|
|
9
|
+
if ($[0] !== t0) {
|
|
10
|
+
({
|
|
11
|
+
...props
|
|
12
|
+
} = t0);
|
|
13
|
+
$[0] = t0;
|
|
14
|
+
$[1] = props;
|
|
15
|
+
} else {
|
|
16
|
+
props = $[1];
|
|
17
|
+
}
|
|
18
|
+
let t1;
|
|
19
|
+
if ($[2] !== props) {
|
|
20
|
+
t1 = /*#__PURE__*/_jsx(CollapsiblePrimitive.Root, {
|
|
21
|
+
"data-slot": "collapsible",
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
$[2] = props;
|
|
25
|
+
$[3] = t1;
|
|
26
|
+
} else {
|
|
27
|
+
t1 = $[3];
|
|
28
|
+
}
|
|
29
|
+
return t1;
|
|
6
30
|
}
|
|
7
|
-
function CollapsibleTrigger(
|
|
8
|
-
|
|
31
|
+
function CollapsibleTrigger(t0) {
|
|
32
|
+
const $ = _c(4);
|
|
33
|
+
let props;
|
|
34
|
+
if ($[0] !== t0) {
|
|
35
|
+
({
|
|
36
|
+
...props
|
|
37
|
+
} = t0);
|
|
38
|
+
$[0] = t0;
|
|
39
|
+
$[1] = props;
|
|
40
|
+
} else {
|
|
41
|
+
props = $[1];
|
|
42
|
+
}
|
|
43
|
+
let t1;
|
|
44
|
+
if ($[2] !== props) {
|
|
45
|
+
t1 = /*#__PURE__*/_jsx(CollapsiblePrimitive.CollapsibleTrigger, {
|
|
46
|
+
"data-slot": "collapsible-trigger",
|
|
47
|
+
...props
|
|
48
|
+
});
|
|
49
|
+
$[2] = props;
|
|
50
|
+
$[3] = t1;
|
|
51
|
+
} else {
|
|
52
|
+
t1 = $[3];
|
|
53
|
+
}
|
|
54
|
+
return t1;
|
|
9
55
|
}
|
|
10
|
-
function CollapsibleContent(
|
|
11
|
-
|
|
56
|
+
function CollapsibleContent(t0) {
|
|
57
|
+
const $ = _c(4);
|
|
58
|
+
let props;
|
|
59
|
+
if ($[0] !== t0) {
|
|
60
|
+
({
|
|
61
|
+
...props
|
|
62
|
+
} = t0);
|
|
63
|
+
$[0] = t0;
|
|
64
|
+
$[1] = props;
|
|
65
|
+
} else {
|
|
66
|
+
props = $[1];
|
|
67
|
+
}
|
|
68
|
+
let t1;
|
|
69
|
+
if ($[2] !== props) {
|
|
70
|
+
t1 = /*#__PURE__*/_jsx(CollapsiblePrimitive.CollapsibleContent, {
|
|
71
|
+
"data-slot": "collapsible-content",
|
|
72
|
+
...props
|
|
73
|
+
});
|
|
74
|
+
$[2] = props;
|
|
75
|
+
$[3] = t1;
|
|
76
|
+
} else {
|
|
77
|
+
t1 = $[3];
|
|
78
|
+
}
|
|
79
|
+
return t1;
|
|
12
80
|
}
|
|
13
81
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
package/dist/layout/resizable.js
CHANGED
|
@@ -1,15 +1,130 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { Draggable as GripVerticalIcon } from "@carbon/icons-react";
|
|
4
5
|
import { cn } from "cn";
|
|
5
6
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
function ResizablePanelGroup(t0) {
|
|
9
|
+
const $ = _c(8);
|
|
10
|
+
let className;
|
|
11
|
+
let props;
|
|
12
|
+
if ($[0] !== t0) {
|
|
13
|
+
({
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
} = t0);
|
|
17
|
+
$[0] = t0;
|
|
18
|
+
$[1] = className;
|
|
19
|
+
$[2] = props;
|
|
20
|
+
} else {
|
|
21
|
+
className = $[1];
|
|
22
|
+
props = $[2];
|
|
23
|
+
}
|
|
24
|
+
let t1;
|
|
25
|
+
if ($[3] !== className) {
|
|
26
|
+
t1 = cn("flex h-full w-full aria-[orientation=vertical]:flex-col", className);
|
|
27
|
+
$[3] = className;
|
|
28
|
+
$[4] = t1;
|
|
29
|
+
} else {
|
|
30
|
+
t1 = $[4];
|
|
31
|
+
}
|
|
32
|
+
let t2;
|
|
33
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
34
|
+
t2 = /*#__PURE__*/_jsx(ResizablePrimitive.Group, {
|
|
35
|
+
"data-slot": "resizable-panel-group",
|
|
36
|
+
className: t1,
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
39
|
+
$[5] = props;
|
|
40
|
+
$[6] = t1;
|
|
41
|
+
$[7] = t2;
|
|
42
|
+
} else {
|
|
43
|
+
t2 = $[7];
|
|
44
|
+
}
|
|
45
|
+
return t2;
|
|
8
46
|
}
|
|
9
|
-
function ResizablePanel(
|
|
10
|
-
|
|
47
|
+
function ResizablePanel(t0) {
|
|
48
|
+
const $ = _c(4);
|
|
49
|
+
let props;
|
|
50
|
+
if ($[0] !== t0) {
|
|
51
|
+
({
|
|
52
|
+
...props
|
|
53
|
+
} = t0);
|
|
54
|
+
$[0] = t0;
|
|
55
|
+
$[1] = props;
|
|
56
|
+
} else {
|
|
57
|
+
props = $[1];
|
|
58
|
+
}
|
|
59
|
+
let t1;
|
|
60
|
+
if ($[2] !== props) {
|
|
61
|
+
t1 = /*#__PURE__*/_jsx(ResizablePrimitive.Panel, {
|
|
62
|
+
"data-slot": "resizable-panel",
|
|
63
|
+
...props
|
|
64
|
+
});
|
|
65
|
+
$[2] = props;
|
|
66
|
+
$[3] = t1;
|
|
67
|
+
} else {
|
|
68
|
+
t1 = $[3];
|
|
69
|
+
}
|
|
70
|
+
return t1;
|
|
11
71
|
}
|
|
12
|
-
function ResizableHandle(
|
|
13
|
-
|
|
72
|
+
function ResizableHandle(t0) {
|
|
73
|
+
const $ = _c(12);
|
|
74
|
+
let className;
|
|
75
|
+
let props;
|
|
76
|
+
let withHandle;
|
|
77
|
+
if ($[0] !== t0) {
|
|
78
|
+
({
|
|
79
|
+
withHandle,
|
|
80
|
+
className,
|
|
81
|
+
...props
|
|
82
|
+
} = t0);
|
|
83
|
+
$[0] = t0;
|
|
84
|
+
$[1] = className;
|
|
85
|
+
$[2] = props;
|
|
86
|
+
$[3] = withHandle;
|
|
87
|
+
} else {
|
|
88
|
+
className = $[1];
|
|
89
|
+
props = $[2];
|
|
90
|
+
withHandle = $[3];
|
|
91
|
+
}
|
|
92
|
+
let t1;
|
|
93
|
+
if ($[4] !== className) {
|
|
94
|
+
t1 = cn("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90", className);
|
|
95
|
+
$[4] = className;
|
|
96
|
+
$[5] = t1;
|
|
97
|
+
} else {
|
|
98
|
+
t1 = $[5];
|
|
99
|
+
}
|
|
100
|
+
let t2;
|
|
101
|
+
if ($[6] !== withHandle) {
|
|
102
|
+
t2 = withHandle && /*#__PURE__*/_jsx("div", {
|
|
103
|
+
className: "z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-border",
|
|
104
|
+
children: /*#__PURE__*/_jsx(GripVerticalIcon, {
|
|
105
|
+
className: "size-2.5"
|
|
106
|
+
})
|
|
107
|
+
});
|
|
108
|
+
$[6] = withHandle;
|
|
109
|
+
$[7] = t2;
|
|
110
|
+
} else {
|
|
111
|
+
t2 = $[7];
|
|
112
|
+
}
|
|
113
|
+
let t3;
|
|
114
|
+
if ($[8] !== props || $[9] !== t1 || $[10] !== t2) {
|
|
115
|
+
t3 = /*#__PURE__*/_jsx(ResizablePrimitive.Separator, {
|
|
116
|
+
"data-slot": "resizable-handle",
|
|
117
|
+
className: t1,
|
|
118
|
+
...props,
|
|
119
|
+
children: t2
|
|
120
|
+
});
|
|
121
|
+
$[8] = props;
|
|
122
|
+
$[9] = t1;
|
|
123
|
+
$[10] = t2;
|
|
124
|
+
$[11] = t3;
|
|
125
|
+
} else {
|
|
126
|
+
t3 = $[11];
|
|
127
|
+
}
|
|
128
|
+
return t3;
|
|
14
129
|
}
|
|
15
130
|
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|
|
@@ -1,8 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import * as Direction from "radix-ui/direction";
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
function DirectionProvider(t0) {
|
|
8
|
+
const $ = _c(3);
|
|
9
|
+
const {
|
|
10
|
+
dir,
|
|
11
|
+
direction,
|
|
12
|
+
children
|
|
13
|
+
} = t0;
|
|
14
|
+
const t1 = direction ?? dir;
|
|
15
|
+
let t2;
|
|
16
|
+
if ($[0] !== children || $[1] !== t1) {
|
|
17
|
+
t2 = /*#__PURE__*/_jsx(Direction.DirectionProvider, {
|
|
18
|
+
dir: t1,
|
|
19
|
+
children: children
|
|
20
|
+
});
|
|
21
|
+
$[0] = children;
|
|
22
|
+
$[1] = t1;
|
|
23
|
+
$[2] = t2;
|
|
24
|
+
} else {
|
|
25
|
+
t2 = $[2];
|
|
26
|
+
}
|
|
27
|
+
return t2;
|
|
6
28
|
}
|
|
7
29
|
const useDirection = Direction.useDirection;
|
|
8
30
|
export { DirectionProvider, useDirection };
|
|
@@ -1,11 +1,144 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { cn } from "cn";
|
|
4
5
|
import * as ScrollAreaPrimitive from "radix-ui/scroll-area";
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
import * as React from "react";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
function ScrollArea(t0) {
|
|
9
|
+
const $ = _c(16);
|
|
10
|
+
let children;
|
|
11
|
+
let className;
|
|
12
|
+
let props;
|
|
13
|
+
let t1;
|
|
14
|
+
if ($[0] !== t0) {
|
|
15
|
+
({
|
|
16
|
+
className,
|
|
17
|
+
children,
|
|
18
|
+
type: t1,
|
|
19
|
+
...props
|
|
20
|
+
} = t0);
|
|
21
|
+
$[0] = t0;
|
|
22
|
+
$[1] = children;
|
|
23
|
+
$[2] = className;
|
|
24
|
+
$[3] = props;
|
|
25
|
+
$[4] = t1;
|
|
26
|
+
} else {
|
|
27
|
+
children = $[1];
|
|
28
|
+
className = $[2];
|
|
29
|
+
props = $[3];
|
|
30
|
+
t1 = $[4];
|
|
31
|
+
}
|
|
32
|
+
const type = t1 === undefined ? "auto" : t1;
|
|
33
|
+
let t2;
|
|
34
|
+
if ($[5] !== className) {
|
|
35
|
+
t2 = cn("relative", className);
|
|
36
|
+
$[5] = className;
|
|
37
|
+
$[6] = t2;
|
|
38
|
+
} else {
|
|
39
|
+
t2 = $[6];
|
|
40
|
+
}
|
|
41
|
+
let t3;
|
|
42
|
+
if ($[7] !== children) {
|
|
43
|
+
t3 = /*#__PURE__*/_jsx(ScrollAreaPrimitive.Viewport, {
|
|
44
|
+
"data-slot": "scroll-area-viewport",
|
|
45
|
+
className: "size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 focus-visible:ring-offset-background focus-visible:outline-1",
|
|
46
|
+
children: children
|
|
47
|
+
});
|
|
48
|
+
$[7] = children;
|
|
49
|
+
$[8] = t3;
|
|
50
|
+
} else {
|
|
51
|
+
t3 = $[8];
|
|
52
|
+
}
|
|
53
|
+
let t4;
|
|
54
|
+
let t5;
|
|
55
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
56
|
+
t4 = /*#__PURE__*/_jsx(ScrollBar, {});
|
|
57
|
+
t5 = /*#__PURE__*/_jsx(ScrollAreaPrimitive.Corner, {});
|
|
58
|
+
$[9] = t4;
|
|
59
|
+
$[10] = t5;
|
|
60
|
+
} else {
|
|
61
|
+
t4 = $[9];
|
|
62
|
+
t5 = $[10];
|
|
63
|
+
}
|
|
64
|
+
let t6;
|
|
65
|
+
if ($[11] !== props || $[12] !== t2 || $[13] !== t3 || $[14] !== type) {
|
|
66
|
+
t6 = /*#__PURE__*/_jsxs(ScrollAreaPrimitive.Root, {
|
|
67
|
+
"data-slot": "scroll-area",
|
|
68
|
+
type: type,
|
|
69
|
+
className: t2,
|
|
70
|
+
...props,
|
|
71
|
+
children: [t3, t4, t5]
|
|
72
|
+
});
|
|
73
|
+
$[11] = props;
|
|
74
|
+
$[12] = t2;
|
|
75
|
+
$[13] = t3;
|
|
76
|
+
$[14] = type;
|
|
77
|
+
$[15] = t6;
|
|
78
|
+
} else {
|
|
79
|
+
t6 = $[15];
|
|
80
|
+
}
|
|
81
|
+
return t6;
|
|
7
82
|
}
|
|
8
|
-
function ScrollBar(
|
|
9
|
-
|
|
83
|
+
function ScrollBar(t0) {
|
|
84
|
+
const $ = _c(13);
|
|
85
|
+
let className;
|
|
86
|
+
let props;
|
|
87
|
+
let t1;
|
|
88
|
+
if ($[0] !== t0) {
|
|
89
|
+
({
|
|
90
|
+
className,
|
|
91
|
+
orientation: t1,
|
|
92
|
+
...props
|
|
93
|
+
} = t0);
|
|
94
|
+
$[0] = t0;
|
|
95
|
+
$[1] = className;
|
|
96
|
+
$[2] = props;
|
|
97
|
+
$[3] = t1;
|
|
98
|
+
} else {
|
|
99
|
+
className = $[1];
|
|
100
|
+
props = $[2];
|
|
101
|
+
t1 = $[3];
|
|
102
|
+
}
|
|
103
|
+
const orientation = t1 === undefined ? "vertical" : t1;
|
|
104
|
+
const t2 = orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent";
|
|
105
|
+
const t3 = orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent";
|
|
106
|
+
let t4;
|
|
107
|
+
if ($[4] !== className || $[5] !== t2 || $[6] !== t3) {
|
|
108
|
+
t4 = cn("flex touch-none p-px transition-colors select-none", t2, t3, className);
|
|
109
|
+
$[4] = className;
|
|
110
|
+
$[5] = t2;
|
|
111
|
+
$[6] = t3;
|
|
112
|
+
$[7] = t4;
|
|
113
|
+
} else {
|
|
114
|
+
t4 = $[7];
|
|
115
|
+
}
|
|
116
|
+
let t5;
|
|
117
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
118
|
+
t5 = /*#__PURE__*/_jsx(ScrollAreaPrimitive.ScrollAreaThumb, {
|
|
119
|
+
"data-slot": "scroll-area-thumb",
|
|
120
|
+
className: "relative flex-1 rounded-full bg-foreground/20 hover:bg-foreground/30"
|
|
121
|
+
});
|
|
122
|
+
$[8] = t5;
|
|
123
|
+
} else {
|
|
124
|
+
t5 = $[8];
|
|
125
|
+
}
|
|
126
|
+
let t6;
|
|
127
|
+
if ($[9] !== orientation || $[10] !== props || $[11] !== t4) {
|
|
128
|
+
t6 = /*#__PURE__*/_jsx(ScrollAreaPrimitive.ScrollAreaScrollbar, {
|
|
129
|
+
"data-slot": "scroll-area-scrollbar",
|
|
130
|
+
orientation: orientation,
|
|
131
|
+
className: t4,
|
|
132
|
+
...props,
|
|
133
|
+
children: t5
|
|
134
|
+
});
|
|
135
|
+
$[9] = orientation;
|
|
136
|
+
$[10] = props;
|
|
137
|
+
$[11] = t4;
|
|
138
|
+
$[12] = t6;
|
|
139
|
+
} else {
|
|
140
|
+
t6 = $[12];
|
|
141
|
+
}
|
|
142
|
+
return t6;
|
|
10
143
|
}
|
|
11
144
|
export { ScrollArea, ScrollBar };
|