@locusgraph/components 0.1.1 → 0.2.1

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.
Files changed (116) hide show
  1. package/dist/action/button-group.js +148 -17
  2. package/dist/action/button.js +91 -27
  3. package/dist/action/toggle-group.js +176 -12
  4. package/dist/action/toggle.js +71 -18
  5. package/dist/display/avatar.js +118 -7
  6. package/dist/display/badge.d.ts +1 -1
  7. package/dist/display/badge.js +74 -17
  8. package/dist/display/chart/chart-container.js +205 -45
  9. package/dist/display/chart/chart-legend.js +79 -14
  10. package/dist/display/chart/chart-tooltip.js +211 -40
  11. package/dist/display/chat/attachment/attachment-parts.js +222 -13
  12. package/dist/display/chat/attachment/attachment.js +210 -28
  13. package/dist/display/chat/bubble.js +225 -37
  14. package/dist/display/chat/marker.js +143 -15
  15. package/dist/display/chat/message-scroller.js +277 -15
  16. package/dist/display/chat/message.js +238 -13
  17. package/dist/display/content/item.js +448 -47
  18. package/dist/display/content/kbd.js +78 -5
  19. package/dist/display/media/aspect-ratio.js +27 -3
  20. package/dist/display/media/carousel-controls.js +163 -12
  21. package/dist/display/media/carousel.js +325 -65
  22. package/dist/display/rule-grid/rule-grid.d.ts +3 -1
  23. package/dist/display/rule-grid/rule-grid.js +311 -25
  24. package/dist/display/separator.js +56 -3
  25. package/dist/display/skeletons/layouts/skeleton-rule-grid.d.ts +8 -0
  26. package/dist/display/skeletons/layouts/skeleton-rule-grid.js +83 -0
  27. package/dist/display/skeletons/layouts/skeleton-table.d.ts +8 -0
  28. package/dist/display/skeletons/layouts/skeleton-table.js +174 -0
  29. package/dist/display/skeletons/shapes/skeleton-avatar.d.ts +10 -0
  30. package/dist/display/skeletons/shapes/skeleton-avatar.js +102 -0
  31. package/dist/display/skeletons/shapes/skeleton-button.d.ts +10 -0
  32. package/dist/display/skeletons/shapes/skeleton-button.js +102 -0
  33. package/dist/display/skeletons/shapes/skeleton-text.d.ts +7 -0
  34. package/dist/display/skeletons/shapes/skeleton-text.js +84 -0
  35. package/dist/display/skeletons/skeleton-parts.d.ts +11 -0
  36. package/dist/display/skeletons/skeleton-parts.js +68 -0
  37. package/dist/display/status/alert.d.ts +1 -1
  38. package/dist/display/status/alert.js +137 -17
  39. package/dist/display/status/empty.js +250 -22
  40. package/dist/display/status/progress.d.ts +5 -1
  41. package/dist/display/status/progress.js +120 -3
  42. package/dist/display/status/skeleton.js +40 -3
  43. package/dist/display/status/spinner.js +42 -4
  44. package/dist/display/table.js +310 -17
  45. package/dist/feedback/toaster.d.ts +1 -1
  46. package/dist/feedback/toaster.js +100 -25
  47. package/dist/form/advanced/calendar-day-button.js +89 -12
  48. package/dist/form/advanced/calendar.js +349 -56
  49. package/dist/form/advanced/combobox/combobox-chips.js +152 -9
  50. package/dist/form/advanced/combobox/combobox-items.js +240 -15
  51. package/dist/form/advanced/combobox/combobox.js +387 -14
  52. package/dist/form/advanced/input-otp.js +202 -12
  53. package/dist/form/choice/checkbox.js +59 -4
  54. package/dist/form/choice/radio-group.js +95 -6
  55. package/dist/form/choice/select.js +479 -25
  56. package/dist/form/choice/slider.js +118 -4
  57. package/dist/form/choice/switch.js +53 -3
  58. package/dist/form/field/field-error.js +117 -14
  59. package/dist/form/field/field-separator.js +70 -3
  60. package/dist/form/field/field-set.js +85 -5
  61. package/dist/form/field/field-text.js +116 -7
  62. package/dist/form/field/field.js +138 -26
  63. package/dist/form/hook-form/form.js +338 -40
  64. package/dist/form/input-group.js +297 -47
  65. package/dist/form/input.js +47 -3
  66. package/dist/form/label.js +42 -3
  67. package/dist/form/native-select.js +148 -8
  68. package/dist/form/textarea.js +41 -3
  69. package/dist/index.d.ts +6 -0
  70. package/dist/index.js +6 -0
  71. package/dist/layout/accordion.js +166 -9
  72. package/dist/layout/collapsible.js +75 -7
  73. package/dist/layout/resizable.js +123 -8
  74. package/dist/layout/scroll/direction.js +25 -3
  75. package/dist/layout/scroll/scroll-area.d.ts +1 -1
  76. package/dist/layout/scroll/scroll-area.js +138 -5
  77. package/dist/layout/sidebar/sidebar-context.js +184 -51
  78. package/dist/layout/sidebar/sidebar-menu-sub.js +219 -14
  79. package/dist/layout/sidebar/sidebar-menu.js +319 -38
  80. package/dist/layout/sidebar/sidebar-sections.js +369 -22
  81. package/dist/layout/sidebar/sidebar.js +385 -29
  82. package/dist/layout/tabs.js +183 -18
  83. package/dist/layout/use-mobile.js +23 -10
  84. package/dist/navigation/breadcrumb.js +302 -18
  85. package/dist/navigation/menubar/menubar-items.js +323 -17
  86. package/dist/navigation/menubar/menubar-sub.js +126 -8
  87. package/dist/navigation/menubar/menubar.js +213 -13
  88. package/dist/navigation/navigation-menu.js +367 -19
  89. package/dist/navigation/pagination.js +329 -20
  90. package/dist/overlay/alert-dialog.js +485 -26
  91. package/dist/overlay/context-menu/context-menu-items.js +323 -17
  92. package/dist/overlay/context-menu/context-menu-sub.js +126 -8
  93. package/dist/overlay/context-menu/context-menu.js +140 -11
  94. package/dist/overlay/dialog.js +406 -25
  95. package/dist/overlay/floating/command.js +424 -21
  96. package/dist/overlay/floating/drawer.js +354 -22
  97. package/dist/overlay/floating/hover-card.js +107 -7
  98. package/dist/overlay/menu/dropdown-menu-choice.js +150 -8
  99. package/dist/overlay/menu/dropdown-menu-item.js +174 -9
  100. package/dist/overlay/menu/dropdown-menu-sub.js +125 -8
  101. package/dist/overlay/menu/dropdown-menu.js +147 -12
  102. package/dist/overlay/popover.js +106 -7
  103. package/dist/overlay/sheet.js +380 -27
  104. package/dist/overlay/tooltip.js +145 -9
  105. package/dist/shell/app-header.js +81 -5
  106. package/dist/shell/app-shell.js +58 -3
  107. package/dist/shell/breadcrumbs.js +102 -12
  108. package/dist/shell/docs/docs-header.js +211 -11
  109. package/dist/shell/docs/docs-shell.js +100 -3
  110. package/dist/shell/docs/docs-sidebar.js +88 -7
  111. package/dist/shell/docs/on-this-page.js +78 -7
  112. package/dist/shell/docs/use-active-section.js +88 -42
  113. package/dist/shell/navigation/app-sidebar.js +188 -6
  114. package/dist/shell/navigation/nav-group.js +161 -10
  115. package/dist/shell/theme-toggle.js +52 -5
  116. package/package.json +5 -5
package/dist/index.d.ts CHANGED
@@ -21,6 +21,12 @@ export * from "./display/media/carousel.js";
21
21
  export * from "./display/media/carousel-controls.js";
22
22
  export * from "./display/rule-grid/rule-grid.js";
23
23
  export * from "./display/separator.js";
24
+ export * from "./display/skeletons/layouts/skeleton-rule-grid.js";
25
+ export * from "./display/skeletons/layouts/skeleton-table.js";
26
+ export * from "./display/skeletons/shapes/skeleton-avatar.js";
27
+ export * from "./display/skeletons/shapes/skeleton-button.js";
28
+ export * from "./display/skeletons/shapes/skeleton-text.js";
29
+ export * from "./display/skeletons/skeleton-parts.js";
24
30
  export * from "./display/status/alert.js";
25
31
  export * from "./display/status/empty.js";
26
32
  export * from "./display/status/progress.js";
package/dist/index.js CHANGED
@@ -21,6 +21,12 @@ export * from "./display/media/carousel.js";
21
21
  export * from "./display/media/carousel-controls.js";
22
22
  export * from "./display/rule-grid/rule-grid.js";
23
23
  export * from "./display/separator.js";
24
+ export * from "./display/skeletons/layouts/skeleton-rule-grid.js";
25
+ export * from "./display/skeletons/layouts/skeleton-table.js";
26
+ export * from "./display/skeletons/shapes/skeleton-avatar.js";
27
+ export * from "./display/skeletons/shapes/skeleton-button.js";
28
+ export * from "./display/skeletons/shapes/skeleton-text.js";
29
+ export * from "./display/skeletons/skeleton-parts.js";
24
30
  export * from "./display/status/alert.js";
25
31
  export * from "./display/status/empty.js";
26
32
  export * from "./display/status/progress.js";
@@ -1,18 +1,175 @@
1
1
  "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+
3
+ import { c as _c } from "react/compiler-runtime";
4
+ import { ChevronDown as ChevronDownIcon } from "@carbon/icons-react";
3
5
  import { cn } from "cn";
4
- import { ChevronDownIcon } from "lucide-react";
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
- return _jsx(AccordionPrimitive.Root, { "data-slot": "accordion", ...props });
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({ className, ...props }) {
10
- return (_jsx(AccordionPrimitive.Item, { "data-slot": "accordion-item", className: cn("border-b last:border-b-0", className), ...props }));
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({ className, children, ...props }) {
13
- return (_jsx(AccordionPrimitive.Header, { className: "flex", children: _jsxs(AccordionPrimitive.Trigger, { "data-slot": "accordion-trigger", className: 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), ...props, children: [children, _jsx(ChevronDownIcon, { className: "pointer-events-none size-4 shrink-0 translate-y-0.5 text-muted-foreground transition-transform duration-200" })] }) }));
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({ className, children, ...props }) {
16
- return (_jsx(AccordionPrimitive.Content, { "data-slot": "accordion-content", className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down", ...props, children: _jsx("div", { className: cn("pt-0 pb-4", className), children: children }) }));
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
- import { jsx as _jsx } from "react/jsx-runtime";
2
+
3
+ import { c as _c } from "react/compiler-runtime";
3
4
  import * as CollapsiblePrimitive from "radix-ui/collapsible";
4
- function Collapsible({ ...props }) {
5
- return _jsx(CollapsiblePrimitive.Root, { "data-slot": "collapsible", ...props });
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({ ...props }) {
8
- return _jsx(CollapsiblePrimitive.CollapsibleTrigger, { "data-slot": "collapsible-trigger", ...props });
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({ ...props }) {
11
- return _jsx(CollapsiblePrimitive.CollapsibleContent, { "data-slot": "collapsible-content", ...props });
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 };
@@ -1,15 +1,130 @@
1
1
  "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
2
+
3
+ import { c as _c } from "react/compiler-runtime";
4
+ import { Draggable as GripVerticalIcon } from "@carbon/icons-react";
3
5
  import { cn } from "cn";
4
- import { GripVerticalIcon } from "lucide-react";
5
6
  import * as ResizablePrimitive from "react-resizable-panels";
6
- function ResizablePanelGroup({ className, ...props }) {
7
- return (_jsx(ResizablePrimitive.Group, { "data-slot": "resizable-panel-group", className: cn("flex h-full w-full aria-[orientation=vertical]:flex-col", className), ...props }));
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({ ...props }) {
10
- return _jsx(ResizablePrimitive.Panel, { "data-slot": "resizable-panel", ...props });
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({ withHandle, className, ...props }) {
13
- return (_jsx(ResizablePrimitive.Separator, { "data-slot": "resizable-handle", className: 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), ...props, children: withHandle && (_jsx("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-xs border bg-border", children: _jsx(GripVerticalIcon, { className: "size-2.5" }) })) }));
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
- import { jsx as _jsx } from "react/jsx-runtime";
2
+
3
+ import { c as _c } from "react/compiler-runtime";
3
4
  import * as Direction from "radix-ui/direction";
4
- function DirectionProvider({ dir, direction, children, }) {
5
- return (_jsx(Direction.DirectionProvider, { dir: direction ?? dir, children: children }));
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,5 +1,5 @@
1
1
  import * as ScrollAreaPrimitive from "radix-ui/scroll-area";
2
2
  import * as React from "react";
3
- declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): React.JSX.Element;
3
+ declare function ScrollArea({ className, children, type, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): React.JSX.Element;
4
4
  declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): React.JSX.Element;
5
5
  export { ScrollArea, ScrollBar };
@@ -1,11 +1,144 @@
1
1
  "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
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
- function ScrollArea({ className, children, ...props }) {
6
- return (_jsxs(ScrollAreaPrimitive.Root, { "data-slot": "scroll-area", className: cn("relative", className), ...props, children: [_jsx(ScrollAreaPrimitive.Viewport, { "data-slot": "scroll-area-viewport", 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", children: children }), _jsx(ScrollBar, {}), _jsx(ScrollAreaPrimitive.Corner, {})] }));
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({ className, orientation = "vertical", ...props }) {
9
- return (_jsx(ScrollAreaPrimitive.ScrollAreaScrollbar, { "data-slot": "scroll-area-scrollbar", orientation: orientation, className: cn("flex touch-none p-px transition-colors select-none", orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent", orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent", className), ...props, children: _jsx(ScrollAreaPrimitive.ScrollAreaThumb, { "data-slot": "scroll-area-thumb", className: "relative flex-1 rounded-full bg-border" }) }));
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 };