@pactor-app/ui 1.2.0 → 1.7.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 +2 -0
- package/dist/{chunk-L45CSL6I.js → chunk-7KC6DMKH.js} +3 -3
- package/dist/{chunk-Q5NUGUJG.js → chunk-E2TD6JD2.js} +205 -414
- package/dist/{chunk-F3H23KYG.js → chunk-F42SGQNW.js} +31 -93
- package/dist/{chunk-22TEN3ER.js → chunk-FJPRXEKQ.js} +13 -13
- package/dist/chunk-L4Z7MNYY.js +1197 -0
- package/dist/{chunk-LMEJ242M.js → chunk-PMYLC26E.js} +615 -307
- package/dist/chunk-WKJUCGV4.js +78 -0
- package/dist/chunk-ZM3WJZZ7.js +727 -0
- package/dist/components/index.cjs +1694 -969
- package/dist/components/index.d.cts +115 -13
- package/dist/components/index.d.ts +115 -13
- package/dist/components/index.js +10 -6
- package/dist/index.cjs +1889 -1164
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -8
- package/dist/interaction/index.cjs +10 -6
- package/dist/interaction/index.js +3 -3
- package/dist/layout/index.cjs +811 -269
- package/dist/layout/index.d.cts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.js +4 -4
- package/dist/ui/index.cjs +1689 -534
- package/dist/ui/index.d.cts +130 -16
- package/dist/ui/index.d.ts +130 -16
- package/dist/ui/index.js +481 -22
- package/package.json +6 -5
- package/styles.css +975 -114
- package/dist/chunk-2LYMCWEJ.js +0 -289
- package/dist/chunk-HJPHJKVA.js +0 -671
- 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) [&>button]:hover:text-(--calendar-selected-foreground)",
|
|
465
463
|
defaultClassNames.selected
|
|
466
464
|
),
|
|
467
465
|
today: cn(
|
|
468
|
-
"[&>button]:bg-
|
|
466
|
+
"[&>button]:bg-(--calendar-today-background) [&>button]:text-(--calendar-today-foreground) [&>button]:hover:bg-(--calendar-today-background) [&>button]:hover:text-(--calendar-today-foreground) [&>button]:border [&>button]:border-(--calendar-today-border)",
|
|
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",
|
|
@@ -1607,17 +1588,17 @@ function Label({
|
|
|
1607
1588
|
// src/ui/menubar.tsx
|
|
1608
1589
|
import { Menu as MenuPrimitive2 } from "@base-ui/react/menu";
|
|
1609
1590
|
import { Menubar as MenubarPrimitive } from "@base-ui/react/menubar";
|
|
1610
|
-
import { jsx as
|
|
1591
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1611
1592
|
function Menubar({
|
|
1612
1593
|
className,
|
|
1613
1594
|
...props
|
|
1614
1595
|
}) {
|
|
1615
|
-
return /* @__PURE__ */
|
|
1596
|
+
return /* @__PURE__ */ jsx27(
|
|
1616
1597
|
MenubarPrimitive,
|
|
1617
1598
|
{
|
|
1618
1599
|
"data-slot": "menubar",
|
|
1619
1600
|
className: cn(
|
|
1620
|
-
"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",
|
|
1621
1602
|
className
|
|
1622
1603
|
),
|
|
1623
1604
|
...props
|
|
@@ -1627,18 +1608,18 @@ function Menubar({
|
|
|
1627
1608
|
function MenubarMenu({
|
|
1628
1609
|
...props
|
|
1629
1610
|
}) {
|
|
1630
|
-
return /* @__PURE__ */
|
|
1611
|
+
return /* @__PURE__ */ jsx27(MenuPrimitive2.Root, { "data-slot": "menubar-menu", ...props });
|
|
1631
1612
|
}
|
|
1632
1613
|
function MenubarTrigger({
|
|
1633
1614
|
className,
|
|
1634
1615
|
...props
|
|
1635
1616
|
}) {
|
|
1636
|
-
return /* @__PURE__ */
|
|
1617
|
+
return /* @__PURE__ */ jsx27(
|
|
1637
1618
|
MenuPrimitive2.Trigger,
|
|
1638
1619
|
{
|
|
1639
1620
|
"data-slot": "menubar-trigger",
|
|
1640
1621
|
className: cn(
|
|
1641
|
-
"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)",
|
|
1642
1623
|
className
|
|
1643
1624
|
),
|
|
1644
1625
|
...props
|
|
@@ -1652,19 +1633,19 @@ function MenubarContent({
|
|
|
1652
1633
|
sideOffset = 8,
|
|
1653
1634
|
...props
|
|
1654
1635
|
}) {
|
|
1655
|
-
return /* @__PURE__ */
|
|
1636
|
+
return /* @__PURE__ */ jsx27(MenuPrimitive2.Portal, { children: /* @__PURE__ */ jsx27(
|
|
1656
1637
|
MenuPrimitive2.Positioner,
|
|
1657
1638
|
{
|
|
1658
1639
|
align,
|
|
1659
1640
|
side,
|
|
1660
1641
|
sideOffset,
|
|
1661
1642
|
className: "isolate z-50",
|
|
1662
|
-
children: /* @__PURE__ */
|
|
1643
|
+
children: /* @__PURE__ */ jsx27(
|
|
1663
1644
|
MenuPrimitive2.Popup,
|
|
1664
1645
|
{
|
|
1665
1646
|
"data-slot": "menubar-content",
|
|
1666
1647
|
className: cn(
|
|
1667
|
-
"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",
|
|
1668
1649
|
className
|
|
1669
1650
|
),
|
|
1670
1651
|
...props
|
|
@@ -1678,13 +1659,13 @@ function MenubarItem({
|
|
|
1678
1659
|
variant = "default",
|
|
1679
1660
|
...props
|
|
1680
1661
|
}) {
|
|
1681
|
-
return /* @__PURE__ */
|
|
1662
|
+
return /* @__PURE__ */ jsx27(
|
|
1682
1663
|
MenuPrimitive2.Item,
|
|
1683
1664
|
{
|
|
1684
1665
|
"data-slot": "menubar-item",
|
|
1685
1666
|
"data-variant": variant,
|
|
1686
1667
|
className: cn(
|
|
1687
|
-
"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",
|
|
1688
1669
|
className
|
|
1689
1670
|
),
|
|
1690
1671
|
...props
|
|
@@ -1695,7 +1676,7 @@ function MenubarSeparator({
|
|
|
1695
1676
|
className,
|
|
1696
1677
|
...props
|
|
1697
1678
|
}) {
|
|
1698
|
-
return /* @__PURE__ */
|
|
1679
|
+
return /* @__PURE__ */ jsx27(
|
|
1699
1680
|
MenuPrimitive2.Separator,
|
|
1700
1681
|
{
|
|
1701
1682
|
"data-slot": "menubar-separator",
|
|
@@ -1709,7 +1690,7 @@ function MenubarSeparator({
|
|
|
1709
1690
|
import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/navigation-menu";
|
|
1710
1691
|
import { ChevronDownIcon as ChevronDownIcon2 } from "lucide-react";
|
|
1711
1692
|
import { cva as cva3 } from "class-variance-authority";
|
|
1712
|
-
import { jsx as
|
|
1693
|
+
import { jsx as jsx28, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1713
1694
|
function NavigationMenu({
|
|
1714
1695
|
className,
|
|
1715
1696
|
children,
|
|
@@ -1723,7 +1704,7 @@ function NavigationMenu({
|
|
|
1723
1704
|
...props,
|
|
1724
1705
|
children: [
|
|
1725
1706
|
children,
|
|
1726
|
-
/* @__PURE__ */
|
|
1707
|
+
/* @__PURE__ */ jsx28(NavigationMenuViewport, {})
|
|
1727
1708
|
]
|
|
1728
1709
|
}
|
|
1729
1710
|
);
|
|
@@ -1732,7 +1713,7 @@ function NavigationMenuList({
|
|
|
1732
1713
|
className,
|
|
1733
1714
|
...props
|
|
1734
1715
|
}) {
|
|
1735
|
-
return /* @__PURE__ */
|
|
1716
|
+
return /* @__PURE__ */ jsx28(
|
|
1736
1717
|
NavigationMenuPrimitive.List,
|
|
1737
1718
|
{
|
|
1738
1719
|
"data-slot": "navigation-menu-list",
|
|
@@ -1745,7 +1726,7 @@ function NavigationMenuItem({
|
|
|
1745
1726
|
className,
|
|
1746
1727
|
...props
|
|
1747
1728
|
}) {
|
|
1748
|
-
return /* @__PURE__ */
|
|
1729
|
+
return /* @__PURE__ */ jsx28(
|
|
1749
1730
|
NavigationMenuPrimitive.Item,
|
|
1750
1731
|
{
|
|
1751
1732
|
"data-slot": "navigation-menu-item",
|
|
@@ -1755,7 +1736,7 @@ function NavigationMenuItem({
|
|
|
1755
1736
|
);
|
|
1756
1737
|
}
|
|
1757
1738
|
var navigationMenuTriggerStyle = cva3(
|
|
1758
|
-
"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)"
|
|
1759
1740
|
);
|
|
1760
1741
|
function NavigationMenuTrigger({
|
|
1761
1742
|
className,
|
|
@@ -1770,7 +1751,7 @@ function NavigationMenuTrigger({
|
|
|
1770
1751
|
...props,
|
|
1771
1752
|
children: [
|
|
1772
1753
|
children,
|
|
1773
|
-
/* @__PURE__ */
|
|
1754
|
+
/* @__PURE__ */ jsx28(
|
|
1774
1755
|
ChevronDownIcon2,
|
|
1775
1756
|
{
|
|
1776
1757
|
className: "relative top-px ml-1 size-3 transition-transform duration-200 group-data-open/navigation-menu-trigger:rotate-180",
|
|
@@ -1785,7 +1766,7 @@ function NavigationMenuContent({
|
|
|
1785
1766
|
className,
|
|
1786
1767
|
...props
|
|
1787
1768
|
}) {
|
|
1788
|
-
return /* @__PURE__ */
|
|
1769
|
+
return /* @__PURE__ */ jsx28(
|
|
1789
1770
|
NavigationMenuPrimitive.Content,
|
|
1790
1771
|
{
|
|
1791
1772
|
"data-slot": "navigation-menu-content",
|
|
@@ -1798,21 +1779,21 @@ function NavigationMenuContent({
|
|
|
1798
1779
|
);
|
|
1799
1780
|
}
|
|
1800
1781
|
function NavigationMenuViewport({ className }) {
|
|
1801
|
-
return /* @__PURE__ */
|
|
1782
|
+
return /* @__PURE__ */ jsx28(NavigationMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx28(
|
|
1802
1783
|
NavigationMenuPrimitive.Positioner,
|
|
1803
1784
|
{
|
|
1804
1785
|
side: "bottom",
|
|
1805
1786
|
align: "start",
|
|
1806
1787
|
className: "isolate z-50",
|
|
1807
|
-
children: /* @__PURE__ */
|
|
1788
|
+
children: /* @__PURE__ */ jsx28(
|
|
1808
1789
|
NavigationMenuPrimitive.Popup,
|
|
1809
1790
|
{
|
|
1810
1791
|
"data-slot": "navigation-menu-popup",
|
|
1811
1792
|
className: cn(
|
|
1812
|
-
"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",
|
|
1813
1794
|
className
|
|
1814
1795
|
),
|
|
1815
|
-
children: /* @__PURE__ */
|
|
1796
|
+
children: /* @__PURE__ */ jsx28(NavigationMenuPrimitive.Viewport, { "data-slot": "navigation-menu-viewport" })
|
|
1816
1797
|
}
|
|
1817
1798
|
)
|
|
1818
1799
|
}
|
|
@@ -1822,12 +1803,12 @@ function NavigationMenuLink({
|
|
|
1822
1803
|
className,
|
|
1823
1804
|
...props
|
|
1824
1805
|
}) {
|
|
1825
|
-
return /* @__PURE__ */
|
|
1806
|
+
return /* @__PURE__ */ jsx28(
|
|
1826
1807
|
NavigationMenuPrimitive.Link,
|
|
1827
1808
|
{
|
|
1828
1809
|
"data-slot": "navigation-menu-link",
|
|
1829
1810
|
className: cn(
|
|
1830
|
-
"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",
|
|
1831
1812
|
className
|
|
1832
1813
|
),
|
|
1833
1814
|
...props
|
|
@@ -1837,9 +1818,9 @@ function NavigationMenuLink({
|
|
|
1837
1818
|
|
|
1838
1819
|
// src/ui/pagination.tsx
|
|
1839
1820
|
import { ChevronLeftIcon as ChevronLeftIcon3, ChevronRightIcon as ChevronRightIcon5, MoreHorizontalIcon as MoreHorizontalIcon2 } from "lucide-react";
|
|
1840
|
-
import { jsx as
|
|
1821
|
+
import { jsx as jsx29, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1841
1822
|
function Pagination({ className, ...props }) {
|
|
1842
|
-
return /* @__PURE__ */
|
|
1823
|
+
return /* @__PURE__ */ jsx29(
|
|
1843
1824
|
"nav",
|
|
1844
1825
|
{
|
|
1845
1826
|
role: "navigation",
|
|
@@ -1851,7 +1832,7 @@ function Pagination({ className, ...props }) {
|
|
|
1851
1832
|
);
|
|
1852
1833
|
}
|
|
1853
1834
|
function PaginationContent({ className, ...props }) {
|
|
1854
|
-
return /* @__PURE__ */
|
|
1835
|
+
return /* @__PURE__ */ jsx29(
|
|
1855
1836
|
"ul",
|
|
1856
1837
|
{
|
|
1857
1838
|
"data-slot": "pagination-content",
|
|
@@ -1861,7 +1842,7 @@ function PaginationContent({ className, ...props }) {
|
|
|
1861
1842
|
);
|
|
1862
1843
|
}
|
|
1863
1844
|
function PaginationItem({ ...props }) {
|
|
1864
|
-
return /* @__PURE__ */
|
|
1845
|
+
return /* @__PURE__ */ jsx29("li", { "data-slot": "pagination-item", ...props });
|
|
1865
1846
|
}
|
|
1866
1847
|
function PaginationLink({
|
|
1867
1848
|
className,
|
|
@@ -1869,7 +1850,7 @@ function PaginationLink({
|
|
|
1869
1850
|
disabled,
|
|
1870
1851
|
...props
|
|
1871
1852
|
}) {
|
|
1872
|
-
return /* @__PURE__ */
|
|
1853
|
+
return /* @__PURE__ */ jsx29(
|
|
1873
1854
|
"a",
|
|
1874
1855
|
{
|
|
1875
1856
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -1881,6 +1862,7 @@ function PaginationLink({
|
|
|
1881
1862
|
buttonVariants({
|
|
1882
1863
|
variant: isActive ? "outline" : "ghost"
|
|
1883
1864
|
}),
|
|
1865
|
+
isActive && "border-(color:--pagination-active-border) bg-(--pagination-active-background) rounded-(--pagination-active-radius)",
|
|
1884
1866
|
disabled && "pointer-events-none opacity-50",
|
|
1885
1867
|
className
|
|
1886
1868
|
),
|
|
@@ -1899,8 +1881,8 @@ function PaginationPrevious({
|
|
|
1899
1881
|
className: cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
1900
1882
|
...props,
|
|
1901
1883
|
children: [
|
|
1902
|
-
/* @__PURE__ */
|
|
1903
|
-
/* @__PURE__ */
|
|
1884
|
+
/* @__PURE__ */ jsx29(ChevronLeftIcon3, {}),
|
|
1885
|
+
/* @__PURE__ */ jsx29("span", { className: "hidden sm:block", children: "Previous" })
|
|
1904
1886
|
]
|
|
1905
1887
|
}
|
|
1906
1888
|
);
|
|
@@ -1916,8 +1898,8 @@ function PaginationNext({
|
|
|
1916
1898
|
className: cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
1917
1899
|
...props,
|
|
1918
1900
|
children: [
|
|
1919
|
-
/* @__PURE__ */
|
|
1920
|
-
/* @__PURE__ */
|
|
1901
|
+
/* @__PURE__ */ jsx29("span", { className: "hidden sm:block", children: "Next" }),
|
|
1902
|
+
/* @__PURE__ */ jsx29(ChevronRightIcon5, {})
|
|
1921
1903
|
]
|
|
1922
1904
|
}
|
|
1923
1905
|
);
|
|
@@ -1931,8 +1913,8 @@ function PaginationEllipsis({ className, ...props }) {
|
|
|
1931
1913
|
className: cn("flex size-9 items-center justify-center", className),
|
|
1932
1914
|
...props,
|
|
1933
1915
|
children: [
|
|
1934
|
-
/* @__PURE__ */
|
|
1935
|
-
/* @__PURE__ */
|
|
1916
|
+
/* @__PURE__ */ jsx29(MoreHorizontalIcon2, { className: "size-4" }),
|
|
1917
|
+
/* @__PURE__ */ jsx29("span", { className: "sr-only", children: "More pages" })
|
|
1936
1918
|
]
|
|
1937
1919
|
}
|
|
1938
1920
|
);
|
|
@@ -1940,9 +1922,9 @@ function PaginationEllipsis({ className, ...props }) {
|
|
|
1940
1922
|
|
|
1941
1923
|
// src/ui/progress.tsx
|
|
1942
1924
|
import { Progress as ProgressPrimitive } from "@base-ui/react/progress";
|
|
1943
|
-
import { jsx as
|
|
1925
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1944
1926
|
function Progress({ className, ...props }) {
|
|
1945
|
-
return /* @__PURE__ */
|
|
1927
|
+
return /* @__PURE__ */ jsx30(
|
|
1946
1928
|
ProgressPrimitive.Root,
|
|
1947
1929
|
{
|
|
1948
1930
|
"data-slot": "progress",
|
|
@@ -1952,11 +1934,11 @@ function Progress({ className, ...props }) {
|
|
|
1952
1934
|
);
|
|
1953
1935
|
}
|
|
1954
1936
|
function ProgressTrack({ className, ...props }) {
|
|
1955
|
-
return /* @__PURE__ */
|
|
1937
|
+
return /* @__PURE__ */ jsx30(
|
|
1956
1938
|
ProgressPrimitive.Track,
|
|
1957
1939
|
{
|
|
1958
1940
|
"data-slot": "progress-track",
|
|
1959
|
-
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),
|
|
1960
1942
|
...props
|
|
1961
1943
|
}
|
|
1962
1944
|
);
|
|
@@ -1965,12 +1947,12 @@ function ProgressIndicator({
|
|
|
1965
1947
|
className,
|
|
1966
1948
|
...props
|
|
1967
1949
|
}) {
|
|
1968
|
-
return /* @__PURE__ */
|
|
1950
|
+
return /* @__PURE__ */ jsx30(
|
|
1969
1951
|
ProgressPrimitive.Indicator,
|
|
1970
1952
|
{
|
|
1971
1953
|
"data-slot": "progress-indicator",
|
|
1972
1954
|
className: cn(
|
|
1973
|
-
"h-full bg-
|
|
1955
|
+
"h-full bg-(--progress-indicator) transition-[width] duration-300 ease-in-out",
|
|
1974
1956
|
className
|
|
1975
1957
|
),
|
|
1976
1958
|
...props
|
|
@@ -1981,9 +1963,9 @@ function ProgressIndicator({
|
|
|
1981
1963
|
// src/ui/radio-group.tsx
|
|
1982
1964
|
import { Radio as RadioPrimitive } from "@base-ui/react/radio";
|
|
1983
1965
|
import { RadioGroup as RadioGroupPrimitive } from "@base-ui/react/radio-group";
|
|
1984
|
-
import { jsx as
|
|
1966
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1985
1967
|
function RadioGroup({ className, ...props }) {
|
|
1986
|
-
return /* @__PURE__ */
|
|
1968
|
+
return /* @__PURE__ */ jsx31(
|
|
1987
1969
|
RadioGroupPrimitive,
|
|
1988
1970
|
{
|
|
1989
1971
|
"data-slot": "radio-group",
|
|
@@ -1993,21 +1975,21 @@ function RadioGroup({ className, ...props }) {
|
|
|
1993
1975
|
);
|
|
1994
1976
|
}
|
|
1995
1977
|
function RadioGroupItem({ className, ...props }) {
|
|
1996
|
-
return /* @__PURE__ */
|
|
1978
|
+
return /* @__PURE__ */ jsx31(
|
|
1997
1979
|
RadioPrimitive.Root,
|
|
1998
1980
|
{
|
|
1999
1981
|
"data-slot": "radio-group-item",
|
|
2000
1982
|
className: cn(
|
|
2001
|
-
"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)",
|
|
2002
1984
|
className
|
|
2003
1985
|
),
|
|
2004
1986
|
...props,
|
|
2005
|
-
children: /* @__PURE__ */
|
|
1987
|
+
children: /* @__PURE__ */ jsx31(
|
|
2006
1988
|
RadioPrimitive.Indicator,
|
|
2007
1989
|
{
|
|
2008
1990
|
"data-slot": "radio-group-indicator",
|
|
2009
1991
|
className: "flex items-center justify-center",
|
|
2010
|
-
children: /* @__PURE__ */
|
|
1992
|
+
children: /* @__PURE__ */ jsx31("span", { className: "size-2 rounded-full bg-(--radio-checked)" })
|
|
2011
1993
|
}
|
|
2012
1994
|
)
|
|
2013
1995
|
}
|
|
@@ -2021,12 +2003,12 @@ import {
|
|
|
2021
2003
|
Panel as PanelPrimitive,
|
|
2022
2004
|
Separator as PanelResizeHandlePrimitive
|
|
2023
2005
|
} from "react-resizable-panels";
|
|
2024
|
-
import { jsx as
|
|
2006
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
2025
2007
|
function PanelGroup({
|
|
2026
2008
|
className,
|
|
2027
2009
|
...props
|
|
2028
2010
|
}) {
|
|
2029
|
-
return /* @__PURE__ */
|
|
2011
|
+
return /* @__PURE__ */ jsx32(
|
|
2030
2012
|
PanelGroupPrimitive,
|
|
2031
2013
|
{
|
|
2032
2014
|
"data-slot": "resizable-panel-group",
|
|
@@ -2039,14 +2021,14 @@ function PanelGroup({
|
|
|
2039
2021
|
);
|
|
2040
2022
|
}
|
|
2041
2023
|
function Panel({ ...props }) {
|
|
2042
|
-
return /* @__PURE__ */
|
|
2024
|
+
return /* @__PURE__ */ jsx32(PanelPrimitive, { "data-slot": "resizable-panel", ...props });
|
|
2043
2025
|
}
|
|
2044
2026
|
function ResizableHandle({
|
|
2045
2027
|
withHandle,
|
|
2046
2028
|
className,
|
|
2047
2029
|
...props
|
|
2048
2030
|
}) {
|
|
2049
|
-
return /* @__PURE__ */
|
|
2031
|
+
return /* @__PURE__ */ jsx32(
|
|
2050
2032
|
PanelResizeHandlePrimitive,
|
|
2051
2033
|
{
|
|
2052
2034
|
"data-slot": "resizable-handle",
|
|
@@ -2055,14 +2037,14 @@ function ResizableHandle({
|
|
|
2055
2037
|
className
|
|
2056
2038
|
),
|
|
2057
2039
|
...props,
|
|
2058
|
-
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
|
|
2059
2041
|
}
|
|
2060
2042
|
);
|
|
2061
2043
|
}
|
|
2062
2044
|
|
|
2063
2045
|
// src/ui/scroll-area.tsx
|
|
2064
2046
|
import { ScrollArea as ScrollAreaPrimitive } from "@base-ui/react/scroll-area";
|
|
2065
|
-
import { jsx as
|
|
2047
|
+
import { jsx as jsx33, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2066
2048
|
function ScrollArea({
|
|
2067
2049
|
className,
|
|
2068
2050
|
children,
|
|
@@ -2075,7 +2057,7 @@ function ScrollArea({
|
|
|
2075
2057
|
className: cn("relative overflow-hidden", className),
|
|
2076
2058
|
...props,
|
|
2077
2059
|
children: [
|
|
2078
|
-
/* @__PURE__ */
|
|
2060
|
+
/* @__PURE__ */ jsx33(
|
|
2079
2061
|
ScrollAreaPrimitive.Viewport,
|
|
2080
2062
|
{
|
|
2081
2063
|
"data-slot": "scroll-area-viewport",
|
|
@@ -2083,8 +2065,8 @@ function ScrollArea({
|
|
|
2083
2065
|
children
|
|
2084
2066
|
}
|
|
2085
2067
|
),
|
|
2086
|
-
/* @__PURE__ */
|
|
2087
|
-
/* @__PURE__ */
|
|
2068
|
+
/* @__PURE__ */ jsx33(ScrollBar, {}),
|
|
2069
|
+
/* @__PURE__ */ jsx33(ScrollAreaPrimitive.Corner, {})
|
|
2088
2070
|
]
|
|
2089
2071
|
}
|
|
2090
2072
|
);
|
|
@@ -2094,7 +2076,7 @@ function ScrollBar({
|
|
|
2094
2076
|
orientation = "vertical",
|
|
2095
2077
|
...props
|
|
2096
2078
|
}) {
|
|
2097
|
-
return /* @__PURE__ */
|
|
2079
|
+
return /* @__PURE__ */ jsx33(
|
|
2098
2080
|
ScrollAreaPrimitive.Scrollbar,
|
|
2099
2081
|
{
|
|
2100
2082
|
"data-slot": "scroll-area-scrollbar",
|
|
@@ -2106,7 +2088,7 @@ function ScrollBar({
|
|
|
2106
2088
|
className
|
|
2107
2089
|
),
|
|
2108
2090
|
...props,
|
|
2109
|
-
children: /* @__PURE__ */
|
|
2091
|
+
children: /* @__PURE__ */ jsx33(
|
|
2110
2092
|
ScrollAreaPrimitive.Thumb,
|
|
2111
2093
|
{
|
|
2112
2094
|
"data-slot": "scroll-area-thumb",
|
|
@@ -2120,17 +2102,17 @@ function ScrollBar({
|
|
|
2120
2102
|
// src/ui/select.tsx
|
|
2121
2103
|
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
2122
2104
|
import { CheckIcon as CheckIcon2, ChevronDownIcon as ChevronDownIcon3, ChevronUpIcon } from "lucide-react";
|
|
2123
|
-
import { jsx as
|
|
2105
|
+
import { jsx as jsx34, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2124
2106
|
var Select = SelectPrimitive.Root;
|
|
2125
2107
|
function SelectGroup({
|
|
2126
2108
|
...props
|
|
2127
2109
|
}) {
|
|
2128
|
-
return /* @__PURE__ */
|
|
2110
|
+
return /* @__PURE__ */ jsx34(SelectPrimitive.Group, { "data-slot": "select-group", ...props });
|
|
2129
2111
|
}
|
|
2130
2112
|
function SelectValue({
|
|
2131
2113
|
...props
|
|
2132
2114
|
}) {
|
|
2133
|
-
return /* @__PURE__ */
|
|
2115
|
+
return /* @__PURE__ */ jsx34(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
|
|
2134
2116
|
}
|
|
2135
2117
|
function SelectTrigger({
|
|
2136
2118
|
className,
|
|
@@ -2150,10 +2132,10 @@ function SelectTrigger({
|
|
|
2150
2132
|
...props,
|
|
2151
2133
|
children: [
|
|
2152
2134
|
children,
|
|
2153
|
-
/* @__PURE__ */
|
|
2135
|
+
/* @__PURE__ */ jsx34(
|
|
2154
2136
|
SelectPrimitive.Icon,
|
|
2155
2137
|
{
|
|
2156
|
-
render: /* @__PURE__ */
|
|
2138
|
+
render: /* @__PURE__ */ jsx34(ChevronDownIcon3, { className: "size-4 opacity-50" })
|
|
2157
2139
|
}
|
|
2158
2140
|
)
|
|
2159
2141
|
]
|
|
@@ -2169,7 +2151,7 @@ function SelectContent({
|
|
|
2169
2151
|
alignItemWithTrigger = false,
|
|
2170
2152
|
...props
|
|
2171
2153
|
}) {
|
|
2172
|
-
return /* @__PURE__ */
|
|
2154
|
+
return /* @__PURE__ */ jsx34(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx34(
|
|
2173
2155
|
SelectPrimitive.Positioner,
|
|
2174
2156
|
{
|
|
2175
2157
|
side,
|
|
@@ -2182,14 +2164,14 @@ function SelectContent({
|
|
|
2182
2164
|
{
|
|
2183
2165
|
"data-slot": "select-content",
|
|
2184
2166
|
className: cn(
|
|
2185
|
-
"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",
|
|
2186
2168
|
className
|
|
2187
2169
|
),
|
|
2188
2170
|
...props,
|
|
2189
2171
|
children: [
|
|
2190
|
-
/* @__PURE__ */
|
|
2191
|
-
/* @__PURE__ */
|
|
2192
|
-
/* @__PURE__ */
|
|
2172
|
+
/* @__PURE__ */ jsx34(SelectScrollUpButton, {}),
|
|
2173
|
+
/* @__PURE__ */ jsx34(SelectPrimitive.List, { className: "p-1", children }),
|
|
2174
|
+
/* @__PURE__ */ jsx34(SelectScrollDownButton, {})
|
|
2193
2175
|
]
|
|
2194
2176
|
}
|
|
2195
2177
|
)
|
|
@@ -2200,7 +2182,7 @@ function SelectLabel({
|
|
|
2200
2182
|
className,
|
|
2201
2183
|
...props
|
|
2202
2184
|
}) {
|
|
2203
|
-
return /* @__PURE__ */
|
|
2185
|
+
return /* @__PURE__ */ jsx34(
|
|
2204
2186
|
SelectPrimitive.GroupLabel,
|
|
2205
2187
|
{
|
|
2206
2188
|
"data-slot": "select-label",
|
|
@@ -2219,13 +2201,13 @@ function SelectItem({
|
|
|
2219
2201
|
{
|
|
2220
2202
|
"data-slot": "select-item",
|
|
2221
2203
|
className: cn(
|
|
2222
|
-
"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",
|
|
2223
2205
|
className
|
|
2224
2206
|
),
|
|
2225
2207
|
...props,
|
|
2226
2208
|
children: [
|
|
2227
|
-
/* @__PURE__ */
|
|
2228
|
-
/* @__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 })
|
|
2229
2211
|
]
|
|
2230
2212
|
}
|
|
2231
2213
|
);
|
|
@@ -2234,7 +2216,7 @@ function SelectSeparator({
|
|
|
2234
2216
|
className,
|
|
2235
2217
|
...props
|
|
2236
2218
|
}) {
|
|
2237
|
-
return /* @__PURE__ */
|
|
2219
|
+
return /* @__PURE__ */ jsx34(
|
|
2238
2220
|
SelectPrimitive.Separator,
|
|
2239
2221
|
{
|
|
2240
2222
|
"data-slot": "select-separator",
|
|
@@ -2247,7 +2229,7 @@ function SelectScrollUpButton({
|
|
|
2247
2229
|
className,
|
|
2248
2230
|
...props
|
|
2249
2231
|
}) {
|
|
2250
|
-
return /* @__PURE__ */
|
|
2232
|
+
return /* @__PURE__ */ jsx34(
|
|
2251
2233
|
SelectPrimitive.ScrollUpArrow,
|
|
2252
2234
|
{
|
|
2253
2235
|
"data-slot": "select-scroll-up-button",
|
|
@@ -2256,7 +2238,7 @@ function SelectScrollUpButton({
|
|
|
2256
2238
|
className
|
|
2257
2239
|
),
|
|
2258
2240
|
...props,
|
|
2259
|
-
children: /* @__PURE__ */
|
|
2241
|
+
children: /* @__PURE__ */ jsx34(ChevronUpIcon, { className: "size-4" })
|
|
2260
2242
|
}
|
|
2261
2243
|
);
|
|
2262
2244
|
}
|
|
@@ -2264,7 +2246,7 @@ function SelectScrollDownButton({
|
|
|
2264
2246
|
className,
|
|
2265
2247
|
...props
|
|
2266
2248
|
}) {
|
|
2267
|
-
return /* @__PURE__ */
|
|
2249
|
+
return /* @__PURE__ */ jsx34(
|
|
2268
2250
|
SelectPrimitive.ScrollDownArrow,
|
|
2269
2251
|
{
|
|
2270
2252
|
"data-slot": "select-scroll-down-button",
|
|
@@ -2273,194 +2255,16 @@ function SelectScrollDownButton({
|
|
|
2273
2255
|
className
|
|
2274
2256
|
),
|
|
2275
2257
|
...props,
|
|
2276
|
-
children: /* @__PURE__ */
|
|
2277
|
-
}
|
|
2278
|
-
);
|
|
2279
|
-
}
|
|
2280
|
-
|
|
2281
|
-
// src/ui/separator.tsx
|
|
2282
|
-
import { Separator as SeparatorPrimitive } from "@base-ui/react/separator";
|
|
2283
|
-
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
2284
|
-
function Separator({
|
|
2285
|
-
className,
|
|
2286
|
-
orientation = "horizontal",
|
|
2287
|
-
decorative: _decorative,
|
|
2288
|
-
...props
|
|
2289
|
-
}) {
|
|
2290
|
-
return /* @__PURE__ */ jsx36(
|
|
2291
|
-
SeparatorPrimitive,
|
|
2292
|
-
{
|
|
2293
|
-
"data-slot": "separator",
|
|
2294
|
-
orientation,
|
|
2295
|
-
className: cn(
|
|
2296
|
-
"shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
2297
|
-
className
|
|
2298
|
-
),
|
|
2299
|
-
...props
|
|
2300
|
-
}
|
|
2301
|
-
);
|
|
2302
|
-
}
|
|
2303
|
-
|
|
2304
|
-
// src/ui/sheet.tsx
|
|
2305
|
-
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
|
|
2306
|
-
import { XIcon } from "lucide-react";
|
|
2307
|
-
import { cva as cva4 } from "class-variance-authority";
|
|
2308
|
-
import { jsx as jsx37, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2309
|
-
function Sheet({
|
|
2310
|
-
...props
|
|
2311
|
-
}) {
|
|
2312
|
-
return /* @__PURE__ */ jsx37(DialogPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
2313
|
-
}
|
|
2314
|
-
function SheetTrigger({
|
|
2315
|
-
...props
|
|
2316
|
-
}) {
|
|
2317
|
-
return /* @__PURE__ */ jsx37(DialogPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
|
|
2318
|
-
}
|
|
2319
|
-
function SheetClose({
|
|
2320
|
-
...props
|
|
2321
|
-
}) {
|
|
2322
|
-
return /* @__PURE__ */ jsx37(DialogPrimitive.Close, { "data-slot": "sheet-close", ...props });
|
|
2323
|
-
}
|
|
2324
|
-
function SheetPortal({
|
|
2325
|
-
...props
|
|
2326
|
-
}) {
|
|
2327
|
-
return /* @__PURE__ */ jsx37(DialogPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
|
|
2328
|
-
}
|
|
2329
|
-
function SheetOverlay({
|
|
2330
|
-
className,
|
|
2331
|
-
...props
|
|
2332
|
-
}) {
|
|
2333
|
-
return /* @__PURE__ */ jsx37(
|
|
2334
|
-
DialogPrimitive.Backdrop,
|
|
2335
|
-
{
|
|
2336
|
-
"data-slot": "sheet-overlay",
|
|
2337
|
-
className: cn(
|
|
2338
|
-
"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",
|
|
2339
|
-
className
|
|
2340
|
-
),
|
|
2341
|
-
...props
|
|
2342
|
-
}
|
|
2343
|
-
);
|
|
2344
|
-
}
|
|
2345
|
-
var sheetVariants = cva4(
|
|
2346
|
-
"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",
|
|
2347
|
-
{
|
|
2348
|
-
variants: {
|
|
2349
|
-
side: {
|
|
2350
|
-
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",
|
|
2351
|
-
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",
|
|
2352
|
-
top: "inset-x-0 top-0 border-b data-open:slide-in-from-top data-closed:slide-out-to-top",
|
|
2353
|
-
bottom: "inset-x-0 bottom-0 border-t data-open:slide-in-from-bottom data-closed:slide-out-to-bottom"
|
|
2354
|
-
}
|
|
2355
|
-
},
|
|
2356
|
-
defaultVariants: {
|
|
2357
|
-
side: "right"
|
|
2358
|
-
}
|
|
2359
|
-
}
|
|
2360
|
-
);
|
|
2361
|
-
function SheetContent({
|
|
2362
|
-
className,
|
|
2363
|
-
children,
|
|
2364
|
-
side = "right",
|
|
2365
|
-
...props
|
|
2366
|
-
}) {
|
|
2367
|
-
return /* @__PURE__ */ jsxs13(SheetPortal, { "data-slot": "sheet-portal", children: [
|
|
2368
|
-
/* @__PURE__ */ jsx37(SheetOverlay, {}),
|
|
2369
|
-
/* @__PURE__ */ jsxs13(
|
|
2370
|
-
DialogPrimitive.Popup,
|
|
2371
|
-
{
|
|
2372
|
-
"data-slot": "sheet-content",
|
|
2373
|
-
className: cn(sheetVariants({ side }), className),
|
|
2374
|
-
...props,
|
|
2375
|
-
children: [
|
|
2376
|
-
children,
|
|
2377
|
-
/* @__PURE__ */ jsxs13(
|
|
2378
|
-
DialogPrimitive.Close,
|
|
2379
|
-
{
|
|
2380
|
-
"data-slot": "sheet-close",
|
|
2381
|
-
render: /* @__PURE__ */ jsx37(
|
|
2382
|
-
"button",
|
|
2383
|
-
{
|
|
2384
|
-
type: "button",
|
|
2385
|
-
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"
|
|
2386
|
-
}
|
|
2387
|
-
),
|
|
2388
|
-
children: [
|
|
2389
|
-
/* @__PURE__ */ jsx37(XIcon, {}),
|
|
2390
|
-
/* @__PURE__ */ jsx37("span", { className: "sr-only", children: "Close" })
|
|
2391
|
-
]
|
|
2392
|
-
}
|
|
2393
|
-
)
|
|
2394
|
-
]
|
|
2395
|
-
}
|
|
2396
|
-
)
|
|
2397
|
-
] });
|
|
2398
|
-
}
|
|
2399
|
-
function SheetHeader({ className, ...props }) {
|
|
2400
|
-
return /* @__PURE__ */ jsx37(
|
|
2401
|
-
"div",
|
|
2402
|
-
{
|
|
2403
|
-
"data-slot": "sheet-header",
|
|
2404
|
-
className: cn("flex flex-col gap-1.5 p-4", className),
|
|
2405
|
-
...props
|
|
2406
|
-
}
|
|
2407
|
-
);
|
|
2408
|
-
}
|
|
2409
|
-
function SheetFooter({ className, ...props }) {
|
|
2410
|
-
return /* @__PURE__ */ jsx37(
|
|
2411
|
-
"div",
|
|
2412
|
-
{
|
|
2413
|
-
"data-slot": "sheet-footer",
|
|
2414
|
-
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
2415
|
-
...props
|
|
2416
|
-
}
|
|
2417
|
-
);
|
|
2418
|
-
}
|
|
2419
|
-
function SheetTitle({
|
|
2420
|
-
className,
|
|
2421
|
-
...props
|
|
2422
|
-
}) {
|
|
2423
|
-
return /* @__PURE__ */ jsx37(
|
|
2424
|
-
DialogPrimitive.Title,
|
|
2425
|
-
{
|
|
2426
|
-
"data-slot": "sheet-title",
|
|
2427
|
-
className: cn("font-semibold text-foreground", className),
|
|
2428
|
-
...props
|
|
2429
|
-
}
|
|
2430
|
-
);
|
|
2431
|
-
}
|
|
2432
|
-
function SheetDescription({
|
|
2433
|
-
className,
|
|
2434
|
-
...props
|
|
2435
|
-
}) {
|
|
2436
|
-
return /* @__PURE__ */ jsx37(
|
|
2437
|
-
DialogPrimitive.Description,
|
|
2438
|
-
{
|
|
2439
|
-
"data-slot": "sheet-description",
|
|
2440
|
-
className: cn("text-sm text-muted-foreground", className),
|
|
2441
|
-
...props
|
|
2442
|
-
}
|
|
2443
|
-
);
|
|
2444
|
-
}
|
|
2445
|
-
|
|
2446
|
-
// src/ui/skeleton.tsx
|
|
2447
|
-
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2448
|
-
function Skeleton({ className, ...props }) {
|
|
2449
|
-
return /* @__PURE__ */ jsx38(
|
|
2450
|
-
"div",
|
|
2451
|
-
{
|
|
2452
|
-
"data-slot": "skeleton",
|
|
2453
|
-
className: cn("animate-pulse rounded-md bg-muted", className),
|
|
2454
|
-
...props
|
|
2258
|
+
children: /* @__PURE__ */ jsx34(ChevronDownIcon3, { className: "size-4" })
|
|
2455
2259
|
}
|
|
2456
2260
|
);
|
|
2457
2261
|
}
|
|
2458
2262
|
|
|
2459
2263
|
// src/ui/slider.tsx
|
|
2460
2264
|
import { Slider as SliderPrimitive } from "@base-ui/react/slider";
|
|
2461
|
-
import { jsx as
|
|
2265
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2462
2266
|
function Slider({ className, ...props }) {
|
|
2463
|
-
return /* @__PURE__ */
|
|
2267
|
+
return /* @__PURE__ */ jsx35(
|
|
2464
2268
|
SliderPrimitive.Root,
|
|
2465
2269
|
{
|
|
2466
2270
|
"data-slot": "slider",
|
|
@@ -2473,7 +2277,7 @@ function Slider({ className, ...props }) {
|
|
|
2473
2277
|
);
|
|
2474
2278
|
}
|
|
2475
2279
|
function SliderControl({ className, ...props }) {
|
|
2476
|
-
return /* @__PURE__ */
|
|
2280
|
+
return /* @__PURE__ */ jsx35(
|
|
2477
2281
|
SliderPrimitive.Control,
|
|
2478
2282
|
{
|
|
2479
2283
|
"data-slot": "slider-control",
|
|
@@ -2483,12 +2287,12 @@ function SliderControl({ className, ...props }) {
|
|
|
2483
2287
|
);
|
|
2484
2288
|
}
|
|
2485
2289
|
function SliderTrack({ className, ...props }) {
|
|
2486
|
-
return /* @__PURE__ */
|
|
2290
|
+
return /* @__PURE__ */ jsx35(
|
|
2487
2291
|
SliderPrimitive.Track,
|
|
2488
2292
|
{
|
|
2489
2293
|
"data-slot": "slider-track",
|
|
2490
2294
|
className: cn(
|
|
2491
|
-
"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)",
|
|
2492
2296
|
className
|
|
2493
2297
|
),
|
|
2494
2298
|
...props
|
|
@@ -2496,22 +2300,22 @@ function SliderTrack({ className, ...props }) {
|
|
|
2496
2300
|
);
|
|
2497
2301
|
}
|
|
2498
2302
|
function SliderIndicator({ className, ...props }) {
|
|
2499
|
-
return /* @__PURE__ */
|
|
2303
|
+
return /* @__PURE__ */ jsx35(
|
|
2500
2304
|
SliderPrimitive.Indicator,
|
|
2501
2305
|
{
|
|
2502
2306
|
"data-slot": "slider-indicator",
|
|
2503
|
-
className: cn("absolute h-full bg-
|
|
2307
|
+
className: cn("absolute h-full bg-(--slider-range)", className),
|
|
2504
2308
|
...props
|
|
2505
2309
|
}
|
|
2506
2310
|
);
|
|
2507
2311
|
}
|
|
2508
2312
|
function SliderThumb({ className, ...props }) {
|
|
2509
|
-
return /* @__PURE__ */
|
|
2313
|
+
return /* @__PURE__ */ jsx35(
|
|
2510
2314
|
SliderPrimitive.Thumb,
|
|
2511
2315
|
{
|
|
2512
2316
|
"data-slot": "slider-thumb",
|
|
2513
2317
|
className: cn(
|
|
2514
|
-
"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",
|
|
2515
2319
|
className
|
|
2516
2320
|
),
|
|
2517
2321
|
...props
|
|
@@ -2521,8 +2325,8 @@ function SliderThumb({ className, ...props }) {
|
|
|
2521
2325
|
|
|
2522
2326
|
// src/ui/toast.tsx
|
|
2523
2327
|
import { Toast as ToastPrimitive } from "@base-ui/react/toast";
|
|
2524
|
-
import { XIcon
|
|
2525
|
-
import { jsx as
|
|
2328
|
+
import { XIcon } from "lucide-react";
|
|
2329
|
+
import { jsx as jsx36, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2526
2330
|
var toastManager = ToastPrimitive.createToastManager();
|
|
2527
2331
|
function toast(message, options = {}) {
|
|
2528
2332
|
return toastManager.add({
|
|
@@ -2538,7 +2342,7 @@ var toastVariantClass = {
|
|
|
2538
2342
|
};
|
|
2539
2343
|
function ToasterViewport({ className }) {
|
|
2540
2344
|
const { toasts } = ToastPrimitive.useToastManager();
|
|
2541
|
-
return /* @__PURE__ */
|
|
2345
|
+
return /* @__PURE__ */ jsx36(ToastPrimitive.Portal, { children: /* @__PURE__ */ jsx36(
|
|
2542
2346
|
ToastPrimitive.Viewport,
|
|
2543
2347
|
{
|
|
2544
2348
|
"data-slot": "toast-viewport",
|
|
@@ -2546,26 +2350,26 @@ function ToasterViewport({ className }) {
|
|
|
2546
2350
|
"fixed top-4 right-4 z-[100] flex w-80 flex-col gap-2 outline-none",
|
|
2547
2351
|
className
|
|
2548
2352
|
),
|
|
2549
|
-
children: toasts.map((item) => /* @__PURE__ */
|
|
2353
|
+
children: toasts.map((item) => /* @__PURE__ */ jsx36(
|
|
2550
2354
|
ToastPrimitive.Root,
|
|
2551
2355
|
{
|
|
2552
2356
|
toast: item,
|
|
2553
2357
|
"data-slot": "toast",
|
|
2554
2358
|
"data-type": item.type ?? "info",
|
|
2555
2359
|
className: cn(
|
|
2556
|
-
"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",
|
|
2557
2361
|
toastVariantClass[item.type ?? "info"] ?? toastVariantClass.info
|
|
2558
2362
|
),
|
|
2559
|
-
children: /* @__PURE__ */
|
|
2560
|
-
/* @__PURE__ */
|
|
2561
|
-
/* @__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(
|
|
2562
2366
|
ToastPrimitive.Title,
|
|
2563
2367
|
{
|
|
2564
2368
|
"data-slot": "toast-title",
|
|
2565
2369
|
className: "font-medium"
|
|
2566
2370
|
}
|
|
2567
2371
|
),
|
|
2568
|
-
/* @__PURE__ */
|
|
2372
|
+
/* @__PURE__ */ jsx36(
|
|
2569
2373
|
ToastPrimitive.Description,
|
|
2570
2374
|
{
|
|
2571
2375
|
"data-slot": "toast-description",
|
|
@@ -2573,13 +2377,13 @@ function ToasterViewport({ className }) {
|
|
|
2573
2377
|
}
|
|
2574
2378
|
)
|
|
2575
2379
|
] }),
|
|
2576
|
-
/* @__PURE__ */
|
|
2380
|
+
/* @__PURE__ */ jsx36(
|
|
2577
2381
|
ToastPrimitive.Close,
|
|
2578
2382
|
{
|
|
2579
2383
|
"data-slot": "toast-close",
|
|
2580
2384
|
"aria-label": "Close",
|
|
2581
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",
|
|
2582
|
-
children: /* @__PURE__ */
|
|
2386
|
+
children: /* @__PURE__ */ jsx36(XIcon, {})
|
|
2583
2387
|
}
|
|
2584
2388
|
)
|
|
2585
2389
|
] })
|
|
@@ -2590,14 +2394,14 @@ function ToasterViewport({ className }) {
|
|
|
2590
2394
|
) });
|
|
2591
2395
|
}
|
|
2592
2396
|
function Toaster({ className }) {
|
|
2593
|
-
return /* @__PURE__ */
|
|
2397
|
+
return /* @__PURE__ */ jsx36(ToastPrimitive.Provider, { toastManager, children: /* @__PURE__ */ jsx36(ToasterViewport, { className }) });
|
|
2594
2398
|
}
|
|
2595
2399
|
|
|
2596
2400
|
// src/ui/spinner.tsx
|
|
2597
2401
|
import { Loader2Icon } from "lucide-react";
|
|
2598
|
-
import { jsx as
|
|
2402
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2599
2403
|
function Spinner({ className, ...props }) {
|
|
2600
|
-
return /* @__PURE__ */
|
|
2404
|
+
return /* @__PURE__ */ jsx37(
|
|
2601
2405
|
Loader2Icon,
|
|
2602
2406
|
{
|
|
2603
2407
|
role: "status",
|
|
@@ -2611,22 +2415,22 @@ function Spinner({ className, ...props }) {
|
|
|
2611
2415
|
|
|
2612
2416
|
// src/ui/switch.tsx
|
|
2613
2417
|
import { Switch as SwitchPrimitive } from "@base-ui/react/switch";
|
|
2614
|
-
import { jsx as
|
|
2418
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2615
2419
|
function Switch({ className, ...props }) {
|
|
2616
|
-
return /* @__PURE__ */
|
|
2420
|
+
return /* @__PURE__ */ jsx38(
|
|
2617
2421
|
SwitchPrimitive.Root,
|
|
2618
2422
|
{
|
|
2619
2423
|
"data-slot": "switch",
|
|
2620
2424
|
className: cn(
|
|
2621
|
-
"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)",
|
|
2622
2426
|
className
|
|
2623
2427
|
),
|
|
2624
2428
|
...props,
|
|
2625
|
-
children: /* @__PURE__ */
|
|
2429
|
+
children: /* @__PURE__ */ jsx38(
|
|
2626
2430
|
SwitchPrimitive.Thumb,
|
|
2627
2431
|
{
|
|
2628
2432
|
"data-slot": "switch-thumb",
|
|
2629
|
-
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"
|
|
2630
2434
|
}
|
|
2631
2435
|
)
|
|
2632
2436
|
}
|
|
@@ -2635,12 +2439,12 @@ function Switch({ className, ...props }) {
|
|
|
2635
2439
|
|
|
2636
2440
|
// src/ui/tabs.tsx
|
|
2637
2441
|
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
2638
|
-
import { jsx as
|
|
2442
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
2639
2443
|
function Tabs({
|
|
2640
2444
|
className,
|
|
2641
2445
|
...props
|
|
2642
2446
|
}) {
|
|
2643
|
-
return /* @__PURE__ */
|
|
2447
|
+
return /* @__PURE__ */ jsx39(
|
|
2644
2448
|
TabsPrimitive.Root,
|
|
2645
2449
|
{
|
|
2646
2450
|
"data-slot": "tabs",
|
|
@@ -2653,7 +2457,7 @@ function TabsList({
|
|
|
2653
2457
|
className,
|
|
2654
2458
|
...props
|
|
2655
2459
|
}) {
|
|
2656
|
-
return /* @__PURE__ */
|
|
2460
|
+
return /* @__PURE__ */ jsx39(
|
|
2657
2461
|
TabsPrimitive.List,
|
|
2658
2462
|
{
|
|
2659
2463
|
"data-slot": "tabs-list",
|
|
@@ -2669,12 +2473,12 @@ function TabsTrigger({
|
|
|
2669
2473
|
className,
|
|
2670
2474
|
...props
|
|
2671
2475
|
}) {
|
|
2672
|
-
return /* @__PURE__ */
|
|
2476
|
+
return /* @__PURE__ */ jsx39(
|
|
2673
2477
|
TabsPrimitive.Tab,
|
|
2674
2478
|
{
|
|
2675
2479
|
"data-slot": "tabs-trigger",
|
|
2676
2480
|
className: cn(
|
|
2677
|
-
"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",
|
|
2678
2482
|
className
|
|
2679
2483
|
),
|
|
2680
2484
|
...props
|
|
@@ -2685,7 +2489,7 @@ function TabsContent({
|
|
|
2685
2489
|
className,
|
|
2686
2490
|
...props
|
|
2687
2491
|
}) {
|
|
2688
|
-
return /* @__PURE__ */
|
|
2492
|
+
return /* @__PURE__ */ jsx39(
|
|
2689
2493
|
TabsPrimitive.Panel,
|
|
2690
2494
|
{
|
|
2691
2495
|
"data-slot": "tabs-content",
|
|
@@ -2697,9 +2501,9 @@ function TabsContent({
|
|
|
2697
2501
|
|
|
2698
2502
|
// src/ui/toggle.tsx
|
|
2699
2503
|
import { Toggle as TogglePrimitive } from "@base-ui/react/toggle";
|
|
2700
|
-
import { cva as
|
|
2701
|
-
import { jsx as
|
|
2702
|
-
var toggleVariants =
|
|
2504
|
+
import { cva as cva4 } from "class-variance-authority";
|
|
2505
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
2506
|
+
var toggleVariants = cva4(
|
|
2703
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",
|
|
2704
2508
|
{
|
|
2705
2509
|
variants: {
|
|
@@ -2725,7 +2529,7 @@ function Toggle({
|
|
|
2725
2529
|
size,
|
|
2726
2530
|
...props
|
|
2727
2531
|
}) {
|
|
2728
|
-
return /* @__PURE__ */
|
|
2532
|
+
return /* @__PURE__ */ jsx40(
|
|
2729
2533
|
TogglePrimitive,
|
|
2730
2534
|
{
|
|
2731
2535
|
"data-slot": "toggle",
|
|
@@ -2739,7 +2543,7 @@ function Toggle({
|
|
|
2739
2543
|
import { Toggle as TogglePrimitive2 } from "@base-ui/react/toggle";
|
|
2740
2544
|
import { ToggleGroup as ToggleGroupPrimitive } from "@base-ui/react/toggle-group";
|
|
2741
2545
|
import * as React3 from "react";
|
|
2742
|
-
import { jsx as
|
|
2546
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
2743
2547
|
var ToggleGroupContext = React3.createContext({
|
|
2744
2548
|
size: "default",
|
|
2745
2549
|
variant: "default"
|
|
@@ -2751,18 +2555,18 @@ function ToggleGroup({
|
|
|
2751
2555
|
children,
|
|
2752
2556
|
...props
|
|
2753
2557
|
}) {
|
|
2754
|
-
return /* @__PURE__ */
|
|
2558
|
+
return /* @__PURE__ */ jsx41(
|
|
2755
2559
|
ToggleGroupPrimitive,
|
|
2756
2560
|
{
|
|
2757
2561
|
"data-slot": "toggle-group",
|
|
2758
2562
|
"data-variant": variant,
|
|
2759
2563
|
"data-size": size,
|
|
2760
2564
|
className: cn(
|
|
2761
|
-
"group/toggle-group flex w-fit items-center
|
|
2565
|
+
"group/toggle-group flex w-fit items-center gap-1 rounded-md",
|
|
2762
2566
|
className
|
|
2763
2567
|
),
|
|
2764
2568
|
...props,
|
|
2765
|
-
children: /* @__PURE__ */
|
|
2569
|
+
children: /* @__PURE__ */ jsx41(ToggleGroupContext.Provider, { value: { variant, size }, children })
|
|
2766
2570
|
}
|
|
2767
2571
|
);
|
|
2768
2572
|
}
|
|
@@ -2774,7 +2578,7 @@ function ToggleGroupItem({
|
|
|
2774
2578
|
...props
|
|
2775
2579
|
}) {
|
|
2776
2580
|
const context = React3.useContext(ToggleGroupContext);
|
|
2777
|
-
return /* @__PURE__ */
|
|
2581
|
+
return /* @__PURE__ */ jsx41(
|
|
2778
2582
|
TogglePrimitive2,
|
|
2779
2583
|
{
|
|
2780
2584
|
"data-slot": "toggle-group-item",
|
|
@@ -2795,9 +2599,9 @@ function ToggleGroupItem({
|
|
|
2795
2599
|
}
|
|
2796
2600
|
|
|
2797
2601
|
// src/ui/typography.tsx
|
|
2798
|
-
import { cva as
|
|
2799
|
-
import { jsx as
|
|
2800
|
-
var typographyVariants =
|
|
2602
|
+
import { cva as cva5 } from "class-variance-authority";
|
|
2603
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
2604
|
+
var typographyVariants = cva5("", {
|
|
2801
2605
|
variants: {
|
|
2802
2606
|
variant: {
|
|
2803
2607
|
h1: "scroll-m-20 text-4xl font-extrabold tracking-tight text-balance",
|
|
@@ -2832,7 +2636,7 @@ var variantTagMap = {
|
|
|
2832
2636
|
};
|
|
2833
2637
|
function Typography({ className, variant = "p", ...props }) {
|
|
2834
2638
|
const Tag = variantTagMap[variant ?? "p"];
|
|
2835
|
-
return /* @__PURE__ */
|
|
2639
|
+
return /* @__PURE__ */ jsx42(
|
|
2836
2640
|
Tag,
|
|
2837
2641
|
{
|
|
2838
2642
|
"data-slot": "typography",
|
|
@@ -2901,7 +2705,6 @@ export {
|
|
|
2901
2705
|
ContextMenuContent,
|
|
2902
2706
|
ContextMenuItem,
|
|
2903
2707
|
ContextMenuSeparator,
|
|
2904
|
-
Input,
|
|
2905
2708
|
Table,
|
|
2906
2709
|
TableHeader,
|
|
2907
2710
|
TableBody,
|
|
@@ -2986,18 +2789,6 @@ export {
|
|
|
2986
2789
|
SelectSeparator,
|
|
2987
2790
|
SelectScrollUpButton,
|
|
2988
2791
|
SelectScrollDownButton,
|
|
2989
|
-
Separator,
|
|
2990
|
-
Sheet,
|
|
2991
|
-
SheetTrigger,
|
|
2992
|
-
SheetClose,
|
|
2993
|
-
SheetPortal,
|
|
2994
|
-
SheetOverlay,
|
|
2995
|
-
SheetContent,
|
|
2996
|
-
SheetHeader,
|
|
2997
|
-
SheetFooter,
|
|
2998
|
-
SheetTitle,
|
|
2999
|
-
SheetDescription,
|
|
3000
|
-
Skeleton,
|
|
3001
2792
|
Slider,
|
|
3002
2793
|
SliderControl,
|
|
3003
2794
|
SliderTrack,
|