@pactor-app/ui 1.1.0 → 1.3.0
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 +27 -31
- package/dist/{chunk-BZSRLTQQ.js → chunk-7KC6DMKH.js} +8 -8
- package/dist/chunk-EVGIS2ZE.js +614 -0
- package/dist/{chunk-F3H23KYG.js → chunk-F42SGQNW.js} +31 -93
- package/dist/chunk-L4Z7MNYY.js +1197 -0
- package/dist/{chunk-6B5ZX7L3.js → chunk-P54Y23AP.js} +201 -597
- package/dist/{chunk-GV5R6TUT.js → chunk-TDVG7MZ5.js} +180 -49
- package/dist/{chunk-BVHAP22U.js → chunk-UKA7C3JP.js} +213 -486
- package/dist/chunk-WKJUCGV4.js +78 -0
- package/dist/components/index.cjs +1023 -695
- package/dist/components/index.d.cts +37 -19
- package/dist/components/index.d.ts +37 -19
- package/dist/components/index.js +20 -18
- package/dist/index.cjs +1359 -913
- package/dist/index.d.cts +3 -36
- package/dist/index.d.ts +3 -36
- package/dist/index.js +40 -47
- package/dist/interaction/index.cjs +17 -13
- package/dist/interaction/index.d.cts +13 -16
- package/dist/interaction/index.d.ts +13 -16
- package/dist/interaction/index.js +7 -7
- package/dist/layout/index.cjs +1084 -63
- package/dist/layout/index.d.cts +98 -20
- package/dist/layout/index.d.ts +98 -20
- package/dist/layout/index.js +18 -16
- package/dist/ui/index.cjs +1688 -533
- package/dist/ui/index.d.cts +130 -16
- package/dist/ui/index.d.ts +130 -16
- package/dist/ui/index.js +485 -26
- package/package.json +6 -5
- package/styles.css +936 -107
- package/dist/chunk-6JNCDPGS.js +0 -257
- package/dist/chunk-GL7IO22L.js +0 -225
- package/dist/chunk-RQHJBTEU.js +0 -10
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Button,
|
|
3
|
-
buttonVariants
|
|
4
|
-
} from "./chunk-F3H23KYG.js";
|
|
5
1
|
import {
|
|
6
2
|
Popover,
|
|
7
3
|
PopoverContent,
|
|
8
4
|
PopoverTrigger
|
|
9
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L4Z7MNYY.js";
|
|
10
6
|
import {
|
|
7
|
+
Button,
|
|
8
|
+
buttonVariants,
|
|
11
9
|
cn
|
|
12
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WKJUCGV4.js";
|
|
13
11
|
|
|
14
12
|
// src/ui/alert.tsx
|
|
15
13
|
import { cva } from "class-variance-authority";
|
|
@@ -103,7 +101,7 @@ function AlertDialogOverlay({
|
|
|
103
101
|
{
|
|
104
102
|
"data-slot": "alert-dialog-overlay",
|
|
105
103
|
className: cn(
|
|
106
|
-
"fixed inset-0 z-50 bg-
|
|
104
|
+
"fixed inset-0 z-50 bg-(--overlay-background) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
|
|
107
105
|
className
|
|
108
106
|
),
|
|
109
107
|
...props
|
|
@@ -121,7 +119,7 @@ function AlertDialogContent({
|
|
|
121
119
|
{
|
|
122
120
|
"data-slot": "alert-dialog-content",
|
|
123
121
|
className: cn(
|
|
124
|
-
"fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-border bg-
|
|
122
|
+
"fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-border bg-popover p-6 shadow-lg shadow-(color:--shadow-color) duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 sm:max-w-lg",
|
|
125
123
|
className
|
|
126
124
|
),
|
|
127
125
|
...props
|
|
@@ -424,7 +422,7 @@ function Calendar({
|
|
|
424
422
|
DayPicker,
|
|
425
423
|
{
|
|
426
424
|
showOutsideDays,
|
|
427
|
-
className: cn("bg-
|
|
425
|
+
className: cn("bg-card p-3", className),
|
|
428
426
|
classNames: {
|
|
429
427
|
root: cn("w-fit", defaultClassNames.root),
|
|
430
428
|
months: cn("relative flex flex-col gap-4 md:flex-row", defaultClassNames.months),
|
|
@@ -457,15 +455,15 @@ function Calendar({
|
|
|
457
455
|
week: cn("mt-2 flex w-full", defaultClassNames.week),
|
|
458
456
|
day: cn("h-8 w-8 p-0 text-center text-sm", defaultClassNames.day),
|
|
459
457
|
day_button: cn(
|
|
460
|
-
"size-8 cursor-pointer rounded-md p-0 font-normal hover:bg-
|
|
458
|
+
"size-8 cursor-pointer rounded-md p-0 font-normal hover:bg-(--calendar-day-hover-background) hover:text-(--calendar-day-hover-foreground) aria-selected:opacity-100",
|
|
461
459
|
defaultClassNames.day_button
|
|
462
460
|
),
|
|
463
461
|
selected: cn(
|
|
464
|
-
"[&>button]:bg-
|
|
462
|
+
"[&>button]:bg-(--calendar-selected-background) [&>button]:text-(--calendar-selected-foreground) [&>button]:hover:bg-(--calendar-selected-background)",
|
|
465
463
|
defaultClassNames.selected
|
|
466
464
|
),
|
|
467
465
|
today: cn(
|
|
468
|
-
"[&>button]:bg-
|
|
466
|
+
"[&>button]:bg-(--calendar-today-background) [&>button]:text-(--calendar-today-foreground)",
|
|
469
467
|
defaultClassNames.today
|
|
470
468
|
),
|
|
471
469
|
outside: cn(
|
|
@@ -878,7 +876,7 @@ function CommandItem({
|
|
|
878
876
|
{
|
|
879
877
|
"data-slot": "command-item",
|
|
880
878
|
className: cn(
|
|
881
|
-
"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-
|
|
879
|
+
"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[selected=true]:bg-(--menu-active-background) data-[selected=true]:text-(--menu-active-foreground) [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
882
880
|
className
|
|
883
881
|
),
|
|
884
882
|
...props
|
|
@@ -890,11 +888,11 @@ function CommandItem({
|
|
|
890
888
|
import { ResponsiveContainer } from "recharts";
|
|
891
889
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
892
890
|
var CHART_TOKEN_COLORS = [
|
|
893
|
-
"
|
|
894
|
-
"
|
|
895
|
-
"
|
|
896
|
-
"
|
|
897
|
-
"
|
|
891
|
+
"var(--chart-1)",
|
|
892
|
+
"var(--chart-2)",
|
|
893
|
+
"var(--chart-3)",
|
|
894
|
+
"var(--chart-4)",
|
|
895
|
+
"var(--chart-5)"
|
|
898
896
|
];
|
|
899
897
|
function chartColor(index, colors) {
|
|
900
898
|
if (colors && colors.length > 0) {
|
|
@@ -959,7 +957,7 @@ function ContextMenuContent({
|
|
|
959
957
|
{
|
|
960
958
|
"data-slot": "context-menu-content",
|
|
961
959
|
className: cn(
|
|
962
|
-
"z-50 max-h-(--available-height) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
960
|
+
"z-50 max-h-(--available-height) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md shadow-(color:--shadow-color) duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
963
961
|
className
|
|
964
962
|
),
|
|
965
963
|
...props
|
|
@@ -977,7 +975,7 @@ function ContextMenuItem({
|
|
|
977
975
|
"data-slot": "context-menu-item",
|
|
978
976
|
"data-variant": variant,
|
|
979
977
|
className: cn(
|
|
980
|
-
"relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-
|
|
978
|
+
"relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-(--menu-hover-background) focus:text-(--menu-hover-foreground) data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
981
979
|
className
|
|
982
980
|
),
|
|
983
981
|
...props
|
|
@@ -998,32 +996,15 @@ function ContextMenuSeparator({
|
|
|
998
996
|
);
|
|
999
997
|
}
|
|
1000
998
|
|
|
1001
|
-
// src/ui/input.tsx
|
|
1002
|
-
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1003
|
-
function Input({ className, type, ...props }) {
|
|
1004
|
-
return /* @__PURE__ */ jsx17(
|
|
1005
|
-
"input",
|
|
1006
|
-
{
|
|
1007
|
-
type,
|
|
1008
|
-
"data-slot": "input",
|
|
1009
|
-
className: cn(
|
|
1010
|
-
"flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1011
|
-
className
|
|
1012
|
-
),
|
|
1013
|
-
...props
|
|
1014
|
-
}
|
|
1015
|
-
);
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
999
|
// src/ui/table.tsx
|
|
1019
|
-
import { jsx as
|
|
1000
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1020
1001
|
function Table({ className, ...props }) {
|
|
1021
|
-
return /* @__PURE__ */
|
|
1002
|
+
return /* @__PURE__ */ jsx17(
|
|
1022
1003
|
"div",
|
|
1023
1004
|
{
|
|
1024
1005
|
"data-slot": "table-container",
|
|
1025
1006
|
className: "relative w-full overflow-x-auto",
|
|
1026
|
-
children: /* @__PURE__ */
|
|
1007
|
+
children: /* @__PURE__ */ jsx17(
|
|
1027
1008
|
"table",
|
|
1028
1009
|
{
|
|
1029
1010
|
"data-slot": "table",
|
|
@@ -1035,7 +1016,7 @@ function Table({ className, ...props }) {
|
|
|
1035
1016
|
);
|
|
1036
1017
|
}
|
|
1037
1018
|
function TableHeader({ className, ...props }) {
|
|
1038
|
-
return /* @__PURE__ */
|
|
1019
|
+
return /* @__PURE__ */ jsx17(
|
|
1039
1020
|
"thead",
|
|
1040
1021
|
{
|
|
1041
1022
|
"data-slot": "table-header",
|
|
@@ -1045,7 +1026,7 @@ function TableHeader({ className, ...props }) {
|
|
|
1045
1026
|
);
|
|
1046
1027
|
}
|
|
1047
1028
|
function TableBody({ className, ...props }) {
|
|
1048
|
-
return /* @__PURE__ */
|
|
1029
|
+
return /* @__PURE__ */ jsx17(
|
|
1049
1030
|
"tbody",
|
|
1050
1031
|
{
|
|
1051
1032
|
"data-slot": "table-body",
|
|
@@ -1055,7 +1036,7 @@ function TableBody({ className, ...props }) {
|
|
|
1055
1036
|
);
|
|
1056
1037
|
}
|
|
1057
1038
|
function TableFooter({ className, ...props }) {
|
|
1058
|
-
return /* @__PURE__ */
|
|
1039
|
+
return /* @__PURE__ */ jsx17(
|
|
1059
1040
|
"tfoot",
|
|
1060
1041
|
{
|
|
1061
1042
|
"data-slot": "table-footer",
|
|
@@ -1068,7 +1049,7 @@ function TableFooter({ className, ...props }) {
|
|
|
1068
1049
|
);
|
|
1069
1050
|
}
|
|
1070
1051
|
function TableRow({ className, ...props }) {
|
|
1071
|
-
return /* @__PURE__ */
|
|
1052
|
+
return /* @__PURE__ */ jsx17(
|
|
1072
1053
|
"tr",
|
|
1073
1054
|
{
|
|
1074
1055
|
"data-slot": "table-row",
|
|
@@ -1081,7 +1062,7 @@ function TableRow({ className, ...props }) {
|
|
|
1081
1062
|
);
|
|
1082
1063
|
}
|
|
1083
1064
|
function TableHead({ className, ...props }) {
|
|
1084
|
-
return /* @__PURE__ */
|
|
1065
|
+
return /* @__PURE__ */ jsx17(
|
|
1085
1066
|
"th",
|
|
1086
1067
|
{
|
|
1087
1068
|
"data-slot": "table-head",
|
|
@@ -1094,7 +1075,7 @@ function TableHead({ className, ...props }) {
|
|
|
1094
1075
|
);
|
|
1095
1076
|
}
|
|
1096
1077
|
function TableCell({ className, ...props }) {
|
|
1097
|
-
return /* @__PURE__ */
|
|
1078
|
+
return /* @__PURE__ */ jsx17(
|
|
1098
1079
|
"td",
|
|
1099
1080
|
{
|
|
1100
1081
|
"data-slot": "table-cell",
|
|
@@ -1110,7 +1091,7 @@ function TableCaption({
|
|
|
1110
1091
|
className,
|
|
1111
1092
|
...props
|
|
1112
1093
|
}) {
|
|
1113
|
-
return /* @__PURE__ */
|
|
1094
|
+
return /* @__PURE__ */ jsx17(
|
|
1114
1095
|
"caption",
|
|
1115
1096
|
{
|
|
1116
1097
|
"data-slot": "table-caption",
|
|
@@ -1123,16 +1104,16 @@ function TableCaption({
|
|
|
1123
1104
|
// src/ui/dropdown-menu.tsx
|
|
1124
1105
|
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
1125
1106
|
import { ChevronRightIcon as ChevronRightIcon4 } from "lucide-react";
|
|
1126
|
-
import { jsx as
|
|
1107
|
+
import { jsx as jsx18, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1127
1108
|
function DropdownMenu({
|
|
1128
1109
|
...props
|
|
1129
1110
|
}) {
|
|
1130
|
-
return /* @__PURE__ */
|
|
1111
|
+
return /* @__PURE__ */ jsx18(MenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
1131
1112
|
}
|
|
1132
1113
|
function DropdownMenuTrigger({
|
|
1133
1114
|
...props
|
|
1134
1115
|
}) {
|
|
1135
|
-
return /* @__PURE__ */
|
|
1116
|
+
return /* @__PURE__ */ jsx18(MenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
|
|
1136
1117
|
}
|
|
1137
1118
|
function DropdownMenuContent({
|
|
1138
1119
|
className,
|
|
@@ -1141,19 +1122,19 @@ function DropdownMenuContent({
|
|
|
1141
1122
|
sideOffset = 4,
|
|
1142
1123
|
...props
|
|
1143
1124
|
}) {
|
|
1144
|
-
return /* @__PURE__ */
|
|
1125
|
+
return /* @__PURE__ */ jsx18(MenuPrimitive.Portal, { children: /* @__PURE__ */ jsx18(
|
|
1145
1126
|
MenuPrimitive.Positioner,
|
|
1146
1127
|
{
|
|
1147
1128
|
align,
|
|
1148
1129
|
side,
|
|
1149
1130
|
sideOffset,
|
|
1150
1131
|
className: "isolate z-50",
|
|
1151
|
-
children: /* @__PURE__ */
|
|
1132
|
+
children: /* @__PURE__ */ jsx18(
|
|
1152
1133
|
MenuPrimitive.Popup,
|
|
1153
1134
|
{
|
|
1154
1135
|
"data-slot": "dropdown-menu-content",
|
|
1155
1136
|
className: cn(
|
|
1156
|
-
"z-50 max-h-(--available-height) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
1137
|
+
"z-50 max-h-(--available-height) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md shadow-(color:--shadow-color) duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
1157
1138
|
className
|
|
1158
1139
|
),
|
|
1159
1140
|
...props
|
|
@@ -1167,13 +1148,13 @@ function DropdownMenuItem({
|
|
|
1167
1148
|
variant = "default",
|
|
1168
1149
|
...props
|
|
1169
1150
|
}) {
|
|
1170
|
-
return /* @__PURE__ */
|
|
1151
|
+
return /* @__PURE__ */ jsx18(
|
|
1171
1152
|
MenuPrimitive.Item,
|
|
1172
1153
|
{
|
|
1173
1154
|
"data-slot": "dropdown-menu-item",
|
|
1174
1155
|
"data-variant": variant,
|
|
1175
1156
|
className: cn(
|
|
1176
|
-
"relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-
|
|
1157
|
+
"relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-(--menu-hover-background) focus:text-(--menu-hover-foreground) data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1177
1158
|
className
|
|
1178
1159
|
),
|
|
1179
1160
|
...props
|
|
@@ -1184,7 +1165,7 @@ function DropdownMenuSeparator({
|
|
|
1184
1165
|
className,
|
|
1185
1166
|
...props
|
|
1186
1167
|
}) {
|
|
1187
|
-
return /* @__PURE__ */
|
|
1168
|
+
return /* @__PURE__ */ jsx18(
|
|
1188
1169
|
MenuPrimitive.Separator,
|
|
1189
1170
|
{
|
|
1190
1171
|
"data-slot": "dropdown-menu-separator",
|
|
@@ -1196,7 +1177,7 @@ function DropdownMenuSeparator({
|
|
|
1196
1177
|
function DropdownMenuSub({
|
|
1197
1178
|
...props
|
|
1198
1179
|
}) {
|
|
1199
|
-
return /* @__PURE__ */
|
|
1180
|
+
return /* @__PURE__ */ jsx18(MenuPrimitive.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...props });
|
|
1200
1181
|
}
|
|
1201
1182
|
function DropdownMenuSubTrigger({
|
|
1202
1183
|
className,
|
|
@@ -1208,13 +1189,13 @@ function DropdownMenuSubTrigger({
|
|
|
1208
1189
|
{
|
|
1209
1190
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
1210
1191
|
className: cn(
|
|
1211
|
-
"flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-
|
|
1192
|
+
"flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-(--menu-hover-background) focus:text-(--menu-hover-foreground) data-open:bg-(--menu-active-background) data-open:text-(--menu-active-foreground) [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1212
1193
|
className
|
|
1213
1194
|
),
|
|
1214
1195
|
...props,
|
|
1215
1196
|
children: [
|
|
1216
1197
|
children,
|
|
1217
|
-
/* @__PURE__ */
|
|
1198
|
+
/* @__PURE__ */ jsx18(ChevronRightIcon4, { className: "ml-auto" })
|
|
1218
1199
|
]
|
|
1219
1200
|
}
|
|
1220
1201
|
);
|
|
@@ -1224,12 +1205,12 @@ function DropdownMenuSubContent({
|
|
|
1224
1205
|
sideOffset = 2,
|
|
1225
1206
|
...props
|
|
1226
1207
|
}) {
|
|
1227
|
-
return /* @__PURE__ */
|
|
1208
|
+
return /* @__PURE__ */ jsx18(MenuPrimitive.Portal, { children: /* @__PURE__ */ jsx18(MenuPrimitive.Positioner, { sideOffset, className: "isolate z-50", children: /* @__PURE__ */ jsx18(
|
|
1228
1209
|
MenuPrimitive.Popup,
|
|
1229
1210
|
{
|
|
1230
1211
|
"data-slot": "dropdown-menu-sub-content",
|
|
1231
1212
|
className: cn(
|
|
1232
|
-
"z-50 min-w-32 origin-(--transform-origin) overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
1213
|
+
"z-50 min-w-32 origin-(--transform-origin) overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md shadow-(color:--shadow-color) duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
1233
1214
|
className
|
|
1234
1215
|
),
|
|
1235
1216
|
...props
|
|
@@ -1238,9 +1219,9 @@ function DropdownMenuSubContent({
|
|
|
1238
1219
|
}
|
|
1239
1220
|
|
|
1240
1221
|
// src/ui/empty.tsx
|
|
1241
|
-
import { jsx as
|
|
1222
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1242
1223
|
function Empty({ className, ...props }) {
|
|
1243
|
-
return /* @__PURE__ */
|
|
1224
|
+
return /* @__PURE__ */ jsx19(
|
|
1244
1225
|
"div",
|
|
1245
1226
|
{
|
|
1246
1227
|
"data-slot": "empty",
|
|
@@ -1253,7 +1234,7 @@ function Empty({ className, ...props }) {
|
|
|
1253
1234
|
);
|
|
1254
1235
|
}
|
|
1255
1236
|
function EmptyHeader({ className, ...props }) {
|
|
1256
|
-
return /* @__PURE__ */
|
|
1237
|
+
return /* @__PURE__ */ jsx19(
|
|
1257
1238
|
"div",
|
|
1258
1239
|
{
|
|
1259
1240
|
"data-slot": "empty-header",
|
|
@@ -1263,7 +1244,7 @@ function EmptyHeader({ className, ...props }) {
|
|
|
1263
1244
|
);
|
|
1264
1245
|
}
|
|
1265
1246
|
function EmptyTitle({ className, ...props }) {
|
|
1266
|
-
return /* @__PURE__ */
|
|
1247
|
+
return /* @__PURE__ */ jsx19(
|
|
1267
1248
|
"div",
|
|
1268
1249
|
{
|
|
1269
1250
|
"data-slot": "empty-title",
|
|
@@ -1273,7 +1254,7 @@ function EmptyTitle({ className, ...props }) {
|
|
|
1273
1254
|
);
|
|
1274
1255
|
}
|
|
1275
1256
|
function EmptyDescription({ className, ...props }) {
|
|
1276
|
-
return /* @__PURE__ */
|
|
1257
|
+
return /* @__PURE__ */ jsx19(
|
|
1277
1258
|
"p",
|
|
1278
1259
|
{
|
|
1279
1260
|
"data-slot": "empty-description",
|
|
@@ -1283,7 +1264,7 @@ function EmptyDescription({ className, ...props }) {
|
|
|
1283
1264
|
);
|
|
1284
1265
|
}
|
|
1285
1266
|
function EmptyContent({ className, ...props }) {
|
|
1286
|
-
return /* @__PURE__ */
|
|
1267
|
+
return /* @__PURE__ */ jsx19(
|
|
1287
1268
|
"div",
|
|
1288
1269
|
{
|
|
1289
1270
|
"data-slot": "empty-content",
|
|
@@ -1298,9 +1279,9 @@ function EmptyContent({ className, ...props }) {
|
|
|
1298
1279
|
|
|
1299
1280
|
// src/ui/field.tsx
|
|
1300
1281
|
import { Field as FieldPrimitive } from "@base-ui/react/field";
|
|
1301
|
-
import { jsx as
|
|
1282
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1302
1283
|
function Field({ className, ...props }) {
|
|
1303
|
-
return /* @__PURE__ */
|
|
1284
|
+
return /* @__PURE__ */ jsx20(
|
|
1304
1285
|
FieldPrimitive.Root,
|
|
1305
1286
|
{
|
|
1306
1287
|
"data-slot": "field",
|
|
@@ -1310,7 +1291,7 @@ function Field({ className, ...props }) {
|
|
|
1310
1291
|
);
|
|
1311
1292
|
}
|
|
1312
1293
|
function FieldLabel({ className, ...props }) {
|
|
1313
|
-
return /* @__PURE__ */
|
|
1294
|
+
return /* @__PURE__ */ jsx20(
|
|
1314
1295
|
FieldPrimitive.Label,
|
|
1315
1296
|
{
|
|
1316
1297
|
"data-slot": "field-label",
|
|
@@ -1320,7 +1301,7 @@ function FieldLabel({ className, ...props }) {
|
|
|
1320
1301
|
);
|
|
1321
1302
|
}
|
|
1322
1303
|
function FieldDescription({ className, ...props }) {
|
|
1323
|
-
return /* @__PURE__ */
|
|
1304
|
+
return /* @__PURE__ */ jsx20(
|
|
1324
1305
|
FieldPrimitive.Description,
|
|
1325
1306
|
{
|
|
1326
1307
|
"data-slot": "field-description",
|
|
@@ -1330,7 +1311,7 @@ function FieldDescription({ className, ...props }) {
|
|
|
1330
1311
|
);
|
|
1331
1312
|
}
|
|
1332
1313
|
function FieldError({ className, ...props }) {
|
|
1333
|
-
return /* @__PURE__ */
|
|
1314
|
+
return /* @__PURE__ */ jsx20(
|
|
1334
1315
|
FieldPrimitive.Error,
|
|
1335
1316
|
{
|
|
1336
1317
|
"data-slot": "field-error",
|
|
@@ -1342,16 +1323,16 @@ function FieldError({ className, ...props }) {
|
|
|
1342
1323
|
|
|
1343
1324
|
// src/ui/hover-card.tsx
|
|
1344
1325
|
import { PreviewCard as PreviewCardPrimitive } from "@base-ui/react/preview-card";
|
|
1345
|
-
import { jsx as
|
|
1326
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1346
1327
|
function HoverCard({
|
|
1347
1328
|
...props
|
|
1348
1329
|
}) {
|
|
1349
|
-
return /* @__PURE__ */
|
|
1330
|
+
return /* @__PURE__ */ jsx21(PreviewCardPrimitive.Root, { "data-slot": "hover-card", ...props });
|
|
1350
1331
|
}
|
|
1351
1332
|
function HoverCardTrigger({
|
|
1352
1333
|
...props
|
|
1353
1334
|
}) {
|
|
1354
|
-
return /* @__PURE__ */
|
|
1335
|
+
return /* @__PURE__ */ jsx21(PreviewCardPrimitive.Trigger, { "data-slot": "hover-card-trigger", ...props });
|
|
1355
1336
|
}
|
|
1356
1337
|
function HoverCardContent({
|
|
1357
1338
|
className,
|
|
@@ -1360,19 +1341,19 @@ function HoverCardContent({
|
|
|
1360
1341
|
sideOffset = 4,
|
|
1361
1342
|
...props
|
|
1362
1343
|
}) {
|
|
1363
|
-
return /* @__PURE__ */
|
|
1344
|
+
return /* @__PURE__ */ jsx21(PreviewCardPrimitive.Portal, { children: /* @__PURE__ */ jsx21(
|
|
1364
1345
|
PreviewCardPrimitive.Positioner,
|
|
1365
1346
|
{
|
|
1366
1347
|
align,
|
|
1367
1348
|
side,
|
|
1368
1349
|
sideOffset,
|
|
1369
1350
|
className: "isolate z-50",
|
|
1370
|
-
children: /* @__PURE__ */
|
|
1351
|
+
children: /* @__PURE__ */ jsx21(
|
|
1371
1352
|
PreviewCardPrimitive.Popup,
|
|
1372
1353
|
{
|
|
1373
1354
|
"data-slot": "hover-card-content",
|
|
1374
1355
|
className: cn(
|
|
1375
|
-
"z-50 w-64 origin-(--transform-origin) rounded-md border border-border bg-popover p-4 text-popover-foreground shadow-md outline-hidden duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
1356
|
+
"z-50 w-64 origin-(--transform-origin) rounded-md border border-border bg-popover p-4 text-popover-foreground shadow-md shadow-(color:--shadow-color) outline-hidden duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
1376
1357
|
className
|
|
1377
1358
|
),
|
|
1378
1359
|
...props
|
|
@@ -1383,9 +1364,9 @@ function HoverCardContent({
|
|
|
1383
1364
|
}
|
|
1384
1365
|
|
|
1385
1366
|
// src/ui/input-group.tsx
|
|
1386
|
-
import { jsx as
|
|
1367
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1387
1368
|
function InputGroup({ className, ...props }) {
|
|
1388
|
-
return /* @__PURE__ */
|
|
1369
|
+
return /* @__PURE__ */ jsx22(
|
|
1389
1370
|
"div",
|
|
1390
1371
|
{
|
|
1391
1372
|
"data-slot": "input-group",
|
|
@@ -1407,7 +1388,7 @@ function InputGroupAddon({
|
|
|
1407
1388
|
align = "inline-start",
|
|
1408
1389
|
...props
|
|
1409
1390
|
}) {
|
|
1410
|
-
return /* @__PURE__ */
|
|
1391
|
+
return /* @__PURE__ */ jsx22(
|
|
1411
1392
|
"div",
|
|
1412
1393
|
{
|
|
1413
1394
|
role: "group",
|
|
@@ -1426,7 +1407,7 @@ function InputGroupInput({
|
|
|
1426
1407
|
className,
|
|
1427
1408
|
...props
|
|
1428
1409
|
}) {
|
|
1429
|
-
return /* @__PURE__ */
|
|
1410
|
+
return /* @__PURE__ */ jsx22(
|
|
1430
1411
|
"input",
|
|
1431
1412
|
{
|
|
1432
1413
|
"data-slot": "input-group-input",
|
|
@@ -1443,13 +1424,13 @@ function InputGroupInput({
|
|
|
1443
1424
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
1444
1425
|
import { MinusIcon } from "lucide-react";
|
|
1445
1426
|
import * as React2 from "react";
|
|
1446
|
-
import { jsx as
|
|
1427
|
+
import { jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1447
1428
|
function InputOTP({
|
|
1448
1429
|
className,
|
|
1449
1430
|
containerClassName,
|
|
1450
1431
|
...props
|
|
1451
1432
|
}) {
|
|
1452
|
-
return /* @__PURE__ */
|
|
1433
|
+
return /* @__PURE__ */ jsx23(
|
|
1453
1434
|
OTPInput,
|
|
1454
1435
|
{
|
|
1455
1436
|
"data-slot": "input-otp",
|
|
@@ -1463,7 +1444,7 @@ function InputOTP({
|
|
|
1463
1444
|
);
|
|
1464
1445
|
}
|
|
1465
1446
|
function InputOTPGroup({ className, ...props }) {
|
|
1466
|
-
return /* @__PURE__ */
|
|
1447
|
+
return /* @__PURE__ */ jsx23(
|
|
1467
1448
|
"div",
|
|
1468
1449
|
{
|
|
1469
1450
|
"data-slot": "input-otp-group",
|
|
@@ -1491,19 +1472,19 @@ function InputOTPSlot({
|
|
|
1491
1472
|
...props,
|
|
1492
1473
|
children: [
|
|
1493
1474
|
char,
|
|
1494
|
-
hasFakeCaret ? /* @__PURE__ */
|
|
1475
|
+
hasFakeCaret ? /* @__PURE__ */ jsx23("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx23("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) }) : null
|
|
1495
1476
|
]
|
|
1496
1477
|
}
|
|
1497
1478
|
);
|
|
1498
1479
|
}
|
|
1499
1480
|
function InputOTPSeparator({ ...props }) {
|
|
1500
|
-
return /* @__PURE__ */
|
|
1481
|
+
return /* @__PURE__ */ jsx23("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsx23(MinusIcon, {}) });
|
|
1501
1482
|
}
|
|
1502
1483
|
|
|
1503
1484
|
// src/ui/item.tsx
|
|
1504
|
-
import { jsx as
|
|
1485
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1505
1486
|
function Item({ className, ...props }) {
|
|
1506
|
-
return /* @__PURE__ */
|
|
1487
|
+
return /* @__PURE__ */ jsx24(
|
|
1507
1488
|
"div",
|
|
1508
1489
|
{
|
|
1509
1490
|
"data-slot": "item",
|
|
@@ -1516,7 +1497,7 @@ function Item({ className, ...props }) {
|
|
|
1516
1497
|
);
|
|
1517
1498
|
}
|
|
1518
1499
|
function ItemMedia({ className, ...props }) {
|
|
1519
|
-
return /* @__PURE__ */
|
|
1500
|
+
return /* @__PURE__ */ jsx24(
|
|
1520
1501
|
"div",
|
|
1521
1502
|
{
|
|
1522
1503
|
"data-slot": "item-media",
|
|
@@ -1529,7 +1510,7 @@ function ItemMedia({ className, ...props }) {
|
|
|
1529
1510
|
);
|
|
1530
1511
|
}
|
|
1531
1512
|
function ItemContent({ className, ...props }) {
|
|
1532
|
-
return /* @__PURE__ */
|
|
1513
|
+
return /* @__PURE__ */ jsx24(
|
|
1533
1514
|
"div",
|
|
1534
1515
|
{
|
|
1535
1516
|
"data-slot": "item-content",
|
|
@@ -1539,7 +1520,7 @@ function ItemContent({ className, ...props }) {
|
|
|
1539
1520
|
);
|
|
1540
1521
|
}
|
|
1541
1522
|
function ItemTitle({ className, ...props }) {
|
|
1542
|
-
return /* @__PURE__ */
|
|
1523
|
+
return /* @__PURE__ */ jsx24(
|
|
1543
1524
|
"div",
|
|
1544
1525
|
{
|
|
1545
1526
|
"data-slot": "item-title",
|
|
@@ -1549,7 +1530,7 @@ function ItemTitle({ className, ...props }) {
|
|
|
1549
1530
|
);
|
|
1550
1531
|
}
|
|
1551
1532
|
function ItemDescription({ className, ...props }) {
|
|
1552
|
-
return /* @__PURE__ */
|
|
1533
|
+
return /* @__PURE__ */ jsx24(
|
|
1553
1534
|
"p",
|
|
1554
1535
|
{
|
|
1555
1536
|
"data-slot": "item-description",
|
|
@@ -1559,7 +1540,7 @@ function ItemDescription({ className, ...props }) {
|
|
|
1559
1540
|
);
|
|
1560
1541
|
}
|
|
1561
1542
|
function ItemActions({ className, ...props }) {
|
|
1562
|
-
return /* @__PURE__ */
|
|
1543
|
+
return /* @__PURE__ */ jsx24(
|
|
1563
1544
|
"div",
|
|
1564
1545
|
{
|
|
1565
1546
|
"data-slot": "item-actions",
|
|
@@ -1570,9 +1551,9 @@ function ItemActions({ className, ...props }) {
|
|
|
1570
1551
|
}
|
|
1571
1552
|
|
|
1572
1553
|
// src/ui/kbd.tsx
|
|
1573
|
-
import { jsx as
|
|
1554
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
1574
1555
|
function Kbd({ className, ...props }) {
|
|
1575
|
-
return /* @__PURE__ */
|
|
1556
|
+
return /* @__PURE__ */ jsx25(
|
|
1576
1557
|
"kbd",
|
|
1577
1558
|
{
|
|
1578
1559
|
"data-slot": "kbd",
|
|
@@ -1586,12 +1567,12 @@ function Kbd({ className, ...props }) {
|
|
|
1586
1567
|
}
|
|
1587
1568
|
|
|
1588
1569
|
// src/ui/label.tsx
|
|
1589
|
-
import { jsx as
|
|
1570
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1590
1571
|
function Label({
|
|
1591
1572
|
className,
|
|
1592
1573
|
...props
|
|
1593
1574
|
}) {
|
|
1594
|
-
return /* @__PURE__ */
|
|
1575
|
+
return /* @__PURE__ */ jsx26(
|
|
1595
1576
|
"label",
|
|
1596
1577
|
{
|
|
1597
1578
|
"data-slot": "label",
|
|
@@ -1604,80 +1585,20 @@ function Label({
|
|
|
1604
1585
|
);
|
|
1605
1586
|
}
|
|
1606
1587
|
|
|
1607
|
-
// src/ui/tooltip.tsx
|
|
1608
|
-
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
1609
|
-
import { jsx as jsx28, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1610
|
-
function TooltipProvider({
|
|
1611
|
-
delay = 0,
|
|
1612
|
-
...props
|
|
1613
|
-
}) {
|
|
1614
|
-
return /* @__PURE__ */ jsx28(
|
|
1615
|
-
TooltipPrimitive.Provider,
|
|
1616
|
-
{
|
|
1617
|
-
"data-slot": "tooltip-provider",
|
|
1618
|
-
delay,
|
|
1619
|
-
...props
|
|
1620
|
-
}
|
|
1621
|
-
);
|
|
1622
|
-
}
|
|
1623
|
-
function Tooltip({
|
|
1624
|
-
...props
|
|
1625
|
-
}) {
|
|
1626
|
-
return /* @__PURE__ */ jsx28(TooltipProvider, { children: /* @__PURE__ */ jsx28(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props }) });
|
|
1627
|
-
}
|
|
1628
|
-
function TooltipTrigger({
|
|
1629
|
-
...props
|
|
1630
|
-
}) {
|
|
1631
|
-
return /* @__PURE__ */ jsx28(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
1632
|
-
}
|
|
1633
|
-
function TooltipContent({
|
|
1634
|
-
className,
|
|
1635
|
-
side = "top",
|
|
1636
|
-
sideOffset = 4,
|
|
1637
|
-
align = "center",
|
|
1638
|
-
children,
|
|
1639
|
-
...props
|
|
1640
|
-
}) {
|
|
1641
|
-
return /* @__PURE__ */ jsx28(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx28(
|
|
1642
|
-
TooltipPrimitive.Positioner,
|
|
1643
|
-
{
|
|
1644
|
-
align,
|
|
1645
|
-
side,
|
|
1646
|
-
sideOffset,
|
|
1647
|
-
className: "isolate z-50",
|
|
1648
|
-
children: /* @__PURE__ */ jsxs9(
|
|
1649
|
-
TooltipPrimitive.Popup,
|
|
1650
|
-
{
|
|
1651
|
-
"data-slot": "tooltip-content",
|
|
1652
|
-
className: cn(
|
|
1653
|
-
"z-50 w-fit origin-(--transform-origin) rounded-md bg-primary px-3 py-1.5 text-xs text-balance text-primary-foreground duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
1654
|
-
className
|
|
1655
|
-
),
|
|
1656
|
-
...props,
|
|
1657
|
-
children: [
|
|
1658
|
-
children,
|
|
1659
|
-
/* @__PURE__ */ jsx28(TooltipPrimitive.Arrow, { className: "z-50 size-2.5 rotate-45 rounded-[2px] bg-primary fill-primary data-[side=top]:-bottom-1 data-[side=bottom]:-top-1 data-[side=left]:-right-1 data-[side=right]:-left-1" })
|
|
1660
|
-
]
|
|
1661
|
-
}
|
|
1662
|
-
)
|
|
1663
|
-
}
|
|
1664
|
-
) });
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
1588
|
// src/ui/menubar.tsx
|
|
1668
1589
|
import { Menu as MenuPrimitive2 } from "@base-ui/react/menu";
|
|
1669
1590
|
import { Menubar as MenubarPrimitive } from "@base-ui/react/menubar";
|
|
1670
|
-
import { jsx as
|
|
1591
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1671
1592
|
function Menubar({
|
|
1672
1593
|
className,
|
|
1673
1594
|
...props
|
|
1674
1595
|
}) {
|
|
1675
|
-
return /* @__PURE__ */
|
|
1596
|
+
return /* @__PURE__ */ jsx27(
|
|
1676
1597
|
MenubarPrimitive,
|
|
1677
1598
|
{
|
|
1678
1599
|
"data-slot": "menubar",
|
|
1679
1600
|
className: cn(
|
|
1680
|
-
"flex h-9 items-center gap-1 rounded-md border border-border bg-
|
|
1601
|
+
"flex h-9 items-center gap-1 rounded-md border border-border bg-card p-1 shadow-xs",
|
|
1681
1602
|
className
|
|
1682
1603
|
),
|
|
1683
1604
|
...props
|
|
@@ -1687,18 +1608,18 @@ function Menubar({
|
|
|
1687
1608
|
function MenubarMenu({
|
|
1688
1609
|
...props
|
|
1689
1610
|
}) {
|
|
1690
|
-
return /* @__PURE__ */
|
|
1611
|
+
return /* @__PURE__ */ jsx27(MenuPrimitive2.Root, { "data-slot": "menubar-menu", ...props });
|
|
1691
1612
|
}
|
|
1692
1613
|
function MenubarTrigger({
|
|
1693
1614
|
className,
|
|
1694
1615
|
...props
|
|
1695
1616
|
}) {
|
|
1696
|
-
return /* @__PURE__ */
|
|
1617
|
+
return /* @__PURE__ */ jsx27(
|
|
1697
1618
|
MenuPrimitive2.Trigger,
|
|
1698
1619
|
{
|
|
1699
1620
|
"data-slot": "menubar-trigger",
|
|
1700
1621
|
className: cn(
|
|
1701
|
-
"flex cursor-pointer items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none hover:bg-
|
|
1622
|
+
"flex cursor-pointer items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none hover:bg-(--menu-hover-background) hover:text-(--menu-hover-foreground) focus:bg-(--menu-hover-background) focus:text-(--menu-hover-foreground) data-open:bg-(--menu-active-background) data-open:text-(--menu-active-foreground)",
|
|
1702
1623
|
className
|
|
1703
1624
|
),
|
|
1704
1625
|
...props
|
|
@@ -1712,19 +1633,19 @@ function MenubarContent({
|
|
|
1712
1633
|
sideOffset = 8,
|
|
1713
1634
|
...props
|
|
1714
1635
|
}) {
|
|
1715
|
-
return /* @__PURE__ */
|
|
1636
|
+
return /* @__PURE__ */ jsx27(MenuPrimitive2.Portal, { children: /* @__PURE__ */ jsx27(
|
|
1716
1637
|
MenuPrimitive2.Positioner,
|
|
1717
1638
|
{
|
|
1718
1639
|
align,
|
|
1719
1640
|
side,
|
|
1720
1641
|
sideOffset,
|
|
1721
1642
|
className: "isolate z-50",
|
|
1722
|
-
children: /* @__PURE__ */
|
|
1643
|
+
children: /* @__PURE__ */ jsx27(
|
|
1723
1644
|
MenuPrimitive2.Popup,
|
|
1724
1645
|
{
|
|
1725
1646
|
"data-slot": "menubar-content",
|
|
1726
1647
|
className: cn(
|
|
1727
|
-
"z-50 min-w-36 origin-(--transform-origin) overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
1648
|
+
"z-50 min-w-36 origin-(--transform-origin) overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md shadow-(color:--shadow-color) duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
1728
1649
|
className
|
|
1729
1650
|
),
|
|
1730
1651
|
...props
|
|
@@ -1738,13 +1659,13 @@ function MenubarItem({
|
|
|
1738
1659
|
variant = "default",
|
|
1739
1660
|
...props
|
|
1740
1661
|
}) {
|
|
1741
|
-
return /* @__PURE__ */
|
|
1662
|
+
return /* @__PURE__ */ jsx27(
|
|
1742
1663
|
MenuPrimitive2.Item,
|
|
1743
1664
|
{
|
|
1744
1665
|
"data-slot": "menubar-item",
|
|
1745
1666
|
"data-variant": variant,
|
|
1746
1667
|
className: cn(
|
|
1747
|
-
"relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-
|
|
1668
|
+
"relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-(--menu-hover-background) focus:text-(--menu-hover-foreground) data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1748
1669
|
className
|
|
1749
1670
|
),
|
|
1750
1671
|
...props
|
|
@@ -1755,7 +1676,7 @@ function MenubarSeparator({
|
|
|
1755
1676
|
className,
|
|
1756
1677
|
...props
|
|
1757
1678
|
}) {
|
|
1758
|
-
return /* @__PURE__ */
|
|
1679
|
+
return /* @__PURE__ */ jsx27(
|
|
1759
1680
|
MenuPrimitive2.Separator,
|
|
1760
1681
|
{
|
|
1761
1682
|
"data-slot": "menubar-separator",
|
|
@@ -1769,13 +1690,13 @@ function MenubarSeparator({
|
|
|
1769
1690
|
import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/navigation-menu";
|
|
1770
1691
|
import { ChevronDownIcon as ChevronDownIcon2 } from "lucide-react";
|
|
1771
1692
|
import { cva as cva3 } from "class-variance-authority";
|
|
1772
|
-
import { jsx as
|
|
1693
|
+
import { jsx as jsx28, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1773
1694
|
function NavigationMenu({
|
|
1774
1695
|
className,
|
|
1775
1696
|
children,
|
|
1776
1697
|
...props
|
|
1777
1698
|
}) {
|
|
1778
|
-
return /* @__PURE__ */
|
|
1699
|
+
return /* @__PURE__ */ jsxs9(
|
|
1779
1700
|
NavigationMenuPrimitive.Root,
|
|
1780
1701
|
{
|
|
1781
1702
|
"data-slot": "navigation-menu",
|
|
@@ -1783,7 +1704,7 @@ function NavigationMenu({
|
|
|
1783
1704
|
...props,
|
|
1784
1705
|
children: [
|
|
1785
1706
|
children,
|
|
1786
|
-
/* @__PURE__ */
|
|
1707
|
+
/* @__PURE__ */ jsx28(NavigationMenuViewport, {})
|
|
1787
1708
|
]
|
|
1788
1709
|
}
|
|
1789
1710
|
);
|
|
@@ -1792,7 +1713,7 @@ function NavigationMenuList({
|
|
|
1792
1713
|
className,
|
|
1793
1714
|
...props
|
|
1794
1715
|
}) {
|
|
1795
|
-
return /* @__PURE__ */
|
|
1716
|
+
return /* @__PURE__ */ jsx28(
|
|
1796
1717
|
NavigationMenuPrimitive.List,
|
|
1797
1718
|
{
|
|
1798
1719
|
"data-slot": "navigation-menu-list",
|
|
@@ -1805,7 +1726,7 @@ function NavigationMenuItem({
|
|
|
1805
1726
|
className,
|
|
1806
1727
|
...props
|
|
1807
1728
|
}) {
|
|
1808
|
-
return /* @__PURE__ */
|
|
1729
|
+
return /* @__PURE__ */ jsx28(
|
|
1809
1730
|
NavigationMenuPrimitive.Item,
|
|
1810
1731
|
{
|
|
1811
1732
|
"data-slot": "navigation-menu-item",
|
|
@@ -1815,14 +1736,14 @@ function NavigationMenuItem({
|
|
|
1815
1736
|
);
|
|
1816
1737
|
}
|
|
1817
1738
|
var navigationMenuTriggerStyle = cva3(
|
|
1818
|
-
"group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-md bg-
|
|
1739
|
+
"group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-md bg-transparent px-4 py-2 text-sm font-medium transition-colors hover:bg-(--menu-hover-background) hover:text-(--menu-hover-foreground) focus:bg-(--menu-hover-background) focus:text-(--menu-hover-foreground) focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-open:bg-(--menu-active-background)/50 data-open:text-(--menu-active-foreground)"
|
|
1819
1740
|
);
|
|
1820
1741
|
function NavigationMenuTrigger({
|
|
1821
1742
|
className,
|
|
1822
1743
|
children,
|
|
1823
1744
|
...props
|
|
1824
1745
|
}) {
|
|
1825
|
-
return /* @__PURE__ */
|
|
1746
|
+
return /* @__PURE__ */ jsxs9(
|
|
1826
1747
|
NavigationMenuPrimitive.Trigger,
|
|
1827
1748
|
{
|
|
1828
1749
|
"data-slot": "navigation-menu-trigger",
|
|
@@ -1830,7 +1751,7 @@ function NavigationMenuTrigger({
|
|
|
1830
1751
|
...props,
|
|
1831
1752
|
children: [
|
|
1832
1753
|
children,
|
|
1833
|
-
/* @__PURE__ */
|
|
1754
|
+
/* @__PURE__ */ jsx28(
|
|
1834
1755
|
ChevronDownIcon2,
|
|
1835
1756
|
{
|
|
1836
1757
|
className: "relative top-px ml-1 size-3 transition-transform duration-200 group-data-open/navigation-menu-trigger:rotate-180",
|
|
@@ -1845,7 +1766,7 @@ function NavigationMenuContent({
|
|
|
1845
1766
|
className,
|
|
1846
1767
|
...props
|
|
1847
1768
|
}) {
|
|
1848
|
-
return /* @__PURE__ */
|
|
1769
|
+
return /* @__PURE__ */ jsx28(
|
|
1849
1770
|
NavigationMenuPrimitive.Content,
|
|
1850
1771
|
{
|
|
1851
1772
|
"data-slot": "navigation-menu-content",
|
|
@@ -1858,21 +1779,21 @@ function NavigationMenuContent({
|
|
|
1858
1779
|
);
|
|
1859
1780
|
}
|
|
1860
1781
|
function NavigationMenuViewport({ className }) {
|
|
1861
|
-
return /* @__PURE__ */
|
|
1782
|
+
return /* @__PURE__ */ jsx28(NavigationMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx28(
|
|
1862
1783
|
NavigationMenuPrimitive.Positioner,
|
|
1863
1784
|
{
|
|
1864
1785
|
side: "bottom",
|
|
1865
1786
|
align: "start",
|
|
1866
1787
|
className: "isolate z-50",
|
|
1867
|
-
children: /* @__PURE__ */
|
|
1788
|
+
children: /* @__PURE__ */ jsx28(
|
|
1868
1789
|
NavigationMenuPrimitive.Popup,
|
|
1869
1790
|
{
|
|
1870
1791
|
"data-slot": "navigation-menu-popup",
|
|
1871
1792
|
className: cn(
|
|
1872
|
-
"origin-(--transform-origin) overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-md duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
1793
|
+
"origin-(--transform-origin) overflow-hidden rounded-md border border-border bg-popover text-popover-foreground shadow-md shadow-(color:--shadow-color) duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
1873
1794
|
className
|
|
1874
1795
|
),
|
|
1875
|
-
children: /* @__PURE__ */
|
|
1796
|
+
children: /* @__PURE__ */ jsx28(NavigationMenuPrimitive.Viewport, { "data-slot": "navigation-menu-viewport" })
|
|
1876
1797
|
}
|
|
1877
1798
|
)
|
|
1878
1799
|
}
|
|
@@ -1882,12 +1803,12 @@ function NavigationMenuLink({
|
|
|
1882
1803
|
className,
|
|
1883
1804
|
...props
|
|
1884
1805
|
}) {
|
|
1885
|
-
return /* @__PURE__ */
|
|
1806
|
+
return /* @__PURE__ */ jsx28(
|
|
1886
1807
|
NavigationMenuPrimitive.Link,
|
|
1887
1808
|
{
|
|
1888
1809
|
"data-slot": "navigation-menu-link",
|
|
1889
1810
|
className: cn(
|
|
1890
|
-
"flex flex-col gap-1 rounded-md p-2 text-sm transition-colors outline-none hover:bg-
|
|
1811
|
+
"flex flex-col gap-1 rounded-md p-2 text-sm transition-colors outline-none hover:bg-(--menu-hover-background) hover:text-(--menu-hover-foreground) focus:bg-(--menu-hover-background) focus:text-(--menu-hover-foreground) focus-visible:ring-[3px] focus-visible:ring-ring/50 data-active:bg-(--menu-active-background)/50 data-active:text-(--menu-active-foreground) [&_svg:not([class*='size-'])]:size-4",
|
|
1891
1812
|
className
|
|
1892
1813
|
),
|
|
1893
1814
|
...props
|
|
@@ -1897,9 +1818,9 @@ function NavigationMenuLink({
|
|
|
1897
1818
|
|
|
1898
1819
|
// src/ui/pagination.tsx
|
|
1899
1820
|
import { ChevronLeftIcon as ChevronLeftIcon3, ChevronRightIcon as ChevronRightIcon5, MoreHorizontalIcon as MoreHorizontalIcon2 } from "lucide-react";
|
|
1900
|
-
import { jsx as
|
|
1821
|
+
import { jsx as jsx29, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1901
1822
|
function Pagination({ className, ...props }) {
|
|
1902
|
-
return /* @__PURE__ */
|
|
1823
|
+
return /* @__PURE__ */ jsx29(
|
|
1903
1824
|
"nav",
|
|
1904
1825
|
{
|
|
1905
1826
|
role: "navigation",
|
|
@@ -1911,7 +1832,7 @@ function Pagination({ className, ...props }) {
|
|
|
1911
1832
|
);
|
|
1912
1833
|
}
|
|
1913
1834
|
function PaginationContent({ className, ...props }) {
|
|
1914
|
-
return /* @__PURE__ */
|
|
1835
|
+
return /* @__PURE__ */ jsx29(
|
|
1915
1836
|
"ul",
|
|
1916
1837
|
{
|
|
1917
1838
|
"data-slot": "pagination-content",
|
|
@@ -1921,7 +1842,7 @@ function PaginationContent({ className, ...props }) {
|
|
|
1921
1842
|
);
|
|
1922
1843
|
}
|
|
1923
1844
|
function PaginationItem({ ...props }) {
|
|
1924
|
-
return /* @__PURE__ */
|
|
1845
|
+
return /* @__PURE__ */ jsx29("li", { "data-slot": "pagination-item", ...props });
|
|
1925
1846
|
}
|
|
1926
1847
|
function PaginationLink({
|
|
1927
1848
|
className,
|
|
@@ -1929,7 +1850,7 @@ function PaginationLink({
|
|
|
1929
1850
|
disabled,
|
|
1930
1851
|
...props
|
|
1931
1852
|
}) {
|
|
1932
|
-
return /* @__PURE__ */
|
|
1853
|
+
return /* @__PURE__ */ jsx29(
|
|
1933
1854
|
"a",
|
|
1934
1855
|
{
|
|
1935
1856
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -1941,6 +1862,7 @@ function PaginationLink({
|
|
|
1941
1862
|
buttonVariants({
|
|
1942
1863
|
variant: isActive ? "outline" : "ghost"
|
|
1943
1864
|
}),
|
|
1865
|
+
isActive && "border-(color:--pagination-active-border) bg-(--pagination-active-background) rounded-(--pagination-active-radius)",
|
|
1944
1866
|
disabled && "pointer-events-none opacity-50",
|
|
1945
1867
|
className
|
|
1946
1868
|
),
|
|
@@ -1952,15 +1874,15 @@ function PaginationPrevious({
|
|
|
1952
1874
|
className,
|
|
1953
1875
|
...props
|
|
1954
1876
|
}) {
|
|
1955
|
-
return /* @__PURE__ */
|
|
1877
|
+
return /* @__PURE__ */ jsxs10(
|
|
1956
1878
|
PaginationLink,
|
|
1957
1879
|
{
|
|
1958
1880
|
"aria-label": "Go to previous page",
|
|
1959
1881
|
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
1960
1882
|
...props,
|
|
1961
1883
|
children: [
|
|
1962
|
-
/* @__PURE__ */
|
|
1963
|
-
/* @__PURE__ */
|
|
1884
|
+
/* @__PURE__ */ jsx29(ChevronLeftIcon3, {}),
|
|
1885
|
+
/* @__PURE__ */ jsx29("span", { className: "hidden sm:block", children: "Previous" })
|
|
1964
1886
|
]
|
|
1965
1887
|
}
|
|
1966
1888
|
);
|
|
@@ -1969,21 +1891,21 @@ function PaginationNext({
|
|
|
1969
1891
|
className,
|
|
1970
1892
|
...props
|
|
1971
1893
|
}) {
|
|
1972
|
-
return /* @__PURE__ */
|
|
1894
|
+
return /* @__PURE__ */ jsxs10(
|
|
1973
1895
|
PaginationLink,
|
|
1974
1896
|
{
|
|
1975
1897
|
"aria-label": "Go to next page",
|
|
1976
1898
|
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
1977
1899
|
...props,
|
|
1978
1900
|
children: [
|
|
1979
|
-
/* @__PURE__ */
|
|
1980
|
-
/* @__PURE__ */
|
|
1901
|
+
/* @__PURE__ */ jsx29("span", { className: "hidden sm:block", children: "Next" }),
|
|
1902
|
+
/* @__PURE__ */ jsx29(ChevronRightIcon5, {})
|
|
1981
1903
|
]
|
|
1982
1904
|
}
|
|
1983
1905
|
);
|
|
1984
1906
|
}
|
|
1985
1907
|
function PaginationEllipsis({ className, ...props }) {
|
|
1986
|
-
return /* @__PURE__ */
|
|
1908
|
+
return /* @__PURE__ */ jsxs10(
|
|
1987
1909
|
"span",
|
|
1988
1910
|
{
|
|
1989
1911
|
"aria-hidden": true,
|
|
@@ -1991,8 +1913,8 @@ function PaginationEllipsis({ className, ...props }) {
|
|
|
1991
1913
|
className: cn("flex size-9 items-center justify-center", className),
|
|
1992
1914
|
...props,
|
|
1993
1915
|
children: [
|
|
1994
|
-
/* @__PURE__ */
|
|
1995
|
-
/* @__PURE__ */
|
|
1916
|
+
/* @__PURE__ */ jsx29(MoreHorizontalIcon2, { className: "size-4" }),
|
|
1917
|
+
/* @__PURE__ */ jsx29("span", { className: "sr-only", children: "More pages" })
|
|
1996
1918
|
]
|
|
1997
1919
|
}
|
|
1998
1920
|
);
|
|
@@ -2000,9 +1922,9 @@ function PaginationEllipsis({ className, ...props }) {
|
|
|
2000
1922
|
|
|
2001
1923
|
// src/ui/progress.tsx
|
|
2002
1924
|
import { Progress as ProgressPrimitive } from "@base-ui/react/progress";
|
|
2003
|
-
import { jsx as
|
|
1925
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
2004
1926
|
function Progress({ className, ...props }) {
|
|
2005
|
-
return /* @__PURE__ */
|
|
1927
|
+
return /* @__PURE__ */ jsx30(
|
|
2006
1928
|
ProgressPrimitive.Root,
|
|
2007
1929
|
{
|
|
2008
1930
|
"data-slot": "progress",
|
|
@@ -2012,11 +1934,11 @@ function Progress({ className, ...props }) {
|
|
|
2012
1934
|
);
|
|
2013
1935
|
}
|
|
2014
1936
|
function ProgressTrack({ className, ...props }) {
|
|
2015
|
-
return /* @__PURE__ */
|
|
1937
|
+
return /* @__PURE__ */ jsx30(
|
|
2016
1938
|
ProgressPrimitive.Track,
|
|
2017
1939
|
{
|
|
2018
1940
|
"data-slot": "progress-track",
|
|
2019
|
-
className: cn("h-2 w-full overflow-hidden rounded-full bg-
|
|
1941
|
+
className: cn("h-2 w-full overflow-hidden rounded-full bg-(--progress-track)", className),
|
|
2020
1942
|
...props
|
|
2021
1943
|
}
|
|
2022
1944
|
);
|
|
@@ -2025,12 +1947,12 @@ function ProgressIndicator({
|
|
|
2025
1947
|
className,
|
|
2026
1948
|
...props
|
|
2027
1949
|
}) {
|
|
2028
|
-
return /* @__PURE__ */
|
|
1950
|
+
return /* @__PURE__ */ jsx30(
|
|
2029
1951
|
ProgressPrimitive.Indicator,
|
|
2030
1952
|
{
|
|
2031
1953
|
"data-slot": "progress-indicator",
|
|
2032
1954
|
className: cn(
|
|
2033
|
-
"h-full bg-
|
|
1955
|
+
"h-full bg-(--progress-indicator) transition-[width] duration-300 ease-in-out",
|
|
2034
1956
|
className
|
|
2035
1957
|
),
|
|
2036
1958
|
...props
|
|
@@ -2041,9 +1963,9 @@ function ProgressIndicator({
|
|
|
2041
1963
|
// src/ui/radio-group.tsx
|
|
2042
1964
|
import { Radio as RadioPrimitive } from "@base-ui/react/radio";
|
|
2043
1965
|
import { RadioGroup as RadioGroupPrimitive } from "@base-ui/react/radio-group";
|
|
2044
|
-
import { jsx as
|
|
1966
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
2045
1967
|
function RadioGroup({ className, ...props }) {
|
|
2046
|
-
return /* @__PURE__ */
|
|
1968
|
+
return /* @__PURE__ */ jsx31(
|
|
2047
1969
|
RadioGroupPrimitive,
|
|
2048
1970
|
{
|
|
2049
1971
|
"data-slot": "radio-group",
|
|
@@ -2053,21 +1975,21 @@ function RadioGroup({ className, ...props }) {
|
|
|
2053
1975
|
);
|
|
2054
1976
|
}
|
|
2055
1977
|
function RadioGroupItem({ className, ...props }) {
|
|
2056
|
-
return /* @__PURE__ */
|
|
1978
|
+
return /* @__PURE__ */ jsx31(
|
|
2057
1979
|
RadioPrimitive.Root,
|
|
2058
1980
|
{
|
|
2059
1981
|
"data-slot": "radio-group-item",
|
|
2060
1982
|
className: cn(
|
|
2061
|
-
"aspect-square size-4 shrink-0 cursor-pointer rounded-full border border-
|
|
1983
|
+
"aspect-square size-4 shrink-0 cursor-pointer inline-flex items-center justify-center rounded-full border border-(color:--radio-border) shadow-xs transition-colors outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-checked:border-(color:--radio-checked)",
|
|
2062
1984
|
className
|
|
2063
1985
|
),
|
|
2064
1986
|
...props,
|
|
2065
|
-
children: /* @__PURE__ */
|
|
1987
|
+
children: /* @__PURE__ */ jsx31(
|
|
2066
1988
|
RadioPrimitive.Indicator,
|
|
2067
1989
|
{
|
|
2068
1990
|
"data-slot": "radio-group-indicator",
|
|
2069
1991
|
className: "flex items-center justify-center",
|
|
2070
|
-
children: /* @__PURE__ */
|
|
1992
|
+
children: /* @__PURE__ */ jsx31("span", { className: "size-2 rounded-full bg-(--radio-checked)" })
|
|
2071
1993
|
}
|
|
2072
1994
|
)
|
|
2073
1995
|
}
|
|
@@ -2081,12 +2003,12 @@ import {
|
|
|
2081
2003
|
Panel as PanelPrimitive,
|
|
2082
2004
|
Separator as PanelResizeHandlePrimitive
|
|
2083
2005
|
} from "react-resizable-panels";
|
|
2084
|
-
import { jsx as
|
|
2006
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
2085
2007
|
function PanelGroup({
|
|
2086
2008
|
className,
|
|
2087
2009
|
...props
|
|
2088
2010
|
}) {
|
|
2089
|
-
return /* @__PURE__ */
|
|
2011
|
+
return /* @__PURE__ */ jsx32(
|
|
2090
2012
|
PanelGroupPrimitive,
|
|
2091
2013
|
{
|
|
2092
2014
|
"data-slot": "resizable-panel-group",
|
|
@@ -2099,14 +2021,14 @@ function PanelGroup({
|
|
|
2099
2021
|
);
|
|
2100
2022
|
}
|
|
2101
2023
|
function Panel({ ...props }) {
|
|
2102
|
-
return /* @__PURE__ */
|
|
2024
|
+
return /* @__PURE__ */ jsx32(PanelPrimitive, { "data-slot": "resizable-panel", ...props });
|
|
2103
2025
|
}
|
|
2104
2026
|
function ResizableHandle({
|
|
2105
2027
|
withHandle,
|
|
2106
2028
|
className,
|
|
2107
2029
|
...props
|
|
2108
2030
|
}) {
|
|
2109
|
-
return /* @__PURE__ */
|
|
2031
|
+
return /* @__PURE__ */ jsx32(
|
|
2110
2032
|
PanelResizeHandlePrimitive,
|
|
2111
2033
|
{
|
|
2112
2034
|
"data-slot": "resizable-handle",
|
|
@@ -2115,27 +2037,27 @@ function ResizableHandle({
|
|
|
2115
2037
|
className
|
|
2116
2038
|
),
|
|
2117
2039
|
...props,
|
|
2118
|
-
children: withHandle ? /* @__PURE__ */
|
|
2040
|
+
children: withHandle ? /* @__PURE__ */ jsx32("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-xs border border-border bg-border", children: /* @__PURE__ */ jsx32(GripVerticalIcon, { className: "size-2.5" }) }) : null
|
|
2119
2041
|
}
|
|
2120
2042
|
);
|
|
2121
2043
|
}
|
|
2122
2044
|
|
|
2123
2045
|
// src/ui/scroll-area.tsx
|
|
2124
2046
|
import { ScrollArea as ScrollAreaPrimitive } from "@base-ui/react/scroll-area";
|
|
2125
|
-
import { jsx as
|
|
2047
|
+
import { jsx as jsx33, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2126
2048
|
function ScrollArea({
|
|
2127
2049
|
className,
|
|
2128
2050
|
children,
|
|
2129
2051
|
...props
|
|
2130
2052
|
}) {
|
|
2131
|
-
return /* @__PURE__ */
|
|
2053
|
+
return /* @__PURE__ */ jsxs11(
|
|
2132
2054
|
ScrollAreaPrimitive.Root,
|
|
2133
2055
|
{
|
|
2134
2056
|
"data-slot": "scroll-area",
|
|
2135
2057
|
className: cn("relative overflow-hidden", className),
|
|
2136
2058
|
...props,
|
|
2137
2059
|
children: [
|
|
2138
|
-
/* @__PURE__ */
|
|
2060
|
+
/* @__PURE__ */ jsx33(
|
|
2139
2061
|
ScrollAreaPrimitive.Viewport,
|
|
2140
2062
|
{
|
|
2141
2063
|
"data-slot": "scroll-area-viewport",
|
|
@@ -2143,8 +2065,8 @@ function ScrollArea({
|
|
|
2143
2065
|
children
|
|
2144
2066
|
}
|
|
2145
2067
|
),
|
|
2146
|
-
/* @__PURE__ */
|
|
2147
|
-
/* @__PURE__ */
|
|
2068
|
+
/* @__PURE__ */ jsx33(ScrollBar, {}),
|
|
2069
|
+
/* @__PURE__ */ jsx33(ScrollAreaPrimitive.Corner, {})
|
|
2148
2070
|
]
|
|
2149
2071
|
}
|
|
2150
2072
|
);
|
|
@@ -2154,7 +2076,7 @@ function ScrollBar({
|
|
|
2154
2076
|
orientation = "vertical",
|
|
2155
2077
|
...props
|
|
2156
2078
|
}) {
|
|
2157
|
-
return /* @__PURE__ */
|
|
2079
|
+
return /* @__PURE__ */ jsx33(
|
|
2158
2080
|
ScrollAreaPrimitive.Scrollbar,
|
|
2159
2081
|
{
|
|
2160
2082
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -2166,7 +2088,7 @@ function ScrollBar({
|
|
|
2166
2088
|
className
|
|
2167
2089
|
),
|
|
2168
2090
|
...props,
|
|
2169
|
-
children: /* @__PURE__ */
|
|
2091
|
+
children: /* @__PURE__ */ jsx33(
|
|
2170
2092
|
ScrollAreaPrimitive.Thumb,
|
|
2171
2093
|
{
|
|
2172
2094
|
"data-slot": "scroll-area-thumb",
|
|
@@ -2180,17 +2102,17 @@ function ScrollBar({
|
|
|
2180
2102
|
// src/ui/select.tsx
|
|
2181
2103
|
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
2182
2104
|
import { CheckIcon as CheckIcon2, ChevronDownIcon as ChevronDownIcon3, ChevronUpIcon } from "lucide-react";
|
|
2183
|
-
import { jsx as
|
|
2105
|
+
import { jsx as jsx34, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2184
2106
|
var Select = SelectPrimitive.Root;
|
|
2185
2107
|
function SelectGroup({
|
|
2186
2108
|
...props
|
|
2187
2109
|
}) {
|
|
2188
|
-
return /* @__PURE__ */
|
|
2110
|
+
return /* @__PURE__ */ jsx34(SelectPrimitive.Group, { "data-slot": "select-group", ...props });
|
|
2189
2111
|
}
|
|
2190
2112
|
function SelectValue({
|
|
2191
2113
|
...props
|
|
2192
2114
|
}) {
|
|
2193
|
-
return /* @__PURE__ */
|
|
2115
|
+
return /* @__PURE__ */ jsx34(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
|
|
2194
2116
|
}
|
|
2195
2117
|
function SelectTrigger({
|
|
2196
2118
|
className,
|
|
@@ -2198,7 +2120,7 @@ function SelectTrigger({
|
|
|
2198
2120
|
children,
|
|
2199
2121
|
...props
|
|
2200
2122
|
}) {
|
|
2201
|
-
return /* @__PURE__ */
|
|
2123
|
+
return /* @__PURE__ */ jsxs12(
|
|
2202
2124
|
SelectPrimitive.Trigger,
|
|
2203
2125
|
{
|
|
2204
2126
|
"data-slot": "select-trigger",
|
|
@@ -2210,10 +2132,10 @@ function SelectTrigger({
|
|
|
2210
2132
|
...props,
|
|
2211
2133
|
children: [
|
|
2212
2134
|
children,
|
|
2213
|
-
/* @__PURE__ */
|
|
2135
|
+
/* @__PURE__ */ jsx34(
|
|
2214
2136
|
SelectPrimitive.Icon,
|
|
2215
2137
|
{
|
|
2216
|
-
render: /* @__PURE__ */
|
|
2138
|
+
render: /* @__PURE__ */ jsx34(ChevronDownIcon3, { className: "size-4 opacity-50" })
|
|
2217
2139
|
}
|
|
2218
2140
|
)
|
|
2219
2141
|
]
|
|
@@ -2229,7 +2151,7 @@ function SelectContent({
|
|
|
2229
2151
|
alignItemWithTrigger = false,
|
|
2230
2152
|
...props
|
|
2231
2153
|
}) {
|
|
2232
|
-
return /* @__PURE__ */
|
|
2154
|
+
return /* @__PURE__ */ jsx34(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx34(
|
|
2233
2155
|
SelectPrimitive.Positioner,
|
|
2234
2156
|
{
|
|
2235
2157
|
side,
|
|
@@ -2237,19 +2159,19 @@ function SelectContent({
|
|
|
2237
2159
|
align,
|
|
2238
2160
|
alignItemWithTrigger,
|
|
2239
2161
|
className: "isolate z-50",
|
|
2240
|
-
children: /* @__PURE__ */
|
|
2162
|
+
children: /* @__PURE__ */ jsxs12(
|
|
2241
2163
|
SelectPrimitive.Popup,
|
|
2242
2164
|
{
|
|
2243
2165
|
"data-slot": "select-content",
|
|
2244
2166
|
className: cn(
|
|
2245
|
-
"relative z-50 max-h-96 min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border border-border bg-popover text-popover-foreground shadow-md duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
2167
|
+
"relative z-50 max-h-96 min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border border-border bg-popover text-popover-foreground shadow-md shadow-(color:--shadow-color) duration-200 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
2246
2168
|
className
|
|
2247
2169
|
),
|
|
2248
2170
|
...props,
|
|
2249
2171
|
children: [
|
|
2250
|
-
/* @__PURE__ */
|
|
2251
|
-
/* @__PURE__ */
|
|
2252
|
-
/* @__PURE__ */
|
|
2172
|
+
/* @__PURE__ */ jsx34(SelectScrollUpButton, {}),
|
|
2173
|
+
/* @__PURE__ */ jsx34(SelectPrimitive.List, { className: "p-1", children }),
|
|
2174
|
+
/* @__PURE__ */ jsx34(SelectScrollDownButton, {})
|
|
2253
2175
|
]
|
|
2254
2176
|
}
|
|
2255
2177
|
)
|
|
@@ -2260,7 +2182,7 @@ function SelectLabel({
|
|
|
2260
2182
|
className,
|
|
2261
2183
|
...props
|
|
2262
2184
|
}) {
|
|
2263
|
-
return /* @__PURE__ */
|
|
2185
|
+
return /* @__PURE__ */ jsx34(
|
|
2264
2186
|
SelectPrimitive.GroupLabel,
|
|
2265
2187
|
{
|
|
2266
2188
|
"data-slot": "select-label",
|
|
@@ -2274,18 +2196,18 @@ function SelectItem({
|
|
|
2274
2196
|
children,
|
|
2275
2197
|
...props
|
|
2276
2198
|
}) {
|
|
2277
|
-
return /* @__PURE__ */
|
|
2199
|
+
return /* @__PURE__ */ jsxs12(
|
|
2278
2200
|
SelectPrimitive.Item,
|
|
2279
2201
|
{
|
|
2280
2202
|
"data-slot": "select-item",
|
|
2281
2203
|
className: cn(
|
|
2282
|
-
"relative flex w-full cursor-pointer items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none select-none focus:bg-
|
|
2204
|
+
"relative flex w-full cursor-pointer items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none select-none focus:bg-(--menu-hover-background) focus:text-(--menu-hover-foreground) data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
2283
2205
|
className
|
|
2284
2206
|
),
|
|
2285
2207
|
...props,
|
|
2286
2208
|
children: [
|
|
2287
|
-
/* @__PURE__ */
|
|
2288
|
-
/* @__PURE__ */
|
|
2209
|
+
/* @__PURE__ */ jsx34("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx34(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx34(CheckIcon2, { className: "size-4" }) }) }),
|
|
2210
|
+
/* @__PURE__ */ jsx34(SelectPrimitive.ItemText, { children })
|
|
2289
2211
|
]
|
|
2290
2212
|
}
|
|
2291
2213
|
);
|
|
@@ -2294,7 +2216,7 @@ function SelectSeparator({
|
|
|
2294
2216
|
className,
|
|
2295
2217
|
...props
|
|
2296
2218
|
}) {
|
|
2297
|
-
return /* @__PURE__ */
|
|
2219
|
+
return /* @__PURE__ */ jsx34(
|
|
2298
2220
|
SelectPrimitive.Separator,
|
|
2299
2221
|
{
|
|
2300
2222
|
"data-slot": "select-separator",
|
|
@@ -2307,7 +2229,7 @@ function SelectScrollUpButton({
|
|
|
2307
2229
|
className,
|
|
2308
2230
|
...props
|
|
2309
2231
|
}) {
|
|
2310
|
-
return /* @__PURE__ */
|
|
2232
|
+
return /* @__PURE__ */ jsx34(
|
|
2311
2233
|
SelectPrimitive.ScrollUpArrow,
|
|
2312
2234
|
{
|
|
2313
2235
|
"data-slot": "select-scroll-up-button",
|
|
@@ -2316,7 +2238,7 @@ function SelectScrollUpButton({
|
|
|
2316
2238
|
className
|
|
2317
2239
|
),
|
|
2318
2240
|
...props,
|
|
2319
|
-
children: /* @__PURE__ */
|
|
2241
|
+
children: /* @__PURE__ */ jsx34(ChevronUpIcon, { className: "size-4" })
|
|
2320
2242
|
}
|
|
2321
2243
|
);
|
|
2322
2244
|
}
|
|
@@ -2324,7 +2246,7 @@ function SelectScrollDownButton({
|
|
|
2324
2246
|
className,
|
|
2325
2247
|
...props
|
|
2326
2248
|
}) {
|
|
2327
|
-
return /* @__PURE__ */
|
|
2249
|
+
return /* @__PURE__ */ jsx34(
|
|
2328
2250
|
SelectPrimitive.ScrollDownArrow,
|
|
2329
2251
|
{
|
|
2330
2252
|
"data-slot": "select-scroll-down-button",
|
|
@@ -2333,194 +2255,16 @@ function SelectScrollDownButton({
|
|
|
2333
2255
|
className
|
|
2334
2256
|
),
|
|
2335
2257
|
...props,
|
|
2336
|
-
children: /* @__PURE__ */
|
|
2337
|
-
}
|
|
2338
|
-
);
|
|
2339
|
-
}
|
|
2340
|
-
|
|
2341
|
-
// src/ui/separator.tsx
|
|
2342
|
-
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
2343
|
-
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2344
|
-
function Separator({
|
|
2345
|
-
className,
|
|
2346
|
-
orientation = "horizontal",
|
|
2347
|
-
decorative: _decorative,
|
|
2348
|
-
...props
|
|
2349
|
-
}) {
|
|
2350
|
-
return /* @__PURE__ */ jsx37(
|
|
2351
|
-
SeparatorPrimitive,
|
|
2352
|
-
{
|
|
2353
|
-
"data-slot": "separator",
|
|
2354
|
-
orientation,
|
|
2355
|
-
className: cn(
|
|
2356
|
-
"shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
2357
|
-
className
|
|
2358
|
-
),
|
|
2359
|
-
...props
|
|
2360
|
-
}
|
|
2361
|
-
);
|
|
2362
|
-
}
|
|
2363
|
-
|
|
2364
|
-
// src/ui/sheet.tsx
|
|
2365
|
-
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
2366
|
-
import { XIcon } from "lucide-react";
|
|
2367
|
-
import { cva as cva4 } from "class-variance-authority";
|
|
2368
|
-
import { jsx as jsx38, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2369
|
-
function Sheet({
|
|
2370
|
-
...props
|
|
2371
|
-
}) {
|
|
2372
|
-
return /* @__PURE__ */ jsx38(DialogPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
2373
|
-
}
|
|
2374
|
-
function SheetTrigger({
|
|
2375
|
-
...props
|
|
2376
|
-
}) {
|
|
2377
|
-
return /* @__PURE__ */ jsx38(DialogPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
2378
|
-
}
|
|
2379
|
-
function SheetClose({
|
|
2380
|
-
...props
|
|
2381
|
-
}) {
|
|
2382
|
-
return /* @__PURE__ */ jsx38(DialogPrimitive.Close, { "data-slot": "sheet-close", ...props });
|
|
2383
|
-
}
|
|
2384
|
-
function SheetPortal({
|
|
2385
|
-
...props
|
|
2386
|
-
}) {
|
|
2387
|
-
return /* @__PURE__ */ jsx38(DialogPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
2388
|
-
}
|
|
2389
|
-
function SheetOverlay({
|
|
2390
|
-
className,
|
|
2391
|
-
...props
|
|
2392
|
-
}) {
|
|
2393
|
-
return /* @__PURE__ */ jsx38(
|
|
2394
|
-
DialogPrimitive.Backdrop,
|
|
2395
|
-
{
|
|
2396
|
-
"data-slot": "sheet-overlay",
|
|
2397
|
-
className: cn(
|
|
2398
|
-
"fixed inset-0 z-50 bg-black/50 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
|
|
2399
|
-
className
|
|
2400
|
-
),
|
|
2401
|
-
...props
|
|
2402
|
-
}
|
|
2403
|
-
);
|
|
2404
|
-
}
|
|
2405
|
-
var sheetVariants = cva4(
|
|
2406
|
-
"fixed z-50 flex flex-col gap-4 border-border bg-background shadow-lg transition ease-in-out data-open:animate-in data-open:duration-300 data-closed:animate-out data-closed:duration-200",
|
|
2407
|
-
{
|
|
2408
|
-
variants: {
|
|
2409
|
-
side: {
|
|
2410
|
-
right: "inset-y-0 right-0 h-full w-3/4 border-l data-open:slide-in-from-right data-closed:slide-out-to-right sm:max-w-sm",
|
|
2411
|
-
left: "inset-y-0 left-0 h-full w-3/4 border-r data-open:slide-in-from-left data-closed:slide-out-to-left sm:max-w-sm",
|
|
2412
|
-
top: "inset-x-0 top-0 border-b data-open:slide-in-from-top data-closed:slide-out-to-top",
|
|
2413
|
-
bottom: "inset-x-0 bottom-0 border-t data-open:slide-in-from-bottom data-closed:slide-out-to-bottom"
|
|
2414
|
-
}
|
|
2415
|
-
},
|
|
2416
|
-
defaultVariants: {
|
|
2417
|
-
side: "right"
|
|
2418
|
-
}
|
|
2419
|
-
}
|
|
2420
|
-
);
|
|
2421
|
-
function SheetContent({
|
|
2422
|
-
className,
|
|
2423
|
-
children,
|
|
2424
|
-
side = "right",
|
|
2425
|
-
...props
|
|
2426
|
-
}) {
|
|
2427
|
-
return /* @__PURE__ */ jsxs14(SheetPortal, { "data-slot": "sheet-portal", children: [
|
|
2428
|
-
/* @__PURE__ */ jsx38(SheetOverlay, {}),
|
|
2429
|
-
/* @__PURE__ */ jsxs14(
|
|
2430
|
-
DialogPrimitive.Popup,
|
|
2431
|
-
{
|
|
2432
|
-
"data-slot": "sheet-content",
|
|
2433
|
-
className: cn(sheetVariants({ side }), className),
|
|
2434
|
-
...props,
|
|
2435
|
-
children: [
|
|
2436
|
-
children,
|
|
2437
|
-
/* @__PURE__ */ jsxs14(
|
|
2438
|
-
DialogPrimitive.Close,
|
|
2439
|
-
{
|
|
2440
|
-
"data-slot": "sheet-close",
|
|
2441
|
-
render: /* @__PURE__ */ jsx38(
|
|
2442
|
-
"button",
|
|
2443
|
-
{
|
|
2444
|
-
type: "button",
|
|
2445
|
-
className: "absolute top-4 right-4 cursor-pointer rounded-xs opacity-70 transition-opacity hover:opacity-100 focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4"
|
|
2446
|
-
}
|
|
2447
|
-
),
|
|
2448
|
-
children: [
|
|
2449
|
-
/* @__PURE__ */ jsx38(XIcon, {}),
|
|
2450
|
-
/* @__PURE__ */ jsx38("span", { className: "sr-only", children: "Close" })
|
|
2451
|
-
]
|
|
2452
|
-
}
|
|
2453
|
-
)
|
|
2454
|
-
]
|
|
2455
|
-
}
|
|
2456
|
-
)
|
|
2457
|
-
] });
|
|
2458
|
-
}
|
|
2459
|
-
function SheetHeader({ className, ...props }) {
|
|
2460
|
-
return /* @__PURE__ */ jsx38(
|
|
2461
|
-
"div",
|
|
2462
|
-
{
|
|
2463
|
-
"data-slot": "sheet-header",
|
|
2464
|
-
className: cn("flex flex-col gap-1.5 p-4", className),
|
|
2465
|
-
...props
|
|
2466
|
-
}
|
|
2467
|
-
);
|
|
2468
|
-
}
|
|
2469
|
-
function SheetFooter({ className, ...props }) {
|
|
2470
|
-
return /* @__PURE__ */ jsx38(
|
|
2471
|
-
"div",
|
|
2472
|
-
{
|
|
2473
|
-
"data-slot": "sheet-footer",
|
|
2474
|
-
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
2475
|
-
...props
|
|
2476
|
-
}
|
|
2477
|
-
);
|
|
2478
|
-
}
|
|
2479
|
-
function SheetTitle({
|
|
2480
|
-
className,
|
|
2481
|
-
...props
|
|
2482
|
-
}) {
|
|
2483
|
-
return /* @__PURE__ */ jsx38(
|
|
2484
|
-
DialogPrimitive.Title,
|
|
2485
|
-
{
|
|
2486
|
-
"data-slot": "sheet-title",
|
|
2487
|
-
className: cn("font-semibold text-foreground", className),
|
|
2488
|
-
...props
|
|
2489
|
-
}
|
|
2490
|
-
);
|
|
2491
|
-
}
|
|
2492
|
-
function SheetDescription({
|
|
2493
|
-
className,
|
|
2494
|
-
...props
|
|
2495
|
-
}) {
|
|
2496
|
-
return /* @__PURE__ */ jsx38(
|
|
2497
|
-
DialogPrimitive.Description,
|
|
2498
|
-
{
|
|
2499
|
-
"data-slot": "sheet-description",
|
|
2500
|
-
className: cn("text-sm text-muted-foreground", className),
|
|
2501
|
-
...props
|
|
2502
|
-
}
|
|
2503
|
-
);
|
|
2504
|
-
}
|
|
2505
|
-
|
|
2506
|
-
// src/ui/skeleton.tsx
|
|
2507
|
-
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
2508
|
-
function Skeleton({ className, ...props }) {
|
|
2509
|
-
return /* @__PURE__ */ jsx39(
|
|
2510
|
-
"div",
|
|
2511
|
-
{
|
|
2512
|
-
"data-slot": "skeleton",
|
|
2513
|
-
className: cn("animate-pulse rounded-md bg-muted", className),
|
|
2514
|
-
...props
|
|
2258
|
+
children: /* @__PURE__ */ jsx34(ChevronDownIcon3, { className: "size-4" })
|
|
2515
2259
|
}
|
|
2516
2260
|
);
|
|
2517
2261
|
}
|
|
2518
2262
|
|
|
2519
2263
|
// src/ui/slider.tsx
|
|
2520
2264
|
import { Slider as SliderPrimitive } from "@base-ui/react/slider";
|
|
2521
|
-
import { jsx as
|
|
2265
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2522
2266
|
function Slider({ className, ...props }) {
|
|
2523
|
-
return /* @__PURE__ */
|
|
2267
|
+
return /* @__PURE__ */ jsx35(
|
|
2524
2268
|
SliderPrimitive.Root,
|
|
2525
2269
|
{
|
|
2526
2270
|
"data-slot": "slider",
|
|
@@ -2533,7 +2277,7 @@ function Slider({ className, ...props }) {
|
|
|
2533
2277
|
);
|
|
2534
2278
|
}
|
|
2535
2279
|
function SliderControl({ className, ...props }) {
|
|
2536
|
-
return /* @__PURE__ */
|
|
2280
|
+
return /* @__PURE__ */ jsx35(
|
|
2537
2281
|
SliderPrimitive.Control,
|
|
2538
2282
|
{
|
|
2539
2283
|
"data-slot": "slider-control",
|
|
@@ -2543,12 +2287,12 @@ function SliderControl({ className, ...props }) {
|
|
|
2543
2287
|
);
|
|
2544
2288
|
}
|
|
2545
2289
|
function SliderTrack({ className, ...props }) {
|
|
2546
|
-
return /* @__PURE__ */
|
|
2290
|
+
return /* @__PURE__ */ jsx35(
|
|
2547
2291
|
SliderPrimitive.Track,
|
|
2548
2292
|
{
|
|
2549
2293
|
"data-slot": "slider-track",
|
|
2550
2294
|
className: cn(
|
|
2551
|
-
"relative h-1.5 w-full grow overflow-hidden rounded-full bg-
|
|
2295
|
+
"relative h-1.5 w-full grow overflow-hidden rounded-full bg-(--slider-track)",
|
|
2552
2296
|
className
|
|
2553
2297
|
),
|
|
2554
2298
|
...props
|
|
@@ -2556,22 +2300,22 @@ function SliderTrack({ className, ...props }) {
|
|
|
2556
2300
|
);
|
|
2557
2301
|
}
|
|
2558
2302
|
function SliderIndicator({ className, ...props }) {
|
|
2559
|
-
return /* @__PURE__ */
|
|
2303
|
+
return /* @__PURE__ */ jsx35(
|
|
2560
2304
|
SliderPrimitive.Indicator,
|
|
2561
2305
|
{
|
|
2562
2306
|
"data-slot": "slider-indicator",
|
|
2563
|
-
className: cn("absolute h-full bg-
|
|
2307
|
+
className: cn("absolute h-full bg-(--slider-range)", className),
|
|
2564
2308
|
...props
|
|
2565
2309
|
}
|
|
2566
2310
|
);
|
|
2567
2311
|
}
|
|
2568
2312
|
function SliderThumb({ className, ...props }) {
|
|
2569
|
-
return /* @__PURE__ */
|
|
2313
|
+
return /* @__PURE__ */ jsx35(
|
|
2570
2314
|
SliderPrimitive.Thumb,
|
|
2571
2315
|
{
|
|
2572
2316
|
"data-slot": "slider-thumb",
|
|
2573
2317
|
className: cn(
|
|
2574
|
-
"block size-4 shrink-0 cursor-grab rounded-full border border-primary bg-
|
|
2318
|
+
"block size-4 shrink-0 cursor-grab rounded-full border border-primary bg-(--slider-thumb) shadow-sm transition-colors focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none active:cursor-grabbing disabled:pointer-events-none disabled:opacity-50",
|
|
2575
2319
|
className
|
|
2576
2320
|
),
|
|
2577
2321
|
...props
|
|
@@ -2581,8 +2325,8 @@ function SliderThumb({ className, ...props }) {
|
|
|
2581
2325
|
|
|
2582
2326
|
// src/ui/toast.tsx
|
|
2583
2327
|
import { Toast as ToastPrimitive } from "@base-ui/react/toast";
|
|
2584
|
-
import { XIcon
|
|
2585
|
-
import { jsx as
|
|
2328
|
+
import { XIcon } from "lucide-react";
|
|
2329
|
+
import { jsx as jsx36, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2586
2330
|
var toastManager = ToastPrimitive.createToastManager();
|
|
2587
2331
|
function toast(message, options = {}) {
|
|
2588
2332
|
return toastManager.add({
|
|
@@ -2598,7 +2342,7 @@ var toastVariantClass = {
|
|
|
2598
2342
|
};
|
|
2599
2343
|
function ToasterViewport({ className }) {
|
|
2600
2344
|
const { toasts } = ToastPrimitive.useToastManager();
|
|
2601
|
-
return /* @__PURE__ */
|
|
2345
|
+
return /* @__PURE__ */ jsx36(ToastPrimitive.Portal, { children: /* @__PURE__ */ jsx36(
|
|
2602
2346
|
ToastPrimitive.Viewport,
|
|
2603
2347
|
{
|
|
2604
2348
|
"data-slot": "toast-viewport",
|
|
@@ -2606,26 +2350,26 @@ function ToasterViewport({ className }) {
|
|
|
2606
2350
|
"fixed top-4 right-4 z-[100] flex w-80 flex-col gap-2 outline-none",
|
|
2607
2351
|
className
|
|
2608
2352
|
),
|
|
2609
|
-
children: toasts.map((item) => /* @__PURE__ */
|
|
2353
|
+
children: toasts.map((item) => /* @__PURE__ */ jsx36(
|
|
2610
2354
|
ToastPrimitive.Root,
|
|
2611
2355
|
{
|
|
2612
2356
|
toast: item,
|
|
2613
2357
|
"data-slot": "toast",
|
|
2614
2358
|
"data-type": item.type ?? "info",
|
|
2615
2359
|
className: cn(
|
|
2616
|
-
"rounded-md border border-border bg-popover px-4 py-3 text-sm text-popover-foreground shadow-md transition-[opacity,transform] duration-200 data-ending-style:animate-toast-out data-starting-style:animate-toast-in",
|
|
2360
|
+
"rounded-md border border-border bg-popover px-4 py-3 text-sm text-popover-foreground shadow-md shadow-(color:--shadow-color) transition-[opacity,transform] duration-200 data-ending-style:animate-toast-out data-starting-style:animate-toast-in",
|
|
2617
2361
|
toastVariantClass[item.type ?? "info"] ?? toastVariantClass.info
|
|
2618
2362
|
),
|
|
2619
|
-
children: /* @__PURE__ */
|
|
2620
|
-
/* @__PURE__ */
|
|
2621
|
-
/* @__PURE__ */
|
|
2363
|
+
children: /* @__PURE__ */ jsxs13(ToastPrimitive.Content, { className: "flex items-start justify-between gap-2", children: [
|
|
2364
|
+
/* @__PURE__ */ jsxs13("div", { className: "grid gap-0.5", children: [
|
|
2365
|
+
/* @__PURE__ */ jsx36(
|
|
2622
2366
|
ToastPrimitive.Title,
|
|
2623
2367
|
{
|
|
2624
2368
|
"data-slot": "toast-title",
|
|
2625
2369
|
className: "font-medium"
|
|
2626
2370
|
}
|
|
2627
2371
|
),
|
|
2628
|
-
/* @__PURE__ */
|
|
2372
|
+
/* @__PURE__ */ jsx36(
|
|
2629
2373
|
ToastPrimitive.Description,
|
|
2630
2374
|
{
|
|
2631
2375
|
"data-slot": "toast-description",
|
|
@@ -2633,13 +2377,13 @@ function ToasterViewport({ className }) {
|
|
|
2633
2377
|
}
|
|
2634
2378
|
)
|
|
2635
2379
|
] }),
|
|
2636
|
-
/* @__PURE__ */
|
|
2380
|
+
/* @__PURE__ */ jsx36(
|
|
2637
2381
|
ToastPrimitive.Close,
|
|
2638
2382
|
{
|
|
2639
2383
|
"data-slot": "toast-close",
|
|
2640
2384
|
"aria-label": "Close",
|
|
2641
2385
|
className: "cursor-pointer rounded-xs opacity-70 transition-opacity hover:opacity-100 focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none [&_svg]:size-3.5",
|
|
2642
|
-
children: /* @__PURE__ */
|
|
2386
|
+
children: /* @__PURE__ */ jsx36(XIcon, {})
|
|
2643
2387
|
}
|
|
2644
2388
|
)
|
|
2645
2389
|
] })
|
|
@@ -2650,14 +2394,14 @@ function ToasterViewport({ className }) {
|
|
|
2650
2394
|
) });
|
|
2651
2395
|
}
|
|
2652
2396
|
function Toaster({ className }) {
|
|
2653
|
-
return /* @__PURE__ */
|
|
2397
|
+
return /* @__PURE__ */ jsx36(ToastPrimitive.Provider, { toastManager, children: /* @__PURE__ */ jsx36(ToasterViewport, { className }) });
|
|
2654
2398
|
}
|
|
2655
2399
|
|
|
2656
2400
|
// src/ui/spinner.tsx
|
|
2657
2401
|
import { Loader2Icon } from "lucide-react";
|
|
2658
|
-
import { jsx as
|
|
2402
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2659
2403
|
function Spinner({ className, ...props }) {
|
|
2660
|
-
return /* @__PURE__ */
|
|
2404
|
+
return /* @__PURE__ */ jsx37(
|
|
2661
2405
|
Loader2Icon,
|
|
2662
2406
|
{
|
|
2663
2407
|
role: "status",
|
|
@@ -2671,22 +2415,22 @@ function Spinner({ className, ...props }) {
|
|
|
2671
2415
|
|
|
2672
2416
|
// src/ui/switch.tsx
|
|
2673
2417
|
import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
|
|
2674
|
-
import { jsx as
|
|
2418
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2675
2419
|
function Switch({ className, ...props }) {
|
|
2676
|
-
return /* @__PURE__ */
|
|
2420
|
+
return /* @__PURE__ */ jsx38(
|
|
2677
2421
|
SwitchPrimitive.Root,
|
|
2678
2422
|
{
|
|
2679
2423
|
"data-slot": "switch",
|
|
2680
2424
|
className: cn(
|
|
2681
|
-
"inline-flex h-[1.15rem] w-8 shrink-0 cursor-pointer items-center rounded-full border border-transparent shadow-xs transition-colors outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-checked:bg-
|
|
2425
|
+
"inline-flex h-[1.15rem] w-8 shrink-0 cursor-pointer items-center rounded-full border border-transparent shadow-xs transition-colors outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-checked:bg-(--switch-track-checked) data-unchecked:bg-(--switch-track)",
|
|
2682
2426
|
className
|
|
2683
2427
|
),
|
|
2684
2428
|
...props,
|
|
2685
|
-
children: /* @__PURE__ */
|
|
2429
|
+
children: /* @__PURE__ */ jsx38(
|
|
2686
2430
|
SwitchPrimitive.Thumb,
|
|
2687
2431
|
{
|
|
2688
2432
|
"data-slot": "switch-thumb",
|
|
2689
|
-
className: "pointer-events-none block size-4 rounded-full bg-
|
|
2433
|
+
className: "pointer-events-none block size-4 rounded-full bg-(--switch-thumb) transition-transform data-checked:translate-x-[calc(100%-2px)] data-unchecked:translate-x-0"
|
|
2690
2434
|
}
|
|
2691
2435
|
)
|
|
2692
2436
|
}
|
|
@@ -2695,12 +2439,12 @@ function Switch({ className, ...props }) {
|
|
|
2695
2439
|
|
|
2696
2440
|
// src/ui/tabs.tsx
|
|
2697
2441
|
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
2698
|
-
import { jsx as
|
|
2442
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
2699
2443
|
function Tabs({
|
|
2700
2444
|
className,
|
|
2701
2445
|
...props
|
|
2702
2446
|
}) {
|
|
2703
|
-
return /* @__PURE__ */
|
|
2447
|
+
return /* @__PURE__ */ jsx39(
|
|
2704
2448
|
TabsPrimitive.Root,
|
|
2705
2449
|
{
|
|
2706
2450
|
"data-slot": "tabs",
|
|
@@ -2713,7 +2457,7 @@ function TabsList({
|
|
|
2713
2457
|
className,
|
|
2714
2458
|
...props
|
|
2715
2459
|
}) {
|
|
2716
|
-
return /* @__PURE__ */
|
|
2460
|
+
return /* @__PURE__ */ jsx39(
|
|
2717
2461
|
TabsPrimitive.List,
|
|
2718
2462
|
{
|
|
2719
2463
|
"data-slot": "tabs-list",
|
|
@@ -2729,12 +2473,12 @@ function TabsTrigger({
|
|
|
2729
2473
|
className,
|
|
2730
2474
|
...props
|
|
2731
2475
|
}) {
|
|
2732
|
-
return /* @__PURE__ */
|
|
2476
|
+
return /* @__PURE__ */ jsx39(
|
|
2733
2477
|
TabsPrimitive.Tab,
|
|
2734
2478
|
{
|
|
2735
2479
|
"data-slot": "tabs-trigger",
|
|
2736
2480
|
className: cn(
|
|
2737
|
-
"inline-flex h-[calc(100%-1px)] flex-1 cursor-pointer items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-active:border-border data-active:bg-
|
|
2481
|
+
"inline-flex h-[calc(100%-1px)] flex-1 cursor-pointer items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-active:border-border data-active:bg-card data-active:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
2738
2482
|
className
|
|
2739
2483
|
),
|
|
2740
2484
|
...props
|
|
@@ -2745,7 +2489,7 @@ function TabsContent({
|
|
|
2745
2489
|
className,
|
|
2746
2490
|
...props
|
|
2747
2491
|
}) {
|
|
2748
|
-
return /* @__PURE__ */
|
|
2492
|
+
return /* @__PURE__ */ jsx39(
|
|
2749
2493
|
TabsPrimitive.Panel,
|
|
2750
2494
|
{
|
|
2751
2495
|
"data-slot": "tabs-content",
|
|
@@ -2757,9 +2501,9 @@ function TabsContent({
|
|
|
2757
2501
|
|
|
2758
2502
|
// src/ui/toggle.tsx
|
|
2759
2503
|
import { Toggle as TogglePrimitive } from "@base-ui/react/toggle";
|
|
2760
|
-
import { cva as
|
|
2761
|
-
import { jsx as
|
|
2762
|
-
var toggleVariants =
|
|
2504
|
+
import { cva as cva4 } from "class-variance-authority";
|
|
2505
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
2506
|
+
var toggleVariants = cva4(
|
|
2763
2507
|
"inline-flex cursor-pointer items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-colors outline-none hover:bg-muted hover:text-muted-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-pressed:bg-accent data-pressed:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
2764
2508
|
{
|
|
2765
2509
|
variants: {
|
|
@@ -2785,7 +2529,7 @@ function Toggle({
|
|
|
2785
2529
|
size,
|
|
2786
2530
|
...props
|
|
2787
2531
|
}) {
|
|
2788
|
-
return /* @__PURE__ */
|
|
2532
|
+
return /* @__PURE__ */ jsx40(
|
|
2789
2533
|
TogglePrimitive,
|
|
2790
2534
|
{
|
|
2791
2535
|
"data-slot": "toggle",
|
|
@@ -2799,7 +2543,7 @@ function Toggle({
|
|
|
2799
2543
|
import { Toggle as TogglePrimitive2 } from "@base-ui/react/toggle";
|
|
2800
2544
|
import { ToggleGroup as ToggleGroupPrimitive } from "@base-ui/react/toggle-group";
|
|
2801
2545
|
import * as React3 from "react";
|
|
2802
|
-
import { jsx as
|
|
2546
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
2803
2547
|
var ToggleGroupContext = React3.createContext({
|
|
2804
2548
|
size: "default",
|
|
2805
2549
|
variant: "default"
|
|
@@ -2811,7 +2555,7 @@ function ToggleGroup({
|
|
|
2811
2555
|
children,
|
|
2812
2556
|
...props
|
|
2813
2557
|
}) {
|
|
2814
|
-
return /* @__PURE__ */
|
|
2558
|
+
return /* @__PURE__ */ jsx41(
|
|
2815
2559
|
ToggleGroupPrimitive,
|
|
2816
2560
|
{
|
|
2817
2561
|
"data-slot": "toggle-group",
|
|
@@ -2822,7 +2566,7 @@ function ToggleGroup({
|
|
|
2822
2566
|
className
|
|
2823
2567
|
),
|
|
2824
2568
|
...props,
|
|
2825
|
-
children: /* @__PURE__ */
|
|
2569
|
+
children: /* @__PURE__ */ jsx41(ToggleGroupContext.Provider, { value: { variant, size }, children })
|
|
2826
2570
|
}
|
|
2827
2571
|
);
|
|
2828
2572
|
}
|
|
@@ -2834,7 +2578,7 @@ function ToggleGroupItem({
|
|
|
2834
2578
|
...props
|
|
2835
2579
|
}) {
|
|
2836
2580
|
const context = React3.useContext(ToggleGroupContext);
|
|
2837
|
-
return /* @__PURE__ */
|
|
2581
|
+
return /* @__PURE__ */ jsx41(
|
|
2838
2582
|
TogglePrimitive2,
|
|
2839
2583
|
{
|
|
2840
2584
|
"data-slot": "toggle-group-item",
|
|
@@ -2855,9 +2599,9 @@ function ToggleGroupItem({
|
|
|
2855
2599
|
}
|
|
2856
2600
|
|
|
2857
2601
|
// src/ui/typography.tsx
|
|
2858
|
-
import { cva as
|
|
2859
|
-
import { jsx as
|
|
2860
|
-
var typographyVariants =
|
|
2602
|
+
import { cva as cva5 } from "class-variance-authority";
|
|
2603
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
2604
|
+
var typographyVariants = cva5("", {
|
|
2861
2605
|
variants: {
|
|
2862
2606
|
variant: {
|
|
2863
2607
|
h1: "scroll-m-20 text-4xl font-extrabold tracking-tight text-balance",
|
|
@@ -2892,7 +2636,7 @@ var variantTagMap = {
|
|
|
2892
2636
|
};
|
|
2893
2637
|
function Typography({ className, variant = "p", ...props }) {
|
|
2894
2638
|
const Tag = variantTagMap[variant ?? "p"];
|
|
2895
|
-
return /* @__PURE__ */
|
|
2639
|
+
return /* @__PURE__ */ jsx42(
|
|
2896
2640
|
Tag,
|
|
2897
2641
|
{
|
|
2898
2642
|
"data-slot": "typography",
|
|
@@ -2961,7 +2705,6 @@ export {
|
|
|
2961
2705
|
ContextMenuContent,
|
|
2962
2706
|
ContextMenuItem,
|
|
2963
2707
|
ContextMenuSeparator,
|
|
2964
|
-
Input,
|
|
2965
2708
|
Table,
|
|
2966
2709
|
TableHeader,
|
|
2967
2710
|
TableBody,
|
|
@@ -3005,10 +2748,6 @@ export {
|
|
|
3005
2748
|
ItemActions,
|
|
3006
2749
|
Kbd,
|
|
3007
2750
|
Label,
|
|
3008
|
-
TooltipProvider,
|
|
3009
|
-
Tooltip,
|
|
3010
|
-
TooltipTrigger,
|
|
3011
|
-
TooltipContent,
|
|
3012
2751
|
Menubar,
|
|
3013
2752
|
MenubarMenu,
|
|
3014
2753
|
MenubarTrigger,
|
|
@@ -3050,18 +2789,6 @@ export {
|
|
|
3050
2789
|
SelectSeparator,
|
|
3051
2790
|
SelectScrollUpButton,
|
|
3052
2791
|
SelectScrollDownButton,
|
|
3053
|
-
Separator,
|
|
3054
|
-
Sheet,
|
|
3055
|
-
SheetTrigger,
|
|
3056
|
-
SheetClose,
|
|
3057
|
-
SheetPortal,
|
|
3058
|
-
SheetOverlay,
|
|
3059
|
-
SheetContent,
|
|
3060
|
-
SheetHeader,
|
|
3061
|
-
SheetFooter,
|
|
3062
|
-
SheetTitle,
|
|
3063
|
-
SheetDescription,
|
|
3064
|
-
Skeleton,
|
|
3065
2792
|
Slider,
|
|
3066
2793
|
SliderControl,
|
|
3067
2794
|
SliderTrack,
|